[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> edit-post.js (source)

   1  this["wp"] = this["wp"] || {}; this["wp"]["editPost"] =
   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 = "dSQ2");
  86  /******/ })
  87  /************************************************************************/
  88  /******/ ({
  89  
  90  /***/ "0dt7":
  91  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  92  
  93  "use strict";
  94  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return STORE_NAME; });
  95  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return VIEW_AS_LINK_SELECTOR; });
  96  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return VIEW_AS_PREVIEW_LINK_SELECTOR; });
  97  /**
  98   * The identifier for the data store.
  99   *
 100   * @type {string}
 101   */
 102  const STORE_NAME = 'core/edit-post';
 103  /**
 104   * CSS selector string for the admin bar view post link anchor tag.
 105   *
 106   * @type {string}
 107   */
 108  
 109  const VIEW_AS_LINK_SELECTOR = '#wp-admin-bar-view a';
 110  /**
 111   * CSS selector string for the admin bar preview post link anchor tag.
 112   *
 113   * @type {string}
 114   */
 115  
 116  const VIEW_AS_PREVIEW_LINK_SELECTOR = '#wp-admin-bar-preview a';
 117  
 118  
 119  /***/ }),
 120  
 121  /***/ "1ZqX":
 122  /***/ (function(module, exports) {
 123  
 124  (function() { module.exports = window["wp"]["data"]; }());
 125  
 126  /***/ }),
 127  
 128  /***/ "4qRI":
 129  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 130  
 131  "use strict";
 132  function memoize(fn) {
 133    var cache = {};
 134    return function (arg) {
 135      if (cache[arg] === undefined) cache[arg] = fn(arg);
 136      return cache[arg];
 137    };
 138  }
 139  
 140  /* harmony default export */ __webpack_exports__["a"] = (memoize);
 141  
 142  
 143  /***/ }),
 144  
 145  /***/ "51Zz":
 146  /***/ (function(module, exports) {
 147  
 148  (function() { module.exports = window["wp"]["dataControls"]; }());
 149  
 150  /***/ }),
 151  
 152  /***/ "6aBm":
 153  /***/ (function(module, exports) {
 154  
 155  (function() { module.exports = window["wp"]["mediaUtils"]; }());
 156  
 157  /***/ }),
 158  
 159  /***/ "8oxB":
 160  /***/ (function(module, exports) {
 161  
 162  // shim for using process in browser
 163  var process = module.exports = {};
 164  
 165  // cached from whatever global is present so that test runners that stub it
 166  // don't break things.  But we need to wrap it in a try catch in case it is
 167  // wrapped in strict mode code which doesn't define any globals.  It's inside a
 168  // function because try/catches deoptimize in certain engines.
 169  
 170  var cachedSetTimeout;
 171  var cachedClearTimeout;
 172  
 173  function defaultSetTimout() {
 174      throw new Error('setTimeout has not been defined');
 175  }
 176  function defaultClearTimeout () {
 177      throw new Error('clearTimeout has not been defined');
 178  }
 179  (function () {
 180      try {
 181          if (typeof setTimeout === 'function') {
 182              cachedSetTimeout = setTimeout;
 183          } else {
 184              cachedSetTimeout = defaultSetTimout;
 185          }
 186      } catch (e) {
 187          cachedSetTimeout = defaultSetTimout;
 188      }
 189      try {
 190          if (typeof clearTimeout === 'function') {
 191              cachedClearTimeout = clearTimeout;
 192          } else {
 193              cachedClearTimeout = defaultClearTimeout;
 194          }
 195      } catch (e) {
 196          cachedClearTimeout = defaultClearTimeout;
 197      }
 198  } ())
 199  function runTimeout(fun) {
 200      if (cachedSetTimeout === setTimeout) {
 201          //normal enviroments in sane situations
 202          return setTimeout(fun, 0);
 203      }
 204      // if setTimeout wasn't available but was latter defined
 205      if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
 206          cachedSetTimeout = setTimeout;
 207          return setTimeout(fun, 0);
 208      }
 209      try {
 210          // when when somebody has screwed with setTimeout but no I.E. maddness
 211          return cachedSetTimeout(fun, 0);
 212      } catch(e){
 213          try {
 214              // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
 215              return cachedSetTimeout.call(null, fun, 0);
 216          } catch(e){
 217              // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
 218              return cachedSetTimeout.call(this, fun, 0);
 219          }
 220      }
 221  
 222  
 223  }
 224  function runClearTimeout(marker) {
 225      if (cachedClearTimeout === clearTimeout) {
 226          //normal enviroments in sane situations
 227          return clearTimeout(marker);
 228      }
 229      // if clearTimeout wasn't available but was latter defined
 230      if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
 231          cachedClearTimeout = clearTimeout;
 232          return clearTimeout(marker);
 233      }
 234      try {
 235          // when when somebody has screwed with setTimeout but no I.E. maddness
 236          return cachedClearTimeout(marker);
 237      } catch (e){
 238          try {
 239              // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally
 240              return cachedClearTimeout.call(null, marker);
 241          } catch (e){
 242              // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
 243              // Some versions of I.E. have different rules for clearTimeout vs setTimeout
 244              return cachedClearTimeout.call(this, marker);
 245          }
 246      }
 247  
 248  
 249  
 250  }
 251  var queue = [];
 252  var draining = false;
 253  var currentQueue;
 254  var queueIndex = -1;
 255  
 256  function cleanUpNextTick() {
 257      if (!draining || !currentQueue) {
 258          return;
 259      }
 260      draining = false;
 261      if (currentQueue.length) {
 262          queue = currentQueue.concat(queue);
 263      } else {
 264          queueIndex = -1;
 265      }
 266      if (queue.length) {
 267          drainQueue();
 268      }
 269  }
 270  
 271  function drainQueue() {
 272      if (draining) {
 273          return;
 274      }
 275      var timeout = runTimeout(cleanUpNextTick);
 276      draining = true;
 277  
 278      var len = queue.length;
 279      while(len) {
 280          currentQueue = queue;
 281          queue = [];
 282          while (++queueIndex < len) {
 283              if (currentQueue) {
 284                  currentQueue[queueIndex].run();
 285              }
 286          }
 287          queueIndex = -1;
 288          len = queue.length;
 289      }
 290      currentQueue = null;
 291      draining = false;
 292      runClearTimeout(timeout);
 293  }
 294  
 295  process.nextTick = function (fun) {
 296      var args = new Array(arguments.length - 1);
 297      if (arguments.length > 1) {
 298          for (var i = 1; i < arguments.length; i++) {
 299              args[i - 1] = arguments[i];
 300          }
 301      }
 302      queue.push(new Item(fun, args));
 303      if (queue.length === 1 && !draining) {
 304          runTimeout(drainQueue);
 305      }
 306  };
 307  
 308  // v8 likes predictible objects
 309  function Item(fun, array) {
 310      this.fun = fun;
 311      this.array = array;
 312  }
 313  Item.prototype.run = function () {
 314      this.fun.apply(null, this.array);
 315  };
 316  process.title = 'browser';
 317  process.browser = true;
 318  process.env = {};
 319  process.argv = [];
 320  process.version = ''; // empty string to avoid regexp issues
 321  process.versions = {};
 322  
 323  function noop() {}
 324  
 325  process.on = noop;
 326  process.addListener = noop;
 327  process.once = noop;
 328  process.off = noop;
 329  process.removeListener = noop;
 330  process.removeAllListeners = noop;
 331  process.emit = noop;
 332  process.prependListener = noop;
 333  process.prependOnceListener = noop;
 334  
 335  process.listeners = function (name) { return [] }
 336  
 337  process.binding = function (name) {
 338      throw new Error('process.binding is not supported');
 339  };
 340  
 341  process.cwd = function () { return '/' };
 342  process.chdir = function (dir) {
 343      throw new Error('process.chdir is not supported');
 344  };
 345  process.umask = function() { return 0; };
 346  
 347  
 348  /***/ }),
 349  
 350  /***/ "9uj6":
 351  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 352  
 353  "use strict";
 354  __webpack_require__.r(__webpack_exports__);
 355  /* harmony import */ var _emotion_memoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4qRI");
 356  
 357  
 358  var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
 359  
 360  var index = Object(_emotion_memoize__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(function (prop) {
 361    return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
 362    /* o */
 363    && prop.charCodeAt(1) === 110
 364    /* n */
 365    && prop.charCodeAt(2) < 91;
 366  }
 367  /* Z+1 */
 368  );
 369  
 370  /* harmony default export */ __webpack_exports__["default"] = (index);
 371  
 372  
 373  /***/ }),
 374  
 375  /***/ "Cg8A":
 376  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 377  
 378  "use strict";
 379  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
 380  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 381  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
 382  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 383  
 384  
 385  /**
 386   * WordPress dependencies
 387   */
 388  
 389  const cog = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 390    xmlns: "http://www.w3.org/2000/svg",
 391    viewBox: "0 0 24 24"
 392  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 393    fillRule: "evenodd",
 394    d: "M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",
 395    clipRule: "evenodd"
 396  }));
 397  /* harmony default export */ __webpack_exports__["a"] = (cog);
 398  
 399  
 400  /***/ }),
 401  
 402  /***/ "Civd":
 403  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 404  
 405  "use strict";
 406  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
 407  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 408  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
 409  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 410  
 411  
 412  /**
 413   * WordPress dependencies
 414   */
 415  
 416  const layout = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 417    xmlns: "http://www.w3.org/2000/svg",
 418    viewBox: "0 0 24 24"
 419  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 420    d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"
 421  }));
 422  /* harmony default export */ __webpack_exports__["a"] = (layout);
 423  
 424  
 425  /***/ }),
 426  
 427  /***/ "GRId":
 428  /***/ (function(module, exports) {
 429  
 430  (function() { module.exports = window["wp"]["element"]; }());
 431  
 432  /***/ }),
 433  
 434  /***/ "HSyU":
 435  /***/ (function(module, exports) {
 436  
 437  (function() { module.exports = window["wp"]["blocks"]; }());
 438  
 439  /***/ }),
 440  
 441  /***/ "K+tz":
 442  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 443  
 444  "use strict";
 445  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
 446  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 447  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
 448  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 449  
 450  
 451  /**
 452   * WordPress dependencies
 453   */
 454  
 455  const external = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 456    xmlns: "http://www.w3.org/2000/svg",
 457    viewBox: "0 0 24 24"
 458  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 459    d: "M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"
 460  }));
 461  /* harmony default export */ __webpack_exports__["a"] = (external);
 462  
 463  
 464  /***/ }),
 465  
 466  /***/ "K9lf":
 467  /***/ (function(module, exports) {
 468  
 469  (function() { module.exports = window["wp"]["compose"]; }());
 470  
 471  /***/ }),
 472  
 473  /***/ "KEfo":
 474  /***/ (function(module, exports) {
 475  
 476  (function() { module.exports = window["wp"]["viewport"]; }());
 477  
 478  /***/ }),
 479  
 480  /***/ "Mmq9":
 481  /***/ (function(module, exports) {
 482  
 483  (function() { module.exports = window["wp"]["url"]; }());
 484  
 485  /***/ }),
 486  
 487  /***/ "NWDH":
 488  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 489  
 490  "use strict";
 491  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
 492  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 493  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
 494  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 495  
 496  
 497  /**
 498   * WordPress dependencies
 499   */
 500  
 501  const chevronDown = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 502    viewBox: "0 0 24 24",
 503    xmlns: "http://www.w3.org/2000/svg"
 504  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 505    d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"
 506  }));
 507  /* harmony default export */ __webpack_exports__["a"] = (chevronDown);
 508  
 509  
 510  /***/ }),
 511  
 512  /***/ "OzlF":
 513  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 514  
 515  "use strict";
 516  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
 517  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 518  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
 519  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 520  
 521  
 522  /**
 523   * WordPress dependencies
 524   */
 525  
 526  const listView = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 527    viewBox: "0 0 24 24",
 528    xmlns: "http://www.w3.org/2000/svg"
 529  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 530    d: "M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"
 531  }));
 532  /* harmony default export */ __webpack_exports__["a"] = (listView);
 533  
 534  
 535  /***/ }),
 536  
 537  /***/ "Q4Sy":
 538  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 539  
 540  "use strict";
 541  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
 542  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 543  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
 544  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 545  
 546  
 547  /**
 548   * WordPress dependencies
 549   */
 550  
 551  const plus = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 552    xmlns: "http://www.w3.org/2000/svg",
 553    viewBox: "0 0 24 24"
 554  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 555    d: "M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"
 556  }));
 557  /* harmony default export */ __webpack_exports__["a"] = (plus);
 558  
 559  
 560  /***/ }),
 561  
 562  /***/ "QyPg":
 563  /***/ (function(module, exports) {
 564  
 565  (function() { module.exports = window["wp"]["blockLibrary"]; }());
 566  
 567  /***/ }),
 568  
 569  /***/ "RMJe":
 570  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 571  
 572  "use strict";
 573  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
 574  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
 575  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
 576  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
 577  
 578  
 579  /**
 580   * WordPress dependencies
 581   */
 582  
 583  const check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
 584    xmlns: "http://www.w3.org/2000/svg",
 585    viewBox: "0 0 24 24"
 586  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
 587    d: "M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"
 588  }));
 589  /* harmony default export */ __webpack_exports__["a"] = (check);
 590  
 591  
 592  /***/ }),
 593  
 594  /***/ "RxS6":
 595  /***/ (function(module, exports) {
 596  
 597  (function() { module.exports = window["wp"]["keycodes"]; }());
 598  
 599  /***/ }),
 600  
 601  /***/ "T40v":
 602  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 603  
 604  "use strict";
 605  
 606  // EXPORTS
 607  __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ store; });
 608  
 609  // NAMESPACE OBJECT: ./node_modules/@wordpress/edit-post/build-module/store/actions.js
 610  var actions_namespaceObject = {};
 611  __webpack_require__.r(actions_namespaceObject);
 612  __webpack_require__.d(actions_namespaceObject, "openGeneralSidebar", function() { return openGeneralSidebar; });
 613  __webpack_require__.d(actions_namespaceObject, "closeGeneralSidebar", function() { return closeGeneralSidebar; });
 614  __webpack_require__.d(actions_namespaceObject, "openModal", function() { return openModal; });
 615  __webpack_require__.d(actions_namespaceObject, "closeModal", function() { return closeModal; });
 616  __webpack_require__.d(actions_namespaceObject, "openPublishSidebar", function() { return openPublishSidebar; });
 617  __webpack_require__.d(actions_namespaceObject, "closePublishSidebar", function() { return closePublishSidebar; });
 618  __webpack_require__.d(actions_namespaceObject, "togglePublishSidebar", function() { return togglePublishSidebar; });
 619  __webpack_require__.d(actions_namespaceObject, "toggleEditorPanelEnabled", function() { return toggleEditorPanelEnabled; });
 620  __webpack_require__.d(actions_namespaceObject, "toggleEditorPanelOpened", function() { return toggleEditorPanelOpened; });
 621  __webpack_require__.d(actions_namespaceObject, "removeEditorPanel", function() { return removeEditorPanel; });
 622  __webpack_require__.d(actions_namespaceObject, "toggleFeature", function() { return toggleFeature; });
 623  __webpack_require__.d(actions_namespaceObject, "switchEditorMode", function() { return switchEditorMode; });
 624  __webpack_require__.d(actions_namespaceObject, "togglePinnedPluginItem", function() { return togglePinnedPluginItem; });
 625  __webpack_require__.d(actions_namespaceObject, "hideBlockTypes", function() { return hideBlockTypes; });
 626  __webpack_require__.d(actions_namespaceObject, "updatePreferredStyleVariations", function() { return updatePreferredStyleVariations; });
 627  __webpack_require__.d(actions_namespaceObject, "__experimentalUpdateLocalAutosaveInterval", function() { return __experimentalUpdateLocalAutosaveInterval; });
 628  __webpack_require__.d(actions_namespaceObject, "showBlockTypes", function() { return showBlockTypes; });
 629  __webpack_require__.d(actions_namespaceObject, "setAvailableMetaBoxesPerLocation", function() { return setAvailableMetaBoxesPerLocation; });
 630  __webpack_require__.d(actions_namespaceObject, "requestMetaBoxUpdates", function() { return requestMetaBoxUpdates; });
 631  __webpack_require__.d(actions_namespaceObject, "metaBoxUpdatesSuccess", function() { return metaBoxUpdatesSuccess; });
 632  __webpack_require__.d(actions_namespaceObject, "__experimentalSetPreviewDeviceType", function() { return __experimentalSetPreviewDeviceType; });
 633  __webpack_require__.d(actions_namespaceObject, "setIsInserterOpened", function() { return setIsInserterOpened; });
 634  __webpack_require__.d(actions_namespaceObject, "setIsListViewOpened", function() { return setIsListViewOpened; });
 635  __webpack_require__.d(actions_namespaceObject, "setIsEditingTemplate", function() { return setIsEditingTemplate; });
 636  __webpack_require__.d(actions_namespaceObject, "__unstableSwitchToTemplateMode", function() { return __unstableSwitchToTemplateMode; });
 637  
 638  // NAMESPACE OBJECT: ./node_modules/@wordpress/edit-post/build-module/store/selectors.js
 639  var selectors_namespaceObject = {};
 640  __webpack_require__.r(selectors_namespaceObject);
 641  __webpack_require__.d(selectors_namespaceObject, "getEditorMode", function() { return getEditorMode; });
 642  __webpack_require__.d(selectors_namespaceObject, "isEditorSidebarOpened", function() { return isEditorSidebarOpened; });
 643  __webpack_require__.d(selectors_namespaceObject, "isPluginSidebarOpened", function() { return isPluginSidebarOpened; });
 644  __webpack_require__.d(selectors_namespaceObject, "getActiveGeneralSidebarName", function() { return getActiveGeneralSidebarName; });
 645  __webpack_require__.d(selectors_namespaceObject, "getPreferences", function() { return getPreferences; });
 646  __webpack_require__.d(selectors_namespaceObject, "getPreference", function() { return getPreference; });
 647  __webpack_require__.d(selectors_namespaceObject, "isPublishSidebarOpened", function() { return isPublishSidebarOpened; });
 648  __webpack_require__.d(selectors_namespaceObject, "isEditorPanelRemoved", function() { return isEditorPanelRemoved; });
 649  __webpack_require__.d(selectors_namespaceObject, "isEditorPanelEnabled", function() { return isEditorPanelEnabled; });
 650  __webpack_require__.d(selectors_namespaceObject, "isEditorPanelOpened", function() { return isEditorPanelOpened; });
 651  __webpack_require__.d(selectors_namespaceObject, "isModalActive", function() { return isModalActive; });
 652  __webpack_require__.d(selectors_namespaceObject, "isFeatureActive", function() { return isFeatureActive; });
 653  __webpack_require__.d(selectors_namespaceObject, "isPluginItemPinned", function() { return isPluginItemPinned; });
 654  __webpack_require__.d(selectors_namespaceObject, "getActiveMetaBoxLocations", function() { return getActiveMetaBoxLocations; });
 655  __webpack_require__.d(selectors_namespaceObject, "isMetaBoxLocationVisible", function() { return isMetaBoxLocationVisible; });
 656  __webpack_require__.d(selectors_namespaceObject, "isMetaBoxLocationActive", function() { return isMetaBoxLocationActive; });
 657  __webpack_require__.d(selectors_namespaceObject, "getMetaBoxesPerLocation", function() { return getMetaBoxesPerLocation; });
 658  __webpack_require__.d(selectors_namespaceObject, "getAllMetaBoxes", function() { return getAllMetaBoxes; });
 659  __webpack_require__.d(selectors_namespaceObject, "hasMetaBoxes", function() { return hasMetaBoxes; });
 660  __webpack_require__.d(selectors_namespaceObject, "isSavingMetaBoxes", function() { return selectors_isSavingMetaBoxes; });
 661  __webpack_require__.d(selectors_namespaceObject, "__experimentalGetPreviewDeviceType", function() { return __experimentalGetPreviewDeviceType; });
 662  __webpack_require__.d(selectors_namespaceObject, "isInserterOpened", function() { return isInserterOpened; });
 663  __webpack_require__.d(selectors_namespaceObject, "__experimentalGetInsertionPoint", function() { return __experimentalGetInsertionPoint; });
 664  __webpack_require__.d(selectors_namespaceObject, "isListViewOpened", function() { return isListViewOpened; });
 665  __webpack_require__.d(selectors_namespaceObject, "isEditingTemplate", function() { return selectors_isEditingTemplate; });
 666  __webpack_require__.d(selectors_namespaceObject, "getEditedPostTemplate", function() { return getEditedPostTemplate; });
 667  
 668  // EXTERNAL MODULE: external ["wp","data"]
 669  var external_wp_data_ = __webpack_require__("1ZqX");
 670  
 671  // EXTERNAL MODULE: external ["wp","dataControls"]
 672  var external_wp_dataControls_ = __webpack_require__("51Zz");
 673  
 674  // EXTERNAL MODULE: external "lodash"
 675  var external_lodash_ = __webpack_require__("YLtl");
 676  
 677  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/defaults.js
 678  const PREFERENCES_DEFAULTS = {
 679    editorMode: 'visual',
 680    panels: {
 681      'post-status': {
 682        opened: true
 683      }
 684    },
 685    features: {
 686      fixedToolbar: false,
 687      welcomeGuide: true,
 688      fullscreenMode: true,
 689      showIconLabels: false,
 690      themeStyles: true,
 691      showBlockBreadcrumbs: true,
 692      welcomeGuideTemplate: true
 693    },
 694    hiddenBlockTypes: [],
 695    preferredStyleVariations: {},
 696    localAutosaveInterval: 15
 697  };
 698  
 699  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/reducer.js
 700  /**
 701   * External dependencies
 702   */
 703  
 704  /**
 705   * WordPress dependencies
 706   */
 707  
 708  
 709  /**
 710   * Internal dependencies
 711   */
 712  
 713  
 714  /**
 715   * Higher-order reducer creator which provides the given initial state for the
 716   * original reducer.
 717   *
 718   * @param {*} initialState Initial state to provide to reducer.
 719   *
 720   * @return {Function} Higher-order reducer.
 721   */
 722  
 723  const createWithInitialState = initialState => reducer => {
 724    return (state = initialState, action) => reducer(state, action);
 725  };
 726  /**
 727   * Reducer returning the user preferences.
 728   *
 729   * @param {Object}  state                           Current state.
 730   * @param {string}  state.mode                      Current editor mode, either
 731   *                                                  "visual" or "text".
 732   * @param {boolean} state.isGeneralSidebarDismissed Whether general sidebar is
 733   *                                                  dismissed. False by default
 734   *                                                  or when closing general
 735   *                                                  sidebar, true when opening
 736   *                                                  sidebar.
 737   * @param {boolean} state.isSidebarOpened           Whether the sidebar is
 738   *                                                  opened or closed.
 739   * @param {Object}  state.panels                    The state of the different
 740   *                                                  sidebar panels.
 741   * @param {Object}  action                          Dispatched action.
 742   *
 743   * @return {Object} Updated state.
 744   */
 745  
 746  
 747  const preferences = Object(external_lodash_["flow"])([external_wp_data_["combineReducers"], createWithInitialState(PREFERENCES_DEFAULTS)])({
 748    panels(state, action) {
 749      switch (action.type) {
 750        case 'TOGGLE_PANEL_ENABLED':
 751          {
 752            const {
 753              panelName
 754            } = action;
 755            return { ...state,
 756              [panelName]: { ...state[panelName],
 757                enabled: !Object(external_lodash_["get"])(state, [panelName, 'enabled'], true)
 758              }
 759            };
 760          }
 761  
 762        case 'TOGGLE_PANEL_OPENED':
 763          {
 764            const {
 765              panelName
 766            } = action;
 767            const isOpen = state[panelName] === true || Object(external_lodash_["get"])(state, [panelName, 'opened'], false);
 768            return { ...state,
 769              [panelName]: { ...state[panelName],
 770                opened: !isOpen
 771              }
 772            };
 773          }
 774      }
 775  
 776      return state;
 777    },
 778  
 779    features(state, action) {
 780      if (action.type === 'TOGGLE_FEATURE') {
 781        return { ...state,
 782          [action.feature]: !state[action.feature]
 783        };
 784      }
 785  
 786      return state;
 787    },
 788  
 789    editorMode(state, action) {
 790      if (action.type === 'SWITCH_MODE') {
 791        return action.mode;
 792      }
 793  
 794      return state;
 795    },
 796  
 797    hiddenBlockTypes(state, action) {
 798      switch (action.type) {
 799        case 'SHOW_BLOCK_TYPES':
 800          return Object(external_lodash_["without"])(state, ...action.blockNames);
 801  
 802        case 'HIDE_BLOCK_TYPES':
 803          return Object(external_lodash_["union"])(state, action.blockNames);
 804      }
 805  
 806      return state;
 807    },
 808  
 809    preferredStyleVariations(state, action) {
 810      switch (action.type) {
 811        case 'UPDATE_PREFERRED_STYLE_VARIATIONS':
 812          {
 813            if (!action.blockName) {
 814              return state;
 815            }
 816  
 817            if (!action.blockStyle) {
 818              return Object(external_lodash_["omit"])(state, [action.blockName]);
 819            }
 820  
 821            return { ...state,
 822              [action.blockName]: action.blockStyle
 823            };
 824          }
 825      }
 826  
 827      return state;
 828    },
 829  
 830    localAutosaveInterval(state, action) {
 831      switch (action.type) {
 832        case 'UPDATE_LOCAL_AUTOSAVE_INTERVAL':
 833          return action.interval;
 834      }
 835  
 836      return state;
 837    }
 838  
 839  });
 840  /**
 841   * Reducer storing the list of all programmatically removed panels.
 842   *
 843   * @param {Array}  state  Current state.
 844   * @param {Object} action Action object.
 845   *
 846   * @return {Array} Updated state.
 847   */
 848  
 849  function removedPanels(state = [], action) {
 850    switch (action.type) {
 851      case 'REMOVE_PANEL':
 852        if (!Object(external_lodash_["includes"])(state, action.panelName)) {
 853          return [...state, action.panelName];
 854        }
 855  
 856    }
 857  
 858    return state;
 859  }
 860  /**
 861   * Reducer for storing the name of the open modal, or null if no modal is open.
 862   *
 863   * @param {Object} state  Previous state.
 864   * @param {Object} action Action object containing the `name` of the modal
 865   *
 866   * @return {Object} Updated state
 867   */
 868  
 869  function activeModal(state = null, action) {
 870    switch (action.type) {
 871      case 'OPEN_MODAL':
 872        return action.name;
 873  
 874      case 'CLOSE_MODAL':
 875        return null;
 876    }
 877  
 878    return state;
 879  }
 880  function publishSidebarActive(state = false, action) {
 881    switch (action.type) {
 882      case 'OPEN_PUBLISH_SIDEBAR':
 883        return true;
 884  
 885      case 'CLOSE_PUBLISH_SIDEBAR':
 886        return false;
 887  
 888      case 'TOGGLE_PUBLISH_SIDEBAR':
 889        return !state;
 890    }
 891  
 892    return state;
 893  }
 894  /**
 895   * Reducer keeping track of the meta boxes isSaving state.
 896   * A "true" value means the meta boxes saving request is in-flight.
 897   *
 898   *
 899   * @param {boolean}  state   Previous state.
 900   * @param {Object}   action  Action Object.
 901   *
 902   * @return {Object} Updated state.
 903   */
 904  
 905  function isSavingMetaBoxes(state = false, action) {
 906    switch (action.type) {
 907      case 'REQUEST_META_BOX_UPDATES':
 908        return true;
 909  
 910      case 'META_BOX_UPDATES_SUCCESS':
 911        return false;
 912  
 913      default:
 914        return state;
 915    }
 916  }
 917  /**
 918   * Reducer keeping track of the meta boxes per location.
 919   *
 920   * @param {boolean}  state   Previous state.
 921   * @param {Object}   action  Action Object.
 922   *
 923   * @return {Object} Updated state.
 924   */
 925  
 926  function metaBoxLocations(state = {}, action) {
 927    switch (action.type) {
 928      case 'SET_META_BOXES_PER_LOCATIONS':
 929        return action.metaBoxesPerLocation;
 930    }
 931  
 932    return state;
 933  }
 934  /**
 935   * Reducer returning the editing canvas device type.
 936   *
 937   * @param {Object} state  Current state.
 938   * @param {Object} action Dispatched action.
 939   *
 940   * @return {Object} Updated state.
 941   */
 942  
 943  function deviceType(state = 'Desktop', action) {
 944    switch (action.type) {
 945      case 'SET_PREVIEW_DEVICE_TYPE':
 946        return action.deviceType;
 947    }
 948  
 949    return state;
 950  }
 951  /**
 952   * Reducer to set the block inserter panel open or closed.
 953   *
 954   * Note: this reducer interacts with the list view panel reducer
 955   * to make sure that only one of the two panels is open at the same time.
 956   *
 957   * @param {Object} state Current state.
 958   * @param {Object} action Dispatched action.
 959   */
 960  
 961  function blockInserterPanel(state = false, action) {
 962    switch (action.type) {
 963      case 'SET_IS_LIST_VIEW_OPENED':
 964        return action.isOpen ? false : state;
 965  
 966      case 'SET_IS_INSERTER_OPENED':
 967        return action.value;
 968    }
 969  
 970    return state;
 971  }
 972  /**
 973   * Reducer to set the list view panel open or closed.
 974   *
 975   * Note: this reducer interacts with the inserter panel reducer
 976   * to make sure that only one of the two panels is open at the same time.
 977   *
 978   * @param {Object} state Current state.
 979   * @param {Object} action Dispatched action.
 980   */
 981  
 982  function listViewPanel(state = false, action) {
 983    switch (action.type) {
 984      case 'SET_IS_INSERTER_OPENED':
 985        return action.value ? false : state;
 986  
 987      case 'SET_IS_LIST_VIEW_OPENED':
 988        return action.isOpen;
 989    }
 990  
 991    return state;
 992  }
 993  /**
 994   * Reducer tracking whether the inserter is open.
 995   *
 996   * @param {boolean} state
 997   * @param {Object}  action
 998   */
 999  
1000  function isEditingTemplate(state = false, action) {
1001    switch (action.type) {
1002      case 'SET_IS_EDITING_TEMPLATE':
1003        return action.value;
1004    }
1005  
1006    return state;
1007  }
1008  
1009  const metaBoxes = Object(external_wp_data_["combineReducers"])({
1010    isSaving: isSavingMetaBoxes,
1011    locations: metaBoxLocations
1012  });
1013  /* harmony default export */ var reducer = (Object(external_wp_data_["combineReducers"])({
1014    activeModal,
1015    metaBoxes,
1016    preferences,
1017    publishSidebarActive,
1018    removedPanels,
1019    deviceType,
1020    blockInserterPanel,
1021    listViewPanel,
1022    isEditingTemplate
1023  }));
1024  
1025  // EXTERNAL MODULE: external ["wp","i18n"]
1026  var external_wp_i18n_ = __webpack_require__("l3Sj");
1027  
1028  // EXTERNAL MODULE: ./node_modules/@wordpress/interface/build-module/index.js + 15 modules
1029  var build_module = __webpack_require__("U60i");
1030  
1031  // EXTERNAL MODULE: external ["wp","a11y"]
1032  var external_wp_a11y_ = __webpack_require__("gdqT");
1033  
1034  // EXTERNAL MODULE: external ["wp","notices"]
1035  var external_wp_notices_ = __webpack_require__("onLe");
1036  
1037  // EXTERNAL MODULE: external ["wp","coreData"]
1038  var external_wp_coreData_ = __webpack_require__("jZUy");
1039  
1040  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/utils/meta-boxes.js
1041  /**
1042   * Function returning the current Meta Boxes DOM Node in the editor
1043   * whether the meta box area is opened or not.
1044   * If the MetaBox Area is visible returns it, and returns the original container instead.
1045   *
1046   * @param   {string} location Meta Box location.
1047   * @return {string}          HTML content.
1048   */
1049  const getMetaBoxContainer = location => {
1050    const area = document.querySelector(`.edit-post-meta-boxes-area.is-$location} .metabox-location-$location}`);
1051  
1052    if (area) {
1053      return area;
1054    }
1055  
1056    return document.querySelector('#metaboxes .metabox-location-' + location);
1057  };
1058  
1059  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/actions.js
1060  /**
1061   * External dependencies
1062   */
1063  
1064  /**
1065   * WordPress dependencies
1066   */
1067  
1068  
1069  
1070  
1071  
1072  
1073  
1074  
1075  /**
1076   * Internal dependencies
1077   */
1078  
1079  
1080  
1081  /**
1082   * Returns an action object used in signalling that the user opened an editor sidebar.
1083   *
1084   * @param {?string} name Sidebar name to be opened.
1085   *
1086   * @yield {Object} Action object.
1087   */
1088  
1089  function* openGeneralSidebar(name) {
1090    yield external_wp_data_["controls"].dispatch(build_module["g" /* store */].name, 'enableComplementaryArea', store.name, name);
1091  }
1092  /**
1093   * Returns an action object signalling that the user closed the sidebar.
1094   *
1095   * @yield {Object} Action object.
1096   */
1097  
1098  function* closeGeneralSidebar() {
1099    yield external_wp_data_["controls"].dispatch(build_module["g" /* store */].name, 'disableComplementaryArea', store.name);
1100  }
1101  /**
1102   * Returns an action object used in signalling that the user opened a modal.
1103   *
1104   * @param {string} name A string that uniquely identifies the modal.
1105   *
1106   * @return {Object} Action object.
1107   */
1108  
1109  function openModal(name) {
1110    return {
1111      type: 'OPEN_MODAL',
1112      name
1113    };
1114  }
1115  /**
1116   * Returns an action object signalling that the user closed a modal.
1117   *
1118   * @return {Object} Action object.
1119   */
1120  
1121  function closeModal() {
1122    return {
1123      type: 'CLOSE_MODAL'
1124    };
1125  }
1126  /**
1127   * Returns an action object used in signalling that the user opened the publish
1128   * sidebar.
1129   *
1130   * @return {Object} Action object
1131   */
1132  
1133  function openPublishSidebar() {
1134    return {
1135      type: 'OPEN_PUBLISH_SIDEBAR'
1136    };
1137  }
1138  /**
1139   * Returns an action object used in signalling that the user closed the
1140   * publish sidebar.
1141   *
1142   * @return {Object} Action object.
1143   */
1144  
1145  function closePublishSidebar() {
1146    return {
1147      type: 'CLOSE_PUBLISH_SIDEBAR'
1148    };
1149  }
1150  /**
1151   * Returns an action object used in signalling that the user toggles the publish sidebar.
1152   *
1153   * @return {Object} Action object
1154   */
1155  
1156  function togglePublishSidebar() {
1157    return {
1158      type: 'TOGGLE_PUBLISH_SIDEBAR'
1159    };
1160  }
1161  /**
1162   * Returns an action object used to enable or disable a panel in the editor.
1163   *
1164   * @param {string} panelName A string that identifies the panel to enable or disable.
1165   *
1166   * @return {Object} Action object.
1167   */
1168  
1169  function toggleEditorPanelEnabled(panelName) {
1170    return {
1171      type: 'TOGGLE_PANEL_ENABLED',
1172      panelName
1173    };
1174  }
1175  /**
1176   * Returns an action object used to open or close a panel in the editor.
1177   *
1178   * @param {string} panelName A string that identifies the panel to open or close.
1179   *
1180   * @return {Object} Action object.
1181   */
1182  
1183  function toggleEditorPanelOpened(panelName) {
1184    return {
1185      type: 'TOGGLE_PANEL_OPENED',
1186      panelName
1187    };
1188  }
1189  /**
1190   * Returns an action object used to remove a panel from the editor.
1191   *
1192   * @param {string} panelName A string that identifies the panel to remove.
1193   *
1194   * @return {Object} Action object.
1195   */
1196  
1197  function removeEditorPanel(panelName) {
1198    return {
1199      type: 'REMOVE_PANEL',
1200      panelName
1201    };
1202  }
1203  /**
1204   * Returns an action object used to toggle a feature flag.
1205   *
1206   * @param {string} feature Feature name.
1207   *
1208   * @return {Object} Action object.
1209   */
1210  
1211  function toggleFeature(feature) {
1212    return {
1213      type: 'TOGGLE_FEATURE',
1214      feature
1215    };
1216  }
1217  function* switchEditorMode(mode) {
1218    yield {
1219      type: 'SWITCH_MODE',
1220      mode
1221    }; // Unselect blocks when we switch to the code editor.
1222  
1223    if (mode !== 'visual') {
1224      yield external_wp_data_["controls"].dispatch('core/block-editor', 'clearSelectedBlock');
1225    }
1226  
1227    const message = mode === 'visual' ? Object(external_wp_i18n_["__"])('Visual editor selected') : Object(external_wp_i18n_["__"])('Code editor selected');
1228    Object(external_wp_a11y_["speak"])(message, 'assertive');
1229  }
1230  /**
1231   * Returns an action object used to toggle a plugin name flag.
1232   *
1233   * @param {string} pluginName Plugin name.
1234   *
1235   * @return {Object} Action object.
1236   */
1237  
1238  function togglePinnedPluginItem(pluginName) {
1239    return {
1240      type: 'TOGGLE_PINNED_PLUGIN_ITEM',
1241      pluginName
1242    };
1243  }
1244  /**
1245   * Returns an action object used in signalling that block types by the given
1246   * name(s) should be hidden.
1247   *
1248   * @param {string[]} blockNames Names of block types to hide.
1249   *
1250   * @return {Object} Action object.
1251   */
1252  
1253  function hideBlockTypes(blockNames) {
1254    return {
1255      type: 'HIDE_BLOCK_TYPES',
1256      blockNames: Object(external_lodash_["castArray"])(blockNames)
1257    };
1258  }
1259  /**
1260   * Returns an action object used in signaling that a style should be auto-applied when a block is created.
1261   *
1262   * @param {string}  blockName  Name of the block.
1263   * @param {?string} blockStyle Name of the style that should be auto applied. If undefined, the "auto apply" setting of the block is removed.
1264   *
1265   * @return {Object} Action object.
1266   */
1267  
1268  function updatePreferredStyleVariations(blockName, blockStyle) {
1269    return {
1270      type: 'UPDATE_PREFERRED_STYLE_VARIATIONS',
1271      blockName,
1272      blockStyle
1273    };
1274  }
1275  /**
1276   * Returns an action object used in signalling that the editor should attempt
1277   * to locally autosave the current post every `interval` seconds.
1278   *
1279   * @param {number} interval The new interval, in seconds.
1280   * @return {Object} Action object.
1281   */
1282  
1283  function __experimentalUpdateLocalAutosaveInterval(interval) {
1284    return {
1285      type: 'UPDATE_LOCAL_AUTOSAVE_INTERVAL',
1286      interval
1287    };
1288  }
1289  /**
1290   * Returns an action object used in signalling that block types by the given
1291   * name(s) should be shown.
1292   *
1293   * @param {string[]} blockNames Names of block types to show.
1294   *
1295   * @return {Object} Action object.
1296   */
1297  
1298  function showBlockTypes(blockNames) {
1299    return {
1300      type: 'SHOW_BLOCK_TYPES',
1301      blockNames: Object(external_lodash_["castArray"])(blockNames)
1302    };
1303  }
1304  let saveMetaboxUnsubscribe;
1305  /**
1306   * Returns an action object used in signaling
1307   * what Meta boxes are available in which location.
1308   *
1309   * @param {Object} metaBoxesPerLocation Meta boxes per location.
1310   *
1311   * @yield {Object} Action object.
1312   */
1313  
1314  function* setAvailableMetaBoxesPerLocation(metaBoxesPerLocation) {
1315    yield {
1316      type: 'SET_META_BOXES_PER_LOCATIONS',
1317      metaBoxesPerLocation
1318    };
1319    const postType = yield external_wp_data_["controls"].select('core/editor', 'getCurrentPostType');
1320  
1321    if (window.postboxes.page !== postType) {
1322      window.postboxes.add_postbox_toggles(postType);
1323    }
1324  
1325    let wasSavingPost = yield external_wp_data_["controls"].select('core/editor', 'isSavingPost');
1326    let wasAutosavingPost = yield external_wp_data_["controls"].select('core/editor', 'isAutosavingPost'); // Meta boxes are initialized once at page load. It is not necessary to
1327    // account for updates on each state change.
1328    //
1329    // See: https://github.com/WordPress/WordPress/blob/5.1.1/wp-admin/includes/post.php#L2307-L2309
1330  
1331    const hasActiveMetaBoxes = yield external_wp_data_["controls"].select(store.name, 'hasMetaBoxes'); // First remove any existing subscription in order to prevent multiple saves
1332  
1333    if (!!saveMetaboxUnsubscribe) {
1334      saveMetaboxUnsubscribe();
1335    } // Save metaboxes when performing a full save on the post.
1336  
1337  
1338    saveMetaboxUnsubscribe = Object(external_wp_data_["subscribe"])(() => {
1339      const isSavingPost = Object(external_wp_data_["select"])('core/editor').isSavingPost();
1340      const isAutosavingPost = Object(external_wp_data_["select"])('core/editor').isAutosavingPost(); // Save metaboxes on save completion, except for autosaves that are not a post preview.
1341  
1342      const shouldTriggerMetaboxesSave = hasActiveMetaBoxes && wasSavingPost && !isSavingPost && !wasAutosavingPost; // Save current state for next inspection.
1343  
1344      wasSavingPost = isSavingPost;
1345      wasAutosavingPost = isAutosavingPost;
1346  
1347      if (shouldTriggerMetaboxesSave) {
1348        Object(external_wp_data_["dispatch"])(store.name).requestMetaBoxUpdates();
1349      }
1350    });
1351  }
1352  /**
1353   * Returns an action object used to request meta box update.
1354   *
1355   * @yield {Object} Action object.
1356   */
1357  
1358  function* requestMetaBoxUpdates() {
1359    yield {
1360      type: 'REQUEST_META_BOX_UPDATES'
1361    }; // Saves the wp_editor fields
1362  
1363    if (window.tinyMCE) {
1364      window.tinyMCE.triggerSave();
1365    } // Additional data needed for backward compatibility.
1366    // If we do not provide this data, the post will be overridden with the default values.
1367  
1368  
1369    const post = yield external_wp_data_["controls"].select('core/editor', 'getCurrentPost');
1370    const additionalData = [post.comment_status ? ['comment_status', post.comment_status] : false, post.ping_status ? ['ping_status', post.ping_status] : false, post.sticky ? ['sticky', post.sticky] : false, post.author ? ['post_author', post.author] : false].filter(Boolean); // We gather all the metaboxes locations data and the base form data
1371  
1372    const baseFormData = new window.FormData(document.querySelector('.metabox-base-form'));
1373    const activeMetaBoxLocations = yield external_wp_data_["controls"].select(store.name, 'getActiveMetaBoxLocations');
1374    const formDataToMerge = [baseFormData, ...activeMetaBoxLocations.map(location => new window.FormData(getMetaBoxContainer(location)))]; // Merge all form data objects into a single one.
1375  
1376    const formData = Object(external_lodash_["reduce"])(formDataToMerge, (memo, currentFormData) => {
1377      for (const [key, value] of currentFormData) {
1378        memo.append(key, value);
1379      }
1380  
1381      return memo;
1382    }, new window.FormData());
1383    additionalData.forEach(([key, value]) => formData.append(key, value)); // Save the metaboxes
1384  
1385    yield Object(external_wp_dataControls_["apiFetch"])({
1386      url: window._wpMetaBoxUrl,
1387      method: 'POST',
1388      body: formData,
1389      parse: false
1390    });
1391    yield external_wp_data_["controls"].dispatch(store.name, 'metaBoxUpdatesSuccess');
1392  }
1393  /**
1394   * Returns an action object used signal a successful meta box update.
1395   *
1396   * @return {Object} Action object.
1397   */
1398  
1399  function metaBoxUpdatesSuccess() {
1400    return {
1401      type: 'META_BOX_UPDATES_SUCCESS'
1402    };
1403  }
1404  /**
1405   * Returns an action object used to toggle the width of the editing canvas.
1406   *
1407   * @param {string} deviceType
1408   *
1409   * @return {Object} Action object.
1410   */
1411  
1412  function __experimentalSetPreviewDeviceType(deviceType) {
1413    return {
1414      type: 'SET_PREVIEW_DEVICE_TYPE',
1415      deviceType
1416    };
1417  }
1418  /**
1419   * Returns an action object used to open/close the inserter.
1420   *
1421   * @param {boolean|Object} value                Whether the inserter should be
1422   *                                              opened (true) or closed (false).
1423   *                                              To specify an insertion point,
1424   *                                              use an object.
1425   * @param {string}         value.rootClientId   The root client ID to insert at.
1426   * @param {number}         value.insertionIndex The index to insert at.
1427   *
1428   * @return {Object} Action object.
1429   */
1430  
1431  function setIsInserterOpened(value) {
1432    return {
1433      type: 'SET_IS_INSERTER_OPENED',
1434      value
1435    };
1436  }
1437  /**
1438   * Returns an action object used to open/close the list view.
1439   *
1440   * @param {boolean} isOpen A boolean representing whether the list view should be opened or closed.
1441   * @return {Object} Action object.
1442   */
1443  
1444  function setIsListViewOpened(isOpen) {
1445    return {
1446      type: 'SET_IS_LIST_VIEW_OPENED',
1447      isOpen
1448    };
1449  }
1450  /**
1451   * Returns an action object used to switch to template editing.
1452   *
1453   * @param {boolean} value Is editing template.
1454   * @return {Object} Action object.
1455   */
1456  
1457  function setIsEditingTemplate(value) {
1458    return {
1459      type: 'SET_IS_EDITING_TEMPLATE',
1460      value
1461    };
1462  }
1463  /**
1464   * Potentially create a block based template and switches to the template mode.
1465   *
1466   * @param {Object?} template template to create and assign before switching.
1467   */
1468  
1469  function* __unstableSwitchToTemplateMode(template) {
1470    if (!!template) {
1471      const savedTemplate = yield external_wp_data_["controls"].dispatch(external_wp_coreData_["store"], 'saveEntityRecord', 'postType', 'wp_template', template);
1472      const post = yield external_wp_data_["controls"].select('core/editor', 'getCurrentPost');
1473      yield external_wp_data_["controls"].dispatch(external_wp_coreData_["store"], 'editEntityRecord', 'postType', post.type, post.id, {
1474        template: savedTemplate.slug
1475      });
1476    }
1477  
1478    yield setIsEditingTemplate(true);
1479    const isWelcomeGuideActive = yield external_wp_data_["controls"].select('core/edit-post', 'isFeatureActive', 'welcomeGuideTemplate');
1480  
1481    if (!isWelcomeGuideActive) {
1482      const message = !!template ? Object(external_wp_i18n_["__"])("Custom template created. You're in template mode now.") : Object(external_wp_i18n_["__"])('Editing template. Changes made here affect all posts and pages that use the template.');
1483      yield external_wp_data_["controls"].dispatch(external_wp_notices_["store"], 'createSuccessNotice', message, {
1484        type: 'snackbar'
1485      });
1486    }
1487  }
1488  
1489  // EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
1490  var rememo = __webpack_require__("pPDe");
1491  
1492  // EXTERNAL MODULE: external ["wp","editor"]
1493  var external_wp_editor_ = __webpack_require__("jSdM");
1494  
1495  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/selectors.js
1496  /**
1497   * External dependencies
1498   */
1499  
1500  
1501  /**
1502   * WordPress dependencies
1503   */
1504  
1505  
1506  
1507  
1508  
1509  /**
1510   * Returns the current editing mode.
1511   *
1512   * @param {Object} state Global application state.
1513   *
1514   * @return {string} Editing mode.
1515   */
1516  
1517  function getEditorMode(state) {
1518    return getPreference(state, 'editorMode', 'visual');
1519  }
1520  /**
1521   * Returns true if the editor sidebar is opened.
1522   *
1523   * @param {Object} state Global application state
1524   *
1525   * @return {boolean} Whether the editor sidebar is opened.
1526   */
1527  
1528  const isEditorSidebarOpened = Object(external_wp_data_["createRegistrySelector"])(select => () => {
1529    const activeGeneralSidebar = select(build_module["g" /* store */]).getActiveComplementaryArea('core/edit-post');
1530    return Object(external_lodash_["includes"])(['edit-post/document', 'edit-post/block'], activeGeneralSidebar);
1531  });
1532  /**
1533   * Returns true if the plugin sidebar is opened.
1534   *
1535   * @param {Object} state Global application state
1536   * @return {boolean}     Whether the plugin sidebar is opened.
1537   */
1538  
1539  const isPluginSidebarOpened = Object(external_wp_data_["createRegistrySelector"])(select => () => {
1540    const activeGeneralSidebar = select(build_module["g" /* store */]).getActiveComplementaryArea('core/edit-post');
1541    return !!activeGeneralSidebar && !Object(external_lodash_["includes"])(['edit-post/document', 'edit-post/block'], activeGeneralSidebar);
1542  });
1543  /**
1544   * Returns the current active general sidebar name, or null if there is no
1545   * general sidebar active. The active general sidebar is a unique name to
1546   * identify either an editor or plugin sidebar.
1547   *
1548   * Examples:
1549   *
1550   *  - `edit-post/document`
1551   *  - `my-plugin/insert-image-sidebar`
1552   *
1553   * @param {Object} state Global application state.
1554   *
1555   * @return {?string} Active general sidebar name.
1556   */
1557  
1558  const getActiveGeneralSidebarName = Object(external_wp_data_["createRegistrySelector"])(select => () => {
1559    return select(build_module["g" /* store */]).getActiveComplementaryArea('core/edit-post');
1560  });
1561  /**
1562   * Returns the preferences (these preferences are persisted locally).
1563   *
1564   * @param {Object} state Global application state.
1565   *
1566   * @return {Object} Preferences Object.
1567   */
1568  
1569  function getPreferences(state) {
1570    return state.preferences;
1571  }
1572  /**
1573   *
1574   * @param {Object} state         Global application state.
1575   * @param {string} preferenceKey Preference Key.
1576   * @param {*}      defaultValue  Default Value.
1577   *
1578   * @return {*} Preference Value.
1579   */
1580  
1581  function getPreference(state, preferenceKey, defaultValue) {
1582    const preferences = getPreferences(state);
1583    const value = preferences[preferenceKey];
1584    return value === undefined ? defaultValue : value;
1585  }
1586  /**
1587   * Returns true if the publish sidebar is opened.
1588   *
1589   * @param {Object} state Global application state
1590   *
1591   * @return {boolean} Whether the publish sidebar is open.
1592   */
1593  
1594  function isPublishSidebarOpened(state) {
1595    return state.publishSidebarActive;
1596  }
1597  /**
1598   * Returns true if the given panel was programmatically removed, or false otherwise.
1599   * All panels are not removed by default.
1600   *
1601   * @param {Object} state     Global application state.
1602   * @param {string} panelName A string that identifies the panel.
1603   *
1604   * @return {boolean} Whether or not the panel is removed.
1605   */
1606  
1607  function isEditorPanelRemoved(state, panelName) {
1608    return Object(external_lodash_["includes"])(state.removedPanels, panelName);
1609  }
1610  /**
1611   * Returns true if the given panel is enabled, or false otherwise. Panels are
1612   * enabled by default.
1613   *
1614   * @param {Object} state     Global application state.
1615   * @param {string} panelName A string that identifies the panel.
1616   *
1617   * @return {boolean} Whether or not the panel is enabled.
1618   */
1619  
1620  function isEditorPanelEnabled(state, panelName) {
1621    const panels = getPreference(state, 'panels');
1622    return !isEditorPanelRemoved(state, panelName) && Object(external_lodash_["get"])(panels, [panelName, 'enabled'], true);
1623  }
1624  /**
1625   * Returns true if the given panel is open, or false otherwise. Panels are
1626   * closed by default.
1627   *
1628   * @param  {Object}  state     Global application state.
1629   * @param  {string}  panelName A string that identifies the panel.
1630   *
1631   * @return {boolean} Whether or not the panel is open.
1632   */
1633  
1634  function isEditorPanelOpened(state, panelName) {
1635    const panels = getPreference(state, 'panels');
1636    return Object(external_lodash_["get"])(panels, [panelName]) === true || Object(external_lodash_["get"])(panels, [panelName, 'opened']) === true;
1637  }
1638  /**
1639   * Returns true if a modal is active, or false otherwise.
1640   *
1641   * @param  {Object}  state        Global application state.
1642   * @param  {string}  modalName A string that uniquely identifies the modal.
1643   *
1644   * @return {boolean} Whether the modal is active.
1645   */
1646  
1647  function isModalActive(state, modalName) {
1648    return state.activeModal === modalName;
1649  }
1650  /**
1651   * Returns whether the given feature is enabled or not.
1652   *
1653   * @param {Object} state   Global application state.
1654   * @param {string} feature Feature slug.
1655   *
1656   * @return {boolean} Is active.
1657   */
1658  
1659  function isFeatureActive(state, feature) {
1660    return Object(external_lodash_["get"])(state.preferences.features, [feature], false);
1661  }
1662  /**
1663   * Returns true if the plugin item is pinned to the header.
1664   * When the value is not set it defaults to true.
1665   *
1666   * @param  {Object}  state      Global application state.
1667   * @param  {string}  pluginName Plugin item name.
1668   *
1669   * @return {boolean} Whether the plugin item is pinned.
1670   */
1671  
1672  const isPluginItemPinned = Object(external_wp_data_["createRegistrySelector"])(select => pluginName => {
1673    return select(build_module["g" /* store */]).isItemPinned('core/edit-post', pluginName);
1674  });
1675  /**
1676   * Returns an array of active meta box locations.
1677   *
1678   * @param {Object} state Post editor state.
1679   *
1680   * @return {string[]} Active meta box locations.
1681   */
1682  
1683  const getActiveMetaBoxLocations = Object(rememo["a" /* default */])(state => {
1684    return Object.keys(state.metaBoxes.locations).filter(location => isMetaBoxLocationActive(state, location));
1685  }, state => [state.metaBoxes.locations]);
1686  /**
1687   * Returns true if a metabox location is active and visible
1688   *
1689   * @param {Object} state    Post editor state.
1690   * @param {string} location Meta box location to test.
1691   *
1692   * @return {boolean} Whether the meta box location is active and visible.
1693   */
1694  
1695  function isMetaBoxLocationVisible(state, location) {
1696    return isMetaBoxLocationActive(state, location) && Object(external_lodash_["some"])(getMetaBoxesPerLocation(state, location), ({
1697      id
1698    }) => {
1699      return isEditorPanelEnabled(state, `meta-box-$id}`);
1700    });
1701  }
1702  /**
1703   * Returns true if there is an active meta box in the given location, or false
1704   * otherwise.
1705   *
1706   * @param {Object} state    Post editor state.
1707   * @param {string} location Meta box location to test.
1708   *
1709   * @return {boolean} Whether the meta box location is active.
1710   */
1711  
1712  function isMetaBoxLocationActive(state, location) {
1713    const metaBoxes = getMetaBoxesPerLocation(state, location);
1714    return !!metaBoxes && metaBoxes.length !== 0;
1715  }
1716  /**
1717   * Returns the list of all the available meta boxes for a given location.
1718   *
1719   * @param {Object} state    Global application state.
1720   * @param {string} location Meta box location to test.
1721   *
1722   * @return {?Array} List of meta boxes.
1723   */
1724  
1725  function getMetaBoxesPerLocation(state, location) {
1726    return state.metaBoxes.locations[location];
1727  }
1728  /**
1729   * Returns the list of all the available meta boxes.
1730   *
1731   * @param {Object} state Global application state.
1732   *
1733   * @return {Array} List of meta boxes.
1734   */
1735  
1736  const getAllMetaBoxes = Object(rememo["a" /* default */])(state => {
1737    return Object(external_lodash_["flatten"])(Object(external_lodash_["values"])(state.metaBoxes.locations));
1738  }, state => [state.metaBoxes.locations]);
1739  /**
1740   * Returns true if the post is using Meta Boxes
1741   *
1742   * @param  {Object} state Global application state
1743   *
1744   * @return {boolean} Whether there are metaboxes or not.
1745   */
1746  
1747  function hasMetaBoxes(state) {
1748    return getActiveMetaBoxLocations(state).length > 0;
1749  }
1750  /**
1751   * Returns true if the Meta Boxes are being saved.
1752   *
1753   * @param   {Object}  state Global application state.
1754   *
1755   * @return {boolean} Whether the metaboxes are being saved.
1756   */
1757  
1758  function selectors_isSavingMetaBoxes(state) {
1759    return state.metaBoxes.isSaving;
1760  }
1761  /**
1762   * Returns the current editing canvas device type.
1763   *
1764   * @param {Object} state Global application state.
1765   *
1766   * @return {string} Device type.
1767   */
1768  
1769  function __experimentalGetPreviewDeviceType(state) {
1770    return state.deviceType;
1771  }
1772  /**
1773   * Returns true if the inserter is opened.
1774   *
1775   * @param  {Object}  state Global application state.
1776   *
1777   * @return {boolean} Whether the inserter is opened.
1778   */
1779  
1780  function isInserterOpened(state) {
1781    return !!state.blockInserterPanel;
1782  }
1783  /**
1784   * Get the insertion point for the inserter.
1785   *
1786   * @param {Object} state Global application state.
1787   *
1788   * @return {Object} The root client ID and index to insert at.
1789   */
1790  
1791  function __experimentalGetInsertionPoint(state) {
1792    const {
1793      rootClientId,
1794      insertionIndex
1795    } = state.blockInserterPanel;
1796    return {
1797      rootClientId,
1798      insertionIndex
1799    };
1800  }
1801  /**
1802   * Returns true if the list view is opened.
1803   *
1804   * @param  {Object}  state Global application state.
1805   *
1806   * @return {boolean} Whether the list view is opened.
1807   */
1808  
1809  function isListViewOpened(state) {
1810    return state.listViewPanel;
1811  }
1812  /**
1813   * Returns true if the template editing mode is enabled.
1814   *
1815   * @param  {Object}  state Global application state.
1816   *
1817   * @return {boolean} Whether we're editing the template.
1818   */
1819  
1820  function selectors_isEditingTemplate(state) {
1821    return state.isEditingTemplate;
1822  }
1823  /**
1824   * Retrieves the template of the currently edited post.
1825   *
1826   * @return {Object?} Post Template.
1827   */
1828  
1829  const getEditedPostTemplate = Object(external_wp_data_["createRegistrySelector"])(select => () => {
1830    const currentTemplate = select(external_wp_editor_["store"]).getEditedPostAttribute('template');
1831  
1832    if (currentTemplate) {
1833      var _select$getEntityReco;
1834  
1835      const templateWithSameSlug = (_select$getEntityReco = select(external_wp_coreData_["store"]).getEntityRecords('postType', 'wp_template')) === null || _select$getEntityReco === void 0 ? void 0 : _select$getEntityReco.find(template => template.slug === currentTemplate);
1836  
1837      if (!templateWithSameSlug) {
1838        return templateWithSameSlug;
1839      }
1840  
1841      return select(external_wp_coreData_["store"]).getEditedEntityRecord('postType', 'wp_template', templateWithSameSlug.id);
1842    }
1843  
1844    const post = select(external_wp_editor_["store"]).getCurrentPost();
1845  
1846    if (post.link && post.status !== 'auto-draft') {
1847      return select(external_wp_coreData_["store"]).__experimentalGetTemplateForLink(post.link);
1848    }
1849  
1850    return null;
1851  });
1852  
1853  // EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/store/constants.js
1854  var constants = __webpack_require__("0dt7");
1855  
1856  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/index.js
1857  /**
1858   * WordPress dependencies
1859   */
1860  
1861  
1862  /**
1863   * Internal dependencies
1864   */
1865  
1866  
1867  
1868  
1869  
1870  const storeConfig = {
1871    reducer: reducer,
1872    actions: actions_namespaceObject,
1873    selectors: selectors_namespaceObject,
1874    controls: external_wp_dataControls_["controls"],
1875    persist: ['preferences']
1876  };
1877  /**
1878   * Store definition for the edit post namespace.
1879   *
1880   * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
1881   *
1882   * @type {Object}
1883   */
1884  
1885  const store = Object(external_wp_data_["createReduxStore"])(constants["a" /* STORE_NAME */], storeConfig); // Ideally we use register instead of register store.
1886  
1887  Object(external_wp_data_["registerStore"])(constants["a" /* STORE_NAME */], storeConfig);
1888  
1889  
1890  /***/ }),
1891  
1892  /***/ "TSYQ":
1893  /***/ (function(module, exports, __webpack_require__) {
1894  
1895  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
1896    Copyright (c) 2018 Jed Watson.
1897    Licensed under the MIT License (MIT), see
1898    http://jedwatson.github.io/classnames
1899  */
1900  /* global define */
1901  
1902  (function () {
1903      'use strict';
1904  
1905      var hasOwn = {}.hasOwnProperty;
1906  
1907  	function classNames() {
1908          var classes = [];
1909  
1910          for (var i = 0; i < arguments.length; i++) {
1911              var arg = arguments[i];
1912              if (!arg) continue;
1913  
1914              var argType = typeof arg;
1915  
1916              if (argType === 'string' || argType === 'number') {
1917                  classes.push(arg);
1918              } else if (Array.isArray(arg)) {
1919                  if (arg.length) {
1920                      var inner = classNames.apply(null, arg);
1921                      if (inner) {
1922                          classes.push(inner);
1923                      }
1924                  }
1925              } else if (argType === 'object') {
1926                  if (arg.toString === Object.prototype.toString) {
1927                      for (var key in arg) {
1928                          if (hasOwn.call(arg, key) && arg[key]) {
1929                              classes.push(key);
1930                          }
1931                      }
1932                  } else {
1933                      classes.push(arg.toString());
1934                  }
1935              }
1936          }
1937  
1938          return classes.join(' ');
1939      }
1940  
1941      if ( true && module.exports) {
1942          classNames.default = classNames;
1943          module.exports = classNames;
1944      } else if (true) {
1945          // register as 'classnames', consistent with npm package name
1946          !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
1947              return classNames;
1948          }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
1949                  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
1950      } else {}
1951  }());
1952  
1953  
1954  /***/ }),
1955  
1956  /***/ "Tqx9":
1957  /***/ (function(module, exports) {
1958  
1959  (function() { module.exports = window["wp"]["primitives"]; }());
1960  
1961  /***/ }),
1962  
1963  /***/ "TvNi":
1964  /***/ (function(module, exports) {
1965  
1966  (function() { module.exports = window["wp"]["plugins"]; }());
1967  
1968  /***/ }),
1969  
1970  /***/ "U60i":
1971  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1972  
1973  "use strict";
1974  
1975  // EXPORTS
1976  __webpack_require__.d(__webpack_exports__, "g", function() { return /* reexport */ store; });
1977  __webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ complementary_area; });
1978  __webpack_require__.d(__webpack_exports__, "c", function() { return /* reexport */ ComplementaryAreaMoreMenuItem; });
1979  __webpack_require__.d(__webpack_exports__, "d", function() { return /* reexport */ fullscreen_mode; });
1980  __webpack_require__.d(__webpack_exports__, "e", function() { return /* reexport */ interface_skeleton; });
1981  __webpack_require__.d(__webpack_exports__, "f", function() { return /* reexport */ pinned_items; });
1982  __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ action_item; });
1983  
1984  // NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/store/actions.js
1985  var actions_namespaceObject = {};
1986  __webpack_require__.r(actions_namespaceObject);
1987  __webpack_require__.d(actions_namespaceObject, "enableComplementaryArea", function() { return actions_enableComplementaryArea; });
1988  __webpack_require__.d(actions_namespaceObject, "disableComplementaryArea", function() { return actions_disableComplementaryArea; });
1989  __webpack_require__.d(actions_namespaceObject, "pinItem", function() { return actions_pinItem; });
1990  __webpack_require__.d(actions_namespaceObject, "unpinItem", function() { return actions_unpinItem; });
1991  
1992  // NAMESPACE OBJECT: ./node_modules/@wordpress/interface/build-module/store/selectors.js
1993  var selectors_namespaceObject = {};
1994  __webpack_require__.r(selectors_namespaceObject);
1995  __webpack_require__.d(selectors_namespaceObject, "getActiveComplementaryArea", function() { return selectors_getActiveComplementaryArea; });
1996  __webpack_require__.d(selectors_namespaceObject, "isItemPinned", function() { return selectors_isItemPinned; });
1997  
1998  // EXTERNAL MODULE: external ["wp","data"]
1999  var external_wp_data_ = __webpack_require__("1ZqX");
2000  
2001  // EXTERNAL MODULE: external "lodash"
2002  var external_lodash_ = __webpack_require__("YLtl");
2003  
2004  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/reducer.js
2005  /**
2006   * External dependencies
2007   */
2008  
2009  /**
2010   * WordPress dependencies
2011   */
2012  
2013  
2014  /**
2015   * Reducer to keep tract of the active area per scope.
2016   *
2017   * @param {boolean} state           Previous state.
2018   * @param {Object}  action          Action object.
2019   * @param {string}  action.type     Action type.
2020   * @param {string}  action.itemType Type of item.
2021   * @param {string}  action.scope    Item scope.
2022   * @param {string}  action.item     Item name.
2023   *
2024   * @return {Object} Updated state.
2025   */
2026  
2027  function singleEnableItems(state = {}, {
2028    type,
2029    itemType,
2030    scope,
2031    item
2032  }) {
2033    if (type !== 'SET_SINGLE_ENABLE_ITEM' || !itemType || !scope) {
2034      return state;
2035    }
2036  
2037    return { ...state,
2038      [itemType]: { ...state[itemType],
2039        [scope]: item || null
2040      }
2041    };
2042  }
2043  /**
2044   * Reducer keeping track of the "pinned" items per scope.
2045   *
2046   * @param {boolean} state           Previous state.
2047   * @param {Object}  action          Action object.
2048   * @param {string}  action.type     Action type.
2049   * @param {string}  action.itemType Type of item.
2050   * @param {string}  action.scope    Item scope.
2051   * @param {string}  action.item     Item name.
2052   * @param {boolean} action.isEnable Whether the item is pinned.
2053   *
2054   * @return {Object} Updated state.
2055   */
2056  
2057  function multipleEnableItems(state = {}, {
2058    type,
2059    itemType,
2060    scope,
2061    item,
2062    isEnable
2063  }) {
2064    if (type !== 'SET_MULTIPLE_ENABLE_ITEM' || !itemType || !scope || !item || Object(external_lodash_["get"])(state, [itemType, scope, item]) === isEnable) {
2065      return state;
2066    }
2067  
2068    const currentTypeState = state[itemType] || {};
2069    const currentScopeState = currentTypeState[scope] || {};
2070    return { ...state,
2071      [itemType]: { ...currentTypeState,
2072        [scope]: { ...currentScopeState,
2073          [item]: isEnable || false
2074        }
2075      }
2076    };
2077  }
2078  const enableItems = Object(external_wp_data_["combineReducers"])({
2079    singleEnableItems,
2080    multipleEnableItems
2081  });
2082  /* harmony default export */ var reducer = (Object(external_wp_data_["combineReducers"])({
2083    enableItems
2084  }));
2085  
2086  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/actions.js
2087  /**
2088   * Returns an action object used in signalling that an active area should be changed.
2089   *
2090   * @param {string} itemType Type of item.
2091   * @param {string} scope    Item scope.
2092   * @param {string} item     Item identifier.
2093   *
2094   * @return {Object} Action object.
2095   */
2096  function setSingleEnableItem(itemType, scope, item) {
2097    return {
2098      type: 'SET_SINGLE_ENABLE_ITEM',
2099      itemType,
2100      scope,
2101      item
2102    };
2103  }
2104  /**
2105   * Returns an action object used in signalling that a complementary item should be enabled.
2106   *
2107   * @param {string} scope Complementary area scope.
2108   * @param {string} area  Area identifier.
2109   *
2110   * @return {Object} Action object.
2111   */
2112  
2113  
2114  function actions_enableComplementaryArea(scope, area) {
2115    return setSingleEnableItem('complementaryArea', scope, area);
2116  }
2117  /**
2118   * Returns an action object used in signalling that the complementary area of a given scope should be disabled.
2119   *
2120   * @param {string} scope Complementary area scope.
2121   *
2122   * @return {Object} Action object.
2123   */
2124  
2125  function actions_disableComplementaryArea(scope) {
2126    return setSingleEnableItem('complementaryArea', scope, undefined);
2127  }
2128  /**
2129   * Returns an action object to make an area enabled/disabled.
2130   *
2131   * @param {string}  itemType Type of item.
2132   * @param {string}  scope    Item scope.
2133   * @param {string}  item     Item identifier.
2134   * @param {boolean} isEnable Boolean indicating if an area should be pinned or not.
2135   *
2136   * @return {Object} Action object.
2137   */
2138  
2139  function setMultipleEnableItem(itemType, scope, item, isEnable) {
2140    return {
2141      type: 'SET_MULTIPLE_ENABLE_ITEM',
2142      itemType,
2143      scope,
2144      item,
2145      isEnable
2146    };
2147  }
2148  /**
2149   * Returns an action object used in signalling that an item should be pinned.
2150   *
2151   * @param {string} scope  Item scope.
2152   * @param {string} itemId Item identifier.
2153   *
2154   * @return {Object} Action object.
2155   */
2156  
2157  
2158  function actions_pinItem(scope, itemId) {
2159    return setMultipleEnableItem('pinnedItems', scope, itemId, true);
2160  }
2161  /**
2162   * Returns an action object used in signalling that an item should be unpinned.
2163   *
2164   * @param {string} scope  Item scope.
2165   * @param {string} itemId Item identifier.
2166   *
2167   * @return {Object} Action object.
2168   */
2169  
2170  function actions_unpinItem(scope, itemId) {
2171    return setMultipleEnableItem('pinnedItems', scope, itemId, false);
2172  }
2173  
2174  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/selectors.js
2175  /**
2176   * External dependencies
2177   */
2178  
2179  /**
2180   * Returns the item that is enabled in a given scope.
2181   *
2182   * @param {Object} state    Global application state.
2183   * @param {string} itemType Type of item.
2184   * @param {string} scope    Item scope.
2185   *
2186   * @return {?string|null} The item that is enabled in the passed scope and type.
2187   */
2188  
2189  function getSingleEnableItem(state, itemType, scope) {
2190    return Object(external_lodash_["get"])(state.enableItems.singleEnableItems, [itemType, scope]);
2191  }
2192  /**
2193   * Returns the complementary area that is active in a given scope.
2194   *
2195   * @param {Object} state    Global application state.
2196   * @param {string} scope    Item scope.
2197   *
2198   * @return {string} The complementary area that is active in the given scope.
2199   */
2200  
2201  
2202  function selectors_getActiveComplementaryArea(state, scope) {
2203    return getSingleEnableItem(state, 'complementaryArea', scope);
2204  }
2205  /**
2206   * Returns a boolean indicating if an item is enabled or not in a given scope.
2207   *
2208   * @param {Object} state    Global application state.
2209   * @param {string} itemType Type of item.
2210   * @param {string} scope    Scope.
2211   * @param {string} item     Item to check.
2212   *
2213   * @return {boolean|undefined} True if the item is enabled, false otherwise if the item is explicitly disabled, and undefined if there is no information for that item.
2214   */
2215  
2216  function isMultipleEnabledItemEnabled(state, itemType, scope, item) {
2217    return Object(external_lodash_["get"])(state.enableItems.multipleEnableItems, [itemType, scope, item]);
2218  }
2219  /**
2220   * Returns a boolean indicating if an item is pinned or not.
2221   *
2222   * @param {Object} state    Global application state.
2223   * @param {string} scope    Scope.
2224   * @param {string} item     Item to check.
2225   *
2226   * @return {boolean} True if the item is pinned and false otherwise.
2227   */
2228  
2229  
2230  function selectors_isItemPinned(state, scope, item) {
2231    return isMultipleEnabledItemEnabled(state, 'pinnedItems', scope, item) !== false;
2232  }
2233  
2234  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/constants.js
2235  /**
2236   * The identifier for the data store.
2237   *
2238   * @type {string}
2239   */
2240  const STORE_NAME = 'core/interface';
2241  
2242  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/index.js
2243  /**
2244   * WordPress dependencies
2245   */
2246  
2247  /**
2248   * Internal dependencies
2249   */
2250  
2251  
2252  
2253  
2254  
2255  /**
2256   * Store definition for the interface namespace.
2257   *
2258   * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
2259   *
2260   * @type {Object}
2261   */
2262  
2263  const store = Object(external_wp_data_["createReduxStore"])(STORE_NAME, {
2264    reducer: reducer,
2265    actions: actions_namespaceObject,
2266    selectors: selectors_namespaceObject,
2267    persist: ['enableItems']
2268  }); // Once we build a more generic persistence plugin that works across types of stores
2269  // we'd be able to replace this with a register call.
2270  
2271  Object(external_wp_data_["registerStore"])(STORE_NAME, {
2272    reducer: reducer,
2273    actions: actions_namespaceObject,
2274    selectors: selectors_namespaceObject,
2275    persist: ['enableItems']
2276  });
2277  
2278  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
2279  var esm_extends = __webpack_require__("wx14");
2280  
2281  // EXTERNAL MODULE: external ["wp","element"]
2282  var external_wp_element_ = __webpack_require__("GRId");
2283  
2284  // EXTERNAL MODULE: ./node_modules/classnames/index.js
2285  var classnames = __webpack_require__("TSYQ");
2286  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
2287  
2288  // EXTERNAL MODULE: external ["wp","components"]
2289  var external_wp_components_ = __webpack_require__("tI+e");
2290  
2291  // EXTERNAL MODULE: external ["wp","i18n"]
2292  var external_wp_i18n_ = __webpack_require__("l3Sj");
2293  
2294  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/check.js
2295  var check = __webpack_require__("RMJe");
2296  
2297  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js
2298  var star_filled = __webpack_require__("URob");
2299  
2300  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-empty.js
2301  var star_empty = __webpack_require__("Xxwi");
2302  
2303  // EXTERNAL MODULE: external ["wp","viewport"]
2304  var external_wp_viewport_ = __webpack_require__("KEfo");
2305  
2306  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js
2307  var close_small = __webpack_require__("bWcr");
2308  
2309  // EXTERNAL MODULE: external ["wp","plugins"]
2310  var external_wp_plugins_ = __webpack_require__("TvNi");
2311  
2312  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-context/index.js
2313  /**
2314   * WordPress dependencies
2315   */
2316  
2317  /* harmony default export */ var complementary_area_context = (Object(external_wp_plugins_["withPluginContext"])((context, ownProps) => {
2318    return {
2319      icon: ownProps.icon || context.icon,
2320      identifier: ownProps.identifier || `$context.name}/$ownProps.name}`
2321    };
2322  }));
2323  
2324  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-toggle/index.js
2325  
2326  
2327  
2328  /**
2329   * External dependencies
2330   */
2331  
2332  /**
2333   * WordPress dependencies
2334   */
2335  
2336  
2337  
2338  /**
2339   * Internal dependencies
2340   */
2341  
2342  
2343  
2344  
2345  function ComplementaryAreaToggle({
2346    as = external_wp_components_["Button"],
2347    scope,
2348    identifier,
2349    icon,
2350    selectedIcon,
2351    ...props
2352  }) {
2353    const ComponentToUse = as;
2354    const isSelected = Object(external_wp_data_["useSelect"])(select => select(store).getActiveComplementaryArea(scope) === identifier, [identifier]);
2355    const {
2356      enableComplementaryArea,
2357      disableComplementaryArea
2358    } = Object(external_wp_data_["useDispatch"])(store);
2359    return Object(external_wp_element_["createElement"])(ComponentToUse, Object(esm_extends["a" /* default */])({
2360      icon: selectedIcon && isSelected ? selectedIcon : icon,
2361      onClick: () => {
2362        if (isSelected) {
2363          disableComplementaryArea(scope);
2364        } else {
2365          enableComplementaryArea(scope, identifier);
2366        }
2367      }
2368    }, Object(external_lodash_["omit"])(props, ['name'])));
2369  }
2370  
2371  /* harmony default export */ var complementary_area_toggle = (complementary_area_context(ComplementaryAreaToggle));
2372  
2373  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-header/index.js
2374  
2375  
2376  
2377  /**
2378   * External dependencies
2379   */
2380  
2381  /**
2382   * WordPress dependencies
2383   */
2384  
2385  
2386  /**
2387   * Internal dependencies
2388   */
2389  
2390  
2391  
2392  const ComplementaryAreaHeader = ({
2393    smallScreenTitle,
2394    children,
2395    className,
2396    toggleButtonProps
2397  }) => {
2398    const toggleButton = Object(external_wp_element_["createElement"])(complementary_area_toggle, Object(esm_extends["a" /* default */])({
2399      icon: close_small["a" /* default */]
2400    }, toggleButtonProps));
2401    return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("div", {
2402      className: "components-panel__header interface-complementary-area-header__small"
2403    }, smallScreenTitle && Object(external_wp_element_["createElement"])("span", {
2404      className: "interface-complementary-area-header__small-title"
2405    }, smallScreenTitle), toggleButton), Object(external_wp_element_["createElement"])("div", {
2406      className: classnames_default()('components-panel__header', 'interface-complementary-area-header', className),
2407      tabIndex: -1
2408    }, children, toggleButton));
2409  };
2410  
2411  /* harmony default export */ var complementary_area_header = (ComplementaryAreaHeader);
2412  
2413  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/action-item/index.js
2414  
2415  
2416  
2417  /**
2418   * External dependencies
2419   */
2420  
2421  /**
2422   * WordPress dependencies
2423   */
2424  
2425  
2426  
2427  
2428  function ActionItemSlot({
2429    name,
2430    as: Component = external_wp_components_["ButtonGroup"],
2431    fillProps = {},
2432    bubblesVirtually,
2433    ...props
2434  }) {
2435    return Object(external_wp_element_["createElement"])(external_wp_components_["Slot"], {
2436      name: name,
2437      bubblesVirtually: bubblesVirtually,
2438      fillProps: fillProps
2439    }, fills => {
2440      if (Object(external_lodash_["isEmpty"])(external_wp_element_["Children"].toArray(fills))) {
2441        return null;
2442      } // Special handling exists for backward compatibility.
2443      // It ensures that menu items created by plugin authors aren't
2444      // duplicated with automatically injected menu items coming
2445      // from pinnable plugin sidebars.
2446      // @see https://github.com/WordPress/gutenberg/issues/14457
2447  
2448  
2449      const initializedByPlugins = [];
2450      external_wp_element_["Children"].forEach(fills, ({
2451        props: {
2452          __unstableExplicitMenuItem,
2453          __unstableTarget
2454        }
2455      }) => {
2456        if (__unstableTarget && __unstableExplicitMenuItem) {
2457          initializedByPlugins.push(__unstableTarget);
2458        }
2459      });
2460      const children = external_wp_element_["Children"].map(fills, child => {
2461        if (!child.props.__unstableExplicitMenuItem && initializedByPlugins.includes(child.props.__unstableTarget)) {
2462          return null;
2463        }
2464  
2465        return child;
2466      });
2467      return Object(external_wp_element_["createElement"])(Component, props, children);
2468    });
2469  }
2470  
2471  function ActionItem({
2472    name,
2473    as: Component = external_wp_components_["Button"],
2474    onClick,
2475    ...props
2476  }) {
2477    return Object(external_wp_element_["createElement"])(external_wp_components_["Fill"], {
2478      name: name
2479    }, ({
2480      onClick: fpOnClick
2481    }) => {
2482      return Object(external_wp_element_["createElement"])(Component, Object(esm_extends["a" /* default */])({
2483        onClick: onClick || fpOnClick ? (...args) => {
2484          (onClick || external_lodash_["noop"])(...args);
2485          (fpOnClick || external_lodash_["noop"])(...args);
2486        } : undefined
2487      }, props));
2488    });
2489  }
2490  
2491  ActionItem.Slot = ActionItemSlot;
2492  /* harmony default export */ var action_item = (ActionItem);
2493  
2494  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area-more-menu-item/index.js
2495  
2496  
2497  
2498  /**
2499   * External dependencies
2500   */
2501  
2502  /**
2503   * WordPress dependencies
2504   */
2505  
2506  
2507  
2508  /**
2509   * Internal dependencies
2510   */
2511  
2512  
2513  
2514  
2515  const PluginsMenuItem = props => // Menu item is marked with unstable prop for backward compatibility.
2516  // They are removed so they don't leak to DOM elements.
2517  // @see https://github.com/WordPress/gutenberg/issues/14457
2518  Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], Object(external_lodash_["omit"])(props, ['__unstableExplicitMenuItem', '__unstableTarget']));
2519  
2520  function ComplementaryAreaMoreMenuItem({
2521    scope,
2522    target,
2523    __unstableExplicitMenuItem,
2524    ...props
2525  }) {
2526    return Object(external_wp_element_["createElement"])(complementary_area_toggle, Object(esm_extends["a" /* default */])({
2527      as: toggleProps => {
2528        return Object(external_wp_element_["createElement"])(action_item, Object(esm_extends["a" /* default */])({
2529          __unstableExplicitMenuItem: __unstableExplicitMenuItem,
2530          __unstableTarget: `$scope}/$target}`,
2531          as: PluginsMenuItem,
2532          name: `$scope}/plugin-more-menu`
2533        }, toggleProps));
2534      },
2535      role: "menuitemcheckbox",
2536      selectedIcon: check["a" /* default */],
2537      name: target,
2538      scope: scope
2539    }, props));
2540  }
2541  
2542  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/pinned-items/index.js
2543  
2544  
2545  
2546  /**
2547   * External dependencies
2548   */
2549  
2550  
2551  /**
2552   * WordPress dependencies
2553   */
2554  
2555  
2556  
2557  function PinnedItems({
2558    scope,
2559    ...props
2560  }) {
2561    return Object(external_wp_element_["createElement"])(external_wp_components_["Fill"], Object(esm_extends["a" /* default */])({
2562      name: `PinnedItems/$scope}`
2563    }, props));
2564  }
2565  
2566  function PinnedItemsSlot({
2567    scope,
2568    className,
2569    ...props
2570  }) {
2571    return Object(external_wp_element_["createElement"])(external_wp_components_["Slot"], Object(esm_extends["a" /* default */])({
2572      name: `PinnedItems/$scope}`
2573    }, props), fills => !Object(external_lodash_["isEmpty"])(fills) && Object(external_wp_element_["createElement"])("div", {
2574      className: classnames_default()(className, 'interface-pinned-items')
2575    }, fills));
2576  }
2577  
2578  PinnedItems.Slot = PinnedItemsSlot;
2579  /* harmony default export */ var pinned_items = (PinnedItems);
2580  
2581  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/complementary-area/index.js
2582  
2583  
2584  
2585  /**
2586   * External dependencies
2587   */
2588  
2589  /**
2590   * WordPress dependencies
2591   */
2592  
2593  
2594  
2595  
2596  
2597  
2598  
2599  /**
2600   * Internal dependencies
2601   */
2602  
2603  
2604  
2605  
2606  
2607  
2608  
2609  
2610  function ComplementaryAreaSlot({
2611    scope,
2612    ...props
2613  }) {
2614    return Object(external_wp_element_["createElement"])(external_wp_components_["Slot"], Object(esm_extends["a" /* default */])({
2615      name: `ComplementaryArea/$scope}`
2616    }, props));
2617  }
2618  
2619  function ComplementaryAreaFill({
2620    scope,
2621    children,
2622    className
2623  }) {
2624    return Object(external_wp_element_["createElement"])(external_wp_components_["Fill"], {
2625      name: `ComplementaryArea/$scope}`
2626    }, Object(external_wp_element_["createElement"])("div", {
2627      className: className
2628    }, children));
2629  }
2630  
2631  function useAdjustComplementaryListener(scope, identifier, activeArea, isActive, isSmall) {
2632    const previousIsSmall = Object(external_wp_element_["useRef"])(false);
2633    const shouldOpenWhenNotSmall = Object(external_wp_element_["useRef"])(false);
2634    const {
2635      enableComplementaryArea,
2636      disableComplementaryArea
2637    } = Object(external_wp_data_["useDispatch"])(store);
2638    Object(external_wp_element_["useEffect"])(() => {
2639      // If the complementary area is active and the editor is switching from a big to a small window size.
2640      if (isActive && isSmall && !previousIsSmall.current) {
2641        // Disable the complementary area.
2642        disableComplementaryArea(scope); // Flag the complementary area to be reopened when the window size goes from small to big.
2643  
2644        shouldOpenWhenNotSmall.current = true;
2645      } else if ( // If there is a flag indicating the complementary area should be enabled when we go from small to big window size
2646      // and we are going from a small to big window size.
2647      shouldOpenWhenNotSmall.current && !isSmall && previousIsSmall.current) {
2648        // Remove the flag indicating the complementary area should be enabled.
2649        shouldOpenWhenNotSmall.current = false; // Enable the complementary area.
2650  
2651        enableComplementaryArea(scope, identifier);
2652      } else if ( // If the flag is indicating the current complementary should be reopened but another complementary area becomes active,
2653      // remove the flag.
2654      shouldOpenWhenNotSmall.current && activeArea && activeArea !== identifier) {
2655        shouldOpenWhenNotSmall.current = false;
2656      }
2657  
2658      if (isSmall !== previousIsSmall.current) {
2659        previousIsSmall.current = isSmall;
2660      }
2661    }, [isActive, isSmall, scope, identifier, activeArea]);
2662  }
2663  
2664  function ComplementaryArea({
2665    children,
2666    className,
2667    closeLabel = Object(external_wp_i18n_["__"])('Close plugin'),
2668    identifier,
2669    header,
2670    headerClassName,
2671    icon,
2672    isPinnable = true,
2673    panelClassName,
2674    scope,
2675    name,
2676    smallScreenTitle,
2677    title,
2678    toggleShortcut,
2679    isActiveByDefault,
2680    showIconLabels = false
2681  }) {
2682    const {
2683      isActive,
2684      isPinned,
2685      activeArea,
2686      isSmall,
2687      isLarge
2688    } = Object(external_wp_data_["useSelect"])(select => {
2689      const {
2690        getActiveComplementaryArea,
2691        isItemPinned
2692      } = select(store);
2693  
2694      const _activeArea = getActiveComplementaryArea(scope);
2695  
2696      return {
2697        isActive: _activeArea === identifier,
2698        isPinned: isItemPinned(scope, identifier),
2699        activeArea: _activeArea,
2700        isSmall: select(external_wp_viewport_["store"]).isViewportMatch('< medium'),
2701        isLarge: select(external_wp_viewport_["store"]).isViewportMatch('large')
2702      };
2703    }, [identifier, scope]);
2704    useAdjustComplementaryListener(scope, identifier, activeArea, isActive, isSmall);
2705    const {
2706      enableComplementaryArea,
2707      disableComplementaryArea,
2708      pinItem,
2709      unpinItem
2710    } = Object(external_wp_data_["useDispatch"])(store);
2711    Object(external_wp_element_["useEffect"])(() => {
2712      if (isActiveByDefault && activeArea === undefined && !isSmall) {
2713        enableComplementaryArea(scope, identifier);
2714      }
2715    }, [activeArea, isActiveByDefault, scope, identifier, isSmall]);
2716    return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, isPinnable && Object(external_wp_element_["createElement"])(pinned_items, {
2717      scope: scope
2718    }, isPinned && Object(external_wp_element_["createElement"])(complementary_area_toggle, {
2719      scope: scope,
2720      identifier: identifier,
2721      isPressed: isActive && (!showIconLabels || isLarge),
2722      "aria-expanded": isActive,
2723      label: title,
2724      icon: showIconLabels ? check["a" /* default */] : icon,
2725      showTooltip: !showIconLabels,
2726      isTertiary: showIconLabels
2727    })), name && isPinnable && Object(external_wp_element_["createElement"])(ComplementaryAreaMoreMenuItem, {
2728      target: name,
2729      scope: scope,
2730      icon: icon
2731    }, title), isActive && Object(external_wp_element_["createElement"])(ComplementaryAreaFill, {
2732      className: classnames_default()('interface-complementary-area', className),
2733      scope: scope
2734    }, Object(external_wp_element_["createElement"])(complementary_area_header, {
2735      className: headerClassName,
2736      closeLabel: closeLabel,
2737      onClose: () => disableComplementaryArea(scope),
2738      smallScreenTitle: smallScreenTitle,
2739      toggleButtonProps: {
2740        label: closeLabel,
2741        shortcut: toggleShortcut,
2742        scope,
2743        identifier
2744      }
2745    }, header || Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("strong", null, title), isPinnable && Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
2746      className: "interface-complementary-area__pin-unpin-item",
2747      icon: isPinned ? star_filled["a" /* default */] : star_empty["a" /* default */],
2748      label: isPinned ? Object(external_wp_i18n_["__"])('Unpin from toolbar') : Object(external_wp_i18n_["__"])('Pin to toolbar'),
2749      onClick: () => (isPinned ? unpinItem : pinItem)(scope, identifier),
2750      isPressed: isPinned,
2751      "aria-expanded": isPinned
2752    }))), Object(external_wp_element_["createElement"])(external_wp_components_["Panel"], {
2753      className: panelClassName
2754    }, children)));
2755  }
2756  
2757  const ComplementaryAreaWrapped = complementary_area_context(ComplementaryArea);
2758  ComplementaryAreaWrapped.Slot = ComplementaryAreaSlot;
2759  /* harmony default export */ var complementary_area = (ComplementaryAreaWrapped);
2760  
2761  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/fullscreen-mode/index.js
2762  /**
2763   * WordPress dependencies
2764   */
2765  
2766  class fullscreen_mode_FullscreenMode extends external_wp_element_["Component"] {
2767    componentDidMount() {
2768      this.isSticky = false;
2769      this.sync(); // `is-fullscreen-mode` is set in PHP as a body class by Gutenberg, and this causes
2770      // `sticky-menu` to be applied by WordPress and prevents the admin menu being scrolled
2771      // even if `is-fullscreen-mode` is then removed. Let's remove `sticky-menu` here as
2772      // a consequence of the FullscreenMode setup
2773  
2774      if (document.body.classList.contains('sticky-menu')) {
2775        this.isSticky = true;
2776        document.body.classList.remove('sticky-menu');
2777      }
2778    }
2779  
2780    componentWillUnmount() {
2781      if (this.isSticky) {
2782        document.body.classList.add('sticky-menu');
2783      }
2784  
2785      if (this.props.isActive) {
2786        document.body.classList.remove('is-fullscreen-mode');
2787      }
2788    }
2789  
2790    componentDidUpdate(prevProps) {
2791      if (this.props.isActive !== prevProps.isActive) {
2792        this.sync();
2793      }
2794    }
2795  
2796    sync() {
2797      const {
2798        isActive
2799      } = this.props;
2800  
2801      if (isActive) {
2802        document.body.classList.add('is-fullscreen-mode');
2803      } else {
2804        document.body.classList.remove('is-fullscreen-mode');
2805      }
2806    }
2807  
2808    render() {
2809      return null;
2810    }
2811  
2812  }
2813  /* harmony default export */ var fullscreen_mode = (fullscreen_mode_FullscreenMode);
2814  
2815  // EXTERNAL MODULE: external ["wp","compose"]
2816  var external_wp_compose_ = __webpack_require__("K9lf");
2817  
2818  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/interface-skeleton/index.js
2819  
2820  
2821  /**
2822   * External dependencies
2823   */
2824  
2825  /**
2826   * WordPress dependencies
2827   */
2828  
2829  /**
2830   * WordPress dependencies
2831   */
2832  
2833  
2834  
2835  
2836  
2837  
2838  function useHTMLClass(className) {
2839    Object(external_wp_element_["useEffect"])(() => {
2840      const element = document && document.querySelector(`html:not(.$className})`);
2841  
2842      if (!element) {
2843        return;
2844      }
2845  
2846      element.classList.toggle(className);
2847      return () => {
2848        element.classList.toggle(className);
2849      };
2850    }, [className]);
2851  }
2852  
2853  function InterfaceSkeleton({
2854    footer,
2855    header,
2856    sidebar,
2857    secondarySidebar,
2858    notices,
2859    content,
2860    drawer,
2861    actions,
2862    labels,
2863    className,
2864    shortcuts
2865  }, ref) {
2866    const fallbackRef = Object(external_wp_element_["useRef"])();
2867    const regionsClassName = Object(external_wp_components_["__unstableUseNavigateRegions"])(fallbackRef, shortcuts);
2868    useHTMLClass('interface-interface-skeleton__html-container');
2869    const defaultLabels = {
2870      /* translators: accessibility text for the nav bar landmark region. */
2871      drawer: Object(external_wp_i18n_["__"])('Drawer'),
2872  
2873      /* translators: accessibility text for the top bar landmark region. */
2874      header: Object(external_wp_i18n_["__"])('Header'),
2875  
2876      /* translators: accessibility text for the content landmark region. */
2877      body: Object(external_wp_i18n_["__"])('Content'),
2878  
2879      /* translators: accessibility text for the secondary sidebar landmark region. */
2880      secondarySidebar: Object(external_wp_i18n_["__"])('Block Library'),
2881  
2882      /* translators: accessibility text for the settings landmark region. */
2883      sidebar: Object(external_wp_i18n_["__"])('Settings'),
2884  
2885      /* translators: accessibility text for the publish landmark region. */
2886      actions: Object(external_wp_i18n_["__"])('Publish'),
2887  
2888      /* translators: accessibility text for the footer landmark region. */
2889      footer: Object(external_wp_i18n_["__"])('Footer')
2890    };
2891    const mergedLabels = { ...defaultLabels,
2892      ...labels
2893    };
2894    return Object(external_wp_element_["createElement"])("div", {
2895      ref: Object(external_wp_compose_["useMergeRefs"])([ref, fallbackRef]),
2896      className: classnames_default()(className, 'interface-interface-skeleton', regionsClassName, !!footer && 'has-footer')
2897    }, !!drawer && Object(external_wp_element_["createElement"])("div", {
2898      className: "interface-interface-skeleton__drawer",
2899      role: "region",
2900      "aria-label": mergedLabels.drawer
2901    }, drawer), Object(external_wp_element_["createElement"])("div", {
2902      className: "interface-interface-skeleton__editor"
2903    }, !!header && Object(external_wp_element_["createElement"])("div", {
2904      className: "interface-interface-skeleton__header",
2905      role: "region",
2906      "aria-label": mergedLabels.header,
2907      tabIndex: "-1"
2908    }, header), Object(external_wp_element_["createElement"])("div", {
2909      className: "interface-interface-skeleton__body"
2910    }, !!secondarySidebar && Object(external_wp_element_["createElement"])("div", {
2911      className: "interface-interface-skeleton__secondary-sidebar",
2912      role: "region",
2913      "aria-label": mergedLabels.secondarySidebar,
2914      tabIndex: "-1"
2915    }, secondarySidebar), !!notices && Object(external_wp_element_["createElement"])("div", {
2916      className: "interface-interface-skeleton__notices"
2917    }, notices), Object(external_wp_element_["createElement"])("div", {
2918      className: "interface-interface-skeleton__content",
2919      role: "region",
2920      "aria-label": mergedLabels.body,
2921      tabIndex: "-1"
2922    }, content), !!sidebar && Object(external_wp_element_["createElement"])("div", {
2923      className: "interface-interface-skeleton__sidebar",
2924      role: "region",
2925      "aria-label": mergedLabels.sidebar,
2926      tabIndex: "-1"
2927    }, sidebar), !!actions && Object(external_wp_element_["createElement"])("div", {
2928      className: "interface-interface-skeleton__actions",
2929      role: "region",
2930      "aria-label": mergedLabels.actions,
2931      tabIndex: "-1"
2932    }, actions))), !!footer && Object(external_wp_element_["createElement"])("div", {
2933      className: "interface-interface-skeleton__footer",
2934      role: "region",
2935      "aria-label": mergedLabels.footer,
2936      tabIndex: "-1"
2937    }, footer));
2938  }
2939  
2940  /* harmony default export */ var interface_skeleton = (Object(external_wp_element_["forwardRef"])(InterfaceSkeleton));
2941  
2942  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/components/index.js
2943  
2944  
2945  
2946  
2947  
2948  
2949  
2950  // CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/index.js
2951  
2952  
2953  
2954  
2955  /***/ }),
2956  
2957  /***/ "URob":
2958  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2959  
2960  "use strict";
2961  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
2962  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
2963  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
2964  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
2965  
2966  
2967  /**
2968   * WordPress dependencies
2969   */
2970  
2971  const starFilled = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
2972    xmlns: "http://www.w3.org/2000/svg",
2973    viewBox: "0 0 24 24"
2974  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
2975    d: "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"
2976  }));
2977  /* harmony default export */ __webpack_exports__["a"] = (starFilled);
2978  
2979  
2980  /***/ }),
2981  
2982  /***/ "VKE3":
2983  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2984  
2985  "use strict";
2986  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
2987  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
2988  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
2989  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
2990  
2991  
2992  /**
2993   * WordPress dependencies
2994   */
2995  
2996  const moreVertical = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
2997    xmlns: "http://www.w3.org/2000/svg",
2998    viewBox: "0 0 24 24"
2999  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
3000    d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
3001  }));
3002  /* harmony default export */ __webpack_exports__["a"] = (moreVertical);
3003  
3004  
3005  /***/ }),
3006  
3007  /***/ "Xxwi":
3008  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3009  
3010  "use strict";
3011  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
3012  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
3013  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
3014  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
3015  
3016  
3017  /**
3018   * WordPress dependencies
3019   */
3020  
3021  const starEmpty = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
3022    xmlns: "http://www.w3.org/2000/svg",
3023    viewBox: "0 0 24 24"
3024  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
3025    fillRule: "evenodd",
3026    d: "M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",
3027    clipRule: "evenodd"
3028  }));
3029  /* harmony default export */ __webpack_exports__["a"] = (starEmpty);
3030  
3031  
3032  /***/ }),
3033  
3034  /***/ "Y5n4":
3035  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3036  
3037  "use strict";
3038  
3039  // EXPORTS
3040  __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ enable_custom_fields; });
3041  __webpack_require__.d(__webpack_exports__, "c", function() { return /* reexport */ enable_panel; });
3042  __webpack_require__.d(__webpack_exports__, "d", function() { return /* reexport */ enable_plugin_document_setting_panel; });
3043  __webpack_require__.d(__webpack_exports__, "e", function() { return /* reexport */ enable_publish_sidebar; });
3044  __webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ enable_feature; });
3045  
3046  // EXTERNAL MODULE: external ["wp","element"]
3047  var external_wp_element_ = __webpack_require__("GRId");
3048  
3049  // EXTERNAL MODULE: external ["wp","i18n"]
3050  var external_wp_i18n_ = __webpack_require__("l3Sj");
3051  
3052  // EXTERNAL MODULE: external ["wp","components"]
3053  var external_wp_components_ = __webpack_require__("tI+e");
3054  
3055  // EXTERNAL MODULE: external ["wp","data"]
3056  var external_wp_data_ = __webpack_require__("1ZqX");
3057  
3058  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/base.js
3059  
3060  
3061  /**
3062   * WordPress dependencies
3063   */
3064  
3065  
3066  function BaseOption({
3067    help,
3068    label,
3069    isChecked,
3070    onChange,
3071    children
3072  }) {
3073    return Object(external_wp_element_["createElement"])("div", {
3074      className: "edit-post-preferences-modal__option"
3075    }, Object(external_wp_element_["createElement"])(external_wp_components_["ToggleControl"], {
3076      help: help,
3077      label: label,
3078      checked: isChecked,
3079      onChange: onChange
3080    }), children);
3081  }
3082  
3083  /* harmony default export */ var base = (BaseOption);
3084  
3085  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/enable-custom-fields.js
3086  
3087  
3088  /**
3089   * WordPress dependencies
3090   */
3091  
3092  
3093  
3094  
3095  /**
3096   * Internal dependencies
3097   */
3098  
3099  
3100  function CustomFieldsConfirmation({
3101    willEnable
3102  }) {
3103    const [isReloading, setIsReloading] = Object(external_wp_element_["useState"])(false);
3104    return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("p", {
3105      className: "edit-post-preferences-modal__custom-fields-confirmation-message"
3106    }, Object(external_wp_i18n_["__"])('A page reload is required for this change. Make sure your content is saved before reloading.')), Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
3107      className: "edit-post-preferences-modal__custom-fields-confirmation-button",
3108      isSecondary: true,
3109      isBusy: isReloading,
3110      disabled: isReloading,
3111      onClick: () => {
3112        setIsReloading(true);
3113        document.getElementById('toggle-custom-fields-form').submit();
3114      }
3115    }, willEnable ? Object(external_wp_i18n_["__"])('Enable & Reload') : Object(external_wp_i18n_["__"])('Disable & Reload')));
3116  }
3117  function EnableCustomFieldsOption({
3118    label,
3119    areCustomFieldsEnabled
3120  }) {
3121    const [isChecked, setIsChecked] = Object(external_wp_element_["useState"])(areCustomFieldsEnabled);
3122    return Object(external_wp_element_["createElement"])(base, {
3123      label: label,
3124      isChecked: isChecked,
3125      onChange: setIsChecked
3126    }, isChecked !== areCustomFieldsEnabled && Object(external_wp_element_["createElement"])(CustomFieldsConfirmation, {
3127      willEnable: isChecked
3128    }));
3129  }
3130  /* harmony default export */ var enable_custom_fields = (Object(external_wp_data_["withSelect"])(select => ({
3131    areCustomFieldsEnabled: !!select('core/editor').getEditorSettings().enableCustomFields
3132  }))(EnableCustomFieldsOption));
3133  
3134  // EXTERNAL MODULE: external ["wp","compose"]
3135  var external_wp_compose_ = __webpack_require__("K9lf");
3136  
3137  // EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/store/index.js + 5 modules
3138  var store = __webpack_require__("T40v");
3139  
3140  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/enable-panel.js
3141  /**
3142   * WordPress dependencies
3143   */
3144  
3145  
3146  /**
3147   * Internal dependencies
3148   */
3149  
3150  
3151  
3152  /* harmony default export */ var enable_panel = (Object(external_wp_compose_["compose"])(Object(external_wp_data_["withSelect"])((select, {
3153    panelName
3154  }) => {
3155    const {
3156      isEditorPanelEnabled,
3157      isEditorPanelRemoved
3158    } = select(store["a" /* store */]);
3159    return {
3160      isRemoved: isEditorPanelRemoved(panelName),
3161      isChecked: isEditorPanelEnabled(panelName)
3162    };
3163  }), Object(external_wp_compose_["ifCondition"])(({
3164    isRemoved
3165  }) => !isRemoved), Object(external_wp_data_["withDispatch"])((dispatch, {
3166    panelName
3167  }) => ({
3168    onChange: () => dispatch(store["a" /* store */]).toggleEditorPanelEnabled(panelName)
3169  })))(base));
3170  
3171  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/enable-plugin-document-setting-panel.js
3172  
3173  
3174  /**
3175   * WordPress dependencies
3176   */
3177  
3178  /**
3179   * Internal dependencies
3180   */
3181  
3182  
3183  const {
3184    Fill,
3185    Slot
3186  } = Object(external_wp_components_["createSlotFill"])('EnablePluginDocumentSettingPanelOption');
3187  
3188  const EnablePluginDocumentSettingPanelOption = ({
3189    label,
3190    panelName
3191  }) => Object(external_wp_element_["createElement"])(Fill, null, Object(external_wp_element_["createElement"])(enable_panel, {
3192    label: label,
3193    panelName: panelName
3194  }));
3195  
3196  EnablePluginDocumentSettingPanelOption.Slot = Slot;
3197  /* harmony default export */ var enable_plugin_document_setting_panel = (EnablePluginDocumentSettingPanelOption);
3198  
3199  // EXTERNAL MODULE: external ["wp","viewport"]
3200  var external_wp_viewport_ = __webpack_require__("KEfo");
3201  
3202  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/enable-publish-sidebar.js
3203  /**
3204   * WordPress dependencies
3205   */
3206  
3207  
3208  
3209  /**
3210   * Internal dependencies
3211   */
3212  
3213  
3214  /* harmony default export */ var enable_publish_sidebar = (Object(external_wp_compose_["compose"])(Object(external_wp_data_["withSelect"])(select => ({
3215    isChecked: select('core/editor').isPublishSidebarEnabled()
3216  })), Object(external_wp_data_["withDispatch"])(dispatch => {
3217    const {
3218      enablePublishSidebar,
3219      disablePublishSidebar
3220    } = dispatch('core/editor');
3221    return {
3222      onChange: isEnabled => isEnabled ? enablePublishSidebar() : disablePublishSidebar()
3223    };
3224  }), // In < medium viewports we override this option and always show the publish sidebar.
3225  // See the edit-post's header component for the specific logic.
3226  Object(external_wp_viewport_["ifViewportMatches"])('medium'))(base));
3227  
3228  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/enable-feature.js
3229  /**
3230   * WordPress dependencies
3231   */
3232  
3233  
3234  /**
3235   * Internal dependencies
3236   */
3237  
3238  
3239  
3240  /* harmony default export */ var enable_feature = (Object(external_wp_compose_["compose"])(Object(external_wp_data_["withSelect"])((select, {
3241    featureName
3242  }) => {
3243    const {
3244      isFeatureActive
3245    } = select(store["a" /* store */]);
3246    return {
3247      isChecked: isFeatureActive(featureName)
3248    };
3249  }), Object(external_wp_data_["withDispatch"])((dispatch, {
3250    featureName
3251  }) => ({
3252    onChange: () => dispatch(store["a" /* store */]).toggleFeature(featureName)
3253  })))(base));
3254  
3255  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/index.js
3256  
3257  
3258  
3259  
3260  
3261  
3262  
3263  /***/ }),
3264  
3265  /***/ "YLtl":
3266  /***/ (function(module, exports) {
3267  
3268  (function() { module.exports = window["lodash"]; }());
3269  
3270  /***/ }),
3271  
3272  /***/ "Z23Y":
3273  /***/ (function(module, exports) {
3274  
3275  (function() { module.exports = window["wp"]["warning"]; }());
3276  
3277  /***/ }),
3278  
3279  /***/ "axFQ":
3280  /***/ (function(module, exports) {
3281  
3282  (function() { module.exports = window["wp"]["blockEditor"]; }());
3283  
3284  /***/ }),
3285  
3286  /***/ "bWcr":
3287  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3288  
3289  "use strict";
3290  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
3291  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
3292  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
3293  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
3294  
3295  
3296  /**
3297   * WordPress dependencies
3298   */
3299  
3300  const closeSmall = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
3301    xmlns: "http://www.w3.org/2000/svg",
3302    viewBox: "0 0 24 24"
3303  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
3304    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"
3305  }));
3306  /* harmony default export */ __webpack_exports__["a"] = (closeSmall);
3307  
3308  
3309  /***/ }),
3310  
3311  /***/ "cDcd":
3312  /***/ (function(module, exports) {
3313  
3314  (function() { module.exports = window["React"]; }());
3315  
3316  /***/ }),
3317  
3318  /***/ "cjQ8":
3319  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3320  
3321  "use strict";
3322  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
3323  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
3324  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
3325  /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
3326  
3327  
3328  /**
3329   * WordPress dependencies
3330   */
3331  
3332  const arrowLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
3333    xmlns: "http://www.w3.org/2000/svg",
3334    viewBox: "0 0 24 24"
3335  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
3336    d: "M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"
3337  }));
3338  /* harmony default export */ __webpack_exports__["a"] = (arrowLeft);
3339  
3340  
3341  /***/ }),
3342  
3343  /***/ "dSQ2":
3344  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3345  
3346  "use strict";
3347  // ESM COMPAT FLAG
3348  __webpack_require__.r(__webpack_exports__);
3349  
3350  // EXPORTS
3351  __webpack_require__.d(__webpack_exports__, "store", function() { return /* reexport */ store["a" /* store */]; });
3352  __webpack_require__.d(__webpack_exports__, "reinitializeEditor", function() { return /* binding */ reinitializeEditor; });
3353  __webpack_require__.d(__webpack_exports__, "initializeEditor", function() { return /* binding */ initializeEditor; });
3354  __webpack_require__.d(__webpack_exports__, "PluginBlockSettingsMenuItem", function() { return /* reexport */ plugin_block_settings_menu_item; });
3355  __webpack_require__.d(__webpack_exports__, "PluginDocumentSettingPanel", function() { return /* reexport */ plugin_document_setting_panel["a" /* default */]; });
3356  __webpack_require__.d(__webpack_exports__, "PluginMoreMenuItem", function() { return /* reexport */ plugin_more_menu_item; });
3357  __webpack_require__.d(__webpack_exports__, "PluginPostPublishPanel", function() { return /* reexport */ plugin_post_publish_panel; });
3358  __webpack_require__.d(__webpack_exports__, "PluginPostStatusInfo", function() { return /* reexport */ plugin_post_status_info; });
3359  __webpack_require__.d(__webpack_exports__, "PluginPrePublishPanel", function() { return /* reexport */ plugin_pre_publish_panel; });
3360  __webpack_require__.d(__webpack_exports__, "PluginSidebar", function() { return /* reexport */ PluginSidebarEditPost; });
3361  __webpack_require__.d(__webpack_exports__, "PluginSidebarMoreMenuItem", function() { return /* reexport */ PluginSidebarMoreMenuItem; });
3362  __webpack_require__.d(__webpack_exports__, "__experimentalFullscreenModeClose", function() { return /* reexport */ fullscreen_mode_close; });
3363  __webpack_require__.d(__webpack_exports__, "__experimentalMainDashboardButton", function() { return /* reexport */ main_dashboard_button; });
3364  
3365  // EXTERNAL MODULE: external ["wp","element"]
3366  var external_wp_element_ = __webpack_require__("GRId");
3367  
3368  // EXTERNAL MODULE: external ["wp","coreData"]
3369  var external_wp_coreData_ = __webpack_require__("jZUy");
3370  
3371  // EXTERNAL MODULE: external ["wp","blockEditor"]
3372  var external_wp_blockEditor_ = __webpack_require__("axFQ");
3373  
3374  // EXTERNAL MODULE: external ["wp","editor"]
3375  var external_wp_editor_ = __webpack_require__("jSdM");
3376  
3377  // EXTERNAL MODULE: external ["wp","blockLibrary"]
3378  var external_wp_blockLibrary_ = __webpack_require__("QyPg");
3379  
3380  // EXTERNAL MODULE: external ["wp","hooks"]
3381  var external_wp_hooks_ = __webpack_require__("g56x");
3382  
3383  // EXTERNAL MODULE: external ["wp","mediaUtils"]
3384  var external_wp_mediaUtils_ = __webpack_require__("6aBm");
3385  
3386  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/components/index.js
3387  /**
3388   * WordPress dependencies
3389   */
3390  
3391  
3392  
3393  const replaceMediaUpload = () => external_wp_mediaUtils_["MediaUpload"];
3394  
3395  Object(external_wp_hooks_["addFilter"])('editor.MediaUpload', 'core/edit-post/replace-media-upload', replaceMediaUpload);
3396  
3397  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
3398  var esm_extends = __webpack_require__("wx14");
3399  
3400  // EXTERNAL MODULE: external "lodash"
3401  var external_lodash_ = __webpack_require__("YLtl");
3402  
3403  // EXTERNAL MODULE: external ["wp","blocks"]
3404  var external_wp_blocks_ = __webpack_require__("HSyU");
3405  
3406  // EXTERNAL MODULE: external ["wp","components"]
3407  var external_wp_components_ = __webpack_require__("tI+e");
3408  
3409  // EXTERNAL MODULE: external ["wp","data"]
3410  var external_wp_data_ = __webpack_require__("1ZqX");
3411  
3412  // EXTERNAL MODULE: external ["wp","i18n"]
3413  var external_wp_i18n_ = __webpack_require__("l3Sj");
3414  
3415  // EXTERNAL MODULE: external ["wp","compose"]
3416  var external_wp_compose_ = __webpack_require__("K9lf");
3417  
3418  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/validate-multiple-use/index.js
3419  
3420  
3421  
3422  /**
3423   * External dependencies
3424   */
3425  
3426  /**
3427   * WordPress dependencies
3428   */
3429  
3430  
3431  
3432  
3433  
3434  
3435  
3436  
3437  const enhance = Object(external_wp_compose_["compose"])(
3438  /**
3439   * For blocks whose block type doesn't support `multiple`, provides the
3440   * wrapped component with `originalBlockClientId` -- a reference to the
3441   * first block of the same type in the content -- if and only if that
3442   * "original" block is not the current one. Thus, an inexisting
3443   * `originalBlockClientId` prop signals that the block is valid.
3444   *
3445   * @param {WPComponent} WrappedBlockEdit A filtered BlockEdit instance.
3446   *
3447   * @return {WPComponent} Enhanced component with merged state data props.
3448   */
3449  Object(external_wp_data_["withSelect"])((select, block) => {
3450    const multiple = Object(external_wp_blocks_["hasBlockSupport"])(block.name, 'multiple', true); // For block types with `multiple` support, there is no "original
3451    // block" to be found in the content, as the block itself is valid.
3452  
3453    if (multiple) {
3454      return {};
3455    } // Otherwise, only pass `originalBlockClientId` if it refers to a different
3456    // block from the current one.
3457  
3458  
3459    const blocks = select(external_wp_blockEditor_["store"]).getBlocks();
3460    const firstOfSameType = Object(external_lodash_["find"])(blocks, ({
3461      name
3462    }) => block.name === name);
3463    const isInvalid = firstOfSameType && firstOfSameType.clientId !== block.clientId;
3464    return {
3465      originalBlockClientId: isInvalid && firstOfSameType.clientId
3466    };
3467  }), Object(external_wp_data_["withDispatch"])((dispatch, {
3468    originalBlockClientId
3469  }) => ({
3470    selectFirst: () => dispatch(external_wp_blockEditor_["store"]).selectBlock(originalBlockClientId)
3471  })));
3472  const withMultipleValidation = Object(external_wp_compose_["createHigherOrderComponent"])(BlockEdit => {
3473    return enhance(({
3474      originalBlockClientId,
3475      selectFirst,
3476      ...props
3477    }) => {
3478      if (!originalBlockClientId) {
3479        return Object(external_wp_element_["createElement"])(BlockEdit, props);
3480      }
3481  
3482      const blockType = Object(external_wp_blocks_["getBlockType"])(props.name);
3483      const outboundType = getOutboundType(props.name);
3484      return [Object(external_wp_element_["createElement"])("div", {
3485        key: "invalid-preview",
3486        style: {
3487          minHeight: '60px'
3488        }
3489      }, Object(external_wp_element_["createElement"])(BlockEdit, Object(esm_extends["a" /* default */])({
3490        key: "block-edit"
3491      }, props))), Object(external_wp_element_["createElement"])(external_wp_blockEditor_["Warning"], {
3492        key: "multiple-use-warning",
3493        actions: [Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
3494          key: "find-original",
3495          isSecondary: true,
3496          onClick: selectFirst
3497        }, Object(external_wp_i18n_["__"])('Find original')), Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
3498          key: "remove",
3499          isSecondary: true,
3500          onClick: () => props.onReplace([])
3501        }, Object(external_wp_i18n_["__"])('Remove')), outboundType && Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
3502          key: "transform",
3503          isSecondary: true,
3504          onClick: () => props.onReplace(Object(external_wp_blocks_["createBlock"])(outboundType.name, props.attributes))
3505        }, Object(external_wp_i18n_["__"])('Transform into:'), " ", outboundType.title)]
3506      }, Object(external_wp_element_["createElement"])("strong", null, blockType.title, ": "), Object(external_wp_i18n_["__"])('This block can only be used once.'))];
3507    });
3508  }, 'withMultipleValidation');
3509  /**
3510   * Given a base block name, returns the default block type to which to offer
3511   * transforms.
3512   *
3513   * @param {string} blockName Base block name.
3514   *
3515   * @return {?Object} The chosen default block type.
3516   */
3517  
3518  function getOutboundType(blockName) {
3519    // Grab the first outbound transform
3520    const transform = Object(external_wp_blocks_["findTransform"])(Object(external_wp_blocks_["getBlockTransforms"])('to', blockName), ({
3521      type,
3522      blocks
3523    }) => type === 'block' && blocks.length === 1 // What about when .length > 1?
3524    );
3525  
3526    if (!transform) {
3527      return null;
3528    }
3529  
3530    return Object(external_wp_blocks_["getBlockType"])(transform.blocks[0]);
3531  }
3532  
3533  Object(external_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/edit-post/validate-multiple-use/with-multiple-validation', withMultipleValidation);
3534  
3535  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/index.js
3536  /**
3537   * Internal dependencies
3538   */
3539  
3540  
3541  
3542  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js
3543  var external = __webpack_require__("K+tz");
3544  
3545  // EXTERNAL MODULE: external ["wp","plugins"]
3546  var external_wp_plugins_ = __webpack_require__("TvNi");
3547  
3548  // EXTERNAL MODULE: external ["wp","url"]
3549  var external_wp_url_ = __webpack_require__("Mmq9");
3550  
3551  // EXTERNAL MODULE: external ["wp","notices"]
3552  var external_wp_notices_ = __webpack_require__("onLe");
3553  
3554  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/copy-content-menu-item/index.js
3555  
3556  
3557  /**
3558   * WordPress dependencies
3559   */
3560  
3561  
3562  
3563  
3564  
3565  
3566  function CopyContentMenuItem() {
3567    const {
3568      createNotice
3569    } = Object(external_wp_data_["useDispatch"])(external_wp_notices_["store"]);
3570    const getText = Object(external_wp_data_["useSelect"])(select => () => select(external_wp_editor_["store"]).getEditedPostAttribute('content'), []);
3571  
3572    function onSuccess() {
3573      createNotice('info', Object(external_wp_i18n_["__"])('All content copied.'), {
3574        isDismissible: true,
3575        type: 'snackbar'
3576      });
3577    }
3578  
3579    const ref = Object(external_wp_compose_["useCopyToClipboard"])(getText, onSuccess);
3580    return Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
3581      ref: ref
3582    }, Object(external_wp_i18n_["__"])('Copy all content'));
3583  }
3584  
3585  // EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/store/index.js + 5 modules
3586  var store = __webpack_require__("T40v");
3587  
3588  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/manage-blocks-menu-item/index.js
3589  
3590  
3591  /**
3592   * WordPress dependencies
3593   */
3594  
3595  
3596  
3597  /**
3598   * Internal dependencies
3599   */
3600  
3601  
3602  function ManageBlocksMenuItem({
3603    openModal
3604  }) {
3605    return Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
3606      onClick: () => {
3607        openModal('edit-post/manage-blocks');
3608      }
3609    }, Object(external_wp_i18n_["__"])('Block Manager'));
3610  }
3611  /* harmony default export */ var manage_blocks_menu_item = (Object(external_wp_data_["withDispatch"])(dispatch => {
3612    const {
3613      openModal
3614    } = dispatch(store["a" /* store */]);
3615    return {
3616      openModal
3617    };
3618  })(ManageBlocksMenuItem));
3619  
3620  // EXTERNAL MODULE: external ["wp","keycodes"]
3621  var external_wp_keycodes_ = __webpack_require__("RxS6");
3622  
3623  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/keyboard-shortcuts-help-menu-item/index.js
3624  
3625  
3626  /**
3627   * WordPress dependencies
3628   */
3629  
3630  
3631  
3632  
3633  /**
3634   * Internal dependencies
3635   */
3636  
3637  
3638  function KeyboardShortcutsHelpMenuItem({
3639    openModal
3640  }) {
3641    return Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
3642      onClick: () => {
3643        openModal('edit-post/keyboard-shortcut-help');
3644      },
3645      shortcut: external_wp_keycodes_["displayShortcut"].access('h')
3646    }, Object(external_wp_i18n_["__"])('Keyboard shortcuts'));
3647  }
3648  /* harmony default export */ var keyboard_shortcuts_help_menu_item = (Object(external_wp_data_["withDispatch"])(dispatch => {
3649    const {
3650      openModal
3651    } = dispatch(store["a" /* store */]);
3652    return {
3653      openModal
3654    };
3655  })(KeyboardShortcutsHelpMenuItem));
3656  
3657  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/tools-more-menu-group/index.js
3658  
3659  
3660  /**
3661   * External dependencies
3662   */
3663  
3664  /**
3665   * WordPress dependencies
3666   */
3667  
3668  
3669  
3670  const {
3671    Fill: ToolsMoreMenuGroup,
3672    Slot
3673  } = Object(external_wp_components_["createSlotFill"])('ToolsMoreMenuGroup');
3674  
3675  ToolsMoreMenuGroup.Slot = ({
3676    fillProps
3677  }) => Object(external_wp_element_["createElement"])(Slot, {
3678    fillProps: fillProps
3679  }, fills => !Object(external_lodash_["isEmpty"])(fills) && Object(external_wp_element_["createElement"])(external_wp_components_["MenuGroup"], {
3680    label: Object(external_wp_i18n_["__"])('Tools')
3681  }, fills));
3682  
3683  /* harmony default export */ var tools_more_menu_group = (ToolsMoreMenuGroup);
3684  
3685  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/welcome-guide-menu-item/index.js
3686  
3687  
3688  /**
3689   * WordPress dependencies
3690   */
3691  
3692  
3693  
3694  /**
3695   * Internal dependencies
3696   */
3697  
3698  
3699  function WelcomeGuideMenuItem() {
3700    const isTemplateMode = Object(external_wp_data_["useSelect"])(select => select(store["a" /* store */]).isEditingTemplate(), []);
3701    const {
3702      toggleFeature
3703    } = Object(external_wp_data_["useDispatch"])(store["a" /* store */]);
3704    return Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
3705      onClick: () => toggleFeature(isTemplateMode ? 'welcomeGuideTemplate' : 'welcomeGuide')
3706    }, Object(external_wp_i18n_["__"])('Welcome Guide'));
3707  }
3708  
3709  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/index.js
3710  
3711  
3712  /**
3713   * WordPress dependencies
3714   */
3715  
3716  
3717  
3718  
3719  
3720  /**
3721   * Internal dependencies
3722   */
3723  
3724  
3725  
3726  
3727  
3728  
3729  Object(external_wp_plugins_["registerPlugin"])('edit-post', {
3730    render() {
3731      return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(tools_more_menu_group, null, ({
3732        onClose
3733      }) => Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(manage_blocks_menu_item, {
3734        onSelect: onClose
3735      }), Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
3736        role: "menuitem",
3737        href: Object(external_wp_url_["addQueryArgs"])('edit.php', {
3738          post_type: 'wp_block'
3739        })
3740      }, Object(external_wp_i18n_["__"])('Manage Reusable blocks')), Object(external_wp_element_["createElement"])(keyboard_shortcuts_help_menu_item, {
3741        onSelect: onClose
3742      }), Object(external_wp_element_["createElement"])(WelcomeGuideMenuItem, null), Object(external_wp_element_["createElement"])(CopyContentMenuItem, null), Object(external_wp_element_["createElement"])(external_wp_components_["MenuItem"], {
3743        role: "menuitem",
3744        icon: external["a" /* default */],
3745        href: Object(external_wp_i18n_["__"])('https://wordpress.org/support/article/wordpress-editor/'),
3746        target: "_blank",
3747        rel: "noopener noreferrer"
3748      }, Object(external_wp_i18n_["__"])('Help'), Object(external_wp_element_["createElement"])(external_wp_components_["VisuallyHidden"], {
3749        as: "span"
3750      },
3751      /* translators: accessibility text */
3752      Object(external_wp_i18n_["__"])('(opens in a new tab)'))))));
3753    }
3754  
3755  });
3756  
3757  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/prevent-event-discovery.js
3758  /* harmony default export */ var prevent_event_discovery = ({
3759    't a l e s o f g u t e n b e r g': event => {
3760      const {
3761        ownerDocument
3762      } = event.target;
3763  
3764      if (!ownerDocument.activeElement.classList.contains('edit-post-visual-editor') && ownerDocument.activeElement !== ownerDocument.body) {
3765        return;
3766      }
3767  
3768      event.preventDefault();
3769      window.wp.data.dispatch('core/block-editor').insertBlock(window.wp.blocks.createBlock('core/paragraph', {
3770        content: '🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️'
3771      }));
3772    }
3773  });
3774  
3775  // EXTERNAL MODULE: ./node_modules/classnames/index.js
3776  var classnames = __webpack_require__("TSYQ");
3777  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
3778  
3779  // EXTERNAL MODULE: ./node_modules/@wordpress/interface/build-module/index.js + 15 modules
3780  var build_module = __webpack_require__("U60i");
3781  
3782  // EXTERNAL MODULE: external ["wp","keyboardShortcuts"]
3783  var external_wp_keyboardShortcuts_ = __webpack_require__("hF7m");
3784  
3785  // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/text-editor/index.js
3786  
3787  
3788  /**
3789   * WordPress dependencies
3790   */
3791  
3792  
3793  
3794  
3795  
3796  
3797  /**
3798   * Internal dependencies
3799   */
3800  
3801  
3802  
3803  function TextEditor({
3804    onExit,
3805    isRichEditingEnabled
3806  }) {
3807    return Object(external_wp_element_["createElement"])("div", {
3808      className: "edit-post-text-editor"
3809    }, isRichEditingEnabled && Object(external_wp_element_["createElement"])("div", {
3810      className: "edit-post-text-editor__toolbar"
3811    }, Object(external_wp_element_["createElement"])("h2", null, Object(external_wp_i18n_["__"])('Editing code')), Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
3812      isTertiary: true,
3813      onClick: onExit,
3814      shortcut: external_wp_keycodes_["displayShortcut"].secondary('m')
3815    }, Object(external_wp_i18n_["__"])('Exit code editor')), Object(external_wp_element_["createElement"])(external_wp_editor_["TextEditorGlobalKeyboardShortcuts"], null)), Object(external_wp_element_["createElement"])("div", {
3816      className: "edit-post-text-editor__body"
3817    }, Object(external_wp_element_["createElement"])(external_wp_editor_["PostTitle"], null), Object(external_wp_element_["createElement"])(external_wp_editor_["PostTextEditor"], null)));
3818  }
3819  
3820  /* harmony default export */ var text_editor = (Object(external_wp_compose_["compose"])(Object(external_wp_data_["withSelect"])(select => ({
3821    isRichEditingEnabled: select('core/editor').getEditorSettings().richEditingEnabled
3822  })), Object(external_wp_data_["withDispatch"])(dispatch => {
3823    return {
3824      onExit() {
3825        dispatch(store["a" /* store */]).switchEditorMode('visual');
3826      }
3827  
3828    };
3829  }))(TextEditor));
3830  
3831  // CONCATENATED MODULE: ./node_modules/framer-motion/node_modules/tslib/tslib.es6.js
3832  /*! *****************************************************************************

3833  Copyright (c) Microsoft Corporation.

3834  

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

3836  purpose with or without fee is hereby granted.

3837  

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

3839  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY

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

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

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

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

3844  PERFORMANCE OF THIS SOFTWARE.

3845  ***************************************************************************** */
3846  /* global Reflect, Promise */

3847  
3848  var extendStatics = function(d, b) {
3849      extendStatics = Object.setPrototypeOf ||
3850          ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
3851          function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
3852      return extendStatics(d, b);
3853  };
3854  
3855  function __extends(d, b) {
3856      if (typeof b !== "function" && b !== null)
3857          throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
3858      extendStatics(d, b);
3859      function __() { this.constructor = d; }
3860      d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3861  }
3862  
3863  var __assign = function() {
3864      __assign = Object.assign || function __assign(t) {
3865          for (var s, i = 1, n = arguments.length; i < n; i++) {
3866              s = arguments[i];
3867              for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
3868          }
3869          return t;
3870      }
3871      return __assign.apply(this, arguments);
3872  }
3873  
3874  function __rest(s, e) {
3875      var t = {};
3876      for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
3877          t[p] = s[p];
3878      if (s != null && typeof Object.getOwnPropertySymbols === "function")
3879          for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
3880              if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
3881                  t[p[i]] = s[p[i]];
3882          }
3883      return t;
3884  }
3885  
3886  function __decorate(decorators, target, key, desc) {
3887      var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3888      if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3889      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;
3890      return c > 3 && r && Object.defineProperty(target, key, r), r;
3891  }
3892  
3893  function __param(paramIndex, decorator) {
3894      return function (target, key) { decorator(target, key, paramIndex); }
3895  }
3896  
3897  function __metadata(metadataKey, metadataValue) {
3898      if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
3899  }
3900  
3901  function __awaiter(thisArg, _arguments, P, generator) {
3902      function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3903      return new (P || (P = Promise))(function (resolve, reject) {
3904          function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
3905          function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
3906          function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
3907          step((generator = generator.apply(thisArg, _arguments || [])).next());
3908      });
3909  }
3910  
3911  function __generator(thisArg, body) {
3912      var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
3913      return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
3914      function verb(n) { return function (v) { return step([n, v]); }; }
3915      function step(op) {
3916          if (f) throw new TypeError("Generator is already executing.");
3917          while (_) try {
3918              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;
3919              if (y = 0, t) op = [op[0] & 2, t.value];
3920              switch (op[0]) {
3921                  case 0: case 1: t = op; break;
3922                  case 4: _.label++; return { value: op[1], done: false };
3923                  case 5: _.label++; y = op[1]; op = [0]; continue;
3924                  case 7: op = _.ops.pop(); _.trys.pop(); continue;
3925                  default:
3926                      if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
3927                      if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
3928                      if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
3929                      if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
3930                      if (t[2]) _.ops.pop();
3931                      _.trys.pop(); continue;
3932              }
3933              op = body.call(thisArg, _);
3934          } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
3935          if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
3936      }
3937  }
3938  
3939  var __createBinding = Object.create ? (function(o, m, k, k2) {
3940      if (k2 === undefined) k2 = k;
3941      Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
3942  }) : (function(o, m, k, k2) {
3943      if (k2 === undefined) k2 = k;
3944      o[k2] = m[k];
3945  });
3946  
3947  function __exportStar(m, o) {
3948      for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
3949  }
3950  
3951  function __values(o) {
3952      var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
3953      if (m) return m.call(o);
3954      if (o && typeof o.length === "number") return {
3955          next: function () {
3956              if (o && i >= o.length) o = void 0;
3957              return { value: o && o[i++], done: !o };
3958          }
3959      };
3960      throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
3961  }
3962  
3963  function __read(o, n) {
3964      var m = typeof Symbol === "function" && o[Symbol.iterator];
3965      if (!m) return o;
3966      var i = m.call(o), r, ar = [], e;
3967      try {
3968          while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
3969      }
3970      catch (error) { e = { error: error }; }
3971      finally {
3972          try {
3973              if (r && !r.done && (m = i["return"])) m.call(i);
3974          }
3975          finally { if (e) throw e.error; }
3976      }
3977      return ar;
3978  }
3979  
3980  /** @deprecated */

3981  function __spread() {
3982      for (var ar = [], i = 0; i < arguments.length; i++)
3983          ar = ar.concat(__read(arguments[i]));
3984      return ar;
3985  }
3986  
3987  /** @deprecated */

3988  function __spreadArrays() {
3989      for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
3990      for (var r = Array(s), k = 0, i = 0; i < il; i++)
3991          for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
3992              r[k] = a[j];
3993      return r;
3994  }
3995  
3996  function __spreadArray(to, from, pack) {
3997      if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3998          if (ar || !(i in from)) {
3999              if (!ar) ar = Array.prototype.slice.call(from, 0, i);
4000              ar[i] = from[i];
4001          }
4002      }
4003      return to.concat(ar || from);
4004  }
4005  
4006  function __await(v) {
4007      return this instanceof __await ? (this.v = v, this) : new __await(v);
4008  }
4009  
4010  function __asyncGenerator(thisArg, _arguments, generator) {
4011      if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
4012      var g = generator.apply(thisArg, _arguments || []), i, q = [];
4013      return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
4014      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); }); }; }
4015      function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
4016      function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
4017      function fulfill(value) { resume("next", value); }
4018      function reject(value) { resume("throw", value); }
4019      function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
4020  }
4021  
4022  function __asyncDelegator(o) {
4023      var i, p;
4024      return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
4025      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; }
4026  }
4027  
4028  function __asyncValues(o) {
4029      if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
4030      var m = o[Symbol.asyncIterator], i;
4031      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);
4032      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); }); }; }
4033      function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
4034  }
4035  
4036  function __makeTemplateObject(cooked, raw) {
4037      if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4038      return cooked;
4039  };
4040  
4041  var __setModuleDefault = Object.create ? (function(o, v) {
4042      Object.defineProperty(o, "default", { enumerable: true, value: v });
4043  }) : function(o, v) {
4044      o["default"] = v;
4045  };
4046  
4047  function __importStar(mod) {
4048      if (mod && mod.__esModule) return mod;
4049      var result = {};
4050      if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
4051      __setModuleDefault(result, mod);
4052      return result;
4053  }
4054  
4055  function __importDefault(mod) {
4056      return (mod && mod.__esModule) ? mod : { default: mod };
4057  }
4058  
4059  function __classPrivateFieldGet(receiver, state, kind, f) {
4060      if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4061      if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4062      return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
4063  }
4064  
4065  function __classPrivateFieldSet(receiver, state, value, kind, f) {
4066      if (kind === "m") throw new TypeError("Private method is not writable");
4067      if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
4068      if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
4069      return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
4070  }
4071  
4072  // EXTERNAL MODULE: external "React"
4073  var external_React_ = __webpack_require__("cDcd");
4074  var external_React_default = /*#__PURE__*/__webpack_require__.n(external_React_);
4075  
4076  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/definitions.js
4077  var createDefinition = function (propNames) { return ({
4078      isEnabled: function (props) { return propNames.some(function (name) { return !!props[name]; }); },
4079  }); };
4080  var featureDefinitions = {
4081      measureLayout: createDefinition([
4082          "layout",
4083          "layoutId",
4084          "drag",
4085          "_layoutResetTransform",
4086      ]),
4087      animation: createDefinition([
4088          "animate",
4089          "exit",
4090          "variants",
4091          "whileHover",
4092          "whileTap",
4093          "whileFocus",
4094          "whileDrag",
4095      ]),
4096      exit: createDefinition(["exit"]),
4097      drag: createDefinition(["drag", "dragControls"]),
4098      focus: createDefinition(["whileFocus"]),
4099      hover: createDefinition(["whileHover", "onHoverStart", "onHoverEnd"]),
4100      tap: createDefinition(["whileTap", "onTap", "onTapStart", "onTapCancel"]),
4101      pan: createDefinition([
4102          "onPan",
4103          "onPanStart",
4104          "onPanSessionStart",
4105          "onPanEnd",
4106      ]),
4107      layoutAnimation: createDefinition(["layout", "layoutId"]),
4108  };
4109  function loadFeatures(features) {
4110      for (var key in features) {
4111          var Component = features[key];
4112          if (Component !== null)
4113              featureDefinitions[key].Component = Component;
4114      }
4115  }
4116  
4117  
4118  
4119  // CONCATENATED MODULE: ./node_modules/hey-listen/dist/hey-listen.es.js
4120  var warning = function () { };
4121  var invariant = function () { };
4122  if (false) {}
4123  
4124  
4125  
4126  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/LazyContext.js
4127  
4128  
4129  var LazyContext = Object(external_React_["createContext"])({ strict: false });
4130  
4131  
4132  
4133  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/use-features.js
4134  
4135  
4136  
4137  
4138  
4139  
4140  
4141  var featureNames = Object.keys(featureDefinitions);
4142  var numFeatures = featureNames.length;
4143  /**
4144   * Load features via renderless components based on the provided MotionProps.
4145   */
4146  function useFeatures(props, visualElement, preloadedFeatures) {
4147      var features = [];
4148      var lazyContext = Object(external_React_["useContext"])(LazyContext);
4149      if (!visualElement)
4150          return null;
4151      /**
4152       * If we're in development mode, check to make sure we're not rendering a motion component
4153       * as a child of LazyMotion, as this will break the file-size benefits of using it.
4154       */
4155      if (false) {}
4156      for (var i = 0; i < numFeatures; i++) {
4157          var name_1 = featureNames[i];
4158          var _a = featureDefinitions[name_1], isEnabled = _a.isEnabled, Component = _a.Component;
4159          /**
4160           * It might be possible in the future to use this moment to
4161           * dynamically request functionality. In initial tests this
4162           * was producing a lot of duplication amongst bundles.
4163           */
4164          if (isEnabled(props) && Component) {
4165              features.push(external_React_["createElement"](Component, __assign({ key: name_1 }, props, { visualElement: visualElement })));
4166          }
4167      }
4168      return features;
4169  }
4170  
4171  
4172  
4173  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/MotionConfigContext.js
4174  
4175  
4176  /**
4177   * @public
4178   */
4179  var MotionConfigContext = Object(external_React_["createContext"])({
4180      transformPagePoint: function (p) { return p; },
4181      isStatic: false,
4182  });
4183  
4184  
4185  
4186  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/MotionContext/index.js
4187  
4188  
4189  var MotionContext = Object(external_React_["createContext"])({});
4190  function useVisualElementContext() {
4191      return Object(external_React_["useContext"])(MotionContext).visualElement;
4192  }
4193  
4194  
4195  
4196  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/PresenceContext.js
4197  
4198  
4199  /**
4200   * @public
4201   */
4202  var PresenceContext = Object(external_React_["createContext"])(null);
4203  
4204  
4205  
4206  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/use-constant.js
4207  
4208  
4209  /**
4210   * Creates a constant value over the lifecycle of a component.
4211   *
4212   * Even if `useMemo` is provided an empty array as its final argument, it doesn't offer
4213   * a guarantee that it won't re-run for performance reasons later on. By using `useConstant`
4214   * you can ensure that initialisers don't execute twice or more.
4215   */
4216  function useConstant(init) {
4217      var ref = Object(external_React_["useRef"])(null);
4218      if (ref.current === null) {
4219          ref.current = init();
4220      }
4221      return ref.current;
4222  }
4223  
4224  
4225  
4226  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js
4227  
4228  
4229  
4230  
4231  /**
4232   * When a component is the child of `AnimatePresence`, it can use `usePresence`
4233   * to access information about whether it's still present in the React tree.
4234   *
4235   * ```jsx
4236   * import { usePresence } from "framer-motion"
4237   *
4238   * export const Component = () => {
4239   *   const [isPresent, safeToRemove] = usePresence()
4240   *
4241   *   useEffect(() => {
4242   *     !isPresent && setTimeout(safeToRemove, 1000)
4243   *   }, [isPresent])
4244   *
4245   *   return <div />
4246   * }
4247   * ```
4248   *
4249   * If `isPresent` is `false`, it means that a component has been removed the tree, but
4250   * `AnimatePresence` won't really remove it until `safeToRemove` has been called.
4251   *
4252   * @public
4253   */
4254  function usePresence() {
4255      var context = Object(external_React_["useContext"])(PresenceContext);
4256      if (context === null)
4257          return [true, null];
4258      var isPresent = context.isPresent, onExitComplete = context.onExitComplete, register = context.register;
4259      // It's safe to call the following hooks conditionally (after an early return) because the context will always
4260      // either be null or non-null for the lifespan of the component.
4261      // Replace with useOpaqueId when released in React
4262      var id = useUniqueId();
4263      Object(external_React_["useEffect"])(function () { return register(id); }, []);
4264      var safeToRemove = function () { return onExitComplete === null || onExitComplete === void 0 ? void 0 : onExitComplete(id); };
4265      return !isPresent && onExitComplete ? [false, safeToRemove] : [true];
4266  }
4267  /**
4268   * Similar to `usePresence`, except `useIsPresent` simply returns whether or not the component is present.
4269   * There is no `safeToRemove` function.
4270   *
4271   * ```jsx
4272   * import { useIsPresent } from "framer-motion"
4273   *
4274   * export const Component = () => {
4275   *   const isPresent = useIsPresent()
4276   *
4277   *   useEffect(() => {
4278   *     !isPresent && console.log("I've been removed!")
4279   *   }, [isPresent])
4280   *
4281   *   return <div />
4282   * }
4283   * ```
4284   *
4285   * @public
4286   */
4287  function useIsPresent() {
4288      return use_presence_isPresent(Object(external_React_["useContext"])(PresenceContext));
4289  }
4290  function use_presence_isPresent(context) {
4291      return context === null ? true : context.isPresent;
4292  }
4293  var counter = 0;
4294  var incrementId = function () { return counter++; };
4295  var useUniqueId = function () { return useConstant(incrementId); };
4296  
4297  
4298  
4299  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/LayoutGroupContext.js
4300  
4301  
4302  /**
4303   * @internal
4304   */
4305  var LayoutGroupContext = Object(external_React_["createContext"])(null);
4306  
4307  
4308  
4309  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/is-browser.js
4310  var isBrowser = typeof window !== "undefined";
4311  
4312  
4313  
4314  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js
4315  
4316  
4317  
4318  var useIsomorphicLayoutEffect = isBrowser ? external_React_["useLayoutEffect"] : external_React_["useEffect"];
4319  
4320  
4321  
4322  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js
4323  
4324  
4325  
4326  
4327  
4328  
4329  
4330  
4331  
4332  
4333  function useLayoutId(_a) {
4334      var layoutId = _a.layoutId;
4335      var layoutGroupId = Object(external_React_["useContext"])(LayoutGroupContext);
4336      return layoutGroupId && layoutId !== undefined
4337          ? layoutGroupId + "-" + layoutId
4338          : layoutId;
4339  }
4340  function useVisualElement(Component, visualState, props, createVisualElement) {
4341      var config = Object(external_React_["useContext"])(MotionConfigContext);
4342      var lazyContext = Object(external_React_["useContext"])(LazyContext);
4343      var parent = useVisualElementContext();
4344      var presenceContext = Object(external_React_["useContext"])(PresenceContext);
4345      var layoutId = useLayoutId(props);
4346      var visualElementRef = Object(external_React_["useRef"])(undefined);
4347      /**
4348       * If we haven't preloaded a renderer, check to see if we have one lazy-loaded
4349       */
4350      if (!createVisualElement)
4351          createVisualElement = lazyContext.renderer;
4352      if (!visualElementRef.current && createVisualElement) {
4353          visualElementRef.current = createVisualElement(Component, {
4354              visualState: visualState,
4355              parent: parent,
4356              props: __assign(__assign({}, props), { layoutId: layoutId }),
4357              presenceId: presenceContext === null || presenceContext === void 0 ? void 0 : presenceContext.id,
4358              blockInitialAnimation: (presenceContext === null || presenceContext === void 0 ? void 0 : presenceContext.initial) === false,
4359          });
4360      }
4361      var visualElement = visualElementRef.current;
4362      useIsomorphicLayoutEffect(function () {
4363          if (!visualElement)
4364              return;
4365          visualElement.setProps(__assign(__assign(__assign({}, config), props), { layoutId: layoutId }));
4366          visualElement.isPresent = use_presence_isPresent(presenceContext);
4367          visualElement.isPresenceRoot =
4368              !parent || parent.presenceId !== (presenceContext === null || presenceContext === void 0 ? void 0 : presenceContext.id);
4369          /**
4370           * Fire a render to ensure the latest state is reflected on-screen.
4371           */
4372          visualElement.syncRender();
4373      });
4374      Object(external_React_["useEffect"])(function () {
4375          var _a;
4376          if (!visualElement)
4377              return;
4378          /**
4379           * In a future refactor we can replace the features-as-components and
4380           * have this loop through them all firing "effect" listeners
4381           */
4382          (_a = visualElement.animationState) === null || _a === void 0 ? void 0 : _a.animateChanges();
4383      });
4384      useIsomorphicLayoutEffect(function () { return function () { return visualElement === null || visualElement === void 0 ? void 0 : visualElement.notifyUnmount(); }; }, []);
4385      return visualElement;
4386  }
4387  
4388  
4389  
4390  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/is-ref-object.js
4391  function isRefObject(ref) {
4392      return (typeof ref === "object" &&
4393          Object.prototype.hasOwnProperty.call(ref, "current"));
4394  }
4395  
4396  
4397  
4398  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js
4399  
4400  
4401  
4402  /**
4403   * Creates a ref function that, when called, hydrates the provided
4404   * external ref and VisualElement.
4405   */
4406  function useMotionRef(visualState, visualElement, externalRef) {
4407      return Object(external_React_["useCallback"])(function (instance) {
4408          var _a;
4409          instance && ((_a = visualState.mount) === null || _a === void 0 ? void 0 : _a.call(visualState, instance));
4410          if (visualElement) {
4411              instance
4412                  ? visualElement.mount(instance)
4413                  : visualElement.unmount();
4414          }
4415          if (externalRef) {
4416              if (typeof externalRef === "function") {
4417                  externalRef(instance);
4418              }
4419              else if (isRefObject(externalRef)) {
4420                  externalRef.current = instance;
4421              }
4422          }
4423      }, 
4424      /**
4425       * Only pass a new ref callback to React if we've received a visual element
4426       * factory. Otherwise we'll be mounting/remounting every time externalRef
4427       * or other dependencies change.
4428       */
4429      [visualElement]);
4430  }
4431  
4432  
4433  
4434  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/variants.js
4435  /**
4436   * Decides if the supplied variable is an array of variant labels
4437   */
4438  function isVariantLabels(v) {
4439      return Array.isArray(v);
4440  }
4441  /**
4442   * Decides if the supplied variable is variant label
4443   */
4444  function isVariantLabel(v) {
4445      return typeof v === "string" || isVariantLabels(v);
4446  }
4447  /**
4448   * Creates an object containing the latest state of every MotionValue on a VisualElement
4449   */
4450  function getCurrent(visualElement) {
4451      var current = {};
4452      visualElement.forEachValue(function (value, key) { return (current[key] = value.get()); });
4453      return current;
4454  }
4455  /**
4456   * Creates an object containing the latest velocity of every MotionValue on a VisualElement
4457   */
4458  function getVelocity(visualElement) {
4459      var velocity = {};
4460      visualElement.forEachValue(function (value, key) { return (velocity[key] = value.getVelocity()); });
4461      return velocity;
4462  }
4463  function resolveVariantFromProps(props, definition, custom, currentValues, currentVelocity) {
4464      var _a;
4465      if (currentValues === void 0) { currentValues = {}; }
4466      if (currentVelocity === void 0) { currentVelocity = {}; }
4467      if (typeof definition === "string") {
4468          definition = (_a = props.variants) === null || _a === void 0 ? void 0 : _a[definition];
4469      }
4470      return typeof definition === "function"
4471          ? definition(custom !== null && custom !== void 0 ? custom : props.custom, currentValues, currentVelocity)
4472          : definition;
4473  }
4474  function resolveVariant(visualElement, definition, custom) {
4475      var props = visualElement.getProps();
4476      return resolveVariantFromProps(props, definition, custom !== null && custom !== void 0 ? custom : props.custom, getCurrent(visualElement), getVelocity(visualElement));
4477  }
4478  function checkIfControllingVariants(props) {
4479      var _a;
4480      return (typeof ((_a = props.animate) === null || _a === void 0 ? void 0 : _a.start) === "function" ||
4481          isVariantLabel(props.initial) ||
4482          isVariantLabel(props.animate) ||
4483          isVariantLabel(props.whileHover) ||
4484          isVariantLabel(props.whileDrag) ||
4485          isVariantLabel(props.whileTap) ||
4486          isVariantLabel(props.whileFocus) ||
4487          isVariantLabel(props.exit));
4488  }
4489  function checkIfVariantNode(props) {
4490      return Boolean(checkIfControllingVariants(props) || props.variants);
4491  }
4492  
4493  
4494  
4495  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/MotionContext/utils.js
4496  
4497  
4498  function getCurrentTreeVariants(props, context) {
4499      if (checkIfControllingVariants(props)) {
4500          var initial = props.initial, animate = props.animate;
4501          return {
4502              initial: initial === false || isVariantLabel(initial)
4503                  ? initial
4504                  : undefined,
4505              animate: isVariantLabel(animate) ? animate : undefined,
4506          };
4507      }
4508      return props.inherit !== false ? context : {};
4509  }
4510  
4511  
4512  
4513  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/context/MotionContext/create.js
4514  
4515  
4516  
4517  
4518  function useCreateMotionContext(props, isStatic) {
4519      var _a = getCurrentTreeVariants(props, Object(external_React_["useContext"])(MotionContext)), initial = _a.initial, animate = _a.animate;
4520      return Object(external_React_["useMemo"])(function () { return ({ initial: initial, animate: animate }); }, 
4521      /**
4522       * Only break memoisation in static mode
4523       */
4524      isStatic
4525          ? [
4526              variantLabelsAsDependency(initial),
4527              variantLabelsAsDependency(animate),
4528          ]
4529          : []);
4530  }
4531  function variantLabelsAsDependency(prop) {
4532      return Array.isArray(prop) ? prop.join(" ") : prop;
4533  }
4534  
4535  
4536  
4537  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/index.js
4538  
4539  
4540  
4541  
4542  
4543  
4544  
4545  
4546  
4547  
4548  
4549  /**
4550   * Create a `motion` component.
4551   *
4552   * This function accepts a Component argument, which can be either a string (ie "div"
4553   * for `motion.div`), or an actual React component.
4554   *
4555   * Alongside this is a config option which provides a way of rendering the provided
4556   * component "offline", or outside the React render cycle.
4557   *
4558   * @internal
4559   */
4560  function createMotionComponent(_a) {
4561      var preloadedFeatures = _a.preloadedFeatures, createVisualElement = _a.createVisualElement, useRender = _a.useRender, useVisualState = _a.useVisualState, Component = _a.Component;
4562      preloadedFeatures && loadFeatures(preloadedFeatures);
4563      function MotionComponent(props, externalRef) {
4564          /**
4565           * If we're rendering in a static environment, we only visually update the component
4566           * as a result of a React-rerender rather than interactions or animations. This
4567           * means we don't need to load additional memory structures like VisualElement,
4568           * or any gesture/animation features.
4569           */
4570          var isStatic = Object(external_React_["useContext"])(MotionConfigContext).isStatic;
4571          var features = null;
4572          /**
4573           * Create the tree context. This is memoized and will only trigger renders
4574           * when the current tree variant changes in static mode.
4575           */
4576          var context = useCreateMotionContext(props, isStatic);
4577          /**
4578           *
4579           */
4580          var visualState = useVisualState(props, isStatic);
4581          if (!isStatic && isBrowser) {
4582              /**
4583               * Create a VisualElement for this component. A VisualElement provides a common
4584               * interface to renderer-specific APIs (ie DOM/Three.js etc) as well as
4585               * providing a way of rendering to these APIs outside of the React render loop
4586               * for more performant animations and interactions
4587               */
4588              context.visualElement = useVisualElement(Component, visualState, props, createVisualElement);
4589              /**
4590               * Load Motion gesture and animation features. These are rendered as renderless
4591               * components so each feature can optionally make use of React lifecycle methods.
4592               *
4593               * TODO: The intention is to move these away from a React-centric to a
4594               * VisualElement-centric lifecycle scheme.
4595               */
4596              features = useFeatures(props, context.visualElement, preloadedFeatures);
4597          }
4598          /**
4599           * The mount order and hierarchy is specific to ensure our element ref
4600           * is hydrated by the time features fire their effects.
4601           */
4602          return (external_React_["createElement"](external_React_["Fragment"], null,
4603              external_React_["createElement"](MotionContext.Provider, { value: context }, useRender(Component, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic)),
4604              features));
4605      }
4606      return Object(external_React_["forwardRef"])(MotionComponent);
4607  }
4608  
4609  
4610  
4611  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/motion-proxy.js
4612  
4613  
4614  /**
4615   * Convert any React component into a `motion` component. The provided component
4616   * **must** use `React.forwardRef` to the underlying DOM component you want to animate.
4617   *
4618   * ```jsx
4619   * const Component = React.forwardRef((props, ref) => {
4620   *   return <div ref={ref} />
4621   * })
4622   *
4623   * const MotionComponent = motion(Component)
4624   * ```
4625   *
4626   * @public
4627   */
4628  function createMotionProxy(createConfig) {
4629      function custom(Component, customMotionComponentConfig) {
4630          if (customMotionComponentConfig === void 0) { customMotionComponentConfig = {}; }
4631          return createMotionComponent(createConfig(Component, customMotionComponentConfig));
4632      }
4633      /**
4634       * A cache of generated `motion` components, e.g `motion.div`, `motion.input` etc.
4635       * Rather than generating them anew every render.
4636       */
4637      var componentCache = new Map();
4638      return new Proxy(custom, {
4639          /**
4640           * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.
4641           * The prop name is passed through as `key` and we can use that to generate a `motion`
4642           * DOM component with that name.
4643           */
4644          get: function (_target, key) {
4645              /**
4646               * If this element doesn't exist in the component cache, create it and cache.
4647               */
4648              if (!componentCache.has(key)) {
4649                  componentCache.set(key, custom(key));
4650              }
4651              return componentCache.get(key);
4652          },
4653      });
4654  }
4655  
4656  
4657  
4658  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js
4659  /**
4660   * We keep these listed seperately as we use the lowercase tag names as part
4661   * of the runtime bundle to detect SVG components
4662   */
4663  var lowercaseSVGElements = [
4664      "animate",
4665      "circle",
4666      "defs",
4667      "desc",
4668      "ellipse",
4669      "g",
4670      "image",
4671      "line",
4672      "filter",
4673      "marker",
4674      "mask",
4675      "metadata",
4676      "path",
4677      "pattern",
4678      "polygon",
4679      "polyline",
4680      "rect",
4681      "stop",
4682      "svg",
4683      "switch",
4684      "symbol",
4685      "text",
4686      "tspan",
4687      "use",
4688      "view",
4689  ];
4690  
4691  
4692  
4693  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js
4694  
4695  
4696  function isSVGComponent(Component) {
4697      if (
4698      /**
4699       * If it's not a string, it's a custom React component. Currently we only support
4700       * HTML custom React components.
4701       */
4702      typeof Component !== "string" ||
4703          /**
4704           * If it contains a dash, the element is a custom HTML webcomponent.
4705           */
4706          Component.includes("-")) {
4707          return false;
4708      }
4709      else if (
4710      /**
4711       * If it's in our list of lowercase SVG tags, it's an SVG component
4712       */
4713      lowercaseSVGElements.indexOf(Component) > -1 ||
4714          /**
4715           * If it contains a capital letter, it's an SVG component
4716           */
4717          /[A-Z]/.test(Component)) {
4718          return true;
4719      }
4720      return false;
4721  }
4722  
4723  
4724  
4725  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/projection/scale-correction.js
4726  var valueScaleCorrection = {};
4727  /**
4728   * @internal
4729   */
4730  function addScaleCorrection(correctors) {
4731      for (var key in correctors) {
4732          valueScaleCorrection[key] = correctors[key];
4733      }
4734  }
4735  
4736  
4737  
4738  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/transform.js
4739  /**
4740   * A list of all transformable axes. We'll use this list to generated a version
4741   * of each axes for each transform.
4742   */
4743  var transformAxes = ["", "X", "Y", "Z"];
4744  /**
4745   * An ordered array of each transformable value. By default, transform values
4746   * will be sorted to this order.
4747   */
4748  var transform_order = ["translate", "scale", "rotate", "skew"];
4749  /**
4750   * Generate a list of every possible transform key.
4751   */
4752  var transformProps = ["transformPerspective", "x", "y", "z"];
4753  transform_order.forEach(function (operationKey) {
4754      return transformAxes.forEach(function (axesKey) {
4755          return transformProps.push(operationKey + axesKey);
4756      });
4757  });
4758  /**
4759   * A function to use with Array.sort to sort transform keys by their default order.
4760   */
4761  function sortTransformProps(a, b) {
4762      return transformProps.indexOf(a) - transformProps.indexOf(b);
4763  }
4764  /**
4765   * A quick lookup for transform props.
4766   */
4767  var transformPropSet = new Set(transformProps);
4768  function isTransformProp(key) {
4769      return transformPropSet.has(key);
4770  }
4771  /**
4772   * A quick lookup for transform origin props
4773   */
4774  var transformOriginProps = new Set(["originX", "originY", "originZ"]);
4775  function isTransformOriginProp(key) {
4776      return transformOriginProps.has(key);
4777  }
4778  
4779  
4780  
4781  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js
4782  
4783  
4784  
4785  function isForcedMotionValue(key, _a) {
4786      var layout = _a.layout, layoutId = _a.layoutId;
4787      return (isTransformProp(key) ||
4788          isTransformOriginProp(key) ||
4789          ((layout || layoutId !== undefined) &&
4790              (!!valueScaleCorrection[key] || key === "opacity")));
4791  }
4792  
4793  
4794  
4795  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/utils/is-motion-value.js
4796  var isMotionValue = function (value) {
4797      return value !== null && typeof value === "object" && value.getVelocity;
4798  };
4799  
4800  
4801  
4802  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/build-transform.js
4803  
4804  
4805  var translateAlias = {
4806      x: "translateX",
4807      y: "translateY",
4808      z: "translateZ",
4809      transformPerspective: "perspective",
4810  };
4811  /**
4812   * Build a CSS transform style from individual x/y/scale etc properties.
4813   *
4814   * This outputs with a default order of transforms/scales/rotations, this can be customised by
4815   * providing a transformTemplate function.
4816   */
4817  function buildTransform(_a, _b, transformIsDefault, transformTemplate) {
4818      var transform = _a.transform, transformKeys = _a.transformKeys;
4819      var _c = _b.enableHardwareAcceleration, enableHardwareAcceleration = _c === void 0 ? true : _c, _d = _b.allowTransformNone, allowTransformNone = _d === void 0 ? true : _d;
4820      // The transform string we're going to build into.
4821      var transformString = "";
4822      // Transform keys into their default order - this will determine the output order.
4823      transformKeys.sort(sortTransformProps);
4824      // Track whether the defined transform has a defined z so we don't add a
4825      // second to enable hardware acceleration
4826      var transformHasZ = false;
4827      // Loop over each transform and build them into transformString
4828      var numTransformKeys = transformKeys.length;
4829      for (var i = 0; i < numTransformKeys; i++) {
4830          var key = transformKeys[i];
4831          transformString += (translateAlias[key] || key) + "(" + transform[key] + ") ";
4832          if (key === "z")
4833              transformHasZ = true;
4834      }
4835      if (!transformHasZ && enableHardwareAcceleration) {
4836          transformString += "translateZ(0)";
4837      }
4838      else {
4839          transformString = transformString.trim();
4840      }
4841      // If we have a custom `transform` template, pass our transform values and
4842      // generated transformString to that before returning
4843      if (transformTemplate) {
4844          transformString = transformTemplate(transform, transformIsDefault ? "" : transformString);
4845      }
4846      else if (allowTransformNone && transformIsDefault) {
4847          transformString = "none";
4848      }
4849      return transformString;
4850  }
4851  /**
4852   * Build a transformOrigin style. Uses the same defaults as the browser for
4853   * undefined origins.
4854   */
4855  function buildTransformOrigin(_a) {
4856      var _b = _a.originX, originX = _b === void 0 ? "50%" : _b, _c = _a.originY, originY = _c === void 0 ? "50%" : _c, _d = _a.originZ, originZ = _d === void 0 ? 0 : _d;
4857      return originX + " " + originY + " " + originZ;
4858  }
4859  
4860  
4861  
4862  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js
4863  /**
4864   * Returns true if the provided key is a CSS variable
4865   */
4866  function isCSSVariable(key) {
4867      return key.startsWith("--");
4868  }
4869  
4870  
4871  
4872  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js
4873  /**
4874   * Provided a value and a ValueType, returns the value as that value type.
4875   */
4876  var getValueAsType = function (value, type) {
4877      return type && typeof value === "number"
4878          ? type.transform(value)
4879          : value;
4880  };
4881  
4882  
4883  
4884  // CONCATENATED MODULE: ./node_modules/style-value-types/node_modules/tslib/tslib.es6.js
4885  /*! *****************************************************************************

4886  Copyright (c) Microsoft Corporation.

4887  

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

4889  purpose with or without fee is hereby granted.

4890  

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

4892  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY

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

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

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

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

4897  PERFORMANCE OF THIS SOFTWARE.

4898  ***************************************************************************** */
4899  /* global Reflect, Promise */

4900  
4901  var tslib_es6_extendStatics = function(d, b) {
4902      tslib_es6_extendStatics = Object.setPrototypeOf ||
4903          ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
4904          function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
4905      return tslib_es6_extendStatics(d, b);
4906  };
4907  
4908  function tslib_es6_extends(d, b) {
4909      if (typeof b !== "function" && b !== null)
4910          throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
4911      tslib_es6_extendStatics(d, b);
4912      function __() { this.constructor = d; }
4913      d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4914  }
4915  
4916  var tslib_es6_assign = function() {
4917      tslib_es6_assign = Object.assign || function __assign(t) {
4918          for (var s, i = 1, n = arguments.length; i < n; i++) {
4919              s = arguments[i];
4920              for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
4921          }
4922          return t;
4923      }
4924      return tslib_es6_assign.apply(this, arguments);
4925  }
4926  
4927  function tslib_es6_rest(s, e) {
4928      var t = {};
4929      for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4930          t[p] = s[p];
4931      if (s != null && typeof Object.getOwnPropertySymbols === "function")
4932          for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
4933              if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
4934                  t[p[i]] = s[p[i]];
4935          }
4936      return t;
4937  }
4938  
4939  function tslib_es6_decorate(decorators, target, key, desc) {
4940      var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4941      if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4942      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;
4943      return c > 3 && r && Object.defineProperty(target, key, r), r;
4944  }
4945  
4946  function tslib_es6_param(paramIndex, decorator) {
4947      return function (target, key) { decorator(target, key, paramIndex); }
4948  }
4949  
4950  function tslib_es6_metadata(metadataKey, metadataValue) {
4951      if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
4952  }
4953  
4954  function tslib_es6_awaiter(thisArg, _arguments, P, generator) {
4955      function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4956      return new (P || (P = Promise))(function (resolve, reject) {
4957          function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
4958          function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
4959          function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
4960          step((generator = generator.apply(thisArg, _arguments || [])).next());
4961      });
4962  }
4963  
4964  function tslib_es6_generator(thisArg, body) {
4965      var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
4966      return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
4967      function verb(n) { return function (v) { return step([n, v]); }; }
4968      function step(op) {
4969          if (f) throw new TypeError("Generator is already executing.");
4970          while (_) try {
4971              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;
4972              if (y = 0, t) op = [op[0] & 2, t.value];
4973              switch (op[0]) {
4974                  case 0: case 1: t = op; break;
4975                  case 4: _.label++; return { value: op[1], done: false };
4976                  case 5: _.label++; y = op[1]; op = [0]; continue;
4977                  case 7: op = _.ops.pop(); _.trys.pop(); continue;
4978                  default:
4979                      if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
4980                      if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
4981                      if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
4982                      if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
4983                      if (t[2]) _.ops.pop();
4984                      _.trys.pop(); continue;
4985              }
4986              op = body.call(thisArg, _);
4987          } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
4988          if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
4989      }
4990  }
4991  
4992  var tslib_es6_createBinding = Object.create ? (function(o, m, k, k2) {
4993      if (k2 === undefined) k2 = k;
4994      Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4995  }) : (function(o, m, k, k2) {
4996      if (k2 === undefined) k2 = k;
4997      o[k2] = m[k];
4998  });
4999  
5000  function tslib_es6_exportStar(m, o) {
5001      for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) tslib_es6_createBinding(o, m, p);
5002  }
5003  
5004  function tslib_es6_values(o) {
5005      var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
5006      if (m) return m.call(o);
5007      if (o && typeof o.length === "number") return {
5008          next: function () {
5009              if (o && i >= o.length) o = void 0;
5010              return { value: o && o[i++], done: !o };
5011          }
5012      };
5013      throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
5014  }
5015  
5016  function tslib_es6_read(o, n) {
5017      var m = typeof Symbol === "function" && o[Symbol.iterator];
5018      if (!m) return o;
5019      var i = m.call(o), r, ar = [], e;
5020      try {
5021          while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
5022      }
5023      catch (error) { e = { error: error }; }
5024      finally {
5025          try {
5026              if (r && !r.done && (m = i["return"])) m.call(i);
5027          }
5028          finally { if (e) throw e.error; }
5029      }
5030      return ar;
5031  }
5032  
5033  /** @deprecated */

5034  function tslib_es6_spread() {
5035      for (var ar = [], i = 0; i < arguments.length; i++)
5036          ar = ar.concat(tslib_es6_read(arguments[i]));
5037      return ar;
5038  }
5039  
5040  /** @deprecated */

5041  function tslib_es6_spreadArrays() {
5042      for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
5043      for (var r = Array(s), k = 0, i = 0; i < il; i++)
5044          for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
5045              r[k] = a[j];
5046      return r;
5047  }
5048  
5049  function tslib_es6_spreadArray(to, from, pack) {
5050      if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
5051          if (ar || !(i in from)) {
5052              if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5053              ar[i] = from[i];
5054          }
5055      }
5056      return to.concat(ar || from);
5057  }
5058  
5059  function tslib_es6_await(v) {
5060      return this instanceof tslib_es6_await ? (this.v = v, this) : new tslib_es6_await(v);
5061  }
5062  
5063  function tslib_es6_asyncGenerator(thisArg, _arguments, generator) {
5064      if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
5065      var g = generator.apply(thisArg, _arguments || []), i, q = [];
5066      return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
5067      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); }); }; }
5068      function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
5069      function step(r) { r.value instanceof tslib_es6_await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
5070      function fulfill(value) { resume("next", value); }
5071      function reject(value) { resume("throw", value); }
5072      function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
5073  }
5074  
5075  function tslib_es6_asyncDelegator(o) {
5076      var i, p;
5077      return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
5078      function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: tslib_es6_await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
5079  }
5080  
5081  function tslib_es6_asyncValues(o) {
5082      if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
5083      var m = o[Symbol.asyncIterator], i;
5084      return m ? m.call(o) : (o = typeof tslib_es6_values === "function" ? tslib_es6_values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
5085      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); }); }; }
5086      function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
5087  }
5088  
5089  function tslib_es6_makeTemplateObject(cooked, raw) {
5090      if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
5091      return cooked;
5092  };
5093  
5094  var tslib_es6_setModuleDefault = Object.create ? (function(o, v) {
5095      Object.defineProperty(o, "default", { enumerable: true, value: v });
5096  }) : function(o, v) {
5097      o["default"] = v;
5098  };
5099  
5100  function tslib_es6_importStar(mod) {
5101      if (mod && mod.__esModule) return mod;
5102      var result = {};
5103      if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) tslib_es6_createBinding(result, mod, k);
5104      tslib_es6_setModuleDefault(result, mod);
5105      return result;
5106  }
5107  
5108  function tslib_es6_importDefault(mod) {
5109      return (mod && mod.__esModule) ? mod : { default: mod };
5110  }
5111  
5112  function tslib_es6_classPrivateFieldGet(receiver, state, kind, f) {
5113      if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
5114      if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
5115      return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5116  }
5117  
5118  function tslib_es6_classPrivateFieldSet(receiver, state, value, kind, f) {
5119      if (kind === "m") throw new TypeError("Private method is not writable");
5120      if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5121      if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
5122      return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
5123  }
5124  
5125  // CONCATENATED MODULE: ./node_modules/style-value-types/dist/es/utils.js
5126  var clamp = function (min, max) { return function (v) {
5127      return Math.max(Math.min(v, max), min);
5128  }; };
5129  var sanitize = function (v) { return (v % 1 ? Number(v.toFixed(5)) : v); };
5130  var floatRegex = /(-)?([\d]*\.?[\d])+/g;
5131  var colorRegex = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi;
5132  var singleColorRegex = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;
5133  function isString(v) {
5134      return typeof v === 'string';
5135  }
5136  
5137  
5138  
5139  // CONCATENATED MODULE: ./node_modules/style-value-types/dist/es/numbers/units.js
5140  
5141  
5142  
5143  var createUnitType = function (unit) { return ({
5144      test: function (v) {
5145          return isString(v) && v.endsWith(unit) && v.split(' ').length === 1;
5146      },
5147      parse: parseFloat,
5148      transform: function (v) { return "" + v + unit; },
5149  }); };
5150  var degrees = createUnitType('deg');
5151  var percent = createUnitType('%');
5152  var px = createUnitType('px');
5153  var vh = createUnitType('vh');
5154  var vw = createUnitType('vw');
5155  var progressPercentage = tslib_es6_assign(tslib_es6_assign({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
5156  
5157  
5158  
5159  // CONCATENATED MODULE: ./node_modules/style-value-types/dist/es/numbers/index.js
5160  
5161  
5162  
5163  var numbers_number = {
5164      test: function (v) { return typeof v === 'number'; },
5165      parse: parseFloat,
5166      transform: function (v) { return v; },
5167  };
5168  var numbers_alpha = tslib_es6_assign(tslib_es6_assign({}, numbers_number), { transform: clamp(0, 1) });
5169  var numbers_scale = tslib_es6_assign(tslib_es6_assign({}, numbers_number), { default: 1 });
5170  
5171  
5172  
5173  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js
5174  
5175  
5176  
5177  var type_int_int = __assign(__assign({}, numbers_number), { transform: Math.round });
5178  
5179  
5180  
5181  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/number.js
5182  
5183  
5184  
5185  var numberValueTypes = {
5186      // Border props
5187      borderWidth: px,
5188      borderTopWidth: px,
5189      borderRightWidth: px,
5190      borderBottomWidth: px,
5191      borderLeftWidth: px,
5192      borderRadius: px,
5193      radius: px,
5194      borderTopLeftRadius: px,
5195      borderTopRightRadius: px,
5196      borderBottomRightRadius: px,
5197      borderBottomLeftRadius: px,
5198      // Positioning props
5199      width: px,
5200      maxWidth: px,
5201      height: px,
5202      maxHeight: px,
5203      size: px,
5204      top: px,
5205      right: px,
5206      bottom: px,
5207      left: px,
5208      // Spacing props
5209      padding: px,
5210      paddingTop: px,
5211      paddingRight: px,
5212      paddingBottom: px,
5213      paddingLeft: px,
5214      margin: px,
5215      marginTop: px,
5216      marginRight: px,
5217      marginBottom: px,
5218      marginLeft: px,
5219      // Transform props
5220      rotate: degrees,
5221      rotateX: degrees,
5222      rotateY: degrees,
5223      rotateZ: degrees,
5224      scale: numbers_scale,
5225      scaleX: numbers_scale,
5226      scaleY: numbers_scale,
5227      scaleZ: numbers_scale,
5228      skew: degrees,
5229      skewX: degrees,
5230      skewY: degrees,
5231      distance: px,
5232      translateX: px,
5233      translateY: px,
5234      translateZ: px,
5235      x: px,
5236      y: px,
5237      z: px,
5238      perspective: px,
5239      transformPerspective: px,
5240      opacity: numbers_alpha,
5241      originX: progressPercentage,
5242      originY: progressPercentage,
5243      originZ: px,
5244      // Misc
5245      zIndex: type_int_int,
5246      // SVG
5247      fillOpacity: numbers_alpha,
5248      strokeOpacity: numbers_alpha,
5249      numOctaves: type_int_int,
5250  };
5251  
5252  
5253  
5254  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/build-styles.js
5255  
5256  
5257  
5258  
5259  
5260  
5261  
5262  function buildHTMLStyles(state, latestValues, projection, layoutState, options, transformTemplate, buildProjectionTransform, buildProjectionTransformOrigin) {
5263      var _a;
5264      var style = state.style, vars = state.vars, transform = state.transform, transformKeys = state.transformKeys, transformOrigin = state.transformOrigin;
5265      // Empty the transformKeys array. As we're throwing out refs to its items
5266      // this might not be as cheap as suspected. Maybe using the array as a buffer
5267      // with a manual incrementation would be better.
5268      transformKeys.length = 0;
5269      // Track whether we encounter any transform or transformOrigin values.
5270      var hasTransform = false;
5271      var hasTransformOrigin = false;
5272      // Does the calculated transform essentially equal "none"?
5273      var transformIsNone = true;
5274      /**
5275       * Loop over all our latest animated values and decide whether to handle them
5276       * as a style or CSS variable.
5277       *
5278       * Transforms and transform origins are kept seperately for further processing.
5279       */
5280      for (var key in latestValues) {
5281          var value = latestValues[key];
5282          /**
5283           * If this is a CSS variable we don't do any further processing.
5284           */
5285          if (isCSSVariable(key)) {
5286              vars[key] = value;
5287              continue;
5288          }
5289          // Convert the value to its default value type, ie 0 -> "0px"
5290          var valueType = numberValueTypes[key];
5291          var valueAsType = getValueAsType(value, valueType);
5292          if (isTransformProp(key)) {
5293              // If this is a transform, flag to enable further transform processing
5294              hasTransform = true;
5295              transform[key] = valueAsType;
5296              transformKeys.push(key);
5297              // If we already know we have a non-default transform, early return
5298              if (!transformIsNone)
5299                  continue;
5300              // Otherwise check to see if this is a default transform
5301              if (value !== ((_a = valueType.default) !== null && _a !== void 0 ? _a : 0))
5302                  transformIsNone = false;
5303          }
5304          else if (isTransformOriginProp(key)) {
5305              transformOrigin[key] = valueAsType;
5306              // If this is a transform origin, flag and enable further transform-origin processing
5307              hasTransformOrigin = true;
5308          }
5309          else {
5310              /**
5311               * If layout projection is on, and we need to perform scale correction for this
5312               * value type, perform it.
5313               */
5314              if ((projection === null || projection === void 0 ? void 0 : projection.isHydrated) &&
5315                  (layoutState === null || layoutState === void 0 ? void 0 : layoutState.isHydrated) &&
5316                  valueScaleCorrection[key]) {
5317                  var correctedValue = valueScaleCorrection[key].process(value, layoutState, projection);
5318                  /**
5319                   * Scale-correctable values can define a number of other values to break
5320                   * down into. For instance borderRadius needs applying to borderBottomLeftRadius etc
5321                   */
5322                  var applyTo = valueScaleCorrection[key].applyTo;
5323                  if (applyTo) {
5324                      var num = applyTo.length;
5325                      for (var i = 0; i < num; i++) {
5326                          style[applyTo[i]] = correctedValue;
5327                      }
5328                  }
5329                  else {
5330                      style[key] = correctedValue;
5331                  }
5332              }
5333              else {
5334                  style[key] = valueAsType;
5335              }
5336          }
5337      }
5338      if (layoutState &&
5339          projection &&
5340          buildProjectionTransform &&
5341          buildProjectionTransformOrigin) {
5342          style.transform = buildProjectionTransform(layoutState.deltaFinal, layoutState.treeScale, hasTransform ? transform : undefined);
5343          if (transformTemplate) {
5344              style.transform = transformTemplate(transform, style.transform);
5345          }
5346          style.transformOrigin = buildProjectionTransformOrigin(layoutState);
5347      }
5348      else {
5349          if (hasTransform) {
5350              style.transform = buildTransform(state, options, transformIsNone, transformTemplate);
5351          }
5352          if (hasTransformOrigin) {
5353              style.transformOrigin = buildTransformOrigin(transformOrigin);
5354          }
5355      }
5356  }
5357  
5358  
5359  
5360  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js
5361  var createHtmlRenderState = function () { return ({
5362      style: {},
5363      transform: {},
5364      transformKeys: [],
5365      transformOrigin: {},
5366      vars: {},
5367  }); };
5368  
5369  
5370  
5371  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/use-props.js
5372  
5373  
5374  
5375  
5376  
5377  
5378  
5379  function copyRawValuesOnly(target, source, props) {
5380      for (var key in source) {
5381          if (!isMotionValue(source[key]) && !isForcedMotionValue(key, props)) {
5382              target[key] = source[key];
5383          }
5384      }
5385  }
5386  function useInitialMotionValues(_a, visualState, isStatic) {
5387      var transformTemplate = _a.transformTemplate;
5388      return Object(external_React_["useMemo"])(function () {
5389          var state = createHtmlRenderState();
5390          buildHTMLStyles(state, visualState, undefined, undefined, { enableHardwareAcceleration: !isStatic }, transformTemplate);
5391          var vars = state.vars, style = state.style;
5392          return __assign(__assign({}, vars), style);
5393      }, [visualState]);
5394  }
5395  function useStyle(props, visualState, isStatic) {
5396      var styleProp = props.style || {};
5397      var style = {};
5398      /**
5399       * Copy non-Motion Values straight into style
5400       */
5401      copyRawValuesOnly(style, styleProp, props);
5402      Object.assign(style, useInitialMotionValues(props, visualState, isStatic));
5403      if (props.transformValues) {
5404          style = props.transformValues(style);
5405      }
5406      return style;
5407  }
5408  function useHTMLProps(props, visualState, isStatic) {
5409      // The `any` isn't ideal but it is the type of createElement props argument
5410      var htmlProps = {};
5411      var style = useStyle(props, visualState, isStatic);
5412      if (Boolean(props.drag)) {
5413          // Disable the ghost element when a user drags
5414          htmlProps.draggable = false;
5415          // Disable text selection
5416          style.userSelect = style.WebkitUserSelect = style.WebkitTouchCallout =
5417              "none";
5418          // Disable scrolling on the draggable direction
5419          style.touchAction =
5420              props.drag === true
5421                  ? "none"
5422                  : "pan-" + (props.drag === "x" ? "y" : "x");
5423      }
5424      htmlProps.style = style;
5425      return htmlProps;
5426  }
5427  
5428  
5429  
5430  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/utils/valid-prop.js
5431  /**
5432   * A list of all valid MotionProps.
5433   *
5434   * @internalremarks
5435   * This doesn't throw if a `MotionProp` name is missing - it should.
5436   */
5437  var validMotionProps = new Set([
5438      "initial",
5439      "animate",
5440      "exit",
5441      "style",
5442      "variants",
5443      "transition",
5444      "transformTemplate",
5445      "transformValues",
5446      "custom",
5447      "inherit",
5448      "layout",
5449      "layoutId",
5450      "_layoutResetTransform",
5451      "onLayoutAnimationComplete",
5452      "onViewportBoxUpdate",
5453      "onLayoutMeasure",
5454      "onBeforeLayoutMeasure",
5455      "onAnimationStart",
5456      "onAnimationComplete",
5457      "onUpdate",
5458      "onDragStart",
5459      "onDrag",
5460      "onDragEnd",
5461      "onMeasureDragConstraints",
5462      "onDirectionLock",
5463      "onDragTransitionEnd",
5464      "drag",
5465      "dragControls",
5466      "dragListener",
5467      "dragConstraints",
5468      "dragDirectionLock",
5469      "_dragX",
5470      "_dragY",
5471      "dragElastic",
5472      "dragMomentum",
5473      "dragPropagation",
5474      "dragTransition",
5475      "whileDrag",
5476      "onPan",
5477      "onPanStart",
5478      "onPanEnd",
5479      "onPanSessionStart",
5480      "onTap",
5481      "onTapStart",
5482      "onTapCancel",
5483      "onHoverStart",
5484      "onHoverEnd",
5485      "whileFocus",
5486      "whileTap",
5487      "whileHover",
5488  ]);
5489  /**
5490   * Check whether a prop name is a valid `MotionProp` key.
5491   *
5492   * @param key - Name of the property to check
5493   * @returns `true` is key is a valid `MotionProp`.
5494   *
5495   * @public
5496   */
5497  function isValidMotionProp(key) {
5498      return validMotionProps.has(key);
5499  }
5500  
5501  
5502  
5503  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js
5504  
5505  
5506  var shouldForward = function (key) { return !isValidMotionProp(key); };
5507  /**
5508   * Emotion and Styled Components both allow users to pass through arbitrary props to their components
5509   * to dynamically generate CSS. They both use the `@emotion/is-prop-valid` package to determine which
5510   * of these should be passed to the underlying DOM node.
5511   *
5512   * However, when styling a Motion component `styled(motion.div)`, both packages pass through *all* props
5513   * as it's seen as an arbitrary component rather than a DOM node. Motion only allows arbitrary props
5514   * passed through the `custom` prop so it doesn't *need* the payload or computational overhead of
5515   * `@emotion/is-prop-valid`, however to fix this problem we need to use it.
5516   *
5517   * By making it an optionalDependency we can offer this functionality only in the situations where it's
5518   * actually required.
5519   */
5520  try {
5521      var emotionIsPropValid_1 = __webpack_require__("9uj6").default;
5522      shouldForward = function (key) {
5523          // Handle events explicitly as Emotion validates them all as true
5524          if (key.startsWith("on")) {
5525              return !isValidMotionProp(key);
5526          }
5527          else {
5528              return emotionIsPropValid_1(key);
5529          }
5530      };
5531  }
5532  catch (_a) {
5533      // We don't need to actually do anything here - the fallback is the existing `isPropValid`.
5534  }
5535  function filterProps(props, isDom, forwardMotionProps) {
5536      var filteredProps = {};
5537      for (var key in props) {
5538          if (shouldForward(key) ||
5539              (forwardMotionProps === true && isValidMotionProp(key)) ||
5540              (!isDom && !isValidMotionProp(key))) {
5541              filteredProps[key] = props[key];
5542          }
5543      }
5544      return filteredProps;
5545  }
5546  
5547  
5548  
5549  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js
5550  
5551  
5552  function calcOrigin(origin, offset, size) {
5553      return typeof origin === "string"
5554          ? origin
5555          : px.transform(offset + size * origin);
5556  }
5557  /**
5558   * The SVG transform origin defaults are different to CSS and is less intuitive,
5559   * so we use the measured dimensions of the SVG to reconcile these.
5560   */
5561  function calcSVGTransformOrigin(dimensions, originX, originY) {
5562      var pxOriginX = calcOrigin(originX, dimensions.x, dimensions.width);
5563      var pxOriginY = calcOrigin(originY, dimensions.y, dimensions.height);
5564      return pxOriginX + " " + pxOriginY;
5565  }
5566  
5567  
5568  
5569  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/path.js
5570  
5571  
5572  // Convert a progress 0-1 to a pixels value based on the provided length
5573  var progressToPixels = function (progress, length) {
5574      return px.transform(progress * length);
5575  };
5576  var dashKeys = {
5577      offset: "stroke-dashoffset",
5578      array: "stroke-dasharray",
5579  };
5580  var camelKeys = {
5581      offset: "strokeDashoffset",
5582      array: "strokeDasharray",
5583  };
5584  /**
5585   * Build SVG path properties. Uses the path's measured length to convert
5586   * our custom pathLength, pathSpacing and pathOffset into stroke-dashoffset
5587   * and stroke-dasharray attributes.
5588   *
5589   * This function is mutative to reduce per-frame GC.
5590   */
5591  function buildSVGPath(attrs, totalLength, length, spacing, offset, useDashCase) {
5592      if (spacing === void 0) { spacing = 1; }
5593      if (offset === void 0) { offset = 0; }
5594      if (useDashCase === void 0) { useDashCase = true; }
5595      // We use dash case when setting attributes directly to the DOM node and camel case
5596      // when defining props on a React component.
5597      var keys = useDashCase ? dashKeys : camelKeys;
5598      // Build the dash offset
5599      attrs[keys.offset] = progressToPixels(-offset, totalLength);
5600      // Build the dash array
5601      var pathLength = progressToPixels(length, totalLength);
5602      var pathSpacing = progressToPixels(spacing, totalLength);
5603      attrs[keys.array] = pathLength + " " + pathSpacing;
5604  }
5605  
5606  
5607  
5608  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js
5609  
5610  
5611  
5612  
5613  
5614  /**
5615   * Build SVG visual attrbutes, like cx and style.transform
5616   */
5617  function buildSVGAttrs(state, _a, projection, layoutState, options, transformTemplate, buildProjectionTransform, buildProjectionTransformOrigin) {
5618      var attrX = _a.attrX, attrY = _a.attrY, originX = _a.originX, originY = _a.originY, pathLength = _a.pathLength, _b = _a.pathSpacing, pathSpacing = _b === void 0 ? 1 : _b, _c = _a.pathOffset, pathOffset = _c === void 0 ? 0 : _c, 
5619      // This is object creation, which we try to avoid per-frame.
5620      latest = __rest(_a, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
5621      buildHTMLStyles(state, latest, projection, layoutState, options, transformTemplate, buildProjectionTransform, buildProjectionTransformOrigin);
5622      state.attrs = state.style;
5623      state.style = {};
5624      var attrs = state.attrs, style = state.style, dimensions = state.dimensions, totalPathLength = state.totalPathLength;
5625      /**
5626       * However, we apply transforms as CSS transforms. So if we detect a transform we take it from attrs
5627       * and copy it into style.
5628       */
5629      if (attrs.transform) {
5630          if (dimensions)
5631              style.transform = attrs.transform;
5632          delete attrs.transform;
5633      }
5634      // Parse transformOrigin
5635      if (dimensions &&
5636          (originX !== undefined || originY !== undefined || style.transform)) {
5637          style.transformOrigin = calcSVGTransformOrigin(dimensions, originX !== undefined ? originX : 0.5, originY !== undefined ? originY : 0.5);
5638      }
5639      // Treat x/y not as shortcuts but as actual attributes
5640      if (attrX !== undefined)
5641          attrs.x = attrX;
5642      if (attrY !== undefined)
5643          attrs.y = attrY;
5644      // Build SVG path if one has been measured
5645      if (totalPathLength !== undefined && pathLength !== undefined) {
5646          buildSVGPath(attrs, totalPathLength, pathLength, pathSpacing, pathOffset, false);
5647      }
5648  }
5649  
5650  
5651  
5652  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js
5653  
5654  
5655  
5656  var createSvgRenderState = function () { return (__assign(__assign({}, createHtmlRenderState()), { attrs: {} })); };
5657  
5658  
5659  
5660  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/use-props.js
5661  
5662  
5663  
5664  
5665  
5666  
5667  function useSVGProps(props, visualState) {
5668      var visualProps = Object(external_React_["useMemo"])(function () {
5669          var state = createSvgRenderState();
5670          buildSVGAttrs(state, visualState, undefined, undefined, { enableHardwareAcceleration: false }, props.transformTemplate);
5671          return __assign(__assign({}, state.attrs), { style: __assign({}, state.style) });
5672      }, [visualState]);
5673      if (props.style) {
5674          var rawStyles = {};
5675          copyRawValuesOnly(rawStyles, props.style, props);
5676          visualProps.style = __assign(__assign({}, rawStyles), visualProps.style);
5677      }
5678      return visualProps;
5679  }
5680  
5681  
5682  
5683  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/use-render.js
5684  
5685  
5686  
5687  
5688  
5689  
5690  
5691  function createUseRender(forwardMotionProps) {
5692      if (forwardMotionProps === void 0) { forwardMotionProps = false; }
5693      var useRender = function (Component, props, ref, _a, isStatic) {
5694          var latestValues = _a.latestValues;
5695          var useVisualProps = isSVGComponent(Component)
5696              ? useSVGProps
5697              : useHTMLProps;
5698          var visualProps = useVisualProps(props, latestValues, isStatic);
5699          var filteredProps = filterProps(props, typeof Component === "string", forwardMotionProps);
5700          var elementProps = __assign(__assign(__assign({}, filteredProps), visualProps), { ref: ref });
5701          return Object(external_React_["createElement"])(Component, elementProps);
5702      };
5703      return useRender;
5704  }
5705  
5706  
5707  
5708  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js
5709  var CAMEL_CASE_PATTERN = /([a-z])([A-Z])/g;
5710  var REPLACE_TEMPLATE = "$1-$2";
5711  /**
5712   * Convert camelCase to dash-case properties.
5713   */
5714  var camelToDash = function (str) {
5715      return str.replace(CAMEL_CASE_PATTERN, REPLACE_TEMPLATE).toLowerCase();
5716  };
5717  
5718  
5719  
5720  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/render.js
5721  function renderHTML(element, _a) {
5722      var style = _a.style, vars = _a.vars;
5723      // Directly assign style into the Element's style prop. In tests Object.assign is the
5724      // fastest way to assign styles.
5725      Object.assign(element.style, style);
5726      // Loop over any CSS variables and assign those.
5727      for (var key in vars) {
5728          element.style.setProperty(key, vars[key]);
5729      }
5730  }
5731  
5732  
5733  
5734  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js
5735  /**
5736   * A set of attribute names that are always read/written as camel case.
5737   */
5738  var camelCaseAttributes = new Set([
5739      "baseFrequency",
5740      "diffuseConstant",
5741      "kernelMatrix",
5742      "kernelUnitLength",
5743      "keySplines",
5744      "keyTimes",
5745      "limitingConeAngle",
5746      "markerHeight",
5747      "markerWidth",
5748      "numOctaves",
5749      "targetX",
5750      "targetY",
5751      "surfaceScale",
5752      "specularConstant",
5753      "specularExponent",
5754      "stdDeviation",
5755      "tableValues",
5756      "viewBox",
5757      "gradientTransform",
5758  ]);
5759  
5760  
5761  
5762  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/render.js
5763  
5764  
5765  
5766  
5767  function renderSVG(element, renderState) {
5768      renderHTML(element, renderState);
5769      for (var key in renderState.attrs) {
5770          element.setAttribute(!camelCaseAttributes.has(key) ? camelToDash(key) : key, renderState.attrs[key]);
5771      }
5772  }
5773  
5774  
5775  
5776  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js
5777  
5778  
5779  
5780  function scrape_motion_values_scrapeMotionValuesFromProps(props) {
5781      var style = props.style;
5782      var newValues = {};
5783      for (var key in style) {
5784          if (isMotionValue(style[key]) || isForcedMotionValue(key, props)) {
5785              newValues[key] = style[key];
5786          }
5787      }
5788      return newValues;
5789  }
5790  
5791  
5792  
5793  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js
5794  
5795  
5796  
5797  function utils_scrape_motion_values_scrapeMotionValuesFromProps(props) {
5798      var newValues = scrape_motion_values_scrapeMotionValuesFromProps(props);
5799      for (var key in props) {
5800          if (isMotionValue(props[key])) {
5801              var targetKey = key === "x" || key === "y" ? "attr" + key.toUpperCase() : key;
5802              newValues[targetKey] = props[key];
5803          }
5804      }
5805      return newValues;
5806  }
5807  
5808  
5809  
5810  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js
5811  function isAnimationControls(v) {
5812      return typeof v === "object" && typeof v.start === "function";
5813  }
5814  
5815  
5816  
5817  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js
5818  var isKeyframesTarget = function (v) {
5819      return Array.isArray(v);
5820  };
5821  
5822  
5823  
5824  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/resolve-value.js
5825  
5826  
5827  var isCustomValue = function (v) {
5828      return Boolean(v && typeof v === "object" && v.mix && v.toValue);
5829  };
5830  var resolveFinalValueInKeyframes = function (v) {
5831      // TODO maybe throw if v.length - 1 is placeholder token?
5832      return isKeyframesTarget(v) ? v[v.length - 1] || 0 : v;
5833  };
5834  
5835  
5836  
5837  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js
5838  
5839  
5840  
5841  /**
5842   * If the provided value is a MotionValue, this returns the actual value, otherwise just the value itself
5843   *
5844   * TODO: Remove and move to library
5845   *
5846   * @internal
5847   */
5848  function resolveMotionValue(value) {
5849      var unwrappedValue = isMotionValue(value) ? value.get() : value;
5850      return isCustomValue(unwrappedValue)
5851          ? unwrappedValue.toValue()
5852          : unwrappedValue;
5853  }
5854  
5855  
5856  
5857  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js
5858  
5859  
5860  
5861  
5862  
5863  
5864  
5865  
5866  
5867  function makeState(_a, props, context, presenceContext) {
5868      var scrapeMotionValuesFromProps = _a.scrapeMotionValuesFromProps, createRenderState = _a.createRenderState, onMount = _a.onMount;
5869      var state = {
5870          latestValues: makeLatestValues(props, context, presenceContext, scrapeMotionValuesFromProps),
5871          renderState: createRenderState(),
5872      };
5873      if (onMount) {
5874          state.mount = function (instance) { return onMount(props, instance, state); };
5875      }
5876      return state;
5877  }
5878  var makeUseVisualState = function (config) { return function (props, isStatic) {
5879      var context = Object(external_React_["useContext"])(MotionContext);
5880      var presenceContext = Object(external_React_["useContext"])(PresenceContext);
5881      return isStatic
5882          ? makeState(config, props, context, presenceContext)
5883          : useConstant(function () { return makeState(config, props, context, presenceContext); });
5884  }; };
5885  function makeLatestValues(props, context, presenceContext, scrapeMotionValues) {
5886      var values = {};
5887      var blockInitialAnimation = (presenceContext === null || presenceContext === void 0 ? void 0 : presenceContext.initial) === false;
5888      var motionValues = scrapeMotionValues(props);
5889      for (var key in motionValues) {
5890          values[key] = resolveMotionValue(motionValues[key]);
5891      }
5892      var initial = props.initial, animate = props.animate;
5893      var isControllingVariants = checkIfControllingVariants(props);
5894      var isVariantNode = checkIfVariantNode(props);
5895      if (context &&
5896          isVariantNode &&
5897          !isControllingVariants &&
5898          props.inherit !== false) {
5899          initial !== null && initial !== void 0 ? initial : (initial = context.initial);
5900          animate !== null && animate !== void 0 ? animate : (animate = context.animate);
5901      }
5902      var variantToSet = blockInitialAnimation || initial === false ? animate : initial;
5903      if (variantToSet &&
5904          typeof variantToSet !== "boolean" &&
5905          !isAnimationControls(variantToSet)) {
5906          var list = Array.isArray(variantToSet) ? variantToSet : [variantToSet];
5907          list.forEach(function (definition) {
5908              var resolved = resolveVariantFromProps(props, definition);
5909              if (!resolved)
5910                  return;
5911              var transitionEnd = resolved.transitionEnd; resolved.transition; var target = __rest(resolved, ["transitionEnd", "transition"]);
5912              for (var key in target)
5913                  values[key] = target[key];
5914              for (var key in transitionEnd)
5915                  values[key] = transitionEnd[key];
5916          });
5917      }
5918      return values;
5919  }
5920  
5921  
5922  
5923  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/svg/config-motion.js
5924  
5925  
5926  
5927  
5928  
5929  
5930  var svgMotionConfig = {
5931      useVisualState: makeUseVisualState({
5932          scrapeMotionValuesFromProps: utils_scrape_motion_values_scrapeMotionValuesFromProps,
5933          createRenderState: createSvgRenderState,
5934          onMount: function (props, instance, _a) {
5935              var renderState = _a.renderState, latestValues = _a.latestValues;
5936              try {
5937                  renderState.dimensions =
5938                      typeof instance.getBBox ===
5939                          "function"
5940                          ? instance.getBBox()
5941                          : instance.getBoundingClientRect();
5942              }
5943              catch (e) {
5944                  // Most likely trying to measure an unrendered element under Firefox
5945                  renderState.dimensions = {
5946                      x: 0,
5947                      y: 0,
5948                      width: 0,
5949                      height: 0,
5950                  };
5951              }
5952              if (isPath(instance)) {
5953                  renderState.totalPathLength = instance.getTotalLength();
5954              }
5955              buildSVGAttrs(renderState, latestValues, undefined, undefined, { enableHardwareAcceleration: false }, props.transformTemplate);
5956              // TODO: Replace with direct assignment
5957              renderSVG(instance, renderState);
5958          },
5959      }),
5960  };
5961  function isPath(element) {
5962      return element.tagName === "path";
5963  }
5964  
5965  
5966  
5967  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/html/config-motion.js
5968  
5969  
5970  
5971  
5972  var htmlMotionConfig = {
5973      useVisualState: makeUseVisualState({
5974          scrapeMotionValuesFromProps: scrape_motion_values_scrapeMotionValuesFromProps,
5975          createRenderState: createHtmlRenderState,
5976      }),
5977  };
5978  
5979  
5980  
5981  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/create-config.js
5982  
5983  
5984  
5985  
5986  
5987  
5988  function createDomMotionConfig(Component, _a, preloadedFeatures, createVisualElement) {
5989      var _b = _a.forwardMotionProps, forwardMotionProps = _b === void 0 ? false : _b;
5990      var baseConfig = isSVGComponent(Component)
5991          ? svgMotionConfig
5992          : htmlMotionConfig;
5993      return __assign(__assign({}, baseConfig), { preloadedFeatures: preloadedFeatures, useRender: createUseRender(forwardMotionProps), createVisualElement: createVisualElement,
5994          Component: Component });
5995  }
5996  
5997  
5998  
5999  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/types.js
6000  var AnimationType;
6001  (function (AnimationType) {
6002      AnimationType["Animate"] = "animate";
6003      AnimationType["Hover"] = "whileHover";
6004      AnimationType["Tap"] = "whileTap";
6005      AnimationType["Drag"] = "whileDrag";
6006      AnimationType["Focus"] = "whileFocus";
6007      AnimationType["Exit"] = "exit";
6008  })(AnimationType || (AnimationType = {}));
6009  
6010  
6011  
6012  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/events/use-dom-event.js
6013  
6014  
6015  function addDomEvent(target, eventName, handler, options) {
6016      target.addEventListener(eventName, handler, options);
6017      return function () { return target.removeEventListener(eventName, handler, options); };
6018  }
6019  /**
6020   * Attaches an event listener directly to the provided DOM element.
6021   *
6022   * Bypassing React's event system can be desirable, for instance when attaching non-passive
6023   * event handlers.
6024   *
6025   * ```jsx
6026   * const ref = useRef(null)
6027   *
6028   * useDomEvent(ref, 'wheel', onWheel, { passive: false })
6029   *
6030   * return <div ref={ref} />
6031   * ```
6032   *
6033   * @param ref - React.RefObject that's been provided to the element you want to bind the listener to.
6034   * @param eventName - Name of the event you want listen for.
6035   * @param handler - Function to fire when receiving the event.
6036   * @param options - Options to pass to `Event.addEventListener`.
6037   *
6038   * @public
6039   */
6040  function useDomEvent(ref, eventName, handler, options) {
6041      Object(external_React_["useEffect"])(function () {
6042          var element = ref.current;
6043          if (handler && element) {
6044              return addDomEvent(element, eventName, handler, options);
6045          }
6046      }, [ref, eventName, handler, options]);
6047  }
6048  
6049  
6050  
6051  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/use-focus-gesture.js
6052  
6053  
6054  
6055  /**
6056   *
6057   * @param props
6058   * @param ref
6059   * @internal
6060   */
6061  function useFocusGesture(_a) {
6062      var whileFocus = _a.whileFocus, visualElement = _a.visualElement;
6063      var onFocus = function () {
6064          var _a;
6065          (_a = visualElement.animationState) === null || _a === void 0 ? void 0 : _a.setActive(AnimationType.Focus, true);
6066      };
6067      var onBlur = function () {
6068          var _a;
6069          (_a = visualElement.animationState) === null || _a === void 0 ? void 0 : _a.setActive(AnimationType.Focus, false);
6070      };
6071      useDomEvent(visualElement, "focus", whileFocus ? onFocus : undefined);
6072      useDomEvent(visualElement, "blur", whileFocus ? onBlur : undefined);
6073  }
6074  
6075  
6076  
6077  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/utils/event-type.js
6078  function isMouseEvent(event) {
6079      // PointerEvent inherits from MouseEvent so we can't use a straight instanceof check.
6080      if (typeof PointerEvent !== "undefined" && event instanceof PointerEvent) {
6081          return !!(event.pointerType === "mouse");
6082      }
6083      return event instanceof MouseEvent;
6084  }
6085  function isTouchEvent(event) {
6086      var hasTouches = !!event.touches;
6087      return hasTouches;
6088  }
6089  
6090  
6091  
6092  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/events/event-info.js
6093  
6094  
6095  /**
6096   * Filters out events not attached to the primary pointer (currently left mouse button)
6097   * @param eventHandler
6098   */
6099  function filterPrimaryPointer(eventHandler) {
6100      return function (event) {
6101          var isMouseEvent = event instanceof MouseEvent;
6102          var isPrimaryPointer = !isMouseEvent ||
6103              (isMouseEvent && event.button === 0);
6104          if (isPrimaryPointer) {
6105              eventHandler(event);
6106          }
6107      };
6108  }
6109  var defaultPagePoint = { pageX: 0, pageY: 0 };
6110  function pointFromTouch(e, pointType) {
6111      if (pointType === void 0) { pointType = "page"; }
6112      var primaryTouch = e.touches[0] || e.changedTouches[0];
6113      var point = primaryTouch || defaultPagePoint;
6114      return {
6115          x: point[pointType + "X"],
6116          y: point[pointType + "Y"],
6117      };
6118  }
6119  function pointFromMouse(point, pointType) {
6120      if (pointType === void 0) { pointType = "page"; }
6121      return {
6122          x: point[pointType + "X"],
6123          y: point[pointType + "Y"],
6124      };
6125  }
6126  function extractEventInfo(event, pointType) {
6127      if (pointType === void 0) { pointType = "page"; }
6128      return {
6129          point: isTouchEvent(event)
6130              ? pointFromTouch(event, pointType)
6131              : pointFromMouse(event, pointType),
6132      };
6133  }
6134  function getViewportPointFromEvent(event) {
6135      return extractEventInfo(event, "client");
6136  }
6137  var wrapHandler = function (handler, shouldFilterPrimaryPointer) {
6138      if (shouldFilterPrimaryPointer === void 0) { shouldFilterPrimaryPointer = false; }
6139      var listener = function (event) {
6140          return handler(event, extractEventInfo(event));
6141      };
6142      return shouldFilterPrimaryPointer
6143          ? filterPrimaryPointer(listener)
6144          : listener;
6145  };
6146  
6147  
6148  
6149  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/events/utils.js
6150  
6151  
6152  // We check for event support via functions in case they've been mocked by a testing suite.
6153  var supportsPointerEvents = function () {
6154      return isBrowser && window.onpointerdown === null;
6155  };
6156  var supportsTouchEvents = function () {
6157      return isBrowser && window.ontouchstart === null;
6158  };
6159  var supportsMouseEvents = function () {
6160      return isBrowser && window.onmousedown === null;
6161  };
6162  
6163  
6164  
6165  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/events/use-pointer-event.js
6166  
6167  
6168  
6169  
6170  var mouseEventNames = {
6171      pointerdown: "mousedown",
6172      pointermove: "mousemove",
6173      pointerup: "mouseup",
6174      pointercancel: "mousecancel",
6175      pointerover: "mouseover",
6176      pointerout: "mouseout",
6177      pointerenter: "mouseenter",
6178      pointerleave: "mouseleave",
6179  };
6180  var touchEventNames = {
6181      pointerdown: "touchstart",
6182      pointermove: "touchmove",
6183      pointerup: "touchend",
6184      pointercancel: "touchcancel",
6185  };
6186  function getPointerEventName(name) {
6187      if (supportsPointerEvents()) {
6188          return name;
6189      }
6190      else if (supportsTouchEvents()) {
6191          return touchEventNames[name];
6192      }
6193      else if (supportsMouseEvents()) {
6194          return mouseEventNames[name];
6195      }
6196      return name;
6197  }
6198  function addPointerEvent(target, eventName, handler, options) {
6199      return addDomEvent(target, getPointerEventName(eventName), wrapHandler(handler, eventName === "pointerdown"), options);
6200  }
6201  function usePointerEvent(ref, eventName, handler, options) {
6202      return useDomEvent(ref, getPointerEventName(eventName), handler && wrapHandler(handler, eventName === "pointerdown"), options);
6203  }
6204  
6205  
6206  
6207  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/drag/utils/lock.js
6208  function createLock(name) {
6209      var lock = null;
6210      return function () {
6211          var openLock = function () {
6212              lock = null;
6213          };
6214          if (lock === null) {
6215              lock = name;
6216              return openLock;
6217          }
6218          return false;
6219      };
6220  }
6221  var globalHorizontalLock = createLock("dragHorizontal");
6222  var globalVerticalLock = createLock("dragVertical");
6223  function getGlobalLock(drag) {
6224      var lock = false;
6225      if (drag === "y") {
6226          lock = globalVerticalLock();
6227      }
6228      else if (drag === "x") {
6229          lock = globalHorizontalLock();
6230      }
6231      else {
6232          var openHorizontal_1 = globalHorizontalLock();
6233          var openVertical_1 = globalVerticalLock();
6234          if (openHorizontal_1 && openVertical_1) {
6235              lock = function () {
6236                  openHorizontal_1();
6237                  openVertical_1();
6238              };
6239          }
6240          else {
6241              // Release the locks because we don't use them
6242              if (openHorizontal_1)
6243                  openHorizontal_1();
6244              if (openVertical_1)
6245                  openVertical_1();
6246          }
6247      }
6248      return lock;
6249  }
6250  function isDragActive() {
6251      // Check the gesture lock - if we get it, it means no drag gesture is active
6252      // and we can safely fire the tap gesture.
6253      var openGestureLock = getGlobalLock(true);
6254      if (!openGestureLock)
6255          return true;
6256      openGestureLock();
6257      return false;
6258  }
6259  
6260  
6261  
6262  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/use-hover-gesture.js
6263  
6264  
6265  
6266  
6267  
6268  function createHoverEvent(visualElement, isActive, callback) {
6269      return function (event, info) {
6270          var _a;
6271          if (!isMouseEvent(event) || isDragActive())
6272              return;
6273          callback === null || callback === void 0 ? void 0 : callback(event, info);
6274          (_a = visualElement.animationState) === null || _a === void 0 ? void 0 : _a.setActive(AnimationType.Hover, isActive);
6275      };
6276  }
6277  function useHoverGesture(_a) {
6278      var onHoverStart = _a.onHoverStart, onHoverEnd = _a.onHoverEnd, whileHover = _a.whileHover, visualElement = _a.visualElement;
6279      usePointerEvent(visualElement, "pointerenter", onHoverStart || whileHover
6280          ? createHoverEvent(visualElement, true, onHoverStart)
6281          : undefined);
6282      usePointerEvent(visualElement, "pointerleave", onHoverEnd || whileHover
6283          ? createHoverEvent(visualElement, false, onHoverEnd)
6284          : undefined);
6285  }
6286  
6287  
6288  
6289  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/utils/is-node-or-child.js
6290  /**
6291   * Recursively traverse up the tree to check whether the provided child node
6292   * is the parent or a descendant of it.
6293   *
6294   * @param parent - Element to find
6295   * @param child - Element to test against parent
6296   */
6297  var isNodeOrChild = function (parent, child) {
6298      if (!child) {
6299          return false;
6300      }
6301      else if (parent === child) {
6302          return true;
6303      }
6304      else {
6305          return isNodeOrChild(parent, child.parentElement);
6306      }
6307  };
6308  
6309  
6310  
6311  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/use-unmount-effect.js
6312  
6313  
6314  function useUnmountEffect(callback) {
6315      return Object(external_React_["useEffect"])(function () { return function () { return callback(); }; }, []);
6316  }
6317  
6318  
6319  
6320  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/utils/pipe.js
6321  var combineFunctions = function (a, b) { return function (v) { return b(a(v)); }; };
6322  var pipe = function () {
6323      var transformers = [];
6324      for (var _i = 0; _i < arguments.length; _i++) {
6325          transformers[_i] = arguments[_i];
6326      }
6327      return transformers.reduce(combineFunctions);
6328  };
6329  
6330  
6331  
6332  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/gestures/use-tap-gesture.js
6333  
6334  
6335  
6336  
6337  
6338  
6339  
6340  
6341  /**
6342   * @param handlers -
6343   * @internal
6344   */
6345  function useTapGesture(_a) {
6346      var onTap = _a.onTap, onTapStart = _a.onTapStart, onTapCancel = _a.onTapCancel, whileTap = _a.whileTap, visualElement = _a.visualElement;
6347      var hasPressListeners = onTap || onTapStart || onTapCancel || whileTap;
6348      var isPressing = Object(external_React_["useRef"])(false);
6349      var cancelPointerEndListeners = Object(external_React_["useRef"])(null);
6350      function removePointerEndListener() {
6351          var _a;
6352          (_a = cancelPointerEndListeners.current) === null || _a === void 0 ? void 0 : _a.call(cancelPointerEndListeners);
6353          cancelPointerEndListeners.current = null;
6354      }
6355      function checkPointerEnd() {
6356          var _a;
6357          removePointerEndListener();
6358          isPressing.current = false;
6359          (_a = visualElement.animationState) === null || _a === void 0 ? void 0 : _a.setActive(AnimationType.Tap, false);
6360          return !isDragActive();
6361      }
6362      function onPointerUp(event, info) {
6363          if (!checkPointerEnd())
6364              return;
6365          /**
6366           * We only count this as a tap gesture if the event.target is the same
6367           * as, or a child of, this component's element
6368           */
6369          !isNodeOrChild(visualElement.getInstance(), event.target)
6370              ? onTapCancel === null || onTapCancel === void 0 ? void 0 : onTapCancel(event, info)
6371              : onTap === null || onTap === void 0 ? void 0 : onTap(event, info);
6372      }
6373      function onPointerCancel(event, info) {
6374          if (!checkPointerEnd())
6375              return;
6376          onTapCancel === null || onTapCancel === void 0 ? void 0 : onTapCancel(event, info);
6377      }
6378      function onPointerDown(event, info) {
6379          var _a;
6380          removePointerEndListener();
6381          if (isPressing.current)
6382              return;
6383          isPressing.current = true;
6384          cancelPointerEndListeners.current = pipe(addPointerEvent(window, "pointerup", onPointerUp), addPointerEvent(window, "pointercancel", onPointerCancel));
6385          onTapStart === null || onTapStart === void 0 ? void 0 : onTapStart(event, info);
6386          (_a = visualElement.animationState) === null || _a === void 0 ? void 0 : _a.setActive(AnimationType.Tap, true);
6387      }
6388      usePointerEvent(visualElement, "pointerdown", hasPressListeners ? onPointerDown : undefined);
6389      useUnmountEffect(removePointerEndListener);
6390  }
6391  
6392  
6393  
6394  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/utils/make-renderless-component.js
6395  var makeRenderlessComponent = function (hook) { return function (props) {
6396      hook(props);
6397      return null;
6398  }; };
6399  
6400  
6401  
6402  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/gestures.js
6403  
6404  
6405  
6406  
6407  
6408  var gestureAnimations = {
6409      tap: makeRenderlessComponent(useTapGesture),
6410      focus: makeRenderlessComponent(useFocusGesture),
6411      hover: makeRenderlessComponent(useHoverGesture),
6412  };
6413  
6414  
6415  
6416  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/shallow-compare.js
6417  function shallowCompare(next, prev) {
6418      if (!Array.isArray(prev))
6419          return false;
6420      var prevLength = prev.length;
6421      if (prevLength !== next.length)
6422          return false;
6423      for (var i = 0; i < prevLength; i++) {
6424          if (prev[i] !== next[i])
6425              return false;
6426      }
6427      return true;
6428  }
6429  
6430  
6431  
6432  // CONCATENATED MODULE: ./node_modules/popmotion/node_modules/tslib/tslib.es6.js
6433  /*! *****************************************************************************

6434  Copyright (c) Microsoft Corporation.

6435  

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

6437  purpose with or without fee is hereby granted.

6438  

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

6440  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY

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

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

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

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

6445  PERFORMANCE OF THIS SOFTWARE.

6446  ***************************************************************************** */
6447  /* global Reflect, Promise */

6448  
6449  var tslib_tslib_es6_extendStatics = function(d, b) {
6450      tslib_tslib_es6_extendStatics = Object.setPrototypeOf ||
6451          ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6452          function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6453      return tslib_tslib_es6_extendStatics(d, b);
6454  };
6455  
6456  function tslib_tslib_es6_extends(d, b) {
6457      if (typeof b !== "function" && b !== null)
6458          throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
6459      tslib_tslib_es6_extendStatics(d, b);
6460      function __() { this.constructor = d; }
6461      d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6462  }
6463  
6464  var tslib_tslib_es6_assign = function() {
6465      tslib_tslib_es6_assign = Object.assign || function __assign(t) {
6466          for (var s, i = 1, n = arguments.length; i < n; i++) {
6467              s = arguments[i];
6468              for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
6469          }
6470          return t;
6471      }
6472      return tslib_tslib_es6_assign.apply(this, arguments);
6473  }
6474  
6475  function tslib_tslib_es6_rest(s, e) {
6476      var t = {};
6477      for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
6478          t[p] = s[p];
6479      if (s != null && typeof Object.getOwnPropertySymbols === "function")
6480          for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
6481              if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
6482                  t[p[i]] = s[p[i]];
6483          }
6484      return t;
6485  }
6486  
6487  function tslib_tslib_es6_decorate(decorators, target, key, desc) {
6488      var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6489      if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6490      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;
6491      return c > 3 && r && Object.defineProperty(target, key, r), r;
6492  }
6493  
6494  function tslib_tslib_es6_param(paramIndex, decorator) {
6495      return function (target, key) { decorator(target, key, paramIndex); }
6496  }
6497  
6498  function tslib_tslib_es6_metadata(metadataKey, metadataValue) {
6499      if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
6500  }
6501  
6502  function tslib_tslib_es6_awaiter(thisArg, _arguments, P, generator) {
6503      function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6504      return new (P || (P = Promise))(function (resolve, reject) {
6505          function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6506          function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6507          function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
6508          step((generator = generator.apply(thisArg, _arguments || [])).next());
6509      });
6510  }
6511  
6512  function tslib_tslib_es6_generator(thisArg, body) {
6513      var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
6514      return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
6515      function verb(n) { return function (v) { return step([n, v]); }; }
6516      function step(op) {
6517          if (f) throw new TypeError("Generator is already executing.");
6518          while (_) try {
6519              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;
6520              if (y = 0, t) op = [op[0] & 2, t.value];
6521              switch (op[0]) {
6522                  case 0: case 1: t = op; break;
6523                  case 4: _.label++; return { value: op[1], done: false };
6524                  case 5: _.label++; y = op[1]; op = [0]; continue;
6525                  case 7: op = _.ops.pop(); _.trys.pop(); continue;
6526                  default:
6527                      if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
6528                      if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
6529                      if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
6530                      if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
6531                      if (t[2]) _.ops.pop();
6532                      _.trys.pop(); continue;
6533              }
6534              op = body.call(thisArg, _);
6535          } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
6536          if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
6537      }
6538  }
6539  
6540  var tslib_tslib_es6_createBinding = Object.create ? (function(o, m, k, k2) {
6541      if (k2 === undefined) k2 = k;
6542      Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
6543  }) : (function(o, m, k, k2) {
6544      if (k2 === undefined) k2 = k;
6545      o[k2] = m[k];
6546  });
6547  
6548  function tslib_tslib_es6_exportStar(m, o) {
6549      for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) tslib_tslib_es6_createBinding(o, m, p);
6550  }
6551  
6552  function tslib_tslib_es6_values(o) {
6553      var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
6554      if (m) return m.call(o);
6555      if (o && typeof o.length === "number") return {
6556          next: function () {
6557              if (o && i >= o.length) o = void 0;
6558              return { value: o && o[i++], done: !o };
6559          }
6560      };
6561      throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
6562  }
6563  
6564  function tslib_tslib_es6_read(o, n) {
6565      var m = typeof Symbol === "function" && o[Symbol.iterator];
6566      if (!m) return o;
6567      var i = m.call(o), r, ar = [], e;
6568      try {
6569          while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
6570      }
6571      catch (error) { e = { error: error }; }
6572      finally {
6573          try {
6574              if (r && !r.done && (m = i["return"])) m.call(i);
6575          }
6576          finally { if (e) throw e.error; }
6577      }
6578      return ar;
6579  }
6580  
6581  /** @deprecated */

6582  function tslib_tslib_es6_spread() {
6583      for (var ar = [], i = 0; i < arguments.length; i++)
6584          ar = ar.concat(tslib_tslib_es6_read(arguments[i]));
6585      return ar;
6586  }
6587  
6588  /** @deprecated */

6589  function tslib_tslib_es6_spreadArrays() {
6590      for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
6591      for (var r = Array(s), k = 0, i = 0; i < il; i++)
6592          for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
6593              r[k] = a[j];
6594      return r;
6595  }
6596  
6597  function tslib_tslib_es6_spreadArray(to, from, pack) {
6598      if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
6599          if (ar || !(i in from)) {
6600              if (!ar) ar = Array.prototype.slice.call(from, 0, i);
6601              ar[i] = from[i];
6602          }
6603      }
6604      return to.concat(ar || from);
6605  }
6606  
6607  function tslib_tslib_es6_await(v) {
6608      return this instanceof tslib_tslib_es6_await ? (this.v = v, this) : new tslib_tslib_es6_await(v);
6609  }
6610  
6611  function tslib_tslib_es6_asyncGenerator(thisArg, _arguments, generator) {
6612      if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
6613      var g = generator.apply(thisArg, _arguments || []), i, q = [];
6614      return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
6615      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); }); }; }
6616      function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
6617      function step(r) { r.value instanceof tslib_tslib_es6_await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
6618      function fulfill(value) { resume("next", value); }
6619      function reject(value) { resume("throw", value); }
6620      function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
6621  }
6622  
6623  function tslib_tslib_es6_asyncDelegator(o) {
6624      var i, p;
6625      return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
6626      function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: tslib_tslib_es6_await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
6627  }
6628  
6629  function tslib_tslib_es6_asyncValues(o) {
6630      if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
6631      var m = o[Symbol.asyncIterator], i;
6632      return m ? m.call(o) : (o = typeof tslib_tslib_es6_values === "function" ? tslib_tslib_es6_values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
6633      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); }); }; }
6634      function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
6635  }
6636  
6637  function tslib_tslib_es6_makeTemplateObject(cooked, raw) {
6638      if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
6639      return cooked;
6640  };
6641  
6642  var tslib_tslib_es6_setModuleDefault = Object.create ? (function(o, v) {
6643      Object.defineProperty(o, "default", { enumerable: true, value: v });
6644  }) : function(o, v) {
6645      o["default"] = v;
6646  };
6647  
6648  function tslib_tslib_es6_importStar(mod) {
6649      if (mod && mod.__esModule) return mod;
6650      var result = {};
6651      if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) tslib_tslib_es6_createBinding(result, mod, k);
6652      tslib_tslib_es6_setModuleDefault(result, mod);
6653      return result;
6654  }
6655  
6656  function tslib_tslib_es6_importDefault(mod) {
6657      return (mod && mod.__esModule) ? mod : { default: mod };
6658  }
6659  
6660  function tslib_tslib_es6_classPrivateFieldGet(receiver, state, kind, f) {
6661      if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
6662      if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
6663      return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6664  }
6665  
6666  function tslib_tslib_es6_classPrivateFieldSet(receiver, state, value, kind, f) {
6667      if (kind === "m") throw new TypeError("Private method is not writable");
6668      if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
6669      if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6670      return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
6671  }
6672  
6673  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/utils/clamp.js
6674  var clamp_clamp = function (min, max, v) {
6675      return Math.min(Math.max(v, min), max);
6676  };
6677  
6678  
6679  
6680  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/animations/utils/find-spring.js
6681  
6682  
6683  
6684  var safeMin = 0.001;
6685  var minDuration = 0.01;
6686  var maxDuration = 10.0;
6687  var minDamping = 0.05;
6688  var maxDamping = 1;
6689  function findSpring(_a) {
6690      var _b = _a.duration, duration = _b === void 0 ? 800 : _b, _c = _a.bounce, bounce = _c === void 0 ? 0.25 : _c, _d = _a.velocity, velocity = _d === void 0 ? 0 : _d, _e = _a.mass, mass = _e === void 0 ? 1 : _e;
6691      var envelope;
6692      var derivative;
6693      warning(duration <= maxDuration * 1000, "Spring duration must be 10 seconds or less");
6694      var dampingRatio = 1 - bounce;
6695      dampingRatio = clamp_clamp(minDamping, maxDamping, dampingRatio);
6696      duration = clamp_clamp(minDuration, maxDuration, duration / 1000);
6697      if (dampingRatio < 1) {
6698          envelope = function (undampedFreq) {
6699              var exponentialDecay = undampedFreq * dampingRatio;
6700              var delta = exponentialDecay * duration;
6701              var a = exponentialDecay - velocity;
6702              var b = calcAngularFreq(undampedFreq, dampingRatio);
6703              var c = Math.exp(-delta);
6704              return safeMin - (a / b) * c;
6705          };
6706          derivative = function (undampedFreq) {
6707              var exponentialDecay = undampedFreq * dampingRatio;
6708              var delta = exponentialDecay * duration;
6709              var d = delta * velocity + velocity;
6710              var e = Math.pow(dampingRatio, 2) * Math.pow(undampedFreq, 2) * duration;
6711              var f = Math.exp(-delta);
6712              var g = calcAngularFreq(Math.pow(undampedFreq, 2), dampingRatio);
6713              var factor = -envelope(undampedFreq) + safeMin > 0 ? -1 : 1;
6714              return (factor * ((d - e) * f)) / g;
6715          };
6716      }
6717      else {
6718          envelope = function (undampedFreq) {
6719              var a = Math.exp(-undampedFreq * duration);
6720              var b = (undampedFreq - velocity) * duration + 1;
6721              return -safeMin + a * b;
6722          };
6723          derivative = function (undampedFreq) {
6724              var a = Math.exp(-undampedFreq * duration);
6725              var b = (velocity - undampedFreq) * (duration * duration);
6726              return a * b;
6727          };
6728      }
6729      var initialGuess = 5 / duration;
6730      var undampedFreq = approximateRoot(envelope, derivative, initialGuess);
6731      duration = duration * 1000;
6732      if (isNaN(undampedFreq)) {
6733          return {
6734              stiffness: 100,
6735              damping: 10,
6736              duration: duration,
6737          };
6738      }
6739      else {
6740          var stiffness = Math.pow(undampedFreq, 2) * mass;
6741          return {
6742              stiffness: stiffness,
6743              damping: dampingRatio * 2 * Math.sqrt(mass * stiffness),
6744              duration: duration,
6745          };
6746      }
6747  }
6748  var rootIterations = 12;
6749  function approximateRoot(envelope, derivative, initialGuess) {
6750      var result = initialGuess;
6751      for (var i = 1; i < rootIterations; i++) {
6752          result = result - envelope(result) / derivative(result);
6753      }
6754      return result;
6755  }
6756  function calcAngularFreq(undampedFreq, dampingRatio) {
6757      return undampedFreq * Math.sqrt(1 - dampingRatio * dampingRatio);
6758  }
6759  
6760  
6761  
6762  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/animations/generators/spring.js
6763  
6764  
6765  
6766  var durationKeys = ["duration", "bounce"];
6767  var physicsKeys = ["stiffness", "damping", "mass"];
6768  function isSpringType(options, keys) {
6769      return keys.some(function (key) { return options[key] !== undefined; });
6770  }
6771  function getSpringOptions(options) {
6772      var springOptions = tslib_tslib_es6_assign({ velocity: 0.0, stiffness: 100, damping: 10, mass: 1.0, isResolvedFromDuration: false }, options);
6773      if (!isSpringType(options, physicsKeys) &&
6774          isSpringType(options, durationKeys)) {
6775          var derived = findSpring(options);
6776          springOptions = tslib_tslib_es6_assign(tslib_tslib_es6_assign(tslib_tslib_es6_assign({}, springOptions), derived), { velocity: 0.0, mass: 1.0 });
6777          springOptions.isResolvedFromDuration = true;
6778      }
6779      return springOptions;
6780  }
6781  function spring(_a) {
6782      var _b = _a.from, from = _b === void 0 ? 0.0 : _b, _c = _a.to, to = _c === void 0 ? 1.0 : _c, _d = _a.restSpeed, restSpeed = _d === void 0 ? 2 : _d, restDelta = _a.restDelta, options = tslib_tslib_es6_rest(_a, ["from", "to", "restSpeed", "restDelta"]);
6783      var state = { done: false, value: from };
6784      var _e = getSpringOptions(options), stiffness = _e.stiffness, damping = _e.damping, mass = _e.mass, velocity = _e.velocity, duration = _e.duration, isResolvedFromDuration = _e.isResolvedFromDuration;
6785      var resolveSpring = zero;
6786      var resolveVelocity = zero;
6787      function createSpring() {
6788          var initialVelocity = velocity ? -(velocity / 1000) : 0.0;
6789          var initialDelta = to - from;
6790          var dampingRatio = damping / (2 * Math.sqrt(stiffness * mass));
6791          var undampedAngularFreq = Math.sqrt(stiffness / mass) / 1000;
6792          restDelta !== null && restDelta !== void 0 ? restDelta : (restDelta = Math.abs(to - from) <= 1 ? 0.01 : 0.4);
6793          if (dampingRatio < 1) {
6794              var angularFreq_1 = calcAngularFreq(undampedAngularFreq, dampingRatio);
6795              resolveSpring = function (t) {
6796                  var envelope = Math.exp(-dampingRatio * undampedAngularFreq * t);
6797                  return (to -
6798                      envelope *
6799                          (((initialVelocity +
6800                              dampingRatio * undampedAngularFreq * initialDelta) /
6801                              angularFreq_1) *
6802                              Math.sin(angularFreq_1 * t) +
6803                              initialDelta * Math.cos(angularFreq_1 * t)));
6804              };
6805              resolveVelocity = function (t) {
6806                  var envelope = Math.exp(-dampingRatio * undampedAngularFreq * t);
6807                  return (dampingRatio *
6808                      undampedAngularFreq *
6809                      envelope *
6810                      ((Math.sin(angularFreq_1 * t) *
6811                          (initialVelocity +
6812                              dampingRatio *
6813                                  undampedAngularFreq *
6814                                  initialDelta)) /
6815                          angularFreq_1 +
6816                          initialDelta * Math.cos(angularFreq_1 * t)) -
6817                      envelope *
6818                          (Math.cos(angularFreq_1 * t) *
6819                              (initialVelocity +
6820                                  dampingRatio *
6821                                      undampedAngularFreq *
6822                                      initialDelta) -
6823                              angularFreq_1 *
6824                                  initialDelta *
6825                                  Math.sin(angularFreq_1 * t)));
6826              };
6827          }
6828          else if (dampingRatio === 1) {
6829              resolveSpring = function (t) {
6830                  return to -
6831                      Math.exp(-undampedAngularFreq * t) *
6832                          (initialDelta +
6833                              (initialVelocity + undampedAngularFreq * initialDelta) *
6834                                  t);
6835              };
6836          }
6837          else {
6838              var dampedAngularFreq_1 = undampedAngularFreq * Math.sqrt(dampingRatio * dampingRatio - 1);
6839              resolveSpring = function (t) {
6840                  var envelope = Math.exp(-dampingRatio * undampedAngularFreq * t);
6841                  var freqForT = Math.min(dampedAngularFreq_1 * t, 300);
6842                  return (to -
6843                      (envelope *
6844                          ((initialVelocity +
6845                              dampingRatio * undampedAngularFreq * initialDelta) *
6846                              Math.sinh(freqForT) +
6847                              dampedAngularFreq_1 *
6848                                  initialDelta *
6849                                  Math.cosh(freqForT))) /
6850                          dampedAngularFreq_1);
6851              };
6852          }
6853      }
6854      createSpring();
6855      return {
6856          next: function (t) {
6857              var current = resolveSpring(t);
6858              if (!isResolvedFromDuration) {
6859                  var currentVelocity = resolveVelocity(t) * 1000;
6860                  var isBelowVelocityThreshold = Math.abs(currentVelocity) <= restSpeed;
6861                  var isBelowDisplacementThreshold = Math.abs(to - current) <= restDelta;
6862                  state.done =
6863                      isBelowVelocityThreshold && isBelowDisplacementThreshold;
6864              }
6865              else {
6866                  state.done = t >= duration;
6867              }
6868              state.value = state.done ? to : current;
6869              return state;
6870          },
6871          flipTarget: function () {
6872              var _a;
6873              velocity = -velocity;
6874              _a = [to, from], from = _a[0], to = _a[1];
6875              createSpring();
6876          },
6877      };
6878  }
6879  spring.needsInterpolation = function (a, b) {
6880      return typeof a === "string" || typeof b === "string";
6881  };
6882  var zero = function (_t) { return 0; };
6883  
6884  
6885  
6886  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/utils/progress.js
6887  var progress_progress = function (from, to, value) {
6888      var toFromDifference = to - from;
6889      return toFromDifference === 0 ? 1 : (value - from) / toFromDifference;
6890  };
6891  
6892  
6893  
6894  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/utils/mix.js
6895  var mix = function (from, to, progress) {
6896      return -progress * from + progress * to + from;
6897  };
6898  
6899  
6900  
6901  // CONCATENATED MODULE: ./node_modules/style-value-types/dist/es/color/utils.js
6902  
6903  
6904  var isColorString = function (type, testProp) { return function (v) {
6905      return Boolean((isString(v) && singleColorRegex.test(v) && v.startsWith(type)) ||
6906          (testProp && Object.prototype.hasOwnProperty.call(v, testProp)));
6907  }; };
6908  var splitColor = function (aName, bName, cName) { return function (v) {
6909      var _a;
6910      if (!isString(v))
6911          return v;
6912      var _b = v.match(floatRegex), a = _b[0], b = _b[1], c = _b[2], alpha = _b[3];
6913      return _a = {},
6914          _a[aName] = parseFloat(a),
6915          _a[bName] = parseFloat(b),
6916          _a[cName] = parseFloat(c),
6917          _a.alpha = alpha !== undefined ? parseFloat(alpha) : 1,
6918          _a;
6919  }; };
6920  
6921  
6922  
6923  // CONCATENATED MODULE: ./node_modules/style-value-types/dist/es/color/rgba.js
6924  
6925  
6926  
6927  
6928  
6929  var clampRgbUnit = clamp(0, 255);
6930  var rgbUnit = tslib_es6_assign(tslib_es6_assign({}, numbers_number), { transform: function (v) { return Math.round(clampRgbUnit(v)); } });
6931  var rgba = {
6932      test: isColorString('rgb', 'red'),
6933      parse: splitColor('red', 'green', 'blue'),
6934      transform: function (_a) {
6935          var red = _a.red, green = _a.green, blue = _a.blue, _b = _a.alpha, alpha$1 = _b === void 0 ? 1 : _b;
6936          return 'rgba(' +
6937              rgbUnit.transform(red) +
6938              ', ' +
6939              rgbUnit.transform(green) +
6940              ', ' +
6941              rgbUnit.transform(blue) +
6942              ', ' +
6943              sanitize(numbers_alpha.transform(alpha$1)) +
6944              ')';
6945      },
6946  };
6947  
6948  
6949  
6950  // CONCATENATED MODULE: ./node_modules/style-value-types/dist/es/color/hex.js
6951  
6952  
6953  
6954  function parseHex(v) {
6955      var r = '';
6956      var g = '';
6957      var b = '';
6958      var a = '';
6959      if (v.length > 5) {
6960          r = v.substr(1, 2);
6961          g = v.substr(3, 2);
6962          b = v.substr(5, 2);
6963          a = v.substr(7, 2);
6964      }
6965      else {
6966          r = v.substr(1, 1);
6967          g = v.substr(2, 1);
6968          b = v.substr(3, 1);
6969          a = v.substr(4, 1);
6970          r += r;
6971          g += g;
6972          b += b;
6973          a += a;
6974      }
6975      return {
6976          red: parseInt(r, 16),
6977          green: parseInt(g, 16),
6978          blue: parseInt(b, 16),
6979          alpha: a ? parseInt(a, 16) / 255 : 1,
6980      };
6981  }
6982  var hex = {
6983      test: isColorString('#'),
6984      parse: parseHex,
6985      transform: rgba.transform,
6986  };
6987  
6988  
6989  
6990  // CONCATENATED MODULE: ./node_modules/style-value-types/dist/es/color/hsla.js
6991  
6992  
6993  
6994  
6995  
6996  var hsla = {
6997      test: isColorString('hsl', 'hue'),
6998      parse: splitColor('hue', 'saturation', 'lightness'),
6999      transform: function (_a) {
7000          var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha$1 = _b === void 0 ? 1 : _b;
7001          return ('hsla(' +
7002              Math.round(hue) +
7003              ', ' +
7004              percent.transform(sanitize(saturation)) +
7005              ', ' +
7006              percent.transform(sanitize(lightness)) +
7007              ', ' +
7008              sanitize(numbers_alpha.transform(alpha$1)) +
7009              ')');
7010      },
7011  };
7012  
7013  
7014  
7015  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/utils/mix-color.js
7016  
7017  
7018  
7019  
7020  
7021  var mixLinearColor = function (from, to, v) {
7022      var fromExpo = from * from;
7023      var toExpo = to * to;
7024      return Math.sqrt(Math.max(0, v * (toExpo - fromExpo) + fromExpo));
7025  };
7026  var colorTypes = [hex, rgba, hsla];
7027  var getColorType = function (v) {
7028      return colorTypes.find(function (type) { return type.test(v); });
7029  };
7030  var notAnimatable = function (color) {
7031      return "'" + color + "' is not an animatable color. Use the equivalent color code instead.";
7032  };
7033  var mixColor = function (from, to) {
7034      var fromColorType = getColorType(from);
7035      var toColorType = getColorType(to);
7036      invariant(!!fromColorType, notAnimatable(from));
7037      invariant(!!toColorType, notAnimatable(to));
7038      invariant(fromColorType.transform === toColorType.transform, "Both colors must be hex/RGBA, OR both must be HSLA.");
7039      var fromColor = fromColorType.parse(from);
7040      var toColor = toColorType.parse(to);
7041      var blended = tslib_tslib_es6_assign({}, fromColor);
7042      var mixFunc = fromColorType === hsla ? mix : mixLinearColor;
7043      return function (v) {
7044          for (var key in blended) {
7045              if (key !== "alpha") {
7046                  blended[key] = mixFunc(fromColor[key], toColor[key], v);
7047              }
7048          }
7049          blended.alpha = mix(fromColor.alpha, toColor.alpha, v);
7050          return fromColorType.transform(blended);
7051      };
7052  };
7053  
7054  
7055  
7056  // CONCATENATED MODULE: ./node_modules/style-value-types/dist/es/color/index.js
7057  
7058  
7059  
7060  
7061  
7062  var color = {
7063      test: function (v) { return rgba.test(v) || hex.test(v) || hsla.test(v); },
7064      parse: function (v) {
7065          if (rgba.test(v)) {
7066              return rgba.parse(v);
7067          }
7068          else if (hsla.test(v)) {
7069              return hsla.parse(v);
7070          }
7071          else {
7072              return hex.parse(v);
7073          }
7074      },
7075      transform: function (v) {
7076          return isString(v)
7077              ? v
7078              : v.hasOwnProperty('red')
7079                  ? rgba.transform(v)
7080                  : hsla.transform(v);
7081      },
7082  };
7083  
7084  
7085  
7086  // CONCATENATED MODULE: ./node_modules/style-value-types/dist/es/complex/index.js
7087  
7088  
7089  
7090  
7091  var colorToken = '$c}';
7092  var numberToken = '$n}';
7093  function test(v) {
7094      var _a, _b, _c, _d;
7095      return (isNaN(v) &&
7096          isString(v) &&
7097          ((_b = (_a = v.match(floatRegex)) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) + ((_d = (_c = v.match(colorRegex)) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0) > 0);
7098  }
7099  function analyse(v) {
7100      var values = [];
7101      var numColors = 0;
7102      var colors = v.match(colorRegex);
7103      if (colors) {
7104          numColors = colors.length;
7105          v = v.replace(colorRegex, colorToken);
7106          values.push.apply(values, colors.map(color.parse));
7107      }
7108      var numbers = v.match(floatRegex);
7109      if (numbers) {
7110          v = v.replace(floatRegex, numberToken);
7111          values.push.apply(values, numbers.map(numbers_number.parse));
7112      }
7113      return { values: values, numColors: numColors, tokenised: v };
7114  }
7115  function parse(v) {
7116      return analyse(v).values;
7117  }
7118  function createTransformer(v) {
7119      var _a = analyse(v), values = _a.values, numColors = _a.numColors, tokenised = _a.tokenised;
7120      var numValues = values.length;
7121      return function (v) {
7122          var output = tokenised;
7123          for (var i = 0; i < numValues; i++) {
7124              output = output.replace(i < numColors ? colorToken : numberToken, i < numColors ? color.transform(v[i]) : sanitize(v[i]));
7125          }
7126          return output;
7127      };
7128  }
7129  var convertNumbersToZero = function (v) {
7130      return typeof v === 'number' ? 0 : v;
7131  };
7132  function getAnimatableNone(v) {
7133      var parsed = parse(v);
7134      var transformer = createTransformer(v);
7135      return transformer(parsed.map(convertNumbersToZero));
7136  }
7137  var complex = { test: test, parse: parse, createTransformer: createTransformer, getAnimatableNone: getAnimatableNone };
7138  
7139  
7140  
7141  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/utils/inc.js
7142  var zeroPoint = {
7143      x: 0,
7144      y: 0,
7145      z: 0
7146  };
7147  var isNum = function (v) { return typeof v === 'number'; };
7148  
7149  
7150  
7151  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/utils/mix-complex.js
7152  
7153  
7154  
7155  
7156  
7157  
7158  
7159  
7160  function getMixer(origin, target) {
7161      if (isNum(origin)) {
7162          return function (v) { return mix(origin, target, v); };
7163      }
7164      else if (color.test(origin)) {
7165          return mixColor(origin, target);
7166      }
7167      else {
7168          return mixComplex(origin, target);
7169      }
7170  }
7171  var mixArray = function (from, to) {
7172      var output = tslib_tslib_es6_spreadArray([], from);
7173      var numValues = output.length;
7174      var blendValue = from.map(function (fromThis, i) { return getMixer(fromThis, to[i]); });
7175      return function (v) {
7176          for (var i = 0; i < numValues; i++) {
7177              output[i] = blendValue[i](v);
7178          }
7179          return output;
7180      };
7181  };
7182  var mixObject = function (origin, target) {
7183      var output = tslib_tslib_es6_assign(tslib_tslib_es6_assign({}, origin), target);
7184      var blendValue = {};
7185      for (var key in output) {
7186          if (origin[key] !== undefined && target[key] !== undefined) {
7187              blendValue[key] = getMixer(origin[key], target[key]);
7188          }
7189      }
7190      return function (v) {
7191          for (var key in blendValue) {
7192              output[key] = blendValue[key](v);
7193          }
7194          return output;
7195      };
7196  };
7197  function mix_complex_analyse(value) {
7198      var parsed = complex.parse(value);
7199      var numValues = parsed.length;
7200      var numNumbers = 0;
7201      var numRGB = 0;
7202      var numHSL = 0;
7203      for (var i = 0; i < numValues; i++) {
7204          if (numNumbers || typeof parsed[i] === "number") {
7205              numNumbers++;
7206          }
7207          else {
7208              if (parsed[i].hue !== undefined) {
7209                  numHSL++;
7210              }
7211              else {
7212                  numRGB++;
7213              }
7214          }
7215      }
7216      return { parsed: parsed, numNumbers: numNumbers, numRGB: numRGB, numHSL: numHSL };
7217  }
7218  var mixComplex = function (origin, target) {
7219      var template = complex.createTransformer(target);
7220      var originStats = mix_complex_analyse(origin);
7221      var targetStats = mix_complex_analyse(target);
7222      invariant(originStats.numHSL === targetStats.numHSL &&
7223          originStats.numRGB === targetStats.numRGB &&
7224          originStats.numNumbers >= targetStats.numNumbers, "Complex values '" + origin + "' and '" + target + "' too different to mix. Ensure all colors are of the same type.");
7225      return pipe(mixArray(originStats.parsed, targetStats.parsed), template);
7226  };
7227  
7228  
7229  
7230  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/utils/interpolate.js
7231  
7232  
7233  
7234  
7235  
7236  
7237  
7238  
7239  
7240  var mixNumber = function (from, to) { return function (p) { return mix(from, to, p); }; };
7241  function detectMixerFactory(v) {
7242      if (typeof v === 'number') {
7243          return mixNumber;
7244      }
7245      else if (typeof v === 'string') {
7246          if (color.test(v)) {
7247              return mixColor;
7248          }
7249          else {
7250              return mixComplex;
7251          }
7252      }
7253      else if (Array.isArray(v)) {
7254          return mixArray;
7255      }
7256      else if (typeof v === 'object') {
7257          return mixObject;
7258      }
7259  }
7260  function createMixers(output, ease, customMixer) {
7261      var mixers = [];
7262      var mixerFactory = customMixer || detectMixerFactory(output[0]);
7263      var numMixers = output.length - 1;
7264      for (var i = 0; i < numMixers; i++) {
7265          var mixer = mixerFactory(output[i], output[i + 1]);
7266          if (ease) {
7267              var easingFunction = Array.isArray(ease) ? ease[i] : ease;
7268              mixer = pipe(easingFunction, mixer);
7269          }
7270          mixers.push(mixer);
7271      }
7272      return mixers;
7273  }
7274  function fastInterpolate(_a, _b) {
7275      var from = _a[0], to = _a[1];
7276      var mixer = _b[0];
7277      return function (v) { return mixer(progress_progress(from, to, v)); };
7278  }
7279  function slowInterpolate(input, mixers) {
7280      var inputLength = input.length;
7281      var lastInputIndex = inputLength - 1;
7282      return function (v) {
7283          var mixerIndex = 0;
7284          var foundMixerIndex = false;
7285          if (v <= input[0]) {
7286              foundMixerIndex = true;
7287          }
7288          else if (v >= input[lastInputIndex]) {
7289              mixerIndex = lastInputIndex - 1;
7290              foundMixerIndex = true;
7291          }
7292          if (!foundMixerIndex) {
7293              var i = 1;
7294              for (; i < inputLength; i++) {
7295                  if (input[i] > v || i === lastInputIndex) {
7296                      break;
7297                  }
7298              }
7299              mixerIndex = i - 1;
7300          }
7301          var progressInRange = progress_progress(input[mixerIndex], input[mixerIndex + 1], v);
7302          return mixers[mixerIndex](progressInRange);
7303      };
7304  }
7305  function interpolate(input, output, _a) {
7306      var _b = _a === void 0 ? {} : _a, _c = _b.clamp, isClamp = _c === void 0 ? true : _c, ease = _b.ease, mixer = _b.mixer;
7307      var inputLength = input.length;
7308      invariant(inputLength === output.length, 'Both input and output ranges must be the same length');
7309      invariant(!ease || !Array.isArray(ease) || ease.length === inputLength - 1, 'Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values.');
7310      if (input[0] > input[inputLength - 1]) {
7311          input = [].concat(input);
7312          output = [].concat(output);
7313          input.reverse();
7314          output.reverse();
7315      }
7316      var mixers = createMixers(output, ease, mixer);
7317      var interpolator = inputLength === 2
7318          ? fastInterpolate(input, mixers)
7319          : slowInterpolate(input, mixers);
7320      return isClamp
7321          ? function (v) { return interpolator(clamp_clamp(input[0], input[inputLength - 1], v)); }
7322          : interpolator;
7323  }
7324  
7325  
7326  
7327  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/easing/utils.js
7328  var reverseEasing = function (easing) { return function (p) { return 1 - easing(1 - p); }; };
7329  var mirrorEasing = function (easing) { return function (p) {
7330      return p <= 0.5 ? easing(2 * p) / 2 : (2 - easing(2 * (1 - p))) / 2;
7331  }; };
7332  var createExpoIn = function (power) { return function (p) { return Math.pow(p, power); }; };
7333  var createBackIn = function (power) { return function (p) {
7334      return p * p * ((power + 1) * p - power);
7335  }; };
7336  var createAnticipate = function (power) {
7337      var backEasing = createBackIn(power);
7338      return function (p) {
7339          return (p *= 2) < 1
7340              ? 0.5 * backEasing(p)
7341              : 0.5 * (2 - Math.pow(2, -10 * (p - 1)));
7342      };
7343  };
7344  
7345  
7346  
7347  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/easing/index.js
7348  
7349  
7350  var DEFAULT_OVERSHOOT_STRENGTH = 1.525;
7351  var BOUNCE_FIRST_THRESHOLD = 4.0 / 11.0;
7352  var BOUNCE_SECOND_THRESHOLD = 8.0 / 11.0;
7353  var BOUNCE_THIRD_THRESHOLD = 9.0 / 10.0;
7354  var linear = function (p) { return p; };
7355  var easeIn = createExpoIn(2);
7356  var easeOut = reverseEasing(easeIn);
7357  var easeInOut = mirrorEasing(easeIn);
7358  var circIn = function (p) { return 1 - Math.sin(Math.acos(p)); };
7359  var circOut = reverseEasing(circIn);
7360  var circInOut = mirrorEasing(circOut);
7361  var backIn = createBackIn(DEFAULT_OVERSHOOT_STRENGTH);
7362  var backOut = reverseEasing(backIn);
7363  var backInOut = mirrorEasing(backIn);
7364  var anticipate = createAnticipate(DEFAULT_OVERSHOOT_STRENGTH);
7365  var ca = 4356.0 / 361.0;
7366  var cb = 35442.0 / 1805.0;
7367  var cc = 16061.0 / 1805.0;
7368  var bounceOut = function (p) {
7369      if (p === 1 || p === 0)
7370          return p;
7371      var p2 = p * p;
7372      return p < BOUNCE_FIRST_THRESHOLD
7373          ? 7.5625 * p2
7374          : p < BOUNCE_SECOND_THRESHOLD
7375              ? 9.075 * p2 - 9.9 * p + 3.4
7376              : p < BOUNCE_THIRD_THRESHOLD
7377                  ? ca * p2 - cb * p + cc
7378                  : 10.8 * p * p - 20.52 * p + 10.72;
7379  };
7380  var bounceIn = reverseEasing(bounceOut);
7381  var bounceInOut = function (p) {
7382      return p < 0.5
7383          ? 0.5 * (1.0 - bounceOut(1.0 - p * 2.0))
7384          : 0.5 * bounceOut(p * 2.0 - 1.0) + 0.5;
7385  };
7386  
7387  
7388  
7389  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/animations/generators/keyframes.js
7390  
7391  
7392  
7393  function defaultEasing(values, easing) {
7394      return values.map(function () { return easing || easeInOut; }).splice(0, values.length - 1);
7395  }
7396  function defaultOffset(values) {
7397      var numValues = values.length;
7398      return values.map(function (_value, i) {
7399          return i !== 0 ? i / (numValues - 1) : 0;
7400      });
7401  }
7402  function convertOffsetToTimes(offset, duration) {
7403      return offset.map(function (o) { return o * duration; });
7404  }
7405  function keyframes(_a) {
7406      var _b = _a.from, from = _b === void 0 ? 0 : _b, _c = _a.to, to = _c === void 0 ? 1 : _c, ease = _a.ease, offset = _a.offset, _d = _a.duration, duration = _d === void 0 ? 300 : _d;
7407      var state = { done: false, value: from };
7408      var values = Array.isArray(to) ? to : [from, to];
7409      var times = convertOffsetToTimes(offset && offset.length === values.length
7410          ? offset
7411          : defaultOffset(values), duration);
7412      function createInterpolator() {
7413          return interpolate(times, values, {
7414              ease: Array.isArray(ease) ? ease : defaultEasing(values, ease),
7415          });
7416      }
7417      var interpolator = createInterpolator();
7418      return {
7419          next: function (t) {
7420              state.value = interpolator(t);
7421              state.done = t >= duration;
7422              return state;
7423          },
7424          flipTarget: function () {
7425              values.reverse();
7426              interpolator = createInterpolator();
7427          },
7428      };
7429  }
7430  
7431  
7432  
7433  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/animations/generators/decay.js
7434  function decay(_a) {
7435      var _b = _a.velocity, velocity = _b === void 0 ? 0 : _b, _c = _a.from, from = _c === void 0 ? 0 : _c, _d = _a.power, power = _d === void 0 ? 0.8 : _d, _e = _a.timeConstant, timeConstant = _e === void 0 ? 350 : _e, _f = _a.restDelta, restDelta = _f === void 0 ? 0.5 : _f, modifyTarget = _a.modifyTarget;
7436      var state = { done: false, value: from };
7437      var amplitude = power * velocity;
7438      var ideal = from + amplitude;
7439      var target = modifyTarget === undefined ? ideal : modifyTarget(ideal);
7440      if (target !== ideal)
7441          amplitude = target - from;
7442      return {
7443          next: function (t) {
7444              var delta = -amplitude * Math.exp(-t / timeConstant);
7445              state.done = !(delta > restDelta || delta < -restDelta);
7446              state.value = state.done ? target : target + delta;
7447              return state;
7448          },
7449          flipTarget: function () { },
7450      };
7451  }
7452  
7453  
7454  
7455  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/animations/utils/detect-animation-from-options.js
7456  
7457  
7458  
7459  
7460  var types = { keyframes: keyframes, spring: spring, decay: decay };
7461  function detectAnimationFromOptions(config) {
7462      if (Array.isArray(config.to)) {
7463          return keyframes;
7464      }
7465      else if (types[config.type]) {
7466          return types[config.type];
7467      }
7468      var keys = new Set(Object.keys(config));
7469      if (keys.has("ease") ||
7470          (keys.has("duration") && !keys.has("dampingRatio"))) {
7471          return keyframes;
7472      }
7473      else if (keys.has("dampingRatio") ||
7474          keys.has("stiffness") ||
7475          keys.has("mass") ||
7476          keys.has("damping") ||
7477          keys.has("restSpeed") ||
7478          keys.has("restDelta")) {
7479          return spring;
7480      }
7481      return keyframes;
7482  }
7483  
7484  
7485  
7486  // CONCATENATED MODULE: ./node_modules/framesync/dist/es/on-next-frame.js
7487  var defaultTimestep = (1 / 60) * 1000;
7488  var getCurrentTime = typeof performance !== "undefined"
7489      ? function () { return performance.now(); }
7490      : function () { return Date.now(); };
7491  var onNextFrame = typeof window !== "undefined"
7492      ? function (callback) {
7493          return window.requestAnimationFrame(callback);
7494      }
7495      : function (callback) {
7496          return setTimeout(function () { return callback(getCurrentTime()); }, defaultTimestep);
7497      };
7498  
7499  
7500  
7501  // CONCATENATED MODULE: ./node_modules/framesync/dist/es/create-render-step.js
7502  function createRenderStep(runNextFrame) {
7503      var toRun = [];
7504      var toRunNextFrame = [];
7505      var numToRun = 0;
7506      var isProcessing = false;
7507      var toKeepAlive = new WeakSet();
7508      var step = {
7509          schedule: function (callback, keepAlive, immediate) {
7510              if (keepAlive === void 0) { keepAlive = false; }
7511              if (immediate === void 0) { immediate = false; }
7512              var addToCurrentFrame = immediate && isProcessing;
7513              var buffer = addToCurrentFrame ? toRun : toRunNextFrame;
7514              if (keepAlive)
7515                  toKeepAlive.add(callback);
7516              if (buffer.indexOf(callback) === -1) {
7517                  buffer.push(callback);
7518                  if (addToCurrentFrame && isProcessing)
7519                      numToRun = toRun.length;
7520              }
7521              return callback;
7522          },
7523          cancel: function (callback) {
7524              var index = toRunNextFrame.indexOf(callback);
7525              if (index !== -1)
7526                  toRunNextFrame.splice(index, 1);
7527              toKeepAlive.delete(callback);
7528          },
7529          process: function (frameData) {
7530              var _a;
7531              isProcessing = true;
7532              _a = [toRunNextFrame, toRun], toRun = _a[0], toRunNextFrame = _a[1];
7533              toRunNextFrame.length = 0;
7534              numToRun = toRun.length;
7535              if (numToRun) {
7536                  for (var i = 0; i < numToRun; i++) {
7537                      var callback = toRun[i];
7538                      callback(frameData);
7539                      if (toKeepAlive.has(callback)) {
7540                          step.schedule(callback);
7541                          runNextFrame();
7542                      }
7543                  }
7544              }
7545              isProcessing = false;
7546          },
7547      };
7548      return step;
7549  }
7550  
7551  
7552  
7553  // CONCATENATED MODULE: ./node_modules/framesync/dist/es/index.js
7554  
7555  
7556  
7557  var maxElapsed = 40;
7558  var useDefaultElapsed = true;
7559  var runNextFrame = false;
7560  var isProcessing = false;
7561  var es_frame = {
7562      delta: 0,
7563      timestamp: 0
7564  };
7565  var stepsOrder = ["read", "update", "preRender", "render", "postRender"];
7566  var steps = /*#__PURE__*/stepsOrder.reduce(function (acc, key) {
7567      acc[key] = createRenderStep(function () {
7568          return runNextFrame = true;
7569      });
7570      return acc;
7571  }, {});
7572  var sync = /*#__PURE__*/stepsOrder.reduce(function (acc, key) {
7573      var step = steps[key];
7574      acc[key] = function (process, keepAlive, immediate) {
7575          if (keepAlive === void 0) {
7576              keepAlive = false;
7577          }
7578          if (immediate === void 0) {
7579              immediate = false;
7580          }
7581          if (!runNextFrame) startLoop();
7582          return step.schedule(process, keepAlive, immediate);
7583      };
7584      return acc;
7585  }, {});
7586  var cancelSync = /*#__PURE__*/stepsOrder.reduce(function (acc, key) {
7587      acc[key] = steps[key].cancel;
7588      return acc;
7589  }, {});
7590  var flushSync = /*#__PURE__*/stepsOrder.reduce(function (acc, key) {
7591      acc[key] = function () {
7592          return steps[key].process(es_frame);
7593      };
7594      return acc;
7595  }, {});
7596  var processStep = function (stepId) {
7597      return steps[stepId].process(es_frame);
7598  };
7599  var processFrame = function (timestamp) {
7600      runNextFrame = false;
7601      es_frame.delta = useDefaultElapsed ? defaultTimestep : Math.max(Math.min(timestamp - es_frame.timestamp, maxElapsed), 1);
7602      es_frame.timestamp = timestamp;
7603      isProcessing = true;
7604      stepsOrder.forEach(processStep);
7605      isProcessing = false;
7606      if (runNextFrame) {
7607          useDefaultElapsed = false;
7608          onNextFrame(processFrame);
7609      }
7610  };
7611  var startLoop = function () {
7612      runNextFrame = true;
7613      useDefaultElapsed = true;
7614      if (!isProcessing) onNextFrame(processFrame);
7615  };
7616  var getFrameData = function () {
7617      return es_frame;
7618  };
7619  
7620  /* harmony default export */ var es = (sync);
7621  
7622  
7623  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/animations/utils/elapsed.js
7624  function loopElapsed(elapsed, duration, delay) {
7625      if (delay === void 0) { delay = 0; }
7626      return elapsed - duration - delay;
7627  }
7628  function reverseElapsed(elapsed, duration, delay, isForwardPlayback) {
7629      if (delay === void 0) { delay = 0; }
7630      if (isForwardPlayback === void 0) { isForwardPlayback = true; }
7631      return isForwardPlayback
7632          ? loopElapsed(duration + -elapsed, duration, delay)
7633          : duration - (elapsed - duration) + delay;
7634  }
7635  function hasRepeatDelayElapsed(elapsed, duration, delay, isForwardPlayback) {
7636      return isForwardPlayback ? elapsed >= duration + delay : elapsed <= -delay;
7637  }
7638  
7639  
7640  
7641  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/animations/index.js
7642  
7643  
7644  
7645  
7646  
7647  
7648  var framesync = function (update) {
7649      var passTimestamp = function (_a) {
7650          var delta = _a.delta;
7651          return update(delta);
7652      };
7653      return {
7654          start: function () { return es.update(passTimestamp, true); },
7655          stop: function () { return cancelSync.update(passTimestamp); },
7656      };
7657  };
7658  function animations_animate(_a) {
7659      var _b, _c;
7660      var from = _a.from, _d = _a.autoplay, autoplay = _d === void 0 ? true : _d, _e = _a.driver, driver = _e === void 0 ? framesync : _e, _f = _a.elapsed, elapsed = _f === void 0 ? 0 : _f, _g = _a.repeat, repeatMax = _g === void 0 ? 0 : _g, _h = _a.repeatType, repeatType = _h === void 0 ? "loop" : _h, _j = _a.repeatDelay, repeatDelay = _j === void 0 ? 0 : _j, onPlay = _a.onPlay, onStop = _a.onStop, onComplete = _a.onComplete, onRepeat = _a.onRepeat, onUpdate = _a.onUpdate, options = tslib_tslib_es6_rest(_a, ["from", "autoplay", "driver", "elapsed", "repeat", "repeatType", "repeatDelay", "onPlay", "onStop", "onComplete", "onRepeat", "onUpdate"]);
7661      var to = options.to;
7662      var driverControls;
7663      var repeatCount = 0;
7664      var computedDuration = options.duration;
7665      var latest;
7666      var isComplete = false;
7667      var isForwardPlayback = true;
7668      var interpolateFromNumber;
7669      var animator = detectAnimationFromOptions(options);
7670      if ((_c = (_b = animator).needsInterpolation) === null || _c === void 0 ? void 0 : _c.call(_b, from, to)) {
7671          interpolateFromNumber = interpolate([0, 100], [from, to], {
7672              clamp: false,
7673          });
7674          from = 0;
7675          to = 100;
7676      }
7677      var animation = animator(tslib_tslib_es6_assign(tslib_tslib_es6_assign({}, options), { from: from, to: to }));
7678      function repeat() {
7679          repeatCount++;
7680          if (repeatType === "reverse") {
7681              isForwardPlayback = repeatCount % 2 === 0;
7682              elapsed = reverseElapsed(elapsed, computedDuration, repeatDelay, isForwardPlayback);
7683          }
7684          else {
7685              elapsed = loopElapsed(elapsed, computedDuration, repeatDelay);
7686              if (repeatType === "mirror")
7687                  animation.flipTarget();
7688          }
7689          isComplete = false;
7690          onRepeat && onRepeat();
7691      }
7692      function complete() {
7693          driverControls.stop();
7694          onComplete && onComplete();
7695      }
7696      function update(delta) {
7697          if (!isForwardPlayback)
7698              delta = -delta;
7699          elapsed += delta;
7700          if (!isComplete) {
7701              var state = animation.next(Math.max(0, elapsed));
7702              latest = state.value;
7703              if (interpolateFromNumber)
7704                  latest = interpolateFromNumber(latest);
7705              isComplete = isForwardPlayback ? state.done : elapsed <= 0;
7706          }
7707          onUpdate === null || onUpdate === void 0 ? void 0 : onUpdate(latest);
7708          if (isComplete) {
7709              if (repeatCount === 0)
7710                  computedDuration !== null && computedDuration !== void 0 ? computedDuration : (computedDuration = elapsed);
7711              if (repeatCount < repeatMax) {
7712                  hasRepeatDelayElapsed(elapsed, computedDuration, repeatDelay, isForwardPlayback) && repeat();
7713              }
7714              else {
7715                  complete();
7716              }
7717          }
7718      }
7719      function play() {
7720          onPlay === null || onPlay === void 0 ? void 0 : onPlay();
7721          driverControls = driver(update);
7722          driverControls.start();
7723      }
7724      autoplay && play();
7725      return {
7726          stop: function () {
7727              onStop === null || onStop === void 0 ? void 0 : onStop();
7728              driverControls.stop();
7729          },
7730      };
7731  }
7732  
7733  
7734  
7735  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/utils/velocity-per-second.js
7736  function velocityPerSecond(velocity, frameDuration) {
7737      return frameDuration ? velocity * (1000 / frameDuration) : 0;
7738  }
7739  
7740  
7741  
7742  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/animations/inertia.js
7743  
7744  
7745  
7746  
7747  
7748  function inertia_inertia(_a) {
7749      var _b = _a.from, from = _b === void 0 ? 0 : _b, _c = _a.velocity, velocity = _c === void 0 ? 0 : _c, min = _a.min, max = _a.max, _d = _a.power, power = _d === void 0 ? 0.8 : _d, _e = _a.timeConstant, timeConstant = _e === void 0 ? 750 : _e, _f = _a.bounceStiffness, bounceStiffness = _f === void 0 ? 500 : _f, _g = _a.bounceDamping, bounceDamping = _g === void 0 ? 10 : _g, _h = _a.restDelta, restDelta = _h === void 0 ? 1 : _h, modifyTarget = _a.modifyTarget, driver = _a.driver, onUpdate = _a.onUpdate, onComplete = _a.onComplete;
7750      var currentAnimation;
7751      function isOutOfBounds(v) {
7752          return (min !== undefined && v < min) || (max !== undefined && v > max);
7753      }
7754      function boundaryNearest(v) {
7755          if (min === undefined)
7756              return max;
7757          if (max === undefined)
7758              return min;
7759          return Math.abs(min - v) < Math.abs(max - v) ? min : max;
7760      }
7761      function startAnimation(options) {
7762          currentAnimation === null || currentAnimation === void 0 ? void 0 : currentAnimation.stop();
7763          currentAnimation = animations_animate(tslib_tslib_es6_assign(tslib_tslib_es6_assign({}, options), { driver: driver, onUpdate: function (v) {
7764                  var _a;
7765                  onUpdate === null || onUpdate === void 0 ? void 0 : onUpdate(v);
7766                  (_a = options.onUpdate) === null || _a === void 0 ? void 0 : _a.call(options, v);
7767              }, onComplete: onComplete }));
7768      }
7769      function startSpring(options) {
7770          startAnimation(tslib_tslib_es6_assign({ type: "spring", stiffness: bounceStiffness, damping: bounceDamping, restDelta: restDelta }, options));
7771      }
7772      if (isOutOfBounds(from)) {
7773          startSpring({ from: from, velocity: velocity, to: boundaryNearest(from) });
7774      }
7775      else {
7776          var target = power * velocity + from;
7777          if (typeof modifyTarget !== "undefined")
7778              target = modifyTarget(target);
7779          var boundary_1 = boundaryNearest(target);
7780          var heading_1 = boundary_1 === min ? -1 : 1;
7781          var prev_1;
7782          var current_1;
7783          var checkBoundary = function (v) {
7784              prev_1 = current_1;
7785              current_1 = v;
7786              velocity = velocityPerSecond(v - prev_1, getFrameData().delta);
7787              if ((heading_1 === 1 && v > boundary_1) ||
7788                  (heading_1 === -1 && v < boundary_1)) {
7789                  startSpring({ from: v, to: boundary_1, velocity: velocity });
7790              }
7791          };
7792          startAnimation({
7793              type: "decay",
7794              from: from,
7795              velocity: velocity,
7796              timeConstant: timeConstant,
7797              power: power,
7798              restDelta: restDelta,
7799              modifyTarget: modifyTarget,
7800              onUpdate: isOutOfBounds(target) ? checkBoundary : undefined,
7801          });
7802      }
7803      return {
7804          stop: function () { return currentAnimation === null || currentAnimation === void 0 ? void 0 : currentAnimation.stop(); },
7805      };
7806  }
7807  
7808  
7809  
7810  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/time-conversion.js
7811  /**
7812   * Converts seconds to milliseconds
7813   *
7814   * @param seconds - Time in seconds.
7815   * @return milliseconds - Converted time in milliseconds.
7816   */
7817  var secondsToMilliseconds = function (seconds) { return seconds * 1000; };
7818  
7819  
7820  
7821  // CONCATENATED MODULE: ./node_modules/popmotion/dist/es/easing/cubic-bezier.js
7822  
7823  
7824  var cubic_bezier_a = function (a1, a2) { return 1.0 - 3.0 * a2 + 3.0 * a1; };
7825  var cubic_bezier_b = function (a1, a2) { return 3.0 * a2 - 6.0 * a1; };
7826  var cubic_bezier_c = function (a1) { return 3.0 * a1; };
7827  var calcBezier = function (t, a1, a2) {
7828      return ((cubic_bezier_a(a1, a2) * t + cubic_bezier_b(a1, a2)) * t + cubic_bezier_c(a1)) * t;
7829  };
7830  var getSlope = function (t, a1, a2) {
7831      return 3.0 * cubic_bezier_a(a1, a2) * t * t + 2.0 * cubic_bezier_b(a1, a2) * t + cubic_bezier_c(a1);
7832  };
7833  var subdivisionPrecision = 0.0000001;
7834  var subdivisionMaxIterations = 10;
7835  function binarySubdivide(aX, aA, aB, mX1, mX2) {
7836      var currentX;
7837      var currentT;
7838      var i = 0;
7839      do {
7840          currentT = aA + (aB - aA) / 2.0;
7841          currentX = calcBezier(currentT, mX1, mX2) - aX;
7842          if (currentX > 0.0) {
7843              aB = currentT;
7844          }
7845          else {
7846              aA = currentT;
7847          }
7848      } while (Math.abs(currentX) > subdivisionPrecision &&
7849          ++i < subdivisionMaxIterations);
7850      return currentT;
7851  }
7852  var newtonIterations = 8;
7853  var newtonMinSlope = 0.001;
7854  function newtonRaphsonIterate(aX, aGuessT, mX1, mX2) {
7855      for (var i = 0; i < newtonIterations; ++i) {
7856          var currentSlope = getSlope(aGuessT, mX1, mX2);
7857          if (currentSlope === 0.0) {
7858              return aGuessT;
7859          }
7860          var currentX = calcBezier(aGuessT, mX1, mX2) - aX;
7861          aGuessT -= currentX / currentSlope;
7862      }
7863      return aGuessT;
7864  }
7865  var kSplineTableSize = 11;
7866  var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0);
7867  function cubicBezier(mX1, mY1, mX2, mY2) {
7868      if (mX1 === mY1 && mX2 === mY2)
7869          return linear;
7870      var sampleValues = new Float32Array(kSplineTableSize);
7871      for (var i = 0; i < kSplineTableSize; ++i) {
7872          sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);
7873      }
7874      function getTForX(aX) {
7875          var intervalStart = 0.0;
7876          var currentSample = 1;
7877          var lastSample = kSplineTableSize - 1;
7878          for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) {
7879              intervalStart += kSampleStepSize;
7880          }
7881          --currentSample;
7882          var dist = (aX - sampleValues[currentSample]) /
7883              (sampleValues[currentSample + 1] - sampleValues[currentSample]);
7884          var guessForT = intervalStart + dist * kSampleStepSize;
7885          var initialSlope = getSlope(guessForT, mX1, mX2);
7886          if (initialSlope >= newtonMinSlope) {
7887              return newtonRaphsonIterate(aX, guessForT, mX1, mX2);
7888          }
7889          else if (initialSlope === 0.0) {
7890              return guessForT;
7891          }
7892          else {
7893              return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2);
7894          }
7895      }
7896      return function (t) {
7897          return t === 0 || t === 1 ? t : calcBezier(getTForX(t), mY1, mY2);
7898      };
7899  }
7900  
7901  
7902  
7903  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/easing.js
7904  
7905  
7906  
7907  
7908  var easingLookup = {
7909      linear: linear,
7910      easeIn: easeIn,
7911      easeInOut: easeInOut,
7912      easeOut: easeOut,
7913      circIn: circIn,
7914      circInOut: circInOut,
7915      circOut: circOut,
7916      backIn: backIn,
7917      backInOut: backInOut,
7918      backOut: backOut,
7919      anticipate: anticipate,
7920      bounceIn: bounceIn,
7921      bounceInOut: bounceInOut,
7922      bounceOut: bounceOut,
7923  };
7924  var easingDefinitionToFunction = function (definition) {
7925      if (Array.isArray(definition)) {
7926          // If cubic bezier definition, create bezier curve
7927          invariant(definition.length === 4, "Cubic bezier arrays must contain four numerical values.");
7928          var _a = __read(definition, 4), x1 = _a[0], y1 = _a[1], x2 = _a[2], y2 = _a[3];
7929          return cubicBezier(x1, y1, x2, y2);
7930      }
7931      else if (typeof definition === "string") {
7932          // Else lookup from table
7933          invariant(easingLookup[definition] !== undefined, "Invalid easing type '" + definition + "'");
7934          return easingLookup[definition];
7935      }
7936      return definition;
7937  };
7938  var isEasingArray = function (ease) {
7939      return Array.isArray(ease) && typeof ease[0] !== "number";
7940  };
7941  
7942  
7943  
7944  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/is-animatable.js
7945  
7946  
7947  /**
7948   * Check if a value is animatable. Examples:
7949   *
7950   * ✅: 100, "100px", "#fff"
7951   * ❌: "block", "url(2.jpg)"
7952   * @param value
7953   *
7954   * @internal
7955   */
7956  var isAnimatable = function (key, value) {
7957      // If the list of keys tat might be non-animatable grows, replace with Set
7958      if (key === "zIndex")
7959          return false;
7960      // If it's a number or a keyframes array, we can animate it. We might at some point
7961      // need to do a deep isAnimatable check of keyframes, or let Popmotion handle this,
7962      // but for now lets leave it like this for performance reasons
7963      if (typeof value === "number" || Array.isArray(value))
7964          return true;
7965      if (typeof value === "string" && // It's animatable if we have a string
7966          complex.test(value) && // And it contains numbers and/or colors
7967          !value.startsWith("url(") // Unless it starts with "url("
7968      ) {
7969          return true;
7970      }
7971      return false;
7972  };
7973  
7974  
7975  
7976  // CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/default-transitions.js
7977  
7978  
7979  
7980  var underDampedSpring = function () { return ({
7981      type: "spring",
7982      stiffness: 500,
7983      damping: 25,
7984      restDelta: 0.5,
7985      restSpeed: 10,
7986  }); };
7987  var criticallyDampedSpring = function (to) { return ({
7988      type: "spring",
7989      stiffness: 550,
7990      damping: to === 0 ? 2 * Math.sqrt(550) : 30,
7991      restDelta: 0.01,
7992      restSpeed: 10,
7993  }); };
7994  var linearTween = function () { return ({
7995      type: "keyframes",
7996      ease: "linear",
7997      duration: 0.3,
7998  }); };
7999  var default_transitions_keyframes = function (values) { return ({
8000      type: "keyframes",
8001      duration: 0.8,