Gutenberg - Version 11.0.0

Version Description

Download this release

Release Info

Developer gutenbergplugin
Plugin Icon 128x128 Gutenberg
Version 11.0.0
Comparing to
See all releases

Code changes from version 10.9.1 to 11.0.0

build/a11y/index.asset.php DELETED
@@ -1 +0,0 @@
1
- <?php return array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '5213468541dc36642fee4460667dcb10');
 
build/a11y/index.js CHANGED
@@ -82,7 +82,7 @@ window["wp"] = window["wp"] || {}; window["wp"]["a11y"] =
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 426);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
@@ -94,14 +94,14 @@ window["wp"] = window["wp"] || {}; window["wp"]["a11y"] =
94
 
95
  /***/ }),
96
 
97
- /***/ 253:
98
  /***/ (function(module, exports) {
99
 
100
  (function() { module.exports = window["wp"]["domReady"]; }());
101
 
102
  /***/ }),
103
 
104
- /***/ 426:
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
 
107
  "use strict";
@@ -113,7 +113,7 @@ __webpack_require__.d(__webpack_exports__, "setup", function() { return /* bindi
113
  __webpack_require__.d(__webpack_exports__, "speak", function() { return /* binding */ speak; });
114
 
115
  // EXTERNAL MODULE: external ["wp","domReady"]
116
- var external_wp_domReady_ = __webpack_require__(253);
117
  var external_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_wp_domReady_);
118
 
119
  // EXTERNAL MODULE: external ["wp","i18n"]
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 432);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
94
 
95
  /***/ }),
96
 
97
+ /***/ 257:
98
  /***/ (function(module, exports) {
99
 
100
  (function() { module.exports = window["wp"]["domReady"]; }());
101
 
102
  /***/ }),
103
 
104
+ /***/ 432:
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
 
107
  "use strict";
113
  __webpack_require__.d(__webpack_exports__, "speak", function() { return /* binding */ speak; });
114
 
115
  // EXTERNAL MODULE: external ["wp","domReady"]
116
+ var external_wp_domReady_ = __webpack_require__(257);
117
  var external_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_wp_domReady_);
118
 
119
  // EXTERNAL MODULE: external ["wp","i18n"]
build/a11y/index.min.asset.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php return array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '537f17112ebf325f223a6c17ac421c84');
build/a11y/index.min.js CHANGED
@@ -1 +1 @@
1
- window.wp=window.wp||{},window.wp.a11y=function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=426)}({1:function(t,e){t.exports=window.wp.i18n},253:function(t,e){t.exports=window.wp.domReady},426:function(t,e,n){"use strict";n.r(e),n.d(e,"setup",(function(){return p})),n.d(e,"speak",(function(){return u}));var o=n(253),i=n.n(o),r=n(1);function a(t="polite"){const e=document.createElement("div");e.id="a11y-speak-"+t,e.className="a11y-speak-region",e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("aria-live",t),e.setAttribute("aria-relevant","additions text"),e.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(e),e}let d="";function p(){const t=document.getElementById("a11y-speak-intro-text"),e=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===t&&function(){const t=document.createElement("p");t.id="a11y-speak-intro-text",t.className="a11y-speak-intro-text",t.textContent=Object(r.__)("Notifications"),t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("hidden","hidden");const{body:e}=document;e&&e.appendChild(t)}(),null===e&&a("assertive"),null===n&&a("polite")}function u(t,e){!function(){const t=document.getElementsByClassName("a11y-speak-region"),e=document.getElementById("a11y-speak-intro-text");for(let e=0;e<t.length;e++)t[e].textContent="";e&&e.setAttribute("hidden","hidden")}(),t=function(t){return t=t.replace(/<[^<>]+>/g," "),d===t&&(t+=" "),d=t,t}(t);const n=document.getElementById("a11y-speak-intro-text"),o=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");o&&"assertive"===e?o.textContent=t:i&&(i.textContent=t),n&&n.removeAttribute("hidden")}i()(p)}});
1
+ window.wp=window.wp||{},window.wp.a11y=function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=432)}({1:function(t,e){t.exports=window.wp.i18n},257:function(t,e){t.exports=window.wp.domReady},432:function(t,e,n){"use strict";n.r(e),n.d(e,"setup",(function(){return p})),n.d(e,"speak",(function(){return u}));var o=n(257),i=n.n(o),r=n(1);function a(t="polite"){const e=document.createElement("div");e.id="a11y-speak-"+t,e.className="a11y-speak-region",e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("aria-live",t),e.setAttribute("aria-relevant","additions text"),e.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(e),e}let d="";function p(){const t=document.getElementById("a11y-speak-intro-text"),e=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===t&&function(){const t=document.createElement("p");t.id="a11y-speak-intro-text",t.className="a11y-speak-intro-text",t.textContent=Object(r.__)("Notifications"),t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("hidden","hidden");const{body:e}=document;e&&e.appendChild(t)}(),null===e&&a("assertive"),null===n&&a("polite")}function u(t,e){!function(){const t=document.getElementsByClassName("a11y-speak-region"),e=document.getElementById("a11y-speak-intro-text");for(let e=0;e<t.length;e++)t[e].textContent="";e&&e.setAttribute("hidden","hidden")}(),t=function(t){return t=t.replace(/<[^<>]+>/g," "),d===t&&(t+=" "),d=t,t}(t);const n=document.getElementById("a11y-speak-intro-text"),o=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");o&&"assertive"===e?o.textContent=t:i&&(i.textContent=t),n&&n.removeAttribute("hidden")}i()(p)}});
build/annotations/index.js CHANGED
@@ -82,7 +82,7 @@ window["wp"] = window["wp"] || {}; window["wp"]["annotations"] =
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 417);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
@@ -94,7 +94,14 @@ window["wp"] = window["wp"] || {}; window["wp"]["annotations"] =
94
 
95
  /***/ }),
96
 
97
- /***/ 155:
 
 
 
 
 
 
 
98
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
99
 
100
  "use strict";
@@ -183,13 +190,6 @@ function v4(options, buf, offset) {
183
 
184
  /***/ }),
185
 
186
- /***/ 16:
187
- /***/ (function(module, exports) {
188
-
189
- (function() { module.exports = window["wp"]["richText"]; }());
190
-
191
- /***/ }),
192
-
193
  /***/ 2:
194
  /***/ (function(module, exports) {
195
 
@@ -493,7 +493,7 @@ function isShallowEqual( a, b, fromIndex ) {
493
 
494
  /***/ }),
495
 
496
- /***/ 417:
497
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
498
 
499
  "use strict";
@@ -520,7 +520,7 @@ __webpack_require__.d(actions_namespaceObject, "__experimentalUpdateAnnotationRa
520
  __webpack_require__.d(actions_namespaceObject, "__experimentalRemoveAnnotationsBySource", function() { return __experimentalRemoveAnnotationsBySource; });
521
 
522
  // EXTERNAL MODULE: external ["wp","richText"]
523
- var external_wp_richText_ = __webpack_require__(16);
524
 
525
  // EXTERNAL MODULE: external ["wp","i18n"]
526
  var external_wp_i18n_ = __webpack_require__(1);
@@ -976,7 +976,7 @@ function __experimentalGetAnnotations(state) {
976
  }
977
  //# sourceMappingURL=selectors.js.map
978
  // EXTERNAL MODULE: ./node_modules/uuid/dist/esm-browser/v4.js + 4 modules
979
- var v4 = __webpack_require__(155);
980
 
981
  // CONCATENATED MODULE: ./packages/annotations/build-module/store/actions.js
982
  /**
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 423);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
94
 
95
  /***/ }),
96
 
97
+ /***/ 15:
98
+ /***/ (function(module, exports) {
99
+
100
+ (function() { module.exports = window["wp"]["richText"]; }());
101
+
102
+ /***/ }),
103
+
104
+ /***/ 159:
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
 
107
  "use strict";
190
 
191
  /***/ }),
192
 
 
 
 
 
 
 
 
193
  /***/ 2:
194
  /***/ (function(module, exports) {
195
 
493
 
494
  /***/ }),
495
 
496
+ /***/ 423:
497
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
498
 
499
  "use strict";
520
  __webpack_require__.d(actions_namespaceObject, "__experimentalRemoveAnnotationsBySource", function() { return __experimentalRemoveAnnotationsBySource; });
521
 
522
  // EXTERNAL MODULE: external ["wp","richText"]
523
+ var external_wp_richText_ = __webpack_require__(15);
524
 
525
  // EXTERNAL MODULE: external ["wp","i18n"]
526
  var external_wp_i18n_ = __webpack_require__(1);
976
  }
977
  //# sourceMappingURL=selectors.js.map
978
  // EXTERNAL MODULE: ./node_modules/uuid/dist/esm-browser/v4.js + 4 modules
979
+ var v4 = __webpack_require__(159);
980
 
981
  // CONCATENATED MODULE: ./packages/annotations/build-module/store/actions.js
982
  /**
build/annotations/{index.asset.php → index.min.asset.php} RENAMED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'af349f093f09e6771cd6e05e700a7ee7');
1
+ <?php return array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'a6e4e4ba313508c732b2e70e9e021f6e');
build/annotations/index.min.js CHANGED
@@ -1 +1 @@
1
- window.wp=window.wp||{},window.wp.annotations=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=417)}({1:function(t,e){t.exports=window.wp.i18n},155:function(t,e,n){"use strict";var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),o=new Uint8Array(16);function a(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}for(var i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,u=function(t){return"string"==typeof t&&i.test(t)},c=[],l=0;l<256;++l)c.push((l+256).toString(16).substr(1));e.a=function(t,e,n){var r=(t=t||{}).random||(t.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[t[e+0]]+c[t[e+1]]+c[t[e+2]]+c[t[e+3]]+"-"+c[t[e+4]]+c[t[e+5]]+"-"+c[t[e+6]]+c[t[e+7]]+"-"+c[t[e+8]]+c[t[e+9]]+"-"+c[t[e+10]]+c[t[e+11]]+c[t[e+12]]+c[t[e+13]]+c[t[e+14]]+c[t[e+15]]).toLowerCase();if(!u(n))throw TypeError("Stringified UUID is invalid");return n}(r)}},16:function(t,e){t.exports=window.wp.richText},2:function(t,e){t.exports=window.lodash},20:function(t,e){t.exports=window.wp.hooks},29:function(t,e,n){"use strict";var r,o;function a(t){return[t]}function i(){var t={clear:function(){t.head=null}};return t}function u(t,e,n){var r;if(t.length!==e.length)return!1;for(r=n;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,e.a=function(t,e){var n,c;function l(){n=o?new WeakMap:i()}function s(){var n,r,o,a,i,l=arguments.length;for(a=new Array(l),o=0;o<l;o++)a[o]=arguments[o];for(i=e.apply(null,a),(n=c(i)).isUniqueByDependants||(n.lastDependants&&!u(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),r=n.head;r;){if(u(r.args,a,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:t.apply(null,a)},a[0]=null,r.args=a,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return e||(e=a),c=o?function(t){var e,o,a,u,c,l=n,s=!0;for(e=0;e<t.length;e++){if(!(c=o=t[e])||"object"!=typeof c){s=!1;break}l.has(o)?l=l.get(o):(a=new WeakMap,l.set(o,a),l=a)}return l.has(r)||((u=i()).isUniqueByDependants=s,l.set(r,u)),l.get(r)}:function(){return n},s.getDependants=e,s.clear=l,l(),s}},4:function(t,e){t.exports=window.wp.data},417:function(t,e,n){"use strict";n.r(e),n.d(e,"store",(function(){return T}));var r={};n.r(r),n.d(r,"__experimentalGetAnnotationsForBlock",(function(){return b})),n.d(r,"__experimentalGetAllAnnotationsForBlock",(function(){return x})),n.d(r,"__experimentalGetAnnotationsForRichText",(function(){return _})),n.d(r,"__experimentalGetAnnotations",(function(){return h}));var o={};n.r(o),n.d(o,"__experimentalAddAnnotation",(function(){return O})),n.d(o,"__experimentalRemoveAnnotation",(function(){return y})),n.d(o,"__experimentalUpdateAnnotationRange",(function(){return w})),n.d(o,"__experimentalRemoveAnnotationsBySource",(function(){return N}));var a=n(16),i=n(1);const u="core/annotations",c={name:"core/annotation",title:Object(i.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit:()=>null,__experimentalGetPropsForEditableTreePreparation:(t,{richTextIdentifier:e,blockClientId:n})=>({annotations:t(u).__experimentalGetAnnotationsForRichText(n,e)}),__experimentalCreatePrepareEditableTree:({annotations:t})=>(e,n)=>{if(0===t.length)return e;let r={formats:e,text:n};return r=function(t,e=[]){return e.forEach(e=>{let{start:n,end:r}=e;n>t.text.length&&(n=t.text.length),r>t.text.length&&(r=t.text.length);const o="annotation-text-"+e.source,i="annotation-text-"+e.id;t=Object(a.applyFormat)(t,{type:"core/annotation",attributes:{className:o,id:i}},n,r)}),t}(r,t),r.formats},__experimentalGetPropsForEditableTreeChangeHandler:t=>({removeAnnotation:t(u).__experimentalRemoveAnnotation,updateAnnotationRange:t(u).__experimentalUpdateAnnotationRange}),__experimentalCreateOnChangeEditableValue:t=>e=>{const n=function(t){const e={};return t.forEach((t,n)=>{(t=(t=t||[]).filter(t=>"core/annotation"===t.type)).forEach(t=>{let{id:r}=t.attributes;r=r.replace("annotation-text-",""),e.hasOwnProperty(r)||(e[r]={start:n}),e[r].end=n+1})}),e}(e),{removeAnnotation:r,updateAnnotationRange:o,annotations:a}=t;!function(t,e,{removeAnnotation:n,updateAnnotationRange:r}){t.forEach(t=>{const o=e[t.id];if(!o)return void n(t.id);const{start:a,end:i}=t;a===o.start&&i===o.end||r(t.id,o.start,o.end)})}(a,n,{removeAnnotation:r,updateAnnotationRange:o})}},{name:l,...s}=c;Object(a.registerFormatType)(l,s);var d=n(20),f=n(4);Object(d.addFilter)("editor.BlockListBlock","core/annotations",t=>Object(f.withSelect)((t,{clientId:e,className:n})=>({className:t(u).__experimentalGetAnnotationsForBlock(e).map(t=>"is-annotated-by-"+t.source).concat(n).filter(Boolean).join(" ")}))(t));var p=n(2);function v(t,e){const n=t.filter(e);return t.length===n.length?t:n}var m=n(29);const g=[],b=Object(m.a)((t,e)=>{var n;return(null!==(n=null==t?void 0:t[e])&&void 0!==n?n:[]).filter(t=>"block"===t.selector)},(t,e)=>{var n;return[null!==(n=null==t?void 0:t[e])&&void 0!==n?n:g]});function x(t,e){var n;return null!==(n=null==t?void 0:t[e])&&void 0!==n?n:g}const _=Object(m.a)((t,e,n)=>{var r;return(null!==(r=null==t?void 0:t[e])&&void 0!==r?r:[]).filter(t=>"range"===t.selector&&n===t.richTextIdentifier).map(t=>{const{range:e,...n}=t;return{...e,...n}})},(t,e)=>{var n;return[null!==(n=null==t?void 0:t[e])&&void 0!==n?n:g]});function h(t){return Object(p.flatMap)(t,t=>t)}var A=n(155);function O({blockClientId:t,richTextIdentifier:e=null,range:n=null,selector:r="range",source:o="default",id:a=Object(A.a)()}){const i={type:"ANNOTATION_ADD",id:a,blockClientId:t,richTextIdentifier:e,source:o,selector:r};return"range"===r&&(i.range=n),i}function y(t){return{type:"ANNOTATION_REMOVE",annotationId:t}}function w(t,e,n){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:t,start:e,end:n}}function N(t){return{type:"ANNOTATION_REMOVE_SOURCE",source:t}}const T=Object(f.createReduxStore)(u,{reducer:function(t={},e){var n,r;switch(e.type){case"ANNOTATION_ADD":const o=e.blockClientId,a={id:e.id,blockClientId:o,richTextIdentifier:e.richTextIdentifier,source:e.source,selector:e.selector,range:e.range};if("range"===a.selector&&(r=a.range,!(Object(p.isNumber)(r.start)&&Object(p.isNumber)(r.end)&&r.start<=r.end)))return t;const i=null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[];return{...t,[o]:[...i,a]};case"ANNOTATION_REMOVE":return Object(p.mapValues)(t,t=>v(t,t=>t.id!==e.annotationId));case"ANNOTATION_UPDATE_RANGE":return Object(p.mapValues)(t,t=>{let n=!1;const r=t.map(t=>t.id===e.annotationId?(n=!0,{...t,range:{start:e.start,end:e.end}}):t);return n?r:t});case"ANNOTATION_REMOVE_SOURCE":return Object(p.mapValues)(t,t=>v(t,t=>t.source!==e.source))}return t},selectors:r,actions:o});Object(f.register)(T)}});
1
+ window.wp=window.wp||{},window.wp.annotations=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=423)}({1:function(t,e){t.exports=window.wp.i18n},15:function(t,e){t.exports=window.wp.richText},159:function(t,e,n){"use strict";var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),o=new Uint8Array(16);function a(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}for(var i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,u=function(t){return"string"==typeof t&&i.test(t)},c=[],l=0;l<256;++l)c.push((l+256).toString(16).substr(1));e.a=function(t,e,n){var r=(t=t||{}).random||(t.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[t[e+0]]+c[t[e+1]]+c[t[e+2]]+c[t[e+3]]+"-"+c[t[e+4]]+c[t[e+5]]+"-"+c[t[e+6]]+c[t[e+7]]+"-"+c[t[e+8]]+c[t[e+9]]+"-"+c[t[e+10]]+c[t[e+11]]+c[t[e+12]]+c[t[e+13]]+c[t[e+14]]+c[t[e+15]]).toLowerCase();if(!u(n))throw TypeError("Stringified UUID is invalid");return n}(r)}},2:function(t,e){t.exports=window.lodash},20:function(t,e){t.exports=window.wp.hooks},29:function(t,e,n){"use strict";var r,o;function a(t){return[t]}function i(){var t={clear:function(){t.head=null}};return t}function u(t,e,n){var r;if(t.length!==e.length)return!1;for(r=n;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,e.a=function(t,e){var n,c;function l(){n=o?new WeakMap:i()}function s(){var n,r,o,a,i,l=arguments.length;for(a=new Array(l),o=0;o<l;o++)a[o]=arguments[o];for(i=e.apply(null,a),(n=c(i)).isUniqueByDependants||(n.lastDependants&&!u(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),r=n.head;r;){if(u(r.args,a,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:t.apply(null,a)},a[0]=null,r.args=a,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return e||(e=a),c=o?function(t){var e,o,a,u,c,l=n,s=!0;for(e=0;e<t.length;e++){if(!(c=o=t[e])||"object"!=typeof c){s=!1;break}l.has(o)?l=l.get(o):(a=new WeakMap,l.set(o,a),l=a)}return l.has(r)||((u=i()).isUniqueByDependants=s,l.set(r,u)),l.get(r)}:function(){return n},s.getDependants=e,s.clear=l,l(),s}},4:function(t,e){t.exports=window.wp.data},423:function(t,e,n){"use strict";n.r(e),n.d(e,"store",(function(){return T}));var r={};n.r(r),n.d(r,"__experimentalGetAnnotationsForBlock",(function(){return b})),n.d(r,"__experimentalGetAllAnnotationsForBlock",(function(){return x})),n.d(r,"__experimentalGetAnnotationsForRichText",(function(){return _})),n.d(r,"__experimentalGetAnnotations",(function(){return h}));var o={};n.r(o),n.d(o,"__experimentalAddAnnotation",(function(){return O})),n.d(o,"__experimentalRemoveAnnotation",(function(){return y})),n.d(o,"__experimentalUpdateAnnotationRange",(function(){return w})),n.d(o,"__experimentalRemoveAnnotationsBySource",(function(){return N}));var a=n(15),i=n(1);const u="core/annotations",c={name:"core/annotation",title:Object(i.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit:()=>null,__experimentalGetPropsForEditableTreePreparation:(t,{richTextIdentifier:e,blockClientId:n})=>({annotations:t(u).__experimentalGetAnnotationsForRichText(n,e)}),__experimentalCreatePrepareEditableTree:({annotations:t})=>(e,n)=>{if(0===t.length)return e;let r={formats:e,text:n};return r=function(t,e=[]){return e.forEach(e=>{let{start:n,end:r}=e;n>t.text.length&&(n=t.text.length),r>t.text.length&&(r=t.text.length);const o="annotation-text-"+e.source,i="annotation-text-"+e.id;t=Object(a.applyFormat)(t,{type:"core/annotation",attributes:{className:o,id:i}},n,r)}),t}(r,t),r.formats},__experimentalGetPropsForEditableTreeChangeHandler:t=>({removeAnnotation:t(u).__experimentalRemoveAnnotation,updateAnnotationRange:t(u).__experimentalUpdateAnnotationRange}),__experimentalCreateOnChangeEditableValue:t=>e=>{const n=function(t){const e={};return t.forEach((t,n)=>{(t=(t=t||[]).filter(t=>"core/annotation"===t.type)).forEach(t=>{let{id:r}=t.attributes;r=r.replace("annotation-text-",""),e.hasOwnProperty(r)||(e[r]={start:n}),e[r].end=n+1})}),e}(e),{removeAnnotation:r,updateAnnotationRange:o,annotations:a}=t;!function(t,e,{removeAnnotation:n,updateAnnotationRange:r}){t.forEach(t=>{const o=e[t.id];if(!o)return void n(t.id);const{start:a,end:i}=t;a===o.start&&i===o.end||r(t.id,o.start,o.end)})}(a,n,{removeAnnotation:r,updateAnnotationRange:o})}},{name:l,...s}=c;Object(a.registerFormatType)(l,s);var d=n(20),f=n(4);Object(d.addFilter)("editor.BlockListBlock","core/annotations",t=>Object(f.withSelect)((t,{clientId:e,className:n})=>({className:t(u).__experimentalGetAnnotationsForBlock(e).map(t=>"is-annotated-by-"+t.source).concat(n).filter(Boolean).join(" ")}))(t));var p=n(2);function v(t,e){const n=t.filter(e);return t.length===n.length?t:n}var m=n(29);const g=[],b=Object(m.a)((t,e)=>{var n;return(null!==(n=null==t?void 0:t[e])&&void 0!==n?n:[]).filter(t=>"block"===t.selector)},(t,e)=>{var n;return[null!==(n=null==t?void 0:t[e])&&void 0!==n?n:g]});function x(t,e){var n;return null!==(n=null==t?void 0:t[e])&&void 0!==n?n:g}const _=Object(m.a)((t,e,n)=>{var r;return(null!==(r=null==t?void 0:t[e])&&void 0!==r?r:[]).filter(t=>"range"===t.selector&&n===t.richTextIdentifier).map(t=>{const{range:e,...n}=t;return{...e,...n}})},(t,e)=>{var n;return[null!==(n=null==t?void 0:t[e])&&void 0!==n?n:g]});function h(t){return Object(p.flatMap)(t,t=>t)}var A=n(159);function O({blockClientId:t,richTextIdentifier:e=null,range:n=null,selector:r="range",source:o="default",id:a=Object(A.a)()}){const i={type:"ANNOTATION_ADD",id:a,blockClientId:t,richTextIdentifier:e,source:o,selector:r};return"range"===r&&(i.range=n),i}function y(t){return{type:"ANNOTATION_REMOVE",annotationId:t}}function w(t,e,n){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:t,start:e,end:n}}function N(t){return{type:"ANNOTATION_REMOVE_SOURCE",source:t}}const T=Object(f.createReduxStore)(u,{reducer:function(t={},e){var n,r;switch(e.type){case"ANNOTATION_ADD":const o=e.blockClientId,a={id:e.id,blockClientId:o,richTextIdentifier:e.richTextIdentifier,source:e.source,selector:e.selector,range:e.range};if("range"===a.selector&&(r=a.range,!(Object(p.isNumber)(r.start)&&Object(p.isNumber)(r.end)&&r.start<=r.end)))return t;const i=null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[];return{...t,[o]:[...i,a]};case"ANNOTATION_REMOVE":return Object(p.mapValues)(t,t=>v(t,t=>t.id!==e.annotationId));case"ANNOTATION_UPDATE_RANGE":return Object(p.mapValues)(t,t=>{let n=!1;const r=t.map(t=>t.id===e.annotationId?(n=!0,{...t,range:{start:e.start,end:e.end}}):t);return n?r:t});case"ANNOTATION_REMOVE_SOURCE":return Object(p.mapValues)(t,t=>v(t,t=>t.source!==e.source))}return t},selectors:r,actions:o});Object(f.register)(T)}});
build/api-fetch/index.asset.php DELETED
@@ -1 +0,0 @@
1
- <?php return array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '78bebc09cbf4f7ea65b7907b1c7aa84d');
 
build/api-fetch/index.js CHANGED
@@ -82,7 +82,7 @@ window["wp"] = window["wp"] || {}; window["wp"]["apiFetch"] =
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 416);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
@@ -101,7 +101,7 @@ window["wp"] = window["wp"] || {}; window["wp"]["apiFetch"] =
101
 
102
  /***/ }),
103
 
104
- /***/ 416:
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
 
107
  "use strict";
@@ -766,10 +766,14 @@ const defaultFetchHandler = nextOptions => {
766
  body,
767
  headers
768
  });
769
- return responsePromise // Return early if fetch errors. If fetch error, there is most likely no
770
- // network connection. Unfortunately fetch just throws a TypeError and
771
- // the message might depend on the browser.
772
- .then(value => Promise.resolve(value).then(checkStatus).catch(response => parseAndThrowError(response, parse)).then(response => parseResponseAndNormalizeError(response, parse)), () => {
 
 
 
 
773
  throw {
774
  code: 'fetch_error',
775
  message: Object(external_wp_i18n_["__"])('You are probably offline.')
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 422);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
101
 
102
  /***/ }),
103
 
104
+ /***/ 422:
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
 
107
  "use strict";
766
  body,
767
  headers
768
  });
769
+ return responsePromise.then(value => Promise.resolve(value).then(checkStatus).catch(response => parseAndThrowError(response, parse)).then(response => parseResponseAndNormalizeError(response, parse)), err => {
770
+ // Re-throw AbortError for the users to handle it themselves.
771
+ if (err && err.name === 'AbortError') {
772
+ throw err;
773
+ } // Otherwise, there is most likely no network connection.
774
+ // Unfortunately the message might depend on the browser.
775
+
776
+
777
  throw {
778
  code: 'fetch_error',
779
  message: Object(external_wp_i18n_["__"])('You are probably offline.')
build/api-fetch/index.min.asset.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php return array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '3f5b346833d1a1cc91d3659b06403787');
build/api-fetch/index.min.js CHANGED
@@ -1 +1 @@
1
- window.wp=window.wp||{},window.wp.apiFetch=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=416)}({1:function(e,t){e.exports=window.wp.i18n},19:function(e,t){e.exports=window.wp.url},416:function(e,t,r){"use strict";r.r(t);var n=r(1),o=(e,t)=>{let r,n,o=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(r=e.namespace.replace(/^\/|\/$/g,""),n=e.endpoint.replace(/^\//,""),o=n?r+"/"+n:r),delete e.namespace,delete e.endpoint,t({...e,path:o})};function a(e){const t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.split("&").map(e=>e.split("=")).sort((e,t)=>e[0].localeCompare(t[0])).map(e=>e.join("=")).join("&"):n}var s=r(19);const c=({path:e,url:t,...r},n)=>({...r,url:t&&Object(s.addQueryArgs)(t,n),path:e&&Object(s.addQueryArgs)(e,n)}),i=e=>e.json?e.json():Promise.reject(e),u=e=>{const{next:t}=(e=>{if(!e)return{};const t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}})(e.headers.get("link"));return t};var p=async(e,t)=>{if(!1===e.parse)return t(e);if(!(e=>{const t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),r=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||r})(e))return t(e);const r=await b({...c(e,{per_page:100}),parse:!1}),n=await i(r);if(!Array.isArray(n))return n;let o=u(r);if(!o)return n;let a=[].concat(n);for(;o;){const t=await b({...e,path:void 0,url:o,parse:!1}),r=await i(t);a=a.concat(r),o=u(t)}return a};const d=new Set(["PATCH","PUT","DELETE"]),l="GET",f=(e,t=!0)=>Promise.resolve(((e,t=!0)=>t?204===e.status?null:e.json?e.json():Promise.reject(e):e)(e,t)).catch(e=>h(e,t));function h(e,t=!0){if(!t)throw e;return(e=>{const t={code:"invalid_json",message:Object(n.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch(()=>{throw t})})(e).then(e=>{const t={code:"unknown_error",message:Object(n.__)("An unknown error occurred.")};throw e||t})}const w={Accept:"application/json, */*;q=0.1"},m={credentials:"include"},y=[(e,t)=>("string"!=typeof e.url||Object(s.hasQueryArg)(e.url,"_locale")||(e.url=Object(s.addQueryArgs)(e.url,{_locale:"user"})),"string"!=typeof e.path||Object(s.hasQueryArg)(e.path,"_locale")||(e.path=Object(s.addQueryArgs)(e.path,{_locale:"user"})),t(e)),o,(e,t)=>{const{method:r=l}=e;return d.has(r.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":r,"Content-Type":"application/json"},method:"POST"}),t(e)},p],g=e=>{if(e.status>=200&&e.status<300)return e;throw e};let j=e=>{const{url:t,path:r,data:o,parse:a=!0,...s}=e;let{body:c,headers:i}=e;return i={...w,...i},o&&(c=JSON.stringify(o),i["Content-Type"]="application/json"),window.fetch(t||r||window.location.href,{...m,...s,body:c,headers:i}).then(e=>Promise.resolve(e).then(g).catch(e=>h(e,a)).then(e=>f(e,a)),()=>{throw{code:"fetch_error",message:Object(n.__)("You are probably offline.")}})};function O(e){return y.reduceRight((e,t)=>r=>t(r,e),j)(e).catch(t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(O.nonceEndpoint).then(g).then(e=>e.text()).then(t=>(O.nonceMiddleware.nonce=t,O(e))))}O.use=function(e){y.unshift(e)},O.setFetchHandler=function(e){j=e},O.createNonceMiddleware=function(e){const t=(e,r)=>{const{headers:n={}}=e;for(const o in n)if("x-wp-nonce"===o.toLowerCase()&&n[o]===t.nonce)return r(e);return r({...e,headers:{...n,"X-WP-Nonce":t.nonce}})};return t.nonce=e,t},O.createPreloadingMiddleware=function(e){const t=Object.keys(e).reduce((t,r)=>(t[a(r)]=e[r],t),{});return(e,r)=>{const{parse:n=!0}=e;if("string"==typeof e.path){const r=e.method||"GET",o=a(e.path);if("GET"===r&&t[o]){const e=t[o];return delete t[o],Promise.resolve(n?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}if("OPTIONS"===r&&t[r]&&t[r][o])return Promise.resolve(n?t[r][o].body:t[r][o])}return r(e)}},O.createRootURLMiddleware=e=>(t,r)=>o(t,t=>{let n,o=t.url,a=t.path;return"string"==typeof a&&(n=e,-1!==e.indexOf("?")&&(a=a.replace("?","&")),a=a.replace(/^\//,""),"string"==typeof n&&-1!==n.indexOf("?")&&(a=a.replace("?","&")),o=n+a),r({...t,url:o})}),O.fetchAllMiddleware=p,O.mediaUploadMiddleware=(e,t)=>{if(!(e.path&&-1!==e.path.indexOf("/wp/v2/media")||e.url&&-1!==e.url.indexOf("/wp/v2/media")))return t(e);let r=0;const o=e=>(r++,t({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch(()=>r<5?o(e):(t({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject())));return t({...e,parse:!1}).catch(t=>{const r=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&r?o(r).catch(()=>!1!==e.parse?Promise.reject({code:"post_process",message:Object(n.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t)):h(t,e.parse)}).then(t=>f(t,e.parse))};var b=t.default=O}}).default;
1
+ window.wp=window.wp||{},window.wp.apiFetch=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=422)}({1:function(e,t){e.exports=window.wp.i18n},19:function(e,t){e.exports=window.wp.url},422:function(e,t,r){"use strict";r.r(t);var n=r(1),o=(e,t)=>{let r,n,o=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(r=e.namespace.replace(/^\/|\/$/g,""),n=e.endpoint.replace(/^\//,""),o=n?r+"/"+n:r),delete e.namespace,delete e.endpoint,t({...e,path:o})};function a(e){const t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.split("&").map(e=>e.split("=")).sort((e,t)=>e[0].localeCompare(t[0])).map(e=>e.join("=")).join("&"):n}var s=r(19);const c=({path:e,url:t,...r},n)=>({...r,url:t&&Object(s.addQueryArgs)(t,n),path:e&&Object(s.addQueryArgs)(e,n)}),i=e=>e.json?e.json():Promise.reject(e),u=e=>{const{next:t}=(e=>{if(!e)return{};const t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}})(e.headers.get("link"));return t};var p=async(e,t)=>{if(!1===e.parse)return t(e);if(!(e=>{const t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),r=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||r})(e))return t(e);const r=await O({...c(e,{per_page:100}),parse:!1}),n=await i(r);if(!Array.isArray(n))return n;let o=u(r);if(!o)return n;let a=[].concat(n);for(;o;){const t=await O({...e,path:void 0,url:o,parse:!1}),r=await i(t);a=a.concat(r),o=u(t)}return a};const d=new Set(["PATCH","PUT","DELETE"]),l="GET",f=(e,t=!0)=>Promise.resolve(((e,t=!0)=>t?204===e.status?null:e.json?e.json():Promise.reject(e):e)(e,t)).catch(e=>h(e,t));function h(e,t=!0){if(!t)throw e;return(e=>{const t={code:"invalid_json",message:Object(n.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch(()=>{throw t})})(e).then(e=>{const t={code:"unknown_error",message:Object(n.__)("An unknown error occurred.")};throw e||t})}const w={Accept:"application/json, */*;q=0.1"},m={credentials:"include"},y=[(e,t)=>("string"!=typeof e.url||Object(s.hasQueryArg)(e.url,"_locale")||(e.url=Object(s.addQueryArgs)(e.url,{_locale:"user"})),"string"!=typeof e.path||Object(s.hasQueryArg)(e.path,"_locale")||(e.path=Object(s.addQueryArgs)(e.path,{_locale:"user"})),t(e)),o,(e,t)=>{const{method:r=l}=e;return d.has(r.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":r,"Content-Type":"application/json"},method:"POST"}),t(e)},p],g=e=>{if(e.status>=200&&e.status<300)return e;throw e};let j=e=>{const{url:t,path:r,data:o,parse:a=!0,...s}=e;let{body:c,headers:i}=e;return i={...w,...i},o&&(c=JSON.stringify(o),i["Content-Type"]="application/json"),window.fetch(t||r||window.location.href,{...m,...s,body:c,headers:i}).then(e=>Promise.resolve(e).then(g).catch(e=>h(e,a)).then(e=>f(e,a)),e=>{if(e&&"AbortError"===e.name)throw e;throw{code:"fetch_error",message:Object(n.__)("You are probably offline.")}})};function b(e){return y.reduceRight((e,t)=>r=>t(r,e),j)(e).catch(t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(b.nonceEndpoint).then(g).then(e=>e.text()).then(t=>(b.nonceMiddleware.nonce=t,b(e))))}b.use=function(e){y.unshift(e)},b.setFetchHandler=function(e){j=e},b.createNonceMiddleware=function(e){const t=(e,r)=>{const{headers:n={}}=e;for(const o in n)if("x-wp-nonce"===o.toLowerCase()&&n[o]===t.nonce)return r(e);return r({...e,headers:{...n,"X-WP-Nonce":t.nonce}})};return t.nonce=e,t},b.createPreloadingMiddleware=function(e){const t=Object.keys(e).reduce((t,r)=>(t[a(r)]=e[r],t),{});return(e,r)=>{const{parse:n=!0}=e;if("string"==typeof e.path){const r=e.method||"GET",o=a(e.path);if("GET"===r&&t[o]){const e=t[o];return delete t[o],Promise.resolve(n?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}if("OPTIONS"===r&&t[r]&&t[r][o])return Promise.resolve(n?t[r][o].body:t[r][o])}return r(e)}},b.createRootURLMiddleware=e=>(t,r)=>o(t,t=>{let n,o=t.url,a=t.path;return"string"==typeof a&&(n=e,-1!==e.indexOf("?")&&(a=a.replace("?","&")),a=a.replace(/^\//,""),"string"==typeof n&&-1!==n.indexOf("?")&&(a=a.replace("?","&")),o=n+a),r({...t,url:o})}),b.fetchAllMiddleware=p,b.mediaUploadMiddleware=(e,t)=>{if(!(e.path&&-1!==e.path.indexOf("/wp/v2/media")||e.url&&-1!==e.url.indexOf("/wp/v2/media")))return t(e);let r=0;const o=e=>(r++,t({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch(()=>r<5?o(e):(t({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject())));return t({...e,parse:!1}).catch(t=>{const r=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&r?o(r).catch(()=>!1!==e.parse?Promise.reject({code:"post_process",message:Object(n.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t)):h(t,e.parse)}).then(t=>f(t,e.parse))};var O=t.default=b}}).default;
build/autop/index.js CHANGED
@@ -82,12 +82,12 @@ window["wp"] = window["wp"] || {}; window["wp"]["autop"] =
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 277);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
89
 
90
- /***/ 277:
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
 
93
  "use strict";
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 284);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
89
 
90
+ /***/ 284:
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
 
93
  "use strict";
build/{blob/index.asset.php → autop/index.min.asset.php} RENAMED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => '35d4618c17b510886099bcad9b6446dc');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => '69c7c5b6874b236b1d34e0dc7b7f59f1');
build/autop/index.min.js CHANGED
@@ -1 +1 @@
1
- window.wp=window.wp||{},window.wp.autop=function(e){var n={};function r(p){if(n[p])return n[p].exports;var t=n[p]={i:p,l:!1,exports:{}};return e[p].call(t.exports,t,t.exports,r),t.l=!0,t.exports}return r.m=e,r.c=n,r.d=function(e,n,p){r.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:p})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,n){if(1&n&&(e=r(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var p=Object.create(null);if(r.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)r.d(p,t,function(n){return e[n]}.bind(null,t));return p},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.p="",r(r.s=277)}({277:function(e,n,r){"use strict";r.r(n),r.d(n,"autop",(function(){return t})),r.d(n,"removep",(function(){return c}));const p=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function t(e,n=!0){const r=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf("<pre")){const n=e.split("</pre>"),p=n.pop();e="";for(let p=0;p<n.length;p++){const t=n[p],c=t.indexOf("<pre");if(-1===c){e+=t;continue}const l="<pre wp-pre-tag-"+p+"></pre>";r.push([l,t.substr(c)+"</pre>"]),e+=t.substr(0,c)+l}e+=p}const t="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=function(e,n){const r=function(e){const n=[];let r,t=e;for(;r=t.match(p);){const e=r.index;n.push(t.slice(0,e)),n.push(r[0]),t=t.slice(e+r[0].length)}return t.length&&n.push(t),n}(e);let t=!1;const c=Object.keys(n);for(let e=1;e<r.length;e+=2)for(let p=0;p<c.length;p++){const l=c[p];if(-1!==r[e].indexOf(l)){r[e]=r[e].replace(new RegExp(l,"g"),n[l]),t=!0;break}}return t&&(e=r.join("")),e}(e=(e=(e=(e=e.replace(/<br\s*\/?>\s*<br\s*\/?>/g,"\n\n")).replace(new RegExp("(<"+t+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("(</"+t+">)","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("<option")&&(e=(e=e.replace(/\s*<option/g,"<option")).replace(/<\/option>\s*/g,"</option>")),-1!==e.indexOf("</object>")&&(e=(e=(e=e.replace(/(<object[^>]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"</object>")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("<source")&&-1===e.indexOf("<track")||(e=(e=(e=e.replace(/([<\[](?:audio|video)[^>\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("<figcaption")&&(e=(e=e.replace(/\s*(<figcaption[^>]*>)/,"$1")).replace(/<\/figcaption>\s*/,"</figcaption>"));const c=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",c.forEach(n=>{e+="<p>"+n.replace(/^\n*|\n*$/g,"")+"</p>\n"}),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/<p>\s*<\/p>/g,"")).replace(/<p>([^<]+)<\/(div|address|form)>/g,"<p>$1</p></$2>")).replace(new RegExp("<p>\\s*(</?"+t+"[^>]*>)\\s*</p>","g"),"$1")).replace(/<p>(<li.+?)<\/p>/g,"$1")).replace(/<p><blockquote([^>]*)>/gi,"<blockquote$1><p>")).replace(/<\/blockquote><\/p>/g,"</p></blockquote>")).replace(new RegExp("<p>\\s*(</?"+t+"[^>]*>)","g"),"$1")).replace(new RegExp("(</?"+t+"[^>]*>)\\s*</p>","g"),"$1"),n&&(e=(e=(e=(e=e.replace(/<(script|style).*?<\/\\1>/g,e=>e[0].replace(/\n/g,"<WPPreserveNewline />"))).replace(/<br>|<br\/>/g,"<br />")).replace(/(<br \/>)?\s*\n/g,(e,n)=>n?e:"<br />\n")).replace(/<WPPreserveNewline \/>/g,"\n")),e=(e=(e=e.replace(new RegExp("(</?"+t+"[^>]*>)\\s*<br />","g"),"$1")).replace(/<br \/>(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,"$1")).replace(/\n<\/p>$/g,"</p>"),r.forEach(n=>{const[r,p]=n;e=e.replace(r,p)}),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?<!-- wpnl -->\s?/g,"\n")),e}function c(e){const n="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",r=n+"|div|p",p=n+"|pre",t=[];let c=!1,l=!1;return e?(-1===e.indexOf("<script")&&-1===e.indexOf("<style")||(e=e.replace(/<(script|style)[^>]*>[\s\S]*?<\/\1>/g,e=>(t.push(e),"<wp-preserve>"))),-1!==e.indexOf("<pre")&&(c=!0,e=e.replace(/<pre[^>]*>[\s\S]+?<\/pre>/g,e=>(e=(e=e.replace(/<br ?\/?>(\r\n|\n)?/g,"<wp-line-break>")).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,"<wp-line-break>")).replace(/\r?\n/g,"<wp-line-break>"))),-1!==e.indexOf("[caption")&&(l=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,e=>e.replace(/<br([^>]*)>/g,"<wp-temp-br$1>").replace(/[\r\n\t]+/,""))),-1!==(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp("\\s*</("+r+")>\\s*","g"),"</$1>\n")).replace(new RegExp("\\s*<((?:"+r+")(?: [^>]*)?)>","g"),"\n<$1>")).replace(/(<p [^>]+>[\s\S]*?)<\/p>/g,"$1</p#>")).replace(/<div( [^>]*)?>\s*<p>/gi,"<div$1>\n\n")).replace(/\s*<p>/gi,"")).replace(/\s*<\/p>\s*/gi,"\n\n")).replace(/\n[\s\u00a0]+\n/g,"\n\n")).replace(/(\s*)<br ?\/?>\s*/gi,(e,n)=>n&&-1!==n.indexOf("\n")?"\n\n":"\n")).replace(/\s*<div/g,"\n<div")).replace(/<\/div>\s*/g,"</div>\n")).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,"\n\n[caption$1[/caption]\n\n")).replace(/caption\]\n\n+\[caption/g,"caption]\n\n[caption")).replace(new RegExp("\\s*<((?:"+p+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*</("+p+")>\\s*","g"),"</$1>\n")).replace(/<((li|dt|dd)[^>]*)>/g," \t<$1>")).indexOf("<option")&&(e=(e=e.replace(/\s*<option/g,"\n<option")).replace(/\s*<\/select>/g,"\n</select>")),-1!==e.indexOf("<hr")&&(e=e.replace(/\s*<hr( [^>]*)?>\s*/g,"\n\n<hr$1>\n\n")),-1!==e.indexOf("<object")&&(e=e.replace(/<object[\s\S]+?<\/object>/g,e=>e.replace(/[\r\n]+/g,""))),e=(e=(e=(e=e.replace(/<\/p#>/g,"</p>\n")).replace(/\s*(<p [^>]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),c&&(e=e.replace(/<wp-line-break>/g,"\n")),l&&(e=e.replace(/<wp-temp-br([^>]*)>/g,"<br$1>")),t.length&&(e=e.replace(/<wp-preserve>/g,()=>t.shift())),e):""}}});
1
+ window.wp=window.wp||{},window.wp.autop=function(e){var n={};function r(p){if(n[p])return n[p].exports;var t=n[p]={i:p,l:!1,exports:{}};return e[p].call(t.exports,t,t.exports,r),t.l=!0,t.exports}return r.m=e,r.c=n,r.d=function(e,n,p){r.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:p})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,n){if(1&n&&(e=r(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var p=Object.create(null);if(r.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)r.d(p,t,function(n){return e[n]}.bind(null,t));return p},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.p="",r(r.s=284)}({284:function(e,n,r){"use strict";r.r(n),r.d(n,"autop",(function(){return t})),r.d(n,"removep",(function(){return c}));const p=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function t(e,n=!0){const r=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf("<pre")){const n=e.split("</pre>"),p=n.pop();e="";for(let p=0;p<n.length;p++){const t=n[p],c=t.indexOf("<pre");if(-1===c){e+=t;continue}const l="<pre wp-pre-tag-"+p+"></pre>";r.push([l,t.substr(c)+"</pre>"]),e+=t.substr(0,c)+l}e+=p}const t="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=function(e,n){const r=function(e){const n=[];let r,t=e;for(;r=t.match(p);){const e=r.index;n.push(t.slice(0,e)),n.push(r[0]),t=t.slice(e+r[0].length)}return t.length&&n.push(t),n}(e);let t=!1;const c=Object.keys(n);for(let e=1;e<r.length;e+=2)for(let p=0;p<c.length;p++){const l=c[p];if(-1!==r[e].indexOf(l)){r[e]=r[e].replace(new RegExp(l,"g"),n[l]),t=!0;break}}return t&&(e=r.join("")),e}(e=(e=(e=(e=e.replace(/<br\s*\/?>\s*<br\s*\/?>/g,"\n\n")).replace(new RegExp("(<"+t+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("(</"+t+">)","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("<option")&&(e=(e=e.replace(/\s*<option/g,"<option")).replace(/<\/option>\s*/g,"</option>")),-1!==e.indexOf("</object>")&&(e=(e=(e=e.replace(/(<object[^>]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"</object>")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("<source")&&-1===e.indexOf("<track")||(e=(e=(e=e.replace(/([<\[](?:audio|video)[^>\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("<figcaption")&&(e=(e=e.replace(/\s*(<figcaption[^>]*>)/,"$1")).replace(/<\/figcaption>\s*/,"</figcaption>"));const c=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",c.forEach(n=>{e+="<p>"+n.replace(/^\n*|\n*$/g,"")+"</p>\n"}),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/<p>\s*<\/p>/g,"")).replace(/<p>([^<]+)<\/(div|address|form)>/g,"<p>$1</p></$2>")).replace(new RegExp("<p>\\s*(</?"+t+"[^>]*>)\\s*</p>","g"),"$1")).replace(/<p>(<li.+?)<\/p>/g,"$1")).replace(/<p><blockquote([^>]*)>/gi,"<blockquote$1><p>")).replace(/<\/blockquote><\/p>/g,"</p></blockquote>")).replace(new RegExp("<p>\\s*(</?"+t+"[^>]*>)","g"),"$1")).replace(new RegExp("(</?"+t+"[^>]*>)\\s*</p>","g"),"$1"),n&&(e=(e=(e=(e=e.replace(/<(script|style).*?<\/\\1>/g,e=>e[0].replace(/\n/g,"<WPPreserveNewline />"))).replace(/<br>|<br\/>/g,"<br />")).replace(/(<br \/>)?\s*\n/g,(e,n)=>n?e:"<br />\n")).replace(/<WPPreserveNewline \/>/g,"\n")),e=(e=(e=e.replace(new RegExp("(</?"+t+"[^>]*>)\\s*<br />","g"),"$1")).replace(/<br \/>(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,"$1")).replace(/\n<\/p>$/g,"</p>"),r.forEach(n=>{const[r,p]=n;e=e.replace(r,p)}),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?<!-- wpnl -->\s?/g,"\n")),e}function c(e){const n="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",r=n+"|div|p",p=n+"|pre",t=[];let c=!1,l=!1;return e?(-1===e.indexOf("<script")&&-1===e.indexOf("<style")||(e=e.replace(/<(script|style)[^>]*>[\s\S]*?<\/\1>/g,e=>(t.push(e),"<wp-preserve>"))),-1!==e.indexOf("<pre")&&(c=!0,e=e.replace(/<pre[^>]*>[\s\S]+?<\/pre>/g,e=>(e=(e=e.replace(/<br ?\/?>(\r\n|\n)?/g,"<wp-line-break>")).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,"<wp-line-break>")).replace(/\r?\n/g,"<wp-line-break>"))),-1!==e.indexOf("[caption")&&(l=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,e=>e.replace(/<br([^>]*)>/g,"<wp-temp-br$1>").replace(/[\r\n\t]+/,""))),-1!==(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp("\\s*</("+r+")>\\s*","g"),"</$1>\n")).replace(new RegExp("\\s*<((?:"+r+")(?: [^>]*)?)>","g"),"\n<$1>")).replace(/(<p [^>]+>[\s\S]*?)<\/p>/g,"$1</p#>")).replace(/<div( [^>]*)?>\s*<p>/gi,"<div$1>\n\n")).replace(/\s*<p>/gi,"")).replace(/\s*<\/p>\s*/gi,"\n\n")).replace(/\n[\s\u00a0]+\n/g,"\n\n")).replace(/(\s*)<br ?\/?>\s*/gi,(e,n)=>n&&-1!==n.indexOf("\n")?"\n\n":"\n")).replace(/\s*<div/g,"\n<div")).replace(/<\/div>\s*/g,"</div>\n")).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,"\n\n[caption$1[/caption]\n\n")).replace(/caption\]\n\n+\[caption/g,"caption]\n\n[caption")).replace(new RegExp("\\s*<((?:"+p+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*</("+p+")>\\s*","g"),"</$1>\n")).replace(/<((li|dt|dd)[^>]*)>/g," \t<$1>")).indexOf("<option")&&(e=(e=e.replace(/\s*<option/g,"\n<option")).replace(/\s*<\/select>/g,"\n</select>")),-1!==e.indexOf("<hr")&&(e=e.replace(/\s*<hr( [^>]*)?>\s*/g,"\n\n<hr$1>\n\n")),-1!==e.indexOf("<object")&&(e=e.replace(/<object[\s\S]+?<\/object>/g,e=>e.replace(/[\r\n]+/g,""))),e=(e=(e=(e=e.replace(/<\/p#>/g,"</p>\n")).replace(/\s*(<p [^>]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),c&&(e=e.replace(/<wp-line-break>/g,"\n")),l&&(e=e.replace(/<wp-temp-br([^>]*)>/g,"<br$1>")),t.length&&(e=e.replace(/<wp-preserve>/g,()=>t.shift())),e):""}}});
build/blob/index.js CHANGED
@@ -82,12 +82,12 @@ window["wp"] = window["wp"] || {}; window["wp"]["blob"] =
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 278);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
89
 
90
- /***/ 278:
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
 
93
  "use strict";
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 285);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
89
 
90
+ /***/ 285:
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
 
93
  "use strict";
build/{block-serialization-default-parser/index.asset.php → blob/index.min.asset.php} RENAMED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => '8a89e6591b75a95b1bfe312d101d7925');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => 'fecb06d681aefa6abd84ed362d44d040');
build/blob/index.min.js CHANGED
@@ -1 +1 @@
1
- window.wp=window.wp||{},window.wp.blob=function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=278)}({278:function(e,n,t){"use strict";t.r(n),t.d(n,"createBlobURL",(function(){return i})),t.d(n,"getBlobByURL",(function(){return c})),t.d(n,"getBlobTypeByURL",(function(){return f})),t.d(n,"revokeBlobURL",(function(){return l})),t.d(n,"isBlobURL",(function(){return d}));const{createObjectURL:r,revokeObjectURL:o}=window.URL,u={};function i(e){const n=r(e);return u[n]=e,n}function c(e){return u[e]}function f(e){var n;return null===(n=c(e))||void 0===n?void 0:n.type.split("/")[0]}function l(e){u[e]&&o(e),delete u[e]}function d(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}});
1
+ window.wp=window.wp||{},window.wp.blob=function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=285)}({285:function(e,n,t){"use strict";t.r(n),t.d(n,"createBlobURL",(function(){return i})),t.d(n,"getBlobByURL",(function(){return c})),t.d(n,"getBlobTypeByURL",(function(){return f})),t.d(n,"revokeBlobURL",(function(){return l})),t.d(n,"isBlobURL",(function(){return d}));const{createObjectURL:r,revokeObjectURL:o}=window.URL,u={};function i(e){const n=r(e);return u[n]=e,n}function c(e){return u[e]}function f(e){var n;return null===(n=c(e))||void 0===n?void 0:n.type.split("/")[0]}function l(e){u[e]&&o(e),delete u[e]}function d(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}});
build/block-directory/index.js CHANGED
@@ -82,7 +82,7 @@ window["wp"] = window["wp"] || {}; window["wp"]["blockDirectory"] =
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 409);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
@@ -147,7 +147,7 @@ function Icon({
147
 
148
  /***/ }),
149
 
150
- /***/ 144:
151
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
152
 
153
  "use strict";
@@ -172,7 +172,7 @@ const starFilled = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["creat
172
 
173
  /***/ }),
174
 
175
- /***/ 145:
176
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
177
 
178
  "use strict";
@@ -199,7 +199,7 @@ const starEmpty = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create
199
 
200
  /***/ }),
201
 
202
- /***/ 146:
203
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
204
 
205
  "use strict";
@@ -224,7 +224,7 @@ const blockDefault = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cre
224
 
225
  /***/ }),
226
 
227
- /***/ 15:
228
  /***/ (function(module, exports) {
229
 
230
  (function() { module.exports = window["wp"]["editor"]; }());
@@ -245,7 +245,7 @@ const blockDefault = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cre
245
 
246
  /***/ }),
247
 
248
- /***/ 254:
249
  /***/ (function(module, exports) {
250
 
251
  (function() { module.exports = window["wp"]["editPost"]; }());
@@ -287,28 +287,28 @@ const blockDefault = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cre
287
 
288
  /***/ }),
289
 
290
- /***/ 36:
291
  /***/ (function(module, exports) {
292
 
293
  (function() { module.exports = window["wp"]["plugins"]; }());
294
 
295
  /***/ }),
296
 
297
- /***/ 39:
298
  /***/ (function(module, exports) {
299
 
300
- (function() { module.exports = window["wp"]["htmlEntities"]; }());
301
 
302
  /***/ }),
303
 
304
- /***/ 4:
305
  /***/ (function(module, exports) {
306
 
307
- (function() { module.exports = window["wp"]["data"]; }());
308
 
309
  /***/ }),
310
 
311
- /***/ 409:
312
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
313
 
314
  "use strict";
@@ -347,7 +347,7 @@ __webpack_require__.d(actions_namespaceObject, "clearErrorNotice", function() {
347
  var external_wp_element_ = __webpack_require__(0);
348
 
349
  // EXTERNAL MODULE: external ["wp","plugins"]
350
- var external_wp_plugins_ = __webpack_require__(36);
351
 
352
  // EXTERNAL MODULE: external ["wp","hooks"]
353
  var external_wp_hooks_ = __webpack_require__(20);
@@ -359,7 +359,7 @@ var external_wp_blocks_ = __webpack_require__(8);
359
  var external_wp_data_ = __webpack_require__(4);
360
 
361
  // EXTERNAL MODULE: external ["wp","editor"]
362
- var external_wp_editor_ = __webpack_require__(15);
363
 
364
  // EXTERNAL MODULE: external ["wp","dataControls"]
365
  var external_wp_dataControls_ = __webpack_require__(33);
@@ -1111,13 +1111,13 @@ var external_wp_coreData_ = __webpack_require__(11);
1111
  var esm_extends = __webpack_require__(7);
1112
 
1113
  // EXTERNAL MODULE: external ["wp","htmlEntities"]
1114
- var external_wp_htmlEntities_ = __webpack_require__(39);
1115
 
1116
  // EXTERNAL MODULE: ./packages/icons/build-module/icon/index.js
1117
  var build_module_icon = __webpack_require__(109);
1118
 
1119
  // EXTERNAL MODULE: ./packages/icons/build-module/library/star-filled.js
1120
- var star_filled = __webpack_require__(144);
1121
 
1122
  // EXTERNAL MODULE: external ["wp","primitives"]
1123
  var external_wp_primitives_ = __webpack_require__(6);
@@ -1138,7 +1138,7 @@ const starHalf = Object(external_wp_element_["createElement"])(external_wp_primi
1138
  /* harmony default export */ var star_half = (starHalf);
1139
  //# sourceMappingURL=star-half.js.map
1140
  // EXTERNAL MODULE: ./packages/icons/build-module/library/star-empty.js
1141
- var star_empty = __webpack_require__(145);
1142
 
1143
  // CONCATENATED MODULE: ./packages/block-directory/build-module/components/block-ratings/stars.js
1144
 
@@ -1511,7 +1511,7 @@ function DownloadableBlocksInserterPanel({
1511
  /* harmony default export */ var inserter_panel = (DownloadableBlocksInserterPanel);
1512
  //# sourceMappingURL=inserter-panel.js.map
1513
  // EXTERNAL MODULE: ./packages/icons/build-module/library/block-default.js
1514
- var block_default = __webpack_require__(146);
1515
 
1516
  // CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/no-results.js
1517
 
@@ -1668,7 +1668,7 @@ function InserterMenuDownloadableBlocksPanel() {
1668
  /* harmony default export */ var inserter_menu_downloadable_blocks_panel = (InserterMenuDownloadableBlocksPanel);
1669
  //# sourceMappingURL=index.js.map
1670
  // EXTERNAL MODULE: external ["wp","editPost"]
1671
- var external_wp_editPost_ = __webpack_require__(254);
1672
 
1673
  // CONCATENATED MODULE: ./packages/block-directory/build-module/components/compact-list/index.js
1674
 
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 415);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
147
 
148
  /***/ }),
149
 
150
+ /***/ 148:
151
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
152
 
153
  "use strict";
172
 
173
  /***/ }),
174
 
175
+ /***/ 149:
176
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
177
 
178
  "use strict";
199
 
200
  /***/ }),
201
 
202
+ /***/ 150:
203
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
204
 
205
  "use strict";
224
 
225
  /***/ }),
226
 
227
+ /***/ 16:
228
  /***/ (function(module, exports) {
229
 
230
  (function() { module.exports = window["wp"]["editor"]; }());
245
 
246
  /***/ }),
247
 
248
+ /***/ 258:
249
  /***/ (function(module, exports) {
250
 
251
  (function() { module.exports = window["wp"]["editPost"]; }());
287
 
288
  /***/ }),
289
 
290
+ /***/ 37:
291
  /***/ (function(module, exports) {
292
 
293
  (function() { module.exports = window["wp"]["plugins"]; }());
294
 
295
  /***/ }),
296
 
297
+ /***/ 4:
298
  /***/ (function(module, exports) {
299
 
300
+ (function() { module.exports = window["wp"]["data"]; }());
301
 
302
  /***/ }),
303
 
304
+ /***/ 40:
305
  /***/ (function(module, exports) {
306
 
307
+ (function() { module.exports = window["wp"]["htmlEntities"]; }());
308
 
309
  /***/ }),
310
 
311
+ /***/ 415:
312
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
313
 
314
  "use strict";
347
  var external_wp_element_ = __webpack_require__(0);
348
 
349
  // EXTERNAL MODULE: external ["wp","plugins"]
350
+ var external_wp_plugins_ = __webpack_require__(37);
351
 
352
  // EXTERNAL MODULE: external ["wp","hooks"]
353
  var external_wp_hooks_ = __webpack_require__(20);
359
  var external_wp_data_ = __webpack_require__(4);
360
 
361
  // EXTERNAL MODULE: external ["wp","editor"]
362
+ var external_wp_editor_ = __webpack_require__(16);
363
 
364
  // EXTERNAL MODULE: external ["wp","dataControls"]
365
  var external_wp_dataControls_ = __webpack_require__(33);
1111
  var esm_extends = __webpack_require__(7);
1112
 
1113
  // EXTERNAL MODULE: external ["wp","htmlEntities"]
1114
+ var external_wp_htmlEntities_ = __webpack_require__(40);
1115
 
1116
  // EXTERNAL MODULE: ./packages/icons/build-module/icon/index.js
1117
  var build_module_icon = __webpack_require__(109);
1118
 
1119
  // EXTERNAL MODULE: ./packages/icons/build-module/library/star-filled.js
1120
+ var star_filled = __webpack_require__(148);
1121
 
1122
  // EXTERNAL MODULE: external ["wp","primitives"]
1123
  var external_wp_primitives_ = __webpack_require__(6);
1138
  /* harmony default export */ var star_half = (starHalf);
1139
  //# sourceMappingURL=star-half.js.map
1140
  // EXTERNAL MODULE: ./packages/icons/build-module/library/star-empty.js
1141
+ var star_empty = __webpack_require__(149);
1142
 
1143
  // CONCATENATED MODULE: ./packages/block-directory/build-module/components/block-ratings/stars.js
1144
 
1511
  /* harmony default export */ var inserter_panel = (DownloadableBlocksInserterPanel);
1512
  //# sourceMappingURL=inserter-panel.js.map
1513
  // EXTERNAL MODULE: ./packages/icons/build-module/library/block-default.js
1514
+ var block_default = __webpack_require__(150);
1515
 
1516
  // CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/no-results.js
1517
 
1668
  /* harmony default export */ var inserter_menu_downloadable_blocks_panel = (InserterMenuDownloadableBlocksPanel);
1669
  //# sourceMappingURL=index.js.map
1670
  // EXTERNAL MODULE: external ["wp","editPost"]
1671
+ var external_wp_editPost_ = __webpack_require__(258);
1672
 
1673
  // CONCATENATED MODULE: ./packages/block-directory/build-module/components/compact-list/index.js
1674
 
build/block-directory/{index.asset.php → index.min.asset.php} RENAMED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'f91d0db88303a343a29f1ebe29a74de4');
1
+ <?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'd295f05bb08ea40558c289885c547f0e');
build/block-directory/index.min.js CHANGED
@@ -1,5 +1,5 @@
1
- window.wp=window.wp||{},window.wp.blockDirectory=function(e){var t={};function n(l){if(t[l])return t[l].exports;var c=t[l]={i:l,l:!1,exports:{}};return e[l].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=e,n.c=t,n.d=function(e,t,l){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(l,c,function(t){return e[t]}.bind(null,c));return l},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=409)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},109:function(e,t,n){"use strict";var l=n(0);t.a=function({icon:e,size:t=24,...n}){return Object(l.cloneElement)(e,{width:t,height:t,...n})}},11:function(e,t){e.exports=window.wp.coreData},144:function(e,t,n){"use strict";var l=n(0),c=n(6);const o=Object(l.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(c.Path,{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"}));t.a=o},145:function(e,t,n){"use strict";var l=n(0),c=n(6);const o=Object(l.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(c.Path,{fillRule:"evenodd",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",clipRule:"evenodd"}));t.a=o},146:function(e,t,n){"use strict";var l=n(0),c=n(6);const o=Object(l.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(c.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=o},15:function(e,t){e.exports=window.wp.editor},2:function(e,t){e.exports=window.lodash},20:function(e,t){e.exports=window.wp.hooks},254:function(e,t){e.exports=window.wp.editPost},28:function(e,t){e.exports=window.wp.notices},3:function(e,t){e.exports=window.wp.components},30:function(e,t){e.exports=window.wp.a11y},31:function(e,t){e.exports=window.wp.apiFetch},33:function(e,t){e.exports=window.wp.dataControls},36:function(e,t){e.exports=window.wp.plugins},39:function(e,t){e.exports=window.wp.htmlEntities},4:function(e,t){e.exports=window.wp.data},409:function(e,t,n){"use strict";n.r(t),n.d(t,"store",(function(){return K}));var l={};n.r(l),n.d(l,"isRequestingDownloadableBlocks",(function(){return k})),n.d(l,"getDownloadableBlocks",(function(){return j})),n.d(l,"getInstalledBlockTypes",(function(){return f})),n.d(l,"getNewBlockTypes",(function(){return _})),n.d(l,"getUnusedBlockTypes",(function(){return w})),n.d(l,"isInstalling",(function(){return y})),n.d(l,"getErrorNotices",(function(){return E})),n.d(l,"getErrorNoticeForBlock",(function(){return g}));var c={};n.r(c),n.d(c,"fetchDownloadableBlocks",(function(){return L})),n.d(c,"receiveDownloadableBlocks",(function(){return C})),n.d(c,"installBlockType",(function(){return x})),n.d(c,"uninstallBlockType",(function(){return D})),n.d(c,"addInstalledBlockType",(function(){return P})),n.d(c,"removeInstalledBlockType",(function(){return R})),n.d(c,"setIsInstalling",(function(){return A})),n.d(c,"setErrorNotice",(function(){return M})),n.d(c,"clearErrorNotice",(function(){return F}));var o=n(0),r=n(36),a=n(20),i=n(8),s=n(4),d=n(15),b=n(33),u=n(2),m=Object(s.combineReducers)({downloadableBlocks:(e={},t)=>{switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{isRequesting:!0}};case"RECEIVE_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{results:t.downloadableBlocks,isRequesting:!1}}}return e},blockManagement:(e={installedBlockTypes:[],isInstalling:{}},t)=>{switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return{...e,installedBlockTypes:[...e.installedBlockTypes,t.item]};case"REMOVE_INSTALLED_BLOCK_TYPE":return{...e,installedBlockTypes:e.installedBlockTypes.filter(e=>e.name!==t.item.name)};case"SET_INSTALLING_BLOCK":return{...e,isInstalling:{...e.isInstalling,[t.blockId]:t.isInstalling}}}return e},errorNotices:(e={},t)=>{switch(t.type){case"SET_ERROR_NOTICE":return{...e,[t.blockId]:{message:t.message,isFatal:t.isFatal}};case"CLEAR_ERROR_NOTICE":return Object(u.omit)(e,t.blockId)}return e}}),p=n(5);function O(e,t=[]){if(!t.length)return!1;if(t.some(({name:t})=>t===e.name))return!0;for(let n=0;n<t.length;n++)if(O(e,t[n].innerBlocks))return!0;return!1}function k(e,t){return!(!e.downloadableBlocks[t]||!e.downloadableBlocks[t].isRequesting)&&e.downloadableBlocks[t].isRequesting}function j(e,t){return e.downloadableBlocks[t]&&e.downloadableBlocks[t].results?e.downloadableBlocks[t].results:[]}function f(e){return e.blockManagement.installedBlockTypes}const _=Object(s.createRegistrySelector)(e=>t=>{const n=e(p.store).getBlocks();return f(t).filter(e=>O(e,n))}),w=Object(s.createRegistrySelector)(e=>t=>{const n=e(p.store).getBlocks();return f(t).filter(e=>!O(e,n))});function y(e,t){return e.blockManagement.isInstalling[t]||!1}function E(e){return e.errorNotices}function g(e,t){return e.errorNotices[t]}var h=n(1),v=n(28),B=n(31),N=n.n(B);const I=e=>new Promise((t,n)=>{const l=document.createElement(e.nodeName);["id","rel","src","href","type"].forEach(t=>{e[t]&&(l[t]=e[t])}),e.innerHTML&&l.appendChild(document.createTextNode(e.innerHTML)),l.onload=()=>t(!0),l.onerror=()=>n(new Error("Error loading asset.")),document.body.appendChild(l),("link"===l.nodeName.toLowerCase()||"script"===l.nodeName.toLowerCase()&&!l.src)&&t()});var T={async LOAD_ASSETS(){const e=await N()({url:document.location.href,parse:!1}),t=await e.text(),n=(new window.DOMParser).parseFromString(t,"text/html"),l=Array.from(n.querySelectorAll('link[rel="stylesheet"],script')).filter(e=>e.id&&!document.getElementById(e.id));for(const e of l)await I(e)}};function S(e){if(!e)return!1;const t=e.links["wp:plugin"]||e.links.self;return!(!t||!t.length)&&t[0].href}function L(e){return{type:"FETCH_DOWNLOADABLE_BLOCKS",filterValue:e}}function C(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}function*x(e){const{id:t,assets:n}=e;let l=!1;yield F(t);try{yield A(e.id,!0);const t=S(e);let c={};if(t?yield Object(b.apiFetch)({url:t,data:{status:"active"},method:"PUT"}):c=(yield Object(b.apiFetch)({path:"wp/v2/plugins",data:{slug:e.id,status:"active"},method:"POST"}))._links,yield P({...e,links:{...e.links,...c}}),yield function(e){return{type:"LOAD_ASSETS",assets:e}}(n),!(yield s.controls.select(i.store.name,"getBlockTypes")).some(t=>t.name===e.name))throw new Error(Object(h.__)("Error registering block. Try reloading the page."));yield s.controls.dispatch(v.store,"createInfoNotice",Object(h.sprintf)(// translators: %s is the block title.
2
- Object(h.__)("Block %s installed and added."),e.title),{speak:!0,type:"snackbar"}),l=!0}catch(e){let n=e.message||Object(h.__)("An error occurred."),l=e instanceof Error;const c={folder_exists:Object(h.__)("This block is already installed. Try reloading the page."),unable_to_connect_to_filesystem:Object(h.__)("Error installing block. You can reload the page and try again.")};c[e.code]&&(l=!0,n=c[e.code]),yield M(t,n,l),yield s.controls.dispatch(v.store,"createErrorNotice",n,{speak:!0,isDismissible:!0})}return yield A(e.id,!1),l}function*D(e){try{yield Object(b.apiFetch)({url:S(e),data:{status:"inactive"},method:"PUT"}),yield Object(b.apiFetch)({url:S(e),method:"DELETE"}),yield R(e)}catch(e){yield s.controls.dispatch(v.store,"createErrorNotice",e.message||Object(h.__)("An error occurred."))}}function P(e){return{type:"ADD_INSTALLED_BLOCK_TYPE",item:e}}function R(e){return{type:"REMOVE_INSTALLED_BLOCK_TYPE",item:e}}function A(e,t){return{type:"SET_INSTALLING_BLOCK",blockId:e,isInstalling:t}}function M(e,t,n=!1){return{type:"SET_ERROR_NOTICE",blockId:e,message:t,isFatal:n}}function F(e){return{type:"CLEAR_ERROR_NOTICE",blockId:e}}var V={*getDownloadableBlocks(e){if(e)try{yield L(e);const t=(yield Object(b.apiFetch)({path:"wp/v2/block-directory/search?term="+e})).map(e=>Object(u.mapKeys)(e,(e,t)=>Object(u.camelCase)(t)));yield C(t,e)}catch(e){}}};const H={reducer:m,selectors:l,actions:c,controls:{...b.controls,...T},resolvers:V},K=Object(s.createReduxStore)("core/block-directory",H);function z(){const{uninstallBlockType:e}=Object(s.useDispatch)(K),t=Object(s.useSelect)(e=>{const{isAutosavingPost:t,isSavingPost:n}=e(d.store);return n()&&!t()},[]),n=Object(s.useSelect)(e=>e(K).getUnusedBlockTypes(),[]);return Object(o.useEffect)(()=>{t&&n.length&&n.forEach(t=>{e(t),Object(i.unregisterBlockType)(t.name)})},[t]),null}Object(s.register)(K);var q=n(3),Y=n(9),$=n(11),U=n(7),G=n(39),W=n(109),J=n(144),Q=n(6),X=Object(o.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(Q.Path,{d:"M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.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.39v7.143z"})),Z=n(145),ee=function({rating:e}){const t=.5*Math.round(e/.5),n=Math.floor(e),l=Math.ceil(e-n),c=5-(n+l);return Object(o.createElement)("span",{"aria-label":Object(h.sprintf)(
3
  /* translators: %s: number of stars. */
4
  Object(h.__)("%s out of 5 stars"),t)},Object(u.times)(n,e=>Object(o.createElement)(W.a,{key:"full_stars_"+e,className:"block-directory-block-ratings__star-full",icon:J.a,size:16})),Object(u.times)(l,e=>Object(o.createElement)(W.a,{key:"half_stars_"+e,className:"block-directory-block-ratings__star-half-full",icon:X,size:16})),Object(u.times)(c,e=>Object(o.createElement)(W.a,{key:"empty_stars_"+e,className:"block-directory-block-ratings__star-empty",icon:Z.a,size:16})))},te=({rating:e})=>Object(o.createElement)("span",{className:"block-directory-block-ratings"},Object(o.createElement)(ee,{rating:e})),ne=function({icon:e}){const t="block-directory-downloadable-block-icon";return null!==e.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/)?Object(o.createElement)("img",{className:t,src:e,alt:""}):Object(o.createElement)(p.BlockIcon,{className:t,icon:e,showColors:!0})},le=({block:e})=>{const t=Object(s.useSelect)(t=>t(K).getErrorNoticeForBlock(e.id),[e]);return t?Object(o.createElement)("div",{className:"block-directory-downloadable-block-notice"},Object(o.createElement)("div",{className:"block-directory-downloadable-block-notice__content"},t.message,t.isFatal?" "+Object(h.__)("Try reloading the page."):null)):null};function ce({title:e,rating:t,ratingCount:n},{hasNotice:l,isInstalled:c,isInstalling:o}){const r=.5*Math.round(t/.5);return!c&&l?Object(h.sprintf)("Retry installing %s.",Object(G.decodeEntities)(e)):c?Object(h.sprintf)("Add %s.",Object(G.decodeEntities)(e)):o?Object(h.sprintf)("Installing %s.",Object(G.decodeEntities)(e)):n<1?Object(h.sprintf)("Install %s.",Object(G.decodeEntities)(e)):Object(h.sprintf)(
5
  /* translators: %1$s: block title, %2$s: average rating, %3$s: total ratings count. */
@@ -7,7 +7,7 @@ Object(h._n)("Install %1$s. %2$s stars with %3$s review.","Install %1$s. %2$s st
7
  /* translators: %1$s: block title, %2$s: author name. */
8
  Object(h.__)("%1$s <span>by %2$s</span>"),Object(G.decodeEntities)(d),l),{span:Object(o.createElement)("span",{className:"block-directory-downloadable-block-list-item__author"})})),u?Object(o.createElement)(le,{block:t}):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("span",{className:"block-directory-downloadable-block-list-item__desc"},O||Object(G.decodeEntities)(c)),p&&!(b||m)&&Object(o.createElement)(q.VisuallyHidden,null,Object(h.__)("Install block")))))},re=function({items:e,onHover:t=u.noop,onSelect:n}){const l=Object(q.__unstableUseCompositeState)(),{installBlockType:c}=Object(s.useDispatch)(K);return e.length?Object(o.createElement)(q.__unstableComposite,Object(U.a)({},l,{role:"listbox",className:"block-directory-downloadable-blocks-list","aria-label":Object(h.__)("Blocks available for install")}),e.map(e=>Object(o.createElement)(oe,{key:e.id,composite:l,onClick:()=>{Object(i.getBlockType)(e.name)?n(e):c(e).then(t=>{t&&n(e)}),t(null)},onHover:t,item:e}))):null},ae=n(30),ie=function({children:e,downloadableItems:t,hasLocalBlocks:n}){const l=t.length;return Object(o.useEffect)(()=>{Object(ae.speak)(Object(h.sprintf)(
9
  /* translators: %d: number of available blocks. */
10
- Object(h._n)("%d additional block is available to install.","%d additional blocks are available to install.",l),l))},[l]),Object(o.createElement)(o.Fragment,null,!n&&Object(o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},Object(h.__)("No results available from your installed blocks.")),Object(o.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),Object(o.createElement)("div",{className:"block-directory-downloadable-blocks-panel"},Object(o.createElement)("div",{className:"block-directory-downloadable-blocks-panel__header"},Object(o.createElement)("h2",{className:"block-directory-downloadable-blocks-panel__title"},Object(h.__)("Available to install")),Object(o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},Object(h.__)("Select a block to install and add it to your post."))),e))},se=n(146),de=function(){return Object(o.createElement)("div",{className:"block-editor-inserter__no-results"},Object(o.createElement)(W.a,{className:"block-editor-inserter__no-results-icon",icon:se.a}),Object(o.createElement)("p",null,Object(h.__)("No results found.")))},be=Object(Y.compose)([Object(s.withSelect)((e,{filterValue:t,rootClientId:n=null})=>{const{getDownloadableBlocks:l,isRequestingDownloadableBlocks:c}=e(K),{canInsertBlockType:o}=e(p.store),r=e($.store).canUser("read","block-directory/search");return{downloadableItems:r?l(t).filter(e=>o(e,n,!0)):[],hasPermission:r,isLoading:c(t)}})])((function({downloadableItems:e,onSelect:t,onHover:n,hasLocalBlocks:l,hasPermission:c,isLoading:r,isTyping:a}){return void 0===c||r||a?Object(o.createElement)(o.Fragment,null,c&&!l&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},Object(h.__)("No results available from your installed blocks.")),Object(o.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"})),Object(o.createElement)("div",{className:"block-directory-downloadable-blocks-panel has-blocks-loading"},Object(o.createElement)(q.Spinner,null))):!1===c?l?null:Object(o.createElement)(de,null):e.length?Object(o.createElement)(ie,{downloadableItems:e,hasLocalBlocks:l},Object(o.createElement)(re,{items:e,onSelect:t,onHover:n})):!l&&Object(o.createElement)(de,null)})),ue=function(){const[e,t]=Object(o.useState)(""),n=Object(u.debounce)(t,400);return Object(o.createElement)(p.__unstableInserterMenuExtension,null,({onSelect:t,onHover:l,filterValue:c,hasItems:r,rootClientId:a})=>(e!==c&&n(c),e?Object(o.createElement)(be,{onSelect:t,onHover:l,rootClientId:a,filterValue:e,hasLocalBlocks:r,isTyping:c!==e}):null))},me=n(254);function pe({items:e}){return e.length?Object(o.createElement)("ul",{className:"block-directory-compact-list"},e.map(({icon:e,id:t,title:n,author:l})=>Object(o.createElement)("li",{key:t,className:"block-directory-compact-list__item"},Object(o.createElement)(ne,{icon:e,title:n}),Object(o.createElement)("div",{className:"block-directory-compact-list__item-details"},Object(o.createElement)("div",{className:"block-directory-compact-list__item-title"},n),Object(o.createElement)("div",{className:"block-directory-compact-list__item-author"},Object(h.sprintf)(
11
  /* translators: %s: Name of the block author. */
12
  Object(h.__)("By %s"),l)))))):null}function Oe(){const e=Object(s.useSelect)(e=>e(K).getNewBlockTypes(),[]);return e.length?Object(o.createElement)(me.PluginPrePublishPanel,{icon:se.a,title:Object(h.sprintf)(// translators: %d: number of blocks (number).
13
  Object(h._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0},Object(o.createElement)("p",{className:"installed-blocks-pre-publish-panel__copy"},Object(h._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)),Object(o.createElement)(pe,{items:e})):null}function ke({attributes:e,block:t,clientId:n}){const l=Object(s.useSelect)(e=>e(K).isInstalling(t.id)),{installBlockType:c}=Object(s.useDispatch)(K),{replaceBlock:r}=Object(s.useDispatch)(p.store);return Object(o.createElement)(q.Button,{onClick:()=>c(t).then(l=>{if(l){const l=Object(i.getBlockType)(t.name),[c]=Object(i.parse)(e.originalContent);c&&r(n,Object(i.createBlock)(l.name,c.attributes,c.innerBlocks))}}),disabled:l,isBusy:l,variant:"primary"},Object(h.sprintf)(
1
+ window.wp=window.wp||{},window.wp.blockDirectory=function(e){var t={};function n(l){if(t[l])return t[l].exports;var c=t[l]={i:l,l:!1,exports:{}};return e[l].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=e,n.c=t,n.d=function(e,t,l){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(l,c,function(t){return e[t]}.bind(null,c));return l},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=415)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},109:function(e,t,n){"use strict";var l=n(0);t.a=function({icon:e,size:t=24,...n}){return Object(l.cloneElement)(e,{width:t,height:t,...n})}},11:function(e,t){e.exports=window.wp.coreData},148:function(e,t,n){"use strict";var l=n(0),c=n(6);const o=Object(l.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(c.Path,{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"}));t.a=o},149:function(e,t,n){"use strict";var l=n(0),c=n(6);const o=Object(l.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(c.Path,{fillRule:"evenodd",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",clipRule:"evenodd"}));t.a=o},150:function(e,t,n){"use strict";var l=n(0),c=n(6);const o=Object(l.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(c.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=o},16:function(e,t){e.exports=window.wp.editor},2:function(e,t){e.exports=window.lodash},20:function(e,t){e.exports=window.wp.hooks},258:function(e,t){e.exports=window.wp.editPost},28:function(e,t){e.exports=window.wp.notices},3:function(e,t){e.exports=window.wp.components},30:function(e,t){e.exports=window.wp.a11y},31:function(e,t){e.exports=window.wp.apiFetch},33:function(e,t){e.exports=window.wp.dataControls},37:function(e,t){e.exports=window.wp.plugins},4:function(e,t){e.exports=window.wp.data},40:function(e,t){e.exports=window.wp.htmlEntities},415:function(e,t,n){"use strict";n.r(t),n.d(t,"store",(function(){return K}));var l={};n.r(l),n.d(l,"isRequestingDownloadableBlocks",(function(){return k})),n.d(l,"getDownloadableBlocks",(function(){return j})),n.d(l,"getInstalledBlockTypes",(function(){return f})),n.d(l,"getNewBlockTypes",(function(){return _})),n.d(l,"getUnusedBlockTypes",(function(){return w})),n.d(l,"isInstalling",(function(){return y})),n.d(l,"getErrorNotices",(function(){return E})),n.d(l,"getErrorNoticeForBlock",(function(){return g}));var c={};n.r(c),n.d(c,"fetchDownloadableBlocks",(function(){return L})),n.d(c,"receiveDownloadableBlocks",(function(){return C})),n.d(c,"installBlockType",(function(){return x})),n.d(c,"uninstallBlockType",(function(){return D})),n.d(c,"addInstalledBlockType",(function(){return P})),n.d(c,"removeInstalledBlockType",(function(){return R})),n.d(c,"setIsInstalling",(function(){return A})),n.d(c,"setErrorNotice",(function(){return M})),n.d(c,"clearErrorNotice",(function(){return F}));var o=n(0),r=n(37),a=n(20),i=n(8),s=n(4),d=n(16),b=n(33),u=n(2),m=Object(s.combineReducers)({downloadableBlocks:(e={},t)=>{switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{isRequesting:!0}};case"RECEIVE_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{results:t.downloadableBlocks,isRequesting:!1}}}return e},blockManagement:(e={installedBlockTypes:[],isInstalling:{}},t)=>{switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return{...e,installedBlockTypes:[...e.installedBlockTypes,t.item]};case"REMOVE_INSTALLED_BLOCK_TYPE":return{...e,installedBlockTypes:e.installedBlockTypes.filter(e=>e.name!==t.item.name)};case"SET_INSTALLING_BLOCK":return{...e,isInstalling:{...e.isInstalling,[t.blockId]:t.isInstalling}}}return e},errorNotices:(e={},t)=>{switch(t.type){case"SET_ERROR_NOTICE":return{...e,[t.blockId]:{message:t.message,isFatal:t.isFatal}};case"CLEAR_ERROR_NOTICE":return Object(u.omit)(e,t.blockId)}return e}}),p=n(5);function O(e,t=[]){if(!t.length)return!1;if(t.some(({name:t})=>t===e.name))return!0;for(let n=0;n<t.length;n++)if(O(e,t[n].innerBlocks))return!0;return!1}function k(e,t){return!(!e.downloadableBlocks[t]||!e.downloadableBlocks[t].isRequesting)&&e.downloadableBlocks[t].isRequesting}function j(e,t){return e.downloadableBlocks[t]&&e.downloadableBlocks[t].results?e.downloadableBlocks[t].results:[]}function f(e){return e.blockManagement.installedBlockTypes}const _=Object(s.createRegistrySelector)(e=>t=>{const n=e(p.store).getBlocks();return f(t).filter(e=>O(e,n))}),w=Object(s.createRegistrySelector)(e=>t=>{const n=e(p.store).getBlocks();return f(t).filter(e=>!O(e,n))});function y(e,t){return e.blockManagement.isInstalling[t]||!1}function E(e){return e.errorNotices}function g(e,t){return e.errorNotices[t]}var h=n(1),v=n(28),B=n(31),N=n.n(B);const I=e=>new Promise((t,n)=>{const l=document.createElement(e.nodeName);["id","rel","src","href","type"].forEach(t=>{e[t]&&(l[t]=e[t])}),e.innerHTML&&l.appendChild(document.createTextNode(e.innerHTML)),l.onload=()=>t(!0),l.onerror=()=>n(new Error("Error loading asset.")),document.body.appendChild(l),("link"===l.nodeName.toLowerCase()||"script"===l.nodeName.toLowerCase()&&!l.src)&&t()});var T={async LOAD_ASSETS(){const e=await N()({url:document.location.href,parse:!1}),t=await e.text(),n=(new window.DOMParser).parseFromString(t,"text/html"),l=Array.from(n.querySelectorAll('link[rel="stylesheet"],script')).filter(e=>e.id&&!document.getElementById(e.id));for(const e of l)await I(e)}};function S(e){if(!e)return!1;const t=e.links["wp:plugin"]||e.links.self;return!(!t||!t.length)&&t[0].href}function L(e){return{type:"FETCH_DOWNLOADABLE_BLOCKS",filterValue:e}}function C(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}function*x(e){const{id:t,assets:n}=e;let l=!1;yield F(t);try{yield A(e.id,!0);const t=S(e);let c={};if(t?yield Object(b.apiFetch)({url:t,data:{status:"active"},method:"PUT"}):c=(yield Object(b.apiFetch)({path:"wp/v2/plugins",data:{slug:e.id,status:"active"},method:"POST"}))._links,yield P({...e,links:{...e.links,...c}}),yield function(e){return{type:"LOAD_ASSETS",assets:e}}(n),!(yield s.controls.select(i.store.name,"getBlockTypes")).some(t=>t.name===e.name))throw new Error(Object(h.__)("Error registering block. Try reloading the page."));yield s.controls.dispatch(v.store,"createInfoNotice",Object(h.sprintf)(// translators: %s is the block title.
2
+ Object(h.__)("Block %s installed and added."),e.title),{speak:!0,type:"snackbar"}),l=!0}catch(e){let n=e.message||Object(h.__)("An error occurred."),l=e instanceof Error;const c={folder_exists:Object(h.__)("This block is already installed. Try reloading the page."),unable_to_connect_to_filesystem:Object(h.__)("Error installing block. You can reload the page and try again.")};c[e.code]&&(l=!0,n=c[e.code]),yield M(t,n,l),yield s.controls.dispatch(v.store,"createErrorNotice",n,{speak:!0,isDismissible:!0})}return yield A(e.id,!1),l}function*D(e){try{yield Object(b.apiFetch)({url:S(e),data:{status:"inactive"},method:"PUT"}),yield Object(b.apiFetch)({url:S(e),method:"DELETE"}),yield R(e)}catch(e){yield s.controls.dispatch(v.store,"createErrorNotice",e.message||Object(h.__)("An error occurred."))}}function P(e){return{type:"ADD_INSTALLED_BLOCK_TYPE",item:e}}function R(e){return{type:"REMOVE_INSTALLED_BLOCK_TYPE",item:e}}function A(e,t){return{type:"SET_INSTALLING_BLOCK",blockId:e,isInstalling:t}}function M(e,t,n=!1){return{type:"SET_ERROR_NOTICE",blockId:e,message:t,isFatal:n}}function F(e){return{type:"CLEAR_ERROR_NOTICE",blockId:e}}var V={*getDownloadableBlocks(e){if(e)try{yield L(e);const t=(yield Object(b.apiFetch)({path:"wp/v2/block-directory/search?term="+e})).map(e=>Object(u.mapKeys)(e,(e,t)=>Object(u.camelCase)(t)));yield C(t,e)}catch(e){}}};const H={reducer:m,selectors:l,actions:c,controls:{...b.controls,...T},resolvers:V},K=Object(s.createReduxStore)("core/block-directory",H);function z(){const{uninstallBlockType:e}=Object(s.useDispatch)(K),t=Object(s.useSelect)(e=>{const{isAutosavingPost:t,isSavingPost:n}=e(d.store);return n()&&!t()},[]),n=Object(s.useSelect)(e=>e(K).getUnusedBlockTypes(),[]);return Object(o.useEffect)(()=>{t&&n.length&&n.forEach(t=>{e(t),Object(i.unregisterBlockType)(t.name)})},[t]),null}Object(s.register)(K);var q=n(3),Y=n(9),$=n(11),U=n(7),G=n(40),W=n(109),J=n(148),Q=n(6),X=Object(o.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(Q.Path,{d:"M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.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.39v7.143z"})),Z=n(149),ee=function({rating:e}){const t=.5*Math.round(e/.5),n=Math.floor(e),l=Math.ceil(e-n),c=5-(n+l);return Object(o.createElement)("span",{"aria-label":Object(h.sprintf)(
3
  /* translators: %s: number of stars. */
4
  Object(h.__)("%s out of 5 stars"),t)},Object(u.times)(n,e=>Object(o.createElement)(W.a,{key:"full_stars_"+e,className:"block-directory-block-ratings__star-full",icon:J.a,size:16})),Object(u.times)(l,e=>Object(o.createElement)(W.a,{key:"half_stars_"+e,className:"block-directory-block-ratings__star-half-full",icon:X,size:16})),Object(u.times)(c,e=>Object(o.createElement)(W.a,{key:"empty_stars_"+e,className:"block-directory-block-ratings__star-empty",icon:Z.a,size:16})))},te=({rating:e})=>Object(o.createElement)("span",{className:"block-directory-block-ratings"},Object(o.createElement)(ee,{rating:e})),ne=function({icon:e}){const t="block-directory-downloadable-block-icon";return null!==e.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/)?Object(o.createElement)("img",{className:t,src:e,alt:""}):Object(o.createElement)(p.BlockIcon,{className:t,icon:e,showColors:!0})},le=({block:e})=>{const t=Object(s.useSelect)(t=>t(K).getErrorNoticeForBlock(e.id),[e]);return t?Object(o.createElement)("div",{className:"block-directory-downloadable-block-notice"},Object(o.createElement)("div",{className:"block-directory-downloadable-block-notice__content"},t.message,t.isFatal?" "+Object(h.__)("Try reloading the page."):null)):null};function ce({title:e,rating:t,ratingCount:n},{hasNotice:l,isInstalled:c,isInstalling:o}){const r=.5*Math.round(t/.5);return!c&&l?Object(h.sprintf)("Retry installing %s.",Object(G.decodeEntities)(e)):c?Object(h.sprintf)("Add %s.",Object(G.decodeEntities)(e)):o?Object(h.sprintf)("Installing %s.",Object(G.decodeEntities)(e)):n<1?Object(h.sprintf)("Install %s.",Object(G.decodeEntities)(e)):Object(h.sprintf)(
5
  /* translators: %1$s: block title, %2$s: average rating, %3$s: total ratings count. */
7
  /* translators: %1$s: block title, %2$s: author name. */
8
  Object(h.__)("%1$s <span>by %2$s</span>"),Object(G.decodeEntities)(d),l),{span:Object(o.createElement)("span",{className:"block-directory-downloadable-block-list-item__author"})})),u?Object(o.createElement)(le,{block:t}):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("span",{className:"block-directory-downloadable-block-list-item__desc"},O||Object(G.decodeEntities)(c)),p&&!(b||m)&&Object(o.createElement)(q.VisuallyHidden,null,Object(h.__)("Install block")))))},re=function({items:e,onHover:t=u.noop,onSelect:n}){const l=Object(q.__unstableUseCompositeState)(),{installBlockType:c}=Object(s.useDispatch)(K);return e.length?Object(o.createElement)(q.__unstableComposite,Object(U.a)({},l,{role:"listbox",className:"block-directory-downloadable-blocks-list","aria-label":Object(h.__)("Blocks available for install")}),e.map(e=>Object(o.createElement)(oe,{key:e.id,composite:l,onClick:()=>{Object(i.getBlockType)(e.name)?n(e):c(e).then(t=>{t&&n(e)}),t(null)},onHover:t,item:e}))):null},ae=n(30),ie=function({children:e,downloadableItems:t,hasLocalBlocks:n}){const l=t.length;return Object(o.useEffect)(()=>{Object(ae.speak)(Object(h.sprintf)(
9
  /* translators: %d: number of available blocks. */
10
+ Object(h._n)("%d additional block is available to install.","%d additional blocks are available to install.",l),l))},[l]),Object(o.createElement)(o.Fragment,null,!n&&Object(o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},Object(h.__)("No results available from your installed blocks.")),Object(o.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),Object(o.createElement)("div",{className:"block-directory-downloadable-blocks-panel"},Object(o.createElement)("div",{className:"block-directory-downloadable-blocks-panel__header"},Object(o.createElement)("h2",{className:"block-directory-downloadable-blocks-panel__title"},Object(h.__)("Available to install")),Object(o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},Object(h.__)("Select a block to install and add it to your post."))),e))},se=n(150),de=function(){return Object(o.createElement)("div",{className:"block-editor-inserter__no-results"},Object(o.createElement)(W.a,{className:"block-editor-inserter__no-results-icon",icon:se.a}),Object(o.createElement)("p",null,Object(h.__)("No results found.")))},be=Object(Y.compose)([Object(s.withSelect)((e,{filterValue:t,rootClientId:n=null})=>{const{getDownloadableBlocks:l,isRequestingDownloadableBlocks:c}=e(K),{canInsertBlockType:o}=e(p.store),r=e($.store).canUser("read","block-directory/search");return{downloadableItems:r?l(t).filter(e=>o(e,n,!0)):[],hasPermission:r,isLoading:c(t)}})])((function({downloadableItems:e,onSelect:t,onHover:n,hasLocalBlocks:l,hasPermission:c,isLoading:r,isTyping:a}){return void 0===c||r||a?Object(o.createElement)(o.Fragment,null,c&&!l&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},Object(h.__)("No results available from your installed blocks.")),Object(o.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"})),Object(o.createElement)("div",{className:"block-directory-downloadable-blocks-panel has-blocks-loading"},Object(o.createElement)(q.Spinner,null))):!1===c?l?null:Object(o.createElement)(de,null):e.length?Object(o.createElement)(ie,{downloadableItems:e,hasLocalBlocks:l},Object(o.createElement)(re,{items:e,onSelect:t,onHover:n})):!l&&Object(o.createElement)(de,null)})),ue=function(){const[e,t]=Object(o.useState)(""),n=Object(u.debounce)(t,400);return Object(o.createElement)(p.__unstableInserterMenuExtension,null,({onSelect:t,onHover:l,filterValue:c,hasItems:r,rootClientId:a})=>(e!==c&&n(c),e?Object(o.createElement)(be,{onSelect:t,onHover:l,rootClientId:a,filterValue:e,hasLocalBlocks:r,isTyping:c!==e}):null))},me=n(258);function pe({items:e}){return e.length?Object(o.createElement)("ul",{className:"block-directory-compact-list"},e.map(({icon:e,id:t,title:n,author:l})=>Object(o.createElement)("li",{key:t,className:"block-directory-compact-list__item"},Object(o.createElement)(ne,{icon:e,title:n}),Object(o.createElement)("div",{className:"block-directory-compact-list__item-details"},Object(o.createElement)("div",{className:"block-directory-compact-list__item-title"},n),Object(o.createElement)("div",{className:"block-directory-compact-list__item-author"},Object(h.sprintf)(
11
  /* translators: %s: Name of the block author. */
12
  Object(h.__)("By %s"),l)))))):null}function Oe(){const e=Object(s.useSelect)(e=>e(K).getNewBlockTypes(),[]);return e.length?Object(o.createElement)(me.PluginPrePublishPanel,{icon:se.a,title:Object(h.sprintf)(// translators: %d: number of blocks (number).
13
  Object(h._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0},Object(o.createElement)("p",{className:"installed-blocks-pre-publish-panel__copy"},Object(h._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)),Object(o.createElement)(pe,{items:e})):null}function ke({attributes:e,block:t,clientId:n}){const l=Object(s.useSelect)(e=>e(K).isInstalling(t.id)),{installBlockType:c}=Object(s.useDispatch)(K),{replaceBlock:r}=Object(s.useDispatch)(p.store);return Object(o.createElement)(q.Button,{onClick:()=>c(t).then(l=>{if(l){const l=Object(i.getBlockType)(t.name),[c]=Object(i.parse)(e.originalContent);c&&r(n,Object(i.createBlock)(l.name,c.attributes,c.innerBlocks))}}),disabled:l,isBusy:l,variant:"primary"},Object(h.sprintf)(
build/block-directory/style-rtl.css CHANGED
@@ -1 +1 @@
1
- :root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-right:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{margin:0;list-style:none}.block-directory-compact-list__item{display:flex;flex-direction:row;align-items:center;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-right:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-icon{min-width:54px;width:54px;height:54px;vertical-align:middle;border:1px solid #ddd}.block-directory-downloadable-block-list-item{padding:12px;width:100%;height:auto;text-align:right;display:grid;grid-template-columns:auto 1fr}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-directory-downloadable-block-list-item.is-busy{background:transparent}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{position:relative;margin-left:16px;align-self:flex-start}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{position:absolute;top:0;left:0;bottom:0;right:0;background:hsla(0,0%,100%,.75);display:flex;align-items:center;justify-content:center}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;margin-top:4px;font-weight:400}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{margin:8px 0 0;color:#cc1818}.block-directory-downloadable-block-notice__content{padding-left:12px;margin-bottom:8px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{font-style:normal;padding:0;margin:112px 0;text-align:center;color:#757575}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{margin:48px 0;padding:0 64px;color:#757575;text-align:center}.block-directory-downloadable-blocks-panel__title{margin:0 0 4px;font-size:14px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0}
1
+ :root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-right:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{margin:0;list-style:none}.block-directory-compact-list__item{display:flex;flex-direction:row;align-items:center;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-right:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-icon{min-width:54px;width:54px;height:54px;vertical-align:middle;border:1px solid #ddd}.block-directory-downloadable-block-list-item{padding:12px;width:100%;height:auto;text-align:right;display:grid;grid-template-columns:auto 1fr}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-directory-downloadable-block-list-item.is-busy{background:transparent}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{position:relative;margin-left:16px;align-self:flex-start}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{position:absolute;top:0;left:0;bottom:0;right:0;background:hsla(0,0%,100%,.75);display:flex;align-items:center;justify-content:center}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;margin-top:4px;font-weight:400}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{margin:8px 0 0;color:#cc1818}.block-directory-downloadable-block-notice__content{padding-left:12px;margin-bottom:8px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{font-style:normal;padding:0;margin:112px 0;text-align:center;color:#757575}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{margin:48px 0;padding:0 64px;color:#757575;text-align:center}.block-directory-downloadable-blocks-panel__title{margin:0 0 4px;font-size:14px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0}
build/block-directory/style.css CHANGED
@@ -1 +1 @@
1
- :root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-left:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{margin:0;list-style:none}.block-directory-compact-list__item{display:flex;flex-direction:row;align-items:center;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-left:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-icon{min-width:54px;width:54px;height:54px;vertical-align:middle;border:1px solid #ddd}.block-directory-downloadable-block-list-item{padding:12px;width:100%;height:auto;text-align:left;display:grid;grid-template-columns:auto 1fr}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-directory-downloadable-block-list-item.is-busy{background:transparent}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{position:relative;margin-right:16px;align-self:flex-start}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{position:absolute;top:0;right:0;bottom:0;left:0;background:hsla(0,0%,100%,.75);display:flex;align-items:center;justify-content:center}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;margin-top:4px;font-weight:400}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{margin:8px 0 0;color:#cc1818}.block-directory-downloadable-block-notice__content{padding-right:12px;margin-bottom:8px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{font-style:normal;padding:0;margin:112px 0;text-align:center;color:#757575}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{margin:48px 0;padding:0 64px;color:#757575;text-align:center}.block-directory-downloadable-blocks-panel__title{margin:0 0 4px;font-size:14px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0}
1
+ :root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-directory-block-ratings>span{display:flex}.block-directory-block-ratings svg{fill:#1e1e1e;margin-left:-4px}.block-directory-block-ratings .block-directory-block-ratings__star-empty{fill:#ccc}.block-directory-compact-list{margin:0;list-style:none}.block-directory-compact-list__item{display:flex;flex-direction:row;align-items:center;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-left:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#757575;font-size:11px}.block-directory-downloadable-block-icon{min-width:54px;width:54px;height:54px;vertical-align:middle;border:1px solid #ddd}.block-directory-downloadable-block-list-item{padding:12px;width:100%;height:auto;text-align:left;display:grid;grid-template-columns:auto 1fr}.block-directory-downloadable-block-list-item:hover{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-directory-downloadable-block-list-item.is-busy{background:transparent}.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{opacity:1}.block-directory-downloadable-block-list-item__icon{position:relative;margin-right:16px;align-self:flex-start}.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{position:absolute;top:0;right:0;bottom:0;left:0;background:hsla(0,0%,100%,.75);display:flex;align-items:center;justify-content:center}.block-directory-block-ratings{display:block;margin-top:4px}.block-directory-downloadable-block-list-item__details{color:#1e1e1e}.block-directory-downloadable-block-list-item__title{display:block;font-weight:600}.block-directory-downloadable-block-list-item__author{display:block;margin-top:4px;font-weight:400}.block-directory-downloadable-block-list-item__desc{display:block;margin-top:8px}.block-directory-downloadable-block-notice{margin:8px 0 0;color:#cc1818}.block-directory-downloadable-block-notice__content{padding-right:12px;margin-bottom:8px}.block-directory-downloadable-blocks-panel{padding:16px}.block-directory-downloadable-blocks-panel.has-blocks-loading{font-style:normal;padding:0;margin:112px 0;text-align:center;color:#757575}.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{float:inherit}.block-directory-downloadable-blocks-panel__no-local{margin:48px 0;padding:0 64px;color:#757575;text-align:center}.block-directory-downloadable-blocks-panel__title{margin:0 0 4px;font-size:14px}.block-directory-downloadable-blocks-panel__description{margin-top:0}.block-directory-downloadable-blocks-panel button{margin-top:4px}.installed-blocks-pre-publish-panel__copy{margin-top:0}
build/block-editor/index.js CHANGED
@@ -82,7 +82,7 @@ window["wp"] = window["wp"] || {}; window["wp"]["blockEditor"] =
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 396);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
@@ -165,12 +165,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
165
 
166
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
167
 
168
- var _extends = _interopDefault(__webpack_require__(174));
169
- var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(175));
170
  var React = __webpack_require__(12);
171
  var React__default = _interopDefault(React);
172
- var _inheritsLoose = _interopDefault(__webpack_require__(147));
173
- var _assertThisInitialized = _interopDefault(__webpack_require__(177));
174
 
175
  var is = {
176
  arr: Array.isArray,
@@ -2542,7 +2542,7 @@ const close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElem
2542
  "use strict";
2543
 
2544
 
2545
- module.exports = __webpack_require__(178);
2546
 
2547
  /***/ }),
2548
 
@@ -2553,7 +2553,7 @@ module.exports = __webpack_require__(178);
2553
 
2554
  /***/ }),
2555
 
2556
- /***/ 117:
2557
  /***/ (function(module, exports) {
2558
 
2559
  (function() { module.exports = window["wp"]["shortcode"]; }());
@@ -2567,7 +2567,7 @@ module.exports = __webpack_require__(178);
2567
 
2568
  /***/ }),
2569
 
2570
- /***/ 124:
2571
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2572
 
2573
  "use strict";
@@ -2592,7 +2592,7 @@ const plus = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme
2592
 
2593
  /***/ }),
2594
 
2595
- /***/ 125:
2596
  /***/ (function(module, exports, __webpack_require__) {
2597
 
2598
  "use strict";
@@ -2605,7 +2605,7 @@ const plus = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme
2605
 
2606
 
2607
 
2608
- var ReactPropTypesSecret = __webpack_require__(126);
2609
 
2610
  function emptyFunction() {}
2611
  function emptyFunctionWithReset() {}
@@ -2664,7 +2664,7 @@ module.exports = function() {
2664
 
2665
  /***/ }),
2666
 
2667
- /***/ 126:
2668
  /***/ (function(module, exports, __webpack_require__) {
2669
 
2670
  "use strict";
@@ -2691,14 +2691,21 @@ module.exports = ReactPropTypesSecret;
2691
 
2692
  /***/ }),
2693
 
2694
- /***/ 141:
2695
  /***/ (function(module, exports) {
2696
 
2697
  (function() { module.exports = window["wp"]["tokenList"]; }());
2698
 
2699
  /***/ }),
2700
 
2701
- /***/ 146:
 
 
 
 
 
 
 
2702
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2703
 
2704
  "use strict";
@@ -2723,23 +2730,34 @@ const blockDefault = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cre
2723
 
2724
  /***/ }),
2725
 
2726
- /***/ 147:
2727
- /***/ (function(module, exports, __webpack_require__) {
2728
 
2729
- var setPrototypeOf = __webpack_require__(176);
 
 
 
2730
 
2731
- function _inheritsLoose(subClass, superClass) {
2732
- subClass.prototype = Object.create(superClass.prototype);
2733
- subClass.prototype.constructor = subClass;
2734
- setPrototypeOf(subClass, superClass);
 
 
 
 
 
 
 
 
2735
  }
2736
 
2737
- module.exports = _inheritsLoose;
2738
  module.exports["default"] = module.exports, module.exports.__esModule = true;
2739
 
2740
  /***/ }),
2741
 
2742
- /***/ 148:
2743
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2744
 
2745
  "use strict";
@@ -2764,7 +2782,7 @@ const chevronDown = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["crea
2764
 
2765
  /***/ }),
2766
 
2767
- /***/ 149:
2768
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2769
 
2770
  "use strict";
@@ -2789,14 +2807,7 @@ const moreVertical = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cre
2789
 
2790
  /***/ }),
2791
 
2792
- /***/ 16:
2793
- /***/ (function(module, exports) {
2794
-
2795
- (function() { module.exports = window["wp"]["richText"]; }());
2796
-
2797
- /***/ }),
2798
-
2799
- /***/ 163:
2800
  /***/ (function(module, exports) {
2801
 
2802
  if (typeof Object.create === 'function') {
@@ -2826,7 +2837,7 @@ if (typeof Object.create === 'function') {
2826
 
2827
  /***/ }),
2828
 
2829
- /***/ 173:
2830
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2831
 
2832
  "use strict";
@@ -2851,34 +2862,7 @@ const listView = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createE
2851
 
2852
  /***/ }),
2853
 
2854
- /***/ 174:
2855
- /***/ (function(module, exports) {
2856
-
2857
- function _extends() {
2858
- module.exports = _extends = Object.assign || function (target) {
2859
- for (var i = 1; i < arguments.length; i++) {
2860
- var source = arguments[i];
2861
-
2862
- for (var key in source) {
2863
- if (Object.prototype.hasOwnProperty.call(source, key)) {
2864
- target[key] = source[key];
2865
- }
2866
- }
2867
- }
2868
-
2869
- return target;
2870
- };
2871
-
2872
- module.exports["default"] = module.exports, module.exports.__esModule = true;
2873
- return _extends.apply(this, arguments);
2874
- }
2875
-
2876
- module.exports = _extends;
2877
- module.exports["default"] = module.exports, module.exports.__esModule = true;
2878
-
2879
- /***/ }),
2880
-
2881
- /***/ 175:
2882
  /***/ (function(module, exports) {
2883
 
2884
  function _objectWithoutPropertiesLoose(source, excluded) {
@@ -2901,7 +2885,23 @@ module.exports["default"] = module.exports, module.exports.__esModule = true;
2901
 
2902
  /***/ }),
2903
 
2904
- /***/ 176:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2905
  /***/ (function(module, exports) {
2906
 
2907
  function _setPrototypeOf(o, p) {
@@ -2919,7 +2919,7 @@ module.exports["default"] = module.exports, module.exports.__esModule = true;
2919
 
2920
  /***/ }),
2921
 
2922
- /***/ 177:
2923
  /***/ (function(module, exports) {
2924
 
2925
  function _assertThisInitialized(self) {
@@ -2935,13 +2935,13 @@ module.exports["default"] = module.exports, module.exports.__esModule = true;
2935
 
2936
  /***/ }),
2937
 
2938
- /***/ 178:
2939
  /***/ (function(module, exports, __webpack_require__) {
2940
 
2941
  "use strict";
2942
 
2943
 
2944
- var util = __webpack_require__(179);
2945
 
2946
  function scrollIntoView(elem, container, config) {
2947
  config = config || {};
@@ -3076,7 +3076,7 @@ module.exports = scrollIntoView;
3076
 
3077
  /***/ }),
3078
 
3079
- /***/ 179:
3080
  /***/ (function(module, exports, __webpack_require__) {
3081
 
3082
  "use strict";
@@ -3522,7 +3522,7 @@ module.exports = _extends({
3522
 
3523
  /***/ }),
3524
 
3525
- /***/ 180:
3526
  /***/ (function(module, exports, __webpack_require__) {
3527
 
3528
  "use strict";
@@ -3556,9 +3556,9 @@ var __rest = (this && this.__rest) || function (s, e) {
3556
  };
3557
  exports.__esModule = true;
3558
  var React = __webpack_require__(12);
3559
- var PropTypes = __webpack_require__(22);
3560
- var autosize = __webpack_require__(181);
3561
- var _getLineHeight = __webpack_require__(182);
3562
  var getLineHeight = _getLineHeight;
3563
  var RESIZED = "autosize:resized";
3564
  /**
@@ -3656,7 +3656,7 @@ exports.TextareaAutosize = React.forwardRef(function (props, ref) {
3656
 
3657
  /***/ }),
3658
 
3659
- /***/ 181:
3660
  /***/ (function(module, exports, __webpack_require__) {
3661
 
3662
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -3945,11 +3945,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
3945
 
3946
  /***/ }),
3947
 
3948
- /***/ 182:
3949
  /***/ (function(module, exports, __webpack_require__) {
3950
 
3951
  // Load in dependencies
3952
- var computedStyle = __webpack_require__(183);
3953
 
3954
  /**
3955
  * Calculate the `line-height` of a given node
@@ -4049,7 +4049,7 @@ module.exports = lineHeight;
4049
 
4050
  /***/ }),
4051
 
4052
- /***/ 183:
4053
  /***/ (function(module, exports) {
4054
 
4055
  // This code has been refactored for 140 bytes
@@ -4083,7 +4083,7 @@ module.exports = computedStyle;
4083
 
4084
  /***/ }),
4085
 
4086
- /***/ 184:
4087
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4088
 
4089
  "use strict";
@@ -4108,7 +4108,7 @@ const layout = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEle
4108
 
4109
  /***/ }),
4110
 
4111
- /***/ 185:
4112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4113
 
4114
  "use strict";
@@ -4140,7 +4140,7 @@ const link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme
4140
 
4141
  /***/ }),
4142
 
4143
- /***/ 197:
4144
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4145
 
4146
  "use strict";
@@ -4190,7 +4190,7 @@ const pencil = Object(external_wp_element_["createElement"])(external_wp_primiti
4190
 
4191
  /***/ }),
4192
 
4193
- /***/ 206:
4194
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4195
 
4196
  "use strict";
@@ -4215,7 +4215,7 @@ const search = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEle
4215
 
4216
  /***/ }),
4217
 
4218
- /***/ 207:
4219
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4220
 
4221
  "use strict";
@@ -4240,7 +4240,7 @@ const chevronRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cre
4240
 
4241
  /***/ }),
4242
 
4243
- /***/ 208:
4244
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4245
 
4246
  "use strict";
@@ -4265,7 +4265,7 @@ const chevronLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["crea
4265
 
4266
  /***/ }),
4267
 
4268
- /***/ 209:
4269
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4270
 
4271
  "use strict";
@@ -4290,14 +4290,7 @@ const keyboardReturn = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["c
4290
 
4291
  /***/ }),
4292
 
4293
- /***/ 21:
4294
- /***/ (function(module, exports) {
4295
-
4296
- (function() { module.exports = window["wp"]["dom"]; }());
4297
-
4298
- /***/ }),
4299
-
4300
- /***/ 210:
4301
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4302
 
4303
  "use strict";
@@ -4323,6 +4316,13 @@ const upload = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEle
4323
  /***/ }),
4324
 
4325
  /***/ 22:
 
 
 
 
 
 
 
4326
  /***/ (function(module, exports, __webpack_require__) {
4327
 
4328
  /**
@@ -4335,7 +4335,7 @@ const upload = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEle
4335
  if (false) { var throwOnDirectAccess, ReactIs; } else {
4336
  // By explicitly using `prop-types` you are opting into new production behavior.
4337
  // http://fb.me/prop-types-in-prod
4338
- module.exports = __webpack_require__(125)();
4339
  }
4340
 
4341
 
@@ -4344,18 +4344,18 @@ if (false) { var throwOnDirectAccess, ReactIs; } else {
4344
  /***/ 24:
4345
  /***/ (function(module, exports) {
4346
 
4347
- (function() { module.exports = window["wp"]["deprecated"]; }());
4348
 
4349
  /***/ }),
4350
 
4351
  /***/ 25:
4352
  /***/ (function(module, exports) {
4353
 
4354
- (function() { module.exports = window["wp"]["keyboardShortcuts"]; }());
4355
 
4356
  /***/ }),
4357
 
4358
- /***/ 255:
4359
  /***/ (function(module, exports, __webpack_require__) {
4360
 
4361
  "use strict";
@@ -4371,7 +4371,7 @@ exports.characterDiff = void 0;
4371
  /*istanbul ignore end*/
4372
  var
4373
  /*istanbul ignore start*/
4374
- _base = _interopRequireDefault(__webpack_require__(284))
4375
  /*istanbul ignore end*/
4376
  ;
4377
 
@@ -4400,7 +4400,7 @@ function diffChars(oldStr, newStr, options) {
4400
 
4401
  /***/ }),
4402
 
4403
- /***/ 256:
4404
  /***/ (function(module, exports, __webpack_require__) {
4405
 
4406
  "use strict";
@@ -4565,7 +4565,7 @@ function toPx(length) {
4565
 
4566
  /***/ }),
4567
 
4568
- /***/ 257:
4569
  /***/ (function(module, exports) {
4570
 
4571
  var traverse = module.exports = function (obj) {
@@ -4886,7 +4886,14 @@ var hasOwnProperty = Object.hasOwnProperty || function (obj, key) {
4886
 
4887
  /***/ }),
4888
 
4889
- /***/ 279:
 
 
 
 
 
 
 
4890
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4891
 
4892
  "use strict";
@@ -4911,14 +4918,7 @@ const formatStrikethrough = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0
4911
 
4912
  /***/ }),
4913
 
4914
- /***/ 28:
4915
- /***/ (function(module, exports) {
4916
-
4917
- (function() { module.exports = window["wp"]["notices"]; }());
4918
-
4919
- /***/ }),
4920
-
4921
- /***/ 280:
4922
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4923
 
4924
  "use strict";
@@ -4943,7 +4943,7 @@ const alignLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create
4943
 
4944
  /***/ }),
4945
 
4946
- /***/ 281:
4947
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4948
 
4949
  "use strict";
@@ -4968,7 +4968,7 @@ const alignCenter = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["crea
4968
 
4969
  /***/ }),
4970
 
4971
- /***/ 282:
4972
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4973
 
4974
  "use strict";
@@ -4993,7 +4993,289 @@ const alignRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["creat
4993
 
4994
  /***/ }),
4995
 
4996
- /***/ 283:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4997
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4998
 
4999
  "use strict";
@@ -5018,7 +5300,7 @@ const chevronUp = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create
5018
 
5019
  /***/ }),
5020
 
5021
- /***/ 284:
5022
  /***/ (function(module, exports, __webpack_require__) {
5023
 
5024
  "use strict";
@@ -5330,7 +5612,7 @@ function clonePath(path) {
5330
 
5331
  /***/ }),
5332
 
5333
- /***/ 285:
5334
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5335
 
5336
  "use strict";
@@ -5357,7 +5639,7 @@ const grid = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme
5357
 
5358
  /***/ }),
5359
 
5360
- /***/ 286:
5361
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5362
 
5363
  "use strict";
@@ -5382,7 +5664,7 @@ const media = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElem
5382
 
5383
  /***/ }),
5384
 
5385
- /***/ 287:
5386
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5387
 
5388
  "use strict";
@@ -5405,288 +5687,6 @@ const arrowLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create
5405
  /* harmony default export */ __webpack_exports__["a"] = (arrowLeft);
5406
  //# sourceMappingURL=arrow-left.js.map
5407
 
5408
- /***/ }),
5409
-
5410
- /***/ 29:
5411
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5412
-
5413
- "use strict";
5414
-
5415
-
5416
- var LEAF_KEY, hasWeakMap;
5417
-
5418
- /**
5419
- * Arbitrary value used as key for referencing cache object in WeakMap tree.
5420
- *
5421
- * @type {Object}
5422
- */
5423
- LEAF_KEY = {};
5424
-
5425
- /**
5426
- * Whether environment supports WeakMap.
5427
- *
5428
- * @type {boolean}
5429
- */
5430
- hasWeakMap = typeof WeakMap !== 'undefined';
5431
-
5432
- /**
5433
- * Returns the first argument as the sole entry in an array.
5434
- *
5435
- * @param {*} value Value to return.
5436
- *
5437
- * @return {Array} Value returned as entry in array.
5438
- */
5439
- function arrayOf( value ) {
5440
- return [ value ];
5441
- }
5442
-
5443
- /**
5444
- * Returns true if the value passed is object-like, or false otherwise. A value
5445
- * is object-like if it can support property assignment, e.g. object or array.
5446
- *
5447
- * @param {*} value Value to test.
5448
- *
5449
- * @return {boolean} Whether value is object-like.
5450
- */
5451
- function isObjectLike( value ) {
5452
- return !! value && 'object' === typeof value;
5453
- }
5454
-
5455
- /**
5456
- * Creates and returns a new cache object.
5457
- *
5458
- * @return {Object} Cache object.
5459
- */
5460
- function createCache() {
5461
- var cache = {
5462
- clear: function() {
5463
- cache.head = null;
5464
- },
5465
- };
5466
-
5467
- return cache;
5468
- }
5469
-
5470
- /**
5471
- * Returns true if entries within the two arrays are strictly equal by
5472
- * reference from a starting index.
5473
- *
5474
- * @param {Array} a First array.
5475
- * @param {Array} b Second array.
5476
- * @param {number} fromIndex Index from which to start comparison.
5477
- *
5478
- * @return {boolean} Whether arrays are shallowly equal.
5479
- */
5480
- function isShallowEqual( a, b, fromIndex ) {
5481
- var i;
5482
-
5483
- if ( a.length !== b.length ) {
5484
- return false;
5485
- }
5486
-
5487
- for ( i = fromIndex; i < a.length; i++ ) {
5488
- if ( a[ i ] !== b[ i ] ) {
5489
- return false;
5490
- }
5491
- }
5492
-
5493
- return true;
5494
- }
5495
-
5496
- /**
5497
- * Returns a memoized selector function. The getDependants function argument is
5498
- * called before the memoized selector and is expected to return an immutable
5499
- * reference or array of references on which the selector depends for computing
5500
- * its own return value. The memoize cache is preserved only as long as those
5501
- * dependant references remain the same. If getDependants returns a different
5502
- * reference(s), the cache is cleared and the selector value regenerated.
5503
- *
5504
- * @param {Function} selector Selector function.
5505
- * @param {Function} getDependants Dependant getter returning an immutable
5506
- * reference or array of reference used in
5507
- * cache bust consideration.
5508
- *
5509
- * @return {Function} Memoized selector.
5510
- */
5511
- /* harmony default export */ __webpack_exports__["a"] = (function( selector, getDependants ) {
5512
- var rootCache, getCache;
5513
-
5514
- // Use object source as dependant if getter not provided
5515
- if ( ! getDependants ) {
5516
- getDependants = arrayOf;
5517
- }
5518
-
5519
- /**
5520
- * Returns the root cache. If WeakMap is supported, this is assigned to the
5521
- * root WeakMap cache set, otherwise it is a shared instance of the default
5522
- * cache object.
5523
- *
5524
- * @return {(WeakMap|Object)} Root cache object.
5525
- */
5526
- function getRootCache() {
5527
- return rootCache;
5528
- }
5529
-
5530
- /**
5531
- * Returns the cache for a given dependants array. When possible, a WeakMap
5532
- * will be used to create a unique cache for each set of dependants. This
5533
- * is feasible due to the nature of WeakMap in allowing garbage collection
5534
- * to occur on entries where the key object is no longer referenced. Since
5535
- * WeakMap requires the key to be an object, this is only possible when the
5536
- * dependant is object-like. The root cache is created as a hierarchy where
5537
- * each top-level key is the first entry in a dependants set, the value a
5538
- * WeakMap where each key is the next dependant, and so on. This continues
5539
- * so long as the dependants are object-like. If no dependants are object-
5540
- * like, then the cache is shared across all invocations.
5541
- *
5542
- * @see isObjectLike
5543
- *
5544
- * @param {Array} dependants Selector dependants.
5545
- *
5546
- * @return {Object} Cache object.
5547
- */
5548
- function getWeakMapCache( dependants ) {
5549
- var caches = rootCache,
5550
- isUniqueByDependants = true,
5551
- i, dependant, map, cache;
5552
-
5553
- for ( i = 0; i < dependants.length; i++ ) {
5554
- dependant = dependants[ i ];
5555
-
5556
- // Can only compose WeakMap from object-like key.
5557
- if ( ! isObjectLike( dependant ) ) {
5558
- isUniqueByDependants = false;
5559
- break;
5560
- }
5561
-
5562
- // Does current segment of cache already have a WeakMap?
5563
- if ( caches.has( dependant ) ) {
5564
- // Traverse into nested WeakMap.
5565
- caches = caches.get( dependant );
5566
- } else {
5567
- // Create, set, and traverse into a new one.
5568
- map = new WeakMap();
5569
- caches.set( dependant, map );
5570
- caches = map;
5571
- }
5572
- }
5573
-
5574
- // We use an arbitrary (but consistent) object as key for the last item
5575
- // in the WeakMap to serve as our running cache.
5576
- if ( ! caches.has( LEAF_KEY ) ) {
5577
- cache = createCache();
5578
- cache.isUniqueByDependants = isUniqueByDependants;
5579
- caches.set( LEAF_KEY, cache );
5580
- }
5581
-
5582
- return caches.get( LEAF_KEY );
5583
- }
5584
-
5585
- // Assign cache handler by availability of WeakMap
5586
- getCache = hasWeakMap ? getWeakMapCache : getRootCache;
5587
-
5588
- /**
5589
- * Resets root memoization cache.
5590
- */
5591
- function clear() {
5592
- rootCache = hasWeakMap ? new WeakMap() : createCache();
5593
- }
5594
-
5595
- // eslint-disable-next-line jsdoc/check-param-names
5596
- /**
5597
- * The augmented selector call, considering first whether dependants have
5598
- * changed before passing it to underlying memoize function.
5599
- *
5600
- * @param {Object} source Source object for derivation.
5601
- * @param {...*} extraArgs Additional arguments to pass to selector.
5602
- *
5603
- * @return {*} Selector result.
5604
- */
5605
- function callSelector( /* source, ...extraArgs */ ) {
5606
- var len = arguments.length,
5607
- cache, node, i, args, dependants;
5608
-
5609
- // Create copy of arguments (avoid leaking deoptimization).
5610
- args = new Array( len );
5611
- for ( i = 0; i < len; i++ ) {
5612
- args[ i ] = arguments[ i ];
5613
- }
5614
-
5615
- dependants = getDependants.apply( null, args );
5616
- cache = getCache( dependants );
5617
-
5618
- // If not guaranteed uniqueness by dependants (primitive type or lack
5619
- // of WeakMap support), shallow compare against last dependants and, if
5620
- // references have changed, destroy cache to recalculate result.
5621
- if ( ! cache.isUniqueByDependants ) {
5622
- if ( cache.lastDependants && ! isShallowEqual( dependants, cache.lastDependants, 0 ) ) {
5623
- cache.clear();
5624
- }
5625
-
5626
- cache.lastDependants = dependants;
5627
- }
5628
-
5629
- node = cache.head;
5630
- while ( node ) {
5631
- // Check whether node arguments match arguments
5632
- if ( ! isShallowEqual( node.args, args, 1 ) ) {
5633
- node = node.next;
5634
- continue;
5635
- }
5636
-
5637
- // At this point we can assume we've found a match
5638
-
5639
- // Surface matched node to head if not already
5640
- if ( node !== cache.head ) {
5641
- // Adjust siblings to point to each other.
5642
- node.prev.next = node.next;
5643
- if ( node.next ) {
5644
- node.next.prev = node.prev;
5645
- }
5646
-
5647
- node.next = cache.head;
5648
- node.prev = null;
5649
- cache.head.prev = node;
5650
- cache.head = node;
5651
- }
5652
-
5653
- // Return immediately
5654
- return node.val;
5655
- }
5656
-
5657
- // No cached value found. Continue to insertion phase:
5658
-
5659
- node = {
5660
- // Generate the result from original function
5661
- val: selector.apply( null, args ),
5662
- };
5663
-
5664
- // Avoid including the source object in the cache.
5665
- args[ 0 ] = null;
5666
- node.args = args;
5667
-
5668
- // Don't need to check whether node is already head, since it would
5669
- // have been returned above already if it was
5670
-
5671
- // Shift existing head down list
5672
- if ( cache.head ) {
5673
- cache.head.prev = node;
5674
- node.next = cache.head;
5675
- }
5676
-
5677
- cache.head = node;
5678
-
5679
- return node.val;
5680
- }
5681
-
5682
- callSelector.getDependants = getDependants;
5683
- callSelector.clear = clear;
5684
- clear();
5685
-
5686
- return callSelector;
5687
- });
5688
-
5689
-
5690
  /***/ }),
5691
 
5692
  /***/ 3:
@@ -6911,14 +6911,21 @@ else {}
6911
 
6912
  /***/ }),
6913
 
6914
- /***/ 39:
 
 
 
 
 
 
 
6915
  /***/ (function(module, exports) {
6916
 
6917
  (function() { module.exports = window["wp"]["htmlEntities"]; }());
6918
 
6919
  /***/ }),
6920
 
6921
- /***/ 396:
6922
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6923
 
6924
  "use strict";
@@ -6954,6 +6961,7 @@ __webpack_require__.d(__webpack_exports__, "BlockAlignmentToolbar", function() {
6954
  __webpack_require__.d(__webpack_exports__, "__experimentalBlockFullHeightAligmentControl", function() { return /* reexport */ block_full_height_alignment_control; });
6955
  __webpack_require__.d(__webpack_exports__, "__experimentalBlockAlignmentMatrixControl", function() { return /* reexport */ block_alignment_matrix_control; });
6956
  __webpack_require__.d(__webpack_exports__, "BlockBreadcrumb", function() { return /* reexport */ block_breadcrumb; });
 
6957
  __webpack_require__.d(__webpack_exports__, "BlockContextProvider", function() { return /* reexport */ BlockContextProvider; });
6958
  __webpack_require__.d(__webpack_exports__, "BlockControls", function() { return /* reexport */ block_controls; });
6959
  __webpack_require__.d(__webpack_exports__, "BlockFormatControls", function() { return /* reexport */ BlockFormatControls; });
@@ -7121,7 +7129,7 @@ __webpack_require__.d(selectors_namespaceObject, "isMultiSelecting", function()
7121
  __webpack_require__.d(selectors_namespaceObject, "isSelectionEnabled", function() { return selectors_isSelectionEnabled; });
7122
  __webpack_require__.d(selectors_namespaceObject, "getBlockMode", function() { return selectors_getBlockMode; });
7123
  __webpack_require__.d(selectors_namespaceObject, "isTyping", function() { return selectors_isTyping; });
7124
- __webpack_require__.d(selectors_namespaceObject, "isDraggingBlocks", function() { return isDraggingBlocks; });
7125
  __webpack_require__.d(selectors_namespaceObject, "getDraggedBlockClientIds", function() { return selectors_getDraggedBlockClientIds; });
7126
  __webpack_require__.d(selectors_namespaceObject, "isBlockBeingDragged", function() { return selectors_isBlockBeingDragged; });
7127
  __webpack_require__.d(selectors_namespaceObject, "isAncestorBeingDragged", function() { return selectors_isAncestorBeingDragged; });
@@ -7215,9 +7223,6 @@ __webpack_require__.d(actions_namespaceObject, "toggleBlockHighlight", function(
7215
  __webpack_require__.d(actions_namespaceObject, "flashBlock", function() { return actions_flashBlock; });
7216
  __webpack_require__.d(actions_namespaceObject, "setHasControlledInnerBlocks", function() { return actions_setHasControlledInnerBlocks; });
7217
 
7218
- // EXTERNAL MODULE: external ["wp","richText"]
7219
- var external_wp_richText_ = __webpack_require__(16);
7220
-
7221
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
7222
  var esm_extends = __webpack_require__(7);
7223
 
@@ -10118,7 +10123,7 @@ function selectors_isTyping(state) {
10118
  * @return {boolean} Whether user is dragging blocks.
10119
  */
10120
 
10121
- function isDraggingBlocks(state) {
10122
  return !!state.draggedBlocks.length;
10123
  }
10124
  /**
@@ -10162,7 +10167,7 @@ function selectors_isBlockBeingDragged(state, clientId) {
10162
  function selectors_isAncestorBeingDragged(state, clientId) {
10163
  // Return early if no blocks are being dragged rather than
10164
  // the more expensive check for parents.
10165
- if (!isDraggingBlocks(state)) {
10166
  return false;
10167
  }
10168
 
@@ -10227,17 +10232,7 @@ function selectors_getBlockInsertionPoint(state) {
10227
  */
10228
 
10229
  function selectors_isBlockInsertionPointVisible(state) {
10230
- const insertionPoint = state.insertionPoint;
10231
-
10232
- if (!state.insertionPoint) {
10233
- return false;
10234
- }
10235
-
10236
- if (selectors_getTemplateLock(state, insertionPoint.rootClientId)) {
10237
- return false;
10238
- }
10239
-
10240
- return true;
10241
  }
10242
  /**
10243
  * Returns whether the blocks matches the template or not.
@@ -11135,8 +11130,11 @@ function wasBlockJustInserted(state, clientId, source) {
11135
  // EXTERNAL MODULE: external ["wp","a11y"]
11136
  var external_wp_a11y_ = __webpack_require__(30);
11137
 
 
 
 
11138
  // EXTERNAL MODULE: external ["wp","deprecated"]
11139
- var external_wp_deprecated_ = __webpack_require__(24);
11140
  var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_);
11141
 
11142
  // CONCATENATED MODULE: ./packages/block-editor/build-module/store/controls.js
@@ -11208,6 +11206,16 @@ function* ensureDefaultBlock() {
11208
  // always a default block if the last of the blocks have been removed.
11209
 
11210
  if (count === 0) {
 
 
 
 
 
 
 
 
 
 
11211
  return yield actions_insertDefaultBlock();
11212
  }
11213
  }
@@ -15024,7 +15032,7 @@ function ColorEdit(props) {
15024
  localAttributes.current = attributes;
15025
  }, [attributes]);
15026
 
15027
- if (!hasColorSupport(blockName) || external_wp_element_["Platform"].OS !== 'web') {
15028
  return null;
15029
  }
15030
 
@@ -15195,7 +15203,7 @@ const formatUnderline = Object(external_wp_element_["createElement"])(external_w
15195
  /* harmony default export */ var format_underline = (formatUnderline);
15196
  //# sourceMappingURL=format-underline.js.map
15197
  // EXTERNAL MODULE: ./packages/icons/build-module/library/format-strikethrough.js
15198
- var format_strikethrough = __webpack_require__(279);
15199
 
15200
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/text-decoration-control/index.js
15201
 
@@ -16142,7 +16150,7 @@ function useIsFontFamilyDisabled({
16142
  }
16143
  //# sourceMappingURL=font-family.js.map
16144
  // EXTERNAL MODULE: external ["wp","tokenList"]
16145
- var external_wp_tokenList_ = __webpack_require__(141);
16146
  var external_wp_tokenList_default = /*#__PURE__*/__webpack_require__.n(external_wp_tokenList_);
16147
 
16148
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/font-sizes/utils.js
@@ -16966,9 +16974,18 @@ function getInlineStyles(styles = {}) {
16966
  const subPaths = external_wp_blocks_["__EXPERIMENTAL_STYLE_PROPERTY"][propKey].properties; // Ignore styles on elements because they are handled on the server.
16967
 
16968
  if (Object(external_lodash_["has"])(styles, path) && 'elements' !== Object(external_lodash_["first"])(path)) {
16969
- if (!!subPaths) {
16970
- subPaths.forEach(suffix => {
16971
- output[propKey + Object(external_lodash_["capitalize"])(suffix)] = compileStyleValue(Object(external_lodash_["get"])(styles, [...path, suffix]));
 
 
 
 
 
 
 
 
 
16972
  });
16973
  } else {
16974
  output[propKey] = compileStyleValue(Object(external_lodash_["get"])(styles, path));
@@ -18164,13 +18181,13 @@ const DEFAULT_FONT_SIZES = [];
18164
 
18165
  //# sourceMappingURL=index.js.map
18166
  // EXTERNAL MODULE: ./packages/icons/build-module/library/align-left.js
18167
- var align_left = __webpack_require__(280);
18168
 
18169
  // EXTERNAL MODULE: ./packages/icons/build-module/library/align-center.js
18170
- var align_center = __webpack_require__(281);
18171
 
18172
  // EXTERNAL MODULE: ./packages/icons/build-module/library/align-right.js
18173
- var align_right = __webpack_require__(282);
18174
 
18175
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/alignment-control/ui.js
18176
 
@@ -18481,7 +18498,7 @@ const useBlockTypesState = (rootClientId, onInsert) => {
18481
  /* harmony default export */ var use_block_types_state = (useBlockTypesState);
18482
  //# sourceMappingURL=use-block-types-state.js.map
18483
  // EXTERNAL MODULE: ./packages/icons/build-module/library/block-default.js
18484
- var block_default = __webpack_require__(146);
18485
 
18486
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-icon/index.js
18487
 
@@ -19056,6 +19073,94 @@ function BlockBreadcrumb({
19056
 
19057
  /* harmony default export */ var block_breadcrumb = (BlockBreadcrumb);
19058
  //# sourceMappingURL=index.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19059
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-context/index.js
19060
 
19061
 
@@ -19287,16 +19392,16 @@ function block_edit_BlockEdit(props) {
19287
  }
19288
  //# sourceMappingURL=index.js.map
19289
  // EXTERNAL MODULE: ./packages/icons/build-module/library/list-view.js
19290
- var list_view = __webpack_require__(173);
19291
 
19292
  // EXTERNAL MODULE: ./packages/icons/build-module/library/more-vertical.js
19293
- var more_vertical = __webpack_require__(149);
19294
 
19295
  // EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js
19296
  var web_cjs = __webpack_require__(103);
19297
 
19298
  // EXTERNAL MODULE: external ["wp","dom"]
19299
- var external_wp_dom_ = __webpack_require__(21);
19300
 
19301
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-moving-animation/index.js
19302
  /**
@@ -19512,16 +19617,16 @@ function BlockNavigationLeaf({
19512
  }
19513
  //# sourceMappingURL=leaf.js.map
19514
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-right.js
19515
- var chevron_right = __webpack_require__(207);
19516
 
19517
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-left.js
19518
- var chevron_left = __webpack_require__(208);
19519
 
19520
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-up.js
19521
- var chevron_up = __webpack_require__(283);
19522
 
19523
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-down.js
19524
- var chevron_down = __webpack_require__(148);
19525
 
19526
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-mover/mover-description.js
19527
  /**
@@ -19922,7 +20027,7 @@ function Warning({
19922
  /* harmony default export */ var warning = (Warning);
19923
  //# sourceMappingURL=index.js.map
19924
  // EXTERNAL MODULE: ./node_modules/diff/lib/diff/character.js
19925
- var diff_character = __webpack_require__(255);
19926
 
19927
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-compare/block-view.js
19928
 
@@ -21120,10 +21225,10 @@ function useMultiSelection(clientId) {
21120
  }
21121
  //# sourceMappingURL=use-multi-selection.js.map
21122
  // EXTERNAL MODULE: external ["wp","htmlEntities"]
21123
- var external_wp_htmlEntities_ = __webpack_require__(39);
21124
 
21125
  // EXTERNAL MODULE: ./packages/icons/build-module/library/plus.js
21126
- var plus = __webpack_require__(124);
21127
 
21128
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/tips.js
21129
 
@@ -21155,7 +21260,7 @@ function Tips() {
21155
  var close_small = __webpack_require__(91);
21156
 
21157
  // EXTERNAL MODULE: ./packages/icons/build-module/library/search.js
21158
- var search = __webpack_require__(206);
21159
 
21160
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/search-form.js
21161
 
@@ -22814,7 +22919,7 @@ function useInsertionPoint({
22814
 
22815
  let _destinationIndex;
22816
 
22817
- if (insertionIndex) {
22818
  // Insert into a specific index.
22819
  _destinationIndex = insertionIndex;
22820
  } else if (clientId) {
@@ -23870,7 +23975,7 @@ function BlockListAppender({
23870
  // clicked.
23871
  ,
23872
  onFocus: stopPropagation,
23873
- className: classnames_default()('block-list-appender', 'wp-block', className)
23874
  }, appender);
23875
  }
23876
 
@@ -24169,6 +24274,7 @@ function getDistanceToNearestEdge(point, rect, allowedEdges = ['top', 'bottom',
24169
 
24170
 
24171
 
 
24172
  /**
24173
  * Internal dependencies
24174
  */
@@ -24197,21 +24303,19 @@ function getDistanceToNearestEdge(point, rect, allowedEdges = ['top', 'bottom',
24197
 
24198
  function getNearestBlockIndex(elements, position, orientation) {
24199
  const allowedEdges = orientation === 'horizontal' ? ['left', 'right'] : ['top', 'bottom'];
 
24200
  let candidateIndex;
24201
  let candidateDistance;
24202
  elements.forEach((element, index) => {
24203
- // Ensure the element is a block. It should have the `wp-block` class.
24204
- if (!element.classList.contains('wp-block')) {
24205
- return;
24206
- }
24207
-
24208
  const rect = element.getBoundingClientRect();
24209
  const [distance, edge] = getDistanceToNearestEdge(position, rect, allowedEdges);
24210
 
24211
  if (candidateDistance === undefined || distance < candidateDistance) {
24212
  // If the user is dropping to the trailing edge of the block
24213
  // add 1 to the index to represent dragging after.
24214
- const isTrailingEdge = edge === 'bottom' || edge === 'right';
 
 
24215
  const offset = isTrailingEdge ? 1 : 0; // Update the currently known best candidate.
24216
 
24217
  candidateDistance = distance;
@@ -24256,7 +24360,8 @@ function useBlockDropZone({
24256
  const throttled = Object(external_wp_compose_["useThrottle"])(Object(external_wp_element_["useCallback"])((event, currentTarget) => {
24257
  var _getBlockListSettings;
24258
 
24259
- const blockElements = Array.from(currentTarget.children);
 
24260
  const targetIndex = getNearestBlockIndex(blockElements, {
24261
  x: event.clientX,
24262
  y: event.clientY
@@ -24407,53 +24512,57 @@ function InsertionPointPopover({
24407
  const previousElement = useBlockElement(previousClientId);
24408
  const nextElement = useBlockElement(nextClientId);
24409
  const style = Object(external_wp_element_["useMemo"])(() => {
24410
- if (!previousElement) {
24411
  return {};
24412
  }
24413
 
24414
- const previousRect = previousElement.getBoundingClientRect();
24415
  const nextRect = nextElement ? nextElement.getBoundingClientRect() : null;
24416
 
24417
  if (orientation === 'vertical') {
24418
  return {
24419
- width: previousElement.offsetWidth,
24420
- height: nextRect ? nextRect.top - previousRect.bottom : 0
24421
  };
24422
  }
24423
 
24424
  let width = 0;
24425
 
24426
- if (nextElement) {
24427
  width = Object(external_wp_i18n_["isRTL"])() ? previousRect.left - nextRect.right : nextRect.left - previousRect.right;
24428
  }
24429
 
24430
  return {
24431
  width,
24432
- height: previousElement.offsetHeight
24433
  };
24434
  }, [previousElement, nextElement]);
24435
  const getAnchorRect = Object(external_wp_element_["useCallback"])(() => {
 
 
 
 
24436
  const {
24437
  ownerDocument
24438
- } = previousElement;
24439
- const previousRect = previousElement.getBoundingClientRect();
24440
  const nextRect = nextElement ? nextElement.getBoundingClientRect() : null;
24441
 
24442
  if (orientation === 'vertical') {
24443
  if (Object(external_wp_i18n_["isRTL"])()) {
24444
  return {
24445
- top: previousRect.bottom,
24446
- left: previousRect.right,
24447
- right: previousRect.left,
24448
  bottom: nextRect ? nextRect.top : previousRect.bottom,
24449
  ownerDocument
24450
  };
24451
  }
24452
 
24453
  return {
24454
- top: previousRect.bottom,
24455
- left: previousRect.left,
24456
- right: previousRect.right,
24457
  bottom: nextRect ? nextRect.top : previousRect.bottom,
24458
  ownerDocument
24459
  };
@@ -24461,28 +24570,23 @@ function InsertionPointPopover({
24461
 
24462
  if (Object(external_wp_i18n_["isRTL"])()) {
24463
  return {
24464
- top: previousRect.top,
24465
- left: nextRect ? nextRect.right : previousRect.left,
24466
- right: previousRect.left,
24467
- bottom: previousRect.bottom,
24468
  ownerDocument
24469
  };
24470
  }
24471
 
24472
  return {
24473
- top: previousRect.top,
24474
- left: previousRect.right,
24475
  right: nextRect ? nextRect.left : previousRect.right,
24476
- bottom: previousRect.bottom,
24477
  ownerDocument
24478
  };
24479
  }, [previousElement, nextElement]);
24480
  const popoverScrollRef = usePopoverScroll(__unstableContentRef);
24481
-
24482
- if (!previousElement) {
24483
- return null;
24484
- }
24485
-
24486
  const className = classnames_default()('block-editor-block-list__insertion-point', 'is-' + orientation);
24487
 
24488
  function onClick(event) {
@@ -24497,12 +24601,11 @@ function InsertionPointPopover({
24497
  if (event.target !== ref.current) {
24498
  openRef.current = true;
24499
  }
24500
- } // Only show the inserter when there's a `nextElement` (a block after the
24501
- // insertion point). At the end of the block list the trailing appender
24502
- // should serve the purpose of inserting blocks.
24503
 
24504
 
24505
- const showInsertionPointInserter = nextElement && isInserterShown;
24506
  /* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
24507
  // While ideally it would be enough to capture the
24508
  // bubbling focus event from the Inserter, due to the
@@ -24587,7 +24690,8 @@ function useInBetweenInserter() {
24587
  getBlockIndex,
24588
  isBlockInsertionPointVisible,
24589
  isMultiSelecting,
24590
- getSelectedBlockClientIds
 
24591
  } = Object(external_wp_data_["useSelect"])(store);
24592
  const {
24593
  showInsertionPoint,
@@ -24622,6 +24726,11 @@ function useInBetweenInserter() {
24622
  if (!event.target.classList.contains('is-root-container')) {
24623
  const blockElement = !!event.target.getAttribute('data-block') ? event.target : event.target.closest('[data-block]');
24624
  rootClientId = blockElement.getAttribute('data-block');
 
 
 
 
 
24625
  }
24626
 
24627
  const orientation = ((_getBlockListSettings = getBlockListSettings(rootClientId)) === null || _getBlockListSettings === void 0 ? void 0 : _getBlockListSettings.orientation) || 'vertical';
@@ -24751,7 +24860,7 @@ function usePreParsePatterns() {
24751
  }
24752
  //# sourceMappingURL=pre-parse-patterns.js.map
24753
  // EXTERNAL MODULE: external ["wp","keyboardShortcuts"]
24754
- var external_wp_keyboardShortcuts_ = __webpack_require__(25);
24755
 
24756
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-draggable/use-scroll-when-dragging.js
24757
  /**
@@ -30091,7 +30200,7 @@ function filePasteHandler(files) {
30091
  }
30092
  //# sourceMappingURL=file-paste-handler.js.map
30093
  // EXTERNAL MODULE: external ["wp","shortcode"]
30094
- var external_wp_shortcode_ = __webpack_require__(117);
30095
 
30096
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/utils.js
30097
  /**
@@ -30100,7 +30209,7 @@ var external_wp_shortcode_ = __webpack_require__(117);
30100
 
30101
 
30102
  function addActiveFormats(value, activeFormats) {
30103
- if (activeFormats.length) {
30104
  let index = value.formats.length;
30105
 
30106
  while (index--) {
@@ -31242,7 +31351,7 @@ function BlockNavigationEditor({
31242
  }
31243
  //# sourceMappingURL=editor.js.map
31244
  // EXTERNAL MODULE: ./packages/icons/build-module/library/layout.js
31245
- var library_layout = __webpack_require__(184);
31246
 
31247
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-variation-picker/index.js
31248
 
@@ -31302,7 +31411,7 @@ function BlockVariationPicker({
31302
  /* harmony default export */ var block_variation_picker = (BlockVariationPicker);
31303
  //# sourceMappingURL=index.js.map
31304
  // EXTERNAL MODULE: ./packages/icons/build-module/library/grid.js
31305
- var grid = __webpack_require__(285);
31306
 
31307
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/constants.js
31308
  const VIEWMODES = {
@@ -32001,6 +32110,58 @@ function GradientPanel(props) {
32001
  }, Object(external_wp_element_["createElement"])(GradientPickerControl, props));
32002
  }
32003
  //# sourceMappingURL=panel.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32004
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-size-control/index.js
32005
 
32006
 
@@ -32014,6 +32175,11 @@ function GradientPanel(props) {
32014
 
32015
 
32016
 
 
 
 
 
 
32017
  const IMAGE_SIZE_PRESETS = [25, 50, 75, 100];
32018
  function ImageSizeControl({
32019
  imageWidth,
@@ -32026,17 +32192,12 @@ function ImageSizeControl({
32026
  onChange,
32027
  onChangeImage = external_lodash_["noop"]
32028
  }) {
32029
- var _ref, _ref2;
32030
-
32031
- function updateDimensions(nextWidth, nextHeight) {
32032
- return () => {
32033
- onChange({
32034
- width: nextWidth,
32035
- height: nextHeight
32036
- });
32037
- };
32038
- }
32039
-
32040
  return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, !Object(external_lodash_["isEmpty"])(imageSizeOptions) && Object(external_wp_element_["createElement"])(external_wp_components_["SelectControl"], {
32041
  label: Object(external_wp_i18n_["__"])('Image size'),
32042
  value: slug,
@@ -32052,20 +32213,16 @@ function ImageSizeControl({
32052
  type: "number",
32053
  className: "block-editor-image-size-control__width",
32054
  label: Object(external_wp_i18n_["__"])('Width'),
32055
- value: (_ref = width !== null && width !== void 0 ? width : imageWidth) !== null && _ref !== void 0 ? _ref : '',
32056
  min: 1,
32057
- onChange: value => onChange({
32058
- width: parseInt(value, 10)
32059
- })
32060
  }), Object(external_wp_element_["createElement"])(external_wp_components_["TextControl"], {
32061
  type: "number",
32062
  className: "block-editor-image-size-control__height",
32063
  label: Object(external_wp_i18n_["__"])('Height'),
32064
- value: (_ref2 = height !== null && height !== void 0 ? height : imageHeight) !== null && _ref2 !== void 0 ? _ref2 : '',
32065
  min: 1,
32066
- onChange: value => onChange({
32067
- height: parseInt(value, 10)
32068
- })
32069
  })), Object(external_wp_element_["createElement"])("div", {
32070
  className: "block-editor-image-size-control__row"
32071
  }, Object(external_wp_element_["createElement"])(external_wp_components_["ButtonGroup"], {
@@ -32073,17 +32230,17 @@ function ImageSizeControl({
32073
  }, IMAGE_SIZE_PRESETS.map(scale => {
32074
  const scaledWidth = Math.round(imageWidth * (scale / 100));
32075
  const scaledHeight = Math.round(imageHeight * (scale / 100));
32076
- const isCurrent = width === scaledWidth && height === scaledHeight;
32077
  return Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
32078
  key: scale,
32079
  isSmall: true,
32080
  variant: isCurrent ? 'primary' : undefined,
32081
  isPressed: isCurrent,
32082
- onClick: updateDimensions(scaledWidth, scaledHeight)
32083
  }, scale, "%");
32084
  })), Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
32085
  isSmall: true,
32086
- onClick: updateDimensions()
32087
  }, Object(external_wp_i18n_["__"])('Reset')))));
32088
  }
32089
  //# sourceMappingURL=index.js.map
@@ -32175,7 +32332,7 @@ const default_block_appender_DefaultBlockAppender = ({
32175
  })])(default_block_appender_DefaultBlockAppender));
32176
  //# sourceMappingURL=default-block-appender.js.map
32177
  // EXTERNAL MODULE: external ["wp","isShallowEqual"]
32178
- var external_wp_isShallowEqual_ = __webpack_require__(45);
32179
  var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_);
32180
 
32181
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/use-nested-settings-update.js
@@ -32672,7 +32829,7 @@ function JustifyToolbar(props) {
32672
  }
32673
  //# sourceMappingURL=index.js.map
32674
  // EXTERNAL MODULE: ./packages/icons/build-module/library/keyboard-return.js
32675
- var keyboard_return = __webpack_require__(209);
32676
 
32677
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/settings-drawer.js
32678
 
@@ -33599,8 +33756,12 @@ function useSearchHandler(suggestionsQuery, allowDirectEntry, withCreateSuggesti
33599
 
33600
 
33601
 
 
 
 
 
 
33602
 
33603
- const noopSearchHandler = Promise.resolve([]);
33604
  const LinkControlSearchInput = Object(external_wp_element_["forwardRef"])(({
33605
  value,
33606
  children,
@@ -34079,6 +34240,7 @@ function LinkControl({
34079
  value,
34080
  settings,
34081
  onChange = external_lodash_["noop"],
 
34082
  noDirectEntry = false,
34083
  showSuggestions = true,
34084
  showInitialSuggestions,
@@ -34201,21 +34363,28 @@ function LinkControl({
34201
  value: value,
34202
  onEditClick: () => setIsEditingLink(true),
34203
  hasRichPreviews: hasRichPreviews
34204
- }), Object(external_wp_element_["createElement"])(settings_drawer, {
 
 
34205
  value: value,
34206
  settings: settings,
34207
  onChange: onChange
34208
- }));
 
 
 
 
 
34209
  }
34210
 
34211
  LinkControl.ViewerFill = ViewerFill;
34212
  /* harmony default export */ var link_control = (LinkControl);
34213
  //# sourceMappingURL=index.js.map
34214
  // EXTERNAL MODULE: ./packages/icons/build-module/library/media.js
34215
- var library_media = __webpack_require__(286);
34216
 
34217
  // EXTERNAL MODULE: ./packages/icons/build-module/library/upload.js
34218
- var upload = __webpack_require__(210);
34219
 
34220
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-upload/index.js
34221
  /**
@@ -34461,7 +34630,7 @@ const MediaReplaceFlow = ({
34461
  }), Object(external_wp_components_["withFilters"])('editor.MediaReplaceFlow')])(MediaReplaceFlow));
34462
  //# sourceMappingURL=index.js.map
34463
  // EXTERNAL MODULE: ./packages/icons/build-module/library/edit.js + 1 modules
34464
- var library_edit = __webpack_require__(197);
34465
 
34466
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-popover/link-viewer-url.js
34467
 
@@ -35407,10 +35576,10 @@ function UnitControl({
35407
  }
35408
  //# sourceMappingURL=index.js.map
35409
  // EXTERNAL MODULE: ./packages/icons/build-module/library/link.js
35410
- var library_link = __webpack_require__(185);
35411
 
35412
  // EXTERNAL MODULE: ./packages/icons/build-module/library/arrow-left.js
35413
- var arrow_left = __webpack_require__(287);
35414
 
35415
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-input/button.js
35416
 
@@ -35829,7 +35998,7 @@ function PreviewOptions({
35829
  }
35830
  //# sourceMappingURL=index.js.map
35831
  // EXTERNAL MODULE: ./node_modules/css-mediaquery/index.js
35832
- var css_mediaquery = __webpack_require__(256);
35833
 
35834
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-simulated-media-query/index.js
35835
  /**
@@ -36373,7 +36542,7 @@ function BlockTools({
36373
  }
36374
  //# sourceMappingURL=index.js.map
36375
  // EXTERNAL MODULE: ./node_modules/traverse/index.js
36376
- var traverse = __webpack_require__(257);
36377
  var traverse_default = /*#__PURE__*/__webpack_require__.n(traverse);
36378
 
36379
  // CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/ast/parse.js
@@ -37071,7 +37240,7 @@ function addParent(obj, parent) {
37071
  /* eslint-enable @wordpress/no-unused-vars-before-return */
37072
  //# sourceMappingURL=parse.js.map
37073
  // EXTERNAL MODULE: ./node_modules/inherits/inherits_browser.js
37074
- var inherits_browser = __webpack_require__(163);
37075
  var inherits_browser_default = /*#__PURE__*/__webpack_require__.n(inherits_browser);
37076
 
37077
  // CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/ast/stringify/compiler.js
@@ -37805,7 +37974,21 @@ function useDarkThemeBodyClassName(styles) {
37805
  body
37806
  } = ownerDocument;
37807
  const canvas = ownerDocument.querySelector(EDITOR_STYLES_SELECTOR);
37808
- const backgroundColor = defaultView.getComputedStyle(canvas, null).getPropertyValue('background-color'); // If background is transparent, it should be treated as light color.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37809
 
37810
  if (tinycolor_default()(backgroundColor).getLuminance() > 0.5 || tinycolor_default()(backgroundColor).getAlpha() === 0) {
37811
  body.classList.remove('is-dark-theme');
@@ -38748,14 +38931,6 @@ function use_multi_selection_useMultiSelection() {
38748
  */
38749
 
38750
 
38751
- /**
38752
- * Useful for positioning an element within the viewport so focussing the
38753
- * element does not scroll the page.
38754
- */
38755
-
38756
- const PREVENT_SCROLL_ON_FOCUS = {
38757
- position: 'fixed'
38758
- };
38759
 
38760
  function isFormElement(element) {
38761
  const {
@@ -38803,14 +38978,12 @@ function useTabNav() {
38803
  const before = Object(external_wp_element_["createElement"])("div", {
38804
  ref: focusCaptureBeforeRef,
38805
  tabIndex: focusCaptureTabIndex,
38806
- onFocus: onFocusCapture,
38807
- style: PREVENT_SCROLL_ON_FOCUS
38808
  });
38809
  const after = Object(external_wp_element_["createElement"])("div", {
38810
  ref: focusCaptureAfterRef,
38811
  tabIndex: focusCaptureTabIndex,
38812
- onFocus: onFocusCapture,
38813
- style: PREVENT_SCROLL_ON_FOCUS
38814
  });
38815
  const ref = Object(external_wp_compose_["useRefEffect"])(node => {
38816
  function onKeyDown(event) {
@@ -38850,17 +39023,59 @@ function useTabNav() {
38850
  // doesn't refocus this block and so it allows default behaviour
38851
  // (moving focus to the next tabbable element).
38852
 
38853
- noCapture.current = true;
38854
- next.current.focus();
 
 
 
 
 
38855
  }
38856
 
38857
  function onFocusOut(event) {
38858
  lastFocus.current = event.target;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38859
  }
38860
 
 
38861
  node.addEventListener('keydown', onKeyDown);
38862
  node.addEventListener('focusout', onFocusOut);
38863
  return () => {
 
38864
  node.removeEventListener('keydown', onKeyDown);
38865
  node.removeEventListener('focusout', onFocusOut);
38866
  };
@@ -39486,6 +39701,7 @@ function Iframe({
39486
  head,
39487
  ...props
39488
  }, ref) {
 
39489
  const [iframeDocument, setIframeDocument] = Object(external_wp_element_["useState"])();
39490
  const styles = useParsedAssets(window.__editorAssets.styles);
39491
  const scripts = useParsedAssets(window.__editorAssets.scripts);
@@ -39521,7 +39737,11 @@ function Iframe({
39521
  setIframeDocument(contentDocument);
39522
  clearerRef(documentElement);
39523
  clearerRef(body);
39524
- scripts.reduce((promise, script) => promise.then(() => loadScript(contentDocument, script)), Promise.resolve());
 
 
 
 
39525
  return true;
39526
  }
39527
 
@@ -39675,6 +39895,7 @@ function useNoRecursiveRenders(uniqueId, blockName = '') {
39675
 
39676
 
39677
 
 
39678
 
39679
 
39680
 
@@ -39803,10 +40024,6 @@ function validateThemeGradients(gradients) {
39803
 
39804
  //# sourceMappingURL=index.js.map
39805
  // CONCATENATED MODULE: ./packages/block-editor/build-module/index.js
39806
- /**
39807
- * WordPress dependencies
39808
- */
39809
-
39810
  /**
39811
  * Internal dependencies
39812
  */
@@ -39816,19 +40033,11 @@ function validateThemeGradients(gradients) {
39816
 
39817
 
39818
 
39819
-
39820
  //# sourceMappingURL=index.js.map
39821
 
39822
  /***/ }),
39823
 
39824
- /***/ 4:
39825
- /***/ (function(module, exports) {
39826
-
39827
- (function() { module.exports = window["wp"]["data"]; }());
39828
-
39829
- /***/ }),
39830
-
39831
- /***/ 45:
39832
  /***/ (function(module, exports) {
39833
 
39834
  (function() { module.exports = window["wp"]["isShallowEqual"]; }());
@@ -39880,7 +40089,7 @@ function _extends() {
39880
  "use strict";
39881
 
39882
  exports.__esModule = true;
39883
- var TextareaAutosize_1 = __webpack_require__(180);
39884
  exports["default"] = TextareaAutosize_1.TextareaAutosize;
39885
 
39886
 
82
  /******/
83
  /******/
84
  /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 402);
86
  /******/ })
87
  /************************************************************************/
88
  /******/ ({
165
 
166
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
167
 
168
+ var _extends = _interopDefault(__webpack_require__(151));
169
+ var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(176));
170
  var React = __webpack_require__(12);
171
  var React__default = _interopDefault(React);
172
+ var _inheritsLoose = _interopDefault(__webpack_require__(177));
173
+ var _assertThisInitialized = _interopDefault(__webpack_require__(179));
174
 
175
  var is = {
176
  arr: Array.isArray,
2542
  "use strict";
2543
 
2544
 
2545
+ module.exports = __webpack_require__(180);
2546
 
2547
  /***/ }),
2548
 
2553
 
2554
  /***/ }),
2555
 
2556
+ /***/ 116:
2557
  /***/ (function(module, exports) {
2558
 
2559
  (function() { module.exports = window["wp"]["shortcode"]; }());
2567
 
2568
  /***/ }),
2569
 
2570
+ /***/ 127:
2571
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2572
 
2573
  "use strict";
2592
 
2593
  /***/ }),
2594
 
2595
+ /***/ 128:
2596
  /***/ (function(module, exports, __webpack_require__) {
2597
 
2598
  "use strict";
2605
 
2606
 
2607
 
2608
+ var ReactPropTypesSecret = __webpack_require__(129);
2609
 
2610
  function emptyFunction() {}
2611
  function emptyFunctionWithReset() {}
2664
 
2665
  /***/ }),
2666
 
2667
+ /***/ 129:
2668
  /***/ (function(module, exports, __webpack_require__) {
2669
 
2670
  "use strict";
2691
 
2692
  /***/ }),
2693
 
2694
+ /***/ 145:
2695
  /***/ (function(module, exports) {
2696
 
2697
  (function() { module.exports = window["wp"]["tokenList"]; }());
2698
 
2699
  /***/ }),
2700
 
2701
+ /***/ 15:
2702
+ /***/ (function(module, exports) {
2703
+
2704
+ (function() { module.exports = window["wp"]["richText"]; }());
2705
+
2706
+ /***/ }),
2707
+
2708
+ /***/ 150:
2709
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2710
 
2711
  "use strict";
2730
 
2731
  /***/ }),
2732
 
2733
+ /***/ 151:
2734
+ /***/ (function(module, exports) {
2735
 
2736
+ function _extends() {
2737
+ module.exports = _extends = Object.assign || function (target) {
2738
+ for (var i = 1; i < arguments.length; i++) {
2739
+ var source = arguments[i];
2740
 
2741
+ for (var key in source) {
2742
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
2743
+ target[key] = source[key];
2744
+ }
2745
+ }
2746
+ }
2747
+
2748
+ return target;
2749
+ };
2750
+
2751
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
2752
+ return _extends.apply(this, arguments);
2753
  }
2754
 
2755
+ module.exports = _extends;
2756
  module.exports["default"] = module.exports, module.exports.__esModule = true;
2757
 
2758
  /***/ }),
2759
 
2760
+ /***/ 152:
2761
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2762
 
2763
  "use strict";
2782
 
2783
  /***/ }),
2784
 
2785
+ /***/ 153:
2786
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2787
 
2788
  "use strict";
2807
 
2808
  /***/ }),
2809
 
2810
+ /***/ 166:
 
 
 
 
 
 
 
2811
  /***/ (function(module, exports) {
2812
 
2813
  if (typeof Object.create === 'function') {
2837
 
2838
  /***/ }),
2839
 
2840
+ /***/ 175:
2841
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2842
 
2843
  "use strict";
2862
 
2863
  /***/ }),
2864
 
2865
+ /***/ 176:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2866
  /***/ (function(module, exports) {
2867
 
2868
  function _objectWithoutPropertiesLoose(source, excluded) {
2885
 
2886
  /***/ }),
2887
 
2888
+ /***/ 177:
2889
+ /***/ (function(module, exports, __webpack_require__) {
2890
+
2891
+ var setPrototypeOf = __webpack_require__(178);
2892
+
2893
+ function _inheritsLoose(subClass, superClass) {
2894
+ subClass.prototype = Object.create(superClass.prototype);
2895
+ subClass.prototype.constructor = subClass;
2896
+ setPrototypeOf(subClass, superClass);
2897
+ }
2898
+
2899
+ module.exports = _inheritsLoose;
2900
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
2901
+
2902
+ /***/ }),
2903
+
2904
+ /***/ 178:
2905
  /***/ (function(module, exports) {
2906
 
2907
  function _setPrototypeOf(o, p) {
2919
 
2920
  /***/ }),
2921
 
2922
+ /***/ 179:
2923
  /***/ (function(module, exports) {
2924
 
2925
  function _assertThisInitialized(self) {
2935
 
2936
  /***/ }),
2937
 
2938
+ /***/ 180:
2939
  /***/ (function(module, exports, __webpack_require__) {
2940
 
2941
  "use strict";
2942
 
2943
 
2944
+ var util = __webpack_require__(181);
2945
 
2946
  function scrollIntoView(elem, container, config) {
2947
  config = config || {};
3076
 
3077
  /***/ }),
3078
 
3079
+ /***/ 181:
3080
  /***/ (function(module, exports, __webpack_require__) {
3081
 
3082
  "use strict";
3522
 
3523
  /***/ }),
3524
 
3525
+ /***/ 182:
3526
  /***/ (function(module, exports, __webpack_require__) {
3527
 
3528
  "use strict";
3556
  };
3557
  exports.__esModule = true;
3558
  var React = __webpack_require__(12);
3559
+ var PropTypes = __webpack_require__(23);
3560
+ var autosize = __webpack_require__(183);
3561
+ var _getLineHeight = __webpack_require__(184);
3562
  var getLineHeight = _getLineHeight;
3563
  var RESIZED = "autosize:resized";
3564
  /**
3656
 
3657
  /***/ }),
3658
 
3659
+ /***/ 183:
3660
  /***/ (function(module, exports, __webpack_require__) {
3661
 
3662
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
3945
 
3946
  /***/ }),
3947
 
3948
+ /***/ 184:
3949
  /***/ (function(module, exports, __webpack_require__) {
3950
 
3951
  // Load in dependencies
3952
+ var computedStyle = __webpack_require__(185);
3953
 
3954
  /**
3955
  * Calculate the `line-height` of a given node
4049
 
4050
  /***/ }),
4051
 
4052
+ /***/ 185:
4053
  /***/ (function(module, exports) {
4054
 
4055
  // This code has been refactored for 140 bytes
4083
 
4084
  /***/ }),
4085
 
4086
+ /***/ 186:
4087
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4088
 
4089
  "use strict";
4108
 
4109
  /***/ }),
4110
 
4111
+ /***/ 187:
4112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4113
 
4114
  "use strict";
4140
 
4141
  /***/ }),
4142
 
4143
+ /***/ 199:
4144
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4145
 
4146
  "use strict";
4190
 
4191
  /***/ }),
4192
 
4193
+ /***/ 209:
4194
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4195
 
4196
  "use strict";
4215
 
4216
  /***/ }),
4217
 
4218
+ /***/ 210:
4219
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4220
 
4221
  "use strict";
4240
 
4241
  /***/ }),
4242
 
4243
+ /***/ 211:
4244
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4245
 
4246
  "use strict";
4265
 
4266
  /***/ }),
4267
 
4268
+ /***/ 212:
4269
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4270
 
4271
  "use strict";
4290
 
4291
  /***/ }),
4292
 
4293
+ /***/ 213:
 
 
 
 
 
 
 
4294
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4295
 
4296
  "use strict";
4316
  /***/ }),
4317
 
4318
  /***/ 22:
4319
+ /***/ (function(module, exports) {
4320
+
4321
+ (function() { module.exports = window["wp"]["dom"]; }());
4322
+
4323
+ /***/ }),
4324
+
4325
+ /***/ 23:
4326
  /***/ (function(module, exports, __webpack_require__) {
4327
 
4328
  /**
4335
  if (false) { var throwOnDirectAccess, ReactIs; } else {
4336
  // By explicitly using `prop-types` you are opting into new production behavior.
4337
  // http://fb.me/prop-types-in-prod
4338
+ module.exports = __webpack_require__(128)();
4339
  }
4340
 
4341
 
4344
  /***/ 24:
4345
  /***/ (function(module, exports) {
4346
 
4347
+ (function() { module.exports = window["wp"]["keyboardShortcuts"]; }());
4348
 
4349
  /***/ }),
4350
 
4351
  /***/ 25:
4352
  /***/ (function(module, exports) {
4353
 
4354
+ (function() { module.exports = window["wp"]["deprecated"]; }());
4355
 
4356
  /***/ }),
4357
 
4358
+ /***/ 259:
4359
  /***/ (function(module, exports, __webpack_require__) {
4360
 
4361
  "use strict";
4371
  /*istanbul ignore end*/
4372
  var
4373
  /*istanbul ignore start*/
4374
+ _base = _interopRequireDefault(__webpack_require__(291))
4375
  /*istanbul ignore end*/
4376
  ;
4377
 
4400
 
4401
  /***/ }),
4402
 
4403
+ /***/ 260:
4404
  /***/ (function(module, exports, __webpack_require__) {
4405
 
4406
  "use strict";
4565
 
4566
  /***/ }),
4567
 
4568
+ /***/ 261:
4569
  /***/ (function(module, exports) {
4570
 
4571
  var traverse = module.exports = function (obj) {
4886
 
4887
  /***/ }),
4888
 
4889
+ /***/ 28:
4890
+ /***/ (function(module, exports) {
4891
+
4892
+ (function() { module.exports = window["wp"]["notices"]; }());
4893
+
4894
+ /***/ }),
4895
+
4896
+ /***/ 286:
4897
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4898
 
4899
  "use strict";
4918
 
4919
  /***/ }),
4920
 
4921
+ /***/ 287:
 
 
 
 
 
 
 
4922
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4923
 
4924
  "use strict";
4943
 
4944
  /***/ }),
4945
 
4946
+ /***/ 288:
4947
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4948
 
4949
  "use strict";
4968
 
4969
  /***/ }),
4970
 
4971
+ /***/ 289:
4972
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4973
 
4974
  "use strict";
4993
 
4994
  /***/ }),
4995
 
4996
+ /***/ 29:
4997
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4998
+
4999
+ "use strict";
5000
+
5001
+
5002
+ var LEAF_KEY, hasWeakMap;
5003
+
5004
+ /**
5005
+ * Arbitrary value used as key for referencing cache object in WeakMap tree.
5006
+ *
5007
+ * @type {Object}
5008
+ */
5009
+ LEAF_KEY = {};
5010
+
5011
+ /**
5012
+ * Whether environment supports WeakMap.
5013
+ *
5014
+ * @type {boolean}
5015
+ */
5016
+ hasWeakMap = typeof WeakMap !== 'undefined';
5017
+
5018
+ /**
5019
+ * Returns the first argument as the sole entry in an array.
5020
+ *
5021
+ * @param {*} value Value to return.
5022
+ *
5023
+ * @return {Array} Value returned as entry in array.
5024
+ */
5025
+ function arrayOf( value ) {
5026
+ return [ value ];
5027
+ }
5028
+
5029
+ /**
5030
+ * Returns true if the value passed is object-like, or false otherwise. A value
5031
+ * is object-like if it can support property assignment, e.g. object or array.
5032
+ *
5033
+ * @param {*} value Value to test.
5034
+ *
5035
+ * @return {boolean} Whether value is object-like.
5036
+ */
5037
+ function isObjectLike( value ) {
5038
+ return !! value && 'object' === typeof value;
5039
+ }
5040
+
5041
+ /**
5042
+ * Creates and returns a new cache object.
5043
+ *
5044
+ * @return {Object} Cache object.
5045
+ */
5046
+ function createCache() {
5047
+ var cache = {
5048
+ clear: function() {
5049
+ cache.head = null;
5050
+ },
5051
+ };
5052
+
5053
+ return cache;
5054
+ }
5055
+
5056
+ /**
5057
+ * Returns true if entries within the two arrays are strictly equal by
5058
+ * reference from a starting index.
5059
+ *
5060
+ * @param {Array} a First array.
5061
+ * @param {Array} b Second array.
5062
+ * @param {number} fromIndex Index from which to start comparison.
5063
+ *
5064
+ * @return {boolean} Whether arrays are shallowly equal.
5065
+ */
5066
+ function isShallowEqual( a, b, fromIndex ) {
5067
+ var i;
5068
+
5069
+ if ( a.length !== b.length ) {
5070
+ return false;
5071
+ }
5072
+
5073
+ for ( i = fromIndex; i < a.length; i++ ) {
5074
+ if ( a[ i ] !== b[ i ] ) {
5075
+ return false;
5076
+ }
5077
+ }
5078
+
5079
+ return true;
5080
+ }
5081
+
5082
+ /**
5083
+ * Returns a memoized selector function. The getDependants function argument is
5084
+ * called before the memoized selector and is expected to return an immutable
5085
+ * reference or array of references on which the selector depends for computing
5086
+ * its own return value. The memoize cache is preserved only as long as those
5087
+ * dependant references remain the same. If getDependants returns a different
5088
+ * reference(s), the cache is cleared and the selector value regenerated.
5089
+ *
5090
+ * @param {Function} selector Selector function.
5091
+ * @param {Function} getDependants Dependant getter returning an immutable
5092
+ * reference or array of reference used in
5093
+ * cache bust consideration.
5094
+ *
5095
+ * @return {Function} Memoized selector.
5096
+ */
5097
+ /* harmony default export */ __webpack_exports__["a"] = (function( selector, getDependants ) {
5098
+ var rootCache, getCache;
5099
+
5100
+ // Use object source as dependant if getter not provided
5101
+ if ( ! getDependants ) {
5102
+ getDependants = arrayOf;
5103
+ }
5104
+
5105
+ /**
5106
+ * Returns the root cache. If WeakMap is supported, this is assigned to the
5107
+ * root WeakMap cache set, otherwise it is a shared instance of the default
5108
+ * cache object.
5109
+ *
5110
+ * @return {(WeakMap|Object)} Root cache object.
5111
+ */
5112
+ function getRootCache() {
5113
+ return rootCache;
5114
+ }
5115
+
5116
+ /**
5117
+ * Returns the cache for a given dependants array. When possible, a WeakMap
5118
+ * will be used to create a unique cache for each set of dependants. This
5119
+ * is feasible due to the nature of WeakMap in allowing garbage collection
5120
+ * to occur on entries where the key object is no longer referenced. Since
5121
+ * WeakMap requires the key to be an object, this is only possible when the
5122
+ * dependant is object-like. The root cache is created as a hierarchy where
5123
+ * each top-level key is the first entry in a dependants set, the value a
5124
+ * WeakMap where each key is the next dependant, and so on. This continues
5125
+ * so long as the dependants are object-like. If no dependants are object-
5126
+ * like, then the cache is shared across all invocations.
5127
+ *
5128
+ * @see isObjectLike
5129
+ *
5130
+ * @param {Array} dependants Selector dependants.
5131
+ *
5132
+ * @return {Object} Cache object.
5133
+ */
5134
+ function getWeakMapCache( dependants ) {
5135
+ var caches = rootCache,
5136
+ isUniqueByDependants = true,
5137
+ i, dependant, map, cache;
5138
+
5139
+ for ( i = 0; i < dependants.length; i++ ) {
5140
+ dependant = dependants[ i ];
5141
+
5142
+ // Can only compose WeakMap from object-like key.
5143
+ if ( ! isObjectLike( dependant ) ) {
5144
+ isUniqueByDependants = false;
5145
+ break;
5146
+ }
5147
+
5148
+ // Does current segment of cache already have a WeakMap?
5149
+ if ( caches.has( dependant ) ) {
5150
+ // Traverse into nested WeakMap.
5151
+ caches = caches.get( dependant );
5152
+ } else {
5153
+ // Create, set, and traverse into a new one.
5154
+ map = new WeakMap();
5155
+ caches.set( dependant, map );
5156
+ caches = map;
5157
+ }
5158
+ }
5159
+
5160
+ // We use an arbitrary (but consistent) object as key for the last item
5161
+ // in the WeakMap to serve as our running cache.
5162
+ if ( ! caches.has( LEAF_KEY ) ) {
5163
+ cache = createCache();
5164
+ cache.isUniqueByDependants = isUniqueByDependants;
5165
+ caches.set( LEAF_KEY, cache );
5166
+ }
5167
+
5168
+ return caches.get( LEAF_KEY );
5169
+ }
5170
+
5171
+ // Assign cache handler by availability of WeakMap
5172
+ getCache = hasWeakMap ? getWeakMapCache : getRootCache;
5173
+
5174
+ /**
5175
+ * Resets root memoization cache.
5176
+ */
5177
+ function clear() {
5178
+ rootCache = hasWeakMap ? new WeakMap() : createCache();
5179
+ }
5180
+
5181
+ // eslint-disable-next-line jsdoc/check-param-names
5182
+ /**
5183
+ * The augmented selector call, considering first whether dependants have
5184
+ * changed before passing it to underlying memoize function.
5185
+ *
5186
+ * @param {Object} source Source object for derivation.
5187
+ * @param {...*} extraArgs Additional arguments to pass to selector.
5188
+ *
5189
+ * @return {*} Selector result.
5190
+ */
5191
+ function callSelector( /* source, ...extraArgs */ ) {
5192
+ var len = arguments.length,
5193
+ cache, node, i, args, dependants;
5194
+
5195
+ // Create copy of arguments (avoid leaking deoptimization).
5196
+ args = new Array( len );
5197
+ for ( i = 0; i < len; i++ ) {
5198
+ args[ i ] = arguments[ i ];
5199
+ }
5200
+
5201
+ dependants = getDependants.apply( null, args );
5202
+ cache = getCache( dependants );
5203
+
5204
+ // If not guaranteed uniqueness by dependants (primitive type or lack
5205
+ // of WeakMap support), shallow compare against last dependants and, if
5206
+ // references have changed, destroy cache to recalculate result.
5207
+ if ( ! cache.isUniqueByDependants ) {
5208
+ if ( cache.lastDependants && ! isShallowEqual( dependants, cache.lastDependants, 0 ) ) {
5209
+ cache.clear();
5210
+ }
5211
+
5212
+ cache.lastDependants = dependants;
5213
+ }
5214
+
5215
+ node = cache.head;
5216
+ while ( node ) {
5217
+ // Check whether node arguments match arguments
5218
+ if ( ! isShallowEqual( node.args, args, 1 ) ) {
5219
+ node = node.next;
5220
+ continue;
5221
+ }
5222
+
5223
+ // At this point we can assume we've found a match
5224
+
5225
+ // Surface matched node to head if not already
5226
+ if ( node !== cache.head ) {
5227
+ // Adjust siblings to point to each other.
5228
+ node.prev.next = node.next;
5229
+ if ( node.next ) {
5230
+ node.next.prev = node.prev;
5231
+ }
5232
+
5233
+ node.next = cache.head;
5234
+ node.prev = null;
5235
+ cache.head.prev = node;
5236
+ cache.head = node;
5237
+ }
5238
+
5239
+ // Return immediately
5240
+ return node.val;
5241
+ }
5242
+
5243
+ // No cached value found. Continue to insertion phase:
5244
+
5245
+ node = {
5246
+ // Generate the result from original function
5247
+ val: selector.apply( null, args ),
5248
+ };
5249
+
5250
+ // Avoid including the source object in the cache.
5251
+ args[ 0 ] = null;
5252
+ node.args = args;
5253
+
5254
+ // Don't need to check whether node is already head, since it would
5255
+ // have been returned above already if it was
5256
+
5257
+ // Shift existing head down list
5258
+ if ( cache.head ) {
5259
+ cache.head.prev = node;
5260
+ node.next = cache.head;
5261
+ }
5262
+
5263
+ cache.head = node;
5264
+
5265
+ return node.val;
5266
+ }
5267
+
5268
+ callSelector.getDependants = getDependants;
5269
+ callSelector.clear = clear;
5270
+ clear();
5271
+
5272
+ return callSelector;
5273
+ });
5274
+
5275
+
5276
+ /***/ }),
5277
+
5278
+ /***/ 290:
5279
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5280
 
5281
  "use strict";
5300
 
5301
  /***/ }),
5302
 
5303
+ /***/ 291:
5304
  /***/ (function(module, exports, __webpack_require__) {
5305
 
5306
  "use strict";
5612
 
5613
  /***/ }),
5614
 
5615
+ /***/ 292:
5616
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5617
 
5618
  "use strict";
5639
 
5640
  /***/ }),
5641
 
5642
+ /***/ 293:
5643
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5644
 
5645
  "use strict";
5664
 
5665
  /***/ }),
5666
 
5667
+ /***/ 294:
5668
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5669
 
5670
  "use strict";
5687
  /* harmony default export */ __webpack_exports__["a"] = (arrowLeft);
5688
  //# sourceMappingURL=arrow-left.js.map
5689
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5690
  /***/ }),
5691
 
5692
  /***/ 3:
6911
 
6912
  /***/ }),
6913
 
6914
+ /***/ 4:
6915
+ /***/ (function(module, exports) {
6916
+
6917
+ (function() { module.exports = window["wp"]["data"]; }());
6918
+
6919
+ /***/ }),
6920
+
6921
+ /***/ 40:
6922
  /***/ (function(module, exports) {
6923
 
6924
  (function() { module.exports = window["wp"]["htmlEntities"]; }());
6925
 
6926
  /***/ }),
6927
 
6928
+ /***/ 402:
6929
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6930
 
6931
  "use strict";
6961
  __webpack_require__.d(__webpack_exports__, "__experimentalBlockFullHeightAligmentControl", function() { return /* reexport */ block_full_height_alignment_control; });
6962
  __webpack_require__.d(__webpack_exports__, "__experimentalBlockAlignmentMatrixControl", function() { return /* reexport */ block_alignment_matrix_control; });
6963
  __webpack_require__.d(__webpack_exports__, "BlockBreadcrumb", function() { return /* reexport */ block_breadcrumb; });
6964
+ __webpack_require__.d(__webpack_exports__, "__experimentalBlockContentOverlay", function() { return /* reexport */ BlockContentOverlay; });
6965
  __webpack_require__.d(__webpack_exports__, "BlockContextProvider", function() { return /* reexport */ BlockContextProvider; });
6966
  __webpack_require__.d(__webpack_exports__, "BlockControls", function() { return /* reexport */ block_controls; });
6967
  __webpack_require__.d(__webpack_exports__, "BlockFormatControls", function() { return /* reexport */ BlockFormatControls; });
7129
  __webpack_require__.d(selectors_namespaceObject, "isSelectionEnabled", function() { return selectors_isSelectionEnabled; });
7130
  __webpack_require__.d(selectors_namespaceObject, "getBlockMode", function() { return selectors_getBlockMode; });
7131
  __webpack_require__.d(selectors_namespaceObject, "isTyping", function() { return selectors_isTyping; });
7132
+ __webpack_require__.d(selectors_namespaceObject, "isDraggingBlocks", function() { return selectors_isDraggingBlocks; });
7133
  __webpack_require__.d(selectors_namespaceObject, "getDraggedBlockClientIds", function() { return selectors_getDraggedBlockClientIds; });
7134
  __webpack_require__.d(selectors_namespaceObject, "isBlockBeingDragged", function() { return selectors_isBlockBeingDragged; });
7135
  __webpack_require__.d(selectors_namespaceObject, "isAncestorBeingDragged", function() { return selectors_isAncestorBeingDragged; });
7223
  __webpack_require__.d(actions_namespaceObject, "flashBlock", function() { return actions_flashBlock; });
7224
  __webpack_require__.d(actions_namespaceObject, "setHasControlledInnerBlocks", function() { return actions_setHasControlledInnerBlocks; });
7225
 
 
 
 
7226
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
7227
  var esm_extends = __webpack_require__(7);
7228
 
10123
  * @return {boolean} Whether user is dragging blocks.
10124
  */
10125
 
10126
+ function selectors_isDraggingBlocks(state) {
10127
  return !!state.draggedBlocks.length;
10128
  }
10129
  /**
10167
  function selectors_isAncestorBeingDragged(state, clientId) {
10168
  // Return early if no blocks are being dragged rather than
10169
  // the more expensive check for parents.
10170
+ if (!selectors_isDraggingBlocks(state)) {
10171
  return false;
10172
  }
10173
 
10232
  */
10233
 
10234
  function selectors_isBlockInsertionPointVisible(state) {
10235
+ return state.insertionPoint !== null;
 
 
 
 
 
 
 
 
 
 
10236
  }
10237
  /**
10238
  * Returns whether the blocks matches the template or not.
11130
  // EXTERNAL MODULE: external ["wp","a11y"]
11131
  var external_wp_a11y_ = __webpack_require__(30);
11132
 
11133
+ // EXTERNAL MODULE: external ["wp","richText"]
11134
+ var external_wp_richText_ = __webpack_require__(15);
11135
+
11136
  // EXTERNAL MODULE: external ["wp","deprecated"]
11137
+ var external_wp_deprecated_ = __webpack_require__(25);
11138
  var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_);
11139
 
11140
  // CONCATENATED MODULE: ./packages/block-editor/build-module/store/controls.js
11206
  // always a default block if the last of the blocks have been removed.
11207
 
11208
  if (count === 0) {
11209
+ const {
11210
+ __unstableHasCustomAppender
11211
+ } = yield external_wp_data_["controls"].select(STORE_NAME, 'getSettings'); // If there's an custom appender, don't insert default block.
11212
+ // We have to remember to manually move the focus elsewhere to
11213
+ // prevent it from being lost though.
11214
+
11215
+ if (__unstableHasCustomAppender) {
11216
+ return;
11217
+ }
11218
+
11219
  return yield actions_insertDefaultBlock();
11220
  }
11221
  }
15032
  localAttributes.current = attributes;
15033
  }, [attributes]);
15034
 
15035
+ if (!hasColorSupport(blockName)) {
15036
  return null;
15037
  }
15038
 
15203
  /* harmony default export */ var format_underline = (formatUnderline);
15204
  //# sourceMappingURL=format-underline.js.map
15205
  // EXTERNAL MODULE: ./packages/icons/build-module/library/format-strikethrough.js
15206
+ var format_strikethrough = __webpack_require__(286);
15207
 
15208
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/text-decoration-control/index.js
15209
 
16150
  }
16151
  //# sourceMappingURL=font-family.js.map
16152
  // EXTERNAL MODULE: external ["wp","tokenList"]
16153
+ var external_wp_tokenList_ = __webpack_require__(145);
16154
  var external_wp_tokenList_default = /*#__PURE__*/__webpack_require__.n(external_wp_tokenList_);
16155
 
16156
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/font-sizes/utils.js
16974
  const subPaths = external_wp_blocks_["__EXPERIMENTAL_STYLE_PROPERTY"][propKey].properties; // Ignore styles on elements because they are handled on the server.
16975
 
16976
  if (Object(external_lodash_["has"])(styles, path) && 'elements' !== Object(external_lodash_["first"])(path)) {
16977
+ // Checking if style value is a string allows for shorthand css
16978
+ // option and backwards compatibility for border radius support.
16979
+ const styleValue = Object(external_lodash_["get"])(styles, path);
16980
+
16981
+ if (!!subPaths && !Object(external_lodash_["isString"])(styleValue)) {
16982
+ Object.entries(subPaths).forEach(entry => {
16983
+ const [name, subPath] = entry;
16984
+ const value = Object(external_lodash_["get"])(styleValue, [subPath]);
16985
+
16986
+ if (value) {
16987
+ output[name] = compileStyleValue(value);
16988
+ }
16989
  });
16990
  } else {
16991
  output[propKey] = compileStyleValue(Object(external_lodash_["get"])(styles, path));
18181
 
18182
  //# sourceMappingURL=index.js.map
18183
  // EXTERNAL MODULE: ./packages/icons/build-module/library/align-left.js
18184
+ var align_left = __webpack_require__(287);
18185
 
18186
  // EXTERNAL MODULE: ./packages/icons/build-module/library/align-center.js
18187
+ var align_center = __webpack_require__(288);
18188
 
18189
  // EXTERNAL MODULE: ./packages/icons/build-module/library/align-right.js
18190
+ var align_right = __webpack_require__(289);
18191
 
18192
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/alignment-control/ui.js
18193
 
18498
  /* harmony default export */ var use_block_types_state = (useBlockTypesState);
18499
  //# sourceMappingURL=use-block-types-state.js.map
18500
  // EXTERNAL MODULE: ./packages/icons/build-module/library/block-default.js
18501
+ var block_default = __webpack_require__(150);
18502
 
18503
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-icon/index.js
18504
 
19073
 
19074
  /* harmony default export */ var block_breadcrumb = (BlockBreadcrumb);
19075
  //# sourceMappingURL=index.js.map
19076
+ // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-content-overlay/index.js
19077
+
19078
+
19079
+
19080
+ /**
19081
+ * WordPress dependencies
19082
+ */
19083
+
19084
+
19085
+ /**
19086
+ * Internal dependencies
19087
+ */
19088
+
19089
+
19090
+ /**
19091
+ * External dependencies
19092
+ */
19093
+
19094
+
19095
+ function BlockContentOverlay({
19096
+ clientId,
19097
+ tagName: TagName = 'div',
19098
+ wrapperProps,
19099
+ className
19100
+ }) {
19101
+ const baseClassName = 'block-editor-block-content-overlay';
19102
+ const [isOverlayActive, setIsOverlayActive] = Object(external_wp_element_["useState"])(true);
19103
+ const [isHovered, setIsHovered] = Object(external_wp_element_["useState"])(false);
19104
+ const {
19105
+ isParentSelected,
19106
+ hasChildSelected,
19107
+ isDraggingBlocks,
19108
+ isParentHighlighted
19109
+ } = Object(external_wp_data_["useSelect"])(select => {
19110
+ const {
19111
+ isBlockSelected,
19112
+ hasSelectedInnerBlock,
19113
+ isDraggingBlocks: _isDraggingBlocks,
19114
+ isBlockHighlighted
19115
+ } = select(store);
19116
+ return {
19117
+ isParentSelected: isBlockSelected(clientId),
19118
+ hasChildSelected: hasSelectedInnerBlock(clientId, true),
19119
+ isDraggingBlocks: _isDraggingBlocks(),
19120
+ isParentHighlighted: isBlockHighlighted(clientId)
19121
+ };
19122
+ }, [clientId]);
19123
+ const classes = classnames_default()(baseClassName, wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.className, className, {
19124
+ 'overlay-active': isOverlayActive,
19125
+ 'parent-highlighted': isParentHighlighted,
19126
+ 'is-dragging-blocks': isDraggingBlocks
19127
+ });
19128
+ Object(external_wp_element_["useEffect"])(() => {
19129
+ // Reenable when blocks are not in use.
19130
+ if (!isParentSelected && !hasChildSelected && !isOverlayActive) {
19131
+ setIsOverlayActive(true);
19132
+ } // Disable if parent selected by another means (such as list view).
19133
+ // We check hover to ensure the overlay click interaction is not taking place.
19134
+ // Trying to click the overlay will select the parent block via its 'focusin'
19135
+ // listener on the wrapper, so if the block is selected while hovered we will
19136
+ // let the mouseup disable the overlay instead.
19137
+
19138
+
19139
+ if (isParentSelected && !isHovered && isOverlayActive) {
19140
+ setIsOverlayActive(false);
19141
+ } // Ensure overlay is disabled if a child block is selected.
19142
+
19143
+
19144
+ if (hasChildSelected && isOverlayActive) {
19145
+ setIsOverlayActive(false);
19146
+ }
19147
+ }, [isParentSelected, hasChildSelected, isOverlayActive, isHovered]); // Disabled because the overlay div doesn't actually have a role or functionality
19148
+ // as far as the a11y is concerned. We're just catching the first click so that
19149
+ // the block can be selected without interacting with its contents.
19150
+
19151
+ /* eslint-disable jsx-a11y/no-static-element-interactions */
19152
+
19153
+ return Object(external_wp_element_["createElement"])(TagName, Object(esm_extends["a" /* default */])({}, wrapperProps, {
19154
+ className: classes,
19155
+ onMouseEnter: () => setIsHovered(true),
19156
+ onMouseLeave: () => setIsHovered(false)
19157
+ }), isOverlayActive && Object(external_wp_element_["createElement"])("div", {
19158
+ className: `${baseClassName}__overlay`,
19159
+ onMouseUp: () => setIsOverlayActive(false)
19160
+ }), wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.children);
19161
+ }
19162
+ /* eslint-enable jsx-a11y/no-static-element-interactions */
19163
+ //# sourceMappingURL=index.js.map
19164
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-context/index.js
19165
 
19166
 
19392
  }
19393
  //# sourceMappingURL=index.js.map
19394
  // EXTERNAL MODULE: ./packages/icons/build-module/library/list-view.js
19395
+ var list_view = __webpack_require__(175);
19396
 
19397
  // EXTERNAL MODULE: ./packages/icons/build-module/library/more-vertical.js
19398
+ var more_vertical = __webpack_require__(153);
19399
 
19400
  // EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js
19401
  var web_cjs = __webpack_require__(103);
19402
 
19403
  // EXTERNAL MODULE: external ["wp","dom"]
19404
+ var external_wp_dom_ = __webpack_require__(22);
19405
 
19406
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-moving-animation/index.js
19407
  /**
19617
  }
19618
  //# sourceMappingURL=leaf.js.map
19619
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-right.js
19620
+ var chevron_right = __webpack_require__(210);
19621
 
19622
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-left.js
19623
+ var chevron_left = __webpack_require__(211);
19624
 
19625
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-up.js
19626
+ var chevron_up = __webpack_require__(290);
19627
 
19628
  // EXTERNAL MODULE: ./packages/icons/build-module/library/chevron-down.js
19629
+ var chevron_down = __webpack_require__(152);
19630
 
19631
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-mover/mover-description.js
19632
  /**
20027
  /* harmony default export */ var warning = (Warning);
20028
  //# sourceMappingURL=index.js.map
20029
  // EXTERNAL MODULE: ./node_modules/diff/lib/diff/character.js
20030
+ var diff_character = __webpack_require__(259);
20031
 
20032
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-compare/block-view.js
20033
 
21225
  }
21226
  //# sourceMappingURL=use-multi-selection.js.map
21227
  // EXTERNAL MODULE: external ["wp","htmlEntities"]
21228
+ var external_wp_htmlEntities_ = __webpack_require__(40);
21229
 
21230
  // EXTERNAL MODULE: ./packages/icons/build-module/library/plus.js
21231
+ var plus = __webpack_require__(127);
21232
 
21233
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/tips.js
21234
 
21260
  var close_small = __webpack_require__(91);
21261
 
21262
  // EXTERNAL MODULE: ./packages/icons/build-module/library/search.js
21263
+ var search = __webpack_require__(209);
21264
 
21265
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/search-form.js
21266
 
22919
 
22920
  let _destinationIndex;
22921
 
22922
+ if (insertionIndex !== undefined) {
22923
  // Insert into a specific index.
22924
  _destinationIndex = insertionIndex;
22925
  } else if (clientId) {
23975
  // clicked.
23976
  ,
23977
  onFocus: stopPropagation,
23978
+ className: classnames_default()('block-list-appender', className)
23979
  }, appender);
23980
  }
23981
 
24274
 
24275
 
24276
 
24277
+
24278
  /**
24279
  * Internal dependencies
24280
  */
24303
 
24304
  function getNearestBlockIndex(elements, position, orientation) {
24305
  const allowedEdges = orientation === 'horizontal' ? ['left', 'right'] : ['top', 'bottom'];
24306
+ const isRightToLeft = Object(external_wp_i18n_["isRTL"])();
24307
  let candidateIndex;
24308
  let candidateDistance;
24309
  elements.forEach((element, index) => {
 
 
 
 
 
24310
  const rect = element.getBoundingClientRect();
24311
  const [distance, edge] = getDistanceToNearestEdge(position, rect, allowedEdges);
24312
 
24313
  if (candidateDistance === undefined || distance < candidateDistance) {
24314
  // If the user is dropping to the trailing edge of the block
24315
  // add 1 to the index to represent dragging after.
24316
+ // Take RTL languages into account where the left edge is
24317
+ // the trailing edge.
24318
+ const isTrailingEdge = edge === 'bottom' || !isRightToLeft && edge === 'right' || isRightToLeft && edge === 'left';
24319
  const offset = isTrailingEdge ? 1 : 0; // Update the currently known best candidate.
24320
 
24321
  candidateDistance = distance;
24360
  const throttled = Object(external_wp_compose_["useThrottle"])(Object(external_wp_element_["useCallback"])((event, currentTarget) => {
24361
  var _getBlockListSettings;
24362
 
24363
+ const blockElements = Array.from(currentTarget.children).filter( // Ensure the element is a block. It should have the `wp-block` class.
24364
+ element => element.classList.contains('wp-block'));
24365
  const targetIndex = getNearestBlockIndex(blockElements, {
24366
  x: event.clientX,
24367
  y: event.clientY
24512
  const previousElement = useBlockElement(previousClientId);
24513
  const nextElement = useBlockElement(nextClientId);
24514
  const style = Object(external_wp_element_["useMemo"])(() => {
24515
+ if (!previousElement && !nextElement) {
24516
  return {};
24517
  }
24518
 
24519
+ const previousRect = previousElement ? previousElement.getBoundingClientRect() : null;
24520
  const nextRect = nextElement ? nextElement.getBoundingClientRect() : null;
24521
 
24522
  if (orientation === 'vertical') {
24523
  return {
24524
+ width: previousElement ? previousElement.offsetWidth : nextElement.offsetWidth,
24525
+ height: nextRect && previousRect ? nextRect.top - previousRect.bottom : 0
24526
  };
24527
  }
24528
 
24529
  let width = 0;
24530
 
24531
+ if (previousRect && nextRect) {
24532
  width = Object(external_wp_i18n_["isRTL"])() ? previousRect.left - nextRect.right : nextRect.left - previousRect.right;
24533
  }
24534
 
24535
  return {
24536
  width,
24537
+ height: previousElement ? previousElement.offsetHeight : nextElement.offsetHeight
24538
  };
24539
  }, [previousElement, nextElement]);
24540
  const getAnchorRect = Object(external_wp_element_["useCallback"])(() => {
24541
+ if (!previousElement && !nextElement) {
24542
+ return {};
24543
+ }
24544
+
24545
  const {
24546
  ownerDocument
24547
+ } = previousElement || nextElement;
24548
+ const previousRect = previousElement ? previousElement.getBoundingClientRect() : null;
24549
  const nextRect = nextElement ? nextElement.getBoundingClientRect() : null;
24550
 
24551
  if (orientation === 'vertical') {
24552
  if (Object(external_wp_i18n_["isRTL"])()) {
24553
  return {
24554
+ top: previousRect ? previousRect.bottom : nextRect.top,
24555
+ left: previousRect ? previousRect.right : nextRect.right,
24556
+ right: previousRect ? previousRect.left : nextRect.left,
24557
  bottom: nextRect ? nextRect.top : previousRect.bottom,
24558
  ownerDocument
24559
  };
24560
  }
24561
 
24562
  return {
24563
+ top: previousRect ? previousRect.bottom : nextRect.top,
24564
+ left: previousRect ? previousRect.left : nextRect.left,
24565
+ right: previousRect ? previousRect.right : nextRect.right,
24566
  bottom: nextRect ? nextRect.top : previousRect.bottom,
24567
  ownerDocument
24568
  };
24570
 
24571
  if (Object(external_wp_i18n_["isRTL"])()) {
24572
  return {
24573
+ top: previousRect ? previousRect.top : nextRect.top,
24574
+ left: previousRect ? previousRect.left : nextRect.right,
24575
+ right: nextRect ? nextRect.right : previousRect.left,
24576
+ bottom: previousRect ? previousRect.bottom : nextRect.bottom,
24577
  ownerDocument
24578
  };
24579
  }
24580
 
24581
  return {
24582
+ top: previousRect ? previousRect.top : nextRect.top,
24583
+ left: previousRect ? previousRect.right : nextRect.left,
24584
  right: nextRect ? nextRect.left : previousRect.right,
24585
+ bottom: previousRect ? previousRect.bottom : nextRect.bottom,
24586
  ownerDocument
24587
  };
24588
  }, [previousElement, nextElement]);
24589
  const popoverScrollRef = usePopoverScroll(__unstableContentRef);
 
 
 
 
 
24590
  const className = classnames_default()('block-editor-block-list__insertion-point', 'is-' + orientation);
24591
 
24592
  function onClick(event) {
24601
  if (event.target !== ref.current) {
24602
  openRef.current = true;
24603
  }
24604
+ } // Only show the in-between inserter between blocks, so when there's a
24605
+ // previous and a next element.
 
24606
 
24607
 
24608
+ const showInsertionPointInserter = previousElement && nextElement && isInserterShown;
24609
  /* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
24610
  // While ideally it would be enough to capture the
24611
  // bubbling focus event from the Inserter, due to the
24690
  getBlockIndex,
24691
  isBlockInsertionPointVisible,
24692
  isMultiSelecting,
24693
+ getSelectedBlockClientIds,
24694
+ getTemplateLock
24695
  } = Object(external_wp_data_["useSelect"])(store);
24696
  const {
24697
  showInsertionPoint,
24726
  if (!event.target.classList.contains('is-root-container')) {
24727
  const blockElement = !!event.target.getAttribute('data-block') ? event.target : event.target.closest('[data-block]');
24728
  rootClientId = blockElement.getAttribute('data-block');
24729
+ } // Don't set the insertion point if the template is locked.
24730
+
24731
+
24732
+ if (getTemplateLock(rootClientId)) {
24733
+ return;
24734
  }
24735
 
24736
  const orientation = ((_getBlockListSettings = getBlockListSettings(rootClientId)) === null || _getBlockListSettings === void 0 ? void 0 : _getBlockListSettings.orientation) || 'vertical';
24860
  }
24861
  //# sourceMappingURL=pre-parse-patterns.js.map
24862
  // EXTERNAL MODULE: external ["wp","keyboardShortcuts"]
24863
+ var external_wp_keyboardShortcuts_ = __webpack_require__(24);
24864
 
24865
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-draggable/use-scroll-when-dragging.js
24866
  /**
30200
  }
30201
  //# sourceMappingURL=file-paste-handler.js.map
30202
  // EXTERNAL MODULE: external ["wp","shortcode"]
30203
+ var external_wp_shortcode_ = __webpack_require__(116);
30204
 
30205
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/utils.js
30206
  /**
30209
 
30210
 
30211
  function addActiveFormats(value, activeFormats) {
30212
+ if (activeFormats !== null && activeFormats !== void 0 && activeFormats.length) {
30213
  let index = value.formats.length;
30214
 
30215
  while (index--) {
31351
  }
31352
  //# sourceMappingURL=editor.js.map
31353
  // EXTERNAL MODULE: ./packages/icons/build-module/library/layout.js
31354
+ var library_layout = __webpack_require__(186);
31355
 
31356
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-variation-picker/index.js
31357
 
31411
  /* harmony default export */ var block_variation_picker = (BlockVariationPicker);
31412
  //# sourceMappingURL=index.js.map
31413
  // EXTERNAL MODULE: ./packages/icons/build-module/library/grid.js
31414
+ var grid = __webpack_require__(292);
31415
 
31416
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/constants.js
31417
  const VIEWMODES = {
32110
  }, Object(external_wp_element_["createElement"])(GradientPickerControl, props));
32111
  }
32112
  //# sourceMappingURL=panel.js.map
32113
+ // CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-size-control/use-dimension-handler.js
32114
+ /**
32115
+ * WordPress dependencies
32116
+ */
32117
+
32118
+ function useDimensionHander(customHeight, customWidth, defaultHeight, defaultWidth, onChange) {
32119
+ var _ref, _ref2;
32120
+
32121
+ const [currentWidth, setCurrentWidth] = Object(external_wp_element_["useState"])((_ref = customWidth !== null && customWidth !== void 0 ? customWidth : defaultWidth) !== null && _ref !== void 0 ? _ref : '');
32122
+ const [currentHeight, setCurrentHeight] = Object(external_wp_element_["useState"])((_ref2 = customHeight !== null && customHeight !== void 0 ? customHeight : defaultHeight) !== null && _ref2 !== void 0 ? _ref2 : ''); // When an image is first inserted, the default dimensions are initially
32123
+ // undefined. This effect updates the dimensions when the default values
32124
+ // come through.
32125
+
32126
+ Object(external_wp_element_["useEffect"])(() => {
32127
+ if (customWidth === undefined && defaultWidth !== undefined) {
32128
+ setCurrentWidth(defaultWidth);
32129
+ }
32130
+
32131
+ if (customHeight === undefined && defaultHeight !== undefined) {
32132
+ setCurrentHeight(defaultHeight);
32133
+ }
32134
+ }, [defaultWidth, defaultHeight]);
32135
+
32136
+ const updateDimension = (dimension, value) => {
32137
+ if (dimension === 'width') {
32138
+ setCurrentWidth(value);
32139
+ } else {
32140
+ setCurrentHeight(value);
32141
+ }
32142
+
32143
+ onChange({
32144
+ [dimension]: value === '' ? undefined : parseInt(value, 10)
32145
+ });
32146
+ };
32147
+
32148
+ const updateDimensions = (nextHeight, nextWidth) => {
32149
+ setCurrentHeight(nextHeight !== null && nextHeight !== void 0 ? nextHeight : defaultHeight);
32150
+ setCurrentWidth(nextWidth !== null && nextWidth !== void 0 ? nextWidth : defaultWidth);
32151
+ onChange({
32152
+ height: nextHeight,
32153
+ width: nextWidth
32154
+ });
32155
+ };
32156
+
32157
+ return {
32158
+ currentHeight,
32159
+ currentWidth,
32160
+ updateDimension,
32161
+ updateDimensions
32162
+ };
32163
+ }
32164
+ //# sourceMappingURL=use-dimension-handler.js.map
32165
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-size-control/index.js
32166
 
32167
 
32175
 
32176
 
32177
 
32178
+ /**
32179
+ * Internal dependencies
32180
+ */
32181
+
32182
+
32183
  const IMAGE_SIZE_PRESETS = [25, 50, 75, 100];
32184
  function ImageSizeControl({
32185
  imageWidth,
32192
  onChange,
32193
  onChangeImage = external_lodash_["noop"]
32194
  }) {
32195
+ const {
32196
+ currentHeight,
32197
+ currentWidth,
32198
+ updateDimension,
32199
+ updateDimensions
32200
+ } = useDimensionHander(height, width, imageHeight, imageWidth, onChange);
 
 
 
 
 
32201
  return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, !Object(external_lodash_["isEmpty"])(imageSizeOptions) && Object(external_wp_element_["createElement"])(external_wp_components_["SelectControl"], {
32202
  label: Object(external_wp_i18n_["__"])('Image size'),
32203
  value: slug,
32213
  type: "number",
32214
  className: "block-editor-image-size-control__width",
32215
  label: Object(external_wp_i18n_["__"])('Width'),
32216
+ value: currentWidth,
32217
  min: 1,
32218
+ onChange: value => updateDimension('width', value)
 
 
32219
  }), Object(external_wp_element_["createElement"])(external_wp_components_["TextControl"], {
32220
  type: "number",
32221
  className: "block-editor-image-size-control__height",
32222
  label: Object(external_wp_i18n_["__"])('Height'),
32223
+ value: currentHeight,
32224
  min: 1,
32225
+ onChange: value => updateDimension('height', value)
 
 
32226
  })), Object(external_wp_element_["createElement"])("div", {
32227
  className: "block-editor-image-size-control__row"
32228
  }, Object(external_wp_element_["createElement"])(external_wp_components_["ButtonGroup"], {
32230
  }, IMAGE_SIZE_PRESETS.map(scale => {
32231
  const scaledWidth = Math.round(imageWidth * (scale / 100));
32232
  const scaledHeight = Math.round(imageHeight * (scale / 100));
32233
+ const isCurrent = currentWidth === scaledWidth && currentHeight === scaledHeight;
32234
  return Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
32235
  key: scale,
32236
  isSmall: true,
32237
  variant: isCurrent ? 'primary' : undefined,
32238
  isPressed: isCurrent,
32239
+ onClick: () => updateDimensions(scaledHeight, scaledWidth)
32240
  }, scale, "%");
32241
  })), Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
32242
  isSmall: true,
32243
+ onClick: () => updateDimensions()
32244
  }, Object(external_wp_i18n_["__"])('Reset')))));
32245
  }
32246
  //# sourceMappingURL=index.js.map
32332
  })])(default_block_appender_DefaultBlockAppender));
32333
  //# sourceMappingURL=default-block-appender.js.map
32334
  // EXTERNAL MODULE: external ["wp","isShallowEqual"]
32335
+ var external_wp_isShallowEqual_ = __webpack_require__(47);
32336
  var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_);
32337
 
32338
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/use-nested-settings-update.js
32829
  }
32830
  //# sourceMappingURL=index.js.map
32831
  // EXTERNAL MODULE: ./packages/icons/build-module/library/keyboard-return.js
32832
+ var keyboard_return = __webpack_require__(212);
32833
 
32834
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/settings-drawer.js
32835
 
33756
 
33757
 
33758
 
33759
+ // Must be a function as otherwise URLInput will default
33760
+ // to the fetchLinkSuggestions passed in block editor settings
33761
+ // which will cause an unintended http request.
33762
+
33763
+ const noopSearchHandler = () => Promise.resolve([]);
33764
 
 
33765
  const LinkControlSearchInput = Object(external_wp_element_["forwardRef"])(({
33766
  value,
33767
  children,
34240
  value,
34241
  settings,
34242
  onChange = external_lodash_["noop"],
34243
+ onRemove,
34244
  noDirectEntry = false,
34245
  showSuggestions = true,
34246
  showInitialSuggestions,
34363
  value: value,
34364
  onEditClick: () => setIsEditingLink(true),
34365
  hasRichPreviews: hasRichPreviews
34366
+ }), Object(external_wp_element_["createElement"])("div", {
34367
+ className: "block-editor-link-control__tools"
34368
+ }, Object(external_wp_element_["createElement"])(settings_drawer, {
34369
  value: value,
34370
  settings: settings,
34371
  onChange: onChange
34372
+ }), onRemove && value && !isEditingLink && !isCreatingPage && Object(external_wp_element_["createElement"])(external_wp_components_["Button"], {
34373
+ className: "block-editor-link-control__unlink",
34374
+ isDestructive: true,
34375
+ variant: "link",
34376
+ onClick: onRemove
34377
+ }, Object(external_wp_i18n_["__"])('Unlink'))));
34378
  }
34379
 
34380
  LinkControl.ViewerFill = ViewerFill;
34381
  /* harmony default export */ var link_control = (LinkControl);
34382
  //# sourceMappingURL=index.js.map
34383
  // EXTERNAL MODULE: ./packages/icons/build-module/library/media.js
34384
+ var library_media = __webpack_require__(293);
34385
 
34386
  // EXTERNAL MODULE: ./packages/icons/build-module/library/upload.js
34387
+ var upload = __webpack_require__(213);
34388
 
34389
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-upload/index.js
34390
  /**
34630
  }), Object(external_wp_components_["withFilters"])('editor.MediaReplaceFlow')])(MediaReplaceFlow));
34631
  //# sourceMappingURL=index.js.map
34632
  // EXTERNAL MODULE: ./packages/icons/build-module/library/edit.js + 1 modules
34633
+ var library_edit = __webpack_require__(199);
34634
 
34635
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-popover/link-viewer-url.js
34636
 
35576
  }
35577
  //# sourceMappingURL=index.js.map
35578
  // EXTERNAL MODULE: ./packages/icons/build-module/library/link.js
35579
+ var library_link = __webpack_require__(187);
35580
 
35581
  // EXTERNAL MODULE: ./packages/icons/build-module/library/arrow-left.js
35582
+ var arrow_left = __webpack_require__(294);
35583
 
35584
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-input/button.js
35585
 
35998
  }
35999
  //# sourceMappingURL=index.js.map
36000
  // EXTERNAL MODULE: ./node_modules/css-mediaquery/index.js
36001
+ var css_mediaquery = __webpack_require__(260);
36002
 
36003
  // CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-simulated-media-query/index.js
36004
  /**
36542
  }
36543
  //# sourceMappingURL=index.js.map
36544
  // EXTERNAL MODULE: ./node_modules/traverse/index.js
36545
+ var traverse = __webpack_require__(261);
36546
  var traverse_default = /*#__PURE__*/__webpack_require__.n(traverse);
36547
 
36548
  // CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/ast/parse.js
37240
  /* eslint-enable @wordpress/no-unused-vars-before-return */
37241
  //# sourceMappingURL=parse.js.map
37242
  // EXTERNAL MODULE: ./node_modules/inherits/inherits_browser.js
37243
+ var inherits_browser = __webpack_require__(166);
37244
  var inherits_browser_default = /*#__PURE__*/__webpack_require__.n(inherits_browser);
37245
 
37246
  // CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/ast/stringify/compiler.js
37974
  body
37975
  } = ownerDocument;
37976
  const canvas = ownerDocument.querySelector(EDITOR_STYLES_SELECTOR);
37977
+ let backgroundColor;
37978
+
37979
+ if (!canvas) {
37980
+ // The real .editor-styles-wrapper element might not exist in the
37981
+ // DOM, so calculate the background color by creating a fake
37982
+ // wrapper.
37983
+ const tempCanvas = ownerDocument.createElement('div');
37984
+ tempCanvas.classList.add('editor-styles-wrapper');
37985
+ body.appendChild(tempCanvas);
37986
+ backgroundColor = defaultView.getComputedStyle(tempCanvas, null).getPropertyValue('background-color');
37987
+ body.removeChild(tempCanvas);
37988
+ } else {
37989
+ backgroundColor = defaultView.getComputedStyle(canvas, null).getPropertyValue('background-color');
37990
+ } // If background is transparent, it should be treated as light color.
37991
+
37992
 
37993
  if (tinycolor_default()(backgroundColor).getLuminance() > 0.5 || tinycolor_default()(backgroundColor).getAlpha() === 0) {
37994
  body.classList.remove('is-dark-theme');
38931
  */
38932
 
38933
 
 
 
 
 
 
 
 
 
38934
 
38935
  function isFormElement(element) {
38936
  const {
38978
  const before = Object(external_wp_element_["createElement"])("div", {
38979
  ref: focusCaptureBeforeRef,
38980
  tabIndex: focusCaptureTabIndex,
38981
+ onFocus: onFocusCapture
 
38982
  });
38983
  const after = Object(external_wp_element_["createElement"])("div", {
38984
  ref: focusCaptureAfterRef,
38985
  tabIndex: focusCaptureTabIndex,
38986
+ onFocus: onFocusCapture
 
38987
  });
38988
  const ref = Object(external_wp_compose_["useRefEffect"])(node => {
38989
  function onKeyDown(event) {
39023
  // doesn't refocus this block and so it allows default behaviour
39024
  // (moving focus to the next tabbable element).
39025
 
39026
+ noCapture.current = true; // Focusing the focus capture element, which is located above and
39027
+ // below the editor, should not scroll the page all the way up or
39028
+ // down.
39029
+
39030
+ next.current.focus({
39031
+ preventScroll: true
39032
+ });
39033
  }
39034
 
39035
  function onFocusOut(event) {
39036
  lastFocus.current = event.target;
39037
+ } // When tabbing back to an element in block list, this event handler prevents scrolling if the
39038
+ // focus capture divs (before/after) are outside of the viewport. (For example shift+tab back to a paragraph
39039
+ // when focus is on a sidebar element. This prevents the scrollable writing area from jumping either to the
39040
+ // top or bottom of the document.
39041
+ //
39042
+ // Note that it isn't possible to disable scrolling in the onFocus event. We need to intercept this
39043
+ // earlier in the keypress handler, and call focus( { preventScroll: true } ) instead.
39044
+ // https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/focus#parameters
39045
+
39046
+
39047
+ function preventScrollOnTab(event) {
39048
+ var _event$target;
39049
+
39050
+ if (event.keyCode !== external_wp_keycodes_["TAB"]) {
39051
+ return;
39052
+ }
39053
+
39054
+ if (((_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.getAttribute('role')) === 'region') {
39055
+ return;
39056
+ }
39057
+
39058
+ if (container.current === event.target) {
39059
+ return;
39060
+ }
39061
+
39062
+ const isShift = event.shiftKey;
39063
+ const direction = isShift ? 'findPrevious' : 'findNext';
39064
+ const target = external_wp_dom_["focus"].tabbable[direction](event.target); // only do something when the next tabbable is a focus capture div (before/after)
39065
+
39066
+ if (target === focusCaptureBeforeRef.current || target === focusCaptureAfterRef.current) {
39067
+ event.preventDefault();
39068
+ target.focus({
39069
+ preventScroll: true
39070
+ });
39071
+ }
39072
  }
39073
 
39074
+ node.ownerDocument.defaultView.addEventListener('keydown', preventScrollOnTab);
39075
  node.addEventListener('keydown', onKeyDown);
39076
  node.addEventListener('focusout', onFocusOut);
39077
  return () => {
39078
+ node.ownerDocument.defaultView.removeEventListener('keydown', preventScrollOnTab);
39079
  node.removeEventListener('keydown', onKeyDown);
39080
  node.removeEventListener('focusout', onFocusOut);
39081
  };
39701
  head,
39702
  ...props
39703
  }, ref) {
39704
+ const [, forceRender] = Object(external_wp_element_["useReducer"])(() => ({}));
39705
  const [iframeDocument, setIframeDocument] = Object(external_wp_element_["useState"])();
39706
  const styles = useParsedAssets(window.__editorAssets.styles);
39707
  const scripts = useParsedAssets(window.__editorAssets.scripts);
39737
  setIframeDocument(contentDocument);
39738
  clearerRef(documentElement);
39739
  clearerRef(body);
39740
+ scripts.reduce((promise, script) => promise.then(() => loadScript(contentDocument, script)), Promise.resolve()).finally(() => {
39741
+ // When script are loaded, re-render blocks to allow them
39742
+ // to initialise.
39743
+ forceRender();
39744
+ });
39745
  return true;
39746
  }
39747
 
39895
 
39896
 
39897
 
39898
+
39899
 
39900
 
39901
 
40024
 
40025
  //# sourceMappingURL=index.js.map
40026
  // CONCATENATED MODULE: ./packages/block-editor/build-module/index.js
 
 
 
 
40027
  /**
40028
  * Internal dependencies
40029
  */
40033
 
40034
 
40035
 
 
40036
  //# sourceMappingURL=index.js.map
40037
 
40038
  /***/ }),
40039
 
40040
+ /***/ 47:
 
 
 
 
 
 
 
40041
  /***/ (function(module, exports) {
40042
 
40043
  (function() { module.exports = window["wp"]["isShallowEqual"]; }());
40089
  "use strict";
40090
 
40091
  exports.__esModule = true;
40092
+ var TextareaAutosize_1 = __webpack_require__(182);
40093
  exports["default"] = TextareaAutosize_1.TextareaAutosize;
40094
 
40095
 
build/block-editor/{index.asset.php → index.min.asset.php} RENAMED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-wordcount'), 'version' => 'dd377db2b17f722e10dd154964874d31');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-wordcount'), 'version' => 'b17163dbb629792d2340b0664f3518eb');
build/block-editor/index.min.js CHANGED
@@ -1,81 +1,81 @@
1
- window.wp=window.wp||{},window.wp.blockEditor=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=396)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},10:function(e,t,n){var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var c=typeof o;if("string"===c||"number"===c)e.push(o);else if(Array.isArray(o))e.push(r.apply(null,o));else if("object"===c)for(var l in o)n.call(o,l)&&o[l]&&e.push(l)}}return e.join(" ")}e.exports?e.exports=r:void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},103:function(e,t,n){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(174)),c=o(n(175)),l=n(12),i=o(l),a=o(n(147)),s=o(n(177)),u={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(u.str(e)||u.num(e))return e===t;if(u.obj(e)&&u.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!u.und(n)||e===t}};function d(){var e=l.useState(!1)[1];return l.useCallback((function(){return e((function(e){return!e}))}),[])}function b(e,t){return u.und(e)||u.nul(e)?t:e}function m(e){return u.und(e)?[]:u.arr(e)?e:[e]}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return u.fun(e)?e.apply(void 0,n):e}function f(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,c(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(u.und(t))return r({to:t},e);var n=Object.keys(e).reduce((function(n,o){var c;return u.und(t[o])?r({},n,((c={})[o]=e[o],c)):n}),{});return r({to:t},n)}var g,h,O=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),v=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof O&&e.addChild(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof O&&e.removeChild(s(t))}))},t}return a(t,e),t}(O),j=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof O&&e.addChild(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof O&&e.removeChild(s(t))}))},t}a(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var o=this.payload[n];(!e||o instanceof O)&&(t[n]=o instanceof O?o[e?"getAnimatedValue":"getValue"]():o)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(O);function k(e,t){g={fn:e,transform:t}}function _(e){h=e}var y,E=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},C=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function S(e){y=e}var w,B=function(){return Date.now()};function I(e){w=e}var x,T,N=function(e){return e.current};function L(e){x=e}var P=Object.freeze({get applyAnimatedValues(){return g},injectApplyAnimatedValues:k,get colorNames(){return h},injectColorNames:_,get requestFrame(){return E},get cancelFrame(){return C},injectFrame:function(e,t){E=e,C=t},get interpolation(){return y},injectStringInterpolator:S,get now(){return B},injectNow:function(e){B=e},get defaultElement(){return w},injectDefaultElement:I,get animatedApi(){return N},injectAnimatedApi:function(e){N=e},get createAnimatedStyle(){return x},injectCreateAnimatedStyle:L,get manualFrameloop(){return T},injectManualFrameloop:function(e){T=e}}),R=function(e){function t(t,n){var o;return(o=e.call(this)||this).update=void 0,o.payload=t.style?r({},t,{style:x(t.style)}):t,o.update=n,o.attach(),o}return a(t,e),t}(j),A=!1,M=new Set,D=function e(){if(!A)return!1;var t=B(),n=M,o=Array.isArray(n),r=0;for(n=o?n:n[Symbol.iterator]();;){var c;if(o){if(r>=n.length)break;c=n[r++]}else{if((r=n.next()).done)break;c=r.value}for(var l=c,i=!1,a=0;a<l.configs.length;a++){for(var s=l.configs[a],u=void 0,d=void 0,b=0;b<s.animatedValues.length;b++){var m=s.animatedValues[b];if(!m.done){var p=s.fromValues[b],f=s.toValues[b],g=m.lastPosition,h=f instanceof O,v=Array.isArray(s.initialVelocity)?s.initialVelocity[b]:s.initialVelocity;if(h&&(f=f.getValue()),s.immediate)m.setValue(f),m.done=!0;else if("string"!=typeof p&&"string"!=typeof f){if(void 0!==s.duration)g=p+s.easing((t-m.startTime)/s.duration)*(f-p),u=t>=m.startTime+s.duration;else if(s.decay)g=p+v/(1-.998)*(1-Math.exp(-(1-.998)*(t-m.startTime))),(u=Math.abs(m.lastPosition-g)<.1)&&(f=g);else{d=void 0!==m.lastTime?m.lastTime:t,v=void 0!==m.lastVelocity?m.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var j=Math.floor(t-d),k=0;k<j;++k)g+=1*(v+=(-s.tension*(g-f)+-s.friction*v)/s.mass*1/1e3)/1e3;var _=!(!s.clamp||0===s.tension)&&(p<f?g>f:g<f),y=Math.abs(v)<=s.precision,C=0===s.tension||Math.abs(f-g)<=s.precision;u=_||y&&C,m.lastVelocity=v,m.lastTime=t}h&&!s.toValues[b].done&&(u=!1),u?(m.value!==f&&(g=f),m.done=!0):i=!0,m.setValue(g),m.lastPosition=g}else m.setValue(f),m.done=!0}}l.props.onFrame&&(l.values[s.name]=s.interpolation.getValue())}l.props.onFrame&&l.props.onFrame(l.values),i||(M.delete(l),l.stop(!0))}return M.size?T?T():E(e):A=!1,A};function F(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return F({range:e,output:t,extrapolate:n});if(y&&"string"==typeof e.output[0])return y(e);var o=e,r=o.output,c=o.range||[0,1],l=o.extrapolateLeft||o.extrapolate||"extend",i=o.extrapolateRight||o.extrapolate||"extend",a=o.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,c);return function(e,t,n,o,r,c,l,i,a){var s=a?a(e):e;if(s<t){if("identity"===l)return s;"clamp"===l&&(s=t)}if(s>n){if("identity"===i)return s;"clamp"===i&&(s=n)}return o===r?o:t===n?e<=t?o:r:(t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t),s=c(s),o===-1/0?s=-s:r===1/0?s+=o:s=s*(r-o)+o,s)}(e,c[t],c[t+1],r[t],r[t+1],a,l,i,o.map)}}var V=function(e){function t(n,o,r){var c;return(c=e.call(this)||this).calc=void 0,c.payload=n instanceof v&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],c.calc=F(o,r),c}a(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t){this.calc=F(e,t)},n.interpolate=function(e,n){return new t(this,e,n)},t}(v),H=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}a(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t){return new V(this,e,t)},t}(O),z=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}a(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,o){return n.payload[o].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new V(this,e,t)},t}(v),G=0,U=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=G++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=f(e),n=t.delay,o=void 0===n?0:n,l=t.to,i=c(t,["delay","to"]);if(u.arr(l)||u.fun(l))this.queue.push(r({},i,{delay:o,to:l}));else if(l){var a={};Object.entries(l).forEach((function(e){var t,n=e[0],c=e[1],l=r({to:(t={},t[n]=c,t),delay:p(o,n)},i),s=a[l.delay]&&a[l.delay].to;a[l.delay]=r({},a[l.delay],l,{to:r({},s,l.to)})})),this.queue=Object.values(a)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(i),this},t.start=function(e){var t=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var n=e.from,o=void 0===n?{}:n,c=e.to,l=void 0===c?{}:c;u.obj(o)&&(t.merged=r({},o,t.merged)),u.obj(l)&&(t.merged=r({},t.merged,l))}));var n=this.local=++this.guid,o=this.localQueue=this.queue;this.queue=[],o.forEach((function(r,l){var i=r.delay,a=c(r,["delay"]),s=function(r){l===o.length-1&&n===t.guid&&r&&(t.idle=!0,t.props.onRest&&t.props.onRest(t.merged)),e&&e()},d=u.arr(a.to)||u.fun(a.to);i?setTimeout((function(){n===t.guid&&(d?t.runAsync(a,s):t.diff(a).start(s))}),i):d?t.runAsync(a,s):t.diff(a).start(s)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),this,M.has(this)||M.add(this),A||(A=!0,E(T||D));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){return this.stop(!0),e&&(this,M.has(this)&&M.delete(this)),this},t.runAsync=function(e,t){var n=this,o=(e.delay,c(e,["delay"])),l=this.local,i=Promise.resolve(void 0);if(u.arr(o.to))for(var a=function(e){var t=e,c=r({},o,f(o.to[t]));u.arr(c.config)&&(c.config=c.config[t]),i=i.then((function(){if(l===n.guid)return new Promise((function(e){return n.diff(c).start(e)}))}))},s=0;s<o.to.length;s++)a(s);else if(u.fun(o.to)){var d,b=0;i=i.then((function(){return o.to((function(e){var t=r({},o,f(e));if(u.arr(t.config)&&(t.config=t.config[b]),b++,l===n.guid)return d=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return d}))}))}i.then(t)},t.diff=function(e){var t=this;this.props=r({},this.props,e);var n=this.props,o=n.from,c=void 0===o?{}:o,l=n.to,i=void 0===l?{}:l,a=n.config,s=void 0===a?{}:a,d=n.reverse,f=n.attach,g=n.reset,O=n.immediate;if(d){var v=[i,c];c=v[0],i=v[1]}this.merged=r({},c,this.merged,i),this.hasChanged=!1;var j=f&&f(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var o=n[0],l=n[1],i=e[o]||{},a=u.num(l),d=u.str(l)&&!l.startsWith("#")&&!/\d/.test(l)&&!h[l],f=u.arr(l),v=!a&&!f&&!d,k=u.und(c[o])?l:c[o],_=a||f||d?l:1,E=p(s,o);j&&(_=j.animations[o].parent);var C,S=i.parent,w=i.interpolation,I=m(j?_.getPayload():_),x=l;v&&(x=y({range:[0,1],output:[l,l]})(1));var T,N=w&&w.getValue(),L=!u.und(S)&&i.animatedValues.some((function(e){return!e.done})),P=!u.equ(x,N),R=!u.equ(x,i.previous),A=!u.equ(E,i.config);if(g||R&&P||A){var M;if(a||d)S=w=i.parent||new H(k);else if(f)S=w=i.parent||new z(k);else if(v){var D=i.interpolation&&i.interpolation.calc(i.parent.value);D=void 0===D||g?k:D,i.parent?(S=i.parent).setValue(0,!1):S=new H(0);var F={output:[D,l]};i.interpolation?(w=i.interpolation,i.interpolation.updateConfig(F)):w=S.interpolate(F)}return I=m(j?_.getPayload():_),C=m(S.getPayload()),g&&!v&&S.setValue(k,!1),t.hasChanged=!0,C.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=L?e.lastVelocity:void 0,e.lastTime=L?e.lastTime:void 0,e.startTime=B(),e.done=!1,e.animatedStyles.clear()})),p(O,o)&&S.setValue(v?_:l,!1),r({},e,((M={})[o]=r({},i,{name:o,parent:S,interpolation:w,animatedValues:C,toValues:I,previous:x,config:E,fromValues:m(S.getValue()),immediate:p(O,o),initialVelocity:b(E.velocity,0),clamp:b(E.clamp,!1),precision:b(E.precision,.01),tension:b(E.tension,170),friction:b(E.friction,26),mass:b(E.mass,1),duration:E.duration,easing:b(E.easing,(function(e){return e})),decay:E.decay}),M))}return P?e:(v&&(S.setValue(1,!1),w.updateConfig({output:[x,x]})),S.done=!0,t.hasChanged=!0,r({},e,((T={})[o]=r({},e[o],{previous:x}),T)))}),this.animations),this.hasChanged)for(var k in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[k]=this.animations[k].interpolation,this.values[k]=this.animations[k].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),W=function(e,t){var n=l.useRef(!1),o=l.useRef(),r=u.fun(t),c=l.useMemo((function(){var n;return o.current&&(o.current.map((function(e){return e.destroy()})),o.current=void 0),[new Array(e).fill().map((function(e,o){var c=new U,l=r?p(t,o,c):t[o];return 0===o&&(n=l.ref),c.update(l),n||c.start(),c})),n]}),[e]),i=c[0],a=c[1];o.current=i,l.useImperativeHandle(a,(function(){return{start:function(){return Promise.all(o.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return o.current.forEach((function(t){return t.stop(e)}))},get controllers(){return o.current}}}));var s=l.useMemo((function(){return function(e){return o.current.map((function(t,n){t.update(r?p(e,n,t):e[n]),a||t.start()}))}}),[e]);l.useEffect((function(){n.current?r||s(t):a||o.current.forEach((function(e){return e.start()}))})),l.useEffect((function(){return n.current=!0,function(){return o.current.forEach((function(e){return e.destroy()}))}}),[]);var d=o.current.map((function(e){return e.getValues()}));return r?[d,s,function(e){return o.current.forEach((function(t){return t.pause(e)}))}]:d},K=0,$=function(e,t){return("function"==typeof t?e.map(t):m(t)).map(String)},q=function(e){var t=e.items,n=e.keys,o=void 0===n?function(e){return e}:n,l=c(e,["items","keys"]);return t=m(void 0!==t?t:null),r({items:t,keys:$(t,o)},l)};function Y(e,t){var n=function(){if(r){if(c>=o.length)return"break";l=o[c++]}else{if((c=o.next()).done)return"break";l=c.value}var n=l.key,i=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(i),e.current.deleted=e.current.deleted.filter(i))},o=e.current.deleted,r=Array.isArray(o),c=0;for(o=r?o:o[Symbol.iterator]();;){var l;if("break"===n())break}e.current.forceUpdate()}var X=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof O||(t=g.transform(t)),n.payload=t,n}return a(t,e),t}(j),Q={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Z="[-+]?\\d*\\.?\\d+";function J(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+J(Z,Z,Z)),te=new RegExp("rgba"+J(Z,Z,Z,Z)),ne=new RegExp("hsl"+J(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),oe=new RegExp("hsla"+J(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Z)),re=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,le=/^#([0-9a-fA-F]{6})$/,ie=/^#([0-9a-fA-F]{8})$/;function ae(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function se(e,t,n){var o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,c=ae(r,o,e+1/3),l=ae(r,o,e),i=ae(r,o,e-1/3);return Math.round(255*c)<<24|Math.round(255*l)<<16|Math.round(255*i)<<8}function ue(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(e){return(parseFloat(e)%360+360)%360/360}function be(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function me(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){var t,n,o="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=le.exec(t))?parseInt(n[1]+"ff",16)>>>0:Q.hasOwnProperty(t)?Q[t]:(n=ee.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|255)>>>0:(n=te.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|be(n[4]))>>>0:(n=re.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ie.exec(t))?parseInt(n[1],16)>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(de(n[1]),me(n[2]),me(n[3])))>>>0:(n=oe.exec(t))?(se(de(n[1]),me(n[2]),me(n[3]))|be(n[4]))>>>0:null;return null===o?e:"rgba("+((4278190080&(o=o||0))>>>24)+", "+((16711680&o)>>>16)+", "+((65280&o)>>>8)+", "+(255&o)/255+")"}var fe=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ge=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,he=new RegExp("("+Object.keys(Q).join("|")+")","g"),Oe={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ve=["Webkit","Ms","Moz","O"];function je(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Oe.hasOwnProperty(e)&&Oe[e]?(""+t).trim():t+"px"}Oe=Object.keys(Oe).reduce((function(e,t){return ve.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),Oe);var ke={};L((function(e){return new X(e)})),I("div"),S((function(e){var t=e.output.map((function(e){return e.replace(ge,pe)})).map((function(e){return e.replace(he,pe)})),n=t[0].match(fe).map((function(){return[]}));t.forEach((function(e){e.match(fe).forEach((function(e,t){return n[t].push(+e)}))}));var o=t[0].match(fe).map((function(t,o){return F(r({},e,{output:n[o]}))}));return function(e){var n=0;return t[0].replace(fe,(function(){return o[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,o,r){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(o)+", "+r+")"}))}})),_(Q),k((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,o=t.children,r=t.scrollTop,l=t.scrollLeft,i=c(t,["style","children","scrollTop","scrollLeft"]),a="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==r&&(e.scrollTop=r),void 0!==l&&(e.scrollLeft=l),void 0!==o&&(e.textContent=o),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=je(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var b in i){var m=a?b:ke[b]||(ke[b]=b.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(m)&&e.setAttribute(m,i[b])}}),(function(e){return e}));var _e,ye,Ee=(_e=function(e){return l.forwardRef((function(t,n){var o=d(),a=l.useRef(!0),s=l.useRef(null),b=l.useRef(null),m=l.useCallback((function(e){var t=s.current;s.current=new R(e,(function(){b.current&&!1===g.fn(b.current,s.current.getAnimatedValue())&&o()})),t&&t.detach()}),[]);l.useEffect((function(){return function(){a.current=!1,s.current&&s.current.detach()}}),[]),l.useImperativeHandle(n,(function(){return N(b,a,o)})),m(t);var p=s.current.getValue(),f=(p.scrollTop,p.scrollLeft,c(p,["scrollTop","scrollLeft"]));return i.createElement(e,r({},f,{ref:function(e){return b.current=(t=e,(o=n)&&(u.fun(o)?o(t):u.obj(o)&&(o.current=t)),t);var t,o}}))}))},void 0===(ye=!1)&&(ye=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=ye?t[0].toLowerCase()+t.substring(1):t;return e[n]=_e(n),e}),_e)}),Ce=Ee(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=Ee,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=D,t.animated=Ce,t.a=Ce,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=P,t.useSpring=function(e){var t=u.fun(e),n=W(1,t?e:[e]),o=n[0],r=n[1],c=n[2];return t?[o[0],r,c]:o},t.useTrail=function(e,t){var n=l.useRef(!1),o=u.fun(t),c=p(t),i=l.useRef(),a=W(e,(function(e,t){return 0===e&&(i.current=[]),i.current.push(t),r({},c,{config:p(c.config,e),attach:e>0&&function(){return i.current[e-1]}})})),s=a[0],d=a[1],b=a[2],m=l.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var o=e.reverse?t+1:t-1,l=i.current[o];return r({},e,{config:p(e.config||c.config,t),attach:l&&function(){return l}})}))}}),[e,c.reverse]);return l.useEffect((function(){n.current&&!o&&m(t)})),l.useEffect((function(){n.current=!0}),[]),o?[s,m,b]:s},t.useTransition=function(e,t,n){var o=r({items:e,keys:t||function(e){return e}},n),i=q(o),a=i.lazy,s=void 0!==a&&a,u=(i.unique,i.reset),b=void 0!==u&&u,m=(i.enter,i.leave,i.update,i.onDestroyed),f=(i.keys,i.items,i.onFrame),g=i.onRest,h=i.onStart,O=i.ref,v=c(i,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),j=d(),k=l.useRef(!1),_=l.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!o.ref,instances:!k.current&&new Map,forceUpdate:j});return l.useImperativeHandle(o.ref,(function(){return{start:function(){return Promise.all(Array.from(_.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(_.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(_.current.instances).map((function(e){return e[1]}))}}})),_.current=function(e,t){for(var n=e.first,o=e.prevProps,l=c(e,["first","prevProps"]),i=q(t),a=i.items,s=i.keys,u=i.initial,d=i.from,b=i.enter,m=i.leave,f=i.update,g=i.trail,h=void 0===g?0:g,O=i.unique,v=i.config,j=i.order,k=void 0===j?["enter","leave","update"]:j,_=q(o),y=_.keys,E=_.items,C=r({},l.current),S=[].concat(l.deleted),w=Object.keys(C),B=new Set(w),I=new Set(s),x=s.filter((function(e){return!B.has(e)})),T=l.transitions.filter((function(e){return!e.destroyed&&!I.has(e.originalKey)})).map((function(e){return e.originalKey})),N=s.filter((function(e){return B.has(e)})),L=-h;k.length;)switch(k.shift()){case"enter":x.forEach((function(e,t){O&&S.find((function(t){return t.originalKey===e}))&&(S=S.filter((function(t){return t.originalKey!==e})));var o=s.indexOf(e),r=a[o],c=n&&void 0!==u?"initial":"enter";C[e]={slot:c,originalKey:e,key:O?String(e):K++,item:r,trail:L+=h,config:p(v,r,c),from:p(n&&void 0!==u?u||{}:d,r),to:p(b,r)}}));break;case"leave":T.forEach((function(e){var t=y.indexOf(e),n=E[t];S.unshift(r({},C[e],{slot:"leave",destroyed:!0,left:y[Math.max(0,t-1)],right:y[Math.min(y.length,t+1)],trail:L+=h,config:p(v,n,"leave"),to:p(m,n)})),delete C[e]}));break;case"update":N.forEach((function(e){var t=s.indexOf(e),n=a[t];C[e]=r({},C[e],{item:n,slot:"update",trail:L+=h,config:p(v,n,"update"),to:p(f,n)})}))}var P=s.map((function(e){return C[e]}));return S.forEach((function(e){var t,n=e.left,o=(e.right,c(e,["left","right"]));-1!==(t=P.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),P=[].concat(P.slice(0,t),[o],P.slice(t))})),r({},l,{changed:x.length||T.length||N.length,first:n&&0===x.length,transitions:P,current:C,deleted:S,prevProps:t})}(_.current,o),_.current.changed&&_.current.transitions.forEach((function(e){var t=e.slot,n=e.from,o=e.to,c=e.config,l=e.trail,i=e.key,a=e.item;_.current.instances.has(i)||_.current.instances.set(i,new U);var u=_.current.instances.get(i),d=r({},v,{to:o,from:n,config:c,ref:O,onRest:function(n){_.current.mounted&&(e.destroyed&&(O||s||Y(_,i),m&&m(a)),!Array.from(_.current.instances).some((function(e){return!e[1].idle}))&&(O||s)&&_.current.deleted.length>0&&Y(_),g&&g(a,t,n))},onStart:h&&function(){return h(a,t)},onFrame:f&&function(e){return f(a,t,e)},delay:l,reset:b&&"enter"===t});u.update(d),_.current.paused||u.start()})),l.useEffect((function(){return _.current.mounted=k.current=!0,function(){_.current.mounted=k.current=!1,Array.from(_.current.instances).map((function(e){return e[1].destroy()})),_.current.instances.clear()}}),[]),_.current.transitions.map((function(e){var t=e.item,n=e.slot,o=e.key;return{item:t,key:o,state:n,props:_.current.instances.get(o).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var o=l.useRef();l.useEffect((function(){u.equ(e,o.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,o){var c=e.current;if(c){var l=c.controllers;if(l.length){var i=n*t[o];l.forEach((function(e){e.queue=e.queue.map((function(e){return r({},e,{delay:e.delay+i})})),e.start()}))}}})):e.reduce((function(e,t,n){var o=t.current;return e.then((function(){return o.start()}))}),Promise.resolve()),o.current=e}))},t.useSprings=W},109:function(e,t,n){"use strict";var o=n(0);t.a=function({icon:e,size:t=24,...n}){return Object(o.cloneElement)(e,{width:t,height:t,...n})}},110:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=c},113:function(e,t,n){"use strict";e.exports=n(178)},114:function(e,t){e.exports=window.wp.wordcount},117:function(e,t){e.exports=window.wp.shortcode},12:function(e,t){e.exports=window.React},124:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=c},125:function(e,t,n){"use strict";var o=n(126);function r(){}function c(){}c.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,c,l){if(l!==o){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:r};return n.PropTypes=n,n}},126:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},13:function(e,t){e.exports=window.wp.keycodes},141:function(e,t){e.exports=window.wp.tokenList},146:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=c},147:function(e,t,n){var o=n(176);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},148:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=c},149:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=c},16:function(e,t){e.exports=window.wp.richText},163:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},173:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));t.a=c},174:function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},175:function(e,t){e.exports=function(e,t){if(null==e)return{};var n,o,r={},c=Object.keys(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||(r[n]=e[n]);return r},e.exports.default=e.exports,e.exports.__esModule=!0},176:function(e,t){function n(t,o){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,o)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},177:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},178:function(e,t,n){"use strict";var o=n(179);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=o.getWindow(t));var r=n.allowHorizontalScroll,c=n.onlyScrollIfNeeded,l=n.alignWithTop,i=n.alignWithLeft,a=n.offsetTop||0,s=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;r=void 0===r||r;var b=o.isWindow(t),m=!(!b||!t.frameElement),p=o.offset(e),f=o.outerHeight(e),g=o.outerWidth(e),h=void 0,O=void 0,v=void 0,j=void 0,k=void 0,_=void 0,y=void 0,E=void 0,C=void 0,S=void 0;m&&(t=t.document.scrollingElement||t.document.body),b||m?(y=t,S=o.height(y),C=o.width(y),E={left:o.scrollLeft(y),top:o.scrollTop(y)},k={left:p.left-E.left-s,top:p.top-E.top-a},_={left:p.left+g-(E.left+C)+d,top:p.top+f-(E.top+S)+u},j=E):(h=o.offset(t),O=t.clientHeight,v=t.clientWidth,j={left:t.scrollLeft,top:t.scrollTop},k={left:p.left-(h.left+(parseFloat(o.css(t,"borderLeftWidth"))||0))-s,top:p.top-(h.top+(parseFloat(o.css(t,"borderTopWidth"))||0))-a},_={left:p.left+g-(h.left+v+(parseFloat(o.css(t,"borderRightWidth"))||0))+d,top:p.top+f-(h.top+O+(parseFloat(o.css(t,"borderBottomWidth"))||0))+u}),k.top<0||_.top>0?!0===l?o.scrollTop(t,j.top+k.top):!1===l?o.scrollTop(t,j.top+_.top):k.top<0?o.scrollTop(t,j.top+k.top):o.scrollTop(t,j.top+_.top):c||((l=void 0===l||!!l)?o.scrollTop(t,j.top+k.top):o.scrollTop(t,j.top+_.top)),r&&(k.left<0||_.left>0?!0===i?o.scrollLeft(t,j.left+k.left):!1===i?o.scrollLeft(t,j.left+_.left):k.left<0?o.scrollLeft(t,j.left+k.left):o.scrollLeft(t,j.left+_.left):c||((i=void 0===i||!!i)?o.scrollLeft(t,j.left+k.left):o.scrollLeft(t,j.left+_.left)))}},179:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function c(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],o="scroll"+(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function l(e){return c(e)}function i(e){return c(e,!0)}function a(e){var t=function(e){var t,n=void 0,o=void 0,r=e.ownerDocument,c=r.body,l=r&&r.documentElement;return n=(t=e.getBoundingClientRect()).left,o=t.top,{left:n-=l.clientLeft||c.clientLeft||0,top:o-=l.clientTop||c.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=l(o),t.top+=i(o),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),u=/^(top|right|bottom|left)$/,d="left",b=void 0;function m(e,t){for(var n=0;n<e.length;n++)t(e[n])}function p(e){return"border-box"===b(e,"boxSizing")}"undefined"!=typeof window&&(b=window.getComputedStyle?function(e,t,n){var o="",r=e.ownerDocument,c=n||r.defaultView.getComputedStyle(e,null);return c&&(o=c.getPropertyValue(t)||c[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(s.test(n)&&!u.test(t)){var o=e.style,r=o[d],c=e.runtimeStyle[d];e.runtimeStyle[d]=e.currentStyle[d],o[d]="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o[d]=r,e.runtimeStyle[d]=c}return""===n?"auto":n});var f=["margin","border","padding"];function g(e,t,n){var o={},r=e.style,c=void 0;for(c in t)t.hasOwnProperty(c)&&(o[c]=r[c],r[c]=t[c]);for(c in n.call(e),t)t.hasOwnProperty(c)&&(r[c]=o[c])}function h(e,t,n){var o=0,r=void 0,c=void 0,l=void 0;for(c=0;c<t.length;c++)if(r=t[c])for(l=0;l<n.length;l++){var i;i="border"===r?r+n[l]+"Width":r+n[l],o+=parseFloat(b(e,i))||0}return o}function O(e){return null!=e&&e==e.window}var v={};function j(e,t,n){if(O(e))return"width"===t?v.viewportWidth(e):v.viewportHeight(e);if(9===e.nodeType)return"width"===t?v.docWidth(e):v.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],r="width"===t?e.offsetWidth:e.offsetHeight,c=(b(e),p(e)),l=0;(null==r||r<=0)&&(r=void 0,(null==(l=b(e,t))||Number(l)<0)&&(l=e.style[t]||0),l=parseFloat(l)||0),void 0===n&&(n=c?1:-1);var i=void 0!==r||c,a=r||l;if(-1===n)return i?a-h(e,["border","padding"],o):l;if(i){var s=2===n?-h(e,["border"],o):h(e,["margin"],o);return a+(1===n?0:s)}return l+h(e,f.slice(n),o)}m(["Width","Height"],(function(e){v["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],v["viewport"+e](n))},v["viewport"+e]=function(t){var n="client"+e,o=t.document,r=o.body,c=o.documentElement[n];return"CSS1Compat"===o.compatMode&&c||r&&r[n]||c}}));var k={position:"absolute",visibility:"hidden",display:"block"};function _(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=j.apply(void 0,n):g(e,k,(function(){t=j.apply(void 0,n)})),t}function y(e,t,n){var o=n;if("object"!==(void 0===t?"undefined":r(t)))return void 0!==o?("number"==typeof o&&(o+="px"),void(e.style[t]=o)):b(e,t);for(var c in t)t.hasOwnProperty(c)&&y(e,c,t[c])}m(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);v["outer"+t]=function(t,n){return t&&_(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];v[e]=function(t,o){return void 0===o?t&&_(t,e,-1):t?(b(t),p(t)&&(o+=h(t,["padding","border"],n)),y(t,e,o)):void 0}})),e.exports=o({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return a(e);!function(e,t){"static"===y(e,"position")&&(e.style.position="relative");var n=a(e),o={},r=void 0,c=void 0;for(c in t)t.hasOwnProperty(c)&&(r=parseFloat(y(e,c))||0,o[c]=r+t[c]-n[c]);y(e,o)}(e,t)},isWindow:O,each:m,css:y,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(O(e)){if(void 0===t)return l(e);window.scrollTo(t,i(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(O(e)){if(void 0===t)return i(e);window.scrollTo(l(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},v)},180:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},l=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n};t.__esModule=!0;var i=n(12),a=n(22),s=n(181),u=n(182),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,o=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||o?setTimeout((function(){return e.textarea&&s(e.textarea)})):this.textarea&&s(this.textarea),this.textarea&&this.textarea.addEventListener("autosize:resized",this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener("autosize:resized",this.onResize),s.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),o=(t.onChange,t.style),r=(t.innerRef,t.children),a=l(t,["onResize","maxRows","onChange","style","innerRef","children"]),s=this.state.lineHeight,u=n&&s?s*n:null;return i.createElement("textarea",c({},a,{onChange:this.onChange,style:u?c({},o,{maxHeight:u}):o,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),r)},t.prototype.componentDidUpdate=function(){this.textarea&&s.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:a.number,maxRows:a.number,onResize:a.func,innerRef:a.any,async:a.bool},t}(i.Component);t.TextareaAutosize=i.forwardRef((function(e,t){return i.createElement(d,c({},e,{innerRef:t}))}))},181:function(e,t,n){var o,r;void 0===(r="function"==typeof(o=function(e,t){"use strict";var n,o,r="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o.splice(t,1))}}),c=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){c=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function l(e){var t=r.get(e);t&&t.destroy()}function i(e){var t=r.get(e);t&&t.update()}var a=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((a=function(e){return e}).destroy=function(e){return e},a.update=function(e){return e}):((a=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!r.has(e)){var t,n=null,o=null,l=null,i=function(){e.clientWidth!==o&&d()},a=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",a,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),r.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:a,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",o=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o<t?"hidden"===n.overflowY&&(s("scroll"),u(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),u(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),l!==o){l=o;var r=c("autosize:resized");try{e.dispatchEvent(r)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e},a.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e}),t.default=a,e.exports=t.default})?o.apply(t,[e,t]):o)||(e.exports=r)},182:function(e,t,n){var o=n(183);e.exports=function(e){var t=o(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=o(e,"line-height"),n=parseFloat(t,10),r?e.style.lineHeight=r:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var c=e.nodeName,l=document.createElement(c);l.innerHTML="&nbsp;","TEXTAREA"===c.toUpperCase()&&l.setAttribute("rows","1");var i=o(e,"font-size");l.style.fontSize=i,l.style.padding="0px",l.style.border="0px";var a=document.body;a.appendChild(l),n=l.offsetHeight,a.removeChild(l)}return n}},183:function(e,t){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},184:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{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"}));t.a=c},185:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=c},19:function(e,t){e.exports=window.wp.url},197:function(e,t,n){"use strict";var o=n(0),r=n(6),c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=c},2:function(e,t){e.exports=window.lodash},20:function(e,t){e.exports=window.wp.hooks},206:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=c},207:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=c},208:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=c},209:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(o.createElement)(r.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"}));t.a=c},21:function(e,t){e.exports=window.wp.dom},210:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=c},22:function(e,t,n){e.exports=n(125)()},24:function(e,t){e.exports=window.wp.deprecated},25:function(e,t){e.exports=window.wp.keyboardShortcuts},255:function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return r.diff(e,t,n)},t.characterDiff=void 0;var r=new(((o=n(284))&&o.__esModule?o:{default:o}).default);t.characterDiff=r},256:function(e,t,n){"use strict";t.match=function(e,t){return a(e).some((function(e){var n=e.inverse,o="all"===e.type||t.type===e.type;if(o&&n||!o&&!n)return!1;var r=e.expressions.every((function(e){var n=e.feature,o=e.modifier,r=e.value,c=t[n];if(!c)return!1;switch(n){case"orientation":case"scan":return c.toLowerCase()===r.toLowerCase();case"width":case"height":case"device-width":case"device-height":r=d(r),c=d(c);break;case"resolution":r=u(r),c=u(c);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":r=s(r),c=s(c);break;case"grid":case"color":case"color-index":case"monochrome":r=parseInt(r,10)||1,c=parseInt(c,10)||0}switch(o){case"min":return c>=r;case"max":return c<=r;default:return c===r}}));return r&&!n||!r&&n}))},t.parse=a;var o=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,c=/^(?:(min|max)-)?(.+)/,l=/(em|rem|px|cm|mm|in|pt|pc)?$/,i=/(dpi|dpcm|dppx)?$/;function a(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(o),n=t[1],l=t[2],i=t[3]||"",a={};return a.inverse=!!n&&"not"===n.toLowerCase(),a.type=l?l.toLowerCase():"all",i=i.match(/\([^\)]+\)/g)||[],a.expressions=i.map((function(e){var t=e.match(r),n=t[1].toLowerCase().match(c);return{modifier:n[1],feature:n[2],value:t[2]}})),a}))}function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function u(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function d(e){var t=parseFloat(e);switch(String(e).match(l)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},257:function(e,t){var n=e.exports=function(e){return new o(e)};function o(e){this.value=e}function r(e,t,n){var o=[],r=[],i=!0;return function e(d){var b=n?c(d):d,m={},p=!0,f={node:b,node_:d,path:[].concat(o),parent:r[r.length-1],parents:r,key:o.slice(-1)[0],isRoot:0===o.length,level:o.length,circular:null,update:function(e,t){f.isRoot||(f.parent.node[f.key]=e),f.node=e,t&&(p=!1)},delete:function(e){delete f.parent.node[f.key],e&&(p=!1)},remove:function(e){a(f.parent.node)?f.parent.node.splice(f.key,1):delete f.parent.node[f.key],e&&(p=!1)},keys:null,before:function(e){m.before=e},after:function(e){m.after=e},pre:function(e){m.pre=e},post:function(e){m.post=e},stop:function(){i=!1},block:function(){p=!1}};if(!i)return f;function g(){if("object"==typeof f.node&&null!==f.node){f.keys&&f.node_===f.node||(f.keys=l(f.node)),f.isLeaf=0==f.keys.length;for(var e=0;e<r.length;e++)if(r[e].node_===d){f.circular=r[e];break}}else f.isLeaf=!0,f.keys=null;f.notLeaf=!f.isLeaf,f.notRoot=!f.isRoot}g();var h=t.call(f,f.node);return void 0!==h&&f.update&&f.update(h),m.before&&m.before.call(f,f.node),p?("object"!=typeof f.node||null===f.node||f.circular||(r.push(f),g(),s(f.keys,(function(t,r){o.push(t),m.pre&&m.pre.call(f,f.node[t],t);var c=e(f.node[t]);n&&u.call(f.node,t)&&(f.node[t]=c.node),c.isLast=r==f.keys.length-1,c.isFirst=0==r,m.post&&m.post.call(f,c),o.pop()})),r.pop()),m.after&&m.after.call(f,f.node),f):f}(e).node}function c(e){if("object"==typeof e&&null!==e){var t;if(a(e))t=[];else if("[object Date]"===i(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===i(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===i(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===i(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===i(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===i(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},o=function(){};o.prototype=n,t=new o}return s(l(e),(function(n){t[n]=e[n]})),t}return e}o.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!u.call(t,o)){t=void 0;break}t=t[o]}return t},o.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!u.call(t,o))return!1;t=t[o]}return!0},o.prototype.set=function(e,t){for(var n=this.value,o=0;o<e.length-1;o++){var r=e[o];u.call(n,r)||(n[r]={}),n=n[r]}return n[e[o]]=t,t},o.prototype.map=function(e){return r(this.value,e,!0)},o.prototype.forEach=function(e){return this.value=r(this.value,e,!1),this.value},o.prototype.reduce=function(e,t){var n=1===arguments.length,o=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(o=e.call(this,o,t))})),o},o.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},o.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},o.prototype.clone=function(){var e=[],t=[];return function n(o){for(var r=0;r<e.length;r++)if(e[r]===o)return t[r];if("object"==typeof o&&null!==o){var i=c(o);return e.push(o),t.push(i),s(l(o),(function(e){i[e]=n(o[e])})),e.pop(),t.pop(),i}return o}(this.value)};var l=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function i(e){return Object.prototype.toString.call(e)}var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};s(l(o.prototype),(function(e){n[e]=function(t){var n=[].slice.call(arguments,1),r=new o(t);return r[e].apply(r,n)}}));var u=Object.hasOwnProperty||function(e,t){return t in e}},279:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"}));t.a=c},28:function(e,t){e.exports=window.wp.notices},280:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},281:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=c},282:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=c},283:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=c},284:function(e,t,n){"use strict";function o(){}function r(e,t,n,o,r){for(var c=0,l=t.length,i=0,a=0;c<l;c++){var s=t[c];if(s.removed){if(s.value=e.join(o.slice(a,a+s.count)),a+=s.count,c&&t[c-1].added){var u=t[c-1];t[c-1]=t[c],t[c]=u}}else{if(!s.added&&r){var d=n.slice(i,i+s.count);d=d.map((function(e,t){var n=o[a+t];return n.length>e.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(i,i+s.count));i+=s.count,s.added||(a+=s.count)}}var b=t[l-1];return l>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[l-2].value+=b.value,t.pop()),t}function c(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,o.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.callback;"function"==typeof n&&(o=n,n={}),this.options=n;var l=this;function i(e){return o?(setTimeout((function(){o(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var a=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=a+s,b=[{newPos:-1,components:[]}],m=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=a&&m+1>=s)return i([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var o=void 0,d=b[n-1],m=b[n+1],p=(m?m.newPos:0)-n;d&&(b[n-1]=void 0);var f=d&&d.newPos+1<a,g=m&&0<=p&&p<s;if(f||g){if(!f||g&&d.newPos<m.newPos?(o=c(m),l.pushComponent(o.components,void 0,!0)):((o=d).newPos++,l.pushComponent(o.components,!0,void 0)),p=l.extractCommon(o,t,e,n),o.newPos+1>=a&&p+1>=s)return i(r(l,o.components,t,e,l.useLongestToken));b[n]=o}else b[n]=void 0}u++}if(o)!function e(){setTimeout((function(){if(u>d)return o();p()||e()}),0)}();else for(;u<=d;){var f=p();if(f)return f}},pushComponent:function(e,t,n){var o=e[e.length-1];o&&o.added===t&&o.removed===n?e[e.length-1]={count:o.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,o){for(var r=t.length,c=n.length,l=e.newPos,i=l-o,a=0;l+1<r&&i+1<c&&this.equals(t[l+1],n[i+1]);)l++,i++,a++;return a&&e.components.push({count:a}),e.newPos=l,i},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},285:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"}));t.a=c},286:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));t.a=c},287:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{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"}));t.a=c},29:function(e,t,n){"use strict";var o,r;function c(e){return[e]}function l(){var e={clear:function(){e.head=null}};return e}function i(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}o={},r="undefined"!=typeof WeakMap,t.a=function(e,t){var n,a;function s(){n=r?new WeakMap:l()}function u(){var n,o,r,c,l,s=arguments.length;for(c=new Array(s),r=0;r<s;r++)c[r]=arguments[r];for(l=t.apply(null,c),(n=a(l)).isUniqueByDependants||(n.lastDependants&&!i(l,n.lastDependants,0)&&n.clear(),n.lastDependants=l),o=n.head;o;){if(i(o.args,c,1))return o!==n.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=n.head,o.prev=null,n.head.prev=o,n.head=o),o.val;o=o.next}return o={val:e.apply(null,c)},c[0]=null,o.args=c,n.head&&(n.head.prev=o,o.next=n.head),n.head=o,o.val}return t||(t=c),a=r?function(e){var t,r,c,i,a,s=n,u=!0;for(t=0;t<e.length;t++){if(!(a=r=e[t])||"object"!=typeof a){u=!1;break}s.has(r)?s=s.get(r):(c=new WeakMap,s.set(r,c),s=c)}return s.has(o)||((i=l()).isUniqueByDependants=u,s.set(o,i)),s.get(o)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},3:function(e,t){e.exports=window.wp.components},30:function(e,t){e.exports=window.wp.a11y},32:function(e,t){e.exports=window.wp.blob},35:function(e,t,n){var o;!function(r){var c=/^\s+/,l=/\s+$/,i=0,a=r.round,s=r.min,u=r.max,d=r.random;function b(e,t){if(t=t||{},(e=e||"")instanceof b)return e;if(!(this instanceof b))return new b(e,t);var n=function(e){var t,n,o,i={r:0,g:0,b:0},a=1,d=null,b=null,m=null,p=!1,f=!1;return"string"==typeof e&&(e=function(e){e=e.replace(c,"").replace(l,"").toLowerCase();var t,n=!1;if(x[e])e=x[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=G.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=G.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=G.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=G.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=G.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=G.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=G.hex8.exec(e))?{r:R(t[1]),g:R(t[2]),b:R(t[3]),a:F(t[4]),format:n?"name":"hex8"}:(t=G.hex6.exec(e))?{r:R(t[1]),g:R(t[2]),b:R(t[3]),format:n?"name":"hex"}:(t=G.hex4.exec(e))?{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=G.hex3.exec(e))&&{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==typeof e&&(U(e.r)&&U(e.g)&&U(e.b)?(t=e.r,n=e.g,o=e.b,i={r:255*L(t,255),g:255*L(n,255),b:255*L(o,255)},p=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):U(e.h)&&U(e.s)&&U(e.v)?(d=M(e.s),b=M(e.v),i=function(e,t,n){e=6*L(e,360),t=L(t,100),n=L(n,100);var o=r.floor(e),c=e-o,l=n*(1-t),i=n*(1-c*t),a=n*(1-(1-c)*t),s=o%6;return{r:255*[n,i,l,l,a,n][s],g:255*[a,n,n,i,l,l][s],b:255*[l,l,a,n,n,i][s]}}(e.h,d,b),p=!0,f="hsv"):U(e.h)&&U(e.s)&&U(e.l)&&(d=M(e.s),m=M(e.l),i=function(e,t,n){var o,r,c;function l(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=L(e,360),t=L(t,100),n=L(n,100),0===t)o=r=c=n;else{var i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;o=l(a,i,e+1/3),r=l(a,i,e),c=l(a,i,e-1/3)}return{r:255*o,g:255*r,b:255*c}}(e.h,d,m),p=!0,f="hsl"),e.hasOwnProperty("a")&&(a=e.a)),a=N(a),{ok:p,format:e.format||f,r:s(255,u(i.r,0)),g:s(255,u(i.g,0)),b:s(255,u(i.b,0)),a:a}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=a(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=n.ok,this._tc_id=i++}function m(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);var o,r,c=u(e,t,n),l=s(e,t,n),i=(c+l)/2;if(c==l)o=r=0;else{var a=c-l;switch(r=i>.5?a/(2-c-l):a/(c+l),c){case e:o=(t-n)/a+(t<n?6:0);break;case t:o=(n-e)/a+2;break;case n:o=(e-t)/a+4}o/=6}return{h:o,s:r,l:i}}function p(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);var o,r,c=u(e,t,n),l=s(e,t,n),i=c,a=c-l;if(r=0===c?0:a/c,c==l)o=0;else{switch(c){case e:o=(t-n)/a+(t<n?6:0);break;case t:o=(n-e)/a+2;break;case n:o=(e-t)/a+4}o/=6}return{h:o,s:r,v:i}}function f(e,t,n,o){var r=[A(a(e).toString(16)),A(a(t).toString(16)),A(a(n).toString(16))];return o&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function g(e,t,n,o){return[A(D(o)),A(a(e).toString(16)),A(a(t).toString(16)),A(a(n).toString(16))].join("")}function h(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s-=t/100,n.s=P(n.s),b(n)}function O(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s+=t/100,n.s=P(n.s),b(n)}function v(e){return b(e).desaturate(100)}function j(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l+=t/100,n.l=P(n.l),b(n)}function k(e,t){t=0===t?0:t||10;var n=b(e).toRgb();return n.r=u(0,s(255,n.r-a(-t/100*255))),n.g=u(0,s(255,n.g-a(-t/100*255))),n.b=u(0,s(255,n.b-a(-t/100*255))),b(n)}function _(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l-=t/100,n.l=P(n.l),b(n)}function y(e,t){var n=b(e).toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,b(n)}function E(e){var t=b(e).toHsl();return t.h=(t.h+180)%360,b(t)}function C(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+120)%360,s:t.s,l:t.l}),b({h:(n+240)%360,s:t.s,l:t.l})]}function S(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+90)%360,s:t.s,l:t.l}),b({h:(n+180)%360,s:t.s,l:t.l}),b({h:(n+270)%360,s:t.s,l:t.l})]}function w(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+72)%360,s:t.s,l:t.l}),b({h:(n+216)%360,s:t.s,l:t.l})]}function B(e,t,n){t=t||6,n=n||30;var o=b(e).toHsl(),r=360/n,c=[b(e)];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,c.push(b(o));return c}function I(e,t){t=t||6;for(var n=b(e).toHsv(),o=n.h,r=n.s,c=n.v,l=[],i=1/t;t--;)l.push(b({h:o,s:r,v:c})),c=(c+i)%1;return l}b.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,o=this.toRgb();return e=o.r/255,t=o.g/255,n=o.b/255,.2126*(e<=.03928?e/12.92:r.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:r.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:r.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=N(e),this._roundA=a(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=a(360*e.h),n=a(100*e.s),o=a(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+o+"%)":"hsva("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var e=m(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=m(this._r,this._g,this._b),t=a(360*e.h),n=a(100*e.s),o=a(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+o+"%)":"hsla("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(e){return f(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,o,r){var c=[A(a(e).toString(16)),A(a(t).toString(16)),A(a(n).toString(16)),A(D(o))];return r&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1)?c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0):c.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(100*L(this._r,255))+"%",g:a(100*L(this._g,255))+"%",b:a(100*L(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+a(100*L(this._r,255))+"%, "+a(100*L(this._g,255))+"%, "+a(100*L(this._b,255))+"%)":"rgba("+a(100*L(this._r,255))+"%, "+a(100*L(this._g,255))+"%, "+a(100*L(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[f(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var r=b(e);n="#"+g(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,o=this._a<1&&this._a>=0;return t||!o||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return b(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(h,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(y,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(B,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},b.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]="a"===o?e[o]:M(e[o]));e=n}return b(e,t)},b.equals=function(e,t){return!(!e||!t)&&b(e).toRgbString()==b(t).toRgbString()},b.random=function(){return b.fromRatio({r:d(),g:d(),b:d()})},b.mix=function(e,t,n){n=0===n?0:n||50;var o=b(e).toRgb(),r=b(t).toRgb(),c=n/100;return b({r:(r.r-o.r)*c+o.r,g:(r.g-o.g)*c+o.g,b:(r.b-o.b)*c+o.b,a:(r.a-o.a)*c+o.a})},b.readability=function(e,t){var n=b(e),o=b(t);return(r.max(n.getLuminance(),o.getLuminance())+.05)/(r.min(n.getLuminance(),o.getLuminance())+.05)},b.isReadable=function(e,t,n){var o,r,c,l,i,a=b.readability(e,t);switch(r=!1,(c=n,"AA"!==(l=((c=c||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==l&&(l="AA"),"small"!==(i=(c.size||"small").toLowerCase())&&"large"!==i&&(i="small"),o={level:l,size:i}).level+o.size){case"AAsmall":case"AAAlarge":r=a>=4.5;break;case"AAlarge":r=a>=3;break;case"AAAsmall":r=a>=7}return r},b.mostReadable=function(e,t,n){var o,r,c,l,i=null,a=0;r=(n=n||{}).includeFallbackColors,c=n.level,l=n.size;for(var s=0;s<t.length;s++)(o=b.readability(e,t[s]))>a&&(a=o,i=b(t[s]));return b.isReadable(e,i,{level:c,size:l})||!r?i:(n.includeFallbackColors=!1,b.mostReadable(e,["#fff","#000"],n))};var x=b.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T=b.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function N(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function L(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),r.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function P(e){return s(1,u(0,e))}function R(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function D(e){return r.round(255*parseFloat(e)).toString(16)}function F(e){return R(e)/255}var V,H,z,G=(H="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",z="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(e){return!!G.CSS_UNIT.exec(e)}e.exports?e.exports=b:void 0===(o=function(){return b}.call(t,n,t,e))||(e.exports=o)}(Math)},39:function(e,t){e.exports=window.wp.htmlEntities},396:function(e,t,n){"use strict";n.r(t),n.d(t,"__experimentalGetBorderClassesAndStyles",(function(){return tl})),n.d(t,"__experimentalUseBorderProps",(function(){return nl})),n.d(t,"__experimentalGetColorClassesAndStyles",(function(){return rl})),n.d(t,"__experimentalUseColorProps",(function(){return cl})),n.d(t,"__experimentalUseCustomSides",(function(){return Pc})),n.d(t,"getColorClassName",(function(){return Po})),n.d(t,"getColorObjectByAttributeValues",(function(){return No})),n.d(t,"getColorObjectByColorValue",(function(){return Lo})),n.d(t,"createCustomColorsHOC",(function(){return al})),n.d(t,"withColors",(function(){return sl})),n.d(t,"__experimentalGetGradientClass",(function(){return Ao})),n.d(t,"getGradientValueBySlug",(function(){return Mo})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return Do})),n.d(t,"getGradientSlugByValue",(function(){return Fo})),n.d(t,"__experimentalUseGradient",(function(){return Vo})),n.d(t,"getFontSize",(function(){return dc})),n.d(t,"getFontSizeClass",(function(){return mc})),n.d(t,"getFontSizeObjectByValue",(function(){return bc})),n.d(t,"FontSizePicker",(function(){return pc})),n.d(t,"withFontSizes",(function(){return dl})),n.d(t,"AlignmentControl",(function(){return Ol})),n.d(t,"AlignmentToolbar",(function(){return vl})),n.d(t,"Autocomplete",(function(){return Ml})),n.d(t,"BlockAlignmentControl",(function(){return io})),n.d(t,"BlockAlignmentToolbar",(function(){return ao})),n.d(t,"__experimentalBlockFullHeightAligmentControl",(function(){return Fl})),n.d(t,"__experimentalBlockAlignmentMatrixControl",(function(){return Vl})),n.d(t,"BlockBreadcrumb",(function(){return Gl})),n.d(t,"BlockContextProvider",(function(){return Wl})),n.d(t,"BlockControls",(function(){return Gn})),n.d(t,"BlockFormatControls",(function(){return zn})),n.d(t,"BlockColorsStyleSelector",(function(){return Xl})),n.d(t,"BlockEdit",(function(){return Jl})),n.d(t,"useBlockEditContext",(function(){return O})),n.d(t,"BlockIcon",(function(){return Ll})),n.d(t,"BlockNavigationDropdown",(function(){return Gu})),n.d(t,"__experimentalBlockNavigationBlockFill",(function(){return Nu})),n.d(t,"__experimentalBlockNavigationEditor",(function(){return ad})),n.d(t,"__experimentalBlockNavigationTree",(function(){return Hu})),n.d(t,"__experimentalBlockVariationPicker",(function(){return ud})),n.d(t,"__experimentalBlockPatternSetup",(function(){return Od})),n.d(t,"__experimentalBlockVariationTransforms",(function(){return jd})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return Bd})),n.d(t,"BlockVerticalAlignmentControl",(function(){return wd})),n.d(t,"__experimentalBorderStyleControl",(function(){return nr})),n.d(t,"ButtonBlockerAppender",(function(){return Ja})),n.d(t,"ButtonBlockAppender",(function(){return es})),n.d(t,"ColorPalette",(function(){return xd})),n.d(t,"ColorPaletteControl",(function(){return Td})),n.d(t,"ContrastChecker",(function(){return hr})),n.d(t,"__experimentalDuotoneControl",(function(){return Uc})),n.d(t,"__experimentalGradientPicker",(function(){return Pd})),n.d(t,"__experimentalGradientPickerControl",(function(){return Rd})),n.d(t,"__experimentalGradientPickerPanel",(function(){return Ad})),n.d(t,"__experimentalFontAppearanceControl",(function(){return tc})),n.d(t,"__experimentalFontFamilyControl",(function(){return lc})),n.d(t,"__experimentalLetterSpacingControl",(function(){return vc})),n.d(t,"__experimentalColorGradientControl",(function(){return $o})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return fr})),n.d(t,"__experimentalImageSizeControl",(function(){return Dd})),n.d(t,"InnerBlocks",(function(){return Yd})),n.d(t,"__experimentalUseInnerBlocksProps",(function(){return qd})),n.d(t,"InspectorAdvancedControls",(function(){return Oo})),n.d(t,"InspectorControls",(function(){return _o})),n.d(t,"JustifyToolbar",(function(){return ob})),n.d(t,"JustifyContentControl",(function(){return nb})),n.d(t,"__experimentalLinkControl",(function(){return Eb})),n.d(t,"__experimentalLinkControlSearchInput",(function(){return Ob})),n.d(t,"__experimentalLinkControlSearchResults",(function(){return bb})),n.d(t,"__experimentalLinkControlSearchItem",(function(){return db})),n.d(t,"LineHeightControl",(function(){return Xr})),n.d(t,"MediaReplaceFlow",(function(){return Ib})),n.d(t,"MediaPlaceholder",(function(){return Rb})),n.d(t,"MediaUpload",(function(){return wb})),n.d(t,"MediaUploadCheck",(function(){return Bb})),n.d(t,"PanelColorSettings",(function(){return Ab})),n.d(t,"PlainText",(function(){return Fb})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return Hb})),n.d(t,"RichText",(function(){return id})),n.d(t,"RichTextShortcut",(function(){return zb})),n.d(t,"RichTextToolbarButton",(function(){return Gb})),n.d(t,"__unstableRichTextInputEvent",(function(){return Ub})),n.d(t,"ToolSelector",(function(){return Kb})),n.d(t,"__experimentalUnitControl",(function(){return $b})),n.d(t,"URLInput",(function(){return ab})),n.d(t,"URLInputButton",(function(){return Qb})),n.d(t,"URLPopover",(function(){return Lb})),n.d(t,"__experimentalImageURLInputUI",(function(){return tm})),n.d(t,"withColorContext",(function(){return Id})),n.d(t,"__unstableBlockSettingsMenuFirstItem",(function(){return qs})),n.d(t,"__unstableInserterMenuExtension",(function(){return Fa})),n.d(t,"__experimentalPreviewOptions",(function(){return om})),n.d(t,"__experimentalUseResizeCanvas",(function(){return um})),n.d(t,"BlockInspector",(function(){return hm})),n.d(t,"BlockList",(function(){return fu})),n.d(t,"useBlockProps",(function(){return vu})),n.d(t,"__experimentalLayoutStyle",(function(){return eo})),n.d(t,"BlockMover",(function(){return Os})),n.d(t,"BlockPreview",(function(){return ua})),n.d(t,"BlockSelectionClearer",(function(){return bu})),n.d(t,"__unstableUseBlockSelectionClearer",(function(){return du})),n.d(t,"BlockSettingsMenu",(function(){return ou})),n.d(t,"BlockSettingsMenuControls",(function(){return Js})),n.d(t,"BlockTitle",(function(){return zl})),n.d(t,"BlockToolbar",(function(){return ru})),n.d(t,"BlockTools",(function(){return Om})),n.d(t,"CopyHandler",(function(){return zs})),n.d(t,"__unstableUseClipboardHandler",(function(){return Hs})),n.d(t,"DefaultBlockAppender",(function(){return Qa})),n.d(t,"__unstableEditorStyles",(function(){return Mm})),n.d(t,"Inserter",(function(){return Xa})),n.d(t,"__experimentalLibrary",(function(){return Dm})),n.d(t,"__experimentalSearchForm",(function(){return oa})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return Vm})),n.d(t,"MultiSelectScrollIntoView",(function(){return Hm})),n.d(t,"NavigableToolbar",(function(){return hs})),n.d(t,"ObserveTyping",(function(){return Wm})),n.d(t,"__unstableUseTypingObserver",(function(){return Um})),n.d(t,"__unstableUseMouseMoveTypingReset",(function(){return Gm})),n.d(t,"PreserveScrollInReorder",(function(){return Km})),n.d(t,"SkipToSelectedBlock",(function(){return dm})),n.d(t,"Typewriter",(function(){return Xm})),n.d(t,"__unstableUseTypewriter",(function(){return Ym})),n.d(t,"Warning",(function(){return ki})),n.d(t,"WritingFlow",(function(){return cp})),n.d(t,"__unstableUseCanvasClickRedirect",(function(){return ip})),n.d(t,"useBlockDisplayInformation",(function(){return Hl})),n.d(t,"__unstableIframe",(function(){return up})),n.d(t,"__experimentalUseNoRecursiveRenders",(function(){return bp})),n.d(t,"BlockEditorProvider",(function(){return la})),n.d(t,"__experimentalUseSimulatedMediaQuery",(function(){return sm})),n.d(t,"useSetting",(function(){return Io})),n.d(t,"transformStyles",(function(){return Rm})),n.d(t,"validateThemeColors",(function(){return mp})),n.d(t,"validateThemeGradients",(function(){return pp})),n.d(t,"__experimentalGetMatchingVariation",(function(){return vd})),n.d(t,"storeConfig",(function(){return Rn})),n.d(t,"store",(function(){return An})),n.d(t,"SETTINGS_DEFAULTS",(function(){return k}));var o={};n.r(o),n.d(o,"getBlockName",(function(){return M})),n.d(o,"isBlockValid",(function(){return D})),n.d(o,"getBlockAttributes",(function(){return F})),n.d(o,"getBlock",(function(){return V})),n.d(o,"__unstableGetBlockWithoutInnerBlocks",(function(){return H})),n.d(o,"getBlocks",(function(){return z})),n.d(o,"__unstableGetBlockWithBlockTree",(function(){return G})),n.d(o,"__unstableGetBlockTree",(function(){return U})),n.d(o,"__unstableGetClientIdWithClientIdsTree",(function(){return W})),n.d(o,"__unstableGetClientIdsTree",(function(){return K})),n.d(o,"getClientIdsOfDescendants",(function(){return $})),n.d(o,"getClientIdsWithDescendants",(function(){return q})),n.d(o,"getGlobalBlockCount",(function(){return Y})),n.d(o,"getBlocksByClientId",(function(){return X})),n.d(o,"getBlockCount",(function(){return Q})),n.d(o,"getSelectionStart",(function(){return Z})),n.d(o,"getSelectionEnd",(function(){return J})),n.d(o,"getBlockSelectionStart",(function(){return ee})),n.d(o,"getBlockSelectionEnd",(function(){return te})),n.d(o,"getSelectedBlockCount",(function(){return ne})),n.d(o,"hasSelectedBlock",(function(){return oe})),n.d(o,"getSelectedBlockClientId",(function(){return re})),n.d(o,"getSelectedBlock",(function(){return ce})),n.d(o,"getBlockRootClientId",(function(){return le})),n.d(o,"getBlockParents",(function(){return ie})),n.d(o,"getBlockParentsByBlockName",(function(){return ae})),n.d(o,"getBlockHierarchyRootClientId",(function(){return se})),n.d(o,"getLowestCommonAncestorWithSelectedBlock",(function(){return ue})),n.d(o,"getAdjacentBlockClientId",(function(){return de})),n.d(o,"getPreviousBlockClientId",(function(){return be})),n.d(o,"getNextBlockClientId",(function(){return me})),n.d(o,"getSelectedBlocksInitialCaretPosition",(function(){return pe})),n.d(o,"getSelectedBlockClientIds",(function(){return fe})),n.d(o,"getMultiSelectedBlockClientIds",(function(){return ge})),n.d(o,"getMultiSelectedBlocks",(function(){return he})),n.d(o,"getFirstMultiSelectedBlockClientId",(function(){return Oe})),n.d(o,"getLastMultiSelectedBlockClientId",(function(){return ve})),n.d(o,"isFirstMultiSelectedBlock",(function(){return je})),n.d(o,"isBlockMultiSelected",(function(){return ke})),n.d(o,"isAncestorMultiSelected",(function(){return _e})),n.d(o,"getMultiSelectedBlocksStartClientId",(function(){return ye})),n.d(o,"getMultiSelectedBlocksEndClientId",(function(){return Ee})),n.d(o,"getBlockOrder",(function(){return Ce})),n.d(o,"getBlockIndex",(function(){return Se})),n.d(o,"isBlockSelected",(function(){return we})),n.d(o,"hasSelectedInnerBlock",(function(){return Be})),n.d(o,"isBlockWithinSelection",(function(){return Ie})),n.d(o,"hasMultiSelection",(function(){return xe})),n.d(o,"isMultiSelecting",(function(){return Te})),n.d(o,"isSelectionEnabled",(function(){return Ne})),n.d(o,"getBlockMode",(function(){return Le})),n.d(o,"isTyping",(function(){return Pe})),n.d(o,"isDraggingBlocks",(function(){return Re})),n.d(o,"getDraggedBlockClientIds",(function(){return Ae})),n.d(o,"isBlockBeingDragged",(function(){return Me})),n.d(o,"isAncestorBeingDragged",(function(){return De})),n.d(o,"isCaretWithinFormattedText",(function(){return Fe})),n.d(o,"getBlockInsertionPoint",(function(){return Ve})),n.d(o,"isBlockInsertionPointVisible",(function(){return He})),n.d(o,"isValidTemplate",(function(){return ze})),n.d(o,"getTemplate",(function(){return Ge})),n.d(o,"getTemplateLock",(function(){return Ue})),n.d(o,"canInsertBlockType",(function(){return $e})),n.d(o,"canInsertBlocks",(function(){return qe})),n.d(o,"getInserterItems",(function(){return et})),n.d(o,"getBlockTransformItems",(function(){return tt})),n.d(o,"hasInserterItems",(function(){return nt})),n.d(o,"__experimentalGetAllowedBlocks",(function(){return ot})),n.d(o,"__experimentalGetParsedPattern",(function(){return rt})),n.d(o,"__experimentalGetAllowedPatterns",(function(){return lt})),n.d(o,"__experimentalGetPatternsByBlockTypes",(function(){return it})),n.d(o,"__experimentalGetPatternTransformItems",(function(){return at})),n.d(o,"getBlockListSettings",(function(){return st})),n.d(o,"getSettings",(function(){return ut})),n.d(o,"isLastBlockChangePersistent",(function(){return dt})),n.d(o,"__experimentalGetBlockListSettingsForBlocks",(function(){return bt})),n.d(o,"__experimentalGetParsedReusableBlock",(function(){return mt})),n.d(o,"__experimentalGetReusableBlockTitle",(function(){return pt})),n.d(o,"__unstableIsLastBlockChangeIgnored",(function(){return ft})),n.d(o,"__experimentalGetLastBlockAttributeChanges",(function(){return gt})),n.d(o,"isNavigationMode",(function(){return Ot})),n.d(o,"hasBlockMovingClientId",(function(){return vt})),n.d(o,"didAutomaticChange",(function(){return jt})),n.d(o,"isBlockHighlighted",(function(){return kt})),n.d(o,"areInnerBlocksControlled",(function(){return _t})),n.d(o,"__experimentalGetActiveBlockIdByBlockNames",(function(){return yt})),n.d(o,"wasBlockJustInserted",(function(){return Et}));var r={};n.r(r),n.d(r,"resetBlocks",(function(){return Tt})),n.d(r,"validateBlocksToTemplate",(function(){return Nt})),n.d(r,"resetSelection",(function(){return Lt})),n.d(r,"receiveBlocks",(function(){return Pt})),n.d(r,"updateBlockAttributes",(function(){return Rt})),n.d(r,"updateBlock",(function(){return At})),n.d(r,"selectBlock",(function(){return Mt})),n.d(r,"selectPreviousBlock",(function(){return Dt})),n.d(r,"selectNextBlock",(function(){return Ft})),n.d(r,"startMultiSelect",(function(){return Vt})),n.d(r,"stopMultiSelect",(function(){return Ht})),n.d(r,"multiSelect",(function(){return zt})),n.d(r,"clearSelectedBlock",(function(){return Gt})),n.d(r,"toggleSelection",(function(){return Ut})),n.d(r,"replaceBlocks",(function(){return Kt})),n.d(r,"replaceBlock",(function(){return $t})),n.d(r,"moveBlocksDown",(function(){return Yt})),n.d(r,"moveBlocksUp",(function(){return Xt})),n.d(r,"moveBlocksToPosition",(function(){return Qt})),n.d(r,"moveBlockToPosition",(function(){return Zt})),n.d(r,"insertBlock",(function(){return Jt})),n.d(r,"insertBlocks",(function(){return en})),n.d(r,"showInsertionPoint",(function(){return tn})),n.d(r,"hideInsertionPoint",(function(){return nn})),n.d(r,"setTemplateValidity",(function(){return on})),n.d(r,"synchronizeTemplate",(function(){return rn})),n.d(r,"mergeBlocks",(function(){return cn})),n.d(r,"removeBlocks",(function(){return ln})),n.d(r,"removeBlock",(function(){return an})),n.d(r,"replaceInnerBlocks",(function(){return sn})),n.d(r,"toggleBlockMode",(function(){return un})),n.d(r,"startTyping",(function(){return dn})),n.d(r,"stopTyping",(function(){return bn})),n.d(r,"startDraggingBlocks",(function(){return mn})),n.d(r,"stopDraggingBlocks",(function(){return pn})),n.d(r,"enterFormattedText",(function(){return fn})),n.d(r,"exitFormattedText",(function(){return gn})),n.d(r,"selectionChange",(function(){return hn})),n.d(r,"insertDefaultBlock",(function(){return On})),n.d(r,"updateBlockListSettings",(function(){return vn})),n.d(r,"updateSettings",(function(){return jn})),n.d(r,"__unstableSaveReusableBlock",(function(){return kn})),n.d(r,"__unstableMarkLastChangeAsPersistent",(function(){return yn})),n.d(r,"__unstableMarkNextChangeAsNotPersistent",(function(){return En})),n.d(r,"__unstableMarkAutomaticChange",(function(){return Cn})),n.d(r,"__unstableMarkAutomaticChangeFinal",(function(){return Sn})),n.d(r,"setNavigationMode",(function(){return wn})),n.d(r,"setBlockMovingClientId",(function(){return Bn})),n.d(r,"duplicateBlocks",(function(){return In})),n.d(r,"insertBeforeBlock",(function(){return xn})),n.d(r,"insertAfterBlock",(function(){return Tn})),n.d(r,"toggleBlockHighlight",(function(){return Nn})),n.d(r,"flashBlock",(function(){return Ln})),n.d(r,"setHasControlledInnerBlocks",(function(){return Pn}));var c=n(16),l=n(7),i=n(0),a=n(10),s=n.n(a),u=n(2),d=n(9),b=n(20),m=n(8),p=n(3),f=n(4);const g=Object(i.createContext)({name:"",isSelected:!1,clientId:null}),{Provider:h}=g;function O(){return Object(i.useContext)(g)}var v=n(1);const j={insertUsage:{}},k={alignWide:!1,supportsLayout:!0,colors:[{name:Object(v.__)("Black"),slug:"black",color:"#000000"},{name:Object(v.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(v.__)("White"),slug:"white",color:"#ffffff"},{name:Object(v.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(v.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(v.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(v.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(v.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(v.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(v.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(v.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(v.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(v._x)("Small","font size name"),size:13,slug:"small"},{name:Object(v._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(v._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(v._x)("Large","font size name"),size:36,slug:"large"},{name:Object(v._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:Object(v.__)("Thumbnail")},{slug:"medium",name:Object(v.__)("Medium")},{slug:"large",name:Object(v.__)("Large")},{slug:"full",name:Object(v.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],gradients:[{name:Object(v.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(v.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(v.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(v.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(v.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(v.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(v.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(v.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(v.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(v.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(v.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(v.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function _(e,t,n){return[...e.slice(0,n),...Object(u.castArray)(t),...e.slice(n)]}function y(e,t,n,o=1){const r=[...e];return r.splice(t,o),_(r,e.slice(t,t+o),n)}function E(e,t=""){const n={[t]:[]};return e.forEach(e=>{const{clientId:o,innerBlocks:r}=e;n[t].push(o),Object.assign(n,E(r,o))}),n}function C(e,t=""){return e.reduce((e,n)=>Object.assign(e,{[n.clientId]:t},C(n.innerBlocks,n.clientId)),{})}function S(e,t=u.identity){const n={},o=[...e];for(;o.length;){const{innerBlocks:e,...r}=o.shift();o.push(...e),n[r.clientId]=t(r)}return n}function w(e){return S(e,e=>Object(u.omit)(e,"attributes"))}function B(e){return S(e,e=>e.attributes)}function I(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(u.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,o=t.attributes,Object(u.isEqual)(Object(u.keys)(n),Object(u.keys)(o)));var n,o}const x=e=>e.reduce((e,t)=>(e[t]={},e),{}),T=Object(u.flow)(f.combineReducers,e=>(t,n)=>{if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){const{id:e,updatedId:o}=n;if(e===o)return t;(t={...t}).attributes=Object(u.mapValues)(t.attributes,(n,r)=>{const{name:c}=t.byClientId[r];return"core/block"===c&&n.ref===e?{...n,ref:o}:n})}return e(t,n)},e=>(t={},n)=>{const o=e(t,n);if(o===t)return t;o.cache=t.cache?t.cache:{};const r=e=>e.reduce((e,n)=>{let o=n;do{e.push(o),o=t.parents[o]}while(o&&!t.controlledInnerBlocks[o]);return e},[]);switch(n.type){case"RESET_BLOCKS":o.cache=Object(u.mapValues)(S(n.blocks),()=>({}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const e=Object(u.keys)(S(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&e.push(n.rootClientId),o.cache={...o.cache,...x(r(e))};break}case"UPDATE_BLOCK":o.cache={...o.cache,...x(r([n.clientId]))};break;case"UPDATE_BLOCK_ATTRIBUTES":o.cache={...o.cache,...x(r(n.clientIds))};break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=x(r(n.replacedClientIds));o.cache={...Object(u.omit)(o.cache,n.replacedClientIds),...Object(u.omit)(e,n.replacedClientIds),...x(Object(u.keys)(S(n.blocks)))};break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":o.cache={...Object(u.omit)(o.cache,n.removedClientIds),...x(Object(u.difference)(r(n.clientIds),n.clientIds))};break;case"MOVE_BLOCKS_TO_POSITION":{const e=[...n.clientIds];n.fromRootClientId&&e.push(n.fromRootClientId),n.toRootClientId&&e.push(n.toRootClientId),o.cache={...o.cache,...x(r(e))};break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[];n.rootClientId&&e.push(n.rootClientId),o.cache={...o.cache,...x(r(e))};break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=Object(u.keys)(Object(u.omitBy)(o.attributes,(e,t)=>"core/block"!==o.byClientId[t].name||e.ref!==n.updatedId));o.cache={...o.cache,...x(r(e))}}}return o},e=>(t,n)=>{const o=e=>{let o=e;for(let r=0;r<o.length;r++)!t.order[o[r]]||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[o[r]]||(o===e&&(o=[...o]),o.push(...t.order[o[r]]));return o};if(t)switch(n.type){case"REMOVE_BLOCKS":n={...n,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:o(n.clientIds)};break;case"REPLACE_BLOCKS":n={...n,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:o(n.clientIds)}}return e(t,n)},e=>(t,n)=>{if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);const o={};if(Object.keys(t.controlledInnerBlocks).length){const e=[...n.blocks];for(;e.length;){const{innerBlocks:n,...r}=e.shift();e.push(...n),t.controlledInnerBlocks[r.clientId]&&(o[r.clientId]=!0)}}let r=t;t.order[n.rootClientId]&&(r=e(r,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order[n.rootClientId]}));let c=r;return n.blocks.length&&(c=e(c,{...n,type:"INSERT_BLOCKS",index:0}),c.order={...c.order,...Object(u.reduce)(o,(e,n,o)=>(t.order[o]&&(e[o]=t.order[o]),e),{})}),c},e=>(t,n)=>{if(t&&"RESET_BLOCKS"===n.type){const e=function e(t,n="",o={}){return Object(u.reduce)(t[n],(n,r)=>o[r]?n:[...n,r,...e(t,r)],[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(u.pickBy)(t.controlledInnerBlocks));return{...t,byClientId:{...Object(u.omit)(t.byClientId,e),...w(n.blocks)},attributes:{...Object(u.omit)(t.attributes,e),...B(n.blocks)},order:{...Object(u.omit)(t.order,e),...Object(u.omit)(E(n.blocks),o)},parents:{...Object(u.omit)(t.parents,e),...C(n.blocks)},cache:{...Object(u.omit)(t.cache,e),...Object(u.omit)(Object(u.mapValues)(S(n.blocks),()=>({})),o)}}}return e(t,n)},(function(e){let t,n=!1;return(o,r)=>{let c=e(o,r);const l="MARK_LAST_CHANGE_AS_PERSISTENT"===r.type||n;if(o===c&&!l){var i;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type;const e=null===(i=null==o?void 0:o.isPersistentChange)||void 0===i||i;return o.isPersistentChange===e?o:{...c,isPersistentChange:e}}return c={...c,isPersistentChange:l?!n:!I(r,t)},t=r,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type,c}}),(function(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,o)=>{const r=e(n,o);return r!==n&&(r.isIgnoredChange=t.has(o.type)),r}}))({byClientId(e={},t){switch(t.type){case"RESET_BLOCKS":return w(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...w(t.blocks)};case"UPDATE_BLOCK":if(!e[t.clientId])return e;const n=Object(u.omit)(t.updates,"attributes");return Object(u.isEmpty)(n)?e:{...e,[t.clientId]:{...e[t.clientId],...n}};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...Object(u.omit)(e,t.replacedClientIds),...w(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(u.omit)(e,t.removedClientIds)}return e},attributes(e={},t){switch(t.type){case"RESET_BLOCKS":return B(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...B(t.blocks)};case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?{...e,[t.clientId]:{...e[t.clientId],...t.updates.attributes}}:e;case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every(t=>!e[t]))return e;const n=t.clientIds.reduce((n,o)=>({...n,[o]:Object(u.reduce)(t.uniqueByBlock?t.attributes[o]:t.attributes,(t,n,r)=>{var c,l;return n!==t[r]&&((t=(c=e[o])===(l=t)?{...c}:l)[r]=n),t},e[o])}),{});return t.clientIds.every(t=>n[t]===e[t])?e:{...e,...n}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...Object(u.omit)(e,t.replacedClientIds),...B(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(u.omit)(e,t.removedClientIds)}return e},order(e={},t){switch(t.type){case"RESET_BLOCKS":return E(t.blocks);case"RECEIVE_BLOCKS":return{...e,...Object(u.omit)(E(t.blocks),"")};case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e[n]||[],r=E(t.blocks,n),{index:c=o.length}=t;return{...e,...r,[n]:_(o,r[n],c)}}case"MOVE_BLOCKS_TO_POSITION":{const{fromRootClientId:n="",toRootClientId:o="",clientIds:r}=t,{index:c=e[o].length}=t;if(n===o){const t=e[o].indexOf(r[0]);return{...e,[o]:y(e[o],t,c,r.length)}}return{...e,[n]:Object(u.without)(e[n],...r),[o]:_(e[o],r,c)}}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,r=Object(u.first)(n),c=e[o];if(!c.length||r===Object(u.first)(c))return e;const l=c.indexOf(r);return{...e,[o]:y(c,l,l-1,n.length)}}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,r=Object(u.first)(n),c=Object(u.last)(n),l=e[o];if(!l.length||c===Object(u.last)(l))return e;const i=l.indexOf(r);return{...e,[o]:y(l,i,i+1,n.length)}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const o=E(t.blocks);return Object(u.flow)([e=>Object(u.omit)(e,t.replacedClientIds),e=>({...e,...Object(u.omit)(o,"")}),e=>Object(u.mapValues)(e,e=>Object(u.reduce)(e,(e,t)=>t===n[0]?[...e,...o[""]]:(-1===n.indexOf(t)&&e.push(t),e),[]))])(e)}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(u.flow)([e=>Object(u.omit)(e,t.removedClientIds),e=>Object(u.mapValues)(e,e=>Object(u.without)(e,...t.removedClientIds))])(e)}return e},parents(e={},t){switch(t.type){case"RESET_BLOCKS":return C(t.blocks);case"RECEIVE_BLOCKS":return{...e,...C(t.blocks)};case"INSERT_BLOCKS":return{...e,...C(t.blocks,t.rootClientId||"")};case"MOVE_BLOCKS_TO_POSITION":return{...e,...t.clientIds.reduce((e,n)=>(e[n]=t.toRootClientId||"",e),{})};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return{...Object(u.omit)(e,t.replacedClientIds),...C(t.blocks,e[t.clientIds[0]])};case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(u.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks:(e={},{type:t,clientId:n,hasControlledInnerBlocks:o})=>"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:o}:e});function N(e={},t){switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":{if(-1===t.clientIds.indexOf(e.clientId))return e;const n=t.indexToSelect||t.blocks.length-1,o=t.blocks[n];return o?o.clientId===e.clientId?e:{clientId:o.clientId}:{}}}return e}var L=Object(f.combineReducers)({blocks:T,isTyping:function(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(e=!1,t){switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selection:function(e={},t){var n,o;switch(t.type){case"SELECTION_CHANGE":return{selectionStart:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},selectionEnd:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}};case"RESET_SELECTION":const{selectionStart:r,selectionEnd:c}=t;return{selectionStart:r,selectionEnd:c};case"MULTI_SELECT":const{start:l,end:i}=t;return{selectionStart:{clientId:l},selectionEnd:{clientId:i}};case"RESET_BLOCKS":const a=null==e||null===(n=e.selectionStart)||void 0===n?void 0:n.clientId,s=null==e||null===(o=e.selectionEnd)||void 0===o?void 0:o.clientId;if(!a&&!s)return e;if(!t.blocks.some(e=>e.clientId===a))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some(e=>e.clientId===s))return{...e,selectionEnd:e.selectionStart}}return{selectionStart:N(e.selectionStart,t),selectionEnd:N(e.selectionEnd,t)}},isMultiSelecting:function(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(e=!0,t){switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(e=null,t){return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(e={},t){if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:(e={},t)=>{switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(u.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId:n}=t;return t.settings?Object(u.isEqual)(e[n],t.settings)?e:{...e,[n]:t.settings}:e.hasOwnProperty(n)?Object(u.omit)(e,n):e}}return e},insertionPoint:function(e=null,t){switch(t.type){case"SHOW_INSERTION_POINT":const{rootClientId:e,index:n,__unstableWithInserter:o}=t;return{rootClientId:e,index:n,__unstableWithInserter:o};case"HIDE_INSERTION_POINT":return null}return e},template:function(e={isValid:!0},t){switch(t.type){case"SET_TEMPLATE_VALIDITY":return{...e,isValid:t.isValid}}return e},settings:function(e=k,t){switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings}}return e},preferences:function(e=j,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((e,n)=>{const{attributes:o,name:r}=n,c=Object(f.select)(m.store).getActiveBlockVariation(r,o);let l=null!=c&&c.name?`${r}/${c.name}`:r;const i={name:l};return"core/block"===r&&(i.ref=o.ref,l+="/"+o.ref),{...e,insertUsage:{...e.insertUsage,[l]:{time:t.time,count:e.insertUsage[l]?e.insertUsage[l].count+1:1,insert:i}}}},e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((e,n)=>({...e,[n]:t.uniqueByBlock?t.attributes[n]:t.attributes}),{})}return null},isNavigationMode:function(e=!1,t){return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},hasBlockMovingClientId:function(e=null,t){return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_NAVIGATION_MODE"===t.type?null:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"START_TYPING":case"STOP_TYPING":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(e={},t){var n;switch(t.type){case"INSERT_BLOCKS":return t.blocks.length?{clientId:t.blocks[0].clientId,source:null===(n=t.meta)||void 0===n?void 0:n.source}:e;case"RESET_BLOCKS":return{}}return e}}),P=n(29);const R=Object(i.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(p.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(i.createElement)(p.G,null,Object(i.createElement)(p.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"}))),A=[];function M(e,t){const n=e.blocks.byClientId[t];if("web"!==i.Platform.OS&&"core/social-link"===(null==n?void 0:n.name)){const n=e.blocks.attributes[t],{service:o}=n;return o?"core/social-link-"+o:"core/social-link"}return n?n.name:null}function D(e,t){const n=e.blocks.byClientId[t];return!!n&&n.isValid}function F(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}const V=Object(P.a)((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:F(e,t),innerBlocks:_t(e,t)?A:z(e,t)}:null},(e,t)=>[e.blocks.cache[t]]),H=Object(P.a)((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:F(e,t)}:null},(e,t)=>[e.blocks.byClientId[t],e.blocks.attributes[t]]),z=Object(P.a)((e,t)=>Object(u.map)(Ce(e,t),t=>V(e,t)),(e,t)=>Object(u.map)(e.blocks.order[t||""],t=>e.blocks.cache[t])),G=Object(P.a)((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:F(e,t),innerBlocks:U(e,t)}:null},e=>[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]),U=Object(P.a)((e,t="")=>Object(u.map)(Ce(e,t),t=>G(e,t)),e=>[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]),W=Object(P.a)((e,t)=>({clientId:t,innerBlocks:K(e,t)}),e=>[e.blocks.order]),K=Object(P.a)((e,t="")=>Object(u.map)(Ce(e,t),t=>W(e,t)),e=>[e.blocks.order]),$=(e,t)=>Object(u.flatMap)(t,t=>{const n=Ce(e,t);return[...n,...$(e,n)]}),q=Object(P.a)(e=>{const t=Ce(e);return[...t,...$(e,t)]},e=>[e.blocks.order]),Y=Object(P.a)((e,t)=>{const n=q(e);return t?Object(u.reduce)(n,(n,o)=>e.blocks.byClientId[o].name===t?n+1:n,0):n.length},e=>[e.blocks.order,e.blocks.byClientId]),X=Object(P.a)((e,t)=>Object(u.map)(Object(u.castArray)(t),t=>V(e,t)),e=>[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]);function Q(e,t){return Ce(e,t).length}function Z(e){return e.selection.selectionStart}function J(e){return e.selection.selectionEnd}function ee(e){return e.selection.selectionStart.clientId}function te(e){return e.selection.selectionEnd.clientId}function ne(e){return ge(e).length||(e.selection.selectionStart.clientId?1:0)}function oe(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function re(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function ce(e){const t=re(e);return t?V(e,t):null}function le(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}const ie=Object(P.a)((e,t,n=!1)=>{const o=[];let r=t;for(;e.blocks.parents[r];)r=e.blocks.parents[r],o.push(r);return n?o:o.reverse()},e=>[e.blocks.parents]),ae=Object(P.a)((e,t,n,o=!1)=>{const r=ie(e,t,o);return Object(u.map)(Object(u.filter)(Object(u.map)(r,t=>({id:t,name:M(e,t)})),({name:e})=>Array.isArray(n)?n.includes(e):e===n),({id:e})=>e)},e=>[e.blocks.parents]);function se(e,t){let n,o=t;do{n=o,o=e.blocks.parents[o]}while(o);return n}function ue(e,t){const n=re(e),o=[...ie(e,t),t],r=[...ie(e,n),n];let c;const l=Math.min(o.length,r.length);for(let e=0;e<l&&o[e]===r[e];e++)c=o[e];return c}function de(e,t,n=1){if(void 0===t&&(t=re(e)),void 0===t&&(t=n<0?Oe(e):ve(e)),!t)return null;const o=le(e,t);if(null===o)return null;const{order:r}=e.blocks,c=r[o],l=c.indexOf(t)+1*n;return l<0||l===c.length?null:c[l]}function be(e,t){return de(e,t,-1)}function me(e,t){return de(e,t,1)}function pe(e){return e.initialPosition}const fe=Object(P.a)(e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(void 0===t.clientId||void 0===n.clientId)return A;if(t.clientId===n.clientId)return[t.clientId];const o=le(e,t.clientId);if(null===o)return A;const r=Ce(e,o),c=r.indexOf(t.clientId),l=r.indexOf(n.clientId);return c>l?r.slice(l,c+1):r.slice(c,l+1)},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function ge(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?A:fe(e)}const he=Object(P.a)(e=>{const t=ge(e);return t.length?t.map(t=>V(e,t)):A},e=>[...fe.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]);function Oe(e){return Object(u.first)(ge(e))||null}function ve(e){return Object(u.last)(ge(e))||null}function je(e,t){return Oe(e)===t}function ke(e,t){return-1!==ge(e).indexOf(t)}const _e=Object(P.a)((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=le(e,n),o=ke(e,n);return o},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function ye(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function Ee(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function Ce(e,t){return e.blocks.order[t||""]||A}function Se(e,t,n){return Ce(e,n).indexOf(t)}function we(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function Be(e,t,n=!1){return Object(u.some)(Ce(e,t),t=>we(e,t)||ke(e,t)||n&&Be(e,t,n))}function Ie(e,t){if(!t)return!1;const n=ge(e),o=n.indexOf(t);return o>-1&&o<n.length-1}function xe(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function Te(e){return e.isMultiSelecting}function Ne(e){return e.isSelectionEnabled}function Le(e,t){return e.blocksMode[t]||"visual"}function Pe(e){return e.isTyping}function Re(e){return!!e.draggedBlocks.length}function Ae(e){return e.draggedBlocks}function Me(e,t){return e.draggedBlocks.includes(t)}function De(e,t){if(!Re(e))return!1;const n=ie(e,t);return Object(u.some)(n,t=>Me(e,t))}function Fe(e){return e.isCaretWithinFormattedText}function Ve(e){let t,n;const{insertionPoint:o,selection:{selectionEnd:r}}=e;if(null!==o)return o;const{clientId:c}=r;return c?(t=le(e,c)||void 0,n=Se(e,r.clientId,t)+1):n=Ce(e).length,{rootClientId:t,index:n}}function He(e){const t=e.insertionPoint;return!!e.insertionPoint&&!Ue(e,t.rootClientId)}function ze(e){return e.template.isValid}function Ge(e){return e.settings.template}function Ue(e,t){if(!t)return e.settings.templateLock;const n=st(e,t);return n?n.templateLock:null}const We=(e,t,n=null)=>Object(u.isBoolean)(e)?e:Object(u.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n,Ke=(e,t,n=null)=>{let o;if(t&&"object"==typeof t?(o=t,t=o.name):o=Object(m.getBlockType)(t),!o)return!1;const{allowedBlockTypes:r}=ut(e);if(!We(r,t,!0))return!1;if(Ue(e,n))return!1;const c=st(e,n);if(n&&void 0===c)return!1;const l=null==c?void 0:c.allowedBlocks,i=We(l,t),a=o.parent,s=M(e,n),u=We(a,s);return null!==i&&null!==u?i||u:null!==i?i:null===u||u},$e=Object(P.a)(Ke,(e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]);function qe(e,t,n=null){return t.every(t=>$e(e,M(e,t),n))}function Ye(e,t){var n,o;return null!==(n=null===(o=e.preferences.insertUsage)||void 0===o?void 0:o[t])&&void 0!==n?n:null}const Xe=(e,t,n)=>!!Object(m.hasBlockSupport)(t,"inserter",!0)&&Ke(e,t.name,n),Qe=(e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:c=0}=Ye(e,o)||{};return{...t,id:o,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:{...t.initialAttributes,...n.attributes},innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:Ze(r,c)}},Ze=(e,t)=>{if(!e)return t;const n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},Je=(e,{buildScope:t="inserter"})=>n=>{const o=n.name;let r=!1;Object(m.hasBlockSupport)(n.name,"multiple",!0)||(r=Object(u.some)(X(e,q(e)),{name:n.name}));const{time:c,count:l=0}=Ye(e,o)||{},i={id:o,name:n.name,title:n.title,icon:n.icon,isDisabled:r,frecency:Ze(c,l)};if("transform"===t)return i;const a=n.variations.filter(({scope:e})=>!e||e.includes("inserter"));return{...i,initialAttributes:{},description:n.description,category:n.category,keywords:n.keywords,variations:a,example:n.example,utility:1}},et=Object(P.a)((e,t=null)=>{const n=Je(e,{buildScope:"inserter"}),o=Object(m.getBlockTypes)().filter(n=>Xe(e,n,t)).map(n),r=Ke(e,"core/block",t)?ht(e).map(t=>{const n="core/block/"+t.id,o=mt(e,t.id);let r;1===o.length&&(r=Object(m.getBlockType)(o[0].name));const{time:c,count:l=0}=Ye(e,n)||{},i=Ze(c,l);return{id:n,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:r?r.icon:R,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:i}}):[],c=o.filter(({variations:e=[]})=>!e.some(({isDefault:e})=>e)),l=[];for(const t of o){const{variations:n=[]}=t;if(n.length){const o=Qe(e,t);l.push(...n.map(o))}}return[...[...c,...l].sort((e,t)=>{const n=e.name.startsWith("core/"),o=t.name.startsWith("core/");return n&&o?0:n&&!o?-1:1}),...r]},(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,ht(e),Object(m.getBlockTypes)()]),tt=Object(P.a)((e,t,n=null)=>{const o=Je(e,{buildScope:"transform"}),r=Object(m.getBlockTypes)().filter(t=>Xe(e,t,n)).map(o),c=Object(u.mapKeys)(r,({name:e})=>e),l=Object(m.getPossibleBlockTransformations)(t).reduce((e,t)=>(c[null==t?void 0:t.name]&&e.push(c[t.name]),e),[]);return Object(u.orderBy)(l,e=>c[e.name].frecency,"desc")},(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Object(m.getBlockTypes)()]),nt=Object(P.a)((e,t=null)=>!!Object(u.some)(Object(m.getBlockTypes)(),n=>Xe(e,n,t))||Ke(e,"core/block",t)&&ht(e).length>0,(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,ht(e),Object(m.getBlockTypes)()]),ot=Object(P.a)((e,t=null)=>{if(t)return Object(u.filter)(Object(m.getBlockTypes)(),n=>Xe(e,n,t))},(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(m.getBlockTypes)()]),rt=Object(P.a)((e,t)=>{const n=e.settings.__experimentalBlockPatterns.find(({name:e})=>e===t);return n?{...n,blocks:Object(m.parse)(n.content)}:null},e=>[e.settings.__experimentalBlockPatterns]),ct=Object(P.a)(e=>{const t=e.settings.__experimentalBlockPatterns,{allowedBlockTypes:n}=ut(e);return t.map(({name:t})=>rt(e,t)).filter(({blocks:e})=>((e,t)=>{if(Object(u.isBoolean)(t))return t;const n=[...e];for(;n.length>0;){var o;const e=n.shift();if(!We(t,e.name||e.blockName,!0))return!1;null===(o=e.innerBlocks)||void 0===o||o.forEach(e=>{n.push(e)})}return!0})(e,n))},e=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes]),lt=Object(P.a)((e,t=null)=>{const n=ct(e);return Object(u.filter)(n,({blocks:n})=>n.every(({name:n})=>$e(e,n,t)))},(e,t)=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId[t]]),it=Object(P.a)((e,t,n=null)=>{if(!t)return A;const o=lt(e,n),r=Array.isArray(t)?t:[t];return o.filter(e=>{var t,n;return null==e||null===(t=e.blockTypes)||void 0===t||null===(n=t.some)||void 0===n?void 0:n.call(t,e=>r.includes(e))})},(e,t)=>[...lt.getDependants(e,t)]),at=Object(P.a)((e,t,n=null)=>{if(!t)return A;if(t.some(({clientId:t,innerBlocks:n})=>n.length||_t(e,t)))return A;const o=Array.from(new Set(t.map(({name:e})=>e)));return it(e,o,n)},(e,t)=>[...it.getDependants(e,t)]);function st(e,t){return e.blockListSettings[t]}function ut(e){return e.settings}function dt(e){return e.blocks.isPersistentChange}const bt=Object(P.a)((e,t=[])=>t.reduce((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t,{}),e=>[e.blockListSettings]),mt=Object(P.a)((e,t)=>{const n=Object(u.find)(ht(e),e=>e.id===t);return n?Object(m.parse)("string"==typeof n.content.raw?n.content.raw:n.content):null},e=>[ht(e)]),pt=Object(P.a)((e,t)=>{var n;const o=Object(u.find)(ht(e),e=>e.id===t);return o?null===(n=o.title)||void 0===n?void 0:n.raw:null},e=>[ht(e)]);function ft(e){return e.blocks.isIgnoredChange}function gt(e){return e.lastBlockAttributesChange}function ht(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:A}function Ot(e){return e.isNavigationMode}function vt(e){return e.hasBlockMovingClientId}function jt(e){return!!e.automaticChangeStatus}function kt(e,t){return e.highlightedBlock===t}function _t(e,t){return!!e.blocks.controlledInnerBlocks[t]}const yt=Object(P.a)((e,t)=>{if(!t.length)return null;const n=re(e);if(t.includes(M(e,n)))return n;const o=ge(e),r=ae(e,n||o[0],t);return r?Object(u.last)(r):null},(e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]);function Et(e,t,n){const{lastBlockInserted:o}=e;return o.clientId===t&&o.source===n}var Ct=n(30),St=n(24),wt=n.n(St),Bt={SLEEP:({duration:e})=>new Promise(t=>{setTimeout(t,e)}),MARK_AUTOMATIC_CHANGE_FINAL_CONTROL:Object(f.createRegistryControl)(e=>()=>{const{requestIdleCallback:t=(e=>setTimeout(e,100))}=window;t(()=>e.dispatch(An).__unstableMarkAutomaticChangeFinal())})};const It="core/block-editor";function*xt(){if(0===(yield f.controls.select(It,"getBlockCount")))return yield On()}function*Tt(e){return yield{type:"RESET_BLOCKS",blocks:e},yield*Nt(e)}function*Nt(e){const t=yield f.controls.select(It,"getTemplate"),n=yield f.controls.select(It,"getTemplateLock"),o=!t||"all"!==n||Object(m.doBlocksMatchTemplate)(e,t);if(o!==(yield f.controls.select(It,"isValidTemplate")))return yield on(o),o}function Lt(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function Pt(e){return{type:"RECEIVE_BLOCKS",blocks:e}}function Rt(e,t,n=!1){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:Object(u.castArray)(e),attributes:t,uniqueByBlock:n}}function At(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function Mt(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function*Dt(e){const t=yield f.controls.select(It,"getPreviousBlockClientId",e);if(t)return yield Mt(t,-1),[t]}function*Ft(e){const t=yield f.controls.select(It,"getNextBlockClientId",e);if(t)return yield Mt(t),[t]}function Vt(){return{type:"START_MULTI_SELECT"}}function Ht(){return{type:"STOP_MULTI_SELECT"}}function*zt(e,t){if((yield f.controls.select(It,"getBlockRootClientId",e))!==(yield f.controls.select(It,"getBlockRootClientId",t)))return;yield{type:"MULTI_SELECT",start:e,end:t};const n=yield f.controls.select(It,"getSelectedBlockCount");Object(Ct.speak)(Object(v.sprintf)(
2
  /* translators: %s: number of selected blocks */
3
- Object(v._n)("%s block selected.","%s blocks selected.",n),n),"assertive")}function Gt(){return{type:"CLEAR_SELECTED_BLOCK"}}function Ut(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function Wt(e,t){var n,o;const r=null!==(n=null==t||null===(o=t.__experimentalPreferredStyleVariations)||void 0===o?void 0:o.value)&&void 0!==n?n:{};return e.map(e=>{var t;const n=e.name;if(!Object(m.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!r[n])return e;const o=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null!=o&&o.includes("is-style-"))return e;const{attributes:c={}}=e,l=r[n];return{...e,attributes:{...c,className:`${o||""} is-style-${l}`.trim()}}})}function*Kt(e,t,n,o=0,r){e=Object(u.castArray)(e),t=Wt(Object(u.castArray)(t),yield f.controls.select(It,"getSettings"));const c=yield f.controls.select(It,"getBlockRootClientId",Object(u.first)(e));for(let e=0;e<t.length;e++){const n=t[e];if(!(yield f.controls.select(It,"canInsertBlockType",n.name,c)))return}yield{type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:r},yield*xt()}function $t(e,t){return Kt(e,t)}function qt(e){return(t,n)=>({clientIds:Object(u.castArray)(t),type:e,rootClientId:n})}const Yt=qt("MOVE_BLOCKS_DOWN"),Xt=qt("MOVE_BLOCKS_UP");function*Qt(e,t="",n="",o){const r=yield f.controls.select(It,"getTemplateLock",t);if("all"===r)return;const c={type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o};t!==n?"insert"!==r&&(yield f.controls.select(It,"canInsertBlocks",e,n))&&(yield c):yield c}function*Zt(e,t="",n="",o){yield Qt([e],t,n,o)}function Jt(e,t,n,o=!0,r){return en([e],t,n,o,0,r)}function*en(e,t,n,o=!0,r=0,c){Object(u.isObject)(r)&&(c=r,r=0,wt()("meta argument in wp.data.dispatch('core/block-editor')",{since:"10.1",plugin:"Gutenberg",hint:"The meta argument is now the 6th argument of the function"})),e=Wt(Object(u.castArray)(e),yield f.controls.select(It,"getSettings"));const l=[];for(const t of e)(yield f.controls.select(It,"canInsertBlockType",t.name,n))&&l.push(t);if(l.length)return{type:"INSERT_BLOCKS",blocks:l,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:c}}function tn(e,t,n={}){const{__unstableWithInserter:o}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o}}function nn(){return{type:"HIDE_INSERTION_POINT"}}function on(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function*rn(){yield{type:"SYNCHRONIZE_TEMPLATE"};const e=yield f.controls.select(It,"getBlocks"),t=yield f.controls.select(It,"getTemplate"),n=Object(m.synchronizeBlocksWithTemplate)(e,t);return yield Tt(n)}function*cn(e,t){const n=[e,t];yield{type:"MERGE_BLOCKS",blocks:n};const[o,r]=n,l=yield f.controls.select(It,"getBlock",o),i=Object(m.getBlockType)(l.name);if(!i.merge)return void(yield Mt(l.clientId));const a=yield f.controls.select(It,"getBlock",r),s=Object(m.getBlockType)(a.name),{clientId:d,attributeKey:b,offset:p}=yield f.controls.select(It,"getSelectionStart"),g=(d===o?i:s).attributes[b],h=(d===o||d===r)&&void 0!==b&&void 0!==p&&!!g;g||("number"==typeof b?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was "+typeof b):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const O=Object(m.cloneBlock)(l),v=Object(m.cloneBlock)(a);if(h){const e=d===o?O:v,t=e.attributes[b],{multiline:n,__unstableMultilineWrapperTags:r,__unstablePreserveWhiteSpace:l}=g,i=Object(c.insert)(Object(c.create)({html:t,multilineTag:n,multilineWrapperTags:r,preserveWhiteSpace:l}),"†",p,p);e.attributes[b]=Object(c.toHTMLString)({value:i,multilineTag:n,preserveWhiteSpace:l})}const j=l.name===a.name?[v]:Object(m.switchToBlockType)(v,l.name);if(!j||!j.length)return;const k=i.merge(O.attributes,j[0].attributes);if(h){const e=Object(u.findKey)(k,e=>"string"==typeof e&&-1!==e.indexOf("†")),t=k[e],{multiline:n,__unstableMultilineWrapperTags:o,__unstablePreserveWhiteSpace:r}=i.attributes[e],a=Object(c.create)({html:t,multilineTag:n,multilineWrapperTags:o,preserveWhiteSpace:r}),s=a.text.indexOf("†"),d=Object(c.remove)(a,s,s+1),b=Object(c.toHTMLString)({value:d,multilineTag:n,preserveWhiteSpace:r});k[e]=b,yield hn(l.clientId,e,s,s)}yield*Kt([l.clientId,a.clientId],[{...l,attributes:{...l.attributes,...k}},...j.slice(1)])}function*ln(e,t=!0){if(!e||!e.length)return;e=Object(u.castArray)(e);const n=yield f.controls.select(It,"getBlockRootClientId",e[0]);if(yield f.controls.select(It,"getTemplateLock",n))return;let o;o=t?yield Dt(e[0]):yield f.controls.select(It,"getPreviousBlockClientId",e[0]),yield{type:"REMOVE_BLOCKS",clientIds:e};const r=yield*xt();return[o||r]}function an(e,t){return ln([e],t)}function sn(e,t,n=!1,o=0){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function un(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function dn(){return{type:"START_TYPING"}}function bn(){return{type:"STOP_TYPING"}}function mn(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function pn(){return{type:"STOP_DRAGGING_BLOCKS"}}function fn(){return{type:"ENTER_FORMATTED_TEXT"}}function gn(){return{type:"EXIT_FORMATTED_TEXT"}}function hn(e,t,n,o){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}}function On(e,t,n){const o=Object(m.getDefaultBlockName)();if(o)return Jt(Object(m.createBlock)(o,e),n,t)}function vn(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function jn(e){return{type:"UPDATE_SETTINGS",settings:e}}function kn(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function yn(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function En(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function*Cn(){yield{type:"MARK_AUTOMATIC_CHANGE"},yield{type:"MARK_AUTOMATIC_CHANGE_FINAL_CONTROL"}}function Sn(){return{type:"MARK_AUTOMATIC_CHANGE_FINAL"}}function*wn(e=!0){yield{type:"SET_NAVIGATION_MODE",isNavigationMode:e},e?Object(Ct.speak)(Object(v.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):Object(Ct.speak)(Object(v.__)("You are currently in edit mode. To return to the navigation mode, press Escape."))}function*Bn(e=null){yield{type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e},e&&Object(Ct.speak)(Object(v.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."))}function*In(e,t=!0){if(!e&&!e.length)return;const n=yield f.controls.select(It,"getBlocksByClientId",e),o=yield f.controls.select(It,"getBlockRootClientId",e[0]);if(Object(u.some)(n,e=>!e))return;const r=n.map(e=>e.name);if(Object(u.some)(r,e=>!Object(m.hasBlockSupport)(e,"multiple",!0)))return;const c=yield f.controls.select(It,"getBlockIndex",Object(u.last)(Object(u.castArray)(e)),o),l=n.map(e=>Object(m.__experimentalCloneSanitizedBlock)(e));return yield en(l,c+1,o,t),l.length>1&&t&&(yield zt(Object(u.first)(l).clientId,Object(u.last)(l).clientId)),l.map(e=>e.clientId)}function*xn(e){if(!e)return;const t=yield f.controls.select(It,"getBlockRootClientId",e);if(yield f.controls.select(It,"getTemplateLock",t))return;const n=yield f.controls.select(It,"getBlockIndex",e,t);return yield On({},t,n)}function*Tn(e){if(!e)return;const t=yield f.controls.select(It,"getBlockRootClientId",e);if(yield f.controls.select(It,"getTemplateLock",t))return;const n=yield f.controls.select(It,"getBlockIndex",e,t);return yield On({},t,n+1)}function Nn(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function*Ln(e){yield Nn(e,!0),yield{type:"SLEEP",duration:150},yield Nn(e,!1)}function Pn(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}const Rn={reducer:L,selectors:o,actions:r,controls:Bt},An=Object(f.createReduxStore)(It,{...Rn,persist:["preferences"]});function Mn(){const{isSelected:e,clientId:t,name:n}=O(),o=Object(f.useSelect)(o=>{if(e)return;const{getBlockName:r,isFirstMultiSelectedBlock:c,getMultiSelectedBlockClientIds:l}=o(An);return!!c(t)&&l().every(e=>r(e)===n)},[t,e,n]);return e||o}Object(f.registerStore)(It,{...Rn,persist:["preferences"]});var Dn={default:Object(p.createSlotFill)("BlockControls"),block:Object(p.createSlotFill)("BlockControlsBlock"),inline:Object(p.createSlotFill)("BlockFormatControls"),other:Object(p.createSlotFill)("BlockControlsOther")};function Fn({group:e="default",controls:t,children:n}){if(!Mn())return null;const o=Dn[e].Fill;return Object(i.createElement)(p.__experimentalStyleProvider,{document:document},Object(i.createElement)(o,null,o=>{const r=Object(u.isEmpty)(o)?null:o;return Object(i.createElement)(p.__experimentalToolbarContext.Provider,{value:r},"default"===e&&Object(i.createElement)(p.ToolbarGroup,{controls:t}),n)}))}function Vn({group:e="default",...t}){const n=Object(i.useContext)(p.__experimentalToolbarContext),o=Dn[e].Slot,r=Object(p.__experimentalUseSlot)(o.__unstableName);return Boolean(r.fills&&r.fills.length)?"default"===e?Object(i.createElement)(o,Object(l.a)({},t,{bubblesVirtually:!0,fillProps:n})):Object(i.createElement)(p.ToolbarGroup,null,Object(i.createElement)(o,Object(l.a)({},t,{bubblesVirtually:!0,fillProps:n}))):null}const Hn=Fn;Hn.Slot=Vn;const zn=e=>Object(i.createElement)(Fn,Object(l.a)({group:"inline"},e));zn.Slot=e=>Object(i.createElement)(Vn,Object(l.a)({group:"inline"},e));var Gn=Hn,Un=n(6),Wn=Object(i.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(Un.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),Kn=Object(i.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(Un.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),$n=Object(i.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(Un.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),qn=Object(i.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(Un.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),Yn=Object(i.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(Un.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"}));const Xn={type:"default"},Qn=Object(i.createContext)(Xn);function Zn(e,t){return e.split(",").map(e=>`.editor-styles-wrapper ${e} ${t}`).join(",")}const Jn=Qn.Provider;function eo({selector:e,layout:t={}}){const{contentSize:n,wideSize:o}=t;let r=n||o?`\n\t\t\t\t${Zn(e,"> *")} {\n\t\t\t\t\tmax-width: ${null!=n?n:o};\n\t\t\t\t\tmargin-left: auto !important;\n\t\t\t\t\tmargin-right: auto !important;\n\t\t\t\t}\n\n\t\t\t\t${Zn(e,'> [data-align="wide"]')} {\n\t\t\t\t\tmax-width: ${null!=o?o:n};\n\t\t\t\t}\n\n\t\t\t\t${Zn(e,'> [data-align="full"]')} {\n\t\t\t\t\tmax-width: none;\n\t\t\t\t}\n\t\t\t`:"";return r+=`\n\t\t${Zn(e,'> [data-align="left"]')} {\n\t\t\tfloat: left;\n\t\t\tmargin-right: 2em;\n\t\t}\n\n\t\t${Zn(e,'> [data-align="right"]')} {\n\t\t\tfloat: right;\n\t\t\tmargin-left: 2em;\n\t\t}\n\t`,Object(i.createElement)("style",null,r)}const to=["left","center","right","wide","full"],no=["wide","full"];function oo(e=to){const{wideControlsEnabled:t=!1}=Object(f.useSelect)(e=>{const{getSettings:t}=e(An);return{wideControlsEnabled:t().alignWide}},[]),n=Object(i.useContext)(Qn);if("default"!==n.type)return[];const{alignments:o=to}=n;return e.filter(e=>(n.alignments||t||!no.includes(e))&&o.includes(e))}const ro={left:{icon:Wn,title:Object(v.__)("Align left")},center:{icon:Kn,title:Object(v.__)("Align center")},right:{icon:$n,title:Object(v.__)("Align right")},wide:{icon:qn,title:Object(v.__)("Wide width")},full:{icon:Yn,title:Object(v.__)("Full width")}},co={isAlternate:!0};var lo=function({value:e,onChange:t,controls:n,isToolbar:o,isCollapsed:r=!0}){const c=oo(n);if(0===c.length)return null;const a=ro[e],s=ro.center,u=o?p.ToolbarGroup:p.ToolbarDropdownMenu,d=o?{isCollapsed:r}:{};return Object(i.createElement)(u,Object(l.a)({popoverProps:co,icon:a?a.icon:s.icon,label:Object(v.__)("Align"),toggleProps:{describedBy:Object(v.__)("Change alignment")},controls:c.map(n=>{return{...ro[n],isActive:e===n,role:r?"menuitemradio":void 0,onClick:(o=n,()=>t(e===o?void 0:o))};var o})},d))};function io(e){return Object(i.createElement)(lo,Object(l.a)({},e,{isToolbar:!1}))}function ao(e){return Object(i.createElement)(lo,Object(l.a)({},e,{isToolbar:!0}))}const so=["left","center","right","wide","full"],uo=["wide","full"];function bo(e,t=!0,n=!0){let o;return o=Array.isArray(e)?so.filter(t=>e.includes(t)):!0===e?so:[],!n||!0===e&&!t?Object(u.without)(o,...uo):o}const mo=Object(d.createHigherOrderComponent)(e=>t=>{const{name:n}=t,o=oo(bo(Object(m.getBlockSupport)(n,"align"),Object(m.hasBlockSupport)(n,"alignWide",!0)));return[o.length>0&&t.isSelected&&Object(i.createElement)(Gn,{key:"align-controls",group:"block"},Object(i.createElement)(io,{value:t.attributes.align,onChange:e=>{var n,o;e||(null===(n=Object(m.getBlockType)(t.name).attributes)||void 0===n||null===(o=n.align)||void 0===o?void 0:o.default)&&(e="");t.setAttributes({align:e})},controls:o})),Object(i.createElement)(e,Object(l.a)({key:"edit"},t))]},"withToolbarControls"),po=Object(d.createHigherOrderComponent)(e=>t=>{const{name:n,attributes:o}=t,{align:r}=o,c=oo(bo(Object(m.getBlockSupport)(n,"align"),Object(m.hasBlockSupport)(n,"alignWide",!0)));if(void 0===r)return Object(i.createElement)(e,t);let a=t.wrapperProps;return c.includes(r)&&(a={...a,"data-align":r}),Object(i.createElement)(e,Object(l.a)({},t,{wrapperProps:a}))});Object(b.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(u.has)(e.attributes,["align","type"])||Object(m.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...so,""]}}),e})),Object(b.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",po),Object(b.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",mo),Object(b.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){const{align:o}=n;return bo(Object(m.getBlockSupport)(t,"align"),Object(m.hasBlockSupport)(t,"alignWide",!0)).includes(o)&&(e.className=s()("align"+o,e.className)),e}));const{Fill:fo,Slot:go}=Object(p.createSlotFill)("InspectorAdvancedControls");function ho({children:e}){const{isSelected:t}=O();return t?Object(i.createElement)(p.__experimentalStyleProvider,{document:document},Object(i.createElement)(fo,null,e)):null}ho.slotName="InspectorAdvancedControls",ho.Slot=go;var Oo=ho;const{Fill:vo,Slot:jo}=Object(p.createSlotFill)("InspectorControls");function ko({children:e}){return Mn()?Object(i.createElement)(p.__experimentalStyleProvider,{document:document},Object(i.createElement)(vo,null,e)):null}ko.Slot=jo;var _o=ko;const yo=/[\s#]/g,Eo=Object(d.createHigherOrderComponent)(e=>t=>{if(Object(m.hasBlockSupport)(t.name,"anchor")&&t.isSelected){const n="web"===i.Platform.OS,o=Object(i.createElement)(p.TextControl,{className:"html-anchor-control",label:Object(v.__)("HTML anchor"),help:Object(i.createElement)(i.Fragment,null,Object(v.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),Object(i.createElement)(p.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(v.__)("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:Object(v.__)("Add an anchor"),onChange:e=>{e=e.replace(yo,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(e,t),n&&Object(i.createElement)(Oo,null,o),!n&&"core/heading"===t.name&&Object(i.createElement)(_o,null,Object(i.createElement)(p.PanelBody,{title:Object(v.__)("Heading settings")},o)))}return Object(i.createElement)(e,t)},"withInspectorControl");Object(b.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(u.has)(e.attributes,["anchor","type"])||Object(m.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}}),e})),Object(b.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",Eo),Object(b.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(m.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));const Co=Object(d.createHigherOrderComponent)(e=>t=>Object(m.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(i.createElement)(i.Fragment,null,Object(i.createElement)(e,t),Object(i.createElement)(Oo,null,Object(i.createElement)(p.TextControl,{autoComplete:"off",label:Object(v.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:e=>{t.setAttributes({className:""!==e?e:void 0})},help:Object(v.__)("Separate multiple classes with spaces.")}))):Object(i.createElement)(e,t),"withInspectorControl");function So(e){e=`<div data-custom-class-name>${e}</div>`;const t=Object(m.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(b.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(m.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),Object(b.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",Co),Object(b.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(m.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=s()(e.className,n.className)),e})),Object(b.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(m.hasBlockSupport)(t,"customClassName",!0)){const o=Object(u.omit)(e,["className"]),r=Object(m.getSaveContent)(t,o),c=So(r),l=So(n),i=Object(u.difference)(l,c);i.length?e.className=i.join(" "):r&&delete e.className}return e})),Object(b.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(m.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(u.uniq)([Object(m.getBlockDefaultClassName)(t.name),...e.className.split(" ")]).join(" ").trim():e.className=Object(m.getBlockDefaultClassName)(t.name)),e}));const wo={"color.palette":e=>void 0===e.colors?void 0:e.colors,"color.gradients":e=>void 0===e.gradients?void 0:e.gradients,"color.custom":e=>void 0===e.disableCustomColors?void 0:!e.disableCustomColors,"color.customGradient":e=>void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>void 0===e.fontSizes?void 0:e.fontSizes,"typography.customFontSize":e=>void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes,"typography.customLineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw"]:e.enableCustomUnits},"spacing.customPadding":e=>e.enableCustomSpacing},Bo={"color.gradients":!0,"color.palette":!0,"typography.fontFamilies":!0,"typography.fontSizes":!0};function Io(e){const{name:t}=O();return Object(f.useSelect)(n=>{var o;const r=n(An).getSettings(),c="__experimentalFeatures."+e,l=`__experimentalFeatures.blocks.${t}.${e}`,i=null!==(o=Object(u.get)(r,l))&&void 0!==o?o:Object(u.get)(r,c);var a,s;if(void 0!==i)return Bo[e]?null!==(a=null!==(s=i.user)&&void 0!==s?s:i.theme)&&void 0!==a?a:i.core:i;const d=wo[e]?wo[e](r):void 0;return void 0!==d?d:"typography.dropCap"===e||void 0},[t,e])}var xo=n(35),To=n.n(xo);const No=(e,t,n)=>{if(t){const n=Object(u.find)(e,{slug:t});if(n)return n}return{color:n}},Lo=(e,t)=>Object(u.find)(e,{color:t});function Po(e,t){if(e&&t)return`has-${Object(u.kebabCase)(t)}-${e}`}const Ro=[];function Ao(e){if(e)return`has-${e}-gradient-background`}function Mo(e,t){const n=Object(u.find)(e,["slug",t]);return n&&n.gradient}function Do(e,t){return Object(u.find)(e,["gradient",t])}function Fo(e,t){const n=Do(e,t);return n&&n.slug}function Vo({gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}={}){const{clientId:n}=O(),o=Io("color.gradients")||Ro,{gradient:r,customGradient:c}=Object(f.useSelect)(o=>{const{getBlockAttributes:r}=o(An),c=r(n)||{};return{customGradient:c[t],gradient:c[e]}},[n,e,t]),{updateBlockAttributes:l}=Object(f.useDispatch)(An),a=Object(i.useCallback)(r=>{const c=Fo(o,r);l(n,c?{[e]:c,[t]:void 0}:{[e]:void 0,[t]:r})},[o,n,l]),s=Ao(r);let u;return u=r?Mo(o,r):c,{gradientClass:s,gradientValue:u,setGradient:a}}
4
  // translators: first %s: the color name or value (e.g. red or #ff0000)
5
- const Ho=Object(v.__)("(Color: %s)"),zo=Object(v.__)("(Gradient: %s)"),Go=["colors","disableCustomColors","gradients","disableCustomGradients"];// translators: first %s: the gradient name or value (e.g. red to green or linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)
6
- function Uo({colors:e,gradients:t,label:n,currentTab:o,colorValue:r,gradientValue:c}){let l,a;if("color"===o){if(r){l=r;const t=Lo(e,l),n=t&&t.name;a=Object(v.sprintf)(Ho,n||l)}}else if("gradient"===o&&c){l=c;const e=Do(t,l),n=e&&e.name;a=Object(v.sprintf)(zo,n||l)}return Object(i.createElement)(i.Fragment,null,n,!!l&&Object(i.createElement)(p.ColorIndicator,{colorValue:l,"aria-label":a}))}function Wo({colors:e,gradients:t,disableCustomColors:n,disableCustomGradients:o,className:r,label:c,onColorChange:l,onGradientChange:a,colorValue:d,gradientValue:b,clearable:m}){const f=l&&(!Object(u.isEmpty)(e)||!n),g=a&&(!Object(u.isEmpty)(t)||!o),[h,O]=Object(i.useState)(b?"gradient":!!f&&"color");return f||g?Object(i.createElement)(p.BaseControl,{className:s()("block-editor-color-gradient-control",r)},Object(i.createElement)("fieldset",null,Object(i.createElement)("legend",null,Object(i.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(i.createElement)(p.BaseControl.VisualLabel,null,Object(i.createElement)(Uo,{currentTab:h,label:c,colorValue:d,gradientValue:b})))),f&&g&&Object(i.createElement)(p.ButtonGroup,{className:"block-editor-color-gradient-control__button-tabs"},Object(i.createElement)(p.Button,{isSmall:!0,isPressed:"color"===h,onClick:()=>O("color")},Object(v.__)("Solid")),Object(i.createElement)(p.Button,{isSmall:!0,isPressed:"gradient"===h,onClick:()=>O("gradient")},Object(v.__)("Gradient"))),("color"===h||!g)&&Object(i.createElement)(p.ColorPalette,{value:d,onChange:g?e=>{l(e),a()}:l,colors:e,disableCustomColors:n,clearable:m}),("gradient"===h||!f)&&Object(i.createElement)(p.__experimentalGradientPicker,{value:b,onChange:f?e=>{a(e),l()}:a,gradients:t,disableCustomGradients:o,clearable:m}))):null}function Ko(e){const t={};return t.colors=Io("color.palette"),t.gradients=Io("color.gradients"),t.disableCustomColors=!Io("color.custom"),t.disableCustomGradients=!Io("color.customGradient"),Object(i.createElement)(Wo,Object(l.a)({},t,e))}var $o=function(e){return Object(u.every)(Go,t=>e.hasOwnProperty(t))?Object(i.createElement)(Wo,e):Object(i.createElement)(Ko,e)};const qo=e=>{if(!Object(u.isObject)(e)||Array.isArray(e))return e;const t=Object(u.pickBy)(Object(u.mapValues)(e,qo),u.identity);return Object(u.isEmpty)(t)?void 0:t},Yo=[];function Xo(e){var t;const{attributes:{borderColor:n,style:o},setAttributes:r}=e,c=Io("color.palette")||Yo,l=!Io("color.custom"),a=!Io("color.customGradient");return Object(i.createElement)($o,{label:Object(v.__)("Border color"),value:n||(null==o||null===(t=o.border)||void 0===t?void 0:t.color),colors:c,gradients:void 0,disableCustomColors:l,disableCustomGradients:a,onColorChange:e=>{const t=Lo(c,e),n={...o,border:{...null==o?void 0:o.border,color:null!=t&&t.slug?void 0:e}},l=null!=t&&t.slug?t.slug:void 0;r({style:qo(n),borderColor:l})}})}function Qo(e,t,n){var o;if(!lr(t,"color")||ir(t))return e;const{borderColor:r,style:c}=n,l=Po("border-color",r),i=s()(e.className,{"has-border-color":r||(null==c||null===(o=c.border)||void 0===o?void 0:o.color),[l]:!!l});return e.className=i||void 0,e}const Zo=Object(d.createHigherOrderComponent)(e=>t=>{var n,o;const{name:r,attributes:c}=t,{borderColor:a}=c,s=Io("color.palette")||Yo;if(!lr(r,"color")||ir(r))return Object(i.createElement)(e,t);const u={borderColor:a?null===(n=No(s,a))||void 0===n?void 0:n.color:void 0};let d=t.wrapperProps;return d={...t.wrapperProps,style:{...u,...null===(o=t.wrapperProps)||void 0===o?void 0:o.style}},Object(i.createElement)(e,Object(l.a)({},t,{wrapperProps:d}))});function Jo(e){var t,n;const{attributes:{style:o},setAttributes:r}=e,c="px"===Object(p.__experimentalParseUnit)(null==o||null===(t=o.border)||void 0===t?void 0:t.radius)[1]?1:.25,[l,a]=Object(i.useState)(c),s=Object(p.__experimentalUseCustomUnits)({availableUnits:Io("layout.units")||["px","em","rem"]});return Object(i.createElement)(p.__experimentalUnitControl,{value:null==o||null===(n=o.border)||void 0===n?void 0:n.radius,label:Object(v.__)("Border radius"),min:0,onChange:e=>{let t={...o,border:{...null==o?void 0:o.border,radius:e}};void 0!==e&&""!==e||(t=qo(t)),r({style:t})},onUnitChange:e=>{a("px"===e?1:.25)},step:l,units:s})}Object(b.addFilter)("blocks.registerBlockType","core/border/addAttributes",(function(e){return lr(e,"color")?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}:e})),Object(b.addFilter)("blocks.getSaveContent.extraProps","core/border/addSaveProps",Qo),Object(b.addFilter)("blocks.registerBlockType","core/border/addEditProps",(function(e){if(!lr(e,"color")||ir(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),Qo(o,e,n)},e})),Object(b.addFilter)("editor.BlockListBlock","core/border/with-border-color-palette-styles",Zo);const er={key:"default",name:Object(v.__)("Default"),style:{borderStyle:void 0}},tr=[er,{key:"none",name:Object(v.__)("None"),style:{borderStyle:"none"}},{key:"solid",name:Object(v.__)("Solid"),style:{borderStyle:"solid"}},{key:"dashed",name:Object(v.__)("Dashed"),style:{borderStyle:"dashed"}},{key:"dotted",name:Object(v.__)("Dotted"),style:{borderStyle:"dotted"}}];function nr({onChange:e,value:t}){const n=tr.find(e=>e.key===t);return Object(i.createElement)("fieldset",{className:"components-border-style-control"},Object(i.createElement)(p.CustomSelectControl,{className:"components-border-style-control__select",label:Object(v.__)("Border style"),options:tr,value:n||er,onChange:({selectedItem:t})=>"default"===t.key?e(void 0):e(t.key)}))}const or=e=>{var t;const{attributes:{style:n},setAttributes:o}=e;return Object(i.createElement)(nr,{value:null==n||null===(t=n.border)||void 0===t?void 0:t.style,onChange:e=>{const t={...n,border:{...null==n?void 0:n.border,style:e}};o({style:qo(t)})}})},rr=e=>{var t,n;const{attributes:{style:o},setAttributes:r}=e,c="px"===Object(p.__experimentalParseUnit)(null==o||null===(t=o.border)||void 0===t?void 0:t.width)[1]?1:.25,[l,a]=Object(i.useState)(c),s=Object(p.__experimentalUseCustomUnits)({availableUnits:Io("layout.units")||["px","em","rem"]});return Object(i.createElement)(p.__experimentalUnitControl,{value:null==o||null===(n=o.border)||void 0===n?void 0:n.width,label:Object(v.__)("Border width"),min:0,onChange:e=>{let t={...o,border:{...null==o?void 0:o.border,width:e}};void 0!==e&&""!==e||(t=qo(t)),r({style:t})},onUnitChange:e=>{a("px"===e?1:.25)},step:l,units:s})};function cr(e){const t=ar(e),n=lr(e.name),o=Io("border.customColor")&&lr(e.name,"color"),r=Io("border.customRadius")&&lr(e.name,"radius"),c=Io("border.customStyle")&&lr(e.name,"style"),l=Io("border.customWidth")&&lr(e.name,"width");return t||!n?null:Object(i.createElement)(_o,null,Object(i.createElement)(p.PanelBody,{className:"block-editor-hooks__border-controls",title:Object(v.__)("Border settings"),initialOpen:!1},c&&Object(i.createElement)(or,e),l&&Object(i.createElement)(rr,e),r&&Object(i.createElement)(Jo,e),o&&Object(i.createElement)(Xo,e)))}function lr(e,t="any"){if("web"!==i.Platform.OS)return!1;const n=Object(m.getBlockSupport)(e,"__experimentalBorder");return!!(!0===n||("any"===t?null!=n&&n.color||null!=n&&n.radius||null!=n&&n.width||null!=n&&n.style:null!=n&&n[t]))}function ir(e){const t=Object(m.getBlockSupport)(e,"__experimentalBorder");return null==t?void 0:t.__experimentalSkipSerialization}const ar=()=>[!Io("border.customColor"),!Io("border.customRadius"),!Io("border.customStyle"),!Io("border.customWidth")].every(Boolean),sr=Object(v.__)("(%s: color %s)"),ur=Object(v.__)("(%s: gradient %s)"),dr=["colors","disableCustomColors","gradients","disableCustomGradients"],br=({colors:e,gradients:t,settings:n})=>n.map(({colorValue:n,gradientValue:o,label:r,colors:c,gradients:l},a)=>{if(!n&&!o)return null;let s;if(n){const t=Lo(c||e,n);s=Object(v.sprintf)(sr,r.toLowerCase(),t&&t.name||n)}else{const e=Do(l||t,n);s=Object(v.sprintf)(ur,r.toLowerCase(),e&&e.name||o)}return Object(i.createElement)(p.ColorIndicator,{key:a,colorValue:n||o,"aria-label":s})}),mr=({className:e,colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:r,children:c,settings:a,title:d,...b})=>{if(Object(u.isEmpty)(t)&&Object(u.isEmpty)(n)&&o&&r&&Object(u.every)(a,e=>Object(u.isEmpty)(e.colors)&&Object(u.isEmpty)(e.gradients)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)))return null;const m=Object(i.createElement)("span",{className:"block-editor-panel-color-gradient-settings__panel-title"},d,Object(i.createElement)(br,{colors:t,gradients:n,settings:a}));return Object(i.createElement)(p.PanelBody,Object(l.a)({className:s()("block-editor-panel-color-gradient-settings",e),title:m},b),a.map((e,c)=>Object(i.createElement)($o,Object(l.a)({key:c,colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:r},e))),c)},pr=e=>{const t={};return t.colors=Io("color.palette"),t.gradients=Io("color.gradients"),t.disableCustomColors=!Io("color.custom"),t.disableCustomGradients=!Io("color.customGradient"),Object(i.createElement)(mr,Object(l.a)({},t,e))};
7
  // translators: first %s: The type of color or gradient (e.g. background, overlay...), second %s: the color name or value (e.g. red or #ff0000)
8
- var fr=e=>Object(u.every)(dr,t=>e.hasOwnProperty(t))?Object(i.createElement)(mr,e):Object(i.createElement)(pr,e);function gr({tinyBackgroundColor:e,tinyTextColor:t,backgroundColor:n,textColor:o}){const r=e.getBrightness()<t.getBrightness()?Object(v.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(v.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.");return Object(i.useEffect)(()=>{Object(Ct.speak)(Object(v.__)("This color combination may be hard for people to read."))},[n,o]),Object(i.createElement)("div",{className:"block-editor-contrast-checker"},Object(i.createElement)(p.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},r))}var hr=function({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:n,fontSize:o,isLargeText:r,textColor:c}){if(!e&&!t||!c&&!n)return null;const l=To()(e||t),a=To()(c||n);return 1!==l.getAlpha()||1!==a.getAlpha()||To.a.isReadable(l,a,{level:"AA",size:r||!1!==r&&o>=24?"large":"small"})?null:Object(i.createElement)(gr,{backgroundColor:e,textColor:c,tinyBackgroundColor:l,tinyTextColor:a})};const Or=Object(i.createContext)();function vr({children:e}){const t=Object(i.useMemo)(()=>({refs:new Map,callbacks:new Map}),[]);return Object(i.createElement)(Or.Provider,{value:t},e)}function jr(e){const{refs:t,callbacks:n}=Object(i.useContext)(Or),o=Object(i.useRef)();return Object(i.useLayoutEffect)(()=>(t.set(o,e),()=>{t.delete(o)}),[e]),Object(d.useRefEffect)(t=>{o.current=t,n.forEach((n,o)=>{e===n&&o(t)})},[e])}function kr(e){const{refs:t}=Object(i.useContext)(Or),n=Object(i.useRef)();return n.current=e,Object(i.useMemo)(()=>({get current(){let e=null;for(const[o,r]of t.entries())r===n.current&&o.current&&(e=o.current);return e}}),[])}function _r(e){const{callbacks:t}=Object(i.useContext)(Or),n=kr(e),[o,r]=Object(i.useState)(null);return Object(i.useLayoutEffect)(()=>{if(e)return t.set(r,e),()=>{t.delete(r)}},[e]),n.current||o}function yr(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function Er({settings:e,clientId:t,enableContrastChecking:n=!0}){const[o,r]=Object(i.useState)(),[c,l]=Object(i.useState)(),a=kr(t);return Object(i.useEffect)(()=>{if(!n)return;if(!a.current)return;l(yr(a.current).color);let e=a.current,t=yr(e).backgroundColor;for(;"rgba(0, 0, 0, 0)"===t&&e.parentNode&&e.parentNode.nodeType===e.parentNode.ELEMENT_NODE;)e=e.parentNode,t=yr(e).backgroundColor;r(t)}),Object(i.createElement)(_o,null,Object(i.createElement)(fr,{title:Object(v.__)("Color"),initialOpen:!1,settings:e},n&&Object(i.createElement)(hr,{backgroundColor:o,textColor:c})))}const Cr=[],Sr=e=>{const t=Object(m.getBlockSupport)(e,"color");return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},wr=e=>{const t=Object(m.getBlockSupport)(e,"color");return null==t?void 0:t.__experimentalSkipSerialization},Br=e=>{if("web"!==i.Platform.OS)return!1;const t=Object(m.getBlockSupport)(e,"color");return Object(u.isObject)(t)&&!!t.link},Ir=e=>{if("web"!==i.Platform.OS)return!1;const t=Object(m.getBlockSupport)(e,"color");return Object(u.isObject)(t)&&!!t.gradients},xr=e=>{const t=Object(m.getBlockSupport)(e,"color");return t&&!1!==t.text};function Tr(e,t,n){var o,r,c,l,i,a;if(!Sr(t)||wr(t))return e;const u=Ir(t),{backgroundColor:d,textColor:b,gradient:m,style:p}=n,f=Po("background-color",d),g=Ao(m),h=Po("color",b),O=s()(e.className,h,g,{[f]:!(u&&null!=p&&null!==(o=p.color)&&void 0!==o&&o.gradient||!f),"has-text-color":b||(null==p||null===(r=p.color)||void 0===r?void 0:r.text),"has-background":d||(null==p||null===(c=p.color)||void 0===c?void 0:c.background)||u&&(m||(null==p||null===(l=p.color)||void 0===l?void 0:l.gradient)),"has-link-color":null==p||null===(i=p.elements)||void 0===i||null===(a=i.link)||void 0===a?void 0:a.color});return e.className=O||void 0,e}const Nr=(e,t)=>{const n=/var:preset\|color\|(.+)/.exec(t);return n&&n[1]?No(e,n[1]).color:t};function Lr(e){var t,n,o,r,c,l,a,s,d;const{name:b,attributes:p}=e,f=Io("color.link"),g=Io("color.palette")||Cr,h=Io("color.gradients")||Cr,O=Object(i.useRef)(p);if(Object(i.useEffect)(()=>{O.current=p},[p]),!Sr(b)||"web"!==i.Platform.OS)return null;const j=(e=>{const t=Object(m.getBlockSupport)(e,"color");return t&&!1!==t.background})(b),k=Ir(b),{style:_,textColor:y,backgroundColor:E,gradient:C}=p;let S;if(k&&C)S=Mo(h,C);else if(k){var w;S=null==_||null===(w=_.color)||void 0===w?void 0:w.gradient}const B=t=>n=>{var o,r;const c=Lo(g,n),l=t+"Color",i={...O.current.style,color:{...null===(o=O.current)||void 0===o||null===(r=o.style)||void 0===r?void 0:r.color,[t]:null!=c&&c.slug?void 0:n}},a=null!=c&&c.slug?c.slug:void 0,s={style:qo(i),[l]:a};e.setAttributes(s),O.current={...O.current,...s}};return Object(i.createElement)(Er,{enableContrastChecking:!("web"!==i.Platform.OS||C||null!=_&&null!==(t=_.color)&&void 0!==t&&t.gradient),clientId:e.clientId,settings:[...xr(b)?[{label:Object(v.__)("Text color"),onColorChange:B("text"),colorValue:No(g,y,null==_||null===(n=_.color)||void 0===n?void 0:n.text).color}]:[],...j||k?[{label:Object(v.__)("Background color"),onColorChange:j?B("background"):void 0,colorValue:No(g,E,null==_||null===(o=_.color)||void 0===o?void 0:o.background).color,gradientValue:S,onGradientChange:k?t=>{const n=Fo(h,t);let o;if(n){var r,c,l;const e={...null===(r=O.current)||void 0===r?void 0:r.style,color:{...null===(c=O.current)||void 0===c||null===(l=c.style)||void 0===l?void 0:l.color,gradient:void 0}};o={style:qo(e),gradient:n}}else{var i,a,s;const e={...null===(i=O.current)||void 0===i?void 0:i.style,color:{...null===(a=O.current)||void 0===a||null===(s=a.style)||void 0===s?void 0:s.color,gradient:t}};o={style:qo(e),gradient:void 0}}e.setAttributes(o),O.current={...O.current,...o}}:void 0}]:[],...f&&Br(b)?[{label:Object(v.__)("Link Color"),onColorChange:t=>{const n=Lo(g,t),o=null!=n&&n.slug?"var:preset|color|"+n.slug:t,r=function(e,t,n){return Object(u.setWith)(e?Object(u.clone)(e):{},["elements","link","color","text"],n,u.clone)}(_,0,o);e.setAttributes({style:r})},colorValue:Nr(g,null==_||null===(r=_.elements)||void 0===r||null===(c=r.link)||void 0===c||null===(l=c.color)||void 0===l?void 0:l.text),clearable:!(null==_||null===(a=_.elements)||void 0===a||null===(s=a.link)||void 0===s||null===(d=s.color)||void 0===d||!d.text)}]:[]]})}const Pr=Object(d.createHigherOrderComponent)(e=>t=>{var n,o,r;const{name:c,attributes:a}=t,{backgroundColor:s,textColor:u}=a,d=Io("color.palette")||Cr;if(!Sr(c)||wr(c))return Object(i.createElement)(e,t);const b={color:u?null===(n=No(d,u))||void 0===n?void 0:n.color:void 0,backgroundColor:s?null===(o=No(d,s))||void 0===o?void 0:o.color:void 0};let m=t.wrapperProps;return m={...t.wrapperProps,style:{...b,...null===(r=t.wrapperProps)||void 0===r?void 0:r.style}},Object(i.createElement)(e,Object(l.a)({},t,{wrapperProps:m}))});Object(b.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return Sr(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),Ir(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),Object(b.addFilter)("blocks.getSaveContent.extraProps","core/color/addSaveProps",Tr),Object(b.addFilter)("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!Sr(e)||wr(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),Tr(o,e,n)},e})),Object(b.addFilter)("editor.BlockListBlock","core/color/with-color-palette-styles",Pr);var Rr=Object(i.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(Un.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})),Ar=n(279);const Mr=[{name:Object(v.__)("Underline"),value:"underline",icon:Rr},{name:Object(v.__)("Strikethrough"),value:"line-through",icon:Ar.a}];function Dr({value:e,onChange:t}){return Object(i.createElement)("fieldset",{className:"block-editor-text-decoration-control"},Object(i.createElement)("legend",null,Object(v.__)("Decoration")),Object(i.createElement)("div",{className:"block-editor-text-decoration-control__buttons"},Mr.map(n=>Object(i.createElement)(p.Button,{key:n.value,icon:n.icon,isSmall:!0,isPressed:n.value===e,onClick:()=>t(n.value===e?void 0:n.value),"aria-label":n.name}))))}function Fr(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Vr(e)?null:Object(i.createElement)(Dr,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textDecoration,onChange:function(e){o({style:qo({...n,typography:{...null==n?void 0:n.typography,textDecoration:e}})})}})}function Vr({name:e}={}){const t=!Object(m.hasBlockSupport)(e,"typography.__experimentalTextDecoration"),n=Io("typography.customTextDecorations");return t||!n}var Hr=Object(i.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(Un.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})),zr=Object(i.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(Un.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})),Gr=Object(i.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(Un.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"}));const Ur=[{name:Object(v.__)("Uppercase"),value:"uppercase",icon:Hr},{name:Object(v.__)("Lowercase"),value:"lowercase",icon:zr},{name:Object(v.__)("Capitalize"),value:"capitalize",icon:Gr}];function Wr({value:e,onChange:t}){return Object(i.createElement)("fieldset",{className:"block-editor-text-transform-control"},Object(i.createElement)("legend",null,Object(v.__)("Letter case")),Object(i.createElement)("div",{className:"block-editor-text-transform-control__buttons"},Ur.map(n=>Object(i.createElement)(p.Button,{key:n.value,icon:n.icon,isSmall:!0,isPressed:e===n.value,"aria-label":n.name,onClick:()=>t(e===n.value?void 0:n.value)}))))}function Kr(e){var t;const{attributes:{style:n},setAttributes:o}=e;return $r(e)?null:Object(i.createElement)(Wr,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textTransform,onChange:function(e){o({style:qo({...n,typography:{...null==n?void 0:n.typography,textTransform:e}})})}})}function $r({name:e}={}){const t=!Object(m.hasBlockSupport)(e,"typography.__experimentalTextTransform"),n=Io("typography.customTextTransforms");return t||!n}function qr(e){const t=!Vr(e),n=!$r(e);return t||n?Object(i.createElement)("div",{className:"block-editor-text-decoration-and-transform"},t&&Object(i.createElement)(Fr,e),n&&Object(i.createElement)(Kr,e)):null}var Yr=n(13);function Xr({value:e,onChange:t}){const n=function(e){return void 0!==e&&""!==e}(e),o=n?e:"";return Object(i.createElement)("div",{className:"block-editor-line-height-control"},Object(i.createElement)(p.TextControl,{autoComplete:"off",onKeyDown:e=>{const{keyCode:o}=e;o!==Yr.ZERO||n||(e.preventDefault(),t("0"))},onChange:e=>{if(n)return void t(e);let o=e;switch(e){case"0.1":o=1.6;break;case"0":o=1.4}t(o)},label:Object(v.__)("Line height"),placeholder:1.5,step:.1,type:"number",value:o,min:0}))}function Qr(e){var t;const{attributes:{style:n}}=e;return Zr(e)?null:Object(i.createElement)(Xr,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.lineHeight,onChange:t=>{const o={...n,typography:{...null==n?void 0:n.typography,lineHeight:t}};e.setAttributes({style:qo(o)})}})}function Zr({name:e}={}){const t=!Io("typography.customLineHeight");return!Object(m.hasBlockSupport)(e,"typography.lineHeight")||t}const Jr=[{name:Object(v.__)("Regular"),value:"normal"},{name:Object(v.__)("Italic"),value:"italic"}],ec=[{name:Object(v.__)("Thin"),value:"100"},{name:Object(v.__)("Extra Light"),value:"200"},{name:Object(v.__)("Light"),value:"300"},{name:Object(v.__)("Regular"),value:"400"},{name:Object(v.__)("Medium"),value:"500"},{name:Object(v.__)("Semi Bold"),value:"600"},{name:Object(v.__)("Bold"),value:"700"},{name:Object(v.__)("Extra Bold"),value:"800"},{name:Object(v.__)("Black"),value:"900"}];function tc(e){const{onChange:t,hasFontStyles:n=!0,hasFontWeights:o=!0,value:{fontStyle:r,fontWeight:c}}=e,l=n||o,a={key:"default",name:Object(v.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},s=Object(i.useMemo)(()=>n&&o?(()=>{const e=[a];return Jr.forEach(({name:t,value:n})=>{ec.forEach(({name:o,value:r})=>{const c="normal"===n?o:Object(v.sprintf)(
9
  /* translators: 1: Font weight name. 2: Font style name. */
10
- Object(v.__)("%1$s %2$s"),o,t);e.push({key:`${n}-${r}`,name:c,style:{fontStyle:n,fontWeight:r}})})}),e})():n?(()=>{const e=[a];return Jr.forEach(({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:n,fontWeight:void 0}})}),e})():(()=>{const e=[a];return ec.forEach(({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:void 0,fontWeight:n}})}),e})(),[e.options]),u=s.find(e=>e.style.fontStyle===r&&e.style.fontWeight===c);return Object(i.createElement)("fieldset",{className:"components-font-appearance-control"},l&&Object(i.createElement)(p.CustomSelectControl,{className:"components-font-appearance-control__select",label:n?o?Object(v.__)("Appearance"):Object(v.__)("Font style"):Object(v.__)("Font weight"),options:s,value:u,onChange:({selectedItem:e})=>t(e.style)}))}function nc(e){var t,n;const{attributes:{style:o},setAttributes:r}=e,c=!oc(e),l=!rc(e);if(!c&&!l)return null;const a=null==o||null===(t=o.typography)||void 0===t?void 0:t.fontStyle,s=null==o||null===(n=o.typography)||void 0===n?void 0:n.fontWeight;return Object(i.createElement)(tc,{onChange:e=>{r({style:qo({...o,typography:{...null==o?void 0:o.typography,fontStyle:e.fontStyle,fontWeight:e.fontWeight}})})},hasFontStyles:c,hasFontWeights:l,value:{fontStyle:a,fontWeight:s}})}function oc({name:e}={}){const t=Object(m.hasBlockSupport)(e,"typography.__experimentalFontStyle"),n=Io("typography.customFontStyle");return!t||!n}function rc({name:e}={}){const t=Object(m.hasBlockSupport)(e,"typography.__experimentalFontWeight"),n=Io("typography.customFontWeight");return!t||!n}function cc(e){const t=oc(e),n=rc(e);return t&&n}function lc({value:e="",onChange:t,fontFamilies:n,...o}){const r=Io("typography.fontFamilies");if(n||(n=r),Object(u.isEmpty)(n))return null;const c=[{value:"",label:Object(v.__)("Default")},...n.map(({fontFamily:e,name:t})=>({value:e,label:t||e}))];return Object(i.createElement)(p.SelectControl,Object(l.a)({label:Object(v.__)("Font family"),options:c,value:e,onChange:t,labelPosition:"top"},o))}function ic({name:e,setAttributes:t,attributes:{style:n={}}}){var o;const r=Io("typography.fontFamilies");if(ac({name:e}))return null;const c=((e,t)=>{const n=/var:preset\|font-family\|(.+)/.exec(t);if(n&&n[1]){const t=Object(u.find)(e,({slug:e})=>e===n[1]);if(t)return t.fontFamily}return t})(r,null===(o=n.typography)||void 0===o?void 0:o.fontFamily);return Object(i.createElement)(lc,{className:"block-editor-hooks-font-family-control",fontFamilies:r,value:c,onChange:function(e){const o=Object(u.find)(r,({fontFamily:t})=>t===e);t({style:qo({...n,typography:{...n.typography||{},fontFamily:o?"var:preset|font-family|"+o.slug:e||void 0}})})}})}function ac({name:e}){const t=Io("typography.fontFamilies");return!t||0===t.length||!Object(m.hasBlockSupport)(e,"typography.__experimentalFontFamily")}var sc=n(141),uc=n.n(sc);const dc=(e,t,n)=>{if(t){const n=Object(u.find)(e,{slug:t});if(n)return n}return{size:n}};function bc(e,t){return Object(u.find)(e,{size:t})||{size:t}}function mc(e){if(e)return`has-${Object(u.kebabCase)(e)}-font-size`}var pc=function(e){const t=Io("typography.fontSizes"),n=!Io("typography.customFontSize");return Object(i.createElement)(p.FontSizePicker,Object(l.a)({},e,{fontSizes:t,disableCustomFontSizes:n}))};function fc(e,t,n){if(!Object(m.hasBlockSupport)(t,"typography.fontSize"))return e;if(Object(m.hasBlockSupport)(t,"typography.__experimentalSkipSerialization"))return e;const o=new uc.a(e.className);o.add(mc(n.fontSize));const r=o.value;return e.className=r||void 0,e}function gc(e){var t,n;const{attributes:{fontSize:o,style:r},setAttributes:c}=e,l=hc(e),a=Io("typography.fontSizes");if(l)return null;const s=dc(a,o,null==r||null===(t=r.typography)||void 0===t?void 0:t.fontSize),u=(null==s?void 0:s.size)||(null==r||null===(n=r.typography)||void 0===n?void 0:n.fontSize)||o;return Object(i.createElement)(pc,{onChange:e=>{const t=bc(a,e).slug;c({style:qo({...r,typography:{...null==r?void 0:r.typography,fontSize:t?void 0:e}}),fontSize:t})},value:u})}function hc({name:e}={}){const t=Io("typography.fontSizes"),n=!(null==t||!t.length);return!Object(m.hasBlockSupport)(e,"typography.fontSize")||!n}const Oc=Object(d.createHigherOrderComponent)(e=>t=>{var n,o;const r=Io("typography.fontSizes"),{name:c,attributes:{fontSize:l,style:a},wrapperProps:s}=t;if(!Object(m.hasBlockSupport)(c,"typography.fontSize")||Object(m.hasBlockSupport)(c,"typography.__experimentalSkipSerialization")||!l||null!=a&&null!==(n=a.typography)&&void 0!==n&&n.fontSize)return Object(i.createElement)(e,t);const u=dc(r,l,null==a||null===(o=a.typography)||void 0===o?void 0:o.fontSize).size,d={...t,wrapperProps:{...s,style:{fontSize:u,...null==s?void 0:s.style}}};return Object(i.createElement)(e,d)},"withFontSizeInlineStyles");function vc({value:e,onChange:t}){const n=Object(p.__experimentalUseCustomUnits)({availableUnits:Io("layout.units")||["px","em","rem"],defaultValues:{px:"2",em:".2",rem:".2"}});return Object(i.createElement)(p.__experimentalUnitControl,{label:Object(v.__)("Letter-spacing"),value:e,__unstableInputWidth:"60px",units:n,onChange:t})}function jc(e){var t;const{attributes:{style:n},setAttributes:o}=e;return kc(e)?null:Object(i.createElement)(vc,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.letterSpacing,onChange:function(e){o({style:qo({...n,typography:{...null==n?void 0:n.typography,letterSpacing:e}})})}})}function kc({name:e}={}){const t=!Object(m.hasBlockSupport)(e,"__experimentalLetterSpacing"),n=Io("typography.customLetterSpacing");return t||!n}Object(b.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(m.hasBlockSupport)(e,"typography.fontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(b.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",fc),Object(b.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(m.hasBlockSupport)(e,"typography.fontSize"))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),fc(o,e,n)},e})),Object(b.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",Oc);const _c=["typography.lineHeight","typography.fontSize","typography.__experimentalFontStyle","typography.__experimentalFontWeight","typography.__experimentalFontFamily","typography.__experimentalTextDecoration","typography.__experimentalTextTransform","__experimentalLetterSpacing"];function yc(e){const t=function(e={}){const t=[cc(e),hc(e),Zr(e),ac(e),Vr(e),$r(e),kc(e)];return t.filter(Boolean).length===t.length}(e),n=Ec(e.name);return t||!n?null:Object(i.createElement)(_o,null,Object(i.createElement)(p.PanelBody,{title:Object(v.__)("Typography")},Object(i.createElement)(ic,e),Object(i.createElement)(gc,e),Object(i.createElement)(nc,e),Object(i.createElement)(Qr,e),Object(i.createElement)(qr,e),Object(i.createElement)(jc,e)))}const Ec=e=>"web"===i.Platform.OS&&_c.some(t=>Object(m.hasBlockSupport)(e,t));function Cc(e){const t=Object(m.getBlockSupport)(e,Tc);return!!(!0===t||null!=t&&t.margin)}function Sc({name:e}={}){const t=!Io("spacing.customMargin");return!Cc(e)||t}function wc(e){var t;const{name:n,attributes:{style:o},setAttributes:r}=e,c=Object(p.__experimentalUseCustomUnits)({availableUnits:Io("spacing.units")||["%","px","em","rem","vw"]}),l=Pc(n,"margin");return Sc(e)?null:i.Platform.select({web:Object(i.createElement)(i.Fragment,null,Object(i.createElement)(p.__experimentalBoxControl,{values:null==o||null===(t=o.spacing)||void 0===t?void 0:t.margin,onChange:e=>{const t={...o,spacing:{...null==o?void 0:o.spacing,margin:e}};r({style:qo(t)})},onChangeShowVisualizer:e=>{const t={...o,visualizers:{margin:e}};r({style:qo(t)})},label:Object(v.__)("Margin"),sides:l,units:c})),native:null})}function Bc(e){const t=Object(m.getBlockSupport)(e,Tc);return!!(!0===t||null!=t&&t.padding)}function Ic({name:e}={}){const t=!Io("spacing.customPadding");return!Bc(e)||t}function xc(e){var t;const{name:n,attributes:{style:o},setAttributes:r}=e,c=Object(p.__experimentalUseCustomUnits)({availableUnits:Io("spacing.units")||["%","px","em","rem","vw"]}),l=Pc(n,"padding");return Ic(e)?null:i.Platform.select({web:Object(i.createElement)(i.Fragment,null,Object(i.createElement)(p.__experimentalBoxControl,{values:null==o||null===(t=o.spacing)||void 0===t?void 0:t.padding,onChange:e=>{const t={...o,spacing:{...null==o?void 0:o.spacing,padding:e}};r({style:qo(t)})},onChangeShowVisualizer:e=>{const t={...o,visualizers:{padding:e}};r({style:qo(t)})},label:Object(v.__)("Padding"),sides:l,units:c})),native:null})}const Tc="spacing";function Nc(e){const t=Lc(e),n=(o=e.name,"web"===i.Platform.OS&&(Bc(o)||Cc(o)));var o;return t||!n?null:Object(i.createElement)(_o,{key:"spacing"},Object(i.createElement)(p.PanelBody,{title:Object(v.__)("Spacing")},Object(i.createElement)(xc,e),Object(i.createElement)(wc,e)))}const Lc=(e={})=>{const t=Ic(e),n=Sc(e);return t&&n};function Pc(e,t){const n=Object(m.getBlockSupport)(e,Tc);if("boolean"!=typeof n[t])return n[t]}const Rc=[..._c,"__experimentalBorder","color",Tc],Ac=e=>Rc.some(t=>Object(m.hasBlockSupport)(e,t));function Mc(e){return Object(u.startsWith)(e,"var:")?`var(--wp--${e.slice("var:".length).split("|").join("--")})`:e}function Dc(e={}){const t={};return Object.keys(m.__EXPERIMENTAL_STYLE_PROPERTY).forEach(n=>{const o=m.__EXPERIMENTAL_STYLE_PROPERTY[n].value,r=m.__EXPERIMENTAL_STYLE_PROPERTY[n].properties;Object(u.has)(e,o)&&"elements"!==Object(u.first)(o)&&(r?r.forEach(r=>{t[n+Object(u.capitalize)(r)]=Mc(Object(u.get)(e,[...o,r]))}):t[n]=Mc(Object(u.get)(e,o)))}),t}const Fc={"__experimentalBorder.__experimentalSkipSerialization":["border"],"color.__experimentalSkipSerialization":["color"],"typography.__experimentalSkipSerialization":["typography"],[Tc+".__experimentalSkipSerialization"]:["spacing"]};function Vc(e,t,n){if(!Ac(t))return e;let{style:o}=n;return Object(u.forEach)(Fc,(e,n)=>{Object(m.getBlockSupport)(t,n)&&(o=Object(u.omit)(o,e))}),e.style={...Dc(o),...e.style},e}const Hc=Object(d.createHigherOrderComponent)(e=>t=>{const n=Mn();return Object(i.createElement)(i.Fragment,null,n&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(yc,t),Object(i.createElement)(cr,t),Object(i.createElement)(Lr,t),Object(i.createElement)(Nc,t)),Object(i.createElement)(e,t))},"withToolbarControls"),zc=Object(d.createHigherOrderComponent)(e=>t=>{var n,o;const r=null===(n=t.attributes.style)||void 0===n?void 0:n.elements,c="wp-elements-"+Object(d.useInstanceId)(e),a=function(e,t={}){return Object(u.map)(t,(t,n)=>{const o=Dc(t);return Object(u.isEmpty)(o)?"":[`.${e} ${m.__EXPERIMENTAL_ELEMENTS[n]}{`,...Object(u.map)(o,(e,t)=>`\t${Object(u.kebabCase)(t)}: ${e}${"link"===n?"!important":""};`),"}"].join("\n")}).join("\n")}(c,null===(o=t.attributes.style)||void 0===o?void 0:o.elements);return Object(i.createElement)(i.Fragment,null,r&&Object(i.createElement)("style",{dangerouslySetInnerHTML:{__html:a}}),Object(i.createElement)(e,Object(l.a)({},t,{className:r?s()(t.className,c):t.className})))});Object(b.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Ac(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(b.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",Vc),Object(b.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Ac(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),Vc(o,e,n)},e})),Object(b.addFilter)("editor.BlockEdit","core/style/with-block-controls",Hc),Object(b.addFilter)("editor.BlockListBlock","core/editor/with-elements-styles",zc);var Gc=function({value:e,onChange:t,onToggle:n,duotonePalette:o,colorPalette:r,disableCustomColors:c}){return Object(i.createElement)(p.Popover,{className:"block-editor-duotone-control__popover",headerTitle:Object(v.__)("Duotone"),onFocusOutside:n},Object(i.createElement)(p.MenuGroup,{label:Object(v.__)("Duotone")},Object(i.createElement)(p.DuotonePicker,{colorPalette:r,duotonePalette:o,disableCustomColors:c,value:e,onChange:t})))},Uc=function({colorPalette:e,duotonePalette:t,disableCustomColors:n,value:o,onChange:r}){const[c,l]=Object(i.useState)(!1);if(!t)return null;const a=()=>{l(e=>!e)};return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(p.ToolbarButton,{showTooltip:!0,onClick:a,"aria-haspopup":"true","aria-expanded":c,onKeyDown:e=>{c||e.keyCode!==Yr.DOWN||(e.preventDefault(),e.stopPropagation(),a())},label:Object(v.__)("Apply duotone filter"),icon:Object(i.createElement)(p.DuotoneSwatch,{values:o})}),c&&Object(i.createElement)(Gc,{value:o,onChange:r,onToggle:a,duotonePalette:t,colorPalette:e,disableCustomColors:n}))};function Wc(e=[]){const t={r:[],g:[],b:[]};return e.forEach(e=>{const n=To()(e);t.r.push(n._r/255),t.g.push(n._g/255),t.b.push(n._b/255)}),t}function Kc({selector:e,id:t,values:n}){const o=`\n${e} {\n\tfilter: url( #${t} );\n}\n`;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(p.SVG,{xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 0 0",width:"0",height:"0",focusable:"false",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"}},Object(i.createElement)("defs",null,Object(i.createElement)("filter",{id:t},Object(i.createElement)("feColorMatrix",{type:"matrix",values:".299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 0 0 0 1 0"}),Object(i.createElement)("feComponentTransfer",{colorInterpolationFilters:"sRGB"},Object(i.createElement)("feFuncR",{type:"table",tableValues:n.r.join(" ")}),Object(i.createElement)("feFuncG",{type:"table",tableValues:n.g.join(" ")}),Object(i.createElement)("feFuncB",{type:"table",tableValues:n.b.join(" ")}))))),Object(i.createElement)("style",{dangerouslySetInnerHTML:{__html:o}}))}function $c({attributes:e,setAttributes:t}){var n;const o=null==e?void 0:e.style,r=null==o||null===(n=o.color)||void 0===n?void 0:n.duotone,c=Io("color.duotone"),l=Io("color.palette"),a=!Io("color.custom");return Object(i.createElement)(Gn,{group:"block"},Object(i.createElement)(Uc,{duotonePalette:c,colorPalette:l,disableCustomColors:a,value:r,onChange:e=>{const n={...o,color:{...null==o?void 0:o.color,duotone:e}};t({style:n})}}))}const qc=Object(d.createHigherOrderComponent)(e=>t=>{const n=Object(m.hasBlockSupport)(t.name,"color.__experimentalDuotone");return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(e,t),n&&Object(i.createElement)($c,t))},"withDuotoneControls"),Yc=Object(d.createHigherOrderComponent)(e=>t=>{var n,o,r;const c=Object(m.getBlockSupport)(t.name,"color.__experimentalDuotone"),a=null==t||null===(n=t.attributes)||void 0===n||null===(o=n.style)||void 0===o||null===(r=o.color)||void 0===r?void 0:r.duotone;if(!c||!a)return Object(i.createElement)(e,t);const u="wp-duotone-filter-"+Object(d.useInstanceId)(e),b=c.split(",").map(e=>`.${u} ${e.trim()}`).join(", "),p=s()(null==t?void 0:t.className,u);return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Kc,{selector:b,id:u,values:Wc(a)}),Object(i.createElement)(e,Object(l.a)({},t,{className:p})))},"withDuotoneStyles");Object(b.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",(function(e){return Object(m.hasBlockSupport)(e,"color.__experimentalDuotone")?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(b.addFilter)("editor.BlockEdit","core/editor/duotone/with-editor-controls",qc),Object(b.addFilter)("editor.BlockListBlock","core/editor/duotone/with-styles",Yc);var Xc=n(109);function Qc({setAttributes:e,attributes:t}){const{layout:n={}}=t,{wideSize:o,contentSize:r,inherit:c=!1}=n,l=Io("layout"),a=Object(f.useSelect)(e=>{const{getSettings:t}=e(An);return t().supportsLayout},[]),s=Object(p.__experimentalUseCustomUnits)({availableUnits:Io("layout.units")||["%","px","em","rem","vw"]});return a?Object(i.createElement)(_o,null,Object(i.createElement)(p.PanelBody,{title:Object(v.__)("Layout")},!!l&&Object(i.createElement)(p.ToggleControl,{label:Object(v.__)("Inherit default layout"),checked:!!c,onChange:()=>e({layout:{inherit:!c}})}),!c&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"block-editor-hooks__layout-controls"},Object(i.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},Object(i.createElement)(p.__experimentalUnitControl,{label:Object(v.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:r||o||"",onChange:t=>{t=0>parseFloat(t)?"0":t,e({layout:{...n,contentSize:t}})},units:s}),Object(i.createElement)(Xc.a,{icon:Kn})),Object(i.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},Object(i.createElement)(p.__experimentalUnitControl,{label:Object(v.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:o||r||"",onChange:t=>{t=0>parseFloat(t)?"0":t,e({layout:{...n,wideSize:t}})},units:s}),Object(i.createElement)(Xc.a,{icon:qn}))),Object(i.createElement)("div",{className:"block-editor-hooks__layout-controls-reset"},Object(i.createElement)(p.Button,{variant:"secondary",isSmall:!0,disabled:!r&&!o,onClick:()=>e({layout:{contentSize:void 0,wideSize:void 0,inherit:!1}})},Object(v.__)("Reset")))),Object(i.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},Object(v.__)("Customize the width for all elements that are assigned to the center or wide columns.")))):null}const Zc=Object(d.createHigherOrderComponent)(e=>t=>{const{name:n}=t;return[Object(m.hasBlockSupport)(n,"__experimentalLayout")&&Object(i.createElement)(Qc,Object(l.a)({key:"layout"},t)),Object(i.createElement)(e,Object(l.a)({key:"edit"},t))]},"withInspectorControls"),Jc=Object(d.createHigherOrderComponent)(e=>t=>{const{name:n,attributes:o}=t,r=Object(m.hasBlockSupport)(n,"__experimentalLayout"),c=Object(d.useInstanceId)(e),a=Io("layout")||{};if(!r)return Object(i.createElement)(e,t);const{layout:u={}}=o,b=u&&u.inherit?a:u,p=s()(null==t?void 0:t.className,"wp-container-"+c);return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(eo,{selector:".wp-container-"+c,layout:b}),Object(i.createElement)(e,Object(l.a)({},t,{className:p})))});Object(b.addFilter)("blocks.registerBlockType","core/layout/addAttribute",(function(e){return Object(u.has)(e.attributes,["layout","type"])||Object(m.hasBlockSupport)(e,"__experimentalLayout")&&(e.attributes={...e.attributes,layout:{type:"object"}}),e})),Object(b.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",Jc),Object(b.addFilter)("editor.BlockEdit","core/editor/layout/with-inspector-controls",Zc);const el=[];function tl({borderColor:e,style:t}){var n;const o=(null==t?void 0:t.border)||{},r=Po("border-color",e);return{className:s()({[r]:!!r,"has-border-color":e||(null==t||null===(n=t.border)||void 0===n?void 0:n.color)})||void 0,style:Dc({border:o})}}function nl(e){const t=Io("color.palette")||el,n=tl(e);if(e.borderColor){const o=No(t,e.borderColor);n.style.borderColor=o.color}return n}const ol=[];function rl(e){var t,n,o,r,c,l;const{backgroundColor:i,textColor:a,gradient:u,style:d}=e,b=Po("background-color",i),m=Po("color",a),p=Ao(u),f=p||(null==d||null===(t=d.color)||void 0===t?void 0:t.gradient);return{className:s()(m,p,{[b]:!f&&!!b,"has-text-color":a||(null==d||null===(n=d.color)||void 0===n?void 0:n.text),"has-background":i||(null==d||null===(o=d.color)||void 0===o?void 0:o.background)||u||(null==d||null===(r=d.color)||void 0===r?void 0:r.gradient),"has-link-color":null==d||null===(c=d.elements)||void 0===c||null===(l=c.link)||void 0===l?void 0:l.color})||void 0,style:Dc({color:(null==d?void 0:d.color)||{}})}}function cl(e){const{backgroundColor:t,textColor:n,gradient:o}=e,r=Io("color.palette")||ol,c=Io("color.gradients")||ol,l=rl(e);if(t){const e=No(r,t);l.style.backgroundColor=e.color}if(o&&(l.style.background=Mo(c,o)),n){const e=No(r,n);l.style.color=e.color}return l}const ll=[];function il(e,t){const n=Object(u.reduce)(e,(e,t)=>({...e,...Object(u.isString)(t)?{[t]:Object(u.kebabCase)(t)}:t}),{});return Object(d.compose)([t,e=>class extends i.Component{constructor(e){super(e),this.setters=this.createSetters(),this.colorUtils={getMostReadableColor:this.getMostReadableColor.bind(this)},this.state={}}getMostReadableColor(e){const{colors:t}=this.props;return function(e,t){return To.a.mostReadable(t,Object(u.map)(e,"color")).toHexString()}(t,e)}createSetters(){return Object(u.reduce)(n,(e,t,n)=>{const o=Object(u.upperFirst)(n),r="custom"+o;return e["set"+o]=this.createSetColor(n,r),e},{})}createSetColor(e,t){return n=>{const o=Lo(this.props.colors,n);this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,colors:t},o){return Object(u.reduce)(n,(n,r,c)=>{const l=No(t,e[c],e["custom"+Object(u.upperFirst)(c)]),i=o[c];return(null==i?void 0:i.color)===l.color&&i?n[c]=i:n[c]={...l,class:Po(r,l.slug)},n},{})}render(){return Object(i.createElement)(e,Object(l.a)({},this.props,{colors:void 0},this.state,this.setters,{colorUtils:this.colorUtils}))}}])}function al(e){return(...t)=>{const n=(e=>Object(d.createHigherOrderComponent)(t=>n=>Object(i.createElement)(t,Object(l.a)({},n,{colors:e})),"withCustomColorPalette"))(e);return Object(d.createHigherOrderComponent)(il(t,n),"withCustomColors")}}function sl(...e){const t=Object(d.createHigherOrderComponent)(e=>t=>{const n=Io("color.palette")||ll;return Object(i.createElement)(e,Object(l.a)({},t,{colors:n}))},"withEditorColorPalette");return Object(d.createHigherOrderComponent)(il(e,t),"withColors")}const ul=[];var dl=(...e)=>{const t=Object(u.reduce)(e,(e,t)=>(e[t]="custom"+Object(u.upperFirst)(t),e),{});return Object(d.createHigherOrderComponent)(Object(d.compose)([Object(d.createHigherOrderComponent)(e=>t=>{const n=Io("typography.fontSizes")||ul;return Object(i.createElement)(e,Object(l.a)({},t,{fontSizes:n}))},"withFontSizes"),e=>class extends i.Component{constructor(e){super(e),this.setters=this.createSetters(),this.state={}}createSetters(){return Object(u.reduce)(t,(e,t,n)=>(e["set"+Object(u.upperFirst)(n)]=this.createSetFontSize(n,t),e),{})}createSetFontSize(e,t){return n=>{const o=Object(u.find)(this.props.fontSizes,{size:Number(n)});this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,fontSizes:n},o){const r=(t,n)=>!o[n]||(e[n]?e[n]!==o[n].slug:o[n].size!==e[t]);if(!Object(u.some)(t,r))return null;const c=Object(u.reduce)(Object(u.pickBy)(t,r),(t,o,r)=>{const c=e[r],l=dc(n,c,e[o]);return t[r]={...l,class:mc(c)},t},{});return{...o,...c}}render(){return Object(i.createElement)(e,Object(l.a)({},this.props,{fontSizes:void 0},this.state,this.setters))}}]),"withFontSizes")},bl=n(280),ml=n(281),pl=n(282);const fl=[{icon:bl.a,title:Object(v.__)("Align text left"),align:"left"},{icon:ml.a,title:Object(v.__)("Align text center"),align:"center"},{icon:pl.a,title:Object(v.__)("Align text right"),align:"right"}],gl={position:"bottom right",isAlternate:!0};var hl=function({value:e,onChange:t,alignmentControls:n=fl,label:o=Object(v.__)("Align"),describedBy:r=Object(v.__)("Change text alignment"),isCollapsed:c=!0,isToolbar:a}){function s(n){return()=>t(e===n?void 0:n)}const d=Object(u.find)(n,t=>t.align===e),b=a?p.ToolbarGroup:p.ToolbarDropdownMenu,m=a?{isCollapsed:c}:{};return Object(i.createElement)(b,Object(l.a)({icon:d?d.icon:Object(v.isRTL)()?pl.a:bl.a,label:o,toggleProps:{describedBy:r},popoverProps:gl,controls:n.map(t=>{const{align:n}=t,o=e===n;return{...t,isActive:o,role:c?"menuitemradio":void 0,onClick:s(n)}})},m))};function Ol(e){return Object(i.createElement)(hl,Object(l.a)({},e,{isToolbar:!1}))}function vl(e){return Object(i.createElement)(hl,Object(l.a)({},e,{isToolbar:!0}))}const jl=e=>e.name||"",kl=e=>e.title,_l=e=>e.description||"",yl=e=>e.keywords||[],El=e=>e.category,Cl=()=>null;function Sl(e=""){return(e=(e=Object(u.deburr)(e)).replace(/^\//,"")).toLowerCase()}const wl=(e="")=>Object(u.words)(Sl(e)),Bl=(e,t,n,o)=>0===wl(o).length?e:Il(e,o,{getCategory:e=>{var n;return null===(n=Object(u.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:e=>{var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title}}),Il=(e=[],t="",n={})=>{if(0===wl(t).length)return e;const o=e.map(e=>[e,xl(e,t,n)]).filter(([,e])=>e>0);return o.sort(([,e],[,t])=>t-e),o.map(([e])=>e)};function xl(e,t,n={}){const{getName:o=jl,getTitle:r=kl,getDescription:c=_l,getKeywords:l=yl,getCategory:i=El,getCollection:a=Cl}=n,s=o(e),d=r(e),b=c(e),m=l(e),p=i(e),f=a(e),g=Sl(t),h=Sl(d);let O=0;if(g===h)O+=30;else if(h.startsWith(g))O+=20;else{const e=[s,d,b,...m,p,f].join(" ");0===(v=Object(u.words)(g),j=e,Object(u.differenceWith)(v,wl(j),(e,t)=>t.includes(e))).length&&(O+=10)}var v,j;return 0!==O&&s.startsWith("core/")&&O++,O}var Tl=(e,t)=>{const{categories:n,collections:o,items:r}=Object(f.useSelect)(t=>{const{getInserterItems:n}=t(An),{getCategories:o,getCollections:r}=t(m.store);return{categories:o(),collections:r(),items:n(e)}},[e]);return[r,n,o,Object(i.useCallback)(({name:e,initialAttributes:n,innerBlocks:o},r)=>{const c=Object(m.createBlock)(e,n,Object(m.createBlocksFromInnerBlocksTemplate)(o));t(c,void 0,r)},[t])]},Nl=n(146);function Ll({icon:e,showColors:t=!1,className:n}){var o;"block-default"===(null===(o=e)||void 0===o?void 0:o.src)&&(e={src:Nl.a});const r=Object(i.createElement)(p.Icon,{icon:e&&e.src?e.src:e}),c=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return Object(i.createElement)("span",{style:c,className:s()("block-editor-block-icon",n,{"has-colors":t})},r)}var Pl={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockName:n}=Object(f.useSelect)(e=>{const{getSelectedBlockClientId:t,getBlockName:n,getBlockInsertionPoint:o}=e(An),r=t();return{selectedBlockName:r?n(r):null,rootClientId:o().rootClientId}},[]),[o,r,c]=Tl(t,u.noop),l=Object(i.useMemo)(()=>(e.trim()?Bl(o,r,c,e):Object(u.orderBy)(o,["frecency"],["desc"])).filter(e=>e.name!==n).slice(0,9),[e,n,o,r,c]);return[Object(i.useMemo)(()=>l.map(e=>{const{title:t,icon:n,isDisabled:o}=e;return{key:"block-"+e.id,value:e,label:Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Ll,{key:"icon",icon:n,showColors:!0}),t),isDisabled:o}}),[l])]},allowContext:(e,t)=>!(/\S/.test(e)||/\S/.test(t)),getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:o}=e;return{action:"replace",value:Object(m.createBlock)(t,n,Object(m.createBlocksFromInnerBlocksTemplate)(o))}}};const Rl=[];function Al({completers:e=Rl}){const{name:t}=O();return Object(i.useMemo)(()=>{let n=e;return t===Object(m.getDefaultBlockName)()&&(n=n.concat([Pl])),Object(b.hasFilter)("editor.Autocomplete.completers")&&(n===e&&(n=n.map(u.clone)),n=Object(b.applyFilters)("editor.Autocomplete.completers",n,t)),n},[e,t])}var Ml=function(e){return Object(i.createElement)(p.Autocomplete,Object(l.a)({},e,{completers:Al(e)}))},Dl=Object(i.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(Un.Path,{d:"M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"})),Fl=function({isActive:e,label:t=Object(v.__)("Toggle full height"),onToggle:n,isDisabled:o}){return Object(i.createElement)(p.ToolbarButton,{isActive:e,icon:Dl,label:t,onClick:()=>n(!e),disabled:o})},Vl=function(e){const{label:t=Object(v.__)("Change matrix alignment"),onChange:n=u.noop,value:o="center",isDisabled:r}=e,c=Object(i.createElement)(p.__experimentalAlignmentMatrixControl.Icon,{value:o});return Object(i.createElement)(p.Dropdown,{position:"bottom right",className:"block-editor-block-alignment-matrix-control",popoverProps:{className:"block-editor-block-alignment-matrix-control__popover",isAlternate:!0},renderToggle:({onToggle:e,isOpen:n})=>Object(i.createElement)(p.ToolbarButton,{onClick:e,"aria-haspopup":"true","aria-expanded":n,onKeyDown:t=>{n||t.keyCode!==Yr.DOWN||(t.preventDefault(),t.stopPropagation(),e())},label:t,icon:c,showTooltip:!0,disabled:r}),renderContent:()=>Object(i.createElement)(p.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:n,value:o})})};function Hl(e){return Object(f.useSelect)(t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:o}=t(An),{getBlockType:r,getActiveBlockVariation:c}=t(m.store),l=n(e),i=r(l);if(!i)return null;const a=o(e),s=c(l,a),u={title:i.title,icon:i.icon,description:i.description,anchor:null==a?void 0:a.anchor};return s?{title:s.title||i.title,icon:s.icon||i.icon,description:s.description||i.description}:u},[e])}function zl({clientId:e}){const{attributes:t,name:n,reusableBlockTitle:o}=Object(f.useSelect)(t=>{if(!e)return{};const{getBlockName:n,getBlockAttributes:o,__experimentalGetReusableBlockTitle:r}=t(An),c=n(e);if(!c)return{};const l=Object(m.isReusableBlock)(Object(m.getBlockType)(c));return{attributes:o(e),name:c,reusableBlockTitle:l&&r(o(e).ref)}},[e]),r=Hl(e);if(!n||!r)return null;const c=Object(m.getBlockType)(n),l=o||Object(m.__experimentalGetBlockLabel)(c,t);return l!==c.title?Object(u.truncate)(l,{length:35}):r.title}var Gl=function({rootLabelText:e}){const{selectBlock:t,clearSelectedBlock:n}=Object(f.useDispatch)(An),{clientId:o,parents:r,hasSelection:c}=Object(f.useSelect)(e=>{const{getSelectionStart:t,getSelectedBlockClientId:n,getBlockParents:o}=e(An),r=n();return{parents:o(r),clientId:r,hasSelection:!!t().clientId}},[]),l=e||Object(v.__)("Document");return Object(i.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(v.__)("Block breadcrumb")},Object(i.createElement)("li",{className:c?void 0:"block-editor-block-breadcrumb__current","aria-current":c?void 0:"true"},c&&Object(i.createElement)(p.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:n},l),!c&&l),r.map(e=>Object(i.createElement)("li",{key:e},Object(i.createElement)(p.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:()=>t(e)},Object(i.createElement)(zl,{clientId:e})))),!!o&&Object(i.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(i.createElement)(zl,{clientId:o})))};const Ul=Object(i.createContext)({});function Wl({value:e,children:t}){const n=Object(i.useContext)(Ul),o=Object(i.useMemo)(()=>({...n,...e}),[n,e]);return Object(i.createElement)(Ul.Provider,{value:o,children:t})}var Kl=Ul;const $l=()=>Object(i.createElement)(p.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(i.createElement)(p.Path,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"})),ql=({style:e,className:t})=>Object(i.createElement)("div",{className:"block-library-colors-selector__icon-container"},Object(i.createElement)("div",{className:t+" block-library-colors-selector__state-selection",style:e},Object(i.createElement)($l,null))),Yl=({TextColor:e,BackgroundColor:t})=>({onToggle:n,isOpen:o})=>Object(i.createElement)(p.ToolbarGroup,null,Object(i.createElement)(p.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:Object(v.__)("Open Colors Selector"),onClick:n,onKeyDown:e=>{o||e.keyCode!==Yr.DOWN||(e.preventDefault(),e.stopPropagation(),n())},icon:Object(i.createElement)(t,null,Object(i.createElement)(e,null,Object(i.createElement)(ql,null)))}));var Xl=({children:e,...t})=>Object(i.createElement)(p.Dropdown,{position:"bottom right",className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:Yl(t),renderContent:()=>e});const Ql={};var Zl=Object(p.withFilters)("editor.BlockEdit")(e=>{const{attributes:t={},name:n}=e,o=Object(m.getBlockType)(n),r=Object(i.useContext)(Kl),c=Object(i.useMemo)(()=>o&&o.usesContext?Object(u.pick)(r,o.usesContext):Ql,[o,r]);if(!o)return null;const a=o.edit||o.save;if(o.apiVersion>1||Object(m.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(i.createElement)(a,Object(l.a)({},e,{context:c}));const d=Object(m.hasBlockSupport)(o,"className",!0)?Object(m.getBlockDefaultClassName)(n):null,b=s()(d,t.className);return Object(i.createElement)(a,Object(l.a)({},e,{context:c,className:b}))});function Jl(e){const{name:t,isSelected:n,clientId:o}=e,r={name:t,isSelected:n,clientId:o};return Object(i.createElement)(h,{value:Object(i.useMemo)(()=>r,Object.values(r))},Object(i.createElement)(Zl,e))}var ei=n(173),ti=n(149),ni=n(103),oi=n(21);const ri=e=>e+1,ci=e=>({top:e.offsetTop,left:e.offsetLeft});var li=function({isSelected:e,adjustScrolling:t,enableAnimation:n,triggerAnimationOnChange:o}){const r=Object(i.useRef)(),c=Object(d.useReducedMotion)()||!n,[l,a]=Object(i.useReducer)(ri,0),[s,u]=Object(i.useReducer)(ri,0),[b,m]=Object(i.useState)({x:0,y:0}),p=Object(i.useMemo)(()=>r.current?ci(r.current):null,[o]),f=Object(i.useMemo)(()=>{if(!t||!r.current)return()=>{};const e=Object(oi.getScrollContainer)(r.current);if(!e)return()=>{};const n=r.current.getBoundingClientRect();return()=>{const t=r.current.getBoundingClientRect().top-n.top;t&&(e.scrollTop+=t)}},[o,t]);function g({x:t,y:n}){t=Math.round(t),n=Math.round(n),t===g.x&&n===g.y||(function({x:t,y:n}){if(!r.current)return;const o=0===t&&0===n;r.current.style.transformOrigin=o?"":"center",r.current.style.transform=o?"":`translate3d(${t}px,${n}px,0)`,r.current.style.zIndex=!e||o?"":"1",f()}({x:t,y:n}),g.x=t,g.y=n)}return Object(i.useLayoutEffect)(()=>{l&&u()},[l]),Object(i.useLayoutEffect)(()=>{if(!p)return;if(c)return void f();r.current.style.transform="";const e=ci(r.current);a(),m({x:Math.round(p.left-e.left),y:Math.round(p.top-e.top)})},[o]),g.x=0,g.y=0,Object(ni.useSpring)({from:{x:b.x,y:b.y},to:{x:0,y:0},reset:l!==s,config:{mass:5,tension:2e3,friction:200},immediate:c,onFrame:g}),r};const ii=Object(ni.animated)(p.__experimentalTreeGridRow);function ai({isSelected:e,position:t,level:n,rowCount:o,children:r,className:c,path:a,...u}){const d=li({isSelected:e,adjustScrolling:!1,enableAnimation:!0,triggerAnimationOnChange:a.join("_")});return Object(i.createElement)(ii,Object(l.a)({ref:d,className:s()("block-editor-block-navigation-leaf",c),level:n,positionInSet:t,setSize:o},u),r)}var si=n(207),ui=n(208),di=n(283),bi=n(148);const mi=(e,t)=>"up"===e?"horizontal"===t?Object(v.isRTL)()?si.a:ui.a:di.a:"down"===e?"horizontal"===t?Object(v.isRTL)()?ui.a:si.a:bi.a:null,pi=(e,t)=>"up"===e?"horizontal"===t?Object(v.isRTL)()?Object(v.__)("Move right"):Object(v.__)("Move left"):Object(v.__)("Move up"):"down"===e?"horizontal"===t?Object(v.isRTL)()?Object(v.__)("Move left"):Object(v.__)("Move right"):Object(v.__)("Move down"):null,fi=Object(i.forwardRef)(({clientIds:e,direction:t,orientation:n,...o},r)=>{const c=Object(d.useInstanceId)(fi),a=Object(u.castArray)(e).length,{blockType:b,isDisabled:g,rootClientId:h,isFirst:O,isLast:j,firstIndex:k,orientation:_="vertical"}=Object(f.useSelect)(o=>{const{getBlockIndex:r,getBlockRootClientId:c,getBlockOrder:l,getBlock:i,getBlockListSettings:a}=o(An),s=Object(u.castArray)(e),d=Object(u.first)(s),b=c(d),p=r(d,b),f=r(Object(u.last)(s),b),g=l(b),h=i(d),O=0===p,v=f===g.length-1,{orientation:j}=a(b)||{};return{blockType:h?Object(m.getBlockType)(h.name):null,isDisabled:"up"===t?O:v,rootClientId:b,firstIndex:p,isFirst:O,isLast:v,orientation:n||j}},[e,t]),{moveBlocksDown:y,moveBlocksUp:E}=Object(f.useDispatch)(An),C="up"===t?E:y,S="block-editor-block-mover-button__description-"+c;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(p.Button,Object(l.a)({ref:r,className:s()("block-editor-block-mover-button",`is-${t}-button`),icon:mi(t,_),label:pi(t,_),"aria-describedby":S},o,{onClick:g?null:t=>{C(e,h),o.onClick&&o.onClick(t)},"aria-disabled":g})),Object(i.createElement)("span",{id:S,className:"block-editor-block-mover-button__description"},function(e,t,n,o,r,c,l){const i=n+1,a=e=>"up"===e?"horizontal"===l?Object(v.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===l?Object(v.isRTL)()?"left":"right":"down":null;if(e>1)return function(e,t,n,o,r){const c=t+1;return r<0&&n?Object(v.__)("Blocks cannot be moved up as they are already at the top"):r>0&&o?Object(v.__)("Blocks cannot be moved down as they are already at the bottom"):r<0&&!n?Object(v.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
11
- Object(v._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,c):r>0&&!o?Object(v.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
12
- Object(v._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,c):void 0}(e,n,o,r,c);if(o&&r)return Object(v.sprintf)(// translators: %s: Type of block (i.e. Text, Image etc)
13
- Object(v.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!r){const e=a("down");if("down"===e)return Object(v.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
14
- Object(v.__)("Move %1$s block from position %2$d down to position %3$d"),t,i,i+1);if("left"===e)return Object(v.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
15
- Object(v.__)("Move %1$s block from position %2$d left to position %3$d"),t,i,i+1);if("right"===e)return Object(v.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
16
- Object(v.__)("Move %1$s block from position %2$d right to position %3$d"),t,i,i+1)}if(c>0&&r){const e=a("down");if("down"===e)return Object(v.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
17
- Object(v.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===e)return Object(v.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
18
- Object(v.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===e)return Object(v.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
19
- Object(v.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!o){const e=a("up");if("up"===e)return Object(v.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
20
- Object(v.__)("Move %1$s block from position %2$d up to position %3$d"),t,i,i-1);if("left"===e)return Object(v.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
21
- Object(v.__)("Move %1$s block from position %2$d left to position %3$d"),t,i,i-1);if("right"===e)return Object(v.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
22
- Object(v.__)("Move %1$s block from position %2$d right to position %3$d"),t,i,i-1)}if(c<0&&o){const e=a("up");if("up"===e)return Object(v.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
23
- Object(v.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===e)return Object(v.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
24
- Object(v.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===e)return Object(v.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
25
- Object(v.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}(a,b&&b.title,k,O,j,"up"===t?-1:1,_)))}),gi=Object(i.forwardRef)((e,t)=>Object(i.createElement)(fi,Object(l.a)({direction:"up",ref:t},e))),hi=Object(i.forwardRef)((e,t)=>Object(i.createElement)(fi,Object(l.a)({direction:"down",ref:t},e))),Oi=Object(i.createContext)({__experimentalFeatures:!1,__experimentalPersistentListViewFeatures:!1}),vi=()=>Object(i.useContext)(Oi);var ji=Object(i.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(Un.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"})),ki=function({className:e,actions:t,children:n,secondaryActions:o}){return Object(i.createElement)("div",{className:s()(e,"block-editor-warning")},Object(i.createElement)("div",{className:"block-editor-warning__contents"},Object(i.createElement)("p",{className:"block-editor-warning__message"},n),(i.Children.count(t)>0||o)&&Object(i.createElement)("div",{className:"block-editor-warning__actions"},i.Children.count(t)>0&&i.Children.map(t,(e,t)=>Object(i.createElement)("span",{key:t,className:"block-editor-warning__action"},e)),o&&Object(i.createElement)(p.DropdownMenu,{className:"block-editor-warning__secondary",icon:ji,label:Object(v.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},()=>Object(i.createElement)(p.MenuGroup,null,o.map((e,t)=>Object(i.createElement)(p.MenuItem,{onClick:e.onClick,key:t},e.title)))))))},_i=n(255),yi=({title:e,rawContent:t,renderedContent:n,action:o,actionText:r,className:c})=>Object(i.createElement)("div",{className:c},Object(i.createElement)("div",{className:"block-editor-block-compare__content"},Object(i.createElement)("h2",{className:"block-editor-block-compare__heading"},e),Object(i.createElement)("div",{className:"block-editor-block-compare__html"},t),Object(i.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},n)),Object(i.createElement)("div",{className:"block-editor-block-compare__action"},Object(i.createElement)(p.Button,{variant:"secondary",tabIndex:"0",onClick:o},r))),Ei=function({block:e,onKeep:t,onConvert:n,convertor:o,convertButtonText:r}){const c={rawContent:e.originalContent,renderedContent:Object(m.getSaveElement)(e.name,e.attributes)},l=function(e){const t=Object(u.castArray)(e),n=t.map(e=>Object(m.getSaveContent)(e.name,e.attributes,e.innerBlocks)),o=t.map(e=>Object(m.getSaveElement)(e.name,e.attributes,e.innerBlocks));return{rawContent:n.join(""),renderedContent:o}}(o(e)),a=(d=c.rawContent,b=l.rawContent,Object(_i.diffChars)(d,b).map((e,t)=>{const n=s()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(i.createElement)("span",{key:t,className:n},e.value)}));var d,b;return Object(i.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(i.createElement)(yi,{title:Object(v.__)("Current"),className:"block-editor-block-compare__current",action:t,actionText:Object(v.__)("Convert to HTML"),rawContent:c.rawContent,renderedContent:c.renderedContent}),Object(i.createElement)(yi,{title:Object(v.__)("After Conversion"),className:"block-editor-block-compare__converted",action:n,actionText:r,rawContent:a,renderedContent:l.renderedContent}))};const Ci=e=>Object(m.rawHandler)({HTML:e.originalContent});var Si=Object(d.compose)([Object(f.withSelect)((e,{clientId:t})=>({block:e(An).getBlock(t)})),Object(f.withDispatch)((e,{block:t})=>{const{replaceBlock:n}=e(An);return{convertToClassic(){n(t.clientId,(e=>Object(m.createBlock)("core/freeform",{content:e.originalContent}))(t))},convertToHTML(){n(t.clientId,(e=>Object(m.createBlock)("core/html",{content:e.originalContent}))(t))},convertToBlocks(){n(t.clientId,Ci(t))},attemptBlockRecovery(){n(t.clientId,(({name:e,attributes:t,innerBlocks:n})=>Object(m.createBlock)(e,t,n))(t))}}})])((function({convertToHTML:e,convertToBlocks:t,convertToClassic:n,attemptBlockRecovery:o,block:r}){const c=!!Object(m.getBlockType)("core/html"),[l,a]=Object(i.useState)(!1),s=Object(i.useCallback)(()=>a(!0),[]),u=Object(i.useCallback)(()=>a(!1),[]),d=Object(i.useMemo)(()=>[{
26
  // translators: Button to fix block content
27
- title:Object(v._x)("Resolve","imperative verb"),onClick:s},c&&{title:Object(v.__)("Convert to HTML"),onClick:e},{title:Object(v.__)("Convert to Classic Block"),onClick:n}].filter(Boolean),[s,e,n]);return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(ki,{actions:[Object(i.createElement)(p.Button,{key:"recover",onClick:o,variant:"primary"},Object(v.__)("Attempt Block Recovery"))],secondaryActions:d},Object(v.__)("This block contains unexpected or invalid content.")),l&&Object(i.createElement)(p.Modal,{title:// translators: Dialog title to fix block content
28
- Object(v.__)("Resolve Block"),onRequestClose:u,className:"block-editor-block-compare"},Object(i.createElement)(Ei,{block:r,onKeep:e,onConvert:t,convertor:Ci,convertButtonText:Object(v.__)("Convert to Blocks")})))}));const wi=Object(i.createElement)(ki,{className:"block-editor-block-list__block-crash-warning"},Object(v.__)("This block has encountered an error and cannot be previewed."));var Bi=()=>wi;class Ii extends i.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}}var xi=Ii,Ti=n(89),Ni=n.n(Ti),Li=function({clientId:e}){const[t,n]=Object(i.useState)(""),o=Object(f.useSelect)(t=>t(An).getBlock(e),[e]),{updateBlock:r}=Object(f.useDispatch)(An);return Object(i.useEffect)(()=>{n(Object(m.getBlockContent)(o))},[o]),Object(i.createElement)(Ni.a,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:()=>{const c=Object(m.getBlockType)(o.name),l=Object(m.getBlockAttributes)(c,t,o.attributes),i=t||Object(m.getSaveContent)(c,l),a=!t||Object(m.isValidBlockContent)(c,l,i);r(e,{attributes:l,originalContent:i,isValid:a}),t||n({content:i})},onChange:e=>n(e.target.value)})};const Pi=".block-editor-block-list__block";function Ri(e,t){return t.closest(Pi)===e}function Ai(e){const t=Object(i.useRef)(),n=function(e){return Object(f.useSelect)(t=>{const{getSelectedBlocksInitialCaretPosition:n,isMultiSelecting:o,isNavigationMode:r,isBlockSelected:c}=t(An);if(c(e)&&!o()&&!r())return n()},[e])}(e);return Object(i.useEffect)(()=>{if(null==n)return;if(!t.current)return;const{ownerDocument:e}=t.current;if(t.current.contains(e.activeElement))return;const o=oi.focus.tabbable.find(t.current).filter(e=>Object(oi.isTextField)(e)),r=-1===n,c=(r?u.last:u.first)(o)||t.current;Ri(t.current,c)&&!c.closest(".block-list-appender")?Object(oi.placeCaretAtHorizontalEdge)(c,r):t.current.focus()},[n]),t}function Mi(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function Di(){const e=Object(f.useSelect)(e=>{const{isNavigationMode:t,getSettings:n}=e(An);return t()||n().outlineMode},[]);return Object(d.useRefEffect)(t=>{if(e)return t.addEventListener("mouseout",Mi),t.addEventListener("mouseover",Mi),()=>{t.removeEventListener("mouseout",Mi),t.removeEventListener("mouseover",Mi),t.classList.remove("is-hovered")}},[e])}function Fi(e){return Object(f.useSelect)(t=>{const{isBlockBeingDragged:n,isBlockHighlighted:o,isBlockSelected:r,isBlockMultiSelected:c,getBlockName:l,getSettings:i,hasSelectedInnerBlock:a,isTyping:u,__experimentalGetActiveBlockIdByBlockNames:d}=t(An),{__experimentalSpotlightEntityBlocks:b,outlineMode:p}=i(),f=n(e),g=r(e),h=l(e),O=a(e,!0),v=d(b);return s()({"is-selected":g,"is-highlighted":o(e),"is-multi-selected":c(e),"is-reusable":Object(m.isReusableBlock)(Object(m.getBlockType)(h)),"is-dragging":f,"has-child-selected":O,"has-active-entity":v,"is-active-entity":v===e,"remove-outline":g&&p&&u()})},[e])}function Vi(e){return Object(f.useSelect)(t=>{const n=t(An).getBlockName(e),o=Object(m.getBlockType)(n);if(o.apiVersion>1||Object(m.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(m.getBlockDefaultClassName)(n)},[e])}function Hi(e){return Object(f.useSelect)(t=>{const{getBlockName:n,getBlockAttributes:o}=t(An),{className:r}=o(e);if(!r)return;const c=Object(m.getBlockType)(n(e));return c.apiVersion>1||Object(m.hasBlockSupport)(c,"lightBlockWrapper",!1)?r:void 0},[e])}function zi(e){return Object(f.useSelect)(t=>{const{hasBlockMovingClientId:n,canInsertBlockType:o,getBlockName:r,getBlockRootClientId:c,isBlockSelected:l}=t(An);if(!l(e))return;const i=n();return i?s()("is-block-moving-mode",{"can-insert-moving-block":o(r(i),c(e))}):void 0},[e])}function Gi(e){const{isBlockSelected:t}=Object(f.useSelect)(An),{selectBlock:n,selectionChange:o}=Object(f.useDispatch)(An);return Object(d.useRefEffect)(r=>{function c(c){t(e)?c.target.isContentEditable||o(e):Ri(r,c.target)&&n(e)}return r.addEventListener("focusin",c),()=>{r.removeEventListener("focusin",c)}},[t,n])}function Ui(e){const t=Object(f.useSelect)(t=>t(An).isBlockSelected(e),[e]),{getBlockRootClientId:n,getBlockIndex:o}=Object(f.useSelect)(An),{insertDefaultBlock:r,removeBlock:c}=Object(f.useDispatch)(An);return Object(d.useRefEffect)(l=>{if(t)return l.addEventListener("keydown",i),l.addEventListener("dragstart",a),()=>{l.removeEventListener("keydown",i),l.removeEventListener("dragstart",a)};function i(t){const{keyCode:i,target:a}=t;i!==Yr.ENTER&&i!==Yr.BACKSPACE&&i!==Yr.DELETE||a!==l||Object(oi.isTextField)(a)||(t.preventDefault(),i===Yr.ENTER?r({},n(e),o(e)+1):c(e))}function a(e){e.preventDefault()}},[e,t,n,o,r,c])}function Wi(e){const{isNavigationMode:t,isBlockSelected:n}=Object(f.useSelect)(An),{setNavigationMode:o,selectBlock:r}=Object(f.useDispatch)(An);return Object(d.useRefEffect)(c=>{function l(c){t()&&!c.defaultPrevented&&(c.preventDefault(),n(e)?o(!1):r(e))}return c.addEventListener("mousedown",l),()=>{c.addEventListener("mousedown",l)}},[e,t,n,o])}var Ki=n(113),$i=n.n(Ki);function qi(e){const t=Object(i.useRef)(),n=Object(f.useSelect)(t=>{const{isBlockSelected:n,getBlockSelectionEnd:o}=t(An);return n(e)||o()===e},[e]);return Object(i.useEffect)(()=>{if(!n)return;const e=t.current;if(!e)return;if(e.contains(e.ownerDocument.activeElement))return;const o=Object(oi.getScrollContainer)(e)||e.ownerDocument.defaultView;o&&$i()(e,o,{onlyScrollIfNeeded:!0})},[n]),t}function Yi(e,t){Array.from(e.closest(".is-root-container").querySelectorAll(".rich-text")).forEach(e=>{t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")})}function Xi(e){const{startMultiSelect:t,stopMultiSelect:n,multiSelect:o,selectBlock:r}=Object(f.useDispatch)(An),{isSelectionEnabled:c,isBlockSelected:l,getBlockParents:i,getBlockSelectionStart:a,hasMultiSelection:s}=Object(f.useSelect)(An);return Object(d.useRefEffect)(u=>{const{ownerDocument:d}=u,{defaultView:b}=d;let m,p;function f({isSelectionEnd:t}){const n=b.getSelection();if(!n.rangeCount||n.isCollapsed)return void Yi(u,!0);const c=function(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(Pi);return t?t.id.slice("block-".length):void 0}(n.focusNode);if(e===c){if(r(e),t&&(Yi(u,!0),n.rangeCount)){const{commonAncestorContainer:e}=n.getRangeAt(0);m.contains(e)&&m.focus()}}else{const t=[...i(e),e],n=[...i(c),c],r=Math.min(t.length,n.length)-1;o(t[r],n[r])}}function g(){d.removeEventListener("selectionchange",f),b.removeEventListener("mouseup",g),p=b.requestAnimationFrame(()=>{f({isSelectionEnd:!0}),n()})}function h({buttons:n}){1===n&&c()&&l(e)&&(m=d.activeElement,t(),d.addEventListener("selectionchange",f),b.addEventListener("mouseup",g),Yi(u,!1))}function O(t){if(c()&&0===t.button)if(t.shiftKey){const n=a();n!==e&&(Yi(u,!1),o(n,e),t.preventDefault())}else s()&&r(e)}return u.addEventListener("mousedown",O),u.addEventListener("mouseleave",h),()=>{u.removeEventListener("mousedown",O),u.removeEventListener("mouseleave",h),d.removeEventListener("selectionchange",f),b.removeEventListener("mouseup",g),b.cancelAnimationFrame(p)}},[e,t,n,o,r,c,l,i])}var Qi=n(39),Zi=n(124);const Ji=[Object(i.createInterpolateElement)(Object(v.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:Object(i.createElement)("kbd",null)}),Object(i.createInterpolateElement)(Object(v.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:Object(i.createElement)("kbd",null)}),Object(i.createInterpolateElement)(Object(v.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:Object(i.createElement)("kbd",null)}),Object(v.__)("Drag files into the editor to automatically insert media blocks."),Object(v.__)("Change a block's type by pressing the block icon on the toolbar.")];var ea=function(){const[e]=Object(i.useState)(Math.floor(Math.random()*Ji.length));return Object(i.createElement)(p.Tip,null,Ji[e])},ta=n(91),na=n(206),oa=function e({className:t,onChange:n,value:o,label:r,placeholder:c}){const l=Object(d.useInstanceId)(e),a=Object(i.useRef)();return Object(i.createElement)("div",{className:s()("block-editor-inserter__search",t)},Object(i.createElement)(p.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-"+l},r||c),Object(i.createElement)("input",{ref:a,className:"block-editor-inserter__search-input",id:"block-editor-inserter__search-"+l,type:"search",placeholder:c,onChange:e=>n(e.target.value),autoComplete:"off",value:o||""}),Object(i.createElement)("div",{className:"block-editor-inserter__search-icon"},!!o&&Object(i.createElement)(p.Button,{icon:ta.a,label:Object(v.__)("Reset search"),onClick:()=>{n(""),a.current.focus()}}),!o&&Object(i.createElement)(Xc.a,{icon:na.a})))},ra=function({title:e,icon:t,description:n,blockType:o}){return o&&(wt()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:e,icon:t,description:n}=o)),Object(i.createElement)("div",{className:"block-editor-block-card"},Object(i.createElement)(Ll,{icon:t,showColors:!0}),Object(i.createElement)("div",{className:"block-editor-block-card__content"},Object(i.createElement)("h2",{className:"block-editor-block-card__title"},e),Object(i.createElement)("span",{className:"block-editor-block-card__description"},n)))};function ca({clientId:e=null,value:t,selection:n,onChange:o=u.noop,onInput:r=u.noop}){const c=Object(f.useRegistry)(),{resetBlocks:l,resetSelection:a,replaceInnerBlocks:s,setHasControlledInnerBlocks:d,__unstableMarkNextChangeAsNotPersistent:b}=c.dispatch(An),{getBlockName:p,getBlocks:g}=c.select(An),h=Object(i.useRef)({incoming:null,outgoing:[]}),O=Object(i.useRef)(!1),v=Object(i.useRef)(r),j=Object(i.useRef)(o);Object(i.useEffect)(()=>{v.current=r,j.current=o},[r,o]),Object(i.useEffect)(()=>{h.current.outgoing.includes(t)?Object(u.last)(h.current.outgoing)===t&&(h.current.outgoing=[]):g(e)!==t&&(h.current.outgoing=[],(()=>{if(t)if(b(),e){d(e,!0),b();const n=t.map(e=>Object(m.cloneBlock)(e));O.current&&(h.current.incoming=n),s(e,n)}else O.current&&(h.current.incoming=t),l(t)})(),n&&a(n.selectionStart,n.selectionEnd,n.initialPosition))},[t,e]),Object(i.useEffect)(()=>{const{getSelectionStart:t,getSelectionEnd:n,getSelectedBlocksInitialCaretPosition:o,isLastBlockChangePersistent:r,__unstableIsLastBlockChangeIgnored:l}=c.select(An);let i=g(e),a=r(),s=!1;O.current=!0;const u=c.subscribe(()=>{if(null!==e&&null===p(e))return;const c=r(),u=g(e),d=u!==i;if(i=u,d&&(h.current.incoming||l()))return h.current.incoming=null,void(a=c);(d||s&&!d&&c&&!a)&&(a=c,h.current.outgoing.push(i),(a?j.current:v.current)(i,{selection:{selectionStart:t(),selectionEnd:n(),initialPosition:o()}})),s=d});return()=>u()},[c,e])}var la=Object(d.createHigherOrderComponent)(e=>Object(f.withRegistry)(({useSubRegistry:t=!0,registry:n,...o})=>{if(!t)return Object(i.createElement)(e,Object(l.a)({registry:n},o));const[r,c]=Object(i.useState)(null);return Object(i.useEffect)(()=>{const e=Object(f.createRegistry)({},n);e.registerStore(It,Rn),c(e)},[n]),r?Object(i.createElement)(f.RegistryProvider,{value:r},Object(i.createElement)(e,Object(l.a)({registry:r},o))):null}),"withRegistryProvider")((function(e){const{children:t,settings:n}=e,{updateSettings:o}=Object(f.useDispatch)(An);return Object(i.useEffect)(()=>{o(n)},[n]),ca(e),Object(i.createElement)(vr,null,t)}));function ia({onClick:e}){return Object(i.createElement)("div",{tabIndex:0,role:"button",onClick:e,onKeyPress:e},Object(i.createElement)(p.Disabled,null,Object(i.createElement)(fu,null)))}let aa;var sa=function({viewportWidth:e,__experimentalPadding:t}){const[n,{width:o}]=Object(d.useResizeObserver)(),[r,{height:c}]=Object(d.useResizeObserver)();aa=aa||Object(d.pure)(fu);const l=(o-2*t)/e;return Object(i.createElement)("div",{className:"block-editor-block-preview__container editor-styles-wrapper","aria-hidden":!0,style:{height:c*l+2*t}},n,Object(i.createElement)(p.Disabled,{style:{transform:`scale(${l})`,width:e,left:t,right:t,top:t},className:"block-editor-block-preview__content"},r,Object(i.createElement)(aa,null)))},ua=Object(i.memo)((function({blocks:e,__experimentalPadding:t=0,viewportWidth:n=1200,__experimentalLive:o=!1,__experimentalOnClick:r}){const c=Object(f.useSelect)(e=>e(An).getSettings(),[]),l=Object(i.useMemo)(()=>{const e={...c};return e.__experimentalBlockPatterns=[],e},[c]),a=Object(i.useMemo)(()=>Object(u.castArray)(e),[e]);return e&&0!==e.length?Object(i.createElement)(la,{value:a,settings:l},o?Object(i.createElement)(ia,{onClick:r}):Object(i.createElement)(sa,{viewportWidth:n,__experimentalPadding:t})):null})),da=function({item:e}){var t,n;const{name:o,title:r,icon:c,description:l,initialAttributes:a}=e,s=Object(m.getBlockType)(o),u=Object(m.isReusableBlock)(e);return Object(i.createElement)("div",{className:"block-editor-inserter__preview-container"},Object(i.createElement)("div",{className:"block-editor-inserter__preview"},u||s.example?Object(i.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(i.createElement)(ua,{__experimentalPadding:16,viewportWidth:null!==(t=null===(n=s.example)||void 0===n?void 0:n.viewportWidth)&&void 0!==t?t:500,blocks:s.example?Object(m.getBlockFromExample)(e.name,{attributes:{...s.example.attributes,...a},innerBlocks:s.example.innerBlocks}):Object(m.createBlock)(o,a)})):Object(i.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(v.__)("No Preview Available."))),!u&&Object(i.createElement)(ra,{title:r,icon:c,description:l}))},ba=Object(i.createContext)(),ma=Object(i.forwardRef)((function({isFirst:e,as:t,children:n,...o},r){const c=Object(i.useContext)(ba);return Object(i.createElement)(p.__unstableCompositeItem,Object(l.a)({ref:r,state:c,role:"option",focusable:!0},o),o=>{const r={...o,tabIndex:e?0:o.tabIndex};return t?Object(i.createElement)(t,r,n):"function"==typeof n?n(r):Object(i.createElement)(p.Button,r,n)})})),pa=Object(i.createElement)(Un.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(i.createElement)(Un.Path,{d:"M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"}));function fa({count:e,icon:t}){return Object(i.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},Object(i.createElement)("div",{className:"block-editor-block-draggable-chip"},Object(i.createElement)(p.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},Object(i.createElement)(p.FlexItem,null,t?Object(i.createElement)(Ll,{icon:t}):Object(v.sprintf)(
29
  /* translators: %d: Number of blocks. */
30
- Object(v._n)("%d block","%d blocks",e),e)),Object(i.createElement)(p.FlexItem,null,Object(i.createElement)(Ll,{icon:pa})))))}var ga=({isEnabled:e,blocks:t,icon:n,children:o})=>{const r={type:"inserter",blocks:t};return Object(i.createElement)(p.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:r,__experimentalDragComponent:Object(i.createElement)(fa,{count:t.length,icon:n})},({onDraggableStart:t,onDraggableEnd:n})=>o({draggable:e,onDragStart:e?t:void 0,onDragEnd:e?n:void 0}))};function ha(e=window){const{platform:t}=e.navigator;return-1!==t.indexOf("Mac")||["iPad","iPhone"].includes(t)}var Oa=Object(i.memo)((function({className:e,isFirst:t,item:n,onSelect:o,onHover:r,isDraggable:c,...a}){const u=Object(i.useRef)(!1),d=n.icon?{backgroundColor:n.icon.background,color:n.icon.foreground}:{},b=Object(i.useMemo)(()=>[Object(m.createBlock)(n.name,n.initialAttributes,Object(m.createBlocksFromInnerBlocksTemplate)(n.innerBlocks))],[n.name,n.initialAttributes,n.initialAttributes]);return Object(i.createElement)(ga,{isEnabled:c&&!n.disabled,blocks:b,icon:n.icon},({draggable:c,onDragStart:b,onDragEnd:m})=>Object(i.createElement)("div",{className:"block-editor-block-types-list__list-item",draggable:c,onDragStart:e=>{u.current=!0,b&&(r(null),b(e))},onDragEnd:e=>{u.current=!1,m&&m(e)}},Object(i.createElement)(ma,Object(l.a)({isFirst:t,className:s()("block-editor-block-types-list__item",e),disabled:n.isDisabled,onClick:e=>{e.preventDefault(),o(n,ha()?e.metaKey:e.ctrlKey),r(null)},onKeyDown:e=>{const{keyCode:t}=e;t===Yr.ENTER&&(e.preventDefault(),o(n,ha()?e.metaKey:e.ctrlKey),r(null))},onFocus:()=>{u.current||r(n)},onMouseEnter:()=>{u.current||r(n)},onMouseLeave:()=>r(null),onBlur:()=>r(null)},a),Object(i.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:d},Object(i.createElement)(Ll,{icon:n.icon,showColors:!0})),Object(i.createElement)("span",{className:"block-editor-block-types-list__item-title"},n.title))))})),va=Object(i.forwardRef)((function(e,t){const[n,o]=Object(i.useState)(!1);return Object(i.useEffect)(()=>{n&&Object(Ct.speak)(Object(v.__)("Use left and right arrow keys to move through blocks"))},[n]),Object(i.createElement)("div",Object(l.a)({ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{o(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&o(!1)}},e))})),ja=Object(i.forwardRef)((function(e,t){const n=Object(i.useContext)(ba);return Object(i.createElement)(p.__unstableCompositeGroup,Object(l.a)({state:n,role:"presentation",ref:t},e))})),ka=function({items:e=[],onSelect:t,onHover:n=(()=>{}),children:o,label:r,isDraggable:c=!0}){return Object(i.createElement)(va,{className:"block-editor-block-types-list","aria-label":r},function(e,t){const n=[];for(let t=0,o=e.length;t<o;t+=3)n.push(e.slice(t,t+3));return n}(e).map((e,o)=>Object(i.createElement)(ja,{key:o},e.map((e,r)=>Object(i.createElement)(Oa,{key:e.id,item:e,className:Object(m.getBlockMenuDefaultClassName)(e.id),onSelect:t,onHover:n,isDraggable:c,isFirst:0===o&&0===r})))),o)},_a=function({title:e,icon:t,children:n}){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"block-editor-inserter__panel-header"},Object(i.createElement)("h2",{className:"block-editor-inserter__panel-title"},e),Object(i.createElement)(p.Icon,{icon:t})),Object(i.createElement)("div",{className:"block-editor-inserter__panel-content"},n))},ya=function({children:e}){const t=Object(p.__unstableUseCompositeState)({shift:!0,wrap:"horizontal"});return Object(i.createElement)(ba.Provider,{value:t},e)},Ea=function({rootClientId:e,onInsert:t,onHover:n,showMostUsedBlocks:o}){const[r,c,l,a]=Tl(e,t),s=Object(i.useMemo)(()=>Object(u.orderBy)(r,["frecency"],["desc"]).slice(0,6),[r]),d=Object(i.useMemo)(()=>r.filter(e=>!e.category),[r]),b=Object(i.useMemo)(()=>Object(u.flow)(e=>e.filter(e=>e.category&&"reusable"!==e.category),e=>Object(u.groupBy)(e,"category"))(r),[r]),m=Object(i.useMemo)(()=>{const e={...l};return Object.keys(l).forEach(t=>{e[t]=r.filter(e=>(e=>e.name.split("/")[0])(e)===t),0===e[t].length&&delete e[t]}),e},[r,l]);return Object(i.useEffect)(()=>()=>n(null),[]),Object(i.createElement)(ya,null,Object(i.createElement)("div",null,o&&!!s.length&&Object(i.createElement)(_a,{title:Object(v._x)("Most used","blocks")},Object(i.createElement)(ka,{items:s,onSelect:a,onHover:n,label:Object(v._x)("Most used","blocks")})),Object(u.map)(c,e=>{const t=b[e.slug];return t&&t.length?Object(i.createElement)(_a,{key:e.slug,title:e.title,icon:e.icon},Object(i.createElement)(ka,{items:t,onSelect:a,onHover:n,label:e.title})):null}),d.length>0&&Object(i.createElement)(_a,{className:"block-editor-inserter__uncategorized-blocks-panel",title:Object(v.__)("Uncategorized")},Object(i.createElement)(ka,{items:d,onSelect:a,onHover:n,label:Object(v.__)("Uncategorized")})),Object(u.map)(l,(e,t)=>{const o=m[t];return o&&o.length?Object(i.createElement)(_a,{key:t,title:e.title,icon:e.icon},Object(i.createElement)(ka,{items:o,onSelect:a,onHover:n,label:e.title})):null})))},Ca=function({selectedCategory:e,patternCategories:t,onClickCategory:n,children:o}){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:s()("block-editor-inserter__panel-header","block-editor-inserter__panel-header-patterns")},Object(i.createElement)(p.SelectControl,{className:"block-editor-inserter__panel-dropdown",label:Object(v.__)("Filter patterns"),hideLabelFromVision:!0,value:e.name,onChange:e=>{n(t.find(t=>e===t.name))},onBlur:e=>{null!=e&&e.relatedTarget||e.stopPropagation()},options:(()=>{const e=[];return t.map(t=>e.push({value:t.name,label:t.label})),e})()})),Object(i.createElement)("div",{className:"block-editor-inserter__panel-content"},o))},Sa=n(28),wa=(e,t)=>{const{patternCategories:n,patterns:o}=Object(f.useSelect)(e=>{const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(An);return{patterns:n(t),patternCategories:o().__experimentalBlockPatternCategories}},[t]),{createSuccessNotice:r}=Object(f.useDispatch)(Sa.store);return[o,n,Object(i.useCallback)((t,n)=>{e(Object(u.map)(n,e=>Object(m.cloneBlock)(e)),t.name),r(Object(v.sprintf)(
31
  /* translators: %s: block pattern title. */
32
- Object(v.__)('Block pattern "%s" inserted.'),t.title),{type:"snackbar"})},[])]};function Ba({isDraggable:e,pattern:t,onClick:n,composite:o}){const{name:r,viewportWidth:c}=t,{blocks:a}=Object(f.useSelect)(e=>e(An).__experimentalGetParsedPattern(r),[r]),s="block-editor-block-patterns-list__item-description-"+Object(d.useInstanceId)(Ba);return Object(i.createElement)(ga,{isEnabled:e,blocks:a},({draggable:e,onDragStart:r,onDragEnd:u})=>Object(i.createElement)("div",{className:"block-editor-block-patterns-list__list-item","aria-label":t.title,"aria-describedby":t.description?s:void 0,draggable:e,onDragStart:r,onDragEnd:u},Object(i.createElement)(p.__unstableCompositeItem,Object(l.a)({role:"option",as:"div"},o,{className:"block-editor-block-patterns-list__item",onClick:()=>n(t,a)}),Object(i.createElement)(ua,{blocks:a,viewportWidth:c}),Object(i.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},t.title),!!t.description&&Object(i.createElement)(p.VisuallyHidden,{id:s},t.description))))}function Ia(){return Object(i.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}var xa=function({isDraggable:e,blockPatterns:t,shownPatterns:n,onClickPattern:o,orientation:r,label:c=Object(v.__)("Block Patterns")}){const a=Object(p.__unstableUseCompositeState)({orientation:r});return Object(i.createElement)(p.__unstableComposite,Object(l.a)({},a,{role:"listbox",className:"block-editor-block-patterns-list","aria-label":c}),t.map(t=>n.includes(t)?Object(i.createElement)(Ba,{key:t.name,pattern:t,onClick:o,isDraggable:e,composite:a}):Object(i.createElement)(Ia,{key:t.name})))};function Ta({rootClientId:e,onInsert:t,selectedCategory:n,onClickCategory:o}){const[r,c,l]=wa(t,e),a=Object(i.useMemo)(()=>c.filter(e=>r.some(t=>{var n;return null===(n=t.categories)||void 0===n?void 0:n.includes(e.name)})),[r,c]),s=n||a[0];Object(i.useEffect)(()=>{r.some(e=>b(e)===1/0)&&!a.find(e=>"uncategorized"===e.name)&&a.push({name:"uncategorized",label:Object(v._x)("Uncategorized")})},[a,r]);const b=Object(i.useCallback)(e=>{if(!e.categories||!e.categories.length)return 1/0;const t=Object(u.fromPairs)(a.map(({name:e},t)=>[e,t]));return Math.min(...e.categories.map(e=>void 0!==t[e]?t[e]:1/0))},[a]),m=Object(i.useMemo)(()=>r.filter(e=>"uncategorized"===s.name?b(e)===1/0:e.categories&&e.categories.includes(s.name)),[r,s]),p=Object(i.useMemo)(()=>m.sort((e,t)=>b(e)-b(t)),[m,b]),f=Object(d.useAsyncList)(p);return Object(i.createElement)(i.Fragment,null,!!m.length&&Object(i.createElement)(Ca,{selectedCategory:s,patternCategories:a,onClickCategory:o},Object(i.createElement)(xa,{shownPatterns:f,blockPatterns:m,onClickPattern:l,label:s.label,orientation:"vertical",isDraggable:!0})))}var Na=function({rootClientId:e,onInsert:t,onClickCategory:n,selectedCategory:o}){return Object(i.createElement)(Ta,{rootClientId:e,selectedCategory:o,onInsert:t,onClickCategory:n})},La=n(19),Pa=function(){return Object(i.createElement)("div",{className:"block-editor-inserter__no-results"},Object(i.createElement)(Xc.a,{className:"block-editor-inserter__no-results-icon",icon:Nl.a}),Object(i.createElement)("p",null,Object(v.__)("No results found.")))};function Ra({onHover:e,onInsert:t,rootClientId:n}){const[o,,,r]=Tl(n,t),c=Object(i.useMemo)(()=>o.filter(({category:e})=>"reusable"===e),[o]);return 0===c.length?Object(i.createElement)(Pa,null):Object(i.createElement)(_a,{title:Object(v.__)("Reusable blocks")},Object(i.createElement)(ka,{items:c,onSelect:r,onHover:e,label:Object(v.__)("Reusable blocks")}))}var Aa=function({rootClientId:e,onInsert:t,onHover:n}){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Ra,{onHover:n,onInsert:t,rootClientId:e}),Object(i.createElement)("div",{className:"block-editor-inserter__manage-reusable-blocks-container"},Object(i.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:Object(La.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(v.__)("Manage Reusable blocks"))))};const{Fill:Ma,Slot:Da}=Object(p.createSlotFill)("__unstableInserterMenuExtension");Ma.Slot=Da;var Fa=Ma,Va=function({rootClientId:e="",insertionIndex:t,clientId:n,isAppender:o,onSelect:r,shouldFocusBlock:c=!0}){const{getSelectedBlock:l}=Object(f.useSelect)(An),{destinationRootClientId:a,destinationIndex:s}=Object(f.useSelect)(r=>{const{getSelectedBlockClientId:c,getBlockRootClientId:l,getBlockIndex:i,getBlockOrder:a}=r(An),s=c();let u,d=e;return t?u=t:n?u=i(n,d):!o&&s?(d=l(s),u=i(s,d)+1):u=a(d).length,{destinationRootClientId:d,destinationIndex:u}},[e,t,n,o]),{replaceBlocks:d,insertBlocks:b,showInsertionPoint:p,hideInsertionPoint:g}=Object(f.useDispatch)(An),h=Object(i.useCallback)((e,t,n=!1)=>{const i=l();!o&&i&&Object(m.isUnmodifiedDefaultBlock)(i)?d(i.clientId,e,null,c||n?0:null,t):b(e,s,a,!0,c||n?0:null,t);const p=Object(v.sprintf)(// translators: %d: the name of the block that has been added
33
- Object(v._n)("%d block added.","%d blocks added.",Object(u.castArray)(e).length),Object(u.castArray)(e).length);Object(Ct.speak)(p),r&&r()},[o,l,d,b,a,s,r,c]),O=Object(i.useCallback)(e=>{e?p(a,s):g()},[p,g,a,s]);return[a,h,O]},Ha=function({filterValue:e,onSelect:t,onHover:n,rootClientId:o,clientId:r,isAppender:c,__experimentalInsertionIndex:l,maxBlockPatterns:a,maxBlockTypes:s,showBlockDirectory:b=!1,isDraggable:m=!0,shouldFocusBlock:f=!0}){const g=Object(d.useDebounce)(Ct.speak,500),[h,O]=Va({onSelect:t,rootClientId:o,clientId:r,isAppender:c,insertionIndex:l,shouldFocusBlock:f}),[j,k,_,y]=Tl(h,O),[E,,C]=wa(O,h),S=Object(i.useMemo)(()=>{const t=Bl(Object(u.orderBy)(j,["frecency"],["desc"]),k,_,e);return void 0!==s?t.slice(0,s):t},[e,j,k,_,s]),w=Object(i.useMemo)(()=>{const t=Il(E,e);return void 0!==a?t.slice(0,a):t},[e,E,a]);Object(i.useEffect)(()=>{if(!e)return;const t=S.length+w.length,n=Object(v.sprintf)(
34
  /* translators: %d: number of results. */
35
- Object(v._n)("%d result found.","%d results found.",t),t);g(n)},[e,g]);const B=Object(d.useAsyncList)(w),I=!Object(u.isEmpty)(S)||!Object(u.isEmpty)(w);return Object(i.createElement)(ya,null,!b&&!I&&Object(i.createElement)(Pa,null),!!S.length&&Object(i.createElement)(_a,{title:Object(i.createElement)(p.VisuallyHidden,null,Object(v.__)("Blocks"))},Object(i.createElement)(ka,{items:S,onSelect:y,onHover:n,label:Object(v.__)("Blocks"),isDraggable:m})),!!S.length&&!!w.length&&Object(i.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),!!w.length&&Object(i.createElement)(_a,{title:Object(i.createElement)(p.VisuallyHidden,null,Object(v.__)("Block Patterns"))},Object(i.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},Object(i.createElement)(xa,{shownPatterns:B,blockPatterns:w,onClickPattern:C,isDraggable:m}))),b&&Object(i.createElement)(Fa.Slot,{fillProps:{onSelect:y,onHover:n,filterValue:e,hasItems:I,rootClientId:h}},e=>e.length?e:I?null:Object(i.createElement)(Pa,null)))};const za={name:"blocks",
36
  /* translators: Blocks tab title in the block inserter. */
37
- title:Object(v.__)("Blocks")},Ga={name:"patterns",
38
  /* translators: Patterns tab title in the block inserter. */
39
- title:Object(v.__)("Patterns")},Ua={name:"reusable",
40
  /* translators: Reusable blocks tab title in the block inserter. */
41
- title:Object(v.__)("Reusable")};var Wa=function({children:e,showPatterns:t=!1,showReusableBlocks:n=!1,onSelect:o}){const r=Object(i.useMemo)(()=>{const e=[za];return t&&e.push(Ga),n&&e.push(Ua),e},[za,t,Ga,n,Ua]);return Object(i.createElement)(p.TabPanel,{className:"block-editor-inserter__tabs",tabs:r,onSelect:o},e)},Ka=function({rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,onSelect:r,showInserterHelpPanel:c,showMostUsedBlocks:l,shouldFocusBlock:a=!0}){const[s,u]=Object(i.useState)(""),[d,b]=Object(i.useState)(null),[m,g]=Object(i.useState)(null),[h,O,j]=Va({rootClientId:e,clientId:t,isAppender:n,insertionIndex:o,shouldFocusBlock:a}),{showPatterns:k,hasReusableBlocks:_}=Object(f.useSelect)(e=>{var t;const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(An);return{showPatterns:!!n(h).length,hasReusableBlocks:!(null===(t=o().__experimentalReusableBlocks)||void 0===t||!t.length)}},[h]),y=Object(i.useCallback)((e,t,n)=>{O(e,t,n),r()},[O,r]),E=Object(i.useCallback)((e,t)=>{O(e,{patternName:t}),r()},[O,r]),C=Object(i.useCallback)(e=>{j(!!e),b(e)},[j,b]),S=Object(i.useCallback)(e=>{g(e)},[g]),w=Object(i.useMemo)(()=>Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"block-editor-inserter__block-list"},Object(i.createElement)(Ea,{rootClientId:h,onInsert:y,onHover:C,showMostUsedBlocks:l})),c&&Object(i.createElement)("div",{className:"block-editor-inserter__tips"},Object(i.createElement)(p.VisuallyHidden,{as:"h2"},Object(v.__)("A tip for using the block editor")),Object(i.createElement)(ea,null))),[h,y,C,s,l,c]),B=Object(i.useMemo)(()=>Object(i.createElement)(Na,{rootClientId:h,onInsert:E,onClickCategory:S,selectedCategory:m}),[h,E,S,m]),I=Object(i.useMemo)(()=>Object(i.createElement)(Aa,{rootClientId:h,onInsert:y,onHover:C}),[h,y,C]),x=Object(i.useCallback)(e=>"blocks"===e.name?w:"patterns"===e.name?B:I,[w,B,I]);return Object(i.createElement)("div",{className:"block-editor-inserter__menu"},Object(i.createElement)("div",{className:"block-editor-inserter__main-area"},Object(i.createElement)("div",{className:"block-editor-inserter__content"},Object(i.createElement)(oa,{onChange:e=>{d&&b(null),u(e)},value:s,label:Object(v.__)("Search for blocks and patterns"),placeholder:Object(v.__)("Search")}),!!s&&Object(i.createElement)(Ha,{filterValue:s,onSelect:r,onHover:C,rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,showBlockDirectory:!0,shouldFocusBlock:a}),!s&&(k||_)&&Object(i.createElement)(Wa,{showPatterns:k,showReusableBlocks:_},x),!s&&!k&&!_&&w)),c&&d&&Object(i.createElement)(da,{item:d}))};function $a({onSelect:e,rootClientId:t,clientId:n,isAppender:o}){const[r,c]=Object(i.useState)(""),[l,a]=Va({onSelect:e,rootClientId:t,clientId:n,isAppender:o}),[u]=Tl(l,a),[d]=wa(a,l),b=d.length&&!!r,m=b&&d.length>6||u.length>6,{setInserterIsOpened:g,insertionIndex:h}=Object(f.useSelect)(e=>{const{getSettings:o,getBlockIndex:r,getBlockCount:c}=e(An),l=r(n,t);return{setInserterIsOpened:o().__experimentalSetIsInserterOpened,insertionIndex:-1===l?c():l}},[n,t]);return Object(i.useEffect)(()=>{g&&g(!1)},[g]),Object(i.createElement)("div",{className:s()("block-editor-inserter__quick-inserter",{"has-search":m,"has-expand":g})},m&&Object(i.createElement)(oa,{value:r,onChange:e=>{c(e)},label:Object(v.__)("Search for blocks and patterns"),placeholder:Object(v.__)("Search")}),Object(i.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},Object(i.createElement)(Ha,{filterValue:r,onSelect:e,rootClientId:t,clientId:n,isAppender:o,maxBlockPatterns:b?2:0,maxBlockTypes:6,isDraggable:!1})),g&&Object(i.createElement)(p.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{g({rootClientId:t,insertionIndex:h})},"aria-label":Object(v.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(v.__)("Browse all")))}const qa=({onToggle:e,disabled:t,isOpen:n,blockTitle:o,hasSingleBlockType:r,toggleProps:c={}})=>{let a;a=r?Object(v.sprintf)(// translators: %s: the name of the block when there is only one
42
- Object(v._x)("Add %s","directly add the only allowed block"),o):Object(v._x)("Add block","Generic label for block inserter button");const{onClick:s,...u}=c;return Object(i.createElement)(p.Button,Object(l.a)({icon:Zi.a,label:a,tooltipPosition:"bottom",onClick:function(t){e&&e(t),s&&s(t)},className:"block-editor-inserter__toggle","aria-haspopup":!r&&"true","aria-expanded":!r&&n,disabled:t},u))};class Ya extends i.Component{constructor(){super(...arguments),this.onToggle=this.onToggle.bind(this),this.renderToggle=this.renderToggle.bind(this),this.renderContent=this.renderContent.bind(this)}onToggle(e){const{onToggle:t}=this.props;t&&t(e)}renderToggle({onToggle:e,isOpen:t}){const{disabled:n,blockTitle:o,hasSingleBlockType:r,toggleProps:c,hasItems:l,renderToggle:i=qa}=this.props;return i({onToggle:e,isOpen:t,disabled:n||!l,blockTitle:o,hasSingleBlockType:r,toggleProps:c})}renderContent({onClose:e}){const{rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r,__experimentalIsQuick:c}=this.props;return c?Object(i.createElement)($a,{onSelect:()=>{e()},rootClientId:t,clientId:n,isAppender:o}):Object(i.createElement)(Ka,{onSelect:()=>{e()},rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r})}render(){const{position:e,hasSingleBlockType:t,insertOnlyAllowedBlock:n,__experimentalIsQuick:o,onSelectOrClose:r}=this.props;return t?this.renderToggle({onToggle:n}):Object(i.createElement)(p.Dropdown,{className:"block-editor-inserter",contentClassName:s()("block-editor-inserter__popover",{"is-quick":o}),position:e,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(v.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:r})}}var Xa=Object(d.compose)([Object(f.withSelect)((e,{clientId:t,rootClientId:n})=>{const{getBlockRootClientId:o,hasInserterItems:r,__experimentalGetAllowedBlocks:c}=e(An),{getBlockVariations:l}=e(m.store),i=c(n=n||o(t)||void 0),a=1===Object(u.size)(i)&&0===Object(u.size)(l(i[0].name,"inserter"));let s=!1;return a&&(s=i[0]),{hasItems:r(n),hasSingleBlockType:a,blockTitle:s?s.title:"",allowedBlockType:s,rootClientId:n}}),Object(f.withDispatch)((e,t,{select:n})=>({insertOnlyAllowedBlock(){const{rootClientId:o,clientId:r,isAppender:c,hasSingleBlockType:l,allowedBlockType:i,onSelectOrClose:a}=t;if(!l)return;const{insertBlock:s}=e(An);s(Object(m.createBlock)(i.name),function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:l,getBlockRootClientId:i}=n(An);if(r)return e(r,o);const a=t();return!c&&a&&i(a)===o?e(a,o)+1:l(o).length}(),o),a&&a();const u=Object(v.sprintf)(// translators: %s: the name of the block that has been added
43
- Object(v.__)("%s block added"),i.title);Object(Ct.speak)(u)}})),Object(d.ifCondition)(({hasItems:e,isAppender:t,rootClientId:n,clientId:o})=>e||!t&&!n&&!o)])(Ya),Qa=Object(d.compose)(Object(f.withSelect)((e,t)=>{const{getBlockCount:n,getBlockName:o,isBlockValid:r,getSettings:c,getTemplateLock:l}=e(An),i=!n(t.rootClientId),a=o(t.lastBlockClientId)===Object(m.getDefaultBlockName)(),s=r(t.lastBlockClientId),{bodyPlaceholder:u}=c();return{isVisible:i||!a||!s,showPrompt:i,isLocked:!!l(t.rootClientId),placeholder:u}}),Object(f.withDispatch)((e,t)=>{const{insertDefaultBlock:n,startTyping:o}=e(An);return{onAppend(){const{rootClientId:e}=t;n(void 0,e),o()}}}))((function({isLocked:e,isVisible:t,onAppend:n,showPrompt:o,placeholder:r,rootClientId:c}){if(e||!t)return null;const l=Object(Qi.decodeEntities)(r)||Object(v.__)("Type / to choose a block");return Object(i.createElement)("div",{"data-root-client-id":c||"",className:"block-editor-default-block-appender"},Object(i.createElement)("p",{tabIndex:"0",contentEditable:!0,suppressContentEditableWarning:!0,role:"button","aria-label":Object(v.__)("Add block"),className:"wp-block block-editor-default-block-appender__content",onFocus:n},o?l:"\ufeff"),Object(i.createElement)(Xa,{rootClientId:c,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}));function Za({rootClientId:e,className:t,onFocus:n,tabIndex:o},r){return Object(i.createElement)(Xa,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,renderToggle:({onToggle:e,disabled:c,isOpen:l,blockTitle:a,hasSingleBlockType:u})=>{let d;d=u?Object(v.sprintf)(// translators: %s: the name of the block when there is only one
44
- Object(v._x)("Add %s","directly add the only allowed block"),a):Object(v._x)("Add block","Generic label for block inserter button");const b=!u;let m=Object(i.createElement)(p.Button,{ref:r,onFocus:n,tabIndex:o,className:s()(t,"block-editor-button-block-appender"),onClick:e,"aria-haspopup":b?"true":void 0,"aria-expanded":b?l:void 0,disabled:c,label:d},!u&&Object(i.createElement)(p.VisuallyHidden,{as:"span"},d),Object(i.createElement)(Xc.a,{icon:Zi.a}));return(b||u)&&(m=Object(i.createElement)(p.Tooltip,{text:d},m)),m},isAppender:!0})}const Ja=Object(i.forwardRef)((e,t)=>(wt()("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender"}),Za(e,t)));var es=Object(i.forwardRef)(Za);function ts(e){e.stopPropagation()}Object(i.createContext)();var ns=Object(f.withSelect)((e,{rootClientId:t})=>{const{getBlockOrder:n,canInsertBlockType:o,getTemplateLock:r,getSelectedBlockClientId:c}=e(An);return{isLocked:!!r(t),blockClientIds:n(t),canInsertDefaultBlock:o(Object(m.getDefaultBlockName)(),t),selectedBlockClientId:c()}})((function({blockClientIds:e,rootClientId:t,canInsertDefaultBlock:n,isLocked:o,renderAppender:r,className:c,selectedBlockClientId:l,tagName:a="div"}){if(o||!1===r)return null;let d;if(r)d=Object(i.createElement)(r,null);else{const o=!t,r=l===t,c=l&&!e.includes(l);if(!o&&!r&&(!l||c))return null;d=n?Object(i.createElement)(Qa,{rootClientId:t,lastBlockClientId:Object(u.last)(e)}):Object(i.createElement)(es,{rootClientId:t,className:"block-list-appender__toggle"})}return Object(i.createElement)(a,{tabIndex:-1,onFocus:ts,className:s()("block-list-appender","wp-block",c)},d)}));function os(e,t){const n=Object(f.useSelect)(e=>e(An).getSettings().mediaUpload,[]),{canInsertBlockType:o,getBlockIndex:r,getClientIdsOfDescendants:c}=Object(f.useSelect)(An),{insertBlocks:l,moveBlocksToPosition:i,updateBlockAttributes:a,clearSelectedBlock:s}=Object(f.useDispatch)(An),u=function(e,t,n,o,r,c,l){return i=>{const{srcRootClientId:a,srcClientIds:s,type:u,blocks:d}=function(e){let t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch(e){return t}return t}(i);if("inserter"===u&&(l(),c(d,t,e,!0,null)),"block"===u){const c=n(s[0],a);if(a===e&&c===t)return;if(s.includes(e)||o(s).some(t=>t===e))return;const l=a===e,i=s.length;r(s,a,e,l&&c<t?t-i:t)}}}(e,t,r,c,i,l,s),d=function(e,t,n,o,r,c){return l=>{if(!n)return;const i=Object(m.findTransform)(Object(m.getBlockTransforms)("from"),t=>"files"===t.type&&r(t.blockName,e)&&t.isMatch(l));if(i){const n=i.transform(l,o);c(n,t,e)}}}(e,t,n,a,o,l),b=function(e,t,n){return o=>{const r=Object(m.pasteHandler)({HTML:o,mode:"BLOCKS"});r.length&&n(r,t,e)}}(e,t,l);return e=>{const t=Object(oi.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");t.length?d(t):n?b(n):u(e)}}function rs(e,t,n=["top","bottom","left","right"]){let o,r;return n.forEach(n=>{const c=function(e,t,n){const o="top"===n||"bottom"===n,{x:r,y:c}=e,l=o?r:c,i=o?c:r,a=o?t.left:t.top,s=o?t.right:t.bottom,u=t[n];let d;return d=l>=a&&l<=s?l:l<s?a:s,Math.sqrt((l-d)**2+(i-u)**2)}(e,t,n);(void 0===o||c<o)&&(o=c,r=n)}),[o,r]}function cs({rootClientId:e=""}={}){const[t,n]=Object(i.useState)(null),o=Object(f.useSelect)(t=>{const{getTemplateLock:n}=t(An);return"all"===n(e)},[e]),{getBlockListSettings:r}=Object(f.useSelect)(An),{showInsertionPoint:c,hideInsertionPoint:l}=Object(f.useDispatch)(An),a=os(e,t),s=Object(d.useThrottle)(Object(i.useCallback)((t,o)=>{var l;const i=function(e,t,n){const o="horizontal"===n?["left","right"]:["top","bottom"];let r,c;return e.forEach((e,n)=>{if(!e.classList.contains("wp-block"))return;const l=e.getBoundingClientRect(),[i,a]=rs(t,l,o);(void 0===c||i<c)&&(c=i,r=n+("bottom"===a||"right"===a?1:0))}),r}(Array.from(o.children),{x:t.clientX,y:t.clientY},null===(l=r(e))||void 0===l?void 0:l.orientation);n(void 0===i?0:i),null!==i&&c(e,i)},[]),200);return Object(d.__experimentalUseDropZone)({isDisabled:o,onDrop:a,onDragOver(e){s(e,e.currentTarget)},onDragLeave(){s.cancel(),l(),n(null)},onDragEnd(){s.cancel(),l(),n(null)}})}function ls(e){return Object(d.useRefEffect)(t=>{if(e)return t.addEventListener("wheel",n),()=>{t.removeEventListener("wheel",n)};function n(t){const{deltaX:n,deltaY:o}=t;e.current.scrollBy(n,o)}},[e])}const is=Object(i.createContext)();function as({__unstablePopoverSlot:e,__unstableContentRef:t}){const{selectBlock:n}=Object(f.useDispatch)(An),o=Object(i.useContext)(is),r=Object(i.useRef)(),{orientation:c,previousClientId:l,nextClientId:a,rootClientId:u,isInserterShown:d}=Object(f.useSelect)(e=>{var t;const{getBlockOrder:n,getBlockListSettings:o,getBlockInsertionPoint:r,isBlockBeingDragged:c,getPreviousBlockClientId:l,getNextBlockClientId:i}=e(An),a=r(),s=n(a.rootClientId);if(!s.length)return{};let u=s[a.index-1],d=s[a.index];for(;c(u);)u=l(u);for(;c(d);)d=i(d);return{previousClientId:u,nextClientId:d,orientation:(null===(t=o(a.rootClientId))||void 0===t?void 0:t.orientation)||"vertical",rootClientId:a.rootClientId,isInserterShown:null==a?void 0:a.__unstableWithInserter}},[]),b=_r(l),m=_r(a),g=Object(i.useMemo)(()=>{if(!b)return{};const e=b.getBoundingClientRect(),t=m?m.getBoundingClientRect():null;if("vertical"===c)return{width:b.offsetWidth,height:t?t.top-e.bottom:0};let n=0;return m&&(n=Object(v.isRTL)()?e.left-t.right:t.left-e.right),{width:n,height:b.offsetHeight}},[b,m]),h=Object(i.useCallback)(()=>{const{ownerDocument:e}=b,t=b.getBoundingClientRect(),n=m?m.getBoundingClientRect():null;return"vertical"===c?Object(v.isRTL)()?{top:t.bottom,left:t.right,right:t.left,bottom:n?n.top:t.bottom,ownerDocument:e}:{top:t.bottom,left:t.left,right:t.right,bottom:n?n.top:t.bottom,ownerDocument:e}:Object(v.isRTL)()?{top:t.top,left:n?n.right:t.left,right:t.left,bottom:t.bottom,ownerDocument:e}:{top:t.top,left:t.right,right:n?n.left:t.right,bottom:t.bottom,ownerDocument:e}},[b,m]),O=ls(t);if(!b)return null;const j=s()("block-editor-block-list__insertion-point","is-"+c),k=m&&d;return Object(i.createElement)(p.Popover,{ref:O,noArrow:!0,animate:!1,getAnchorRect:h,focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:e||null},Object(i.createElement)("div",{ref:r,tabIndex:-1,onClick:function(e){e.target===r.current&&a&&n(a,-1)},onFocus:function(e){e.target!==r.current&&(o.current=!0)},className:s()(j,{"is-with-inserter":k}),style:g},Object(i.createElement)("div",{className:"block-editor-block-list__insertion-point-indicator"}),k&&Object(i.createElement)("div",{className:s()("block-editor-block-list__insertion-point-inserter")},Object(i.createElement)(Xa,{position:"bottom center",clientId:a,rootClientId:u,__experimentalIsQuick:!0,onToggle:e=>{o.current=e},onSelectOrClose:()=>{o.current=!1}}))))}function ss({children:e,__unstablePopoverSlot:t,__unstableContentRef:n}){const o=Object(f.useSelect)(e=>e(An).isBlockInsertionPointVisible(),[]);return Object(i.createElement)(is.Provider,{value:Object(i.useRef)(!1)},o&&Object(i.createElement)(as,{__unstablePopoverSlot:t,__unstableContentRef:n}),e)}function us(){const e=Object(i.useContext)(is),t=Object(f.useSelect)(e=>e(An).getSettings().hasReducedUI,[]),{getBlockListSettings:n,getBlockRootClientId:o,getBlockIndex:r,isBlockInsertionPointVisible:c,isMultiSelecting:l,getSelectedBlockClientIds:a}=Object(f.useSelect)(An),{showInsertionPoint:s,hideInsertionPoint:u}=Object(f.useDispatch)(An);return Object(d.useRefEffect)(o=>{if(!t)return o.addEventListener("mousemove",i),()=>{o.removeEventListener("mousemove",i)};function i(t){var o;if(e.current)return;if(l())return;if(!t.target.classList.contains("block-editor-block-list__layout"))return void(c()&&u());let i;t.target.classList.contains("is-root-container")||(i=(t.target.getAttribute("data-block")?t.target:t.target.closest("[data-block]")).getAttribute("data-block"));const d=(null===(o=n(i))||void 0===o?void 0:o.orientation)||"vertical",b=t.target.getBoundingClientRect(),m=t.clientY-b.top,p=t.clientX-b.left;let f=Array.from(t.target.children).find(e=>e.classList.contains("wp-block")&&"vertical"===d&&e.offsetTop>m||e.classList.contains("wp-block")&&"horizontal"===d&&e.offsetLeft>p);if(!f)return;if(!f.id&&(f=f.firstElementChild,!f))return;const g=f.id.slice("block-".length);if(!g)return;if(a().includes(g))return;const h=f.getBoundingClientRect();if("horizontal"===d&&(t.clientY>h.bottom||t.clientY<h.top)||"vertical"===d&&(t.clientX>h.right||t.clientX<h.left))return void(c()&&u());const O=r(g,i);0!==O?s(i,O,{__unstableWithInserter:!0}):c()&&u()}},[e,n,o,r,c,l,s,u,a])}const ds="undefined"==typeof window?e=>{setTimeout(()=>e(Date.now()),0)}:window.requestIdleCallback||window.requestAnimationFrame,bs="undefined"==typeof window?clearTimeout:window.cancelIdleCallback||window.cancelAnimationFrame;var ms=n(25),ps=({children:e,clientIds:t,cloneClassname:n,onDragStart:o,onDragEnd:r,elementId:c})=>{const{srcRootClientId:l,isDraggable:a,icon:s}=Object(f.useSelect)(e=>{var n;const{getBlockRootClientId:o,getTemplateLock:r,getBlockName:c}=e(An),l=o(t[0]),i=l?r(l):null,a=c(t[0]);return{srcRootClientId:l,isDraggable:"all"!==i,icon:null===(n=Object(m.getBlockType)(a))||void 0===n?void 0:n.icon}},[t]),u=Object(i.useRef)(!1),[d,b,g]=function(){const e=Object(i.useRef)(null),t=Object(i.useRef)(null),n=Object(i.useRef)(null),o=Object(i.useRef)(null);return Object(i.useEffect)(()=>()=>{o.current&&(clearInterval(o.current),o.current=null)},[]),[Object(i.useCallback)(r=>{e.current=r.clientY,n.current=Object(oi.getScrollContainer)(r.target),o.current=setInterval(()=>{if(n.current&&t.current){const e=n.current.scrollTop+t.current;n.current.scroll({top:e})}},25)},[]),Object(i.useCallback)(o=>{if(!n.current)return;const r=n.current.offsetHeight,c=e.current-n.current.offsetTop,l=o.clientY-n.current.offsetTop;if(o.clientY>c){const e=Math.max(r-c-50,0),n=Math.max(l-c-50,0)/e;t.current=25*n}else if(o.clientY<c){const e=Math.max(c-50,0),n=Math.max(c-l-50,0)/e;t.current=-25*n}else t.current=0},[]),()=>{e.current=null,n.current=null,o.current&&(clearInterval(o.current),o.current=null)}]}(),{startDraggingBlocks:h,stopDraggingBlocks:O}=Object(f.useDispatch)(An);if(Object(i.useEffect)(()=>()=>{u.current&&O()},[]),!a)return e({isDraggable:!1});const v={type:"block",srcClientIds:t,srcRootClientId:l};return Object(i.createElement)(p.Draggable,{cloneClassname:n,elementId:c,__experimentalTransferDataType:"wp-blocks",transferData:v,onDragStart:e=>{h(t),u.current=!0,d(e),o&&o()},onDragOver:b,onDragEnd:()=>{O(),u.current=!1,g(),r&&r()},__experimentalDragComponent:Object(i.createElement)(fa,{count:t.length,icon:s})},({onDraggableStart:t,onDraggableEnd:n})=>e({draggable:!0,onDragStart:t,onDragEnd:n}))},fs=function({clientId:e,rootClientId:t,blockElement:n}){const o=Hl(e),r=Object(f.useSelect)(n=>{var o;const{__unstableGetBlockWithoutInnerBlocks:r,getBlockIndex:c,hasBlockMovingClientId:l,getBlockListSettings:i}=n(An),a=c(e,t),{name:s,attributes:u}=r(e);return{index:a,name:s,attributes:u,blockMovingMode:l(),orientation:null===(o=i(t))||void 0===o?void 0:o.orientation}},[e,t]),{index:c,name:a,attributes:u,blockMovingMode:d,orientation:b}=r,{setNavigationMode:g,removeBlock:h}=Object(f.useDispatch)(An),O=Object(i.useRef)();Object(i.useEffect)(()=>{O.current.focus(),window.navigator.platform.indexOf("Win")>-1&&Object(Ct.speak)(L)},[]);const{hasBlockMovingClientId:j,getBlockIndex:k,getBlockRootClientId:_,getClientIdsOfDescendants:y,getSelectedBlockClientId:E,getMultiSelectedBlocksEndClientId:C,getPreviousBlockClientId:S,getNextBlockClientId:w}=Object(f.useSelect)(An),{selectBlock:B,clearSelectedBlock:I,setBlockMovingClientId:x,moveBlockToPosition:T}=Object(f.useDispatch)(An),N=Object(m.getBlockType)(a),L=Object(m.__experimentalGetAccessibleBlockLabel)(N,u,c+1,b),P=s()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!d}),R=Object(v.__)("Drag");return Object(i.createElement)("div",{className:P},Object(i.createElement)(p.Flex,{justify:"center",className:"block-editor-block-list__block-selection-button__content"},Object(i.createElement)(p.FlexItem,null,Object(i.createElement)(Ll,{icon:null==o?void 0:o.icon,showColors:!0})),Object(i.createElement)(p.FlexItem,null,Object(i.createElement)(ps,{clientIds:[e]},e=>Object(i.createElement)(p.Button,Object(l.a)({icon:pa,className:"block-selection-button_drag-handle","aria-hidden":"true",label:R,tabIndex:"-1"},e)))),Object(i.createElement)(p.FlexItem,null,Object(i.createElement)(p.Button,{ref:O,onClick:()=>g(!1),onKeyDown:function(t){const{keyCode:o}=t,r=o===Yr.UP,c=o===Yr.DOWN,l=o===Yr.LEFT,i=o===Yr.RIGHT,a=o===Yr.TAB,s=o===Yr.ESCAPE,u=o===Yr.ENTER,d=o===Yr.SPACE,b=t.shiftKey;if(o===Yr.BACKSPACE||o===Yr.DELETE)return h(e),void t.preventDefault();const m=E(),p=C(),f=S(p||m),g=w(p||m),O=a&&b||r,v=a&&!b||c,N=l,L=i;let P;if(O)P=f;else if(v)P=g;else if(N){var R;P=null!==(R=_(m))&&void 0!==R?R:m}else if(L){var A;P=null!==(A=y([m])[0])&&void 0!==A?A:m}const M=j();if(s&&M&&x(null),(u||d)&&M){const e=_(M),t=_(m),n=k(M,e);let o=k(m,t);n<o&&e===t&&(o-=1),T(M,e,t,o),B(M),x(null)}if(v||O||N||L)if(P)t.preventDefault(),B(P);else if(a&&m){let e;v?(e=oi.focus.tabbable.findNext(n),e||(e=n.ownerDocument.defaultView.frameElement,e=oi.focus.tabbable.findNext(e))):e=oi.focus.tabbable.findPrevious(n),e&&(t.preventDefault(),e.focus(),I())}},label:L,className:"block-selection-button_select-button"},Object(i.createElement)(zl,{clientId:e})))))};function gs(e){return Array.from(e.querySelectorAll("[data-toolbar-item]"))}var hs=function({children:e,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:o,...r}){const c=Object(i.useRef)(),a=function(e){const[t,n]=Object(i.useState)(!0),o=Object(i.useCallback)(()=>{const t=!oi.focus.tabbable.find(e.current).some(e=>!("toolbarItem"in e.dataset));t||wt()("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),n(t)},[]);return Object(i.useLayoutEffect)(()=>{const t=new window.MutationObserver(o);return t.observe(e.current,{childList:!0,subtree:!0}),()=>t.disconnect()},[t]),t}(c);return function(e,t,n,o,r){const[c]=Object(i.useState)(t),[l]=Object(i.useState)(o),a=Object(i.useCallback)(()=>{!function(e){const[t]=oi.focus.tabbable.find(e);t&&t.focus()}(e.current)},[]);Object(ms.useShortcut)("core/block-editor/focus-toolbar",a,{bindGlobal:!0,eventName:"keydown"}),Object(i.useEffect)(()=>{c&&a()},[n,c,a]),Object(i.useEffect)(()=>{let t=0;return l&&!c&&(t=window.requestAnimationFrame(()=>{const t=gs(e.current),n=l||0;var o;t[n]&&(o=e.current).contains(o.ownerDocument.activeElement)&&t[n].focus()})),()=>{if(window.cancelAnimationFrame(t),!r||!e.current)return;const n=gs(e.current).findIndex(e=>0===e.tabIndex);r(n)}},[l,c])}(c,t,a,n,o),a?Object(i.createElement)(p.Toolbar,Object(l.a)({label:r["aria-label"],ref:c},r),e):Object(i.createElement)(p.NavigableMenu,Object(l.a)({orientation:"horizontal",role:"toolbar",ref:c},r),e)},Os=Object(f.withSelect)((e,{clientIds:t})=>{var n;const{getBlock:o,getBlockIndex:r,getBlockListSettings:c,getTemplateLock:l,getBlockOrder:i,getBlockRootClientId:a}=e(An),s=Object(u.castArray)(t),d=Object(u.first)(s),b=o(d),p=a(Object(u.first)(s)),f=r(d,p),g=0===f,h=r(Object(u.last)(s),p)===i(p).length-1;return{blockType:b?Object(m.getBlockType)(b.name):null,isLocked:"all"===l(p),rootClientId:p,firstIndex:f,isFirst:g,isLast:h,orientation:null===(n=c(p))||void 0===n?void 0:n.orientation}})((function({isFirst:e,isLast:t,clientIds:n,isLocked:o,isHidden:r,rootClientId:c,orientation:a,hideDragHandle:u}){const[d,b]=Object(i.useState)(!1),m=()=>b(!0),f=()=>b(!1);if(o||e&&t&&!c)return null;const g=Object(v.__)("Drag");return Object(i.createElement)("div",{className:s()("block-editor-block-mover",{"is-visible":d||!r,"is-horizontal":"horizontal"===a})},!u&&Object(i.createElement)(ps,{clientIds:n,cloneClassname:"block-editor-block-mover__drag-clone"},e=>Object(i.createElement)(p.Button,Object(l.a)({icon:pa,className:"block-editor-block-mover__drag-handle","aria-hidden":"true",label:g,tabIndex:"-1"},e))),Object(i.createElement)(p.ToolbarGroup,{className:"block-editor-block-mover__move-button-container"},Object(i.createElement)(p.ToolbarItem,{onFocus:m,onBlur:f},e=>Object(i.createElement)(gi,Object(l.a)({clientIds:n},e))),Object(i.createElement)(p.ToolbarItem,{onFocus:m,onBlur:f},e=>Object(i.createElement)(hi,Object(l.a)({clientIds:n},e)))))}));const{clearTimeout:vs,setTimeout:js}=window;function ks({ref:e,isFocused:t,debounceTimeout:n=200,onChange:o=u.noop}){const[r,c]=Object(i.useState)(!1),l=Object(i.useRef)(),a=t=>{null!=e&&e.current&&c(t),o(t)},s=()=>{const e=l.current;e&&vs&&vs(e)};return Object(i.useEffect)(()=>()=>s(),[]),{showMovers:r,debouncedShowMovers:e=>{e&&e.stopPropagation(),s(),r||a(!0)},debouncedHideMovers:o=>{o&&o.stopPropagation(),s(),l.current=js(()=>{(()=>{const n=(null==e?void 0:e.current)&&e.current.matches(":hover");return!t&&!n})()&&a(!1)},n)}}}function _s({ref:e,debounceTimeout:t=200,onChange:n=u.noop}){const[o,r]=Object(i.useState)(!1),{showMovers:c,debouncedShowMovers:l,debouncedHideMovers:a}=ks({ref:e,debounceTimeout:t,isFocused:o,onChange:n}),s=Object(i.useRef)(!1),d=()=>(null==e?void 0:e.current)&&e.current.contains(e.current.ownerDocument.activeElement);return Object(i.useEffect)(()=>{const t=e.current,n=()=>{d()&&(r(!0),l())},o=()=>{d()||(r(!1),a())};return t&&!s.current&&(t.addEventListener("focus",n,!0),t.addEventListener("blur",o,!0),s.current=!0),()=>{t&&(t.removeEventListener("focus",n),t.removeEventListener("blur",o))}},[e,s,r,l,a]),{showMovers:c,gestures:{onMouseMove:l,onMouseLeave:a}}}function ys(){const{selectBlock:e,toggleBlockHighlight:t}=Object(f.useDispatch)(An),{firstParentClientId:n,shouldHide:o,hasReducedUI:r}=Object(f.useSelect)(e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientId:o,getSettings:r}=e(An),{hasBlockSupport:c}=e(m.store),l=n(o()),i=l[l.length-1],a=t(i),s=Object(m.getBlockType)(a),u=r();return{firstParentClientId:i,shouldHide:!c(s,"__experimentalParentSelector",!0),hasReducedUI:u.hasReducedUI}},[]),c=Hl(n),a=Object(i.useRef)(),{gestures:s}=_s({ref:a,onChange(e){e&&r||t(n,e)}});return o||void 0===n?null:Object(i.createElement)("div",Object(l.a)({className:"block-editor-block-parent-selector",key:n,ref:a},s),Object(i.createElement)(p.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(n),label:Object(v.sprintf)(
45
  /* translators: %s: Name of the block's parent. */
46
- Object(v.__)("Select %s"),c.title),showTooltip:!0,icon:Object(i.createElement)(Ll,{icon:c.icon})}))}var Es=Object(i.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(Un.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));function Cs({blocks:e}){return Object(i.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(i.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(i.createElement)(p.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right",focusOnMount:!1},Object(i.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(i.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(v.__)("Preview")),Object(i.createElement)(ua,{viewportWidth:500,blocks:e})))))}var Ss=({className:e,possibleBlockTransformations:t,onSelect:n,blocks:o})=>{const[r,c]=Object(i.useState)();return Object(i.createElement)(p.MenuGroup,{label:Object(v.__)("Transform to"),className:e},r&&Object(i.createElement)(Cs,{blocks:Object(m.switchToBlockType)(o,r)}),t.map(e=>{const{name:t,icon:o,title:r,isDisabled:l}=e;return Object(i.createElement)(p.MenuItem,{key:t,className:Object(m.getBlockMenuDefaultClassName)(t),onClick:e=>{e.preventDefault(),n(t)},disabled:l,onMouseLeave:()=>c(null),onMouseEnter:()=>c(t)},Object(i.createElement)(Ll,{icon:o,showColors:!0}),r)}))};const ws={};function Bs({genericPreviewBlock:e,style:t,isActive:n,onBlur:o,onHover:r,onSelect:c,styleClassName:l,itemRole:a}){const u=Object(i.useMemo)(()=>({...e,attributes:{...e.attributes,className:l}}),[e,l]);return Object(i.createElement)("div",{key:t.name,className:s()("block-editor-block-styles__item",{"is-active":n}),onClick:()=>c(),onKeyDown:e=>{Yr.ENTER!==e.keyCode&&Yr.SPACE!==e.keyCode||(e.preventDefault(),c())},onMouseEnter:r,onMouseLeave:o,role:a||"button",tabIndex:"0","aria-label":t.label||t.name},Object(i.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(i.createElement)(ua,{viewportWidth:500,blocks:u})),Object(i.createElement)("div",{className:"block-editor-block-styles__item-label"},t.label||t.name))}var Is=function({clientId:e,onSwitch:t=u.noop,onHoverClassName:n=u.noop,itemRole:o}){const{styles:r,block:c,type:l,className:a}=Object(f.useSelect)(t=>{const{getBlock:n}=t(An),o=n(e);if(!o)return ws;const r=Object(m.getBlockType)(o.name),{getBlockStyles:c}=t(m.store);return{block:o,type:r,styles:c(o.name),className:o.attributes.className||""}},[e]),{updateBlockAttributes:s}=Object(f.useDispatch)(An),d=function(e,t){return Object(i.useMemo)(()=>{const n=null==t?void 0:t.example,o=null==t?void 0:t.name;return n&&o?Object(m.getBlockFromExample)(o,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?Object(m.cloneBlock)(e):void 0},[null!=t&&t.example?null==e?void 0:e.name:e,t])}(c,l);if(!r||0===r.length)return null;const b=Object(u.find)(r,"isDefault")?r:[{name:"default",label:Object(v._x)("Default","block style"),isDefault:!0},...r],p=function(e,t){for(const n of new uc.a(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),o=Object(u.find)(e,{name:t});if(o)return o}return Object(u.find)(e,"isDefault")}(b,a);return Object(i.createElement)("div",{className:"block-editor-block-styles"},b.map(r=>{const c=function(e,t,n){const o=new uc.a(e);return t&&o.remove("is-style-"+t.name),o.add("is-style-"+n.name),o.value}(a,p,r);return Object(i.createElement)(Bs,{genericPreviewBlock:d,className:a,isActive:p===r,key:r.name,onSelect:()=>{s(e,{className:c}),n(null),t()},onBlur:()=>n(null),onHover:()=>n(c),style:r,styleClassName:c,itemRole:o})}))};function xs({hoveredBlock:e,onSwitch:t}){const{name:n,clientId:o}=e,[r,c]=Object(i.useState)(),l=Object(f.useSelect)(e=>e(m.store).getBlockType(n),[n]);return Object(i.createElement)(p.MenuGroup,{label:Object(v.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup"},r&&Object(i.createElement)(Cs,{blocks:l.example?Object(m.getBlockFromExample)(l.name,{attributes:{...l.example.attributes,className:r},innerBlocks:l.example.innerBlocks}):Object(m.cloneBlock)(e,{className:r})}),Object(i.createElement)(Is,{clientId:o,onSwitch:t,onHoverClassName:c,itemRole:"menuitem"}))}const Ts=(e,t,n=new Set)=>{const{clientId:o,name:r,innerBlocks:c=[]}=e;if(!n.has(o)){if(r===t)return e;for(const e of c){const o=Ts(e,t,n);if(o)return o}}},Ns=(e,t)=>{const n=((e,t)=>{const n=Object(m.__experimentalGetBlockAttributesNamesByRole)(e,"content");return null!=n&&n.length?n.reduce((e,n)=>(t[n]&&(e[n]=t[n]),e),{}):t})(t.name,t.attributes);e.attributes={...e.attributes,...n}};function Ls({patterns:e,onSelect:t}){return Object(i.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(i.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(i.createElement)(p.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right"},Object(i.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(i.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(v.__)("Preview")),Object(i.createElement)(Ps,{patterns:e,onSelect:t})))))}function Ps({patterns:e,onSelect:t}){const n=Object(p.__unstableUseCompositeState)();return Object(i.createElement)(p.__unstableComposite,Object(l.a)({},n,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":Object(v.__)("Patterns list")}),e.map(e=>Object(i.createElement)(Rs,{key:e.name,pattern:e,onSelect:t,composite:n})))}function Rs({pattern:e,onSelect:t,composite:n}){const o="block-editor-block-switcher__preview-patterns-container",r=Object(d.useInstanceId)(Rs,o+"-list__item-description");return Object(i.createElement)("div",{className:o+"-list__list-item","aria-label":e.title,"aria-describedby":e.description?r:void 0},Object(i.createElement)(p.__unstableCompositeItem,Object(l.a)({role:"option",as:"div"},n,{className:o+"-list__item",onClick:()=>t(e.transformedBlocks)}),Object(i.createElement)(ua,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),Object(i.createElement)("div",{className:o+"-list__item-title"},e.title)),!!e.description&&Object(i.createElement)(p.VisuallyHidden,{id:r},e.description))}var As=function({blocks:e,patterns:t,onSelect:n}){const[o,r]=Object(i.useState)(!1),c=((e,t)=>Object(i.useMemo)(()=>e.reduce((e,n)=>{const o=((e,t)=>{const n=t.map(e=>Object(m.cloneBlock)(e)),o=new Set;for(const t of e){let e=!1;for(const r of n){const n=Ts(r,t.name,o);if(n){e=!0,o.add(n.clientId),Ns(n,t);break}}if(!e)return}return n})(t,n.blocks);return o&&e.push({...n,transformedBlocks:o}),e},[]),[e,t]))(t,e);return c.length?Object(i.createElement)(p.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup"},o&&Object(i.createElement)(Ls,{patterns:c,onSelect:n}),Object(i.createElement)(p.MenuItem,{onClick:e=>{e.preventDefault(),r(!o)},icon:si.a},Object(v.__)("Patterns"))):null};const Ms=({clientIds:e,blocks:t})=>{const{replaceBlocks:n}=Object(f.useDispatch)(An),o=Hl(t[0].clientId),{possibleBlockTransformations:r,hasBlockStyles:c,icon:l,blockTitle:a,patterns:s}=Object(f.useSelect)(n=>{const{getBlockRootClientId:r,getBlockTransformItems:c,__experimentalGetPatternTransformItems:l}=n(An),{getBlockStyles:i,getBlockType:a}=n(m.store),s=r(Object(u.castArray)(e)[0]),[{name:d}]=t,b=1===t.length,p=b&&i(d);let f;var g;b?f=null==o?void 0:o.icon:f=1===Object(u.uniq)(t.map(({name:e})=>e)).length?null===(g=a(d))||void 0===g?void 0:g.icon:Es;return{possibleBlockTransformations:c(t,s),hasBlockStyles:!(null==p||!p.length),icon:f,blockTitle:a(d).title,patterns:l(t,s)}},[e,t,null==o?void 0:o.icon]),d=1===t.length&&Object(m.isReusableBlock)(t[0]),b=1===t.length&&Object(m.isTemplatePart)(t[0]),g=!!r.length,h=!(null==s||!s.length);if(!c&&!g)return Object(i.createElement)(p.ToolbarGroup,null,Object(i.createElement)(p.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:a,icon:Object(i.createElement)(Ll,{icon:l,showColors:!0})}));const O=a,j=1===t.length?Object(v.sprintf)(
47
  /* translators: %s: block title. */
48
- Object(v.__)("%s: Change block type or style"),a):Object(v.sprintf)(
49
  /* translators: %d: number of blocks. */
50
- Object(v._n)("Change type of %d block","Change type of %d blocks",t.length),t.length),k=c||g||h;return Object(i.createElement)(p.ToolbarGroup,null,Object(i.createElement)(p.ToolbarItem,null,o=>Object(i.createElement)(p.DropdownMenu,{className:"block-editor-block-switcher",label:O,popoverProps:{position:"bottom right",isAlternate:!0,className:"block-editor-block-switcher__popover"},icon:Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Ll,{icon:l,className:"block-editor-block-switcher__toggle",showColors:!0}),(d||b)&&Object(i.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},Object(i.createElement)(zl,{clientId:e}))),toggleProps:{describedBy:j,...o},menuProps:{orientation:"both"}},({onClose:o})=>k&&Object(i.createElement)("div",{className:"block-editor-block-switcher__container"},h&&Object(i.createElement)(As,{blocks:t,patterns:s,onSelect:t=>{(t=>{n(e,t)})(t),o()}}),g&&Object(i.createElement)(Ss,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:r,blocks:t,onSelect:r=>{(o=>{n(e,Object(m.switchToBlockType)(t,o))})(r),o()}}),c&&Object(i.createElement)(xs,{hoveredBlock:t[0],onSwitch:o})))))};var Ds=({clientIds:e})=>{const t=Object(f.useSelect)(t=>t(An).getBlocksByClientId(e),[e]);return!t.length||t.some(e=>!e)?null:Object(i.createElement)(Ms,{clientIds:e,blocks:t})},Fs=n(32);function Vs(){const{getBlockName:e}=Object(f.useSelect)(An),{getBlockType:t}=Object(f.useSelect)(m.store),{createSuccessNotice:n}=Object(f.useDispatch)(Sa.store);return Object(i.useCallback)((o,r)=>{let c="";if(1===r.length){const n=r[0],{title:l}=t(e(n));c="copy"===o?Object(v.sprintf)(// Translators: Name of the block being copied, e.g. "Paragraph".
51
- Object(v.__)('Copied "%s" to clipboard.'),l):Object(v.sprintf)(// Translators: Name of the block being cut, e.g. "Paragraph".
52
- Object(v.__)('Moved "%s" to clipboard.'),l)}else c="copy"===o?Object(v.sprintf)(// Translators: %d: Number of blocks being copied.
53
- Object(v._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",r.length),r.length):Object(v.sprintf)(// Translators: %d: Number of blocks being cut.
54
- Object(v._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",r.length),r.length);n(c,{type:"snackbar"})},[])}function Hs(){const{getBlocksByClientId:e,getSelectedBlockClientIds:t,hasMultiSelection:n,getSettings:o}=Object(f.useSelect)(An),{flashBlock:r,removeBlocks:c,replaceBlocks:l}=Object(f.useDispatch)(An),i=Vs();return Object(d.useRefEffect)(a=>{function s(s){const u=t();if(0!==u.length){if(!n()){const{target:e}=s,{ownerDocument:t}=e;if("copy"===s.type||"cut"===s.type?Object(oi.documentHasUncollapsedSelection)(t):Object(oi.documentHasSelection)(t))return}if(a.contains(s.target.ownerDocument.activeElement)){if(s.preventDefault(),"copy"===s.type||"cut"===s.type){1===u.length&&r(u[0]),i(s.type,u);const t=e(u),n=Object(m.serialize)(t);s.clipboardData.setData("text/plain",n),s.clipboardData.setData("text/html",n)}if("cut"===s.type)c(u);else if("paste"===s.type){const{__experimentalCanUserUseUnfilteredHTML:e}=o(),{plainText:t,html:n}=function({clipboardData:e}){let t="",n="";try{t=e.getData("text/plain"),n=e.getData("text/html")}catch(t){try{n=e.getData("Text")}catch(e){return}}const o=Object(oi.getFilesFromDataTransfer)(e).filter(({type:e})=>/^image\/(?:jpe?g|png|gif)$/.test(e));return o.length&&!n&&(n=o.map(e=>`<img src="${Object(Fs.createBlobURL)(e)}">`).join(""),t=""),{html:n,plainText:t}}(s),r=Object(m.pasteHandler)({HTML:n,plainText:t,mode:"BLOCKS",canUserUseUnfilteredHTML:e});l(u,r,r.length-1,-1)}}}}return a.ownerDocument.addEventListener("copy",s),a.ownerDocument.addEventListener("cut",s),a.ownerDocument.addEventListener("paste",s),()=>{a.ownerDocument.removeEventListener("copy",s),a.ownerDocument.removeEventListener("cut",s),a.ownerDocument.removeEventListener("paste",s)}},[])}var zs=function({children:e}){return Object(i.createElement)("div",{ref:Hs()},e)};function Gs({clientIds:e,children:t,__experimentalUpdateSelection:n}){const{canInsertBlockType:o,getBlockRootClientId:r,getBlocksByClientId:c,getTemplateLock:l}=Object(f.useSelect)(e=>e(An),[]),{getDefaultBlockName:i,getGroupingBlockName:a}=Object(f.useSelect)(e=>e(m.store),[]),s=c(e),d=r(e[0]),b=Object(u.every)(s,e=>!!e&&Object(m.hasBlockSupport)(e.name,"multiple",!0)&&o(e.name,d)),p=o(i(),d),{removeBlocks:g,replaceBlocks:h,duplicateBlocks:O,insertAfterBlock:v,insertBeforeBlock:j,flashBlock:k,setBlockMovingClientId:_,setNavigationMode:y,selectBlock:E}=Object(f.useDispatch)(An),C=Vs();return t({canDuplicate:b,canInsertDefaultBlock:p,isLocked:!!l(d),rootClientId:d,blocks:s,onDuplicate:()=>O(e,n),onRemove:()=>g(e,n),onInsertBefore(){j(Object(u.first)(Object(u.castArray)(e)))},onInsertAfter(){v(Object(u.last)(Object(u.castArray)(e)))},onMoveTo(){y(!0),E(e[0]),_(e[0])},onGroup(){if(!s.length)return;const t=a(),n=Object(m.switchToBlockType)(s,t);n&&h(e,n)},onUngroup(){if(!s.length)return;const t=s[0].innerBlocks;t.length&&h(e,t)},onCopy(){const e=s.map(({clientId:e})=>e);1===s.length&&k(e[0]),C("copy",e)}})}var Us=Object(d.compose)([Object(f.withSelect)((e,{clientId:t})=>{const{getBlock:n,getBlockMode:o,getSettings:r}=e(An),c=n(t),l=r().codeEditingEnabled;return{mode:o(t),blockType:c?Object(m.getBlockType)(c.name):null,isCodeEditingEnabled:l}}),Object(f.withDispatch)((e,{onToggle:t=u.noop,clientId:n})=>({onToggleMode(){e(An).toggleBlockMode(n),t()}}))])((function({blockType:e,mode:t,onToggleMode:n,small:o=!1,isCodeEditingEnabled:r=!0}){if(!Object(m.hasBlockSupport)(e,"html",!0)||!r)return null;const c="visual"===t?Object(v.__)("Edit as HTML"):Object(v.__)("Edit visually");return Object(i.createElement)(p.MenuItem,{onClick:n},!o&&c)})),Ws=Object(d.compose)(Object(f.withSelect)((e,{clientId:t})=>{const n=e(An).getBlock(t);return{block:n,shouldRender:n&&"core/html"===n.name}}),Object(f.withDispatch)((e,{block:t})=>({onClick:()=>e(An).replaceBlocks(t.clientId,Object(m.rawHandler)({HTML:Object(m.getBlockContent)(t)}))})))((function({shouldRender:e,onClick:t,small:n}){if(!e)return null;const o=Object(v.__)("Convert to Blocks");return Object(i.createElement)(p.MenuItem,{onClick:t},!n&&o)}));const{Fill:Ks,Slot:$s}=Object(p.createSlotFill)("__unstableBlockSettingsMenuFirstItem");Ks.Slot=$s;var qs=Ks;function Ys({clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:r,onClose:c=(()=>{})}){const{replaceBlocks:l}=Object(f.useDispatch)(An);return t||n?Object(i.createElement)(i.Fragment,null,t&&Object(i.createElement)(p.MenuItem,{onClick:()=>{(()=>{const t=Object(m.switchToBlockType)(o,r);t&&l(e,t)})(),c()}},Object(v._x)("Group","verb")),n&&Object(i.createElement)(p.MenuItem,{onClick:()=>{(()=>{const t=o[0].innerBlocks;t.length&&l(e,t)})(),c()}},Object(v._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor "))):null}const{Fill:Xs,Slot:Qs}=Object(p.createSlotFill)("BlockSettingsMenuControls");function Zs({...e}){return Object(i.createElement)(p.__experimentalStyleProvider,{document:document},Object(i.createElement)(Xs,e))}Zs.Slot=({fillProps:e,clientIds:t=null})=>{const n=Object(f.useSelect)(e=>{const{getBlocksByClientId:n,getSelectedBlockClientIds:o}=e(An),r=null!==t?t:o();return Object(u.map)(Object(u.compact)(n(r)),e=>e.name)},[t]),o=function(){const{clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:r}=Object(f.useSelect)(e=>{var t;const{getBlockRootClientId:n,getBlocksByClientId:o,canInsertBlockType:r,getSelectedBlockClientIds:c}=e(An),{getGroupingBlockName:l}=e(m.store),i=c(),a=l(),s=r(a,null!=i&&i.length?n(i[0]):void 0),u=o(i),d=1===u.length&&(null===(t=u[0])||void 0===t?void 0:t.name)===a;return{clientIds:i,isGroupable:s&&u.length&&!d,isUngroupable:d&&!!u[0].innerBlocks.length,blocksSelection:u,groupingBlockName:a}},[]);return{clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:r}}(),{isGroupable:r,isUngroupable:c}=o,a=r||c;return Object(i.createElement)(Qs,{fillProps:{...e,selectedBlocks:n}},t=>{if((null==t?void 0:t.length)>0||a)return Object(i.createElement)(p.MenuGroup,null,t,Object(i.createElement)(Ys,Object(l.a)({},o,{onClose:null==e?void 0:e.onClose})))})};var Js=Zs;const eu={className:"block-editor-block-settings-menu__popover",position:"bottom right",isAlternate:!0};function tu({blocks:e,onCopy:t}){const n=Object(d.useCopyToClipboard)(()=>Object(m.serialize)(e),t);return Object(i.createElement)(p.MenuItem,{ref:n},Object(v.__)("Copy"))}var nu=function({clientIds:e,__experimentalSelectBlock:t,children:n,...o}){const r=Object(u.castArray)(e),c=r.length,a=r[0],s=Object(f.useSelect)(e=>{const{getShortcutRepresentation:t}=e(ms.store);return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}},[]),d=Object(i.useCallback)(t?async e=>{const n=await e;n&&n[0]&&t(n[0])}:u.noop,[t]),b=1===c?Object(v.__)("Remove block"):Object(v.__)("Remove blocks");return Object(i.createElement)(Gs,{clientIds:e,__experimentalUpdateSelection:!t},({canDuplicate:t,canInsertDefaultBlock:r,isLocked:m,onDuplicate:f,onInsertAfter:g,onInsertBefore:h,onRemove:O,onCopy:j,onMoveTo:k,blocks:_})=>Object(i.createElement)(p.DropdownMenu,Object(l.a)({icon:ti.a,label:Object(v.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:eu,noIcons:!0},o),({onClose:o})=>Object(i.createElement)(i.Fragment,null,Object(i.createElement)(p.MenuGroup,null,Object(i.createElement)(qs.Slot,{fillProps:{onClose:o}}),1===c&&Object(i.createElement)(Ws,{clientId:a}),Object(i.createElement)(tu,{blocks:_,onCopy:j}),t&&Object(i.createElement)(p.MenuItem,{onClick:Object(u.flow)(o,f,d),shortcut:s.duplicate},Object(v.__)("Duplicate")),r&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(p.MenuItem,{onClick:Object(u.flow)(o,h),shortcut:s.insertBefore},Object(v.__)("Insert before")),Object(i.createElement)(p.MenuItem,{onClick:Object(u.flow)(o,g),shortcut:s.insertAfter},Object(v.__)("Insert after"))),!m&&Object(i.createElement)(p.MenuItem,{onClick:Object(u.flow)(o,k)},Object(v.__)("Move to")),1===c&&Object(i.createElement)(Us,{clientId:a,onToggle:o})),Object(i.createElement)(Js.Slot,{fillProps:{onClose:o},clientIds:e}),"function"==typeof n?n({onClose:o}):i.Children.map(e=>Object(i.cloneElement)(e,{onClose:o})),Object(i.createElement)(p.MenuGroup,null,!m&&Object(i.createElement)(p.MenuItem,{onClick:Object(u.flow)(o,O,d),shortcut:s.remove},b)))))},ou=function({clientIds:e,...t}){return Object(i.createElement)(p.ToolbarGroup,null,Object(i.createElement)(p.ToolbarItem,null,n=>Object(i.createElement)(nu,Object(l.a)({clientIds:e,toggleProps:n},t))))};function ru({hideDragHandle:e}){const{blockClientIds:t,blockClientId:n,blockType:o,hasFixedToolbar:r,hasReducedUI:c,isValid:a,isVisual:u}=Object(f.useSelect)(e=>{const{getBlockName:t,getBlockMode:n,getSelectedBlockClientIds:o,isBlockValid:r,getBlockRootClientId:c,getSettings:l}=e(An),i=o(),a=i[0],s=c(a),u=l();return{blockClientIds:i,blockClientId:a,blockType:a&&Object(m.getBlockType)(t(a)),hasFixedToolbar:u.hasFixedToolbar,hasReducedUI:u.hasReducedUI,rootClientId:s,isValid:i.every(e=>r(e)),isVisual:i.every(e=>"visual"===n(e))}},[]),{toggleBlockHighlight:b}=Object(f.useDispatch)(An),g=Object(i.useRef)(),{showMovers:h,gestures:O}=_s({ref:g,onChange(e){e&&c||b(n,e)}}),v=Object(d.useViewportMatch)("medium","<")||r;if(o&&!Object(m.hasBlockSupport)(o,"__experimentalToolbar",!0))return null;const j=v||h;if(0===t.length)return null;const k=a&&u,_=t.length>1,y=s()("block-editor-block-toolbar",j&&"is-showing-movers");return Object(i.createElement)("div",{className:y},!_&&!v&&Object(i.createElement)(ys,{clientIds:t}),Object(i.createElement)("div",Object(l.a)({ref:g},O),(k||_)&&Object(i.createElement)(p.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},Object(i.createElement)(Ds,{clientIds:t}),Object(i.createElement)(Os,{clientIds:t,hideDragHandle:e||c}))),k&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Gn.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),Object(i.createElement)(Gn.Slot,{className:"block-editor-block-toolbar__slot"}),Object(i.createElement)(Gn.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),Object(i.createElement)(Gn.Slot,{group:"other",className:"block-editor-block-toolbar__slot"})),Object(i.createElement)(ou,{clientIds:t}))}var cu=function({focusOnMount:e,isFixed:t,...n}){const{blockType:o,hasParents:r,showParentSelector:c}=Object(f.useSelect)(e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientIds:o}=e(An),{getBlockType:r}=e(m.store),c=o()[0],l=n(c),i=r(t(l[l.length-1]));return{blockType:c&&r(t(c)),hasParents:l.length,showParentSelector:Object(m.hasBlockSupport)(i,"__experimentalParentSelector",!0)}},[]);if(o&&!Object(m.hasBlockSupport)(o,"__experimentalToolbar",!0))return null;const a=s()("block-editor-block-contextual-toolbar",{"has-parent":r&&c,"is-fixed":t});return Object(i.createElement)(hs,Object(l.a)({focusOnMount:e,className:a
55
- /* translators: accessibility text for the block toolbar */,"aria-label":Object(v.__)("Block tools")},n),Object(i.createElement)(ru,{hideDragHandle:t}))};function lu(e){const{isNavigationMode:t,isMultiSelecting:n,hasMultiSelection:o,isTyping:r,isCaretWithinFormattedText:c,getSettings:l,getLastMultiSelectedBlockClientId:i}=e(An);return{isNavigationMode:t(),isMultiSelecting:n(),isTyping:r(),isCaretWithinFormattedText:c(),hasMultiSelection:o(),hasFixedToolbar:l().hasFixedToolbar,lastClientId:i()}}function iu({clientId:e,rootClientId:t,isValid:n,isEmptyDefaultBlock:o,capturingClientId:r,__unstablePopoverSlot:c,__unstableContentRef:l}){const{isNavigationMode:a,isMultiSelecting:u,isTyping:b,isCaretWithinFormattedText:m,hasMultiSelection:g,hasFixedToolbar:h,lastClientId:O}=Object(f.useSelect)(lu,[]),v=Object(f.useSelect)(t=>{const{isBlockInsertionPointVisible:n,getBlockInsertionPoint:o,getBlockOrder:r}=t(An);if(!n())return!1;const c=o();return r(c.rootClientId)[c.index]===e},[e]),j=Object(d.useViewportMatch)("medium"),[k,_]=Object(i.useState)(!1),[y,E]=Object(i.useState)(!1),{stopTyping:C}=Object(f.useDispatch)(An),S=!b&&!a&&o&&n,w=a,B=!a&&!h&&j&&!S&&!u&&(!b||m),I=!(a||B||h||o);Object(ms.useShortcut)("core/block-editor/focus-toolbar",Object(i.useCallback)(()=>{_(!0),C(!0)},[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!I}),Object(i.useEffect)(()=>{B||_(!1)},[B]);const x=Object(i.useRef)(),T=_r(e),N=_r(O),L=_r(r),P=ls(l);if(!(w||B||k||S))return null;let R=T;if(!R)return null;r&&(R=L);let A=R;if(g){if(!N)return null;A={top:R,bottom:N}}const M=S?"top left right":"top right left",{ownerDocument:D}=R,F=S?void 0:D.defaultView.frameElement||Object(oi.getScrollContainer)(R)||D.body;return Object(i.createElement)(p.Popover,{ref:P,noArrow:!0,animate:!1,position:M,focusOnMount:!1,anchorRef:A,className:s()("block-editor-block-list__block-popover",{"is-insertion-point-visible":v}),__unstableStickyBoundaryElement:F,__unstableSlotName:c||null,__unstableBoundaryParent:!0,__unstableObserveElement:R,shouldAnchorIncludePadding:!0},(B||k)&&Object(i.createElement)("div",{onFocus:function(){E(!0)},onBlur:function(){E(!1)},tabIndex:-1,className:s()("block-editor-block-list__block-popover-inserter",{"is-visible":y})},Object(i.createElement)(Xa,{clientId:e,rootClientId:t,__experimentalIsQuick:!0})),(B||k)&&Object(i.createElement)(cu,{focusOnMount:k,__experimentalInitialIndex:x.current,__experimentalOnIndexChange:e=>{x.current=e},key:e}),w&&Object(i.createElement)(fs,{clientId:e,rootClientId:t,blockElement:R}),S&&Object(i.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(i.createElement)(Xa,{position:"bottom right",rootClientId:t,clientId:e,__experimentalIsQuick:!0})))}function au(e){const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getBlockRootClientId:o,__unstableGetBlockWithoutInnerBlocks:r,getBlockParents:c,__experimentalGetBlockListSettingsForBlocks:l}=e(An),i=t()||n();if(!i)return;const{name:a,attributes:s={},isValid:d}=r(i)||{},b=c(i),p=l(b),f=Object(u.find)(b,e=>{var t;return null===(t=p[e])||void 0===t?void 0:t.__experimentalCaptureToolbars});return{clientId:i,rootClientId:o(i),name:a,isValid:d,isEmptyDefaultBlock:a&&Object(m.isUnmodifiedDefaultBlock)({name:a,attributes:s}),capturingClientId:f}}function su({__unstablePopoverSlot:e,__unstableContentRef:t}){const n=Object(f.useSelect)(au,[]);if(!n)return null;const{clientId:o,rootClientId:r,name:c,isValid:l,isEmptyDefaultBlock:a,capturingClientId:s}=n;return c?Object(i.createElement)(iu,{clientId:o,rootClientId:r,isValid:l,isEmptyDefaultBlock:a,capturingClientId:s,__unstablePopoverSlot:e,__unstableContentRef:t}):null}function uu({children:e}){const t=Object(i.useContext)(is),n=Object(i.useContext)(p.Disabled.Context);return t||n?e:(wt()('wp.components.Popover.Slot name="block-toolbar"',{alternative:"wp.blockEditor.BlockTools"}),Object(i.createElement)(ss,{__unstablePopoverSlot:"block-toolbar"},Object(i.createElement)(su,{__unstablePopoverSlot:"block-toolbar"}),e))}function du(){const{hasSelectedBlock:e,hasMultiSelection:t}=Object(f.useSelect)(An),{clearSelectedBlock:n}=Object(f.useDispatch)(An);return Object(d.useRefEffect)(o=>{function r(r){(e()||t())&&r.target===o&&n()}return o.addEventListener("mousedown",r),()=>{o.removeEventListener("mousedown",r)}},[e,t,n])}function bu(e){return Object(i.createElement)("div",Object(l.a)({ref:du()},e))}const mu=Object(i.createContext)();function pu({className:e,children:t}){const n=Object(d.useViewportMatch)("medium"),{isOutlineMode:o,isFocusMode:r,isNavigationMode:c}=Object(f.useSelect)(e=>{const{getSettings:t,isNavigationMode:n}=e(An),{outlineMode:o,focusMode:r}=t();return{isOutlineMode:o,isFocusMode:r,isNavigationMode:n()}},[]);return Object(i.createElement)("div",{ref:Object(d.useMergeRefs)([du(),cs(),us()]),className:s()("block-editor-block-list__layout is-root-container",e,{"is-outline-mode":o,"is-focus-mode":r&&n,"is-navigate-mode":c})},t)}function fu({className:e,...t}){return function(){const e=Object(f.useSelect)(e=>e(An).getSettings().__experimentalBlockPatterns,[]);Object(i.useEffect)(()=>{if(null==e||!e.length)return;let t,n=-1;const o=()=>{n++,n>=e.length||(Object(f.select)(An).__experimentalGetParsedPattern(e[n].name),t=ds(o))};return t=ds(o),()=>bs(t)},[e])}(),Object(i.createElement)(uu,null,Object(i.createElement)(pu,{className:e},Object(i.createElement)(hu,t)))}function gu({placeholder:e,rootClientId:t,renderAppender:n,__experimentalAppenderTagName:o,__experimentalLayout:r=Xn}){const[c,l]=Object(i.useState)(new Set),a=Object(i.useMemo)(()=>{const{IntersectionObserver:e}=window;if(e)return new e(e=>{l(t=>{const n=new Set(t);for(const t of e){const e=t.target.getAttribute("data-block");n[t.isIntersecting?"add":"delete"](e)}return n})})},[l]),{order:s,selectedBlocks:u}=Object(f.useSelect)(e=>{const{getBlockOrder:n,getSelectedBlockClientIds:o}=e(An);return{order:n(t),selectedBlocks:o()}},[t]);return Object(i.createElement)(Jn,{value:r},Object(i.createElement)(mu.Provider,{value:a},s.map(e=>Object(i.createElement)(f.AsyncModeProvider,{key:e,value:!c.has(e)&&!u.includes(e)},Object(i.createElement)(Eu,{rootClientId:t,clientId:e})))),s.length<1&&e,Object(i.createElement)(ns,{tagName:o,rootClientId:t,renderAppender:n}))}function hu(e){return Object(i.createElement)(f.AsyncModeProvider,{value:!1},Object(i.createElement)(gu,e))}function Ou(){const e=Object(i.useContext)(mu);return Object(d.useRefEffect)(t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}},[e])}function vu(e={},{__unstableIsHtml:t}={}){const{clientId:n,className:o,wrapperProps:r={},isAligned:c}=Object(i.useContext)(ju),{index:l,mode:a,name:u,blockTitle:b,isPartOfSelection:p,adjustScrolling:g,enableAnimation:h}=Object(f.useSelect)(e=>{const{getBlockRootClientId:t,getBlockIndex:o,getBlockMode:r,getBlockName:c,isTyping:l,getGlobalBlockCount:i,isBlockSelected:a,isBlockMultiSelected:s,isAncestorMultiSelected:u,isFirstMultiSelectedBlock:d}=e(An),b=a(n),p=s(n)||u(n),f=c(n),g=t(n);return{index:o(n,g),mode:r(n),name:f,blockTitle:Object(m.getBlockType)(f).title,isPartOfSelection:b||p,adjustScrolling:b||d(n),enableAnimation:!l()&&i()<=200}},[n]),O=Object(v.sprintf)(Object(v.__)("Block: %s"),b),j="html"!==a||t?"":"-visual",k=Object(d.useMergeRefs)([e.ref,Ai(n),qi(n),jr(n),Gi(n),Xi(n),Ui(n),Wi(n),Di(),Ou(),li({isSelected:p,adjustScrolling:g,enableAnimation:h,triggerAnimationOnChange:l})]);return{...r,...e,ref:k,id:`block-${n}${j}`,tabIndex:0,role:"group","aria-label":O,"data-block":n,"data-type":u,"data-title":b,className:s()(s()("block-editor-block-list__block",{"wp-block":!c}),o,e.className,r.className,Fi(n),Vi(n),Hi(n),zi(n)),style:{...r.style,...e.style}}}vu.save=m.__unstableGetBlockProps;const ju=Object(i.createContext)();function ku({children:e,isHtml:t,...n}){return Object(i.createElement)("div",vu(n,{__unstableIsHtml:t}),e)}const _u=Object(f.withSelect)((e,{clientId:t,rootClientId:n})=>{const{isBlockSelected:o,getBlockMode:r,isSelectionEnabled:c,getTemplateLock:l,__unstableGetBlockWithoutInnerBlocks:i}=e(An),a=i(t),s=o(t),u=l(n),{name:d,attributes:b,isValid:m}=a||{};return{mode:r(t),isSelectionEnabled:c(),isLocked:!!u,block:a,name:d,attributes:b,isValid:m,isSelected:s}}),yu=Object(f.withDispatch)((e,t,{select:n})=>{const{updateBlockAttributes:o,insertBlocks:r,mergeBlocks:c,replaceBlocks:l,toggleSelection:i,__unstableMarkLastChangeAsPersistent:a}=e(An);return{setAttributes(e){const{getMultiSelectedBlockClientIds:r}=n(An),c=r(),{clientId:l}=t,i=c.length?c:[l];o(i,e)},onInsertBlocks(e,n){const{rootClientId:o}=t;r(e,n,o)},onInsertBlocksAfter(e){const{clientId:o,rootClientId:c}=t,{getBlockIndex:l}=n(An),i=l(o,c);r(e,i+1,c)},onMerge(e){const{clientId:o}=t,{getPreviousBlockClientId:r,getNextBlockClientId:l}=n(An);if(e){const e=l(o);e&&c(o,e)}else{const e=r(o);e&&c(e,o)}},onReplace(e,n,o){e.length&&!Object(m.isUnmodifiedDefaultBlock)(e[e.length-1])&&a(),l([t.clientId],e,n,o)},toggleSelection(e){i(e)}}});var Eu=Object(d.compose)(d.pure,_u,yu,Object(d.ifCondition)(({block:e})=>!!e),Object(p.withFilters)("editor.BlockListBlock"))((function({mode:e,isLocked:t,clientId:n,isSelected:o,isSelectionEnabled:r,className:c,name:l,isValid:a,attributes:d,wrapperProps:b,setAttributes:p,onReplace:g,onInsertBlocksAfter:h,onMerge:O,toggleSelection:v}){const{removeBlock:j}=Object(f.useDispatch)(An),k=Object(i.useCallback)(()=>j(n),[n]);let _=Object(i.createElement)(Jl,{name:l,isSelected:o,attributes:d,setAttributes:p,insertBlocksAfter:t?void 0:h,onReplace:t?void 0:g,onRemove:t?void 0:k,mergeBlocks:t?void 0:O,clientId:n,isSelectionEnabled:r,toggleSelection:v});const y=Object(m.getBlockType)(l),E=y.apiVersion>1||Object(m.hasBlockSupport)(y,"lightBlockWrapper",!1);y.getEditWrapperProps&&(b=function(e,t){const n={...e,...t};return e&&t&&e.className&&t.className&&(n.className=s()(e.className,t.className)),e&&t&&e.style&&t.style&&(n.style={...e.style,...t.style}),n}(b,y.getEditWrapperProps(d)));const C=b&&!!b["data-align"];let S;C&&(_=Object(i.createElement)("div",{className:"wp-block","data-align":b["data-align"]},_)),S=a?"html"===e?Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{style:{display:"none"}},_),Object(i.createElement)(ku,{isHtml:!0},Object(i.createElement)(Li,{clientId:n}))):E?_:Object(i.createElement)(ku,b,_):Object(i.createElement)(ku,{className:"has-warning"},Object(i.createElement)(Si,{clientId:n}),Object(i.createElement)("div",null,Object(m.getSaveElement)(y,d)));const w={clientId:n,className:c,wrapperProps:Object(u.omit)(b,["data-align"]),isAligned:C},B=Object(i.useMemo)(()=>w,Object.values(w));return Object(i.createElement)(ju.Provider,{value:B},Object(i.createElement)(xi,{fallback:Object(i.createElement)(ku,{className:"has-warning"},Object(i.createElement)(Bi,null))},S))}));const Cu=(e,t,n)=>Object(v.sprintf)(
56
  /* translators: 1: The numerical position of the block. 2: The total number of blocks. 3. The level of nesting for the block. */
57
- Object(v.__)("Block %1$d of %2$d, Level %3$d"),e,t,n),Su=(e,t)=>Object(u.isArray)(t)&&t.length?-1!==t.indexOf(e):t===e;var wu=Object(i.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(Un.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));function Bu({onClick:e}){return Object(i.createElement)("span",{className:"block-editor-block-navigation__expander",onClick:t=>e(t,{forceToggle:!0}),"aria-hidden":"true"},Object(i.createElement)(Xc.a,{icon:wu}))}var Iu=Object(i.forwardRef)((function e({className:t,block:{clientId:n},isSelected:o,onClick:r,onToggleExpanded:c,position:l,siblingBlockCount:a,level:u,tabIndex:b,onFocus:m,onDragStart:f,onDragEnd:g,draggable:h},O){const j=Hl(n),k="block-navigation-block-select-button__"+Object(d.useInstanceId)(e),_=Cu(l,a,u);return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(p.Button,{className:s()("block-editor-block-navigation-block-select-button",t),onClick:r,"aria-describedby":k,ref:O,tabIndex:b,onFocus:m,onDragStart:f,onDragEnd:g,draggable:h},Object(i.createElement)(Bu,{onClick:c}),Object(i.createElement)(Ll,{icon:null==j?void 0:j.icon,showColors:!0}),Object(i.createElement)(zl,{clientId:n}),(null==j?void 0:j.anchor)&&Object(i.createElement)("span",{className:"block-editor-block-navigation-block-select-button__anchor"},j.anchor),o&&Object(i.createElement)(p.VisuallyHidden,null,Object(v.__)("(selected block)"))),Object(i.createElement)("div",{className:"block-editor-block-navigation-block-select-button__description",id:k},_))}));const xu=e=>"BlockNavigationBlock-"+e;var Tu=Object(i.forwardRef)((function e(t,n){const{clientId:o}=t.block,{name:r}=Object(f.useSelect)(e=>e(An).getBlockName(o),[o]),c=Object(d.useInstanceId)(e);return Object(i.createElement)(p.Slot,{name:xu(o)},e=>{if(!e.length)return Object(i.createElement)(Iu,Object(l.a)({ref:n},t));const{className:o,isSelected:a,position:u,siblingBlockCount:d,level:b,tabIndex:f,onFocus:g,onToggleExpanded:h}=t,O=Object(m.getBlockType)(r),j="block-navigation-block-slot__"+c,k=Cu(u,d,b),_={tabIndex:f,onFocus:g,ref:n,"aria-describedby":j};return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:s()("block-editor-block-navigation-block-slot",o)},Object(i.createElement)(Bu,{onClick:h}),Object(i.createElement)(Ll,{icon:O.icon,showColors:!0}),i.Children.map(e,e=>Object(i.cloneElement)(e,{...e.props,..._})),a&&Object(i.createElement)(p.VisuallyHidden,null,Object(v.__)("(selected block)")),Object(i.createElement)("div",{className:"block-editor-block-navigation-block-slot__description",id:j},k)))})}));const Nu=e=>{const{clientId:t}=Object(i.useContext)(ju);return Object(i.createElement)(p.Fill,Object(l.a)({},e,{name:xu(t)}))};var Lu=Object(i.forwardRef)(({onClick:e,onToggleExpanded:t,block:n,isSelected:o,position:r,siblingBlockCount:c,level:a,...u},d)=>{const{__experimentalFeatures:b,blockDropTarget:m={}}=vi(),{clientId:p}=n,{rootClientId:g,blockMovingClientId:h,selectedBlockInBlockEditor:O}=Object(f.useSelect)(e=>{const{getBlockRootClientId:t,hasBlockMovingClientId:n,getSelectedBlockClientId:o}=e(An);return{rootClientId:t(p)||"",blockMovingClientId:n(),selectedBlockInBlockEditor:o()}},[p]),v=h&&O===p,{rootClientId:j,clientId:k,dropPosition:_}=m,y=j===g&&k===p&&"top"===_,E=j===g&&k===p&&"bottom"===_,C=j===p&&"inside"===_,S=s()("block-editor-block-navigation-block-contents",{"is-dropping-before":y||v,"is-dropping-after":E,"is-dropping-to-inner-blocks":C});return Object(i.createElement)(ps,{clientIds:[n.clientId],elementId:"block-navigation-block-"+n.clientId},({draggable:s,onDragStart:m,onDragEnd:p})=>b?Object(i.createElement)(Tu,Object(l.a)({ref:d,className:S,block:n,onToggleExpanded:t,isSelected:o,position:r,siblingBlockCount:c,level:a,draggable:s&&b,onDragStart:m,onDragEnd:p},u)):Object(i.createElement)(Iu,Object(l.a)({ref:d,className:S,block:n,onClick:e,onToggleExpanded:t,isSelected:o,position:r,siblingBlockCount:c,level:a,draggable:s&&b,onDragStart:m,onDragEnd:p},u)))});function Pu({block:e,isSelected:t,isBranchSelected:n,isLastOfSelectedBranch:o,onClick:r,onToggleExpanded:c,position:l,level:a,rowCount:u,siblingBlockCount:d,showBlockMovers:b,path:m,isExpanded:g}){const h=Object(i.useRef)(null),[O,j]=Object(i.useState)(!1),{clientId:k}=e,{isDragging:_,blockParents:y}=Object(f.useSelect)(e=>{const{isBlockBeingDragged:t,isAncestorBeingDragged:n,getBlockParents:o}=e(An);return{isDragging:t(k)||n(k),blockParents:o(k)}},[k]),{selectBlock:E,toggleBlockHighlight:C}=Object(f.useDispatch)(An),S=b&&d>0,w=s()("block-editor-block-navigation-block__mover-cell",{"is-visible":O}),{__experimentalFeatures:B,__experimentalPersistentListViewFeatures:I,isTreeGridMounted:x}=vi(),T=s()("block-editor-block-navigation-block__menu-cell",{"is-visible":O});Object(i.useEffect)(()=>{I&&!x&&t&&h.current.focus()},[]),Object(i.useEffect)(()=>{B&&t&&h.current.focus()},[B,t]);const N=I?C:()=>{},L=()=>{j(!0),N(k,!0)},P=()=>{j(!1),N(k,!1)},R=s()({"is-selected":t,"is-branch-selected":I&&n,"is-last-of-selected-branch":I&&o,"is-dragging":_});return Object(i.createElement)(ai,{className:R,onMouseEnter:L,onMouseLeave:P,onFocus:L,onBlur:P,level:a,position:l,rowCount:u,path:m,id:"block-navigation-block-"+k,"data-block":k,isExpanded:g},Object(i.createElement)(p.__experimentalTreeGridCell,{className:"block-editor-block-navigation-block__contents-cell",colSpan:S?void 0:2,ref:h},({ref:n,tabIndex:o,onFocus:s})=>Object(i.createElement)("div",{className:"block-editor-block-navigation-block__contents-container"},Object(i.createElement)(Lu,{block:e,onClick:r,onToggleExpanded:c,isSelected:t,position:l,siblingBlockCount:d,level:a,ref:n,tabIndex:o,onFocus:s}))),S&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(p.__experimentalTreeGridCell,{className:w,withoutGridItem:!0},Object(i.createElement)(p.__experimentalTreeGridItem,null,({ref:e,tabIndex:t,onFocus:n})=>Object(i.createElement)(gi,{orientation:"vertical",clientIds:[k],ref:e,tabIndex:t,onFocus:n})),Object(i.createElement)(p.__experimentalTreeGridItem,null,({ref:e,tabIndex:t,onFocus:n})=>Object(i.createElement)(hi,{orientation:"vertical",clientIds:[k],ref:e,tabIndex:t,onFocus:n})))),B&&Object(i.createElement)(p.__experimentalTreeGridCell,{className:T},({ref:e,tabIndex:t,onFocus:n})=>Object(i.createElement)(nu,{clientIds:[k],icon:ti.a,toggleProps:{ref:e,tabIndex:t,onFocus:n},disableOpenOnArrowDown:!0,__experimentalSelectBlock:r},({onClose:e})=>Object(i.createElement)(p.MenuGroup,null,Object(i.createElement)(p.MenuItem,{onClick:async()=>{if(y.length)for(const e of y)await E(e);else await E(null);await E(k),e()}},Object(v.__)("Go to block"))))))}function Ru({parentBlockClientId:e,position:t,level:n,rowCount:o,path:r}){const c=Object(f.useSelect)(t=>{const{isBlockBeingDragged:n,isAncestorBeingDragged:o}=t(An);return n(e)||o(e)},[e]),l="block-navigation-appender-row__description_"+Object(d.useInstanceId)(Ru),a=Object(v.sprintf)(
58
  /* translators: 1: The numerical position of the block that will be inserted. 2: The level of nesting for the block that will be inserted. */
59
- Object(v.__)("Add block at position %1$d, Level %2$d"),t,n);return Object(i.createElement)(ai,{className:s()({"is-dragging":c}),level:n,position:t,rowCount:o,path:r},Object(i.createElement)(p.__experimentalTreeGridCell,{className:"block-editor-block-navigation-appender__cell",colSpan:"3"},({ref:t,tabIndex:n,onFocus:o})=>Object(i.createElement)("div",{className:"block-editor-block-navigation-appender__container"},Object(i.createElement)(Xa,{rootClientId:e,__experimentalIsQuick:!0,"aria-describedby":l,toggleProps:{ref:t,tabIndex:n,onFocus:o}}),Object(i.createElement)("div",{className:"block-editor-block-navigation-appender__description",id:l},a))))}function Au(e){const{blocks:t,selectBlock:n,selectedBlockClientIds:o,showAppender:r,showBlockMovers:c,showNestedBlocks:l,parentBlockClientId:a,level:s=1,terminatedLevels:d=[],path:b=[],isBranchSelected:m=!1,isLastOfBranch:p=!1}=e,f=!a,g=Object(u.compact)(t),h=e=>r&&!f&&Su(e,o),O=h(a),v=g.length,j=O?v+1:v,k=j,{expandedState:_,expand:y,collapse:E}=vi();return Object(i.createElement)(i.Fragment,null,Object(u.map)(g,(e,t)=>{var a;const{clientId:u,innerBlocks:f}=e,g=t+1,O=j===g?[...d,s]:d,k=[...b,g],C=l&&!!f&&!!f.length,S=h(u),w=C||S,B=Su(u,o),I=m||B&&w,x=t===v-1,T=B||p&&x,N=p&&!w&&x,L=w?null===(a=_[u])||void 0===a||a:void 0;return Object(i.createElement)(i.Fragment,{key:u},Object(i.createElement)(Pu,{block:e,onClick:e=>{e.stopPropagation(),n(u)},onToggleExpanded:e=>{e.stopPropagation(),!0===L?E(u):!1===L&&y(u)},isSelected:B,isBranchSelected:I,isLastOfSelectedBranch:N,level:s,position:g,rowCount:j,siblingBlockCount:v,showBlockMovers:c,terminatedLevels:d,path:k,isExpanded:L}),w&&L&&Object(i.createElement)(Au,{blocks:f,selectedBlockClientIds:o,selectBlock:n,isBranchSelected:I,isLastOfBranch:T,showAppender:r,showBlockMovers:c,showNestedBlocks:l,parentBlockClientId:u,level:s+1,terminatedLevels:O,path:k}))}),O&&Object(i.createElement)(Ru,{parentBlockClientId:a,position:j,rowCount:k,level:s,terminatedLevels:d,path:[...b,k]}))}function Mu(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}Au.defaultProps={selectBlock:()=>{}};const Du=["top","bottom"];const Fu=()=>{},Vu=(e,t)=>{switch(t.type){case"expand":return{...e,[t.clientId]:!0};case"collapse":return{...e,[t.clientId]:!1};default:return e}};function Hu({blocks:e,showOnlyCurrentHierarchy:t,onSelect:n=Fu,__experimentalFeatures:o,__experimentalPersistentListViewFeatures:r,...c}){const{clientIdsTree:a,selectedClientIds:s}=function(e,t,n){const o=(e=>Object(f.useSelect)(t=>{const{getSelectedBlockClientId:n,getSelectedBlockClientIds:o}=t(An);return e?o():n()},[e]))(n);return{clientIdsTree:((e,t,n)=>Object(f.useSelect)(o=>{const{getBlockHierarchyRootClientId:r,__unstableGetClientIdsTree:c,__unstableGetClientIdWithClientIdsTree:l}=o(An);if(e)return e;const i=t&&!Array.isArray(t);if(!n||!i)return c();const a=l(r(t));return a&&(!Su(a.clientId,t)||a.innerBlocks&&0!==a.innerBlocks.length)?[a]:c()},[e,t,n]))(e,o,t),selectedClientIds:o}}(e,t,r),{selectBlock:u}=Object(f.useDispatch)(An),b=Object(i.useCallback)(e=>{u(e),n(e)},[u,n]),[m,g]=Object(i.useReducer)(Vu,{});let{ref:h,target:O}=function(){const{getBlockRootClientId:e,getBlockIndex:t,getBlockCount:n,getDraggedBlockClientIds:o,canInsertBlocks:r}=Object(f.useSelect)(An),[c,l]=Object(i.useState)(),{rootClientId:a,blockIndex:s}=c||{},u=os(a,s),b=Object(d.useThrottle)(Object(i.useCallback)((c,i)=>{const a={x:c.clientX,y:c.clientY},s=!!c.dataTransfer.getData("wp-blocks"),u=s?o():void 0,d=function(e,t){let n,o,r,c;for(const l of e){if(l.isDraggedBlock)continue;const i=l.element.getBoundingClientRect(),[a,s]=rs(t,i,Du),u=Mu(t,i);if(void 0===r||a<r||u){r=a;const t=e.indexOf(l),d=e[t-1];if("top"===s&&d&&d.rootClientId===l.rootClientId&&!d.isDraggedBlock?(o=d,n="bottom",c=d.element.getBoundingClientRect()):(o=l,n=s,c=i),u)break}}if(!o)return;const l="bottom"===n;if(l&&o.canInsertDraggedBlocksAsChild&&(o.innerBlockCount>0||function(e,t){const n=t.left+t.width/2;return e.x>n}(t,c)))return{rootClientId:o.clientId,blockIndex:0,dropPosition:"inside"};if(!o.canInsertDraggedBlocksAsSibling)return;const i=l?1:0;return{rootClientId:o.rootClientId,clientId:o.clientId,blockIndex:o.blockIndex+i,dropPosition:n}}(Array.from(i.querySelectorAll("[data-block]")).map(o=>{const c=o.dataset.block,l=e(c);return{clientId:c,rootClientId:l,blockIndex:t(c,l),element:o,isDraggedBlock:!!s&&u.includes(c),innerBlockCount:n(c),canInsertDraggedBlocksAsSibling:!s||r(u,l),canInsertDraggedBlocksAsChild:!s||r(u,c)}}),a);d&&l(d)},[]),200);return{ref:Object(d.__experimentalUseDropZone)({onDrop:u,onDragOver(e){b(e,e.currentTarget)},onDragEnd(){b.cancel(),l(null)}}),target:c}}();const j=Object(i.useRef)(!1);Object(i.useEffect)(()=>{j.current=!0},[]),o||(O=void 0);const k=e=>{e&&g({type:"expand",clientId:e})},_=e=>{e&&g({type:"collapse",clientId:e})},y=Object(i.useMemo)(()=>({__experimentalFeatures:o,__experimentalPersistentListViewFeatures:r,blockDropTarget:O,isTreeGridMounted:j.current,expandedState:m,expand:k,collapse:_}),[o,r,O,j.current,m,k,_]);return Object(i.createElement)(p.__experimentalTreeGrid,{className:"block-editor-block-navigation-tree","aria-label":Object(v.__)("Block navigation structure"),ref:h,onCollapseRow:e=>{var t;_(null==e||null===(t=e.dataset)||void 0===t?void 0:t.block)},onExpandRow:e=>{var t;k(null==e||null===(t=e.dataset)||void 0===t?void 0:t.block)}},Object(i.createElement)(Oi.Provider,{value:y},Object(i.createElement)(Au,Object(l.a)({blocks:a,selectBlock:b,selectedBlockClientIds:s},c))))}function zu({isEnabled:e,onToggle:t,isOpen:n,innerRef:o,...r}){return Object(i.createElement)(p.Button,Object(l.a)({},r,{ref:o,icon:ei.a,"aria-expanded":n,"aria-haspopup":"true",onClick:e?t:void 0
60
- /* translators: button label text should, if possible, be under 16 characters. */,label:Object(v.__)("List view"),className:"block-editor-block-navigation","aria-disabled":!e}))}var Gu=Object(i.forwardRef)((function({isDisabled:e,__experimentalFeatures:t,...n},o){const r=Object(f.useSelect)(e=>!!e(An).getBlockCount(),[])&&!e;return Object(i.createElement)(p.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:({isOpen:e,onToggle:t})=>Object(i.createElement)(zu,Object(l.a)({},n,{innerRef:o,isOpen:e,onToggle:t,isEnabled:r})),renderContent:()=>Object(i.createElement)("div",{className:"block-editor-block-navigation__container"},Object(i.createElement)("p",{className:"block-editor-block-navigation__label"},Object(v.__)("List view")),Object(i.createElement)(Hu,{showNestedBlocks:!0,showOnlyCurrentHierarchy:!0,__experimentalFeatures:t}))})}));const Uu={position:"bottom right",isAlternate:!0};var Wu=()=>Object(i.createElement)(i.Fragment,null,["bold","italic","link","text-color"].map(e=>Object(i.createElement)(p.Slot,{name:"RichText.ToolbarControls."+e,key:e})),Object(i.createElement)(p.Slot,{name:"RichText.ToolbarControls"},e=>0!==e.length&&Object(i.createElement)(p.ToolbarItem,null,t=>Object(i.createElement)(p.DropdownMenu,{icon:bi.a
61
- /* translators: button label text should, if possible, be under 16 characters. */,label:Object(v.__)("More"),toggleProps:t,controls:Object(u.orderBy)(e.map(([{props:e}])=>e),"title"),popoverProps:Uu})))),Ku=({inline:e,anchorRef:t})=>e?Object(i.createElement)(p.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:t,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar"},Object(i.createElement)("div",{className:"block-editor-rich-text__inline-format-toolbar-group"},Object(i.createElement)(p.ToolbarGroup,null,Object(i.createElement)(Wu,null)))):Object(i.createElement)(Gn,{group:"inline"},Object(i.createElement)(Wu,null));function $u(){const{didAutomaticChange:e,getSettings:t}=Object(f.useSelect)(An);return Object(d.useRefEffect)(n=>{function o(n){const{keyCode:o}=n;o!==Yr.DELETE&&o!==Yr.BACKSPACE&&o!==Yr.ESCAPE||e()&&(n.preventDefault(),t().__experimentalUndo())}return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[])}function qu(e){return e.filter(({type:e})=>/^image\/(?:jpe?g|png|gif)$/.test(e)).map(e=>`<img src="${Object(Fs.createBlobURL)(e)}">`).join("")}var Yu=n(117);function Xu(e,t){if(t.length){let n=e.formats.length;for(;n--;)e.formats[n]=[...t,...e.formats[n]||[]]}}function Qu(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function Zu({allowedFormats:e,formattingControls:t,disableFormats:n}){return n?Zu.EMPTY_ARRAY:e||t?e||(wt()("wp.blockEditor.RichText formattingControls prop",{since:"5.4",alternative:"allowedFormats"}),t.map(e=>"core/"+e)):void 0}function Ju({value:e,pastedBlocks:t=[],onReplace:n,onSplit:o,onSplitMiddle:r,multilineTag:l}){if(!n||!o)return;const i=[],[a,s]=Object(c.split)(e),u=t.length>0;let d=-1;const b=Object(c.isEmpty)(a)&&!Object(c.isEmpty)(s);u&&Object(c.isEmpty)(a)||(i.push(o(Object(c.toHTMLString)({value:a,multilineTag:l}),!b)),d+=1),u?(i.push(...t),d+=t.length):r&&i.push(r()),(u||r)&&Object(c.isEmpty)(s)||i.push(o(Object(c.toHTMLString)({value:s,multilineTag:l}),b)),n(i,u?d:1,u?-1:0)}function ed(e){const t=Object(i.useRef)(e);return t.current=e,Object(d.useRefEffect)(e=>{function n(e){const{isSelected:n,disableFormats:o,onChange:r,value:l,formatTypes:i,tagName:a,onReplace:s,onSplit:u,onSplitMiddle:d,__unstableEmbedURLOnPaste:b,multilineTag:p,preserveWhiteSpace:f,pastePlainText:g}=t.current;if(!n)return void e.preventDefault();const{clipboardData:h}=e;let O="",v="";try{O=h.getData("text/plain"),v=h.getData("text/html")}catch(e){try{v=h.getData("Text")}catch(e){return}}if(e.preventDefault(),window.console.log("Received HTML:\n\n",v),window.console.log("Received plain text:\n\n",O),o)return void r(Object(c.insert)(l,O));const j=i.reduce((e,{__unstablePasteRule:t})=>(t&&e===l&&(e=t(l,{html:v,plainText:O})),e),l);if(j!==l)return void r(j);const k=[...Object(oi.getFilesFromDataTransfer)(h)];if("true"===h.getData("rich-text")){const e=Object(c.create)({html:v,multilineTag:p,multilineWrapperTags:"li"===p?["ul","ol"]:void 0,preserveWhiteSpace:f});return Xu(e,l.activeFormats),void r(Object(c.insert)(l,e))}if(g)return void r(Object(c.insert)(l,Object(c.create)({text:O})));if(k&&k.length&&!v){const e=Object(m.pasteHandler)({HTML:qu(k),mode:"BLOCKS",tagName:a,preserveWhiteSpace:f});return window.console.log("Received items:\n\n",k),void(s&&Object(c.isEmpty)(l)?s(e):Ju({value:l,pastedBlocks:e,onReplace:s,onSplit:u,onSplitMiddle:d,multilineTag:p}))}let _=s&&u?"AUTO":"INLINE";var y;"AUTO"===_&&Object(c.isEmpty)(l)&&(y=O,Object(Yu.regexp)(".*").test(y))&&(_="BLOCKS"),b&&Object(c.isEmpty)(l)&&Object(La.isURL)(O.trim())&&(_="BLOCKS");const E=Object(m.pasteHandler)({HTML:v,plainText:O,mode:_,tagName:a,preserveWhiteSpace:f});if("string"==typeof E){let e=Object(c.create)({html:E});Xu(e,l.activeFormats),p&&(e=Object(c.replace)(e,/\n+/g,c.__UNSTABLE_LINE_SEPARATOR)),r(Object(c.insert)(l,e))}else E.length>0&&(s&&Object(c.isEmpty)(l)?s(E,E.length-1,-1):Ju({value:l,pastedBlocks:E,onReplace:s,onSplit:u,onSplitMiddle:d,multilineTag:p}))}return e.addEventListener("paste",n),()=>{e.removeEventListener("paste",n)}},[])}function td(e){const{__unstableMarkLastChangeAsPersistent:t,__unstableMarkAutomaticChange:n}=Object(f.useDispatch)(An),o=Object(i.useRef)(e);return o.current=e,Object(d.useRefEffect)(e=>{function r(){const{value:e,onReplace:t}=o.current;if(!t)return;const{start:r,text:l}=e;if(" "!==l.slice(r-1,r))return;const i=l.slice(0,r).trim(),a=Object(m.getBlockTransforms)("from").filter(({type:e})=>"prefix"===e),s=Object(m.findTransform)(a,({prefix:e})=>i===e);if(!s)return;const u=Object(c.toHTMLString)({value:Object(c.slice)(e,r,l.length)});t([s.transform(u)]),n()}function l(e){const{inputType:c}=e,{value:l,onChange:i,__unstableAllowPrefixTransformations:a,formatTypes:s}=o.current;if("insertText"!==c)return;a&&r&&r();const u=s.reduce((e,{__unstableInputRule:t})=>(t&&(e=t(e)),e),l);u!==l&&(t(),i({...u,activeFormats:l.activeFormats}),n())}return e.addEventListener("input",l),()=>{e.removeEventListener("input",l)}},[])}function nd(e){const{__unstableMarkAutomaticChange:t}=Object(f.useDispatch)(An),n=Object(i.useRef)(e);return n.current=e,Object(d.useRefEffect)(e=>{function o(e){if(e.defaultPrevented)return;const{removeEditorOnlyFormats:o,value:r,onReplace:l,onSplit:i,onSplitMiddle:a,multilineTag:s,onChange:u,disableLineBreaks:d,onSplitAtEnd:b}=n.current;if(e.keyCode!==Yr.ENTER)return;e.preventDefault();const p={...r};p.formats=o(r);const f=l&&i;if(l){const e=Object(m.getBlockTransforms)("from").filter(({type:e})=>"enter"===e),n=Object(m.findTransform)(e,e=>e.regExp.test(p.text));n&&(l([n.transform({content:p.text})]),t())}if(s)e.shiftKey?d||u(Object(c.insert)(p,"\n")):f&&Object(c.__unstableIsEmptyLine)(p)?Ju({value:p,onReplace:l,onSplit:i,onSplitMiddle:a,multilineTag:s}):u(Object(c.__unstableInsertLineSeparator)(p));else{const{text:t,start:n,end:o}=p,r=b&&n===o&&o===t.length;e.shiftKey||!f&&!r?d||u(Object(c.insert)(p,"\n")):!f&&r?b():f&&Ju({value:p,onReplace:l,onSplit:i,onSplitMiddle:a,multilineTag:s})}}return e.addEventListener("keydown",o),()=>{e.removeEventListener("keydown",o)}},[])}function od(e){return e(c.store).getFormatTypes()}Zu.EMPTY_ARRAY=[];const rd=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function cd({formatTypes:e,onChange:t,onFocus:n,value:o,forwardedRef:r}){return e.map(e=>{const{name:l,edit:a}=e;if(!a)return null;const s=Object(c.getActiveFormat)(o,l),u=void 0!==s,d=Object(c.getActiveObject)(o),b=void 0!==d&&d.type===l;return Object(i.createElement)(a,{key:l,isActive:u,activeAttributes:u&&s.attributes||{},isObjectActive:b,activeObjectAttributes:b&&d.attributes||{},value:o,onChange:t,onFocus:n,contentRef:r})})}const ld=Object(i.forwardRef)((function e({children:t,tagName:n="div",value:o="",onChange:r,isSelected:a,multiline:b,inlineToolbar:g,wrapperClassName:h,autocompleters:v,onReplace:j,placeholder:k,allowedFormats:_,formattingControls:y,withoutInteractiveFormatting:E,onRemove:C,onMerge:S,onSplit:w,__unstableOnSplitAtEnd:B,__unstableOnSplitMiddle:I,identifier:x,preserveWhiteSpace:T,__unstablePastePlainText:N,__unstableEmbedURLOnPaste:L,__unstableDisableFormats:P,disableLineBreaks:R,unstableOnFocus:A,__unstableAllowPrefixTransformations:M,...D},F){const V=Object(d.useInstanceId)(e);x=x||V,D=function(e){return Object(u.omit)(e,["__unstableMobileNoFocusOnMount","deleteEnter","placeholderTextColor","textAlign","selectionColor","tagsToEliminate","rootTagsToEliminate","disableEditingMenu","fontSize","fontFamily","fontWeight","fontStyle","minWidth","maxWidth","setRef"])}(D);const H=Object(i.useRef)(),{clientId:z}=O(),{selectionStart:G,selectionEnd:U,isSelected:W,disabled:K}=Object(f.useSelect)(e=>{const{getSelectionStart:t,getSelectionEnd:n,isMultiSelecting:o,hasMultiSelection:r}=e(An),c=t(),l=n();let i;return void 0===a?i=c.clientId===z&&c.attributeKey===x:a&&(i=c.clientId===z),{selectionStart:i?c.offset:void 0,selectionEnd:i?l.offset:void 0,isSelected:i,disabled:o()||r()}}),{selectionChange:$}=Object(f.useDispatch)(An),q=Qu(b),Y=Zu({allowedFormats:_,formattingControls:y,disableFormats:P}),X=!Y||Y.length>0;let Q=o,Z=r;Array.isArray(o)&&(Q=m.children.toHTML(o),Z=e=>r(m.children.fromDOM(Object(c.__unstableCreateElement)(document,e).childNodes)));const J=Object(i.useCallback)((e,t)=>{$(z,x,e,t)},[z,x]),{formatTypes:ee,prepareHandlers:te,valueHandlers:ne,changeHandlers:oe,dependencies:re}=function({clientId:e,identifier:t,withoutInteractiveFormatting:n,allowedFormats:o}){const r=Object(f.useSelect)(od,[]),c=Object(i.useMemo)(()=>r.filter(({name:e,tagName:t})=>!(o&&!o.includes(e)||n&&rd.has(t))),[r,o,rd]),l=Object(f.useSelect)(n=>c.reduce((o,r)=>(r.__experimentalGetPropsForEditableTreePreparation&&(o[r.name]=r.__experimentalGetPropsForEditableTreePreparation(n,{richTextIdentifier:t,blockClientId:e})),o),{}),[c,e,t]),a=Object(f.useDispatch)(),s=[],u=[],d=[],b=[];return c.forEach(n=>{if(n.__experimentalCreatePrepareEditableTree){const o=l[n.name],r=n.__experimentalCreatePrepareEditableTree(o,{richTextIdentifier:t,blockClientId:e});n.__experimentalCreateOnChangeEditableValue?u.push(r):s.push(r);for(const e in o)b.push(o[e])}if(n.__experimentalCreateOnChangeEditableValue){let o={};n.__experimentalGetPropsForEditableTreeChangeHandler&&(o=n.__experimentalGetPropsForEditableTreeChangeHandler(a,{richTextIdentifier:t,blockClientId:e})),d.push(n.__experimentalCreateOnChangeEditableValue({...l[n.name]||{},...o},{richTextIdentifier:t,blockClientId:e}))}}),{formatTypes:c,prepareHandlers:s,valueHandlers:u,changeHandlers:d,dependencies:b}}({clientId:z,identifier:x,withoutInteractiveFormatting:E,allowedFormats:Y});function ce(e){return ee.forEach(t=>{t.__experimentalCreatePrepareEditableTree&&(e=Object(c.removeFormat)(e,t.name,0,e.text.length))}),e.formats}const{value:le,onChange:ie,onFocus:ae,ref:se}=Object(c.__unstableUseRichText)({value:Q,onChange(e,{__unstableFormats:t,__unstableText:n}){Z(e),Object.values(oe).forEach(e=>{e(t,n)})},selectionStart:G,selectionEnd:U,onSelectionChange:J,placeholder:k,__unstableIsSelected:W,__unstableMultilineTag:q,__unstableDisableFormats:P,preserveWhiteSpace:T,__unstableDependencies:[...re,n],__unstableAfterParse:function(e){return ne.reduce((t,n)=>n(t,e.text),e.formats)},__unstableBeforeSerialize:ce,__unstableAddInvisibleFormats:function(e){return te.reduce((t,n)=>n(t,e.text),e.formats)}}),ue=function(e){return Object(p.__unstableUseAutocompleteProps)({...e,completers:Al(e)})}({onReplace:j,completers:v,record:le,onChange:ie});!function({value:e}){const t=e.activeFormats&&!!e.activeFormats.length,{isCaretWithinFormattedText:n}=Object(f.useSelect)(An),{enterFormattedText:o,exitFormattedText:r}=Object(f.useDispatch)(An);Object(i.useEffect)(()=>{t?n()||o():n()&&r()},[t])}({value:le}),function({html:e,value:t}){const n=Object(i.useRef)(),o=t.activeFormats&&!!t.activeFormats.length,{__unstableMarkLastChangeAsPersistent:r}=Object(f.useDispatch)(An);Object(i.useLayoutEffect)(()=>{if(n.current){if(n.current!==t.text){const e=window.setTimeout(()=>{r()},1e3);return n.current=t.text,()=>{window.clearTimeout(e)}}r()}else n.current=t.text},[e,o])}({html:Q,value:le});const de=n,be=Object(i.createElement)(i.Fragment,null,W&&t&&t({value:le,onChange:ie,onFocus:ae}),W&&Object(i.createElement)(cd,{value:le,onChange:ie,onFocus:ae,formatTypes:ee,forwardedRef:H}),W&&X&&Object(i.createElement)(Ku,{inline:g,anchorRef:H.current}),Object(i.createElement)(de,Object(l.a)({role:"textbox","aria-multiline":!0,"aria-label":k},D,ue,{ref:Object(d.useMergeRefs)([ue.ref,D.ref,se,td({value:le,onChange:ie,__unstableAllowPrefixTransformations:M,formatTypes:ee,onReplace:j}),Object(d.useRefEffect)(e=>{function t(e){(Yr.isKeyboardEvent.primary(e,"z")||Yr.isKeyboardEvent.primary(e,"y")||Yr.isKeyboardEvent.primaryShift(e,"z"))&&e.preventDefault()}return e.addEventListener("keydown",t),()=>{e.addEventListener("keydown",t)}},[]),$u(),ed({isSelected:W,disableFormats:P,onChange:ie,value:le,formatTypes:ee,tagName:n,onReplace:j,onSplit:w,onSplitMiddle:I,__unstableEmbedURLOnPaste:L,multilineTag:q,preserveWhiteSpace:T,pastePlainText:N}),nd({removeEditorOnlyFormats:ce,value:le,onReplace:j,onSplit:w,onSplitMiddle:I,multilineTag:q,onChange:ie,disableLineBreaks:R,onSplitAtEnd:B}),H,F]),contentEditable:!K||void 0,suppressContentEditableWarning:!K,className:s()("block-editor-rich-text__editable",D.className,"rich-text"),onFocus:A,onKeyDown:function(e){const{keyCode:t}=e;if(!e.defaultPrevented&&(t===Yr.DELETE||t===Yr.BACKSPACE)){const{start:n,end:o,text:r}=le,l=t===Yr.BACKSPACE,i=le.activeFormats&&!!le.activeFormats.length;if(!Object(c.isCollapsed)(le)||i||l&&0!==n||!l&&o!==r.length)return;S&&S(!l),C&&Object(c.isEmpty)(le)&&l&&C(!l),e.preventDefault()}}})));if(!h)return be;wt()("wp.blockEditor.RichText wrapperClassName prop",{since:"5.4",alternative:"className prop or create your own wrapper div"});const me=s()("block-editor-rich-text",h);return Object(i.createElement)("div",{className:me},be)}));ld.Content=({value:e,tagName:t,multiline:n,...o})=>{Array.isArray(e)&&(e=m.children.toHTML(e));const r=Qu(n);!e&&r&&(e=`<${r}></${r}>`);const c=Object(i.createElement)(i.RawHTML,null,e);return t?Object(i.createElement)(t,Object(u.omit)(o,["format"]),c):c},ld.isEmpty=e=>!e||0===e.length;var id=ld;function ad({value:e,onChange:t}){return Object(i.createElement)(Nu,null,Object(i.createElement)(id,{value:e,onChange:t,placeholder:Object(v.__)("Navigation item"),withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))}var sd=n(184),ud=function({icon:e=sd.a,label:t=Object(v.__)("Choose variation"),instructions:n=Object(v.__)("Select a variation to start with."),variations:o,onSelect:r,allowSkip:c}){const l=s()("block-editor-block-variation-picker",{"has-many-variations":o.length>4});return Object(i.createElement)(p.Placeholder,{icon:e,label:t,instructions:n,className:l},Object(i.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(v.__)("Block variations")},o.map(e=>Object(i.createElement)("li",{key:e.name},Object(i.createElement)(p.Button,{variant:"secondary",icon:e.icon,iconSize:48,onClick:()=>r(e),className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(i.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title)))),c&&Object(i.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(i.createElement)(p.Button,{variant:"link",onClick:()=>r()},Object(v.__)("Skip"))))},dd=n(285);const bd=({onStartBlank:e,onBlockPatternSelect:t})=>Object(i.createElement)("div",{className:"block-editor-block-pattern-setup__actions"},Object(i.createElement)(p.Button,{onClick:e},Object(v.__)("Start blank")),Object(i.createElement)(p.Button,{variant:"primary",onClick:t},Object(v.__)("Choose"))),md=({handlePrevious:e,handleNext:t,activeSlide:n,totalSlides:o})=>Object(i.createElement)("div",{className:"block-editor-block-pattern-setup__navigation"},Object(i.createElement)(p.Button,{icon:ui.a,label:Object(v.__)("Previous pattern"),onClick:e,disabled:0===n}),Object(i.createElement)(p.Button,{icon:si.a,label:Object(v.__)("Next pattern"),onClick:t,disabled:n===o-1}));var pd=({viewMode:e,setViewMode:t,handlePrevious:n,handleNext:o,activeSlide:r,totalSlides:c,onBlockPatternSelect:l,onStartBlank:a})=>{const s="carousel"===e,u=Object(i.createElement)("div",{className:"block-editor-block-pattern-setup__display-controls"},Object(i.createElement)(p.Button,{icon:Yn,label:Object(v.__)("Carousel view"),onClick:()=>t("carousel"),isPressed:s}),Object(i.createElement)(p.Button,{icon:dd.a,label:Object(v.__)("Grid view"),onClick:()=>t("grid"),isPressed:"grid"===e}));return Object(i.createElement)("div",{className:"block-editor-block-pattern-setup__toolbar"},s&&Object(i.createElement)(md,{handlePrevious:n,handleNext:o,activeSlide:r,totalSlides:c}),u,s&&Object(i.createElement)(bd,{onBlockPatternSelect:l,onStartBlank:a}))};const fd=({viewMode:e,activeSlide:t,patterns:n,onBlockPatternSelect:o})=>{const r=Object(p.__unstableUseCompositeState)(),c="block-editor-block-pattern-setup__container";if("carousel"===e){const e=new Map([[t,"active-slide"],[t-1,"previous-slide"],[t+1,"next-slide"]]);return Object(i.createElement)("div",{className:c},Object(i.createElement)("ul",{className:"carousel-container"},n.map((t,n)=>Object(i.createElement)(hd,{className:e.get(n)||"",key:t.name,pattern:t}))))}return Object(i.createElement)(p.__unstableComposite,Object(l.a)({},r,{role:"listbox",className:c,"aria-label":Object(v.__)("Patterns list")}),n.map(e=>Object(i.createElement)(gd,{key:e.name,pattern:e,onSelect:o,composite:r})))};function gd({pattern:e,onSelect:t,composite:n}){const o="block-editor-block-pattern-setup-list",{blocks:r,title:c,description:a,viewportWidth:s=700}=e,u=Object(d.useInstanceId)(gd,o+"__item-description");return Object(i.createElement)("div",{className:o+"__list-item","aria-label":e.title,"aria-describedby":e.description?u:void 0},Object(i.createElement)(p.__unstableCompositeItem,Object(l.a)({role:"option",as:"div"},n,{className:o+"__item",onClick:()=>t(r)}),Object(i.createElement)(ua,{blocks:r,viewportWidth:s}),Object(i.createElement)("div",{className:o+"__item-title"},c)),!!a&&Object(i.createElement)(p.VisuallyHidden,{id:u},a))}function hd({className:e,pattern:t}){const{blocks:n,title:o,description:r}=t,c=Object(d.useInstanceId)(hd,"block-editor-block-pattern-setup-list__item-description");return Object(i.createElement)("li",{className:"pattern-slide "+e,"aria-label":o,"aria-describedby":r?c:void 0},Object(i.createElement)(ua,{blocks:n,__experimentalLive:!0}),!!r&&Object(i.createElement)(p.VisuallyHidden,{id:c},r))}var Od=({clientId:e,blockName:t,filterPatternsFn:n,startBlankComponent:o,onBlockPatternSelect:r})=>{const[c,l]=Object(i.useState)("carousel"),[a,s]=Object(i.useState)(0),[u,d]=Object(i.useState)(!1),{replaceBlock:b}=Object(f.useDispatch)(An),p=function(e,t,n){return Object(f.useSelect)(o=>{const{getBlockRootClientId:r,__experimentalGetPatternsByBlockTypes:c,__experimentalGetAllowedPatterns:l}=o(An),i=r(e);return n?l(i).filter(n):c(t,i)},[e,t,n])}(e,t,n);if(null==p||!p.length||u)return o;const g=r||(t=>{const n=t.map(e=>Object(m.cloneBlock)(e));b(e,n)});return Object(i.createElement)("div",{className:"block-editor-block-pattern-setup view-mode-"+c},Object(i.createElement)(pd,{viewMode:c,setViewMode:l,activeSlide:a,totalSlides:p.length,handleNext:()=>{s(e=>e+1)},handlePrevious:()=>{s(e=>e-1)},onBlockPatternSelect:()=>{g(p[a].blocks)},onStartBlank:()=>{d(!0)}}),Object(i.createElement)(fd,{viewMode:c,activeSlide:a,patterns:p,onBlockPatternSelect:g}))};const vd=(e,t)=>{if(!t||!e)return;const n=t.filter(({attributes:t})=>!(!t||!Object.keys(t).length)&&Object(u.isMatch)(e,t));return 1===n.length?n[0]:void 0};var jd=function({blockClientId:e}){const[t,n]=Object(i.useState)(),{updateBlockAttributes:o}=Object(f.useDispatch)(An),{variations:r,blockAttributes:c}=Object(f.useSelect)(t=>{const{getBlockVariations:n}=t(m.store),{getBlockName:o,getBlockAttributes:r}=t(An),c=e&&o(e);return{variations:c&&n(c,"transform"),blockAttributes:r(e)}},[e]);if(Object(i.useEffect)(()=>{var e;n(null===(e=vd(c,r))||void 0===e?void 0:e.name)},[c,r]),null==r||!r.length)return null;const l=r.map(({name:e,title:t,description:n})=>({value:e,label:t,info:n})),a=t=>{o(e,{...r.find(({name:e})=>e===t).attributes})},s="block-editor-block-variation-transforms";return Object(i.createElement)(p.DropdownMenu,{className:s,label:Object(v.__)("Transform to variation"),text:Object(v.__)("Transform to variation"),popoverProps:{position:"bottom center",className:s+"__popover"},icon:bi.a,toggleProps:{iconPosition:"right"}},()=>Object(i.createElement)("div",{className:s+"__container"},Object(i.createElement)(p.MenuGroup,null,Object(i.createElement)(p.MenuItemsChoice,{choices:l,value:t,onSelect:a}))))};const kd=Object(i.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(p.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),_d=Object(i.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(p.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),yd={top:{icon:Object(i.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(p.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:Object(v._x)("Align top","Block vertical alignment setting")},center:{icon:_d,title:Object(v._x)("Align middle","Block vertical alignment setting")},bottom:{icon:kd,title:Object(v._x)("Align bottom","Block vertical alignment setting")}},Ed=["top","center","bottom"],Cd={isAlternate:!0};var Sd=function({value:e,onChange:t,controls:n=Ed,isCollapsed:o=!0,isToolbar:r}){const c=yd[e],a=yd.top,s=r?p.ToolbarGroup:p.ToolbarDropdownMenu,u=r?{isCollapsed:o}:{};return Object(i.createElement)(s,Object(l.a)({popoverProps:Cd,icon:c?c.icon:a.icon,label:Object(v._x)("Change vertical alignment","Block vertical alignment setting label"),controls:n.map(n=>{return{...yd[n],isActive:e===n,role:o?"menuitemradio":void 0,onClick:(r=n,()=>t(e===r?void 0:r))};var r})},u))};function wd(e){return Object(i.createElement)(Sd,Object(l.a)({},e,{isToolbar:!1}))}function Bd(e){return Object(i.createElement)(Sd,Object(l.a)({},e,{isToolbar:!0}))}var Id=Object(d.createHigherOrderComponent)(e=>t=>{const n=Io("color.palette"),o=!Io("color.custom"),r=void 0===t.colors?n:t.colors,c=void 0===t.disableCustomColors?o:t.disableCustomColors,a=!Object(u.isEmpty)(r)||!c;return Object(i.createElement)(e,Object(l.a)({},t,{colors:r,disableCustomColors:c,hasColorsToChoose:a}))},"withColorContext"),xd=Id(p.ColorPalette);function Td({onChange:e,value:t,...n}){return Object(i.createElement)($o,Object(l.a)({},n,{onColorChange:e,colorValue:t,gradients:[],disableCustomGradients:!0}))}const Nd=[];function Ld(e){const t=Io("color.gradients")||Nd,n=!Io("color.customGradient");return Object(i.createElement)(p.__experimentalGradientPicker,Object(l.a)({gradients:void 0!==e.gradients?e.gradient:t,disableCustomGradients:void 0!==e.disableCustomGradients?e.disableCustomGradients:n},e))}var Pd=function(e){const t=void 0!==e.gradients&&void 0!==e.disableCustomGradients?p.__experimentalGradientPicker:Ld;return Object(i.createElement)(t,e)};function Rd({className:e,value:t,onChange:n,label:o=Object(v.__)("Gradient Presets"),...r}){const c=Io("color.gradients"),a=!Io("color.customGradient");return Object(u.isEmpty)(c)&&a?null:Object(i.createElement)(p.BaseControl,{className:s()("block-editor-gradient-picker-control",e)},Object(i.createElement)(p.BaseControl.VisualLabel,null,o),Object(i.createElement)(Pd,Object(l.a)({value:t,onChange:n,className:"block-editor-gradient-picker-control__gradient-picker-presets",gradients:c,disableCustomGradients:a},r)))}function Ad(e){const t=Io("color.gradients");return Object(u.isEmpty)(t)?null:Object(i.createElement)(p.PanelBody,{title:Object(v.__)("Gradient")},Object(i.createElement)(Rd,e))}const Md=[25,50,75,100];function Dd({imageWidth:e,imageHeight:t,imageSizeOptions:n=[],isResizable:o=!0,slug:r,width:c,height:l,onChange:a,onChangeImage:s=u.noop}){var d,b;function m(e,t){return()=>{a({width:e,height:t})}}return Object(i.createElement)(i.Fragment,null,!Object(u.isEmpty)(n)&&Object(i.createElement)(p.SelectControl,{label:Object(v.__)("Image size"),value:r,options:n,onChange:s}),o&&Object(i.createElement)("div",{className:"block-editor-image-size-control"},Object(i.createElement)("p",{className:"block-editor-image-size-control__row"},Object(v.__)("Image dimensions")),Object(i.createElement)("div",{className:"block-editor-image-size-control__row"},Object(i.createElement)(p.TextControl,{type:"number",className:"block-editor-image-size-control__width",label:Object(v.__)("Width"),value:null!==(d=null!=c?c:e)&&void 0!==d?d:"",min:1,onChange:e=>a({width:parseInt(e,10)})}),Object(i.createElement)(p.TextControl,{type:"number",className:"block-editor-image-size-control__height",label:Object(v.__)("Height"),value:null!==(b=null!=l?l:t)&&void 0!==b?b:"",min:1,onChange:e=>a({height:parseInt(e,10)})})),Object(i.createElement)("div",{className:"block-editor-image-size-control__row"},Object(i.createElement)(p.ButtonGroup,{"aria-label":Object(v.__)("Image size presets")},Md.map(n=>{const o=Math.round(e*(n/100)),r=Math.round(t*(n/100)),a=c===o&&l===r;return Object(i.createElement)(p.Button,{key:n,isSmall:!0,variant:a?"primary":void 0,isPressed:a,onClick:m(o,r)},n,"%")})),Object(i.createElement)(p.Button,{isSmall:!0,onClick:m()},Object(v.__)("Reset")))))}var Fd=Object(d.createHigherOrderComponent)(e=>t=>{const{clientId:n}=O();return Object(i.createElement)(e,Object(l.a)({},t,{clientId:n}))},"withClientId"),Vd=Fd(({clientId:e,showSeparator:t,isFloating:n,onAddBlock:o})=>Object(i.createElement)(es,{rootClientId:e,showSeparator:t,isFloating:n,onAddBlock:o})),Hd=Object(d.compose)([Fd,Object(f.withSelect)((e,{clientId:t})=>{const{getBlockOrder:n}=e(An),o=n(t);return{lastBlockClientId:Object(u.last)(o)}})])(({clientId:e,lastBlockClientId:t})=>Object(i.createElement)(Qa,{rootClientId:e,lastBlockClientId:t})),zd=n(45),Gd=n.n(zd);const Ud=new WeakMap;function Wd(e){const{clientId:t,allowedBlocks:n,template:o,templateLock:r,wrapperRef:c,templateInsertUpdatesSelection:l,__experimentalCaptureToolbars:a,__experimentalAppenderTagName:s,renderAppender:d,orientation:b,placeholder:p,__experimentalLayout:g}=e;!function(e,t,n,o,r){const{updateBlockListSettings:c}=Object(f.useDispatch)(An),{blockListSettings:l,parentLock:a}=Object(f.useSelect)(t=>{const n=t(An).getBlockRootClientId(e);return{blockListSettings:t(An).getBlockListSettings(e),parentLock:t(An).getTemplateLock(n)}},[e]),s=Object(i.useMemo)(()=>t,t);Object(i.useLayoutEffect)(()=>{const t={allowedBlocks:s,templateLock:void 0===n?a:n};void 0!==o&&(t.__experimentalCaptureToolbars=o),void 0!==r&&(t.orientation=r),Gd()(l,t)||c(e,t)},[e,l,s,n,a,o,r,c])}(t,n,r,a,b),function(e,t,n,o){const{getSelectedBlocksInitialCaretPosition:r}=Object(f.useSelect)(An),{replaceInnerBlocks:c}=Object(f.useDispatch)(An),l=Object(f.useSelect)(t=>t(An).getBlocks(e),[e]),a=Object(i.useRef)(null);Object(i.useLayoutEffect)(()=>{if((0===l.length||"all"===n)&&!Object(u.isEqual)(t,a.current)){a.current=t;const n=Object(m.synchronizeBlocksWithTemplate)(l,t);Object(u.isEqual)(n,l)||c(e,n,0===l.length&&o&&0!==n.length,r())}},[l,t,n,e])}(t,o,r,l);const h=Object(f.useSelect)(e=>{const n=e(An).getBlock(t),o=Object(m.getBlockType)(n.name);if(o&&o.providesContext)return function(e,t){Ud.has(t)||Ud.set(t,new WeakMap);const n=Ud.get(t);if(!n.has(e)){const o=Object(u.mapValues)(t.providesContext,t=>e[t]);n.set(e,o)}return n.get(e)}(n.attributes,o)},[t]);return Object(i.createElement)(Wl,{value:h},Object(i.createElement)(hu,{rootClientId:t,renderAppender:d,__experimentalAppenderTagName:s,__experimentalLayout:g,wrapperRef:c,placeholder:p}))}function Kd(e){return ca(e),Object(i.createElement)(Wd,e)}const $d=Object(i.forwardRef)((e,t)=>{const n=qd({ref:t},e);return Object(i.createElement)("div",{className:"block-editor-inner-blocks"},Object(i.createElement)("div",n))});function qd(e={},t={}){const{clientId:n}=O(),o=Object(d.useViewportMatch)("medium","<"),r=Object(f.useSelect)(e=>{const{getBlockName:t,isBlockSelected:r,hasSelectedInnerBlock:c,isNavigationMode:l}=e(An),i=l()||o;return"core/template"!==t(n)&&!r(n)&&!c(n,!0)&&i},[n,o]),c=Object(d.useMergeRefs)([e.ref,cs({rootClientId:n})]),a=t.value&&t.onChange?Kd:Wd;return{...e,ref:c,className:s()(e.className,"block-editor-block-list__layout",{"has-overlay":r}),children:Object(i.createElement)(a,Object(l.a)({},t,{clientId:n}))}}$d.DefaultBlockAppender=Hd,$d.ButtonBlockAppender=Vd,$d.Content=Object(m.withBlockContentContext)(({BlockContent:e})=>Object(i.createElement)(e,null));var Yd=$d,Xd=Object(i.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(Un.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),Qd=Object(i.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(Un.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"})),Zd=Object(i.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(Un.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),Jd=Object(i.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(Un.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"}));const eb={left:Xd,center:Qd,right:Zd,"space-between":Jd};var tb=function({allowedControls:e=["left","center","right","space-between"],isCollapsed:t=!0,onChange:n,value:o,popoverProps:r,isToolbar:c}){const a=e=>{n(e===o?void 0:e)},s=o?eb[o]:eb.left,u=[{name:"left",icon:Xd,title:Object(v.__)("Justify items left"),isActive:"left"===o,onClick:()=>a("left")},{name:"center",icon:Qd,title:Object(v.__)("Justify items center"),isActive:"center"===o,onClick:()=>a("center")},{name:"right",icon:Zd,title:Object(v.__)("Justify items right"),isActive:"right"===o,onClick:()=>a("right")},{name:"space-between",icon:Jd,title:Object(v.__)("Space between items"),isActive:"space-between"===o,onClick:()=>a("space-between")}],d=c?p.ToolbarGroup:p.ToolbarDropdownMenu,b=c?{isCollapsed:t}:{};return Object(i.createElement)(d,Object(l.a)({icon:s,popoverProps:r,label:Object(v.__)("Change items justification"),controls:u.filter(t=>e.includes(t.name))},b))};function nb(e){return Object(i.createElement)(tb,Object(l.a)({},e,{isToolbar:!1}))}function ob(e){return Object(i.createElement)(tb,Object(l.a)({},e,{isToolbar:!0}))}var rb=n(209);const cb=[{id:"opensInNewTab",title:Object(v.__)("Open in new tab")}];var lb=({value:e,onChange:t=u.noop,settings:n=cb})=>{if(!n||!n.length)return null;const o=n=>o=>{t({...e,[n.id]:o})},r=n.map(t=>Object(i.createElement)(p.ToggleControl,{className:"block-editor-link-control__setting",key:t.id,label:t.title,onChange:o(t),checked:!!e&&!!e[t.id]}));return Object(i.createElement)("fieldset",{className:"block-editor-link-control__settings"},Object(i.createElement)(p.VisuallyHidden,{as:"legend"},Object(v.__)("Currently selected link settings")),r)};class ib extends i.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectLink=this.selectLink.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.bindSuggestionNode=this.bindSuggestionNode.bind(this),this.autocompleteRef=e.autocompleteRef||Object(i.createRef)(),this.inputRef=Object(i.createRef)(),this.updateSuggestions=Object(u.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.isUpdatingSuggestions=!1,this.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""}}componentDidUpdate(e){const{showSuggestions:t,selectedSuggestion:n}=this.state,{value:o}=this.props;t&&null!==n&&this.suggestionNodes[n]&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,$i()(this.suggestionNodes[n],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout(()=>{this.scrollingIntoView=!1},100)),e.value!==o&&this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){var e,t;null===(e=this.suggestionsRequest)||void 0===e||null===(t=e.cancel)||void 0===t||t.call(e),delete this.suggestionsRequest}bindSuggestionNode(e){return t=>{this.suggestionNodes[e]=t}}shouldShowInitialSuggestions(){const{suggestions:e}=this.state,{__experimentalShowInitialSuggestions:t=!1,value:n}=this.props;return!this.isUpdatingSuggestions&&t&&!(n&&n.length)&&!(e&&e.length)}updateSuggestions(e=""){const{__experimentalFetchLinkSuggestions:t,__experimentalHandleURLSuggestions:n}=this.props;if(!t)return;const o=!(e&&e.length);if(!o&&(e.length<2||!n&&Object(La.isURL)(e)))return void this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1});this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});const r=t(e,{isInitialSuggestions:o});r.then(e=>{this.suggestionsRequest===r&&(this.setState({suggestions:e,loading:!1,showSuggestions:!!e.length}),e.length?this.props.debouncedSpeak(Object(v.sprintf)(
62
  /* translators: %s: number of results. */
63
- Object(v._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):this.props.debouncedSpeak(Object(v.__)("No results."),"assertive"),this.isUpdatingSuggestions=!1)}).catch(()=>{this.suggestionsRequest===r&&(this.setState({loading:!1}),this.isUpdatingSuggestions=!1)}),this.suggestionsRequest=r}onChange(e){const t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t.trim())}onFocus(){const{suggestions:e}=this.state,{disableSuggestions:t,value:n}=this.props;!n||t||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(n.trim())}onKeyDown(e){const{showSuggestions:t,selectedSuggestion:n,suggestions:o,loading:r}=this.state;if(!t||!o.length||r){switch(e.keyCode){case Yr.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case Yr.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case Yr.ENTER:this.props.onSubmit&&this.props.onSubmit()}return}const c=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case Yr.UP:{e.stopPropagation(),e.preventDefault();const t=n?n-1:o.length-1;this.setState({selectedSuggestion:t});break}case Yr.DOWN:{e.stopPropagation(),e.preventDefault();const t=null===n||n===o.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case Yr.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(c),this.props.speak(Object(v.__)("Link selected.")));break;case Yr.ENTER:null!==this.state.selectedSuggestion?(e.stopPropagation(),this.selectLink(c),this.props.onSubmit&&this.props.onSubmit(c)):this.props.onSubmit&&this.props.onSubmit()}}selectLink(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}handleOnClick(e){this.selectLink(e),this.inputRef.current.focus()}static getDerivedStateFromProps({value:e,instanceId:t,disableSuggestions:n,__experimentalShowInitialSuggestions:o=!1},{showSuggestions:r}){let c=r;const l=e&&e.length;return o||l||(c=!1),!0===n&&(c=!1),{showSuggestions:c,suggestionsListboxId:"block-editor-url-input-suggestions-"+t,suggestionOptionIdPrefix:"block-editor-url-input-suggestion-"+t}}render(){return Object(i.createElement)(i.Fragment,null,this.renderControl(),this.renderSuggestions())}renderControl(){const{label:e,className:t,isFullWidth:n,instanceId:o,placeholder:r=Object(v.__)("Paste URL or type to search"),__experimentalRenderControl:c,value:l=""}=this.props,{loading:a,showSuggestions:u,selectedSuggestion:d,suggestionsListboxId:b,suggestionOptionIdPrefix:m}=this.state,f={id:"url-input-control-"+o,label:e,className:s()("block-editor-url-input",t,{"is-full-width":n})},g={value:l,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:r,onKeyDown:this.onKeyDown,role:"combobox","aria-label":Object(v.__)("URL"),"aria-expanded":u,"aria-autocomplete":"list","aria-owns":b,"aria-activedescendant":null!==d?`${m}-${d}`:void 0,ref:this.inputRef};return c?c(f,g,a):Object(i.createElement)(p.BaseControl,f,Object(i.createElement)("input",g),a&&Object(i.createElement)(p.Spinner,null))}renderSuggestions(){const{className:e,__experimentalRenderSuggestions:t,value:n="",__experimentalShowInitialSuggestions:o=!1}=this.props,{showSuggestions:r,suggestions:c,selectedSuggestion:a,suggestionsListboxId:d,suggestionOptionIdPrefix:b,loading:m}=this.state,f={id:d,ref:this.autocompleteRef,role:"listbox"},g=(e,t)=>({role:"option",tabIndex:"-1",id:`${b}-${t}`,ref:this.bindSuggestionNode(t),"aria-selected":t===a});return Object(u.isFunction)(t)&&r&&c.length?t({suggestions:c,selectedSuggestion:a,suggestionsListProps:f,buildSuggestionItemProps:g,isLoading:m,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:o&&!(n&&n.length)}):!Object(u.isFunction)(t)&&r&&c.length?Object(i.createElement)(p.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(i.createElement)("div",Object(l.a)({},f,{className:s()("block-editor-url-input__suggestions",e+"__suggestions")}),c.map((e,t)=>Object(i.createElement)(p.Button,Object(l.a)({},g(0,t),{key:e.id,className:s()("block-editor-url-input__suggestion",{"is-selected":t===a}),onClick:()=>this.handleOnClick(e)}),e.title)))):null}}var ab=Object(d.compose)(d.withSafeTimeout,p.withSpokenMessages,d.withInstanceId,Object(f.withSelect)((e,t)=>{if(Object(u.isFunction)(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(An);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}}))(ib),sb=({searchTerm:e,onClick:t,itemProps:n,isSelected:o,buttonText:r})=>{if(!e)return null;let c;return c=r?Object(u.isFunction)(r)?r(e):r:Object(i.createInterpolateElement)(Object(v.sprintf)(
64
  /* translators: %s: search term. */
65
- Object(v.__)("Create: <mark>%s</mark>"),e),{mark:Object(i.createElement)("mark",null)}),Object(i.createElement)(p.Button,Object(l.a)({},n,{className:s()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":o}),onClick:t}),Object(i.createElement)(Xc.a,{className:"block-editor-link-control__search-item-icon",icon:Zi.a}),Object(i.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(i.createElement)("span",{className:"block-editor-link-control__search-item-title"},c)))},ub=Object(i.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(i.createElement)(Un.Path,{d:"M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zM1.11 9.68h2.51c.04.91.167 1.814.38 2.7H1.84c-.403-.85-.65-1.764-.73-2.7zm8.57-5.4V1.19c.964.366 1.756 1.08 2.22 2 .205.347.386.708.54 1.08l-2.76.01zm3.22 1.35c.232.883.37 1.788.41 2.7H9.68v-2.7h3.22zM8.32 1.19v3.09H5.56c.154-.372.335-.733.54-1.08.462-.924 1.255-1.64 2.22-2.01zm0 4.44v2.7H4.7c.04-.912.178-1.817.41-2.7h3.21zm-4.7 2.69H1.11c.08-.936.327-1.85.73-2.7H4c-.213.886-.34 1.79-.38 2.7zM4.7 9.68h3.62v2.7H5.11c-.232-.883-.37-1.788-.41-2.7zm3.63 4v3.09c-.964-.366-1.756-1.08-2.22-2-.205-.347-.386-.708-.54-1.08l2.76-.01zm1.35 3.09v-3.04h2.76c-.154.372-.335.733-.54 1.08-.464.92-1.256 1.634-2.22 2v-.04zm0-4.44v-2.7h3.62c-.04.912-.178 1.817-.41 2.7H9.68zm4.71-2.7h2.51c-.08.936-.327 1.85-.73 2.7H14c.21-.87.337-1.757.38-2.65l.01-.05zm0-1.35c-.046-.894-.176-1.78-.39-2.65h2.16c.403.85.65 1.764.73 2.7l-2.5-.05zm1-4H13.6c-.324-.91-.793-1.76-1.39-2.52 1.244.56 2.325 1.426 3.14 2.52h.04zm-9.6-2.52c-.597.76-1.066 1.61-1.39 2.52H2.65c.815-1.094 1.896-1.96 3.14-2.52zm-3.15 12H4.4c.324.91.793 1.76 1.39 2.52-1.248-.567-2.33-1.445-3.14-2.55l-.01.03zm9.56 2.52c.597-.76 1.066-1.61 1.39-2.52h1.76c-.82 1.08-1.9 1.933-3.14 2.48l-.01.04z"})),db=({itemProps:e,suggestion:t,isSelected:n=!1,onClick:o,isURL:r=!1,searchTerm:c="",shouldShowType:a=!1})=>Object(i.createElement)(p.Button,Object(l.a)({},e,{onClick:o,className:s()("block-editor-link-control__search-item",{"is-selected":n,"is-url":r,"is-entity":!r})}),r&&Object(i.createElement)(Xc.a,{className:"block-editor-link-control__search-item-icon",icon:ub}),Object(i.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(i.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(i.createElement)(p.TextHighlight,{text:t.title,highlight:c})),Object(i.createElement)("span",{"aria-hidden":!r,className:"block-editor-link-control__search-item-info"},!r&&(Object(La.filterURLForDisplay)(Object(La.safeDecodeURI)(t.url))||""),r&&Object(v.__)("Press ENTER to add this link"))),a&&t.type&&Object(i.createElement)("span",{className:"block-editor-link-control__search-item-type"},"post_tag"===t.type?"tag":t.type));function bb({instanceId:e,withCreateSuggestion:t,currentInputValue:n,handleSuggestionClick:o,suggestionsListProps:r,buildSuggestionItemProps:c,suggestions:a,selectedSuggestion:u,isLoading:d,isInitialSuggestions:b,createSuggestionButtonText:m,suggestionsQuery:f}){const g=s()("block-editor-link-control__search-results",{"is-loading":d}),h=["url","mailto","tel","internal"],O=1===a.length&&h.includes(a[0].type.toLowerCase()),j=t&&!O&&!b,k=!(null!=f&&f.type),_="block-editor-link-control-search-results-label-"+e,y=b?Object(v.__)("Recently updated"):Object(v.sprintf)(
66
  /* translators: %s: search term. */
67
- Object(v.__)('Search results for "%s"'),n),E=Object(i.createElement)(b?i.Fragment:p.VisuallyHidden,{},Object(i.createElement)("span",{className:"block-editor-link-control__search-results-label",id:_},y));return Object(i.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},E,Object(i.createElement)("div",Object(l.a)({},r,{className:g,"aria-labelledby":_}),a.map((e,t)=>j&&"__CREATE__"===e.type?Object(i.createElement)(sb,{searchTerm:n,buttonText:m,onClick:()=>o(e),key:e.type,itemProps:c(e,t),isSelected:t===u}):"__CREATE__"===e.type?null:Object(i.createElement)(db,{key:`${e.id}-${e.type}`,itemProps:c(e,t),suggestion:e,index:t,onClick:()=>{o(e)},isSelected:t===u,isURL:h.includes(e.type.toLowerCase()),searchTerm:n,shouldShowType:k}))))}function mb(e){const t=Object(u.startsWith)(e,"#");return Object(La.isURL)(e)||e&&e.includes("www.")||t}const pb=()=>Promise.resolve([]),fb=e=>{let t="URL";const n=Object(La.getProtocol)(e)||"";return n.includes("mailto")&&(t="mailto"),n.includes("tel")&&(t="tel"),Object(u.startsWith)(e,"#")&&(t="internal"),Promise.resolve([{id:e,title:e,url:"URL"===t?Object(La.prependHTTP)(e):e,type:t}])};const gb=Promise.resolve([]),hb=Object(i.forwardRef)(({value:e,children:t,currentLink:n={},className:o=null,placeholder:r=null,withCreateSuggestion:c=!1,onCreateSuggestion:l=u.noop,onChange:a=u.noop,onSelect:s=u.noop,showSuggestions:b=!0,renderSuggestions:m=(e=>Object(i.createElement)(bb,e)),fetchSuggestions:p=null,allowDirectEntry:g=!0,showInitialSuggestions:h=!1,suggestionsQuery:O={},withURLSuggestion:j=!0,createSuggestionButtonText:k},_)=>{const y=function(e,t,n,o){const{fetchSearchSuggestions:r}=Object(f.useSelect)(e=>{const{getSettings:t}=e(An);return{fetchSearchSuggestions:t().__experimentalFetchLinkSuggestions}},[]),c=t?fb:pb;return Object(i.useCallback)((t,{isInitialSuggestions:l})=>mb(t)?c(t,{isInitialSuggestions:l}):(async(e,t,n,o,r,c)=>{const{isInitialSuggestions:l}=t;let i=await Promise.all([n(e,t),o(e)]);return i=e.includes(" ")||!c||l?i[0]:i[0].concat(i[1]),l||mb(e)||!r?i:i.concat({title:e,url:e,type:"__CREATE__"})})(t,{...e,isInitialSuggestions:l},r,c,n,o),[c,r,n])}(O,g,c,j),E=b?p||y:gb,C=Object(d.useInstanceId)(hb),[S,w]=Object(i.useState)(),B=async e=>{let t=e;if("__CREATE__"!==e.type)(g||t&&Object.keys(t).length>=1)&&s({...Object(u.omit)(n,"id","url"),...t},t);else try{var o;t=await l(e.title),null!==(o=t)&&void 0!==o&&o.url&&s(t)}catch(e){}};return Object(i.createElement)("div",null,Object(i.createElement)(ab,{className:o,value:e,onChange:(e,t)=>{a(e),w(t)},placeholder:null!=r?r:Object(v.__)("Search or type url"),__experimentalRenderSuggestions:b?t=>m({...t,instanceId:C,withCreateSuggestion:c,currentInputValue:e,createSuggestionButtonText:k,suggestionsQuery:O,handleSuggestionClick:e=>{t.handleSuggestionClick&&t.handleSuggestionClick(e),B(e)}}):null,__experimentalFetchLinkSuggestions:E,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:h,onSubmit:t=>{B(t||S||{url:e})},ref:_}),t)});var Ob=hb;const{Slot:vb,Fill:jb}=Object(p.createSlotFill)("BlockEditorLinkControlViewer");function kb(e,t){switch(t.type){case"RESOLVED":return{...e,isFetching:!1,richData:t.richData};case"ERROR":return{...e,isFetching:!1,richData:null};case"LOADING":return{...e,isFetching:!0};default:throw new Error("Unexpected action type "+t.type)}}function _b({value:e,onEditClick:t,hasRichPreviews:n=!1}){const o=n?null==e?void 0:e.url:null,{richData:r,isFetching:c}=function(e){const[t,n]=Object(i.useReducer)(kb,{richData:null,isFetching:!1}),{fetchRichUrlData:o}=Object(f.useSelect)(e=>{const{getSettings:t}=e(An);return{fetchRichUrlData:t().__experimentalFetchRichUrlData}},[]);return Object(i.useEffect)(()=>{if(null!=e&&e.length&&o&&"undefined"!=typeof AbortController){n({type:"LOADING"});const t=new window.AbortController,r=t.signal;return o(e,{signal:r}).then(e=>{n({type:"RESOLVED",richData:e})}).catch(()=>{r.aborted||n({type:"ERROR"})}),()=>{t.abort()}}},[e]),t}(o),l=r&&Object.keys(r).length,a=e&&Object(La.filterURLForDisplay)(Object(La.safeDecodeURI)(e.url),16)||"";return Object(i.createElement)("div",{"aria-label":Object(v.__)("Currently selected"),"aria-selected":"true",className:s()("block-editor-link-control__search-item",{"is-current":!0,"is-rich":l,"is-fetching":!!c,"is-preview":!0})},Object(i.createElement)("div",{className:"block-editor-link-control__search-item-top"},Object(i.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(i.createElement)("span",{className:s()("block-editor-link-control__search-item-icon",{"is-image":null==r?void 0:r.icon})},null!=r&&r.icon?Object(i.createElement)("img",{src:null==r?void 0:r.icon,alt:""}):Object(i.createElement)(Xc.a,{icon:ub})),Object(i.createElement)("span",{className:"block-editor-link-control__search-item-details"},Object(i.createElement)(p.ExternalLink,{className:"block-editor-link-control__search-item-title",href:e.url},(null==r?void 0:r.title)||(null==e?void 0:e.title)||a),(null==e?void 0:e.url)&&Object(i.createElement)("span",{className:"block-editor-link-control__search-item-info"},a))),Object(i.createElement)(p.Button,{variant:"secondary",onClick:()=>t(),className:"block-editor-link-control__search-item-action"},Object(v.__)("Edit")),Object(i.createElement)(vb,{fillProps:e})),(l||c)&&Object(i.createElement)("div",{className:"block-editor-link-control__search-item-bottom"},Object(i.createElement)("div",{"aria-hidden":!(null!=r&&r.image),className:s()("block-editor-link-control__search-item-image",{"is-placeholder":!(null!=r&&r.image)})},(null==r?void 0:r.image)&&Object(i.createElement)("img",{src:null==r?void 0:r.image,alt:""})),Object(i.createElement)("div",{"aria-hidden":!(null!=r&&r.description),className:s()("block-editor-link-control__search-item-description",{"is-placeholder":!(null!=r&&r.description)})},(null==r?void 0:r.description)&&Object(i.createElement)(p.__experimentalText,{truncate:!0,numberOfLines:"2"},r.description))))}function yb({searchInputPlaceholder:e,value:t,settings:n,onChange:o=u.noop,noDirectEntry:r=!1,showSuggestions:c=!0,showInitialSuggestions:l,forceIsEditingLink:a,createSuggestion:s,withCreateSuggestion:d,inputValue:b="",suggestionsQuery:m={},noURLSuggestion:f=!1,createSuggestionButtonText:g,hasRichPreviews:h=!1}){void 0===d&&s&&(d=!0);const O=Object(i.useRef)(!0),j=Object(i.useRef)(),[k,_]=Object(i.useState)(t&&t.url||""),y=b||k,[E,C]=Object(i.useState)(void 0!==a?a:!t||!t.url),S=Object(i.useRef)(!1);function w(){var e;S.current=!(null===(e=j.current)||void 0===e||!e.contains(j.current.ownerDocument.activeElement)),C(!1)}Object(i.useEffect)(()=>{void 0!==a&&a!==E&&C(a)},[a]),Object(i.useEffect)(()=>{O.current?O.current=!1:((oi.focus.focusable.find(j.current)[0]||j.current).focus(),S.current=!1)},[E]);const{createPage:B,isCreatingPage:I,errorMessage:x}=function(e){const t=Object(i.useRef)(),[n,o]=Object(i.useState)(!1),[r,c]=Object(i.useState)(null);return Object(i.useEffect)(()=>()=>{t.current&&t.current.cancel()},[]),{createPage:async function(n){o(!0),c(null);try{return t.current=(e=>{let t=!1;return{promise:new Promise((n,o)=>{e.then(e=>t?o({isCanceled:!0}):n(e),e=>o(t?{isCanceled:!0}:e))}),cancel(){t=!0}}})(Promise.resolve(e(n))),await t.current.promise}catch(e){if(e&&e.isCanceled)return;throw c(e.message||Object(v.__)("An unknown error occurred during creation. Please try again.")),e}finally{o(!1)}},isCreatingPage:n,errorMessage:r}}(s),T=()=>{y!==(null==t?void 0:t.url)&&o({url:y}),w()};return Object(i.createElement)("div",{tabIndex:-1,ref:j,className:"block-editor-link-control"},I&&Object(i.createElement)("div",{className:"block-editor-link-control__loading"},Object(i.createElement)(p.Spinner,null)," ",Object(v.__)("Creating"),"…"),(E||!t)&&!I&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(i.createElement)(Ob,{currentLink:t,className:"block-editor-link-control__search-input",placeholder:e,value:y,withCreateSuggestion:d,onCreateSuggestion:B,onChange:_,onSelect:e=>{o(e),w()},showInitialSuggestions:l,allowDirectEntry:!r,showSuggestions:c,suggestionsQuery:m,withURLSuggestion:!f,createSuggestionButtonText:g},Object(i.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(i.createElement)(p.Button,{onClick:()=>T(),onKeyDown:e=>{const{keyCode:t}=e;t===Yr.ENTER&&(e.preventDefault(),T())},label:Object(v.__)("Submit"),icon:rb.a,className:"block-editor-link-control__search-submit"})))),x&&Object(i.createElement)(p.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},x)),t&&!E&&!I&&Object(i.createElement)(_b,{key:null==t?void 0:t.url,value:t,onEditClick:()=>C(!0),hasRichPreviews:h}),Object(i.createElement)(lb,{value:t,settings:n,onChange:o}))}yb.ViewerFill=jb;var Eb=yb,Cb=n(286),Sb=n(210),wb=Object(p.withFilters)("editor.MediaUpload")(()=>null),Bb=function({fallback:e=null,children:t}){return Object(f.useSelect)(e=>{const{getSettings:t}=e(An);return!!t().mediaUpload},[])?t:e},Ib=Object(d.compose)([Object(f.withDispatch)(e=>{const{createNotice:t,removeNotice:n}=e(Sa.store);return{createNotice:t,removeNotice:n}}),Object(p.withFilters)("editor.MediaReplaceFlow")])(({mediaURL:e,mediaId:t,allowedTypes:n,accept:o,onSelect:r,onSelectURL:c,onFilesUpload:l=u.noop,name:a=Object(v.__)("Replace"),createNotice:s,removeNotice:d})=>{const[b,m]=Object(i.useState)(e),g=Object(f.useSelect)(e=>e(An).getSettings().mediaUpload,[]),h=Object(i.createRef)(),O=Object(u.uniqueId)("block-editor/media-replace-flow/error-notice/"),j=e=>{const t=document.createElement("div");t.innerHTML=Object(i.renderToString)(e);const n=t.textContent||t.innerText||"";setTimeout(()=>{s("error",n,{speak:!0,id:O,isDismissible:!0})},1e3)},k=e=>{r(e),m(e.url),Object(Ct.speak)(Object(v.__)("The media file has been replaced")),d(O)},_=e=>{e.keyCode===Yr.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return Object(i.createElement)(p.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:({isOpen:e,onToggle:t})=>Object(i.createElement)(p.ToolbarButton,{ref:h,"aria-expanded":e,"aria-haspopup":"true",onClick:t,onKeyDown:_},a),renderContent:({onClose:e})=>Object(i.createElement)(i.Fragment,null,Object(i.createElement)(p.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(i.createElement)(wb,{value:t,onSelect:e=>k(e),allowedTypes:n,render:({open:e})=>Object(i.createElement)(p.MenuItem,{icon:Cb.a,onClick:e},Object(v.__)("Open Media Library"))}),Object(i.createElement)(Bb,null,Object(i.createElement)(p.FormFileUpload,{onChange:e=>{(e=>{const t=e.target.files;l(t),g({allowedTypes:n,filesList:t,onFileChange:([e])=>{k(e)},onError:j})})(e)},accept:o,render:({openFileDialog:e})=>Object(i.createElement)(p.MenuItem,{icon:Sb.a,onClick:()=>{e()}},Object(v.__)("Upload"))}))),c&&Object(i.createElement)("form",{className:"block-editor-media-flow__url-input",onKeyDown:e=>{[Yr.TAB,Yr.ESCAPE].includes(e.keyCode)||e.stopPropagation()},onKeyPress:e=>{[Yr.TAB,Yr.ESCAPE].includes(e.keyCode)||e.stopPropagation()}},Object(i.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(v.__)("Current media URL:")),Object(i.createElement)(Eb,{value:{url:b},settings:[],showSuggestions:!1,onChange:({url:e})=>{m(e),c(e),h.current.focus()}})))})}),xb=n(197);function Tb({url:e,urlLabel:t,className:n}){const o=s()(n,"block-editor-url-popover__link-viewer-url");return e?Object(i.createElement)(p.ExternalLink,{className:o,href:e},t||Object(La.filterURLForDisplay)(Object(La.safeDecodeURI)(e))):Object(i.createElement)("span",{className:o})}function Nb({additionalControls:e,children:t,renderSettings:n,position:o="bottom center",focusOnMount:r="firstElement",...c}){const[a,s]=Object(i.useState)(!1),u=!!n&&a;return Object(i.createElement)(p.Popover,Object(l.a)({className:"block-editor-url-popover",focusOnMount:r,position:o},c),Object(i.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(i.createElement)("div",{className:"block-editor-url-popover__row"},t,!!n&&Object(i.createElement)(p.Button,{className:"block-editor-url-popover__settings-toggle",icon:bi.a,label:Object(v.__)("Link settings"),onClick:()=>{s(!a)},"aria-expanded":a})),u&&Object(i.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},n())),e&&!u&&Object(i.createElement)("div",{className:"block-editor-url-popover__additional-controls"},e))}Nb.LinkEditor=function({autocompleteRef:e,className:t,onChangeInputValue:n,value:o,...r}){return Object(i.createElement)("form",Object(l.a)({className:s()("block-editor-url-popover__link-editor",t)},r),Object(i.createElement)(ab,{value:o,onChange:n,autocompleteRef:e}),Object(i.createElement)(p.Button,{icon:rb.a,label:Object(v.__)("Apply"),type:"submit"}))},Nb.LinkViewer=function({className:e,linkClassName:t,onEditLinkClick:n,url:o,urlLabel:r,...c}){return Object(i.createElement)("div",Object(l.a)({className:s()("block-editor-url-popover__link-viewer",e)},c),Object(i.createElement)(Tb,{url:o,urlLabel:r,className:t}),n&&Object(i.createElement)(p.Button,{icon:xb.a,label:Object(v.__)("Edit"),onClick:n}))};var Lb=Nb;const Pb=({src:e,onChange:t,onSubmit:n,onClose:o})=>Object(i.createElement)(Lb,{onClose:o},Object(i.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:n},Object(i.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(v.__)("URL"),placeholder:Object(v.__)("Paste or type URL"),onChange:t,value:e}),Object(i.createElement)(p.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:rb.a,label:Object(v.__)("Apply"),type:"submit"})));var Rb=Object(p.withFilters)("editor.MediaPlaceholder")((function({value:e={},allowedTypes:t,className:n,icon:o,labels:r={},mediaPreview:c,notices:l,isAppender:a,accept:d,addToGallery:b,multiple:m=!1,dropZoneUIOnly:g,disableDropZone:h,disableMediaButtons:O,onError:j,onSelect:k,onCancel:_,onSelectURL:y,onDoubleClick:E,onFilesPreUpload:C=u.noop,onHTMLDrop:S=u.noop,children:w}){const B=Object(f.useSelect)(e=>{const{getSettings:t}=e(An);return t().mediaUpload},[]),[I,x]=Object(i.useState)(""),[T,N]=Object(i.useState)(!1);Object(i.useEffect)(()=>{var t;x(null!==(t=null==e?void 0:e.src)&&void 0!==t?t:"")},[null==e?void 0:e.src]);const L=e=>{x(e.target.value)},P=()=>{N(!0)},R=()=>{N(!1)},A=e=>{e.preventDefault(),I&&y&&(y(I),R())},M=n=>{let o;if(C(n),m)if(b){let t=[];o=n=>{const o=(null!=e?e:[]).filter(e=>e.id?!t.some(({id:t})=>Number(t)===Number(e.id)):!t.some(({urlSlug:t})=>e.url.includes(t)));k(o.concat(n)),t=n.map(e=>{const t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}})}}else o=k;else o=([e])=>k(e);B({allowedTypes:t,filesList:n,onFileChange:o,onError:j})},D=e=>{M(e.target.files)},F=(e,u)=>{let{instructions:d,title:b}=r;if(B||y||(d=Object(v.__)("To edit this block, you need permission to upload media.")),void 0===d||void 0===b){const e=null!=t?t:[],[n]=e,o=1===e.length,r=o&&"audio"===n,c=o&&"image"===n,l=o&&"video"===n;void 0===d&&B&&(d=Object(v.__)("Upload a media file or pick one from your media library."),r?d=Object(v.__)("Upload an audio file, pick one from your media library, or add one with a URL."):c?d=Object(v.__)("Upload an image file, pick one from your media library, or add one with a URL."):l&&(d=Object(v.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===b&&(b=Object(v.__)("Media"),r?b=Object(v.__)("Audio"):c?b=Object(v.__)("Image"):l&&(b=Object(v.__)("Video")))}const m=s()("block-editor-media-placeholder",n,{"is-appender":a});return Object(i.createElement)(p.Placeholder,{icon:o,label:b,instructions:d,className:m,notices:l,onClick:u,onDoubleClick:E,preview:c},e,w)},V=()=>h?null:Object(i.createElement)(p.DropZone,{onFilesDrop:M,onHTMLDrop:S}),H=()=>_&&Object(i.createElement)(p.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(v.__)("Cancel"),variant:"link",onClick:_},Object(v.__)("Cancel")),z=()=>y&&Object(i.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(i.createElement)(p.Button,{className:"block-editor-media-placeholder__button",onClick:P,isPressed:T,variant:"tertiary"},Object(v.__)("Insert from URL")),T&&Object(i.createElement)(Pb,{src:I,onChange:L,onSubmit:A,onClose:R}));return g||O?(g&&wt()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{since:"5.4",alternative:"disableMediaButtons"}),Object(i.createElement)(Bb,null,V())):Object(i.createElement)(Bb,{fallback:F(z())},(()=>{const n=Object(i.createElement)(wb,{addToGallery:b,gallery:m&&!(!t||0===t.length)&&t.every(e=>"image"===e||e.startsWith("image/")),multiple:m,onSelect:k,allowedTypes:t,value:Array.isArray(e)?e.map(({id:e})=>e):e.id,render:({open:e})=>Object(i.createElement)(p.Button,{variant:"tertiary",onClick:t=>{t.stopPropagation(),e()}},Object(v.__)("Media Library"))});if(B&&a)return Object(i.createElement)(i.Fragment,null,V(),Object(i.createElement)(p.FormFileUpload,{onChange:D,accept:d,multiple:m,render:({openFileDialog:e})=>{const t=Object(i.createElement)(i.Fragment,null,Object(i.createElement)(p.Button,{variant:"primary",className:s()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(v.__)("Upload")),n,z(),H());return F(t,e)}}));if(B){const e=Object(i.createElement)(i.Fragment,null,V(),Object(i.createElement)(p.FormFileUpload,{variant:"primary",className:s()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:D,accept:d,multiple:m},Object(v.__)("Upload")),n,z(),H());return F(e)}return F(n)})())})),Ab=({colorSettings:e,...t})=>{const n=e.map(({value:e,onChange:t,...n})=>({...n,colorValue:e,onColorChange:t}));return Object(i.createElement)(fr,Object(l.a)({settings:n,gradients:[],disableCustomGradients:!0},t))};const Mb=Object(i.forwardRef)((e,t)=>Object(i.createElement)(id,Object(l.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0})));Mb.Content=({value:e="",tagName:t="div",...n})=>Object(i.createElement)(t,n,e);var Db=Mb,Fb=Object(i.forwardRef)(({__experimentalVersion:e,...t},n)=>{if(2===e)return Object(i.createElement)(Db,Object(l.a)({ref:n},t));const{className:o,onChange:r,...c}=t;return Object(i.createElement)(Ni.a,Object(l.a)({ref:n,className:s()("block-editor-plain-text",o),onChange:e=>r(e.target.value)},c))});function Vb({property:e,viewport:t,desc:n}){const o=Object(d.useInstanceId)(Vb),r=n||Object(v.sprintf)(
68
  /* translators: 1: property name. 2: viewport name. */
69
- Object(v._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),e,t.label);return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("span",{"aria-describedby":"rbc-desc-"+o},t.label),Object(i.createElement)(p.VisuallyHidden,{as:"span",id:"rbc-desc-"+o},r))}var Hb=function(e){const{title:t,property:n,toggleLabel:o,onIsResponsiveChange:r,renderDefaultControl:c,renderResponsiveControls:l,isResponsive:a=!1,defaultLabel:u={id:"all",
70
  /* translators: 'Label. Used to signify a layout property (eg: margin, padding) will apply uniformly to all screensizes.' */
71
- label:Object(v.__)("All")},viewports:d=[{id:"small",label:Object(v.__)("Small screens")},{id:"medium",label:Object(v.__)("Medium screens")},{id:"large",label:Object(v.__)("Large screens")}]}=e;if(!t||!n||!c)return null;const b=o||Object(v.sprintf)(
72
  /* translators: 'Toggle control label. Should the property be the same across all screen sizes or unique per screen size.'. %s property value for the control (eg: margin, padding...etc) */
73
- Object(v.__)("Use the same %s on all screensizes."),n),m=Object(v.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),f=c(Object(i.createElement)(Vb,{property:n,viewport:u}),u);
74
- /* translators: 'Help text for the responsive mode toggle control.' */return Object(i.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(i.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(i.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(i.createElement)(p.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:b,checked:!a,onChange:r,help:m}),Object(i.createElement)("div",{className:s()("block-editor-responsive-block-control__group",{"is-responsive":a})},!a&&f,a&&(l?l(d):d.map(e=>Object(i.createElement)(i.Fragment,{key:e.id},c(Object(i.createElement)(Vb,{property:n,viewport:e}),e)))))))};function zb({character:e,type:t,onUse:n}){return Object(d.useKeyboardShortcut)(Yr.rawShortcut[t](e),()=>(n(),!1),{bindGlobal:!0}),null}function Gb({name:e,shortcutType:t,shortcutCharacter:n,...o}){let r,c="RichText.ToolbarControls";return e&&(c+="."+e),t&&n&&(r=Yr.displayShortcut[t](n)),Object(i.createElement)(p.Fill,{name:c},Object(i.createElement)(p.ToolbarButton,Object(l.a)({},o,{shortcut:r})))}class Ub extends i.Component{constructor(){super(...arguments),this.onInput=this.onInput.bind(this)}onInput(e){e.inputType===this.props.inputType&&this.props.onInput()}componentDidMount(){document.addEventListener("input",this.onInput,!0)}componentWillUnmount(){document.removeEventListener("input",this.onInput,!0)}render(){return null}}const Wb=Object(i.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(i.createElement)(p.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"}));var Kb=Object(i.forwardRef)((function(e,t){const n=Object(f.useSelect)(e=>e(An).isNavigationMode(),[]),{setNavigationMode:o}=Object(f.useDispatch)(An),r=e=>{o("edit"!==e)};return Object(i.createElement)(p.Dropdown,{renderToggle:({isOpen:o,onToggle:r})=>Object(i.createElement)(p.Button,Object(l.a)({},e,{ref:t,icon:n?Wb:xb.a,"aria-expanded":o,"aria-haspopup":"true",onClick:r
75
- /* translators: button label text should, if possible, be under 16 characters. */,label:Object(v.__)("Tools")})),position:"bottom right",renderContent:()=>Object(i.createElement)(i.Fragment,null,Object(i.createElement)(p.NavigableMenu,{role:"menu","aria-label":Object(v.__)("Tools")},Object(i.createElement)(p.MenuItemsChoice,{value:n?"select":"edit",onSelect:r,choices:[{value:"edit",label:Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Xc.a,{icon:xb.a}),Object(v.__)("Edit"))},{value:"select",label:Object(i.createElement)(i.Fragment,null,Wb,Object(v.__)("Select"))}]})),Object(i.createElement)("div",{className:"block-editor-tool-selector__help"},Object(v.__)("Tools provide different interactions for selecting, navigating, and editing blocks. Toggle between select and edit by pressing Escape and Enter.")))})}));function $b({units:e,...t}){const n=Object(p.__experimentalUseCustomUnits)({availableUnits:Io("spacing.units")||["%","px","em","rem","vw"],units:e});return Object(i.createElement)(p.__experimentalUnitControl,Object(l.a)({units:n},t))}var qb=n(185),Yb=n(287);class Xb extends i.Component{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.submitLink=this.submitLink.bind(this),this.state={expanded:!1}}toggle(){this.setState({expanded:!this.state.expanded})}submitLink(e){e.preventDefault(),this.toggle()}render(){const{url:e,onChange:t}=this.props,{expanded:n}=this.state,o=e?Object(v.__)("Edit link"):Object(v.__)("Insert link");return Object(i.createElement)("div",{className:"block-editor-url-input__button"},Object(i.createElement)(p.Button,{icon:qb.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!e}),n&&Object(i.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(i.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(i.createElement)(p.Button,{className:"block-editor-url-input__back",icon:Yb.a,label:Object(v.__)("Close"),onClick:this.toggle}),Object(i.createElement)(ab,{value:e||"",onChange:t}),Object(i.createElement)(p.Button,{icon:rb.a,label:Object(v.__)("Submit"),type:"submit"}))))}}var Qb=Xb,Zb=n(110);const Jb=["noreferrer","noopener"],em=Object(i.createElement)(p.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)(p.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(i.createElement)(p.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(i.createElement)(p.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),tm=({linkDestination:e,onChangeUrl:t,url:n,mediaType:o="image",mediaUrl:r,mediaLink:c,linkTarget:l,linkClass:a,rel:s})=>{const[d,b]=Object(i.useState)(!1),m=Object(i.useCallback)(()=>{b(!0)}),[f,g]=Object(i.useState)(!1),[h,O]=Object(i.useState)(null),j=Object(i.useRef)(null),k=Object(i.useCallback)(()=>{"media"!==e&&"attachment"!==e||O(""),g(!0)}),_=Object(i.useCallback)(()=>{g(!1)}),y=Object(i.useCallback)(()=>{O(null),_(),b(!1)}),E=e=>{let t=e;return void 0===e||Object(u.isEmpty)(t)||Object(u.isEmpty)(t)||(Object(u.each)(Jb,e=>{const n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")}),t!==e&&(t=t.trim()),Object(u.isEmpty)(t)&&(t=void 0)),t},C=Object(i.useCallback)(()=>e=>{const t=j.current;t&&t.contains(e.target)||(b(!1),O(null),_())}),S=Object(i.useCallback)(()=>e=>{if(h){var n;const e=(null===(n=B().find(e=>e.url===h))||void 0===n?void 0:n.linkDestination)||"custom";t({href:h,linkDestination:e})}_(),O(null),e.preventDefault()}),w=Object(i.useCallback)(()=>{t({linkDestination:"none",href:""})}),B=()=>{const e=[{linkDestination:"media",title:Object(v.__)("Media File"),url:"image"===o?r:void 0,icon:em}];return"image"===o&&c&&e.push({linkDestination:"attachment",title:Object(v.__)("Attachment Page"),url:"image"===o?c:void 0,icon:Object(i.createElement)(p.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(i.createElement)(p.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(i.createElement)(p.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}),e},I=Object(i.createElement)(i.Fragment,null,Object(i.createElement)(p.ToggleControl,{label:Object(v.__)("Open in new tab"),onChange:e=>{const n=(e=>{const t=e?"_blank":void 0;let n;return n=t||s?E(s):void 0,{linkTarget:t,rel:n}})(e);t(n)},checked:"_blank"===l}),Object(i.createElement)(p.TextControl,{label:Object(v.__)("Link Rel"),value:E(s)||"",onChange:e=>{t({rel:e})}}),Object(i.createElement)(p.TextControl,{label:Object(v.__)("Link CSS Class"),value:a||"",onChange:e=>{t({linkClass:e})}})),x=null!==h?h:n,T=(Object(u.find)(B(),["linkDestination",e])||{}).title;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(p.ToolbarButton,{icon:qb.a,className:"components-toolbar__control",label:n?Object(v.__)("Edit link"):Object(v.__)("Insert link"),"aria-expanded":d,onClick:m}),d&&Object(i.createElement)(Lb,{onFocusOutside:C(),onClose:y,renderSettings:()=>I,additionalControls:!x&&Object(i.createElement)(p.NavigableMenu,null,Object(u.map)(B(),e=>Object(i.createElement)(p.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:()=>{O(null),(e=>{const n=B();let o;o=e?(Object(u.find)(n,t=>t.url===e)||{linkDestination:"custom"}).linkDestination:"none",t({linkDestination:o,href:e})})(e.url),_()}},e.title)))},(!n||f)&&Object(i.createElement)(Lb.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:x,onChangeInputValue:O,onSubmit:S(),autocompleteRef:j}),n&&!f&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Lb.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:n,onEditLinkClick:k,urlLabel:T}),Object(i.createElement)(p.Button,{icon:Zb.a,label:Object(v.__)("Remove link"),onClick:w}))))};var nm=n(92);function om({children:e,className:t,isEnabled:n=!0,deviceType:o,setDeviceType:r}){if(Object(d.useViewportMatch)("small","<"))return null;const c={className:s()(t,"block-editor-post-preview__dropdown-content"),position:"bottom left"},l={variant:"tertiary",className:"block-editor-post-preview__button-toggle",disabled:!n,
76
  /* translators: button label text should, if possible, be under 16 characters. */
77
- children:Object(v.__)("Preview")};return Object(i.createElement)(p.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:c,toggleProps:l,icon:null},()=>Object(i.createElement)(i.Fragment,null,Object(i.createElement)(p.MenuGroup,null,Object(i.createElement)(p.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>r("Desktop"),icon:"Desktop"===o&&nm.a},Object(v.__)("Desktop")),Object(i.createElement)(p.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>r("Tablet"),icon:"Tablet"===o&&nm.a},Object(v.__)("Tablet")),Object(i.createElement)(p.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>r("Mobile"),icon:"Mobile"===o&&nm.a},Object(v.__)("Mobile"))),e))}var rm=n(256);const cm=/\((min|max)-width:[^\(]*?\)/g;function lm(e){return!!e.media&&!!e.media.mediaText.match(cm)}function im(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function am(e,t){return e.replace(cm,e=>Object(rm.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)")}function sm(e,t){Object(i.useEffect)(()=>{if(!t)return;const n="undefined"==typeof window?[]:Object(u.filter)(null!==(o=null===(r=window)||void 0===r||null===(c=r.document)||void 0===c?void 0:c.styleSheets)&&void 0!==o?o:[],e=>!!e.href&&Object(La.getProtocol)(e.href)===window.location.protocol&&Object(La.getAuthority)(e.href)===window.location.host);var o,r,c;const l=[];return n.forEach((n,o)=>{let r=!1;for(let c=0;c<n.cssRules.length;++c){const i=n.cssRules[c];if(i.type!==window.CSSRule.STYLE_RULE&&i.type!==window.CSSRule.MEDIA_RULE)continue;if(!r&&i.cssText.match(new RegExp("#start-"+e))&&(r=!0),r&&i.cssText.match(new RegExp("#end-"+e))&&(r=!1),!r||!lm(i))continue;const a=i.cssText;l[o]||(l[o]=[]),l[o][c]=a,im(n,am(a,t),c)}}),()=>{l.forEach((e,t)=>{if(e)for(let o=0;o<e.length;++o){const r=e[o];r&&im(n[t],r,o)}})}},[t])}function um(e,t){const[n,o]=Object(i.useState)(window.innerWidth);Object(i.useEffect)(()=>{if("Desktop"===e)return;const t=()=>o(window.innerWidth);return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[e]);const r=e=>{let t;switch(e){case"Tablet":t=780;break;case"Mobile":t=360;break;default:return null}return t<n?t:n};return sm("resizable-editor-section",t?null:r(e)),(e=>{const t="Mobile"===e?"768px":"1024px";switch(e){case"Tablet":case"Mobile":return{width:r(e),margin:(window.innerHeight<800?36:72)+"px auto",height:t,borderRadius:"2px 2px 2px 2px",border:"1px solid #ddd",overflowY:"auto"};default:return null}})(e)}var dm=Object(f.withSelect)(e=>({selectedBlockClientId:e(An).getBlockSelectionStart()}))(({selectedBlockClientId:e})=>{const t=kr(e);return e?Object(i.createElement)(p.Button,{variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{t.current.focus()}},Object(v.__)("Skip to the selected block")):null}),bm=n(114),mm=Object(f.withSelect)(e=>{const{getMultiSelectedBlocks:t}=e(An);return{blocks:t()}})((function({blocks:e}){const t=Object(bm.count)(Object(m.serialize)(e),"words");return Object(i.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},Object(i.createElement)(Ll,{icon:Es,showColors:!0}),Object(i.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},Object(i.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},Object(v.sprintf)(
78
  /* translators: %d: number of blocks */
79
- Object(v._n)("%d block","%d blocks",e.length),e.length)),Object(i.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},Object(v.sprintf)(
80
  /* translators: %d: number of words */
81
- Object(v._n)("%d word","%d words",t),t))))}));function pm({blockName:e}){const{preferredStyle:t,onUpdatePreferredStyleVariations:n,styles:o}=Object(f.useSelect)(t=>{var n,o;const r=t(An).getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:null==r||null===(n=r.value)||void 0===n?void 0:n[e],onUpdatePreferredStyleVariations:null!==(o=null==r?void 0:r.onChange)&&void 0!==o?o:null,styles:t(m.store).getBlockStyles(e)}},[e]),r=Object(i.useMemo)(()=>[{label:Object(v.__)("Not set"),value:""},...o.map(({label:e,name:t})=>({label:e,value:t}))],[o]),c=Object(i.useCallback)(t=>{n(e,t)},[e,n]);return n&&Object(i.createElement)(p.SelectControl,{options:r,value:t||"",label:Object(v.__)("Default Style"),onChange:c})}const fm=({clientId:e,blockName:t,hasBlockStyles:n,bubblesVirtually:o})=>{const r=Hl(e);return Object(i.createElement)("div",{className:"block-editor-block-inspector"},Object(i.createElement)(ra,r),Object(i.createElement)(jd,{blockClientId:e}),n&&Object(i.createElement)("div",null,Object(i.createElement)(p.PanelBody,{title:Object(v.__)("Styles")},Object(i.createElement)(Is,{clientId:e}),Object(m.hasBlockSupport)(t,"defaultStylePicker",!0)&&Object(i.createElement)(pm,{blockName:t}))),Object(i.createElement)(_o.Slot,{bubblesVirtually:o}),Object(i.createElement)("div",null,Object(i.createElement)(gm,{slotName:Oo.slotName,bubblesVirtually:o})),Object(i.createElement)(dm,{key:"back"}))},gm=({slotName:e,bubblesVirtually:t})=>{const n=Object(p.__experimentalUseSlot)(e);return Boolean(n.fills&&n.fills.length)?Object(i.createElement)(p.PanelBody,{className:"block-editor-block-inspector__advanced",title:Object(v.__)("Advanced"),initialOpen:!1},Object(i.createElement)(Oo.Slot,{bubblesVirtually:t})):null};var hm=({showNoBlockSelectedMessage:e=!0,bubblesVirtually:t=!0})=>{const{count:n,hasBlockStyles:o,selectedBlockName:r,selectedBlockClientId:c,blockType:l}=Object(f.useSelect)(e=>{const{getSelectedBlockClientId:t,getSelectedBlockCount:n,getBlockName:o}=e(An),{getBlockStyles:r}=e(m.store),c=t(),l=c&&o(c),i=l&&Object(m.getBlockType)(l),a=l&&r(l);return{count:n(),selectedBlockClientId:c,selectedBlockName:l,blockType:i,hasBlockStyles:a&&a.length>0}},[]);if(n>1)return Object(i.createElement)("div",{className:"block-editor-block-inspector"},Object(i.createElement)(mm,null),Object(i.createElement)(_o.Slot,{bubblesVirtually:t}));const a=r===Object(m.getUnregisteredTypeHandlerName)();return l&&c&&!a?Object(i.createElement)(fm,{clientId:c,blockName:l.name,hasBlockStyles:o,bubblesVirtually:t}):e?Object(i.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(v.__)("No block selected.")):null};function Om({children:e,__unstableContentRef:t}){const n=Object(d.useViewportMatch)("medium"),o=Object(f.useSelect)(e=>e(An).getSettings().hasFixedToolbar,[]);return Object(i.createElement)(ss,{__unstableContentRef:t},(o||!n)&&Object(i.createElement)(cu,{isFixed:!0}),Object(i.createElement)(su,{__unstableContentRef:t}),Object(i.createElement)(p.Popover.Slot,{name:"block-toolbar",ref:ls(t)}),e)}var vm=n(257),jm=n.n(vm);const km=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function _m(e){return e?e.replace(/^\s+|\s+$/g,""):""}var ym=n(163),Em=n.n(ym),Cm=Sm;function Sm(e){this.options=e||{}}Sm.prototype.emit=function(e){return e},Sm.prototype.visit=function(e){return this[e.type](e)},Sm.prototype.mapVisit=function(e,t){let n="";t=t||"";for(let o=0,r=e.length;o<r;o++)n+=this.visit(e[o]),t&&o<r-1&&(n+=this.emit(t));return n};var wm=Bm;function Bm(e){Cm.call(this,e)}Em()(Bm,Cm),Bm.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},Bm.prototype.comment=function(e){return this.emit("",e.position)},Bm.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},Bm.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Bm.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Bm.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},Bm.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},Bm.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Bm.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},Bm.prototype.keyframe=function(e){const t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},Bm.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},Bm.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},Bm.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Bm.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},Bm.prototype.rule=function(e){const t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},Bm.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var Im=xm;function xm(e){e=e||{},Cm.call(this,e),this.indentation=e.indent}Em()(xm,Cm),xm.prototype.compile=function(e){return this.stylesheet(e)},xm.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},xm.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},xm.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},xm.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},xm.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},xm.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},xm.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},xm.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},xm.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.keyframes,"\n")+this.emit(this.indent(-1)+"}")},xm.prototype.keyframe=function(e){const t=e.declarations;return this.emit(this.indent())+this.emit(e.values.join(", "),e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},xm.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", ")+" ":"";return this.emit("@page "+t,e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},xm.prototype["font-face"]=function(e){return this.emit("@font-face ",e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},xm.prototype.host=function(e){return this.emit("@host",e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},xm.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},xm.prototype.rule=function(e){const t=this.indent(),n=e.declarations;return n.length?this.emit(e.selectors.map((function(e){return t+e})).join(",\n"),e.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},xm.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},xm.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var Tm=function(e,t){try{const r=function(e,t){t=t||{};let n=1,o=1;function r(e){const t=e.match(/\n/g);t&&(n+=t.length);const r=e.lastIndexOf("\n");o=~r?e.length-r:o+e.length}function c(){const e={line:n,column:o};return function(t){return t.position=new l(e),m(),t}}function l(e){this.start=e,this.end={line:n,column:o},this.source=t.source}l.prototype.content=e;const i=[];function a(r){const c=new Error(t.source+":"+n+":"+o+": "+r);if(c.reason=r,c.filename=t.source,c.line=n,c.column=o,c.source=e,!t.silent)throw c;i.push(c)}function s(){return b(/^{\s*/)}function u(){return b(/^}/)}function d(){let t;const n=[];for(m(),p(n);e.length&&"}"!==e.charAt(0)&&(t=E()||C());)!1!==t&&(n.push(t),p(n));return n}function b(t){const n=t.exec(e);if(!n)return;const o=n[0];return r(o),e=e.slice(o.length),n}function m(){b(/^\s*/)}function p(e){let t;for(e=e||[];t=f();)!1!==t&&e.push(t);return e}function f(){const t=c();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return a("End of comment missing");const l=e.slice(2,n-2);return o+=2,r(l),e=e.slice(n),o+=2,t({type:"comment",comment:l})}function g(){const e=b(/^([^{]+)/);if(e)return _m(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function h(){const e=c();let t=b(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;if(t=_m(t[0]),!b(/^:\s*/))return a("property missing ':'");const n=b(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),o=e({type:"declaration",property:t.replace(km,""),value:n?_m(n[0]).replace(km,""):""});return b(/^[;\s]*/),o}function O(){const e=[];if(!s())return a("missing '{'");let t;for(p(e);t=h();)!1!==t&&(e.push(t),p(e));return u()?e:a("missing '}'")}function v(){let e;const t=[],n=c();for(;e=b(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),b(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:O()})}const j=y("import"),k=y("charset"),_=y("namespace");function y(e){const t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){const n=c(),o=b(t);if(!o)return;const r={type:e};return r[e]=o[1].trim(),n(r)}}function E(){if("@"===e[0])return function(){const e=c();let t=b(/^@([-\w]+)?keyframes\s*/);if(!t)return;const n=t[1];if(t=b(/^([-\w]+)\s*/),!t)return a("@keyframes missing name");const o=t[1];if(!s())return a("@keyframes missing '{'");let r,l=p();for(;r=v();)l.push(r),l=l.concat(p());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:l}):a("@keyframes missing '}'")}()||function(){const e=c(),t=b(/^@media *([^{]+)/);if(!t)return;const n=_m(t[1]);if(!s())return a("@media missing '{'");const o=p().concat(d());return u()?e({type:"media",media:n,rules:o}):a("@media missing '}'")}()||function(){const e=c(),t=b(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:_m(t[1]),media:_m(t[2])})}()||function(){const e=c(),t=b(/^@supports *([^{]+)/);if(!t)return;const n=_m(t[1]);if(!s())return a("@supports missing '{'");const o=p().concat(d());return u()?e({type:"supports",supports:n,rules:o}):a("@supports missing '}'")}()||j()||k()||_()||function(){const e=c(),t=b(/^@([-\w]+)?document *([^{]+)/);if(!t)return;const n=_m(t[1]),o=_m(t[2]);if(!s())return a("@document missing '{'");const r=p().concat(d());return u()?e({type:"document",document:o,vendor:n,rules:r}):a("@document missing '}'")}()||function(){const e=c();if(!b(/^@page */))return;const t=g()||[];if(!s())return a("@page missing '{'");let n,o=p();for(;n=h();)o.push(n),o=o.concat(p());return u()?e({type:"page",selectors:t,declarations:o}):a("@page missing '}'")}()||function(){const e=c();if(!b(/^@host\s*/))return;if(!s())return a("@host missing '{'");const t=p().concat(d());return u()?e({type:"host",rules:t}):a("@host missing '}'")}()||function(){const e=c();if(!b(/^@font-face\s*/))return;if(!s())return a("@font-face missing '{'");let t,n=p();for(;t=h();)n.push(t),n=n.concat(p());return u()?e({type:"font-face",declarations:n}):a("@font-face missing '}'")}()}function C(){const e=c(),t=g();return t?(p(),e({type:"rule",selectors:t,declarations:O()})):a("selector missing")}return function e(t,n){const o=t&&"string"==typeof t.type,r=o?t:n;for(const n in t){const o=t[n];Array.isArray(o)?o.forEach((function(t){e(t,r)})):o&&"object"==typeof o&&e(o,r)}return o&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null}),t}(function(){const e=d();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:i}}}())}(e);return n=jm.a.map(r,(function(e){if(!e)return e;const n=t(e);return this.update(n)})),((o=o||{}).compress?new wm(o):new Im(o)).compile(n)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}var n,o};function Nm(e){return 0!==e.value.indexOf("data:")&&0!==e.value.indexOf("#")&&(t=e.value,!/^\/(?!\/)/.test(t)&&!function(e){return/^(?:https?:)?\/\//.test(e)}(e.value));var t}function Lm(e,t){return new URL(e,t).toString()}const Pm=/^(body|html|:root).*$/;var Rm=(e,t="")=>Object(u.map)(e,({css:e,baseURL:n,__experimentalNoWrapper:o=!1})=>{const r=[];return t&&!o&&r.push(((e,t=[])=>n=>"rule"===n.type?{...n,selectors:n.selectors.map(n=>t.includes(n.trim())?n:n.match(Pm)?n.replace(/^(body|html|:root)/,e):e+" "+n)}:n)(t)),n&&r.push((c=n,e=>{if("declaration"===e.type){const r=function(e){const t=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g;let n;const o=[];for(;null!==(n=t.exec(e));){const e={source:n[0],before:n[1],quote:n[2],value:n[3],after:n[4]};Nm(e)&&o.push(e)}return o}(e.value).map((o=c,e=>({...e,newUrl:"url("+e.before+e.quote+Lm(e.value,o)+e.quote+e.after+")"})));return{...e,value:(t=e.value,n=r,n.forEach(e=>{t=t.replace(e.source,e.newUrl)}),t)}}var t,n,o;return e})),r.length?Tm(e,Object(d.compose)(r)):e;var c});function Am(e){return Object(i.useCallback)(e=>{if(!e)return;const{ownerDocument:t}=e,{defaultView:n,body:o}=t,r=t.querySelector(".editor-styles-wrapper"),c=n.getComputedStyle(r,null).getPropertyValue("background-color");To()(c).getLuminance()>.5||0===To()(c).getAlpha()?o.classList.remove("is-dark-theme"):o.classList.add("is-dark-theme")},[e])}function Mm({styles:e}){const t=Object(i.useMemo)(()=>Rm(e,".editor-styles-wrapper"),[e]);return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("style",{ref:Am(e)}),t.map((e,t)=>Object(i.createElement)("style",{key:t},e)))}var Dm=function({rootClientId:e,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r=!1,__experimentalInsertionIndex:c,onSelect:l=u.noop,shouldFocusBlock:a=!1}){const s=Object(f.useSelect)(n=>{const{getBlockRootClientId:o}=n(An);return e||o(t)||void 0},[t,e]);return Object(i.createElement)(Ka,{onSelect:l,rootClientId:s,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r,__experimentalInsertionIndex:c,shouldFocusBlock:a})};function Fm(){const{clientIds:e,rootClientId:t}=Object(f.useSelect)(e=>{const{getSelectedBlockClientIds:t,getBlockRootClientId:n}=e(An),o=t(),[r]=o;return{clientIds:o,rootClientId:n(r)}},[]),{duplicateBlocks:n,removeBlocks:o,insertAfterBlock:r,insertBeforeBlock:c,clearSelectedBlock:l,moveBlocksUp:a,moveBlocksDown:s}=Object(f.useDispatch)(An);return Object(ms.useShortcut)("core/block-editor/move-up",Object(i.useCallback)(n=>{n.preventDefault(),a(e,t)},[e,a]),{bindGlobal:!0,isDisabled:0===e.length}),Object(ms.useShortcut)("core/block-editor/move-down",Object(i.useCallback)(n=>{n.preventDefault(),s(e,t)},[e,s]),{bindGlobal:!0,isDisabled:0===e.length}),Object(ms.useShortcut)("core/block-editor/duplicate",Object(i.useCallback)(t=>{t.preventDefault(),n(e)},[e,n]),{bindGlobal:!0,isDisabled:0===e.length}),Object(ms.useShortcut)("core/block-editor/remove",Object(i.useCallback)(t=>{t.preventDefault(),o(e)},[e,o]),{bindGlobal:!0,isDisabled:0===e.length}),Object(ms.useShortcut)("core/block-editor/insert-after",Object(i.useCallback)(t=>{t.preventDefault(),r(Object(u.last)(e))},[e,r]),{bindGlobal:!0,isDisabled:0===e.length}),Object(ms.useShortcut)("core/block-editor/insert-before",Object(i.useCallback)(t=>{t.preventDefault(),c(Object(u.first)(e))},[e,c]),{bindGlobal:!0,isDisabled:0===e.length}),Object(ms.useShortcut)("core/block-editor/delete-multi-selection",Object(i.useCallback)(t=>{t.preventDefault(),o(e)},[e,o]),{isDisabled:e.length<2}),Object(ms.useShortcut)("core/block-editor/unselect",Object(i.useCallback)(e=>{e.preventDefault(),l(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges()},[e,l]),{isDisabled:e.length<2}),null}Fm.Register=function(){const{registerShortcut:e}=Object(f.useDispatch)(ms.store);return Object(i.useEffect)(()=>{e({name:"core/block-editor/duplicate",category:"block",description:Object(v.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(v.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(v.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Object(v.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:Object(v.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(v.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:Object(v.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(v.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Object(v.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Object(v.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})},[e]),null};var Vm=Fm;function Hm(){return wt()("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in."}),null}const zm=new Set([Yr.UP,Yr.RIGHT,Yr.DOWN,Yr.LEFT,Yr.ENTER,Yr.BACKSPACE]);function Gm(){const e=Object(f.useSelect)(e=>e(An).isTyping()),{stopTyping:t}=Object(f.useDispatch)(An);return Object(d.useRefEffect)(n=>{if(!e)return;const{ownerDocument:o}=n;let r,c;function l(e){const{clientX:n,clientY:o}=e;r&&c&&(r!==n||c!==o)&&t(),r=n,c=o}return o.addEventListener("mousemove",l),()=>{o.removeEventListener("mousemove",l)}},[e,t])}function Um(){const e=Object(f.useSelect)(e=>e(An).isTyping()),{startTyping:t,stopTyping:n}=Object(f.useDispatch)(An),o=Gm(),r=Object(d.useRefEffect)(o=>{const{ownerDocument:r}=o,{defaultView:c}=r;if(e){let e;function l(t){const{target:o}=t;e=c.setTimeout(()=>{Object(oi.isTextField)(o)||n()})}function i(e){const{keyCode:t}=e;t!==Yr.ESCAPE&&t!==Yr.TAB||n()}function a(){const e=c.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||n()}return o.addEventListener("focus",l),o.addEventListener("keydown",i),r.addEventListener("selectionchange",a),()=>{c.clearTimeout(e),o.removeEventListener("focus",l),o.removeEventListener("keydown",i),r.removeEventListener("selectionchange",a)}}function s(e){const{type:n,target:r}=e;Object(oi.isTextField)(r)&&o.contains(r)&&("keydown"!==n||function(e){const{keyCode:t,shiftKey:n}=e;return!n&&zm.has(t)}(e))&&t()}return o.addEventListener("keypress",s),o.addEventListener("keydown",s),()=>{o.removeEventListener("keypress",s),o.removeEventListener("keydown",s)}},[e,t,n]);return Object(d.useMergeRefs)([o,r])}var Wm=function({children:e}){return Object(i.createElement)("div",{ref:Um()},e)};function Km(){return wt()("PreserveScrollInReorder component",{since:"5.4",hint:"This behavior is now built-in the block list"}),null}const $m=-1!==window.navigator.userAgent.indexOf("Trident"),qm=new Set([Yr.UP,Yr.DOWN,Yr.LEFT,Yr.RIGHT]);function Ym(){const e=Object(f.useSelect)(e=>e(An).hasSelectedBlock());return Object(d.useRefEffect)(t=>{if(!e)return;const{ownerDocument:n}=t,{defaultView:o}=n;let r,c,l;function i(){r||(r=o.requestAnimationFrame(()=>{b(),r=null}))}function a(e){c&&o.cancelAnimationFrame(c),c=o.requestAnimationFrame(()=>{s(e),c=null})}function s({keyCode:e}){if(!m())return;const r=Object(oi.computeCaretRect)(o);if(!r)return;if(!l)return void(l=r);if(qm.has(e))return void(l=r);const c=r.top-l.top;if(0===c)return;const i=Object(oi.getScrollContainer)(t);if(!i)return;const a=i===n.body,s=a?o.scrollY:i.scrollTop,u=a?0:i.getBoundingClientRect().top,d=a?l.top/o.innerHeight:(l.top-u)/(o.innerHeight-u);if(0===s&&d<.75&&function(){const e=t.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===n.activeElement}())return void(l=r);const b=a?o.innerHeight:i.clientHeight;l.top+l.height>u+b||l.top<u?l=r:a?o.scrollBy(0,c):i.scrollTop+=c}function u(){n.addEventListener("selectionchange",d)}function d(){n.removeEventListener("selectionchange",d),b()}function b(){m()&&(l=Object(oi.computeCaretRect)(o))}function m(){return t.contains(n.activeElement)&&n.activeElement.isContentEditable}return o.addEventListener("scroll",i,!0),o.addEventListener("resize",i,!0),t.addEventListener("keydown",a),t.addEventListener("keyup",s),t.addEventListener("mousedown",u),t.addEventListener("touchstart",u),()=>{o.removeEventListener("scroll",i,!0),o.removeEventListener("resize",i,!0),t.removeEventListener("keydown",a),t.removeEventListener("keyup",s),t.removeEventListener("mousedown",u),t.removeEventListener("touchstart",u),n.removeEventListener("selectionchange",d),o.cancelAnimationFrame(r),o.cancelAnimationFrame(c)}},[e])}var Xm=$m?e=>e.children:function({children:e}){return Object(i.createElement)("div",{ref:Ym(),className:"block-editor__typewriter"},e)};function Qm(e,t){const n="start"===t?"firstChild":"lastChild",o="start"===t?"nextSibling":"previousSibling";for(;e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/^[ \t\n]*$/.test(e.data)&&e[o];)e=e[o];return e}function Zm(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:o,getSelectedBlockClientId:r}=e(An);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:o(),selectedBlockClientId:r()}}function Jm(){const e=Object(i.useRef)(),{isMultiSelecting:t,multiSelectedBlockClientIds:n,hasMultiSelection:o,selectedBlockClientId:r}=Object(f.useSelect)(Zm,[]),c=kr(r),l=kr(Object(u.first)(n)),a=kr(Object(u.last)(n));return Object(i.useEffect)(()=>{const{ownerDocument:i}=e.current,{defaultView:s}=i;if(!o||t){if(!r||t)return;const e=s.getSelection();if(e.rangeCount&&!e.isCollapsed){const t=c.current,{startContainer:n,endContainer:o}=e.getRangeAt(0);!t||t.contains(n)&&t.contains(o)||e.removeAllRanges()}return}const{length:u}=n;if(u<2)return;e.current.focus();const d=s.getSelection(),b=i.createRange(),m=Qm(l.current,"start"),p=Qm(a.current,"end");var f;f=e.current,Array.from(f.querySelectorAll(".rich-text")).forEach(e=>{e.removeAttribute("contenteditable")}),b.setStartBefore(m),b.setEndAfter(p),d.removeAllRanges(),d.addRange(b)},[o,t,n,r]),e}const ep={position:"fixed"};function tp(e){const{tagName:t}=e;return"INPUT"===t||"BUTTON"===t||"SELECT"===t||"TEXTAREA"===t}function np(e,t,n,o){let r,c=oi.focus.focusable.find(n);return t&&(c=Object(u.reverse)(c)),c=c.slice(c.indexOf(e)+1),o&&(r=e.getBoundingClientRect()),Object(u.find)(c,(function(e){if(!oi.focus.tabbable.isTabbableIndex(e))return!1;if(e.isContentEditable&&"true"!==e.contentEditable)return!1;if(o){const t=e.getBoundingClientRect();if(t.left>=r.right||t.right<=r.left)return!1}return!0}))}function op(){const{getSelectedBlockClientId:e,getMultiSelectedBlocksStartClientId:t,getMultiSelectedBlocksEndClientId:n,getPreviousBlockClientId:o,getNextBlockClientId:r,getFirstMultiSelectedBlockClientId:c,getLastMultiSelectedBlockClientId:l,getSettings:i,hasMultiSelection:a}=Object(f.useSelect)(An),{multiSelect:s,selectBlock:u}=Object(f.useDispatch)(An);return Object(d.useRefEffect)(d=>{let b;function m(){b=null}function p(c){const l=e(),i=t(),a=n(),d=o(a||l),b=r(a||l),m=c?d:b;m&&(i===m?u(m):s(i||l,m))}function f(e){const t=c(),n=l(),o=e?t:n;o&&u(o)}function g(t){const{keyCode:c,target:l}=t,s=c===Yr.UP,u=c===Yr.DOWN,m=c===Yr.LEFT,g=c===Yr.RIGHT,h=s||m,O=m||g,v=s||u,j=O||v,k=t.shiftKey,_=k||t.ctrlKey||t.altKey||t.metaKey,y=v?oi.isVerticalEdge:oi.isHorizontalEdge,{ownerDocument:E}=d,{defaultView:C}=E;if(a())return void(j&&((k?p:f)(h),t.preventDefault()));if(v?b||(b=Object(oi.computeCaretRect)(C)):b=null,t.defaultPrevented)return;if(!j)return;if(!function(e,t,n){if((t===Yr.UP||t===Yr.DOWN)&&!n)return!0;const{tagName:o}=e;return"INPUT"!==o&&"TEXTAREA"!==o}(l,c,_))return;const S=Object(oi.isRTL)(l)?!h:h,{keepCaretInsideBlock:w}=i(),B=e();if(k){const e=n(),c=o(e||B),i=r(e||B);(h&&c||!h&&i)&&function(e,t){const n=np(e,t,d);return!(n&&(o=e,r=n,o.closest(Pi)===r.closest(Pi)));var o,r}(l,h)&&y(l,h)&&(p(h),t.preventDefault())}else if(v&&Object(oi.isVerticalEdge)(l,h)&&!w){const e=np(l,h,d,!0);e&&(Object(oi.placeCaretAtVerticalEdge)(e,h,b),t.preventDefault())}else if(O&&C.getSelection().isCollapsed&&Object(oi.isHorizontalEdge)(l,S)&&!w){const e=np(l,S,d);Object(oi.placeCaretAtHorizontalEdge)(e,h),t.preventDefault()}}return d.addEventListener("mousedown",m),d.addEventListener("keydown",g),()=>{d.removeEventListener("mousedown",m),d.removeEventListener("keydown",g)}},[])}function rp(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=Object(f.useSelect)(An),{multiSelect:o}=Object(f.useDispatch)(An),r=Object(ms.__unstableUseShortcutEventMatch)();return Object(d.useRefEffect)(c=>{function l(c){const l=t();if(!l.length)return;if(!r("core/block-editor/select-all",c))return;if(1===l.length&&!Object(oi.isEntirelySelected)(c.target))return;const[i]=l,a=n(i);let s=e(a);l.length===s.length&&(s=e(n(a)));const d=Object(u.first)(s),b=Object(u.last)(s);d!==b&&(o(d,b),c.preventDefault())}return c.addEventListener("keydown",l),()=>{c.removeEventListener("keydown",l)}})}function cp({children:e}){const[t,n,o]=function(){const e=Object(i.useRef)(),t=Object(i.useRef)(),n=Object(i.useRef)(),o=Object(i.useRef)(),{hasMultiSelection:r,getSelectedBlockClientId:c}=Object(f.useSelect)(An),{setNavigationMode:l}=Object(f.useDispatch)(An),a=Object(f.useSelect)(e=>e(An).isNavigationMode(),[])?void 0:"0",s=Object(i.useRef)();function u(t){if(s.current)s.current=null;else if(r())e.current.focus();else if(c())o.current.focus();else{l(!0);const n=t.target.compareDocumentPosition(e.current)&t.target.DOCUMENT_POSITION_FOLLOWING?"findNext":"findPrevious";oi.focus.tabbable[n](t.target).focus()}}const b=Object(i.createElement)("div",{ref:t,tabIndex:a,onFocus:u,style:ep}),m=Object(i.createElement)("div",{ref:n,tabIndex:a,onFocus:u,style:ep}),p=Object(d.useRefEffect)(e=>{function i(e){if(e.keyCode===Yr.ESCAPE&&!r())return e.stopPropagation(),void l(!0);if(e.keyCode!==Yr.TAB)return;const o=e.shiftKey,i=o?"findPrevious":"findNext";if(!r()&&!c())return;if(tp(e.target)&&tp(oi.focus.tabbable[i](e.target)))return;const a=o?t:n;s.current=!0,a.current.focus()}function a(e){o.current=e.target}return e.addEventListener("keydown",i),e.addEventListener("focusout",a),()=>{e.removeEventListener("keydown",i),e.removeEventListener("focusout",a)}},[]);return[b,Object(d.useMergeRefs)([e,p]),m]}(),r=Object(f.useSelect)(e=>e(An).hasMultiSelection(),[]);return Object(i.createElement)(i.Fragment,null,t,Object(i.createElement)("div",{ref:Object(d.useMergeRefs)([n,Jm(),rp(),op()]),className:"block-editor-writing-flow",tabIndex:r?"0":void 0,"aria-label":r?Object(v.__)("Multiple selected blocks"):void 0},e),o)}const lp=Object(u.overEvery)([oi.isTextField,oi.focus.tabbable.isTabbableIndex]);function ip(){return Object(d.useRefEffect)(e=>{function t(t){if(t.target!==e)return;const n=oi.focus.focusable.find(e),o=Object(u.findLast)(n,lp);if(!o)return;const{bottom:r}=o.getBoundingClientRect();t.clientY<r||(Object(oi.placeCaretAtHorizontalEdge)(o,!0),t.preventDefault())}return e.addEventListener("mousedown",t),()=>{e.addEventListener("mousedown",t)}},[])}function ap(e){e.dir=document.dir,e.body.className="editor-styles-wrapper";for(const t of document.body.classList)t.startsWith("admin-color-")?e.body.classList.add(t):"wp-embed-responsive"===t&&e.body.classList.add("wp-embed-responsive")}function sp(e){return Object(i.useMemo)(()=>{const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,Array.from(t.body.children)},[e])}var up=Object(i.forwardRef)((function({contentRef:e,children:t,head:n,...o},r){const[c,a]=Object(i.useState)(),s=sp(window.__editorAssets.styles),u=sp(window.__editorAssets.scripts),b=du(),m=Object(i.useCallback)(t=>{function n(){const{contentDocument:n}=t,{readyState:o,body:r,documentElement:c}=n;return("interactive"===o||"complete"===o)&&("function"==typeof e?e(r):e&&(e.current=r),ap(n),function(e){const{defaultView:t}=e,{frameElement:n}=t;function o(e){const o=Object.getPrototypeOf(e).constructor.name,r=window[o],c={};for(const t in e)c[t]=e[t];if(e instanceof t.MouseEvent){const e=n.getBoundingClientRect();c.clientX+=e.left,c.clientY+=e.top}const l=new r(e.type,c);!n.dispatchEvent(l)&&e.preventDefault()}const r=["keydown","keypress","dragover"];for(const t of r)e.addEventListener(t,o)}(n),ap(n),a(n),b(c),b(r),u.reduce((e,t)=>e.then(()=>async function(e,{id:t,src:n}){return new Promise((o,r)=>{const c=e.createElement("script");c.id=t,n?(c.src=n,c.onload=()=>o(),c.onerror=()=>r()):o(),e.head.appendChild(c)})}(n,t)),Promise.resolve()),!0)}t&&(n()||t.addEventListener("load",()=>{n()}))},[]);return Object(i.useEffect)(()=>{var e;c&&(e=c,Array.from(document.styleSheets).forEach(t=>{try{t.cssRules}catch(e){return}const{ownerNode:n,cssRules:o}=t;o&&Array.from(o).find(({selectorText:e})=>e&&(e.includes(".editor-styles-wrapper")||e.includes(".wp-block")))&&!e.getElementById(n.id)&&(console.error(`Stylesheet ${n.id} was not properly added.\nFor blocks, use the block API's style (https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#style) or editorStyle (https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#editor-style).\nFor themes, use add_editor_style (https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/#editor-styles).`,n),e.head.appendChild(n.cloneNode(!0)))}))},[c]),n=Object(i.createElement)(i.Fragment,null,Object(i.createElement)("style",null,"body{margin:0}"),s.map(({tagName:e,href:t,id:n,rel:o,media:r},c)=>{const l=e.toLowerCase();return Object(i.createElement)(l,{href:t,id:n,rel:o,media:r,key:c})}),n),Object(i.createElement)("iframe",Object(l.a)({},o,{ref:Object(d.useMergeRefs)([r,m]),tabIndex:"0",title:Object(v.__)("Editor canvas"),name:"editor-canvas"}),c&&Object(i.createPortal)(Object(i.createElement)(p.__experimentalStyleProvider,{document:c},t),c.body),c&&Object(i.createPortal)(n,c.head))}));const dp=Object(i.createContext)({});function bp(e,t=""){var n;const o=Object(i.useContext)(dp),{name:r}=O();t=t||r;const c=Boolean(null===(n=o[t])||void 0===n?void 0:n.has(e)),l=Object(i.useMemo)(()=>function(e,t,n){const o={...e,[t]:e[t]?new Set(e[t]):new Set};return o[t].add(n),o}(o,t,e),[o,t,e]);return[c,Object(i.useCallback)(({children:e})=>Object(i.createElement)(dp.Provider,{value:l},e),[l])]}function mp(e){if(void 0===e)e=k.colors;else{const t=e.filter(e=>e.color);0===t.length?e=k.colors:t.length<e.length&&(e=t)}return e}function pp(e){if(void 0===e)e=k.gradients;else{const t=e.filter(e=>e.gradient);0===t.length?e=k.gradients:t.length<e.length&&(e=t)}return e}},4:function(e,t){e.exports=window.wp.data},45:function(e,t){e.exports=window.wp.isShallowEqual},6:function(e,t){e.exports=window.wp.primitives},7:function(e,t,n){"use strict";function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return o}))},8:function(e,t){e.exports=window.wp.blocks},89:function(e,t,n){"use strict";t.__esModule=!0;var o=n(180);t.default=o.TextareaAutosize},9:function(e,t){e.exports=window.wp.compose},91:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{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"}));t.a=c},92:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=c}});
1
+ window.wp=window.wp||{},window.wp.blockEditor=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=402)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},10:function(e,t,n){var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var c=typeof o;if("string"===c||"number"===c)e.push(o);else if(Array.isArray(o))e.push(r.apply(null,o));else if("object"===c)for(var l in o)n.call(o,l)&&o[l]&&e.push(l)}}return e.join(" ")}e.exports?e.exports=r:void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},103:function(e,t,n){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(151)),c=o(n(176)),l=n(12),i=o(l),a=o(n(177)),s=o(n(179)),u={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(u.str(e)||u.num(e))return e===t;if(u.obj(e)&&u.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!u.und(n)||e===t}};function d(){var e=l.useState(!1)[1];return l.useCallback((function(){return e((function(e){return!e}))}),[])}function b(e,t){return u.und(e)||u.nul(e)?t:e}function m(e){return u.und(e)?[]:u.arr(e)?e:[e]}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return u.fun(e)?e.apply(void 0,n):e}function f(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,c(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(u.und(t))return r({to:t},e);var n=Object.keys(e).reduce((function(n,o){var c;return u.und(t[o])?r({},n,((c={})[o]=e[o],c)):n}),{});return r({to:t},n)}var g,h,O=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),v=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof O&&e.addChild(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof O&&e.removeChild(s(t))}))},t}return a(t,e),t}(O),j=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof O&&e.addChild(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof O&&e.removeChild(s(t))}))},t}a(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var o=this.payload[n];(!e||o instanceof O)&&(t[n]=o instanceof O?o[e?"getAnimatedValue":"getValue"]():o)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(O);function k(e,t){g={fn:e,transform:t}}function _(e){h=e}var y,E=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},C=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function S(e){y=e}var w,B=function(){return Date.now()};function I(e){w=e}var x,T,N=function(e){return e.current};function L(e){x=e}var P=Object.freeze({get applyAnimatedValues(){return g},injectApplyAnimatedValues:k,get colorNames(){return h},injectColorNames:_,get requestFrame(){return E},get cancelFrame(){return C},injectFrame:function(e,t){E=e,C=t},get interpolation(){return y},injectStringInterpolator:S,get now(){return B},injectNow:function(e){B=e},get defaultElement(){return w},injectDefaultElement:I,get animatedApi(){return N},injectAnimatedApi:function(e){N=e},get createAnimatedStyle(){return x},injectCreateAnimatedStyle:L,get manualFrameloop(){return T},injectManualFrameloop:function(e){T=e}}),R=function(e){function t(t,n){var o;return(o=e.call(this)||this).update=void 0,o.payload=t.style?r({},t,{style:x(t.style)}):t,o.update=n,o.attach(),o}return a(t,e),t}(j),A=!1,M=new Set,D=function e(){if(!A)return!1;var t=B(),n=M,o=Array.isArray(n),r=0;for(n=o?n:n[Symbol.iterator]();;){var c;if(o){if(r>=n.length)break;c=n[r++]}else{if((r=n.next()).done)break;c=r.value}for(var l=c,i=!1,a=0;a<l.configs.length;a++){for(var s=l.configs[a],u=void 0,d=void 0,b=0;b<s.animatedValues.length;b++){var m=s.animatedValues[b];if(!m.done){var p=s.fromValues[b],f=s.toValues[b],g=m.lastPosition,h=f instanceof O,v=Array.isArray(s.initialVelocity)?s.initialVelocity[b]:s.initialVelocity;if(h&&(f=f.getValue()),s.immediate)m.setValue(f),m.done=!0;else if("string"!=typeof p&&"string"!=typeof f){if(void 0!==s.duration)g=p+s.easing((t-m.startTime)/s.duration)*(f-p),u=t>=m.startTime+s.duration;else if(s.decay)g=p+v/(1-.998)*(1-Math.exp(-(1-.998)*(t-m.startTime))),(u=Math.abs(m.lastPosition-g)<.1)&&(f=g);else{d=void 0!==m.lastTime?m.lastTime:t,v=void 0!==m.lastVelocity?m.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var j=Math.floor(t-d),k=0;k<j;++k)g+=1*(v+=(-s.tension*(g-f)+-s.friction*v)/s.mass*1/1e3)/1e3;var _=!(!s.clamp||0===s.tension)&&(p<f?g>f:g<f),y=Math.abs(v)<=s.precision,C=0===s.tension||Math.abs(f-g)<=s.precision;u=_||y&&C,m.lastVelocity=v,m.lastTime=t}h&&!s.toValues[b].done&&(u=!1),u?(m.value!==f&&(g=f),m.done=!0):i=!0,m.setValue(g),m.lastPosition=g}else m.setValue(f),m.done=!0}}l.props.onFrame&&(l.values[s.name]=s.interpolation.getValue())}l.props.onFrame&&l.props.onFrame(l.values),i||(M.delete(l),l.stop(!0))}return M.size?T?T():E(e):A=!1,A};function F(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return F({range:e,output:t,extrapolate:n});if(y&&"string"==typeof e.output[0])return y(e);var o=e,r=o.output,c=o.range||[0,1],l=o.extrapolateLeft||o.extrapolate||"extend",i=o.extrapolateRight||o.extrapolate||"extend",a=o.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,c);return function(e,t,n,o,r,c,l,i,a){var s=a?a(e):e;if(s<t){if("identity"===l)return s;"clamp"===l&&(s=t)}if(s>n){if("identity"===i)return s;"clamp"===i&&(s=n)}return o===r?o:t===n?e<=t?o:r:(t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t),s=c(s),o===-1/0?s=-s:r===1/0?s+=o:s=s*(r-o)+o,s)}(e,c[t],c[t+1],r[t],r[t+1],a,l,i,o.map)}}var V=function(e){function t(n,o,r){var c;return(c=e.call(this)||this).calc=void 0,c.payload=n instanceof v&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],c.calc=F(o,r),c}a(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t){this.calc=F(e,t)},n.interpolate=function(e,n){return new t(this,e,n)},t}(v),H=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}a(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t){return new V(this,e,t)},t}(O),z=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}a(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,o){return n.payload[o].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new V(this,e,t)},t}(v),G=0,U=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=G++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=f(e),n=t.delay,o=void 0===n?0:n,l=t.to,i=c(t,["delay","to"]);if(u.arr(l)||u.fun(l))this.queue.push(r({},i,{delay:o,to:l}));else if(l){var a={};Object.entries(l).forEach((function(e){var t,n=e[0],c=e[1],l=r({to:(t={},t[n]=c,t),delay:p(o,n)},i),s=a[l.delay]&&a[l.delay].to;a[l.delay]=r({},a[l.delay],l,{to:r({},s,l.to)})})),this.queue=Object.values(a)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(i),this},t.start=function(e){var t=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var n=e.from,o=void 0===n?{}:n,c=e.to,l=void 0===c?{}:c;u.obj(o)&&(t.merged=r({},o,t.merged)),u.obj(l)&&(t.merged=r({},t.merged,l))}));var n=this.local=++this.guid,o=this.localQueue=this.queue;this.queue=[],o.forEach((function(r,l){var i=r.delay,a=c(r,["delay"]),s=function(r){l===o.length-1&&n===t.guid&&r&&(t.idle=!0,t.props.onRest&&t.props.onRest(t.merged)),e&&e()},d=u.arr(a.to)||u.fun(a.to);i?setTimeout((function(){n===t.guid&&(d?t.runAsync(a,s):t.diff(a).start(s))}),i):d?t.runAsync(a,s):t.diff(a).start(s)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),this,M.has(this)||M.add(this),A||(A=!0,E(T||D));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){return this.stop(!0),e&&(this,M.has(this)&&M.delete(this)),this},t.runAsync=function(e,t){var n=this,o=(e.delay,c(e,["delay"])),l=this.local,i=Promise.resolve(void 0);if(u.arr(o.to))for(var a=function(e){var t=e,c=r({},o,f(o.to[t]));u.arr(c.config)&&(c.config=c.config[t]),i=i.then((function(){if(l===n.guid)return new Promise((function(e){return n.diff(c).start(e)}))}))},s=0;s<o.to.length;s++)a(s);else if(u.fun(o.to)){var d,b=0;i=i.then((function(){return o.to((function(e){var t=r({},o,f(e));if(u.arr(t.config)&&(t.config=t.config[b]),b++,l===n.guid)return d=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return d}))}))}i.then(t)},t.diff=function(e){var t=this;this.props=r({},this.props,e);var n=this.props,o=n.from,c=void 0===o?{}:o,l=n.to,i=void 0===l?{}:l,a=n.config,s=void 0===a?{}:a,d=n.reverse,f=n.attach,g=n.reset,O=n.immediate;if(d){var v=[i,c];c=v[0],i=v[1]}this.merged=r({},c,this.merged,i),this.hasChanged=!1;var j=f&&f(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var o=n[0],l=n[1],i=e[o]||{},a=u.num(l),d=u.str(l)&&!l.startsWith("#")&&!/\d/.test(l)&&!h[l],f=u.arr(l),v=!a&&!f&&!d,k=u.und(c[o])?l:c[o],_=a||f||d?l:1,E=p(s,o);j&&(_=j.animations[o].parent);var C,S=i.parent,w=i.interpolation,I=m(j?_.getPayload():_),x=l;v&&(x=y({range:[0,1],output:[l,l]})(1));var T,N=w&&w.getValue(),L=!u.und(S)&&i.animatedValues.some((function(e){return!e.done})),P=!u.equ(x,N),R=!u.equ(x,i.previous),A=!u.equ(E,i.config);if(g||R&&P||A){var M;if(a||d)S=w=i.parent||new H(k);else if(f)S=w=i.parent||new z(k);else if(v){var D=i.interpolation&&i.interpolation.calc(i.parent.value);D=void 0===D||g?k:D,i.parent?(S=i.parent).setValue(0,!1):S=new H(0);var F={output:[D,l]};i.interpolation?(w=i.interpolation,i.interpolation.updateConfig(F)):w=S.interpolate(F)}return I=m(j?_.getPayload():_),C=m(S.getPayload()),g&&!v&&S.setValue(k,!1),t.hasChanged=!0,C.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=L?e.lastVelocity:void 0,e.lastTime=L?e.lastTime:void 0,e.startTime=B(),e.done=!1,e.animatedStyles.clear()})),p(O,o)&&S.setValue(v?_:l,!1),r({},e,((M={})[o]=r({},i,{name:o,parent:S,interpolation:w,animatedValues:C,toValues:I,previous:x,config:E,fromValues:m(S.getValue()),immediate:p(O,o),initialVelocity:b(E.velocity,0),clamp:b(E.clamp,!1),precision:b(E.precision,.01),tension:b(E.tension,170),friction:b(E.friction,26),mass:b(E.mass,1),duration:E.duration,easing:b(E.easing,(function(e){return e})),decay:E.decay}),M))}return P?e:(v&&(S.setValue(1,!1),w.updateConfig({output:[x,x]})),S.done=!0,t.hasChanged=!0,r({},e,((T={})[o]=r({},e[o],{previous:x}),T)))}),this.animations),this.hasChanged)for(var k in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[k]=this.animations[k].interpolation,this.values[k]=this.animations[k].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),W=function(e,t){var n=l.useRef(!1),o=l.useRef(),r=u.fun(t),c=l.useMemo((function(){var n;return o.current&&(o.current.map((function(e){return e.destroy()})),o.current=void 0),[new Array(e).fill().map((function(e,o){var c=new U,l=r?p(t,o,c):t[o];return 0===o&&(n=l.ref),c.update(l),n||c.start(),c})),n]}),[e]),i=c[0],a=c[1];o.current=i,l.useImperativeHandle(a,(function(){return{start:function(){return Promise.all(o.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return o.current.forEach((function(t){return t.stop(e)}))},get controllers(){return o.current}}}));var s=l.useMemo((function(){return function(e){return o.current.map((function(t,n){t.update(r?p(e,n,t):e[n]),a||t.start()}))}}),[e]);l.useEffect((function(){n.current?r||s(t):a||o.current.forEach((function(e){return e.start()}))})),l.useEffect((function(){return n.current=!0,function(){return o.current.forEach((function(e){return e.destroy()}))}}),[]);var d=o.current.map((function(e){return e.getValues()}));return r?[d,s,function(e){return o.current.forEach((function(t){return t.pause(e)}))}]:d},K=0,$=function(e,t){return("function"==typeof t?e.map(t):m(t)).map(String)},q=function(e){var t=e.items,n=e.keys,o=void 0===n?function(e){return e}:n,l=c(e,["items","keys"]);return t=m(void 0!==t?t:null),r({items:t,keys:$(t,o)},l)};function Y(e,t){var n=function(){if(r){if(c>=o.length)return"break";l=o[c++]}else{if((c=o.next()).done)return"break";l=c.value}var n=l.key,i=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(i),e.current.deleted=e.current.deleted.filter(i))},o=e.current.deleted,r=Array.isArray(o),c=0;for(o=r?o:o[Symbol.iterator]();;){var l;if("break"===n())break}e.current.forceUpdate()}var X=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof O||(t=g.transform(t)),n.payload=t,n}return a(t,e),t}(j),Q={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Z="[-+]?\\d*\\.?\\d+";function J(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+J(Z,Z,Z)),te=new RegExp("rgba"+J(Z,Z,Z,Z)),ne=new RegExp("hsl"+J(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),oe=new RegExp("hsla"+J(Z,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Z)),re=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,le=/^#([0-9a-fA-F]{6})$/,ie=/^#([0-9a-fA-F]{8})$/;function ae(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function se(e,t,n){var o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,c=ae(r,o,e+1/3),l=ae(r,o,e),i=ae(r,o,e-1/3);return Math.round(255*c)<<24|Math.round(255*l)<<16|Math.round(255*i)<<8}function ue(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(e){return(parseFloat(e)%360+360)%360/360}function be(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function me(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){var t,n,o="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=le.exec(t))?parseInt(n[1]+"ff",16)>>>0:Q.hasOwnProperty(t)?Q[t]:(n=ee.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|255)>>>0:(n=te.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|be(n[4]))>>>0:(n=re.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ie.exec(t))?parseInt(n[1],16)>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(de(n[1]),me(n[2]),me(n[3])))>>>0:(n=oe.exec(t))?(se(de(n[1]),me(n[2]),me(n[3]))|be(n[4]))>>>0:null;return null===o?e:"rgba("+((4278190080&(o=o||0))>>>24)+", "+((16711680&o)>>>16)+", "+((65280&o)>>>8)+", "+(255&o)/255+")"}var fe=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ge=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,he=new RegExp("("+Object.keys(Q).join("|")+")","g"),Oe={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ve=["Webkit","Ms","Moz","O"];function je(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Oe.hasOwnProperty(e)&&Oe[e]?(""+t).trim():t+"px"}Oe=Object.keys(Oe).reduce((function(e,t){return ve.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),Oe);var ke={};L((function(e){return new X(e)})),I("div"),S((function(e){var t=e.output.map((function(e){return e.replace(ge,pe)})).map((function(e){return e.replace(he,pe)})),n=t[0].match(fe).map((function(){return[]}));t.forEach((function(e){e.match(fe).forEach((function(e,t){return n[t].push(+e)}))}));var o=t[0].match(fe).map((function(t,o){return F(r({},e,{output:n[o]}))}));return function(e){var n=0;return t[0].replace(fe,(function(){return o[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,o,r){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(o)+", "+r+")"}))}})),_(Q),k((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,o=t.children,r=t.scrollTop,l=t.scrollLeft,i=c(t,["style","children","scrollTop","scrollLeft"]),a="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==r&&(e.scrollTop=r),void 0!==l&&(e.scrollLeft=l),void 0!==o&&(e.textContent=o),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=je(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var b in i){var m=a?b:ke[b]||(ke[b]=b.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(m)&&e.setAttribute(m,i[b])}}),(function(e){return e}));var _e,ye,Ee=(_e=function(e){return l.forwardRef((function(t,n){var o=d(),a=l.useRef(!0),s=l.useRef(null),b=l.useRef(null),m=l.useCallback((function(e){var t=s.current;s.current=new R(e,(function(){b.current&&!1===g.fn(b.current,s.current.getAnimatedValue())&&o()})),t&&t.detach()}),[]);l.useEffect((function(){return function(){a.current=!1,s.current&&s.current.detach()}}),[]),l.useImperativeHandle(n,(function(){return N(b,a,o)})),m(t);var p=s.current.getValue(),f=(p.scrollTop,p.scrollLeft,c(p,["scrollTop","scrollLeft"]));return i.createElement(e,r({},f,{ref:function(e){return b.current=(t=e,(o=n)&&(u.fun(o)?o(t):u.obj(o)&&(o.current=t)),t);var t,o}}))}))},void 0===(ye=!1)&&(ye=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=ye?t[0].toLowerCase()+t.substring(1):t;return e[n]=_e(n),e}),_e)}),Ce=Ee(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=Ee,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=D,t.animated=Ce,t.a=Ce,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=P,t.useSpring=function(e){var t=u.fun(e),n=W(1,t?e:[e]),o=n[0],r=n[1],c=n[2];return t?[o[0],r,c]:o},t.useTrail=function(e,t){var n=l.useRef(!1),o=u.fun(t),c=p(t),i=l.useRef(),a=W(e,(function(e,t){return 0===e&&(i.current=[]),i.current.push(t),r({},c,{config:p(c.config,e),attach:e>0&&function(){return i.current[e-1]}})})),s=a[0],d=a[1],b=a[2],m=l.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var o=e.reverse?t+1:t-1,l=i.current[o];return r({},e,{config:p(e.config||c.config,t),attach:l&&function(){return l}})}))}}),[e,c.reverse]);return l.useEffect((function(){n.current&&!o&&m(t)})),l.useEffect((function(){n.current=!0}),[]),o?[s,m,b]:s},t.useTransition=function(e,t,n){var o=r({items:e,keys:t||function(e){return e}},n),i=q(o),a=i.lazy,s=void 0!==a&&a,u=(i.unique,i.reset),b=void 0!==u&&u,m=(i.enter,i.leave,i.update,i.onDestroyed),f=(i.keys,i.items,i.onFrame),g=i.onRest,h=i.onStart,O=i.ref,v=c(i,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),j=d(),k=l.useRef(!1),_=l.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!o.ref,instances:!k.current&&new Map,forceUpdate:j});return l.useImperativeHandle(o.ref,(function(){return{start:function(){return Promise.all(Array.from(_.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(_.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(_.current.instances).map((function(e){return e[1]}))}}})),_.current=function(e,t){for(var n=e.first,o=e.prevProps,l=c(e,["first","prevProps"]),i=q(t),a=i.items,s=i.keys,u=i.initial,d=i.from,b=i.enter,m=i.leave,f=i.update,g=i.trail,h=void 0===g?0:g,O=i.unique,v=i.config,j=i.order,k=void 0===j?["enter","leave","update"]:j,_=q(o),y=_.keys,E=_.items,C=r({},l.current),S=[].concat(l.deleted),w=Object.keys(C),B=new Set(w),I=new Set(s),x=s.filter((function(e){return!B.has(e)})),T=l.transitions.filter((function(e){return!e.destroyed&&!I.has(e.originalKey)})).map((function(e){return e.originalKey})),N=s.filter((function(e){return B.has(e)})),L=-h;k.length;)switch(k.shift()){case"enter":x.forEach((function(e,t){O&&S.find((function(t){return t.originalKey===e}))&&(S=S.filter((function(t){return t.originalKey!==e})));var o=s.indexOf(e),r=a[o],c=n&&void 0!==u?"initial":"enter";C[e]={slot:c,originalKey:e,key:O?String(e):K++,item:r,trail:L+=h,config:p(v,r,c),from:p(n&&void 0!==u?u||{}:d,r),to:p(b,r)}}));break;case"leave":T.forEach((function(e){var t=y.indexOf(e),n=E[t];S.unshift(r({},C[e],{slot:"leave",destroyed:!0,left:y[Math.max(0,t-1)],right:y[Math.min(y.length,t+1)],trail:L+=h,config:p(v,n,"leave"),to:p(m,n)})),delete C[e]}));break;case"update":N.forEach((function(e){var t=s.indexOf(e),n=a[t];C[e]=r({},C[e],{item:n,slot:"update",trail:L+=h,config:p(v,n,"update"),to:p(f,n)})}))}var P=s.map((function(e){return C[e]}));return S.forEach((function(e){var t,n=e.left,o=(e.right,c(e,["left","right"]));-1!==(t=P.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),P=[].concat(P.slice(0,t),[o],P.slice(t))})),r({},l,{changed:x.length||T.length||N.length,first:n&&0===x.length,transitions:P,current:C,deleted:S,prevProps:t})}(_.current,o),_.current.changed&&_.current.transitions.forEach((function(e){var t=e.slot,n=e.from,o=e.to,c=e.config,l=e.trail,i=e.key,a=e.item;_.current.instances.has(i)||_.current.instances.set(i,new U);var u=_.current.instances.get(i),d=r({},v,{to:o,from:n,config:c,ref:O,onRest:function(n){_.current.mounted&&(e.destroyed&&(O||s||Y(_,i),m&&m(a)),!Array.from(_.current.instances).some((function(e){return!e[1].idle}))&&(O||s)&&_.current.deleted.length>0&&Y(_),g&&g(a,t,n))},onStart:h&&function(){return h(a,t)},onFrame:f&&function(e){return f(a,t,e)},delay:l,reset:b&&"enter"===t});u.update(d),_.current.paused||u.start()})),l.useEffect((function(){return _.current.mounted=k.current=!0,function(){_.current.mounted=k.current=!1,Array.from(_.current.instances).map((function(e){return e[1].destroy()})),_.current.instances.clear()}}),[]),_.current.transitions.map((function(e){var t=e.item,n=e.slot,o=e.key;return{item:t,key:o,state:n,props:_.current.instances.get(o).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var o=l.useRef();l.useEffect((function(){u.equ(e,o.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,o){var c=e.current;if(c){var l=c.controllers;if(l.length){var i=n*t[o];l.forEach((function(e){e.queue=e.queue.map((function(e){return r({},e,{delay:e.delay+i})})),e.start()}))}}})):e.reduce((function(e,t,n){var o=t.current;return e.then((function(){return o.start()}))}),Promise.resolve()),o.current=e}))},t.useSprings=W},109:function(e,t,n){"use strict";var o=n(0);t.a=function({icon:e,size:t=24,...n}){return Object(o.cloneElement)(e,{width:t,height:t,...n})}},110:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=c},113:function(e,t,n){"use strict";e.exports=n(180)},114:function(e,t){e.exports=window.wp.wordcount},116:function(e,t){e.exports=window.wp.shortcode},12:function(e,t){e.exports=window.React},127:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=c},128:function(e,t,n){"use strict";var o=n(129);function r(){}function c(){}c.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,c,l){if(l!==o){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:r};return n.PropTypes=n,n}},129:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},13:function(e,t){e.exports=window.wp.keycodes},145:function(e,t){e.exports=window.wp.tokenList},15:function(e,t){e.exports=window.wp.richText},150:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=c},151:function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},152:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=c},153:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=c},166:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},175:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));t.a=c},176:function(e,t){e.exports=function(e,t){if(null==e)return{};var n,o,r={},c=Object.keys(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||(r[n]=e[n]);return r},e.exports.default=e.exports,e.exports.__esModule=!0},177:function(e,t,n){var o=n(178);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},178:function(e,t){function n(t,o){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,o)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},179:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},180:function(e,t,n){"use strict";var o=n(181);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=o.getWindow(t));var r=n.allowHorizontalScroll,c=n.onlyScrollIfNeeded,l=n.alignWithTop,i=n.alignWithLeft,a=n.offsetTop||0,s=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;r=void 0===r||r;var b=o.isWindow(t),m=!(!b||!t.frameElement),p=o.offset(e),f=o.outerHeight(e),g=o.outerWidth(e),h=void 0,O=void 0,v=void 0,j=void 0,k=void 0,_=void 0,y=void 0,E=void 0,C=void 0,S=void 0;m&&(t=t.document.scrollingElement||t.document.body),b||m?(y=t,S=o.height(y),C=o.width(y),E={left:o.scrollLeft(y),top:o.scrollTop(y)},k={left:p.left-E.left-s,top:p.top-E.top-a},_={left:p.left+g-(E.left+C)+d,top:p.top+f-(E.top+S)+u},j=E):(h=o.offset(t),O=t.clientHeight,v=t.clientWidth,j={left:t.scrollLeft,top:t.scrollTop},k={left:p.left-(h.left+(parseFloat(o.css(t,"borderLeftWidth"))||0))-s,top:p.top-(h.top+(parseFloat(o.css(t,"borderTopWidth"))||0))-a},_={left:p.left+g-(h.left+v+(parseFloat(o.css(t,"borderRightWidth"))||0))+d,top:p.top+f-(h.top+O+(parseFloat(o.css(t,"borderBottomWidth"))||0))+u}),k.top<0||_.top>0?!0===l?o.scrollTop(t,j.top+k.top):!1===l?o.scrollTop(t,j.top+_.top):k.top<0?o.scrollTop(t,j.top+k.top):o.scrollTop(t,j.top+_.top):c||((l=void 0===l||!!l)?o.scrollTop(t,j.top+k.top):o.scrollTop(t,j.top+_.top)),r&&(k.left<0||_.left>0?!0===i?o.scrollLeft(t,j.left+k.left):!1===i?o.scrollLeft(t,j.left+_.left):k.left<0?o.scrollLeft(t,j.left+k.left):o.scrollLeft(t,j.left+_.left):c||((i=void 0===i||!!i)?o.scrollLeft(t,j.left+k.left):o.scrollLeft(t,j.left+_.left)))}},181:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function c(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],o="scroll"+(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function l(e){return c(e)}function i(e){return c(e,!0)}function a(e){var t=function(e){var t,n=void 0,o=void 0,r=e.ownerDocument,c=r.body,l=r&&r.documentElement;return n=(t=e.getBoundingClientRect()).left,o=t.top,{left:n-=l.clientLeft||c.clientLeft||0,top:o-=l.clientTop||c.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=l(o),t.top+=i(o),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),u=/^(top|right|bottom|left)$/,d="left",b=void 0;function m(e,t){for(var n=0;n<e.length;n++)t(e[n])}function p(e){return"border-box"===b(e,"boxSizing")}"undefined"!=typeof window&&(b=window.getComputedStyle?function(e,t,n){var o="",r=e.ownerDocument,c=n||r.defaultView.getComputedStyle(e,null);return c&&(o=c.getPropertyValue(t)||c[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(s.test(n)&&!u.test(t)){var o=e.style,r=o[d],c=e.runtimeStyle[d];e.runtimeStyle[d]=e.currentStyle[d],o[d]="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o[d]=r,e.runtimeStyle[d]=c}return""===n?"auto":n});var f=["margin","border","padding"];function g(e,t,n){var o={},r=e.style,c=void 0;for(c in t)t.hasOwnProperty(c)&&(o[c]=r[c],r[c]=t[c]);for(c in n.call(e),t)t.hasOwnProperty(c)&&(r[c]=o[c])}function h(e,t,n){var o=0,r=void 0,c=void 0,l=void 0;for(c=0;c<t.length;c++)if(r=t[c])for(l=0;l<n.length;l++){var i;i="border"===r?r+n[l]+"Width":r+n[l],o+=parseFloat(b(e,i))||0}return o}function O(e){return null!=e&&e==e.window}var v={};function j(e,t,n){if(O(e))return"width"===t?v.viewportWidth(e):v.viewportHeight(e);if(9===e.nodeType)return"width"===t?v.docWidth(e):v.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],r="width"===t?e.offsetWidth:e.offsetHeight,c=(b(e),p(e)),l=0;(null==r||r<=0)&&(r=void 0,(null==(l=b(e,t))||Number(l)<0)&&(l=e.style[t]||0),l=parseFloat(l)||0),void 0===n&&(n=c?1:-1);var i=void 0!==r||c,a=r||l;if(-1===n)return i?a-h(e,["border","padding"],o):l;if(i){var s=2===n?-h(e,["border"],o):h(e,["margin"],o);return a+(1===n?0:s)}return l+h(e,f.slice(n),o)}m(["Width","Height"],(function(e){v["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],v["viewport"+e](n))},v["viewport"+e]=function(t){var n="client"+e,o=t.document,r=o.body,c=o.documentElement[n];return"CSS1Compat"===o.compatMode&&c||r&&r[n]||c}}));var k={position:"absolute",visibility:"hidden",display:"block"};function _(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=j.apply(void 0,n):g(e,k,(function(){t=j.apply(void 0,n)})),t}function y(e,t,n){var o=n;if("object"!==(void 0===t?"undefined":r(t)))return void 0!==o?("number"==typeof o&&(o+="px"),void(e.style[t]=o)):b(e,t);for(var c in t)t.hasOwnProperty(c)&&y(e,c,t[c])}m(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);v["outer"+t]=function(t,n){return t&&_(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];v[e]=function(t,o){return void 0===o?t&&_(t,e,-1):t?(b(t),p(t)&&(o+=h(t,["padding","border"],n)),y(t,e,o)):void 0}})),e.exports=o({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return a(e);!function(e,t){"static"===y(e,"position")&&(e.style.position="relative");var n=a(e),o={},r=void 0,c=void 0;for(c in t)t.hasOwnProperty(c)&&(r=parseFloat(y(e,c))||0,o[c]=r+t[c]-n[c]);y(e,o)}(e,t)},isWindow:O,each:m,css:y,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(O(e)){if(void 0===t)return l(e);window.scrollTo(t,i(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(O(e)){if(void 0===t)return i(e);window.scrollTo(l(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},v)},182:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},l=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n};t.__esModule=!0;var i=n(12),a=n(23),s=n(183),u=n(184),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,o=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||o?setTimeout((function(){return e.textarea&&s(e.textarea)})):this.textarea&&s(this.textarea),this.textarea&&this.textarea.addEventListener("autosize:resized",this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener("autosize:resized",this.onResize),s.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),o=(t.onChange,t.style),r=(t.innerRef,t.children),a=l(t,["onResize","maxRows","onChange","style","innerRef","children"]),s=this.state.lineHeight,u=n&&s?s*n:null;return i.createElement("textarea",c({},a,{onChange:this.onChange,style:u?c({},o,{maxHeight:u}):o,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),r)},t.prototype.componentDidUpdate=function(){this.textarea&&s.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:a.number,maxRows:a.number,onResize:a.func,innerRef:a.any,async:a.bool},t}(i.Component);t.TextareaAutosize=i.forwardRef((function(e,t){return i.createElement(d,c({},e,{innerRef:t}))}))},183:function(e,t,n){var o,r;void 0===(r="function"==typeof(o=function(e,t){"use strict";var n,o,r="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o.splice(t,1))}}),c=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){c=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function l(e){var t=r.get(e);t&&t.destroy()}function i(e){var t=r.get(e);t&&t.update()}var a=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((a=function(e){return e}).destroy=function(e){return e},a.update=function(e){return e}):((a=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!r.has(e)){var t,n=null,o=null,l=null,i=function(){e.clientWidth!==o&&d()},a=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",a,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),r.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:a,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",o=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o<t?"hidden"===n.overflowY&&(s("scroll"),u(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),u(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),l!==o){l=o;var r=c("autosize:resized");try{e.dispatchEvent(r)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e},a.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e}),t.default=a,e.exports=t.default})?o.apply(t,[e,t]):o)||(e.exports=r)},184:function(e,t,n){var o=n(185);e.exports=function(e){var t=o(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=o(e,"line-height"),n=parseFloat(t,10),r?e.style.lineHeight=r:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var c=e.nodeName,l=document.createElement(c);l.innerHTML="&nbsp;","TEXTAREA"===c.toUpperCase()&&l.setAttribute("rows","1");var i=o(e,"font-size");l.style.fontSize=i,l.style.padding="0px",l.style.border="0px";var a=document.body;a.appendChild(l),n=l.offsetHeight,a.removeChild(l)}return n}},185:function(e,t){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},186:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{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"}));t.a=c},187:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=c},19:function(e,t){e.exports=window.wp.url},199:function(e,t,n){"use strict";var o=n(0),r=n(6),c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=c},2:function(e,t){e.exports=window.lodash},20:function(e,t){e.exports=window.wp.hooks},209:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=c},210:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=c},211:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=c},212:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(o.createElement)(r.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"}));t.a=c},213:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=c},22:function(e,t){e.exports=window.wp.dom},23:function(e,t,n){e.exports=n(128)()},24:function(e,t){e.exports=window.wp.keyboardShortcuts},25:function(e,t){e.exports=window.wp.deprecated},259:function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return r.diff(e,t,n)},t.characterDiff=void 0;var r=new(((o=n(291))&&o.__esModule?o:{default:o}).default);t.characterDiff=r},260:function(e,t,n){"use strict";t.match=function(e,t){return a(e).some((function(e){var n=e.inverse,o="all"===e.type||t.type===e.type;if(o&&n||!o&&!n)return!1;var r=e.expressions.every((function(e){var n=e.feature,o=e.modifier,r=e.value,c=t[n];if(!c)return!1;switch(n){case"orientation":case"scan":return c.toLowerCase()===r.toLowerCase();case"width":case"height":case"device-width":case"device-height":r=d(r),c=d(c);break;case"resolution":r=u(r),c=u(c);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":r=s(r),c=s(c);break;case"grid":case"color":case"color-index":case"monochrome":r=parseInt(r,10)||1,c=parseInt(c,10)||0}switch(o){case"min":return c>=r;case"max":return c<=r;default:return c===r}}));return r&&!n||!r&&n}))},t.parse=a;var o=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,c=/^(?:(min|max)-)?(.+)/,l=/(em|rem|px|cm|mm|in|pt|pc)?$/,i=/(dpi|dpcm|dppx)?$/;function a(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(o),n=t[1],l=t[2],i=t[3]||"",a={};return a.inverse=!!n&&"not"===n.toLowerCase(),a.type=l?l.toLowerCase():"all",i=i.match(/\([^\)]+\)/g)||[],a.expressions=i.map((function(e){var t=e.match(r),n=t[1].toLowerCase().match(c);return{modifier:n[1],feature:n[2],value:t[2]}})),a}))}function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function u(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function d(e){var t=parseFloat(e);switch(String(e).match(l)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},261:function(e,t){var n=e.exports=function(e){return new o(e)};function o(e){this.value=e}function r(e,t,n){var o=[],r=[],i=!0;return function e(d){var b=n?c(d):d,m={},p=!0,f={node:b,node_:d,path:[].concat(o),parent:r[r.length-1],parents:r,key:o.slice(-1)[0],isRoot:0===o.length,level:o.length,circular:null,update:function(e,t){f.isRoot||(f.parent.node[f.key]=e),f.node=e,t&&(p=!1)},delete:function(e){delete f.parent.node[f.key],e&&(p=!1)},remove:function(e){a(f.parent.node)?f.parent.node.splice(f.key,1):delete f.parent.node[f.key],e&&(p=!1)},keys:null,before:function(e){m.before=e},after:function(e){m.after=e},pre:function(e){m.pre=e},post:function(e){m.post=e},stop:function(){i=!1},block:function(){p=!1}};if(!i)return f;function g(){if("object"==typeof f.node&&null!==f.node){f.keys&&f.node_===f.node||(f.keys=l(f.node)),f.isLeaf=0==f.keys.length;for(var e=0;e<r.length;e++)if(r[e].node_===d){f.circular=r[e];break}}else f.isLeaf=!0,f.keys=null;f.notLeaf=!f.isLeaf,f.notRoot=!f.isRoot}g();var h=t.call(f,f.node);return void 0!==h&&f.update&&f.update(h),m.before&&m.before.call(f,f.node),p?("object"!=typeof f.node||null===f.node||f.circular||(r.push(f),g(),s(f.keys,(function(t,r){o.push(t),m.pre&&m.pre.call(f,f.node[t],t);var c=e(f.node[t]);n&&u.call(f.node,t)&&(f.node[t]=c.node),c.isLast=r==f.keys.length-1,c.isFirst=0==r,m.post&&m.post.call(f,c),o.pop()})),r.pop()),m.after&&m.after.call(f,f.node),f):f}(e).node}function c(e){if("object"==typeof e&&null!==e){var t;if(a(e))t=[];else if("[object Date]"===i(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===i(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===i(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===i(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===i(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===i(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},o=function(){};o.prototype=n,t=new o}return s(l(e),(function(n){t[n]=e[n]})),t}return e}o.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!u.call(t,o)){t=void 0;break}t=t[o]}return t},o.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!u.call(t,o))return!1;t=t[o]}return!0},o.prototype.set=function(e,t){for(var n=this.value,o=0;o<e.length-1;o++){var r=e[o];u.call(n,r)||(n[r]={}),n=n[r]}return n[e[o]]=t,t},o.prototype.map=function(e){return r(this.value,e,!0)},o.prototype.forEach=function(e){return this.value=r(this.value,e,!1),this.value},o.prototype.reduce=function(e,t){var n=1===arguments.length,o=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(o=e.call(this,o,t))})),o},o.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},o.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},o.prototype.clone=function(){var e=[],t=[];return function n(o){for(var r=0;r<e.length;r++)if(e[r]===o)return t[r];if("object"==typeof o&&null!==o){var i=c(o);return e.push(o),t.push(i),s(l(o),(function(e){i[e]=n(o[e])})),e.pop(),t.pop(),i}return o}(this.value)};var l=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function i(e){return Object.prototype.toString.call(e)}var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};s(l(o.prototype),(function(e){n[e]=function(t){var n=[].slice.call(arguments,1),r=new o(t);return r[e].apply(r,n)}}));var u=Object.hasOwnProperty||function(e,t){return t in e}},28:function(e,t){e.exports=window.wp.notices},286:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"}));t.a=c},287:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},288:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=c},289:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=c},29:function(e,t,n){"use strict";var o,r;function c(e){return[e]}function l(){var e={clear:function(){e.head=null}};return e}function i(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}o={},r="undefined"!=typeof WeakMap,t.a=function(e,t){var n,a;function s(){n=r?new WeakMap:l()}function u(){var n,o,r,c,l,s=arguments.length;for(c=new Array(s),r=0;r<s;r++)c[r]=arguments[r];for(l=t.apply(null,c),(n=a(l)).isUniqueByDependants||(n.lastDependants&&!i(l,n.lastDependants,0)&&n.clear(),n.lastDependants=l),o=n.head;o;){if(i(o.args,c,1))return o!==n.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=n.head,o.prev=null,n.head.prev=o,n.head=o),o.val;o=o.next}return o={val:e.apply(null,c)},c[0]=null,o.args=c,n.head&&(n.head.prev=o,o.next=n.head),n.head=o,o.val}return t||(t=c),a=r?function(e){var t,r,c,i,a,s=n,u=!0;for(t=0;t<e.length;t++){if(!(a=r=e[t])||"object"!=typeof a){u=!1;break}s.has(r)?s=s.get(r):(c=new WeakMap,s.set(r,c),s=c)}return s.has(o)||((i=l()).isUniqueByDependants=u,s.set(o,i)),s.get(o)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},290:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=c},291:function(e,t,n){"use strict";function o(){}function r(e,t,n,o,r){for(var c=0,l=t.length,i=0,a=0;c<l;c++){var s=t[c];if(s.removed){if(s.value=e.join(o.slice(a,a+s.count)),a+=s.count,c&&t[c-1].added){var u=t[c-1];t[c-1]=t[c],t[c]=u}}else{if(!s.added&&r){var d=n.slice(i,i+s.count);d=d.map((function(e,t){var n=o[a+t];return n.length>e.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(i,i+s.count));i+=s.count,s.added||(a+=s.count)}}var b=t[l-1];return l>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[l-2].value+=b.value,t.pop()),t}function c(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,o.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.callback;"function"==typeof n&&(o=n,n={}),this.options=n;var l=this;function i(e){return o?(setTimeout((function(){o(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var a=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=a+s,b=[{newPos:-1,components:[]}],m=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=a&&m+1>=s)return i([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var o=void 0,d=b[n-1],m=b[n+1],p=(m?m.newPos:0)-n;d&&(b[n-1]=void 0);var f=d&&d.newPos+1<a,g=m&&0<=p&&p<s;if(f||g){if(!f||g&&d.newPos<m.newPos?(o=c(m),l.pushComponent(o.components,void 0,!0)):((o=d).newPos++,l.pushComponent(o.components,!0,void 0)),p=l.extractCommon(o,t,e,n),o.newPos+1>=a&&p+1>=s)return i(r(l,o.components,t,e,l.useLongestToken));b[n]=o}else b[n]=void 0}u++}if(o)!function e(){setTimeout((function(){if(u>d)return o();p()||e()}),0)}();else for(;u<=d;){var f=p();if(f)return f}},pushComponent:function(e,t,n){var o=e[e.length-1];o&&o.added===t&&o.removed===n?e[e.length-1]={count:o.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,o){for(var r=t.length,c=n.length,l=e.newPos,i=l-o,a=0;l+1<r&&i+1<c&&this.equals(t[l+1],n[i+1]);)l++,i++,a++;return a&&e.components.push({count:a}),e.newPos=l,i},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},292:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"}));t.a=c},293:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));t.a=c},294:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{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"}));t.a=c},3:function(e,t){e.exports=window.wp.components},30:function(e,t){e.exports=window.wp.a11y},32:function(e,t){e.exports=window.wp.blob},35:function(e,t,n){var o;!function(r){var c=/^\s+/,l=/\s+$/,i=0,a=r.round,s=r.min,u=r.max,d=r.random;function b(e,t){if(t=t||{},(e=e||"")instanceof b)return e;if(!(this instanceof b))return new b(e,t);var n=function(e){var t,n,o,i={r:0,g:0,b:0},a=1,d=null,b=null,m=null,p=!1,f=!1;return"string"==typeof e&&(e=function(e){e=e.replace(c,"").replace(l,"").toLowerCase();var t,n=!1;if(x[e])e=x[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=G.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=G.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=G.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=G.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=G.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=G.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=G.hex8.exec(e))?{r:R(t[1]),g:R(t[2]),b:R(t[3]),a:F(t[4]),format:n?"name":"hex8"}:(t=G.hex6.exec(e))?{r:R(t[1]),g:R(t[2]),b:R(t[3]),format:n?"name":"hex"}:(t=G.hex4.exec(e))?{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=G.hex3.exec(e))&&{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==typeof e&&(U(e.r)&&U(e.g)&&U(e.b)?(t=e.r,n=e.g,o=e.b,i={r:255*L(t,255),g:255*L(n,255),b:255*L(o,255)},p=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):U(e.h)&&U(e.s)&&U(e.v)?(d=M(e.s),b=M(e.v),i=function(e,t,n){e=6*L(e,360),t=L(t,100),n=L(n,100);var o=r.floor(e),c=e-o,l=n*(1-t),i=n*(1-c*t),a=n*(1-(1-c)*t),s=o%6;return{r:255*[n,i,l,l,a,n][s],g:255*[a,n,n,i,l,l][s],b:255*[l,l,a,n,n,i][s]}}(e.h,d,b),p=!0,f="hsv"):U(e.h)&&U(e.s)&&U(e.l)&&(d=M(e.s),m=M(e.l),i=function(e,t,n){var o,r,c;function l(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=L(e,360),t=L(t,100),n=L(n,100),0===t)o=r=c=n;else{var i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;o=l(a,i,e+1/3),r=l(a,i,e),c=l(a,i,e-1/3)}return{r:255*o,g:255*r,b:255*c}}(e.h,d,m),p=!0,f="hsl"),e.hasOwnProperty("a")&&(a=e.a)),a=N(a),{ok:p,format:e.format||f,r:s(255,u(i.r,0)),g:s(255,u(i.g,0)),b:s(255,u(i.b,0)),a:a}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=a(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=n.ok,this._tc_id=i++}function m(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);var o,r,c=u(e,t,n),l=s(e,t,n),i=(c+l)/2;if(c==l)o=r=0;else{var a=c-l;switch(r=i>.5?a/(2-c-l):a/(c+l),c){case e:o=(t-n)/a+(t<n?6:0);break;case t:o=(n-e)/a+2;break;case n:o=(e-t)/a+4}o/=6}return{h:o,s:r,l:i}}function p(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);var o,r,c=u(e,t,n),l=s(e,t,n),i=c,a=c-l;if(r=0===c?0:a/c,c==l)o=0;else{switch(c){case e:o=(t-n)/a+(t<n?6:0);break;case t:o=(n-e)/a+2;break;case n:o=(e-t)/a+4}o/=6}return{h:o,s:r,v:i}}function f(e,t,n,o){var r=[A(a(e).toString(16)),A(a(t).toString(16)),A(a(n).toString(16))];return o&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function g(e,t,n,o){return[A(D(o)),A(a(e).toString(16)),A(a(t).toString(16)),A(a(n).toString(16))].join("")}function h(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s-=t/100,n.s=P(n.s),b(n)}function O(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s+=t/100,n.s=P(n.s),b(n)}function v(e){return b(e).desaturate(100)}function j(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l+=t/100,n.l=P(n.l),b(n)}function k(e,t){t=0===t?0:t||10;var n=b(e).toRgb();return n.r=u(0,s(255,n.r-a(-t/100*255))),n.g=u(0,s(255,n.g-a(-t/100*255))),n.b=u(0,s(255,n.b-a(-t/100*255))),b(n)}function _(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l-=t/100,n.l=P(n.l),b(n)}function y(e,t){var n=b(e).toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,b(n)}function E(e){var t=b(e).toHsl();return t.h=(t.h+180)%360,b(t)}function C(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+120)%360,s:t.s,l:t.l}),b({h:(n+240)%360,s:t.s,l:t.l})]}function S(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+90)%360,s:t.s,l:t.l}),b({h:(n+180)%360,s:t.s,l:t.l}),b({h:(n+270)%360,s:t.s,l:t.l})]}function w(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+72)%360,s:t.s,l:t.l}),b({h:(n+216)%360,s:t.s,l:t.l})]}function B(e,t,n){t=t||6,n=n||30;var o=b(e).toHsl(),r=360/n,c=[b(e)];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,c.push(b(o));return c}function I(e,t){t=t||6;for(var n=b(e).toHsv(),o=n.h,r=n.s,c=n.v,l=[],i=1/t;t--;)l.push(b({h:o,s:r,v:c})),c=(c+i)%1;return l}b.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,o=this.toRgb();return e=o.r/255,t=o.g/255,n=o.b/255,.2126*(e<=.03928?e/12.92:r.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:r.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:r.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=N(e),this._roundA=a(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=a(360*e.h),n=a(100*e.s),o=a(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+o+"%)":"hsva("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var e=m(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=m(this._r,this._g,this._b),t=a(360*e.h),n=a(100*e.s),o=a(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+o+"%)":"hsla("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(e){return f(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,o,r){var c=[A(a(e).toString(16)),A(a(t).toString(16)),A(a(n).toString(16)),A(D(o))];return r&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1)?c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0):c.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(100*L(this._r,255))+"%",g:a(100*L(this._g,255))+"%",b:a(100*L(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+a(100*L(this._r,255))+"%, "+a(100*L(this._g,255))+"%, "+a(100*L(this._b,255))+"%)":"rgba("+a(100*L(this._r,255))+"%, "+a(100*L(this._g,255))+"%, "+a(100*L(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[f(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var r=b(e);n="#"+g(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,o=this._a<1&&this._a>=0;return t||!o||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return b(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(h,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(y,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(B,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},b.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]="a"===o?e[o]:M(e[o]));e=n}return b(e,t)},b.equals=function(e,t){return!(!e||!t)&&b(e).toRgbString()==b(t).toRgbString()},b.random=function(){return b.fromRatio({r:d(),g:d(),b:d()})},b.mix=function(e,t,n){n=0===n?0:n||50;var o=b(e).toRgb(),r=b(t).toRgb(),c=n/100;return b({r:(r.r-o.r)*c+o.r,g:(r.g-o.g)*c+o.g,b:(r.b-o.b)*c+o.b,a:(r.a-o.a)*c+o.a})},b.readability=function(e,t){var n=b(e),o=b(t);return(r.max(n.getLuminance(),o.getLuminance())+.05)/(r.min(n.getLuminance(),o.getLuminance())+.05)},b.isReadable=function(e,t,n){var o,r,c,l,i,a=b.readability(e,t);switch(r=!1,(c=n,"AA"!==(l=((c=c||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==l&&(l="AA"),"small"!==(i=(c.size||"small").toLowerCase())&&"large"!==i&&(i="small"),o={level:l,size:i}).level+o.size){case"AAsmall":case"AAAlarge":r=a>=4.5;break;case"AAlarge":r=a>=3;break;case"AAAsmall":r=a>=7}return r},b.mostReadable=function(e,t,n){var o,r,c,l,i=null,a=0;r=(n=n||{}).includeFallbackColors,c=n.level,l=n.size;for(var s=0;s<t.length;s++)(o=b.readability(e,t[s]))>a&&(a=o,i=b(t[s]));return b.isReadable(e,i,{level:c,size:l})||!r?i:(n.includeFallbackColors=!1,b.mostReadable(e,["#fff","#000"],n))};var x=b.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T=b.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function N(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function L(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),r.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function P(e){return s(1,u(0,e))}function R(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function D(e){return r.round(255*parseFloat(e)).toString(16)}function F(e){return R(e)/255}var V,H,z,G=(H="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",z="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(e){return!!G.CSS_UNIT.exec(e)}e.exports?e.exports=b:void 0===(o=function(){return b}.call(t,n,t,e))||(e.exports=o)}(Math)},4:function(e,t){e.exports=window.wp.data},40:function(e,t){e.exports=window.wp.htmlEntities},402:function(e,t,n){"use strict";n.r(t),n.d(t,"__experimentalGetBorderClassesAndStyles",(function(){return tl})),n.d(t,"__experimentalUseBorderProps",(function(){return nl})),n.d(t,"__experimentalGetColorClassesAndStyles",(function(){return rl})),n.d(t,"__experimentalUseColorProps",(function(){return cl})),n.d(t,"__experimentalUseCustomSides",(function(){return Pc})),n.d(t,"getColorClassName",(function(){return Po})),n.d(t,"getColorObjectByAttributeValues",(function(){return No})),n.d(t,"getColorObjectByColorValue",(function(){return Lo})),n.d(t,"createCustomColorsHOC",(function(){return al})),n.d(t,"withColors",(function(){return sl})),n.d(t,"__experimentalGetGradientClass",(function(){return Ao})),n.d(t,"getGradientValueBySlug",(function(){return Mo})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return Do})),n.d(t,"getGradientSlugByValue",(function(){return Fo})),n.d(t,"__experimentalUseGradient",(function(){return Vo})),n.d(t,"getFontSize",(function(){return dc})),n.d(t,"getFontSizeClass",(function(){return mc})),n.d(t,"getFontSizeObjectByValue",(function(){return bc})),n.d(t,"FontSizePicker",(function(){return pc})),n.d(t,"withFontSizes",(function(){return dl})),n.d(t,"AlignmentControl",(function(){return Ol})),n.d(t,"AlignmentToolbar",(function(){return vl})),n.d(t,"Autocomplete",(function(){return Ml})),n.d(t,"BlockAlignmentControl",(function(){return io})),n.d(t,"BlockAlignmentToolbar",(function(){return ao})),n.d(t,"__experimentalBlockFullHeightAligmentControl",(function(){return Fl})),n.d(t,"__experimentalBlockAlignmentMatrixControl",(function(){return Vl})),n.d(t,"BlockBreadcrumb",(function(){return Gl})),n.d(t,"__experimentalBlockContentOverlay",(function(){return Ul})),n.d(t,"BlockContextProvider",(function(){return Kl})),n.d(t,"BlockControls",(function(){return Gn})),n.d(t,"BlockFormatControls",(function(){return zn})),n.d(t,"BlockColorsStyleSelector",(function(){return Ql})),n.d(t,"BlockEdit",(function(){return ei})),n.d(t,"useBlockEditContext",(function(){return h})),n.d(t,"BlockIcon",(function(){return Ll})),n.d(t,"BlockNavigationDropdown",(function(){return Uu})),n.d(t,"__experimentalBlockNavigationBlockFill",(function(){return Lu})),n.d(t,"__experimentalBlockNavigationEditor",(function(){return sd})),n.d(t,"__experimentalBlockNavigationTree",(function(){return zu})),n.d(t,"__experimentalBlockVariationPicker",(function(){return dd})),n.d(t,"__experimentalBlockPatternSetup",(function(){return vd})),n.d(t,"__experimentalBlockVariationTransforms",(function(){return kd})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return Id})),n.d(t,"BlockVerticalAlignmentControl",(function(){return Bd})),n.d(t,"__experimentalBorderStyleControl",(function(){return nr})),n.d(t,"ButtonBlockerAppender",(function(){return es})),n.d(t,"ButtonBlockAppender",(function(){return ts})),n.d(t,"ColorPalette",(function(){return Td})),n.d(t,"ColorPaletteControl",(function(){return Nd})),n.d(t,"ContrastChecker",(function(){return hr})),n.d(t,"__experimentalDuotoneControl",(function(){return Uc})),n.d(t,"__experimentalGradientPicker",(function(){return Rd})),n.d(t,"__experimentalGradientPickerControl",(function(){return Ad})),n.d(t,"__experimentalGradientPickerPanel",(function(){return Md})),n.d(t,"__experimentalFontAppearanceControl",(function(){return tc})),n.d(t,"__experimentalFontFamilyControl",(function(){return lc})),n.d(t,"__experimentalLetterSpacingControl",(function(){return vc})),n.d(t,"__experimentalColorGradientControl",(function(){return $o})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return fr})),n.d(t,"__experimentalImageSizeControl",(function(){return Fd})),n.d(t,"InnerBlocks",(function(){return Xd})),n.d(t,"__experimentalUseInnerBlocksProps",(function(){return Yd})),n.d(t,"InspectorAdvancedControls",(function(){return Oo})),n.d(t,"InspectorControls",(function(){return _o})),n.d(t,"JustifyToolbar",(function(){return rb})),n.d(t,"JustifyContentControl",(function(){return ob})),n.d(t,"__experimentalLinkControl",(function(){return Cb})),n.d(t,"__experimentalLinkControlSearchInput",(function(){return vb})),n.d(t,"__experimentalLinkControlSearchResults",(function(){return mb})),n.d(t,"__experimentalLinkControlSearchItem",(function(){return bb})),n.d(t,"LineHeightControl",(function(){return Xr})),n.d(t,"MediaReplaceFlow",(function(){return xb})),n.d(t,"MediaPlaceholder",(function(){return Ab})),n.d(t,"MediaUpload",(function(){return Bb})),n.d(t,"MediaUploadCheck",(function(){return Ib})),n.d(t,"PanelColorSettings",(function(){return Mb})),n.d(t,"PlainText",(function(){return Vb})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return zb})),n.d(t,"RichText",(function(){return ad})),n.d(t,"RichTextShortcut",(function(){return Gb})),n.d(t,"RichTextToolbarButton",(function(){return Ub})),n.d(t,"__unstableRichTextInputEvent",(function(){return Wb})),n.d(t,"ToolSelector",(function(){return $b})),n.d(t,"__experimentalUnitControl",(function(){return qb})),n.d(t,"URLInput",(function(){return sb})),n.d(t,"URLInputButton",(function(){return Zb})),n.d(t,"URLPopover",(function(){return Pb})),n.d(t,"__experimentalImageURLInputUI",(function(){return nm})),n.d(t,"withColorContext",(function(){return xd})),n.d(t,"__unstableBlockSettingsMenuFirstItem",(function(){return Ys})),n.d(t,"__unstableInserterMenuExtension",(function(){return Va})),n.d(t,"__experimentalPreviewOptions",(function(){return rm})),n.d(t,"__experimentalUseResizeCanvas",(function(){return dm})),n.d(t,"BlockInspector",(function(){return Om})),n.d(t,"BlockList",(function(){return gu})),n.d(t,"useBlockProps",(function(){return ju})),n.d(t,"__experimentalLayoutStyle",(function(){return eo})),n.d(t,"BlockMover",(function(){return vs})),n.d(t,"BlockPreview",(function(){return da})),n.d(t,"BlockSelectionClearer",(function(){return mu})),n.d(t,"__unstableUseBlockSelectionClearer",(function(){return bu})),n.d(t,"BlockSettingsMenu",(function(){return ru})),n.d(t,"BlockSettingsMenuControls",(function(){return eu})),n.d(t,"BlockTitle",(function(){return zl})),n.d(t,"BlockToolbar",(function(){return cu})),n.d(t,"BlockTools",(function(){return vm})),n.d(t,"CopyHandler",(function(){return Gs})),n.d(t,"__unstableUseClipboardHandler",(function(){return zs})),n.d(t,"DefaultBlockAppender",(function(){return Za})),n.d(t,"__unstableEditorStyles",(function(){return Dm})),n.d(t,"Inserter",(function(){return Qa})),n.d(t,"__experimentalLibrary",(function(){return Fm})),n.d(t,"__experimentalSearchForm",(function(){return ra})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return Hm})),n.d(t,"MultiSelectScrollIntoView",(function(){return zm})),n.d(t,"NavigableToolbar",(function(){return Os})),n.d(t,"ObserveTyping",(function(){return Km})),n.d(t,"__unstableUseTypingObserver",(function(){return Wm})),n.d(t,"__unstableUseMouseMoveTypingReset",(function(){return Um})),n.d(t,"PreserveScrollInReorder",(function(){return $m})),n.d(t,"SkipToSelectedBlock",(function(){return bm})),n.d(t,"Typewriter",(function(){return Qm})),n.d(t,"__unstableUseTypewriter",(function(){return Xm})),n.d(t,"Warning",(function(){return _i})),n.d(t,"WritingFlow",(function(){return cp})),n.d(t,"__unstableUseCanvasClickRedirect",(function(){return ip})),n.d(t,"useBlockDisplayInformation",(function(){return Hl})),n.d(t,"__unstableIframe",(function(){return up})),n.d(t,"__experimentalUseNoRecursiveRenders",(function(){return bp})),n.d(t,"BlockEditorProvider",(function(){return ia})),n.d(t,"__experimentalUseSimulatedMediaQuery",(function(){return um})),n.d(t,"useSetting",(function(){return Io})),n.d(t,"transformStyles",(function(){return Am})),n.d(t,"validateThemeColors",(function(){return mp})),n.d(t,"validateThemeGradients",(function(){return pp})),n.d(t,"__experimentalGetMatchingVariation",(function(){return jd})),n.d(t,"storeConfig",(function(){return Rn})),n.d(t,"store",(function(){return An})),n.d(t,"SETTINGS_DEFAULTS",(function(){return j}));var o={};n.r(o),n.d(o,"getBlockName",(function(){return A})),n.d(o,"isBlockValid",(function(){return M})),n.d(o,"getBlockAttributes",(function(){return D})),n.d(o,"getBlock",(function(){return F})),n.d(o,"__unstableGetBlockWithoutInnerBlocks",(function(){return V})),n.d(o,"getBlocks",(function(){return H})),n.d(o,"__unstableGetBlockWithBlockTree",(function(){return z})),n.d(o,"__unstableGetBlockTree",(function(){return G})),n.d(o,"__unstableGetClientIdWithClientIdsTree",(function(){return U})),n.d(o,"__unstableGetClientIdsTree",(function(){return W})),n.d(o,"getClientIdsOfDescendants",(function(){return K})),n.d(o,"getClientIdsWithDescendants",(function(){return $})),n.d(o,"getGlobalBlockCount",(function(){return q})),n.d(o,"getBlocksByClientId",(function(){return Y})),n.d(o,"getBlockCount",(function(){return X})),n.d(o,"getSelectionStart",(function(){return Q})),n.d(o,"getSelectionEnd",(function(){return Z})),n.d(o,"getBlockSelectionStart",(function(){return J})),n.d(o,"getBlockSelectionEnd",(function(){return ee})),n.d(o,"getSelectedBlockCount",(function(){return te})),n.d(o,"hasSelectedBlock",(function(){return ne})),n.d(o,"getSelectedBlockClientId",(function(){return oe})),n.d(o,"getSelectedBlock",(function(){return re})),n.d(o,"getBlockRootClientId",(function(){return ce})),n.d(o,"getBlockParents",(function(){return le})),n.d(o,"getBlockParentsByBlockName",(function(){return ie})),n.d(o,"getBlockHierarchyRootClientId",(function(){return ae})),n.d(o,"getLowestCommonAncestorWithSelectedBlock",(function(){return se})),n.d(o,"getAdjacentBlockClientId",(function(){return ue})),n.d(o,"getPreviousBlockClientId",(function(){return de})),n.d(o,"getNextBlockClientId",(function(){return be})),n.d(o,"getSelectedBlocksInitialCaretPosition",(function(){return me})),n.d(o,"getSelectedBlockClientIds",(function(){return pe})),n.d(o,"getMultiSelectedBlockClientIds",(function(){return fe})),n.d(o,"getMultiSelectedBlocks",(function(){return ge})),n.d(o,"getFirstMultiSelectedBlockClientId",(function(){return he})),n.d(o,"getLastMultiSelectedBlockClientId",(function(){return Oe})),n.d(o,"isFirstMultiSelectedBlock",(function(){return ve})),n.d(o,"isBlockMultiSelected",(function(){return je})),n.d(o,"isAncestorMultiSelected",(function(){return ke})),n.d(o,"getMultiSelectedBlocksStartClientId",(function(){return _e})),n.d(o,"getMultiSelectedBlocksEndClientId",(function(){return ye})),n.d(o,"getBlockOrder",(function(){return Ee})),n.d(o,"getBlockIndex",(function(){return Ce})),n.d(o,"isBlockSelected",(function(){return Se})),n.d(o,"hasSelectedInnerBlock",(function(){return we})),n.d(o,"isBlockWithinSelection",(function(){return Be})),n.d(o,"hasMultiSelection",(function(){return Ie})),n.d(o,"isMultiSelecting",(function(){return xe})),n.d(o,"isSelectionEnabled",(function(){return Te})),n.d(o,"getBlockMode",(function(){return Ne})),n.d(o,"isTyping",(function(){return Le})),n.d(o,"isDraggingBlocks",(function(){return Pe})),n.d(o,"getDraggedBlockClientIds",(function(){return Re})),n.d(o,"isBlockBeingDragged",(function(){return Ae})),n.d(o,"isAncestorBeingDragged",(function(){return Me})),n.d(o,"isCaretWithinFormattedText",(function(){return De})),n.d(o,"getBlockInsertionPoint",(function(){return Fe})),n.d(o,"isBlockInsertionPointVisible",(function(){return Ve})),n.d(o,"isValidTemplate",(function(){return He})),n.d(o,"getTemplate",(function(){return ze})),n.d(o,"getTemplateLock",(function(){return Ge})),n.d(o,"canInsertBlockType",(function(){return Ke})),n.d(o,"canInsertBlocks",(function(){return $e})),n.d(o,"getInserterItems",(function(){return Je})),n.d(o,"getBlockTransformItems",(function(){return et})),n.d(o,"hasInserterItems",(function(){return tt})),n.d(o,"__experimentalGetAllowedBlocks",(function(){return nt})),n.d(o,"__experimentalGetParsedPattern",(function(){return ot})),n.d(o,"__experimentalGetAllowedPatterns",(function(){return ct})),n.d(o,"__experimentalGetPatternsByBlockTypes",(function(){return lt})),n.d(o,"__experimentalGetPatternTransformItems",(function(){return it})),n.d(o,"getBlockListSettings",(function(){return at})),n.d(o,"getSettings",(function(){return st})),n.d(o,"isLastBlockChangePersistent",(function(){return ut})),n.d(o,"__experimentalGetBlockListSettingsForBlocks",(function(){return dt})),n.d(o,"__experimentalGetParsedReusableBlock",(function(){return bt})),n.d(o,"__experimentalGetReusableBlockTitle",(function(){return mt})),n.d(o,"__unstableIsLastBlockChangeIgnored",(function(){return pt})),n.d(o,"__experimentalGetLastBlockAttributeChanges",(function(){return ft})),n.d(o,"isNavigationMode",(function(){return ht})),n.d(o,"hasBlockMovingClientId",(function(){return Ot})),n.d(o,"didAutomaticChange",(function(){return vt})),n.d(o,"isBlockHighlighted",(function(){return jt})),n.d(o,"areInnerBlocksControlled",(function(){return kt})),n.d(o,"__experimentalGetActiveBlockIdByBlockNames",(function(){return _t})),n.d(o,"wasBlockJustInserted",(function(){return yt}));var r={};n.r(r),n.d(r,"resetBlocks",(function(){return Tt})),n.d(r,"validateBlocksToTemplate",(function(){return Nt})),n.d(r,"resetSelection",(function(){return Lt})),n.d(r,"receiveBlocks",(function(){return Pt})),n.d(r,"updateBlockAttributes",(function(){return Rt})),n.d(r,"updateBlock",(function(){return At})),n.d(r,"selectBlock",(function(){return Mt})),n.d(r,"selectPreviousBlock",(function(){return Dt})),n.d(r,"selectNextBlock",(function(){return Ft})),n.d(r,"startMultiSelect",(function(){return Vt})),n.d(r,"stopMultiSelect",(function(){return Ht})),n.d(r,"multiSelect",(function(){return zt})),n.d(r,"clearSelectedBlock",(function(){return Gt})),n.d(r,"toggleSelection",(function(){return Ut})),n.d(r,"replaceBlocks",(function(){return Kt})),n.d(r,"replaceBlock",(function(){return $t})),n.d(r,"moveBlocksDown",(function(){return Yt})),n.d(r,"moveBlocksUp",(function(){return Xt})),n.d(r,"moveBlocksToPosition",(function(){return Qt})),n.d(r,"moveBlockToPosition",(function(){return Zt})),n.d(r,"insertBlock",(function(){return Jt})),n.d(r,"insertBlocks",(function(){return en})),n.d(r,"showInsertionPoint",(function(){return tn})),n.d(r,"hideInsertionPoint",(function(){return nn})),n.d(r,"setTemplateValidity",(function(){return on})),n.d(r,"synchronizeTemplate",(function(){return rn})),n.d(r,"mergeBlocks",(function(){return cn})),n.d(r,"removeBlocks",(function(){return ln})),n.d(r,"removeBlock",(function(){return an})),n.d(r,"replaceInnerBlocks",(function(){return sn})),n.d(r,"toggleBlockMode",(function(){return un})),n.d(r,"startTyping",(function(){return dn})),n.d(r,"stopTyping",(function(){return bn})),n.d(r,"startDraggingBlocks",(function(){return mn})),n.d(r,"stopDraggingBlocks",(function(){return pn})),n.d(r,"enterFormattedText",(function(){return fn})),n.d(r,"exitFormattedText",(function(){return gn})),n.d(r,"selectionChange",(function(){return hn})),n.d(r,"insertDefaultBlock",(function(){return On})),n.d(r,"updateBlockListSettings",(function(){return vn})),n.d(r,"updateSettings",(function(){return jn})),n.d(r,"__unstableSaveReusableBlock",(function(){return kn})),n.d(r,"__unstableMarkLastChangeAsPersistent",(function(){return yn})),n.d(r,"__unstableMarkNextChangeAsNotPersistent",(function(){return En})),n.d(r,"__unstableMarkAutomaticChange",(function(){return Cn})),n.d(r,"__unstableMarkAutomaticChangeFinal",(function(){return Sn})),n.d(r,"setNavigationMode",(function(){return wn})),n.d(r,"setBlockMovingClientId",(function(){return Bn})),n.d(r,"duplicateBlocks",(function(){return In})),n.d(r,"insertBeforeBlock",(function(){return xn})),n.d(r,"insertAfterBlock",(function(){return Tn})),n.d(r,"toggleBlockHighlight",(function(){return Nn})),n.d(r,"flashBlock",(function(){return Ln})),n.d(r,"setHasControlledInnerBlocks",(function(){return Pn}));var c=n(7),l=n(0),i=n(10),a=n.n(i),s=n(2),u=n(9),d=n(20),b=n(8),m=n(3),p=n(4);const f=Object(l.createContext)({name:"",isSelected:!1,clientId:null}),{Provider:g}=f;function h(){return Object(l.useContext)(f)}var O=n(1);const v={insertUsage:{}},j={alignWide:!1,supportsLayout:!0,colors:[{name:Object(O.__)("Black"),slug:"black",color:"#000000"},{name:Object(O.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(O.__)("White"),slug:"white",color:"#ffffff"},{name:Object(O.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(O.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(O.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(O.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(O.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(O.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(O.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(O.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(O.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(O._x)("Small","font size name"),size:13,slug:"small"},{name:Object(O._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(O._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(O._x)("Large","font size name"),size:36,slug:"large"},{name:Object(O._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:Object(O.__)("Thumbnail")},{slug:"medium",name:Object(O.__)("Medium")},{slug:"large",name:Object(O.__)("Large")},{slug:"full",name:Object(O.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],gradients:[{name:Object(O.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(O.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(O.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(O.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(O.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(O.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(O.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(O.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(O.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(O.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(O.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(O.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function k(e,t,n){return[...e.slice(0,n),...Object(s.castArray)(t),...e.slice(n)]}function _(e,t,n,o=1){const r=[...e];return r.splice(t,o),k(r,e.slice(t,t+o),n)}function y(e,t=""){const n={[t]:[]};return e.forEach(e=>{const{clientId:o,innerBlocks:r}=e;n[t].push(o),Object.assign(n,y(r,o))}),n}function E(e,t=""){return e.reduce((e,n)=>Object.assign(e,{[n.clientId]:t},E(n.innerBlocks,n.clientId)),{})}function C(e,t=s.identity){const n={},o=[...e];for(;o.length;){const{innerBlocks:e,...r}=o.shift();o.push(...e),n[r.clientId]=t(r)}return n}function S(e){return C(e,e=>Object(s.omit)(e,"attributes"))}function w(e){return C(e,e=>e.attributes)}function B(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(s.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,o=t.attributes,Object(s.isEqual)(Object(s.keys)(n),Object(s.keys)(o)));var n,o}const I=e=>e.reduce((e,t)=>(e[t]={},e),{}),x=Object(s.flow)(p.combineReducers,e=>(t,n)=>{if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){const{id:e,updatedId:o}=n;if(e===o)return t;(t={...t}).attributes=Object(s.mapValues)(t.attributes,(n,r)=>{const{name:c}=t.byClientId[r];return"core/block"===c&&n.ref===e?{...n,ref:o}:n})}return e(t,n)},e=>(t={},n)=>{const o=e(t,n);if(o===t)return t;o.cache=t.cache?t.cache:{};const r=e=>e.reduce((e,n)=>{let o=n;do{e.push(o),o=t.parents[o]}while(o&&!t.controlledInnerBlocks[o]);return e},[]);switch(n.type){case"RESET_BLOCKS":o.cache=Object(s.mapValues)(C(n.blocks),()=>({}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const e=Object(s.keys)(C(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&e.push(n.rootClientId),o.cache={...o.cache,...I(r(e))};break}case"UPDATE_BLOCK":o.cache={...o.cache,...I(r([n.clientId]))};break;case"UPDATE_BLOCK_ATTRIBUTES":o.cache={...o.cache,...I(r(n.clientIds))};break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=I(r(n.replacedClientIds));o.cache={...Object(s.omit)(o.cache,n.replacedClientIds),...Object(s.omit)(e,n.replacedClientIds),...I(Object(s.keys)(C(n.blocks)))};break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":o.cache={...Object(s.omit)(o.cache,n.removedClientIds),...I(Object(s.difference)(r(n.clientIds),n.clientIds))};break;case"MOVE_BLOCKS_TO_POSITION":{const e=[...n.clientIds];n.fromRootClientId&&e.push(n.fromRootClientId),n.toRootClientId&&e.push(n.toRootClientId),o.cache={...o.cache,...I(r(e))};break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[];n.rootClientId&&e.push(n.rootClientId),o.cache={...o.cache,...I(r(e))};break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=Object(s.keys)(Object(s.omitBy)(o.attributes,(e,t)=>"core/block"!==o.byClientId[t].name||e.ref!==n.updatedId));o.cache={...o.cache,...I(r(e))}}}return o},e=>(t,n)=>{const o=e=>{let o=e;for(let r=0;r<o.length;r++)!t.order[o[r]]||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[o[r]]||(o===e&&(o=[...o]),o.push(...t.order[o[r]]));return o};if(t)switch(n.type){case"REMOVE_BLOCKS":n={...n,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:o(n.clientIds)};break;case"REPLACE_BLOCKS":n={...n,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:o(n.clientIds)}}return e(t,n)},e=>(t,n)=>{if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);const o={};if(Object.keys(t.controlledInnerBlocks).length){const e=[...n.blocks];for(;e.length;){const{innerBlocks:n,...r}=e.shift();e.push(...n),t.controlledInnerBlocks[r.clientId]&&(o[r.clientId]=!0)}}let r=t;t.order[n.rootClientId]&&(r=e(r,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order[n.rootClientId]}));let c=r;return n.blocks.length&&(c=e(c,{...n,type:"INSERT_BLOCKS",index:0}),c.order={...c.order,...Object(s.reduce)(o,(e,n,o)=>(t.order[o]&&(e[o]=t.order[o]),e),{})}),c},e=>(t,n)=>{if(t&&"RESET_BLOCKS"===n.type){const e=function e(t,n="",o={}){return Object(s.reduce)(t[n],(n,r)=>o[r]?n:[...n,r,...e(t,r)],[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(s.pickBy)(t.controlledInnerBlocks));return{...t,byClientId:{...Object(s.omit)(t.byClientId,e),...S(n.blocks)},attributes:{...Object(s.omit)(t.attributes,e),...w(n.blocks)},order:{...Object(s.omit)(t.order,e),...Object(s.omit)(y(n.blocks),o)},parents:{...Object(s.omit)(t.parents,e),...E(n.blocks)},cache:{...Object(s.omit)(t.cache,e),...Object(s.omit)(Object(s.mapValues)(C(n.blocks),()=>({})),o)}}}return e(t,n)},(function(e){let t,n=!1;return(o,r)=>{let c=e(o,r);const l="MARK_LAST_CHANGE_AS_PERSISTENT"===r.type||n;if(o===c&&!l){var i;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type;const e=null===(i=null==o?void 0:o.isPersistentChange)||void 0===i||i;return o.isPersistentChange===e?o:{...c,isPersistentChange:e}}return c={...c,isPersistentChange:l?!n:!B(r,t)},t=r,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type,c}}),(function(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,o)=>{const r=e(n,o);return r!==n&&(r.isIgnoredChange=t.has(o.type)),r}}))({byClientId(e={},t){switch(t.type){case"RESET_BLOCKS":return S(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...S(t.blocks)};case"UPDATE_BLOCK":if(!e[t.clientId])return e;const n=Object(s.omit)(t.updates,"attributes");return Object(s.isEmpty)(n)?e:{...e,[t.clientId]:{...e[t.clientId],...n}};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...Object(s.omit)(e,t.replacedClientIds),...S(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(s.omit)(e,t.removedClientIds)}return e},attributes(e={},t){switch(t.type){case"RESET_BLOCKS":return w(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...w(t.blocks)};case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?{...e,[t.clientId]:{...e[t.clientId],...t.updates.attributes}}:e;case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every(t=>!e[t]))return e;const n=t.clientIds.reduce((n,o)=>({...n,[o]:Object(s.reduce)(t.uniqueByBlock?t.attributes[o]:t.attributes,(t,n,r)=>{var c,l;return n!==t[r]&&((t=(c=e[o])===(l=t)?{...c}:l)[r]=n),t},e[o])}),{});return t.clientIds.every(t=>n[t]===e[t])?e:{...e,...n}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...Object(s.omit)(e,t.replacedClientIds),...w(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(s.omit)(e,t.removedClientIds)}return e},order(e={},t){switch(t.type){case"RESET_BLOCKS":return y(t.blocks);case"RECEIVE_BLOCKS":return{...e,...Object(s.omit)(y(t.blocks),"")};case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e[n]||[],r=y(t.blocks,n),{index:c=o.length}=t;return{...e,...r,[n]:k(o,r[n],c)}}case"MOVE_BLOCKS_TO_POSITION":{const{fromRootClientId:n="",toRootClientId:o="",clientIds:r}=t,{index:c=e[o].length}=t;if(n===o){const t=e[o].indexOf(r[0]);return{...e,[o]:_(e[o],t,c,r.length)}}return{...e,[n]:Object(s.without)(e[n],...r),[o]:k(e[o],r,c)}}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,r=Object(s.first)(n),c=e[o];if(!c.length||r===Object(s.first)(c))return e;const l=c.indexOf(r);return{...e,[o]:_(c,l,l-1,n.length)}}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,r=Object(s.first)(n),c=Object(s.last)(n),l=e[o];if(!l.length||c===Object(s.last)(l))return e;const i=l.indexOf(r);return{...e,[o]:_(l,i,i+1,n.length)}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const o=y(t.blocks);return Object(s.flow)([e=>Object(s.omit)(e,t.replacedClientIds),e=>({...e,...Object(s.omit)(o,"")}),e=>Object(s.mapValues)(e,e=>Object(s.reduce)(e,(e,t)=>t===n[0]?[...e,...o[""]]:(-1===n.indexOf(t)&&e.push(t),e),[]))])(e)}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(s.flow)([e=>Object(s.omit)(e,t.removedClientIds),e=>Object(s.mapValues)(e,e=>Object(s.without)(e,...t.removedClientIds))])(e)}return e},parents(e={},t){switch(t.type){case"RESET_BLOCKS":return E(t.blocks);case"RECEIVE_BLOCKS":return{...e,...E(t.blocks)};case"INSERT_BLOCKS":return{...e,...E(t.blocks,t.rootClientId||"")};case"MOVE_BLOCKS_TO_POSITION":return{...e,...t.clientIds.reduce((e,n)=>(e[n]=t.toRootClientId||"",e),{})};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return{...Object(s.omit)(e,t.replacedClientIds),...E(t.blocks,e[t.clientIds[0]])};case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(s.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks:(e={},{type:t,clientId:n,hasControlledInnerBlocks:o})=>"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:o}:e});function T(e={},t){switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":{if(-1===t.clientIds.indexOf(e.clientId))return e;const n=t.indexToSelect||t.blocks.length-1,o=t.blocks[n];return o?o.clientId===e.clientId?e:{clientId:o.clientId}:{}}}return e}var N=Object(p.combineReducers)({blocks:x,isTyping:function(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(e=!1,t){switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selection:function(e={},t){var n,o;switch(t.type){case"SELECTION_CHANGE":return{selectionStart:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},selectionEnd:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}};case"RESET_SELECTION":const{selectionStart:r,selectionEnd:c}=t;return{selectionStart:r,selectionEnd:c};case"MULTI_SELECT":const{start:l,end:i}=t;return{selectionStart:{clientId:l},selectionEnd:{clientId:i}};case"RESET_BLOCKS":const a=null==e||null===(n=e.selectionStart)||void 0===n?void 0:n.clientId,s=null==e||null===(o=e.selectionEnd)||void 0===o?void 0:o.clientId;if(!a&&!s)return e;if(!t.blocks.some(e=>e.clientId===a))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some(e=>e.clientId===s))return{...e,selectionEnd:e.selectionStart}}return{selectionStart:T(e.selectionStart,t),selectionEnd:T(e.selectionEnd,t)}},isMultiSelecting:function(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(e=!0,t){switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(e=null,t){return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(e={},t){if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:(e={},t)=>{switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(s.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId:n}=t;return t.settings?Object(s.isEqual)(e[n],t.settings)?e:{...e,[n]:t.settings}:e.hasOwnProperty(n)?Object(s.omit)(e,n):e}}return e},insertionPoint:function(e=null,t){switch(t.type){case"SHOW_INSERTION_POINT":const{rootClientId:e,index:n,__unstableWithInserter:o}=t;return{rootClientId:e,index:n,__unstableWithInserter:o};case"HIDE_INSERTION_POINT":return null}return e},template:function(e={isValid:!0},t){switch(t.type){case"SET_TEMPLATE_VALIDITY":return{...e,isValid:t.isValid}}return e},settings:function(e=j,t){switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings}}return e},preferences:function(e=v,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((e,n)=>{const{attributes:o,name:r}=n,c=Object(p.select)(b.store).getActiveBlockVariation(r,o);let l=null!=c&&c.name?`${r}/${c.name}`:r;const i={name:l};return"core/block"===r&&(i.ref=o.ref,l+="/"+o.ref),{...e,insertUsage:{...e.insertUsage,[l]:{time:t.time,count:e.insertUsage[l]?e.insertUsage[l].count+1:1,insert:i}}}},e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((e,n)=>({...e,[n]:t.uniqueByBlock?t.attributes[n]:t.attributes}),{})}return null},isNavigationMode:function(e=!1,t){return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},hasBlockMovingClientId:function(e=null,t){return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_NAVIGATION_MODE"===t.type?null:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"START_TYPING":case"STOP_TYPING":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(e={},t){var n;switch(t.type){case"INSERT_BLOCKS":return t.blocks.length?{clientId:t.blocks[0].clientId,source:null===(n=t.meta)||void 0===n?void 0:n.source}:e;case"RESET_BLOCKS":return{}}return e}}),L=n(29);const P=Object(l.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(m.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(l.createElement)(m.G,null,Object(l.createElement)(m.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"}))),R=[];function A(e,t){const n=e.blocks.byClientId[t];if("web"!==l.Platform.OS&&"core/social-link"===(null==n?void 0:n.name)){const n=e.blocks.attributes[t],{service:o}=n;return o?"core/social-link-"+o:"core/social-link"}return n?n.name:null}function M(e,t){const n=e.blocks.byClientId[t];return!!n&&n.isValid}function D(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}const F=Object(L.a)((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:D(e,t),innerBlocks:kt(e,t)?R:H(e,t)}:null},(e,t)=>[e.blocks.cache[t]]),V=Object(L.a)((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:D(e,t)}:null},(e,t)=>[e.blocks.byClientId[t],e.blocks.attributes[t]]),H=Object(L.a)((e,t)=>Object(s.map)(Ee(e,t),t=>F(e,t)),(e,t)=>Object(s.map)(e.blocks.order[t||""],t=>e.blocks.cache[t])),z=Object(L.a)((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:D(e,t),innerBlocks:G(e,t)}:null},e=>[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]),G=Object(L.a)((e,t="")=>Object(s.map)(Ee(e,t),t=>z(e,t)),e=>[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]),U=Object(L.a)((e,t)=>({clientId:t,innerBlocks:W(e,t)}),e=>[e.blocks.order]),W=Object(L.a)((e,t="")=>Object(s.map)(Ee(e,t),t=>U(e,t)),e=>[e.blocks.order]),K=(e,t)=>Object(s.flatMap)(t,t=>{const n=Ee(e,t);return[...n,...K(e,n)]}),$=Object(L.a)(e=>{const t=Ee(e);return[...t,...K(e,t)]},e=>[e.blocks.order]),q=Object(L.a)((e,t)=>{const n=$(e);return t?Object(s.reduce)(n,(n,o)=>e.blocks.byClientId[o].name===t?n+1:n,0):n.length},e=>[e.blocks.order,e.blocks.byClientId]),Y=Object(L.a)((e,t)=>Object(s.map)(Object(s.castArray)(t),t=>F(e,t)),e=>[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]);function X(e,t){return Ee(e,t).length}function Q(e){return e.selection.selectionStart}function Z(e){return e.selection.selectionEnd}function J(e){return e.selection.selectionStart.clientId}function ee(e){return e.selection.selectionEnd.clientId}function te(e){return fe(e).length||(e.selection.selectionStart.clientId?1:0)}function ne(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function oe(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function re(e){const t=oe(e);return t?F(e,t):null}function ce(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}const le=Object(L.a)((e,t,n=!1)=>{const o=[];let r=t;for(;e.blocks.parents[r];)r=e.blocks.parents[r],o.push(r);return n?o:o.reverse()},e=>[e.blocks.parents]),ie=Object(L.a)((e,t,n,o=!1)=>{const r=le(e,t,o);return Object(s.map)(Object(s.filter)(Object(s.map)(r,t=>({id:t,name:A(e,t)})),({name:e})=>Array.isArray(n)?n.includes(e):e===n),({id:e})=>e)},e=>[e.blocks.parents]);function ae(e,t){let n,o=t;do{n=o,o=e.blocks.parents[o]}while(o);return n}function se(e,t){const n=oe(e),o=[...le(e,t),t],r=[...le(e,n),n];let c;const l=Math.min(o.length,r.length);for(let e=0;e<l&&o[e]===r[e];e++)c=o[e];return c}function ue(e,t,n=1){if(void 0===t&&(t=oe(e)),void 0===t&&(t=n<0?he(e):Oe(e)),!t)return null;const o=ce(e,t);if(null===o)return null;const{order:r}=e.blocks,c=r[o],l=c.indexOf(t)+1*n;return l<0||l===c.length?null:c[l]}function de(e,t){return ue(e,t,-1)}function be(e,t){return ue(e,t,1)}function me(e){return e.initialPosition}const pe=Object(L.a)(e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(void 0===t.clientId||void 0===n.clientId)return R;if(t.clientId===n.clientId)return[t.clientId];const o=ce(e,t.clientId);if(null===o)return R;const r=Ee(e,o),c=r.indexOf(t.clientId),l=r.indexOf(n.clientId);return c>l?r.slice(l,c+1):r.slice(c,l+1)},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function fe(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?R:pe(e)}const ge=Object(L.a)(e=>{const t=fe(e);return t.length?t.map(t=>F(e,t)):R},e=>[...pe.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]);function he(e){return Object(s.first)(fe(e))||null}function Oe(e){return Object(s.last)(fe(e))||null}function ve(e,t){return he(e)===t}function je(e,t){return-1!==fe(e).indexOf(t)}const ke=Object(L.a)((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=ce(e,n),o=je(e,n);return o},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function _e(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function ye(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function Ee(e,t){return e.blocks.order[t||""]||R}function Ce(e,t,n){return Ee(e,n).indexOf(t)}function Se(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function we(e,t,n=!1){return Object(s.some)(Ee(e,t),t=>Se(e,t)||je(e,t)||n&&we(e,t,n))}function Be(e,t){if(!t)return!1;const n=fe(e),o=n.indexOf(t);return o>-1&&o<n.length-1}function Ie(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function xe(e){return e.isMultiSelecting}function Te(e){return e.isSelectionEnabled}function Ne(e,t){return e.blocksMode[t]||"visual"}function Le(e){return e.isTyping}function Pe(e){return!!e.draggedBlocks.length}function Re(e){return e.draggedBlocks}function Ae(e,t){return e.draggedBlocks.includes(t)}function Me(e,t){if(!Pe(e))return!1;const n=le(e,t);return Object(s.some)(n,t=>Ae(e,t))}function De(e){return e.isCaretWithinFormattedText}function Fe(e){let t,n;const{insertionPoint:o,selection:{selectionEnd:r}}=e;if(null!==o)return o;const{clientId:c}=r;return c?(t=ce(e,c)||void 0,n=Ce(e,r.clientId,t)+1):n=Ee(e).length,{rootClientId:t,index:n}}function Ve(e){return null!==e.insertionPoint}function He(e){return e.template.isValid}function ze(e){return e.settings.template}function Ge(e,t){if(!t)return e.settings.templateLock;const n=at(e,t);return n?n.templateLock:null}const Ue=(e,t,n=null)=>Object(s.isBoolean)(e)?e:Object(s.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n,We=(e,t,n=null)=>{let o;if(t&&"object"==typeof t?(o=t,t=o.name):o=Object(b.getBlockType)(t),!o)return!1;const{allowedBlockTypes:r}=st(e);if(!Ue(r,t,!0))return!1;if(Ge(e,n))return!1;const c=at(e,n);if(n&&void 0===c)return!1;const l=null==c?void 0:c.allowedBlocks,i=Ue(l,t),a=o.parent,s=A(e,n),u=Ue(a,s);return null!==i&&null!==u?i||u:null!==i?i:null===u||u},Ke=Object(L.a)(We,(e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]);function $e(e,t,n=null){return t.every(t=>Ke(e,A(e,t),n))}function qe(e,t){var n,o;return null!==(n=null===(o=e.preferences.insertUsage)||void 0===o?void 0:o[t])&&void 0!==n?n:null}const Ye=(e,t,n)=>!!Object(b.hasBlockSupport)(t,"inserter",!0)&&We(e,t.name,n),Xe=(e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:c=0}=qe(e,o)||{};return{...t,id:o,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:{...t.initialAttributes,...n.attributes},innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:Qe(r,c)}},Qe=(e,t)=>{if(!e)return t;const n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},Ze=(e,{buildScope:t="inserter"})=>n=>{const o=n.name;let r=!1;Object(b.hasBlockSupport)(n.name,"multiple",!0)||(r=Object(s.some)(Y(e,$(e)),{name:n.name}));const{time:c,count:l=0}=qe(e,o)||{},i={id:o,name:n.name,title:n.title,icon:n.icon,isDisabled:r,frecency:Qe(c,l)};if("transform"===t)return i;const a=n.variations.filter(({scope:e})=>!e||e.includes("inserter"));return{...i,initialAttributes:{},description:n.description,category:n.category,keywords:n.keywords,variations:a,example:n.example,utility:1}},Je=Object(L.a)((e,t=null)=>{const n=Ze(e,{buildScope:"inserter"}),o=Object(b.getBlockTypes)().filter(n=>Ye(e,n,t)).map(n),r=We(e,"core/block",t)?gt(e).map(t=>{const n="core/block/"+t.id,o=bt(e,t.id);let r;1===o.length&&(r=Object(b.getBlockType)(o[0].name));const{time:c,count:l=0}=qe(e,n)||{},i=Qe(c,l);return{id:n,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:r?r.icon:P,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:i}}):[],c=o.filter(({variations:e=[]})=>!e.some(({isDefault:e})=>e)),l=[];for(const t of o){const{variations:n=[]}=t;if(n.length){const o=Xe(e,t);l.push(...n.map(o))}}return[...[...c,...l].sort((e,t)=>{const n=e.name.startsWith("core/"),o=t.name.startsWith("core/");return n&&o?0:n&&!o?-1:1}),...r]},(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,gt(e),Object(b.getBlockTypes)()]),et=Object(L.a)((e,t,n=null)=>{const o=Ze(e,{buildScope:"transform"}),r=Object(b.getBlockTypes)().filter(t=>Ye(e,t,n)).map(o),c=Object(s.mapKeys)(r,({name:e})=>e),l=Object(b.getPossibleBlockTransformations)(t).reduce((e,t)=>(c[null==t?void 0:t.name]&&e.push(c[t.name]),e),[]);return Object(s.orderBy)(l,e=>c[e.name].frecency,"desc")},(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Object(b.getBlockTypes)()]),tt=Object(L.a)((e,t=null)=>!!Object(s.some)(Object(b.getBlockTypes)(),n=>Ye(e,n,t))||We(e,"core/block",t)&&gt(e).length>0,(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,gt(e),Object(b.getBlockTypes)()]),nt=Object(L.a)((e,t=null)=>{if(t)return Object(s.filter)(Object(b.getBlockTypes)(),n=>Ye(e,n,t))},(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(b.getBlockTypes)()]),ot=Object(L.a)((e,t)=>{const n=e.settings.__experimentalBlockPatterns.find(({name:e})=>e===t);return n?{...n,blocks:Object(b.parse)(n.content)}:null},e=>[e.settings.__experimentalBlockPatterns]),rt=Object(L.a)(e=>{const t=e.settings.__experimentalBlockPatterns,{allowedBlockTypes:n}=st(e);return t.map(({name:t})=>ot(e,t)).filter(({blocks:e})=>((e,t)=>{if(Object(s.isBoolean)(t))return t;const n=[...e];for(;n.length>0;){var o;const e=n.shift();if(!Ue(t,e.name||e.blockName,!0))return!1;null===(o=e.innerBlocks)||void 0===o||o.forEach(e=>{n.push(e)})}return!0})(e,n))},e=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes]),ct=Object(L.a)((e,t=null)=>{const n=rt(e);return Object(s.filter)(n,({blocks:n})=>n.every(({name:n})=>Ke(e,n,t)))},(e,t)=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId[t]]),lt=Object(L.a)((e,t,n=null)=>{if(!t)return R;const o=ct(e,n),r=Array.isArray(t)?t:[t];return o.filter(e=>{var t,n;return null==e||null===(t=e.blockTypes)||void 0===t||null===(n=t.some)||void 0===n?void 0:n.call(t,e=>r.includes(e))})},(e,t)=>[...ct.getDependants(e,t)]),it=Object(L.a)((e,t,n=null)=>{if(!t)return R;if(t.some(({clientId:t,innerBlocks:n})=>n.length||kt(e,t)))return R;const o=Array.from(new Set(t.map(({name:e})=>e)));return lt(e,o,n)},(e,t)=>[...lt.getDependants(e,t)]);function at(e,t){return e.blockListSettings[t]}function st(e){return e.settings}function ut(e){return e.blocks.isPersistentChange}const dt=Object(L.a)((e,t=[])=>t.reduce((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t,{}),e=>[e.blockListSettings]),bt=Object(L.a)((e,t)=>{const n=Object(s.find)(gt(e),e=>e.id===t);return n?Object(b.parse)("string"==typeof n.content.raw?n.content.raw:n.content):null},e=>[gt(e)]),mt=Object(L.a)((e,t)=>{var n;const o=Object(s.find)(gt(e),e=>e.id===t);return o?null===(n=o.title)||void 0===n?void 0:n.raw:null},e=>[gt(e)]);function pt(e){return e.blocks.isIgnoredChange}function ft(e){return e.lastBlockAttributesChange}function gt(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:R}function ht(e){return e.isNavigationMode}function Ot(e){return e.hasBlockMovingClientId}function vt(e){return!!e.automaticChangeStatus}function jt(e,t){return e.highlightedBlock===t}function kt(e,t){return!!e.blocks.controlledInnerBlocks[t]}const _t=Object(L.a)((e,t)=>{if(!t.length)return null;const n=oe(e);if(t.includes(A(e,n)))return n;const o=fe(e),r=ie(e,n||o[0],t);return r?Object(s.last)(r):null},(e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]);function yt(e,t,n){const{lastBlockInserted:o}=e;return o.clientId===t&&o.source===n}var Et=n(30),Ct=n(15),St=n(25),wt=n.n(St),Bt={SLEEP:({duration:e})=>new Promise(t=>{setTimeout(t,e)}),MARK_AUTOMATIC_CHANGE_FINAL_CONTROL:Object(p.createRegistryControl)(e=>()=>{const{requestIdleCallback:t=(e=>setTimeout(e,100))}=window;t(()=>e.dispatch(An).__unstableMarkAutomaticChangeFinal())})};const It="core/block-editor";function*xt(){if(0===(yield p.controls.select(It,"getBlockCount"))){const{__unstableHasCustomAppender:e}=yield p.controls.select(It,"getSettings");if(e)return;return yield On()}}function*Tt(e){return yield{type:"RESET_BLOCKS",blocks:e},yield*Nt(e)}function*Nt(e){const t=yield p.controls.select(It,"getTemplate"),n=yield p.controls.select(It,"getTemplateLock"),o=!t||"all"!==n||Object(b.doBlocksMatchTemplate)(e,t);if(o!==(yield p.controls.select(It,"isValidTemplate")))return yield on(o),o}function Lt(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function Pt(e){return{type:"RECEIVE_BLOCKS",blocks:e}}function Rt(e,t,n=!1){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:Object(s.castArray)(e),attributes:t,uniqueByBlock:n}}function At(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function Mt(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function*Dt(e){const t=yield p.controls.select(It,"getPreviousBlockClientId",e);if(t)return yield Mt(t,-1),[t]}function*Ft(e){const t=yield p.controls.select(It,"getNextBlockClientId",e);if(t)return yield Mt(t),[t]}function Vt(){return{type:"START_MULTI_SELECT"}}function Ht(){return{type:"STOP_MULTI_SELECT"}}function*zt(e,t){if((yield p.controls.select(It,"getBlockRootClientId",e))!==(yield p.controls.select(It,"getBlockRootClientId",t)))return;yield{type:"MULTI_SELECT",start:e,end:t};const n=yield p.controls.select(It,"getSelectedBlockCount");Object(Et.speak)(Object(O.sprintf)(
2
  /* translators: %s: number of selected blocks */
3
+ Object(O._n)("%s block selected.","%s blocks selected.",n),n),"assertive")}function Gt(){return{type:"CLEAR_SELECTED_BLOCK"}}function Ut(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function Wt(e,t){var n,o;const r=null!==(n=null==t||null===(o=t.__experimentalPreferredStyleVariations)||void 0===o?void 0:o.value)&&void 0!==n?n:{};return e.map(e=>{var t;const n=e.name;if(!Object(b.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!r[n])return e;const o=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null!=o&&o.includes("is-style-"))return e;const{attributes:c={}}=e,l=r[n];return{...e,attributes:{...c,className:`${o||""} is-style-${l}`.trim()}}})}function*Kt(e,t,n,o=0,r){e=Object(s.castArray)(e),t=Wt(Object(s.castArray)(t),yield p.controls.select(It,"getSettings"));const c=yield p.controls.select(It,"getBlockRootClientId",Object(s.first)(e));for(let e=0;e<t.length;e++){const n=t[e];if(!(yield p.controls.select(It,"canInsertBlockType",n.name,c)))return}yield{type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:r},yield*xt()}function $t(e,t){return Kt(e,t)}function qt(e){return(t,n)=>({clientIds:Object(s.castArray)(t),type:e,rootClientId:n})}const Yt=qt("MOVE_BLOCKS_DOWN"),Xt=qt("MOVE_BLOCKS_UP");function*Qt(e,t="",n="",o){const r=yield p.controls.select(It,"getTemplateLock",t);if("all"===r)return;const c={type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o};t!==n?"insert"!==r&&(yield p.controls.select(It,"canInsertBlocks",e,n))&&(yield c):yield c}function*Zt(e,t="",n="",o){yield Qt([e],t,n,o)}function Jt(e,t,n,o=!0,r){return en([e],t,n,o,0,r)}function*en(e,t,n,o=!0,r=0,c){Object(s.isObject)(r)&&(c=r,r=0,wt()("meta argument in wp.data.dispatch('core/block-editor')",{since:"10.1",plugin:"Gutenberg",hint:"The meta argument is now the 6th argument of the function"})),e=Wt(Object(s.castArray)(e),yield p.controls.select(It,"getSettings"));const l=[];for(const t of e)(yield p.controls.select(It,"canInsertBlockType",t.name,n))&&l.push(t);if(l.length)return{type:"INSERT_BLOCKS",blocks:l,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:c}}function tn(e,t,n={}){const{__unstableWithInserter:o}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o}}function nn(){return{type:"HIDE_INSERTION_POINT"}}function on(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function*rn(){yield{type:"SYNCHRONIZE_TEMPLATE"};const e=yield p.controls.select(It,"getBlocks"),t=yield p.controls.select(It,"getTemplate"),n=Object(b.synchronizeBlocksWithTemplate)(e,t);return yield Tt(n)}function*cn(e,t){const n=[e,t];yield{type:"MERGE_BLOCKS",blocks:n};const[o,r]=n,c=yield p.controls.select(It,"getBlock",o),l=Object(b.getBlockType)(c.name);if(!l.merge)return void(yield Mt(c.clientId));const i=yield p.controls.select(It,"getBlock",r),a=Object(b.getBlockType)(i.name),{clientId:u,attributeKey:d,offset:m}=yield p.controls.select(It,"getSelectionStart"),f=(u===o?l:a).attributes[d],g=(u===o||u===r)&&void 0!==d&&void 0!==m&&!!f;f||("number"==typeof d?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was "+typeof d):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const h=Object(b.cloneBlock)(c),O=Object(b.cloneBlock)(i);if(g){const e=u===o?h:O,t=e.attributes[d],{multiline:n,__unstableMultilineWrapperTags:r,__unstablePreserveWhiteSpace:c}=f,l=Object(Ct.insert)(Object(Ct.create)({html:t,multilineTag:n,multilineWrapperTags:r,preserveWhiteSpace:c}),"†",m,m);e.attributes[d]=Object(Ct.toHTMLString)({value:l,multilineTag:n,preserveWhiteSpace:c})}const v=c.name===i.name?[O]:Object(b.switchToBlockType)(O,c.name);if(!v||!v.length)return;const j=l.merge(h.attributes,v[0].attributes);if(g){const e=Object(s.findKey)(j,e=>"string"==typeof e&&-1!==e.indexOf("†")),t=j[e],{multiline:n,__unstableMultilineWrapperTags:o,__unstablePreserveWhiteSpace:r}=l.attributes[e],i=Object(Ct.create)({html:t,multilineTag:n,multilineWrapperTags:o,preserveWhiteSpace:r}),a=i.text.indexOf("†"),u=Object(Ct.remove)(i,a,a+1),d=Object(Ct.toHTMLString)({value:u,multilineTag:n,preserveWhiteSpace:r});j[e]=d,yield hn(c.clientId,e,a,a)}yield*Kt([c.clientId,i.clientId],[{...c,attributes:{...c.attributes,...j}},...v.slice(1)])}function*ln(e,t=!0){if(!e||!e.length)return;e=Object(s.castArray)(e);const n=yield p.controls.select(It,"getBlockRootClientId",e[0]);if(yield p.controls.select(It,"getTemplateLock",n))return;let o;o=t?yield Dt(e[0]):yield p.controls.select(It,"getPreviousBlockClientId",e[0]),yield{type:"REMOVE_BLOCKS",clientIds:e};const r=yield*xt();return[o||r]}function an(e,t){return ln([e],t)}function sn(e,t,n=!1,o=0){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function un(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function dn(){return{type:"START_TYPING"}}function bn(){return{type:"STOP_TYPING"}}function mn(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function pn(){return{type:"STOP_DRAGGING_BLOCKS"}}function fn(){return{type:"ENTER_FORMATTED_TEXT"}}function gn(){return{type:"EXIT_FORMATTED_TEXT"}}function hn(e,t,n,o){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}}function On(e,t,n){const o=Object(b.getDefaultBlockName)();if(o)return Jt(Object(b.createBlock)(o,e),n,t)}function vn(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function jn(e){return{type:"UPDATE_SETTINGS",settings:e}}function kn(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function yn(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function En(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function*Cn(){yield{type:"MARK_AUTOMATIC_CHANGE"},yield{type:"MARK_AUTOMATIC_CHANGE_FINAL_CONTROL"}}function Sn(){return{type:"MARK_AUTOMATIC_CHANGE_FINAL"}}function*wn(e=!0){yield{type:"SET_NAVIGATION_MODE",isNavigationMode:e},e?Object(Et.speak)(Object(O.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):Object(Et.speak)(Object(O.__)("You are currently in edit mode. To return to the navigation mode, press Escape."))}function*Bn(e=null){yield{type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e},e&&Object(Et.speak)(Object(O.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."))}function*In(e,t=!0){if(!e&&!e.length)return;const n=yield p.controls.select(It,"getBlocksByClientId",e),o=yield p.controls.select(It,"getBlockRootClientId",e[0]);if(Object(s.some)(n,e=>!e))return;const r=n.map(e=>e.name);if(Object(s.some)(r,e=>!Object(b.hasBlockSupport)(e,"multiple",!0)))return;const c=yield p.controls.select(It,"getBlockIndex",Object(s.last)(Object(s.castArray)(e)),o),l=n.map(e=>Object(b.__experimentalCloneSanitizedBlock)(e));return yield en(l,c+1,o,t),l.length>1&&t&&(yield zt(Object(s.first)(l).clientId,Object(s.last)(l).clientId)),l.map(e=>e.clientId)}function*xn(e){if(!e)return;const t=yield p.controls.select(It,"getBlockRootClientId",e);if(yield p.controls.select(It,"getTemplateLock",t))return;const n=yield p.controls.select(It,"getBlockIndex",e,t);return yield On({},t,n)}function*Tn(e){if(!e)return;const t=yield p.controls.select(It,"getBlockRootClientId",e);if(yield p.controls.select(It,"getTemplateLock",t))return;const n=yield p.controls.select(It,"getBlockIndex",e,t);return yield On({},t,n+1)}function Nn(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function*Ln(e){yield Nn(e,!0),yield{type:"SLEEP",duration:150},yield Nn(e,!1)}function Pn(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}const Rn={reducer:N,selectors:o,actions:r,controls:Bt},An=Object(p.createReduxStore)(It,{...Rn,persist:["preferences"]});function Mn(){const{isSelected:e,clientId:t,name:n}=h(),o=Object(p.useSelect)(o=>{if(e)return;const{getBlockName:r,isFirstMultiSelectedBlock:c,getMultiSelectedBlockClientIds:l}=o(An);return!!c(t)&&l().every(e=>r(e)===n)},[t,e,n]);return e||o}Object(p.registerStore)(It,{...Rn,persist:["preferences"]});var Dn={default:Object(m.createSlotFill)("BlockControls"),block:Object(m.createSlotFill)("BlockControlsBlock"),inline:Object(m.createSlotFill)("BlockFormatControls"),other:Object(m.createSlotFill)("BlockControlsOther")};function Fn({group:e="default",controls:t,children:n}){if(!Mn())return null;const o=Dn[e].Fill;return Object(l.createElement)(m.__experimentalStyleProvider,{document:document},Object(l.createElement)(o,null,o=>{const r=Object(s.isEmpty)(o)?null:o;return Object(l.createElement)(m.__experimentalToolbarContext.Provider,{value:r},"default"===e&&Object(l.createElement)(m.ToolbarGroup,{controls:t}),n)}))}function Vn({group:e="default",...t}){const n=Object(l.useContext)(m.__experimentalToolbarContext),o=Dn[e].Slot,r=Object(m.__experimentalUseSlot)(o.__unstableName);return Boolean(r.fills&&r.fills.length)?"default"===e?Object(l.createElement)(o,Object(c.a)({},t,{bubblesVirtually:!0,fillProps:n})):Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(o,Object(c.a)({},t,{bubblesVirtually:!0,fillProps:n}))):null}const Hn=Fn;Hn.Slot=Vn;const zn=e=>Object(l.createElement)(Fn,Object(c.a)({group:"inline"},e));zn.Slot=e=>Object(l.createElement)(Vn,Object(c.a)({group:"inline"},e));var Gn=Hn,Un=n(6),Wn=Object(l.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Un.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),Kn=Object(l.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Un.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),$n=Object(l.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Un.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),qn=Object(l.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Un.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),Yn=Object(l.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Un.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"}));const Xn={type:"default"},Qn=Object(l.createContext)(Xn);function Zn(e,t){return e.split(",").map(e=>`.editor-styles-wrapper ${e} ${t}`).join(",")}const Jn=Qn.Provider;function eo({selector:e,layout:t={}}){const{contentSize:n,wideSize:o}=t;let r=n||o?`\n\t\t\t\t${Zn(e,"> *")} {\n\t\t\t\t\tmax-width: ${null!=n?n:o};\n\t\t\t\t\tmargin-left: auto !important;\n\t\t\t\t\tmargin-right: auto !important;\n\t\t\t\t}\n\n\t\t\t\t${Zn(e,'> [data-align="wide"]')} {\n\t\t\t\t\tmax-width: ${null!=o?o:n};\n\t\t\t\t}\n\n\t\t\t\t${Zn(e,'> [data-align="full"]')} {\n\t\t\t\t\tmax-width: none;\n\t\t\t\t}\n\t\t\t`:"";return r+=`\n\t\t${Zn(e,'> [data-align="left"]')} {\n\t\t\tfloat: left;\n\t\t\tmargin-right: 2em;\n\t\t}\n\n\t\t${Zn(e,'> [data-align="right"]')} {\n\t\t\tfloat: right;\n\t\t\tmargin-left: 2em;\n\t\t}\n\t`,Object(l.createElement)("style",null,r)}const to=["left","center","right","wide","full"],no=["wide","full"];function oo(e=to){const{wideControlsEnabled:t=!1}=Object(p.useSelect)(e=>{const{getSettings:t}=e(An);return{wideControlsEnabled:t().alignWide}},[]),n=Object(l.useContext)(Qn);if("default"!==n.type)return[];const{alignments:o=to}=n;return e.filter(e=>(n.alignments||t||!no.includes(e))&&o.includes(e))}const ro={left:{icon:Wn,title:Object(O.__)("Align left")},center:{icon:Kn,title:Object(O.__)("Align center")},right:{icon:$n,title:Object(O.__)("Align right")},wide:{icon:qn,title:Object(O.__)("Wide width")},full:{icon:Yn,title:Object(O.__)("Full width")}},co={isAlternate:!0};var lo=function({value:e,onChange:t,controls:n,isToolbar:o,isCollapsed:r=!0}){const i=oo(n);if(0===i.length)return null;const a=ro[e],s=ro.center,u=o?m.ToolbarGroup:m.ToolbarDropdownMenu,d=o?{isCollapsed:r}:{};return Object(l.createElement)(u,Object(c.a)({popoverProps:co,icon:a?a.icon:s.icon,label:Object(O.__)("Align"),toggleProps:{describedBy:Object(O.__)("Change alignment")},controls:i.map(n=>{return{...ro[n],isActive:e===n,role:r?"menuitemradio":void 0,onClick:(o=n,()=>t(e===o?void 0:o))};var o})},d))};function io(e){return Object(l.createElement)(lo,Object(c.a)({},e,{isToolbar:!1}))}function ao(e){return Object(l.createElement)(lo,Object(c.a)({},e,{isToolbar:!0}))}const so=["left","center","right","wide","full"],uo=["wide","full"];function bo(e,t=!0,n=!0){let o;return o=Array.isArray(e)?so.filter(t=>e.includes(t)):!0===e?so:[],!n||!0===e&&!t?Object(s.without)(o,...uo):o}const mo=Object(u.createHigherOrderComponent)(e=>t=>{const{name:n}=t,o=oo(bo(Object(b.getBlockSupport)(n,"align"),Object(b.hasBlockSupport)(n,"alignWide",!0)));return[o.length>0&&t.isSelected&&Object(l.createElement)(Gn,{key:"align-controls",group:"block"},Object(l.createElement)(io,{value:t.attributes.align,onChange:e=>{var n,o;e||(null===(n=Object(b.getBlockType)(t.name).attributes)||void 0===n||null===(o=n.align)||void 0===o?void 0:o.default)&&(e="");t.setAttributes({align:e})},controls:o})),Object(l.createElement)(e,Object(c.a)({key:"edit"},t))]},"withToolbarControls"),po=Object(u.createHigherOrderComponent)(e=>t=>{const{name:n,attributes:o}=t,{align:r}=o,i=oo(bo(Object(b.getBlockSupport)(n,"align"),Object(b.hasBlockSupport)(n,"alignWide",!0)));if(void 0===r)return Object(l.createElement)(e,t);let a=t.wrapperProps;return i.includes(r)&&(a={...a,"data-align":r}),Object(l.createElement)(e,Object(c.a)({},t,{wrapperProps:a}))});Object(d.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(s.has)(e.attributes,["align","type"])||Object(b.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...so,""]}}),e})),Object(d.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",po),Object(d.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",mo),Object(d.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){const{align:o}=n;return bo(Object(b.getBlockSupport)(t,"align"),Object(b.hasBlockSupport)(t,"alignWide",!0)).includes(o)&&(e.className=a()("align"+o,e.className)),e}));const{Fill:fo,Slot:go}=Object(m.createSlotFill)("InspectorAdvancedControls");function ho({children:e}){const{isSelected:t}=h();return t?Object(l.createElement)(m.__experimentalStyleProvider,{document:document},Object(l.createElement)(fo,null,e)):null}ho.slotName="InspectorAdvancedControls",ho.Slot=go;var Oo=ho;const{Fill:vo,Slot:jo}=Object(m.createSlotFill)("InspectorControls");function ko({children:e}){return Mn()?Object(l.createElement)(m.__experimentalStyleProvider,{document:document},Object(l.createElement)(vo,null,e)):null}ko.Slot=jo;var _o=ko;const yo=/[\s#]/g,Eo=Object(u.createHigherOrderComponent)(e=>t=>{if(Object(b.hasBlockSupport)(t.name,"anchor")&&t.isSelected){const n="web"===l.Platform.OS,o=Object(l.createElement)(m.TextControl,{className:"html-anchor-control",label:Object(O.__)("HTML anchor"),help:Object(l.createElement)(l.Fragment,null,Object(O.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),Object(l.createElement)(m.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(O.__)("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:Object(O.__)("Add an anchor"),onChange:e=>{e=e.replace(yo,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(e,t),n&&Object(l.createElement)(Oo,null,o),!n&&"core/heading"===t.name&&Object(l.createElement)(_o,null,Object(l.createElement)(m.PanelBody,{title:Object(O.__)("Heading settings")},o)))}return Object(l.createElement)(e,t)},"withInspectorControl");Object(d.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(s.has)(e.attributes,["anchor","type"])||Object(b.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}}),e})),Object(d.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",Eo),Object(d.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(b.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));const Co=Object(u.createHigherOrderComponent)(e=>t=>Object(b.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(e,t),Object(l.createElement)(Oo,null,Object(l.createElement)(m.TextControl,{autoComplete:"off",label:Object(O.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:e=>{t.setAttributes({className:""!==e?e:void 0})},help:Object(O.__)("Separate multiple classes with spaces.")}))):Object(l.createElement)(e,t),"withInspectorControl");function So(e){e=`<div data-custom-class-name>${e}</div>`;const t=Object(b.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(d.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(b.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),Object(d.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",Co),Object(d.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(b.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=a()(e.className,n.className)),e})),Object(d.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(b.hasBlockSupport)(t,"customClassName",!0)){const o=Object(s.omit)(e,["className"]),r=Object(b.getSaveContent)(t,o),c=So(r),l=So(n),i=Object(s.difference)(l,c);i.length?e.className=i.join(" "):r&&delete e.className}return e})),Object(d.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(b.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(s.uniq)([Object(b.getBlockDefaultClassName)(t.name),...e.className.split(" ")]).join(" ").trim():e.className=Object(b.getBlockDefaultClassName)(t.name)),e}));const wo={"color.palette":e=>void 0===e.colors?void 0:e.colors,"color.gradients":e=>void 0===e.gradients?void 0:e.gradients,"color.custom":e=>void 0===e.disableCustomColors?void 0:!e.disableCustomColors,"color.customGradient":e=>void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>void 0===e.fontSizes?void 0:e.fontSizes,"typography.customFontSize":e=>void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes,"typography.customLineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw"]:e.enableCustomUnits},"spacing.customPadding":e=>e.enableCustomSpacing},Bo={"color.gradients":!0,"color.palette":!0,"typography.fontFamilies":!0,"typography.fontSizes":!0};function Io(e){const{name:t}=h();return Object(p.useSelect)(n=>{var o;const r=n(An).getSettings(),c="__experimentalFeatures."+e,l=`__experimentalFeatures.blocks.${t}.${e}`,i=null!==(o=Object(s.get)(r,l))&&void 0!==o?o:Object(s.get)(r,c);var a,u;if(void 0!==i)return Bo[e]?null!==(a=null!==(u=i.user)&&void 0!==u?u:i.theme)&&void 0!==a?a:i.core:i;const d=wo[e]?wo[e](r):void 0;return void 0!==d?d:"typography.dropCap"===e||void 0},[t,e])}var xo=n(35),To=n.n(xo);const No=(e,t,n)=>{if(t){const n=Object(s.find)(e,{slug:t});if(n)return n}return{color:n}},Lo=(e,t)=>Object(s.find)(e,{color:t});function Po(e,t){if(e&&t)return`has-${Object(s.kebabCase)(t)}-${e}`}const Ro=[];function Ao(e){if(e)return`has-${e}-gradient-background`}function Mo(e,t){const n=Object(s.find)(e,["slug",t]);return n&&n.gradient}function Do(e,t){return Object(s.find)(e,["gradient",t])}function Fo(e,t){const n=Do(e,t);return n&&n.slug}function Vo({gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}={}){const{clientId:n}=h(),o=Io("color.gradients")||Ro,{gradient:r,customGradient:c}=Object(p.useSelect)(o=>{const{getBlockAttributes:r}=o(An),c=r(n)||{};return{customGradient:c[t],gradient:c[e]}},[n,e,t]),{updateBlockAttributes:i}=Object(p.useDispatch)(An),a=Object(l.useCallback)(r=>{const c=Fo(o,r);i(n,c?{[e]:c,[t]:void 0}:{[e]:void 0,[t]:r})},[o,n,i]),s=Ao(r);let u;return u=r?Mo(o,r):c,{gradientClass:s,gradientValue:u,setGradient:a}}
4
  // translators: first %s: the color name or value (e.g. red or #ff0000)
5
+ const Ho=Object(O.__)("(Color: %s)"),zo=Object(O.__)("(Gradient: %s)"),Go=["colors","disableCustomColors","gradients","disableCustomGradients"];// translators: first %s: the gradient name or value (e.g. red to green or linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)
6
+ function Uo({colors:e,gradients:t,label:n,currentTab:o,colorValue:r,gradientValue:c}){let i,a;if("color"===o){if(r){i=r;const t=Lo(e,i),n=t&&t.name;a=Object(O.sprintf)(Ho,n||i)}}else if("gradient"===o&&c){i=c;const e=Do(t,i),n=e&&e.name;a=Object(O.sprintf)(zo,n||i)}return Object(l.createElement)(l.Fragment,null,n,!!i&&Object(l.createElement)(m.ColorIndicator,{colorValue:i,"aria-label":a}))}function Wo({colors:e,gradients:t,disableCustomColors:n,disableCustomGradients:o,className:r,label:c,onColorChange:i,onGradientChange:u,colorValue:d,gradientValue:b,clearable:p}){const f=i&&(!Object(s.isEmpty)(e)||!n),g=u&&(!Object(s.isEmpty)(t)||!o),[h,v]=Object(l.useState)(b?"gradient":!!f&&"color");return f||g?Object(l.createElement)(m.BaseControl,{className:a()("block-editor-color-gradient-control",r)},Object(l.createElement)("fieldset",null,Object(l.createElement)("legend",null,Object(l.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(l.createElement)(m.BaseControl.VisualLabel,null,Object(l.createElement)(Uo,{currentTab:h,label:c,colorValue:d,gradientValue:b})))),f&&g&&Object(l.createElement)(m.ButtonGroup,{className:"block-editor-color-gradient-control__button-tabs"},Object(l.createElement)(m.Button,{isSmall:!0,isPressed:"color"===h,onClick:()=>v("color")},Object(O.__)("Solid")),Object(l.createElement)(m.Button,{isSmall:!0,isPressed:"gradient"===h,onClick:()=>v("gradient")},Object(O.__)("Gradient"))),("color"===h||!g)&&Object(l.createElement)(m.ColorPalette,{value:d,onChange:g?e=>{i(e),u()}:i,colors:e,disableCustomColors:n,clearable:p}),("gradient"===h||!f)&&Object(l.createElement)(m.__experimentalGradientPicker,{value:b,onChange:f?e=>{u(e),i()}:u,gradients:t,disableCustomGradients:o,clearable:p}))):null}function Ko(e){const t={};return t.colors=Io("color.palette"),t.gradients=Io("color.gradients"),t.disableCustomColors=!Io("color.custom"),t.disableCustomGradients=!Io("color.customGradient"),Object(l.createElement)(Wo,Object(c.a)({},t,e))}var $o=function(e){return Object(s.every)(Go,t=>e.hasOwnProperty(t))?Object(l.createElement)(Wo,e):Object(l.createElement)(Ko,e)};const qo=e=>{if(!Object(s.isObject)(e)||Array.isArray(e))return e;const t=Object(s.pickBy)(Object(s.mapValues)(e,qo),s.identity);return Object(s.isEmpty)(t)?void 0:t},Yo=[];function Xo(e){var t;const{attributes:{borderColor:n,style:o},setAttributes:r}=e,c=Io("color.palette")||Yo,i=!Io("color.custom"),a=!Io("color.customGradient");return Object(l.createElement)($o,{label:Object(O.__)("Border color"),value:n||(null==o||null===(t=o.border)||void 0===t?void 0:t.color),colors:c,gradients:void 0,disableCustomColors:i,disableCustomGradients:a,onColorChange:e=>{const t=Lo(c,e),n={...o,border:{...null==o?void 0:o.border,color:null!=t&&t.slug?void 0:e}},l=null!=t&&t.slug?t.slug:void 0;r({style:qo(n),borderColor:l})}})}function Qo(e,t,n){var o;if(!lr(t,"color")||ir(t))return e;const{borderColor:r,style:c}=n,l=Po("border-color",r),i=a()(e.className,{"has-border-color":r||(null==c||null===(o=c.border)||void 0===o?void 0:o.color),[l]:!!l});return e.className=i||void 0,e}const Zo=Object(u.createHigherOrderComponent)(e=>t=>{var n,o;const{name:r,attributes:i}=t,{borderColor:a}=i,s=Io("color.palette")||Yo;if(!lr(r,"color")||ir(r))return Object(l.createElement)(e,t);const u={borderColor:a?null===(n=No(s,a))||void 0===n?void 0:n.color:void 0};let d=t.wrapperProps;return d={...t.wrapperProps,style:{...u,...null===(o=t.wrapperProps)||void 0===o?void 0:o.style}},Object(l.createElement)(e,Object(c.a)({},t,{wrapperProps:d}))});function Jo(e){var t,n;const{attributes:{style:o},setAttributes:r}=e,c="px"===Object(m.__experimentalParseUnit)(null==o||null===(t=o.border)||void 0===t?void 0:t.radius)[1]?1:.25,[i,a]=Object(l.useState)(c),s=Object(m.__experimentalUseCustomUnits)({availableUnits:Io("layout.units")||["px","em","rem"]});return Object(l.createElement)(m.__experimentalUnitControl,{value:null==o||null===(n=o.border)||void 0===n?void 0:n.radius,label:Object(O.__)("Border radius"),min:0,onChange:e=>{let t={...o,border:{...null==o?void 0:o.border,radius:e}};void 0!==e&&""!==e||(t=qo(t)),r({style:t})},onUnitChange:e=>{a("px"===e?1:.25)},step:i,units:s})}Object(d.addFilter)("blocks.registerBlockType","core/border/addAttributes",(function(e){return lr(e,"color")?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}:e})),Object(d.addFilter)("blocks.getSaveContent.extraProps","core/border/addSaveProps",Qo),Object(d.addFilter)("blocks.registerBlockType","core/border/addEditProps",(function(e){if(!lr(e,"color")||ir(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),Qo(o,e,n)},e})),Object(d.addFilter)("editor.BlockListBlock","core/border/with-border-color-palette-styles",Zo);const er={key:"default",name:Object(O.__)("Default"),style:{borderStyle:void 0}},tr=[er,{key:"none",name:Object(O.__)("None"),style:{borderStyle:"none"}},{key:"solid",name:Object(O.__)("Solid"),style:{borderStyle:"solid"}},{key:"dashed",name:Object(O.__)("Dashed"),style:{borderStyle:"dashed"}},{key:"dotted",name:Object(O.__)("Dotted"),style:{borderStyle:"dotted"}}];function nr({onChange:e,value:t}){const n=tr.find(e=>e.key===t);return Object(l.createElement)("fieldset",{className:"components-border-style-control"},Object(l.createElement)(m.CustomSelectControl,{className:"components-border-style-control__select",label:Object(O.__)("Border style"),options:tr,value:n||er,onChange:({selectedItem:t})=>"default"===t.key?e(void 0):e(t.key)}))}const or=e=>{var t;const{attributes:{style:n},setAttributes:o}=e;return Object(l.createElement)(nr,{value:null==n||null===(t=n.border)||void 0===t?void 0:t.style,onChange:e=>{const t={...n,border:{...null==n?void 0:n.border,style:e}};o({style:qo(t)})}})},rr=e=>{var t,n;const{attributes:{style:o},setAttributes:r}=e,c="px"===Object(m.__experimentalParseUnit)(null==o||null===(t=o.border)||void 0===t?void 0:t.width)[1]?1:.25,[i,a]=Object(l.useState)(c),s=Object(m.__experimentalUseCustomUnits)({availableUnits:Io("layout.units")||["px","em","rem"]});return Object(l.createElement)(m.__experimentalUnitControl,{value:null==o||null===(n=o.border)||void 0===n?void 0:n.width,label:Object(O.__)("Border width"),min:0,onChange:e=>{let t={...o,border:{...null==o?void 0:o.border,width:e}};void 0!==e&&""!==e||(t=qo(t)),r({style:t})},onUnitChange:e=>{a("px"===e?1:.25)},step:i,units:s})};function cr(e){const t=ar(e),n=lr(e.name),o=Io("border.customColor")&&lr(e.name,"color"),r=Io("border.customRadius")&&lr(e.name,"radius"),c=Io("border.customStyle")&&lr(e.name,"style"),i=Io("border.customWidth")&&lr(e.name,"width");return t||!n?null:Object(l.createElement)(_o,null,Object(l.createElement)(m.PanelBody,{className:"block-editor-hooks__border-controls",title:Object(O.__)("Border settings"),initialOpen:!1},c&&Object(l.createElement)(or,e),i&&Object(l.createElement)(rr,e),r&&Object(l.createElement)(Jo,e),o&&Object(l.createElement)(Xo,e)))}function lr(e,t="any"){if("web"!==l.Platform.OS)return!1;const n=Object(b.getBlockSupport)(e,"__experimentalBorder");return!!(!0===n||("any"===t?null!=n&&n.color||null!=n&&n.radius||null!=n&&n.width||null!=n&&n.style:null!=n&&n[t]))}function ir(e){const t=Object(b.getBlockSupport)(e,"__experimentalBorder");return null==t?void 0:t.__experimentalSkipSerialization}const ar=()=>[!Io("border.customColor"),!Io("border.customRadius"),!Io("border.customStyle"),!Io("border.customWidth")].every(Boolean),sr=Object(O.__)("(%s: color %s)"),ur=Object(O.__)("(%s: gradient %s)"),dr=["colors","disableCustomColors","gradients","disableCustomGradients"],br=({colors:e,gradients:t,settings:n})=>n.map(({colorValue:n,gradientValue:o,label:r,colors:c,gradients:i},a)=>{if(!n&&!o)return null;let s;if(n){const t=Lo(c||e,n);s=Object(O.sprintf)(sr,r.toLowerCase(),t&&t.name||n)}else{const e=Do(i||t,n);s=Object(O.sprintf)(ur,r.toLowerCase(),e&&e.name||o)}return Object(l.createElement)(m.ColorIndicator,{key:a,colorValue:n||o,"aria-label":s})}),mr=({className:e,colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:r,children:i,settings:u,title:d,...b})=>{if(Object(s.isEmpty)(t)&&Object(s.isEmpty)(n)&&o&&r&&Object(s.every)(u,e=>Object(s.isEmpty)(e.colors)&&Object(s.isEmpty)(e.gradients)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)))return null;const p=Object(l.createElement)("span",{className:"block-editor-panel-color-gradient-settings__panel-title"},d,Object(l.createElement)(br,{colors:t,gradients:n,settings:u}));return Object(l.createElement)(m.PanelBody,Object(c.a)({className:a()("block-editor-panel-color-gradient-settings",e),title:p},b),u.map((e,i)=>Object(l.createElement)($o,Object(c.a)({key:i,colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:r},e))),i)},pr=e=>{const t={};return t.colors=Io("color.palette"),t.gradients=Io("color.gradients"),t.disableCustomColors=!Io("color.custom"),t.disableCustomGradients=!Io("color.customGradient"),Object(l.createElement)(mr,Object(c.a)({},t,e))};
7
  // translators: first %s: The type of color or gradient (e.g. background, overlay...), second %s: the color name or value (e.g. red or #ff0000)
8
+ var fr=e=>Object(s.every)(dr,t=>e.hasOwnProperty(t))?Object(l.createElement)(mr,e):Object(l.createElement)(pr,e);function gr({tinyBackgroundColor:e,tinyTextColor:t,backgroundColor:n,textColor:o}){const r=e.getBrightness()<t.getBrightness()?Object(O.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(O.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.");return Object(l.useEffect)(()=>{Object(Et.speak)(Object(O.__)("This color combination may be hard for people to read."))},[n,o]),Object(l.createElement)("div",{className:"block-editor-contrast-checker"},Object(l.createElement)(m.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},r))}var hr=function({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:n,fontSize:o,isLargeText:r,textColor:c}){if(!e&&!t||!c&&!n)return null;const i=To()(e||t),a=To()(c||n);return 1!==i.getAlpha()||1!==a.getAlpha()||To.a.isReadable(i,a,{level:"AA",size:r||!1!==r&&o>=24?"large":"small"})?null:Object(l.createElement)(gr,{backgroundColor:e,textColor:c,tinyBackgroundColor:i,tinyTextColor:a})};const Or=Object(l.createContext)();function vr({children:e}){const t=Object(l.useMemo)(()=>({refs:new Map,callbacks:new Map}),[]);return Object(l.createElement)(Or.Provider,{value:t},e)}function jr(e){const{refs:t,callbacks:n}=Object(l.useContext)(Or),o=Object(l.useRef)();return Object(l.useLayoutEffect)(()=>(t.set(o,e),()=>{t.delete(o)}),[e]),Object(u.useRefEffect)(t=>{o.current=t,n.forEach((n,o)=>{e===n&&o(t)})},[e])}function kr(e){const{refs:t}=Object(l.useContext)(Or),n=Object(l.useRef)();return n.current=e,Object(l.useMemo)(()=>({get current(){let e=null;for(const[o,r]of t.entries())r===n.current&&o.current&&(e=o.current);return e}}),[])}function _r(e){const{callbacks:t}=Object(l.useContext)(Or),n=kr(e),[o,r]=Object(l.useState)(null);return Object(l.useLayoutEffect)(()=>{if(e)return t.set(r,e),()=>{t.delete(r)}},[e]),n.current||o}function yr(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function Er({settings:e,clientId:t,enableContrastChecking:n=!0}){const[o,r]=Object(l.useState)(),[c,i]=Object(l.useState)(),a=kr(t);return Object(l.useEffect)(()=>{if(!n)return;if(!a.current)return;i(yr(a.current).color);let e=a.current,t=yr(e).backgroundColor;for(;"rgba(0, 0, 0, 0)"===t&&e.parentNode&&e.parentNode.nodeType===e.parentNode.ELEMENT_NODE;)e=e.parentNode,t=yr(e).backgroundColor;r(t)}),Object(l.createElement)(_o,null,Object(l.createElement)(fr,{title:Object(O.__)("Color"),initialOpen:!1,settings:e},n&&Object(l.createElement)(hr,{backgroundColor:o,textColor:c})))}const Cr=[],Sr=e=>{const t=Object(b.getBlockSupport)(e,"color");return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},wr=e=>{const t=Object(b.getBlockSupport)(e,"color");return null==t?void 0:t.__experimentalSkipSerialization},Br=e=>{if("web"!==l.Platform.OS)return!1;const t=Object(b.getBlockSupport)(e,"color");return Object(s.isObject)(t)&&!!t.link},Ir=e=>{if("web"!==l.Platform.OS)return!1;const t=Object(b.getBlockSupport)(e,"color");return Object(s.isObject)(t)&&!!t.gradients},xr=e=>{const t=Object(b.getBlockSupport)(e,"color");return t&&!1!==t.text};function Tr(e,t,n){var o,r,c,l,i,s;if(!Sr(t)||wr(t))return e;const u=Ir(t),{backgroundColor:d,textColor:b,gradient:m,style:p}=n,f=Po("background-color",d),g=Ao(m),h=Po("color",b),O=a()(e.className,h,g,{[f]:!(u&&null!=p&&null!==(o=p.color)&&void 0!==o&&o.gradient||!f),"has-text-color":b||(null==p||null===(r=p.color)||void 0===r?void 0:r.text),"has-background":d||(null==p||null===(c=p.color)||void 0===c?void 0:c.background)||u&&(m||(null==p||null===(l=p.color)||void 0===l?void 0:l.gradient)),"has-link-color":null==p||null===(i=p.elements)||void 0===i||null===(s=i.link)||void 0===s?void 0:s.color});return e.className=O||void 0,e}const Nr=(e,t)=>{const n=/var:preset\|color\|(.+)/.exec(t);return n&&n[1]?No(e,n[1]).color:t};function Lr(e){var t,n,o,r,c,i,a,u,d;const{name:m,attributes:p}=e,f=Io("color.link"),g=Io("color.palette")||Cr,h=Io("color.gradients")||Cr,v=Object(l.useRef)(p);if(Object(l.useEffect)(()=>{v.current=p},[p]),!Sr(m))return null;const j=(e=>{const t=Object(b.getBlockSupport)(e,"color");return t&&!1!==t.background})(m),k=Ir(m),{style:_,textColor:y,backgroundColor:E,gradient:C}=p;let S;if(k&&C)S=Mo(h,C);else if(k){var w;S=null==_||null===(w=_.color)||void 0===w?void 0:w.gradient}const B=t=>n=>{var o,r;const c=Lo(g,n),l=t+"Color",i={...v.current.style,color:{...null===(o=v.current)||void 0===o||null===(r=o.style)||void 0===r?void 0:r.color,[t]:null!=c&&c.slug?void 0:n}},a=null!=c&&c.slug?c.slug:void 0,s={style:qo(i),[l]:a};e.setAttributes(s),v.current={...v.current,...s}};return Object(l.createElement)(Er,{enableContrastChecking:!("web"!==l.Platform.OS||C||null!=_&&null!==(t=_.color)&&void 0!==t&&t.gradient),clientId:e.clientId,settings:[...xr(m)?[{label:Object(O.__)("Text color"),onColorChange:B("text"),colorValue:No(g,y,null==_||null===(n=_.color)||void 0===n?void 0:n.text).color}]:[],...j||k?[{label:Object(O.__)("Background color"),onColorChange:j?B("background"):void 0,colorValue:No(g,E,null==_||null===(o=_.color)||void 0===o?void 0:o.background).color,gradientValue:S,onGradientChange:k?t=>{const n=Fo(h,t);let o;if(n){var r,c,l;const e={...null===(r=v.current)||void 0===r?void 0:r.style,color:{...null===(c=v.current)||void 0===c||null===(l=c.style)||void 0===l?void 0:l.color,gradient:void 0}};o={style:qo(e),gradient:n}}else{var i,a,s;const e={...null===(i=v.current)||void 0===i?void 0:i.style,color:{...null===(a=v.current)||void 0===a||null===(s=a.style)||void 0===s?void 0:s.color,gradient:t}};o={style:qo(e),gradient:void 0}}e.setAttributes(o),v.current={...v.current,...o}}:void 0}]:[],...f&&Br(m)?[{label:Object(O.__)("Link Color"),onColorChange:t=>{const n=Lo(g,t),o=null!=n&&n.slug?"var:preset|color|"+n.slug:t,r=function(e,t,n){return Object(s.setWith)(e?Object(s.clone)(e):{},["elements","link","color","text"],n,s.clone)}(_,0,o);e.setAttributes({style:r})},colorValue:Nr(g,null==_||null===(r=_.elements)||void 0===r||null===(c=r.link)||void 0===c||null===(i=c.color)||void 0===i?void 0:i.text),clearable:!(null==_||null===(a=_.elements)||void 0===a||null===(u=a.link)||void 0===u||null===(d=u.color)||void 0===d||!d.text)}]:[]]})}const Pr=Object(u.createHigherOrderComponent)(e=>t=>{var n,o,r;const{name:i,attributes:a}=t,{backgroundColor:s,textColor:u}=a,d=Io("color.palette")||Cr;if(!Sr(i)||wr(i))return Object(l.createElement)(e,t);const b={color:u?null===(n=No(d,u))||void 0===n?void 0:n.color:void 0,backgroundColor:s?null===(o=No(d,s))||void 0===o?void 0:o.color:void 0};let m=t.wrapperProps;return m={...t.wrapperProps,style:{...b,...null===(r=t.wrapperProps)||void 0===r?void 0:r.style}},Object(l.createElement)(e,Object(c.a)({},t,{wrapperProps:m}))});Object(d.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return Sr(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),Ir(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),Object(d.addFilter)("blocks.getSaveContent.extraProps","core/color/addSaveProps",Tr),Object(d.addFilter)("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!Sr(e)||wr(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),Tr(o,e,n)},e})),Object(d.addFilter)("editor.BlockListBlock","core/color/with-color-palette-styles",Pr);var Rr=Object(l.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Un.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})),Ar=n(286);const Mr=[{name:Object(O.__)("Underline"),value:"underline",icon:Rr},{name:Object(O.__)("Strikethrough"),value:"line-through",icon:Ar.a}];function Dr({value:e,onChange:t}){return Object(l.createElement)("fieldset",{className:"block-editor-text-decoration-control"},Object(l.createElement)("legend",null,Object(O.__)("Decoration")),Object(l.createElement)("div",{className:"block-editor-text-decoration-control__buttons"},Mr.map(n=>Object(l.createElement)(m.Button,{key:n.value,icon:n.icon,isSmall:!0,isPressed:n.value===e,onClick:()=>t(n.value===e?void 0:n.value),"aria-label":n.name}))))}function Fr(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Vr(e)?null:Object(l.createElement)(Dr,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textDecoration,onChange:function(e){o({style:qo({...n,typography:{...null==n?void 0:n.typography,textDecoration:e}})})}})}function Vr({name:e}={}){const t=!Object(b.hasBlockSupport)(e,"typography.__experimentalTextDecoration"),n=Io("typography.customTextDecorations");return t||!n}var Hr=Object(l.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Un.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})),zr=Object(l.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Un.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})),Gr=Object(l.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Un.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"}));const Ur=[{name:Object(O.__)("Uppercase"),value:"uppercase",icon:Hr},{name:Object(O.__)("Lowercase"),value:"lowercase",icon:zr},{name:Object(O.__)("Capitalize"),value:"capitalize",icon:Gr}];function Wr({value:e,onChange:t}){return Object(l.createElement)("fieldset",{className:"block-editor-text-transform-control"},Object(l.createElement)("legend",null,Object(O.__)("Letter case")),Object(l.createElement)("div",{className:"block-editor-text-transform-control__buttons"},Ur.map(n=>Object(l.createElement)(m.Button,{key:n.value,icon:n.icon,isSmall:!0,isPressed:e===n.value,"aria-label":n.name,onClick:()=>t(e===n.value?void 0:n.value)}))))}function Kr(e){var t;const{attributes:{style:n},setAttributes:o}=e;return $r(e)?null:Object(l.createElement)(Wr,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textTransform,onChange:function(e){o({style:qo({...n,typography:{...null==n?void 0:n.typography,textTransform:e}})})}})}function $r({name:e}={}){const t=!Object(b.hasBlockSupport)(e,"typography.__experimentalTextTransform"),n=Io("typography.customTextTransforms");return t||!n}function qr(e){const t=!Vr(e),n=!$r(e);return t||n?Object(l.createElement)("div",{className:"block-editor-text-decoration-and-transform"},t&&Object(l.createElement)(Fr,e),n&&Object(l.createElement)(Kr,e)):null}var Yr=n(13);function Xr({value:e,onChange:t}){const n=function(e){return void 0!==e&&""!==e}(e),o=n?e:"";return Object(l.createElement)("div",{className:"block-editor-line-height-control"},Object(l.createElement)(m.TextControl,{autoComplete:"off",onKeyDown:e=>{const{keyCode:o}=e;o!==Yr.ZERO||n||(e.preventDefault(),t("0"))},onChange:e=>{if(n)return void t(e);let o=e;switch(e){case"0.1":o=1.6;break;case"0":o=1.4}t(o)},label:Object(O.__)("Line height"),placeholder:1.5,step:.1,type:"number",value:o,min:0}))}function Qr(e){var t;const{attributes:{style:n}}=e;return Zr(e)?null:Object(l.createElement)(Xr,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.lineHeight,onChange:t=>{const o={...n,typography:{...null==n?void 0:n.typography,lineHeight:t}};e.setAttributes({style:qo(o)})}})}function Zr({name:e}={}){const t=!Io("typography.customLineHeight");return!Object(b.hasBlockSupport)(e,"typography.lineHeight")||t}const Jr=[{name:Object(O.__)("Regular"),value:"normal"},{name:Object(O.__)("Italic"),value:"italic"}],ec=[{name:Object(O.__)("Thin"),value:"100"},{name:Object(O.__)("Extra Light"),value:"200"},{name:Object(O.__)("Light"),value:"300"},{name:Object(O.__)("Regular"),value:"400"},{name:Object(O.__)("Medium"),value:"500"},{name:Object(O.__)("Semi Bold"),value:"600"},{name:Object(O.__)("Bold"),value:"700"},{name:Object(O.__)("Extra Bold"),value:"800"},{name:Object(O.__)("Black"),value:"900"}];function tc(e){const{onChange:t,hasFontStyles:n=!0,hasFontWeights:o=!0,value:{fontStyle:r,fontWeight:c}}=e,i=n||o,a={key:"default",name:Object(O.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},s=Object(l.useMemo)(()=>n&&o?(()=>{const e=[a];return Jr.forEach(({name:t,value:n})=>{ec.forEach(({name:o,value:r})=>{const c="normal"===n?o:Object(O.sprintf)(
9
  /* translators: 1: Font weight name. 2: Font style name. */
10
+ Object(O.__)("%1$s %2$s"),o,t);e.push({key:`${n}-${r}`,name:c,style:{fontStyle:n,fontWeight:r}})})}),e})():n?(()=>{const e=[a];return Jr.forEach(({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:n,fontWeight:void 0}})}),e})():(()=>{const e=[a];return ec.forEach(({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:void 0,fontWeight:n}})}),e})(),[e.options]),u=s.find(e=>e.style.fontStyle===r&&e.style.fontWeight===c);return Object(l.createElement)("fieldset",{className:"components-font-appearance-control"},i&&Object(l.createElement)(m.CustomSelectControl,{className:"components-font-appearance-control__select",label:n?o?Object(O.__)("Appearance"):Object(O.__)("Font style"):Object(O.__)("Font weight"),options:s,value:u,onChange:({selectedItem:e})=>t(e.style)}))}function nc(e){var t,n;const{attributes:{style:o},setAttributes:r}=e,c=!oc(e),i=!rc(e);if(!c&&!i)return null;const a=null==o||null===(t=o.typography)||void 0===t?void 0:t.fontStyle,s=null==o||null===(n=o.typography)||void 0===n?void 0:n.fontWeight;return Object(l.createElement)(tc,{onChange:e=>{r({style:qo({...o,typography:{...null==o?void 0:o.typography,fontStyle:e.fontStyle,fontWeight:e.fontWeight}})})},hasFontStyles:c,hasFontWeights:i,value:{fontStyle:a,fontWeight:s}})}function oc({name:e}={}){const t=Object(b.hasBlockSupport)(e,"typography.__experimentalFontStyle"),n=Io("typography.customFontStyle");return!t||!n}function rc({name:e}={}){const t=Object(b.hasBlockSupport)(e,"typography.__experimentalFontWeight"),n=Io("typography.customFontWeight");return!t||!n}function cc(e){const t=oc(e),n=rc(e);return t&&n}function lc({value:e="",onChange:t,fontFamilies:n,...o}){const r=Io("typography.fontFamilies");if(n||(n=r),Object(s.isEmpty)(n))return null;const i=[{value:"",label:Object(O.__)("Default")},...n.map(({fontFamily:e,name:t})=>({value:e,label:t||e}))];return Object(l.createElement)(m.SelectControl,Object(c.a)({label:Object(O.__)("Font family"),options:i,value:e,onChange:t,labelPosition:"top"},o))}function ic({name:e,setAttributes:t,attributes:{style:n={}}}){var o;const r=Io("typography.fontFamilies");if(ac({name:e}))return null;const c=((e,t)=>{const n=/var:preset\|font-family\|(.+)/.exec(t);if(n&&n[1]){const t=Object(s.find)(e,({slug:e})=>e===n[1]);if(t)return t.fontFamily}return t})(r,null===(o=n.typography)||void 0===o?void 0:o.fontFamily);return Object(l.createElement)(lc,{className:"block-editor-hooks-font-family-control",fontFamilies:r,value:c,onChange:function(e){const o=Object(s.find)(r,({fontFamily:t})=>t===e);t({style:qo({...n,typography:{...n.typography||{},fontFamily:o?"var:preset|font-family|"+o.slug:e||void 0}})})}})}function ac({name:e}){const t=Io("typography.fontFamilies");return!t||0===t.length||!Object(b.hasBlockSupport)(e,"typography.__experimentalFontFamily")}var sc=n(145),uc=n.n(sc);const dc=(e,t,n)=>{if(t){const n=Object(s.find)(e,{slug:t});if(n)return n}return{size:n}};function bc(e,t){return Object(s.find)(e,{size:t})||{size:t}}function mc(e){if(e)return`has-${Object(s.kebabCase)(e)}-font-size`}var pc=function(e){const t=Io("typography.fontSizes"),n=!Io("typography.customFontSize");return Object(l.createElement)(m.FontSizePicker,Object(c.a)({},e,{fontSizes:t,disableCustomFontSizes:n}))};function fc(e,t,n){if(!Object(b.hasBlockSupport)(t,"typography.fontSize"))return e;if(Object(b.hasBlockSupport)(t,"typography.__experimentalSkipSerialization"))return e;const o=new uc.a(e.className);o.add(mc(n.fontSize));const r=o.value;return e.className=r||void 0,e}function gc(e){var t,n;const{attributes:{fontSize:o,style:r},setAttributes:c}=e,i=hc(e),a=Io("typography.fontSizes");if(i)return null;const s=dc(a,o,null==r||null===(t=r.typography)||void 0===t?void 0:t.fontSize),u=(null==s?void 0:s.size)||(null==r||null===(n=r.typography)||void 0===n?void 0:n.fontSize)||o;return Object(l.createElement)(pc,{onChange:e=>{const t=bc(a,e).slug;c({style:qo({...r,typography:{...null==r?void 0:r.typography,fontSize:t?void 0:e}}),fontSize:t})},value:u})}function hc({name:e}={}){const t=Io("typography.fontSizes"),n=!(null==t||!t.length);return!Object(b.hasBlockSupport)(e,"typography.fontSize")||!n}const Oc=Object(u.createHigherOrderComponent)(e=>t=>{var n,o;const r=Io("typography.fontSizes"),{name:c,attributes:{fontSize:i,style:a},wrapperProps:s}=t;if(!Object(b.hasBlockSupport)(c,"typography.fontSize")||Object(b.hasBlockSupport)(c,"typography.__experimentalSkipSerialization")||!i||null!=a&&null!==(n=a.typography)&&void 0!==n&&n.fontSize)return Object(l.createElement)(e,t);const u=dc(r,i,null==a||null===(o=a.typography)||void 0===o?void 0:o.fontSize).size,d={...t,wrapperProps:{...s,style:{fontSize:u,...null==s?void 0:s.style}}};return Object(l.createElement)(e,d)},"withFontSizeInlineStyles");function vc({value:e,onChange:t}){const n=Object(m.__experimentalUseCustomUnits)({availableUnits:Io("layout.units")||["px","em","rem"],defaultValues:{px:"2",em:".2",rem:".2"}});return Object(l.createElement)(m.__experimentalUnitControl,{label:Object(O.__)("Letter-spacing"),value:e,__unstableInputWidth:"60px",units:n,onChange:t})}function jc(e){var t;const{attributes:{style:n},setAttributes:o}=e;return kc(e)?null:Object(l.createElement)(vc,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.letterSpacing,onChange:function(e){o({style:qo({...n,typography:{...null==n?void 0:n.typography,letterSpacing:e}})})}})}function kc({name:e}={}){const t=!Object(b.hasBlockSupport)(e,"__experimentalLetterSpacing"),n=Io("typography.customLetterSpacing");return t||!n}Object(d.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(b.hasBlockSupport)(e,"typography.fontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(d.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",fc),Object(d.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(b.hasBlockSupport)(e,"typography.fontSize"))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),fc(o,e,n)},e})),Object(d.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",Oc);const _c=["typography.lineHeight","typography.fontSize","typography.__experimentalFontStyle","typography.__experimentalFontWeight","typography.__experimentalFontFamily","typography.__experimentalTextDecoration","typography.__experimentalTextTransform","__experimentalLetterSpacing"];function yc(e){const t=function(e={}){const t=[cc(e),hc(e),Zr(e),ac(e),Vr(e),$r(e),kc(e)];return t.filter(Boolean).length===t.length}(e),n=Ec(e.name);return t||!n?null:Object(l.createElement)(_o,null,Object(l.createElement)(m.PanelBody,{title:Object(O.__)("Typography")},Object(l.createElement)(ic,e),Object(l.createElement)(gc,e),Object(l.createElement)(nc,e),Object(l.createElement)(Qr,e),Object(l.createElement)(qr,e),Object(l.createElement)(jc,e)))}const Ec=e=>"web"===l.Platform.OS&&_c.some(t=>Object(b.hasBlockSupport)(e,t));function Cc(e){const t=Object(b.getBlockSupport)(e,Tc);return!!(!0===t||null!=t&&t.margin)}function Sc({name:e}={}){const t=!Io("spacing.customMargin");return!Cc(e)||t}function wc(e){var t;const{name:n,attributes:{style:o},setAttributes:r}=e,c=Object(m.__experimentalUseCustomUnits)({availableUnits:Io("spacing.units")||["%","px","em","rem","vw"]}),i=Pc(n,"margin");return Sc(e)?null:l.Platform.select({web:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.__experimentalBoxControl,{values:null==o||null===(t=o.spacing)||void 0===t?void 0:t.margin,onChange:e=>{const t={...o,spacing:{...null==o?void 0:o.spacing,margin:e}};r({style:qo(t)})},onChangeShowVisualizer:e=>{const t={...o,visualizers:{margin:e}};r({style:qo(t)})},label:Object(O.__)("Margin"),sides:i,units:c})),native:null})}function Bc(e){const t=Object(b.getBlockSupport)(e,Tc);return!!(!0===t||null!=t&&t.padding)}function Ic({name:e}={}){const t=!Io("spacing.customPadding");return!Bc(e)||t}function xc(e){var t;const{name:n,attributes:{style:o},setAttributes:r}=e,c=Object(m.__experimentalUseCustomUnits)({availableUnits:Io("spacing.units")||["%","px","em","rem","vw"]}),i=Pc(n,"padding");return Ic(e)?null:l.Platform.select({web:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.__experimentalBoxControl,{values:null==o||null===(t=o.spacing)||void 0===t?void 0:t.padding,onChange:e=>{const t={...o,spacing:{...null==o?void 0:o.spacing,padding:e}};r({style:qo(t)})},onChangeShowVisualizer:e=>{const t={...o,visualizers:{padding:e}};r({style:qo(t)})},label:Object(O.__)("Padding"),sides:i,units:c})),native:null})}const Tc="spacing";function Nc(e){const t=Lc(e),n=(o=e.name,"web"===l.Platform.OS&&(Bc(o)||Cc(o)));var o;return t||!n?null:Object(l.createElement)(_o,{key:"spacing"},Object(l.createElement)(m.PanelBody,{title:Object(O.__)("Spacing")},Object(l.createElement)(xc,e),Object(l.createElement)(wc,e)))}const Lc=(e={})=>{const t=Ic(e),n=Sc(e);return t&&n};function Pc(e,t){const n=Object(b.getBlockSupport)(e,Tc);if("boolean"!=typeof n[t])return n[t]}const Rc=[..._c,"__experimentalBorder","color",Tc],Ac=e=>Rc.some(t=>Object(b.hasBlockSupport)(e,t));function Mc(e){return Object(s.startsWith)(e,"var:")?`var(--wp--${e.slice("var:".length).split("|").join("--")})`:e}function Dc(e={}){const t={};return Object.keys(b.__EXPERIMENTAL_STYLE_PROPERTY).forEach(n=>{const o=b.__EXPERIMENTAL_STYLE_PROPERTY[n].value,r=b.__EXPERIMENTAL_STYLE_PROPERTY[n].properties;if(Object(s.has)(e,o)&&"elements"!==Object(s.first)(o)){const c=Object(s.get)(e,o);r&&!Object(s.isString)(c)?Object.entries(r).forEach(e=>{const[n,o]=e,r=Object(s.get)(c,[o]);r&&(t[n]=Mc(r))}):t[n]=Mc(Object(s.get)(e,o))}}),t}const Fc={"__experimentalBorder.__experimentalSkipSerialization":["border"],"color.__experimentalSkipSerialization":["color"],"typography.__experimentalSkipSerialization":["typography"],[Tc+".__experimentalSkipSerialization"]:["spacing"]};function Vc(e,t,n){if(!Ac(t))return e;let{style:o}=n;return Object(s.forEach)(Fc,(e,n)=>{Object(b.getBlockSupport)(t,n)&&(o=Object(s.omit)(o,e))}),e.style={...Dc(o),...e.style},e}const Hc=Object(u.createHigherOrderComponent)(e=>t=>{const n=Mn();return Object(l.createElement)(l.Fragment,null,n&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(yc,t),Object(l.createElement)(cr,t),Object(l.createElement)(Lr,t),Object(l.createElement)(Nc,t)),Object(l.createElement)(e,t))},"withToolbarControls"),zc=Object(u.createHigherOrderComponent)(e=>t=>{var n,o;const r=null===(n=t.attributes.style)||void 0===n?void 0:n.elements,i="wp-elements-"+Object(u.useInstanceId)(e),d=function(e,t={}){return Object(s.map)(t,(t,n)=>{const o=Dc(t);return Object(s.isEmpty)(o)?"":[`.${e} ${b.__EXPERIMENTAL_ELEMENTS[n]}{`,...Object(s.map)(o,(e,t)=>`\t${Object(s.kebabCase)(t)}: ${e}${"link"===n?"!important":""};`),"}"].join("\n")}).join("\n")}(i,null===(o=t.attributes.style)||void 0===o?void 0:o.elements);return Object(l.createElement)(l.Fragment,null,r&&Object(l.createElement)("style",{dangerouslySetInnerHTML:{__html:d}}),Object(l.createElement)(e,Object(c.a)({},t,{className:r?a()(t.className,i):t.className})))});Object(d.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Ac(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(d.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",Vc),Object(d.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Ac(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),Vc(o,e,n)},e})),Object(d.addFilter)("editor.BlockEdit","core/style/with-block-controls",Hc),Object(d.addFilter)("editor.BlockListBlock","core/editor/with-elements-styles",zc);var Gc=function({value:e,onChange:t,onToggle:n,duotonePalette:o,colorPalette:r,disableCustomColors:c}){return Object(l.createElement)(m.Popover,{className:"block-editor-duotone-control__popover",headerTitle:Object(O.__)("Duotone"),onFocusOutside:n},Object(l.createElement)(m.MenuGroup,{label:Object(O.__)("Duotone")},Object(l.createElement)(m.DuotonePicker,{colorPalette:r,duotonePalette:o,disableCustomColors:c,value:e,onChange:t})))},Uc=function({colorPalette:e,duotonePalette:t,disableCustomColors:n,value:o,onChange:r}){const[c,i]=Object(l.useState)(!1);if(!t)return null;const a=()=>{i(e=>!e)};return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.ToolbarButton,{showTooltip:!0,onClick:a,"aria-haspopup":"true","aria-expanded":c,onKeyDown:e=>{c||e.keyCode!==Yr.DOWN||(e.preventDefault(),e.stopPropagation(),a())},label:Object(O.__)("Apply duotone filter"),icon:Object(l.createElement)(m.DuotoneSwatch,{values:o})}),c&&Object(l.createElement)(Gc,{value:o,onChange:r,onToggle:a,duotonePalette:t,colorPalette:e,disableCustomColors:n}))};function Wc(e=[]){const t={r:[],g:[],b:[]};return e.forEach(e=>{const n=To()(e);t.r.push(n._r/255),t.g.push(n._g/255),t.b.push(n._b/255)}),t}function Kc({selector:e,id:t,values:n}){const o=`\n${e} {\n\tfilter: url( #${t} );\n}\n`;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.SVG,{xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 0 0",width:"0",height:"0",focusable:"false",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"}},Object(l.createElement)("defs",null,Object(l.createElement)("filter",{id:t},Object(l.createElement)("feColorMatrix",{type:"matrix",values:".299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 0 0 0 1 0"}),Object(l.createElement)("feComponentTransfer",{colorInterpolationFilters:"sRGB"},Object(l.createElement)("feFuncR",{type:"table",tableValues:n.r.join(" ")}),Object(l.createElement)("feFuncG",{type:"table",tableValues:n.g.join(" ")}),Object(l.createElement)("feFuncB",{type:"table",tableValues:n.b.join(" ")}))))),Object(l.createElement)("style",{dangerouslySetInnerHTML:{__html:o}}))}function $c({attributes:e,setAttributes:t}){var n;const o=null==e?void 0:e.style,r=null==o||null===(n=o.color)||void 0===n?void 0:n.duotone,c=Io("color.duotone"),i=Io("color.palette"),a=!Io("color.custom");return Object(l.createElement)(Gn,{group:"block"},Object(l.createElement)(Uc,{duotonePalette:c,colorPalette:i,disableCustomColors:a,value:r,onChange:e=>{const n={...o,color:{...null==o?void 0:o.color,duotone:e}};t({style:n})}}))}const qc=Object(u.createHigherOrderComponent)(e=>t=>{const n=Object(b.hasBlockSupport)(t.name,"color.__experimentalDuotone");return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(e,t),n&&Object(l.createElement)($c,t))},"withDuotoneControls"),Yc=Object(u.createHigherOrderComponent)(e=>t=>{var n,o,r;const i=Object(b.getBlockSupport)(t.name,"color.__experimentalDuotone"),s=null==t||null===(n=t.attributes)||void 0===n||null===(o=n.style)||void 0===o||null===(r=o.color)||void 0===r?void 0:r.duotone;if(!i||!s)return Object(l.createElement)(e,t);const d="wp-duotone-filter-"+Object(u.useInstanceId)(e),m=i.split(",").map(e=>`.${d} ${e.trim()}`).join(", "),p=a()(null==t?void 0:t.className,d);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Kc,{selector:m,id:d,values:Wc(s)}),Object(l.createElement)(e,Object(c.a)({},t,{className:p})))},"withDuotoneStyles");Object(d.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",(function(e){return Object(b.hasBlockSupport)(e,"color.__experimentalDuotone")?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(d.addFilter)("editor.BlockEdit","core/editor/duotone/with-editor-controls",qc),Object(d.addFilter)("editor.BlockListBlock","core/editor/duotone/with-styles",Yc);var Xc=n(109);function Qc({setAttributes:e,attributes:t}){const{layout:n={}}=t,{wideSize:o,contentSize:r,inherit:c=!1}=n,i=Io("layout"),a=Object(p.useSelect)(e=>{const{getSettings:t}=e(An);return t().supportsLayout},[]),s=Object(m.__experimentalUseCustomUnits)({availableUnits:Io("layout.units")||["%","px","em","rem","vw"]});return a?Object(l.createElement)(_o,null,Object(l.createElement)(m.PanelBody,{title:Object(O.__)("Layout")},!!i&&Object(l.createElement)(m.ToggleControl,{label:Object(O.__)("Inherit default layout"),checked:!!c,onChange:()=>e({layout:{inherit:!c}})}),!c&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"block-editor-hooks__layout-controls"},Object(l.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},Object(l.createElement)(m.__experimentalUnitControl,{label:Object(O.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:r||o||"",onChange:t=>{t=0>parseFloat(t)?"0":t,e({layout:{...n,contentSize:t}})},units:s}),Object(l.createElement)(Xc.a,{icon:Kn})),Object(l.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},Object(l.createElement)(m.__experimentalUnitControl,{label:Object(O.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:o||r||"",onChange:t=>{t=0>parseFloat(t)?"0":t,e({layout:{...n,wideSize:t}})},units:s}),Object(l.createElement)(Xc.a,{icon:qn}))),Object(l.createElement)("div",{className:"block-editor-hooks__layout-controls-reset"},Object(l.createElement)(m.Button,{variant:"secondary",isSmall:!0,disabled:!r&&!o,onClick:()=>e({layout:{contentSize:void 0,wideSize:void 0,inherit:!1}})},Object(O.__)("Reset")))),Object(l.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},Object(O.__)("Customize the width for all elements that are assigned to the center or wide columns.")))):null}const Zc=Object(u.createHigherOrderComponent)(e=>t=>{const{name:n}=t;return[Object(b.hasBlockSupport)(n,"__experimentalLayout")&&Object(l.createElement)(Qc,Object(c.a)({key:"layout"},t)),Object(l.createElement)(e,Object(c.a)({key:"edit"},t))]},"withInspectorControls"),Jc=Object(u.createHigherOrderComponent)(e=>t=>{const{name:n,attributes:o}=t,r=Object(b.hasBlockSupport)(n,"__experimentalLayout"),i=Object(u.useInstanceId)(e),s=Io("layout")||{};if(!r)return Object(l.createElement)(e,t);const{layout:d={}}=o,m=d&&d.inherit?s:d,p=a()(null==t?void 0:t.className,"wp-container-"+i);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(eo,{selector:".wp-container-"+i,layout:m}),Object(l.createElement)(e,Object(c.a)({},t,{className:p})))});Object(d.addFilter)("blocks.registerBlockType","core/layout/addAttribute",(function(e){return Object(s.has)(e.attributes,["layout","type"])||Object(b.hasBlockSupport)(e,"__experimentalLayout")&&(e.attributes={...e.attributes,layout:{type:"object"}}),e})),Object(d.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",Jc),Object(d.addFilter)("editor.BlockEdit","core/editor/layout/with-inspector-controls",Zc);const el=[];function tl({borderColor:e,style:t}){var n;const o=(null==t?void 0:t.border)||{},r=Po("border-color",e);return{className:a()({[r]:!!r,"has-border-color":e||(null==t||null===(n=t.border)||void 0===n?void 0:n.color)})||void 0,style:Dc({border:o})}}function nl(e){const t=Io("color.palette")||el,n=tl(e);if(e.borderColor){const o=No(t,e.borderColor);n.style.borderColor=o.color}return n}const ol=[];function rl(e){var t,n,o,r,c,l;const{backgroundColor:i,textColor:s,gradient:u,style:d}=e,b=Po("background-color",i),m=Po("color",s),p=Ao(u),f=p||(null==d||null===(t=d.color)||void 0===t?void 0:t.gradient);return{className:a()(m,p,{[b]:!f&&!!b,"has-text-color":s||(null==d||null===(n=d.color)||void 0===n?void 0:n.text),"has-background":i||(null==d||null===(o=d.color)||void 0===o?void 0:o.background)||u||(null==d||null===(r=d.color)||void 0===r?void 0:r.gradient),"has-link-color":null==d||null===(c=d.elements)||void 0===c||null===(l=c.link)||void 0===l?void 0:l.color})||void 0,style:Dc({color:(null==d?void 0:d.color)||{}})}}function cl(e){const{backgroundColor:t,textColor:n,gradient:o}=e,r=Io("color.palette")||ol,c=Io("color.gradients")||ol,l=rl(e);if(t){const e=No(r,t);l.style.backgroundColor=e.color}if(o&&(l.style.background=Mo(c,o)),n){const e=No(r,n);l.style.color=e.color}return l}const ll=[];function il(e,t){const n=Object(s.reduce)(e,(e,t)=>({...e,...Object(s.isString)(t)?{[t]:Object(s.kebabCase)(t)}:t}),{});return Object(u.compose)([t,e=>class extends l.Component{constructor(e){super(e),this.setters=this.createSetters(),this.colorUtils={getMostReadableColor:this.getMostReadableColor.bind(this)},this.state={}}getMostReadableColor(e){const{colors:t}=this.props;return function(e,t){return To.a.mostReadable(t,Object(s.map)(e,"color")).toHexString()}(t,e)}createSetters(){return Object(s.reduce)(n,(e,t,n)=>{const o=Object(s.upperFirst)(n),r="custom"+o;return e["set"+o]=this.createSetColor(n,r),e},{})}createSetColor(e,t){return n=>{const o=Lo(this.props.colors,n);this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,colors:t},o){return Object(s.reduce)(n,(n,r,c)=>{const l=No(t,e[c],e["custom"+Object(s.upperFirst)(c)]),i=o[c];return(null==i?void 0:i.color)===l.color&&i?n[c]=i:n[c]={...l,class:Po(r,l.slug)},n},{})}render(){return Object(l.createElement)(e,Object(c.a)({},this.props,{colors:void 0},this.state,this.setters,{colorUtils:this.colorUtils}))}}])}function al(e){return(...t)=>{const n=(e=>Object(u.createHigherOrderComponent)(t=>n=>Object(l.createElement)(t,Object(c.a)({},n,{colors:e})),"withCustomColorPalette"))(e);return Object(u.createHigherOrderComponent)(il(t,n),"withCustomColors")}}function sl(...e){const t=Object(u.createHigherOrderComponent)(e=>t=>{const n=Io("color.palette")||ll;return Object(l.createElement)(e,Object(c.a)({},t,{colors:n}))},"withEditorColorPalette");return Object(u.createHigherOrderComponent)(il(e,t),"withColors")}const ul=[];var dl=(...e)=>{const t=Object(s.reduce)(e,(e,t)=>(e[t]="custom"+Object(s.upperFirst)(t),e),{});return Object(u.createHigherOrderComponent)(Object(u.compose)([Object(u.createHigherOrderComponent)(e=>t=>{const n=Io("typography.fontSizes")||ul;return Object(l.createElement)(e,Object(c.a)({},t,{fontSizes:n}))},"withFontSizes"),e=>class extends l.Component{constructor(e){super(e),this.setters=this.createSetters(),this.state={}}createSetters(){return Object(s.reduce)(t,(e,t,n)=>(e["set"+Object(s.upperFirst)(n)]=this.createSetFontSize(n,t),e),{})}createSetFontSize(e,t){return n=>{const o=Object(s.find)(this.props.fontSizes,{size:Number(n)});this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,fontSizes:n},o){const r=(t,n)=>!o[n]||(e[n]?e[n]!==o[n].slug:o[n].size!==e[t]);if(!Object(s.some)(t,r))return null;const c=Object(s.reduce)(Object(s.pickBy)(t,r),(t,o,r)=>{const c=e[r],l=dc(n,c,e[o]);return t[r]={...l,class:mc(c)},t},{});return{...o,...c}}render(){return Object(l.createElement)(e,Object(c.a)({},this.props,{fontSizes:void 0},this.state,this.setters))}}]),"withFontSizes")},bl=n(287),ml=n(288),pl=n(289);const fl=[{icon:bl.a,title:Object(O.__)("Align text left"),align:"left"},{icon:ml.a,title:Object(O.__)("Align text center"),align:"center"},{icon:pl.a,title:Object(O.__)("Align text right"),align:"right"}],gl={position:"bottom right",isAlternate:!0};var hl=function({value:e,onChange:t,alignmentControls:n=fl,label:o=Object(O.__)("Align"),describedBy:r=Object(O.__)("Change text alignment"),isCollapsed:i=!0,isToolbar:a}){function u(n){return()=>t(e===n?void 0:n)}const d=Object(s.find)(n,t=>t.align===e),b=a?m.ToolbarGroup:m.ToolbarDropdownMenu,p=a?{isCollapsed:i}:{};return Object(l.createElement)(b,Object(c.a)({icon:d?d.icon:Object(O.isRTL)()?pl.a:bl.a,label:o,toggleProps:{describedBy:r},popoverProps:gl,controls:n.map(t=>{const{align:n}=t,o=e===n;return{...t,isActive:o,role:i?"menuitemradio":void 0,onClick:u(n)}})},p))};function Ol(e){return Object(l.createElement)(hl,Object(c.a)({},e,{isToolbar:!1}))}function vl(e){return Object(l.createElement)(hl,Object(c.a)({},e,{isToolbar:!0}))}const jl=e=>e.name||"",kl=e=>e.title,_l=e=>e.description||"",yl=e=>e.keywords||[],El=e=>e.category,Cl=()=>null;function Sl(e=""){return(e=(e=Object(s.deburr)(e)).replace(/^\//,"")).toLowerCase()}const wl=(e="")=>Object(s.words)(Sl(e)),Bl=(e,t,n,o)=>0===wl(o).length?e:Il(e,o,{getCategory:e=>{var n;return null===(n=Object(s.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:e=>{var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title}}),Il=(e=[],t="",n={})=>{if(0===wl(t).length)return e;const o=e.map(e=>[e,xl(e,t,n)]).filter(([,e])=>e>0);return o.sort(([,e],[,t])=>t-e),o.map(([e])=>e)};function xl(e,t,n={}){const{getName:o=jl,getTitle:r=kl,getDescription:c=_l,getKeywords:l=yl,getCategory:i=El,getCollection:a=Cl}=n,u=o(e),d=r(e),b=c(e),m=l(e),p=i(e),f=a(e),g=Sl(t),h=Sl(d);let O=0;if(g===h)O+=30;else if(h.startsWith(g))O+=20;else{const e=[u,d,b,...m,p,f].join(" ");0===(v=Object(s.words)(g),j=e,Object(s.differenceWith)(v,wl(j),(e,t)=>t.includes(e))).length&&(O+=10)}var v,j;return 0!==O&&u.startsWith("core/")&&O++,O}var Tl=(e,t)=>{const{categories:n,collections:o,items:r}=Object(p.useSelect)(t=>{const{getInserterItems:n}=t(An),{getCategories:o,getCollections:r}=t(b.store);return{categories:o(),collections:r(),items:n(e)}},[e]);return[r,n,o,Object(l.useCallback)(({name:e,initialAttributes:n,innerBlocks:o},r)=>{const c=Object(b.createBlock)(e,n,Object(b.createBlocksFromInnerBlocksTemplate)(o));t(c,void 0,r)},[t])]},Nl=n(150);function Ll({icon:e,showColors:t=!1,className:n}){var o;"block-default"===(null===(o=e)||void 0===o?void 0:o.src)&&(e={src:Nl.a});const r=Object(l.createElement)(m.Icon,{icon:e&&e.src?e.src:e}),c=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return Object(l.createElement)("span",{style:c,className:a()("block-editor-block-icon",n,{"has-colors":t})},r)}var Pl={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockName:n}=Object(p.useSelect)(e=>{const{getSelectedBlockClientId:t,getBlockName:n,getBlockInsertionPoint:o}=e(An),r=t();return{selectedBlockName:r?n(r):null,rootClientId:o().rootClientId}},[]),[o,r,c]=Tl(t,s.noop),i=Object(l.useMemo)(()=>(e.trim()?Bl(o,r,c,e):Object(s.orderBy)(o,["frecency"],["desc"])).filter(e=>e.name!==n).slice(0,9),[e,n,o,r,c]);return[Object(l.useMemo)(()=>i.map(e=>{const{title:t,icon:n,isDisabled:o}=e;return{key:"block-"+e.id,value:e,label:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Ll,{key:"icon",icon:n,showColors:!0}),t),isDisabled:o}}),[i])]},allowContext:(e,t)=>!(/\S/.test(e)||/\S/.test(t)),getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:o}=e;return{action:"replace",value:Object(b.createBlock)(t,n,Object(b.createBlocksFromInnerBlocksTemplate)(o))}}};const Rl=[];function Al({completers:e=Rl}){const{name:t}=h();return Object(l.useMemo)(()=>{let n=e;return t===Object(b.getDefaultBlockName)()&&(n=n.concat([Pl])),Object(d.hasFilter)("editor.Autocomplete.completers")&&(n===e&&(n=n.map(s.clone)),n=Object(d.applyFilters)("editor.Autocomplete.completers",n,t)),n},[e,t])}var Ml=function(e){return Object(l.createElement)(m.Autocomplete,Object(c.a)({},e,{completers:Al(e)}))},Dl=Object(l.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Un.Path,{d:"M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"})),Fl=function({isActive:e,label:t=Object(O.__)("Toggle full height"),onToggle:n,isDisabled:o}){return Object(l.createElement)(m.ToolbarButton,{isActive:e,icon:Dl,label:t,onClick:()=>n(!e),disabled:o})},Vl=function(e){const{label:t=Object(O.__)("Change matrix alignment"),onChange:n=s.noop,value:o="center",isDisabled:r}=e,c=Object(l.createElement)(m.__experimentalAlignmentMatrixControl.Icon,{value:o});return Object(l.createElement)(m.Dropdown,{position:"bottom right",className:"block-editor-block-alignment-matrix-control",popoverProps:{className:"block-editor-block-alignment-matrix-control__popover",isAlternate:!0},renderToggle:({onToggle:e,isOpen:n})=>Object(l.createElement)(m.ToolbarButton,{onClick:e,"aria-haspopup":"true","aria-expanded":n,onKeyDown:t=>{n||t.keyCode!==Yr.DOWN||(t.preventDefault(),t.stopPropagation(),e())},label:t,icon:c,showTooltip:!0,disabled:r}),renderContent:()=>Object(l.createElement)(m.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:n,value:o})})};function Hl(e){return Object(p.useSelect)(t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:o}=t(An),{getBlockType:r,getActiveBlockVariation:c}=t(b.store),l=n(e),i=r(l);if(!i)return null;const a=o(e),s=c(l,a),u={title:i.title,icon:i.icon,description:i.description,anchor:null==a?void 0:a.anchor};return s?{title:s.title||i.title,icon:s.icon||i.icon,description:s.description||i.description}:u},[e])}function zl({clientId:e}){const{attributes:t,name:n,reusableBlockTitle:o}=Object(p.useSelect)(t=>{if(!e)return{};const{getBlockName:n,getBlockAttributes:o,__experimentalGetReusableBlockTitle:r}=t(An),c=n(e);if(!c)return{};const l=Object(b.isReusableBlock)(Object(b.getBlockType)(c));return{attributes:o(e),name:c,reusableBlockTitle:l&&r(o(e).ref)}},[e]),r=Hl(e);if(!n||!r)return null;const c=Object(b.getBlockType)(n),l=o||Object(b.__experimentalGetBlockLabel)(c,t);return l!==c.title?Object(s.truncate)(l,{length:35}):r.title}var Gl=function({rootLabelText:e}){const{selectBlock:t,clearSelectedBlock:n}=Object(p.useDispatch)(An),{clientId:o,parents:r,hasSelection:c}=Object(p.useSelect)(e=>{const{getSelectionStart:t,getSelectedBlockClientId:n,getBlockParents:o}=e(An),r=n();return{parents:o(r),clientId:r,hasSelection:!!t().clientId}},[]),i=e||Object(O.__)("Document");return Object(l.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(O.__)("Block breadcrumb")},Object(l.createElement)("li",{className:c?void 0:"block-editor-block-breadcrumb__current","aria-current":c?void 0:"true"},c&&Object(l.createElement)(m.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:n},i),!c&&i),r.map(e=>Object(l.createElement)("li",{key:e},Object(l.createElement)(m.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:()=>t(e)},Object(l.createElement)(zl,{clientId:e})))),!!o&&Object(l.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(l.createElement)(zl,{clientId:o})))};function Ul({clientId:e,tagName:t="div",wrapperProps:n,className:o}){const[r,i]=Object(l.useState)(!0),[s,u]=Object(l.useState)(!1),{isParentSelected:d,hasChildSelected:b,isDraggingBlocks:m,isParentHighlighted:f}=Object(p.useSelect)(t=>{const{isBlockSelected:n,hasSelectedInnerBlock:o,isDraggingBlocks:r,isBlockHighlighted:c}=t(An);return{isParentSelected:n(e),hasChildSelected:o(e,!0),isDraggingBlocks:r(),isParentHighlighted:c(e)}},[e]),g=a()("block-editor-block-content-overlay",null==n?void 0:n.className,o,{"overlay-active":r,"parent-highlighted":f,"is-dragging-blocks":m});return Object(l.useEffect)(()=>{d||b||r||i(!0),d&&!s&&r&&i(!1),b&&r&&i(!1)},[d,b,r,s]),Object(l.createElement)(t,Object(c.a)({},n,{className:g,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1)}),r&&Object(l.createElement)("div",{className:"block-editor-block-content-overlay__overlay",onMouseUp:()=>i(!1)}),null==n?void 0:n.children)}const Wl=Object(l.createContext)({});function Kl({value:e,children:t}){const n=Object(l.useContext)(Wl),o=Object(l.useMemo)(()=>({...n,...e}),[n,e]);return Object(l.createElement)(Wl.Provider,{value:o,children:t})}var $l=Wl;const ql=()=>Object(l.createElement)(m.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(l.createElement)(m.Path,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"})),Yl=({style:e,className:t})=>Object(l.createElement)("div",{className:"block-library-colors-selector__icon-container"},Object(l.createElement)("div",{className:t+" block-library-colors-selector__state-selection",style:e},Object(l.createElement)(ql,null))),Xl=({TextColor:e,BackgroundColor:t})=>({onToggle:n,isOpen:o})=>Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(m.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:Object(O.__)("Open Colors Selector"),onClick:n,onKeyDown:e=>{o||e.keyCode!==Yr.DOWN||(e.preventDefault(),e.stopPropagation(),n())},icon:Object(l.createElement)(t,null,Object(l.createElement)(e,null,Object(l.createElement)(Yl,null)))}));var Ql=({children:e,...t})=>Object(l.createElement)(m.Dropdown,{position:"bottom right",className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:Xl(t),renderContent:()=>e});const Zl={};var Jl=Object(m.withFilters)("editor.BlockEdit")(e=>{const{attributes:t={},name:n}=e,o=Object(b.getBlockType)(n),r=Object(l.useContext)($l),i=Object(l.useMemo)(()=>o&&o.usesContext?Object(s.pick)(r,o.usesContext):Zl,[o,r]);if(!o)return null;const u=o.edit||o.save;if(o.apiVersion>1||Object(b.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(l.createElement)(u,Object(c.a)({},e,{context:i}));const d=Object(b.hasBlockSupport)(o,"className",!0)?Object(b.getBlockDefaultClassName)(n):null,m=a()(d,t.className);return Object(l.createElement)(u,Object(c.a)({},e,{context:i,className:m}))});function ei(e){const{name:t,isSelected:n,clientId:o}=e,r={name:t,isSelected:n,clientId:o};return Object(l.createElement)(g,{value:Object(l.useMemo)(()=>r,Object.values(r))},Object(l.createElement)(Jl,e))}var ti=n(175),ni=n(153),oi=n(103),ri=n(22);const ci=e=>e+1,li=e=>({top:e.offsetTop,left:e.offsetLeft});var ii=function({isSelected:e,adjustScrolling:t,enableAnimation:n,triggerAnimationOnChange:o}){const r=Object(l.useRef)(),c=Object(u.useReducedMotion)()||!n,[i,a]=Object(l.useReducer)(ci,0),[s,d]=Object(l.useReducer)(ci,0),[b,m]=Object(l.useState)({x:0,y:0}),p=Object(l.useMemo)(()=>r.current?li(r.current):null,[o]),f=Object(l.useMemo)(()=>{if(!t||!r.current)return()=>{};const e=Object(ri.getScrollContainer)(r.current);if(!e)return()=>{};const n=r.current.getBoundingClientRect();return()=>{const t=r.current.getBoundingClientRect().top-n.top;t&&(e.scrollTop+=t)}},[o,t]);function g({x:t,y:n}){t=Math.round(t),n=Math.round(n),t===g.x&&n===g.y||(function({x:t,y:n}){if(!r.current)return;const o=0===t&&0===n;r.current.style.transformOrigin=o?"":"center",r.current.style.transform=o?"":`translate3d(${t}px,${n}px,0)`,r.current.style.zIndex=!e||o?"":"1",f()}({x:t,y:n}),g.x=t,g.y=n)}return Object(l.useLayoutEffect)(()=>{i&&d()},[i]),Object(l.useLayoutEffect)(()=>{if(!p)return;if(c)return void f();r.current.style.transform="";const e=li(r.current);a(),m({x:Math.round(p.left-e.left),y:Math.round(p.top-e.top)})},[o]),g.x=0,g.y=0,Object(oi.useSpring)({from:{x:b.x,y:b.y},to:{x:0,y:0},reset:i!==s,config:{mass:5,tension:2e3,friction:200},immediate:c,onFrame:g}),r};const ai=Object(oi.animated)(m.__experimentalTreeGridRow);function si({isSelected:e,position:t,level:n,rowCount:o,children:r,className:i,path:s,...u}){const d=ii({isSelected:e,adjustScrolling:!1,enableAnimation:!0,triggerAnimationOnChange:s.join("_")});return Object(l.createElement)(ai,Object(c.a)({ref:d,className:a()("block-editor-block-navigation-leaf",i),level:n,positionInSet:t,setSize:o},u),r)}var ui=n(210),di=n(211),bi=n(290),mi=n(152);const pi=(e,t)=>"up"===e?"horizontal"===t?Object(O.isRTL)()?ui.a:di.a:bi.a:"down"===e?"horizontal"===t?Object(O.isRTL)()?di.a:ui.a:mi.a:null,fi=(e,t)=>"up"===e?"horizontal"===t?Object(O.isRTL)()?Object(O.__)("Move right"):Object(O.__)("Move left"):Object(O.__)("Move up"):"down"===e?"horizontal"===t?Object(O.isRTL)()?Object(O.__)("Move left"):Object(O.__)("Move right"):Object(O.__)("Move down"):null,gi=Object(l.forwardRef)(({clientIds:e,direction:t,orientation:n,...o},r)=>{const i=Object(u.useInstanceId)(gi),d=Object(s.castArray)(e).length,{blockType:f,isDisabled:g,rootClientId:h,isFirst:v,isLast:j,firstIndex:k,orientation:_="vertical"}=Object(p.useSelect)(o=>{const{getBlockIndex:r,getBlockRootClientId:c,getBlockOrder:l,getBlock:i,getBlockListSettings:a}=o(An),u=Object(s.castArray)(e),d=Object(s.first)(u),m=c(d),p=r(d,m),f=r(Object(s.last)(u),m),g=l(m),h=i(d),O=0===p,v=f===g.length-1,{orientation:j}=a(m)||{};return{blockType:h?Object(b.getBlockType)(h.name):null,isDisabled:"up"===t?O:v,rootClientId:m,firstIndex:p,isFirst:O,isLast:v,orientation:n||j}},[e,t]),{moveBlocksDown:y,moveBlocksUp:E}=Object(p.useDispatch)(An),C="up"===t?E:y,S="block-editor-block-mover-button__description-"+i;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.Button,Object(c.a)({ref:r,className:a()("block-editor-block-mover-button",`is-${t}-button`),icon:pi(t,_),label:fi(t,_),"aria-describedby":S},o,{onClick:g?null:t=>{C(e,h),o.onClick&&o.onClick(t)},"aria-disabled":g})),Object(l.createElement)("span",{id:S,className:"block-editor-block-mover-button__description"},function(e,t,n,o,r,c,l){const i=n+1,a=e=>"up"===e?"horizontal"===l?Object(O.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===l?Object(O.isRTL)()?"left":"right":"down":null;if(e>1)return function(e,t,n,o,r){const c=t+1;return r<0&&n?Object(O.__)("Blocks cannot be moved up as they are already at the top"):r>0&&o?Object(O.__)("Blocks cannot be moved down as they are already at the bottom"):r<0&&!n?Object(O.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
11
+ Object(O._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,c):r>0&&!o?Object(O.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
12
+ Object(O._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,c):void 0}(e,n,o,r,c);if(o&&r)return Object(O.sprintf)(// translators: %s: Type of block (i.e. Text, Image etc)
13
+ Object(O.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!r){const e=a("down");if("down"===e)return Object(O.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
14
+ Object(O.__)("Move %1$s block from position %2$d down to position %3$d"),t,i,i+1);if("left"===e)return Object(O.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
15
+ Object(O.__)("Move %1$s block from position %2$d left to position %3$d"),t,i,i+1);if("right"===e)return Object(O.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
16
+ Object(O.__)("Move %1$s block from position %2$d right to position %3$d"),t,i,i+1)}if(c>0&&r){const e=a("down");if("down"===e)return Object(O.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
17
+ Object(O.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===e)return Object(O.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
18
+ Object(O.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===e)return Object(O.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
19
+ Object(O.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!o){const e=a("up");if("up"===e)return Object(O.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
20
+ Object(O.__)("Move %1$s block from position %2$d up to position %3$d"),t,i,i-1);if("left"===e)return Object(O.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
21
+ Object(O.__)("Move %1$s block from position %2$d left to position %3$d"),t,i,i-1);if("right"===e)return Object(O.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
22
+ Object(O.__)("Move %1$s block from position %2$d right to position %3$d"),t,i,i-1)}if(c<0&&o){const e=a("up");if("up"===e)return Object(O.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
23
+ Object(O.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===e)return Object(O.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
24
+ Object(O.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===e)return Object(O.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
25
+ Object(O.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}(d,f&&f.title,k,v,j,"up"===t?-1:1,_)))}),hi=Object(l.forwardRef)((e,t)=>Object(l.createElement)(gi,Object(c.a)({direction:"up",ref:t},e))),Oi=Object(l.forwardRef)((e,t)=>Object(l.createElement)(gi,Object(c.a)({direction:"down",ref:t},e))),vi=Object(l.createContext)({__experimentalFeatures:!1,__experimentalPersistentListViewFeatures:!1}),ji=()=>Object(l.useContext)(vi);var ki=Object(l.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Un.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"})),_i=function({className:e,actions:t,children:n,secondaryActions:o}){return Object(l.createElement)("div",{className:a()(e,"block-editor-warning")},Object(l.createElement)("div",{className:"block-editor-warning__contents"},Object(l.createElement)("p",{className:"block-editor-warning__message"},n),(l.Children.count(t)>0||o)&&Object(l.createElement)("div",{className:"block-editor-warning__actions"},l.Children.count(t)>0&&l.Children.map(t,(e,t)=>Object(l.createElement)("span",{key:t,className:"block-editor-warning__action"},e)),o&&Object(l.createElement)(m.DropdownMenu,{className:"block-editor-warning__secondary",icon:ki,label:Object(O.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},()=>Object(l.createElement)(m.MenuGroup,null,o.map((e,t)=>Object(l.createElement)(m.MenuItem,{onClick:e.onClick,key:t},e.title)))))))},yi=n(259),Ei=({title:e,rawContent:t,renderedContent:n,action:o,actionText:r,className:c})=>Object(l.createElement)("div",{className:c},Object(l.createElement)("div",{className:"block-editor-block-compare__content"},Object(l.createElement)("h2",{className:"block-editor-block-compare__heading"},e),Object(l.createElement)("div",{className:"block-editor-block-compare__html"},t),Object(l.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},n)),Object(l.createElement)("div",{className:"block-editor-block-compare__action"},Object(l.createElement)(m.Button,{variant:"secondary",tabIndex:"0",onClick:o},r))),Ci=function({block:e,onKeep:t,onConvert:n,convertor:o,convertButtonText:r}){const c={rawContent:e.originalContent,renderedContent:Object(b.getSaveElement)(e.name,e.attributes)},i=function(e){const t=Object(s.castArray)(e),n=t.map(e=>Object(b.getSaveContent)(e.name,e.attributes,e.innerBlocks)),o=t.map(e=>Object(b.getSaveElement)(e.name,e.attributes,e.innerBlocks));return{rawContent:n.join(""),renderedContent:o}}(o(e)),u=(d=c.rawContent,m=i.rawContent,Object(yi.diffChars)(d,m).map((e,t)=>{const n=a()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(l.createElement)("span",{key:t,className:n},e.value)}));var d,m;return Object(l.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(l.createElement)(Ei,{title:Object(O.__)("Current"),className:"block-editor-block-compare__current",action:t,actionText:Object(O.__)("Convert to HTML"),rawContent:c.rawContent,renderedContent:c.renderedContent}),Object(l.createElement)(Ei,{title:Object(O.__)("After Conversion"),className:"block-editor-block-compare__converted",action:n,actionText:r,rawContent:u,renderedContent:i.renderedContent}))};const Si=e=>Object(b.rawHandler)({HTML:e.originalContent});var wi=Object(u.compose)([Object(p.withSelect)((e,{clientId:t})=>({block:e(An).getBlock(t)})),Object(p.withDispatch)((e,{block:t})=>{const{replaceBlock:n}=e(An);return{convertToClassic(){n(t.clientId,(e=>Object(b.createBlock)("core/freeform",{content:e.originalContent}))(t))},convertToHTML(){n(t.clientId,(e=>Object(b.createBlock)("core/html",{content:e.originalContent}))(t))},convertToBlocks(){n(t.clientId,Si(t))},attemptBlockRecovery(){n(t.clientId,(({name:e,attributes:t,innerBlocks:n})=>Object(b.createBlock)(e,t,n))(t))}}})])((function({convertToHTML:e,convertToBlocks:t,convertToClassic:n,attemptBlockRecovery:o,block:r}){const c=!!Object(b.getBlockType)("core/html"),[i,a]=Object(l.useState)(!1),s=Object(l.useCallback)(()=>a(!0),[]),u=Object(l.useCallback)(()=>a(!1),[]),d=Object(l.useMemo)(()=>[{
26
  // translators: Button to fix block content
27
+ title:Object(O._x)("Resolve","imperative verb"),onClick:s},c&&{title:Object(O.__)("Convert to HTML"),onClick:e},{title:Object(O.__)("Convert to Classic Block"),onClick:n}].filter(Boolean),[s,e,n]);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(_i,{actions:[Object(l.createElement)(m.Button,{key:"recover",onClick:o,variant:"primary"},Object(O.__)("Attempt Block Recovery"))],secondaryActions:d},Object(O.__)("This block contains unexpected or invalid content.")),i&&Object(l.createElement)(m.Modal,{title:// translators: Dialog title to fix block content
28
+ Object(O.__)("Resolve Block"),onRequestClose:u,className:"block-editor-block-compare"},Object(l.createElement)(Ci,{block:r,onKeep:e,onConvert:t,convertor:Si,convertButtonText:Object(O.__)("Convert to Blocks")})))}));const Bi=Object(l.createElement)(_i,{className:"block-editor-block-list__block-crash-warning"},Object(O.__)("This block has encountered an error and cannot be previewed."));var Ii=()=>Bi;class xi extends l.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}}var Ti=xi,Ni=n(89),Li=n.n(Ni),Pi=function({clientId:e}){const[t,n]=Object(l.useState)(""),o=Object(p.useSelect)(t=>t(An).getBlock(e),[e]),{updateBlock:r}=Object(p.useDispatch)(An);return Object(l.useEffect)(()=>{n(Object(b.getBlockContent)(o))},[o]),Object(l.createElement)(Li.a,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:()=>{const c=Object(b.getBlockType)(o.name),l=Object(b.getBlockAttributes)(c,t,o.attributes),i=t||Object(b.getSaveContent)(c,l),a=!t||Object(b.isValidBlockContent)(c,l,i);r(e,{attributes:l,originalContent:i,isValid:a}),t||n({content:i})},onChange:e=>n(e.target.value)})};const Ri=".block-editor-block-list__block";function Ai(e,t){return t.closest(Ri)===e}function Mi(e){const t=Object(l.useRef)(),n=function(e){return Object(p.useSelect)(t=>{const{getSelectedBlocksInitialCaretPosition:n,isMultiSelecting:o,isNavigationMode:r,isBlockSelected:c}=t(An);if(c(e)&&!o()&&!r())return n()},[e])}(e);return Object(l.useEffect)(()=>{if(null==n)return;if(!t.current)return;const{ownerDocument:e}=t.current;if(t.current.contains(e.activeElement))return;const o=ri.focus.tabbable.find(t.current).filter(e=>Object(ri.isTextField)(e)),r=-1===n,c=(r?s.last:s.first)(o)||t.current;Ai(t.current,c)&&!c.closest(".block-list-appender")?Object(ri.placeCaretAtHorizontalEdge)(c,r):t.current.focus()},[n]),t}function Di(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function Fi(){const e=Object(p.useSelect)(e=>{const{isNavigationMode:t,getSettings:n}=e(An);return t()||n().outlineMode},[]);return Object(u.useRefEffect)(t=>{if(e)return t.addEventListener("mouseout",Di),t.addEventListener("mouseover",Di),()=>{t.removeEventListener("mouseout",Di),t.removeEventListener("mouseover",Di),t.classList.remove("is-hovered")}},[e])}function Vi(e){return Object(p.useSelect)(t=>{const{isBlockBeingDragged:n,isBlockHighlighted:o,isBlockSelected:r,isBlockMultiSelected:c,getBlockName:l,getSettings:i,hasSelectedInnerBlock:s,isTyping:u,__experimentalGetActiveBlockIdByBlockNames:d}=t(An),{__experimentalSpotlightEntityBlocks:m,outlineMode:p}=i(),f=n(e),g=r(e),h=l(e),O=s(e,!0),v=d(m);return a()({"is-selected":g,"is-highlighted":o(e),"is-multi-selected":c(e),"is-reusable":Object(b.isReusableBlock)(Object(b.getBlockType)(h)),"is-dragging":f,"has-child-selected":O,"has-active-entity":v,"is-active-entity":v===e,"remove-outline":g&&p&&u()})},[e])}function Hi(e){return Object(p.useSelect)(t=>{const n=t(An).getBlockName(e),o=Object(b.getBlockType)(n);if(o.apiVersion>1||Object(b.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(b.getBlockDefaultClassName)(n)},[e])}function zi(e){return Object(p.useSelect)(t=>{const{getBlockName:n,getBlockAttributes:o}=t(An),{className:r}=o(e);if(!r)return;const c=Object(b.getBlockType)(n(e));return c.apiVersion>1||Object(b.hasBlockSupport)(c,"lightBlockWrapper",!1)?r:void 0},[e])}function Gi(e){return Object(p.useSelect)(t=>{const{hasBlockMovingClientId:n,canInsertBlockType:o,getBlockName:r,getBlockRootClientId:c,isBlockSelected:l}=t(An);if(!l(e))return;const i=n();return i?a()("is-block-moving-mode",{"can-insert-moving-block":o(r(i),c(e))}):void 0},[e])}function Ui(e){const{isBlockSelected:t}=Object(p.useSelect)(An),{selectBlock:n,selectionChange:o}=Object(p.useDispatch)(An);return Object(u.useRefEffect)(r=>{function c(c){t(e)?c.target.isContentEditable||o(e):Ai(r,c.target)&&n(e)}return r.addEventListener("focusin",c),()=>{r.removeEventListener("focusin",c)}},[t,n])}function Wi(e){const t=Object(p.useSelect)(t=>t(An).isBlockSelected(e),[e]),{getBlockRootClientId:n,getBlockIndex:o}=Object(p.useSelect)(An),{insertDefaultBlock:r,removeBlock:c}=Object(p.useDispatch)(An);return Object(u.useRefEffect)(l=>{if(t)return l.addEventListener("keydown",i),l.addEventListener("dragstart",a),()=>{l.removeEventListener("keydown",i),l.removeEventListener("dragstart",a)};function i(t){const{keyCode:i,target:a}=t;i!==Yr.ENTER&&i!==Yr.BACKSPACE&&i!==Yr.DELETE||a!==l||Object(ri.isTextField)(a)||(t.preventDefault(),i===Yr.ENTER?r({},n(e),o(e)+1):c(e))}function a(e){e.preventDefault()}},[e,t,n,o,r,c])}function Ki(e){const{isNavigationMode:t,isBlockSelected:n}=Object(p.useSelect)(An),{setNavigationMode:o,selectBlock:r}=Object(p.useDispatch)(An);return Object(u.useRefEffect)(c=>{function l(c){t()&&!c.defaultPrevented&&(c.preventDefault(),n(e)?o(!1):r(e))}return c.addEventListener("mousedown",l),()=>{c.addEventListener("mousedown",l)}},[e,t,n,o])}var $i=n(113),qi=n.n($i);function Yi(e){const t=Object(l.useRef)(),n=Object(p.useSelect)(t=>{const{isBlockSelected:n,getBlockSelectionEnd:o}=t(An);return n(e)||o()===e},[e]);return Object(l.useEffect)(()=>{if(!n)return;const e=t.current;if(!e)return;if(e.contains(e.ownerDocument.activeElement))return;const o=Object(ri.getScrollContainer)(e)||e.ownerDocument.defaultView;o&&qi()(e,o,{onlyScrollIfNeeded:!0})},[n]),t}function Xi(e,t){Array.from(e.closest(".is-root-container").querySelectorAll(".rich-text")).forEach(e=>{t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")})}function Qi(e){const{startMultiSelect:t,stopMultiSelect:n,multiSelect:o,selectBlock:r}=Object(p.useDispatch)(An),{isSelectionEnabled:c,isBlockSelected:l,getBlockParents:i,getBlockSelectionStart:a,hasMultiSelection:s}=Object(p.useSelect)(An);return Object(u.useRefEffect)(u=>{const{ownerDocument:d}=u,{defaultView:b}=d;let m,p;function f({isSelectionEnd:t}){const n=b.getSelection();if(!n.rangeCount||n.isCollapsed)return void Xi(u,!0);const c=function(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(Ri);return t?t.id.slice("block-".length):void 0}(n.focusNode);if(e===c){if(r(e),t&&(Xi(u,!0),n.rangeCount)){const{commonAncestorContainer:e}=n.getRangeAt(0);m.contains(e)&&m.focus()}}else{const t=[...i(e),e],n=[...i(c),c],r=Math.min(t.length,n.length)-1;o(t[r],n[r])}}function g(){d.removeEventListener("selectionchange",f),b.removeEventListener("mouseup",g),p=b.requestAnimationFrame(()=>{f({isSelectionEnd:!0}),n()})}function h({buttons:n}){1===n&&c()&&l(e)&&(m=d.activeElement,t(),d.addEventListener("selectionchange",f),b.addEventListener("mouseup",g),Xi(u,!1))}function O(t){if(c()&&0===t.button)if(t.shiftKey){const n=a();n!==e&&(Xi(u,!1),o(n,e),t.preventDefault())}else s()&&r(e)}return u.addEventListener("mousedown",O),u.addEventListener("mouseleave",h),()=>{u.removeEventListener("mousedown",O),u.removeEventListener("mouseleave",h),d.removeEventListener("selectionchange",f),b.removeEventListener("mouseup",g),b.cancelAnimationFrame(p)}},[e,t,n,o,r,c,l,i])}var Zi=n(40),Ji=n(127);const ea=[Object(l.createInterpolateElement)(Object(O.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:Object(l.createElement)("kbd",null)}),Object(l.createInterpolateElement)(Object(O.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:Object(l.createElement)("kbd",null)}),Object(l.createInterpolateElement)(Object(O.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:Object(l.createElement)("kbd",null)}),Object(O.__)("Drag files into the editor to automatically insert media blocks."),Object(O.__)("Change a block's type by pressing the block icon on the toolbar.")];var ta=function(){const[e]=Object(l.useState)(Math.floor(Math.random()*ea.length));return Object(l.createElement)(m.Tip,null,ea[e])},na=n(91),oa=n(209),ra=function e({className:t,onChange:n,value:o,label:r,placeholder:c}){const i=Object(u.useInstanceId)(e),s=Object(l.useRef)();return Object(l.createElement)("div",{className:a()("block-editor-inserter__search",t)},Object(l.createElement)(m.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-"+i},r||c),Object(l.createElement)("input",{ref:s,className:"block-editor-inserter__search-input",id:"block-editor-inserter__search-"+i,type:"search",placeholder:c,onChange:e=>n(e.target.value),autoComplete:"off",value:o||""}),Object(l.createElement)("div",{className:"block-editor-inserter__search-icon"},!!o&&Object(l.createElement)(m.Button,{icon:na.a,label:Object(O.__)("Reset search"),onClick:()=>{n(""),s.current.focus()}}),!o&&Object(l.createElement)(Xc.a,{icon:oa.a})))},ca=function({title:e,icon:t,description:n,blockType:o}){return o&&(wt()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:e,icon:t,description:n}=o)),Object(l.createElement)("div",{className:"block-editor-block-card"},Object(l.createElement)(Ll,{icon:t,showColors:!0}),Object(l.createElement)("div",{className:"block-editor-block-card__content"},Object(l.createElement)("h2",{className:"block-editor-block-card__title"},e),Object(l.createElement)("span",{className:"block-editor-block-card__description"},n)))};function la({clientId:e=null,value:t,selection:n,onChange:o=s.noop,onInput:r=s.noop}){const c=Object(p.useRegistry)(),{resetBlocks:i,resetSelection:a,replaceInnerBlocks:u,setHasControlledInnerBlocks:d,__unstableMarkNextChangeAsNotPersistent:m}=c.dispatch(An),{getBlockName:f,getBlocks:g}=c.select(An),h=Object(l.useRef)({incoming:null,outgoing:[]}),O=Object(l.useRef)(!1),v=Object(l.useRef)(r),j=Object(l.useRef)(o);Object(l.useEffect)(()=>{v.current=r,j.current=o},[r,o]),Object(l.useEffect)(()=>{h.current.outgoing.includes(t)?Object(s.last)(h.current.outgoing)===t&&(h.current.outgoing=[]):g(e)!==t&&(h.current.outgoing=[],(()=>{if(t)if(m(),e){d(e,!0),m();const n=t.map(e=>Object(b.cloneBlock)(e));O.current&&(h.current.incoming=n),u(e,n)}else O.current&&(h.current.incoming=t),i(t)})(),n&&a(n.selectionStart,n.selectionEnd,n.initialPosition))},[t,e]),Object(l.useEffect)(()=>{const{getSelectionStart:t,getSelectionEnd:n,getSelectedBlocksInitialCaretPosition:o,isLastBlockChangePersistent:r,__unstableIsLastBlockChangeIgnored:l}=c.select(An);let i=g(e),a=r(),s=!1;O.current=!0;const u=c.subscribe(()=>{if(null!==e&&null===f(e))return;const c=r(),u=g(e),d=u!==i;if(i=u,d&&(h.current.incoming||l()))return h.current.incoming=null,void(a=c);(d||s&&!d&&c&&!a)&&(a=c,h.current.outgoing.push(i),(a?j.current:v.current)(i,{selection:{selectionStart:t(),selectionEnd:n(),initialPosition:o()}})),s=d});return()=>u()},[c,e])}var ia=Object(u.createHigherOrderComponent)(e=>Object(p.withRegistry)(({useSubRegistry:t=!0,registry:n,...o})=>{if(!t)return Object(l.createElement)(e,Object(c.a)({registry:n},o));const[r,i]=Object(l.useState)(null);return Object(l.useEffect)(()=>{const e=Object(p.createRegistry)({},n);e.registerStore(It,Rn),i(e)},[n]),r?Object(l.createElement)(p.RegistryProvider,{value:r},Object(l.createElement)(e,Object(c.a)({registry:r},o))):null}),"withRegistryProvider")((function(e){const{children:t,settings:n}=e,{updateSettings:o}=Object(p.useDispatch)(An);return Object(l.useEffect)(()=>{o(n)},[n]),la(e),Object(l.createElement)(vr,null,t)}));function aa({onClick:e}){return Object(l.createElement)("div",{tabIndex:0,role:"button",onClick:e,onKeyPress:e},Object(l.createElement)(m.Disabled,null,Object(l.createElement)(gu,null)))}let sa;var ua=function({viewportWidth:e,__experimentalPadding:t}){const[n,{width:o}]=Object(u.useResizeObserver)(),[r,{height:c}]=Object(u.useResizeObserver)();sa=sa||Object(u.pure)(gu);const i=(o-2*t)/e;return Object(l.createElement)("div",{className:"block-editor-block-preview__container editor-styles-wrapper","aria-hidden":!0,style:{height:c*i+2*t}},n,Object(l.createElement)(m.Disabled,{style:{transform:`scale(${i})`,width:e,left:t,right:t,top:t},className:"block-editor-block-preview__content"},r,Object(l.createElement)(sa,null)))},da=Object(l.memo)((function({blocks:e,__experimentalPadding:t=0,viewportWidth:n=1200,__experimentalLive:o=!1,__experimentalOnClick:r}){const c=Object(p.useSelect)(e=>e(An).getSettings(),[]),i=Object(l.useMemo)(()=>{const e={...c};return e.__experimentalBlockPatterns=[],e},[c]),a=Object(l.useMemo)(()=>Object(s.castArray)(e),[e]);return e&&0!==e.length?Object(l.createElement)(ia,{value:a,settings:i},o?Object(l.createElement)(aa,{onClick:r}):Object(l.createElement)(ua,{viewportWidth:n,__experimentalPadding:t})):null})),ba=function({item:e}){var t,n;const{name:o,title:r,icon:c,description:i,initialAttributes:a}=e,s=Object(b.getBlockType)(o),u=Object(b.isReusableBlock)(e);return Object(l.createElement)("div",{className:"block-editor-inserter__preview-container"},Object(l.createElement)("div",{className:"block-editor-inserter__preview"},u||s.example?Object(l.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(l.createElement)(da,{__experimentalPadding:16,viewportWidth:null!==(t=null===(n=s.example)||void 0===n?void 0:n.viewportWidth)&&void 0!==t?t:500,blocks:s.example?Object(b.getBlockFromExample)(e.name,{attributes:{...s.example.attributes,...a},innerBlocks:s.example.innerBlocks}):Object(b.createBlock)(o,a)})):Object(l.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(O.__)("No Preview Available."))),!u&&Object(l.createElement)(ca,{title:r,icon:c,description:i}))},ma=Object(l.createContext)(),pa=Object(l.forwardRef)((function({isFirst:e,as:t,children:n,...o},r){const i=Object(l.useContext)(ma);return Object(l.createElement)(m.__unstableCompositeItem,Object(c.a)({ref:r,state:i,role:"option",focusable:!0},o),o=>{const r={...o,tabIndex:e?0:o.tabIndex};return t?Object(l.createElement)(t,r,n):"function"==typeof n?n(r):Object(l.createElement)(m.Button,r,n)})})),fa=Object(l.createElement)(Un.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(l.createElement)(Un.Path,{d:"M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"}));function ga({count:e,icon:t}){return Object(l.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},Object(l.createElement)("div",{className:"block-editor-block-draggable-chip"},Object(l.createElement)(m.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},Object(l.createElement)(m.FlexItem,null,t?Object(l.createElement)(Ll,{icon:t}):Object(O.sprintf)(
29
  /* translators: %d: Number of blocks. */
30
+ Object(O._n)("%d block","%d blocks",e),e)),Object(l.createElement)(m.FlexItem,null,Object(l.createElement)(Ll,{icon:fa})))))}var ha=({isEnabled:e,blocks:t,icon:n,children:o})=>{const r={type:"inserter",blocks:t};return Object(l.createElement)(m.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:r,__experimentalDragComponent:Object(l.createElement)(ga,{count:t.length,icon:n})},({onDraggableStart:t,onDraggableEnd:n})=>o({draggable:e,onDragStart:e?t:void 0,onDragEnd:e?n:void 0}))};function Oa(e=window){const{platform:t}=e.navigator;return-1!==t.indexOf("Mac")||["iPad","iPhone"].includes(t)}var va=Object(l.memo)((function({className:e,isFirst:t,item:n,onSelect:o,onHover:r,isDraggable:i,...s}){const u=Object(l.useRef)(!1),d=n.icon?{backgroundColor:n.icon.background,color:n.icon.foreground}:{},m=Object(l.useMemo)(()=>[Object(b.createBlock)(n.name,n.initialAttributes,Object(b.createBlocksFromInnerBlocksTemplate)(n.innerBlocks))],[n.name,n.initialAttributes,n.initialAttributes]);return Object(l.createElement)(ha,{isEnabled:i&&!n.disabled,blocks:m,icon:n.icon},({draggable:i,onDragStart:b,onDragEnd:m})=>Object(l.createElement)("div",{className:"block-editor-block-types-list__list-item",draggable:i,onDragStart:e=>{u.current=!0,b&&(r(null),b(e))},onDragEnd:e=>{u.current=!1,m&&m(e)}},Object(l.createElement)(pa,Object(c.a)({isFirst:t,className:a()("block-editor-block-types-list__item",e),disabled:n.isDisabled,onClick:e=>{e.preventDefault(),o(n,Oa()?e.metaKey:e.ctrlKey),r(null)},onKeyDown:e=>{const{keyCode:t}=e;t===Yr.ENTER&&(e.preventDefault(),o(n,Oa()?e.metaKey:e.ctrlKey),r(null))},onFocus:()=>{u.current||r(n)},onMouseEnter:()=>{u.current||r(n)},onMouseLeave:()=>r(null),onBlur:()=>r(null)},s),Object(l.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:d},Object(l.createElement)(Ll,{icon:n.icon,showColors:!0})),Object(l.createElement)("span",{className:"block-editor-block-types-list__item-title"},n.title))))})),ja=Object(l.forwardRef)((function(e,t){const[n,o]=Object(l.useState)(!1);return Object(l.useEffect)(()=>{n&&Object(Et.speak)(Object(O.__)("Use left and right arrow keys to move through blocks"))},[n]),Object(l.createElement)("div",Object(c.a)({ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{o(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&o(!1)}},e))})),ka=Object(l.forwardRef)((function(e,t){const n=Object(l.useContext)(ma);return Object(l.createElement)(m.__unstableCompositeGroup,Object(c.a)({state:n,role:"presentation",ref:t},e))})),_a=function({items:e=[],onSelect:t,onHover:n=(()=>{}),children:o,label:r,isDraggable:c=!0}){return Object(l.createElement)(ja,{className:"block-editor-block-types-list","aria-label":r},function(e,t){const n=[];for(let t=0,o=e.length;t<o;t+=3)n.push(e.slice(t,t+3));return n}(e).map((e,o)=>Object(l.createElement)(ka,{key:o},e.map((e,r)=>Object(l.createElement)(va,{key:e.id,item:e,className:Object(b.getBlockMenuDefaultClassName)(e.id),onSelect:t,onHover:n,isDraggable:c,isFirst:0===o&&0===r})))),o)},ya=function({title:e,icon:t,children:n}){return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"block-editor-inserter__panel-header"},Object(l.createElement)("h2",{className:"block-editor-inserter__panel-title"},e),Object(l.createElement)(m.Icon,{icon:t})),Object(l.createElement)("div",{className:"block-editor-inserter__panel-content"},n))},Ea=function({children:e}){const t=Object(m.__unstableUseCompositeState)({shift:!0,wrap:"horizontal"});return Object(l.createElement)(ma.Provider,{value:t},e)},Ca=function({rootClientId:e,onInsert:t,onHover:n,showMostUsedBlocks:o}){const[r,c,i,a]=Tl(e,t),u=Object(l.useMemo)(()=>Object(s.orderBy)(r,["frecency"],["desc"]).slice(0,6),[r]),d=Object(l.useMemo)(()=>r.filter(e=>!e.category),[r]),b=Object(l.useMemo)(()=>Object(s.flow)(e=>e.filter(e=>e.category&&"reusable"!==e.category),e=>Object(s.groupBy)(e,"category"))(r),[r]),m=Object(l.useMemo)(()=>{const e={...i};return Object.keys(i).forEach(t=>{e[t]=r.filter(e=>(e=>e.name.split("/")[0])(e)===t),0===e[t].length&&delete e[t]}),e},[r,i]);return Object(l.useEffect)(()=>()=>n(null),[]),Object(l.createElement)(Ea,null,Object(l.createElement)("div",null,o&&!!u.length&&Object(l.createElement)(ya,{title:Object(O._x)("Most used","blocks")},Object(l.createElement)(_a,{items:u,onSelect:a,onHover:n,label:Object(O._x)("Most used","blocks")})),Object(s.map)(c,e=>{const t=b[e.slug];return t&&t.length?Object(l.createElement)(ya,{key:e.slug,title:e.title,icon:e.icon},Object(l.createElement)(_a,{items:t,onSelect:a,onHover:n,label:e.title})):null}),d.length>0&&Object(l.createElement)(ya,{className:"block-editor-inserter__uncategorized-blocks-panel",title:Object(O.__)("Uncategorized")},Object(l.createElement)(_a,{items:d,onSelect:a,onHover:n,label:Object(O.__)("Uncategorized")})),Object(s.map)(i,(e,t)=>{const o=m[t];return o&&o.length?Object(l.createElement)(ya,{key:t,title:e.title,icon:e.icon},Object(l.createElement)(_a,{items:o,onSelect:a,onHover:n,label:e.title})):null})))},Sa=function({selectedCategory:e,patternCategories:t,onClickCategory:n,children:o}){return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:a()("block-editor-inserter__panel-header","block-editor-inserter__panel-header-patterns")},Object(l.createElement)(m.SelectControl,{className:"block-editor-inserter__panel-dropdown",label:Object(O.__)("Filter patterns"),hideLabelFromVision:!0,value:e.name,onChange:e=>{n(t.find(t=>e===t.name))},onBlur:e=>{null!=e&&e.relatedTarget||e.stopPropagation()},options:(()=>{const e=[];return t.map(t=>e.push({value:t.name,label:t.label})),e})()})),Object(l.createElement)("div",{className:"block-editor-inserter__panel-content"},o))},wa=n(28),Ba=(e,t)=>{const{patternCategories:n,patterns:o}=Object(p.useSelect)(e=>{const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(An);return{patterns:n(t),patternCategories:o().__experimentalBlockPatternCategories}},[t]),{createSuccessNotice:r}=Object(p.useDispatch)(wa.store);return[o,n,Object(l.useCallback)((t,n)=>{e(Object(s.map)(n,e=>Object(b.cloneBlock)(e)),t.name),r(Object(O.sprintf)(
31
  /* translators: %s: block pattern title. */
32
+ Object(O.__)('Block pattern "%s" inserted.'),t.title),{type:"snackbar"})},[])]};function Ia({isDraggable:e,pattern:t,onClick:n,composite:o}){const{name:r,viewportWidth:i}=t,{blocks:a}=Object(p.useSelect)(e=>e(An).__experimentalGetParsedPattern(r),[r]),s="block-editor-block-patterns-list__item-description-"+Object(u.useInstanceId)(Ia);return Object(l.createElement)(ha,{isEnabled:e,blocks:a},({draggable:e,onDragStart:r,onDragEnd:u})=>Object(l.createElement)("div",{className:"block-editor-block-patterns-list__list-item","aria-label":t.title,"aria-describedby":t.description?s:void 0,draggable:e,onDragStart:r,onDragEnd:u},Object(l.createElement)(m.__unstableCompositeItem,Object(c.a)({role:"option",as:"div"},o,{className:"block-editor-block-patterns-list__item",onClick:()=>n(t,a)}),Object(l.createElement)(da,{blocks:a,viewportWidth:i}),Object(l.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},t.title),!!t.description&&Object(l.createElement)(m.VisuallyHidden,{id:s},t.description))))}function xa(){return Object(l.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}var Ta=function({isDraggable:e,blockPatterns:t,shownPatterns:n,onClickPattern:o,orientation:r,label:i=Object(O.__)("Block Patterns")}){const a=Object(m.__unstableUseCompositeState)({orientation:r});return Object(l.createElement)(m.__unstableComposite,Object(c.a)({},a,{role:"listbox",className:"block-editor-block-patterns-list","aria-label":i}),t.map(t=>n.includes(t)?Object(l.createElement)(Ia,{key:t.name,pattern:t,onClick:o,isDraggable:e,composite:a}):Object(l.createElement)(xa,{key:t.name})))};function Na({rootClientId:e,onInsert:t,selectedCategory:n,onClickCategory:o}){const[r,c,i]=Ba(t,e),a=Object(l.useMemo)(()=>c.filter(e=>r.some(t=>{var n;return null===(n=t.categories)||void 0===n?void 0:n.includes(e.name)})),[r,c]),d=n||a[0];Object(l.useEffect)(()=>{r.some(e=>b(e)===1/0)&&!a.find(e=>"uncategorized"===e.name)&&a.push({name:"uncategorized",label:Object(O._x)("Uncategorized")})},[a,r]);const b=Object(l.useCallback)(e=>{if(!e.categories||!e.categories.length)return 1/0;const t=Object(s.fromPairs)(a.map(({name:e},t)=>[e,t]));return Math.min(...e.categories.map(e=>void 0!==t[e]?t[e]:1/0))},[a]),m=Object(l.useMemo)(()=>r.filter(e=>"uncategorized"===d.name?b(e)===1/0:e.categories&&e.categories.includes(d.name)),[r,d]),p=Object(l.useMemo)(()=>m.sort((e,t)=>b(e)-b(t)),[m,b]),f=Object(u.useAsyncList)(p);return Object(l.createElement)(l.Fragment,null,!!m.length&&Object(l.createElement)(Sa,{selectedCategory:d,patternCategories:a,onClickCategory:o},Object(l.createElement)(Ta,{shownPatterns:f,blockPatterns:m,onClickPattern:i,label:d.label,orientation:"vertical",isDraggable:!0})))}var La=function({rootClientId:e,onInsert:t,onClickCategory:n,selectedCategory:o}){return Object(l.createElement)(Na,{rootClientId:e,selectedCategory:o,onInsert:t,onClickCategory:n})},Pa=n(19),Ra=function(){return Object(l.createElement)("div",{className:"block-editor-inserter__no-results"},Object(l.createElement)(Xc.a,{className:"block-editor-inserter__no-results-icon",icon:Nl.a}),Object(l.createElement)("p",null,Object(O.__)("No results found.")))};function Aa({onHover:e,onInsert:t,rootClientId:n}){const[o,,,r]=Tl(n,t),c=Object(l.useMemo)(()=>o.filter(({category:e})=>"reusable"===e),[o]);return 0===c.length?Object(l.createElement)(Ra,null):Object(l.createElement)(ya,{title:Object(O.__)("Reusable blocks")},Object(l.createElement)(_a,{items:c,onSelect:r,onHover:e,label:Object(O.__)("Reusable blocks")}))}var Ma=function({rootClientId:e,onInsert:t,onHover:n}){return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Aa,{onHover:n,onInsert:t,rootClientId:e}),Object(l.createElement)("div",{className:"block-editor-inserter__manage-reusable-blocks-container"},Object(l.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:Object(Pa.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(O.__)("Manage Reusable blocks"))))};const{Fill:Da,Slot:Fa}=Object(m.createSlotFill)("__unstableInserterMenuExtension");Da.Slot=Fa;var Va=Da,Ha=function({rootClientId:e="",insertionIndex:t,clientId:n,isAppender:o,onSelect:r,shouldFocusBlock:c=!0}){const{getSelectedBlock:i}=Object(p.useSelect)(An),{destinationRootClientId:a,destinationIndex:u}=Object(p.useSelect)(r=>{const{getSelectedBlockClientId:c,getBlockRootClientId:l,getBlockIndex:i,getBlockOrder:a}=r(An),s=c();let u,d=e;return void 0!==t?u=t:n?u=i(n,d):!o&&s?(d=l(s),u=i(s,d)+1):u=a(d).length,{destinationRootClientId:d,destinationIndex:u}},[e,t,n,o]),{replaceBlocks:d,insertBlocks:m,showInsertionPoint:f,hideInsertionPoint:g}=Object(p.useDispatch)(An),h=Object(l.useCallback)((e,t,n=!1)=>{const l=i();!o&&l&&Object(b.isUnmodifiedDefaultBlock)(l)?d(l.clientId,e,null,c||n?0:null,t):m(e,u,a,!0,c||n?0:null,t);const p=Object(O.sprintf)(// translators: %d: the name of the block that has been added
33
+ Object(O._n)("%d block added.","%d blocks added.",Object(s.castArray)(e).length),Object(s.castArray)(e).length);Object(Et.speak)(p),r&&r()},[o,i,d,m,a,u,r,c]),v=Object(l.useCallback)(e=>{e?f(a,u):g()},[f,g,a,u]);return[a,h,v]},za=function({filterValue:e,onSelect:t,onHover:n,rootClientId:o,clientId:r,isAppender:c,__experimentalInsertionIndex:i,maxBlockPatterns:a,maxBlockTypes:d,showBlockDirectory:b=!1,isDraggable:p=!0,shouldFocusBlock:f=!0}){const g=Object(u.useDebounce)(Et.speak,500),[h,v]=Ha({onSelect:t,rootClientId:o,clientId:r,isAppender:c,insertionIndex:i,shouldFocusBlock:f}),[j,k,_,y]=Tl(h,v),[E,,C]=Ba(v,h),S=Object(l.useMemo)(()=>{const t=Bl(Object(s.orderBy)(j,["frecency"],["desc"]),k,_,e);return void 0!==d?t.slice(0,d):t},[e,j,k,_,d]),w=Object(l.useMemo)(()=>{const t=Il(E,e);return void 0!==a?t.slice(0,a):t},[e,E,a]);Object(l.useEffect)(()=>{if(!e)return;const t=S.length+w.length,n=Object(O.sprintf)(
34
  /* translators: %d: number of results. */
35
+ Object(O._n)("%d result found.","%d results found.",t),t);g(n)},[e,g]);const B=Object(u.useAsyncList)(w),I=!Object(s.isEmpty)(S)||!Object(s.isEmpty)(w);return Object(l.createElement)(Ea,null,!b&&!I&&Object(l.createElement)(Ra,null),!!S.length&&Object(l.createElement)(ya,{title:Object(l.createElement)(m.VisuallyHidden,null,Object(O.__)("Blocks"))},Object(l.createElement)(_a,{items:S,onSelect:y,onHover:n,label:Object(O.__)("Blocks"),isDraggable:p})),!!S.length&&!!w.length&&Object(l.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),!!w.length&&Object(l.createElement)(ya,{title:Object(l.createElement)(m.VisuallyHidden,null,Object(O.__)("Block Patterns"))},Object(l.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},Object(l.createElement)(Ta,{shownPatterns:B,blockPatterns:w,onClickPattern:C,isDraggable:p}))),b&&Object(l.createElement)(Va.Slot,{fillProps:{onSelect:y,onHover:n,filterValue:e,hasItems:I,rootClientId:h}},e=>e.length?e:I?null:Object(l.createElement)(Ra,null)))};const Ga={name:"blocks",
36
  /* translators: Blocks tab title in the block inserter. */
37
+ title:Object(O.__)("Blocks")},Ua={name:"patterns",
38
  /* translators: Patterns tab title in the block inserter. */
39
+ title:Object(O.__)("Patterns")},Wa={name:"reusable",
40
  /* translators: Reusable blocks tab title in the block inserter. */
41
+ title:Object(O.__)("Reusable")};var Ka=function({children:e,showPatterns:t=!1,showReusableBlocks:n=!1,onSelect:o}){const r=Object(l.useMemo)(()=>{const e=[Ga];return t&&e.push(Ua),n&&e.push(Wa),e},[Ga,t,Ua,n,Wa]);return Object(l.createElement)(m.TabPanel,{className:"block-editor-inserter__tabs",tabs:r,onSelect:o},e)},$a=function({rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,onSelect:r,showInserterHelpPanel:c,showMostUsedBlocks:i,shouldFocusBlock:a=!0}){const[s,u]=Object(l.useState)(""),[d,b]=Object(l.useState)(null),[f,g]=Object(l.useState)(null),[h,v,j]=Ha({rootClientId:e,clientId:t,isAppender:n,insertionIndex:o,shouldFocusBlock:a}),{showPatterns:k,hasReusableBlocks:_}=Object(p.useSelect)(e=>{var t;const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(An);return{showPatterns:!!n(h).length,hasReusableBlocks:!(null===(t=o().__experimentalReusableBlocks)||void 0===t||!t.length)}},[h]),y=Object(l.useCallback)((e,t,n)=>{v(e,t,n),r()},[v,r]),E=Object(l.useCallback)((e,t)=>{v(e,{patternName:t}),r()},[v,r]),C=Object(l.useCallback)(e=>{j(!!e),b(e)},[j,b]),S=Object(l.useCallback)(e=>{g(e)},[g]),w=Object(l.useMemo)(()=>Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"block-editor-inserter__block-list"},Object(l.createElement)(Ca,{rootClientId:h,onInsert:y,onHover:C,showMostUsedBlocks:i})),c&&Object(l.createElement)("div",{className:"block-editor-inserter__tips"},Object(l.createElement)(m.VisuallyHidden,{as:"h2"},Object(O.__)("A tip for using the block editor")),Object(l.createElement)(ta,null))),[h,y,C,s,i,c]),B=Object(l.useMemo)(()=>Object(l.createElement)(La,{rootClientId:h,onInsert:E,onClickCategory:S,selectedCategory:f}),[h,E,S,f]),I=Object(l.useMemo)(()=>Object(l.createElement)(Ma,{rootClientId:h,onInsert:y,onHover:C}),[h,y,C]),x=Object(l.useCallback)(e=>"blocks"===e.name?w:"patterns"===e.name?B:I,[w,B,I]);return Object(l.createElement)("div",{className:"block-editor-inserter__menu"},Object(l.createElement)("div",{className:"block-editor-inserter__main-area"},Object(l.createElement)("div",{className:"block-editor-inserter__content"},Object(l.createElement)(ra,{onChange:e=>{d&&b(null),u(e)},value:s,label:Object(O.__)("Search for blocks and patterns"),placeholder:Object(O.__)("Search")}),!!s&&Object(l.createElement)(za,{filterValue:s,onSelect:r,onHover:C,rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,showBlockDirectory:!0,shouldFocusBlock:a}),!s&&(k||_)&&Object(l.createElement)(Ka,{showPatterns:k,showReusableBlocks:_},x),!s&&!k&&!_&&w)),c&&d&&Object(l.createElement)(ba,{item:d}))};function qa({onSelect:e,rootClientId:t,clientId:n,isAppender:o}){const[r,c]=Object(l.useState)(""),[i,s]=Ha({onSelect:e,rootClientId:t,clientId:n,isAppender:o}),[u]=Tl(i,s),[d]=Ba(s,i),b=d.length&&!!r,f=b&&d.length>6||u.length>6,{setInserterIsOpened:g,insertionIndex:h}=Object(p.useSelect)(e=>{const{getSettings:o,getBlockIndex:r,getBlockCount:c}=e(An),l=r(n,t);return{setInserterIsOpened:o().__experimentalSetIsInserterOpened,insertionIndex:-1===l?c():l}},[n,t]);return Object(l.useEffect)(()=>{g&&g(!1)},[g]),Object(l.createElement)("div",{className:a()("block-editor-inserter__quick-inserter",{"has-search":f,"has-expand":g})},f&&Object(l.createElement)(ra,{value:r,onChange:e=>{c(e)},label:Object(O.__)("Search for blocks and patterns"),placeholder:Object(O.__)("Search")}),Object(l.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},Object(l.createElement)(za,{filterValue:r,onSelect:e,rootClientId:t,clientId:n,isAppender:o,maxBlockPatterns:b?2:0,maxBlockTypes:6,isDraggable:!1})),g&&Object(l.createElement)(m.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{g({rootClientId:t,insertionIndex:h})},"aria-label":Object(O.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(O.__)("Browse all")))}const Ya=({onToggle:e,disabled:t,isOpen:n,blockTitle:o,hasSingleBlockType:r,toggleProps:i={}})=>{let a;a=r?Object(O.sprintf)(// translators: %s: the name of the block when there is only one
42
+ Object(O._x)("Add %s","directly add the only allowed block"),o):Object(O._x)("Add block","Generic label for block inserter button");const{onClick:s,...u}=i;return Object(l.createElement)(m.Button,Object(c.a)({icon:Ji.a,label:a,tooltipPosition:"bottom",onClick:function(t){e&&e(t),s&&s(t)},className:"block-editor-inserter__toggle","aria-haspopup":!r&&"true","aria-expanded":!r&&n,disabled:t},u))};class Xa extends l.Component{constructor(){super(...arguments),this.onToggle=this.onToggle.bind(this),this.renderToggle=this.renderToggle.bind(this),this.renderContent=this.renderContent.bind(this)}onToggle(e){const{onToggle:t}=this.props;t&&t(e)}renderToggle({onToggle:e,isOpen:t}){const{disabled:n,blockTitle:o,hasSingleBlockType:r,toggleProps:c,hasItems:l,renderToggle:i=Ya}=this.props;return i({onToggle:e,isOpen:t,disabled:n||!l,blockTitle:o,hasSingleBlockType:r,toggleProps:c})}renderContent({onClose:e}){const{rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r,__experimentalIsQuick:c}=this.props;return c?Object(l.createElement)(qa,{onSelect:()=>{e()},rootClientId:t,clientId:n,isAppender:o}):Object(l.createElement)($a,{onSelect:()=>{e()},rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r})}render(){const{position:e,hasSingleBlockType:t,insertOnlyAllowedBlock:n,__experimentalIsQuick:o,onSelectOrClose:r}=this.props;return t?this.renderToggle({onToggle:n}):Object(l.createElement)(m.Dropdown,{className:"block-editor-inserter",contentClassName:a()("block-editor-inserter__popover",{"is-quick":o}),position:e,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(O.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:r})}}var Qa=Object(u.compose)([Object(p.withSelect)((e,{clientId:t,rootClientId:n})=>{const{getBlockRootClientId:o,hasInserterItems:r,__experimentalGetAllowedBlocks:c}=e(An),{getBlockVariations:l}=e(b.store),i=c(n=n||o(t)||void 0),a=1===Object(s.size)(i)&&0===Object(s.size)(l(i[0].name,"inserter"));let u=!1;return a&&(u=i[0]),{hasItems:r(n),hasSingleBlockType:a,blockTitle:u?u.title:"",allowedBlockType:u,rootClientId:n}}),Object(p.withDispatch)((e,t,{select:n})=>({insertOnlyAllowedBlock(){const{rootClientId:o,clientId:r,isAppender:c,hasSingleBlockType:l,allowedBlockType:i,onSelectOrClose:a}=t;if(!l)return;const{insertBlock:s}=e(An);s(Object(b.createBlock)(i.name),function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:l,getBlockRootClientId:i}=n(An);if(r)return e(r,o);const a=t();return!c&&a&&i(a)===o?e(a,o)+1:l(o).length}(),o),a&&a();const u=Object(O.sprintf)(// translators: %s: the name of the block that has been added
43
+ Object(O.__)("%s block added"),i.title);Object(Et.speak)(u)}})),Object(u.ifCondition)(({hasItems:e,isAppender:t,rootClientId:n,clientId:o})=>e||!t&&!n&&!o)])(Xa),Za=Object(u.compose)(Object(p.withSelect)((e,t)=>{const{getBlockCount:n,getBlockName:o,isBlockValid:r,getSettings:c,getTemplateLock:l}=e(An),i=!n(t.rootClientId),a=o(t.lastBlockClientId)===Object(b.getDefaultBlockName)(),s=r(t.lastBlockClientId),{bodyPlaceholder:u}=c();return{isVisible:i||!a||!s,showPrompt:i,isLocked:!!l(t.rootClientId),placeholder:u}}),Object(p.withDispatch)((e,t)=>{const{insertDefaultBlock:n,startTyping:o}=e(An);return{onAppend(){const{rootClientId:e}=t;n(void 0,e),o()}}}))((function({isLocked:e,isVisible:t,onAppend:n,showPrompt:o,placeholder:r,rootClientId:c}){if(e||!t)return null;const i=Object(Zi.decodeEntities)(r)||Object(O.__)("Type / to choose a block");return Object(l.createElement)("div",{"data-root-client-id":c||"",className:"block-editor-default-block-appender"},Object(l.createElement)("p",{tabIndex:"0",contentEditable:!0,suppressContentEditableWarning:!0,role:"button","aria-label":Object(O.__)("Add block"),className:"wp-block block-editor-default-block-appender__content",onFocus:n},o?i:"\ufeff"),Object(l.createElement)(Qa,{rootClientId:c,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}));function Ja({rootClientId:e,className:t,onFocus:n,tabIndex:o},r){return Object(l.createElement)(Qa,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,renderToggle:({onToggle:e,disabled:c,isOpen:i,blockTitle:s,hasSingleBlockType:u})=>{let d;d=u?Object(O.sprintf)(// translators: %s: the name of the block when there is only one
44
+ Object(O._x)("Add %s","directly add the only allowed block"),s):Object(O._x)("Add block","Generic label for block inserter button");const b=!u;let p=Object(l.createElement)(m.Button,{ref:r,onFocus:n,tabIndex:o,className:a()(t,"block-editor-button-block-appender"),onClick:e,"aria-haspopup":b?"true":void 0,"aria-expanded":b?i:void 0,disabled:c,label:d},!u&&Object(l.createElement)(m.VisuallyHidden,{as:"span"},d),Object(l.createElement)(Xc.a,{icon:Ji.a}));return(b||u)&&(p=Object(l.createElement)(m.Tooltip,{text:d},p)),p},isAppender:!0})}const es=Object(l.forwardRef)((e,t)=>(wt()("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender"}),Ja(e,t)));var ts=Object(l.forwardRef)(Ja);function ns(e){e.stopPropagation()}Object(l.createContext)();var os=Object(p.withSelect)((e,{rootClientId:t})=>{const{getBlockOrder:n,canInsertBlockType:o,getTemplateLock:r,getSelectedBlockClientId:c}=e(An);return{isLocked:!!r(t),blockClientIds:n(t),canInsertDefaultBlock:o(Object(b.getDefaultBlockName)(),t),selectedBlockClientId:c()}})((function({blockClientIds:e,rootClientId:t,canInsertDefaultBlock:n,isLocked:o,renderAppender:r,className:c,selectedBlockClientId:i,tagName:u="div"}){if(o||!1===r)return null;let d;if(r)d=Object(l.createElement)(r,null);else{const o=!t,r=i===t,c=i&&!e.includes(i);if(!o&&!r&&(!i||c))return null;d=n?Object(l.createElement)(Za,{rootClientId:t,lastBlockClientId:Object(s.last)(e)}):Object(l.createElement)(ts,{rootClientId:t,className:"block-list-appender__toggle"})}return Object(l.createElement)(u,{tabIndex:-1,onFocus:ns,className:a()("block-list-appender",c)},d)}));function rs(e,t){const n=Object(p.useSelect)(e=>e(An).getSettings().mediaUpload,[]),{canInsertBlockType:o,getBlockIndex:r,getClientIdsOfDescendants:c}=Object(p.useSelect)(An),{insertBlocks:l,moveBlocksToPosition:i,updateBlockAttributes:a,clearSelectedBlock:s}=Object(p.useDispatch)(An),u=function(e,t,n,o,r,c,l){return i=>{const{srcRootClientId:a,srcClientIds:s,type:u,blocks:d}=function(e){let t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch(e){return t}return t}(i);if("inserter"===u&&(l(),c(d,t,e,!0,null)),"block"===u){const c=n(s[0],a);if(a===e&&c===t)return;if(s.includes(e)||o(s).some(t=>t===e))return;const l=a===e,i=s.length;r(s,a,e,l&&c<t?t-i:t)}}}(e,t,r,c,i,l,s),d=function(e,t,n,o,r,c){return l=>{if(!n)return;const i=Object(b.findTransform)(Object(b.getBlockTransforms)("from"),t=>"files"===t.type&&r(t.blockName,e)&&t.isMatch(l));if(i){const n=i.transform(l,o);c(n,t,e)}}}(e,t,n,a,o,l),m=function(e,t,n){return o=>{const r=Object(b.pasteHandler)({HTML:o,mode:"BLOCKS"});r.length&&n(r,t,e)}}(e,t,l);return e=>{const t=Object(ri.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");t.length?d(t):n?m(n):u(e)}}function cs(e,t,n=["top","bottom","left","right"]){let o,r;return n.forEach(n=>{const c=function(e,t,n){const o="top"===n||"bottom"===n,{x:r,y:c}=e,l=o?r:c,i=o?c:r,a=o?t.left:t.top,s=o?t.right:t.bottom,u=t[n];let d;return d=l>=a&&l<=s?l:l<s?a:s,Math.sqrt((l-d)**2+(i-u)**2)}(e,t,n);(void 0===o||c<o)&&(o=c,r=n)}),[o,r]}function ls({rootClientId:e=""}={}){const[t,n]=Object(l.useState)(null),o=Object(p.useSelect)(t=>{const{getTemplateLock:n}=t(An);return"all"===n(e)},[e]),{getBlockListSettings:r}=Object(p.useSelect)(An),{showInsertionPoint:c,hideInsertionPoint:i}=Object(p.useDispatch)(An),a=rs(e,t),s=Object(u.useThrottle)(Object(l.useCallback)((t,o)=>{var l;const i=function(e,t,n){const o="horizontal"===n?["left","right"]:["top","bottom"],r=Object(O.isRTL)();let c,l;return e.forEach((e,n)=>{const i=e.getBoundingClientRect(),[a,s]=cs(t,i,o);(void 0===l||a<l)&&(l=a,c=n+("bottom"===s||!r&&"right"===s||r&&"left"===s?1:0))}),c}(Array.from(o.children).filter(e=>e.classList.contains("wp-block")),{x:t.clientX,y:t.clientY},null===(l=r(e))||void 0===l?void 0:l.orientation);n(void 0===i?0:i),null!==i&&c(e,i)},[]),200);return Object(u.__experimentalUseDropZone)({isDisabled:o,onDrop:a,onDragOver(e){s(e,e.currentTarget)},onDragLeave(){s.cancel(),i(),n(null)},onDragEnd(){s.cancel(),i(),n(null)}})}function is(e){return Object(u.useRefEffect)(t=>{if(e)return t.addEventListener("wheel",n),()=>{t.removeEventListener("wheel",n)};function n(t){const{deltaX:n,deltaY:o}=t;e.current.scrollBy(n,o)}},[e])}const as=Object(l.createContext)();function ss({__unstablePopoverSlot:e,__unstableContentRef:t}){const{selectBlock:n}=Object(p.useDispatch)(An),o=Object(l.useContext)(as),r=Object(l.useRef)(),{orientation:c,previousClientId:i,nextClientId:s,rootClientId:u,isInserterShown:d}=Object(p.useSelect)(e=>{var t;const{getBlockOrder:n,getBlockListSettings:o,getBlockInsertionPoint:r,isBlockBeingDragged:c,getPreviousBlockClientId:l,getNextBlockClientId:i}=e(An),a=r(),s=n(a.rootClientId);if(!s.length)return{};let u=s[a.index-1],d=s[a.index];for(;c(u);)u=l(u);for(;c(d);)d=i(d);return{previousClientId:u,nextClientId:d,orientation:(null===(t=o(a.rootClientId))||void 0===t?void 0:t.orientation)||"vertical",rootClientId:a.rootClientId,isInserterShown:null==a?void 0:a.__unstableWithInserter}},[]),b=_r(i),f=_r(s),g=Object(l.useMemo)(()=>{if(!b&&!f)return{};const e=b?b.getBoundingClientRect():null,t=f?f.getBoundingClientRect():null;if("vertical"===c)return{width:b?b.offsetWidth:f.offsetWidth,height:t&&e?t.top-e.bottom:0};let n=0;return e&&t&&(n=Object(O.isRTL)()?e.left-t.right:t.left-e.right),{width:n,height:b?b.offsetHeight:f.offsetHeight}},[b,f]),h=Object(l.useCallback)(()=>{if(!b&&!f)return{};const{ownerDocument:e}=b||f,t=b?b.getBoundingClientRect():null,n=f?f.getBoundingClientRect():null;return"vertical"===c?Object(O.isRTL)()?{top:t?t.bottom:n.top,left:t?t.right:n.right,right:t?t.left:n.left,bottom:n?n.top:t.bottom,ownerDocument:e}:{top:t?t.bottom:n.top,left:t?t.left:n.left,right:t?t.right:n.right,bottom:n?n.top:t.bottom,ownerDocument:e}:Object(O.isRTL)()?{top:t?t.top:n.top,left:t?t.left:n.right,right:n?n.right:t.left,bottom:t?t.bottom:n.bottom,ownerDocument:e}:{top:t?t.top:n.top,left:t?t.right:n.left,right:n?n.left:t.right,bottom:t?t.bottom:n.bottom,ownerDocument:e}},[b,f]),v=is(t),j=a()("block-editor-block-list__insertion-point","is-"+c),k=b&&f&&d;return Object(l.createElement)(m.Popover,{ref:v,noArrow:!0,animate:!1,getAnchorRect:h,focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:e||null},Object(l.createElement)("div",{ref:r,tabIndex:-1,onClick:function(e){e.target===r.current&&s&&n(s,-1)},onFocus:function(e){e.target!==r.current&&(o.current=!0)},className:a()(j,{"is-with-inserter":k}),style:g},Object(l.createElement)("div",{className:"block-editor-block-list__insertion-point-indicator"}),k&&Object(l.createElement)("div",{className:a()("block-editor-block-list__insertion-point-inserter")},Object(l.createElement)(Qa,{position:"bottom center",clientId:s,rootClientId:u,__experimentalIsQuick:!0,onToggle:e=>{o.current=e},onSelectOrClose:()=>{o.current=!1}}))))}function us({children:e,__unstablePopoverSlot:t,__unstableContentRef:n}){const o=Object(p.useSelect)(e=>e(An).isBlockInsertionPointVisible(),[]);return Object(l.createElement)(as.Provider,{value:Object(l.useRef)(!1)},o&&Object(l.createElement)(ss,{__unstablePopoverSlot:t,__unstableContentRef:n}),e)}function ds(){const e=Object(l.useContext)(as),t=Object(p.useSelect)(e=>e(An).getSettings().hasReducedUI,[]),{getBlockListSettings:n,getBlockRootClientId:o,getBlockIndex:r,isBlockInsertionPointVisible:c,isMultiSelecting:i,getSelectedBlockClientIds:a,getTemplateLock:s}=Object(p.useSelect)(An),{showInsertionPoint:d,hideInsertionPoint:b}=Object(p.useDispatch)(An);return Object(u.useRefEffect)(o=>{if(!t)return o.addEventListener("mousemove",l),()=>{o.removeEventListener("mousemove",l)};function l(t){var o;if(e.current)return;if(i())return;if(!t.target.classList.contains("block-editor-block-list__layout"))return void(c()&&b());let l;if(t.target.classList.contains("is-root-container")||(l=(t.target.getAttribute("data-block")?t.target:t.target.closest("[data-block]")).getAttribute("data-block")),s(l))return;const u=(null===(o=n(l))||void 0===o?void 0:o.orientation)||"vertical",m=t.target.getBoundingClientRect(),p=t.clientY-m.top,f=t.clientX-m.left;let g=Array.from(t.target.children).find(e=>e.classList.contains("wp-block")&&"vertical"===u&&e.offsetTop>p||e.classList.contains("wp-block")&&"horizontal"===u&&e.offsetLeft>f);if(!g)return;if(!g.id&&(g=g.firstElementChild,!g))return;const h=g.id.slice("block-".length);if(!h)return;if(a().includes(h))return;const O=g.getBoundingClientRect();if("horizontal"===u&&(t.clientY>O.bottom||t.clientY<O.top)||"vertical"===u&&(t.clientX>O.right||t.clientX<O.left))return void(c()&&b());const v=r(h,l);0!==v?d(l,v,{__unstableWithInserter:!0}):c()&&b()}},[e,n,o,r,c,i,d,b,a])}const bs="undefined"==typeof window?e=>{setTimeout(()=>e(Date.now()),0)}:window.requestIdleCallback||window.requestAnimationFrame,ms="undefined"==typeof window?clearTimeout:window.cancelIdleCallback||window.cancelAnimationFrame;var ps=n(24),fs=({children:e,clientIds:t,cloneClassname:n,onDragStart:o,onDragEnd:r,elementId:c})=>{const{srcRootClientId:i,isDraggable:a,icon:s}=Object(p.useSelect)(e=>{var n;const{getBlockRootClientId:o,getTemplateLock:r,getBlockName:c}=e(An),l=o(t[0]),i=l?r(l):null,a=c(t[0]);return{srcRootClientId:l,isDraggable:"all"!==i,icon:null===(n=Object(b.getBlockType)(a))||void 0===n?void 0:n.icon}},[t]),u=Object(l.useRef)(!1),[d,f,g]=function(){const e=Object(l.useRef)(null),t=Object(l.useRef)(null),n=Object(l.useRef)(null),o=Object(l.useRef)(null);return Object(l.useEffect)(()=>()=>{o.current&&(clearInterval(o.current),o.current=null)},[]),[Object(l.useCallback)(r=>{e.current=r.clientY,n.current=Object(ri.getScrollContainer)(r.target),o.current=setInterval(()=>{if(n.current&&t.current){const e=n.current.scrollTop+t.current;n.current.scroll({top:e})}},25)},[]),Object(l.useCallback)(o=>{if(!n.current)return;const r=n.current.offsetHeight,c=e.current-n.current.offsetTop,l=o.clientY-n.current.offsetTop;if(o.clientY>c){const e=Math.max(r-c-50,0),n=Math.max(l-c-50,0)/e;t.current=25*n}else if(o.clientY<c){const e=Math.max(c-50,0),n=Math.max(c-l-50,0)/e;t.current=-25*n}else t.current=0},[]),()=>{e.current=null,n.current=null,o.current&&(clearInterval(o.current),o.current=null)}]}(),{startDraggingBlocks:h,stopDraggingBlocks:O}=Object(p.useDispatch)(An);if(Object(l.useEffect)(()=>()=>{u.current&&O()},[]),!a)return e({isDraggable:!1});const v={type:"block",srcClientIds:t,srcRootClientId:i};return Object(l.createElement)(m.Draggable,{cloneClassname:n,elementId:c,__experimentalTransferDataType:"wp-blocks",transferData:v,onDragStart:e=>{h(t),u.current=!0,d(e),o&&o()},onDragOver:f,onDragEnd:()=>{O(),u.current=!1,g(),r&&r()},__experimentalDragComponent:Object(l.createElement)(ga,{count:t.length,icon:s})},({onDraggableStart:t,onDraggableEnd:n})=>e({draggable:!0,onDragStart:t,onDragEnd:n}))},gs=function({clientId:e,rootClientId:t,blockElement:n}){const o=Hl(e),r=Object(p.useSelect)(n=>{var o;const{__unstableGetBlockWithoutInnerBlocks:r,getBlockIndex:c,hasBlockMovingClientId:l,getBlockListSettings:i}=n(An),a=c(e,t),{name:s,attributes:u}=r(e);return{index:a,name:s,attributes:u,blockMovingMode:l(),orientation:null===(o=i(t))||void 0===o?void 0:o.orientation}},[e,t]),{index:i,name:s,attributes:u,blockMovingMode:d,orientation:f}=r,{setNavigationMode:g,removeBlock:h}=Object(p.useDispatch)(An),v=Object(l.useRef)();Object(l.useEffect)(()=>{v.current.focus(),window.navigator.platform.indexOf("Win")>-1&&Object(Et.speak)(L)},[]);const{hasBlockMovingClientId:j,getBlockIndex:k,getBlockRootClientId:_,getClientIdsOfDescendants:y,getSelectedBlockClientId:E,getMultiSelectedBlocksEndClientId:C,getPreviousBlockClientId:S,getNextBlockClientId:w}=Object(p.useSelect)(An),{selectBlock:B,clearSelectedBlock:I,setBlockMovingClientId:x,moveBlockToPosition:T}=Object(p.useDispatch)(An),N=Object(b.getBlockType)(s),L=Object(b.__experimentalGetAccessibleBlockLabel)(N,u,i+1,f),P=a()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!d}),R=Object(O.__)("Drag");return Object(l.createElement)("div",{className:P},Object(l.createElement)(m.Flex,{justify:"center",className:"block-editor-block-list__block-selection-button__content"},Object(l.createElement)(m.FlexItem,null,Object(l.createElement)(Ll,{icon:null==o?void 0:o.icon,showColors:!0})),Object(l.createElement)(m.FlexItem,null,Object(l.createElement)(fs,{clientIds:[e]},e=>Object(l.createElement)(m.Button,Object(c.a)({icon:fa,className:"block-selection-button_drag-handle","aria-hidden":"true",label:R,tabIndex:"-1"},e)))),Object(l.createElement)(m.FlexItem,null,Object(l.createElement)(m.Button,{ref:v,onClick:()=>g(!1),onKeyDown:function(t){const{keyCode:o}=t,r=o===Yr.UP,c=o===Yr.DOWN,l=o===Yr.LEFT,i=o===Yr.RIGHT,a=o===Yr.TAB,s=o===Yr.ESCAPE,u=o===Yr.ENTER,d=o===Yr.SPACE,b=t.shiftKey;if(o===Yr.BACKSPACE||o===Yr.DELETE)return h(e),void t.preventDefault();const m=E(),p=C(),f=S(p||m),g=w(p||m),O=a&&b||r,v=a&&!b||c,N=l,L=i;let P;if(O)P=f;else if(v)P=g;else if(N){var R;P=null!==(R=_(m))&&void 0!==R?R:m}else if(L){var A;P=null!==(A=y([m])[0])&&void 0!==A?A:m}const M=j();if(s&&M&&x(null),(u||d)&&M){const e=_(M),t=_(m),n=k(M,e);let o=k(m,t);n<o&&e===t&&(o-=1),T(M,e,t,o),B(M),x(null)}if(v||O||N||L)if(P)t.preventDefault(),B(P);else if(a&&m){let e;v?(e=ri.focus.tabbable.findNext(n),e||(e=n.ownerDocument.defaultView.frameElement,e=ri.focus.tabbable.findNext(e))):e=ri.focus.tabbable.findPrevious(n),e&&(t.preventDefault(),e.focus(),I())}},label:L,className:"block-selection-button_select-button"},Object(l.createElement)(zl,{clientId:e})))))};function hs(e){return Array.from(e.querySelectorAll("[data-toolbar-item]"))}var Os=function({children:e,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:o,...r}){const i=Object(l.useRef)(),a=function(e){const[t,n]=Object(l.useState)(!0),o=Object(l.useCallback)(()=>{const t=!ri.focus.tabbable.find(e.current).some(e=>!("toolbarItem"in e.dataset));t||wt()("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),n(t)},[]);return Object(l.useLayoutEffect)(()=>{const t=new window.MutationObserver(o);return t.observe(e.current,{childList:!0,subtree:!0}),()=>t.disconnect()},[t]),t}(i);return function(e,t,n,o,r){const[c]=Object(l.useState)(t),[i]=Object(l.useState)(o),a=Object(l.useCallback)(()=>{!function(e){const[t]=ri.focus.tabbable.find(e);t&&t.focus()}(e.current)},[]);Object(ps.useShortcut)("core/block-editor/focus-toolbar",a,{bindGlobal:!0,eventName:"keydown"}),Object(l.useEffect)(()=>{c&&a()},[n,c,a]),Object(l.useEffect)(()=>{let t=0;return i&&!c&&(t=window.requestAnimationFrame(()=>{const t=hs(e.current),n=i||0;var o;t[n]&&(o=e.current).contains(o.ownerDocument.activeElement)&&t[n].focus()})),()=>{if(window.cancelAnimationFrame(t),!r||!e.current)return;const n=hs(e.current).findIndex(e=>0===e.tabIndex);r(n)}},[i,c])}(i,t,a,n,o),a?Object(l.createElement)(m.Toolbar,Object(c.a)({label:r["aria-label"],ref:i},r),e):Object(l.createElement)(m.NavigableMenu,Object(c.a)({orientation:"horizontal",role:"toolbar",ref:i},r),e)},vs=Object(p.withSelect)((e,{clientIds:t})=>{var n;const{getBlock:o,getBlockIndex:r,getBlockListSettings:c,getTemplateLock:l,getBlockOrder:i,getBlockRootClientId:a}=e(An),u=Object(s.castArray)(t),d=Object(s.first)(u),m=o(d),p=a(Object(s.first)(u)),f=r(d,p),g=0===f,h=r(Object(s.last)(u),p)===i(p).length-1;return{blockType:m?Object(b.getBlockType)(m.name):null,isLocked:"all"===l(p),rootClientId:p,firstIndex:f,isFirst:g,isLast:h,orientation:null===(n=c(p))||void 0===n?void 0:n.orientation}})((function({isFirst:e,isLast:t,clientIds:n,isLocked:o,isHidden:r,rootClientId:i,orientation:s,hideDragHandle:u}){const[d,b]=Object(l.useState)(!1),p=()=>b(!0),f=()=>b(!1);if(o||e&&t&&!i)return null;const g=Object(O.__)("Drag");return Object(l.createElement)("div",{className:a()("block-editor-block-mover",{"is-visible":d||!r,"is-horizontal":"horizontal"===s})},!u&&Object(l.createElement)(fs,{clientIds:n,cloneClassname:"block-editor-block-mover__drag-clone"},e=>Object(l.createElement)(m.Button,Object(c.a)({icon:fa,className:"block-editor-block-mover__drag-handle","aria-hidden":"true",label:g,tabIndex:"-1"},e))),Object(l.createElement)(m.ToolbarGroup,{className:"block-editor-block-mover__move-button-container"},Object(l.createElement)(m.ToolbarItem,{onFocus:p,onBlur:f},e=>Object(l.createElement)(hi,Object(c.a)({clientIds:n},e))),Object(l.createElement)(m.ToolbarItem,{onFocus:p,onBlur:f},e=>Object(l.createElement)(Oi,Object(c.a)({clientIds:n},e)))))}));const{clearTimeout:js,setTimeout:ks}=window;function _s({ref:e,isFocused:t,debounceTimeout:n=200,onChange:o=s.noop}){const[r,c]=Object(l.useState)(!1),i=Object(l.useRef)(),a=t=>{null!=e&&e.current&&c(t),o(t)},u=()=>{const e=i.current;e&&js&&js(e)};return Object(l.useEffect)(()=>()=>u(),[]),{showMovers:r,debouncedShowMovers:e=>{e&&e.stopPropagation(),u(),r||a(!0)},debouncedHideMovers:o=>{o&&o.stopPropagation(),u(),i.current=ks(()=>{(()=>{const n=(null==e?void 0:e.current)&&e.current.matches(":hover");return!t&&!n})()&&a(!1)},n)}}}function ys({ref:e,debounceTimeout:t=200,onChange:n=s.noop}){const[o,r]=Object(l.useState)(!1),{showMovers:c,debouncedShowMovers:i,debouncedHideMovers:a}=_s({ref:e,debounceTimeout:t,isFocused:o,onChange:n}),u=Object(l.useRef)(!1),d=()=>(null==e?void 0:e.current)&&e.current.contains(e.current.ownerDocument.activeElement);return Object(l.useEffect)(()=>{const t=e.current,n=()=>{d()&&(r(!0),i())},o=()=>{d()||(r(!1),a())};return t&&!u.current&&(t.addEventListener("focus",n,!0),t.addEventListener("blur",o,!0),u.current=!0),()=>{t&&(t.removeEventListener("focus",n),t.removeEventListener("blur",o))}},[e,u,r,i,a]),{showMovers:c,gestures:{onMouseMove:i,onMouseLeave:a}}}function Es(){const{selectBlock:e,toggleBlockHighlight:t}=Object(p.useDispatch)(An),{firstParentClientId:n,shouldHide:o,hasReducedUI:r}=Object(p.useSelect)(e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientId:o,getSettings:r}=e(An),{hasBlockSupport:c}=e(b.store),l=n(o()),i=l[l.length-1],a=t(i),s=Object(b.getBlockType)(a),u=r();return{firstParentClientId:i,shouldHide:!c(s,"__experimentalParentSelector",!0),hasReducedUI:u.hasReducedUI}},[]),i=Hl(n),a=Object(l.useRef)(),{gestures:s}=ys({ref:a,onChange(e){e&&r||t(n,e)}});return o||void 0===n?null:Object(l.createElement)("div",Object(c.a)({className:"block-editor-block-parent-selector",key:n,ref:a},s),Object(l.createElement)(m.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(n),label:Object(O.sprintf)(
45
  /* translators: %s: Name of the block's parent. */
46
+ Object(O.__)("Select %s"),i.title),showTooltip:!0,icon:Object(l.createElement)(Ll,{icon:i.icon})}))}var Cs=Object(l.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Un.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));function Ss({blocks:e}){return Object(l.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(l.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(l.createElement)(m.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right",focusOnMount:!1},Object(l.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(l.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(O.__)("Preview")),Object(l.createElement)(da,{viewportWidth:500,blocks:e})))))}var ws=({className:e,possibleBlockTransformations:t,onSelect:n,blocks:o})=>{const[r,c]=Object(l.useState)();return Object(l.createElement)(m.MenuGroup,{label:Object(O.__)("Transform to"),className:e},r&&Object(l.createElement)(Ss,{blocks:Object(b.switchToBlockType)(o,r)}),t.map(e=>{const{name:t,icon:o,title:r,isDisabled:i}=e;return Object(l.createElement)(m.MenuItem,{key:t,className:Object(b.getBlockMenuDefaultClassName)(t),onClick:e=>{e.preventDefault(),n(t)},disabled:i,onMouseLeave:()=>c(null),onMouseEnter:()=>c(t)},Object(l.createElement)(Ll,{icon:o,showColors:!0}),r)}))};const Bs={};function Is({genericPreviewBlock:e,style:t,isActive:n,onBlur:o,onHover:r,onSelect:c,styleClassName:i,itemRole:s}){const u=Object(l.useMemo)(()=>({...e,attributes:{...e.attributes,className:i}}),[e,i]);return Object(l.createElement)("div",{key:t.name,className:a()("block-editor-block-styles__item",{"is-active":n}),onClick:()=>c(),onKeyDown:e=>{Yr.ENTER!==e.keyCode&&Yr.SPACE!==e.keyCode||(e.preventDefault(),c())},onMouseEnter:r,onMouseLeave:o,role:s||"button",tabIndex:"0","aria-label":t.label||t.name},Object(l.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(l.createElement)(da,{viewportWidth:500,blocks:u})),Object(l.createElement)("div",{className:"block-editor-block-styles__item-label"},t.label||t.name))}var xs=function({clientId:e,onSwitch:t=s.noop,onHoverClassName:n=s.noop,itemRole:o}){const{styles:r,block:c,type:i,className:a}=Object(p.useSelect)(t=>{const{getBlock:n}=t(An),o=n(e);if(!o)return Bs;const r=Object(b.getBlockType)(o.name),{getBlockStyles:c}=t(b.store);return{block:o,type:r,styles:c(o.name),className:o.attributes.className||""}},[e]),{updateBlockAttributes:u}=Object(p.useDispatch)(An),d=function(e,t){return Object(l.useMemo)(()=>{const n=null==t?void 0:t.example,o=null==t?void 0:t.name;return n&&o?Object(b.getBlockFromExample)(o,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?Object(b.cloneBlock)(e):void 0},[null!=t&&t.example?null==e?void 0:e.name:e,t])}(c,i);if(!r||0===r.length)return null;const m=Object(s.find)(r,"isDefault")?r:[{name:"default",label:Object(O._x)("Default","block style"),isDefault:!0},...r],f=function(e,t){for(const n of new uc.a(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),o=Object(s.find)(e,{name:t});if(o)return o}return Object(s.find)(e,"isDefault")}(m,a);return Object(l.createElement)("div",{className:"block-editor-block-styles"},m.map(r=>{const c=function(e,t,n){const o=new uc.a(e);return t&&o.remove("is-style-"+t.name),o.add("is-style-"+n.name),o.value}(a,f,r);return Object(l.createElement)(Is,{genericPreviewBlock:d,className:a,isActive:f===r,key:r.name,onSelect:()=>{u(e,{className:c}),n(null),t()},onBlur:()=>n(null),onHover:()=>n(c),style:r,styleClassName:c,itemRole:o})}))};function Ts({hoveredBlock:e,onSwitch:t}){const{name:n,clientId:o}=e,[r,c]=Object(l.useState)(),i=Object(p.useSelect)(e=>e(b.store).getBlockType(n),[n]);return Object(l.createElement)(m.MenuGroup,{label:Object(O.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup"},r&&Object(l.createElement)(Ss,{blocks:i.example?Object(b.getBlockFromExample)(i.name,{attributes:{...i.example.attributes,className:r},innerBlocks:i.example.innerBlocks}):Object(b.cloneBlock)(e,{className:r})}),Object(l.createElement)(xs,{clientId:o,onSwitch:t,onHoverClassName:c,itemRole:"menuitem"}))}const Ns=(e,t,n=new Set)=>{const{clientId:o,name:r,innerBlocks:c=[]}=e;if(!n.has(o)){if(r===t)return e;for(const e of c){const o=Ns(e,t,n);if(o)return o}}},Ls=(e,t)=>{const n=((e,t)=>{const n=Object(b.__experimentalGetBlockAttributesNamesByRole)(e,"content");return null!=n&&n.length?n.reduce((e,n)=>(t[n]&&(e[n]=t[n]),e),{}):t})(t.name,t.attributes);e.attributes={...e.attributes,...n}};function Ps({patterns:e,onSelect:t}){return Object(l.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(l.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(l.createElement)(m.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right"},Object(l.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(l.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(O.__)("Preview")),Object(l.createElement)(Rs,{patterns:e,onSelect:t})))))}function Rs({patterns:e,onSelect:t}){const n=Object(m.__unstableUseCompositeState)();return Object(l.createElement)(m.__unstableComposite,Object(c.a)({},n,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":Object(O.__)("Patterns list")}),e.map(e=>Object(l.createElement)(As,{key:e.name,pattern:e,onSelect:t,composite:n})))}function As({pattern:e,onSelect:t,composite:n}){const o="block-editor-block-switcher__preview-patterns-container",r=Object(u.useInstanceId)(As,o+"-list__item-description");return Object(l.createElement)("div",{className:o+"-list__list-item","aria-label":e.title,"aria-describedby":e.description?r:void 0},Object(l.createElement)(m.__unstableCompositeItem,Object(c.a)({role:"option",as:"div"},n,{className:o+"-list__item",onClick:()=>t(e.transformedBlocks)}),Object(l.createElement)(da,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),Object(l.createElement)("div",{className:o+"-list__item-title"},e.title)),!!e.description&&Object(l.createElement)(m.VisuallyHidden,{id:r},e.description))}var Ms=function({blocks:e,patterns:t,onSelect:n}){const[o,r]=Object(l.useState)(!1),c=((e,t)=>Object(l.useMemo)(()=>e.reduce((e,n)=>{const o=((e,t)=>{const n=t.map(e=>Object(b.cloneBlock)(e)),o=new Set;for(const t of e){let e=!1;for(const r of n){const n=Ns(r,t.name,o);if(n){e=!0,o.add(n.clientId),Ls(n,t);break}}if(!e)return}return n})(t,n.blocks);return o&&e.push({...n,transformedBlocks:o}),e},[]),[e,t]))(t,e);return c.length?Object(l.createElement)(m.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup"},o&&Object(l.createElement)(Ps,{patterns:c,onSelect:n}),Object(l.createElement)(m.MenuItem,{onClick:e=>{e.preventDefault(),r(!o)},icon:ui.a},Object(O.__)("Patterns"))):null};const Ds=({clientIds:e,blocks:t})=>{const{replaceBlocks:n}=Object(p.useDispatch)(An),o=Hl(t[0].clientId),{possibleBlockTransformations:r,hasBlockStyles:c,icon:i,blockTitle:a,patterns:u}=Object(p.useSelect)(n=>{const{getBlockRootClientId:r,getBlockTransformItems:c,__experimentalGetPatternTransformItems:l}=n(An),{getBlockStyles:i,getBlockType:a}=n(b.store),u=r(Object(s.castArray)(e)[0]),[{name:d}]=t,m=1===t.length,p=m&&i(d);let f;var g;m?f=null==o?void 0:o.icon:f=1===Object(s.uniq)(t.map(({name:e})=>e)).length?null===(g=a(d))||void 0===g?void 0:g.icon:Cs;return{possibleBlockTransformations:c(t,u),hasBlockStyles:!(null==p||!p.length),icon:f,blockTitle:a(d).title,patterns:l(t,u)}},[e,t,null==o?void 0:o.icon]),d=1===t.length&&Object(b.isReusableBlock)(t[0]),f=1===t.length&&Object(b.isTemplatePart)(t[0]),g=!!r.length,h=!(null==u||!u.length);if(!c&&!g)return Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(m.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:a,icon:Object(l.createElement)(Ll,{icon:i,showColors:!0})}));const v=a,j=1===t.length?Object(O.sprintf)(
47
  /* translators: %s: block title. */
48
+ Object(O.__)("%s: Change block type or style"),a):Object(O.sprintf)(
49
  /* translators: %d: number of blocks. */
50
+ Object(O._n)("Change type of %d block","Change type of %d blocks",t.length),t.length),k=c||g||h;return Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(m.ToolbarItem,null,o=>Object(l.createElement)(m.DropdownMenu,{className:"block-editor-block-switcher",label:v,popoverProps:{position:"bottom right",isAlternate:!0,className:"block-editor-block-switcher__popover"},icon:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Ll,{icon:i,className:"block-editor-block-switcher__toggle",showColors:!0}),(d||f)&&Object(l.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},Object(l.createElement)(zl,{clientId:e}))),toggleProps:{describedBy:j,...o},menuProps:{orientation:"both"}},({onClose:o})=>k&&Object(l.createElement)("div",{className:"block-editor-block-switcher__container"},h&&Object(l.createElement)(Ms,{blocks:t,patterns:u,onSelect:t=>{(t=>{n(e,t)})(t),o()}}),g&&Object(l.createElement)(ws,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:r,blocks:t,onSelect:r=>{(o=>{n(e,Object(b.switchToBlockType)(t,o))})(r),o()}}),c&&Object(l.createElement)(Ts,{hoveredBlock:t[0],onSwitch:o})))))};var Fs=({clientIds:e})=>{const t=Object(p.useSelect)(t=>t(An).getBlocksByClientId(e),[e]);return!t.length||t.some(e=>!e)?null:Object(l.createElement)(Ds,{clientIds:e,blocks:t})},Vs=n(32);function Hs(){const{getBlockName:e}=Object(p.useSelect)(An),{getBlockType:t}=Object(p.useSelect)(b.store),{createSuccessNotice:n}=Object(p.useDispatch)(wa.store);return Object(l.useCallback)((o,r)=>{let c="";if(1===r.length){const n=r[0],{title:l}=t(e(n));c="copy"===o?Object(O.sprintf)(// Translators: Name of the block being copied, e.g. "Paragraph".
51
+ Object(O.__)('Copied "%s" to clipboard.'),l):Object(O.sprintf)(// Translators: Name of the block being cut, e.g. "Paragraph".
52
+ Object(O.__)('Moved "%s" to clipboard.'),l)}else c="copy"===o?Object(O.sprintf)(// Translators: %d: Number of blocks being copied.
53
+ Object(O._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",r.length),r.length):Object(O.sprintf)(// Translators: %d: Number of blocks being cut.
54
+ Object(O._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",r.length),r.length);n(c,{type:"snackbar"})},[])}function zs(){const{getBlocksByClientId:e,getSelectedBlockClientIds:t,hasMultiSelection:n,getSettings:o}=Object(p.useSelect)(An),{flashBlock:r,removeBlocks:c,replaceBlocks:l}=Object(p.useDispatch)(An),i=Hs();return Object(u.useRefEffect)(a=>{function s(s){const u=t();if(0!==u.length){if(!n()){const{target:e}=s,{ownerDocument:t}=e;if("copy"===s.type||"cut"===s.type?Object(ri.documentHasUncollapsedSelection)(t):Object(ri.documentHasSelection)(t))return}if(a.contains(s.target.ownerDocument.activeElement)){if(s.preventDefault(),"copy"===s.type||"cut"===s.type){1===u.length&&r(u[0]),i(s.type,u);const t=e(u),n=Object(b.serialize)(t);s.clipboardData.setData("text/plain",n),s.clipboardData.setData("text/html",n)}if("cut"===s.type)c(u);else if("paste"===s.type){const{__experimentalCanUserUseUnfilteredHTML:e}=o(),{plainText:t,html:n}=function({clipboardData:e}){let t="",n="";try{t=e.getData("text/plain"),n=e.getData("text/html")}catch(t){try{n=e.getData("Text")}catch(e){return}}const o=Object(ri.getFilesFromDataTransfer)(e).filter(({type:e})=>/^image\/(?:jpe?g|png|gif)$/.test(e));return o.length&&!n&&(n=o.map(e=>`<img src="${Object(Vs.createBlobURL)(e)}">`).join(""),t=""),{html:n,plainText:t}}(s),r=Object(b.pasteHandler)({HTML:n,plainText:t,mode:"BLOCKS",canUserUseUnfilteredHTML:e});l(u,r,r.length-1,-1)}}}}return a.ownerDocument.addEventListener("copy",s),a.ownerDocument.addEventListener("cut",s),a.ownerDocument.addEventListener("paste",s),()=>{a.ownerDocument.removeEventListener("copy",s),a.ownerDocument.removeEventListener("cut",s),a.ownerDocument.removeEventListener("paste",s)}},[])}var Gs=function({children:e}){return Object(l.createElement)("div",{ref:zs()},e)};function Us({clientIds:e,children:t,__experimentalUpdateSelection:n}){const{canInsertBlockType:o,getBlockRootClientId:r,getBlocksByClientId:c,getTemplateLock:l}=Object(p.useSelect)(e=>e(An),[]),{getDefaultBlockName:i,getGroupingBlockName:a}=Object(p.useSelect)(e=>e(b.store),[]),u=c(e),d=r(e[0]),m=Object(s.every)(u,e=>!!e&&Object(b.hasBlockSupport)(e.name,"multiple",!0)&&o(e.name,d)),f=o(i(),d),{removeBlocks:g,replaceBlocks:h,duplicateBlocks:O,insertAfterBlock:v,insertBeforeBlock:j,flashBlock:k,setBlockMovingClientId:_,setNavigationMode:y,selectBlock:E}=Object(p.useDispatch)(An),C=Hs();return t({canDuplicate:m,canInsertDefaultBlock:f,isLocked:!!l(d),rootClientId:d,blocks:u,onDuplicate:()=>O(e,n),onRemove:()=>g(e,n),onInsertBefore(){j(Object(s.first)(Object(s.castArray)(e)))},onInsertAfter(){v(Object(s.last)(Object(s.castArray)(e)))},onMoveTo(){y(!0),E(e[0]),_(e[0])},onGroup(){if(!u.length)return;const t=a(),n=Object(b.switchToBlockType)(u,t);n&&h(e,n)},onUngroup(){if(!u.length)return;const t=u[0].innerBlocks;t.length&&h(e,t)},onCopy(){const e=u.map(({clientId:e})=>e);1===u.length&&k(e[0]),C("copy",e)}})}var Ws=Object(u.compose)([Object(p.withSelect)((e,{clientId:t})=>{const{getBlock:n,getBlockMode:o,getSettings:r}=e(An),c=n(t),l=r().codeEditingEnabled;return{mode:o(t),blockType:c?Object(b.getBlockType)(c.name):null,isCodeEditingEnabled:l}}),Object(p.withDispatch)((e,{onToggle:t=s.noop,clientId:n})=>({onToggleMode(){e(An).toggleBlockMode(n),t()}}))])((function({blockType:e,mode:t,onToggleMode:n,small:o=!1,isCodeEditingEnabled:r=!0}){if(!Object(b.hasBlockSupport)(e,"html",!0)||!r)return null;const c="visual"===t?Object(O.__)("Edit as HTML"):Object(O.__)("Edit visually");return Object(l.createElement)(m.MenuItem,{onClick:n},!o&&c)})),Ks=Object(u.compose)(Object(p.withSelect)((e,{clientId:t})=>{const n=e(An).getBlock(t);return{block:n,shouldRender:n&&"core/html"===n.name}}),Object(p.withDispatch)((e,{block:t})=>({onClick:()=>e(An).replaceBlocks(t.clientId,Object(b.rawHandler)({HTML:Object(b.getBlockContent)(t)}))})))((function({shouldRender:e,onClick:t,small:n}){if(!e)return null;const o=Object(O.__)("Convert to Blocks");return Object(l.createElement)(m.MenuItem,{onClick:t},!n&&o)}));const{Fill:$s,Slot:qs}=Object(m.createSlotFill)("__unstableBlockSettingsMenuFirstItem");$s.Slot=qs;var Ys=$s;function Xs({clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:r,onClose:c=(()=>{})}){const{replaceBlocks:i}=Object(p.useDispatch)(An);return t||n?Object(l.createElement)(l.Fragment,null,t&&Object(l.createElement)(m.MenuItem,{onClick:()=>{(()=>{const t=Object(b.switchToBlockType)(o,r);t&&i(e,t)})(),c()}},Object(O._x)("Group","verb")),n&&Object(l.createElement)(m.MenuItem,{onClick:()=>{(()=>{const t=o[0].innerBlocks;t.length&&i(e,t)})(),c()}},Object(O._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor "))):null}const{Fill:Qs,Slot:Zs}=Object(m.createSlotFill)("BlockSettingsMenuControls");function Js({...e}){return Object(l.createElement)(m.__experimentalStyleProvider,{document:document},Object(l.createElement)(Qs,e))}Js.Slot=({fillProps:e,clientIds:t=null})=>{const n=Object(p.useSelect)(e=>{const{getBlocksByClientId:n,getSelectedBlockClientIds:o}=e(An),r=null!==t?t:o();return Object(s.map)(Object(s.compact)(n(r)),e=>e.name)},[t]),o=function(){const{clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:r}=Object(p.useSelect)(e=>{var t;const{getBlockRootClientId:n,getBlocksByClientId:o,canInsertBlockType:r,getSelectedBlockClientIds:c}=e(An),{getGroupingBlockName:l}=e(b.store),i=c(),a=l(),s=r(a,null!=i&&i.length?n(i[0]):void 0),u=o(i),d=1===u.length&&(null===(t=u[0])||void 0===t?void 0:t.name)===a;return{clientIds:i,isGroupable:s&&u.length&&!d,isUngroupable:d&&!!u[0].innerBlocks.length,blocksSelection:u,groupingBlockName:a}},[]);return{clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:r}}(),{isGroupable:r,isUngroupable:i}=o,a=r||i;return Object(l.createElement)(Zs,{fillProps:{...e,selectedBlocks:n}},t=>{if((null==t?void 0:t.length)>0||a)return Object(l.createElement)(m.MenuGroup,null,t,Object(l.createElement)(Xs,Object(c.a)({},o,{onClose:null==e?void 0:e.onClose})))})};var eu=Js;const tu={className:"block-editor-block-settings-menu__popover",position:"bottom right",isAlternate:!0};function nu({blocks:e,onCopy:t}){const n=Object(u.useCopyToClipboard)(()=>Object(b.serialize)(e),t);return Object(l.createElement)(m.MenuItem,{ref:n},Object(O.__)("Copy"))}var ou=function({clientIds:e,__experimentalSelectBlock:t,children:n,...o}){const r=Object(s.castArray)(e),i=r.length,a=r[0],u=Object(p.useSelect)(e=>{const{getShortcutRepresentation:t}=e(ps.store);return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}},[]),d=Object(l.useCallback)(t?async e=>{const n=await e;n&&n[0]&&t(n[0])}:s.noop,[t]),b=1===i?Object(O.__)("Remove block"):Object(O.__)("Remove blocks");return Object(l.createElement)(Us,{clientIds:e,__experimentalUpdateSelection:!t},({canDuplicate:t,canInsertDefaultBlock:r,isLocked:p,onDuplicate:f,onInsertAfter:g,onInsertBefore:h,onRemove:v,onCopy:j,onMoveTo:k,blocks:_})=>Object(l.createElement)(m.DropdownMenu,Object(c.a)({icon:ni.a,label:Object(O.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:tu,noIcons:!0},o),({onClose:o})=>Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.MenuGroup,null,Object(l.createElement)(Ys.Slot,{fillProps:{onClose:o}}),1===i&&Object(l.createElement)(Ks,{clientId:a}),Object(l.createElement)(nu,{blocks:_,onCopy:j}),t&&Object(l.createElement)(m.MenuItem,{onClick:Object(s.flow)(o,f,d),shortcut:u.duplicate},Object(O.__)("Duplicate")),r&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.MenuItem,{onClick:Object(s.flow)(o,h),shortcut:u.insertBefore},Object(O.__)("Insert before")),Object(l.createElement)(m.MenuItem,{onClick:Object(s.flow)(o,g),shortcut:u.insertAfter},Object(O.__)("Insert after"))),!p&&Object(l.createElement)(m.MenuItem,{onClick:Object(s.flow)(o,k)},Object(O.__)("Move to")),1===i&&Object(l.createElement)(Ws,{clientId:a,onToggle:o})),Object(l.createElement)(eu.Slot,{fillProps:{onClose:o},clientIds:e}),"function"==typeof n?n({onClose:o}):l.Children.map(e=>Object(l.cloneElement)(e,{onClose:o})),Object(l.createElement)(m.MenuGroup,null,!p&&Object(l.createElement)(m.MenuItem,{onClick:Object(s.flow)(o,v,d),shortcut:u.remove},b)))))},ru=function({clientIds:e,...t}){return Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(m.ToolbarItem,null,n=>Object(l.createElement)(ou,Object(c.a)({clientIds:e,toggleProps:n},t))))};function cu({hideDragHandle:e}){const{blockClientIds:t,blockClientId:n,blockType:o,hasFixedToolbar:r,hasReducedUI:i,isValid:s,isVisual:d}=Object(p.useSelect)(e=>{const{getBlockName:t,getBlockMode:n,getSelectedBlockClientIds:o,isBlockValid:r,getBlockRootClientId:c,getSettings:l}=e(An),i=o(),a=i[0],s=c(a),u=l();return{blockClientIds:i,blockClientId:a,blockType:a&&Object(b.getBlockType)(t(a)),hasFixedToolbar:u.hasFixedToolbar,hasReducedUI:u.hasReducedUI,rootClientId:s,isValid:i.every(e=>r(e)),isVisual:i.every(e=>"visual"===n(e))}},[]),{toggleBlockHighlight:f}=Object(p.useDispatch)(An),g=Object(l.useRef)(),{showMovers:h,gestures:O}=ys({ref:g,onChange(e){e&&i||f(n,e)}}),v=Object(u.useViewportMatch)("medium","<")||r;if(o&&!Object(b.hasBlockSupport)(o,"__experimentalToolbar",!0))return null;const j=v||h;if(0===t.length)return null;const k=s&&d,_=t.length>1,y=a()("block-editor-block-toolbar",j&&"is-showing-movers");return Object(l.createElement)("div",{className:y},!_&&!v&&Object(l.createElement)(Es,{clientIds:t}),Object(l.createElement)("div",Object(c.a)({ref:g},O),(k||_)&&Object(l.createElement)(m.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},Object(l.createElement)(Fs,{clientIds:t}),Object(l.createElement)(vs,{clientIds:t,hideDragHandle:e||i}))),k&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Gn.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),Object(l.createElement)(Gn.Slot,{className:"block-editor-block-toolbar__slot"}),Object(l.createElement)(Gn.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),Object(l.createElement)(Gn.Slot,{group:"other",className:"block-editor-block-toolbar__slot"})),Object(l.createElement)(ru,{clientIds:t}))}var lu=function({focusOnMount:e,isFixed:t,...n}){const{blockType:o,hasParents:r,showParentSelector:i}=Object(p.useSelect)(e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientIds:o}=e(An),{getBlockType:r}=e(b.store),c=o()[0],l=n(c),i=r(t(l[l.length-1]));return{blockType:c&&r(t(c)),hasParents:l.length,showParentSelector:Object(b.hasBlockSupport)(i,"__experimentalParentSelector",!0)}},[]);if(o&&!Object(b.hasBlockSupport)(o,"__experimentalToolbar",!0))return null;const s=a()("block-editor-block-contextual-toolbar",{"has-parent":r&&i,"is-fixed":t});return Object(l.createElement)(Os,Object(c.a)({focusOnMount:e,className:s
55
+ /* translators: accessibility text for the block toolbar */,"aria-label":Object(O.__)("Block tools")},n),Object(l.createElement)(cu,{hideDragHandle:t}))};function iu(e){const{isNavigationMode:t,isMultiSelecting:n,hasMultiSelection:o,isTyping:r,isCaretWithinFormattedText:c,getSettings:l,getLastMultiSelectedBlockClientId:i}=e(An);return{isNavigationMode:t(),isMultiSelecting:n(),isTyping:r(),isCaretWithinFormattedText:c(),hasMultiSelection:o(),hasFixedToolbar:l().hasFixedToolbar,lastClientId:i()}}function au({clientId:e,rootClientId:t,isValid:n,isEmptyDefaultBlock:o,capturingClientId:r,__unstablePopoverSlot:c,__unstableContentRef:i}){const{isNavigationMode:s,isMultiSelecting:d,isTyping:b,isCaretWithinFormattedText:f,hasMultiSelection:g,hasFixedToolbar:h,lastClientId:O}=Object(p.useSelect)(iu,[]),v=Object(p.useSelect)(t=>{const{isBlockInsertionPointVisible:n,getBlockInsertionPoint:o,getBlockOrder:r}=t(An);if(!n())return!1;const c=o();return r(c.rootClientId)[c.index]===e},[e]),j=Object(u.useViewportMatch)("medium"),[k,_]=Object(l.useState)(!1),[y,E]=Object(l.useState)(!1),{stopTyping:C}=Object(p.useDispatch)(An),S=!b&&!s&&o&&n,w=s,B=!s&&!h&&j&&!S&&!d&&(!b||f),I=!(s||B||h||o);Object(ps.useShortcut)("core/block-editor/focus-toolbar",Object(l.useCallback)(()=>{_(!0),C(!0)},[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!I}),Object(l.useEffect)(()=>{B||_(!1)},[B]);const x=Object(l.useRef)(),T=_r(e),N=_r(O),L=_r(r),P=is(i);if(!(w||B||k||S))return null;let R=T;if(!R)return null;r&&(R=L);let A=R;if(g){if(!N)return null;A={top:R,bottom:N}}const M=S?"top left right":"top right left",{ownerDocument:D}=R,F=S?void 0:D.defaultView.frameElement||Object(ri.getScrollContainer)(R)||D.body;return Object(l.createElement)(m.Popover,{ref:P,noArrow:!0,animate:!1,position:M,focusOnMount:!1,anchorRef:A,className:a()("block-editor-block-list__block-popover",{"is-insertion-point-visible":v}),__unstableStickyBoundaryElement:F,__unstableSlotName:c||null,__unstableBoundaryParent:!0,__unstableObserveElement:R,shouldAnchorIncludePadding:!0},(B||k)&&Object(l.createElement)("div",{onFocus:function(){E(!0)},onBlur:function(){E(!1)},tabIndex:-1,className:a()("block-editor-block-list__block-popover-inserter",{"is-visible":y})},Object(l.createElement)(Qa,{clientId:e,rootClientId:t,__experimentalIsQuick:!0})),(B||k)&&Object(l.createElement)(lu,{focusOnMount:k,__experimentalInitialIndex:x.current,__experimentalOnIndexChange:e=>{x.current=e},key:e}),w&&Object(l.createElement)(gs,{clientId:e,rootClientId:t,blockElement:R}),S&&Object(l.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(l.createElement)(Qa,{position:"bottom right",rootClientId:t,clientId:e,__experimentalIsQuick:!0})))}function su(e){const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getBlockRootClientId:o,__unstableGetBlockWithoutInnerBlocks:r,getBlockParents:c,__experimentalGetBlockListSettingsForBlocks:l}=e(An),i=t()||n();if(!i)return;const{name:a,attributes:u={},isValid:d}=r(i)||{},m=c(i),p=l(m),f=Object(s.find)(m,e=>{var t;return null===(t=p[e])||void 0===t?void 0:t.__experimentalCaptureToolbars});return{clientId:i,rootClientId:o(i),name:a,isValid:d,isEmptyDefaultBlock:a&&Object(b.isUnmodifiedDefaultBlock)({name:a,attributes:u}),capturingClientId:f}}function uu({__unstablePopoverSlot:e,__unstableContentRef:t}){const n=Object(p.useSelect)(su,[]);if(!n)return null;const{clientId:o,rootClientId:r,name:c,isValid:i,isEmptyDefaultBlock:a,capturingClientId:s}=n;return c?Object(l.createElement)(au,{clientId:o,rootClientId:r,isValid:i,isEmptyDefaultBlock:a,capturingClientId:s,__unstablePopoverSlot:e,__unstableContentRef:t}):null}function du({children:e}){const t=Object(l.useContext)(as),n=Object(l.useContext)(m.Disabled.Context);return t||n?e:(wt()('wp.components.Popover.Slot name="block-toolbar"',{alternative:"wp.blockEditor.BlockTools"}),Object(l.createElement)(us,{__unstablePopoverSlot:"block-toolbar"},Object(l.createElement)(uu,{__unstablePopoverSlot:"block-toolbar"}),e))}function bu(){const{hasSelectedBlock:e,hasMultiSelection:t}=Object(p.useSelect)(An),{clearSelectedBlock:n}=Object(p.useDispatch)(An);return Object(u.useRefEffect)(o=>{function r(r){(e()||t())&&r.target===o&&n()}return o.addEventListener("mousedown",r),()=>{o.removeEventListener("mousedown",r)}},[e,t,n])}function mu(e){return Object(l.createElement)("div",Object(c.a)({ref:bu()},e))}const pu=Object(l.createContext)();function fu({className:e,children:t}){const n=Object(u.useViewportMatch)("medium"),{isOutlineMode:o,isFocusMode:r,isNavigationMode:c}=Object(p.useSelect)(e=>{const{getSettings:t,isNavigationMode:n}=e(An),{outlineMode:o,focusMode:r}=t();return{isOutlineMode:o,isFocusMode:r,isNavigationMode:n()}},[]);return Object(l.createElement)("div",{ref:Object(u.useMergeRefs)([bu(),ls(),ds()]),className:a()("block-editor-block-list__layout is-root-container",e,{"is-outline-mode":o,"is-focus-mode":r&&n,"is-navigate-mode":c})},t)}function gu({className:e,...t}){return function(){const e=Object(p.useSelect)(e=>e(An).getSettings().__experimentalBlockPatterns,[]);Object(l.useEffect)(()=>{if(null==e||!e.length)return;let t,n=-1;const o=()=>{n++,n>=e.length||(Object(p.select)(An).__experimentalGetParsedPattern(e[n].name),t=bs(o))};return t=bs(o),()=>ms(t)},[e])}(),Object(l.createElement)(du,null,Object(l.createElement)(fu,{className:e},Object(l.createElement)(Ou,t)))}function hu({placeholder:e,rootClientId:t,renderAppender:n,__experimentalAppenderTagName:o,__experimentalLayout:r=Xn}){const[c,i]=Object(l.useState)(new Set),a=Object(l.useMemo)(()=>{const{IntersectionObserver:e}=window;if(e)return new e(e=>{i(t=>{const n=new Set(t);for(const t of e){const e=t.target.getAttribute("data-block");n[t.isIntersecting?"add":"delete"](e)}return n})})},[i]),{order:s,selectedBlocks:u}=Object(p.useSelect)(e=>{const{getBlockOrder:n,getSelectedBlockClientIds:o}=e(An);return{order:n(t),selectedBlocks:o()}},[t]);return Object(l.createElement)(Jn,{value:r},Object(l.createElement)(pu.Provider,{value:a},s.map(e=>Object(l.createElement)(p.AsyncModeProvider,{key:e,value:!c.has(e)&&!u.includes(e)},Object(l.createElement)(Cu,{rootClientId:t,clientId:e})))),s.length<1&&e,Object(l.createElement)(os,{tagName:o,rootClientId:t,renderAppender:n}))}function Ou(e){return Object(l.createElement)(p.AsyncModeProvider,{value:!1},Object(l.createElement)(hu,e))}function vu(){const e=Object(l.useContext)(pu);return Object(u.useRefEffect)(t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}},[e])}function ju(e={},{__unstableIsHtml:t}={}){const{clientId:n,className:o,wrapperProps:r={},isAligned:c}=Object(l.useContext)(ku),{index:i,mode:s,name:d,blockTitle:m,isPartOfSelection:f,adjustScrolling:g,enableAnimation:h}=Object(p.useSelect)(e=>{const{getBlockRootClientId:t,getBlockIndex:o,getBlockMode:r,getBlockName:c,isTyping:l,getGlobalBlockCount:i,isBlockSelected:a,isBlockMultiSelected:s,isAncestorMultiSelected:u,isFirstMultiSelectedBlock:d}=e(An),m=a(n),p=s(n)||u(n),f=c(n),g=t(n);return{index:o(n,g),mode:r(n),name:f,blockTitle:Object(b.getBlockType)(f).title,isPartOfSelection:m||p,adjustScrolling:m||d(n),enableAnimation:!l()&&i()<=200}},[n]),v=Object(O.sprintf)(Object(O.__)("Block: %s"),m),j="html"!==s||t?"":"-visual",k=Object(u.useMergeRefs)([e.ref,Mi(n),Yi(n),jr(n),Ui(n),Qi(n),Wi(n),Ki(n),Fi(),vu(),ii({isSelected:f,adjustScrolling:g,enableAnimation:h,triggerAnimationOnChange:i})]);return{...r,...e,ref:k,id:`block-${n}${j}`,tabIndex:0,role:"group","aria-label":v,"data-block":n,"data-type":d,"data-title":m,className:a()(a()("block-editor-block-list__block",{"wp-block":!c}),o,e.className,r.className,Vi(n),Hi(n),zi(n),Gi(n)),style:{...r.style,...e.style}}}ju.save=b.__unstableGetBlockProps;const ku=Object(l.createContext)();function _u({children:e,isHtml:t,...n}){return Object(l.createElement)("div",ju(n,{__unstableIsHtml:t}),e)}const yu=Object(p.withSelect)((e,{clientId:t,rootClientId:n})=>{const{isBlockSelected:o,getBlockMode:r,isSelectionEnabled:c,getTemplateLock:l,__unstableGetBlockWithoutInnerBlocks:i}=e(An),a=i(t),s=o(t),u=l(n),{name:d,attributes:b,isValid:m}=a||{};return{mode:r(t),isSelectionEnabled:c(),isLocked:!!u,block:a,name:d,attributes:b,isValid:m,isSelected:s}}),Eu=Object(p.withDispatch)((e,t,{select:n})=>{const{updateBlockAttributes:o,insertBlocks:r,mergeBlocks:c,replaceBlocks:l,toggleSelection:i,__unstableMarkLastChangeAsPersistent:a}=e(An);return{setAttributes(e){const{getMultiSelectedBlockClientIds:r}=n(An),c=r(),{clientId:l}=t,i=c.length?c:[l];o(i,e)},onInsertBlocks(e,n){const{rootClientId:o}=t;r(e,n,o)},onInsertBlocksAfter(e){const{clientId:o,rootClientId:c}=t,{getBlockIndex:l}=n(An),i=l(o,c);r(e,i+1,c)},onMerge(e){const{clientId:o}=t,{getPreviousBlockClientId:r,getNextBlockClientId:l}=n(An);if(e){const e=l(o);e&&c(o,e)}else{const e=r(o);e&&c(e,o)}},onReplace(e,n,o){e.length&&!Object(b.isUnmodifiedDefaultBlock)(e[e.length-1])&&a(),l([t.clientId],e,n,o)},toggleSelection(e){i(e)}}});var Cu=Object(u.compose)(u.pure,yu,Eu,Object(u.ifCondition)(({block:e})=>!!e),Object(m.withFilters)("editor.BlockListBlock"))((function({mode:e,isLocked:t,clientId:n,isSelected:o,isSelectionEnabled:r,className:c,name:i,isValid:u,attributes:d,wrapperProps:m,setAttributes:f,onReplace:g,onInsertBlocksAfter:h,onMerge:O,toggleSelection:v}){const{removeBlock:j}=Object(p.useDispatch)(An),k=Object(l.useCallback)(()=>j(n),[n]);let _=Object(l.createElement)(ei,{name:i,isSelected:o,attributes:d,setAttributes:f,insertBlocksAfter:t?void 0:h,onReplace:t?void 0:g,onRemove:t?void 0:k,mergeBlocks:t?void 0:O,clientId:n,isSelectionEnabled:r,toggleSelection:v});const y=Object(b.getBlockType)(i),E=y.apiVersion>1||Object(b.hasBlockSupport)(y,"lightBlockWrapper",!1);y.getEditWrapperProps&&(m=function(e,t){const n={...e,...t};return e&&t&&e.className&&t.className&&(n.className=a()(e.className,t.className)),e&&t&&e.style&&t.style&&(n.style={...e.style,...t.style}),n}(m,y.getEditWrapperProps(d)));const C=m&&!!m["data-align"];let S;C&&(_=Object(l.createElement)("div",{className:"wp-block","data-align":m["data-align"]},_)),S=u?"html"===e?Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{style:{display:"none"}},_),Object(l.createElement)(_u,{isHtml:!0},Object(l.createElement)(Pi,{clientId:n}))):E?_:Object(l.createElement)(_u,m,_):Object(l.createElement)(_u,{className:"has-warning"},Object(l.createElement)(wi,{clientId:n}),Object(l.createElement)("div",null,Object(b.getSaveElement)(y,d)));const w={clientId:n,className:c,wrapperProps:Object(s.omit)(m,["data-align"]),isAligned:C},B=Object(l.useMemo)(()=>w,Object.values(w));return Object(l.createElement)(ku.Provider,{value:B},Object(l.createElement)(Ti,{fallback:Object(l.createElement)(_u,{className:"has-warning"},Object(l.createElement)(Ii,null))},S))}));const Su=(e,t,n)=>Object(O.sprintf)(
56
  /* translators: 1: The numerical position of the block. 2: The total number of blocks. 3. The level of nesting for the block. */
57
+ Object(O.__)("Block %1$d of %2$d, Level %3$d"),e,t,n),wu=(e,t)=>Object(s.isArray)(t)&&t.length?-1!==t.indexOf(e):t===e;var Bu=Object(l.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Un.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));function Iu({onClick:e}){return Object(l.createElement)("span",{className:"block-editor-block-navigation__expander",onClick:t=>e(t,{forceToggle:!0}),"aria-hidden":"true"},Object(l.createElement)(Xc.a,{icon:Bu}))}var xu=Object(l.forwardRef)((function e({className:t,block:{clientId:n},isSelected:o,onClick:r,onToggleExpanded:c,position:i,siblingBlockCount:s,level:d,tabIndex:b,onFocus:p,onDragStart:f,onDragEnd:g,draggable:h},v){const j=Hl(n),k="block-navigation-block-select-button__"+Object(u.useInstanceId)(e),_=Su(i,s,d);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.Button,{className:a()("block-editor-block-navigation-block-select-button",t),onClick:r,"aria-describedby":k,ref:v,tabIndex:b,onFocus:p,onDragStart:f,onDragEnd:g,draggable:h},Object(l.createElement)(Iu,{onClick:c}),Object(l.createElement)(Ll,{icon:null==j?void 0:j.icon,showColors:!0}),Object(l.createElement)(zl,{clientId:n}),(null==j?void 0:j.anchor)&&Object(l.createElement)("span",{className:"block-editor-block-navigation-block-select-button__anchor"},j.anchor),o&&Object(l.createElement)(m.VisuallyHidden,null,Object(O.__)("(selected block)"))),Object(l.createElement)("div",{className:"block-editor-block-navigation-block-select-button__description",id:k},_))}));const Tu=e=>"BlockNavigationBlock-"+e;var Nu=Object(l.forwardRef)((function e(t,n){const{clientId:o}=t.block,{name:r}=Object(p.useSelect)(e=>e(An).getBlockName(o),[o]),i=Object(u.useInstanceId)(e);return Object(l.createElement)(m.Slot,{name:Tu(o)},e=>{if(!e.length)return Object(l.createElement)(xu,Object(c.a)({ref:n},t));const{className:o,isSelected:s,position:u,siblingBlockCount:d,level:p,tabIndex:f,onFocus:g,onToggleExpanded:h}=t,v=Object(b.getBlockType)(r),j="block-navigation-block-slot__"+i,k=Su(u,d,p),_={tabIndex:f,onFocus:g,ref:n,"aria-describedby":j};return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:a()("block-editor-block-navigation-block-slot",o)},Object(l.createElement)(Iu,{onClick:h}),Object(l.createElement)(Ll,{icon:v.icon,showColors:!0}),l.Children.map(e,e=>Object(l.cloneElement)(e,{...e.props,..._})),s&&Object(l.createElement)(m.VisuallyHidden,null,Object(O.__)("(selected block)")),Object(l.createElement)("div",{className:"block-editor-block-navigation-block-slot__description",id:j},k)))})}));const Lu=e=>{const{clientId:t}=Object(l.useContext)(ku);return Object(l.createElement)(m.Fill,Object(c.a)({},e,{name:Tu(t)}))};var Pu=Object(l.forwardRef)(({onClick:e,onToggleExpanded:t,block:n,isSelected:o,position:r,siblingBlockCount:i,level:s,...u},d)=>{const{__experimentalFeatures:b,blockDropTarget:m={}}=ji(),{clientId:f}=n,{rootClientId:g,blockMovingClientId:h,selectedBlockInBlockEditor:O}=Object(p.useSelect)(e=>{const{getBlockRootClientId:t,hasBlockMovingClientId:n,getSelectedBlockClientId:o}=e(An);return{rootClientId:t(f)||"",blockMovingClientId:n(),selectedBlockInBlockEditor:o()}},[f]),v=h&&O===f,{rootClientId:j,clientId:k,dropPosition:_}=m,y=j===g&&k===f&&"top"===_,E=j===g&&k===f&&"bottom"===_,C=j===f&&"inside"===_,S=a()("block-editor-block-navigation-block-contents",{"is-dropping-before":y||v,"is-dropping-after":E,"is-dropping-to-inner-blocks":C});return Object(l.createElement)(fs,{clientIds:[n.clientId],elementId:"block-navigation-block-"+n.clientId},({draggable:a,onDragStart:m,onDragEnd:p})=>b?Object(l.createElement)(Nu,Object(c.a)({ref:d,className:S,block:n,onToggleExpanded:t,isSelected:o,position:r,siblingBlockCount:i,level:s,draggable:a&&b,onDragStart:m,onDragEnd:p},u)):Object(l.createElement)(xu,Object(c.a)({ref:d,className:S,block:n,onClick:e,onToggleExpanded:t,isSelected:o,position:r,siblingBlockCount:i,level:s,draggable:a&&b,onDragStart:m,onDragEnd:p},u)))});function Ru({block:e,isSelected:t,isBranchSelected:n,isLastOfSelectedBranch:o,onClick:r,onToggleExpanded:c,position:i,level:s,rowCount:u,siblingBlockCount:d,showBlockMovers:b,path:f,isExpanded:g}){const h=Object(l.useRef)(null),[v,j]=Object(l.useState)(!1),{clientId:k}=e,{isDragging:_,blockParents:y}=Object(p.useSelect)(e=>{const{isBlockBeingDragged:t,isAncestorBeingDragged:n,getBlockParents:o}=e(An);return{isDragging:t(k)||n(k),blockParents:o(k)}},[k]),{selectBlock:E,toggleBlockHighlight:C}=Object(p.useDispatch)(An),S=b&&d>0,w=a()("block-editor-block-navigation-block__mover-cell",{"is-visible":v}),{__experimentalFeatures:B,__experimentalPersistentListViewFeatures:I,isTreeGridMounted:x}=ji(),T=a()("block-editor-block-navigation-block__menu-cell",{"is-visible":v});Object(l.useEffect)(()=>{I&&!x&&t&&h.current.focus()},[]),Object(l.useEffect)(()=>{B&&t&&h.current.focus()},[B,t]);const N=I?C:()=>{},L=()=>{j(!0),N(k,!0)},P=()=>{j(!1),N(k,!1)},R=a()({"is-selected":t,"is-branch-selected":I&&n,"is-last-of-selected-branch":I&&o,"is-dragging":_});return Object(l.createElement)(si,{className:R,onMouseEnter:L,onMouseLeave:P,onFocus:L,onBlur:P,level:s,position:i,rowCount:u,path:f,id:"block-navigation-block-"+k,"data-block":k,isExpanded:g},Object(l.createElement)(m.__experimentalTreeGridCell,{className:"block-editor-block-navigation-block__contents-cell",colSpan:S?void 0:2,ref:h},({ref:n,tabIndex:o,onFocus:a})=>Object(l.createElement)("div",{className:"block-editor-block-navigation-block__contents-container"},Object(l.createElement)(Pu,{block:e,onClick:r,onToggleExpanded:c,isSelected:t,position:i,siblingBlockCount:d,level:s,ref:n,tabIndex:o,onFocus:a}))),S&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.__experimentalTreeGridCell,{className:w,withoutGridItem:!0},Object(l.createElement)(m.__experimentalTreeGridItem,null,({ref:e,tabIndex:t,onFocus:n})=>Object(l.createElement)(hi,{orientation:"vertical",clientIds:[k],ref:e,tabIndex:t,onFocus:n})),Object(l.createElement)(m.__experimentalTreeGridItem,null,({ref:e,tabIndex:t,onFocus:n})=>Object(l.createElement)(Oi,{orientation:"vertical",clientIds:[k],ref:e,tabIndex:t,onFocus:n})))),B&&Object(l.createElement)(m.__experimentalTreeGridCell,{className:T},({ref:e,tabIndex:t,onFocus:n})=>Object(l.createElement)(ou,{clientIds:[k],icon:ni.a,toggleProps:{ref:e,tabIndex:t,onFocus:n},disableOpenOnArrowDown:!0,__experimentalSelectBlock:r},({onClose:e})=>Object(l.createElement)(m.MenuGroup,null,Object(l.createElement)(m.MenuItem,{onClick:async()=>{if(y.length)for(const e of y)await E(e);else await E(null);await E(k),e()}},Object(O.__)("Go to block"))))))}function Au({parentBlockClientId:e,position:t,level:n,rowCount:o,path:r}){const c=Object(p.useSelect)(t=>{const{isBlockBeingDragged:n,isAncestorBeingDragged:o}=t(An);return n(e)||o(e)},[e]),i="block-navigation-appender-row__description_"+Object(u.useInstanceId)(Au),s=Object(O.sprintf)(
58
  /* translators: 1: The numerical position of the block that will be inserted. 2: The level of nesting for the block that will be inserted. */
59
+ Object(O.__)("Add block at position %1$d, Level %2$d"),t,n);return Object(l.createElement)(si,{className:a()({"is-dragging":c}),level:n,position:t,rowCount:o,path:r},Object(l.createElement)(m.__experimentalTreeGridCell,{className:"block-editor-block-navigation-appender__cell",colSpan:"3"},({ref:t,tabIndex:n,onFocus:o})=>Object(l.createElement)("div",{className:"block-editor-block-navigation-appender__container"},Object(l.createElement)(Qa,{rootClientId:e,__experimentalIsQuick:!0,"aria-describedby":i,toggleProps:{ref:t,tabIndex:n,onFocus:o}}),Object(l.createElement)("div",{className:"block-editor-block-navigation-appender__description",id:i},s))))}function Mu(e){const{blocks:t,selectBlock:n,selectedBlockClientIds:o,showAppender:r,showBlockMovers:c,showNestedBlocks:i,parentBlockClientId:a,level:u=1,terminatedLevels:d=[],path:b=[],isBranchSelected:m=!1,isLastOfBranch:p=!1}=e,f=!a,g=Object(s.compact)(t),h=e=>r&&!f&&wu(e,o),O=h(a),v=g.length,j=O?v+1:v,k=j,{expandedState:_,expand:y,collapse:E}=ji();return Object(l.createElement)(l.Fragment,null,Object(s.map)(g,(e,t)=>{var a;const{clientId:s,innerBlocks:f}=e,g=t+1,O=j===g?[...d,u]:d,k=[...b,g],C=i&&!!f&&!!f.length,S=h(s),w=C||S,B=wu(s,o),I=m||B&&w,x=t===v-1,T=B||p&&x,N=p&&!w&&x,L=w?null===(a=_[s])||void 0===a||a:void 0;return Object(l.createElement)(l.Fragment,{key:s},Object(l.createElement)(Ru,{block:e,onClick:e=>{e.stopPropagation(),n(s)},onToggleExpanded:e=>{e.stopPropagation(),!0===L?E(s):!1===L&&y(s)},isSelected:B,isBranchSelected:I,isLastOfSelectedBranch:N,level:u,position:g,rowCount:j,siblingBlockCount:v,showBlockMovers:c,terminatedLevels:d,path:k,isExpanded:L}),w&&L&&Object(l.createElement)(Mu,{blocks:f,selectedBlockClientIds:o,selectBlock:n,isBranchSelected:I,isLastOfBranch:T,showAppender:r,showBlockMovers:c,showNestedBlocks:i,parentBlockClientId:s,level:u+1,terminatedLevels:O,path:k}))}),O&&Object(l.createElement)(Au,{parentBlockClientId:a,position:j,rowCount:k,level:u,terminatedLevels:d,path:[...b,k]}))}function Du(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}Mu.defaultProps={selectBlock:()=>{}};const Fu=["top","bottom"];const Vu=()=>{},Hu=(e,t)=>{switch(t.type){case"expand":return{...e,[t.clientId]:!0};case"collapse":return{...e,[t.clientId]:!1};default:return e}};function zu({blocks:e,showOnlyCurrentHierarchy:t,onSelect:n=Vu,__experimentalFeatures:o,__experimentalPersistentListViewFeatures:r,...i}){const{clientIdsTree:a,selectedClientIds:s}=function(e,t,n){const o=(e=>Object(p.useSelect)(t=>{const{getSelectedBlockClientId:n,getSelectedBlockClientIds:o}=t(An);return e?o():n()},[e]))(n);return{clientIdsTree:((e,t,n)=>Object(p.useSelect)(o=>{const{getBlockHierarchyRootClientId:r,__unstableGetClientIdsTree:c,__unstableGetClientIdWithClientIdsTree:l}=o(An);if(e)return e;const i=t&&!Array.isArray(t);if(!n||!i)return c();const a=l(r(t));return a&&(!wu(a.clientId,t)||a.innerBlocks&&0!==a.innerBlocks.length)?[a]:c()},[e,t,n]))(e,o,t),selectedClientIds:o}}(e,t,r),{selectBlock:d}=Object(p.useDispatch)(An),b=Object(l.useCallback)(e=>{d(e),n(e)},[d,n]),[f,g]=Object(l.useReducer)(Hu,{});let{ref:h,target:v}=function(){const{getBlockRootClientId:e,getBlockIndex:t,getBlockCount:n,getDraggedBlockClientIds:o,canInsertBlocks:r}=Object(p.useSelect)(An),[c,i]=Object(l.useState)(),{rootClientId:a,blockIndex:s}=c||{},d=rs(a,s),b=Object(u.useThrottle)(Object(l.useCallback)((c,l)=>{const a={x:c.clientX,y:c.clientY},s=!!c.dataTransfer.getData("wp-blocks"),u=s?o():void 0,d=function(e,t){let n,o,r,c;for(const l of e){if(l.isDraggedBlock)continue;const i=l.element.getBoundingClientRect(),[a,s]=cs(t,i,Fu),u=Du(t,i);if(void 0===r||a<r||u){r=a;const t=e.indexOf(l),d=e[t-1];if("top"===s&&d&&d.rootClientId===l.rootClientId&&!d.isDraggedBlock?(o=d,n="bottom",c=d.element.getBoundingClientRect()):(o=l,n=s,c=i),u)break}}if(!o)return;const l="bottom"===n;if(l&&o.canInsertDraggedBlocksAsChild&&(o.innerBlockCount>0||function(e,t){const n=t.left+t.width/2;return e.x>n}(t,c)))return{rootClientId:o.clientId,blockIndex:0,dropPosition:"inside"};if(!o.canInsertDraggedBlocksAsSibling)return;const i=l?1:0;return{rootClientId:o.rootClientId,clientId:o.clientId,blockIndex:o.blockIndex+i,dropPosition:n}}(Array.from(l.querySelectorAll("[data-block]")).map(o=>{const c=o.dataset.block,l=e(c);return{clientId:c,rootClientId:l,blockIndex:t(c,l),element:o,isDraggedBlock:!!s&&u.includes(c),innerBlockCount:n(c),canInsertDraggedBlocksAsSibling:!s||r(u,l),canInsertDraggedBlocksAsChild:!s||r(u,c)}}),a);d&&i(d)},[]),200);return{ref:Object(u.__experimentalUseDropZone)({onDrop:d,onDragOver(e){b(e,e.currentTarget)},onDragEnd(){b.cancel(),i(null)}}),target:c}}();const j=Object(l.useRef)(!1);Object(l.useEffect)(()=>{j.current=!0},[]),o||(v=void 0);const k=e=>{e&&g({type:"expand",clientId:e})},_=e=>{e&&g({type:"collapse",clientId:e})},y=Object(l.useMemo)(()=>({__experimentalFeatures:o,__experimentalPersistentListViewFeatures:r,blockDropTarget:v,isTreeGridMounted:j.current,expandedState:f,expand:k,collapse:_}),[o,r,v,j.current,f,k,_]);return Object(l.createElement)(m.__experimentalTreeGrid,{className:"block-editor-block-navigation-tree","aria-label":Object(O.__)("Block navigation structure"),ref:h,onCollapseRow:e=>{var t;_(null==e||null===(t=e.dataset)||void 0===t?void 0:t.block)},onExpandRow:e=>{var t;k(null==e||null===(t=e.dataset)||void 0===t?void 0:t.block)}},Object(l.createElement)(vi.Provider,{value:y},Object(l.createElement)(Mu,Object(c.a)({blocks:a,selectBlock:b,selectedBlockClientIds:s},i))))}function Gu({isEnabled:e,onToggle:t,isOpen:n,innerRef:o,...r}){return Object(l.createElement)(m.Button,Object(c.a)({},r,{ref:o,icon:ti.a,"aria-expanded":n,"aria-haspopup":"true",onClick:e?t:void 0
60
+ /* translators: button label text should, if possible, be under 16 characters. */,label:Object(O.__)("List view"),className:"block-editor-block-navigation","aria-disabled":!e}))}var Uu=Object(l.forwardRef)((function({isDisabled:e,__experimentalFeatures:t,...n},o){const r=Object(p.useSelect)(e=>!!e(An).getBlockCount(),[])&&!e;return Object(l.createElement)(m.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:({isOpen:e,onToggle:t})=>Object(l.createElement)(Gu,Object(c.a)({},n,{innerRef:o,isOpen:e,onToggle:t,isEnabled:r})),renderContent:()=>Object(l.createElement)("div",{className:"block-editor-block-navigation__container"},Object(l.createElement)("p",{className:"block-editor-block-navigation__label"},Object(O.__)("List view")),Object(l.createElement)(zu,{showNestedBlocks:!0,showOnlyCurrentHierarchy:!0,__experimentalFeatures:t}))})}));const Wu={position:"bottom right",isAlternate:!0};var Ku=()=>Object(l.createElement)(l.Fragment,null,["bold","italic","link","text-color"].map(e=>Object(l.createElement)(m.Slot,{name:"RichText.ToolbarControls."+e,key:e})),Object(l.createElement)(m.Slot,{name:"RichText.ToolbarControls"},e=>0!==e.length&&Object(l.createElement)(m.ToolbarItem,null,t=>Object(l.createElement)(m.DropdownMenu,{icon:mi.a
61
+ /* translators: button label text should, if possible, be under 16 characters. */,label:Object(O.__)("More"),toggleProps:t,controls:Object(s.orderBy)(e.map(([{props:e}])=>e),"title"),popoverProps:Wu})))),$u=({inline:e,anchorRef:t})=>e?Object(l.createElement)(m.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:t,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar"},Object(l.createElement)("div",{className:"block-editor-rich-text__inline-format-toolbar-group"},Object(l.createElement)(m.ToolbarGroup,null,Object(l.createElement)(Ku,null)))):Object(l.createElement)(Gn,{group:"inline"},Object(l.createElement)(Ku,null));function qu(){const{didAutomaticChange:e,getSettings:t}=Object(p.useSelect)(An);return Object(u.useRefEffect)(n=>{function o(n){const{keyCode:o}=n;o!==Yr.DELETE&&o!==Yr.BACKSPACE&&o!==Yr.ESCAPE||e()&&(n.preventDefault(),t().__experimentalUndo())}return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[])}function Yu(e){return e.filter(({type:e})=>/^image\/(?:jpe?g|png|gif)$/.test(e)).map(e=>`<img src="${Object(Vs.createBlobURL)(e)}">`).join("")}var Xu=n(116);function Qu(e,t){if(null!=t&&t.length){let n=e.formats.length;for(;n--;)e.formats[n]=[...t,...e.formats[n]||[]]}}function Zu(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function Ju({allowedFormats:e,formattingControls:t,disableFormats:n}){return n?Ju.EMPTY_ARRAY:e||t?e||(wt()("wp.blockEditor.RichText formattingControls prop",{since:"5.4",alternative:"allowedFormats"}),t.map(e=>"core/"+e)):void 0}function ed({value:e,pastedBlocks:t=[],onReplace:n,onSplit:o,onSplitMiddle:r,multilineTag:c}){if(!n||!o)return;const l=[],[i,a]=Object(Ct.split)(e),s=t.length>0;let u=-1;const d=Object(Ct.isEmpty)(i)&&!Object(Ct.isEmpty)(a);s&&Object(Ct.isEmpty)(i)||(l.push(o(Object(Ct.toHTMLString)({value:i,multilineTag:c}),!d)),u+=1),s?(l.push(...t),u+=t.length):r&&l.push(r()),(s||r)&&Object(Ct.isEmpty)(a)||l.push(o(Object(Ct.toHTMLString)({value:a,multilineTag:c}),d)),n(l,s?u:1,s?-1:0)}function td(e){const t=Object(l.useRef)(e);return t.current=e,Object(u.useRefEffect)(e=>{function n(e){const{isSelected:n,disableFormats:o,onChange:r,value:c,formatTypes:l,tagName:i,onReplace:a,onSplit:s,onSplitMiddle:u,__unstableEmbedURLOnPaste:d,multilineTag:m,preserveWhiteSpace:p,pastePlainText:f}=t.current;if(!n)return void e.preventDefault();const{clipboardData:g}=e;let h="",O="";try{h=g.getData("text/plain"),O=g.getData("text/html")}catch(e){try{O=g.getData("Text")}catch(e){return}}if(e.preventDefault(),window.console.log("Received HTML:\n\n",O),window.console.log("Received plain text:\n\n",h),o)return void r(Object(Ct.insert)(c,h));const v=l.reduce((e,{__unstablePasteRule:t})=>(t&&e===c&&(e=t(c,{html:O,plainText:h})),e),c);if(v!==c)return void r(v);const j=[...Object(ri.getFilesFromDataTransfer)(g)];if("true"===g.getData("rich-text")){const e=Object(Ct.create)({html:O,multilineTag:m,multilineWrapperTags:"li"===m?["ul","ol"]:void 0,preserveWhiteSpace:p});return Qu(e,c.activeFormats),void r(Object(Ct.insert)(c,e))}if(f)return void r(Object(Ct.insert)(c,Object(Ct.create)({text:h})));if(j&&j.length&&!O){const e=Object(b.pasteHandler)({HTML:Yu(j),mode:"BLOCKS",tagName:i,preserveWhiteSpace:p});return window.console.log("Received items:\n\n",j),void(a&&Object(Ct.isEmpty)(c)?a(e):ed({value:c,pastedBlocks:e,onReplace:a,onSplit:s,onSplitMiddle:u,multilineTag:m}))}let k=a&&s?"AUTO":"INLINE";var _;"AUTO"===k&&Object(Ct.isEmpty)(c)&&(_=h,Object(Xu.regexp)(".*").test(_))&&(k="BLOCKS"),d&&Object(Ct.isEmpty)(c)&&Object(Pa.isURL)(h.trim())&&(k="BLOCKS");const y=Object(b.pasteHandler)({HTML:O,plainText:h,mode:k,tagName:i,preserveWhiteSpace:p});if("string"==typeof y){let e=Object(Ct.create)({html:y});Qu(e,c.activeFormats),m&&(e=Object(Ct.replace)(e,/\n+/g,Ct.__UNSTABLE_LINE_SEPARATOR)),r(Object(Ct.insert)(c,e))}else y.length>0&&(a&&Object(Ct.isEmpty)(c)?a(y,y.length-1,-1):ed({value:c,pastedBlocks:y,onReplace:a,onSplit:s,onSplitMiddle:u,multilineTag:m}))}return e.addEventListener("paste",n),()=>{e.removeEventListener("paste",n)}},[])}function nd(e){const{__unstableMarkLastChangeAsPersistent:t,__unstableMarkAutomaticChange:n}=Object(p.useDispatch)(An),o=Object(l.useRef)(e);return o.current=e,Object(u.useRefEffect)(e=>{function r(){const{value:e,onReplace:t}=o.current;if(!t)return;const{start:r,text:c}=e;if(" "!==c.slice(r-1,r))return;const l=c.slice(0,r).trim(),i=Object(b.getBlockTransforms)("from").filter(({type:e})=>"prefix"===e),a=Object(b.findTransform)(i,({prefix:e})=>l===e);if(!a)return;const s=Object(Ct.toHTMLString)({value:Object(Ct.slice)(e,r,c.length)});t([a.transform(s)]),n()}function c(e){const{inputType:c}=e,{value:l,onChange:i,__unstableAllowPrefixTransformations:a,formatTypes:s}=o.current;if("insertText"!==c)return;a&&r&&r();const u=s.reduce((e,{__unstableInputRule:t})=>(t&&(e=t(e)),e),l);u!==l&&(t(),i({...u,activeFormats:l.activeFormats}),n())}return e.addEventListener("input",c),()=>{e.removeEventListener("input",c)}},[])}function od(e){const{__unstableMarkAutomaticChange:t}=Object(p.useDispatch)(An),n=Object(l.useRef)(e);return n.current=e,Object(u.useRefEffect)(e=>{function o(e){if(e.defaultPrevented)return;const{removeEditorOnlyFormats:o,value:r,onReplace:c,onSplit:l,onSplitMiddle:i,multilineTag:a,onChange:s,disableLineBreaks:u,onSplitAtEnd:d}=n.current;if(e.keyCode!==Yr.ENTER)return;e.preventDefault();const m={...r};m.formats=o(r);const p=c&&l;if(c){const e=Object(b.getBlockTransforms)("from").filter(({type:e})=>"enter"===e),n=Object(b.findTransform)(e,e=>e.regExp.test(m.text));n&&(c([n.transform({content:m.text})]),t())}if(a)e.shiftKey?u||s(Object(Ct.insert)(m,"\n")):p&&Object(Ct.__unstableIsEmptyLine)(m)?ed({value:m,onReplace:c,onSplit:l,onSplitMiddle:i,multilineTag:a}):s(Object(Ct.__unstableInsertLineSeparator)(m));else{const{text:t,start:n,end:o}=m,r=d&&n===o&&o===t.length;e.shiftKey||!p&&!r?u||s(Object(Ct.insert)(m,"\n")):!p&&r?d():p&&ed({value:m,onReplace:c,onSplit:l,onSplitMiddle:i,multilineTag:a})}}return e.addEventListener("keydown",o),()=>{e.removeEventListener("keydown",o)}},[])}function rd(e){return e(Ct.store).getFormatTypes()}Ju.EMPTY_ARRAY=[];const cd=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function ld({formatTypes:e,onChange:t,onFocus:n,value:o,forwardedRef:r}){return e.map(e=>{const{name:c,edit:i}=e;if(!i)return null;const a=Object(Ct.getActiveFormat)(o,c),s=void 0!==a,u=Object(Ct.getActiveObject)(o),d=void 0!==u&&u.type===c;return Object(l.createElement)(i,{key:c,isActive:s,activeAttributes:s&&a.attributes||{},isObjectActive:d,activeObjectAttributes:d&&u.attributes||{},value:o,onChange:t,onFocus:n,contentRef:r})})}const id=Object(l.forwardRef)((function e({children:t,tagName:n="div",value:o="",onChange:r,isSelected:i,multiline:d,inlineToolbar:f,wrapperClassName:g,autocompleters:O,onReplace:v,placeholder:j,allowedFormats:k,formattingControls:_,withoutInteractiveFormatting:y,onRemove:E,onMerge:C,onSplit:S,__unstableOnSplitAtEnd:w,__unstableOnSplitMiddle:B,identifier:I,preserveWhiteSpace:x,__unstablePastePlainText:T,__unstableEmbedURLOnPaste:N,__unstableDisableFormats:L,disableLineBreaks:P,unstableOnFocus:R,__unstableAllowPrefixTransformations:A,...M},D){const F=Object(u.useInstanceId)(e);I=I||F,M=function(e){return Object(s.omit)(e,["__unstableMobileNoFocusOnMount","deleteEnter","placeholderTextColor","textAlign","selectionColor","tagsToEliminate","rootTagsToEliminate","disableEditingMenu","fontSize","fontFamily","fontWeight","fontStyle","minWidth","maxWidth","setRef"])}(M);const V=Object(l.useRef)(),{clientId:H}=h(),{selectionStart:z,selectionEnd:G,isSelected:U,disabled:W}=Object(p.useSelect)(e=>{const{getSelectionStart:t,getSelectionEnd:n,isMultiSelecting:o,hasMultiSelection:r}=e(An),c=t(),l=n();let a;return void 0===i?a=c.clientId===H&&c.attributeKey===I:i&&(a=c.clientId===H),{selectionStart:a?c.offset:void 0,selectionEnd:a?l.offset:void 0,isSelected:a,disabled:o()||r()}}),{selectionChange:K}=Object(p.useDispatch)(An),$=Zu(d),q=Ju({allowedFormats:k,formattingControls:_,disableFormats:L}),Y=!q||q.length>0;let X=o,Q=r;Array.isArray(o)&&(X=b.children.toHTML(o),Q=e=>r(b.children.fromDOM(Object(Ct.__unstableCreateElement)(document,e).childNodes)));const Z=Object(l.useCallback)((e,t)=>{K(H,I,e,t)},[H,I]),{formatTypes:J,prepareHandlers:ee,valueHandlers:te,changeHandlers:ne,dependencies:oe}=function({clientId:e,identifier:t,withoutInteractiveFormatting:n,allowedFormats:o}){const r=Object(p.useSelect)(rd,[]),c=Object(l.useMemo)(()=>r.filter(({name:e,tagName:t})=>!(o&&!o.includes(e)||n&&cd.has(t))),[r,o,cd]),i=Object(p.useSelect)(n=>c.reduce((o,r)=>(r.__experimentalGetPropsForEditableTreePreparation&&(o[r.name]=r.__experimentalGetPropsForEditableTreePreparation(n,{richTextIdentifier:t,blockClientId:e})),o),{}),[c,e,t]),a=Object(p.useDispatch)(),s=[],u=[],d=[],b=[];return c.forEach(n=>{if(n.__experimentalCreatePrepareEditableTree){const o=i[n.name],r=n.__experimentalCreatePrepareEditableTree(o,{richTextIdentifier:t,blockClientId:e});n.__experimentalCreateOnChangeEditableValue?u.push(r):s.push(r);for(const e in o)b.push(o[e])}if(n.__experimentalCreateOnChangeEditableValue){let o={};n.__experimentalGetPropsForEditableTreeChangeHandler&&(o=n.__experimentalGetPropsForEditableTreeChangeHandler(a,{richTextIdentifier:t,blockClientId:e})),d.push(n.__experimentalCreateOnChangeEditableValue({...i[n.name]||{},...o},{richTextIdentifier:t,blockClientId:e}))}}),{formatTypes:c,prepareHandlers:s,valueHandlers:u,changeHandlers:d,dependencies:b}}({clientId:H,identifier:I,withoutInteractiveFormatting:y,allowedFormats:q});function re(e){return J.forEach(t=>{t.__experimentalCreatePrepareEditableTree&&(e=Object(Ct.removeFormat)(e,t.name,0,e.text.length))}),e.formats}const{value:ce,onChange:le,onFocus:ie,ref:ae}=Object(Ct.__unstableUseRichText)({value:X,onChange(e,{__unstableFormats:t,__unstableText:n}){Q(e),Object.values(ne).forEach(e=>{e(t,n)})},selectionStart:z,selectionEnd:G,onSelectionChange:Z,placeholder:j,__unstableIsSelected:U,__unstableMultilineTag:$,__unstableDisableFormats:L,preserveWhiteSpace:x,__unstableDependencies:[...oe,n],__unstableAfterParse:function(e){return te.reduce((t,n)=>n(t,e.text),e.formats)},__unstableBeforeSerialize:re,__unstableAddInvisibleFormats:function(e){return ee.reduce((t,n)=>n(t,e.text),e.formats)}}),se=function(e){return Object(m.__unstableUseAutocompleteProps)({...e,completers:Al(e)})}({onReplace:v,completers:O,record:ce,onChange:le});!function({value:e}){const t=e.activeFormats&&!!e.activeFormats.length,{isCaretWithinFormattedText:n}=Object(p.useSelect)(An),{enterFormattedText:o,exitFormattedText:r}=Object(p.useDispatch)(An);Object(l.useEffect)(()=>{t?n()||o():n()&&r()},[t])}({value:ce}),function({html:e,value:t}){const n=Object(l.useRef)(),o=t.activeFormats&&!!t.activeFormats.length,{__unstableMarkLastChangeAsPersistent:r}=Object(p.useDispatch)(An);Object(l.useLayoutEffect)(()=>{if(n.current){if(n.current!==t.text){const e=window.setTimeout(()=>{r()},1e3);return n.current=t.text,()=>{window.clearTimeout(e)}}r()}else n.current=t.text},[e,o])}({html:X,value:ce});const ue=n,de=Object(l.createElement)(l.Fragment,null,U&&t&&t({value:ce,onChange:le,onFocus:ie}),U&&Object(l.createElement)(ld,{value:ce,onChange:le,onFocus:ie,formatTypes:J,forwardedRef:V}),U&&Y&&Object(l.createElement)($u,{inline:f,anchorRef:V.current}),Object(l.createElement)(ue,Object(c.a)({role:"textbox","aria-multiline":!0,"aria-label":j},M,se,{ref:Object(u.useMergeRefs)([se.ref,M.ref,ae,nd({value:ce,onChange:le,__unstableAllowPrefixTransformations:A,formatTypes:J,onReplace:v}),Object(u.useRefEffect)(e=>{function t(e){(Yr.isKeyboardEvent.primary(e,"z")||Yr.isKeyboardEvent.primary(e,"y")||Yr.isKeyboardEvent.primaryShift(e,"z"))&&e.preventDefault()}return e.addEventListener("keydown",t),()=>{e.addEventListener("keydown",t)}},[]),qu(),td({isSelected:U,disableFormats:L,onChange:le,value:ce,formatTypes:J,tagName:n,onReplace:v,onSplit:S,onSplitMiddle:B,__unstableEmbedURLOnPaste:N,multilineTag:$,preserveWhiteSpace:x,pastePlainText:T}),od({removeEditorOnlyFormats:re,value:ce,onReplace:v,onSplit:S,onSplitMiddle:B,multilineTag:$,onChange:le,disableLineBreaks:P,onSplitAtEnd:w}),V,D]),contentEditable:!W||void 0,suppressContentEditableWarning:!W,className:a()("block-editor-rich-text__editable",M.className,"rich-text"),onFocus:R,onKeyDown:function(e){const{keyCode:t}=e;if(!e.defaultPrevented&&(t===Yr.DELETE||t===Yr.BACKSPACE)){const{start:n,end:o,text:r}=ce,c=t===Yr.BACKSPACE,l=ce.activeFormats&&!!ce.activeFormats.length;if(!Object(Ct.isCollapsed)(ce)||l||c&&0!==n||!c&&o!==r.length)return;C&&C(!c),E&&Object(Ct.isEmpty)(ce)&&c&&E(!c),e.preventDefault()}}})));if(!g)return de;wt()("wp.blockEditor.RichText wrapperClassName prop",{since:"5.4",alternative:"className prop or create your own wrapper div"});const be=a()("block-editor-rich-text",g);return Object(l.createElement)("div",{className:be},de)}));id.Content=({value:e,tagName:t,multiline:n,...o})=>{Array.isArray(e)&&(e=b.children.toHTML(e));const r=Zu(n);!e&&r&&(e=`<${r}></${r}>`);const c=Object(l.createElement)(l.RawHTML,null,e);return t?Object(l.createElement)(t,Object(s.omit)(o,["format"]),c):c},id.isEmpty=e=>!e||0===e.length;var ad=id;function sd({value:e,onChange:t}){return Object(l.createElement)(Lu,null,Object(l.createElement)(ad,{value:e,onChange:t,placeholder:Object(O.__)("Navigation item"),withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))}var ud=n(186),dd=function({icon:e=ud.a,label:t=Object(O.__)("Choose variation"),instructions:n=Object(O.__)("Select a variation to start with."),variations:o,onSelect:r,allowSkip:c}){const i=a()("block-editor-block-variation-picker",{"has-many-variations":o.length>4});return Object(l.createElement)(m.Placeholder,{icon:e,label:t,instructions:n,className:i},Object(l.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(O.__)("Block variations")},o.map(e=>Object(l.createElement)("li",{key:e.name},Object(l.createElement)(m.Button,{variant:"secondary",icon:e.icon,iconSize:48,onClick:()=>r(e),className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(l.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title)))),c&&Object(l.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(l.createElement)(m.Button,{variant:"link",onClick:()=>r()},Object(O.__)("Skip"))))},bd=n(292);const md=({onStartBlank:e,onBlockPatternSelect:t})=>Object(l.createElement)("div",{className:"block-editor-block-pattern-setup__actions"},Object(l.createElement)(m.Button,{onClick:e},Object(O.__)("Start blank")),Object(l.createElement)(m.Button,{variant:"primary",onClick:t},Object(O.__)("Choose"))),pd=({handlePrevious:e,handleNext:t,activeSlide:n,totalSlides:o})=>Object(l.createElement)("div",{className:"block-editor-block-pattern-setup__navigation"},Object(l.createElement)(m.Button,{icon:di.a,label:Object(O.__)("Previous pattern"),onClick:e,disabled:0===n}),Object(l.createElement)(m.Button,{icon:ui.a,label:Object(O.__)("Next pattern"),onClick:t,disabled:n===o-1}));var fd=({viewMode:e,setViewMode:t,handlePrevious:n,handleNext:o,activeSlide:r,totalSlides:c,onBlockPatternSelect:i,onStartBlank:a})=>{const s="carousel"===e,u=Object(l.createElement)("div",{className:"block-editor-block-pattern-setup__display-controls"},Object(l.createElement)(m.Button,{icon:Yn,label:Object(O.__)("Carousel view"),onClick:()=>t("carousel"),isPressed:s}),Object(l.createElement)(m.Button,{icon:bd.a,label:Object(O.__)("Grid view"),onClick:()=>t("grid"),isPressed:"grid"===e}));return Object(l.createElement)("div",{className:"block-editor-block-pattern-setup__toolbar"},s&&Object(l.createElement)(pd,{handlePrevious:n,handleNext:o,activeSlide:r,totalSlides:c}),u,s&&Object(l.createElement)(md,{onBlockPatternSelect:i,onStartBlank:a}))};const gd=({viewMode:e,activeSlide:t,patterns:n,onBlockPatternSelect:o})=>{const r=Object(m.__unstableUseCompositeState)(),i="block-editor-block-pattern-setup__container";if("carousel"===e){const e=new Map([[t,"active-slide"],[t-1,"previous-slide"],[t+1,"next-slide"]]);return Object(l.createElement)("div",{className:i},Object(l.createElement)("ul",{className:"carousel-container"},n.map((t,n)=>Object(l.createElement)(Od,{className:e.get(n)||"",key:t.name,pattern:t}))))}return Object(l.createElement)(m.__unstableComposite,Object(c.a)({},r,{role:"listbox",className:i,"aria-label":Object(O.__)("Patterns list")}),n.map(e=>Object(l.createElement)(hd,{key:e.name,pattern:e,onSelect:o,composite:r})))};function hd({pattern:e,onSelect:t,composite:n}){const o="block-editor-block-pattern-setup-list",{blocks:r,title:i,description:a,viewportWidth:s=700}=e,d=Object(u.useInstanceId)(hd,o+"__item-description");return Object(l.createElement)("div",{className:o+"__list-item","aria-label":e.title,"aria-describedby":e.description?d:void 0},Object(l.createElement)(m.__unstableCompositeItem,Object(c.a)({role:"option",as:"div"},n,{className:o+"__item",onClick:()=>t(r)}),Object(l.createElement)(da,{blocks:r,viewportWidth:s}),Object(l.createElement)("div",{className:o+"__item-title"},i)),!!a&&Object(l.createElement)(m.VisuallyHidden,{id:d},a))}function Od({className:e,pattern:t}){const{blocks:n,title:o,description:r}=t,c=Object(u.useInstanceId)(Od,"block-editor-block-pattern-setup-list__item-description");return Object(l.createElement)("li",{className:"pattern-slide "+e,"aria-label":o,"aria-describedby":r?c:void 0},Object(l.createElement)(da,{blocks:n,__experimentalLive:!0}),!!r&&Object(l.createElement)(m.VisuallyHidden,{id:c},r))}var vd=({clientId:e,blockName:t,filterPatternsFn:n,startBlankComponent:o,onBlockPatternSelect:r})=>{const[c,i]=Object(l.useState)("carousel"),[a,s]=Object(l.useState)(0),[u,d]=Object(l.useState)(!1),{replaceBlock:m}=Object(p.useDispatch)(An),f=function(e,t,n){return Object(p.useSelect)(o=>{const{getBlockRootClientId:r,__experimentalGetPatternsByBlockTypes:c,__experimentalGetAllowedPatterns:l}=o(An),i=r(e);return n?l(i).filter(n):c(t,i)},[e,t,n])}(e,t,n);if(null==f||!f.length||u)return o;const g=r||(t=>{const n=t.map(e=>Object(b.cloneBlock)(e));m(e,n)});return Object(l.createElement)("div",{className:"block-editor-block-pattern-setup view-mode-"+c},Object(l.createElement)(fd,{viewMode:c,setViewMode:i,activeSlide:a,totalSlides:f.length,handleNext:()=>{s(e=>e+1)},handlePrevious:()=>{s(e=>e-1)},onBlockPatternSelect:()=>{g(f[a].blocks)},onStartBlank:()=>{d(!0)}}),Object(l.createElement)(gd,{viewMode:c,activeSlide:a,patterns:f,onBlockPatternSelect:g}))};const jd=(e,t)=>{if(!t||!e)return;const n=t.filter(({attributes:t})=>!(!t||!Object.keys(t).length)&&Object(s.isMatch)(e,t));return 1===n.length?n[0]:void 0};var kd=function({blockClientId:e}){const[t,n]=Object(l.useState)(),{updateBlockAttributes:o}=Object(p.useDispatch)(An),{variations:r,blockAttributes:c}=Object(p.useSelect)(t=>{const{getBlockVariations:n}=t(b.store),{getBlockName:o,getBlockAttributes:r}=t(An),c=e&&o(e);return{variations:c&&n(c,"transform"),blockAttributes:r(e)}},[e]);if(Object(l.useEffect)(()=>{var e;n(null===(e=jd(c,r))||void 0===e?void 0:e.name)},[c,r]),null==r||!r.length)return null;const i=r.map(({name:e,title:t,description:n})=>({value:e,label:t,info:n})),a=t=>{o(e,{...r.find(({name:e})=>e===t).attributes})},s="block-editor-block-variation-transforms";return Object(l.createElement)(m.DropdownMenu,{className:s,label:Object(O.__)("Transform to variation"),text:Object(O.__)("Transform to variation"),popoverProps:{position:"bottom center",className:s+"__popover"},icon:mi.a,toggleProps:{iconPosition:"right"}},()=>Object(l.createElement)("div",{className:s+"__container"},Object(l.createElement)(m.MenuGroup,null,Object(l.createElement)(m.MenuItemsChoice,{choices:i,value:t,onSelect:a}))))};const _d=Object(l.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(m.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),yd=Object(l.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(m.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),Ed={top:{icon:Object(l.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(m.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:Object(O._x)("Align top","Block vertical alignment setting")},center:{icon:yd,title:Object(O._x)("Align middle","Block vertical alignment setting")},bottom:{icon:_d,title:Object(O._x)("Align bottom","Block vertical alignment setting")}},Cd=["top","center","bottom"],Sd={isAlternate:!0};var wd=function({value:e,onChange:t,controls:n=Cd,isCollapsed:o=!0,isToolbar:r}){const i=Ed[e],a=Ed.top,s=r?m.ToolbarGroup:m.ToolbarDropdownMenu,u=r?{isCollapsed:o}:{};return Object(l.createElement)(s,Object(c.a)({popoverProps:Sd,icon:i?i.icon:a.icon,label:Object(O._x)("Change vertical alignment","Block vertical alignment setting label"),controls:n.map(n=>{return{...Ed[n],isActive:e===n,role:o?"menuitemradio":void 0,onClick:(r=n,()=>t(e===r?void 0:r))};var r})},u))};function Bd(e){return Object(l.createElement)(wd,Object(c.a)({},e,{isToolbar:!1}))}function Id(e){return Object(l.createElement)(wd,Object(c.a)({},e,{isToolbar:!0}))}var xd=Object(u.createHigherOrderComponent)(e=>t=>{const n=Io("color.palette"),o=!Io("color.custom"),r=void 0===t.colors?n:t.colors,i=void 0===t.disableCustomColors?o:t.disableCustomColors,a=!Object(s.isEmpty)(r)||!i;return Object(l.createElement)(e,Object(c.a)({},t,{colors:r,disableCustomColors:i,hasColorsToChoose:a}))},"withColorContext"),Td=xd(m.ColorPalette);function Nd({onChange:e,value:t,...n}){return Object(l.createElement)($o,Object(c.a)({},n,{onColorChange:e,colorValue:t,gradients:[],disableCustomGradients:!0}))}const Ld=[];function Pd(e){const t=Io("color.gradients")||Ld,n=!Io("color.customGradient");return Object(l.createElement)(m.__experimentalGradientPicker,Object(c.a)({gradients:void 0!==e.gradients?e.gradient:t,disableCustomGradients:void 0!==e.disableCustomGradients?e.disableCustomGradients:n},e))}var Rd=function(e){const t=void 0!==e.gradients&&void 0!==e.disableCustomGradients?m.__experimentalGradientPicker:Pd;return Object(l.createElement)(t,e)};function Ad({className:e,value:t,onChange:n,label:o=Object(O.__)("Gradient Presets"),...r}){const i=Io("color.gradients"),u=!Io("color.customGradient");return Object(s.isEmpty)(i)&&u?null:Object(l.createElement)(m.BaseControl,{className:a()("block-editor-gradient-picker-control",e)},Object(l.createElement)(m.BaseControl.VisualLabel,null,o),Object(l.createElement)(Rd,Object(c.a)({value:t,onChange:n,className:"block-editor-gradient-picker-control__gradient-picker-presets",gradients:i,disableCustomGradients:u},r)))}function Md(e){const t=Io("color.gradients");return Object(s.isEmpty)(t)?null:Object(l.createElement)(m.PanelBody,{title:Object(O.__)("Gradient")},Object(l.createElement)(Ad,e))}const Dd=[25,50,75,100];function Fd({imageWidth:e,imageHeight:t,imageSizeOptions:n=[],isResizable:o=!0,slug:r,width:c,height:i,onChange:a,onChangeImage:u=s.noop}){const{currentHeight:d,currentWidth:b,updateDimension:p,updateDimensions:f}=function(e,t,n,o,r){var c,i;const[a,s]=Object(l.useState)(null!==(c=null!=t?t:o)&&void 0!==c?c:""),[u,d]=Object(l.useState)(null!==(i=null!=e?e:n)&&void 0!==i?i:"");return Object(l.useEffect)(()=>{void 0===t&&void 0!==o&&s(o),void 0===e&&void 0!==n&&d(n)},[o,n]),{currentHeight:u,currentWidth:a,updateDimension:(e,t)=>{"width"===e?s(t):d(t),r({[e]:""===t?void 0:parseInt(t,10)})},updateDimensions:(e,t)=>{d(null!=e?e:n),s(null!=t?t:o),r({height:e,width:t})}}}(i,c,t,e,a);return Object(l.createElement)(l.Fragment,null,!Object(s.isEmpty)(n)&&Object(l.createElement)(m.SelectControl,{label:Object(O.__)("Image size"),value:r,options:n,onChange:u}),o&&Object(l.createElement)("div",{className:"block-editor-image-size-control"},Object(l.createElement)("p",{className:"block-editor-image-size-control__row"},Object(O.__)("Image dimensions")),Object(l.createElement)("div",{className:"block-editor-image-size-control__row"},Object(l.createElement)(m.TextControl,{type:"number",className:"block-editor-image-size-control__width",label:Object(O.__)("Width"),value:b,min:1,onChange:e=>p("width",e)}),Object(l.createElement)(m.TextControl,{type:"number",className:"block-editor-image-size-control__height",label:Object(O.__)("Height"),value:d,min:1,onChange:e=>p("height",e)})),Object(l.createElement)("div",{className:"block-editor-image-size-control__row"},Object(l.createElement)(m.ButtonGroup,{"aria-label":Object(O.__)("Image size presets")},Dd.map(n=>{const o=Math.round(e*(n/100)),r=Math.round(t*(n/100)),c=b===o&&d===r;return Object(l.createElement)(m.Button,{key:n,isSmall:!0,variant:c?"primary":void 0,isPressed:c,onClick:()=>f(r,o)},n,"%")})),Object(l.createElement)(m.Button,{isSmall:!0,onClick:()=>f()},Object(O.__)("Reset")))))}var Vd=Object(u.createHigherOrderComponent)(e=>t=>{const{clientId:n}=h();return Object(l.createElement)(e,Object(c.a)({},t,{clientId:n}))},"withClientId"),Hd=Vd(({clientId:e,showSeparator:t,isFloating:n,onAddBlock:o})=>Object(l.createElement)(ts,{rootClientId:e,showSeparator:t,isFloating:n,onAddBlock:o})),zd=Object(u.compose)([Vd,Object(p.withSelect)((e,{clientId:t})=>{const{getBlockOrder:n}=e(An),o=n(t);return{lastBlockClientId:Object(s.last)(o)}})])(({clientId:e,lastBlockClientId:t})=>Object(l.createElement)(Za,{rootClientId:e,lastBlockClientId:t})),Gd=n(47),Ud=n.n(Gd);const Wd=new WeakMap;function Kd(e){const{clientId:t,allowedBlocks:n,template:o,templateLock:r,wrapperRef:c,templateInsertUpdatesSelection:i,__experimentalCaptureToolbars:a,__experimentalAppenderTagName:u,renderAppender:d,orientation:m,placeholder:f,__experimentalLayout:g}=e;!function(e,t,n,o,r){const{updateBlockListSettings:c}=Object(p.useDispatch)(An),{blockListSettings:i,parentLock:a}=Object(p.useSelect)(t=>{const n=t(An).getBlockRootClientId(e);return{blockListSettings:t(An).getBlockListSettings(e),parentLock:t(An).getTemplateLock(n)}},[e]),s=Object(l.useMemo)(()=>t,t);Object(l.useLayoutEffect)(()=>{const t={allowedBlocks:s,templateLock:void 0===n?a:n};void 0!==o&&(t.__experimentalCaptureToolbars=o),void 0!==r&&(t.orientation=r),Ud()(i,t)||c(e,t)},[e,i,s,n,a,o,r,c])}(t,n,r,a,m),function(e,t,n,o){const{getSelectedBlocksInitialCaretPosition:r}=Object(p.useSelect)(An),{replaceInnerBlocks:c}=Object(p.useDispatch)(An),i=Object(p.useSelect)(t=>t(An).getBlocks(e),[e]),a=Object(l.useRef)(null);Object(l.useLayoutEffect)(()=>{if((0===i.length||"all"===n)&&!Object(s.isEqual)(t,a.current)){a.current=t;const n=Object(b.synchronizeBlocksWithTemplate)(i,t);Object(s.isEqual)(n,i)||c(e,n,0===i.length&&o&&0!==n.length,r())}},[i,t,n,e])}(t,o,r,i);const h=Object(p.useSelect)(e=>{const n=e(An).getBlock(t),o=Object(b.getBlockType)(n.name);if(o&&o.providesContext)return function(e,t){Wd.has(t)||Wd.set(t,new WeakMap);const n=Wd.get(t);if(!n.has(e)){const o=Object(s.mapValues)(t.providesContext,t=>e[t]);n.set(e,o)}return n.get(e)}(n.attributes,o)},[t]);return Object(l.createElement)(Kl,{value:h},Object(l.createElement)(Ou,{rootClientId:t,renderAppender:d,__experimentalAppenderTagName:u,__experimentalLayout:g,wrapperRef:c,placeholder:f}))}function $d(e){return la(e),Object(l.createElement)(Kd,e)}const qd=Object(l.forwardRef)((e,t)=>{const n=Yd({ref:t},e);return Object(l.createElement)("div",{className:"block-editor-inner-blocks"},Object(l.createElement)("div",n))});function Yd(e={},t={}){const{clientId:n}=h(),o=Object(u.useViewportMatch)("medium","<"),r=Object(p.useSelect)(e=>{const{getBlockName:t,isBlockSelected:r,hasSelectedInnerBlock:c,isNavigationMode:l}=e(An),i=l()||o;return"core/template"!==t(n)&&!r(n)&&!c(n,!0)&&i},[n,o]),i=Object(u.useMergeRefs)([e.ref,ls({rootClientId:n})]),s=t.value&&t.onChange?$d:Kd;return{...e,ref:i,className:a()(e.className,"block-editor-block-list__layout",{"has-overlay":r}),children:Object(l.createElement)(s,Object(c.a)({},t,{clientId:n}))}}qd.DefaultBlockAppender=zd,qd.ButtonBlockAppender=Hd,qd.Content=Object(b.withBlockContentContext)(({BlockContent:e})=>Object(l.createElement)(e,null));var Xd=qd,Qd=Object(l.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Un.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),Zd=Object(l.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Un.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"})),Jd=Object(l.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Un.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),eb=Object(l.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(Un.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"}));const tb={left:Qd,center:Zd,right:Jd,"space-between":eb};var nb=function({allowedControls:e=["left","center","right","space-between"],isCollapsed:t=!0,onChange:n,value:o,popoverProps:r,isToolbar:i}){const a=e=>{n(e===o?void 0:e)},s=o?tb[o]:tb.left,u=[{name:"left",icon:Qd,title:Object(O.__)("Justify items left"),isActive:"left"===o,onClick:()=>a("left")},{name:"center",icon:Zd,title:Object(O.__)("Justify items center"),isActive:"center"===o,onClick:()=>a("center")},{name:"right",icon:Jd,title:Object(O.__)("Justify items right"),isActive:"right"===o,onClick:()=>a("right")},{name:"space-between",icon:eb,title:Object(O.__)("Space between items"),isActive:"space-between"===o,onClick:()=>a("space-between")}],d=i?m.ToolbarGroup:m.ToolbarDropdownMenu,b=i?{isCollapsed:t}:{};return Object(l.createElement)(d,Object(c.a)({icon:s,popoverProps:r,label:Object(O.__)("Change items justification"),controls:u.filter(t=>e.includes(t.name))},b))};function ob(e){return Object(l.createElement)(nb,Object(c.a)({},e,{isToolbar:!1}))}function rb(e){return Object(l.createElement)(nb,Object(c.a)({},e,{isToolbar:!0}))}var cb=n(212);const lb=[{id:"opensInNewTab",title:Object(O.__)("Open in new tab")}];var ib=({value:e,onChange:t=s.noop,settings:n=lb})=>{if(!n||!n.length)return null;const o=n=>o=>{t({...e,[n.id]:o})},r=n.map(t=>Object(l.createElement)(m.ToggleControl,{className:"block-editor-link-control__setting",key:t.id,label:t.title,onChange:o(t),checked:!!e&&!!e[t.id]}));return Object(l.createElement)("fieldset",{className:"block-editor-link-control__settings"},Object(l.createElement)(m.VisuallyHidden,{as:"legend"},Object(O.__)("Currently selected link settings")),r)};class ab extends l.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectLink=this.selectLink.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.bindSuggestionNode=this.bindSuggestionNode.bind(this),this.autocompleteRef=e.autocompleteRef||Object(l.createRef)(),this.inputRef=Object(l.createRef)(),this.updateSuggestions=Object(s.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.isUpdatingSuggestions=!1,this.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""}}componentDidUpdate(e){const{showSuggestions:t,selectedSuggestion:n}=this.state,{value:o}=this.props;t&&null!==n&&this.suggestionNodes[n]&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,qi()(this.suggestionNodes[n],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout(()=>{this.scrollingIntoView=!1},100)),e.value!==o&&this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){var e,t;null===(e=this.suggestionsRequest)||void 0===e||null===(t=e.cancel)||void 0===t||t.call(e),delete this.suggestionsRequest}bindSuggestionNode(e){return t=>{this.suggestionNodes[e]=t}}shouldShowInitialSuggestions(){const{suggestions:e}=this.state,{__experimentalShowInitialSuggestions:t=!1,value:n}=this.props;return!this.isUpdatingSuggestions&&t&&!(n&&n.length)&&!(e&&e.length)}updateSuggestions(e=""){const{__experimentalFetchLinkSuggestions:t,__experimentalHandleURLSuggestions:n}=this.props;if(!t)return;const o=!(e&&e.length);if(!o&&(e.length<2||!n&&Object(Pa.isURL)(e)))return void this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1});this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});const r=t(e,{isInitialSuggestions:o});r.then(e=>{this.suggestionsRequest===r&&(this.setState({suggestions:e,loading:!1,showSuggestions:!!e.length}),e.length?this.props.debouncedSpeak(Object(O.sprintf)(
62
  /* translators: %s: number of results. */
63
+ Object(O._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):this.props.debouncedSpeak(Object(O.__)("No results."),"assertive"),this.isUpdatingSuggestions=!1)}).catch(()=>{this.suggestionsRequest===r&&(this.setState({loading:!1}),this.isUpdatingSuggestions=!1)}),this.suggestionsRequest=r}onChange(e){const t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t.trim())}onFocus(){const{suggestions:e}=this.state,{disableSuggestions:t,value:n}=this.props;!n||t||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(n.trim())}onKeyDown(e){const{showSuggestions:t,selectedSuggestion:n,suggestions:o,loading:r}=this.state;if(!t||!o.length||r){switch(e.keyCode){case Yr.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case Yr.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case Yr.ENTER:this.props.onSubmit&&this.props.onSubmit()}return}const c=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case Yr.UP:{e.stopPropagation(),e.preventDefault();const t=n?n-1:o.length-1;this.setState({selectedSuggestion:t});break}case Yr.DOWN:{e.stopPropagation(),e.preventDefault();const t=null===n||n===o.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case Yr.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(c),this.props.speak(Object(O.__)("Link selected.")));break;case Yr.ENTER:null!==this.state.selectedSuggestion?(e.stopPropagation(),this.selectLink(c),this.props.onSubmit&&this.props.onSubmit(c)):this.props.onSubmit&&this.props.onSubmit()}}selectLink(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}handleOnClick(e){this.selectLink(e),this.inputRef.current.focus()}static getDerivedStateFromProps({value:e,instanceId:t,disableSuggestions:n,__experimentalShowInitialSuggestions:o=!1},{showSuggestions:r}){let c=r;const l=e&&e.length;return o||l||(c=!1),!0===n&&(c=!1),{showSuggestions:c,suggestionsListboxId:"block-editor-url-input-suggestions-"+t,suggestionOptionIdPrefix:"block-editor-url-input-suggestion-"+t}}render(){return Object(l.createElement)(l.Fragment,null,this.renderControl(),this.renderSuggestions())}renderControl(){const{label:e,className:t,isFullWidth:n,instanceId:o,placeholder:r=Object(O.__)("Paste URL or type to search"),__experimentalRenderControl:c,value:i=""}=this.props,{loading:s,showSuggestions:u,selectedSuggestion:d,suggestionsListboxId:b,suggestionOptionIdPrefix:p}=this.state,f={id:"url-input-control-"+o,label:e,className:a()("block-editor-url-input",t,{"is-full-width":n})},g={value:i,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:r,onKeyDown:this.onKeyDown,role:"combobox","aria-label":Object(O.__)("URL"),"aria-expanded":u,"aria-autocomplete":"list","aria-owns":b,"aria-activedescendant":null!==d?`${p}-${d}`:void 0,ref:this.inputRef};return c?c(f,g,s):Object(l.createElement)(m.BaseControl,f,Object(l.createElement)("input",g),s&&Object(l.createElement)(m.Spinner,null))}renderSuggestions(){const{className:e,__experimentalRenderSuggestions:t,value:n="",__experimentalShowInitialSuggestions:o=!1}=this.props,{showSuggestions:r,suggestions:i,selectedSuggestion:u,suggestionsListboxId:d,suggestionOptionIdPrefix:b,loading:p}=this.state,f={id:d,ref:this.autocompleteRef,role:"listbox"},g=(e,t)=>({role:"option",tabIndex:"-1",id:`${b}-${t}`,ref:this.bindSuggestionNode(t),"aria-selected":t===u});return Object(s.isFunction)(t)&&r&&i.length?t({suggestions:i,selectedSuggestion:u,suggestionsListProps:f,buildSuggestionItemProps:g,isLoading:p,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:o&&!(n&&n.length)}):!Object(s.isFunction)(t)&&r&&i.length?Object(l.createElement)(m.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(l.createElement)("div",Object(c.a)({},f,{className:a()("block-editor-url-input__suggestions",e+"__suggestions")}),i.map((e,t)=>Object(l.createElement)(m.Button,Object(c.a)({},g(0,t),{key:e.id,className:a()("block-editor-url-input__suggestion",{"is-selected":t===u}),onClick:()=>this.handleOnClick(e)}),e.title)))):null}}var sb=Object(u.compose)(u.withSafeTimeout,m.withSpokenMessages,u.withInstanceId,Object(p.withSelect)((e,t)=>{if(Object(s.isFunction)(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(An);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}}))(ab),ub=({searchTerm:e,onClick:t,itemProps:n,isSelected:o,buttonText:r})=>{if(!e)return null;let i;return i=r?Object(s.isFunction)(r)?r(e):r:Object(l.createInterpolateElement)(Object(O.sprintf)(
64
  /* translators: %s: search term. */
65
+ Object(O.__)("Create: <mark>%s</mark>"),e),{mark:Object(l.createElement)("mark",null)}),Object(l.createElement)(m.Button,Object(c.a)({},n,{className:a()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":o}),onClick:t}),Object(l.createElement)(Xc.a,{className:"block-editor-link-control__search-item-icon",icon:Ji.a}),Object(l.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(l.createElement)("span",{className:"block-editor-link-control__search-item-title"},i)))},db=Object(l.createElement)(Un.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(l.createElement)(Un.Path,{d:"M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zM1.11 9.68h2.51c.04.91.167 1.814.38 2.7H1.84c-.403-.85-.65-1.764-.73-2.7zm8.57-5.4V1.19c.964.366 1.756 1.08 2.22 2 .205.347.386.708.54 1.08l-2.76.01zm3.22 1.35c.232.883.37 1.788.41 2.7H9.68v-2.7h3.22zM8.32 1.19v3.09H5.56c.154-.372.335-.733.54-1.08.462-.924 1.255-1.64 2.22-2.01zm0 4.44v2.7H4.7c.04-.912.178-1.817.41-2.7h3.21zm-4.7 2.69H1.11c.08-.936.327-1.85.73-2.7H4c-.213.886-.34 1.79-.38 2.7zM4.7 9.68h3.62v2.7H5.11c-.232-.883-.37-1.788-.41-2.7zm3.63 4v3.09c-.964-.366-1.756-1.08-2.22-2-.205-.347-.386-.708-.54-1.08l2.76-.01zm1.35 3.09v-3.04h2.76c-.154.372-.335.733-.54 1.08-.464.92-1.256 1.634-2.22 2v-.04zm0-4.44v-2.7h3.62c-.04.912-.178 1.817-.41 2.7H9.68zm4.71-2.7h2.51c-.08.936-.327 1.85-.73 2.7H14c.21-.87.337-1.757.38-2.65l.01-.05zm0-1.35c-.046-.894-.176-1.78-.39-2.65h2.16c.403.85.65 1.764.73 2.7l-2.5-.05zm1-4H13.6c-.324-.91-.793-1.76-1.39-2.52 1.244.56 2.325 1.426 3.14 2.52h.04zm-9.6-2.52c-.597.76-1.066 1.61-1.39 2.52H2.65c.815-1.094 1.896-1.96 3.14-2.52zm-3.15 12H4.4c.324.91.793 1.76 1.39 2.52-1.248-.567-2.33-1.445-3.14-2.55l-.01.03zm9.56 2.52c.597-.76 1.066-1.61 1.39-2.52h1.76c-.82 1.08-1.9 1.933-3.14 2.48l-.01.04z"})),bb=({itemProps:e,suggestion:t,isSelected:n=!1,onClick:o,isURL:r=!1,searchTerm:i="",shouldShowType:s=!1})=>Object(l.createElement)(m.Button,Object(c.a)({},e,{onClick:o,className:a()("block-editor-link-control__search-item",{"is-selected":n,"is-url":r,"is-entity":!r})}),r&&Object(l.createElement)(Xc.a,{className:"block-editor-link-control__search-item-icon",icon:db}),Object(l.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(l.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(l.createElement)(m.TextHighlight,{text:t.title,highlight:i})),Object(l.createElement)("span",{"aria-hidden":!r,className:"block-editor-link-control__search-item-info"},!r&&(Object(Pa.filterURLForDisplay)(Object(Pa.safeDecodeURI)(t.url))||""),r&&Object(O.__)("Press ENTER to add this link"))),s&&t.type&&Object(l.createElement)("span",{className:"block-editor-link-control__search-item-type"},"post_tag"===t.type?"tag":t.type));function mb({instanceId:e,withCreateSuggestion:t,currentInputValue:n,handleSuggestionClick:o,suggestionsListProps:r,buildSuggestionItemProps:i,suggestions:s,selectedSuggestion:u,isLoading:d,isInitialSuggestions:b,createSuggestionButtonText:p,suggestionsQuery:f}){const g=a()("block-editor-link-control__search-results",{"is-loading":d}),h=["url","mailto","tel","internal"],v=1===s.length&&h.includes(s[0].type.toLowerCase()),j=t&&!v&&!b,k=!(null!=f&&f.type),_="block-editor-link-control-search-results-label-"+e,y=b?Object(O.__)("Recently updated"):Object(O.sprintf)(
66
  /* translators: %s: search term. */
67
+ Object(O.__)('Search results for "%s"'),n),E=Object(l.createElement)(b?l.Fragment:m.VisuallyHidden,{},Object(l.createElement)("span",{className:"block-editor-link-control__search-results-label",id:_},y));return Object(l.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},E,Object(l.createElement)("div",Object(c.a)({},r,{className:g,"aria-labelledby":_}),s.map((e,t)=>j&&"__CREATE__"===e.type?Object(l.createElement)(ub,{searchTerm:n,buttonText:p,onClick:()=>o(e),key:e.type,itemProps:i(e,t),isSelected:t===u}):"__CREATE__"===e.type?null:Object(l.createElement)(bb,{key:`${e.id}-${e.type}`,itemProps:i(e,t),suggestion:e,index:t,onClick:()=>{o(e)},isSelected:t===u,isURL:h.includes(e.type.toLowerCase()),searchTerm:n,shouldShowType:k}))))}function pb(e){const t=Object(s.startsWith)(e,"#");return Object(Pa.isURL)(e)||e&&e.includes("www.")||t}const fb=()=>Promise.resolve([]),gb=e=>{let t="URL";const n=Object(Pa.getProtocol)(e)||"";return n.includes("mailto")&&(t="mailto"),n.includes("tel")&&(t="tel"),Object(s.startsWith)(e,"#")&&(t="internal"),Promise.resolve([{id:e,title:e,url:"URL"===t?Object(Pa.prependHTTP)(e):e,type:t}])};const hb=()=>Promise.resolve([]),Ob=Object(l.forwardRef)(({value:e,children:t,currentLink:n={},className:o=null,placeholder:r=null,withCreateSuggestion:c=!1,onCreateSuggestion:i=s.noop,onChange:a=s.noop,onSelect:d=s.noop,showSuggestions:b=!0,renderSuggestions:m=(e=>Object(l.createElement)(mb,e)),fetchSuggestions:f=null,allowDirectEntry:g=!0,showInitialSuggestions:h=!1,suggestionsQuery:v={},withURLSuggestion:j=!0,createSuggestionButtonText:k},_)=>{const y=function(e,t,n,o){const{fetchSearchSuggestions:r}=Object(p.useSelect)(e=>{const{getSettings:t}=e(An);return{fetchSearchSuggestions:t().__experimentalFetchLinkSuggestions}},[]),c=t?gb:fb;return Object(l.useCallback)((t,{isInitialSuggestions:l})=>pb(t)?c(t,{isInitialSuggestions:l}):(async(e,t,n,o,r,c)=>{const{isInitialSuggestions:l}=t;let i=await Promise.all([n(e,t),o(e)]);return i=e.includes(" ")||!c||l?i[0]:i[0].concat(i[1]),l||pb(e)||!r?i:i.concat({title:e,url:e,type:"__CREATE__"})})(t,{...e,isInitialSuggestions:l},r,c,n,o),[c,r,n])}(v,g,c,j),E=b?f||y:hb,C=Object(u.useInstanceId)(Ob),[S,w]=Object(l.useState)(),B=async e=>{let t=e;if("__CREATE__"!==e.type)(g||t&&Object.keys(t).length>=1)&&d({...Object(s.omit)(n,"id","url"),...t},t);else try{var o;t=await i(e.title),null!==(o=t)&&void 0!==o&&o.url&&d(t)}catch(e){}};return Object(l.createElement)("div",null,Object(l.createElement)(sb,{className:o,value:e,onChange:(e,t)=>{a(e),w(t)},placeholder:null!=r?r:Object(O.__)("Search or type url"),__experimentalRenderSuggestions:b?t=>m({...t,instanceId:C,withCreateSuggestion:c,currentInputValue:e,createSuggestionButtonText:k,suggestionsQuery:v,handleSuggestionClick:e=>{t.handleSuggestionClick&&t.handleSuggestionClick(e),B(e)}}):null,__experimentalFetchLinkSuggestions:E,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:h,onSubmit:t=>{B(t||S||{url:e})},ref:_}),t)});var vb=Ob;const{Slot:jb,Fill:kb}=Object(m.createSlotFill)("BlockEditorLinkControlViewer");function _b(e,t){switch(t.type){case"RESOLVED":return{...e,isFetching:!1,richData:t.richData};case"ERROR":return{...e,isFetching:!1,richData:null};case"LOADING":return{...e,isFetching:!0};default:throw new Error("Unexpected action type "+t.type)}}function yb({value:e,onEditClick:t,hasRichPreviews:n=!1}){const o=n?null==e?void 0:e.url:null,{richData:r,isFetching:c}=function(e){const[t,n]=Object(l.useReducer)(_b,{richData:null,isFetching:!1}),{fetchRichUrlData:o}=Object(p.useSelect)(e=>{const{getSettings:t}=e(An);return{fetchRichUrlData:t().__experimentalFetchRichUrlData}},[]);return Object(l.useEffect)(()=>{if(null!=e&&e.length&&o&&"undefined"!=typeof AbortController){n({type:"LOADING"});const t=new window.AbortController,r=t.signal;return o(e,{signal:r}).then(e=>{n({type:"RESOLVED",richData:e})}).catch(()=>{r.aborted||n({type:"ERROR"})}),()=>{t.abort()}}},[e]),t}(o),i=r&&Object.keys(r).length,s=e&&Object(Pa.filterURLForDisplay)(Object(Pa.safeDecodeURI)(e.url),16)||"";return Object(l.createElement)("div",{"aria-label":Object(O.__)("Currently selected"),"aria-selected":"true",className:a()("block-editor-link-control__search-item",{"is-current":!0,"is-rich":i,"is-fetching":!!c,"is-preview":!0})},Object(l.createElement)("div",{className:"block-editor-link-control__search-item-top"},Object(l.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(l.createElement)("span",{className:a()("block-editor-link-control__search-item-icon",{"is-image":null==r?void 0:r.icon})},null!=r&&r.icon?Object(l.createElement)("img",{src:null==r?void 0:r.icon,alt:""}):Object(l.createElement)(Xc.a,{icon:db})),Object(l.createElement)("span",{className:"block-editor-link-control__search-item-details"},Object(l.createElement)(m.ExternalLink,{className:"block-editor-link-control__search-item-title",href:e.url},(null==r?void 0:r.title)||(null==e?void 0:e.title)||s),(null==e?void 0:e.url)&&Object(l.createElement)("span",{className:"block-editor-link-control__search-item-info"},s))),Object(l.createElement)(m.Button,{variant:"secondary",onClick:()=>t(),className:"block-editor-link-control__search-item-action"},Object(O.__)("Edit")),Object(l.createElement)(jb,{fillProps:e})),(i||c)&&Object(l.createElement)("div",{className:"block-editor-link-control__search-item-bottom"},Object(l.createElement)("div",{"aria-hidden":!(null!=r&&r.image),className:a()("block-editor-link-control__search-item-image",{"is-placeholder":!(null!=r&&r.image)})},(null==r?void 0:r.image)&&Object(l.createElement)("img",{src:null==r?void 0:r.image,alt:""})),Object(l.createElement)("div",{"aria-hidden":!(null!=r&&r.description),className:a()("block-editor-link-control__search-item-description",{"is-placeholder":!(null!=r&&r.description)})},(null==r?void 0:r.description)&&Object(l.createElement)(m.__experimentalText,{truncate:!0,numberOfLines:"2"},r.description))))}function Eb({searchInputPlaceholder:e,value:t,settings:n,onChange:o=s.noop,onRemove:r,noDirectEntry:c=!1,showSuggestions:i=!0,showInitialSuggestions:a,forceIsEditingLink:u,createSuggestion:d,withCreateSuggestion:b,inputValue:p="",suggestionsQuery:f={},noURLSuggestion:g=!1,createSuggestionButtonText:h,hasRichPreviews:v=!1}){void 0===b&&d&&(b=!0);const j=Object(l.useRef)(!0),k=Object(l.useRef)(),[_,y]=Object(l.useState)(t&&t.url||""),E=p||_,[C,S]=Object(l.useState)(void 0!==u?u:!t||!t.url),w=Object(l.useRef)(!1);function B(){var e;w.current=!(null===(e=k.current)||void 0===e||!e.contains(k.current.ownerDocument.activeElement)),S(!1)}Object(l.useEffect)(()=>{void 0!==u&&u!==C&&S(u)},[u]),Object(l.useEffect)(()=>{j.current?j.current=!1:((ri.focus.focusable.find(k.current)[0]||k.current).focus(),w.current=!1)},[C]);const{createPage:I,isCreatingPage:x,errorMessage:T}=function(e){const t=Object(l.useRef)(),[n,o]=Object(l.useState)(!1),[r,c]=Object(l.useState)(null);return Object(l.useEffect)(()=>()=>{t.current&&t.current.cancel()},[]),{createPage:async function(n){o(!0),c(null);try{return t.current=(e=>{let t=!1;return{promise:new Promise((n,o)=>{e.then(e=>t?o({isCanceled:!0}):n(e),e=>o(t?{isCanceled:!0}:e))}),cancel(){t=!0}}})(Promise.resolve(e(n))),await t.current.promise}catch(e){if(e&&e.isCanceled)return;throw c(e.message||Object(O.__)("An unknown error occurred during creation. Please try again.")),e}finally{o(!1)}},isCreatingPage:n,errorMessage:r}}(d),N=()=>{E!==(null==t?void 0:t.url)&&o({url:E}),B()};return Object(l.createElement)("div",{tabIndex:-1,ref:k,className:"block-editor-link-control"},x&&Object(l.createElement)("div",{className:"block-editor-link-control__loading"},Object(l.createElement)(m.Spinner,null)," ",Object(O.__)("Creating"),"…"),(C||!t)&&!x&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(l.createElement)(vb,{currentLink:t,className:"block-editor-link-control__search-input",placeholder:e,value:E,withCreateSuggestion:b,onCreateSuggestion:I,onChange:y,onSelect:e=>{o(e),B()},showInitialSuggestions:a,allowDirectEntry:!c,showSuggestions:i,suggestionsQuery:f,withURLSuggestion:!g,createSuggestionButtonText:h},Object(l.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(l.createElement)(m.Button,{onClick:()=>N(),onKeyDown:e=>{const{keyCode:t}=e;t===Yr.ENTER&&(e.preventDefault(),N())},label:Object(O.__)("Submit"),icon:cb.a,className:"block-editor-link-control__search-submit"})))),T&&Object(l.createElement)(m.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},T)),t&&!C&&!x&&Object(l.createElement)(yb,{key:null==t?void 0:t.url,value:t,onEditClick:()=>S(!0),hasRichPreviews:v}),Object(l.createElement)("div",{className:"block-editor-link-control__tools"},Object(l.createElement)(ib,{value:t,settings:n,onChange:o}),r&&t&&!C&&!x&&Object(l.createElement)(m.Button,{className:"block-editor-link-control__unlink",isDestructive:!0,variant:"link",onClick:r},Object(O.__)("Unlink"))))}Eb.ViewerFill=kb;var Cb=Eb,Sb=n(293),wb=n(213),Bb=Object(m.withFilters)("editor.MediaUpload")(()=>null),Ib=function({fallback:e=null,children:t}){return Object(p.useSelect)(e=>{const{getSettings:t}=e(An);return!!t().mediaUpload},[])?t:e},xb=Object(u.compose)([Object(p.withDispatch)(e=>{const{createNotice:t,removeNotice:n}=e(wa.store);return{createNotice:t,removeNotice:n}}),Object(m.withFilters)("editor.MediaReplaceFlow")])(({mediaURL:e,mediaId:t,allowedTypes:n,accept:o,onSelect:r,onSelectURL:c,onFilesUpload:i=s.noop,name:a=Object(O.__)("Replace"),createNotice:u,removeNotice:d})=>{const[b,f]=Object(l.useState)(e),g=Object(p.useSelect)(e=>e(An).getSettings().mediaUpload,[]),h=Object(l.createRef)(),v=Object(s.uniqueId)("block-editor/media-replace-flow/error-notice/"),j=e=>{const t=document.createElement("div");t.innerHTML=Object(l.renderToString)(e);const n=t.textContent||t.innerText||"";setTimeout(()=>{u("error",n,{speak:!0,id:v,isDismissible:!0})},1e3)},k=e=>{r(e),f(e.url),Object(Et.speak)(Object(O.__)("The media file has been replaced")),d(v)},_=e=>{e.keyCode===Yr.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return Object(l.createElement)(m.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:({isOpen:e,onToggle:t})=>Object(l.createElement)(m.ToolbarButton,{ref:h,"aria-expanded":e,"aria-haspopup":"true",onClick:t,onKeyDown:_},a),renderContent:({onClose:e})=>Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(l.createElement)(Bb,{value:t,onSelect:e=>k(e),allowedTypes:n,render:({open:e})=>Object(l.createElement)(m.MenuItem,{icon:Sb.a,onClick:e},Object(O.__)("Open Media Library"))}),Object(l.createElement)(Ib,null,Object(l.createElement)(m.FormFileUpload,{onChange:e=>{(e=>{const t=e.target.files;i(t),g({allowedTypes:n,filesList:t,onFileChange:([e])=>{k(e)},onError:j})})(e)},accept:o,render:({openFileDialog:e})=>Object(l.createElement)(m.MenuItem,{icon:wb.a,onClick:()=>{e()}},Object(O.__)("Upload"))}))),c&&Object(l.createElement)("form",{className:"block-editor-media-flow__url-input",onKeyDown:e=>{[Yr.TAB,Yr.ESCAPE].includes(e.keyCode)||e.stopPropagation()},onKeyPress:e=>{[Yr.TAB,Yr.ESCAPE].includes(e.keyCode)||e.stopPropagation()}},Object(l.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(O.__)("Current media URL:")),Object(l.createElement)(Cb,{value:{url:b},settings:[],showSuggestions:!1,onChange:({url:e})=>{f(e),c(e),h.current.focus()}})))})}),Tb=n(199);function Nb({url:e,urlLabel:t,className:n}){const o=a()(n,"block-editor-url-popover__link-viewer-url");return e?Object(l.createElement)(m.ExternalLink,{className:o,href:e},t||Object(Pa.filterURLForDisplay)(Object(Pa.safeDecodeURI)(e))):Object(l.createElement)("span",{className:o})}function Lb({additionalControls:e,children:t,renderSettings:n,position:o="bottom center",focusOnMount:r="firstElement",...i}){const[a,s]=Object(l.useState)(!1),u=!!n&&a;return Object(l.createElement)(m.Popover,Object(c.a)({className:"block-editor-url-popover",focusOnMount:r,position:o},i),Object(l.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(l.createElement)("div",{className:"block-editor-url-popover__row"},t,!!n&&Object(l.createElement)(m.Button,{className:"block-editor-url-popover__settings-toggle",icon:mi.a,label:Object(O.__)("Link settings"),onClick:()=>{s(!a)},"aria-expanded":a})),u&&Object(l.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},n())),e&&!u&&Object(l.createElement)("div",{className:"block-editor-url-popover__additional-controls"},e))}Lb.LinkEditor=function({autocompleteRef:e,className:t,onChangeInputValue:n,value:o,...r}){return Object(l.createElement)("form",Object(c.a)({className:a()("block-editor-url-popover__link-editor",t)},r),Object(l.createElement)(sb,{value:o,onChange:n,autocompleteRef:e}),Object(l.createElement)(m.Button,{icon:cb.a,label:Object(O.__)("Apply"),type:"submit"}))},Lb.LinkViewer=function({className:e,linkClassName:t,onEditLinkClick:n,url:o,urlLabel:r,...i}){return Object(l.createElement)("div",Object(c.a)({className:a()("block-editor-url-popover__link-viewer",e)},i),Object(l.createElement)(Nb,{url:o,urlLabel:r,className:t}),n&&Object(l.createElement)(m.Button,{icon:Tb.a,label:Object(O.__)("Edit"),onClick:n}))};var Pb=Lb;const Rb=({src:e,onChange:t,onSubmit:n,onClose:o})=>Object(l.createElement)(Pb,{onClose:o},Object(l.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:n},Object(l.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(O.__)("URL"),placeholder:Object(O.__)("Paste or type URL"),onChange:t,value:e}),Object(l.createElement)(m.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:cb.a,label:Object(O.__)("Apply"),type:"submit"})));var Ab=Object(m.withFilters)("editor.MediaPlaceholder")((function({value:e={},allowedTypes:t,className:n,icon:o,labels:r={},mediaPreview:c,notices:i,isAppender:u,accept:d,addToGallery:b,multiple:f=!1,dropZoneUIOnly:g,disableDropZone:h,disableMediaButtons:v,onError:j,onSelect:k,onCancel:_,onSelectURL:y,onDoubleClick:E,onFilesPreUpload:C=s.noop,onHTMLDrop:S=s.noop,children:w}){const B=Object(p.useSelect)(e=>{const{getSettings:t}=e(An);return t().mediaUpload},[]),[I,x]=Object(l.useState)(""),[T,N]=Object(l.useState)(!1);Object(l.useEffect)(()=>{var t;x(null!==(t=null==e?void 0:e.src)&&void 0!==t?t:"")},[null==e?void 0:e.src]);const L=e=>{x(e.target.value)},P=()=>{N(!0)},R=()=>{N(!1)},A=e=>{e.preventDefault(),I&&y&&(y(I),R())},M=n=>{let o;if(C(n),f)if(b){let t=[];o=n=>{const o=(null!=e?e:[]).filter(e=>e.id?!t.some(({id:t})=>Number(t)===Number(e.id)):!t.some(({urlSlug:t})=>e.url.includes(t)));k(o.concat(n)),t=n.map(e=>{const t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}})}}else o=k;else o=([e])=>k(e);B({allowedTypes:t,filesList:n,onFileChange:o,onError:j})},D=e=>{M(e.target.files)},F=(e,s)=>{let{instructions:d,title:b}=r;if(B||y||(d=Object(O.__)("To edit this block, you need permission to upload media.")),void 0===d||void 0===b){const e=null!=t?t:[],[n]=e,o=1===e.length,r=o&&"audio"===n,c=o&&"image"===n,l=o&&"video"===n;void 0===d&&B&&(d=Object(O.__)("Upload a media file or pick one from your media library."),r?d=Object(O.__)("Upload an audio file, pick one from your media library, or add one with a URL."):c?d=Object(O.__)("Upload an image file, pick one from your media library, or add one with a URL."):l&&(d=Object(O.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===b&&(b=Object(O.__)("Media"),r?b=Object(O.__)("Audio"):c?b=Object(O.__)("Image"):l&&(b=Object(O.__)("Video")))}const p=a()("block-editor-media-placeholder",n,{"is-appender":u});return Object(l.createElement)(m.Placeholder,{icon:o,label:b,instructions:d,className:p,notices:i,onClick:s,onDoubleClick:E,preview:c},e,w)},V=()=>h?null:Object(l.createElement)(m.DropZone,{onFilesDrop:M,onHTMLDrop:S}),H=()=>_&&Object(l.createElement)(m.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(O.__)("Cancel"),variant:"link",onClick:_},Object(O.__)("Cancel")),z=()=>y&&Object(l.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(l.createElement)(m.Button,{className:"block-editor-media-placeholder__button",onClick:P,isPressed:T,variant:"tertiary"},Object(O.__)("Insert from URL")),T&&Object(l.createElement)(Rb,{src:I,onChange:L,onSubmit:A,onClose:R}));return g||v?(g&&wt()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{since:"5.4",alternative:"disableMediaButtons"}),Object(l.createElement)(Ib,null,V())):Object(l.createElement)(Ib,{fallback:F(z())},(()=>{const n=Object(l.createElement)(Bb,{addToGallery:b,gallery:f&&!(!t||0===t.length)&&t.every(e=>"image"===e||e.startsWith("image/")),multiple:f,onSelect:k,allowedTypes:t,value:Array.isArray(e)?e.map(({id:e})=>e):e.id,render:({open:e})=>Object(l.createElement)(m.Button,{variant:"tertiary",onClick:t=>{t.stopPropagation(),e()}},Object(O.__)("Media Library"))});if(B&&u)return Object(l.createElement)(l.Fragment,null,V(),Object(l.createElement)(m.FormFileUpload,{onChange:D,accept:d,multiple:f,render:({openFileDialog:e})=>{const t=Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.Button,{variant:"primary",className:a()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(O.__)("Upload")),n,z(),H());return F(t,e)}}));if(B){const e=Object(l.createElement)(l.Fragment,null,V(),Object(l.createElement)(m.FormFileUpload,{variant:"primary",className:a()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:D,accept:d,multiple:f},Object(O.__)("Upload")),n,z(),H());return F(e)}return F(n)})())})),Mb=({colorSettings:e,...t})=>{const n=e.map(({value:e,onChange:t,...n})=>({...n,colorValue:e,onColorChange:t}));return Object(l.createElement)(fr,Object(c.a)({settings:n,gradients:[],disableCustomGradients:!0},t))};const Db=Object(l.forwardRef)((e,t)=>Object(l.createElement)(ad,Object(c.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0})));Db.Content=({value:e="",tagName:t="div",...n})=>Object(l.createElement)(t,n,e);var Fb=Db,Vb=Object(l.forwardRef)(({__experimentalVersion:e,...t},n)=>{if(2===e)return Object(l.createElement)(Fb,Object(c.a)({ref:n},t));const{className:o,onChange:r,...i}=t;return Object(l.createElement)(Li.a,Object(c.a)({ref:n,className:a()("block-editor-plain-text",o),onChange:e=>r(e.target.value)},i))});function Hb({property:e,viewport:t,desc:n}){const o=Object(u.useInstanceId)(Hb),r=n||Object(O.sprintf)(
68
  /* translators: 1: property name. 2: viewport name. */
69
+ Object(O._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),e,t.label);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{"aria-describedby":"rbc-desc-"+o},t.label),Object(l.createElement)(m.VisuallyHidden,{as:"span",id:"rbc-desc-"+o},r))}var zb=function(e){const{title:t,property:n,toggleLabel:o,onIsResponsiveChange:r,renderDefaultControl:c,renderResponsiveControls:i,isResponsive:s=!1,defaultLabel:u={id:"all",
70
  /* translators: 'Label. Used to signify a layout property (eg: margin, padding) will apply uniformly to all screensizes.' */
71
+ label:Object(O.__)("All")},viewports:d=[{id:"small",label:Object(O.__)("Small screens")},{id:"medium",label:Object(O.__)("Medium screens")},{id:"large",label:Object(O.__)("Large screens")}]}=e;if(!t||!n||!c)return null;const b=o||Object(O.sprintf)(
72
  /* translators: 'Toggle control label. Should the property be the same across all screen sizes or unique per screen size.'. %s property value for the control (eg: margin, padding...etc) */
73
+ Object(O.__)("Use the same %s on all screensizes."),n),p=Object(O.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),f=c(Object(l.createElement)(Hb,{property:n,viewport:u}),u);
74
+ /* translators: 'Help text for the responsive mode toggle control.' */return Object(l.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(l.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(l.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(l.createElement)(m.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:b,checked:!s,onChange:r,help:p}),Object(l.createElement)("div",{className:a()("block-editor-responsive-block-control__group",{"is-responsive":s})},!s&&f,s&&(i?i(d):d.map(e=>Object(l.createElement)(l.Fragment,{key:e.id},c(Object(l.createElement)(Hb,{property:n,viewport:e}),e)))))))};function Gb({character:e,type:t,onUse:n}){return Object(u.useKeyboardShortcut)(Yr.rawShortcut[t](e),()=>(n(),!1),{bindGlobal:!0}),null}function Ub({name:e,shortcutType:t,shortcutCharacter:n,...o}){let r,i="RichText.ToolbarControls";return e&&(i+="."+e),t&&n&&(r=Yr.displayShortcut[t](n)),Object(l.createElement)(m.Fill,{name:i},Object(l.createElement)(m.ToolbarButton,Object(c.a)({},o,{shortcut:r})))}class Wb extends l.Component{constructor(){super(...arguments),this.onInput=this.onInput.bind(this)}onInput(e){e.inputType===this.props.inputType&&this.props.onInput()}componentDidMount(){document.addEventListener("input",this.onInput,!0)}componentWillUnmount(){document.removeEventListener("input",this.onInput,!0)}render(){return null}}const Kb=Object(l.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(m.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"}));var $b=Object(l.forwardRef)((function(e,t){const n=Object(p.useSelect)(e=>e(An).isNavigationMode(),[]),{setNavigationMode:o}=Object(p.useDispatch)(An),r=e=>{o("edit"!==e)};return Object(l.createElement)(m.Dropdown,{renderToggle:({isOpen:o,onToggle:r})=>Object(l.createElement)(m.Button,Object(c.a)({},e,{ref:t,icon:n?Kb:Tb.a,"aria-expanded":o,"aria-haspopup":"true",onClick:r
75
+ /* translators: button label text should, if possible, be under 16 characters. */,label:Object(O.__)("Tools")})),position:"bottom right",renderContent:()=>Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.NavigableMenu,{role:"menu","aria-label":Object(O.__)("Tools")},Object(l.createElement)(m.MenuItemsChoice,{value:n?"select":"edit",onSelect:r,choices:[{value:"edit",label:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Xc.a,{icon:Tb.a}),Object(O.__)("Edit"))},{value:"select",label:Object(l.createElement)(l.Fragment,null,Kb,Object(O.__)("Select"))}]})),Object(l.createElement)("div",{className:"block-editor-tool-selector__help"},Object(O.__)("Tools provide different interactions for selecting, navigating, and editing blocks. Toggle between select and edit by pressing Escape and Enter.")))})}));function qb({units:e,...t}){const n=Object(m.__experimentalUseCustomUnits)({availableUnits:Io("spacing.units")||["%","px","em","rem","vw"],units:e});return Object(l.createElement)(m.__experimentalUnitControl,Object(c.a)({units:n},t))}var Yb=n(187),Xb=n(294);class Qb extends l.Component{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.submitLink=this.submitLink.bind(this),this.state={expanded:!1}}toggle(){this.setState({expanded:!this.state.expanded})}submitLink(e){e.preventDefault(),this.toggle()}render(){const{url:e,onChange:t}=this.props,{expanded:n}=this.state,o=e?Object(O.__)("Edit link"):Object(O.__)("Insert link");return Object(l.createElement)("div",{className:"block-editor-url-input__button"},Object(l.createElement)(m.Button,{icon:Yb.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!e}),n&&Object(l.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(l.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(l.createElement)(m.Button,{className:"block-editor-url-input__back",icon:Xb.a,label:Object(O.__)("Close"),onClick:this.toggle}),Object(l.createElement)(sb,{value:e||"",onChange:t}),Object(l.createElement)(m.Button,{icon:cb.a,label:Object(O.__)("Submit"),type:"submit"}))))}}var Zb=Qb,Jb=n(110);const em=["noreferrer","noopener"],tm=Object(l.createElement)(m.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(m.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(l.createElement)(m.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(l.createElement)(m.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),nm=({linkDestination:e,onChangeUrl:t,url:n,mediaType:o="image",mediaUrl:r,mediaLink:c,linkTarget:i,linkClass:a,rel:u})=>{const[d,b]=Object(l.useState)(!1),p=Object(l.useCallback)(()=>{b(!0)}),[f,g]=Object(l.useState)(!1),[h,v]=Object(l.useState)(null),j=Object(l.useRef)(null),k=Object(l.useCallback)(()=>{"media"!==e&&"attachment"!==e||v(""),g(!0)}),_=Object(l.useCallback)(()=>{g(!1)}),y=Object(l.useCallback)(()=>{v(null),_(),b(!1)}),E=e=>{let t=e;return void 0===e||Object(s.isEmpty)(t)||Object(s.isEmpty)(t)||(Object(s.each)(em,e=>{const n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")}),t!==e&&(t=t.trim()),Object(s.isEmpty)(t)&&(t=void 0)),t},C=Object(l.useCallback)(()=>e=>{const t=j.current;t&&t.contains(e.target)||(b(!1),v(null),_())}),S=Object(l.useCallback)(()=>e=>{if(h){var n;const e=(null===(n=B().find(e=>e.url===h))||void 0===n?void 0:n.linkDestination)||"custom";t({href:h,linkDestination:e})}_(),v(null),e.preventDefault()}),w=Object(l.useCallback)(()=>{t({linkDestination:"none",href:""})}),B=()=>{const e=[{linkDestination:"media",title:Object(O.__)("Media File"),url:"image"===o?r:void 0,icon:tm}];return"image"===o&&c&&e.push({linkDestination:"attachment",title:Object(O.__)("Attachment Page"),url:"image"===o?c:void 0,icon:Object(l.createElement)(m.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(m.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(l.createElement)(m.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}),e},I=Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.ToggleControl,{label:Object(O.__)("Open in new tab"),onChange:e=>{const n=(e=>{const t=e?"_blank":void 0;let n;return n=t||u?E(u):void 0,{linkTarget:t,rel:n}})(e);t(n)},checked:"_blank"===i}),Object(l.createElement)(m.TextControl,{label:Object(O.__)("Link Rel"),value:E(u)||"",onChange:e=>{t({rel:e})}}),Object(l.createElement)(m.TextControl,{label:Object(O.__)("Link CSS Class"),value:a||"",onChange:e=>{t({linkClass:e})}})),x=null!==h?h:n,T=(Object(s.find)(B(),["linkDestination",e])||{}).title;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.ToolbarButton,{icon:Yb.a,className:"components-toolbar__control",label:n?Object(O.__)("Edit link"):Object(O.__)("Insert link"),"aria-expanded":d,onClick:p}),d&&Object(l.createElement)(Pb,{onFocusOutside:C(),onClose:y,renderSettings:()=>I,additionalControls:!x&&Object(l.createElement)(m.NavigableMenu,null,Object(s.map)(B(),e=>Object(l.createElement)(m.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:()=>{v(null),(e=>{const n=B();let o;o=e?(Object(s.find)(n,t=>t.url===e)||{linkDestination:"custom"}).linkDestination:"none",t({linkDestination:o,href:e})})(e.url),_()}},e.title)))},(!n||f)&&Object(l.createElement)(Pb.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:x,onChangeInputValue:v,onSubmit:S(),autocompleteRef:j}),n&&!f&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Pb.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:n,onEditLinkClick:k,urlLabel:T}),Object(l.createElement)(m.Button,{icon:Jb.a,label:Object(O.__)("Remove link"),onClick:w}))))};var om=n(92);function rm({children:e,className:t,isEnabled:n=!0,deviceType:o,setDeviceType:r}){if(Object(u.useViewportMatch)("small","<"))return null;const c={className:a()(t,"block-editor-post-preview__dropdown-content"),position:"bottom left"},i={variant:"tertiary",className:"block-editor-post-preview__button-toggle",disabled:!n,
76
  /* translators: button label text should, if possible, be under 16 characters. */
77
+ children:Object(O.__)("Preview")};return Object(l.createElement)(m.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:c,toggleProps:i,icon:null},()=>Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.MenuGroup,null,Object(l.createElement)(m.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>r("Desktop"),icon:"Desktop"===o&&om.a},Object(O.__)("Desktop")),Object(l.createElement)(m.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>r("Tablet"),icon:"Tablet"===o&&om.a},Object(O.__)("Tablet")),Object(l.createElement)(m.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>r("Mobile"),icon:"Mobile"===o&&om.a},Object(O.__)("Mobile"))),e))}var cm=n(260);const lm=/\((min|max)-width:[^\(]*?\)/g;function im(e){return!!e.media&&!!e.media.mediaText.match(lm)}function am(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function sm(e,t){return e.replace(lm,e=>Object(cm.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)")}function um(e,t){Object(l.useEffect)(()=>{if(!t)return;const n="undefined"==typeof window?[]:Object(s.filter)(null!==(o=null===(r=window)||void 0===r||null===(c=r.document)||void 0===c?void 0:c.styleSheets)&&void 0!==o?o:[],e=>!!e.href&&Object(Pa.getProtocol)(e.href)===window.location.protocol&&Object(Pa.getAuthority)(e.href)===window.location.host);var o,r,c;const l=[];return n.forEach((n,o)=>{let r=!1;for(let c=0;c<n.cssRules.length;++c){const i=n.cssRules[c];if(i.type!==window.CSSRule.STYLE_RULE&&i.type!==window.CSSRule.MEDIA_RULE)continue;if(!r&&i.cssText.match(new RegExp("#start-"+e))&&(r=!0),r&&i.cssText.match(new RegExp("#end-"+e))&&(r=!1),!r||!im(i))continue;const a=i.cssText;l[o]||(l[o]=[]),l[o][c]=a,am(n,sm(a,t),c)}}),()=>{l.forEach((e,t)=>{if(e)for(let o=0;o<e.length;++o){const r=e[o];r&&am(n[t],r,o)}})}},[t])}function dm(e,t){const[n,o]=Object(l.useState)(window.innerWidth);Object(l.useEffect)(()=>{if("Desktop"===e)return;const t=()=>o(window.innerWidth);return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[e]);const r=e=>{let t;switch(e){case"Tablet":t=780;break;case"Mobile":t=360;break;default:return null}return t<n?t:n};return um("resizable-editor-section",t?null:r(e)),(e=>{const t="Mobile"===e?"768px":"1024px";switch(e){case"Tablet":case"Mobile":return{width:r(e),margin:(window.innerHeight<800?36:72)+"px auto",height:t,borderRadius:"2px 2px 2px 2px",border:"1px solid #ddd",overflowY:"auto"};default:return null}})(e)}var bm=Object(p.withSelect)(e=>({selectedBlockClientId:e(An).getBlockSelectionStart()}))(({selectedBlockClientId:e})=>{const t=kr(e);return e?Object(l.createElement)(m.Button,{variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{t.current.focus()}},Object(O.__)("Skip to the selected block")):null}),mm=n(114),pm=Object(p.withSelect)(e=>{const{getMultiSelectedBlocks:t}=e(An);return{blocks:t()}})((function({blocks:e}){const t=Object(mm.count)(Object(b.serialize)(e),"words");return Object(l.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},Object(l.createElement)(Ll,{icon:Cs,showColors:!0}),Object(l.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},Object(l.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},Object(O.sprintf)(
78
  /* translators: %d: number of blocks */
79
+ Object(O._n)("%d block","%d blocks",e.length),e.length)),Object(l.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},Object(O.sprintf)(
80
  /* translators: %d: number of words */
81
+ Object(O._n)("%d word","%d words",t),t))))}));function fm({blockName:e}){const{preferredStyle:t,onUpdatePreferredStyleVariations:n,styles:o}=Object(p.useSelect)(t=>{var n,o;const r=t(An).getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:null==r||null===(n=r.value)||void 0===n?void 0:n[e],onUpdatePreferredStyleVariations:null!==(o=null==r?void 0:r.onChange)&&void 0!==o?o:null,styles:t(b.store).getBlockStyles(e)}},[e]),r=Object(l.useMemo)(()=>[{label:Object(O.__)("Not set"),value:""},...o.map(({label:e,name:t})=>({label:e,value:t}))],[o]),c=Object(l.useCallback)(t=>{n(e,t)},[e,n]);return n&&Object(l.createElement)(m.SelectControl,{options:r,value:t||"",label:Object(O.__)("Default Style"),onChange:c})}const gm=({clientId:e,blockName:t,hasBlockStyles:n,bubblesVirtually:o})=>{const r=Hl(e);return Object(l.createElement)("div",{className:"block-editor-block-inspector"},Object(l.createElement)(ca,r),Object(l.createElement)(kd,{blockClientId:e}),n&&Object(l.createElement)("div",null,Object(l.createElement)(m.PanelBody,{title:Object(O.__)("Styles")},Object(l.createElement)(xs,{clientId:e}),Object(b.hasBlockSupport)(t,"defaultStylePicker",!0)&&Object(l.createElement)(fm,{blockName:t}))),Object(l.createElement)(_o.Slot,{bubblesVirtually:o}),Object(l.createElement)("div",null,Object(l.createElement)(hm,{slotName:Oo.slotName,bubblesVirtually:o})),Object(l.createElement)(bm,{key:"back"}))},hm=({slotName:e,bubblesVirtually:t})=>{const n=Object(m.__experimentalUseSlot)(e);return Boolean(n.fills&&n.fills.length)?Object(l.createElement)(m.PanelBody,{className:"block-editor-block-inspector__advanced",title:Object(O.__)("Advanced"),initialOpen:!1},Object(l.createElement)(Oo.Slot,{bubblesVirtually:t})):null};var Om=({showNoBlockSelectedMessage:e=!0,bubblesVirtually:t=!0})=>{const{count:n,hasBlockStyles:o,selectedBlockName:r,selectedBlockClientId:c,blockType:i}=Object(p.useSelect)(e=>{const{getSelectedBlockClientId:t,getSelectedBlockCount:n,getBlockName:o}=e(An),{getBlockStyles:r}=e(b.store),c=t(),l=c&&o(c),i=l&&Object(b.getBlockType)(l),a=l&&r(l);return{count:n(),selectedBlockClientId:c,selectedBlockName:l,blockType:i,hasBlockStyles:a&&a.length>0}},[]);if(n>1)return Object(l.createElement)("div",{className:"block-editor-block-inspector"},Object(l.createElement)(pm,null),Object(l.createElement)(_o.Slot,{bubblesVirtually:t}));const a=r===Object(b.getUnregisteredTypeHandlerName)();return i&&c&&!a?Object(l.createElement)(gm,{clientId:c,blockName:i.name,hasBlockStyles:o,bubblesVirtually:t}):e?Object(l.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(O.__)("No block selected.")):null};function vm({children:e,__unstableContentRef:t}){const n=Object(u.useViewportMatch)("medium"),o=Object(p.useSelect)(e=>e(An).getSettings().hasFixedToolbar,[]);return Object(l.createElement)(us,{__unstableContentRef:t},(o||!n)&&Object(l.createElement)(lu,{isFixed:!0}),Object(l.createElement)(uu,{__unstableContentRef:t}),Object(l.createElement)(m.Popover.Slot,{name:"block-toolbar",ref:is(t)}),e)}var jm=n(261),km=n.n(jm);const _m=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function ym(e){return e?e.replace(/^\s+|\s+$/g,""):""}var Em=n(166),Cm=n.n(Em),Sm=wm;function wm(e){this.options=e||{}}wm.prototype.emit=function(e){return e},wm.prototype.visit=function(e){return this[e.type](e)},wm.prototype.mapVisit=function(e,t){let n="";t=t||"";for(let o=0,r=e.length;o<r;o++)n+=this.visit(e[o]),t&&o<r-1&&(n+=this.emit(t));return n};var Bm=Im;function Im(e){Sm.call(this,e)}Cm()(Im,Sm),Im.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},Im.prototype.comment=function(e){return this.emit("",e.position)},Im.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},Im.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Im.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Im.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},Im.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},Im.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Im.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},Im.prototype.keyframe=function(e){const t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},Im.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},Im.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},Im.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Im.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},Im.prototype.rule=function(e){const t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},Im.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var xm=Tm;function Tm(e){e=e||{},Sm.call(this,e),this.indentation=e.indent}Cm()(Tm,Sm),Tm.prototype.compile=function(e){return this.stylesheet(e)},Tm.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},Tm.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},Tm.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},Tm.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Tm.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Tm.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},Tm.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},Tm.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Tm.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.keyframes,"\n")+this.emit(this.indent(-1)+"}")},Tm.prototype.keyframe=function(e){const t=e.declarations;return this.emit(this.indent())+this.emit(e.values.join(", "),e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},Tm.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", ")+" ":"";return this.emit("@page "+t,e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},Tm.prototype["font-face"]=function(e){return this.emit("@font-face ",e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},Tm.prototype.host=function(e){return this.emit("@host",e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Tm.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},Tm.prototype.rule=function(e){const t=this.indent(),n=e.declarations;return n.length?this.emit(e.selectors.map((function(e){return t+e})).join(",\n"),e.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},Tm.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},Tm.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var Nm=function(e,t){try{const r=function(e,t){t=t||{};let n=1,o=1;function r(e){const t=e.match(/\n/g);t&&(n+=t.length);const r=e.lastIndexOf("\n");o=~r?e.length-r:o+e.length}function c(){const e={line:n,column:o};return function(t){return t.position=new l(e),m(),t}}function l(e){this.start=e,this.end={line:n,column:o},this.source=t.source}l.prototype.content=e;const i=[];function a(r){const c=new Error(t.source+":"+n+":"+o+": "+r);if(c.reason=r,c.filename=t.source,c.line=n,c.column=o,c.source=e,!t.silent)throw c;i.push(c)}function s(){return b(/^{\s*/)}function u(){return b(/^}/)}function d(){let t;const n=[];for(m(),p(n);e.length&&"}"!==e.charAt(0)&&(t=E()||C());)!1!==t&&(n.push(t),p(n));return n}function b(t){const n=t.exec(e);if(!n)return;const o=n[0];return r(o),e=e.slice(o.length),n}function m(){b(/^\s*/)}function p(e){let t;for(e=e||[];t=f();)!1!==t&&e.push(t);return e}function f(){const t=c();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return a("End of comment missing");const l=e.slice(2,n-2);return o+=2,r(l),e=e.slice(n),o+=2,t({type:"comment",comment:l})}function g(){const e=b(/^([^{]+)/);if(e)return ym(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function h(){const e=c();let t=b(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;if(t=ym(t[0]),!b(/^:\s*/))return a("property missing ':'");const n=b(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),o=e({type:"declaration",property:t.replace(_m,""),value:n?ym(n[0]).replace(_m,""):""});return b(/^[;\s]*/),o}function O(){const e=[];if(!s())return a("missing '{'");let t;for(p(e);t=h();)!1!==t&&(e.push(t),p(e));return u()?e:a("missing '}'")}function v(){let e;const t=[],n=c();for(;e=b(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),b(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:O()})}const j=y("import"),k=y("charset"),_=y("namespace");function y(e){const t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){const n=c(),o=b(t);if(!o)return;const r={type:e};return r[e]=o[1].trim(),n(r)}}function E(){if("@"===e[0])return function(){const e=c();let t=b(/^@([-\w]+)?keyframes\s*/);if(!t)return;const n=t[1];if(t=b(/^([-\w]+)\s*/),!t)return a("@keyframes missing name");const o=t[1];if(!s())return a("@keyframes missing '{'");let r,l=p();for(;r=v();)l.push(r),l=l.concat(p());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:l}):a("@keyframes missing '}'")}()||function(){const e=c(),t=b(/^@media *([^{]+)/);if(!t)return;const n=ym(t[1]);if(!s())return a("@media missing '{'");const o=p().concat(d());return u()?e({type:"media",media:n,rules:o}):a("@media missing '}'")}()||function(){const e=c(),t=b(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:ym(t[1]),media:ym(t[2])})}()||function(){const e=c(),t=b(/^@supports *([^{]+)/);if(!t)return;const n=ym(t[1]);if(!s())return a("@supports missing '{'");const o=p().concat(d());return u()?e({type:"supports",supports:n,rules:o}):a("@supports missing '}'")}()||j()||k()||_()||function(){const e=c(),t=b(/^@([-\w]+)?document *([^{]+)/);if(!t)return;const n=ym(t[1]),o=ym(t[2]);if(!s())return a("@document missing '{'");const r=p().concat(d());return u()?e({type:"document",document:o,vendor:n,rules:r}):a("@document missing '}'")}()||function(){const e=c();if(!b(/^@page */))return;const t=g()||[];if(!s())return a("@page missing '{'");let n,o=p();for(;n=h();)o.push(n),o=o.concat(p());return u()?e({type:"page",selectors:t,declarations:o}):a("@page missing '}'")}()||function(){const e=c();if(!b(/^@host\s*/))return;if(!s())return a("@host missing '{'");const t=p().concat(d());return u()?e({type:"host",rules:t}):a("@host missing '}'")}()||function(){const e=c();if(!b(/^@font-face\s*/))return;if(!s())return a("@font-face missing '{'");let t,n=p();for(;t=h();)n.push(t),n=n.concat(p());return u()?e({type:"font-face",declarations:n}):a("@font-face missing '}'")}()}function C(){const e=c(),t=g();return t?(p(),e({type:"rule",selectors:t,declarations:O()})):a("selector missing")}return function e(t,n){const o=t&&"string"==typeof t.type,r=o?t:n;for(const n in t){const o=t[n];Array.isArray(o)?o.forEach((function(t){e(t,r)})):o&&"object"==typeof o&&e(o,r)}return o&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null}),t}(function(){const e=d();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:i}}}())}(e);return n=km.a.map(r,(function(e){if(!e)return e;const n=t(e);return this.update(n)})),((o=o||{}).compress?new Bm(o):new xm(o)).compile(n)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}var n,o};function Lm(e){return 0!==e.value.indexOf("data:")&&0!==e.value.indexOf("#")&&(t=e.value,!/^\/(?!\/)/.test(t)&&!function(e){return/^(?:https?:)?\/\//.test(e)}(e.value));var t}function Pm(e,t){return new URL(e,t).toString()}const Rm=/^(body|html|:root).*$/;var Am=(e,t="")=>Object(s.map)(e,({css:e,baseURL:n,__experimentalNoWrapper:o=!1})=>{const r=[];return t&&!o&&r.push(((e,t=[])=>n=>"rule"===n.type?{...n,selectors:n.selectors.map(n=>t.includes(n.trim())?n:n.match(Rm)?n.replace(/^(body|html|:root)/,e):e+" "+n)}:n)(t)),n&&r.push((c=n,e=>{if("declaration"===e.type){const r=function(e){const t=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g;let n;const o=[];for(;null!==(n=t.exec(e));){const e={source:n[0],before:n[1],quote:n[2],value:n[3],after:n[4]};Lm(e)&&o.push(e)}return o}(e.value).map((o=c,e=>({...e,newUrl:"url("+e.before+e.quote+Pm(e.value,o)+e.quote+e.after+")"})));return{...e,value:(t=e.value,n=r,n.forEach(e=>{t=t.replace(e.source,e.newUrl)}),t)}}var t,n,o;return e})),r.length?Nm(e,Object(u.compose)(r)):e;var c});function Mm(e){return Object(l.useCallback)(e=>{if(!e)return;const{ownerDocument:t}=e,{defaultView:n,body:o}=t,r=t.querySelector(".editor-styles-wrapper");let c;if(r)c=n.getComputedStyle(r,null).getPropertyValue("background-color");else{const e=t.createElement("div");e.classList.add("editor-styles-wrapper"),o.appendChild(e),c=n.getComputedStyle(e,null).getPropertyValue("background-color"),o.removeChild(e)}To()(c).getLuminance()>.5||0===To()(c).getAlpha()?o.classList.remove("is-dark-theme"):o.classList.add("is-dark-theme")},[e])}function Dm({styles:e}){const t=Object(l.useMemo)(()=>Am(e,".editor-styles-wrapper"),[e]);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("style",{ref:Mm(e)}),t.map((e,t)=>Object(l.createElement)("style",{key:t},e)))}var Fm=function({rootClientId:e,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r=!1,__experimentalInsertionIndex:c,onSelect:i=s.noop,shouldFocusBlock:a=!1}){const u=Object(p.useSelect)(n=>{const{getBlockRootClientId:o}=n(An);return e||o(t)||void 0},[t,e]);return Object(l.createElement)($a,{onSelect:i,rootClientId:u,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r,__experimentalInsertionIndex:c,shouldFocusBlock:a})};function Vm(){const{clientIds:e,rootClientId:t}=Object(p.useSelect)(e=>{const{getSelectedBlockClientIds:t,getBlockRootClientId:n}=e(An),o=t(),[r]=o;return{clientIds:o,rootClientId:n(r)}},[]),{duplicateBlocks:n,removeBlocks:o,insertAfterBlock:r,insertBeforeBlock:c,clearSelectedBlock:i,moveBlocksUp:a,moveBlocksDown:u}=Object(p.useDispatch)(An);return Object(ps.useShortcut)("core/block-editor/move-up",Object(l.useCallback)(n=>{n.preventDefault(),a(e,t)},[e,a]),{bindGlobal:!0,isDisabled:0===e.length}),Object(ps.useShortcut)("core/block-editor/move-down",Object(l.useCallback)(n=>{n.preventDefault(),u(e,t)},[e,u]),{bindGlobal:!0,isDisabled:0===e.length}),Object(ps.useShortcut)("core/block-editor/duplicate",Object(l.useCallback)(t=>{t.preventDefault(),n(e)},[e,n]),{bindGlobal:!0,isDisabled:0===e.length}),Object(ps.useShortcut)("core/block-editor/remove",Object(l.useCallback)(t=>{t.preventDefault(),o(e)},[e,o]),{bindGlobal:!0,isDisabled:0===e.length}),Object(ps.useShortcut)("core/block-editor/insert-after",Object(l.useCallback)(t=>{t.preventDefault(),r(Object(s.last)(e))},[e,r]),{bindGlobal:!0,isDisabled:0===e.length}),Object(ps.useShortcut)("core/block-editor/insert-before",Object(l.useCallback)(t=>{t.preventDefault(),c(Object(s.first)(e))},[e,c]),{bindGlobal:!0,isDisabled:0===e.length}),Object(ps.useShortcut)("core/block-editor/delete-multi-selection",Object(l.useCallback)(t=>{t.preventDefault(),o(e)},[e,o]),{isDisabled:e.length<2}),Object(ps.useShortcut)("core/block-editor/unselect",Object(l.useCallback)(e=>{e.preventDefault(),i(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges()},[e,i]),{isDisabled:e.length<2}),null}Vm.Register=function(){const{registerShortcut:e}=Object(p.useDispatch)(ps.store);return Object(l.useEffect)(()=>{e({name:"core/block-editor/duplicate",category:"block",description:Object(O.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(O.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(O.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Object(O.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:Object(O.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(O.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:Object(O.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(O.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Object(O.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Object(O.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})},[e]),null};var Hm=Vm;function zm(){return wt()("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in."}),null}const Gm=new Set([Yr.UP,Yr.RIGHT,Yr.DOWN,Yr.LEFT,Yr.ENTER,Yr.BACKSPACE]);function Um(){const e=Object(p.useSelect)(e=>e(An).isTyping()),{stopTyping:t}=Object(p.useDispatch)(An);return Object(u.useRefEffect)(n=>{if(!e)return;const{ownerDocument:o}=n;let r,c;function l(e){const{clientX:n,clientY:o}=e;r&&c&&(r!==n||c!==o)&&t(),r=n,c=o}return o.addEventListener("mousemove",l),()=>{o.removeEventListener("mousemove",l)}},[e,t])}function Wm(){const e=Object(p.useSelect)(e=>e(An).isTyping()),{startTyping:t,stopTyping:n}=Object(p.useDispatch)(An),o=Um(),r=Object(u.useRefEffect)(o=>{const{ownerDocument:r}=o,{defaultView:c}=r;if(e){let e;function l(t){const{target:o}=t;e=c.setTimeout(()=>{Object(ri.isTextField)(o)||n()})}function i(e){const{keyCode:t}=e;t!==Yr.ESCAPE&&t!==Yr.TAB||n()}function a(){const e=c.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||n()}return o.addEventListener("focus",l),o.addEventListener("keydown",i),r.addEventListener("selectionchange",a),()=>{c.clearTimeout(e),o.removeEventListener("focus",l),o.removeEventListener("keydown",i),r.removeEventListener("selectionchange",a)}}function s(e){const{type:n,target:r}=e;Object(ri.isTextField)(r)&&o.contains(r)&&("keydown"!==n||function(e){const{keyCode:t,shiftKey:n}=e;return!n&&Gm.has(t)}(e))&&t()}return o.addEventListener("keypress",s),o.addEventListener("keydown",s),()=>{o.removeEventListener("keypress",s),o.removeEventListener("keydown",s)}},[e,t,n]);return Object(u.useMergeRefs)([o,r])}var Km=function({children:e}){return Object(l.createElement)("div",{ref:Wm()},e)};function $m(){return wt()("PreserveScrollInReorder component",{since:"5.4",hint:"This behavior is now built-in the block list"}),null}const qm=-1!==window.navigator.userAgent.indexOf("Trident"),Ym=new Set([Yr.UP,Yr.DOWN,Yr.LEFT,Yr.RIGHT]);function Xm(){const e=Object(p.useSelect)(e=>e(An).hasSelectedBlock());return Object(u.useRefEffect)(t=>{if(!e)return;const{ownerDocument:n}=t,{defaultView:o}=n;let r,c,l;function i(){r||(r=o.requestAnimationFrame(()=>{b(),r=null}))}function a(e){c&&o.cancelAnimationFrame(c),c=o.requestAnimationFrame(()=>{s(e),c=null})}function s({keyCode:e}){if(!m())return;const r=Object(ri.computeCaretRect)(o);if(!r)return;if(!l)return void(l=r);if(Ym.has(e))return void(l=r);const c=r.top-l.top;if(0===c)return;const i=Object(ri.getScrollContainer)(t);if(!i)return;const a=i===n.body,s=a?o.scrollY:i.scrollTop,u=a?0:i.getBoundingClientRect().top,d=a?l.top/o.innerHeight:(l.top-u)/(o.innerHeight-u);if(0===s&&d<.75&&function(){const e=t.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===n.activeElement}())return void(l=r);const b=a?o.innerHeight:i.clientHeight;l.top+l.height>u+b||l.top<u?l=r:a?o.scrollBy(0,c):i.scrollTop+=c}function u(){n.addEventListener("selectionchange",d)}function d(){n.removeEventListener("selectionchange",d),b()}function b(){m()&&(l=Object(ri.computeCaretRect)(o))}function m(){return t.contains(n.activeElement)&&n.activeElement.isContentEditable}return o.addEventListener("scroll",i,!0),o.addEventListener("resize",i,!0),t.addEventListener("keydown",a),t.addEventListener("keyup",s),t.addEventListener("mousedown",u),t.addEventListener("touchstart",u),()=>{o.removeEventListener("scroll",i,!0),o.removeEventListener("resize",i,!0),t.removeEventListener("keydown",a),t.removeEventListener("keyup",s),t.removeEventListener("mousedown",u),t.removeEventListener("touchstart",u),n.removeEventListener("selectionchange",d),o.cancelAnimationFrame(r),o.cancelAnimationFrame(c)}},[e])}var Qm=qm?e=>e.children:function({children:e}){return Object(l.createElement)("div",{ref:Xm(),className:"block-editor__typewriter"},e)};function Zm(e,t){const n="start"===t?"firstChild":"lastChild",o="start"===t?"nextSibling":"previousSibling";for(;e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/^[ \t\n]*$/.test(e.data)&&e[o];)e=e[o];return e}function Jm(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:o,getSelectedBlockClientId:r}=e(An);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:o(),selectedBlockClientId:r()}}function ep(){const e=Object(l.useRef)(),{isMultiSelecting:t,multiSelectedBlockClientIds:n,hasMultiSelection:o,selectedBlockClientId:r}=Object(p.useSelect)(Jm,[]),c=kr(r),i=kr(Object(s.first)(n)),a=kr(Object(s.last)(n));return Object(l.useEffect)(()=>{const{ownerDocument:l}=e.current,{defaultView:s}=l;if(!o||t){if(!r||t)return;const e=s.getSelection();if(e.rangeCount&&!e.isCollapsed){const t=c.current,{startContainer:n,endContainer:o}=e.getRangeAt(0);!t||t.contains(n)&&t.contains(o)||e.removeAllRanges()}return}const{length:u}=n;if(u<2)return;e.current.focus();const d=s.getSelection(),b=l.createRange(),m=Zm(i.current,"start"),p=Zm(a.current,"end");var f;f=e.current,Array.from(f.querySelectorAll(".rich-text")).forEach(e=>{e.removeAttribute("contenteditable")}),b.setStartBefore(m),b.setEndAfter(p),d.removeAllRanges(),d.addRange(b)},[o,t,n,r]),e}function tp(e){const{tagName:t}=e;return"INPUT"===t||"BUTTON"===t||"SELECT"===t||"TEXTAREA"===t}function np(e,t,n,o){let r,c=ri.focus.focusable.find(n);return t&&(c=Object(s.reverse)(c)),c=c.slice(c.indexOf(e)+1),o&&(r=e.getBoundingClientRect()),Object(s.find)(c,(function(e){if(!ri.focus.tabbable.isTabbableIndex(e))return!1;if(e.isContentEditable&&"true"!==e.contentEditable)return!1;if(o){const t=e.getBoundingClientRect();if(t.left>=r.right||t.right<=r.left)return!1}return!0}))}function op(){const{getSelectedBlockClientId:e,getMultiSelectedBlocksStartClientId:t,getMultiSelectedBlocksEndClientId:n,getPreviousBlockClientId:o,getNextBlockClientId:r,getFirstMultiSelectedBlockClientId:c,getLastMultiSelectedBlockClientId:l,getSettings:i,hasMultiSelection:a}=Object(p.useSelect)(An),{multiSelect:s,selectBlock:d}=Object(p.useDispatch)(An);return Object(u.useRefEffect)(u=>{let b;function m(){b=null}function p(c){const l=e(),i=t(),a=n(),u=o(a||l),b=r(a||l),m=c?u:b;m&&(i===m?d(m):s(i||l,m))}function f(e){const t=c(),n=l(),o=e?t:n;o&&d(o)}function g(t){const{keyCode:c,target:l}=t,s=c===Yr.UP,d=c===Yr.DOWN,m=c===Yr.LEFT,g=c===Yr.RIGHT,h=s||m,O=m||g,v=s||d,j=O||v,k=t.shiftKey,_=k||t.ctrlKey||t.altKey||t.metaKey,y=v?ri.isVerticalEdge:ri.isHorizontalEdge,{ownerDocument:E}=u,{defaultView:C}=E;if(a())return void(j&&((k?p:f)(h),t.preventDefault()));if(v?b||(b=Object(ri.computeCaretRect)(C)):b=null,t.defaultPrevented)return;if(!j)return;if(!function(e,t,n){if((t===Yr.UP||t===Yr.DOWN)&&!n)return!0;const{tagName:o}=e;return"INPUT"!==o&&"TEXTAREA"!==o}(l,c,_))return;const S=Object(ri.isRTL)(l)?!h:h,{keepCaretInsideBlock:w}=i(),B=e();if(k){const e=n(),c=o(e||B),i=r(e||B);(h&&c||!h&&i)&&function(e,t){const n=np(e,t,u);return!(n&&(o=e,r=n,o.closest(Ri)===r.closest(Ri)));var o,r}(l,h)&&y(l,h)&&(p(h),t.preventDefault())}else if(v&&Object(ri.isVerticalEdge)(l,h)&&!w){const e=np(l,h,u,!0);e&&(Object(ri.placeCaretAtVerticalEdge)(e,h,b),t.preventDefault())}else if(O&&C.getSelection().isCollapsed&&Object(ri.isHorizontalEdge)(l,S)&&!w){const e=np(l,S,u);Object(ri.placeCaretAtHorizontalEdge)(e,h),t.preventDefault()}}return u.addEventListener("mousedown",m),u.addEventListener("keydown",g),()=>{u.removeEventListener("mousedown",m),u.removeEventListener("keydown",g)}},[])}function rp(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=Object(p.useSelect)(An),{multiSelect:o}=Object(p.useDispatch)(An),r=Object(ps.__unstableUseShortcutEventMatch)();return Object(u.useRefEffect)(c=>{function l(c){const l=t();if(!l.length)return;if(!r("core/block-editor/select-all",c))return;if(1===l.length&&!Object(ri.isEntirelySelected)(c.target))return;const[i]=l,a=n(i);let u=e(a);l.length===u.length&&(u=e(n(a)));const d=Object(s.first)(u),b=Object(s.last)(u);d!==b&&(o(d,b),c.preventDefault())}return c.addEventListener("keydown",l),()=>{c.removeEventListener("keydown",l)}})}function cp({children:e}){const[t,n,o]=function(){const e=Object(l.useRef)(),t=Object(l.useRef)(),n=Object(l.useRef)(),o=Object(l.useRef)(),{hasMultiSelection:r,getSelectedBlockClientId:c}=Object(p.useSelect)(An),{setNavigationMode:i}=Object(p.useDispatch)(An),a=Object(p.useSelect)(e=>e(An).isNavigationMode(),[])?void 0:"0",s=Object(l.useRef)();function d(t){if(s.current)s.current=null;else if(r())e.current.focus();else if(c())o.current.focus();else{i(!0);const n=t.target.compareDocumentPosition(e.current)&t.target.DOCUMENT_POSITION_FOLLOWING?"findNext":"findPrevious";ri.focus.tabbable[n](t.target).focus()}}const b=Object(l.createElement)("div",{ref:t,tabIndex:a,onFocus:d}),m=Object(l.createElement)("div",{ref:n,tabIndex:a,onFocus:d}),f=Object(u.useRefEffect)(l=>{function a(e){if(e.keyCode===Yr.ESCAPE&&!r())return e.stopPropagation(),void i(!0);if(e.keyCode!==Yr.TAB)return;const o=e.shiftKey,l=o?"findPrevious":"findNext";if(!r()&&!c())return;if(tp(e.target)&&tp(ri.focus.tabbable[l](e.target)))return;const a=o?t:n;s.current=!0,a.current.focus({preventScroll:!0})}function u(e){o.current=e.target}function d(o){var r;if(o.keyCode!==Yr.TAB)return;if("region"===(null===(r=o.target)||void 0===r?void 0:r.getAttribute("role")))return;if(e.current===o.target)return;const c=o.shiftKey?"findPrevious":"findNext",l=ri.focus.tabbable[c](o.target);l!==t.current&&l!==n.current||(o.preventDefault(),l.focus({preventScroll:!0}))}return l.ownerDocument.defaultView.addEventListener("keydown",d),l.addEventListener("keydown",a),l.addEventListener("focusout",u),()=>{l.ownerDocument.defaultView.removeEventListener("keydown",d),l.removeEventListener("keydown",a),l.removeEventListener("focusout",u)}},[]);return[b,Object(u.useMergeRefs)([e,f]),m]}(),r=Object(p.useSelect)(e=>e(An).hasMultiSelection(),[]);return Object(l.createElement)(l.Fragment,null,t,Object(l.createElement)("div",{ref:Object(u.useMergeRefs)([n,ep(),rp(),op()]),className:"block-editor-writing-flow",tabIndex:r?"0":void 0,"aria-label":r?Object(O.__)("Multiple selected blocks"):void 0},e),o)}const lp=Object(s.overEvery)([ri.isTextField,ri.focus.tabbable.isTabbableIndex]);function ip(){return Object(u.useRefEffect)(e=>{function t(t){if(t.target!==e)return;const n=ri.focus.focusable.find(e),o=Object(s.findLast)(n,lp);if(!o)return;const{bottom:r}=o.getBoundingClientRect();t.clientY<r||(Object(ri.placeCaretAtHorizontalEdge)(o,!0),t.preventDefault())}return e.addEventListener("mousedown",t),()=>{e.addEventListener("mousedown",t)}},[])}function ap(e){e.dir=document.dir,e.body.className="editor-styles-wrapper";for(const t of document.body.classList)t.startsWith("admin-color-")?e.body.classList.add(t):"wp-embed-responsive"===t&&e.body.classList.add("wp-embed-responsive")}function sp(e){return Object(l.useMemo)(()=>{const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,Array.from(t.body.children)},[e])}var up=Object(l.forwardRef)((function({contentRef:e,children:t,head:n,...o},r){const[,i]=Object(l.useReducer)(()=>({})),[a,s]=Object(l.useState)(),d=sp(window.__editorAssets.styles),b=sp(window.__editorAssets.scripts),p=bu(),f=Object(l.useCallback)(t=>{function n(){const{contentDocument:n}=t,{readyState:o,body:r,documentElement:c}=n;return("interactive"===o||"complete"===o)&&("function"==typeof e?e(r):e&&(e.current=r),ap(n),function(e){const{defaultView:t}=e,{frameElement:n}=t;function o(e){const o=Object.getPrototypeOf(e).constructor.name,r=window[o],c={};for(const t in e)c[t]=e[t];if(e instanceof t.MouseEvent){const e=n.getBoundingClientRect();c.clientX+=e.left,c.clientY+=e.top}const l=new r(e.type,c);!n.dispatchEvent(l)&&e.preventDefault()}const r=["keydown","keypress","dragover"];for(const t of r)e.addEventListener(t,o)}(n),ap(n),s(n),p(c),p(r),b.reduce((e,t)=>e.then(()=>async function(e,{id:t,src:n}){return new Promise((o,r)=>{const c=e.createElement("script");c.id=t,n?(c.src=n,c.onload=()=>o(),c.onerror=()=>r()):o(),e.head.appendChild(c)})}(n,t)),Promise.resolve()).finally(()=>{i()}),!0)}t&&(n()||t.addEventListener("load",()=>{n()}))},[]);return Object(l.useEffect)(()=>{var e;a&&(e=a,Array.from(document.styleSheets).forEach(t=>{try{t.cssRules}catch(e){return}const{ownerNode:n,cssRules:o}=t;o&&Array.from(o).find(({selectorText:e})=>e&&(e.includes(".editor-styles-wrapper")||e.includes(".wp-block")))&&!e.getElementById(n.id)&&(console.error(`Stylesheet ${n.id} was not properly added.\nFor blocks, use the block API's style (https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#style) or editorStyle (https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#editor-style).\nFor themes, use add_editor_style (https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/#editor-styles).`,n),e.head.appendChild(n.cloneNode(!0)))}))},[a]),n=Object(l.createElement)(l.Fragment,null,Object(l.createElement)("style",null,"body{margin:0}"),d.map(({tagName:e,href:t,id:n,rel:o,media:r},c)=>{const i=e.toLowerCase();return Object(l.createElement)(i,{href:t,id:n,rel:o,media:r,key:c})}),n),Object(l.createElement)("iframe",Object(c.a)({},o,{ref:Object(u.useMergeRefs)([r,f]),tabIndex:"0",title:Object(O.__)("Editor canvas"),name:"editor-canvas"}),a&&Object(l.createPortal)(Object(l.createElement)(m.__experimentalStyleProvider,{document:a},t),a.body),a&&Object(l.createPortal)(n,a.head))}));const dp=Object(l.createContext)({});function bp(e,t=""){var n;const o=Object(l.useContext)(dp),{name:r}=h();t=t||r;const c=Boolean(null===(n=o[t])||void 0===n?void 0:n.has(e)),i=Object(l.useMemo)(()=>function(e,t,n){const o={...e,[t]:e[t]?new Set(e[t]):new Set};return o[t].add(n),o}(o,t,e),[o,t,e]);return[c,Object(l.useCallback)(({children:e})=>Object(l.createElement)(dp.Provider,{value:i},e),[i])]}function mp(e){if(void 0===e)e=j.colors;else{const t=e.filter(e=>e.color);0===t.length?e=j.colors:t.length<e.length&&(e=t)}return e}function pp(e){if(void 0===e)e=j.gradients;else{const t=e.filter(e=>e.gradient);0===t.length?e=j.gradients:t.length<e.length&&(e=t)}return e}},47:function(e,t){e.exports=window.wp.isShallowEqual},6:function(e,t){e.exports=window.wp.primitives},7:function(e,t,n){"use strict";function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return o}))},8:function(e,t){e.exports=window.wp.blocks},89:function(e,t,n){"use strict";t.__esModule=!0;var o=n(182);t.default=o.TextareaAutosize},9:function(e,t){e.exports=window.wp.compose},91:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{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"}));t.a=c},92:function(e,t,n){"use strict";var o=n(0),r=n(6);const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=c}});
build/block-editor/style-rtl.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}#start-resizable-editor-section{display:none}.block-editor-autocompleters__block{white-space:nowrap}.block-editor-autocompleters__block .block-editor-block-icon{margin-left:8px}.block-editor-block-alignment-matrix-control__popover .components-popover__content{min-width:0;width:auto}.block-editor-block-alignment-matrix-control__popover .components-popover__content>div{padding:8px}.block-editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}.block-editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.block-editor-block-inspector p{margin-top:0}.block-editor-block-inspector h2,.block-editor-block-inspector h3{font-size:13px;color:#1e1e1e;margin-bottom:1.5em}.block-editor-block-inspector .components-base-control{margin-bottom:24px}.block-editor-block-inspector .components-base-control:last-child{margin-bottom:8px}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e0e0e0}.block-editor-block-inspector .block-editor-block-card{padding:16px}.block-editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.block-editor-block-styles .block-editor-block-list__block{margin:0}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout.is-navigate-mode{cursor:default}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-hovered:after,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;right:1px;left:1px;box-shadow:0 0 0 1px var(--wp-admin-theme-color);border-radius:1px;outline:2px solid transparent}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-dark-theme .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-hovered:after,.is-dark-theme .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted .components-placeholder ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .components-placeholder ::selection,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-hovered .components-placeholder ::selection,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected .components-placeholder ::selection{background:transparent}.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-hovered:not(.is-selected):after{box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after{box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:1px solid transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.has-child-selected,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:var(--wp-admin-border-width-focus) solid transparent}.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected:before{content:"";position:absolute;z-index:0;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;left:0;right:0;top:-14px;border-radius:2px;border-top:4px solid #ccc}.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected:after{content:none}.block-editor-block-list__layout .is-block-moving-mode.can-insert-moving-block.block-editor-block-list__block.is-selected:before{border-color:var(--wp-admin-theme-color)}.is-block-moving-mode.block-editor-block-list__block-selection-button{opacity:0;font-size:1px;height:1px;padding:0}.block-editor-block-list__layout .block-editor-block-list__block{position:relative;overflow-wrap:break-word}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-right:0;margin-left:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus{outline:none}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;right:1px;left:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);border-radius:1px}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-block-list__layout .block-editor-block-list__block:after{content:"";pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0;border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) transparent}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:48px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:2px;background-color:hsla(0,0%,100%,.4)}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay:after{display:block}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.has-child-selected:after{box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter{right:auto;left:8px}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:after{top:1px;right:1px;left:1px;bottom:1px;box-shadow:0 0 0 1px var(--wp-admin-theme-color);border-radius:1px}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected{cursor:unset}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);top:1px;right:1px;left:1px;bottom:1px;border-radius:1px}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected:focus:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){transition-duration:0s;transition-delay:0s}}.is-focus-mode .block-editor-block-list__block:not(.has-child-selected) .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-multi-selected,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-selected{opacity:1}.is-root-container:not(.is-focus-mode) .block-editor-block-list__block.has-active-entity{opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.is-root-container:not(.is-focus-mode) .block-editor-block-list__block.has-active-entity{transition-duration:0s;transition-delay:0s}}.is-root-container:not(.is-focus-mode) .block-editor-block-list__block.has-active-entity.has-child-selected,.is-root-container:not(.is-focus-mode) .block-editor-block-list__block.has-active-entity.is-active-entity,.is-root-container:not(.is-focus-mode) .block-editor-block-list__block.has-active-entity.is-active-entity .block-editor-block-list__block,.is-root-container:not(.is-focus-mode) .block-editor-block-list__block.has-active-entity .is-active-entity .block-editor-block-list__block,.is-root-container:not(.is-focus-mode) .block-editor-block-list__block.has-active-entity:not(.has-child-selected) .block-editor-block-list__block{opacity:1}.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.block-editor-block-list .block-editor-inserter{margin:8px;cursor:move;cursor:grab}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0}to{opacity:1}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-duration:1ms;animation-delay:0s}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{display:block;margin:0;padding:12px;width:100%;border:none;outline:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;transition:padding .2s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-duration:0s;transition-delay:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{z-index:5;position:relative}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-block-list__insertion-point{position:absolute}.block-editor-block-list__insertion-point-indicator{position:absolute;background:var(--wp-admin-theme-color);animation:block-editor-inserter__toggle__fade-in-animation-delayed .3s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-list__insertion-point-indicator{animation-duration:1ms;animation-delay:0s}}.block-editor-block-list__insertion-point.is-vertical>.block-editor-block-list__insertion-point-indicator{top:50%;left:0;right:0;height:1px}.block-editor-block-list__insertion-point.is-horizontal>.block-editor-block-list__insertion-point-indicator{top:0;left:0;right:50%;height:100%;width:1px}.block-editor-block-list__insertion-point-inserter{display:none;position:absolute;justify-content:center;top:calc(50% - 12px);right:calc(50% - 12px)}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__block-popover-inserter{position:absolute;top:-9999em;margin-bottom:14px}.block-editor-block-list__block-popover-inserter.is-visible{position:static}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;padding:0;min-width:24px;height:24px}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{color:#fff;background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:#1e1e1e}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation:block-editor-inserter__toggle__fade-in-animation-delayed .3s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation-duration:1ms;animation-delay:0s}}@keyframes block-editor-inserter__toggle__fade-in-animation-delayed{0%{opacity:0}60%{opacity:0}to{opacity:1}}.block-editor-block-contextual-toolbar{display:inline-flex;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group{border-left-color:#1e1e1e}.block-editor-block-contextual-toolbar.is-fixed{position:sticky;top:0;width:100%;z-index:31;min-height:48px;display:block;border:none;border-bottom:1px solid #e0e0e0;border-radius:0}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar-group{border-left-color:#e0e0e0}.block-editor-block-contextual-toolbar .block-editor-block-mover-button{overflow:hidden}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{min-width:24px;width:24px}.block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button svg{min-width:24px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button:focus:before{right:0!important;min-width:0;width:100%}@media (min-width:600px){.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-up-button svg{top:5px}.block-editor-block-contextual-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button.is-down-button svg{bottom:5px}}.block-editor-block-list__block-selection-button{display:inline-flex;padding:0 13px;z-index:22;border-radius:2px;background-color:#1e1e1e;font-size:13px;height:48px}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content{margin:auto;display:inline-flex;align-items:center}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content>.components-flex__item{margin-left:6px}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle{cursor:grab;padding:0;height:24px;min-width:24px}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle svg{min-width:18px;min-height:18px}.block-editor-block-list__block-selection-button .block-editor-block-icon{font-size:13px;color:#fff;height:48px}.block-editor-block-list__block-selection-button .components-button{min-width:36px;color:#fff;height:48px;display:flex}.block-editor-block-list__block-selection-button .components-button:focus{box-shadow:none;border:none}.block-editor-block-list__block-selection-button .components-button:active{color:#fff}.block-editor-block-list__block-selection-button .block-selection-button_select-button.components-button{padding:0}.block-editor-block-list__insertion-point-popover.is-without-arrow{z-index:28;position:absolute;pointer-events:none}.block-editor-block-list__insertion-point-popover.is-without-arrow *{pointer-events:none}.block-editor-block-list__insertion-point-popover.is-without-arrow .is-with-inserter,.block-editor-block-list__insertion-point-popover.is-without-arrow .is-with-inserter *{pointer-events:all}.block-editor-block-list__insertion-point-popover.is-without-arrow .components-popover__content.components-popover__content{background:none;border:none;box-shadow:none;overflow-y:visible;margin-right:0}@keyframes hide-during-dragging{to{position:fixed;transform:translate(-9999px,9999px)}}.components-popover.block-editor-block-list__block-popover{z-index:31;position:absolute}.components-popover.block-editor-block-list__block-popover .components-popover__content{margin:0!important;min-width:auto;width:max-content;background:none;border:none;box-shadow:none;overflow-y:visible;pointer-events:none}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button,.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__empty-block-inserter{pointer-events:all}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button{margin-top:12px;margin-bottom:12px}.components-popover.block-editor-block-list__block-popover.is-insertion-point-visible{visibility:hidden}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0;animation:hide-during-dragging 1ms linear forwards}.is-dragging-components-draggable .components-tooltip{display:none}.block-editor-block-list__block .block-list-appender{align-self:center;padding:0;list-style:none;margin:0 8px 0 auto}.block-editor-block-list__block .block-list-appender.wp-block{max-width:none}.block-editor-block-list__block .block-list-appender:first-child{margin-right:0}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender{margin:8px 0}.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{padding:0;opacity:1;transform:scale(1);transition:all .1s ease}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{transition-duration:0s;transition-delay:0s}}.is-vertical .block-list-appender{width:24px;margin-left:auto;margin-top:12px;margin-right:12px}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-breadcrumb{list-style:none;padding:0;margin:0}.block-editor-block-breadcrumb li{display:inline-block;margin:0}.block-editor-block-breadcrumb li:not(:last-child):after{content:"←"}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0;position:relative}.block-editor-block-breadcrumb__button.components-button:hover:not(:disabled){text-decoration:underline;box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{content:"";display:block;position:absolute;border-radius:2px;top:1px;left:1px;bottom:1px;right:1px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;padding:0 8px;font-size:inherit}.block-editor-block-card{display:flex;align-items:flex-start}.block-editor-block-card__content{flex-grow:1;margin-bottom:4px}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{line-height:24px;margin:0 0 4px}.block-editor-block-card__description{font-size:13px}.block-editor-block-card .block-editor-block-icon{flex:0 0 24px;margin-right:0;margin-left:12px;width:24px;height:24px}.block-editor-block-compare{height:auto}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 0 0 16px;min-width:200px;max-width:600px}.block-editor-block-compare__wrapper>div button{float:left}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-right:1px solid #ddd;padding-right:15px;padding-left:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#1e1e1e;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#cc1818}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:16px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:16px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{position:absolute;top:-24px;right:0}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;box-shadow:0 6px 8px rgba(0,0,0,.3);color:#fff;cursor:grabbing;display:inline-flex;height:48px;padding:0 13px;-webkit-user-select:none;user-select:none}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{margin:auto;justify-content:flex-start}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item{margin-left:6px}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item:last-child{margin-left:0}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content .block-editor-block-icon svg{min-width:18px;min-height:18px}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.is-dragging{display:none!important}.block-editor-block-mobile-toolbar{display:flex;flex-direction:row;border-left:1px solid #ddd}.block-editor-block-mobile-toolbar .block-editor-block-mover-button{width:36px;height:36px;border-radius:2px;padding:3px;margin:0;justify-content:center;align-items:center}.block-editor-block-mobile-toolbar .block-editor-block-mover-button .dashicon{margin:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover{display:flex;margin-left:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover-button{float:right}.block-editor-block-mover-button__description{display:none}.block-editor-block-mover-button.has-icon{padding:0}.block-editor-block-mover{display:inline-flex;flex-direction:row}.block-editor-block-mover .block-editor-block-mover__move-button-container,.block-editor-block-mover .components-toolbar{flex:1;flex-direction:row;border-left:none!important}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover__move-button-container,.block-editor-block-mover .components-toolbar{flex-direction:column}}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container,.block-editor-block-mover.is-horizontal .components-toolbar{flex-direction:row}.block-editor-block-mover .block-editor-block-mover-button.block-editor-block-mover-button{padding-left:0;padding-right:0;min-width:36px}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover-button{height:24px;width:42px;padding-left:11px!important;padding-right:6px!important}.block-editor-block-mover .block-editor-block-mover-button.block-editor-block-mover-button{min-width:42px}}@media (min-width:600px){.block-editor-block-mover .block-editor-block-mover-button:before{right:8px!important;left:8px!important}}.block-editor-block-mover .block-editor-block-mover__drag-handle{width:24px;cursor:grab;min-width:24px!important;padding:0!important}.block-editor-block-mover .block-editor-block-mover__drag-handle:focus:before{right:0!important;left:0!important}@media (min-width:600px){.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button{margin:0 0 0 auto}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button:before{bottom:0;height:calc(100% - 1px)}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button:before{top:0;height:calc(100% - 1px)}}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon{height:48px;width:24px;padding-right:0;padding-left:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon:before{top:1px;bottom:1px;min-width:0;width:auto;height:auto}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon svg{margin-right:0;margin-left:-8px;margin-bottom:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon:before{right:0!important;left:0!important}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg{margin-right:-8px;margin-left:0;margin-top:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon:before{right:0!important;left:0!important;width:calc(100% + 1px)}.block-editor-block-navigation__label{margin:0 0 12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-navigation__container{min-width:280px}.block-editor-block-navigation-tree{width:100%;border-collapse:collapse;padding:0;margin:0}.components-modal__content .block-editor-block-navigation-tree{margin:-12px -6px 0;width:calc(100% + 12px)}.block-editor-block-navigation-leaf{position:relative}.block-editor-block-navigation-leaf.is-selected .block-editor-block-navigation-block-contents{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-navigation-leaf.is-selected .block-editor-block-navigation-block-contents:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-block-navigation-leaf.is-branch-selected.is-selected .block-editor-block-navigation-block-contents{border-radius:2px 2px 0 0}.block-editor-block-navigation-leaf[aria-expanded=false].is-branch-selected.is-selected .block-editor-block-navigation-block-contents{border-radius:2px}.block-editor-block-navigation-leaf.is-branch-selected:not(.is-selected) .block-editor-block-navigation-block-contents{background:linear-gradient(hsla(0,0%,100%,.9),hsla(0,0%,100%,.9)),linear-gradient(var(--wp-admin-theme-color),var(--wp-admin-theme-color));border-radius:0}.block-editor-block-navigation-leaf.is-branch-selected.is-last-of-selected-branch .block-editor-block-navigation-block-contents{border-radius:0 0 2px 2px}.block-editor-block-navigation-leaf.is-dragging{display:none}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{display:flex;align-items:center;width:100%;height:auto;padding:6px 0 6px 12px;text-align:right;color:#1e1e1e;border-radius:2px;position:relative;white-space:nowrap}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents:focus,.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents:hover{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents:focus{z-index:1}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-before:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;top:-2px;left:0;right:0;border-top:4px solid var(--wp-admin-theme-color)}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-after:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;bottom:-2px;left:0;right:0;border-bottom:4px solid var(--wp-admin-theme-color)}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents.is-dropping-to-inner-blocks:before{content:"";position:absolute;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;bottom:-2px;left:0;right:24px;border-bottom:4px solid var(--wp-admin-theme-color)}.components-modal__content .block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{padding-right:0;padding-left:0}.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{animation-duration:1ms;animation-delay:0s}}.block-editor-block-navigation-leaf .block-editor-block-icon{align-self:flex-start;margin-left:8px;width:24px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__contents-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{padding-top:0;padding-bottom:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{line-height:0;width:36px;opacity:0;vertical-align:top}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{transition-duration:0s;transition-delay:0s}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell:hover,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell:hover{position:relative;z-index:1;opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell:hover,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell:hover{animation-duration:1ms;animation-delay:0s}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell .components-button.has-icon,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell .components-button.has-icon{width:24px;min-width:24px;padding:0}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell{padding-top:8px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell-alignment-wrapper{display:flex;height:100%;flex-direction:column;align-items:center}.block-editor-block-navigation-leaf .block-editor-block-mover-button{position:relative;width:36px;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button svg{position:relative;height:24px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button{margin-top:-6px;align-items:flex-end}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button{margin-bottom:-6px;align-items:flex-start}.block-editor-block-navigation-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus,.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.block-editor-block-navigation-leaf .block-editor-block-mover-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{content:"";position:absolute;display:block;border-radius:2px;height:16px;min-width:100%;right:0;left:0;animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-mover-button:before{animation-duration:1ms;animation-delay:0s}}.block-editor-block-navigation-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 1px 6px 6px;min-width:24px}.block-editor-block-navigation-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-select-button__anchor{background:rgba(0,0,0,.1);border-radius:2px;display:inline-block;padding:2px 6px;margin:0 8px;max-width:120px;overflow:hidden;text-overflow:ellipsis}.block-editor-block-navigation-leaf.is-selected .block-editor-block-navigation-block-select-button__anchor{background:rgba(0,0,0,.3)}.block-editor-block-navigation-appender__description,.block-editor-block-navigation-block-select-button__description,.block-editor-block-navigation-block-slot__description{display:none}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{display:flex}.block-editor-block-navigation__expander{height:24px;margin-right:4px;width:24px}.block-editor-block-navigation-leaf[aria-level] .block-editor-block-navigation__expander{margin-right:220px}.block-editor-block-navigation-leaf:not([aria-level="1"]) .block-editor-block-navigation__expander{margin-left:4px}.block-editor-block-navigation-leaf[aria-level="1"] .block-editor-block-navigation__expander{margin-right:0}.block-editor-block-navigation-leaf[aria-level="2"] .block-editor-block-navigation__expander{margin-right:24px}.block-editor-block-navigation-leaf[aria-level="3"] .block-editor-block-navigation__expander{margin-right:52px}.block-editor-block-navigation-leaf[aria-level="4"] .block-editor-block-navigation__expander{margin-right:80px}.block-editor-block-navigation-leaf[aria-level="5"] .block-editor-block-navigation__expander{margin-right:108px}.block-editor-block-navigation-leaf[aria-level="6"] .block-editor-block-navigation__expander{margin-right:136px}.block-editor-block-navigation-leaf[aria-level="7"] .block-editor-block-navigation__expander{margin-right:164px}.block-editor-block-navigation-leaf[aria-level="8"] .block-editor-block-navigation__expander{margin-right:192px}.block-editor-block-navigation-leaf .block-editor-block-navigation__expander{visibility:hidden}.block-editor-block-navigation-leaf[aria-expanded=true] .block-editor-block-navigation__expander svg{visibility:visible;transition:transform .2s ease;transform:rotate(-90deg)}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf[aria-expanded=true] .block-editor-block-navigation__expander svg{transition-duration:0s;transition-delay:0s}}.block-editor-block-navigation-leaf[aria-expanded=false] .block-editor-block-navigation__expander svg{visibility:visible;transform:rotate(0deg);transition:transform .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf[aria-expanded=false] .block-editor-block-navigation__expander svg{transition-duration:0s;transition-delay:0s}}.block-editor-block-parent-selector{background:#fff;border-radius:2px}.block-editor-block-parent-selector .block-editor-block-parent-selector__button{width:48px;height:48px;border:1px solid #1e1e1e;border-radius:2px}.block-editor-block-patterns-list__list-item{cursor:pointer;margin-top:16px}.block-editor-block-patterns-list__list-item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__list-item[draggable=true] .block-editor-block-preview__container{cursor:grab}.block-editor-block-patterns-list__item{height:100%;border-radius:2px;transition:all .05s ease-in-out;position:relative;border:1px solid transparent}.block-editor-block-patterns-list__item:hover{border:1px solid var(--wp-admin-theme-color)}.block-editor-block-patterns-list__item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-patterns-list__item-title{padding:4px;font-size:12px;text-align:center}.block-editor-block-preview__container{position:relative;width:100%;overflow:hidden}.block-editor-block-preview__container.editor-styles-wrapper{padding:0;margin:0}.block-editor-block-preview__container .block-editor-block-preview__content{position:absolute;top:0;right:0;transform-origin:top right;text-align:initial;margin:0;overflow:visible;min-height:auto}.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-drop-zone,.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender,.block-editor-block-preview__container .block-editor-block-preview__content .reusable-block-indicator{display:none}.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__layout.is-root-container{padding-right:0;padding-left:0}.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:0;margin-left:0}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.block-editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:2px;padding:6px;display:flex;flex-direction:column}.block-editor-block-styles__item:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:var(--wp-admin-theme-color)}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-label{font-weight:700}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-preview{margin:0;border:2px solid #1e1e1e}.block-editor-block-styles__item .block-editor-block-preview__container{cursor:inherit}.block-editor-block-styles__item-preview{outline:1px solid transparent;padding:0;margin:2px;border-radius:2px;display:flex;overflow:hidden;background:#fff;align-items:center;flex-grow:1;min-height:80px;max-height:160px}.block-editor-block-switcher__styles__menugroup{position:relative}.block-editor-block-styles__item-label{text-align:center;padding:4px 0}.block-editor-block-switcher,.block-editor-block-switcher__no-switcher-icon,.block-editor-block-switcher__toggle{position:relative}.components-button.block-editor-block-switcher__no-switcher-icon,.components-button.block-editor-block-switcher__toggle{margin:0;display:block;height:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-icon{margin:auto}.block-editor-block-switcher__toggle-text{margin-right:8px}.show-icon-labels .block-editor-block-switcher__toggle-text{display:none}.show-icon-labels .block-editor-block-toolbar .block-editor-block-switcher .components-button.has-icon:after{font-size:14px}.block-editor-block-switcher__popover{margin-right:6px}.components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-blocks-icon{margin-left:auto;margin-right:auto}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{opacity:1}.components-button.block-editor-block-switcher__no-switcher-icon:disabled,.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#1e1e1e}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon{height:100%;position:relative;margin:0 auto;display:flex;align-items:center;min-width:100%}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before{top:8px;left:8px;bottom:8px;right:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.components-popover.block-editor-block-switcher__popover .components-popover__content>div{min-width:auto;display:flex;background:#fff;padding:0}.components-popover.block-editor-block-switcher__popover .components-popover__content>div .components-menu-group{margin:0}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-styles{margin:0 -3px}.block-editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.block-editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #e0e0e0}.block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container{position:absolute;top:-12px;right:calc(100% + 32px)}.block-editor-block-switcher__preview__popover{display:none}.block-editor-block-switcher__preview__popover.components-popover{margin-right:4px;margin-top:11px}@media (min-width:782px){.block-editor-block-switcher__preview__popover{display:block}}.block-editor-block-switcher__preview__popover .components-popover__content{box-shadow:none;border:1px solid #1e1e1e;background:#fff;border-radius:2px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview{width:300px;height:auto;max-height:500px;padding:16px}.block-editor-block-switcher__preview-title{margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle{height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{width:48px;height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{padding:12px}.block-editor-block-switcher__preview-patterns-container{padding-bottom:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item{margin-top:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-preview__container{cursor:pointer}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{height:100%;border-radius:2px;transition:all .05s ease-in-out;position:relative;border:1px solid transparent}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:focus,.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) #1e1e1e}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item .block-editor-block-switcher__preview-patterns-container-list__item-title{padding:4px;font-size:12px;text-align:center;cursor:pointer}.block-editor-block-types-list>[role=presentation]{padding:4px;margin-right:-4px;margin-left:-4px;overflow:hidden;display:flex;flex-wrap:wrap}.block-editor-block-variation-picker .components-placeholder__instructions{margin-bottom:0}.block-editor-block-variation-picker .components-placeholder__fieldset{flex-direction:column}.block-editor-block-variation-picker.has-many-variations .components-placeholder__fieldset{max-width:90%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations{display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;width:100%;margin:16px 0;padding:0;list-style:none}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{list-style:none;margin:8px 0 0 20px;flex-shrink:1;width:75px;text-align:center}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:inline-flex;margin-left:0}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation{padding:8px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;display:block;line-height:1.4}.block-editor-block-variation-picker__variation{width:100%}.block-editor-block-variation-picker__variation.components-button.has-icon{justify-content:center;width:auto}.block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary{background-color:#fff}.block-editor-block-variation-picker__variation.components-button{height:auto;padding:0}.block-editor-block-variation-picker__variation:before{content:"";padding-bottom:100%}.block-editor-block-variation-picker__variation:first-child{margin-right:0}.block-editor-block-variation-picker__variation:last-child{margin-left:0}.block-editor-block-pattern-setup{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:100%;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid transparent}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__toolbar{justify-content:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{display:grid;grid-template-columns:1fr 1fr;grid-gap:16px;padding:16px;max-height:550px;overflow:auto;margin:0 1px 1px;width:calc(100% - 2px);background:#fff}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container div[role=button]{cursor:pointer}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item-title{padding:4px;font-size:12px;text-align:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container{border-radius:2px;border:1px solid #ddd}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar{box-sizing:border-box;position:relative;padding:16px;width:100%;text-align:right;margin:0;color:#1e1e1e;border-radius:2px 2px 0 0;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid transparent;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__display-controls{display:flex}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions,.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__navigation{width:calc(50% - 36px);display:flex}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions{justify-content:flex-end}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container{display:flex;flex-direction:column;width:100%;box-sizing:border-box}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container{overflow:hidden;position:relative;padding:0;margin:0;list-style:none;transform-style:preserve-3d}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container *{box-sizing:border-box}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{opacity:0;position:absolute;top:0;width:100%;margin:auto;padding:16px;transition:transform .5s,opacity .5s,z-index .5s;z-index:100}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.active-slide{opacity:1;position:relative;z-index:102}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.previous-slide{transform:translateX(100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.next-slide{transform:translateX(-100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .block-list-appender{display:none}.block-editor-block-variation-transforms{padding:0 56px 16px 16px;width:100%}.block-editor-block-variation-transforms .components-dropdown-menu__toggle{border:1px solid #757575;border-radius:2px;min-height:30px;width:100%;position:relative;text-align:right;justify-content:left;padding:6px 12px}.block-editor-block-variation-transforms .components-dropdown-menu__toggle.components-dropdown-menu__toggle{padding-left:24px}.block-editor-block-variation-transforms .components-dropdown-menu__toggle:focus:not(:disabled){border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 calc(var(--wp-admin-border-width-focus) - 1px) var(--wp-admin-theme-color)}.block-editor-block-variation-transforms .components-dropdown-menu__toggle svg{height:100%;padding:0;position:absolute;left:0;top:0}.block-editor-block-variation-transforms__popover .components-popover__content{min-width:230px}.components-border-style-control__select{margin-bottom:24px}.components-border-style-control__select button{width:100%}.components-border-style-control__select ul li,.components-border-style-control__select ul li:last-child{margin:6px}.block-editor-button-block-appender{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;width:100%;height:auto;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.is-dark-theme .block-editor-button-block-appender{color:hsla(0,0%,100%,.65);box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.65)}.block-editor-button-block-appender:hover{color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.block-editor-button-block-appender.block-list-appender__toggle{display:flex;flex-direction:row;box-shadow:none;height:24px;width:24px}.block-editor-button-block-appender.block-list-appender__toggle>svg{width:24px;background-color:#1e1e1e;color:#fff;border-radius:2px}.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control .block-editor-color-gradient-control__button-tabs{display:block;margin-bottom:12px}.block-editor-panel-color-gradient-settings .component-color-indicator{vertical-align:text-bottom}.block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:inline-block}.block-editor-panel-color-gradient-settings.is-opened .block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:none}@media screen and (min-width:782px){.block-editor-panel-color-gradient-settings .components-circular-option-picker__swatches{margin-left:0}.block-editor-panel-color-gradient-settings .components-circular-option-picker__option-wrapper{margin-left:calc(20% - 33.6px)}.block-editor-panel-color-gradient-settings .components-circular-option-picker__option-wrapper:nth-child(6n+6){margin-left:0}}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-default-block-appender{clear:both;margin-right:auto;margin-left:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender .block-editor-default-block-appender__content{opacity:.62}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{position:absolute;top:0;height:32px}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle{margin-left:0}.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{left:8px}@media (min-width:600px){.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{display:flex;height:100%}}.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-duotone-control__popover .components-popover__content{border:1px solid #1e1e1e;min-width:214px}.block-editor-duotone-control__popover .components-circular-option-picker{padding:12px}.block-editor-duotone-control__popover .components-menu-group__label{padding:12px 12px 0;width:100%;box-sizing:border-box}.block-editor-duotone-control__popover>.components-popover__content{width:334px}.block-editor-duotone-control__popover:not([data-y-axis=middle][data-x-axis=right])>.components-popover__content{margin-right:-14px}.components-font-appearance-control__select{margin-bottom:24px}.components-font-appearance-control__select ul li{color:#1e1e1e;text-transform:capitalize}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}@keyframes loadingpulse{0%{opacity:1}50%{opacity:0}to{opacity:1}}.block-editor-link-control{position:relative;min-width:360px}.components-popover__content .block-editor-link-control{min-width:auto;width:90vw;max-width:360px}.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;font-size:16px;line-height:normal;width:calc(100% - 32px);display:block;padding:11px 16px 11px 36px;margin:16px;position:relative;border:1px solid #ddd;border-radius:2px}@media (prefers-reduced-motion:reduce){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{transition-duration:0s;transition-delay:0s}}@media (min-width:600px){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-size:13px;line-height:normal}}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-link-control .block-editor-link-control__search-input .components-base-control__field{margin-bottom:0}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{position:absolute;top:19px;left:19px}.components-button .block-editor-link-control__search-submit .has-icon{margin:-1px}.block-editor-link-control__search-results-wrapper{position:relative;margin-top:-15px}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";position:absolute;right:-1px;left:16px;display:block;pointer-events:none;z-index:100}.block-editor-link-control__search-results-wrapper:before{height:8px;top:0;bottom:auto}.block-editor-link-control__search-results-wrapper:after{height:16px;bottom:0;top:auto}.block-editor-link-control__search-results-label{padding:16px 32px 0;display:block;font-weight:600}.block-editor-link-control__search-results{margin:0;padding:8px 16px;max-height:200px;overflow-y:auto}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item{position:relative;display:flex;align-items:center;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:right;padding:12px 16px;border-radius:5px;height:auto}.block-editor-link-control__search-item:focus,.block-editor-link-control__search-item:hover{background-color:#ddd}.block-editor-link-control__search-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.block-editor-link-control__search-item.is-selected{background:#f0f0f0}.block-editor-link-control__search-item.is-selected .block-editor-link-control__search-item-type{background:#fff}.block-editor-link-control__search-item.is-current{flex-direction:column;background:transparent;border:0;width:100%;cursor:default;padding:16px}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{display:block;flex-direction:row;align-items:flex-start;margin-left:8px;overflow:hidden;white-space:nowrap}.block-editor-link-control__search-item.is-preview .block-editor-link-control__search-item-header{display:flex;flex:1}.block-editor-link-control__search-item .block-editor-link-control__search-item-details{overflow:hidden}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{position:relative;top:.2em;margin-left:8px;width:18px;height:18px}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon img,.block-editor-link-control__search-item .block-editor-link-control__search-item-icon svg{max-width:none;width:18px}.block-editor-link-control__search-item .block-editor-link-control__search-item-info,.block-editor-link-control__search-item .block-editor-link-control__search-item-title{overflow:hidden;text-overflow:ellipsis}.block-editor-link-control__search-item .block-editor-link-control__search-item-info .components-external-link__icon,.block-editor-link-control__search-item .block-editor-link-control__search-item-title .components-external-link__icon{position:absolute;left:0;margin-top:0}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{display:block;margin-bottom:.2em;font-weight:500;position:relative}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{font-weight:700;color:#000;background-color:transparent}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-title svg{display:none}.block-editor-link-control__search-item .block-editor-link-control__search-item-info{display:block;color:#757575;font-size:.9em;line-height:1.3}.block-editor-link-control__search-item .block-editor-link-control__search-item-type{display:block;padding:3px 8px;margin-right:auto;font-size:.9em;background-color:#f0f0f0;border-radius:2px}.block-editor-link-control__search-item .block-editor-link-control__search-item-description{padding-top:12px;margin:0}.block-editor-link-control__search-item .block-editor-link-control__search-item-description.is-placeholder{margin-top:12px;padding-top:0;height:28px;display:flex;flex-direction:column;justify-content:space-around}.block-editor-link-control__search-item .block-editor-link-control__search-item-description.is-placeholder:after,.block-editor-link-control__search-item .block-editor-link-control__search-item-description.is-placeholder:before{display:block;content:"";height:.7em;width:100%;background-color:#f0f0f0;border-radius:3px}.block-editor-link-control__search-item .block-editor-link-control__search-item-description .components-text{font-size:.9em}.block-editor-link-control__search-item .block-editor-link-control__search-item-image{display:flex;width:100%;background-color:#f0f0f0;justify-content:center;height:140px;max-height:140px;overflow:hidden;border-radius:2px;margin-top:12px}.block-editor-link-control__search-item .block-editor-link-control__search-item-image.is-placeholder{background-color:#f0f0f0;border-radius:3px}.block-editor-link-control__search-item .block-editor-link-control__search-item-image img{display:block;max-width:100%;height:140px;max-height:140px}.block-editor-link-control__search-item-top{display:flex;flex-direction:row;width:100%}.block-editor-link-control__search-item-bottom{transition:opacity 1.5s;min-height:100px;width:100%}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-description:after,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-description:before,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-image{animation:loadingpulse 1s linear infinite;animation-delay:.5s}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon img,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon svg{opacity:0}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon:before{content:"";display:block;background-color:#f0f0f0;position:absolute;top:0;right:0;left:0;bottom:0;border-radius:100%;animation:loadingpulse 1s linear infinite;animation-delay:.5s}.block-editor-link-control__loading{margin:16px;display:flex;align-items:center}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{overflow:visible;padding:12px 16px}.components-button+.block-editor-link-control__search-create:before{content:"";position:absolute;top:-10px;right:0;display:block;width:100%}.block-editor-link-control__search-results div[role=menu]>.block-editor-link-control__search-item.block-editor-link-control__search-item{padding:10px}.block-editor-link-control__settings{border-top:1px solid #ddd;margin:0;padding:16px 24px}.block-editor-link-control__settings :last-child{margin-bottom:0}.is-alternate .block-editor-link-control__settings{border-top:1px solid #1e1e1e}.block-editor-link-control__setting{margin-bottom:16px}.block-editor-link-control__setting :last-child{margin-bottom:0}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{position:absolute;right:auto;bottom:auto;top:28px;left:62px}.block-editor-link-control__search-item-action{margin-right:auto;flex-shrink:0}.block-editor-line-height-control{margin-bottom:24px}.block-editor-line-height-control input{display:block;max-width:60px}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__row{display:flex;justify-content:space-between}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-bottom:.5em}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height input,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width input{line-height:1.25}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-left:5px}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height{margin-right:5px}.block-editor-block-list__layout.has-overlay:after{content:"";position:absolute;top:-14px;left:-14px;bottom:-14px;right:-14px;z-index:60}[data-align=full] .has-overlay:after{left:0;right:0}.block-editor-block-types-list__list-item{display:block;width:33.33%;padding:0;margin:0}.components-button.block-editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#1e1e1e;padding:8px;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;border-radius:2px;border:1px solid transparent;transition:all .05s ease-in-out;position:relative;height:auto}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-duration:0s;transition-delay:0s}}.components-button.block-editor-block-types-list__item:disabled{opacity:.6;cursor:default}.components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{color:#fff;background:#1e1e1e;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item-icon{padding:12px 20px;border-radius:2px;color:#1e1e1e;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-duration:0s;transition-delay:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-right:auto;margin-left:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon svg{transition-duration:0s;transition-delay:0s}}.block-editor-block-types-list__list-item[draggable=true] .block-editor-block-types-list__item-icon{cursor:grab}.block-editor-block-types-list__item-title{padding:4px 2px 8px;font-size:12px}.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__options .components-popover__content>div{padding-top:16px}.block-editor-media-replace-flow__indicator{margin-right:4px}.block-editor-media-flow__url-input{border-top:1px solid #1e1e1e;margin-top:12px;margin-left:-12px;margin-right:-12px;padding:12px 24px 0}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{top:16px}.block-editor-media-flow__url-input .block-editor-link-control{margin-top:-16px;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .components-base-control .components-base-control__field{margin-bottom:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:180px;margin-top:16px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{width:auto;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:16px 0 0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{left:4px}.block-editor-media-flow__error{padding:0 20px 20px;max-width:255px}.block-editor-media-flow__error .components-with-notices-ui{max-width:255px}.block-editor-media-flow__error .components-with-notices-ui .components-notice__content{overflow:hidden;word-wrap:break-word}.block-editor-media-flow__error .components-with-notices-ui .components-notice__dism