Gutenberg - Version 7.7.1

Version Description

Download this release

Release Info

Developer youknowriad
Plugin Icon 128x128 Gutenberg
Version 7.7.1
Comparing to
See all releases

Code changes from version 7.7.0 to 7.7.1

build/block-editor/index.asset.php CHANGED
@@ -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-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '8b86ce2ec26f88ff205b97c1d5b7bca5');
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-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '7a8c786c617cc3c2c2e61df45e20373a');
build/block-editor/index.js CHANGED
@@ -46,4 +46,4 @@ IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISI
46
  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
47
  @license
48
  */
49
- var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";t.__esModule=!0,t.canonicalize=t.convertChangesToXML=t.convertChangesToDMP=t.merge=t.parsePatch=t.applyPatches=t.applyPatch=t.createPatch=t.createTwoFilesPatch=t.structuredPatch=t.diffArrays=t.diffJson=t.diffCss=t.diffSentences=t.diffTrimmedLines=t.diffLines=t.diffWordsWithSpace=t.diffWords=t.diffChars=t.Diff=void 0;var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=n(2),a=n(3),l=n(5),s=n(6),u=n(7),d=n(8),f=n(9),b=n(10),p=n(11),h=n(13),m=n(14),g=n(16),v=n(17);t.Diff=i.default,t.diffChars=c.diffChars,t.diffWords=a.diffWords,t.diffWordsWithSpace=a.diffWordsWithSpace,t.diffLines=l.diffLines,t.diffTrimmedLines=l.diffTrimmedLines,t.diffSentences=s.diffSentences,t.diffCss=u.diffCss,t.diffJson=d.diffJson,t.diffArrays=f.diffArrays,t.structuredPatch=m.structuredPatch,t.createTwoFilesPatch=m.createTwoFilesPatch,t.createPatch=m.createPatch,t.applyPatch=b.applyPatch,t.applyPatches=b.applyPatches,t.parsePatch=p.parsePatch,t.merge=h.merge,t.convertChangesToDMP=g.convertChangesToDMP,t.convertChangesToXML=v.convertChangesToXML,t.canonicalize=d.canonicalize},function(e,t){"use strict";function n(){}function r(e,t,n,r,o){for(var i=0,c=t.length,a=0,l=0;i<c;i++){var s=t[i];if(s.removed){if(s.value=e.join(r.slice(l,l+s.count)),l+=s.count,i&&t[i-1].added){var u=t[i-1];t[i-1]=t[i],t[i]=u}}else{if(!s.added&&o){var d=n.slice(a,a+s.count);d=d.map((function(e,t){var n=r[l+t];return n.length>e.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var f=t[c-1];return c>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[c-2].value+=f.value,t.pop()),t}function o(e){return{newPos:e.newPos,components:e.components.slice(0)}}t.__esModule=!0,t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.callback;"function"==typeof n&&(i=n,n={}),this.options=n;var c=this;function a(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=l+s,f=[{newPos:-1,components:[]}],b=this.extractCommon(f[0],t,e,0);if(f[0].newPos+1>=l&&b+1>=s)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var i=void 0,d=f[n-1],b=f[n+1],p=(b?b.newPos:0)-n;d&&(f[n-1]=void 0);var h=d&&d.newPos+1<l,m=b&&0<=p&&p<s;if(h||m){if(!h||m&&d.newPos<b.newPos?(i=o(b),c.pushComponent(i.components,void 0,!0)):((i=d).newPos++,c.pushComponent(i.components,!0,void 0)),p=c.extractCommon(i,t,e,n),i.newPos+1>=l&&p+1>=s)return a(r(c,i.components,t,e,c.useLongestToken));f[n]=i}else f[n]=void 0}u++}if(i)!function e(){setTimeout((function(){if(u>d)return i();p()||e()}),0)}();else for(;u<=d;){var h=p();if(h)return h}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,i=n.length,c=e.newPos,a=c-r,l=0;c+1<o&&a+1<i&&this.equals(t[c+1],n[a+1]);)c++,a++,l++;return l&&e.components.push({count:l}),e.newPos=c,a},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("")}}},function(e,t,n){"use strict";t.__esModule=!0,t.characterDiff=void 0,t.diffChars=function(e,t,n){return c.diff(e,t,n)};var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=t.characterDiff=new i.default},function(e,t,n){"use strict";t.__esModule=!0,t.wordDiff=void 0,t.diffWords=function(e,t,n){return n=(0,c.generateOptions)(n,{ignoreWhitespace:!0}),s.diff(e,t,n)},t.diffWordsWithSpace=function(e,t,n){return s.diff(e,t,n)};var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=n(4),a=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,l=/\S/,s=t.wordDiff=new i.default;s.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!l.test(e)&&!l.test(t)},s.tokenize=function(e){for(var t=e.split(/(\s+|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&a.test(t[n])&&a.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t}},function(e,t){"use strict";t.__esModule=!0,t.generateOptions=function(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}},function(e,t,n){"use strict";t.__esModule=!0,t.lineDiff=void 0,t.diffLines=function(e,t,n){return a.diff(e,t,n)},t.diffTrimmedLines=function(e,t,n){var r=(0,c.generateOptions)(n,{ignoreWhitespace:!0});return a.diff(e,t,r)};var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=n(4),a=t.lineDiff=new i.default;a.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var o=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=o:(this.options.ignoreWhitespace&&(o=o.trim()),t.push(o))}return t}},function(e,t,n){"use strict";t.__esModule=!0,t.sentenceDiff=void 0,t.diffSentences=function(e,t,n){return c.diff(e,t,n)};var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=t.sentenceDiff=new i.default;c.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)}},function(e,t,n){"use strict";t.__esModule=!0,t.cssDiff=void 0,t.diffCss=function(e,t,n){return c.diff(e,t,n)};var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=t.cssDiff=new i.default;c.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)}},function(e,t,n){"use strict";t.__esModule=!0,t.jsonDiff=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.diffJson=function(e,t,n){return s.diff(e,t,n)},t.canonicalize=u;var o,i=n(1),c=(o=i)&&o.__esModule?o:{default:o},a=n(5),l=Object.prototype.toString,s=t.jsonDiff=new c.default;function u(e,t,n,o,i){t=t||[],n=n||[],o&&(e=o(i,e));var c=void 0;for(c=0;c<t.length;c+=1)if(t[c]===e)return n[c];var a=void 0;if("[object Array]"===l.call(e)){for(t.push(e),a=new Array(e.length),n.push(a),c=0;c<e.length;c+=1)a[c]=u(e[c],t,n,o,i);return t.pop(),n.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),"object"===(void 0===e?"undefined":r(e))&&null!==e){t.push(e),a={},n.push(a);var s=[],d=void 0;for(d in e)e.hasOwnProperty(d)&&s.push(d);for(s.sort(),c=0;c<s.length;c+=1)a[d=s[c]]=u(e[d],t,n,o,d);t.pop(),n.pop()}else a=e;return a}s.useLongestToken=!0,s.tokenize=a.lineDiff.tokenize,s.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,o=void 0===r?function(e,t){return void 0===t?n:t}:r;return"string"==typeof e?e:JSON.stringify(u(e,null,null,o),o," ")},s.equals=function(e,t){return c.default.prototype.equals.call(s,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))}},function(e,t,n){"use strict";t.__esModule=!0,t.arrayDiff=void 0,t.diffArrays=function(e,t,n){return c.diff(e,t,n)};var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=t.arrayDiff=new i.default;c.tokenize=function(e){return e.slice()},c.join=c.removeEmpty=function(e){return e}},function(e,t,n){"use strict";t.__esModule=!0,t.applyPatch=a,t.applyPatches=function(e,t){"string"==typeof e&&(e=(0,o.parsePatch)(e));var n=0;!function r(){var o=e[n++];if(!o)return t.complete();t.loadFile(o,(function(e,n){if(e)return t.complete(e);var i=a(n,o,t);t.patched(o,i,(function(e){if(e)return t.complete(e);r()}))}))}()};var r,o=n(11),i=n(12),c=(r=i)&&r.__esModule?r:{default:r};function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,o.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,l=n.compareLine||function(e,t,n,r){return t===r},s=0,u=n.fuzzFactor||0,d=0,f=0,b=void 0,p=void 0;function h(e,t){for(var n=0;n<e.lines.length;n++){var o=e.lines[n],i=o.length>0?o[0]:" ",c=o.length>0?o.substr(1):o;if(" "===i||"-"===i){if(!l(t+1,r[t],i,c)&&++s>u)return!1;t++}}return!0}for(var m=0;m<a.length;m++){for(var g=a[m],v=r.length-g.oldLines,O=0,j=f+g.oldStart-1,k=(0,c.default)(j,d,v);void 0!==O;O=k())if(h(g,j+O)){g.offset=f+=O;break}if(void 0===O)return!1;d=g.offset+g.oldStart+g.oldLines}for(var y=0,_=0;_<a.length;_++){var E=a[_],S=E.oldStart+E.offset+y-1;y+=E.newLines-E.oldLines,S<0&&(S=0);for(var w=0;w<E.lines.length;w++){var C=E.lines[w],I=C.length>0?C[0]:" ",B=C.length>0?C.substr(1):C,x=E.linedelimiters[w];if(" "===I)S++;else if("-"===I)r.splice(S,1),i.splice(S,1);else if("+"===I)r.splice(S,0,B),i.splice(S,0,x),S++;else if("\\"===I){var T=E.lines[w-1]?E.lines[w-1][0]:null;"+"===T?b=!0:"-"===T&&(p=!0)}}}if(b)for(;!r[r.length-1];)r.pop(),i.pop();else p&&(r.push(""),i.push("\n"));for(var P=0;P<r.length-1;P++)r[P]=r[P]+i[P];return r.join("")}},function(e,t){"use strict";t.__esModule=!0,t.parsePatch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=[],i=0;function c(){var e={};for(o.push(e);i<n.length;){var r=n[i];if(/^(\-\-\-|\+\+\+|@@)\s/.test(r))break;var c=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(r);c&&(e.index=c[1]),i++}for(a(e),a(e),e.hunks=[];i<n.length;){var s=n[i];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(s))break;if(/^@@/.test(s))e.hunks.push(l());else{if(s&&t.strict)throw new Error("Unknown line "+(i+1)+" "+JSON.stringify(s));i++}}}function a(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[i]);if(t){var r="---"===t[1]?"old":"new",o=t[2].split("\t",2),c=o[0].replace(/\\\\/g,"\\");/^".*"$/.test(c)&&(c=c.substr(1,c.length-2)),e[r+"FileName"]=c,e[r+"Header"]=(o[1]||"").trim(),i++}}function l(){for(var e=i,o=n[i++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),c={oldStart:+o[1],oldLines:+o[2]||1,newStart:+o[3],newLines:+o[4]||1,lines:[],linedelimiters:[]},a=0,l=0;i<n.length&&!(0===n[i].indexOf("--- ")&&i+2<n.length&&0===n[i+1].indexOf("+++ ")&&0===n[i+2].indexOf("@@"));i++){var s=0==n[i].length&&i!=n.length-1?" ":n[i][0];if("+"!==s&&"-"!==s&&" "!==s&&"\\"!==s)break;c.lines.push(n[i]),c.linedelimiters.push(r[i]||"\n"),"+"===s?a++:"-"===s?l++:" "===s&&(a++,l++)}if(a||1!==c.newLines||(c.newLines=0),l||1!==c.oldLines||(c.oldLines=0),t.strict){if(a!==c.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(l!==c.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return c}for(;i<n.length;)c();return o}},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t,n){var r=!0,o=!1,i=!1,c=1;return function a(){if(r&&!i){if(o?c++:r=!1,e+c<=n)return c;i=!0}if(!o)return i||(r=!0),t<=e-c?-c++:(o=!0,a())}}},function(e,t,n){"use strict";t.__esModule=!0,t.calcLineCount=a,t.merge=function(e,t,n){e=l(e,n),t=l(t,n);var r={};(e.index||t.index)&&(r.index=e.index||t.index),(e.newFileName||t.newFileName)&&(s(e)?s(t)?(r.oldFileName=u(r,e.oldFileName,t.oldFileName),r.newFileName=u(r,e.newFileName,t.newFileName),r.oldHeader=u(r,e.oldHeader,t.oldHeader),r.newHeader=u(r,e.newHeader,t.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=t.oldFileName||e.oldFileName,r.newFileName=t.newFileName||e.newFileName,r.oldHeader=t.oldHeader||e.oldHeader,r.newHeader=t.newHeader||e.newHeader)),r.hunks=[];for(var o=0,i=0,c=0,a=0;o<e.hunks.length||i<t.hunks.length;){var p=e.hunks[o]||{oldStart:1/0},h=t.hunks[i]||{oldStart:1/0};if(d(p,h))r.hunks.push(f(p,c)),o++,a+=p.newLines-p.oldLines;else if(d(h,p))r.hunks.push(f(h,a)),i++,c+=h.newLines-h.oldLines;else{var m={oldStart:Math.min(p.oldStart,h.oldStart),oldLines:0,newStart:Math.min(p.newStart+c,h.oldStart+a),newLines:0,lines:[]};b(m,p.oldStart,p.lines,h.oldStart,h.lines),i++,o++,r.hunks.push(m)}}return r};var r=n(14),o=n(11),i=n(15);function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e){var t=function e(t){var n=0,r=0;return t.forEach((function(t){if("string"!=typeof t){var o=e(t.mine),i=e(t.theirs);void 0!==n&&(o.oldLines===i.oldLines?n+=o.oldLines:n=void 0),void 0!==r&&(o.newLines===i.newLines?r+=o.newLines:r=void 0)}else void 0===r||"+"!==t[0]&&" "!==t[0]||r++,void 0===n||"-"!==t[0]&&" "!==t[0]||n++})),{oldLines:n,newLines:r}}(e.lines),n=t.oldLines,r=t.newLines;void 0!==n?e.oldLines=n:delete e.oldLines,void 0!==r?e.newLines=r:delete e.newLines}function l(e,t){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return(0,o.parsePatch)(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return((0,r.structuredPatch)(void 0,void 0,t,e))}return e}function s(e){return e.newFileName&&e.newFileName!==e.oldFileName}function u(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function d(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function f(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function b(e,t,n,r,o){var i={offset:t,lines:n,index:0},l={offset:r,lines:o,index:0};for(g(e,i,l),g(e,l,i);i.index<i.lines.length&&l.index<l.lines.length;){var s=i.lines[i.index],u=l.lines[l.index];if("-"!==s[0]&&"+"!==s[0]||"-"!==u[0]&&"+"!==u[0])if("+"===s[0]&&" "===u[0]){var d;(d=e.lines).push.apply(d,c(O(i)))}else if("+"===u[0]&&" "===s[0]){var f;(f=e.lines).push.apply(f,c(O(l)))}else"-"===s[0]&&" "===u[0]?h(e,i,l):"-"===u[0]&&" "===s[0]?h(e,l,i,!0):s===u?(e.lines.push(s),i.index++,l.index++):m(e,O(i),O(l));else p(e,i,l)}v(e,i),v(e,l),a(e)}function p(e,t,n){var r=O(t),o=O(n);if(j(r)&&j(o)){var a,l;if((0,i.arrayStartsWith)(r,o)&&k(n,r,r.length-o.length))return void(a=e.lines).push.apply(a,c(r));if((0,i.arrayStartsWith)(o,r)&&k(t,o,o.length-r.length))return void(l=e.lines).push.apply(l,c(o))}else if((0,i.arrayEqual)(r,o)){var s;return void(s=e.lines).push.apply(s,c(r))}m(e,r,o)}function h(e,t,n,r){var o,i=O(t),a=function(e,t){for(var n=[],r=[],o=0,i=!1,c=!1;o<t.length&&e.index<e.lines.length;){var a=e.lines[e.index],l=t[o];if("+"===l[0])break;if(i=i||" "!==a[0],r.push(l),o++,"+"===a[0])for(c=!0;"+"===a[0];)n.push(a),a=e.lines[++e.index];l.substr(1)===a.substr(1)?(n.push(a),e.index++):c=!0}if("+"===(t[o]||"")[0]&&i&&(c=!0),c)return n;for(;o<t.length;)r.push(t[o++]);return{merged:r,changes:n}}(n,i);a.merged?(o=e.lines).push.apply(o,c(a.merged)):m(e,r?a:i,r?i:a)}function m(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function g(e,t,n){for(;t.offset<n.offset&&t.index<t.lines.length;){var r=t.lines[t.index++];e.lines.push(r),t.offset++}}function v(e,t){for(;t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n)}}function O(e){for(var t=[],n=e.lines[e.index][0];e.index<e.lines.length;){var r=e.lines[e.index];if("-"===n&&"+"===r[0]&&(n="+"),n!==r[0])break;t.push(r),e.index++}return t}function j(e){return e.reduce((function(e,t){return e&&"-"===t[0]}),!0)}function k(e,t,n){for(var r=0;r<n;r++){var o=t[t.length-n+r].substr(1);if(e.lines[e.index+r]!==" "+o)return!1}return e.index+=n,!0}},function(e,t,n){"use strict";t.__esModule=!0,t.structuredPatch=i,t.createTwoFilesPatch=c,t.createPatch=function(e,t,n,r,o,i){return c(e,e,t,n,r,o,i)};var r=n(5);function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t,n,i,c,a,l){l||(l={}),void 0===l.context&&(l.context=4);var s=(0,r.diffLines)(n,i,l);function u(e){return e.map((function(e){return" "+e}))}s.push({value:"",lines:[]});for(var d=[],f=0,b=0,p=[],h=1,m=1,g=function(e){var t=s[e],r=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=r,t.added||t.removed){var c;if(!f){var a=s[e-1];f=h,b=m,a&&(p=l.context>0?u(a.lines.slice(-l.context)):[],f-=p.length,b-=p.length)}(c=p).push.apply(c,o(r.map((function(e){return(t.added?"+":"-")+e})))),t.added?m+=r.length:h+=r.length}else{if(f)if(r.length<=2*l.context&&e<s.length-2){var g;(g=p).push.apply(g,o(u(r)))}else{var v,O=Math.min(r.length,l.context);(v=p).push.apply(v,o(u(r.slice(0,O))));var j={oldStart:f,oldLines:h-f+O,newStart:b,newLines:m-b+O,lines:p};if(e>=s.length-2&&r.length<=l.context){var k=/\n$/.test(n),y=/\n$/.test(i);0!=r.length||k?k&&y||p.push("\"):p.splice(j.oldLines,0,"\")}d.push(j),f=0,b=0,p=[]}h+=r.length,m+=r.length}},v=0;v<s.length;v++)g(v);return{oldFileName:e,newFileName:t,oldHeader:c,newHeader:a,hunks:d}}function c(e,t,n,r,o,c,a){var l=i(e,t,n,r,o,c,a),s=[];e==t&&s.push("Index: "+e),s.push("==================================================================="),s.push("--- "+l.oldFileName+(void 0===l.oldHeader?"":"\t"+l.oldHeader)),s.push("+++ "+l.newFileName+(void 0===l.newHeader?"":"\t"+l.newHeader));for(var u=0;u<l.hunks.length;u++){var d=l.hunks[u];s.push("@@ -"+d.oldStart+","+d.oldLines+" +"+d.newStart+","+d.newLines+" @@"),s.push.apply(s,d.lines)}return s.join("\n")+"\n"}},function(e,t){"use strict";function n(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}t.__esModule=!0,t.arrayEqual=function(e,t){return e.length===t.length&&n(e,t)},t.arrayStartsWith=n},function(e,t){"use strict";t.__esModule=!0,t.convertChangesToDMP=function(e){for(var t=[],n=void 0,r=void 0,o=0;o<e.length;o++)n=e[o],r=n.added?1:n.removed?-1:0,t.push([r,n.value]);return t}},function(e,t){"use strict";t.__esModule=!0,t.convertChangesToXML=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r.added?t.push("<ins>"):r.removed&&t.push("<del>"),t.push((o=r.value,void 0,o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))),r.added?t.push("</ins>"):r.removed&&t.push("</del>")}var o;return t.join("")}}])},e.exports=r()},function(e,t,n){"use strict";t.match=function(e,t){return l(e).some((function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every((function(e){var n=e.feature,r=e.modifier,o=e.value,i=t[n];if(!i)return!1;switch(n){case"orientation":case"scan":return i.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=d(o),i=d(i);break;case"resolution":o=u(o),i=u(i);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=s(o),i=s(i);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,i=parseInt(i,10)||0}switch(r){case"min":return i>=o;case"max":return i<=o;default:return i===o}}));return o&&!n||!o&&n}))},t.parse=l;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,o=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,i=/^(?:(min|max)-)?(.+)/,c=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function l(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),n=t[1],c=t[2],a=t[3]||"",l={};return l.inverse=!!n&&"not"===n.toLowerCase(),l.type=c?c.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],l.expressions=a.map((function(e){var t=e.match(o),n=t[1].toLowerCase().match(i);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}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(a)[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(c)[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}}},function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],a=!0;return function e(d){var f=n?i(d):d,b={},p=!0,h={node:f,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){h.isRoot||(h.parent.node[h.key]=e),h.node=e,t&&(p=!1)},delete:function(e){delete h.parent.node[h.key],e&&(p=!1)},remove:function(e){l(h.parent.node)?h.parent.node.splice(h.key,1):delete h.parent.node[h.key],e&&(p=!1)},keys:null,before:function(e){b.before=e},after:function(e){b.after=e},pre:function(e){b.pre=e},post:function(e){b.post=e},stop:function(){a=!1},block:function(){p=!1}};if(!a)return h;function m(){if("object"==typeof h.node&&null!==h.node){h.keys&&h.node_===h.node||(h.keys=c(h.node)),h.isLeaf=0==h.keys.length;for(var e=0;e<o.length;e++)if(o[e].node_===d){h.circular=o[e];break}}else h.isLeaf=!0,h.keys=null;h.notLeaf=!h.isLeaf,h.notRoot=!h.isRoot}m();var g=t.call(h,h.node);return void 0!==g&&h.update&&h.update(g),b.before&&b.before.call(h,h.node),p?("object"!=typeof h.node||null===h.node||h.circular||(o.push(h),m(),s(h.keys,(function(t,o){r.push(t),b.pre&&b.pre.call(h,h.node[t],t);var i=e(h.node[t]);n&&u.call(h.node,t)&&(h.node[t]=i.node),i.isLast=o==h.keys.length-1,i.isFirst=0==o,b.post&&b.post.call(h,i),r.pop()})),o.pop()),b.after&&b.after.call(h,h.node),h):h}(e).node}function i(e){if("object"==typeof e&&null!==e){var t;if(l(e))t=[];else if("[object Date]"===a(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===a(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===a(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===a(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===a(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===a(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__||{},r=function(){};r.prototype=n,t=new r}return s(c(e),(function(n){t[n]=e[n]})),t}return e}r.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r)){t=void 0;break}t=t[r]}return t},r.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r))return!1;t=t[r]}return!0},r.prototype.set=function(e,t){for(var n=this.value,r=0;r<e.length-1;r++){var o=e[r];u.call(n,o)||(n[o]={}),n=n[o]}return n[e[r]]=t,t},r.prototype.map=function(e){return o(this.value,e,!0)},r.prototype.forEach=function(e){return this.value=o(this.value,e,!1),this.value},r.prototype.reduce=function(e,t){var n=1===arguments.length,r=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(r=e.call(this,r,t))})),r},r.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},r.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},r.prototype.clone=function(){var e=[],t=[];return function n(r){for(var o=0;o<e.length;o++)if(e[o]===r)return t[o];if("object"==typeof r&&null!==r){var a=i(r);return e.push(r),t.push(a),s(c(r),(function(e){a[e]=n(r[e])})),e.pop(),t.pop(),a}return r}(this.value)};var c=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function a(e){return Object.prototype.toString.call(e)}var l=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(c(r.prototype),(function(e){n[e]=function(t){var n=[].slice.call(arguments,1),o=new r(t);return o[e].apply(o,n)}}));var u=Object.hasOwnProperty||function(e,t){return t in e}},,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.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=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.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=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6zM13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-5.7-5.3-.6.6-.5-.5-5.2 5.2 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M12 8l-6 5.4 1 1.2 5-4.6 5 4.6 1-1.2z"}));t.a=i},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"resetBlocks",(function(){return jn})),n.d(r,"resetSelection",(function(){return kn})),n.d(r,"receiveBlocks",(function(){return yn})),n.d(r,"updateBlockAttributes",(function(){return _n})),n.d(r,"updateBlock",(function(){return En})),n.d(r,"selectBlock",(function(){return Sn})),n.d(r,"selectPreviousBlock",(function(){return wn})),n.d(r,"selectNextBlock",(function(){return Cn})),n.d(r,"startMultiSelect",(function(){return In})),n.d(r,"stopMultiSelect",(function(){return Bn})),n.d(r,"multiSelect",(function(){return xn})),n.d(r,"clearSelectedBlock",(function(){return Tn})),n.d(r,"toggleSelection",(function(){return Pn})),n.d(r,"replaceBlocks",(function(){return Ln})),n.d(r,"replaceBlock",(function(){return Rn})),n.d(r,"moveBlocksDown",(function(){return An})),n.d(r,"moveBlocksUp",(function(){return Dn})),n.d(r,"moveBlockToPosition",(function(){return Fn})),n.d(r,"insertBlock",(function(){return Hn})),n.d(r,"insertBlocks",(function(){return Vn})),n.d(r,"showInsertionPoint",(function(){return Un})),n.d(r,"hideInsertionPoint",(function(){return zn})),n.d(r,"setTemplateValidity",(function(){return Gn})),n.d(r,"synchronizeTemplate",(function(){return Kn})),n.d(r,"mergeBlocks",(function(){return Wn})),n.d(r,"removeBlocks",(function(){return qn})),n.d(r,"removeBlock",(function(){return $n})),n.d(r,"replaceInnerBlocks",(function(){return Yn})),n.d(r,"toggleBlockMode",(function(){return Xn})),n.d(r,"startTyping",(function(){return Zn})),n.d(r,"stopTyping",(function(){return Jn})),n.d(r,"startDraggingBlocks",(function(){return Qn})),n.d(r,"stopDraggingBlocks",(function(){return er})),n.d(r,"enterFormattedText",(function(){return tr})),n.d(r,"exitFormattedText",(function(){return nr})),n.d(r,"selectionChange",(function(){return rr})),n.d(r,"insertDefaultBlock",(function(){return or})),n.d(r,"updateBlockListSettings",(function(){return ir})),n.d(r,"updateSettings",(function(){return cr})),n.d(r,"__unstableSaveReusableBlock",(function(){return ar})),n.d(r,"__unstableMarkLastChangeAsPersistent",(function(){return lr})),n.d(r,"__unstableMarkNextChangeAsNotPersistent",(function(){return sr})),n.d(r,"__unstableMarkAutomaticChange",(function(){return ur})),n.d(r,"setNavigationMode",(function(){return dr})),n.d(r,"duplicateBlocks",(function(){return fr})),n.d(r,"insertBeforeBlock",(function(){return br})),n.d(r,"insertAfterBlock",(function(){return pr}));var o={};n.r(o),n.d(o,"INSERTER_UTILITY_HIGH",(function(){return vr})),n.d(o,"INSERTER_UTILITY_MEDIUM",(function(){return Or})),n.d(o,"INSERTER_UTILITY_LOW",(function(){return jr})),n.d(o,"INSERTER_UTILITY_NONE",(function(){return kr})),n.d(o,"getBlockName",(function(){return Er})),n.d(o,"isBlockValid",(function(){return Sr})),n.d(o,"getBlockAttributes",(function(){return wr})),n.d(o,"getBlock",(function(){return Cr})),n.d(o,"__unstableGetBlockWithoutInnerBlocks",(function(){return Ir})),n.d(o,"getBlocks",(function(){return Br})),n.d(o,"getClientIdsOfDescendants",(function(){return xr})),n.d(o,"getClientIdsWithDescendants",(function(){return Tr})),n.d(o,"getGlobalBlockCount",(function(){return Pr})),n.d(o,"getBlocksByClientId",(function(){return Nr})),n.d(o,"getBlockCount",(function(){return Lr})),n.d(o,"getSelectionStart",(function(){return Rr})),n.d(o,"getSelectionEnd",(function(){return Mr})),n.d(o,"getBlockSelectionStart",(function(){return Ar})),n.d(o,"getBlockSelectionEnd",(function(){return Dr})),n.d(o,"getSelectedBlockCount",(function(){return Fr})),n.d(o,"hasSelectedBlock",(function(){return Hr})),n.d(o,"getSelectedBlockClientId",(function(){return Vr})),n.d(o,"getSelectedBlock",(function(){return Ur})),n.d(o,"getBlockRootClientId",(function(){return zr})),n.d(o,"getBlockParents",(function(){return Gr})),n.d(o,"getBlockParentsByBlockName",(function(){return Kr})),n.d(o,"getBlockHierarchyRootClientId",(function(){return Wr})),n.d(o,"getLowestCommonAncestorWithSelectedBlock",(function(){return qr})),n.d(o,"getAdjacentBlockClientId",(function(){return $r})),n.d(o,"getPreviousBlockClientId",(function(){return Yr})),n.d(o,"getNextBlockClientId",(function(){return Xr})),n.d(o,"getSelectedBlocksInitialCaretPosition",(function(){return Zr})),n.d(o,"getSelectedBlockClientIds",(function(){return Jr})),n.d(o,"getMultiSelectedBlockClientIds",(function(){return Qr})),n.d(o,"getMultiSelectedBlocks",(function(){return eo})),n.d(o,"getFirstMultiSelectedBlockClientId",(function(){return to})),n.d(o,"getLastMultiSelectedBlockClientId",(function(){return no})),n.d(o,"isFirstMultiSelectedBlock",(function(){return ro})),n.d(o,"isBlockMultiSelected",(function(){return oo})),n.d(o,"isAncestorMultiSelected",(function(){return io})),n.d(o,"getMultiSelectedBlocksStartClientId",(function(){return co})),n.d(o,"getMultiSelectedBlocksEndClientId",(function(){return ao})),n.d(o,"getBlockOrder",(function(){return lo})),n.d(o,"getBlockIndex",(function(){return so})),n.d(o,"isBlockSelected",(function(){return uo})),n.d(o,"hasSelectedInnerBlock",(function(){return fo})),n.d(o,"isBlockWithinSelection",(function(){return bo})),n.d(o,"hasMultiSelection",(function(){return po})),n.d(o,"isMultiSelecting",(function(){return ho})),n.d(o,"isSelectionEnabled",(function(){return mo})),n.d(o,"getBlockMode",(function(){return go})),n.d(o,"isTyping",(function(){return vo})),n.d(o,"isDraggingBlocks",(function(){return Oo})),n.d(o,"isCaretWithinFormattedText",(function(){return jo})),n.d(o,"getBlockInsertionPoint",(function(){return ko})),n.d(o,"isBlockInsertionPointVisible",(function(){return yo})),n.d(o,"isValidTemplate",(function(){return _o})),n.d(o,"getTemplate",(function(){return Eo})),n.d(o,"getTemplateLock",(function(){return So})),n.d(o,"canInsertBlockType",(function(){return Co})),n.d(o,"getInserterItems",(function(){return xo})),n.d(o,"hasInserterItems",(function(){return To})),n.d(o,"__experimentalGetAllowedBlocks",(function(){return Po})),n.d(o,"getBlockListSettings",(function(){return No})),n.d(o,"getSettings",(function(){return Lo})),n.d(o,"isLastBlockChangePersistent",(function(){return Ro})),n.d(o,"__experimentalGetBlockListSettingsForBlocks",(function(){return Mo})),n.d(o,"__experimentalGetParsedReusableBlock",(function(){return Ao})),n.d(o,"__unstableIsLastBlockChangeIgnored",(function(){return Do})),n.d(o,"__experimentalGetLastBlockAttributeChanges",(function(){return Fo})),n.d(o,"isNavigationMode",(function(){return Vo})),n.d(o,"didAutomaticChange",(function(){return Uo}));var i=n(11),c=n(24),a=n(55),l=n(48),s=n(6),u=n(12),d=n(0),f=n(10),b=n.n(f),p=n(2),h=n(9),m=n(30),g=n(4),v=n(51),O=n.n(v),j=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{color:n}},k=function(e,t){return Object(p.find)(e,{color:t})};function y(e,t){if(e&&t)return"has-".concat(Object(p.kebabCase)(t),"-").concat(e)}var _=n(14),E=n(13),S=n(15),w=n(16),C=n(8),I=n(17);function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T=[],P=function(e){return Object(h.createHigherOrderComponent)((function(t){return function(n){return Object(d.createElement)(t,Object(u.a)({},n,{colors:e}))}}),"withCustomColorPalette")},N=function(){return Object(g.withSelect)((function(e){var t=e("core/block-editor").getSettings();return{colors:Object(p.get)(t,["colors"],T)}}))};function L(e,t){var n=Object(p.reduce)(e,(function(e,t){return x({},e,{},Object(p.isString)(t)?Object(s.a)({},t,Object(p.kebabCase)(t)):t)}),{});return Object(h.compose)([t,function(e){return function(t){function r(e){var t;return Object(_.a)(this,r),(t=Object(S.a)(this,Object(w.a)(r).call(this,e))).setters=t.createSetters(),t.colorUtils={getMostReadableColor:t.getMostReadableColor.bind(Object(C.a)(t))},t.state={},t}return Object(I.a)(r,t),Object(E.a)(r,[{key:"getMostReadableColor",value:function(e){return function(e,t){return O.a.mostReadable(t,Object(p.map)(e,"color")).toHexString()}(this.props.colors,e)}},{key:"createSetters",value:function(){var e=this;return Object(p.reduce)(n,(function(t,n,r){var o=Object(p.upperFirst)(r),i="custom".concat(o);return t["set".concat(o)]=e.createSetColor(r,i),t}),{})}},{key:"createSetColor",value:function(e,t){var n=this;return function(r){var o,i=k(n.props.colors,r);n.props.setAttributes((o={},Object(s.a)(o,e,i&&i.slug?i.slug:void 0),Object(s.a)(o,t,i&&i.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(d.createElement)(e,x({},this.props,{colors:void 0},this.state,{},this.setters,{colorUtils:this.colorUtils}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.attributes,o=e.colors;return Object(p.reduce)(n,(function(e,n,i){var c=j(o,r[i],r["custom".concat(Object(p.upperFirst)(i))]),a=t[i];return Object(p.get)(a,["color"])===c.color&&a?e[i]=a:e[i]=x({},c,{class:y(n,c.slug)}),e}),{})}}]),r}(d.Component)}])}function R(e){return function(){for(var t=P(e),n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Object(h.createHigherOrderComponent)(L(r,t),"withCustomColors")}}function M(){for(var e=N(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Object(h.createHigherOrderComponent)(L(n,e),"withColors")}var A=n(19),D=n(18),F=n(20),H=n(47),V=n.n(H),U=n(1),z=n(3),G=Object(z.withFilters)("editor.BlockEdit")((function(e){var t=e.attributes,n=void 0===t?{}:t,r=e.name,o=Object(i.getBlockType)(r);if(!o)return null;var c=o.edit||o.save;if(Object(i.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(d.createElement)(c,e);var a=Object(i.hasBlockSupport)(o,"className",!0)?Object(i.getBlockDefaultClassName)(r):null,l=b()(a,n.className);return Object(d.createElement)(c,Object(u.a)({},e,{className:l}))})),K=Object(d.createContext)({name:"",isSelected:!1,focusedElement:null,setFocusedElement:p.noop,clientId:null}),W=K.Provider,q=K.Consumer;function $(){return Object(d.useContext)(K)}var Y=function(e){return Object(h.createHigherOrderComponent)((function(t){return function(n){return Object(d.createElement)(q,null,(function(r){return Object(d.createElement)(t,Object(u.a)({},n,e(r,n)))}))}}),"withBlockEditContext")},X=Object(h.createHigherOrderComponent)((function(e){return function(t){return Object(d.createElement)(q,null,(function(n){return n.isSelected&&Object(d.createElement)(e,t)}))}}),"ifBlockEditSelected"),Z=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).propsToContext=V()(e.propsToContext.bind(Object(C.a)(e)),{maxSize:1}),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"propsToContext",value:function(e,t,n,r,o){return{name:e,isSelected:t,clientId:n,onFocus:r,onCaretVerticalPositionChange:o}}},{key:"render",value:function(){var e=this.props,t=e.name,n=e.isSelected,r=e.clientId,o=e.onFocus,i=e.onCaretVerticalPositionChange,c=this.propsToContext(t,n,r,o,i);return Object(d.createElement)(W,{value:c},Object(d.createElement)(G,this.props))}}]),t}(d.Component);function J(e){if(e)return"has-".concat(e,"-gradient-background")}function Q(e,t){var n=Object(p.find)(e,["slug",t]);return n&&n.gradient}function ee(e,t){return Object(p.find)(e,["gradient",t])}function te(e,t){var n=ee(e,t);return n&&n.slug}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gradientAttribute,n=void 0===t?"gradient":t,r=e.customGradientAttribute,o=void 0===r?"customGradient":r,i=$(),c=i.clientId,a=Object(g.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockAttributes,i=t.getSettings,a=r(c);return{gradient:a[n],customGradient:a[o],gradients:i().gradients}}),[c,n,o]),l=a.gradients,u=a.gradient,f=a.customGradient,b=Object(g.useDispatch)("core/block-editor"),p=b.updateBlockAttributes,h=Object(d.useCallback)((function(e){var t,r,i=te(l,e);i?p(c,(r={},Object(s.a)(r,n,i),Object(s.a)(r,o,void 0),r)):p(c,(t={},Object(s.a)(t,n,void 0),Object(s.a)(t,o,e),t))}),[l,c,p]),m=J(u);return{gradientClass:m,gradientValue:u?Q(l,u):f,setGradient:h}}function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var oe=Object(U.__)("(Color: %s)"),ie=Object(U.__)("(Gradient: %s)"),ce=["colors","disableCustomColors","gradients","disableCustomGradients"];function ae(e){var t,n,r=e.colors,o=e.gradients,i=e.label,c=e.currentTab,a=e.colorValue,l=e.gradientValue;if("color"===c){if(a){var s=k(r,t=a),u=s&&s.name;n=Object(U.sprintf)(oe,u||t)}}else if("gradient"===c&&l){var f=ee(o,t=l),b=f&&f.name;n=Object(U.sprintf)(ie,b||t)}return Object(d.createElement)(d.Fragment,null,i,!!t&&Object(d.createElement)(z.ColorIndicator,{colorValue:t,"aria-label":n}))}function le(e){var t=e.colors,n=e.gradients,r=e.disableCustomColors,o=e.disableCustomGradients,i=e.className,c=e.label,a=e.onColorChange,l=e.onGradientChange,s=e.colorValue,f=e.gradientValue,h=a&&(!Object(p.isEmpty)(t)||!r),m=l&&(!Object(p.isEmpty)(n)||!o),g=Object(d.useState)(f?"gradient":!!h&&"color"),v=Object(D.a)(g,2),O=v[0],j=v[1];return h||m?Object(d.createElement)(z.BaseControl,{className:b()("block-editor-color-gradient-control",i)},Object(d.createElement)("fieldset",null,Object(d.createElement)("legend",null,Object(d.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(d.createElement)(z.BaseControl.VisualLabel,null,Object(d.createElement)(ae,{currentTab:O,label:c,colorValue:s,gradientValue:f})))),h&&m&&Object(d.createElement)(z.ButtonGroup,{className:"block-editor-color-gradient-control__button-tabs"},Object(d.createElement)(z.Button,{isSmall:!0,isPrimary:"color"===O,isSecondary:"color"!==O,onClick:function(){return j("color")}},Object(U.__)("Solid")),Object(d.createElement)(z.Button,{isSmall:!0,isPrimary:"gradient"===O,isSecondary:"gradient"!==O,onClick:function(){return j("gradient")}},Object(U.__)("Gradient"))),("color"===O||!m)&&Object(d.createElement)(z.ColorPalette,Object(u.a)({value:s,onChange:m?function(e){a(e),l()}:a},{colors:t,disableCustomColors:r})),("gradient"===O||!h)&&Object(d.createElement)(z.__experimentalGradientPicker,Object(u.a)({value:f,onChange:h?function(e){l(e),a()}:l},{gradients:n,disableCustomGradients:o})))):null}function se(e){var t=Object(g.useSelect)((function(e){var t=e("core/block-editor").getSettings();return Object(p.pick)(t,ce)}));return Object(d.createElement)(le,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{},e))}var ue=function(e){return Object(p.every)(ce,(function(t){return e.hasOwnProperty(t)}))?Object(d.createElement)(le,e):Object(d.createElement)(se,e)};function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var be=Object(U.__)("(%s: color %s)"),pe=Object(U.__)("(%s: gradient %s)"),he=["colors","disableCustomColors","gradients","disableCustomGradients"],me=function(e){var t=e.colors,n=e.gradients;return e.settings.map((function(e,r){var o,i=e.colorValue,c=e.gradientValue,a=e.label,l=e.colors,s=e.gradients;if(!i&&!c)return null;if(i){var u=k(l||t,i);o=Object(U.sprintf)(be,a.toLowerCase(),u&&u.name||i)}else{var f=ee(s||n,i);o=Object(U.sprintf)(pe,a.toLowerCase(),f&&f.name||c)}return Object(d.createElement)(z.ColorIndicator,{key:r,colorValue:i||c,"aria-label":o})}))},ge=function(e){var t=e.className,n=e.colors,r=e.gradients,o=e.disableCustomColors,i=e.disableCustomGradients,c=e.children,a=e.settings,l=e.title,s=Object(F.a)(e,["className","colors","gradients","disableCustomColors","disableCustomGradients","children","settings","title"]);if(Object(p.isEmpty)(n)&&Object(p.isEmpty)(r)&&o&&i&&Object(p.every)(a,(function(e){return Object(p.isEmpty)(e.colors)&&Object(p.isEmpty)(e.gradients)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)})))return null;var f=Object(d.createElement)("span",{className:"block-editor-panel-color-gradient-settings__panel-title"},l,Object(d.createElement)(me,{colors:n,gradients:r,settings:a}));return Object(d.createElement)(z.PanelBody,Object(u.a)({className:b()("block-editor-panel-color-gradient-settings",t),title:f},s),a.map((function(e,t){return Object(d.createElement)(ue,Object(u.a)({key:t},fe({colors:n,gradients:r,disableCustomColors:o,disableCustomGradients:i},e)))})),c)},ve=function(e){var t=Object(g.useSelect)((function(e){var t=e("core/block-editor").getSettings();return Object(p.pick)(t,he)}));return Object(d.createElement)(ge,fe({},t,{},e))},Oe=function(e){return Object(p.every)(he,(function(t){return e.hasOwnProperty(t)}))?Object(d.createElement)(ge,e):Object(d.createElement)(ve,e)};function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ke=function(e){var t=e.colorSettings,n=Object(F.a)(e,["colorSettings"]),r=t.map((function(e){var t=e.value,n=e.onChange;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(F.a)(e,["value","onChange"]),{colorValue:t,onColorChange:n})}));return Object(d.createElement)(Oe,Object(u.a)({settings:r,gradients:[],disableCustomGradients:!0},n))},ye=n(50);function _e(e){var t=e.tinyBackgroundColor,n=e.tinyTextColor,r=e.backgroundColor,o=e.textColor,i=t.getBrightness()<n.getBrightness()?Object(U.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(U.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.");return Object(d.useEffect)((function(){Object(ye.speak)(Object(U.__)("This color combination may be hard for people to read."))}),[r,o]),Object(d.createElement)("div",{className:"block-editor-contrast-checker"},Object(d.createElement)(z.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},i))}var Ee=function(e){var t=e.backgroundColor,n=e.fallbackBackgroundColor,r=e.fallbackTextColor,o=e.fontSize,i=e.isLargeText,c=e.textColor;if(!t&&!n||!c&&!r)return null;var a=O()(t||n),l=O()(c||r);return 1!==a.getAlpha()||1!==l.getAlpha()||O.a.isReadable(a,l,{level:"AA",size:i||!1!==i&&o>=24?"large":"small"})?null:Object(d.createElement)(_e,{backgroundColor:t,textColor:c,tinyBackgroundColor:a,tinyTextColor:l})},Se=Object(z.createSlotFill)("InspectorControls"),we=Se.Fill,Ce=Se.Slot,Ie=X(we);Ie.Slot=Ce;var Be=Ie;function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pe=window,Ne=Pe.getComputedStyle,Le=Pe.Node,Re=[],Me={textColor:Object(U.__)("Text Color"),backgroundColor:Object(U.__)("Background Color")},Ae=function(e,t,n){return"function"==typeof e?e(t):!0===e?n:e},De=function(e){var t=e.title,n=e.colorSettings,r=e.colorPanelProps,o=e.contrastCheckers,i=e.detectedBackgroundColor,c=e.detectedColor,a=e.panelChildren,l=e.initialOpen;return Object(d.createElement)(ke,Object(u.a)({title:t,initialOpen:l,colorSettings:Object.values(n)},r),o&&(Array.isArray(o)?o.map((function(e){var t=e.backgroundColor,r=e.textColor,o=Object(F.a)(e,["backgroundColor","textColor"]);return t=Ae(t,n,i),r=Ae(r,n,c),Object(d.createElement)(Ee,Object(u.a)({key:"".concat(t,"-").concat(r),backgroundColor:t,textColor:r},o))})):Object(p.map)(n,(function(e){var t=e.value,r=o.backgroundColor,a=o.textColor;return r=Ae(r||t,n,i),a=Ae(a||t,n,c),Object(d.createElement)(Ee,Object(u.a)({},o,{key:"".concat(r,"-").concat(a),backgroundColor:r,textColor:a}))}))),"function"==typeof a?a(n):a)},Fe=function(e){return Object(d.createElement)(Be,null,Object(d.createElement)(De,e))};function He(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{panelTitle:Object(U.__)("Color settings")},n=t.panelTitle,r=void 0===n?Object(U.__)("Color settings"):n,o=t.colorPanelProps,i=t.contrastCheckers,c=t.panelChildren,a=t.colorDetector,l=(a=void 0===a?{}:a).targetRef,u=a.backgroundColorTargetRef,f=void 0===u?l:u,h=a.textColorTargetRef,m=void 0===h?l:h,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],O=$(),j=O.clientId,k=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockAttributes,r=(0,t.getSettings)().colors;return{attributes:n(j),settingsColors:r&&!0!==r?r:Re}}),[j]),y=k.attributes,_=k.settingsColors,E=Object(g.useDispatch)("core/block-editor"),S=E.updateBlockAttributes,w=Object(d.useCallback)((function(e){return S(j,e)}),[S,j]),C=Object(d.useMemo)((function(){return V()((function(e,t,n,r,o,i){return function(c){var a=c.children,l=c.className,u=void 0===l?"":l,f=c.style,h=void 0===f?{}:f;return(d.Children.map(a,(function(c){var a,l={};return r?l=Object(s.a)({},t,o):i&&(l=Object(s.a)({},t,i)),Object(d.cloneElement)(c,{className:b()(u,c.props.className,(a={},Object(s.a)(a,"has-".concat(Object(p.kebabCase)(r),"-").concat(Object(p.kebabCase)(t)),r),Object(s.a)(a,n||"has-".concat(Object(p.kebabCase)(e)),r||i),a)),style:Te({},l,{},h,{},c.props.style||{})})})))}}),{maxSize:e.length})}),[e.length]),I=Object(d.useMemo)((function(){return V()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));w(Object(s.a)({},r?Object(p.camelCase)("custom ".concat(e)):e,void 0)),w(Object(s.a)({},r?e:Object(p.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[w,e.length]),B=Object(d.useState)(),x=Object(D.a)(B,2),T=x[0],P=x[1],N=Object(d.useState)(),L=Object(D.a)(N,2),R=L[0],M=L[1];return Object(d.useEffect)((function(){if(i){var e=!1,t=!1,n=!0,r=!1,o=void 0;try{for(var c,a=Object(p.castArray)(i)[Symbol.iterator]();!(n=(c=a.next()).done);n=!0){var l=c.value,s=l.backgroundColor,u=l.textColor;if(e||(e=!0===s),t||(t=!0===u),e&&t)break}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}if(t&&M(Ne(m.current).color),e){for(var d=f.current,b=Ne(d).backgroundColor;"rgba(0, 0, 0, 0)"===b&&d.parentNode&&d.parentNode.nodeType===Le.ELEMENT_NODE;)d=d.parentNode,b=Ne(d).backgroundColor;P(b)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(y[t.name]," | ").concat(y[Object(p.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(A.a)(v))),Object(d.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=Te({},n,{color:y[n.name]}),o=r.name,i=r.property,c=void 0===i?o:i,a=r.className,l=r.panelLabel,s=void 0===l?n.label||Me[o]||Object(p.startCase)(o):l,u=r.componentName,d=void 0===u?Object(p.startCase)(o).replace(/\s/g,""):u,f=r.color,b=void 0===f?n.color:f,h=r.colors,m=void 0===h?_:h,g=y[Object(p.camelCase)("custom ".concat(o))],v=g?void 0:m.find((function(e){return e.slug===b}));return e[d]=C(o,c,a,b,v&&v.color,g),e[d].displayName=d,e[d].color=g||v&&v.color,e[d].slug=b,e[d].setColor=I(o,m),t[d]={value:v?v.color:y[Object(p.camelCase)("custom ".concat(o))],onChange:e[d].setColor,label:s,colors:m},m||delete t[d].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:i,detectedBackgroundColor:T,detectedColor:R,panelChildren:c};return Te({},n,{ColorPanel:Object(d.createElement)(De,a),InspectorControlsColorPanel:Object(d.createElement)(Fe,a)})}),[y,w,R,T].concat(Object(A.a)(v)))}var Ve=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{size:n}};function Ue(e){if(e)return"has-".concat(Object(p.kebabCase)(e),"-font-size")}var ze=Object(g.withSelect)((function(e){var t=e("core/block-editor").getSettings();return{disableCustomFontSizes:t.disableCustomFontSizes,fontSizes:t.fontSizes}}))(z.FontSizePicker);function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var We=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Object(p.reduce)(t,(function(e,t){return e[t]="custom".concat(Object(p.upperFirst)(t)),e}),{});return Object(h.createHigherOrderComponent)(Object(h.compose)([Object(g.withSelect)((function(e){return{fontSizes:e("core/block-editor").getSettings().fontSizes}})),function(e){return function(t){function n(e){var t;return Object(_.a)(this,n),(t=Object(S.a)(this,Object(w.a)(n).call(this,e))).setters=t.createSetters(),t.state={},t}return Object(I.a)(n,t),Object(E.a)(n,[{key:"createSetters",value:function(){var e=this;return Object(p.reduce)(r,(function(t,n,r){var o=Object(p.upperFirst)(r);return t["set".concat(o)]=e.createSetFontSize(r,n),t}),{})}},{key:"createSetFontSize",value:function(e,t){var n=this;return function(r){var o,i=Object(p.find)(n.props.fontSizes,{size:Number(r)});n.props.setAttributes((o={},Object(s.a)(o,e,i&&i.slug?i.slug:void 0),Object(s.a)(o,t,i&&i.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(d.createElement)(e,Ke({},this.props,{fontSizes:void 0},this.state,{},this.setters))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.attributes,o=e.fontSizes,i=function(e,r){return!t[r]||(n[r]?n[r]!==t[r].slug:t[r].size!==n[e])};if(!Object(p.some)(r,i))return null;var c=Object(p.reduce)(Object(p.pickBy)(r,i),(function(e,t,r){var i=n[r],c=Ve(o,i,n[t]);return e[r]=Ke({},c,{class:Ue(i)}),e}),{});return Ke({},t,{},c)}}]),n}(d.Component)}]),"withFontSizes")},qe=n(259),$e=n(260),Ye=n(261);function Xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ze=[{icon:qe.a,title:Object(U.__)("Align text left"),align:"left"},{icon:$e.a,title:Object(U.__)("Align text center"),align:"center"},{icon:Ye.a,title:Object(U.__)("Align text right"),align:"right"}],Je={position:"bottom right"};var Qe=function(e){var t=e.value,n=e.onChange,r=e.alignmentControls,o=void 0===r?Ze:r,i=e.label,c=void 0===i?Object(U.__)("Change text alignment"):i,a=e.isCollapsed,l=void 0===a||a;function u(e){return function(){return n(t===e?void 0:e)}}var f=Object(p.find)(o,(function(e){return e.align===t}));return Object(d.createElement)(z.Toolbar,{isCollapsed:l,icon:f?f.icon:qe.a,label:c,popoverProps:Je,controls:o.map((function(e){var n=e.align;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{isActive:t===n,role:l?"menuitemradio":void 0,onClick:u(n)})}))})};var et=Object(h.compose)([Y((function(e){return{blockName:e.name}})),function(e){return function(t){var n=t.completers,r=void 0===n?[]:n;return Object(m.hasFilter)("editor.Autocomplete.completers")&&(r=Object(m.applyFilters)("editor.Autocomplete.completers",r.map(p.clone),t.blockName)),Object(d.createElement)(e,Object(u.a)({},t,{completers:r}))}}])(z.Autocomplete),tt=n(7),nt=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(tt.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),rt=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(tt.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),ot=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(tt.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),it=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(tt.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),ct=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(tt.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"}));function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var lt={left:{icon:nt,title:Object(U.__)("Align left")},center:{icon:rt,title:Object(U.__)("Align center")},right:{icon:ot,title:Object(U.__)("Align right")},wide:{icon:it,title:Object(U.__)("Wide width")},full:{icon:ct,title:Object(U.__)("Full width")}},st=["left","center","right","wide","full"],ut=["wide","full"];var dt=Object(h.compose)(Y((function(e){return{clientId:e.clientId}})),Object(g.withSelect)((function(e){return{wideControlsEnabled:(0,e("core/block-editor").getSettings)().alignWide}})))((function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?st:r,i=e.isCollapsed,c=void 0===i||i,a=e.wideControlsEnabled,l=void 0!==a&&a?o:o.filter((function(e){return-1===ut.indexOf(e)})),u=lt[t],f=lt.center;return Object(d.createElement)(z.Toolbar,{isCollapsed:c,icon:u?u.icon:f.icon,label:Object(U.__)("Change alignment"),controls:l.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},lt[e],{isActive:t===e,role:c?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))})}));var ft=Object(g.withSelect)((function(e,t){return{name:(0,e("core/block-editor").getBlockName)(t.clientId)}}))((function(e){var t=e.name;if(!t)return null;var n=Object(i.getBlockType)(t);return n?n.title:null})),bt=function(){var e=Object(g.useDispatch)("core/block-editor"),t=e.selectBlock,n=e.clearSelectedBlock,r=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectionStart,r=t.getSelectedBlockClientId,o=t.getBlockParents,i=r();return{parents:o(i),clientId:i,hasSelection:!!n().clientId}}),[]),o=r.clientId,i=r.parents,c=r.hasSelection;return Object(d.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(U.__)("Block breadcrumb")},Object(d.createElement)("li",{className:c?void 0:"block-editor-block-breadcrumb__current","aria-current":c?void 0:"true"},c&&Object(d.createElement)(z.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:n},Object(U.__)("Document")),!c&&Object(U.__)("Document")),i.map((function(e){return Object(d.createElement)("li",{key:e},Object(d.createElement)(z.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:function(){return t(e)}},Object(d.createElement)(ft,{clientId:e})))})),!!o&&Object(d.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(d.createElement)(ft,{clientId:o})))},pt=Object(z.createSlotFill)("BlockControls"),ht=pt.Fill,mt=pt.Slot,gt=X((function(e){var t=e.controls,n=e.children;return Object(d.createElement)(ht,null,Object(d.createElement)(z.Toolbar,{controls:t}),n)}));gt.Slot=mt;var vt=gt,Ot=Object(z.createSlotFill)("BlockFormatControls"),jt=Ot.Fill,kt=Ot.Slot,yt=X(jt);yt.Slot=kt;var _t=yt,Et=n(262);function St(e){var t=e.icon,n=e.showColors,r=void 0!==n&&n,o=e.className;"block-default"===Object(p.get)(t,["src"])&&(t={src:Et.a});var i=Object(d.createElement)(z.Icon,{icon:t&&t.src?t.src:t}),c=r?{backgroundColor:t&&t.background,color:t&&t.foreground}:{};return Object(d.createElement)("span",{style:c,className:b()("block-editor-block-icon",o,{"has-colors":r})},i)}var wt=n(114),Ct=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(tt.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),It=n(79),Bt=n.n(It),xt=n(22),Tt=n(27),Pt=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(tt.Path,{d:"M5 7v3l-2 1.5V5h11V3l4 3.01L14 9V7H5zm10 6v-3l2-1.5V15H6v2l-4-3.01L6 11v2h9z"})),Nt={insertUsage:{}},Lt={alignWide:!1,colors:[{name:Object(U.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(U.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(U.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(U.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(U.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(U.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(U.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(U.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(U.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"},{name:Object(U.__)("Very light gray"),slug:"very-light-gray",color:"#eeeeee"},{name:Object(U.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(U.__)("Very dark gray"),slug:"very-dark-gray",color:"#313131"}],fontSizes:[{name:Object(U._x)("Small","font size name"),size:13,slug:"small"},{name:Object(U._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(U._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(U._x)("Large","font size name"),size:36,slug:"large"},{name:Object(U._x)("Huge","font size name"),size:48,slug:"huge"}],imageSizes:[{slug:"thumbnail",name:Object(U.__)("Thumbnail")},{slug:"medium",name:Object(U.__)("Medium")},{slug:"large",name:Object(U.__)("Large")},{slug:"full",name:Object(U.__)("Full Size")}],maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,availableLegacyWidgets:{},hasPermissionsToManageWidgets:!1,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalEnableLegacyWidgetBlock:!1,__experimentalBlockDirectory:!1,__experimentalEnableFullSiteEditing:!1,__experimentalEnableFullSiteEditingDemo:!1,__mobileEnablePageTemplates:!1,gradients:[{name:Object(U.__)("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(U.__)("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(U.__)("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(U.__)("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(U.__)("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(U.__)("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(U.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(U.__)("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(U.__)("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(U.__)("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(U.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(U.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function Rt(e,t,n){return[].concat(Object(A.a)(e.slice(0,n)),Object(A.a)(Object(p.castArray)(t)),Object(A.a)(e.slice(n)))}function Mt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(A.a)(e);return o.splice(t,r),Rt(o,e.slice(t,t+r),n)}function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(s.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,Ft(o,r))})),n}function Ht(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(s.a)({},n.clientId,t),Ht(n.innerBlocks,n.clientId))}),{})}function Vt(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.identity,n={},r=Object(A.a)(e);r.length;){var o=r.shift(),i=o.innerBlocks,c=Object(F.a)(o,["innerBlocks"]);r.push.apply(r,Object(A.a)(i)),n[c.clientId]=t(c)}return n}function Ut(e){return Vt(e,(function(e){return Object(p.omit)(e,"attributes")}))}function zt(e){return Vt(e,(function(e){return e.attributes}))}function Gt(e,t){return e===t?Dt({},e):t}function Kt(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&e.clientId===t.clientId&&(n=e.attributes,r=t.attributes,Object(p.isEqual)(Object(p.keys)(n),Object(p.keys)(r)));var n,r}var Wt=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var qt=Object(p.flow)(g.combineReducers,(function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=Dt({},t)).attributes=Object(p.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?Dt({},e,{ref:o}):e}))}return e(t,n)}}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e(t,n);if(r===t)return t;r.cache=t.cache?t.cache:{};var o=function(e){return e.reduce((function(e,n){var r=n;do{e.push(r),r=t.parents[r]}while(r);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(p.mapValues)(Vt(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var i=Object(p.keys)(Vt(n.blocks));n.rootClientId&&i.push(n.rootClientId),r.cache=Dt({},r.cache,{},Wt(o(i)));break;case"UPDATE_BLOCK":case"UPDATE_BLOCK_ATTRIBUTES":r.cache=Dt({},r.cache,{},Wt(o([n.clientId])));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var c=Wt(o(n.replacedClientIds));r.cache=Dt({},Object(p.omit)(r.cache,n.replacedClientIds),{},Object(p.omit)(c,n.replacedClientIds),{},Wt(Object(p.keys)(Vt(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=Dt({},Object(p.omit)(r.cache,n.removedClientIds),{},Wt(Object(p.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCK_TO_POSITION":var a=[n.clientId];n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=Dt({},r.cache,{},Wt(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=Dt({},r.cache,{},Wt(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(p.keys)(Object(p.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=Dt({},r.cache,{},Wt(o(s)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var n=e,r=0;r<n.length;r++){var o;t.order[n[r]]&&(n===e&&(n=Object(A.a)(n)),(o=n).push.apply(o,Object(A.a)(t.order[n[r]])))}return n};if(t)switch(n.type){case"REMOVE_BLOCKS":n=Dt({},n,{type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:r(n.clientIds)});break;case"REPLACE_BLOCKS":n=Dt({},n,{type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:r(n.clientIds)})}return e(t,n)}}),(function(e){return function(t,n){if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);var r=t;t.order[n.rootClientId]&&(r=e(r,{type:"REMOVE_BLOCKS",clientIds:t.order[n.rootClientId]}));var o=r;return n.blocks.length&&(o=e(o,Dt({},n,{type:"INSERT_BLOCKS",index:0}))),o}}),(function(e){return function(t,n){if(t&&"RESET_BLOCKS"===n.type){var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.reduce)(t[n],(function(n,r){return[].concat(Object(A.a)(n),[r],Object(A.a)(e(t,r)))}),[])}(t.order);return Dt({},t,{byClientId:Dt({},Object(p.omit)(t.byClientId,r),{},Ut(n.blocks)),attributes:Dt({},Object(p.omit)(t.attributes,r),{},zt(n.blocks)),order:Dt({},Object(p.omit)(t.order,r),{},Ft(n.blocks)),parents:Dt({},Object(p.omit)(t.parents,r),{},Ht(n.blocks)),cache:Dt({},Object(p.omit)(t.cache,r),{},Object(p.mapValues)(Vt(n.blocks),(function(){return{}})))})}return e(t,n)}}),(function(e){var t,n=!1;return function(r,o){var i=e(r,o),c="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||n;if(r===i&&!c){n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var a=Object(p.get)(r,["isPersistentChange"],!0);return r.isPersistentChange===a?r:Dt({},i,{isPersistentChange:a})}return i=Dt({},i,{isPersistentChange:c?!n:!Kt(o,t)}),t=o,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type,i}}),(function(e){var t=new Set(["RECEIVE_BLOCKS"]);return function(n,r){var o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}))({byClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Ut(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Dt({},e,{},Ut(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(p.omit)(t.updates,"attributes");return Object(p.isEmpty)(n)?e:Dt({},e,Object(s.a)({},t.clientId,Dt({},e[t.clientId],{},n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Dt({},Object(p.omit)(e,t.replacedClientIds),{},Ut(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return zt(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Dt({},e,{},zt(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?Dt({},e,Object(s.a)({},t.clientId,Dt({},e[t.clientId],{},t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(!e[t.clientId])return e;var n=Object(p.reduce)(t.attributes,(function(n,r,o){return r!==n[o]&&((n=Gt(e[t.clientId],n))[o]=r),n}),e[t.clientId]);return n===e[t.clientId]?e:Dt({},e,Object(s.a)({},t.clientId,n));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Dt({},Object(p.omit)(e,t.replacedClientIds),{},zt(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Ft(t.blocks);case"RECEIVE_BLOCKS":return Dt({},e,{},Object(p.omit)(Ft(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],i=Ft(t.blocks,r),c=t.index,a=void 0===c?o.length:c;return Dt({},e,{},i,Object(s.a)({},r,Rt(o,i[r],a)));case"MOVE_BLOCK_TO_POSITION":var l,u=t.fromRootClientId,d=void 0===u?"":u,f=t.toRootClientId,b=void 0===f?"":f,h=t.clientId,m=t.index,g=void 0===m?e[b].length:m;if(d===b){var v=e[b],O=v.indexOf(h);return Dt({},e,Object(s.a)({},b,Mt(e[b],O,g)))}return Dt({},e,(l={},Object(s.a)(l,d,Object(p.without)(e[d],h)),Object(s.a)(l,b,Rt(e[b],h,g)),l));case"MOVE_BLOCKS_UP":var j=t.clientIds,k=t.rootClientId,y=void 0===k?"":k,_=Object(p.first)(j),E=e[y];if(!E.length||_===Object(p.first)(E))return e;var S=E.indexOf(_);return Dt({},e,Object(s.a)({},y,Mt(E,S,S-1,j.length)));case"MOVE_BLOCKS_DOWN":var w=t.clientIds,C=t.rootClientId,I=void 0===C?"":C,B=Object(p.first)(w),x=Object(p.last)(w),T=e[I];if(!T.length||x===Object(p.last)(T))return e;var P=T.indexOf(B);return Dt({},e,Object(s.a)({},I,Mt(T,P,P+1,w.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var N=t.clientIds;if(!t.blocks)return e;var L=Ft(t.blocks);return Object(p.flow)([function(e){return Object(p.omit)(e,t.replacedClientIds)},function(e){return Dt({},e,{},Object(p.omit)(L,""))},function(e){return Object(p.mapValues)(e,(function(e){return Object(p.reduce)(e,(function(e,t){return t===N[0]?[].concat(Object(A.a)(e),Object(A.a)(L[""])):(-1===N.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.flow)([function(e){return Object(p.omit)(e,t.removedClientIds)},function(e){return Object(p.mapValues)(e,(function(e){return p.without.apply(void 0,[e].concat(Object(A.a)(t.removedClientIds)))}))}])(e)}return e},parents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Ht(t.blocks);case"RECEIVE_BLOCKS":return Dt({},e,{},Ht(t.blocks));case"INSERT_BLOCKS":return Dt({},e,{},Ht(t.blocks,t.rootClientId||""));case"MOVE_BLOCK_TO_POSITION":return Dt({},e,Object(s.a)({},t.clientId,t.toRootClientId||""));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Dt({},Object(p.omit)(e,t.replacedClientIds),{},Ht(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e}});function $t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;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?{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;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];return r?r.clientId===e.clientId?e:{clientId:r.clientId}:{}}return e}var Yt=Object(g.combineReducers)({blocks:qt,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isDraggingBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return!0;case"STOP_DRAGGING_BLOCKS":return!1}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selectionStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset};case"RESET_SELECTION":return t.selectionStart;case"MULTI_SELECT":return{clientId:t.start}}return $t(e,t)},selectionEnd:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset};case"RESET_SELECTION":return t.selectionEnd;case"MULTI_SELECT":return{clientId:t.end}}return $t(e,t)},isMultiSelecting:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(e,t){return"SELECT_BLOCK"===t.type?t.initialPosition:"REMOVE_BLOCKS"===t.type?e:void 0},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){var n=t.clientId;return Dt({},e,Object(s.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(p.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(p.isEqual)(e[n],t.settings)?e:Dt({},e,Object(s.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(p.omit)(e,n):e}return e},insertionPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r};case"HIDE_INSERTION_POINT":return null}return e},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return Dt({},e,{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lt,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return Dt({},e,{},t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nt,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((function(e,n){var r=n.name,o={name:n.name};return Object(i.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),Dt({},e,{insertUsage:Dt({},e.insertUsage,Object(s.a)({},r,{time:t.time,count:e.insertUsage[r]?e.insertUsage[r].count+1:1,insert:o}))})}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return Object(s.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return Object(s.a)({},t.clientId,t.attributes)}return null},isNavigationMode:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode: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"STOP_TYPING":return e}}}),Xt=n(84),Zt=n.n(Xt),Jt=n(235),Qt=n.n(Jt),en=n(31),tn=n(23),nn=n.n(tn);function rn(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return{type:"SELECT",storeName:e,selectorName:t,args:r}}var on={SELECT:Object(g.createRegistryControl)((function(e){return function(t){var n,r=t.storeName,o=t.selectorName,i=t.args;return(n=e.select(r))[o].apply(n,Object(A.a)(i))}}))};function cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cn(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ln=nn.a.mark(On),sn=nn.a.mark(wn),un=nn.a.mark(Cn),dn=nn.a.mark(Ln),fn=nn.a.mark(Fn),bn=nn.a.mark(Vn),pn=nn.a.mark(qn),hn=nn.a.mark(dr),mn=nn.a.mark(fr),gn=nn.a.mark(br),vn=nn.a.mark(pr);function On(){return nn.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rn("core/block-editor","getBlockCount");case 2:if(0!==e.sent){e.next=6;break}return e.next=6,or();case 6:case"end":return e.stop()}}),ln)}function jn(e){return{type:"RESET_BLOCKS",blocks:e}}function kn(e,t){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t}}function yn(e){return{type:"RECEIVE_BLOCKS",blocks:e}}function _n(e,t){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientId:e,attributes:t}}function En(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function Sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function wn(e){var t;return nn.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,rn("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,Sn(t,-1);case 6:case"end":return n.stop()}}),sn)}function Cn(e){var t;return nn.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,rn("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,Sn(t);case 6:case"end":return n.stop()}}),un)}function In(){return{type:"START_MULTI_SELECT"}}function Bn(){return{type:"STOP_MULTI_SELECT"}}function xn(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function Tn(){return{type:"CLEAR_SELECTED_BLOCK"}}function Pn(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function Nn(e,t){var n=Object(p.get)(t,["__experimentalPreferredStyleVariations","value"],{});return e.map((function(e){var t=e.name;if(!n[t])return e;var r=Object(p.get)(e,["attributes","className"]);if(Object(p.includes)(r,"is-style-"))return e;var o=e.attributes,i=void 0===o?{}:o,c=n[t];return an({},e,{attributes:an({},i,{className:"".concat(r||""," is-style-").concat(c).trim()})})}))}function Ln(e,t,n){var r,o,i;return nn.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return e=Object(p.castArray)(e),c.t0=Nn,c.t1=Object(p.castArray)(t),c.next=5,rn("core/block-editor","getSettings");case 5:return c.t2=c.sent,t=(0,c.t0)(c.t1,c.t2),c.next=9,rn("core/block-editor","getBlockRootClientId",Object(p.first)(e));case 9:r=c.sent,o=0;case 11:if(!(o<t.length)){c.next=21;break}return i=t[o],c.next=15,rn("core/block-editor","canInsertBlockType",i.name,r);case 15:if(c.sent){c.next=18;break}return c.abrupt("return");case 18:o++,c.next=11;break;case 21:return c.next=23,{type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n};case 23:return c.delegateYield(On(),"t3",24);case 24:case"end":return c.stop()}}),dn)}function Rn(e,t){return Ln(e,t)}function Mn(e){return function(t,n){return{clientIds:Object(p.castArray)(t),type:e,rootClientId:n}}}var An=Mn("MOVE_BLOCKS_DOWN"),Dn=Mn("MOVE_BLOCKS_UP");function Fn(e){var t,n,r,o,i,c,a=arguments;return nn.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return t=a.length>1&&void 0!==a[1]?a[1]:"",n=a.length>2&&void 0!==a[2]?a[2]:"",r=a.length>3?a[3]:void 0,l.next=5,rn("core/block-editor","getTemplateLock",t);case 5:if("all"!==(o=l.sent)){l.next=8;break}return l.abrupt("return");case 8:if(i={type:"MOVE_BLOCK_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientId:e,index:r},t!==n){l.next=13;break}return l.next=12,i;case 12:return l.abrupt("return");case 13:if("insert"!==o){l.next=15;break}return l.abrupt("return");case 15:return l.next=17,rn("core/block-editor","getBlockName",e);case 17:return c=l.sent,l.next=20,rn("core/block-editor","canInsertBlockType",c,n);case 20:if(!l.sent){l.next=24;break}return l.next=24,i;case 24:case"end":return l.stop()}}),fn)}function Hn(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return Vn([e],t,n,r)}function Vn(e,t,n){var r,o,i,c,a,l,s,u,d=arguments;return nn.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return r=!(d.length>3&&void 0!==d[3])||d[3],f.t0=Nn,f.t1=Object(p.castArray)(e),f.next=5,rn("core/block-editor","getSettings");case 5:f.t2=f.sent,e=(0,f.t0)(f.t1,f.t2),o=[],i=!0,c=!1,a=void 0,f.prev=11,l=e[Symbol.iterator]();case 13:if(i=(s=l.next()).done){f.next=22;break}return u=s.value,f.next=17,rn("core/block-editor","canInsertBlockType",u.name,n);case 17:f.sent&&o.push(u);case 19:i=!0,f.next=13;break;case 22:f.next=28;break;case 24:f.prev=24,f.t3=f.catch(11),c=!0,a=f.t3;case 28:f.prev=28,f.prev=29,i||null==l.return||l.return();case 31:if(f.prev=31,!c){f.next=34;break}throw a;case 34:return f.finish(31);case 35:return f.finish(28);case 36:if(!o.length){f.next=38;break}return f.abrupt("return",{type:"INSERT_BLOCKS",blocks:o,index:t,rootClientId:n,time:Date.now(),updateSelection:r});case 38:case"end":return f.stop()}}),bn,null,[[11,24,28,36],[29,,31,35]])}function Un(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function zn(){return{type:"HIDE_INSERTION_POINT"}}function Gn(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function Kn(){return{type:"SYNCHRONIZE_TEMPLATE"}}function Wn(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function qn(e){var t,n,r=arguments;return nn.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(t=!(r.length>1&&void 0!==r[1])||r[1],e&&e.length){o.next=3;break}return o.abrupt("return");case 3:return e=Object(p.castArray)(e),o.next=6,rn("core/block-editor","getBlockRootClientId",e[0]);case 6:return n=o.sent,o.next=9,rn("core/block-editor","getTemplateLock",n);case 9:if(!o.sent){o.next=12;break}return o.abrupt("return");case 12:if(!t){o.next=15;break}return o.next=15,wn(e[0]);case 15:return o.next=17,{type:"REMOVE_BLOCKS",clientIds:e};case 17:return o.delegateYield(On(),"t0",18);case 18:case"end":return o.stop()}}),pn)}function $n(e,t){return qn([e],t)}function Yn(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,time:Date.now()}}function Xn(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function Zn(){return{type:"START_TYPING"}}function Jn(){return{type:"STOP_TYPING"}}function Qn(){return{type:"START_DRAGGING_BLOCKS"}}function er(){return{type:"STOP_DRAGGING_BLOCKS"}}function tr(){return{type:"ENTER_FORMATTED_TEXT"}}function nr(){return{type:"EXIT_FORMATTED_TEXT"}}function rr(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function or(e,t,n){var r=Object(i.getDefaultBlockName)();if(r)return Hn(Object(i.createBlock)(r,e),n,t)}function ir(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function cr(e){return{type:"UPDATE_SETTINGS",settings:e}}function ar(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function lr(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function sr(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function ur(){return{type:"MARK_AUTOMATIC_CHANGE"}}function dr(){var e,t=arguments;return nn.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=!(t.length>0&&void 0!==t[0])||t[0],n.next=3,{type:"SET_NAVIGATION_MODE",isNavigationMode:e};case 3:e?Object(ye.speak)(Object(U.__)("You are currently in navigation mode. Navigate blocks using the Tab key. To exit navigation mode and edit the selected block, press Enter.")):Object(ye.speak)(Object(U.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),hn)}function fr(e){var t,n,r,o,c;return nn.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(e||e.length){a.next=2;break}return a.abrupt("return");case 2:return a.next=4,rn("core/block-editor","getBlocksByClientId",e);case 4:return t=a.sent,a.next=7,rn("core/block-editor","getBlockRootClientId",e[0]);case 7:if(n=a.sent,!Object(p.some)(t,(function(e){return!e}))){a.next=10;break}return a.abrupt("return");case 10:if(r=t.map((function(e){return e.name})),!Object(p.some)(r,(function(e){return!Object(i.hasBlockSupport)(e,"multiple",!0)}))){a.next=13;break}return a.abrupt("return");case 13:return a.next=15,rn("core/block-editor","getBlockIndex",Object(p.last)(Object(p.castArray)(e)),n);case 15:return o=a.sent,c=t.map((function(e){return Object(i.cloneBlock)(e)})),a.next=19,Vn(c,o+1,n);case 19:if(!(c.length>1)){a.next=22;break}return a.next=22,xn(Object(p.first)(c).clientId,Object(p.last)(c).clientId);case 22:case"end":return a.stop()}}),mn)}function br(e){var t,n;return nn.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,rn("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,rn("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,rn("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,or({},t,n);case 15:case"end":return r.stop()}}),gn)}function pr(e){var t,n;return nn.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,rn("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,rn("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,rn("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,or({},t,n+1);case 15:case"end":return r.stop()}}),vn)}var hr=n(39);function mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vr=3,Or=2,jr=1,kr=0,yr=Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(z.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(d.createElement)(z.G,null,Object(d.createElement)(z.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 Er(e,t){var n=e.blocks.byClientId[t];return n?n.name:null}function Sr(e,t){var n=e.blocks.byClientId[t];return!!n&&n.isValid}function wr(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}var Cr=Object(hr.a)((function(e,t){var n=e.blocks.byClientId[t];return n?gr({},n,{attributes:wr(e,t),innerBlocks:Br(e,t)}):null}),(function(e,t){return[e.blocks.cache[t]]})),Ir=Object(hr.a)((function(e,t){var n=e.blocks.byClientId[t];return n?gr({},n,{attributes:wr(e,t)}):null}),(function(e,t){return[e.blocks.byClientId[t],e.blocks.attributes[t]]})),Br=Object(hr.a)((function(e,t){return Object(p.map)(lo(e,t),(function(t){return Cr(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),xr=function e(t,n){return Object(p.flatMap)(n,(function(n){var r=lo(t,n);return[].concat(Object(A.a)(r),Object(A.a)(e(t,r)))}))},Tr=Object(hr.a)((function(e){var t=lo(e);return[].concat(Object(A.a)(t),Object(A.a)(xr(e,t)))}),(function(e){return[e.blocks.order]})),Pr=Object(hr.a)((function(e,t){var n=Tr(e);return t?Object(p.reduce)(n,(function(n,r){return e.blocks.byClientId[r].name===t?n+1:n}),0):n.length}),(function(e){return[e.blocks.order,e.blocks.byClientId]})),Nr=Object(hr.a)((function(e,t){return Object(p.map)(Object(p.castArray)(t),(function(t){return Cr(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function Lr(e,t){return lo(e,t).length}function Rr(e){return e.selectionStart}function Mr(e){return e.selectionEnd}function Ar(e){return e.selectionStart.clientId}function Dr(e){return e.selectionEnd.clientId}function Fr(e){var t=Qr(e).length;return t||(e.selectionStart.clientId?1:0)}function Hr(e){var t=e.selectionStart,n=e.selectionEnd;return!!t.clientId&&t.clientId===n.clientId}function Vr(e){var t=e.selectionStart,n=e.selectionEnd,r=t.clientId;return r&&r===n.clientId?r:null}function Ur(e){var t=Vr(e);return t?Cr(e,t):null}function zr(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}var Gr=Object(hr.a)((function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],o=t;e.blocks.parents[o];)o=e.blocks.parents[o],r.push(o);return n?r:r.reverse()}),(function(e){return[e.blocks.parents]})),Kr=Object(hr.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Gr(e,t,r);return Object(p.map)(Object(p.filter)(Object(p.map)(o,(function(t){return{id:t,name:Er(e,t)}})),{name:n}),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function Wr(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function qr(e,t){for(var n,r=Vr(e),o=[].concat(Object(A.a)(Gr(e,t)),[t]),i=[].concat(Object(A.a)(Gr(e,r)),[r]),c=Math.min(o.length,i.length),a=0;a<c&&o[a]===i[a];a++)n=o[a];return n}function $r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=Vr(e)),void 0===t&&(t=n<0?to(e):no(e)),!t)return null;var r=zr(e,t);if(null===r)return null;var o=e.blocks.order,i=o[r],c=i.indexOf(t),a=c+1*n;return a<0?null:a===i.length?null:i[a]}function Yr(e,t){return $r(e,t,-1)}function Xr(e,t){return $r(e,t,1)}function Zr(e){return e.initialPosition}var Jr=Object(hr.a)((function(e){var t=e.selectionStart,n=e.selectionEnd;if(void 0===t.clientId||void 0===n.clientId)return _r;if(t.clientId===n.clientId)return[t.clientId];var r=zr(e,t.clientId);if(null===r)return _r;var o=lo(e,r),i=o.indexOf(t.clientId),c=o.indexOf(n.clientId);return i>c?o.slice(c,i+1):o.slice(i,c+1)}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function Qr(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?_r:Jr(e)}var eo=Object(hr.a)((function(e){var t=Qr(e);return t.length?t.map((function(t){return Cr(e,t)})):_r}),(function(e){return[].concat(Object(A.a)(Jr.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function to(e){return Object(p.first)(Qr(e))||null}function no(e){return Object(p.last)(Qr(e))||null}function ro(e,t){return to(e)===t}function oo(e,t){return-1!==Qr(e).indexOf(t)}var io=Object(hr.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=oo(e,n=zr(e,n));return r}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function co(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:t.clientId||null}function ao(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:n.clientId||null}function lo(e,t){return e.blocks.order[t||""]||_r}function so(e,t,n){return lo(e,n).indexOf(t)}function uo(e,t){var n=e.selectionStart,r=e.selectionEnd;return n.clientId===r.clientId&&n.clientId===t}function fo(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(p.some)(lo(e,t),(function(t){return uo(e,t)||oo(e,t)||n&&fo(e,t,n)}))}function bo(e,t){if(!t)return!1;var n=Qr(e),r=n.indexOf(t);return r>-1&&r<n.length-1}function po(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId!==n.clientId}function ho(e){return e.isMultiSelecting}function mo(e){return e.isSelectionEnabled}function go(e,t){return e.blocksMode[t]||"visual"}function vo(e){return e.isTyping}function Oo(e){return e.isDraggingBlocks}function jo(e){return e.isCaretWithinFormattedText}function ko(e){var t,n,r=e.insertionPoint,o=e.selectionEnd;if(null!==r)return r;var i=o.clientId;return i?(t=zr(e,i)||void 0,n=so(e,o.clientId,t)+1):n=lo(e).length,{rootClientId:t,index:n}}function yo(e){return null!==e.insertionPoint}function _o(e){return e.template.isValid}function Eo(e){return e.settings.template}function So(e,t){if(!t)return e.settings.templateLock;var n=No(e,t);return n?n.templateLock:null}var wo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(p.isBoolean)(e)?e:Object(p.isArray)(e)?!(!Object(p.includes)(e,"core/post-content")||null!==t)||Object(p.includes)(e,t):n},o=Object(i.getBlockType)(t);if(!o)return!1;var c=Lo(e),a=c.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!So(e,n);if(s)return!1;var u=No(e,n),d=Object(p.get)(u,["allowedBlocks"]),f=r(d,t),b=o.parent,h=Er(e,n),m=r(b,h);return null!==f&&null!==m?f||m:null!==f?f:null===m||m},Co=Object(hr.a)(wo,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function Io(e,t){return Object(p.get)(e.preferences.insertUsage,[t],null)}var Bo=function(e,t,n){return!!Object(i.hasBlockSupport)(t,"inserter",!0)&&wo(e,t.name,n)},xo=Object(hr.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(e,t,n){return n?vr:t>0?Or:"common"===e?jr:kr},r=function(e,t){if(!e)return t;var 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}},o=function(t){var o=t.name,c=!1;Object(i.hasBlockSupport)(t.name,"multiple",!0)||(c=Object(p.some)(Nr(e,Tr(e)),{name:t.name}));var a=Object(p.isArray)(t.parent),l=Io(e,o)||{},s=l.time,u=l.count,d=void 0===u?0:u,f=t.variations.filter((function(e){var t=e.scope;return!t||t.includes("inserter")}));return{id:o,name:t.name,initialAttributes:{},title:t.title,description:t.description,icon:t.icon,category:t.category,keywords:t.keywords,variations:f,example:t.example,isDisabled:c,utility:n(t.category,d,a),frecency:r(s,d)}},c=function(t){var o,c="core/block/".concat(t.id),a=Ao(e,t.id);1===a.length&&(o=Object(i.getBlockType)(a[0].name));var l=Io(e,c)||{},s=l.time,u=l.count,d=void 0===u?0:u,f=n("reusable",d,!1),b=r(s,d);return{id:c,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:o?o.icon:yr,category:"reusable",keywords:[],isDisabled:!1,utility:f,frecency:b}},a=Object(i.getBlockTypes)().filter((function(n){return Bo(e,n,t)})).map(o),l=wo(e,"core/block",t)?Ho(e).map(c):[];return Object(p.orderBy)([].concat(Object(A.a)(a),Object(A.a)(l)),["utility","frecency"],["desc","desc"])}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Ho(e),Object(i.getBlockTypes)()]})),To=Object(hr.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(p.some)(Object(i.getBlockTypes)(),(function(n){return Bo(e,n,t)}));if(n)return!0;var r=wo(e,"core/block",t)&&Ho(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Ho(e),Object(i.getBlockTypes)()]})),Po=Object(hr.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(p.filter)(Object(i.getBlockTypes)(),(function(n){return Bo(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(i.getBlockTypes)()]}));function No(e,t){return e.blockListSettings[t]}function Lo(e){return e.settings}function Ro(e){return e.blocks.isPersistentChange}var Mo=Object(hr.a)((function(e,t){return Object(p.filter)(e.blockListSettings,(function(e,n){return t.includes(n)}))}),(function(e){return[e.blockListSettings]})),Ao=Object(hr.a)((function(e,t){var n=Object(p.find)(Ho(e),(function(e){return e.id===t}));return n?Object(i.parse)(n.content):null}),(function(e){return[Ho(e)]}));function Do(e){return e.blocks.isIgnoredChange}function Fo(e){return e.lastBlockAttributesChange}function Ho(e){return Object(p.get)(e,["settings","__experimentalReusableBlocks"],_r)}function Vo(e){return e.isNavigationMode}function Uo(e){return!!e.automaticChangeStatus}function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ko={MERGE_BLOCKS:function(e,t){var n=t.dispatch,r=t.getState(),o=Object(D.a)(e.blocks,2),a=o[0],l=o[1],s=Cr(r,a),u=Object(i.getBlockType)(s.name);if(u.merge){var d=Cr(r,l),f=Object(i.getBlockType)(d.name),b=Rr(r),h=b.clientId,m=b.attributeKey,g=b.offset,v=(h===a?u:f).attributes[m],O=(h===a||h===l)&&void 0!==m&&void 0!==g&&!!v;v||("number"==typeof m?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 ".concat(Object(en.a)(m))):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));var j=Object(i.cloneBlock)(s),k=Object(i.cloneBlock)(d);if(O){var y=h===a?j:k,_=y.attributes[m],E=v.multiline,S=v.__unstableMultilineWrapperTags,w=v.__unstablePreserveWhiteSpace,C=Object(c.insert)(Object(c.create)({html:_,multilineTag:E,multilineWrapperTags:S,preserveWhiteSpace:w}),"†",g,g);y.attributes[m]=Object(c.toHTMLString)({value:C,multilineTag:E,preserveWhiteSpace:w})}var I=s.name===d.name?[k]:Object(i.switchToBlockType)(k,s.name);if(I&&I.length){var B=u.merge(j.attributes,I[0].attributes);if(O){var x=Object(p.findKey)(B,(function(e){return"string"==typeof e&&-1!==e.indexOf("†")})),T=B[x],P=u.attributes[x],N=P.multiline,L=P.__unstableMultilineWrapperTags,R=P.__unstablePreserveWhiteSpace,M=Object(c.create)({html:T,multilineTag:N,multilineWrapperTags:L,preserveWhiteSpace:R}),F=M.text.indexOf("†"),H=Object(c.remove)(M,F,F+1),V=Object(c.toHTMLString)({value:H,multilineTag:N,preserveWhiteSpace:R});B[x]=V,n(rr(s.clientId,x,F,F))}n(Ln([s.clientId,d.clientId],[Go({},s,{attributes:Go({},s.attributes,{},B)})].concat(Object(A.a)(I.slice(1)))))}}else n(Sn(s.clientId))},RESET_BLOCKS:[function(e,t){var n=t.getState(),r=Eo(n),o=So(n),c=!r||"all"!==o||Object(i.doBlocksMatchTemplate)(e.blocks,r);if(c!==_o(n))return Gn(c)}],MULTI_SELECT:function(e,t){var n=Fr((0,t.getState)());Object(ye.speak)(Object(U.sprintf)(Object(U._n)("%s block selected.","%s blocks selected.",n),n),"assertive")},SYNCHRONIZE_TEMPLATE:function(e,t){var n=(0,t.getState)(),r=Br(n),o=Eo(n);return jn(Object(i.synchronizeBlocksWithTemplate)(r,o))},MARK_AUTOMATIC_CHANGE:function(e,t){var n=window,r=n.setTimeout,o=n.requestIdleCallback;(void 0===o?function(e){return r(e,100)}:o)((function(){t.dispatch({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))}};var Wo=function(e){var t,n=[Zt()(Ko),Qt.a],r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}};return t=n.map((function(e){return e(o)})),r=p.flowRight.apply(void 0,Object(A.a)(t))(e.dispatch),e.dispatch=r,e};function qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var $o={reducer:Yt,selectors:o,actions:r,controls:on},Yo=Object(g.registerStore)("core/block-editor",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qo(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},$o,{persist:["preferences"]}));Wo(Yo);var Xo=Object(h.createHigherOrderComponent)((function(e){return Object(g.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,i=Object(F.a)(t,["useSubRegistry","registry"]);if(!r)return Object(d.createElement)(e,Object(u.a)({registry:o},i));var c=Object(d.useState)(null),a=Object(D.a)(c,2),l=a[0],s=a[1];return Object(d.useEffect)((function(){var e=Object(g.createRegistry)({},o),t=e.registerStore("core/block-editor",$o);Wo(t),s(e)}),[o]),l?Object(d.createElement)(g.RegistryProvider,{value:l},Object(d.createElement)(e,Object(u.a)({registry:l},i))):null}))}),"withRegistryProvider"),Zo=function(e){function t(){return Object(_.a)(this,t),Object(S.a)(this,Object(w.a)(t).apply(this,arguments))}return Object(I.a)(t,e),Object(E.a)(t,[{key:"componentDidMount",value:function(){this.props.updateSettings(this.props.settings),this.props.resetBlocks(this.props.value),this.attachChangeObserver(this.props.registry),this.isSyncingOutcomingValue=[]}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.settings,r=t.updateSettings,o=t.value,i=t.resetBlocks,c=t.selectionStart,a=t.selectionEnd,l=t.resetSelection,s=t.registry;n!==e.settings&&r(n),s!==e.registry&&this.attachChangeObserver(s),this.isSyncingOutcomingValue.includes(o)?Object(p.last)(this.isSyncingOutcomingValue)===o&&(this.isSyncingOutcomingValue=[]):o!==e.value&&(this.isSyncingOutcomingValue=[],this.isSyncingIncomingValue=o,i(o),c&&a&&l(c,a))}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe()}},{key:"attachChangeObserver",value:function(e){var t=this;this.unsubscribe&&this.unsubscribe();var n=e.select("core/block-editor"),r=n.getBlocks,o=n.getSelectionStart,i=n.getSelectionEnd,c=n.isLastBlockChangePersistent,a=n.__unstableIsLastBlockChangeIgnored,l=r(),s=c();this.unsubscribe=e.subscribe((function(){var e=t.props,n=e.onChange,u=void 0===n?p.noop:n,d=e.onInput,f=void 0===d?p.noop:d,b=r(),h=c();if(b!==l&&(t.isSyncingIncomingValue||a()))return t.isSyncingIncomingValue=null,l=b,void(s=h);if(b!==l||h&&!s){b!==l&&t.isSyncingOutcomingValue.push(b),l=b,s=h;var m=o(),g=i();s?u(l,{selectionStart:m,selectionEnd:g}):f(l,{selectionStart:m,selectionEnd:g})}}))}},{key:"render",value:function(){return this.props.children}}]),t}(d.Component),Jo=Object(h.compose)([Xo,Object(g.withDispatch)((function(e){var t=e("core/block-editor");return{updateSettings:t.updateSettings,resetBlocks:t.resetBlocks,resetSelection:t.resetSelection}}))])(Zo),Qo=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(tt.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var ei=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(d.createElement)("div",{className:b()(t,"block-editor-warning")},Object(d.createElement)("div",{className:"block-editor-warning__contents"},Object(d.createElement)("p",{className:"block-editor-warning__message"},r),(d.Children.count(n)>0||o)&&Object(d.createElement)("div",{className:"block-editor-warning__actions"},d.Children.count(n)>0&&d.Children.map(n,(function(e,t){return Object(d.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(d.createElement)(z.Dropdown,{className:"block-editor-warning__secondary",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(z.Button,{icon:Qo,label:Object(U.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(){return Object(d.createElement)(z.MenuGroup,null,o.map((function(e,t){return Object(d.createElement)(z.MenuItem,{onClick:e.onClick,key:t},e.title)})))}}))))},ti=n(236),ni=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,i=e.actionText,c=e.className;return Object(d.createElement)("div",{className:c},Object(d.createElement)("div",{className:"block-editor-block-compare__content"},Object(d.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(d.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(d.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(d.createElement)("div",{className:"block-editor-block-compare__action"},Object(d.createElement)(z.Button,{isSecondary:!0,tabIndex:"0",onClick:o},i)))},ri=function(e){function t(){return Object(_.a)(this,t),Object(S.a)(this,Object(w.a)(t).apply(this,arguments))}return Object(I.a)(t,e),Object(E.a)(t,[{key:"getDifference",value:function(e,t){return Object(ti.diffChars)(e,t).map((function(e,t){var n=b()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(d.createElement)("span",{key:t,className:n},e.value)}))}},{key:"getOriginalContent",value:function(e){return{rawContent:e.originalContent,renderedContent:Object(i.getSaveElement)(e.name,e.attributes)}}},{key:"getConvertedContent",value:function(e){var t=Object(p.castArray)(e),n=t.map((function(e){return Object(i.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),r=t.map((function(e){return Object(i.getSaveElement)(e.name,e.attributes,e.innerBlocks)}));return{rawContent:n.join(""),renderedContent:r}}},{key:"render",value:function(){var e=this.props,t=e.block,n=e.onKeep,r=e.onConvert,o=e.convertor,i=e.convertButtonText,c=this.getOriginalContent(t),a=this.getConvertedContent(o(t)),l=this.getDifference(c.rawContent,a.rawContent);return Object(d.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(d.createElement)(ni,{title:Object(U.__)("Current"),className:"block-editor-block-compare__current",action:n,actionText:Object(U.__)("Convert to HTML"),rawContent:c.rawContent,renderedContent:c.renderedContent}),Object(d.createElement)(ni,{title:Object(U.__)("After Conversion"),className:"block-editor-block-compare__converted",action:r,actionText:i,rawContent:l,renderedContent:a.renderedContent}))}}]),t}(d.Component),oi=function(e){function t(e){var n;return Object(_.a)(this,t),(n=Object(S.a)(this,Object(w.a)(t).call(this,e))).state={compare:!1},n.onCompare=n.onCompare.bind(Object(C.a)(n)),n.onCompareClose=n.onCompareClose.bind(Object(C.a)(n)),n}return Object(I.a)(t,e),Object(E.a)(t,[{key:"onCompare",value:function(){this.setState({compare:!0})}},{key:"onCompareClose",value:function(){this.setState({compare:!1})}},{key:"render",value:function(){var e=this.props,t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,c=e.block,a=!!Object(i.getBlockType)("core/html"),l=this.state.compare,s=[{title:Object(U.__)("Convert to Classic Block"),onClick:r},{title:Object(U.__)("Attempt Block Recovery"),onClick:o}];return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(ei,{actions:[Object(d.createElement)(z.Button,{key:"convert",onClick:this.onCompare,isSecondary:a,isPrimary:!a},Object(U._x)("Resolve","imperative verb")),a&&Object(d.createElement)(z.Button,{key:"edit",onClick:t,isPrimary:!0},Object(U.__)("Convert to HTML"))],secondaryActions:s},Object(U.__)("This block contains unexpected or invalid content.")),l&&Object(d.createElement)(z.Modal,{title:Object(U.__)("Resolve Block"),onRequestClose:this.onCompareClose,className:"block-editor-block-compare"},Object(d.createElement)(ri,{block:c,onKeep:t,onConvert:n,convertor:ii,convertButtonText:Object(U.__)("Convert to Blocks")})))}}]),t}(d.Component),ii=function(e){return Object(i.rawHandler)({HTML:e.originalContent})},ci=Object(h.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(g.withDispatch)((function(e,t){var n=t.block,r=e("core/block-editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(i.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(i.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,ii(n))},attemptBlockRecovery:function(){var e,t,o,c;r(n.clientId,(t=(e=n).name,o=e.attributes,c=e.innerBlocks,Object(i.createBlock)(t,o,c)))}}}))])(oi),ai=Object(d.createElement)(ei,{className:"block-editor-block-list__block-crash-warning"},Object(U.__)("This block has encountered an error and cannot be previewed.")),li=function(){return ai},si=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).state={hasError:!1},e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"componentDidCatch",value:function(e){this.props.onError(e),this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),t}(d.Component),ui=n(72),di=n.n(ui);var fi=function(e){var t=e.clientId,n=Object(d.useState)(""),r=Object(D.a)(n,2),o=r[0],c=r[1],a=Object(g.useSelect)((function(e){return{block:e("core/block-editor").getBlock(t)}}),[t]).block,l=Object(g.useDispatch)("core/block-editor").updateBlock;return Object(d.useEffect)((function(){c(Object(i.getBlockContent)(a))}),[a]),Object(d.createElement)(di.a,{className:"block-editor-block-list__block-html-textarea",value:o,onBlur:function(){var e=Object(i.getBlockType)(a.name),n=Object(i.getBlockAttributes)(e,o,a.attributes),r=o||Object(i.getSaveContent)(e,n),s=!o||Object(i.isValidBlockContent)(e,n,r);l(t,{attributes:n,originalContent:r,isValid:s}),o||c({content:r})},onChange:function(e){return c(e.target.value)}})},bi=n(74),pi=n(28);function hi(e){return document.getElementById("block-"+e)}function mi(e,t){var n=e.querySelector(".block-editor-block-list__layout");return e.contains(t)&&(!n||!n.contains(t))}function gi(e){e.nodeType!==e.ELEMENT_NODE&&(e=e.parentElement);var t=e.closest(".block-editor-block-list__block");if(t)return t.id.slice("block-".length)}var vi=function(e){return e+1},Oi=function(e){return{top:e.offsetTop,left:e.offsetLeft}};var ji=function(e,t,n,r,o){var i=Object(h.useReducedMotion)()||!r,c=Object(d.useReducer)(vi,0),a=Object(D.a)(c,2),l=a[0],s=a[1],u=Object(d.useReducer)(vi,0),f=Object(D.a)(u,2),b=f[0],p=f[1],m=Object(d.useState)({x:0,y:0,scrollTop:0}),g=Object(D.a)(m,2),v=g[0],O=g[1],j=e.current?Oi(e.current):null,k=Object(d.useMemo)((function(){return!!n&&Object(pi.getScrollContainer)(e.current)}),[n]);Object(d.useLayoutEffect)((function(){l&&p()}),[l]),Object(d.useLayoutEffect)((function(){if(i){if(n&&k){e.current.style.transform="none";var t=Oi(e.current);k.scrollTop=k.scrollTop-j.top+t.top}}else{e.current.style.transform="none";var r=Oi(e.current),o={x:j?j.left-r.left:0,y:j?j.top-r.top:0,scrollTop:j&&k?k.scrollTop-j.top+r.top:0};e.current.style.transform=0===o.x&&0===o.y?void 0:"translate3d(".concat(o.x,"px,").concat(o.y,"px,0)"),s(),O(o)}}),[o]);var y=Object(bi.useSpring)({from:{x:v.x,y:v.y},to:{x:0,y:0},reset:l!==b,config:{mass:5,tension:2e3,friction:200},immediate:i,onFrame:function(e){n&&k&&!i&&e.y&&(k.scrollTop=v.scrollTop+e.y)}});return i?{}:{transformOrigin:"center",transform:Object(bi.interpolate)([y.x,y.y],(function(e,t){return 0===e&&0===t?void 0:"translate3d(".concat(e,"px,").concat(t,"px,0)")})),zIndex:Object(bi.interpolate)([y.x,y.y],(function(e,n){return!t||0===e&&0===n?void 0:"1"}))}};function ki(e,t){for(var n="start"===t?"firstChild":"lastChild",r="start"===t?"nextSibling":"previousSibling";e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/^[ \t\n]*$/.test(e.data)&&e[r];)e=e[r];return e}function yi(e){var t=e("core/block-editor"),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.getMultiSelectedBlockClientIds,i=t.hasMultiSelection,c=t.getBlockParents,a=t.getSelectedBlockClientId;return{isSelectionEnabled:n(),isMultiSelecting:r(),multiSelectedBlockClientIds:o(),hasMultiSelection:i(),getBlockParents:c,selectedBlockClientId:a()}}function _i(e,t){Array.from(e.querySelectorAll(".rich-text")).forEach((function(e){t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}var Ei=Object(d.forwardRef)((function(e,t){var n=e.selectedClientId,r=e.isReverse,o=e.containerRef,i=e.noCapture,c=e.hasMultiSelection,a=e.multiSelectionContainer,l=Object(g.useSelect)((function(e){return e("core/block-editor").isNavigationMode()})),s=Object(g.useDispatch)("core/block-editor").setNavigationMode;return Object(d.createElement)("div",{ref:t,tabIndex:l?void 0:"0",onFocus:function(){if(i.current)i.current=null;else if(n){var e=hi(n);if(r){var t=pi.focus.tabbable.find(e);(Object(p.last)(t)||e).focus()}else e.focus()}else{if(c)return void a.current.focus();s(!0);var l=pi.focus.tabbable.find(o.current);l.length&&(r?Object(p.last)(l).focus():Object(p.first)(l).focus())}},style:{position:"fixed"}})})),Si=window,wi=Si.getSelection,Ci=Si.getComputedStyle,Ii=Object(p.overEvery)([pi.isTextField,pi.focus.tabbable.isTabbableIndex]);function Bi(e,t,n){var r=pi.focus.focusable.find(n);return t&&(r=Object(p.reverse)(r)),r=r.slice(r.indexOf(e)+1),Object(p.find)(r,(function t(n,r,o){if(!pi.focus.tabbable.isTabbableIndex(n))return!1;if(Object(pi.isTextField)(n))return!0;if(!n.classList.contains("block-editor-block-list__block"))return!1;if(function(e){return e.classList.contains("block-editor-block-list__layout")||!!e.querySelector(".block-editor-block-list__layout")}(n))return!0;if(n.contains(e))return!1;for(var i,c=1;(i=o[r+c])&&n.contains(i);c++)if(t(i,r+c,o))return!1;return!0}))}function xi(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,i=t.getPreviousBlockClientId,c=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,l=t.getLastMultiSelectedBlockClientId,s=t.hasMultiSelection,u=t.getBlockOrder,d=t.isNavigationMode,f=t.isSelectionEnabled,b=t.getBlockSelectionStart,p=t.isMultiSelecting,h=n(),m=r(),g=o();return{selectedBlockClientId:h,selectionStartClientId:m,selectionBeforeEndClientId:i(g||h),selectionAfterEndClientId:c(g||h),selectedFirstClientId:a(),selectedLastClientId:l(),hasMultiSelection:s(),blocks:u(),isNavigationMode:d(),isSelectionEnabled:f(),blockSelectionStart:b(),isMultiSelecting:p()}}function Ti(e){var t=e.children,n=Object(d.useRef)(),r=Object(d.useRef)(),o=Object(d.useRef)(),i=Object(d.useRef)(),c=Object(d.useRef)(),a=Object(d.useRef)(),l=Object(d.useRef)(),s=Object(g.useSelect)(xi,[]),u=s.selectedBlockClientId,f=s.selectionStartClientId,h=s.selectionBeforeEndClientId,m=s.selectionAfterEndClientId,v=s.selectedFirstClientId,O=s.selectedLastClientId,j=s.hasMultiSelection,k=s.blocks,y=s.isNavigationMode,_=s.isSelectionEnabled,E=s.blockSelectionStart,S=s.isMultiSelecting,w=Object(g.useDispatch)("core/block-editor"),C=w.multiSelect,I=w.selectBlock,B=w.clearSelectedBlock,x=w.setNavigationMode;Object(d.useEffect)((function(){j&&!S&&i.current.focus()}),[j,S]);var T=b()("block-editor-writing-flow",{"is-navigate-mode":y});return Object(d.createElement)("div",{className:T},Object(d.createElement)(Ei,{ref:r,selectedClientId:u,containerRef:n,noCapture:a,hasMultiSelection:j,multiSelectionContainer:i}),Object(d.createElement)("div",{ref:n,onKeyDown:function(e){var t=e.keyCode,s=e.target,d=t===xt.UP,b=t===xt.DOWN,g=t===xt.LEFT,_=t===xt.RIGHT,E=t===xt.TAB,S=t===xt.ESCAPE,w=d||g,T=g||_,P=d||b,N=T||P,L=e.shiftKey,R=L||e.ctrlKey||e.altKey||e.metaKey,M=P?pi.isVerticalEdge:pi.isHorizontalEdge;if(y){var A=E&&L||d,D=E&&!L||b,F=A?h:m;if(D||A)if(F)e.preventDefault(),I(F);else if(E&&u){var H,V=hi(u);(H=D?pi.focus.tabbable.findNext(V):pi.focus.tabbable.findPrevious(V))&&(e.preventDefault(),H.focus(),B())}}else{if(u)if(E){var U=hi(u);if(L){if(s===U)return a.current=!0,void r.current.focus()}else{var z=pi.focus.tabbable.find(U);if(s===(Object(p.last)(z)||U))return a.current=!0,void o.current.focus()}}else S&&x(!0);else if(j&&E&&s===i.current)return a.current=!0,void(L?r.current.focus():o.current.focus());if(P?l.current||(l.current=Object(pi.computeCaretRect)()):l.current=null,!N)return xt.isKeyboardEvent.primary(e)&&(c.current=Object(pi.isEntirelySelected)(s)),void(xt.isKeyboardEvent.primary(e,"a")&&((s.isContentEditable?c.current:Object(pi.isEntirelySelected)(s))&&(C(Object(p.first)(k),Object(p.last)(k)),e.preventDefault()),c.current=!0));if(!e.nativeEvent.defaultPrevented&&function(e,t,n){if((t===xt.UP||t===xt.DOWN)&&!n)return!0;var r=e.tagName;return"INPUT"!==r&&"TEXTAREA"!==r}(s,t,R)){var G="rtl"===Ci(s).direction?!w:w;if(L)(w&&h||!w&&m)&&(j||function(e,t){var r,o,i=Bi(e,t,n.current);return!(i&&(r=e,o=i,r.closest(".block-editor-block-list__block")===o.closest(".block-editor-block-list__block")))}(s,w)&&M(s,w))&&(!function(e){var t=e?h:m;t&&C(f||u,t)}(w),e.preventDefault());else if(j)!function(e){var t=e?v:O;t&&I(t)}(w),e.preventDefault();else if(P&&Object(pi.isVerticalEdge)(s,w)){var K=Bi(s,w,n.current);K&&(Object(pi.placeCaretAtVerticalEdge)(K,w,l.current),e.preventDefault())}else if(T&&wi().isCollapsed&&Object(pi.isHorizontalEdge)(s,G)){var W=Bi(s,G,n.current);Object(pi.placeCaretAtHorizontalEdge)(W,G),e.preventDefault()}}}},onMouseDown:function(e){if(l.current=null,y&&u&&mi(hi(u),e.target)&&x(!1),_&&0===e.button){var t=gi(e.target);t&&(e.shiftKey?E!==t&&(C(E,t),e.preventDefault()):j&&I(t))}}},Object(d.createElement)("div",{ref:i,tabIndex:j?"0":void 0,"aria-label":j?Object(U.__)("Multiple selected blocks"):void 0,style:{position:"fixed"}}),t),Object(d.createElement)(Ei,{ref:o,selectedClientId:u,containerRef:n,noCapture:a,hasMultiSelection:j,multiSelectionContainer:i,isReverse:!0}),Object(d.createElement)("div",{"aria-hidden":!0,tabIndex:-1,onClick:function(){var e=pi.focus.focusable.find(n.current),t=Object(p.findLast)(e,Ii);t&&Object(pi.placeCaretAtHorizontalEdge)(t,!0)},className:"block-editor-writing-flow__click-redirect"}))}function Pi(e){var t=e.clientId;return Object(g.useSelect)((function(e){var n=e("core/block-editor"),r=n.getBlockIndex,o=n.getBlockInsertionPoint,i=n.isBlockInsertionPointVisible,c=(0,n.getBlockRootClientId)(t),a=r(t,c),l=o();return i()&&l.index===a&&l.rootClientId===c}),[t])?Object(d.createElement)("div",{className:"block-editor-block-list__insertion-point-indicator"}):null}function Ni(e){var t=e.className,n=e.isMultiSelecting,r=e.hasMultiSelection,o=e.selectedBlockClientId,i=e.children,c=e.containerRef,a=Object(d.useState)(!1),l=Object(D.a)(a,2),s=l[0],u=l[1],f=Object(d.useState)(!1),p=Object(D.a)(f,2),h=p[0],m=p[1],v=Object(d.useState)(null),O=Object(D.a)(v,2),j=O[0],k=O[1],y=Object(d.useState)(null),_=Object(D.a)(y,2),E=_[0],S=_[1],w=Object(d.useRef)(),C=Object(g.useSelect)((function(e){return{multiSelectedBlockClientIds:(0,e("core/block-editor").getMultiSelectedBlockClientIds)()}})).multiSelectedBlockClientIds;var I=r?C.includes(E):E===o;return Object(d.createElement)(d.Fragment,null,!n&&(s||h)&&Object(d.createElement)(z.Popover,{noArrow:!0,animate:!1,anchorRef:j,position:"top right left",focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:"block-toolbar",__unstableFixedPosition:!1},Object(d.createElement)("div",{className:"block-editor-block-list__insertion-point",style:{width:j.offsetWidth}},Object(d.createElement)(Pi,{clientId:E}),Object(d.createElement)("div",{ref:w,onFocus:function(){return m(!0)},onBlur:function(){return m(!1)},onClick:function(e){var t=e.clientX,n=e.clientY,r=e.target;if(r===w.current){var o=r.getBoundingClientRect(),i=n<o.top+o.height/2,a=hi(E),l=Bi(a,!0,i?c.current:a)||a,s=new window.DOMRect(t,n,0,16);Object(pi.placeCaretAtVerticalEdge)(l,i,s,!1)}},tabIndex:-1,className:b()("block-editor-block-list__insertion-point-inserter",{"is-inserter-hidden":I})},Object(d.createElement)(Dc,{clientId:E})))),Object(d.createElement)("div",{onMouseMove:h||n?void 0:function(e){if(e.target.className===t){var n=e.target.getBoundingClientRect(),r=e.clientY-n.top,o=Array.from(e.target.children).find((function(e){return e.offsetTop>r}));if(o){var i=o.id.slice("block-".length);if(i){var c=o.getBoundingClientRect();e.clientX>c.right||e.clientX<c.left?s&&u(!1):(u(!0),k(o),S(i))}}}else s&&u(!1)}},i))}var Li=function(e){var t=e.clientId,n=e.rootClientId,r=e.moverDirection,o=Object(F.a)(e,["clientId","rootClientId","moverDirection"]),c=Object(g.useSelect)((function(e){var r=e("core/block-editor"),o=r.__unstableGetBlockWithoutInnerBlocks,i=(0,r.getBlockIndex)(t,n),c=o(t);return{index:i,name:c.name,attributes:c.attributes}}),[t,n]),a=c.index,l=c.name,s=c.attributes,f=Object(g.useDispatch)("core/block-editor"),b=f.setNavigationMode,p=f.removeBlock,h=Object(d.useRef)();Object(d.useEffect)((function(){h.current.focus()}));var m=Object(i.getBlockType)(l),v=Object(i.__experimentalGetAccessibleBlockLabel)(m,s,a+1,r);return Object(d.createElement)("div",Object(u.a)({className:"block-editor-block-list__breadcrumb"},o),Object(d.createElement)(z.Toolbar,null,Object(d.createElement)(z.Button,{ref:h,onClick:function(){return b(!1)},onKeyDown:function(e){var n=e.keyCode;n!==xt.BACKSPACE&&n!==xt.DELETE||(p(t),e.preventDefault())},label:v},Object(d.createElement)(ft,{clientId:t}))))};var Ri=function(e){var t=e.children,n=e.focusOnMount,r=Object(F.a)(e,["children","focusOnMount"]),o=Object(d.useRef)(),i=Object(d.useCallback)((function(){var e=pi.focus.tabbable.find(o.current);e.length&&e[0].focus()}),[]);return Object(l.useShortcut)("core/block-editor/focus-toolbar",i,{bindGlobal:!0,eventName:"keydown"}),Object(d.useEffect)((function(){n&&i()}),[]),Object(d.createElement)(z.NavigableMenu,Object(u.a)({orientation:"horizontal",role:"toolbar",ref:o},r),t)};var Mi=function(e){var t=e.focusOnMount,n=Object(F.a)(e,["focusOnMount"]);return Object(d.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(d.createElement)(Ri,Object(u.a)({focusOnMount:t,className:"block-editor-block-contextual-toolbar","aria-label":Object(U.__)("Block tools")},n),Object(d.createElement)(Cs,null)))};function Ai(e){var t=e("core/block-editor"),n=t.isNavigationMode,r=t.isMultiSelecting,o=t.hasMultiSelection,i=t.isTyping,c=t.isCaretWithinFormattedText,a=t.getSettings,l=t.getLastMultiSelectedBlockClientId;return{isNavigationMode:n(),isMultiSelecting:r(),isTyping:i(),isCaretWithinFormattedText:c(),hasMultiSelection:o(),hasFixedToolbar:a().hasFixedToolbar,lastClientId:l()}}function Di(e){var t=e.clientId,n=e.rootClientId,r=e.align,o=e.isValid,i=e.moverDirection,c=e.isEmptyDefaultBlock,a=e.capturingClientId,s=Object(g.useSelect)(Ai,[]),u=s.isNavigationMode,f=s.isMultiSelecting,p=s.isTyping,m=s.isCaretWithinFormattedText,v=s.hasMultiSelection,O=s.hasFixedToolbar,j=s.lastClientId,k=Object(h.useViewportMatch)("medium"),y=Object(d.useState)(!1),_=Object(D.a)(y,2),E=_[0],S=_[1],w=Object(d.useState)(!1),C=Object(D.a)(w,2),I=C[0],B=C[1],x=Object(d.useContext)(Ui),T=Object(D.a)(x,1)[0],P=!u&&c&&o,N=u,L=!u&&!O&&k&&!P&&!f&&(!p||m),R=!(u||L||O||c);if(Object(l.useShortcut)("core/block-editor/focus-toolbar",Object(d.useCallback)((function(){return S(!0)}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!R}),!(N||L||E||P))return null;var M=T[t];if(a&&(M=document.getElementById("block-"+a)),!M)return null;M.classList.contains("is-block-collapsed")&&(M=M.querySelector(".is-block-content")||M);var A=M;if(v){var F=T[j];if(!F)return null;A={top:M,bottom:F}}var H=P?"top left right":"top right left";return Object(d.createElement)(z.Popover,{noArrow:!0,animate:!1,position:H,focusOnMount:!1,anchorRef:A,className:"block-editor-block-list__block-popover",__unstableSticky:!P,__unstableSlotName:"block-toolbar",__unstableBoundaryParent:!0,__unstableAllowVerticalSubpixelPosition:"horizontal"!==i&&M,__unstableAllowHorizontalSubpixelPosition:"horizontal"===i&&M,onBlur:function(){return S(!1)},shouldAnchorIncludePadding:!0,key:L},(L||E)&&Object(d.createElement)("div",{onFocus:function(){B(!0)},onBlur:function(){B(!1)},tabIndex:-1,className:b()("block-editor-block-list__block-popover-inserter",{"is-visible":I})},Object(d.createElement)(Dc,{clientId:t,rootClientId:n})),(L||E)&&Object(d.createElement)(Mi,{focusOnMount:E,"data-align":r}),N&&Object(d.createElement)(Li,{clientId:t,rootClientId:n,moverDirection:i,"data-align":r}),P&&Object(d.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(d.createElement)(Dc,{position:"top right",rootClientId:n,clientId:t})))}function Fi(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getFirstMultiSelectedBlockClientId,o=t.getBlockRootClientId,c=t.__unstableGetBlockWithoutInnerBlocks,a=t.getBlockParents,l=t.getBlockListSettings,s=t.__experimentalGetBlockListSettingsForBlocks,u=n()||r();if(u){var d,f=o(u),b=c(u)||{},h=b.name,m=b.attributes,g=void 0===m?{}:m,v=b.isValid,O=a(u),j=(l(f)||{}).__experimentalMoverDirection,k=s(O),y=Object(p.findIndex)(k,["__experimentalCaptureToolbars",!0]);return-1!==y&&(d=O[y]),{clientId:u,rootClientId:o(u),name:h,align:g.align,isValid:v,moverDirection:j,isEmptyDefaultBlock:h&&Object(i.isUnmodifiedDefaultBlock)({name:h,attributes:g}),capturingClientId:d}}}function Hi(){var e=Object(g.useSelect)(Fi,[]);if(!e)return null;var t=e.clientId,n=e.rootClientId,r=e.name,o=e.align,i=e.isValid,c=e.moverDirection,a=e.isEmptyDefaultBlock,l=e.capturingClientId;return r?Object(d.createElement)(Di,{clientId:t,rootClientId:n,align:o,isValid:i,moverDirection:c,isEmptyDefaultBlock:a,capturingClientId:l}):null}var Vi=Object(d.createContext)(),Ui=Object(d.createContext)();function zi(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.hasMultiSelection,o=t.isMultiSelecting;return{selectedBlockClientId:n(),hasMultiSelection:r(),isMultiSelecting:o()}}function Gi(e){gi(e.target)&&e.preventDefault()}var Ki=Object(d.forwardRef)((function(e,t){var n=e.children,r=e.className,o=e.hasPopover,i=void 0===o||o,c=Object(g.useSelect)(zi,[]),a=c.selectedBlockClientId,l=c.hasMultiSelection,s=c.isMultiSelecting,u=Object(g.useDispatch)("core/block-editor").selectBlock,f=function(e){var t=Object(g.useSelect)(yi,[]),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.multiSelectedBlockClientIds,i=t.hasMultiSelection,c=t.getBlockParents,a=t.selectedBlockClientId,l=Object(g.useDispatch)("core/block-editor"),s=l.startMultiSelect,u=l.stopMultiSelect,f=l.multiSelect,b=l.selectBlock,p=Object(d.useRef)(),h=Object(d.useRef)(),m=Object(d.useRef)();Object(d.useEffect)((function(){if(i&&!r){var e=o.length;if(!(e<2)){var t=o[0],n=o[e-1],c=hi(t),l=hi(n),s=window.getSelection(),u=document.createRange();c=ki(c,"start"),l=ki(l,"end"),u.setStartBefore(c),u.setEndAfter(l),s.removeAllRanges(),s.addRange(u)}}else{if(!a||r)return;var d=window.getSelection();if(d.rangeCount&&!d.isCollapsed){var f=hi(a),b=d.getRangeAt(0),p=b.startContainer,h=b.endContainer;f.contains(p)&&f.contains(h)||d.removeAllRanges()}}}),[i,r,o,b,a]);var v=Object(d.useCallback)((function(t){var n=t.isSelectionEnd,r=window.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=gi(r.focusNode);if(h.current===o){if(b(o),n&&(_i(e.current,!0),r.rangeCount)){var i=r.getRangeAt(0).commonAncestorContainer;m.current.contains(i)&&m.current.focus()}}else{var a=[].concat(Object(A.a)(c(h.current)),[h.current]),l=[].concat(Object(A.a)(c(o)),[o]),s=Math.min(a.length,l.length)-1;f(a[s],l[s])}}else _i(e.current,!0)}),[b,c,f]),O=Object(d.useCallback)((function(){document.removeEventListener("selectionchange",v),window.removeEventListener("mouseup",O),p.current=window.requestAnimationFrame((function(){v({isSelectionEnd:!0}),u()}))}),[v,u]);return Object(d.useEffect)((function(){return function(){document.removeEventListener("selectionchange",v),window.removeEventListener("mouseup",O),window.cancelAnimationFrame(p.current)}}),[v,O]),Object(d.useCallback)((function(t){n&&(h.current=t,m.current=document.activeElement,s(),document.addEventListener("selectionchange",v),window.addEventListener("mouseup",O),_i(e.current,!1))}),[n,s,O])}(t);return Object(d.createElement)(Ni,{className:r,isMultiSelecting:s,hasMultiSelection:l,selectedBlockClientId:a,containerRef:t},Object(d.createElement)(Ui.Provider,{value:Object(d.useState)({})},i?Object(d.createElement)(Hi,null):null,Object(d.createElement)("div",{ref:t,className:r,onFocus:function(e){if(!l){var t=gi(e.target);t&&t!==a&&u(t)}},onDragStart:Gi},Object(d.createElement)(Vi.Provider,{value:f},n))))}));function Wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wi(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $i=Object(d.forwardRef)((function(e,t){var n=e.children,r=e.tagName,o=void 0===r?"div":r,i=e.__unstableIsHtml,c=Object(F.a)(e,["children","tagName","__unstableIsHtml"]),a=Object(d.useContext)(Vi),l=Object(d.useContext)(Ui),f=Object(D.a)(l,2)[1],h=Object(d.useContext)(Zi),m=h.clientId,v=h.rootClientId,O=h.isSelected,j=h.isFirstMultiSelected,k=h.isLastMultiSelected,y=h.isMultiSelecting,_=h.isNavigationMode,E=h.isPartOfMultiSelection,S=h.enableAnimation,w=h.index,C=h.className,I=h.isLocked,B=h.name,x=h.mode,T=h.blockTitle,P=h.wrapperProps,N=Object(g.useSelect)((function(e){return O?{initialPosition:e("core/block-editor").getSelectedBlocksInitialCaretPosition()}:{}}),[O]).initialPosition,L=Object(g.useDispatch)("core/block-editor"),R=L.removeBlock,M=L.insertDefaultBlock,A=Object(d.useRef)();t=t||A,Object(d.useLayoutEffect)((function(){if(O||j||k){var e=t.current;return f((function(t){return qi({},t,Object(s.a)({},m,e))})),function(){f((function(e){return Object(p.omit)(e,m)}))}}}),[O,j,k]);var H=Object(U.sprintf)(Object(U.__)("Block: %s"),T);Object(d.useEffect)((function(){y||_||!O||function(){if(!t.current.contains(document.activeElement)){var e=pi.focus.tabbable.find(t.current).filter(pi.isTextField).filter((function(e){return mi(t.current,e)})),n=-1===N,r=(n?p.last:p.first)(e)||t.current;Object(pi.placeCaretAtHorizontalEdge)(r,n)}}()}),[O,y,_]);var V=ji(t,O||E,O||j,S,w),z="html"!==x||i?"":"-visual",G="block-".concat(m).concat(z),K=bi.animated[o];return Object(d.createElement)(K,Object(u.a)({"aria-label":H,role:"group"},P,c,{id:G,ref:t,className:b()(C,c.className),"data-block":m,"data-type":B,"data-title":T,onKeyDown:O&&!I?function(e){var n=e.keyCode,r=e.target;c.onKeyDown&&c.onKeyDown(e),n!==xt.ENTER&&n!==xt.BACKSPACE&&n!==xt.DELETE||r!==t.current||Object(pi.isTextField)(r)||(e.preventDefault(),n===xt.ENTER?M({},v,w+1):R(m))}:void 0,onMouseLeave:O?function(e){var t=e.which;1===(e.buttons||t)&&a(m)}:void 0,tabIndex:"0",style:qi({},c.style||{},{},V)}),n)})),Yi=["p","div","h1","h2","h3","h4","h5","h6","ol","ul","figure"].reduce((function(e,t){return e[t]=Object(d.forwardRef)((function(e,n){return Object(d.createElement)($i,Object(u.a)({},e,{ref:n,tagName:t}))})),e}),$i);function Xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Zi=Object(d.createContext)();var Ji=Object(g.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=t.isLargeViewport,i=e("core/block-editor"),c=i.isBlockSelected,a=i.isAncestorMultiSelected,l=i.isBlockMultiSelected,s=i.isFirstMultiSelectedBlock,u=i.getLastMultiSelectedBlockClientId,d=i.isTyping,f=i.getBlockMode,b=i.isSelectionEnabled,p=i.getSettings,h=i.hasSelectedInnerBlock,m=i.getTemplateLock,g=i.__unstableGetBlockWithoutInnerBlocks,v=i.isNavigationMode,O=g(n),j=c(n),k=p(),y=k.focusMode,_=k.isRTL,E=m(r),S=h(n,!0),w=O||{},C=w.name,I=w.attributes,B=w.isValid;return{isMultiSelected:l(n),isPartOfMultiSelection:l(n)||a(n),isFirstMultiSelected:s(n),isLastMultiSelected:u()===n,isTypingWithinBlock:(j||S)&&d(),mode:f(n),isSelectionEnabled:b(),isLocked:!!E,isFocusMode:y&&o,isNavigationMode:v(),isRTL:_,block:O,name:C,attributes:I,isValid:B,isSelected:j,isAncestorOfSelectedBlock:S}})),Qi=Object(g.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-editor"),c=o.updateBlockAttributes,a=o.insertBlocks,l=o.mergeBlocks,s=o.replaceBlocks,u=o.toggleSelection,d=o.__unstableMarkLastChangeAsPersistent;return{setAttributes:function(e){var n=t.clientId;c(n,e)},onInsertBlocks:function(e,n){var r=t.rootClientId;a(e,n,r)},onInsertBlocksAfter:function(e){var n=t.clientId,o=t.rootClientId,i=(0,r("core/block-editor").getBlockIndex)(n,o);a(e,i+1,o)},onMerge:function(e){var n=t.clientId,o=r("core/block-editor"),i=o.getPreviousBlockClientId,c=o.getNextBlockClientId;if(e){var a=c(n);a&&l(n,a)}else{var s=i(n);s&&l(s,n)}},onReplace:function(e,n){e.length&&!Object(i.isUnmodifiedDefaultBlock)(e[e.length-1])&&d(),s([t.clientId],e,n)},toggleSelection:function(e){u(e)}}})),ec=Object(h.compose)(h.pure,Object(a.withViewportMatch)({isLargeViewport:"medium"}),Ji,Qi,Object(h.ifCondition)((function(e){return!!e.block})),Object(z.withFilters)("editor.BlockListBlock"))((function(e){var t=e.mode,n=e.isFocusMode,r=e.isLocked,o=e.clientId,c=e.rootClientId,a=e.isSelected,l=e.isMultiSelected,u=e.isPartOfMultiSelection,f=e.isFirstMultiSelected,p=e.isLastMultiSelected,h=e.isTypingWithinBlock,m=e.isAncestorOfSelectedBlock,v=e.isSelectionEnabled,O=e.className,j=e.name,k=e.isValid,y=e.attributes,_=e.wrapperProps,E=e.setAttributes,S=e.onReplace,w=e.onInsertBlocksAfter,C=e.onMerge,I=e.toggleSelection,B=e.index,x=e.enableAnimation,T=e.isNavigationMode,P=e.isMultiSelecting,N=e.hasSelectedUI,L=void 0===N||N,R=Object(g.useSelect)((function(e){return{isDraggingBlocks:e("core/block-editor").isDraggingBlocks()}}),[]).isDraggingBlocks,M=Object(d.useState)(!1),A=Object(D.a)(M,2),F=A[0],H=A[1],V=Object(i.getBlockType)(j),U=Object(i.hasBlockSupport)(V,"lightBlockWrapper",!1),z=j===Object(i.getUnregisteredTypeHandlerName)(),G=R&&(a||u);!U&&V.getEditWrapperProps&&(_=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xi(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},_,{},V.getEditWrapperProps(y)));var K=_&&_["data-align"],W=U&&Object(i.hasBlockSupport)(V,"className",!0)?Object(i.getBlockDefaultClassName)(j):null,q=U?y.className:null,$=b()(W,q,"wp-block block-editor-block-list__block",{"has-selected-ui":L,"has-warning":!k||!!F||z,"is-selected":a,"is-multi-selected":l,"is-reusable":Object(i.isReusableBlock)(V),"is-dragging":G,"is-typing":h,"is-focused":n&&(a||m),"is-focus-mode":n,"has-child-selected":m,"is-block-collapsed":K},O),Y=Object(d.createElement)(Z,{name:j,isSelected:a,attributes:y,setAttributes:E,insertBlocksAfter:r?void 0:w,onReplace:r?void 0:S,mergeBlocks:r?void 0:C,clientId:o,isSelectionEnabled:v,toggleSelection:I});!U&&K&&(Y=Object(d.createElement)("div",{className:"is-block-content"},Y)),"visual"!==t&&(Y=Object(d.createElement)("div",{style:{display:"none"}},Y));var X={clientId:o,rootClientId:c,isSelected:a,isFirstMultiSelected:f,isLastMultiSelected:p,isMultiSelecting:P,isNavigationMode:T,isPartOfMultiSelection:u,enableAnimation:x,index:B,className:$,isLocked:r,name:j,mode:t,blockTitle:V.title,wrapperProps:_},J=Object(d.useMemo)((function(){return X}),Object.values(X));return Object(d.createElement)(Zi.Provider,{value:J},Object(d.createElement)(si,{onError:function(){return H(!0)}},k&&U&&Object(d.createElement)(d.Fragment,null,Y,"html"===t&&Object(d.createElement)(Yi.div,{__unstableIsHtml:!0},Object(d.createElement)(fi,{clientId:o}))),k&&!U&&Object(d.createElement)(Yi.div,_,Y,"html"===t&&Object(d.createElement)(fi,{clientId:o})),!k&&Object(d.createElement)(Yi.div,null,Object(d.createElement)(ci,{clientId:o}),Object(d.createElement)("div",null,Object(i.getSaveElement)(V,y)))),!!F&&Object(d.createElement)(Yi.div,null,Object(d.createElement)(li,null)))})),tc=n(56);var nc=Object(h.compose)(Object(g.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getBlockCount,o=n.getBlockName,c=n.isBlockValid,a=n.getSettings,l=n.getTemplateLock,s=!r(t.rootClientId),u=o(t.lastBlockClientId)===Object(i.getDefaultBlockName)(),d=c(t.lastBlockClientId),f=a().bodyPlaceholder;return{isVisible:s||!u||!d,showPrompt:s,isLocked:!!l(t.rootClientId),placeholder:f}})),Object(g.withDispatch)((function(e,t){var n=e("core/block-editor"),r=n.insertDefaultBlock,o=n.startTyping;return{onAppend:function(){var e=t.rootClientId;r(void 0,e),o()}}})))((function(e){var t=e.isLocked,n=e.isVisible,r=e.onAppend,o=e.showPrompt,i=e.placeholder,c=e.rootClientId;if(t||!n)return null;var a=Object(tc.decodeEntities)(i)||Object(U.__)("Start writing or type / to choose a block");return Object(d.createElement)("div",{"data-root-client-id":c||"",className:"wp-block block-editor-default-block-appender"},Object(d.createElement)(di.a,{role:"button","aria-label":Object(U.__)("Add block"),className:"block-editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?a:""}),Object(d.createElement)(Dc,{rootClientId:c,position:"top right",isAppender:!0}))}));function rc(e){e.stopPropagation()}var oc=Object(g.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getBlockOrder,c=r.canInsertBlockType;return{isLocked:!!(0,r.getTemplateLock)(n),blockClientIds:o(n),canInsertDefaultBlock:c(Object(i.getDefaultBlockName)(),n)}}))((function(e){var t,n=e.blockClientIds,r=e.rootClientId,o=e.canInsertDefaultBlock,i=e.isLocked,c=e.renderAppender,a=e.className;return i||!1===c?null:(t=c?Object(d.createElement)(c,null):o?Object(d.createElement)(nc,{rootClientId:r,lastBlockClientId:Object(p.last)(n)}):Object(d.createElement)(Fc,{rootClientId:r,className:"block-list-appender__toggle"}),Object(d.createElement)("div",{tabIndex:-1,onFocus:rc,className:b()("block-list-appender",a)},t))}));function ic(e){var t=e.element,n=e.rootClientId,r=Object(d.useState)(null),o=Object(D.a)(r,2),c=o[0],a=o[1];var l=Object(g.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockIndex,o=t.getClientIdsOfDescendants,i=t.getSettings,a=t.getTemplateLock;return{getBlockIndex:r,blockIndex:r(c,n),getClientIdsOfDescendants:o,hasUploadPermissions:!!i().mediaUpload,isLockedAll:"all"===a(n)}}),[n,c]),s=l.getBlockIndex,u=l.blockIndex,f=l.getClientIdsOfDescendants,b=l.hasUploadPermissions,p=l.isLockedAll,h=Object(g.useDispatch)("core/block-editor"),m=h.insertBlocks,v=h.updateBlockAttributes,O=h.moveBlockToPosition,j=Object(d.useCallback)((function(e){if(b){var t=Object(i.findTransform)(Object(i.getBlockTransforms)("from"),(function(t){return"files"===t.type&&t.isMatch(e)}));if(t){var r=t.transform(e,v);m(r,u,n)}}}),[b,v,m,u,n]),k=Object(d.useCallback)((function(e){var t=Object(i.pasteHandler)({HTML:e,mode:"BLOCKS"});t.length&&m(t,u,n)}),[m,u,n]),y=Object(d.useCallback)((function(e){var t=function(e){var t={srcRootClientId:null,srcClientId:null,srcIndex:null,type:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("text")))}catch(e){return t}return t}(e),r=t.srcRootClientId,o=t.srcClientId,i=t.srcIndex,a=t.type;if("block"===a&&o!==c&&!function(e,t){return f([e]).some((function(e){return e===t}))}(o,c||n)){var l,d,b=c?s(c,n):void 0,p=b&&i<b&&((l=r)===(d=n)||1==!l&&1==!d)?u-1:u;O(o,r,n,p)}}),[f,s,c,u,O,n]),_=Object(z.__unstableUseDropZone)({element:t,onFilesDrop:j,onHTMLDrop:k,onDrop:y,isDisabled:p,withPosition:!0}).position;if(Object(d.useEffect)((function(){if(_){var e=_.y-t.current.getBoundingClientRect().top,n=Array.from(t.current.children).find((function(t){return t.offsetTop+t.offsetHeight/2>e}));if(!n)return;var r=n.id.slice("block-".length);if(!r)return;a(r)}}),[_]),_)return c}var cc=Object(d.forwardRef)((function(e,t){var n=e.className,r=e.rootClientId,o=e.isDraggable,i=e.renderAppender,c=e.__experimentalUIParts,a=void 0===c?{}:c,l=e.__experimentalTagName,s=void 0===l?"div":l,f=e.__experimentalPassedProps,p=void 0===f?{}:f,h=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockOrder,o=t.isMultiSelecting,i=t.getSelectedBlockClientId,c=t.getMultiSelectedBlockClientIds,a=t.hasMultiSelection,l=t.getGlobalBlockCount,s=t.isTyping;return{blockClientIds:n(r),isMultiSelecting:o(),selectedBlockClientId:i(),multiSelectedBlockClientIds:c(),hasMultiSelection:a(),enableAnimation:!s()&&l()<=200}}),[r]),m=h.blockClientIds,v=h.isMultiSelecting,O=h.selectedBlockClientId,j=h.multiSelectedBlockClientIds,k=h.hasMultiSelection,y=h.enableAnimation,_=r?s:Ki,E=ic({element:t,rootClientId:r}),S=r?{}:{hasPopover:a.hasPopover};return Object(d.createElement)(_,Object(u.a)({},p,{ref:t,className:b()("block-editor-block-list__layout",n,p.className)},S),m.map((function(e,t){var n=k?j.includes(e):O===e;return Object(d.createElement)(g.AsyncModeProvider,{key:e,value:!n},Object(d.createElement)(ec,{rootClientId:r,clientId:e,isDraggable:o,isMultiSelecting:v,index:t,enableAnimation:y,hasSelectedUI:a.hasSelectedUI,className:e===E?"is-drop-target":void 0}))})),Object(d.createElement)(oc,{rootClientId:r,renderAppender:i,className:null===E?"is-drop-target":void 0}))})),ac=Object(d.forwardRef)((function(e,t){var n=Object(d.useRef)();return Object(d.createElement)(g.AsyncModeProvider,{value:!1},Object(d.createElement)(cc,Object(u.a)({ref:t||n},e)))})),lc=function(e,t,n,r,o){return{transform:"scale(".concat(e,")"),visibility:r?"visible":"hidden",left:t,top:n,width:o}};var sc=function(e){var t=e.blocks,n=e.viewportWidth,r=e.padding,o=void 0===r?0:r,i=e.onReady,c=e.scalingDelay,a=Object(d.useRef)(null),l=Object(d.useState)(!1),s=Object(D.a)(l,2),u=s[0],f=s[1],p=Object(d.useState)(1),h=Object(D.a)(p,2),m=h[0],g=h[1],v=Object(d.useState)({x:0,y:0}),O=Object(D.a)(v,2),j=O[0],k=j.x,y=j.y,_=O[1];if(Object(d.useLayoutEffect)((function(){var e=setTimeout((function(){var e=a.current;if(e){var r,c=0,l=0;if(1===t.length){var s=function(e){var t=hi(e);if(t)return t.firstChild||t}(t[0].clientId);if(!s)return;var u=e.getBoundingClientRect();u={width:u.width-2*o,height:u.height-2*o,left:u.left,top:u.top};var d=s.getBoundingClientRect();r=u.width/d.width||1,c=-(d.left-u.left)*r+o,l=u.height>d.height*r?(u.height-d.height*r)/2+o:0,g(r),_({x:c,y:l}),s.style.marginTop="0"}else{r=e.getBoundingClientRect().width/n,g(r)}f(!0),i({scale:r,position:{x:c,y:l},previewContainerRef:a,inlineStyles:lc(r,c,l,!0,n)})}}),c);return function(){e&&window.clearTimeout(e)}}),[]),!t||0===t.length)return null;var E=lc(m,k,y,u,n);return Object(d.createElement)("div",{ref:a,className:b()("block-editor-block-preview__container editor-styles-wrapper is-centered",{"is-ready":u}),"aria-hidden":!0},Object(d.createElement)(z.Disabled,{style:E,className:"block-editor-block-preview__content"},Object(d.createElement)(ac,null)))},uc=n(108),dc=n.n(uc);var fc=function(e){var t=e.viewportWidth,n=dc()(),r=Object(D.a)(n,2),o=r[0],i=r[1].width,c=dc()(),a=Object(D.a)(c,2),l=a[0],s=a[1].height;return Object(d.createElement)("div",{className:"block-editor-block-preview__container editor-styles-wrapper is-auto-height","aria-hidden":!0,style:{height:s*i/t}},o,Object(d.createElement)(z.Disabled,{style:{transform:"scale(".concat(i/t,")"),width:t},className:"block-editor-block-preview__content"},l,Object(d.createElement)(ac,null)))};var bc=function(e){var t=e.blocks,n=e.viewportWidth,r=void 0===n?700:n,o=e.padding,i=e.autoHeight,c=void 0!==i&&i,a=e.__experimentalOnReady,l=void 0===a?p.noop:a,s=e.__experimentalScalingDelay,u=void 0===s?100:s,f=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings()})),b=Object(d.useMemo)((function(){return Object(p.castArray)(t)}),[t]),h=Object(d.useReducer)((function(e){return e+1}),0),m=Object(D.a)(h,2),v=m[0],O=m[1];return Object(d.useLayoutEffect)(O,[t]),t&&0!==t.length?Object(d.createElement)(Jo,{value:b,settings:f},c?Object(d.createElement)(fc,{key:v,viewportWidth:r}):Object(d.createElement)(sc,{key:v,blocks:b,viewportWidth:r,padding:o,onReady:l,scalingDelay:u})):null};var pc=function(e){var t=e.icon,n=e.onClick,r=e.isDisabled,o=e.title,i=e.className,c=Object(F.a)(e,["icon","onClick","isDisabled","title","className"]),a=t?{backgroundColor:t.background,color:t.foreground}:{};return Object(d.createElement)("li",{className:"block-editor-block-types-list__list-item"},Object(d.createElement)(z.Button,Object(u.a)({className:b()("block-editor-block-types-list__item",i),onClick:function(e){e.preventDefault(),n()},disabled:r},c),Object(d.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:a},Object(d.createElement)(St,{icon:t,showColors:!0})),Object(d.createElement)("span",{className:"block-editor-block-types-list__item-title"},o)))};function hc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hc(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gc=function(e){var t=e.items,n=void 0===t?[]:t,r=e.onSelect,o=e.onHover,c=void 0===o?function(){}:o,a=e.children,l=n.reduce((function(e,t){var n=t.variations,r=void 0===n?[]:n;return r.some((function(e){return e.isDefault}))||e.push(t),r.length&&(e=e.concat(r.map((function(e){return mc({},t,{id:"".concat(t.id,"-").concat(e.name),icon:e.icon||t.icon,title:e.title||t.title,description:e.description||t.description,example:e.hasOwnProperty("example")?e.example:t.example,initialAttributes:mc({},t.initialAttributes,{},e.attributes),innerBlocks:e.innerBlocks})})))),e}),[]);return Object(d.createElement)("ul",{role:"list",className:"block-editor-block-types-list"},l.map((function(e){return Object(d.createElement)(pc,{key:e.id,className:Object(i.getBlockMenuDefaultClassName)(e.id),icon:e.icon,onClick:function(){r(e),c(null)},onFocus:function(){return c(e)},onMouseEnter:function(){return c(e)},onMouseLeave:function(){return c(null)},onBlur:function(){return c(null)},isDisabled:e.isDisabled,title:e.title})})),a)};var vc=function(e){var t=e.blockType;return Object(d.createElement)("div",{className:"block-editor-block-card"},Object(d.createElement)(St,{icon:t.icon,showColors:!0}),Object(d.createElement)("div",{className:"block-editor-block-card__content"},Object(d.createElement)("div",{className:"block-editor-block-card__title"},t.title),Object(d.createElement)("div",{className:"block-editor-block-card__description"},t.description)))};var Oc=Object(h.compose)(Object(h.ifCondition)((function(e){var t=e.items;return t&&t.length>0})),Object(g.withSelect)((function(e,t){var n=t.rootClientId,r=(0,e("core/blocks").getBlockType)((0,e("core/block-editor").getBlockName)(n));return{rootBlockTitle:r&&r.title,rootBlockIcon:r&&r.icon}})))((function(e){var t=e.rootBlockIcon,n=e.rootBlockTitle,r=e.items,o=Object(F.a)(e,["rootBlockIcon","rootBlockTitle","items"]);return Object(d.createElement)("div",{className:"block-editor-inserter__child-blocks"},(t||n)&&Object(d.createElement)("div",{className:"block-editor-inserter__parent-block-header"},Object(d.createElement)(St,{icon:t,showColors:!0}),n&&Object(d.createElement)("h2",null,n)),Object(d.createElement)(gc,Object(u.a)({items:r},o)))})),jc=[Object(d.__experimentalCreateInterpolateElement)(Object(U.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:Object(d.createElement)("kbd",null)}),Object(d.__experimentalCreateInterpolateElement)(Object(U.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:Object(d.createElement)("kbd",null)}),Object(d.__experimentalCreateInterpolateElement)(Object(U.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line"),{kbd:Object(d.createElement)("kbd",null)}),Object(U.__)("Drag files into the editor to automatically insert media blocks."),Object(U.__)("Change a block's type by pressing the block icon on the toolbar.")];var kc=function(){var e=Object(d.useState)(Math.floor(Math.random()*jc.length)),t=Object(D.a)(e,1)[0];return Object(d.createElement)(z.Tip,null,jc[t])},yc=Object(z.createSlotFill)("__experimentalInserterMenuExtension"),_c=yc.Fill,Ec=yc.Slot;_c.Slot=Ec;var Sc=_c;function wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Cc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=(e=Object(p.deburr)(e)).replace(/^\//,"")).toLowerCase(),Object(p.words)(e)},Ic=function(e,t){return Object(p.differenceWith)(e,Cc(t),(function(e,t){return t.includes(e)}))},Bc=function(e,t,n,r){var o=Cc(r);return 0===o.length?e:e.filter((function(e){var r=e.name,i=e.title,c=e.category,a=e.keywords,l=void 0===a?[]:a,s=e.variations,u=void 0===s?[]:s,d=Ic(o,i);if(0===d.length)return!0;if(0===(d=Ic(d,l.join(" "))).length)return!0;d=Ic(d,Object(p.get)(Object(p.find)(t,{slug:c}),["title"]));var f=n[r.split("/")[0]];return f&&(d=Ic(d,f.title)),0===d.length||0===(d=Ic(d,u.map((function(e){return e.title})).join(" "))).length})).map((function(e){if(Object(p.isEmpty)(e.variations))return e;var t=e.variations.filter((function(e){return Object(p.intersectionWith)(o,Cc(e.title),(function(e,t){return t.includes(e)})).length>0}));return Object(p.isEmpty)(t)?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wc(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{variations:t})}))};function xc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xc(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pc=function(e){return e.stopPropagation()},Nc=function(e){return e.name.split("/")[0]},Lc=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).state={childItems:[],filterValue:"",hoveredItem:null,suggestedItems:[],reusableItems:[],itemsPerCategory:{},itemsPerCollection:{},openPanels:["suggested"]},e.onChangeSearchInput=e.onChangeSearchInput.bind(Object(C.a)(e)),e.onHover=e.onHover.bind(Object(C.a)(e)),e.panels={},e.inserterResults=Object(d.createRef)(),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"componentDidMount",value:function(){this.props.fetchReusableBlocks&&this.props.fetchReusableBlocks(),this.filter()}},{key:"componentDidUpdate",value:function(e){e.items!==this.props.items&&this.filter(this.state.filterValue)}},{key:"onChangeSearchInput",value:function(e){this.filter(e.target.value)}},{key:"onHover",value:function(e){this.setState({hoveredItem:e});var t=this.props,n=t.showInsertionPoint,r=t.hideInsertionPoint;e?n():r()}},{key:"bindPanel",value:function(e){var t=this;return function(n){t.panels[e]=n}}},{key:"onTogglePanel",value:function(e){var t=this;return function(){-1!==t.state.openPanels.indexOf(e)?t.setState({openPanels:Object(p.without)(t.state.openPanels,e)}):(t.setState({openPanels:[].concat(Object(A.a)(t.state.openPanels),[e])}),t.props.setTimeout((function(){Bt()(t.panels[e],t.inserterResults.current,{alignWithTop:!0})})))}}},{key:"filterOpenPanels",value:function(e,t,n,r,o){if(e===this.state.filterValue)return this.state.openPanels;if(!e)return["suggested"];var i=[];return o.length>0&&i.push("reusable"),r.length>0&&(i=i.concat(Object.keys(t),Object.keys(n))),i}},{key:"filter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.categories,r=t.collections,o=t.debouncedSpeak,i=t.items,c=t.rootChildBlocks,a=Bc(i,n,r,e),l=Object(p.filter)(a,(function(e){var t=e.name;return Object(p.includes)(c,t)})),s=[];if(!e){var u=this.props.maxSuggestedItems||9;s=Object(p.filter)(i,(function(e){return e.utility>0})).slice(0,u)}var d=Object(p.filter)(a,{category:"reusable"}),f=function(e){return Object(p.findIndex)(n,(function(t){return t.slug===e.category}))},b=Object(p.flow)((function(e){return Object(p.filter)(e,(function(e){return"reusable"!==e.category}))}),(function(e){return Object(p.sortBy)(e,f)}),(function(e){return Object(p.groupBy)(e,"category")}))(a),h=Tc({},r);Object.keys(r).forEach((function(e){h[e]=a.filter((function(t){return Nc(t)===e})),0===h[e].length&&delete h[e]})),this.setState({hoveredItem:null,childItems:l,filterValue:e,suggestedItems:s,reusableItems:d,itemsPerCategory:b,itemsPerCollection:h,openPanels:this.filterOpenPanels(e,b,h,a,d)});var m=Object.keys(b).reduce((function(e,t){return e+b[t].length}),0),g=Object(U.sprintf)(Object(U._n)("%d result found.","%d results found.",m),m);o(g)}},{key:"onKeyDown",value:function(e){Object(p.includes)([xt.LEFT,xt.DOWN,xt.RIGHT,xt.UP,xt.BACKSPACE,xt.ENTER],e.keyCode)&&e.stopPropagation()}},{key:"render",value:function(){var e=this,t=this.props,n=t.categories,r=t.collections,o=t.instanceId,c=t.onSelect,a=t.rootClientId,l=t.showInserterHelpPanel,s=this.state,u=s.childItems,f=s.hoveredItem,b=s.itemsPerCategory,h=s.itemsPerCollection,m=s.openPanels,g=s.reusableItems,v=s.suggestedItems,O=s.filterValue,j=function(e){return-1!==m.indexOf(e)},k=!(Object(p.isEmpty)(v)&&Object(p.isEmpty)(g)&&Object(p.isEmpty)(b)&&Object(p.isEmpty)(h)),y=f?Object(i.getBlockType)(f.name):null,_=k&&l;return Object(d.createElement)("div",{className:"block-editor-inserter__menu",onKeyPress:Pc,onKeyDown:this.onKeyDown},Object(d.createElement)("div",{className:"block-editor-inserter__main-area"},Object(d.createElement)("label",{htmlFor:"block-editor-inserter__search-".concat(o),className:"screen-reader-text"},Object(U.__)("Search for a block")),Object(d.createElement)("input",{id:"block-editor-inserter__search-".concat(o),type:"search",placeholder:Object(U.__)("Search for a block"),className:"block-editor-inserter__search",autoFocus:!0,onChange:this.onChangeSearchInput}),Object(d.createElement)("div",{className:"block-editor-inserter__results",ref:this.inserterResults,tabIndex:"0",role:"region","aria-label":Object(U.__)("Available block types")},Object(d.createElement)(Oc,{rootClientId:a,items:u,onSelect:c,onHover:this.onHover}),!!v.length&&Object(d.createElement)(z.PanelBody,{title:Object(U._x)("Most used","blocks"),opened:j("suggested"),onToggle:this.onTogglePanel("suggested"),ref:this.bindPanel("suggested")},Object(d.createElement)(gc,{items:v,onSelect:c,onHover:this.onHover})),Object(p.map)(n,(function(t){var n=b[t.slug];return n&&n.length?Object(d.createElement)(z.PanelBody,{key:t.slug,title:t.title,icon:t.icon,opened:j(t.slug),onToggle:e.onTogglePanel(t.slug),ref:e.bindPanel(t.slug)},Object(d.createElement)(gc,{items:n,onSelect:c,onHover:e.onHover})):null})),Object(p.map)(r,(function(t,n){var r=h[n];return r&&r.length?Object(d.createElement)(z.PanelBody,{key:n,title:t.title,icon:t.icon,opened:j(n),onToggle:e.onTogglePanel(n),ref:e.bindPanel(n)},Object(d.createElement)(gc,{items:r,onSelect:c,onHover:e.onHover})):null})),!!g.length&&Object(d.createElement)(z.PanelBody,{className:"block-editor-inserter__reusable-blocks-panel",title:Object(U.__)("Reusable"),opened:j("reusable"),onToggle:this.onTogglePanel("reusable"),icon:Pt,ref:this.bindPanel("reusable")},Object(d.createElement)(gc,{items:g,onSelect:c,onHover:this.onHover}),Object(d.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:Object(Tt.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(U.__)("Manage all reusable blocks"))),Object(d.createElement)(Sc.Slot,{fillProps:{onSelect:c,onHover:this.onHover,filterValue:O,hasItems:k}},(function(e){return e.length?e:k?null:Object(d.createElement)("p",{className:"block-editor-inserter__no-results"},Object(U.__)("No blocks found."))}))),l&&Object(d.createElement)("div",{className:"block-editor-inserter__tips"},Object(d.createElement)(kc,null))),_&&f&&Object(d.createElement)("div",{className:"block-editor-inserter__menu-help-panel"},!Object(i.isReusableBlock)(f)&&Object(d.createElement)(vc,{blockType:f}),Object(d.createElement)("div",{className:"block-editor-inserter__preview"},Object(i.isReusableBlock)(f)||y.example?Object(d.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(d.createElement)(bc,{padding:10,viewportWidth:500,blocks:y.example?Object(i.getBlockFromExample)(f.name,{attributes:Tc({},y.example.attributes,{},f.initialAttributes),innerBlocks:y.example.innerBlocks}):Object(i.createBlock)(f.name,f.initialAttributes)})):Object(d.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(U.__)("No Preview Available.")))))}}]),t}(d.Component),Rc=Object(h.compose)(Object(g.withSelect)((function(e,t){var n=t.clientId,r=t.isAppender,o=t.rootClientId,i=e("core/block-editor"),c=i.getInserterItems,a=i.getBlockName,l=i.getBlockRootClientId,s=i.getBlockSelectionEnd,u=i.getSettings,d=e("core/blocks"),f=d.getCategories,b=d.getCollections,p=d.getChildBlockNames,h=o;if(!h&&!n&&!r){var m=s();m&&(h=l(m)||void 0)}var g=a(h),v=u().__experimentalFetchReusableBlocks;return{categories:f(),collections:b(),rootChildBlocks:p(g),items:c(h),destinationRootClientId:h,fetchReusableBlocks:v}})),Object(g.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-editor"),c=o.showInsertionPoint;function a(){var e=r("core/block-editor"),n=e.getBlockIndex,o=e.getBlockSelectionEnd,i=e.getBlockOrder,c=t.clientId,a=t.destinationRootClientId,l=t.isAppender;if(c)return n(c,a);var s=o();return!l&&s?n(s,a)+1:i(a).length}return{showInsertionPoint:function(){var e=a();c(t.destinationRootClientId,e)},hideInsertionPoint:o.hideInsertionPoint,onSelect:function(n){var o=e("core/block-editor"),c=o.replaceBlocks,l=o.insertBlock,s=r("core/block-editor").getSelectedBlock,u=t.isAppender,d=t.onSelect,f=t.__experimentalSelectBlockOnInsert,b=n.name,h=n.title,m=n.initialAttributes,g=n.innerBlocks,v=s(),O=Object(i.createBlock)(b,m,function e(t){return Object(p.map)(t,(function(t){var n=Object(D.a)(t,3),r=n[0],o=n[1],c=n[2],a=void 0===c?[]:c;return Object(i.createBlock)(r,o,e(a))}))}(g));if(!u&&v&&Object(i.isUnmodifiedDefaultBlock)(v))c(v.clientId,O);else if(l(O,a(),t.destinationRootClientId,f),!f){var j=Object(U.sprintf)(Object(U.__)("%s block added"),h);Object(ye.speak)(j)}return d(),O}}})),z.withSpokenMessages,h.withInstanceId,h.withSafeTimeout)(Lc),Mc=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,i=e.blockTitle,c=e.hasSingleBlockType,a=e.toggleProps;return t=c?Object(U.sprintf)(Object(U._x)("Add %s","directly add the only allowed block"),i):Object(U._x)("Add block","Generic label for block inserter button"),Object(d.createElement)(z.Button,Object(u.a)({icon:Ct,label:t,tooltipPosition:"bottom",onClick:n,className:"block-editor-inserter__toggle","aria-haspopup":!c&&"true","aria-expanded":!c&&o,disabled:r},a))},Ac=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).onToggle=e.onToggle.bind(Object(C.a)(e)),e.renderToggle=e.renderToggle.bind(Object(C.a)(e)),e.renderContent=e.renderContent.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,r=this.props,o=r.disabled,i=r.blockTitle,c=r.hasSingleBlockType,a=r.toggleProps,l=r.renderToggle,s=void 0===l?Mc:l;return s({onToggle:t,isOpen:n,disabled:o,blockTitle:i,hasSingleBlockType:c,toggleProps:a})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,i=n.isAppender,c=n.showInserterHelpPanel,a=n.__experimentalSelectBlockOnInsert;return Object(d.createElement)(Rc,{onSelect:t,rootClientId:r,clientId:o,isAppender:i,showInserterHelpPanel:c,__experimentalSelectBlockOnInsert:a})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.hasSingleBlockType,r=e.insertOnlyAllowedBlock;return n?this.renderToggle({onToggle:r}):Object(d.createElement)(z.Dropdown,{className:"block-editor-inserter",contentClassName:"block-editor-inserter__popover",position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(U.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),t}(d.Component),Dc=Object(h.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/block-editor"),i=o.getBlockRootClientId,c=o.hasInserterItems,a=o.__experimentalGetAllowedBlocks,l=e("core/blocks").getBlockVariations,s=a(r=r||i(n)||void 0),u=1===Object(p.size)(s)&&0===Object(p.size)(l(s[0].name,"inserter")),d=!1;return u&&(d=s[0]),{hasItems:c(r),hasSingleBlockType:u,blockTitle:d?d.title:"",allowedBlockType:d,rootClientId:r}})),Object(g.withDispatch)((function(e,t,n){var r=n.select;return{insertOnlyAllowedBlock:function(){var n=t.rootClientId,o=t.clientId,c=t.isAppender,a=t.hasSingleBlockType,l=t.allowedBlockType,s=t.__experimentalSelectBlockOnInsert;if(a&&((0,e("core/block-editor").insertBlock)(Object(i.createBlock)(l.name),function(){var e=r("core/block-editor"),t=e.getBlockIndex,i=e.getBlockSelectionEnd,a=e.getBlockOrder;if(o)return t(o,n);var l=i();return!c&&l?t(l,n)+1:a(n).length}(),n,s),!s)){var u=Object(U.sprintf)(Object(U.__)("%s block added"),l.title);Object(ye.speak)(u)}}}})),Object(h.ifCondition)((function(e){return e.hasItems}))])(Ac);var Fc=function(e){var t=e.rootClientId,n=e.className,r=e.__experimentalSelectBlockOnInsert;return Object(d.createElement)(Dc,{rootClientId:t,__experimentalSelectBlockOnInsert:r,renderToggle:function(e){var t,r=e.onToggle,o=e.disabled,i=e.isOpen,c=e.blockTitle,a=e.hasSingleBlockType;t=a?Object(U.sprintf)(Object(U._x)("Add %s","directly add the only allowed block"),c):Object(U._x)("Add block","Generic label for block inserter button");var l=!a;return Object(d.createElement)(z.Tooltip,{text:t},Object(d.createElement)(z.Button,{className:b()(n,"block-editor-button-block-appender"),onClick:r,"aria-haspopup":l?"true":void 0,"aria-expanded":l?i:void 0,disabled:o,label:t},Object(d.createElement)("span",{className:"screen-reader-text"},t),Object(d.createElement)(wt.a,{icon:Ct})))},isAppender:!0})};function Hc(e){var t=e.blocks,n=e.selectedBlockClientId,r=e.selectBlock,o=e.showAppender,c=e.showNestedBlocks,a=e.parentBlockClientId,l=o&&!!a;return Object(d.createElement)("ul",{className:"block-editor-block-navigation__list",role:"list"},Object(p.map)(Object(p.omitBy)(t,p.isNil),(function(e){var t=Object(i.getBlockType)(e.name),a=e.clientId===n;return Object(d.createElement)("li",{key:e.clientId},Object(d.createElement)("div",{className:"block-editor-block-navigation__item"},Object(d.createElement)(z.Button,{className:b()("block-editor-block-navigation__item-button",{"is-selected":a}),onClick:function(){return r(e.clientId)}},Object(d.createElement)(St,{icon:t.icon,showColors:!0}),Object(i.__experimentalGetBlockLabel)(t,e.attributes),a&&Object(d.createElement)("span",{className:"screen-reader-text"},Object(U.__)("(selected block)")))),c&&!!e.innerBlocks&&!!e.innerBlocks.length&&Object(d.createElement)(Hc,{blocks:e.innerBlocks,selectedBlockClientId:n,selectBlock:r,parentBlockClientId:e.clientId,showAppender:o,showNestedBlocks:!0}))})),l&&Object(d.createElement)("li",null,Object(d.createElement)("div",{className:"block-editor-block-navigation__item"},Object(d.createElement)(Fc,{rootClientId:a,__experimentalSelectBlockOnInsert:!1}))))}var Vc=Object(h.compose)(Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.getBlock,i=t.getBlocks,c=n();return{rootBlocks:i(),rootBlock:c?o(r(c)):null,selectedBlockClientId:c}})),Object(g.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?p.noop:n;return{selectBlock:function(t){e("core/block-editor").selectBlock(t),r(t)}}})))((function(e){var t=e.rootBlock,n=e.rootBlocks,r=e.selectedBlockClientId,o=e.selectBlock;if(!n||0===n.length)return null;var i=t&&(t.clientId!==r||t.innerBlocks&&0!==t.innerBlocks.length);return Object(d.createElement)(z.NavigableMenu,{role:"presentation",className:"block-editor-block-navigation__container"},Object(d.createElement)("p",{className:"block-editor-block-navigation__label"},Object(U.__)("Block navigation")),i&&Object(d.createElement)(Hc,{blocks:[t],selectedBlockClientId:r,selectBlock:o,showNestedBlocks:!0}),!i&&Object(d.createElement)(Hc,{blocks:n,selectedBlockClientId:r,selectBlock:o}))})),Uc=Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(d.createElement)(z.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));function zc(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen;Object(l.useShortcut)("core/edit-post/toggle-block-navigation",Object(d.useCallback)(n,[n]),{bindGlobal:!0,isDisabled:!t});var o=Object(g.useSelect)((function(e){return e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-block-navigation")}),[]);return Object(d.createElement)(z.Button,{icon:Uc,"aria-expanded":r,onClick:t?n:void 0,label:Object(U.__)("Block navigation"),className:"block-editor-block-navigation",shortcut:o,"aria-disabled":!t})}var Gc=function(e){var t=e.isDisabled,n=Object(g.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[])&&!t;return Object(d.createElement)(z.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:function(e){return Object(d.createElement)(zc,Object(u.a)({},e,{isEnabled:n}))},renderContent:function(e){var t=e.onClose;return Object(d.createElement)(Vc,{onSelect:t})}})};function Kc(e){var t=e.pattern,n=e.onClick,r=t.title,o=t.content,c=Object(d.useMemo)((function(){return Object(i.parse)(o)}),[o]);return Object(d.createElement)("div",{className:"block-editor-patterns__item",role:"button",onClick:function(){return n(t,c)},onKeyDown:function(e){xt.ENTER!==e.keyCode&&xt.SPACE!==e.keyCode||n(c)},tabIndex:0},Object(d.createElement)("div",{className:"block-editor-patterns__item-preview"},Object(d.createElement)(bc,{blocks:c,autoHeight:!0})),Object(d.createElement)("div",{className:"block-editor-patterns__item-title"},r))}var Wc=function(e){var t=e.patterns,n=Object(g.useSelect)((function(e){return e("core/block-editor").getBlockInsertionPoint})),r=Object(g.useDispatch)("core/block-editor").insertBlocks,o=Object(g.useDispatch)("core/notices").createSuccessNotice,c=Object(d.useCallback)((function(e,t){var c=n(),a=c.index,l=c.rootClientId;r(Object(p.map)(t,(function(e){return Object(i.cloneBlock)(e)})),a,l,!1),o(Object(U.sprintf)(Object(U.__)('Pattern "%s" inserted'),e.title),{type:"snackbar"})}),[]);return Object(d.createElement)("div",{className:"block-editor-patterns"},t.map((function(e,t){return Object(d.createElement)(Kc,{key:t,pattern:e,onClick:c})})))},qc=n(180);var $c=function(e){var t=e.icon,n=void 0===t?qc.a:t,r=e.label,o=void 0===r?Object(U.__)("Choose variation"):r,i=e.instructions,c=void 0===i?Object(U.__)("Select a variation to start with."):i,a=e.variations,l=e.onSelect,s=e.allowSkip,u=b()("block-editor-block-variation-picker",{"has-many-variations":a.length>4});return Object(d.createElement)(z.Placeholder,{icon:n,label:o,instructions:c,className:u},Object(d.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list"},a.map((function(e){return Object(d.createElement)("li",{key:e.name},Object(d.createElement)(z.Button,{isSecondary:!0,icon:e.icon,iconSize:48,onClick:function(){return l(e)},className:"block-editor-block-variation-picker__variation",label:e.title}))}))),s&&Object(d.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(d.createElement)(z.Button,{isLink:!0,onClick:function(){return l()}},Object(U.__)("Skip"))))},Yc=Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(z.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),Xc=Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(z.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"}));function Zc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Jc={top:{icon:Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(z.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:Object(U._x)("Vertically Align Top","Block vertical alignment setting")},center:{icon:Xc,title:Object(U._x)("Vertically Align Middle","Block vertical alignment setting")},bottom:{icon:Yc,title:Object(U._x)("Vertically Align Bottom","Block vertical alignment setting")}},Qc=["top","center","bottom"];var ea=function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?Qc:r,i=e.isCollapsed,c=void 0===i||i,a=Jc[t],l=Jc.top;return Object(d.createElement)(z.Toolbar,{isCollapsed:c,icon:a?a.icon:l.icon,label:Object(U._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zc(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Jc[e],{isActive:t===e,role:c?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))})},ta=Object(h.createHigherOrderComponent)(Object(g.withSelect)((function(e,t){var n=e("core/block-editor").getSettings(),r=void 0===t.colors?n.colors:t.colors,o=void 0===t.disableCustomColors?n.disableCustomColors:t.disableCustomColors;return{colors:r,disableCustomColors:o,hasColorsToChoose:!Object(p.isEmpty)(r)||!o}})),"withColorContext"),na=ta(z.ColorPalette);function ra(e){var t=e.onChange,n=e.value,r=Object(F.a)(e,["onChange","value"]);return Object(d.createElement)(ue,Object(u.a)({},r,{onColorChange:t,colorValue:n,gradients:[],disableCustomGradients:!0}))}var oa=Object(z.navigateRegions)((function(e){var t=e.footer,n=e.header,r=e.sidebar,o=e.content,i=e.publish,c=e.className;return function(e){Object(d.useEffect)((function(){var t=document&&document.querySelector("html:not(.".concat(e,")"));if(t)return t.classList.toggle(e),function(){t.classList.toggle(e)}}),[e])}("block-editor-editor-skeleton__html-container"),Object(d.createElement)("div",{className:b()(c,"block-editor-editor-skeleton")},!!n&&Object(d.createElement)("div",{className:"block-editor-editor-skeleton__header",role:"region","aria-label":Object(U.__)("Editor top bar"),tabIndex:"-1"},n),Object(d.createElement)("div",{className:"block-editor-editor-skeleton__body"},Object(d.createElement)("div",{className:"block-editor-editor-skeleton__content",role:"region","aria-label":Object(U.__)("Editor content"),tabIndex:"-1"},o),!!r&&Object(d.createElement)("div",{className:"block-editor-editor-skeleton__sidebar",role:"region","aria-label":Object(U.__)("Editor settings"),tabIndex:"-1"},r),!!i&&Object(d.createElement)("div",{className:"block-editor-editor-skeleton__publish",role:"region","aria-label":Object(U.__)("Editor publish"),tabIndex:"-1"},i)),!!t&&Object(d.createElement)("div",{className:"block-editor-editor-skeleton__footer",role:"region","aria-label":Object(U.__)("Editor footer"),tabIndex:"-1"},t))}));function ia(e){var t=Object(g.useSelect)((function(e){return Object(p.pick)(e("core/block-editor").getSettings(),["gradients","disableCustomGradients"])}),[]),n=t.gradients,r=t.disableCustomGradients;return Object(d.createElement)(z.__experimentalGradientPicker,Object(u.a)({gradients:void 0!==e.gradients?e.gradient:n,disableCustomGradients:void 0!==e.disableCustomGradients?e.disableCustomGradients:r},e))}var ca=function(e){var t=void 0!==e.gradients&&void 0!==e.disableCustomGradients?z.__experimentalGradientPicker:ia;return Object(d.createElement)(t,e)},aa=function(e){var t=e.className,n=e.value,r=e.onChange,o=e.label,i=void 0===o?Object(U.__)("Gradient Presets"):o,c=Object(F.a)(e,["className","value","onChange","label"]),a=Object(g.useSelect)((function(e){return Object(p.pick)(e("core/block-editor").getSettings(),["gradients","disableCustomGradients"])}),[]),l=a.gradients,s=void 0===l?[]:l,f=a.disableCustomGradients;return Object(p.isEmpty)(s)&&f?null:Object(d.createElement)(z.BaseControl,{className:b()("block-editor-gradient-picker-control",t)},Object(d.createElement)(z.BaseControl.VisualLabel,null,i),Object(d.createElement)(ca,Object(u.a)({value:n,onChange:r,className:"block-editor-gradient-picker-control__gradient-picker-presets",gradients:s,disableCustomGradients:f},c)))};function la(e){var t=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings().gradients}),[]);return Object(p.isEmpty)(t)?null:Object(d.createElement)(z.PanelBody,{title:Object(U.__)("Gradient")},Object(d.createElement)(aa,e))}var sa=function(e){function t(e){var n;return Object(_.a)(this,t),(n=Object(S.a)(this,Object(w.a)(t).call(this,e))).updateDimensions=n.updateDimensions.bind(Object(C.a)(n)),n}return Object(I.a)(t,e),Object(E.a)(t,[{key:"updateDimensions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return function(){e.props.onChange({width:t,height:n})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.imageWidth,r=t.imageHeight,o=t.imageSizeOptions,i=void 0===o?[]:o,c=t.isResizable,a=void 0===c||c,l=t.slug,s=t.width,u=t.height,f=t.onChange,b=t.onChangeImage,h=void 0===b?p.noop:b;return Object(d.createElement)(d.Fragment,null,!Object(p.isEmpty)(i)&&Object(d.createElement)(z.SelectControl,{label:Object(U.__)("Image size"),value:l,options:i,onChange:h}),a&&Object(d.createElement)("div",{className:"block-editor-image-size-control"},Object(d.createElement)("p",{className:"block-editor-image-size-control__row"},Object(U.__)("Image dimensions")),Object(d.createElement)("div",{className:"block-editor-image-size-control__row"},Object(d.createElement)(z.TextControl,{type:"number",className:"block-editor-image-size-control__width",label:Object(U.__)("Width"),value:s||n||"",min:1,onChange:function(e){return f({width:parseInt(e,10)})}}),Object(d.createElement)(z.TextControl,{type:"number",className:"block-editor-image-size-control__height",label:Object(U.__)("Height"),value:u||r||"",min:1,onChange:function(e){return f({height:parseInt(e,10)})}})),Object(d.createElement)("div",{className:"block-editor-image-size-control__row"},Object(d.createElement)(z.ButtonGroup,{"aria-label":Object(U.__)("Image Size")},[25,50,75,100].map((function(t){var o=Math.round(n*(t/100)),i=Math.round(r*(t/100)),c=s===o&&u===i;return Object(d.createElement)(z.Button,{key:t,isSmall:!0,isPrimary:c,isPressed:c,onClick:e.updateDimensions(o,i)},t,"%")}))),Object(d.createElement)(z.Button,{isSmall:!0,onClick:this.updateDimensions()},Object(U.__)("Reset")))))}}]),t}(d.Component),ua=n(49),da=n.n(ua),fa=Object(h.createHigherOrderComponent)((function(e){return Y((function(e){return Object(p.pick)(e,["clientId"])}))(e)}),"withClientId"),ba=fa((function(e){var t=e.clientId,n=e.showSeparator;return Object(d.createElement)(Fc,{rootClientId:t,showSeparator:n})})),pa=Object(h.compose)([fa,Object(g.withSelect)((function(e,t){var n=t.clientId,r=(0,e("core/block-editor").getBlockOrder)(n);return{lastBlockClientId:Object(p.last)(r)}}))])((function(e){var t=e.clientId,n=e.lastBlockClientId;return Object(d.createElement)(nc,{rootClientId:t,lastBlockClientId:n})})),ha=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).state={templateInProcess:!!e.props.template},e.updateNestedSettings(),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.block,n=e.templateLock,r=e.__experimentalBlocks,o=e.replaceInnerBlocks,i=e.__unstableMarkNextChangeAsNotPersistent;0!==t.innerBlocks.length&&"all"!==n||this.synchronizeBlocksWithTemplate(),this.state.templateInProcess&&this.setState({templateInProcess:!1}),r&&(i(),o(r))}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.block,r=t.templateLock,o=t.template,i=t.isLastBlockChangePersistent,c=t.onInput,a=t.onChange,l=n.innerBlocks;(this.updateNestedSettings(),0===l.length||"all"===r)&&(!Object(p.isEqual)(o,e.template)&&this.synchronizeBlocksWithTemplate());if(e.block.innerBlocks!==l){var s=i?a:c;s&&s(l)}}},{key:"synchronizeBlocksWithTemplate",value:function(){var e=this.props,t=e.template,n=e.block,r=e.replaceInnerBlocks,o=n.innerBlocks,c=Object(i.synchronizeBlocksWithTemplate)(o,t);Object(p.isEqual)(c,o)||r(c)}},{key:"updateNestedSettings",value:function(){var e=this.props,t=e.blockListSettings,n=e.allowedBlocks,r=e.updateNestedSettings,o=e.templateLock,i=e.parentLock,c={allowedBlocks:n,templateLock:void 0===o?i:o,__experimentalCaptureToolbars:e.__experimentalCaptureToolbars||!1,__experimentalMoverDirection:e.__experimentalMoverDirection,__experimentalUIParts:e.__experimentalUIParts};da()(t,c)||r(c)}},{key:"render",value:function(){var e=this.props,t=e.enableClickThrough,n=e.clientId,r=e.hasOverlay,o=e.__experimentalCaptureToolbars,i=e.forwardedRef,c=Object(F.a)(e,["enableClickThrough","clientId","hasOverlay","__experimentalCaptureToolbars","forwardedRef"]);if(this.state.templateInProcess)return null;var a=b()({"has-overlay":t&&r,"is-capturing-toolbar":o}),l=Object(d.createElement)(ac,Object(u.a)({},c,{ref:i,rootClientId:n,className:a}));return c.__experimentalTagName?l:Object(d.createElement)("div",{className:"block-editor-inner-blocks",ref:i},l)}}]),t}(d.Component),ma=Object(h.compose)([Object(a.withViewportMatch)({isSmallScreen:"< medium"}),Y((function(e){return Object(p.pick)(e,["clientId"])})),Object(g.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.isBlockSelected,o=n.hasSelectedInnerBlock,i=n.getBlock,c=n.getBlockListSettings,a=n.getBlockRootClientId,l=n.getTemplateLock,s=n.isNavigationMode,u=n.isLastBlockChangePersistent,d=t.clientId,f=t.isSmallScreen,b=i(d),p=a(d);return{block:b,blockListSettings:c(d),hasOverlay:"core/template"!==b.name&&!r(d)&&!o(d,!0),parentLock:l(p),enableClickThrough:s()||f,isLastBlockChangePersistent:u()}})),Object(g.withDispatch)((function(e,t){var n=e("core/block-editor"),r=n.replaceInnerBlocks,o=n.__unstableMarkNextChangeAsNotPersistent,i=n.updateBlockListSettings,c=t.block,a=t.clientId,l=t.templateInsertUpdatesSelection,s=void 0===l||l;return{replaceInnerBlocks:function(e){r(a,e,0===c.innerBlocks.length&&s&&0!==e.length)},__unstableMarkNextChangeAsNotPersistent:o,updateNestedSettings:function(t){e(i(a,t))}}}))])(ha),ga=Object(d.forwardRef)((function(e,t){var n=Object(d.useRef)();return Object(d.createElement)(ma,Object(u.a)({},e,{forwardedRef:t||n}))}));ga.DefaultBlockAppender=pa,ga.ButtonBlockAppender=ba,ga.Content=Object(i.withBlockContentContext)((function(e){var t=e.BlockContent;return Object(d.createElement)(t,null)}));var va=ga,Oa=Object(z.createSlotFill)("InspectorAdvancedControls"),ja=Oa.Fill,ka=Oa.Slot,ya=X(ja);ya.slotName="InspectorAdvancedControls",ya.Slot=ka;var _a=ya,Ea=n(44);function Sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var wa=[{id:"opensInNewTab",title:Object(U.__)("Open in new tab")}],Ca=function(e){var t=e.value,n=e.onChange,r=void 0===n?p.noop:n,o=e.settings,i=void 0===o?wa:o;if(!i||!i.length)return null;var c=function(e){return function(n){r(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sa(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,Object(s.a)({},e.id,n)))}},a=i.map((function(e){return Object(d.createElement)(z.ToggleControl,{className:"block-editor-link-control__setting",key:e.id,label:e.title,onChange:c(e),checked:!!t&&!!t[e.id]})}));return Object(d.createElement)("fieldset",{className:"block-editor-link-control__settings"},Object(d.createElement)("legend",{className:"screen-reader-text"},Object(U.__)("Currently selected link settings")),a)},Ia=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(tt.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"})),Ba=function(e){var t=e.itemProps,n=e.suggestion,r=e.isSelected,o=void 0!==r&&r,i=e.onClick,c=e.isURL,a=void 0!==c&&c,l=e.searchTerm,s=void 0===l?"":l;return Object(d.createElement)(z.Button,Object(u.a)({},t,{onClick:i,className:b()("block-editor-link-control__search-item",{"is-selected":o,"is-url":a,"is-entity":!a})}),a&&Object(d.createElement)(wt.a,{className:"block-editor-link-control__search-item-icon",icon:Ia}),Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(d.createElement)(z.TextHighlight,{text:n.title,highlight:s})),Object(d.createElement)("span",{"aria-hidden":!a,className:"block-editor-link-control__search-item-info"},!a&&(Object(Tt.safeDecodeURI)(n.url)||""),a&&Object(U.__)("Press ENTER to add this link"))),n.type&&Object(d.createElement)("span",{className:"block-editor-link-control__search-item-type"},n.type))},xa=n(181),Ta=function(e){var t=e.value,n=e.onChange,r=e.onSelect,o=e.renderSuggestions,i=e.fetchSuggestions,c=e.showInitialSuggestions,a=e.errorMessage,l=Object(d.useState)(),s=Object(D.a)(l,2),u=s[0],f=s[1];return Object(d.createElement)("form",{onSubmit:function(e){e.preventDefault(),r(u||{url:t})}},Object(d.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(d.createElement)($a,{className:"block-editor-link-control__search-input",value:t,onChange:function(e,t){n(e),f(t)},placeholder:Object(U.__)("Search or type url"),__experimentalRenderSuggestions:o,__experimentalFetchLinkSuggestions:i,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:c}),Object(d.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(d.createElement)(z.Button,{type:"submit",label:Object(U.__)("Submit"),icon:xa.a,className:"block-editor-link-control__search-submit"}))),a&&Object(d.createElement)(z.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},a))},Pa=function(e){var t=e.searchTerm,n=e.onClick,r=e.itemProps,o=e.isSelected;return t?Object(d.createElement)(z.Button,Object(u.a)({},r,{className:b()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":o}),onClick:n}),Object(d.createElement)(z.Icon,{className:"block-editor-link-control__search-item-icon",icon:"insert"}),Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(d.__experimentalCreateInterpolateElement)(Object(U.sprintf)(Object(U.__)("New page: <mark>%s</mark>"),t),{mark:Object(d.createElement)("mark",null)})))):null};function Na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Na(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Na(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ra=Object(z.createSlotFill)("BlockEditorLinkControlViewer"),Ma=Ra.Slot,Aa=Ra.Fill,Da=function(e){var t=!1;return{promise:new Promise((function(n,r){e.then((function(e){return t?r({isCanceled:!0}):n(e)}),(function(e){return r(t?{isCanceled:!0}:e)}))})),cancel:function(){t=!0}}};function Fa(e){var t=e.value,n=e.settings,r=e.onChange,o=void 0===r?p.noop:r,i=e.showInitialSuggestions,c=e.forceIsEditingLink,a=e.createSuggestion,l=Object(d.useRef)(),s=Object(d.useRef)(),f=Object(d.useRef)(),m=Object(h.useInstanceId)(Fa),v=Object(d.useState)(t&&t.url||""),O=Object(D.a)(v,2),j=O[0],k=O[1],y=Object(d.useState)(void 0!==c?c:!t||!t.url),_=Object(D.a)(y,2),E=_[0],S=_[1],w=Object(d.useState)(!1),C=Object(D.a)(w,2),I=C[0],B=C[1],x=Object(d.useState)(null),T=Object(D.a)(x,2),P=T[0],N=T[1],L=Object(d.useRef)(!1),R=Object(g.useSelect)((function(e){return{fetchSearchSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}}),[]).fetchSearchSuggestions,M=t&&Object(Tt.filterURLForDisplay)(Object(Tt.safeDecodeURI)(t.url))||"";Object(d.useEffect)((function(){void 0!==c&&c!==E&&S(c)}),[c]),Object(d.useEffect)((function(){L.current&&f.current&&!f.current.contains(document.activeElement)&&(pi.focus.focusable.find(f.current)[0]||f.current).focus();L.current=!1}),[E]),Object(d.useEffect)((function(){return function(){l.current&&l.current.cancel(),s.current&&s.current.cancel()}}),[]);var A=function(e){var t="URL",n=Object(Tt.getProtocol)(e)||"";return n.includes("mailto")&&(t="mailto"),n.includes("tel")&&(t="tel"),Object(p.startsWith)(e,"#")&&(t="internal"),Promise.resolve([{id:e,title:e,url:"URL"===t?Object(Tt.prependHTTP)(e):e,type:t}])},F=function(){var e=Object(Ea.a)(nn.a.mark((function e(t,n){var r,o;return nn.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([R(t,La({},n.isInitialSuggestions?{perPage:3}:{})),A(t)]);case 2:return r=e.sent,o=!t.includes(" "),r=o&&!n.isInitialSuggestions?r[0].concat(r[1]):r[0],e.abrupt("return",V(t)?r:r.concat({title:t,url:t,type:"__CREATE__"}));case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();function H(){L.current=!!f.current&&f.current.contains(document.activeElement),S(!1)}function V(e){var t=Object(p.startsWith)(e,"#");return Object(Tt.isURL)(e)||e&&e.includes("www.")||t}var G=Object(d.useCallback)((function(e,t){return V(e)?A(e):F(e,t)}),[A,R]),K=function(){var e=Object(Ea.a)(nn.a.mark((function e(t){var n;return nn.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B(!0),N(null),e.prev=2,s.current=Da(Promise.resolve(a(t))),e.next=6,s.current.promise;case 6:n=e.sent,B(!1),n?(o(n),H()):S(!0),e.next=18;break;case 11:if(e.prev=11,e.t0=e.catch(2),!e.t0||!e.t0.isCanceled){e.next=15;break}return e.abrupt("return");case 15:N(e.t0.message||Object(U.__)("An unknown error occurred during creation. Please try again.")),B(!1),S(!0);case 18:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(t){return e.apply(this,arguments)}}(),W=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};S(!1),o(La({},t,{},e))},q=Object(d.useMemo)((function(){return{url:t&&t.url}}),[t&&t.url]);return Object(d.createElement)("div",{tabIndex:-1,ref:f,className:"block-editor-link-control"},I&&Object(d.createElement)("div",{className:"block-editor-link-control__loading"},Object(d.createElement)(z.Spinner,null)," ",Object(U.__)("Creating"),"…"),(E||!t)&&!I&&Object(d.createElement)(Ta,{value:j,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";k(e)},onSelect:function(){var e=Object(Ea.a)(nn.a.mark((function e(n){return nn.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("__CREATE__"!==n.type){e.next=5;break}return e.next=3,K(j);case 3:e.next=7;break;case 5:W(n,t),H();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),renderSuggestions:function(e){var n=e.suggestionsListProps,r=e.buildSuggestionItemProps,i=e.suggestions,c=e.selectedSuggestion,l=e.isLoading,s=e.isInitialSuggestions,f=b()("block-editor-link-control__search-results",{"is-loading":l}),p=["url","mailto","tel","internal"],h=1===i.length&&p.includes(i[0].type.toLowerCase()),g=a&&!h&&!s,v="block-editor-link-control-search-results-label-".concat(m),O=s?Object(U.__)("Recently updated"):Object(U.sprintf)(Object(U.__)('Search results for "%s"'),j),k=Object(d.createElement)(s?d.Fragment:z.VisuallyHidden,{},Object(d.createElement)("span",{className:"block-editor-link-control__search-results-label",id:v},O));return Object(d.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},k,Object(d.createElement)("div",Object(u.a)({},n,{className:f,"aria-labelledby":v}),i.map((function(e,n){return g&&"__CREATE__"===e.type?Object(d.createElement)(Pa,{searchTerm:j,onClick:Object(Ea.a)(nn.a.mark((function t(){return nn.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,K(e.title);case 2:case"end":return t.stop()}}),t)}))),key:e.type,itemProps:r(e,n),isSelected:n===c}):"__CREATE__"===e.type?null:Object(d.createElement)(Ba,{key:"".concat(e.id,"-").concat(e.type),itemProps:r(e,n),suggestion:e,index:n,onClick:function(){H(),o(La({},t,{},e))},isSelected:n===c,isURL:p.includes(e.type.toLowerCase()),searchTerm:j})}))))},fetchSuggestions:G,showInitialSuggestions:i,errorMessage:P}),t&&!E&&!I&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{"aria-label":Object(U.__)("Currently selected"),"aria-selected":"true",className:b()("block-editor-link-control__search-item",{"is-current":!0})},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)(z.ExternalLink,{className:"block-editor-link-control__search-item-title",href:t.url},t&&t.title||M),t&&t.title&&Object(d.createElement)("span",{className:"block-editor-link-control__search-item-info"},M)),Object(d.createElement)(z.Button,{isSecondary:!0,onClick:function(){return S(!0)},className:"block-editor-link-control__search-item-action"},Object(U.__)("Edit")),Object(d.createElement)(Ma,{fillProps:q}))),Object(d.createElement)(Ca,{value:t,settings:n,onChange:o}))}Fa.ViewerFill=Aa;var Ha=Fa,Va=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(tt.Path,{d:"M13 11V4c0-.55-.45-1-1-1h-1.67L9 1H5L3.67 3H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h10c.55 0 1-.45 1-1zM7 4.5c1.38 0 2.5 1.12 2.5 2.5S8.38 9.5 7 9.5 4.5 8.38 4.5 7 5.62 4.5 7 4.5zM14 6h5v10.5c0 1.38-1.12 2.5-2.5 2.5S14 17.88 14 16.5s1.12-2.5 2.5-2.5c.17 0 .34.02.5.05V9h-3V6zm-4 8.05V13h2v3.5c0 1.38-1.12 2.5-2.5 2.5S7 17.88 7 16.5 8.12 14 9.5 14c.17 0 .34.02.5.05z"})),Ua=n(264),za=n(156),Ga=Object(z.withFilters)("editor.MediaUpload")((function(){return null}));var Ka=Object(g.withSelect)((function(e){return{hasUploadPermissions:!!(0,e("core/block-editor").getSettings)().mediaUpload}}))((function(e){var t=e.hasUploadPermissions,n=e.fallback,r=void 0===n?null:n,o=e.children;return t?o:r})),Wa=function(e){return e.stopPropagation()},qa=function(e){function t(e){var n;return Object(_.a)(this,t),(n=Object(S.a)(this,Object(w.a)(t).call(this,e))).onChange=n.onChange.bind(Object(C.a)(n)),n.onFocus=n.onFocus.bind(Object(C.a)(n)),n.onKeyDown=n.onKeyDown.bind(Object(C.a)(n)),n.selectLink=n.selectLink.bind(Object(C.a)(n)),n.handleOnClick=n.handleOnClick.bind(Object(C.a)(n)),n.bindSuggestionNode=n.bindSuggestionNode.bind(Object(C.a)(n)),n.autocompleteRef=e.autocompleteRef||Object(d.createRef)(),n.inputRef=Object(d.createRef)(),n.updateSuggestions=Object(p.throttle)(n.updateSuggestions.bind(Object(C.a)(n)),200),n.suggestionNodes=[],n.isUpdatingSuggestions=!1,n.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null},n}return Object(I.a)(t,e),Object(E.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this,n=this.state,r=n.showSuggestions,o=n.selectedSuggestion,i=this.props.value;r&&null!==o&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,Bt()(this.suggestionNodes[o],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){t.scrollingIntoView=!1}),100)),e.value!==i&&this.shouldShowInitialSuggestions()&&this.updateSuggestions()}},{key:"componentDidMount",value:function(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest}},{key:"bindSuggestionNode",value:function(e){var t=this;return function(n){t.suggestionNodes[e]=n}}},{key:"shouldShowInitialSuggestions",value:function(){var e=this.state.suggestions,t=this.props,n=t.__experimentalShowInitialSuggestions,r=void 0!==n&&n,o=t.value;return!this.isUpdatingSuggestions&&r&&!(o&&o.length)&&!(e&&e.length)}},{key:"updateSuggestions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=this.props,r=n.__experimentalFetchLinkSuggestions,o=n.__experimentalHandleURLSuggestions;if(r){var i=!(t&&t.length);if(i||!(t.length<2||!o&&Object(Tt.isURL)(t))){this.isUpdatingSuggestions=!0,this.setState({showSuggestions:!0,selectedSuggestion:null,loading:!0});var c=r(t,{isInitialSuggestions:i});c.then((function(t){e.suggestionsRequest===c&&(e.setState({suggestions:t,loading:!1}),t.length?e.props.debouncedSpeak(Object(U.sprintf)(Object(U._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):e.props.debouncedSpeak(Object(U.__)("No results."),"assertive"),e.isUpdatingSuggestions=!1)})).catch((function(){e.suggestionsRequest===c&&(e.setState({loading:!1}),e.isUpdatingSuggestions=!1)})),this.suggestionsRequest=c}else this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1})}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t)}},{key:"onFocus",value:function(){var e=this.state.suggestions,t=this.props,n=t.disableSuggestions,r=t.value;!r||n||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(r)}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,i=t.loading;if(n&&o.length&&!i){var c=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case xt.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case xt.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case xt.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(c),this.props.speak(Object(U.__)("Link selected.")));break;case xt.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(c))}}else switch(e.keyCode){case xt.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case xt.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.instanceId,o=t.className,i=t.isFullWidth,c=t.hasBorder,a=t.__experimentalRenderSuggestions,l=t.placeholder,s=void 0===l?Object(U.__)("Paste URL or type to search"):l,f=t.value,h=void 0===f?"":f,m=t.autoFocus,g=void 0===m||m,v=t.__experimentalShowInitialSuggestions,O=void 0!==v&&v,j=this.state,k=j.showSuggestions,y=j.suggestions,_=j.selectedSuggestion,E=j.loading,S="url-input-control-".concat(r),w="block-editor-url-input-suggestions-".concat(r),C="block-editor-url-input-suggestion-".concat(r),I={id:w,ref:this.autocompleteRef,role:"listbox"},B=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(C,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===_}};return Object(d.createElement)(z.BaseControl,{label:n,id:S,className:b()("block-editor-url-input",o,{"is-full-width":i,"has-border":c})},Object(d.createElement)("input",{className:"block-editor-url-input__input",autoFocus:g,type:"text","aria-label":Object(U.__)("URL"),required:!0,value:h,onChange:this.onChange,onFocus:this.onFocus,onInput:Wa,placeholder:s,onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":k,"aria-autocomplete":"list","aria-owns":w,"aria-activedescendant":null!==_?"".concat(C,"-").concat(_):void 0,ref:this.inputRef}),E&&Object(d.createElement)(z.Spinner,null),Object(p.isFunction)(a)&&k&&!!y.length&&a({suggestions:y,selectedSuggestion:_,suggestionsListProps:I,buildSuggestionItemProps:B,isLoading:E,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:O&&!(h&&h.length)}),!Object(p.isFunction)(a)&&k&&!!y.length&&Object(d.createElement)(z.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(d.createElement)("div",Object(u.a)({},I,{className:b()("block-editor-url-input__suggestions","".concat(o,"__suggestions"))}),y.map((function(t,n){return Object(d.createElement)(z.Button,Object(u.a)({},B(0,n),{key:t.id,className:b()("block-editor-url-input__suggestion",{"is-selected":n===_}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.disableSuggestions,o=e.__experimentalShowInitialSuggestions,i=void 0!==o&&o,c=t.showSuggestions,a=n&&n.length;return i||a||(c=!1),!0===r&&(c=!1),{showSuggestions:c}}}]),t}(d.Component),$a=Object(h.compose)(h.withSafeTimeout,z.withSpokenMessages,h.withInstanceId,Object(g.withSelect)((function(e,t){if(!Object(p.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(qa);function Ya(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,i=Object(F.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(d.createElement)("form",Object(u.a)({className:b()("block-editor-url-popover__link-editor",n)},i),Object(d.createElement)($a,{value:o,onChange:r,autocompleteRef:t}),Object(d.createElement)(z.Button,{icon:xa.a,label:Object(U.__)("Apply"),type:"submit"}))}var Xa=n(263);function Za(e){var t=e.url,n=e.urlLabel,r=e.className,o=b()(r,"block-editor-url-popover__link-viewer-url");return t?Object(d.createElement)(z.ExternalLink,{className:o,href:t},n||Object(Tt.filterURLForDisplay)(Object(Tt.safeDecodeURI)(t))):Object(d.createElement)("span",{className:o})}function Ja(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,i=e.urlLabel,c=Object(F.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(d.createElement)("div",Object(u.a)({className:b()("block-editor-url-popover__link-viewer",t)},c),Object(d.createElement)(Za,{url:o,urlLabel:i,className:n}),r&&Object(d.createElement)(z.Button,{icon:Xa.a,label:Object(U.__)("Edit"),onClick:r}))}var Qa=Object(h.compose)(z.withNotices)((function(e){var t,n=e.mediaURL,r=e.mediaId,o=e.allowedTypes,i=e.accept,c=e.onSelect,a=e.onSelectURL,l=e.onError,s=e.name,u=void 0===s?Object(U.__)("Replace"):s,f=Object(d.useState)(!1),b=Object(D.a)(f,2),p=b[0],h=b[1],m=Object(d.useState)(!1),v=Object(D.a)(m,2),O=v[0],j=v[1],k=Object(d.useState)(n),y=Object(D.a)(k,2),_=y[0],E=y[1],S=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),w=Object(d.createRef)(),C=function(e){c(e),E(e.url),Object(ye.speak)(Object(U.__)("The media file has been replaced"))},I=function(e){e.keyCode===xt.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return t=O?Object(d.createElement)(Ya,{onKeyDown:function(e){[xt.LEFT,xt.DOWN,xt.RIGHT,xt.UP,xt.BACKSPACE,xt.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},onKeyPress:function(e){e.stopPropagation()},value:_,isFullWidthInput:!0,hasInputBorder:!0,onChangeInputValue:function(e){return E(e)},onSubmit:function(e){e.preventDefault(),a(_),j(!1),w.current.focus()}}):Object(d.createElement)(Ja,{isFullWidth:!0,className:"block-editor-media-replace-flow__link-viewer",url:_,onEditLinkClick:function(){return j(!O)}}),Object(d.createElement)(z.Dropdown,{contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(z.ToolbarGroup,{className:"media-replace-flow"},Object(d.createElement)(z.Button,{ref:w,"aria-expanded":t,onClick:n,onKeyDown:I},u))},renderContent:function(e){var n=e.onClose;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.NavigableMenu,null,Object(d.createElement)(Ga,{value:r,onSelect:function(e){return C(e)},allowedTypes:o,render:function(e){var t=e.open;return Object(d.createElement)(z.MenuItem,{icon:Va,onClick:t},Object(U.__)("Open Media Library"))}}),Object(d.createElement)(Ka,null,Object(d.createElement)(z.FormFileUpload,{onChange:function(e){!function(e,t){var n=e.target.files;S({allowedTypes:o,filesList:n,onFileChange:function(e){var n=Object(D.a)(e,1)[0];C(n),t()},onError:l})}(e,n)},accept:i,render:function(e){var t=e.openFileDialog;return Object(d.createElement)(z.MenuItem,{icon:Ua.a,onClick:function(){t()}},Object(U.__)("Upload"))}})),a&&Object(d.createElement)(z.MenuItem,{icon:za.a,onClick:function(){return h(!p)},"aria-expanded":p},Object(d.createElement)("div",null," ",Object(U.__)("Insert from URL")," "))),p&&Object(d.createElement)("div",{className:"block-editor-media-flow__url-input"},t))}})})),el=n(38),tl=n.n(el),nl=n(265),rl=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).toggleSettingsVisibility=e.toggleSettingsVisibility.bind(Object(C.a)(e)),e.state={isSettingsExpanded:!1},e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"toggleSettingsVisibility",value:function(){this.setState({isSettingsExpanded:!this.state.isSettingsExpanded})}},{key:"render",value:function(){var e=this.props,t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,i=void 0===o?"bottom center":o,c=e.focusOnMount,a=void 0===c?"firstElement":c,l=Object(F.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),s=this.state.isSettingsExpanded,f=!!r&&s;return Object(d.createElement)(z.Popover,Object(u.a)({className:"block-editor-url-popover",focusOnMount:a,position:i},l),Object(d.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(d.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(d.createElement)(z.Button,{className:"block-editor-url-popover__settings-toggle",icon:nl.a,label:Object(U.__)("Link settings"),onClick:this.toggleSettingsVisibility,"aria-expanded":s})),f&&Object(d.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!f&&Object(d.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}}]),t}(d.Component);rl.LinkEditor=Ya,rl.LinkViewer=Ja;var ol=rl,il=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(d.createElement)(ol,{onClose:o},Object(d.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(d.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(U.__)("URL"),placeholder:Object(U.__)("Paste or type URL"),onChange:n,value:t}),Object(d.createElement)(z.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:xa.a,label:Object(U.__)("Apply"),type:"submit"})))},cl=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).state={src:"",isURLInputVisible:!1},e.onChangeSrc=e.onChangeSrc.bind(Object(C.a)(e)),e.onSubmitSrc=e.onSubmitSrc.bind(Object(C.a)(e)),e.onUpload=e.onUpload.bind(Object(C.a)(e)),e.onFilesUpload=e.onFilesUpload.bind(Object(C.a)(e)),e.openURLInput=e.openURLInput.bind(Object(C.a)(e)),e.closeURLInput=e.closeURLInput.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"onlyAllowsImages",value:function(){var e=this.props.allowedTypes;return!!e&&Object(p.every)(e,(function(e){return"image"===e||Object(p.startsWith)(e,"image/")}))}},{key:"componentDidMount",value:function(){this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"componentDidUpdate",value:function(e){Object(p.get)(e.value,["src"],"")!==Object(p.get)(this.props.value,["src"],"")&&this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"onChangeSrc",value:function(e){this.setState({src:e.target.value})}},{key:"onSubmitSrc",value:function(e){e.preventDefault(),this.state.src&&this.props.onSelectURL&&(this.props.onSelectURL(this.state.src),this.closeURLInput())}},{key:"onUpload",value:function(e){this.onFilesUpload(e.target.files)}},{key:"onFilesUpload",value:function(e){var t,n=this.props,r=n.addToGallery,o=n.allowedTypes,i=n.mediaUpload,c=n.multiple,a=n.onError,l=n.onSelect,s=n.value;if(c)if(r){var u=void 0===s?[]:s;t=function(e){l(u.concat(e))}}else t=l;else t=function(e){var t=Object(D.a)(e,1)[0];return l(t)};i({allowedTypes:o,filesList:e,onFileChange:t,onError:a})}},{key:"openURLInput",value:function(){this.setState({isURLInputVisible:!0})}},{key:"closeURLInput",value:function(){this.setState({isURLInputVisible:!1})}},{key:"renderPlaceholder",value:function(e,t){var n=this.props,r=n.allowedTypes,o=void 0===r?[]:r,i=n.className,c=n.icon,a=n.isAppender,l=n.labels,s=void 0===l?{}:l,u=n.onDoubleClick,f=n.mediaPreview,p=n.notices,h=n.onSelectURL,m=n.mediaUpload,g=n.children,v=s.instructions,O=s.title;if(m||h||(v=Object(U.__)("To edit this block, you need permission to upload media.")),void 0===v||void 0===O){var j=1===o.length,k=j&&"audio"===o[0],y=j&&"image"===o[0],_=j&&"video"===o[0];void 0===v&&m&&(v=Object(U.__)("Upload a media file or pick one from your media library."),k?v=Object(U.__)("Upload an audio file, pick one from your media library, or add one with a URL."):y?v=Object(U.__)("Upload an image file, pick one from your media library, or add one with a URL."):_&&(v=Object(U.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===O&&(O=Object(U.__)("Media"),k?O=Object(U.__)("Audio"):y?O=Object(U.__)("Image"):_&&(O=Object(U.__)("Video")))}var E=b()("block-editor-media-placeholder",i,{"is-appender":a});return Object(d.createElement)(z.Placeholder,{icon:c,label:O,instructions:v,className:E,notices:p,onClick:t,onDoubleClick:u,preview:f},e,g)}},{key:"renderDropZone",value:function(){var e=this.props,t=e.disableDropZone,n=e.onHTMLDrop,r=void 0===n?p.noop:n;return t?null:Object(d.createElement)(z.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:r})}},{key:"renderCancelLink",value:function(){var e=this.props.onCancel;return e&&Object(d.createElement)(z.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(U.__)("Cancel"),isLink:!0,onClick:e},Object(U.__)("Cancel"))}},{key:"renderUrlSelectionUI",value:function(){if(!this.props.onSelectURL)return null;var e=this.state,t=e.isURLInputVisible,n=e.src;return Object(d.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(d.createElement)(z.Button,{className:"block-editor-media-placeholder__button",onClick:this.openURLInput,isPressed:t,isTertiary:!0},Object(U.__)("Insert from URL")),t&&Object(d.createElement)(il,{src:n,onChange:this.onChangeSrc,onSubmit:this.onSubmitSrc,onClose:this.closeURLInput}))}},{key:"renderMediaUploadChecked",value:function(){var e=this,t=this.props,n=t.accept,r=t.addToGallery,o=t.allowedTypes,i=void 0===o?[]:o,c=t.isAppender,a=t.mediaUpload,l=t.multiple,s=void 0!==l&&l,u=t.onSelect,f=t.value,h=void 0===f?{}:f,m=Object(d.createElement)(Ga,{addToGallery:r,gallery:s&&this.onlyAllowsImages(),multiple:s,onSelect:u,allowedTypes:i,value:Object(p.isArray)(h)?h.map((function(e){return e.id})):h.id,render:function(e){var t=e.open;return Object(d.createElement)(z.Button,{isTertiary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(U.__)("Media Library"))}});if(a&&c)return Object(d.createElement)(d.Fragment,null,this.renderDropZone(),Object(d.createElement)(z.FormFileUpload,{onChange:this.onUpload,accept:n,multiple:s,render:function(t){var n=t.openFileDialog,r=Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.Button,{isPrimary:!0,className:b()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(U.__)("Upload")),m,e.renderUrlSelectionUI(),e.renderCancelLink());return e.renderPlaceholder(r,n)}}));if(a){var g=Object(d.createElement)(d.Fragment,null,this.renderDropZone(),Object(d.createElement)(z.FormFileUpload,{isPrimary:!0,className:b()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:this.onUpload,accept:n,multiple:s},Object(U.__)("Upload")),m,this.renderUrlSelectionUI(),this.renderCancelLink());return this.renderPlaceholder(g)}return this.renderPlaceholder(m)}},{key:"render",value:function(){var e=this.props,t=e.disableMediaButtons,n=e.dropZoneUIOnly;return n||t?(n&&tl()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(d.createElement)(Ka,null,this.renderDropZone())):Object(d.createElement)(Ka,{fallback:this.renderPlaceholder(this.renderUrlSelectionUI())},this.renderMediaUploadChecked())}}]),t}(d.Component),al=Object(g.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),ll=Object(h.compose)(al,Object(z.withFilters)("editor.MediaPlaceholder"))(cl),sl=Object(d.forwardRef)((function(e,t){var n=e.onChange,r=e.className,o=Object(F.a)(e,["onChange","className"]);return Object(d.createElement)(di.a,Object(u.a)({ref:t,className:b()("block-editor-plain-text",r),onChange:function(e){return n(e.target.value)}},o))}));function ul(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(h.useInstanceId)(ul),i=r||Object(U.sprintf)(Object(U._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."),t,n.label);return Object(d.createElement)(d.Fragment,null,Object(d.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(d.createElement)("span",{className:"screen-reader-text",id:"rbc-desc-".concat(o)},i))}var dl=function(e){var t=e.title,n=e.property,r=e.toggleLabel,o=e.onIsResponsiveChange,i=e.renderDefaultControl,c=e.renderResponsiveControls,a=e.isResponsive,l=void 0!==a&&a,s=e.defaultLabel,u=void 0===s?{id:"all",label:Object(U.__)("All")}:s,f=e.viewports,p=void 0===f?[{id:"small",label:Object(U.__)("Small screens")},{id:"medium",label:Object(U.__)("Medium screens")},{id:"large",label:Object(U.__)("Large screens")}]:f;if(!t||!n||!i)return null;var h=r||Object(U.sprintf)(Object(U.__)("Use the same %s on all screensizes."),n),m=Object(U.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),g=i(Object(d.createElement)(ul,{property:n,viewport:u}),u);return Object(d.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(d.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(d.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(d.createElement)(z.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:h,checked:!l,onChange:o,help:m}),Object(d.createElement)("div",{className:b()("block-editor-responsive-block-control__group",{"is-responsive":l})},!l&&g,l&&(c?c(p):p.map((function(e){return Object(d.createElement)(d.Fragment,{key:e.id},i(Object(d.createElement)(ul,{property:n,viewport:e}),e))}))))))},fl=[xt.rawShortcut.primary("z"),xt.rawShortcut.primaryShift("z"),xt.rawShortcut.primary("y")],bl=Object(d.createElement)(z.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.fromPairs)(fl.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),pl=function(){return bl},hl=n(42);function ml(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'<img src="'.concat(Object(hl.createBlobURL)(e),'">')})).join("")}var gl={position:"bottom right"},vl=function(){return Object(d.createElement)("div",{className:"block-editor-format-toolbar"},Object(d.createElement)(z.Toolbar,null,["bold","italic","link","text-color"].map((function(e){return Object(d.createElement)(z.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(d.createElement)(z.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(d.createElement)(z.DropdownMenu,{icon:nl.a,label:Object(U.__)("More rich text controls"),controls:Object(p.orderBy)(e.map((function(e){return Object(D.a)(e,1)[0].props})),"title"),popoverProps:gl})}))))},Ol=function(e){var t=e.inline,n=e.anchorRef;return t?Object(d.createElement)(z.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar"},Object(d.createElement)(vl,null)):Object(d.createElement)(_t,null,Object(d.createElement)(vl,null))},jl=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).onUse=e.onUse.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"onUse",value:function(){return this.props.onUse(),!1}},{key:"render",value:function(){var e=this.props,t=e.character,n=e.type;return Object(d.createElement)(z.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(s.a)({},xt.rawShortcut[n](t),this.onUse)})}}]),t}(d.Component);function kl(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,i=Object(F.a)(e,["name","shortcutType","shortcutCharacter"]),c="RichText.ToolbarControls";return n&&(c+=".".concat(n)),r&&o&&(t=xt.displayShortcut[r](o)),Object(d.createElement)(z.Fill,{name:c},Object(d.createElement)(z.ToolbarButton,Object(u.a)({},i,{shortcut:t})))}var yl=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).onInput=e.onInput.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"onInput",value:function(e){e.inputType===this.props.inputType&&this.props.onInput()}},{key:"componentDidMount",value:function(){document.addEventListener("input",this.onInput,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("input",this.onInput,!0)}},{key:"render",value:function(){return null}}]),t}(d.Component);function _l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function El(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}var Sl=Object(d.forwardRef)((function e(t,n){var r=t.children,o=t.tagName,a=t.value,l=t.onChange,f=t.isSelected,p=t.multiline,m=t.inlineToolbar,v=t.wrapperClassName,O=t.className,j=t.autocompleters,k=t.onReplace,y=t.placeholder,_=t.keepPlaceholderOnFocus,E=t.allowedFormats,S=t.formattingControls,w=t.withoutInteractiveFormatting,C=t.onRemove,I=t.onMerge,B=t.onSplit,x=t.__unstableOnSplitMiddle,T=t.identifier,P=t.start,N=t.reversed,L=t.style,R=t.preserveWhiteSpace,M=t.__unstableEmbedURLOnPaste,H=Object(F.a)(t,["children","tagName","value","onChange","isSelected","multiline","inlineToolbar","wrapperClassName","className","autocompleters","onReplace","placeholder","keepPlaceholderOnFocus","allowedFormats","formattingControls","withoutInteractiveFormatting","onRemove","onMerge","onSplit","__unstableOnSplitMiddle","identifier","start","reversed","style","preserveWhiteSpace","__unstableEmbedURLOnPaste"]),V=Object(h.useInstanceId)(e);T=T||V;var U=Object(d.useRef)(),z=n||U,G=$(),K=G.clientId,W=G.onCaretVerticalPositionChange,q=G.isSelected,Y=Object(g.useSelect)((function(e){var t,n=e("core/block-editor"),r=n.isCaretWithinFormattedText,o=n.getSelectionStart,c=n.getSelectionEnd,a=n.getSettings,l=n.didAutomaticChange,u=n.__unstableGetBlockWithoutInnerBlocks,b=n.isMultiSelecting,p=n.hasMultiSelection,h=o(),m=c(),g=a(),v=g.__experimentalCanUserUseUnfilteredHTML,O=g.__experimentalUndo;void 0===f?t=h.clientId===K&&h.attributeKey===T:f&&(t=h.clientId===K);var j={};if("native"===d.Platform.OS){var k=K&&u(K);j={shouldBlurOnUnmount:k&&t&&Object(i.isUnmodifiedDefaultBlock)(k)}}return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_l(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({canUserUseUnfilteredHTML:v,isCaretWithinFormattedText:r(),selectionStart:t?h.offset:void 0,selectionEnd:t?m.offset:void 0,isSelected:t,didAutomaticChange:l(),disabled:b()||p(),undo:O},j)})),X=Y.canUserUseUnfilteredHTML,Z=Y.isCaretWithinFormattedText,J=Y.selectionStart,Q=Y.selectionEnd,ee=Y.isSelected,te=Y.didAutomaticChange,ne=Y.disabled,re=Y.undo,oe=Y.shouldBlurOnUnmount,ie=Object(g.useDispatch)("core/block-editor"),ce=ie.__unstableMarkLastChangeAsPersistent,ae=ie.enterFormattedText,le=ie.exitFormattedText,se=ie.selectionChange,ue=ie.__unstableMarkAutomaticChange,de=El(p),fe=function(e){var t=e.allowedFormats,n=e.formattingControls;if(t||n)return t||(tl()("wp.blockEditor.RichText formattingControls prop",{alternative:"allowedFormats"}),n.map((function(e){return"core/".concat(e)})))}({allowedFormats:E,formattingControls:S}),be=!fe||fe.length>0,pe=a,he=l;Array.isArray(a)&&(pe=i.children.toHTML(a),he=function(e){return l(i.children.fromDOM(Object(c.__unstableCreateElement)(document,e).childNodes))});var me=Object(d.useCallback)((function(e,t){se(K,T,e,t)}),[K,T]),ge=Object(d.useCallback)((function(e){var t=e.value,n=e.isReverse;I&&I(!n),C&&Object(c.isEmpty)(t)&&n&&C(!n)}),[I,C]),ve=Object(d.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(k&&B){var n=[],r=Object(c.split)(e),o=Object(D.a)(r,2),i=o[0],a=o[1],l=t.length>0;l&&Object(c.isEmpty)(i)||n.push(B(Object(c.toHTMLString)({value:i,multilineTag:de}))),l?n.push.apply(n,Object(A.a)(t)):x&&n.push(x()),!l&&x&&Object(c.isEmpty)(a)||n.push(B(Object(c.toHTMLString)({value:a,multilineTag:de})));var s=l?n.length-1:1;k(n,s)}}),[k,B,de,x]),Oe=Object(d.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=k&&B;if(k){var a=Object(i.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),l=Object(i.findTransform)(a,(function(e){return e.regExp.test(t.text)}));l&&(k([l.transform({content:t.text})]),ue())}p?r?n(Object(c.insert)(t,"\n")):o&&Object(c.__unstableIsEmptyLine)(t)?ve(t):n(Object(c.__unstableInsertLineSeparator)(t)):r||!o?n(Object(c.insert)(t,"\n")):ve(t)}),[k,B,ue,p,ve]),je=Object(d.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.html,a=e.plainText,l=e.files,s=e.activeFormats;if(l&&l.length&&!r){var u=Object(i.pasteHandler)({HTML:ml(l),mode:"BLOCKS",tagName:o});return window.console.log("Received items:\n\n",l),void(k&&Object(c.isEmpty)(t)?k(u):ve(t,u))}var d=k&&B?"AUTO":"INLINE";M&&Object(c.isEmpty)(t)&&Object(Tt.isURL)(a.trim())&&(d="BLOCKS");var f=Object(i.pasteHandler)({HTML:r,plainText:a,mode:d,tagName:o,canUserUseUnfilteredHTML:X});if("string"==typeof f){var b=Object(c.create)({html:f});if(s.length)for(var h=b.formats.length;h--;)b.formats[h]=[].concat(Object(A.a)(s),Object(A.a)(b.formats[h]||[]));p&&(b=Object(c.replace)(b,/\n+/g,c.__UNSTABLE_LINE_SEPARATOR)),n(Object(c.insert)(t,b))}else f.length>0&&(k&&Object(c.isEmpty)(t)?k(f):ve(t,f))}),[o,k,B,ve,M,X,p]),ke=Object(d.useCallback)((function(e,t){if(k){var n=e.start,r=e.text;if(" "===r.slice(n-1,n)){var o=r.slice(0,n).trim(),a=Object(i.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),l=Object(i.findTransform)(a,(function(e){var t=e.prefix;return o===t}));if(l){var s=t(Object(c.slice)(e,n,r.length)),u=l.transform(s);k([u]),ue()}}}}),[k,ue]),ye=Object(d.createElement)(c.__experimentalRichText,Object(u.a)({},H,{clientId:K,identifier:T,ref:z,value:pe,onChange:he,selectionStart:J,selectionEnd:Q,onSelectionChange:me,tagName:o,className:b()("block-editor-rich-text__editable",O,{"keep-placeholder-on-focus":_}),placeholder:y,allowedFormats:fe,withoutInteractiveFormatting:w,onEnter:Oe,onDelete:ge,onPaste:je,__unstableIsSelected:ee,__unstableInputRule:ke,__unstableMultilineTag:de,__unstableIsCaretWithinFormattedText:Z,__unstableOnEnterFormattedText:ae,__unstableOnExitFormattedText:le,__unstableOnCreateUndoLevel:ce,__unstableMarkAutomaticChange:ue,__unstableDidAutomaticChange:te,__unstableUndo:re,style:L,preserveWhiteSpace:R,disabled:ne,start:P,reversed:N,onCaretVerticalPositionChange:W,blockIsSelected:void 0!==f?f:q,shouldBlurOnUnmount:oe}),(function(e){var t=e.isSelected,n=e.value,o=e.onChange,i=e.onFocus,c=e.Editable;return Object(d.createElement)(d.Fragment,null,r&&r({value:n,onChange:o,onFocus:i}),t&&be&&Object(d.createElement)(Ol,{inline:m,anchorRef:z.current}),t&&Object(d.createElement)(pl,null),Object(d.createElement)(et,{onReplace:k,completers:j,record:n,onChange:o,isSelected:t},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(d.createElement)(c,{"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,start:P,reversed:N,onKeyDown:r})})))}));return v?(tl()("wp.blockEditor.RichText wrapperClassName prop",{alternative:"className prop or create your own wrapper div"}),Object(d.createElement)("div",{className:b()("block-editor-rich-text",v)},ye)):ye}));Sl.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(F.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=i.children.toHTML(t));var c=El(r);!t&&c&&(t="<".concat(c,"></").concat(c,">"));var a=Object(d.createElement)(d.RawHTML,null,t);return n?Object(d.createElement)(n,Object(p.omit)(o,["format"]),a):a},Sl.isEmpty=function(e){return!e||0===e.length},Sl.Content.defaultProps={format:"string",value:""};var wl=Sl,Cl=Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(d.createElement)(z.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"})),Il=Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(d.createElement)(z.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 Bl=function(){var e=Object(g.useSelect)((function(e){return e("core/block-editor").isNavigationMode()}),[]),t=Object(g.useDispatch)("core/block-editor").setNavigationMode;if(!Object(h.useViewportMatch)("medium"))return null;var n=function(e){t("edit"!==e)};return Object(d.createElement)(z.Dropdown,{renderToggle:function(t){var n=t.isOpen,r=t.onToggle;return Object(d.createElement)(z.Button,{icon:e?Il:Cl,"aria-expanded":n,onClick:r,label:Object(U.__)("Tools")})},position:"bottom right",renderContent:function(){return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.NavigableMenu,{role:"menu","aria-label":Object(U.__)("Tools")},Object(d.createElement)(z.MenuItemsChoice,{value:e?"select":"edit",onSelect:n,choices:[{value:"edit",label:Object(d.createElement)(d.Fragment,null,Cl,Object(U.__)("Edit"))},{value:"select",label:Object(d.createElement)(d.Fragment,null,Il,Object(U.__)("Select"))}]})),Object(d.createElement)("div",{className:"block-editor-tool-selector__help"},Object(U.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})},xl=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(tt.Path,{d:"M18 9v2H6l4 4-1 2-7-7 7-7 1 2-4 4h12z"})),Tl=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).toggle=e.toggle.bind(Object(C.a)(e)),e.submitLink=e.submitLink.bind(Object(C.a)(e)),e.state={expanded:!1},e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,r=this.state.expanded,o=t?Object(U.__)("Edit link"):Object(U.__)("Insert link");return Object(d.createElement)("div",{className:"block-editor-url-input__button"},Object(d.createElement)(z.Button,{icon:za.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(d.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(d.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(d.createElement)(z.Button,{className:"block-editor-url-input__back",icon:xl,label:Object(U.__)("Close"),onClick:this.toggle}),Object(d.createElement)($a,{value:t||"",onChange:n}),Object(d.createElement)(z.Button,{icon:xa.a,label:Object(U.__)("Submit"),type:"submit"}))))}}]),t}(d.Component),Pl=n(117),Nl=["noreferrer","noopener"],Ll=Object(d.createElement)(z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(z.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(d.createElement)(z.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(d.createElement)(z.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),Rl=function(e){var t=e.linkDestination,n=e.onChangeUrl,r=e.url,o=e.mediaType,i=void 0===o?"image":o,c=e.mediaUrl,a=e.mediaLink,l=e.linkTarget,s=e.linkClass,u=e.rel,f=Object(d.useState)(!1),b=Object(D.a)(f,2),h=b[0],m=b[1],g=Object(d.useCallback)((function(){m(!0)})),v=Object(d.useState)(!1),O=Object(D.a)(v,2),j=O[0],k=O[1],y=Object(d.useState)(null),_=Object(D.a)(y,2),E=_[0],S=_[1],w=Object(d.useRef)(null),C=function(e){e.stopPropagation()},I=function(e){[xt.LEFT,xt.DOWN,xt.RIGHT,xt.UP,xt.BACKSPACE,xt.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},B=Object(d.useCallback)((function(){"media"!==t&&"attachment"!==t||S(""),k(!0)})),x=Object(d.useCallback)((function(){k(!1)})),T=Object(d.useCallback)((function(){S(null),x(),m(!1)})),P=function(e){var t=e;return void 0===e||Object(p.isEmpty)(t)||Object(p.isEmpty)(t)||(Object(p.each)(Nl,(function(e){var n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),Object(p.isEmpty)(t)&&(t=void 0)),t},N=Object(d.useCallback)((function(){return function(e){var t=w.current;t&&t.contains(e.target)||(m(!1),S(null),x())}})),L=Object(d.useCallback)((function(){return function(e){E&&n({href:E}),x(),S(null),e.preventDefault()}})),R=Object(d.useCallback)((function(){n({linkDestination:"none",href:""})})),M=function(){return[{linkDestination:"media",title:Object(U.__)("Media File"),url:"image"===i?c:void 0,icon:Ll},{linkDestination:"attachment",title:Object(U.__)("Attachment Page"),url:"image"===i?a:void 0,icon:Object(d.createElement)(z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(z.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(d.createElement)(z.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"}))}]},A=Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.ToggleControl,{label:Object(U.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||u?P(u):void 0}}(e);n(t)},checked:"_blank"===l}),Object(d.createElement)(z.TextControl,{label:Object(U.__)("Link Rel"),value:P(u)||"",onChange:function(e){n({rel:e})},onKeyPress:C,onKeyDown:I}),Object(d.createElement)(z.TextControl,{label:Object(U.__)("Link CSS Class"),value:s||"",onKeyPress:C,onKeyDown:I,onChange:function(e){n({linkClass:e})}})),F=null!==E?E:r,H=(Object(p.find)(M(),["linkDestination",t])||{}).title;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.Button,{icon:za.a,className:"components-toolbar__control",label:r?Object(U.__)("Edit link"):Object(U.__)("Insert link"),"aria-expanded":h,onClick:g}),h&&Object(d.createElement)(ol,{onFocusOutside:N(),onClose:T,renderSettings:function(){return A},additionalControls:!F&&Object(d.createElement)(z.NavigableMenu,null,Object(p.map)(M(),(function(e){return Object(d.createElement)(z.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;S(null),t=e.url,o=M(),r=t?(Object(p.find)(o,(function(e){return e.url===t}))||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:r,href:t}),x()}},e.title)})))},(!r||j)&&Object(d.createElement)(ol.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:F,onChangeInputValue:S,onKeyDown:I,onKeyPress:C,onSubmit:L(),autocompleteRef:w}),r&&!j&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(ol.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",onKeyPress:C,url:r,onEditLinkClick:B,urlLabel:H}),Object(d.createElement)(z.Button,{icon:Pl.a,label:Object(U.__)("Remove link"),onClick:R}))))},Ml=Object(z.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),Al=Ml.Fill,Dl=Ml.Slot;Al.Slot=Dl;var Fl=Al,Hl=Object(g.withSelect)((function(e){return{selectedBlockClientId:e("core/block-editor").getBlockSelectionStart()}}))((function(e){var t=e.selectedBlockClientId;return t&&Object(d.createElement)(z.Button,{isSecondary:!0,className:"block-editor-skip-to-selected-block",onClick:function(){hi(t).focus()}},Object(U.__)("Skip to the selected block"))})),Vl=n(174),Ul=n.n(Vl);function zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zl(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kl(e,t,n){var r=new Ul.a(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+n.name),r.value}var Wl=Object(h.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock,o=e("core/blocks").getBlockStyles,c=r(n),a=Object(i.getBlockType)(c.name);return{block:c,className:c.attributes.className||"",styles:o(c.name),type:a}})),Object(g.withDispatch)((function(e,t){var n=t.clientId;return{onChangeClassName:function(t){e("core/block-editor").updateBlockAttributes(n,{className:t})}}}))])((function(e){var t=e.styles,n=e.className,r=e.onChangeClassName,o=e.type,c=e.block,a=e.onSwitch,l=void 0===a?p.noop:a,s=e.onHoverClassName,u=void 0===s?p.noop:s;if(!t||0===t.length)return null;o.styles||Object(p.find)(t,"isDefault")||(t=[{name:"default",label:Object(U._x)("Default","block style"),isDefault:!0}].concat(Object(A.a)(t)));var f=function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,c=new Ul.a(t).values()[Symbol.iterator]();!(n=(i=c.next()).done);n=!0){var a=i.value;if(-1!==a.indexOf("is-style-")){var l=a.substring(9),s=Object(p.find)(e,{name:l});if(s)return s}}}catch(e){r=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}return Object(p.find)(e,"isDefault")}(t,n);function h(e){var t=Kl(n,f,e);r(t),u(null),l()}return Object(d.createElement)("div",{className:"block-editor-block-styles"},t.map((function(e){var t=Kl(n,f,e);return Object(d.createElement)("div",{key:e.name,className:b()("block-editor-block-styles__item",{"is-active":f===e}),onClick:function(){return h(e)},onKeyDown:function(t){xt.ENTER!==t.keyCode&&xt.SPACE!==t.keyCode||(t.preventDefault(),h(e))},onMouseEnter:function(){return u(t)},onMouseLeave:function(){return u(null)},role:"button",tabIndex:"0","aria-label":e.label||e.name},Object(d.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(d.createElement)(bc,{viewportWidth:500,blocks:o.example?Object(i.getBlockFromExample)(c.name,{attributes:Gl({},o.example.attributes,{className:t}),innerBlocks:o.example.innerBlocks}):Object(i.cloneBlock)(c,{className:t})})),Object(d.createElement)("div",{className:"block-editor-block-styles__item-label"},e.label||e.name))})))})),ql=n(123);var $l=Object(g.withSelect)((function(e){return{blocks:(0,e("core/block-editor").getMultiSelectedBlocks)()}}))((function(e){var t=e.blocks,n=Object(ql.count)(Object(i.serialize)(t),"words");return Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},Object(d.createElement)(St,{icon:Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(z.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),showColors:!0}),Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},Object(U.sprintf)(Object(U._n)("%d block","%d blocks",t.length),t.length)),Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},Object(U.sprintf)(Object(U._n)("%d word","%d words",n),n))))}));function Yl(e){var t=e.blockName,n=Object(g.useSelect)((function(e){var n=e("core/block-editor").getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:Object(p.get)(n,["value",t]),onUpdatePreferredStyleVariations:Object(p.get)(n,["onChange"],null),styles:e("core/blocks").getBlockStyles(t)}}),[t]),r=n.preferredStyle,o=n.onUpdatePreferredStyleVariations,i=n.styles,c=Object(d.useMemo)((function(){return[{label:Object(U.__)("Not set"),value:""}].concat(Object(A.a)(i.map((function(e){return{label:e.label,value:e.name}}))))}),[i]),a=Object(d.useCallback)((function(e){o(t,e)}),[t,o]);return o&&Object(d.createElement)(z.SelectControl,{options:c,value:r||"",label:Object(U.__)("Default Style"),onChange:a})}var Xl=Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getSelectedBlockCount,o=t.getBlockName,c=e("core/blocks").getBlockStyles,a=n(),l=a&&o(a),s=a&&Object(i.getBlockType)(l),u=a&&c(l);return{count:r(),hasBlockStyles:u&&u.length>0,selectedBlockName:l,selectedBlockClientId:a,blockType:s}}))((function(e){var t=e.blockType,n=e.count,r=e.hasBlockStyles,o=e.selectedBlockClientId,c=e.selectedBlockName,a=e.showNoBlockSelectedMessage,l=void 0===a||a,s=Object(z.__experimentalUseSlot)(_a.slotName),u=Boolean(s.fills&&s.fills.length);if(n>1)return Object(d.createElement)($l,null);var f=c===Object(i.getUnregisteredTypeHandlerName)();return t&&o&&!f?Object(d.createElement)("div",{className:"block-editor-block-inspector"},Object(d.createElement)(vc,{blockType:t}),r&&Object(d.createElement)("div",null,Object(d.createElement)(z.PanelBody,{title:Object(U.__)("Styles"),initialOpen:!1},Object(d.createElement)(Wl,{clientId:o}),Object(d.createElement)(Yl,{blockName:t.name}))),Object(d.createElement)(Be.Slot,{bubblesVirtually:!0}),Object(d.createElement)("div",null,u&&Object(d.createElement)(z.PanelBody,{className:"block-editor-block-inspector__advanced",title:Object(U.__)("Advanced"),initialOpen:!1},Object(d.createElement)(_a.Slot,{bubblesVirtually:!0}))),Object(d.createElement)(Hl,{key:"back"})):l?Object(d.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(U.__)("No block selected.")):null}));function Zl(e,t,n,r,o,i,c,a){var l=n+1,s=function(e){return"up"===e?"horizontal"===c?a?"right":"left":"up":"down"===e?"horizontal"===c?a?"left":"right":"down":null};if(e>1)return function(e,t,n,r,o){var i=t+1;if(o<0&&n)return Object(U.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(U.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(U.sprintf)(Object(U._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,i);if(o>0&&!r)return Object(U.sprintf)(Object(U._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,i)}(e,n,r,o,i);if(r&&o)return Object(U.sprintf)(Object(U.__)("Block %s is the only block, and cannot be moved"),t);if(i>0&&!o){var u=s("down");if("down"===u)return Object(U.sprintf)(Object(U.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===u)return Object(U.sprintf)(Object(U.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===u)return Object(U.sprintf)(Object(U.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(i>0&&o){var d=s("down");if("down"===d)return Object(U.sprintf)(Object(U.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===d)return Object(U.sprintf)(Object(U.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===d)return Object(U.sprintf)(Object(U.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(i<0&&!r){var f=s("up");if("up"===f)return Object(U.sprintf)(Object(U.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===f)return Object(U.sprintf)(Object(U.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===f)return Object(U.sprintf)(Object(U.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l-1)}if(i<0&&r){var b=s("up");if("up"===b)return Object(U.sprintf)(Object(U.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===b)return Object(U.sprintf)(Object(U.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===b)return Object(U.sprintf)(Object(U.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var Jl=Object(d.createElement)(z.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(z.Polygon,{points:"14.5,8 10.6,12 14.5,16 13.5,17 8.4,12 13.5,7 "})),Ql=Object(d.createElement)(z.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(z.Polygon,{points:"9.5,16 13.4,12 9.5,8 10.5,7 15.6,12 10.5,17 "})),es=(Object(d.createElement)(z.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(d.createElement)(z.Path,{d:"M13,8c0.6,0,1-0.4,1-1s-0.4-1-1-1s-1,0.4-1,1S12.4,8,13,8z M5,6C4.4,6,4,6.4,4,7s0.4,1,1,1s1-0.4,1-1S5.6,6,5,6z M5,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S5.6,10,5,10z M13,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S13.6,10,13,10z M9,6 C8.4,6,8,6.4,8,7s0.4,1,1,1s1-0.4,1-1S9.6,6,9,6z M9,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S9.6,10,9,10z"})),n(266)),ts=function(e){var t=e.children,n=e.clientIds,r=Object(g.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockIndex,o=t.getBlockRootClientId,i=t.getTemplateLock,c=1===n.length?o(n[0]):null,a=c?i(c):null;return{index:r(n[0],c),srcRootClientId:c,isDraggable:1===n.length&&"all"!==a}}),[n]),o=r.srcRootClientId,i=r.index,c=r.isDraggable,a=Object(d.useRef)(!1),l=Object(g.useDispatch)("core/block-editor"),s=l.startDraggingBlocks,u=l.stopDraggingBlocks;if(Object(d.useEffect)((function(){return function(){a.current&&u()}}),[]),!c)return t({isDraggable:!1});var f="block-".concat(n[0]),b={type:"block",srcIndex:i,srcClientId:n[0],srcRootClientId:o};return Object(d.createElement)(z.Draggable,{elementId:f,transferData:b,onDragStart:function(){s(),a.current=!0},onDragEnd:function(){u(),a.current=!1}},(function(e){var n=e.onDraggableStart,r=e.onDraggableEnd;return t({isDraggable:!0,onDraggableStart:n,onDraggableEnd:r})}))},ns=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(C.a)(e)),e.onBlur=e.onBlur.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"onFocus",value:function(){this.setState({isFocused:!0})}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.onMoveUp,r=t.onMoveDown,o=t.__experimentalOrientation,i=t.isRTL,c=t.isFirst,a=t.isLast,l=t.clientIds,s=t.blockType,u=t.firstIndex,f=t.isLocked,p=t.instanceId,h=t.isHidden,m=t.rootClientId,g=t.hideDragHandle,v=this.state.isFocused,O=l.length;if(f||c&&a&&!m)return null;var j=function(e){return"up"===e?"horizontal"===o?i?Ql:Jl:es.a:"down"===e?"horizontal"===o?i?Jl:Ql:nl.a:null},k=function(e){return"up"===e?"horizontal"===o?i?Object(U.__)("Move right"):Object(U.__)("Move left"):Object(U.__)("Move up"):"down"===e?"horizontal"===o?i?Object(U.__)("Move left"):Object(U.__)("Move right"):Object(U.__)("Move down"):null};return Object(d.createElement)(ts,{clientIds:l},(function(t){var l=t.isDraggable,f=t.onDraggableStart,m=t.onDraggableEnd;return Object(d.createElement)("div",{className:b()("block-editor-block-mover",{"is-visible":v||!h,"is-horizontal":"horizontal"===o}),draggable:l&&!g,onDragStart:f,onDragEnd:m},Object(d.createElement)(z.ToolbarGroup,null,Object(d.createElement)(z.Button,{className:"block-editor-block-mover__control block-editor-block-mover__control-up",onClick:c?null:n,icon:j("up"),label:k("up"),"aria-describedby":"block-editor-block-mover__up-description-".concat(p),"aria-disabled":c,onFocus:e.onFocus,onBlur:e.onBlur}),Object(d.createElement)(z.Button,{className:"block-editor-block-mover__control block-editor-block-mover__control-down",onClick:a?null:r,icon:j("down"),label:k("down"),"aria-describedby":"block-editor-block-mover__down-description-".concat(p),"aria-disabled":a,onFocus:e.onFocus,onBlur:e.onBlur}),Object(d.createElement)("span",{id:"block-editor-block-mover__up-description-".concat(p),className:"block-editor-block-mover__description"},Zl(O,s&&s.title,u,c,a,-1,o,i)),Object(d.createElement)("span",{id:"block-editor-block-mover__down-description-".concat(p),className:"block-editor-block-mover__description"},Zl(O,s&&s.title,u,c,a,1,o,i))))}))}}]),t}(d.Component),rs=Object(h.compose)(Object(g.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlock,c=r.getBlockIndex,a=r.getTemplateLock,l=r.getBlockRootClientId,s=r.getBlockOrder,u=Object(p.first)(n),d=o(u),f=l(Object(p.first)(n)),b=s(f),h=c(u,f),m=c(Object(p.last)(n),f),g=(0,e("core/block-editor").getSettings)().isRTL;return{blockType:d?Object(i.getBlockType)(d.name):null,isLocked:"all"===a(f),rootClientId:f,firstIndex:h,isRTL:g,isFirst:0===h,isLast:m===b.length-1}})),Object(g.withDispatch)((function(e,t){var n=t.clientIds,r=t.rootClientId,o=e("core/block-editor"),i=o.moveBlocksDown,c=o.moveBlocksUp;return{onMoveDown:Object(p.partial)(i,n,r),onMoveUp:Object(p.partial)(c,n,r)}})),h.withInstanceId)(ns),os=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(C.a)(e)),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearSelectionIfFocusTarget",value:function(e){var t=this.props,n=t.hasSelectedBlock,r=t.hasMultiSelection,o=t.clearSelectedBlock,i=n||r;e.target===this.container&&i&&o()}},{key:"render",value:function(){return Object(d.createElement)("div",Object(u.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(p.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),t}(d.Component),is=Object(h.compose)([Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}})),Object(g.withDispatch)((function(e){return{clearSelectedBlock:e("core/block-editor").clearSelectedBlock}}))])(os);var cs=Object(h.compose)([Object(g.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.canInsertBlockType,o=n.getBlockRootClientId,c=n.getBlocksByClientId,a=n.getTemplateLock,l=e("core/blocks").getDefaultBlockName,s=c(t.clientIds),u=o(t.clientIds[0]);return{blocks:s,canDuplicate:Object(p.every)(s,(function(e){return!!e&&Object(i.hasBlockSupport)(e.name,"multiple",!0)&&r(e.name,u)})),canInsertDefaultBlock:r(l(),u),extraProps:t,isLocked:!!a(u),rootClientId:u}})),Object(g.withDispatch)((function(e,t,n){var r=n.select,o=t.clientIds,c=t.blocks,a=e("core/block-editor"),l=a.removeBlocks,s=a.replaceBlocks,u=a.duplicateBlocks,d=a.insertAfterBlock,f=a.insertBeforeBlock;return{onDuplicate:function(){return u(o)},onRemove:function(){l(o)},onInsertBefore:function(){f(Object(p.first)(Object(p.castArray)(o)))},onInsertAfter:function(){d(Object(p.last)(Object(p.castArray)(o)))},onGroup:function(){if(c.length){var e=(0,r("core/blocks").getGroupingBlockName)(),t=Object(i.switchToBlockType)(c,e);t&&s(o,t)}},onUngroup:function(){if(c.length){var e=c[0].innerBlocks;e.length&&s(o,e)}}}}))])((function(e){var t=e.canDuplicate,n=e.canInsertDefaultBlock;return(0,e.children)({canDuplicate:t,canInsertDefaultBlock:n,isLocked:e.isLocked,onDuplicate:e.onDuplicate,onGroup:e.onGroup,onInsertAfter:e.onInsertAfter,onInsertBefore:e.onInsertBefore,onRemove:e.onRemove,onUngroup:e.onUngroup})}));var as=Object(h.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlock,c=r.getBlockMode,a=r.getSettings,l=o(n),s=a().codeEditingEnabled;return{mode:c(n),blockType:l?Object(i.getBlockType)(l.name):null,isCodeEditingEnabled:s}})),Object(g.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?p.noop:n,o=t.clientId;return{onToggleMode:function(){e("core/block-editor").toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,c=void 0!==o&&o,a=e.isCodeEditingEnabled,l=void 0===a||a;if(!Object(i.hasBlockSupport)(t,"html",!0)||!l)return null;var s="visual"===n?Object(U.__)("Edit as HTML"):Object(U.__)("Edit visually");return Object(d.createElement)(z.MenuItem,{onClick:r},!c&&s)}));function ls(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(U.__)("Convert to Blocks");return Object(d.createElement)(z.MenuItem,{onClick:n},!r&&o)}var ss=Object(h.compose)(Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}})),Object(g.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(i.rawHandler)({HTML:Object(i.getBlockContent)(n)}))}}})))(ls),us=Object(h.compose)(Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&r.name===Object(i.getFreeformContentHandlerName)()}})),Object(g.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(i.rawHandler)({HTML:Object(i.serialize)(n)}))}}})))(ls);function ds(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ds(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bs=Object(z.createSlotFill)("BlockSettingsMenuControls"),ps=bs.Fill,hs=bs.Slot;ps.Slot=function(e){var t=e.fillProps,n=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlocksByClientId,r=t.getSelectedBlockClientIds;return{selectedBlocks:Object(p.map)(n(r()),(function(e){return e.name}))}}),[]).selectedBlocks;return Object(d.createElement)(hs,{fillProps:fs({},t,{selectedBlocks:n})},(function(e){return!Object(p.isEmpty)(e)&&Object(d.createElement)(z.MenuGroup,null,e)}))};var ms=ps,gs={className:"block-editor-block-settings-menu__popover",position:"bottom right",noArrow:!0};var vs=function(e){var t=e.clientIds,n=Object(p.castArray)(t),r=n.length,o=n[0],i=Object(g.useSelect)((function(e){var t=e("core/keyboard-shortcuts").getShortcutRepresentation;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")}}),[]);return Object(d.createElement)(cs,{clientIds:t},(function(e){var t=e.canDuplicate,n=e.canInsertDefaultBlock,c=e.isLocked,a=e.onDuplicate,l=e.onInsertAfter,s=e.onInsertBefore,u=e.onRemove;return Object(d.createElement)(z.Toolbar,null,Object(d.createElement)(z.DropdownMenu,{icon:Qo,label:Object(U.__)("More options"),className:"block-editor-block-settings-menu",popoverProps:gs,noIcons:!0},(function(e){var f=e.onClose;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.MenuGroup,null,Object(d.createElement)(Fl.Slot,{fillProps:{onClose:f}}),1===r&&Object(d.createElement)(us,{clientId:o}),1===r&&Object(d.createElement)(ss,{clientId:o}),t&&Object(d.createElement)(z.MenuItem,{onClick:Object(p.flow)(f,a),shortcut:i.duplicate},Object(U.__)("Duplicate")),n&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.MenuItem,{onClick:Object(p.flow)(f,s),shortcut:i.insertBefore},Object(U.__)("Insert Before")),Object(d.createElement)(z.MenuItem,{onClick:Object(p.flow)(f,l),shortcut:i.insertAfter},Object(U.__)("Insert After"))),1===r&&Object(d.createElement)(as,{clientId:o,onToggle:f})),Object(d.createElement)(ms.Slot,{fillProps:{onClose:f}}),Object(d.createElement)(z.MenuGroup,null,!c&&Object(d.createElement)(z.MenuItem,{onClick:Object(p.flow)(f,u),shortcut:i.remove},Object(U._n)("Remove Block","Remove Blocks",r))))})))}))};function Os(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function js(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Os(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Os(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ks=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).state={hoveredClassName:null},e.onHoverClassName=e.onHoverClassName.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"onHoverClassName",value:function(e){this.setState({hoveredClassName:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.blocks,r=t.onTransform,o=t.inserterItems,c=t.hasBlockStyles,a=this.state.hoveredClassName;if(!n||!n.length)return null;var l,s=a?n[0]:null,u=a?Object(i.getBlockType)(s.name):null,f=Object(p.mapKeys)(o,(function(e){return e.name})),b=Object(p.orderBy)(Object(p.filter)(Object(i.getPossibleBlockTransformations)(n),(function(e){return e&&!!f[e.name]})),(function(e){return f[e.name].frecency}),"desc");if(1===Object(p.uniq)(Object(p.map)(n,"name")).length){var h=n[0].name,m=Object(i.getBlockType)(h);l=m.icon}else l=qc.a;return c||b.length?Object(d.createElement)(z.Dropdown,{position:"bottom right",className:"block-editor-block-switcher",contentClassName:"block-editor-block-switcher__popover",renderToggle:function(e){var t=e.onToggle,r=e.isOpen,o=1===n.length?Object(U.__)("Change block type or style"):Object(U.sprintf)(Object(U._n)("Change type of %d block","Change type of %d blocks",n.length),n.length);return Object(d.createElement)(z.Toolbar,null,Object(d.createElement)(z.Button,{className:"block-editor-block-switcher__toggle",onClick:t,"aria-haspopup":"true","aria-expanded":r,label:o,onKeyDown:function(e){r||e.keyCode!==xt.DOWN||(e.preventDefault(),e.stopPropagation(),t())},showTooltip:!0,icon:Object(d.createElement)(St,{icon:l,showColors:!0})}))},renderContent:function(t){var o=t.onClose;return Object(d.createElement)(d.Fragment,null,(c||0!==b.length)&&Object(d.createElement)("div",{className:"block-editor-block-switcher__container"},c&&Object(d.createElement)(z.MenuGroup,null,Object(d.createElement)("div",{className:"block-editor-block-switcher__label"},Object(U.__)("Styles")),Object(d.createElement)(Wl,{clientId:n[0].clientId,onSwitch:o,onHoverClassName:e.onHoverClassName})),0!==b.length&&Object(d.createElement)(z.MenuGroup,null,Object(d.createElement)("div",{className:"block-editor-block-switcher__label"},Object(U.__)("Transform to")),Object(d.createElement)(gc,{items:b.map((function(e){return{id:e.name,icon:e.icon,title:e.title}})),onSelect:function(e){r(n,e.id),o()}}))),null!==a&&Object(d.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(d.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(U.__)("Preview")),Object(d.createElement)(bc,{viewportWidth:500,blocks:u.example?Object(i.getBlockFromExample)(s.name,{attributes:js({},u.example.attributes,{className:a}),innerBlocks:u.example.innerBlocks}):Object(i.cloneBlock)(s,{className:a})})))}}):Object(d.createElement)(z.Toolbar,null,Object(d.createElement)(z.Button,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",label:Object(U.__)("Block icon"),icon:Object(d.createElement)(St,{icon:l,showColors:!0})}))}}]),t}(d.Component),ys=Object(h.compose)(Object(g.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlocksByClientId,i=r.getBlockRootClientId,c=r.getInserterItems,a=e("core/blocks").getBlockStyles,l=i(Object(p.first)(Object(p.castArray)(n))),s=o(n),u=s&&1===s.length?s[0]:null,d=u&&a(u.name);return{blocks:s,inserterItems:c(l),hasBlockStyles:d&&d.length>0}})),Object(g.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(i.switchToBlockType)(n,r))}}})))(ks),_s=window,Es=_s.clearTimeout,Ss=_s.setTimeout;function ws(e){var t=e.ref,n=e.isFocused,r=e.debounceTimeout,o=void 0===r?500:r,i=Object(d.useState)(!1),c=Object(D.a)(i,2),a=c[0],l=c[1],s=Object(d.useRef)(),u=function(){var e=(null==t?void 0:t.current)&&t.current.matches(":hover");return!n&&!e},f=Object(d.useCallback)((function(e){e&&e.stopPropagation();var t=s.current;t&&Es&&Es(t),a||l(!0)}),[a]),b=Object(d.useCallback)((function(e){e&&e.stopPropagation(),s.current=Ss((function(){u()&&l(!1)}),o)}),[n]);return Object(d.useEffect)((function(){return function(){return Es(s.current)}}),[]),{showMovers:a,debouncedShowMovers:f,debouncedHideMovers:b}}function Cs(e){var t=e.hideDragHandle,n=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockMode,r=t.getSelectedBlockClientIds,o=t.isBlockValid,i=t.getBlockRootClientId,c=t.getBlockListSettings,a=t.getSettings,l=r(),s=i(l[0]),u=c(s)||{},d=u.__experimentalMoverDirection,f=u.__experimentalUIParts,b=void 0===f?{}:f;return{blockClientIds:l,hasFixedToolbar:a().hasFixedToolbar,rootClientId:s,isValid:1===l.length?o(l[0]):null,mode:1===l.length?n(l[0]):null,moverDirection:d,hasMovers:b.hasMovers}}),[]),r=n.blockClientIds,o=n.hasFixedToolbar,i=n.isValid,c=n.mode,a=n.moverDirection,l=n.hasMovers,s=void 0===l||l,f=Object(d.useRef)(),p=function(e){var t=e.ref,n=e.debounceTimeout,r=void 0===n?500:n,o=Object(d.useState)(!1),i=Object(D.a)(o,2),c=i[0],a=i[1],l=ws({ref:t,debounceTimeout:r,isFocused:c}),s=l.showMovers,u=l.debouncedShowMovers,f=l.debouncedHideMovers,b=Object(d.useRef)(!1),p=function(){return(null==t?void 0:t.current)&&t.current.contains(document.activeElement)};return Object(d.useEffect)((function(){var e=t.current,n=function(){p()&&(a(!0),u())},r=function(){p()||(a(!1),f())};return e&&!b.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",r,!0),b.current=!0),function(){e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",r))}}),[t,b,a,u,f]),{showMovers:s,gestures:{onMouseMove:u,onMouseLeave:f}}}({ref:f}),m=p.showMovers,v=p.gestures,O=Object(h.useViewportMatch)("medium","<")||o,j=O||m&&s;if(0===r.length)return null;var k=i&&"visual"===c,y=r.length>1,_={opacity:j?1:0,transform:j?"translateX(0px)":"translateX(100%)"},E=b()("block-editor-block-toolbar",!O&&"has-responsive-movers");return Object(d.createElement)("div",{className:E},Object(d.createElement)("div",{className:"block-editor-block-toolbar__mover-switcher-container",ref:f},Object(d.createElement)("div",Object(u.a)({className:"block-editor-block-toolbar__mover-trigger-container"},v),Object(d.createElement)("div",{className:"block-editor-block-toolbar__mover-trigger-wrapper",style:_},Object(d.createElement)(rs,{clientIds:r,__experimentalOrientation:a,hideDragHandle:t}))),(k||y)&&Object(d.createElement)("div",Object(u.a)({},v,{className:"block-editor-block-toolbar__block-switcher-wrapper"}),Object(d.createElement)(ys,{clientIds:r}))),k&&!y&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(vt.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(d.createElement)(_t.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(d.createElement)(vs,{clientIds:r}))}var Is=Object(h.compose)([Object(g.withDispatch)((function(e,t,n){var r=(0,n.select)("core/block-editor"),o=r.getBlocksByClientId,c=r.getSelectedBlockClientIds,a=r.hasMultiSelection,l=r.getSettings,s=e("core/block-editor"),u=s.removeBlocks,d=s.replaceBlocks,f=l().__experimentalCanUserUseUnfilteredHTML;return{handler:function(e){var t=c();if(0!==t.length&&(a()||!Object(pi.documentHasSelection)())){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){var n=o(t),r=Object(i.serialize)(n);e.clipboardData.setData("text/plain",r),e.clipboardData.setData("text/html",r)}if("cut"===e.type)u(t);else if("paste"===e.type){var l=function(e){var t=e.clipboardData,n=t.items,r=t.files;n=Object(p.isNil)(n)?[]:n,r=Object(p.isNil)(r)?[]:r;var o="",i="";try{o=t.getData("text/plain"),i=t.getData("text/html")}catch(e){try{i=t.getData("Text")}catch(e){return}}return r=Array.from(r),Array.from(n).forEach((function(e){if(e.getAsFile){var t=e.getAsFile();if(t){var n=t.name,o=t.type,i=t.size;Object(p.find)(r,{name:n,type:o,size:i})||r.push(t)}}})),(r=r.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}))).length&&!i&&(i=r.map((function(e){return'<img src="'.concat(Object(hl.createBlobURL)(e),'">')})).join(""),o=""),{html:i,plainText:o}}(e),s=l.plainText,b=l.html,h=Object(i.pasteHandler)({HTML:b,plainText:s,mode:"BLOCKS",canUserUseUnfilteredHTML:f});d(t,h)}}}}}))])((function(e){var t=e.children,n=e.handler;return Object(d.createElement)("div",{onCopy:n,onCut:n,onPaste:n},t)}));function Bs(){var e=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientIds,r=t.getBlockOrder;return{clientIds:n(),rootBlocksClientIds:r()}}),[]),t=e.clientIds,n=e.rootBlocksClientIds,r=Object(g.useDispatch)("core/block-editor"),o=r.duplicateBlocks,i=r.removeBlocks,c=r.insertAfterBlock,a=r.insertBeforeBlock,s=r.multiSelect,u=r.clearSelectedBlock;return Object(l.useShortcut)("core/block-editor/duplicate",Object(d.useCallback)((function(e){e.preventDefault(),o(t)}),[t,o]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/remove",Object(d.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-after",Object(d.useCallback)((function(e){e.preventDefault(),c(Object(p.last)(t))}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-before",Object(d.useCallback)((function(e){e.preventDefault(),a(Object(p.first)(t))}),[t,a]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/delete-multi-selection",Object(d.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{isDisabled:t.length<1}),Object(l.useShortcut)("core/block-editor/select-all",Object(d.useCallback)((function(e){e.preventDefault(),s(Object(p.first)(n),Object(p.last)(n))}),[n,s])),Object(l.useShortcut)("core/block-editor/unselect",Object(d.useCallback)((function(e){e.preventDefault(),u(),window.getSelection().removeAllRanges()}),[t,u]),{isDisabled:t.length<2}),null}Bs.Register=function(){var e=Object(g.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(d.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(U.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(U.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(U.__)("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(U.__)("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(U.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(U.__)("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(U.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(U.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}})}),[e]),null};var xs=Bs;function Ts(){var e=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockSelectionEnd,r=t.isMultiSelecting;return{selectionEnd:n(),isMultiSelecting:r()}}),[]),t=e.selectionEnd,n=e.isMultiSelecting;return Object(d.useEffect)((function(){if(t&&!n){var e=hi(t);if(e){var r=Object(pi.getScrollContainer)(e);r&&Bt()(e,r,{onlyScrollIfNeeded:!0})}}}),[t,n]),null}var Ps=[xt.UP,xt.RIGHT,xt.DOWN,xt.LEFT,xt.ENTER,xt.BACKSPACE];var Ns=Object(h.withSafeTimeout)((function(e){var t=e.children,n=e.setTimeout,r=Object(d.useRef)(),o=Object(g.useSelect)((function(e){return e("core/block-editor").isTyping()})),i=Object(g.useDispatch)("core/block-editor"),c=i.startTyping,a=i.stopTyping;function l(e){var t=e?"addEventListener":"removeEventListener";document[t]("selectionchange",u),document[t]("mousemove",s)}function s(e){var t=e.clientX,n=e.clientY;if(r.current){var o=r.current,i=o.clientX,c=o.clientY;i===t&&c===n||a()}r.current={clientX:t,clientY:n}}function u(){var e=window.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||a()}function f(e){var t=e.type,n=e.target;o||!Object(pi.isTextField)(n)||n.closest(".block-editor-block-toolbar")||("keydown"!==t||function(e){var t=e.keyCode;return!e.shiftKey&&Object(p.includes)(Ps,t)}(e))&&c()}return Object(d.useEffect)((function(){return l(o),function(){return l(!1)}}),[o]),Object(d.createElement)("div",{onFocus:function(e){var t=e.target;n((function(){o&&!Object(pi.isTextField)(t)&&a()}))},onKeyPress:f,onKeyDown:Object(p.over)([f,function(e){!o||e.keyCode!==xt.ESCAPE&&e.keyCode!==xt.TAB||a()}])},t)}));function Ls(){return tl()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}var Rs=-1!==window.navigator.userAgent.indexOf("Trident"),Ms=new Set([xt.UP,xt.DOWN,xt.LEFT,xt.RIGHT]),As=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).ref=Object(d.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(C.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(C.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(C.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(C.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(C.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(C.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScrollResize,!0),window.addEventListener("resize",this.onScrollResize,!0)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.onScrollResize,!0),window.removeEventListener("resize",this.onScrollResize,!0),document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.onScrollResize.rafId&&window.cancelAnimationFrame(this.onScrollResize.rafId),this.onKeyDown.rafId&&window.cancelAnimationFrame(this.onKeyDown.rafId)}},{key:"computeCaretRect",value:function(){this.isSelectionEligibleForScroll()&&(this.caretRect=Object(pi.computeCaretRect)())}},{key:"computeCaretRectOnSelectionChange",value:function(){document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.computeCaretRect()}},{key:"onScrollResize",value:function(){var e=this;this.onScrollResize.rafId||(this.onScrollResize.rafId=window.requestAnimationFrame((function(){e.computeCaretRect(),delete e.onScrollResize.rafId})))}},{key:"isSelectionEligibleForScroll",value:function(){return this.props.selectedBlockClientId&&this.ref.current.contains(document.activeElement)&&document.activeElement.isContentEditable}},{key:"isLastEditableNode",value:function(){var e=this.ref.current.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===document.activeElement}},{key:"maintainCaretPosition",value:function(e){var t=e.keyCode;if(this.isSelectionEligibleForScroll()){var n=Object(pi.computeCaretRect)();if(n)if(this.caretRect)if(Ms.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(pi.getScrollContainer)(this.ref.current);if(o){var i=o===document.body,c=i?window.scrollY:o.scrollTop,a=i?0:o.getBoundingClientRect().top,l=i?this.caretRect.top/window.innerHeight:(this.caretRect.top-a)/(window.innerHeight-a);if(0===c&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=i?window.innerHeight:o.clientHeight;this.caretRect.top+this.caretRect.height>a+s||this.caretRect.top<a?this.caretRect=n:i?window.scrollBy(0,r):o.scrollTop+=r}}}}else this.caretRect=n}}},{key:"addSelectionChangeListener",value:function(){document.addEventListener("selectionchange",this.computeCaretRectOnSelectionChange)}},{key:"onKeyDown",value:function(e){var t=this;e.persist(),this.onKeyDown.rafId&&window.cancelAnimationFrame(this.onKeyDown.rafId),this.onKeyDown.rafId=window.requestAnimationFrame((function(){t.maintainCaretPosition(e),delete t.onKeyDown.rafId}))}},{key:"render",value:function(){return Object(d.createElement)("div",{ref:this.ref,onKeyDown:this.onKeyDown,onKeyUp:this.maintainCaretPosition,onMouseDown:this.addSelectionChangeListener,onTouchStart:this.addSelectionChangeListener,className:"block-editor__typewriter"},this.props.children)}}]),t}(d.Component),Ds=Rs?function(e){return e.children}:Object(g.withSelect)((function(e){return{selectedBlockClientId:(0,e("core/block-editor").getSelectedBlockClientId)()}}))(As),Fs=n(237),Hs=/\((min|max)-width:[^\(]*?\)/g;function Vs(e){return!!e.media&&!!e.media.mediaText.match(Hs)}function Us(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function zs(e,t){return e.replace(Hs,(function(e){return Object(Fs.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)"}))}function Gs(e,t){Object(d.useEffect)((function(){var n="undefined"==typeof window?[]:Object(p.filter)(Object(p.get)(window,["document","styleSheets"],[]),(function(e){return!!e.href&&Object(Tt.getProtocol)(e.href)===window.location.protocol&&Object(Tt.getAuthority)(e.href)===window.location.host})),r=[];return n.forEach((function(n,o){for(var i=!1,c=0;c<n.cssRules.length;++c){var a=n.cssRules[c];if((a.type===window.CSSRule.STYLE_RULE||a.type===window.CSSRule.MEDIA_RULE)&&(!i&&a.cssText.match(new RegExp("#start-".concat(e)))&&(i=!0),i&&a.cssText.match(new RegExp("#end-".concat(e)))&&(i=!1),i&&Vs(a))){var l=a.cssText;r[o]||(r[o]=[]),r[o][c]=l,Us(n,zs(l,t),c)}}})),function(){r.forEach((function(e,t){if(e)for(var r=0;r<e.length;++r){var o=e[r];o&&Us(n[t],o,r)}}))}}),[t])}function Ks(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ws=["left","center","right","wide","full"],qs=["wide","full"];function $s(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?e:!0===e?Ws:[],!r||!0===e&&!n?p.without.apply(void 0,[t].concat(qs)):t}var Ys=Object(d.createContext)({}),Xs=Ys.Provider,Zs=Object(h.createHigherOrderComponent)((function(e){return function(t){var n=Object(d.useContext)(Ys).isEmbedButton,r=t.name,o=n?[]:$s(Object(i.getBlockSupport)(r,"align"),Object(i.hasBlockSupport)(r,"alignWide",!0));return[o.length>0&&t.isSelected&&Object(d.createElement)(vt,{key:"align-controls"},Object(d.createElement)(dt,{value:t.attributes.align,onChange:function(e){if(!e){var n=Object(i.getBlockType)(t.name);Object(p.get)(n,["attributes","align","default"])&&(e="")}t.setAttributes({align:e})},controls:o})),Object(d.createElement)(e,Object(u.a)({key:"edit"},t))]}}),"withToolbarControls"),Js=Object(h.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=Object(g.useSelect)((function(e){return!!e("core/block-editor").getSettings().alignWide}),[]);if(void 0===r)return Object(d.createElement)(e,t);var c=$s(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0),o),a=t.wrapperProps;return Object(p.includes)(c,r)&&(a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ks(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ks(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},a,{"data-align":r})),Object(d.createElement)(e,Object(u.a)({},t,{wrapperProps:a}))}}));Object(m.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(p.has)(e.attributes,["align","type"])?e:(Object(i.hasBlockSupport)(e,"align")&&(e.attributes=Object(p.assign)(e.attributes,{align:{type:"string"}})),e)})),Object(m.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Js),Object(m.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",Zs),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align,o=Object(i.getBlockSupport)(t,"align"),c=Object(i.hasBlockSupport)(t,"alignWide",!0);return Object(p.includes)($s(o,c),r)&&(e.className=b()("align".concat(r),e.className)),e}));var Qs=/[\s#]/g;var eu=Object(h.createHigherOrderComponent)((function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(d.createElement)(d.Fragment,null,Object(d.createElement)(e,t),Object(d.createElement)(_a,null,Object(d.createElement)(z.TextControl,{className:"html-anchor-control",label:Object(U.__)("HTML anchor"),help:Object(d.createElement)(d.Fragment,null,Object(U.__)("Enter a word or two — without spaces — to make a unique web address just for this heading, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),Object(d.createElement)(z.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(U.__)("Learn more about anchors"))),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(Qs,"-"),t.setAttributes({anchor:e})}}))):Object(d.createElement)(e,t)}}),"withInspectorControl");Object(m.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(p.has)(e.attributes,["anchor","type"])?e:(Object(i.hasBlockSupport)(e,"anchor")&&(e.attributes=Object(p.assign)(e.attributes,{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}})),e)})),Object(m.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",eu),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(i.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));var tu=Object(h.createHigherOrderComponent)((function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(d.createElement)(d.Fragment,null,Object(d.createElement)(e,t),Object(d.createElement)(_a,null,Object(d.createElement)(z.TextControl,{label:Object(U.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:""!==e?e:void 0})},help:Object(U.__)("Separate multiple classes with spaces.")}))):Object(d.createElement)(e,t)}}),"withInspectorControl");function nu(e){e="<div data-custom-class-name>".concat(e,"</div>");var t=Object(i.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(m.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(i.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=Object(p.assign)(e.attributes,{className:{type:"string"}})),e})),Object(m.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",tu),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(i.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=b()(e.className,n.className)),e})),Object(m.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(i.hasBlockSupport)(t,"customClassName",!0)){var r=Object(p.omit)(e,["className"]),o=Object(i.getSaveContent)(t,r),c=nu(o),a=nu(n),l=Object(p.difference)(a,c);l.length?e.className=l.join(" "):o&&delete e.className}return e})),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(i.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(p.uniq)([Object(i.getBlockDefaultClassName)(t.name)].concat(Object(A.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(i.getBlockDefaultClassName)(t.name)),e}));var ru=n(238),ou=n.n(ru),iu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,cu=function(e,t){t=t||{};var n=1,r=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new c(e),b(),t}}function c(e){this.start=e,this.end={line:n,column:r},this.source=t.source}c.prototype.content=e;var a=[];function l(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i;a.push(i)}function s(){return f(/^{\s*/)}function u(){return f(/^}/)}function d(){var t,n=[];for(b(),p(n);e.length&&"}"!==e.charAt(0)&&(t=S()||w());)!1!==t&&(n.push(t),p(n));return n}function f(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function b(){f(/^\s*/)}function p(e){var t;for(e=e||[];t=h();)!1!==t&&e.push(t);return e}function h(){var t=i();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var c=e.slice(2,n-2);return r+=2,o(c),e=e.slice(n),r+=2,t({type:"comment",comment:c})}}function m(){var e=f(/^([^{]+)/);if(e)return au(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 g(){var e=i(),t=f(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=au(t[0]),!f(/^:\s*/))return l("property missing ':'");var n=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(iu,""),value:n?au(n[0]).replace(iu,""):""});return f(/^[;\s]*/),r}}function v(){var e,t=[];if(!s())return l("missing '{'");for(p(t);e=g();)!1!==e&&(t.push(e),p(t));return u()?t:l("missing '}'")}function O(){for(var e,t=[],n=i();e=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),f(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:v()})}var j,k=E("import"),y=E("charset"),_=E("namespace");function E(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=i(),r=f(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function S(){if("@"===e[0])return function(){var e=i(),t=f(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=f(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,o=t[1];if(!s())return l("@keyframes missing '{'");for(var c=p();r=O();)c.push(r),c=c.concat(p());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:c}):l("@keyframes missing '}'")}}()||function(){var e=i(),t=f(/^@media *([^{]+)/);if(t){var n=au(t[1]);if(!s())return l("@media missing '{'");var r=p().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=i(),t=f(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:au(t[1]),media:au(t[2])})}()||function(){var e=i(),t=f(/^@supports *([^{]+)/);if(t){var n=au(t[1]);if(!s())return l("@supports missing '{'");var r=p().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||k()||y()||_()||function(){var e=i(),t=f(/^@([-\w]+)?document *([^{]+)/);if(t){var n=au(t[1]),r=au(t[2]);if(!s())return l("@document missing '{'");var o=p().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=i();if(f(/^@page */)){var t=m()||[];if(!s())return l("@page missing '{'");for(var n,r=p();n=g();)r.push(n),r=r.concat(p());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=i();if(f(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=p().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=i();if(f(/^@font-face\s*/)){if(!s())return l("@font-face missing '{'");for(var t,n=p();t=g();)n.push(t),n=n.concat(p());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}function w(){var e=i(),t=m();return t?(p(),e({type:"rule",selectors:t,declarations:v()})):l("selector missing")}return function e(t,n){var r=t&&"string"==typeof t.type,o=r?t:n;for(var i in t){var c=t[i];Array.isArray(c)?c.forEach((function(t){e(t,o)})):c&&"object"===Object(en.a)(c)&&e(c,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((j=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:j,parsingErrors:a}}))};function au(e){return e?e.replace(/^\s+|\s+$/g,""):""}var lu=n(141),su=n.n(lu),uu=du;function du(e){this.options=e||{}}du.prototype.emit=function(e){return e},du.prototype.visit=function(e){return this[e.type](e)},du.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r<o;r++)n+=this.visit(e[r]),t&&r<o-1&&(n+=this.emit(t));return n};var fu=bu;function bu(e){uu.call(this,e)}su()(bu,uu),bu.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},bu.prototype.comment=function(e){return this.emit("",e.position)},bu.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},bu.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},bu.prototype.document=function(e){var t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},bu.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},bu.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},bu.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},bu.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},bu.prototype.keyframe=function(e){var t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},bu.prototype.page=function(e){var t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},bu.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},bu.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},bu.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},bu.prototype.rule=function(e){var t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},bu.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var pu=hu;function hu(e){e=e||{},uu.call(this,e),this.indentation=e.indent}su()(hu,uu),hu.prototype.compile=function(e){return this.stylesheet(e)},hu.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},hu.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},hu.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},hu.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}")},hu.prototype.document=function(e){var 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}")},hu.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},hu.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},hu.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}")},hu.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)+"}")},hu.prototype.keyframe=function(e){var 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")},hu.prototype.page=function(e){var 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}")},hu.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}")},hu.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}")},hu.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},hu.prototype.rule=function(e){var 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()+"}"):""},hu.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},hu.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var mu=function(e,t){try{var n=cu(e),r=ou.a.map(n,(function(e){if(!e)return e;var n=t(e);return this.update(n)}));return o=r,((i=i||{}).compress?new fu(i):new pu(i)).compile(o)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}var o,i},gu=n(109);function vu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ou(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vu(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ju(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 ku(e){return function(t){var n=function(e,t){var n=Object(gu.parse)(e).pathname;return Object(gu.resolve)(t,n)}(t.value,e);return Ou({},t,{newUrl:"url("+t.before+t.quote+n+t.quote+t.after+")"})}}var yu=function(e){return function(t){if("declaration"===t.type){var n=function(e){for(var t,n=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g,r=[];null!==(t=n.exec(e));){var o={source:t[0],before:t[1],quote:t[2],value:t[3],after:t[4]};ju(o)&&r.push(o)}return r}(t.value).map(ku(e));return Ou({},t,{value:(r=t.value,o=n,o.forEach((function(e){r=r.replace(e.source,e.newUrl)})),r)})}var r,o;return t}};function _u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_u(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Su=/^(body|html|:root).*$/,wu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?Eu({},n,{selectors:n.selectors.map((function(n){return Object(p.includes)(t,n.trim())?n:n.match(Su)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},Cu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.map)(e,(function(e){var n=e.css,r=e.baseURL,o=[];return t&&o.push(wu(t)),r&&o.push(yu(r)),o.length?mu(n,Object(h.compose)(o)):n}))};n.d(t,"__experimentalAlignmentHookSettingsProvider",(function(){return Xs})),n.d(t,"AlignmentToolbar",(function(){return Qe})),n.d(t,"Autocomplete",(function(){return et})),n.d(t,"BlockAlignmentToolbar",(function(){return dt})),n.d(t,"BlockBreadcrumb",(function(){return bt})),n.d(t,"BlockControls",(function(){return vt})),n.d(t,"BlockEdit",(function(){return Z})),n.d(t,"useBlockEditContext",(function(){return $})),n.d(t,"BlockFormatControls",(function(){return _t})),n.d(t,"BlockIcon",(function(){return St})),n.d(t,"BlockNavigationDropdown",(function(){return Gc})),n.d(t,"__experimentalBlockNavigationList",(function(){return Hc})),n.d(t,"__experimentalBlockPatterns",(function(){return Wc})),n.d(t,"__experimentalBlockVariationPicker",(function(){return $c})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return ea})),n.d(t,"ButtonBlockerAppender",(function(){return Fc})),n.d(t,"ColorPalette",(function(){return na})),n.d(t,"ColorPaletteControl",(function(){return ra})),n.d(t,"ContrastChecker",(function(){return Ee})),n.d(t,"__experimentalEditorSkeleton",(function(){return oa})),n.d(t,"__experimentalGradientPicker",(function(){return ca})),n.d(t,"__experimentalGradientPickerControl",(function(){return aa})),n.d(t,"__experimentalGradientPickerPanel",(function(){return la})),n.d(t,"__experimentalColorGradientControl",(function(){return ue})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return Oe})),n.d(t,"__experimentalImageSizeControl",(function(){return sa})),n.d(t,"InnerBlocks",(function(){return va})),n.d(t,"InspectorAdvancedControls",(function(){return _a})),n.d(t,"InspectorControls",(function(){return Be})),n.d(t,"__experimentalLinkControl",(function(){return Ha})),n.d(t,"MediaReplaceFlow",(function(){return Qa})),n.d(t,"MediaPlaceholder",(function(){return ll})),n.d(t,"MediaUpload",(function(){return Ga})),n.d(t,"MediaUploadCheck",(function(){return Ka})),n.d(t,"PanelColorSettings",(function(){return ke})),n.d(t,"PlainText",(function(){return sl})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return dl})),n.d(t,"RichText",(function(){return wl})),n.d(t,"RichTextShortcut",(function(){return jl})),n.d(t,"RichTextToolbarButton",(function(){return kl})),n.d(t,"__unstableRichTextInputEvent",(function(){return yl})),n.d(t,"ToolSelector",(function(){return Bl})),n.d(t,"URLInput",(function(){return $a})),n.d(t,"URLInputButton",(function(){return Tl})),n.d(t,"URLPopover",(function(){return ol})),n.d(t,"__experimentalImageURLInputUI",(function(){return Rl})),n.d(t,"withColorContext",(function(){return ta})),n.d(t,"__experimentalBlockSettingsMenuFirstItem",(function(){return Fl})),n.d(t,"__experimentalInserterMenuExtension",(function(){return Sc})),n.d(t,"BlockInspector",(function(){return Xl})),n.d(t,"BlockList",(function(){return ac})),n.d(t,"__experimentalBlock",(function(){return Yi})),n.d(t,"BlockMover",(function(){return rs})),n.d(t,"BlockPreview",(function(){return bc})),n.d(t,"BlockSelectionClearer",(function(){return is})),n.d(t,"BlockSettingsMenu",(function(){return vs})),n.d(t,"BlockSettingsMenuControls",(function(){return ms})),n.d(t,"BlockTitle",(function(){return ft})),n.d(t,"BlockToolbar",(function(){return Cs})),n.d(t,"CopyHandler",(function(){return Is})),n.d(t,"DefaultBlockAppender",(function(){return nc})),n.d(t,"Inserter",(function(){return Dc})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return xs})),n.d(t,"MultiSelectScrollIntoView",(function(){return Ts})),n.d(t,"NavigableToolbar",(function(){return Ri})),n.d(t,"ObserveTyping",(function(){return Ns})),n.d(t,"PreserveScrollInReorder",(function(){return Ls})),n.d(t,"SkipToSelectedBlock",(function(){return Hl})),n.d(t,"Typewriter",(function(){return Ds})),n.d(t,"Warning",(function(){return ei})),n.d(t,"WritingFlow",(function(){return Ti})),n.d(t,"BlockEditorProvider",(function(){return Jo})),n.d(t,"useSimulatedMediaQuery",(function(){return Gs})),n.d(t,"getColorClassName",(function(){return y})),n.d(t,"getColorObjectByAttributeValues",(function(){return j})),n.d(t,"getColorObjectByColorValue",(function(){return k})),n.d(t,"createCustomColorsHOC",(function(){return R})),n.d(t,"withColors",(function(){return M})),n.d(t,"__experimentalUseColors",(function(){return He})),n.d(t,"__experimentalGetGradientClass",(function(){return J})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return ee})),n.d(t,"__experimentalUseGradient",(function(){return ne})),n.d(t,"getFontSize",(function(){return Ve})),n.d(t,"getFontSizeClass",(function(){return Ue})),n.d(t,"FontSizePicker",(function(){return ze})),n.d(t,"withFontSizes",(function(){return We})),n.d(t,"transformStyles",(function(){return Cu})),n.d(t,"storeConfig",(function(){return $o})),n.d(t,"SETTINGS_DEFAULTS",(function(){return Lt}))}]);
46
  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
47
  @license
48
  */
49
+ var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";t.__esModule=!0,t.canonicalize=t.convertChangesToXML=t.convertChangesToDMP=t.merge=t.parsePatch=t.applyPatches=t.applyPatch=t.createPatch=t.createTwoFilesPatch=t.structuredPatch=t.diffArrays=t.diffJson=t.diffCss=t.diffSentences=t.diffTrimmedLines=t.diffLines=t.diffWordsWithSpace=t.diffWords=t.diffChars=t.Diff=void 0;var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=n(2),a=n(3),l=n(5),s=n(6),u=n(7),d=n(8),f=n(9),b=n(10),p=n(11),h=n(13),m=n(14),g=n(16),v=n(17);t.Diff=i.default,t.diffChars=c.diffChars,t.diffWords=a.diffWords,t.diffWordsWithSpace=a.diffWordsWithSpace,t.diffLines=l.diffLines,t.diffTrimmedLines=l.diffTrimmedLines,t.diffSentences=s.diffSentences,t.diffCss=u.diffCss,t.diffJson=d.diffJson,t.diffArrays=f.diffArrays,t.structuredPatch=m.structuredPatch,t.createTwoFilesPatch=m.createTwoFilesPatch,t.createPatch=m.createPatch,t.applyPatch=b.applyPatch,t.applyPatches=b.applyPatches,t.parsePatch=p.parsePatch,t.merge=h.merge,t.convertChangesToDMP=g.convertChangesToDMP,t.convertChangesToXML=v.convertChangesToXML,t.canonicalize=d.canonicalize},function(e,t){"use strict";function n(){}function r(e,t,n,r,o){for(var i=0,c=t.length,a=0,l=0;i<c;i++){var s=t[i];if(s.removed){if(s.value=e.join(r.slice(l,l+s.count)),l+=s.count,i&&t[i-1].added){var u=t[i-1];t[i-1]=t[i],t[i]=u}}else{if(!s.added&&o){var d=n.slice(a,a+s.count);d=d.map((function(e,t){var n=r[l+t];return n.length>e.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var f=t[c-1];return c>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[c-2].value+=f.value,t.pop()),t}function o(e){return{newPos:e.newPos,components:e.components.slice(0)}}t.__esModule=!0,t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.callback;"function"==typeof n&&(i=n,n={}),this.options=n;var c=this;function a(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=l+s,f=[{newPos:-1,components:[]}],b=this.extractCommon(f[0],t,e,0);if(f[0].newPos+1>=l&&b+1>=s)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var i=void 0,d=f[n-1],b=f[n+1],p=(b?b.newPos:0)-n;d&&(f[n-1]=void 0);var h=d&&d.newPos+1<l,m=b&&0<=p&&p<s;if(h||m){if(!h||m&&d.newPos<b.newPos?(i=o(b),c.pushComponent(i.components,void 0,!0)):((i=d).newPos++,c.pushComponent(i.components,!0,void 0)),p=c.extractCommon(i,t,e,n),i.newPos+1>=l&&p+1>=s)return a(r(c,i.components,t,e,c.useLongestToken));f[n]=i}else f[n]=void 0}u++}if(i)!function e(){setTimeout((function(){if(u>d)return i();p()||e()}),0)}();else for(;u<=d;){var h=p();if(h)return h}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,i=n.length,c=e.newPos,a=c-r,l=0;c+1<o&&a+1<i&&this.equals(t[c+1],n[a+1]);)c++,a++,l++;return l&&e.components.push({count:l}),e.newPos=c,a},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("")}}},function(e,t,n){"use strict";t.__esModule=!0,t.characterDiff=void 0,t.diffChars=function(e,t,n){return c.diff(e,t,n)};var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=t.characterDiff=new i.default},function(e,t,n){"use strict";t.__esModule=!0,t.wordDiff=void 0,t.diffWords=function(e,t,n){return n=(0,c.generateOptions)(n,{ignoreWhitespace:!0}),s.diff(e,t,n)},t.diffWordsWithSpace=function(e,t,n){return s.diff(e,t,n)};var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=n(4),a=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,l=/\S/,s=t.wordDiff=new i.default;s.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!l.test(e)&&!l.test(t)},s.tokenize=function(e){for(var t=e.split(/(\s+|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&a.test(t[n])&&a.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t}},function(e,t){"use strict";t.__esModule=!0,t.generateOptions=function(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}},function(e,t,n){"use strict";t.__esModule=!0,t.lineDiff=void 0,t.diffLines=function(e,t,n){return a.diff(e,t,n)},t.diffTrimmedLines=function(e,t,n){var r=(0,c.generateOptions)(n,{ignoreWhitespace:!0});return a.diff(e,t,r)};var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=n(4),a=t.lineDiff=new i.default;a.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var o=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=o:(this.options.ignoreWhitespace&&(o=o.trim()),t.push(o))}return t}},function(e,t,n){"use strict";t.__esModule=!0,t.sentenceDiff=void 0,t.diffSentences=function(e,t,n){return c.diff(e,t,n)};var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=t.sentenceDiff=new i.default;c.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)}},function(e,t,n){"use strict";t.__esModule=!0,t.cssDiff=void 0,t.diffCss=function(e,t,n){return c.diff(e,t,n)};var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=t.cssDiff=new i.default;c.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)}},function(e,t,n){"use strict";t.__esModule=!0,t.jsonDiff=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.diffJson=function(e,t,n){return s.diff(e,t,n)},t.canonicalize=u;var o,i=n(1),c=(o=i)&&o.__esModule?o:{default:o},a=n(5),l=Object.prototype.toString,s=t.jsonDiff=new c.default;function u(e,t,n,o,i){t=t||[],n=n||[],o&&(e=o(i,e));var c=void 0;for(c=0;c<t.length;c+=1)if(t[c]===e)return n[c];var a=void 0;if("[object Array]"===l.call(e)){for(t.push(e),a=new Array(e.length),n.push(a),c=0;c<e.length;c+=1)a[c]=u(e[c],t,n,o,i);return t.pop(),n.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),"object"===(void 0===e?"undefined":r(e))&&null!==e){t.push(e),a={},n.push(a);var s=[],d=void 0;for(d in e)e.hasOwnProperty(d)&&s.push(d);for(s.sort(),c=0;c<s.length;c+=1)a[d=s[c]]=u(e[d],t,n,o,d);t.pop(),n.pop()}else a=e;return a}s.useLongestToken=!0,s.tokenize=a.lineDiff.tokenize,s.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,o=void 0===r?function(e,t){return void 0===t?n:t}:r;return"string"==typeof e?e:JSON.stringify(u(e,null,null,o),o," ")},s.equals=function(e,t){return c.default.prototype.equals.call(s,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))}},function(e,t,n){"use strict";t.__esModule=!0,t.arrayDiff=void 0,t.diffArrays=function(e,t,n){return c.diff(e,t,n)};var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=t.arrayDiff=new i.default;c.tokenize=function(e){return e.slice()},c.join=c.removeEmpty=function(e){return e}},function(e,t,n){"use strict";t.__esModule=!0,t.applyPatch=a,t.applyPatches=function(e,t){"string"==typeof e&&(e=(0,o.parsePatch)(e));var n=0;!function r(){var o=e[n++];if(!o)return t.complete();t.loadFile(o,(function(e,n){if(e)return t.complete(e);var i=a(n,o,t);t.patched(o,i,(function(e){if(e)return t.complete(e);r()}))}))}()};var r,o=n(11),i=n(12),c=(r=i)&&r.__esModule?r:{default:r};function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,o.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,l=n.compareLine||function(e,t,n,r){return t===r},s=0,u=n.fuzzFactor||0,d=0,f=0,b=void 0,p=void 0;function h(e,t){for(var n=0;n<e.lines.length;n++){var o=e.lines[n],i=o.length>0?o[0]:" ",c=o.length>0?o.substr(1):o;if(" "===i||"-"===i){if(!l(t+1,r[t],i,c)&&++s>u)return!1;t++}}return!0}for(var m=0;m<a.length;m++){for(var g=a[m],v=r.length-g.oldLines,O=0,j=f+g.oldStart-1,k=(0,c.default)(j,d,v);void 0!==O;O=k())if(h(g,j+O)){g.offset=f+=O;break}if(void 0===O)return!1;d=g.offset+g.oldStart+g.oldLines}for(var y=0,_=0;_<a.length;_++){var E=a[_],S=E.oldStart+E.offset+y-1;y+=E.newLines-E.oldLines,S<0&&(S=0);for(var w=0;w<E.lines.length;w++){var C=E.lines[w],I=C.length>0?C[0]:" ",B=C.length>0?C.substr(1):C,x=E.linedelimiters[w];if(" "===I)S++;else if("-"===I)r.splice(S,1),i.splice(S,1);else if("+"===I)r.splice(S,0,B),i.splice(S,0,x),S++;else if("\\"===I){var T=E.lines[w-1]?E.lines[w-1][0]:null;"+"===T?b=!0:"-"===T&&(p=!0)}}}if(b)for(;!r[r.length-1];)r.pop(),i.pop();else p&&(r.push(""),i.push("\n"));for(var P=0;P<r.length-1;P++)r[P]=r[P]+i[P];return r.join("")}},function(e,t){"use strict";t.__esModule=!0,t.parsePatch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=[],i=0;function c(){var e={};for(o.push(e);i<n.length;){var r=n[i];if(/^(\-\-\-|\+\+\+|@@)\s/.test(r))break;var c=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(r);c&&(e.index=c[1]),i++}for(a(e),a(e),e.hunks=[];i<n.length;){var s=n[i];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(s))break;if(/^@@/.test(s))e.hunks.push(l());else{if(s&&t.strict)throw new Error("Unknown line "+(i+1)+" "+JSON.stringify(s));i++}}}function a(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[i]);if(t){var r="---"===t[1]?"old":"new",o=t[2].split("\t",2),c=o[0].replace(/\\\\/g,"\\");/^".*"$/.test(c)&&(c=c.substr(1,c.length-2)),e[r+"FileName"]=c,e[r+"Header"]=(o[1]||"").trim(),i++}}function l(){for(var e=i,o=n[i++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),c={oldStart:+o[1],oldLines:+o[2]||1,newStart:+o[3],newLines:+o[4]||1,lines:[],linedelimiters:[]},a=0,l=0;i<n.length&&!(0===n[i].indexOf("--- ")&&i+2<n.length&&0===n[i+1].indexOf("+++ ")&&0===n[i+2].indexOf("@@"));i++){var s=0==n[i].length&&i!=n.length-1?" ":n[i][0];if("+"!==s&&"-"!==s&&" "!==s&&"\\"!==s)break;c.lines.push(n[i]),c.linedelimiters.push(r[i]||"\n"),"+"===s?a++:"-"===s?l++:" "===s&&(a++,l++)}if(a||1!==c.newLines||(c.newLines=0),l||1!==c.oldLines||(c.oldLines=0),t.strict){if(a!==c.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(l!==c.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return c}for(;i<n.length;)c();return o}},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t,n){var r=!0,o=!1,i=!1,c=1;return function a(){if(r&&!i){if(o?c++:r=!1,e+c<=n)return c;i=!0}if(!o)return i||(r=!0),t<=e-c?-c++:(o=!0,a())}}},function(e,t,n){"use strict";t.__esModule=!0,t.calcLineCount=a,t.merge=function(e,t,n){e=l(e,n),t=l(t,n);var r={};(e.index||t.index)&&(r.index=e.index||t.index),(e.newFileName||t.newFileName)&&(s(e)?s(t)?(r.oldFileName=u(r,e.oldFileName,t.oldFileName),r.newFileName=u(r,e.newFileName,t.newFileName),r.oldHeader=u(r,e.oldHeader,t.oldHeader),r.newHeader=u(r,e.newHeader,t.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=t.oldFileName||e.oldFileName,r.newFileName=t.newFileName||e.newFileName,r.oldHeader=t.oldHeader||e.oldHeader,r.newHeader=t.newHeader||e.newHeader)),r.hunks=[];for(var o=0,i=0,c=0,a=0;o<e.hunks.length||i<t.hunks.length;){var p=e.hunks[o]||{oldStart:1/0},h=t.hunks[i]||{oldStart:1/0};if(d(p,h))r.hunks.push(f(p,c)),o++,a+=p.newLines-p.oldLines;else if(d(h,p))r.hunks.push(f(h,a)),i++,c+=h.newLines-h.oldLines;else{var m={oldStart:Math.min(p.oldStart,h.oldStart),oldLines:0,newStart:Math.min(p.newStart+c,h.oldStart+a),newLines:0,lines:[]};b(m,p.oldStart,p.lines,h.oldStart,h.lines),i++,o++,r.hunks.push(m)}}return r};var r=n(14),o=n(11),i=n(15);function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e){var t=function e(t){var n=0,r=0;return t.forEach((function(t){if("string"!=typeof t){var o=e(t.mine),i=e(t.theirs);void 0!==n&&(o.oldLines===i.oldLines?n+=o.oldLines:n=void 0),void 0!==r&&(o.newLines===i.newLines?r+=o.newLines:r=void 0)}else void 0===r||"+"!==t[0]&&" "!==t[0]||r++,void 0===n||"-"!==t[0]&&" "!==t[0]||n++})),{oldLines:n,newLines:r}}(e.lines),n=t.oldLines,r=t.newLines;void 0!==n?e.oldLines=n:delete e.oldLines,void 0!==r?e.newLines=r:delete e.newLines}function l(e,t){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return(0,o.parsePatch)(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return((0,r.structuredPatch)(void 0,void 0,t,e))}return e}function s(e){return e.newFileName&&e.newFileName!==e.oldFileName}function u(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function d(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function f(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function b(e,t,n,r,o){var i={offset:t,lines:n,index:0},l={offset:r,lines:o,index:0};for(g(e,i,l),g(e,l,i);i.index<i.lines.length&&l.index<l.lines.length;){var s=i.lines[i.index],u=l.lines[l.index];if("-"!==s[0]&&"+"!==s[0]||"-"!==u[0]&&"+"!==u[0])if("+"===s[0]&&" "===u[0]){var d;(d=e.lines).push.apply(d,c(O(i)))}else if("+"===u[0]&&" "===s[0]){var f;(f=e.lines).push.apply(f,c(O(l)))}else"-"===s[0]&&" "===u[0]?h(e,i,l):"-"===u[0]&&" "===s[0]?h(e,l,i,!0):s===u?(e.lines.push(s),i.index++,l.index++):m(e,O(i),O(l));else p(e,i,l)}v(e,i),v(e,l),a(e)}function p(e,t,n){var r=O(t),o=O(n);if(j(r)&&j(o)){var a,l;if((0,i.arrayStartsWith)(r,o)&&k(n,r,r.length-o.length))return void(a=e.lines).push.apply(a,c(r));if((0,i.arrayStartsWith)(o,r)&&k(t,o,o.length-r.length))return void(l=e.lines).push.apply(l,c(o))}else if((0,i.arrayEqual)(r,o)){var s;return void(s=e.lines).push.apply(s,c(r))}m(e,r,o)}function h(e,t,n,r){var o,i=O(t),a=function(e,t){for(var n=[],r=[],o=0,i=!1,c=!1;o<t.length&&e.index<e.lines.length;){var a=e.lines[e.index],l=t[o];if("+"===l[0])break;if(i=i||" "!==a[0],r.push(l),o++,"+"===a[0])for(c=!0;"+"===a[0];)n.push(a),a=e.lines[++e.index];l.substr(1)===a.substr(1)?(n.push(a),e.index++):c=!0}if("+"===(t[o]||"")[0]&&i&&(c=!0),c)return n;for(;o<t.length;)r.push(t[o++]);return{merged:r,changes:n}}(n,i);a.merged?(o=e.lines).push.apply(o,c(a.merged)):m(e,r?a:i,r?i:a)}function m(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function g(e,t,n){for(;t.offset<n.offset&&t.index<t.lines.length;){var r=t.lines[t.index++];e.lines.push(r),t.offset++}}function v(e,t){for(;t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n)}}function O(e){for(var t=[],n=e.lines[e.index][0];e.index<e.lines.length;){var r=e.lines[e.index];if("-"===n&&"+"===r[0]&&(n="+"),n!==r[0])break;t.push(r),e.index++}return t}function j(e){return e.reduce((function(e,t){return e&&"-"===t[0]}),!0)}function k(e,t,n){for(var r=0;r<n;r++){var o=t[t.length-n+r].substr(1);if(e.lines[e.index+r]!==" "+o)return!1}return e.index+=n,!0}},function(e,t,n){"use strict";t.__esModule=!0,t.structuredPatch=i,t.createTwoFilesPatch=c,t.createPatch=function(e,t,n,r,o,i){return c(e,e,t,n,r,o,i)};var r=n(5);function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t,n,i,c,a,l){l||(l={}),void 0===l.context&&(l.context=4);var s=(0,r.diffLines)(n,i,l);function u(e){return e.map((function(e){return" "+e}))}s.push({value:"",lines:[]});for(var d=[],f=0,b=0,p=[],h=1,m=1,g=function(e){var t=s[e],r=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=r,t.added||t.removed){var c;if(!f){var a=s[e-1];f=h,b=m,a&&(p=l.context>0?u(a.lines.slice(-l.context)):[],f-=p.length,b-=p.length)}(c=p).push.apply(c,o(r.map((function(e){return(t.added?"+":"-")+e})))),t.added?m+=r.length:h+=r.length}else{if(f)if(r.length<=2*l.context&&e<s.length-2){var g;(g=p).push.apply(g,o(u(r)))}else{var v,O=Math.min(r.length,l.context);(v=p).push.apply(v,o(u(r.slice(0,O))));var j={oldStart:f,oldLines:h-f+O,newStart:b,newLines:m-b+O,lines:p};if(e>=s.length-2&&r.length<=l.context){var k=/\n$/.test(n),y=/\n$/.test(i);0!=r.length||k?k&&y||p.push("\"):p.splice(j.oldLines,0,"\")}d.push(j),f=0,b=0,p=[]}h+=r.length,m+=r.length}},v=0;v<s.length;v++)g(v);return{oldFileName:e,newFileName:t,oldHeader:c,newHeader:a,hunks:d}}function c(e,t,n,r,o,c,a){var l=i(e,t,n,r,o,c,a),s=[];e==t&&s.push("Index: "+e),s.push("==================================================================="),s.push("--- "+l.oldFileName+(void 0===l.oldHeader?"":"\t"+l.oldHeader)),s.push("+++ "+l.newFileName+(void 0===l.newHeader?"":"\t"+l.newHeader));for(var u=0;u<l.hunks.length;u++){var d=l.hunks[u];s.push("@@ -"+d.oldStart+","+d.oldLines+" +"+d.newStart+","+d.newLines+" @@"),s.push.apply(s,d.lines)}return s.join("\n")+"\n"}},function(e,t){"use strict";function n(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}t.__esModule=!0,t.arrayEqual=function(e,t){return e.length===t.length&&n(e,t)},t.arrayStartsWith=n},function(e,t){"use strict";t.__esModule=!0,t.convertChangesToDMP=function(e){for(var t=[],n=void 0,r=void 0,o=0;o<e.length;o++)n=e[o],r=n.added?1:n.removed?-1:0,t.push([r,n.value]);return t}},function(e,t){"use strict";t.__esModule=!0,t.convertChangesToXML=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r.added?t.push("<ins>"):r.removed&&t.push("<del>"),t.push((o=r.value,void 0,o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))),r.added?t.push("</ins>"):r.removed&&t.push("</del>")}var o;return t.join("")}}])},e.exports=r()},function(e,t,n){"use strict";t.match=function(e,t){return l(e).some((function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every((function(e){var n=e.feature,r=e.modifier,o=e.value,i=t[n];if(!i)return!1;switch(n){case"orientation":case"scan":return i.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=d(o),i=d(i);break;case"resolution":o=u(o),i=u(i);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=s(o),i=s(i);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,i=parseInt(i,10)||0}switch(r){case"min":return i>=o;case"max":return i<=o;default:return i===o}}));return o&&!n||!o&&n}))},t.parse=l;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,o=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,i=/^(?:(min|max)-)?(.+)/,c=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function l(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),n=t[1],c=t[2],a=t[3]||"",l={};return l.inverse=!!n&&"not"===n.toLowerCase(),l.type=c?c.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],l.expressions=a.map((function(e){var t=e.match(o),n=t[1].toLowerCase().match(i);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}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(a)[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(c)[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}}},function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],a=!0;return function e(d){var f=n?i(d):d,b={},p=!0,h={node:f,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){h.isRoot||(h.parent.node[h.key]=e),h.node=e,t&&(p=!1)},delete:function(e){delete h.parent.node[h.key],e&&(p=!1)},remove:function(e){l(h.parent.node)?h.parent.node.splice(h.key,1):delete h.parent.node[h.key],e&&(p=!1)},keys:null,before:function(e){b.before=e},after:function(e){b.after=e},pre:function(e){b.pre=e},post:function(e){b.post=e},stop:function(){a=!1},block:function(){p=!1}};if(!a)return h;function m(){if("object"==typeof h.node&&null!==h.node){h.keys&&h.node_===h.node||(h.keys=c(h.node)),h.isLeaf=0==h.keys.length;for(var e=0;e<o.length;e++)if(o[e].node_===d){h.circular=o[e];break}}else h.isLeaf=!0,h.keys=null;h.notLeaf=!h.isLeaf,h.notRoot=!h.isRoot}m();var g=t.call(h,h.node);return void 0!==g&&h.update&&h.update(g),b.before&&b.before.call(h,h.node),p?("object"!=typeof h.node||null===h.node||h.circular||(o.push(h),m(),s(h.keys,(function(t,o){r.push(t),b.pre&&b.pre.call(h,h.node[t],t);var i=e(h.node[t]);n&&u.call(h.node,t)&&(h.node[t]=i.node),i.isLast=o==h.keys.length-1,i.isFirst=0==o,b.post&&b.post.call(h,i),r.pop()})),o.pop()),b.after&&b.after.call(h,h.node),h):h}(e).node}function i(e){if("object"==typeof e&&null!==e){var t;if(l(e))t=[];else if("[object Date]"===a(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===a(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===a(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===a(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===a(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===a(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__||{},r=function(){};r.prototype=n,t=new r}return s(c(e),(function(n){t[n]=e[n]})),t}return e}r.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r)){t=void 0;break}t=t[r]}return t},r.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r))return!1;t=t[r]}return!0},r.prototype.set=function(e,t){for(var n=this.value,r=0;r<e.length-1;r++){var o=e[r];u.call(n,o)||(n[o]={}),n=n[o]}return n[e[r]]=t,t},r.prototype.map=function(e){return o(this.value,e,!0)},r.prototype.forEach=function(e){return this.value=o(this.value,e,!1),this.value},r.prototype.reduce=function(e,t){var n=1===arguments.length,r=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(r=e.call(this,r,t))})),r},r.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},r.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},r.prototype.clone=function(){var e=[],t=[];return function n(r){for(var o=0;o<e.length;o++)if(e[o]===r)return t[o];if("object"==typeof r&&null!==r){var a=i(r);return e.push(r),t.push(a),s(c(r),(function(e){a[e]=n(r[e])})),e.pop(),t.pop(),a}return r}(this.value)};var c=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function a(e){return Object.prototype.toString.call(e)}var l=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(c(r.prototype),(function(e){n[e]=function(t){var n=[].slice.call(arguments,1),o=new r(t);return o[e].apply(o,n)}}));var u=Object.hasOwnProperty||function(e,t){return t in e}},,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.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=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.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=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6zM13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-5.7-5.3-.6.6-.5-.5-5.2 5.2 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M12 8l-6 5.4 1 1.2 5-4.6 5 4.6 1-1.2z"}));t.a=i},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"resetBlocks",(function(){return jn})),n.d(r,"resetSelection",(function(){return kn})),n.d(r,"receiveBlocks",(function(){return yn})),n.d(r,"updateBlockAttributes",(function(){return _n})),n.d(r,"updateBlock",(function(){return En})),n.d(r,"selectBlock",(function(){return Sn})),n.d(r,"selectPreviousBlock",(function(){return wn})),n.d(r,"selectNextBlock",(function(){return Cn})),n.d(r,"startMultiSelect",(function(){return In})),n.d(r,"stopMultiSelect",(function(){return Bn})),n.d(r,"multiSelect",(function(){return xn})),n.d(r,"clearSelectedBlock",(function(){return Tn})),n.d(r,"toggleSelection",(function(){return Pn})),n.d(r,"replaceBlocks",(function(){return Ln})),n.d(r,"replaceBlock",(function(){return Rn})),n.d(r,"moveBlocksDown",(function(){return An})),n.d(r,"moveBlocksUp",(function(){return Dn})),n.d(r,"moveBlockToPosition",(function(){return Fn})),n.d(r,"insertBlock",(function(){return Hn})),n.d(r,"insertBlocks",(function(){return Vn})),n.d(r,"showInsertionPoint",(function(){return Un})),n.d(r,"hideInsertionPoint",(function(){return zn})),n.d(r,"setTemplateValidity",(function(){return Gn})),n.d(r,"synchronizeTemplate",(function(){return Kn})),n.d(r,"mergeBlocks",(function(){return Wn})),n.d(r,"removeBlocks",(function(){return qn})),n.d(r,"removeBlock",(function(){return $n})),n.d(r,"replaceInnerBlocks",(function(){return Yn})),n.d(r,"toggleBlockMode",(function(){return Xn})),n.d(r,"startTyping",(function(){return Zn})),n.d(r,"stopTyping",(function(){return Jn})),n.d(r,"startDraggingBlocks",(function(){return Qn})),n.d(r,"stopDraggingBlocks",(function(){return er})),n.d(r,"enterFormattedText",(function(){return tr})),n.d(r,"exitFormattedText",(function(){return nr})),n.d(r,"selectionChange",(function(){return rr})),n.d(r,"insertDefaultBlock",(function(){return or})),n.d(r,"updateBlockListSettings",(function(){return ir})),n.d(r,"updateSettings",(function(){return cr})),n.d(r,"__unstableSaveReusableBlock",(function(){return ar})),n.d(r,"__unstableMarkLastChangeAsPersistent",(function(){return lr})),n.d(r,"__unstableMarkNextChangeAsNotPersistent",(function(){return sr})),n.d(r,"__unstableMarkAutomaticChange",(function(){return ur})),n.d(r,"setNavigationMode",(function(){return dr})),n.d(r,"duplicateBlocks",(function(){return fr})),n.d(r,"insertBeforeBlock",(function(){return br})),n.d(r,"insertAfterBlock",(function(){return pr}));var o={};n.r(o),n.d(o,"INSERTER_UTILITY_HIGH",(function(){return vr})),n.d(o,"INSERTER_UTILITY_MEDIUM",(function(){return Or})),n.d(o,"INSERTER_UTILITY_LOW",(function(){return jr})),n.d(o,"INSERTER_UTILITY_NONE",(function(){return kr})),n.d(o,"getBlockName",(function(){return Er})),n.d(o,"isBlockValid",(function(){return Sr})),n.d(o,"getBlockAttributes",(function(){return wr})),n.d(o,"getBlock",(function(){return Cr})),n.d(o,"__unstableGetBlockWithoutInnerBlocks",(function(){return Ir})),n.d(o,"getBlocks",(function(){return Br})),n.d(o,"getClientIdsOfDescendants",(function(){return xr})),n.d(o,"getClientIdsWithDescendants",(function(){return Tr})),n.d(o,"getGlobalBlockCount",(function(){return Pr})),n.d(o,"getBlocksByClientId",(function(){return Nr})),n.d(o,"getBlockCount",(function(){return Lr})),n.d(o,"getSelectionStart",(function(){return Rr})),n.d(o,"getSelectionEnd",(function(){return Mr})),n.d(o,"getBlockSelectionStart",(function(){return Ar})),n.d(o,"getBlockSelectionEnd",(function(){return Dr})),n.d(o,"getSelectedBlockCount",(function(){return Fr})),n.d(o,"hasSelectedBlock",(function(){return Hr})),n.d(o,"getSelectedBlockClientId",(function(){return Vr})),n.d(o,"getSelectedBlock",(function(){return Ur})),n.d(o,"getBlockRootClientId",(function(){return zr})),n.d(o,"getBlockParents",(function(){return Gr})),n.d(o,"getBlockParentsByBlockName",(function(){return Kr})),n.d(o,"getBlockHierarchyRootClientId",(function(){return Wr})),n.d(o,"getLowestCommonAncestorWithSelectedBlock",(function(){return qr})),n.d(o,"getAdjacentBlockClientId",(function(){return $r})),n.d(o,"getPreviousBlockClientId",(function(){return Yr})),n.d(o,"getNextBlockClientId",(function(){return Xr})),n.d(o,"getSelectedBlocksInitialCaretPosition",(function(){return Zr})),n.d(o,"getSelectedBlockClientIds",(function(){return Jr})),n.d(o,"getMultiSelectedBlockClientIds",(function(){return Qr})),n.d(o,"getMultiSelectedBlocks",(function(){return eo})),n.d(o,"getFirstMultiSelectedBlockClientId",(function(){return to})),n.d(o,"getLastMultiSelectedBlockClientId",(function(){return no})),n.d(o,"isFirstMultiSelectedBlock",(function(){return ro})),n.d(o,"isBlockMultiSelected",(function(){return oo})),n.d(o,"isAncestorMultiSelected",(function(){return io})),n.d(o,"getMultiSelectedBlocksStartClientId",(function(){return co})),n.d(o,"getMultiSelectedBlocksEndClientId",(function(){return ao})),n.d(o,"getBlockOrder",(function(){return lo})),n.d(o,"getBlockIndex",(function(){return so})),n.d(o,"isBlockSelected",(function(){return uo})),n.d(o,"hasSelectedInnerBlock",(function(){return fo})),n.d(o,"isBlockWithinSelection",(function(){return bo})),n.d(o,"hasMultiSelection",(function(){return po})),n.d(o,"isMultiSelecting",(function(){return ho})),n.d(o,"isSelectionEnabled",(function(){return mo})),n.d(o,"getBlockMode",(function(){return go})),n.d(o,"isTyping",(function(){return vo})),n.d(o,"isDraggingBlocks",(function(){return Oo})),n.d(o,"isCaretWithinFormattedText",(function(){return jo})),n.d(o,"getBlockInsertionPoint",(function(){return ko})),n.d(o,"isBlockInsertionPointVisible",(function(){return yo})),n.d(o,"isValidTemplate",(function(){return _o})),n.d(o,"getTemplate",(function(){return Eo})),n.d(o,"getTemplateLock",(function(){return So})),n.d(o,"canInsertBlockType",(function(){return Co})),n.d(o,"getInserterItems",(function(){return xo})),n.d(o,"hasInserterItems",(function(){return To})),n.d(o,"__experimentalGetAllowedBlocks",(function(){return Po})),n.d(o,"getBlockListSettings",(function(){return No})),n.d(o,"getSettings",(function(){return Lo})),n.d(o,"isLastBlockChangePersistent",(function(){return Ro})),n.d(o,"__experimentalGetBlockListSettingsForBlocks",(function(){return Mo})),n.d(o,"__experimentalGetParsedReusableBlock",(function(){return Ao})),n.d(o,"__unstableIsLastBlockChangeIgnored",(function(){return Do})),n.d(o,"__experimentalGetLastBlockAttributeChanges",(function(){return Fo})),n.d(o,"isNavigationMode",(function(){return Vo})),n.d(o,"didAutomaticChange",(function(){return Uo}));var i=n(11),c=n(24),a=n(55),l=n(48),s=n(6),u=n(12),d=n(0),f=n(10),b=n.n(f),p=n(2),h=n(9),m=n(30),g=n(4),v=n(51),O=n.n(v),j=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{color:n}},k=function(e,t){return Object(p.find)(e,{color:t})};function y(e,t){if(e&&t)return"has-".concat(Object(p.kebabCase)(t),"-").concat(e)}var _=n(14),E=n(13),S=n(15),w=n(16),C=n(8),I=n(17);function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T=[],P=function(e){return Object(h.createHigherOrderComponent)((function(t){return function(n){return Object(d.createElement)(t,Object(u.a)({},n,{colors:e}))}}),"withCustomColorPalette")},N=function(){return Object(g.withSelect)((function(e){var t=e("core/block-editor").getSettings();return{colors:Object(p.get)(t,["colors"],T)}}))};function L(e,t){var n=Object(p.reduce)(e,(function(e,t){return x({},e,{},Object(p.isString)(t)?Object(s.a)({},t,Object(p.kebabCase)(t)):t)}),{});return Object(h.compose)([t,function(e){return function(t){function r(e){var t;return Object(_.a)(this,r),(t=Object(S.a)(this,Object(w.a)(r).call(this,e))).setters=t.createSetters(),t.colorUtils={getMostReadableColor:t.getMostReadableColor.bind(Object(C.a)(t))},t.state={},t}return Object(I.a)(r,t),Object(E.a)(r,[{key:"getMostReadableColor",value:function(e){return function(e,t){return O.a.mostReadable(t,Object(p.map)(e,"color")).toHexString()}(this.props.colors,e)}},{key:"createSetters",value:function(){var e=this;return Object(p.reduce)(n,(function(t,n,r){var o=Object(p.upperFirst)(r),i="custom".concat(o);return t["set".concat(o)]=e.createSetColor(r,i),t}),{})}},{key:"createSetColor",value:function(e,t){var n=this;return function(r){var o,i=k(n.props.colors,r);n.props.setAttributes((o={},Object(s.a)(o,e,i&&i.slug?i.slug:void 0),Object(s.a)(o,t,i&&i.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(d.createElement)(e,x({},this.props,{colors:void 0},this.state,{},this.setters,{colorUtils:this.colorUtils}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.attributes,o=e.colors;return Object(p.reduce)(n,(function(e,n,i){var c=j(o,r[i],r["custom".concat(Object(p.upperFirst)(i))]),a=t[i];return Object(p.get)(a,["color"])===c.color&&a?e[i]=a:e[i]=x({},c,{class:y(n,c.slug)}),e}),{})}}]),r}(d.Component)}])}function R(e){return function(){for(var t=P(e),n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Object(h.createHigherOrderComponent)(L(r,t),"withCustomColors")}}function M(){for(var e=N(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Object(h.createHigherOrderComponent)(L(n,e),"withColors")}var A=n(19),D=n(18),F=n(20),H=n(47),V=n.n(H),U=n(1),z=n(3),G=Object(z.withFilters)("editor.BlockEdit")((function(e){var t=e.attributes,n=void 0===t?{}:t,r=e.name,o=Object(i.getBlockType)(r);if(!o)return null;var c=o.edit||o.save;if(Object(i.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(d.createElement)(c,e);var a=Object(i.hasBlockSupport)(o,"className",!0)?Object(i.getBlockDefaultClassName)(r):null,l=b()(a,n.className);return Object(d.createElement)(c,Object(u.a)({},e,{className:l}))})),K=Object(d.createContext)({name:"",isSelected:!1,focusedElement:null,setFocusedElement:p.noop,clientId:null}),W=K.Provider,q=K.Consumer;function $(){return Object(d.useContext)(K)}var Y=function(e){return Object(h.createHigherOrderComponent)((function(t){return function(n){return Object(d.createElement)(q,null,(function(r){return Object(d.createElement)(t,Object(u.a)({},n,e(r,n)))}))}}),"withBlockEditContext")},X=Object(h.createHigherOrderComponent)((function(e){return function(t){return Object(d.createElement)(q,null,(function(n){return n.isSelected&&Object(d.createElement)(e,t)}))}}),"ifBlockEditSelected"),Z=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).propsToContext=V()(e.propsToContext.bind(Object(C.a)(e)),{maxSize:1}),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"propsToContext",value:function(e,t,n,r,o){return{name:e,isSelected:t,clientId:n,onFocus:r,onCaretVerticalPositionChange:o}}},{key:"render",value:function(){var e=this.props,t=e.name,n=e.isSelected,r=e.clientId,o=e.onFocus,i=e.onCaretVerticalPositionChange,c=this.propsToContext(t,n,r,o,i);return Object(d.createElement)(W,{value:c},Object(d.createElement)(G,this.props))}}]),t}(d.Component);function J(e){if(e)return"has-".concat(e,"-gradient-background")}function Q(e,t){var n=Object(p.find)(e,["slug",t]);return n&&n.gradient}function ee(e,t){return Object(p.find)(e,["gradient",t])}function te(e,t){var n=ee(e,t);return n&&n.slug}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gradientAttribute,n=void 0===t?"gradient":t,r=e.customGradientAttribute,o=void 0===r?"customGradient":r,i=$(),c=i.clientId,a=Object(g.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockAttributes,i=t.getSettings,a=r(c);return{gradient:a[n],customGradient:a[o],gradients:i().gradients}}),[c,n,o]),l=a.gradients,u=a.gradient,f=a.customGradient,b=Object(g.useDispatch)("core/block-editor"),p=b.updateBlockAttributes,h=Object(d.useCallback)((function(e){var t,r,i=te(l,e);i?p(c,(r={},Object(s.a)(r,n,i),Object(s.a)(r,o,void 0),r)):p(c,(t={},Object(s.a)(t,n,void 0),Object(s.a)(t,o,e),t))}),[l,c,p]),m=J(u);return{gradientClass:m,gradientValue:u?Q(l,u):f,setGradient:h}}function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var oe=Object(U.__)("(Color: %s)"),ie=Object(U.__)("(Gradient: %s)"),ce=["colors","disableCustomColors","gradients","disableCustomGradients"];function ae(e){var t,n,r=e.colors,o=e.gradients,i=e.label,c=e.currentTab,a=e.colorValue,l=e.gradientValue;if("color"===c){if(a){var s=k(r,t=a),u=s&&s.name;n=Object(U.sprintf)(oe,u||t)}}else if("gradient"===c&&l){var f=ee(o,t=l),b=f&&f.name;n=Object(U.sprintf)(ie,b||t)}return Object(d.createElement)(d.Fragment,null,i,!!t&&Object(d.createElement)(z.ColorIndicator,{colorValue:t,"aria-label":n}))}function le(e){var t=e.colors,n=e.gradients,r=e.disableCustomColors,o=e.disableCustomGradients,i=e.className,c=e.label,a=e.onColorChange,l=e.onGradientChange,s=e.colorValue,f=e.gradientValue,h=a&&(!Object(p.isEmpty)(t)||!r),m=l&&(!Object(p.isEmpty)(n)||!o),g=Object(d.useState)(f?"gradient":!!h&&"color"),v=Object(D.a)(g,2),O=v[0],j=v[1];return h||m?Object(d.createElement)(z.BaseControl,{className:b()("block-editor-color-gradient-control",i)},Object(d.createElement)("fieldset",null,Object(d.createElement)("legend",null,Object(d.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(d.createElement)(z.BaseControl.VisualLabel,null,Object(d.createElement)(ae,{currentTab:O,label:c,colorValue:s,gradientValue:f})))),h&&m&&Object(d.createElement)(z.ButtonGroup,{className:"block-editor-color-gradient-control__button-tabs"},Object(d.createElement)(z.Button,{isSmall:!0,isPrimary:"color"===O,isSecondary:"color"!==O,onClick:function(){return j("color")}},Object(U.__)("Solid")),Object(d.createElement)(z.Button,{isSmall:!0,isPrimary:"gradient"===O,isSecondary:"gradient"!==O,onClick:function(){return j("gradient")}},Object(U.__)("Gradient"))),("color"===O||!m)&&Object(d.createElement)(z.ColorPalette,Object(u.a)({value:s,onChange:m?function(e){a(e),l()}:a},{colors:t,disableCustomColors:r})),("gradient"===O||!h)&&Object(d.createElement)(z.__experimentalGradientPicker,Object(u.a)({value:f,onChange:h?function(e){l(e),a()}:l},{gradients:n,disableCustomGradients:o})))):null}function se(e){var t=Object(g.useSelect)((function(e){var t=e("core/block-editor").getSettings();return Object(p.pick)(t,ce)}));return Object(d.createElement)(le,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{},e))}var ue=function(e){return Object(p.every)(ce,(function(t){return e.hasOwnProperty(t)}))?Object(d.createElement)(le,e):Object(d.createElement)(se,e)};function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var be=Object(U.__)("(%s: color %s)"),pe=Object(U.__)("(%s: gradient %s)"),he=["colors","disableCustomColors","gradients","disableCustomGradients"],me=function(e){var t=e.colors,n=e.gradients;return e.settings.map((function(e,r){var o,i=e.colorValue,c=e.gradientValue,a=e.label,l=e.colors,s=e.gradients;if(!i&&!c)return null;if(i){var u=k(l||t,i);o=Object(U.sprintf)(be,a.toLowerCase(),u&&u.name||i)}else{var f=ee(s||n,i);o=Object(U.sprintf)(pe,a.toLowerCase(),f&&f.name||c)}return Object(d.createElement)(z.ColorIndicator,{key:r,colorValue:i||c,"aria-label":o})}))},ge=function(e){var t=e.className,n=e.colors,r=e.gradients,o=e.disableCustomColors,i=e.disableCustomGradients,c=e.children,a=e.settings,l=e.title,s=Object(F.a)(e,["className","colors","gradients","disableCustomColors","disableCustomGradients","children","settings","title"]);if(Object(p.isEmpty)(n)&&Object(p.isEmpty)(r)&&o&&i&&Object(p.every)(a,(function(e){return Object(p.isEmpty)(e.colors)&&Object(p.isEmpty)(e.gradients)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)})))return null;var f=Object(d.createElement)("span",{className:"block-editor-panel-color-gradient-settings__panel-title"},l,Object(d.createElement)(me,{colors:n,gradients:r,settings:a}));return Object(d.createElement)(z.PanelBody,Object(u.a)({className:b()("block-editor-panel-color-gradient-settings",t),title:f},s),a.map((function(e,t){return Object(d.createElement)(ue,Object(u.a)({key:t},fe({colors:n,gradients:r,disableCustomColors:o,disableCustomGradients:i},e)))})),c)},ve=function(e){var t=Object(g.useSelect)((function(e){var t=e("core/block-editor").getSettings();return Object(p.pick)(t,he)}));return Object(d.createElement)(ge,fe({},t,{},e))},Oe=function(e){return Object(p.every)(he,(function(t){return e.hasOwnProperty(t)}))?Object(d.createElement)(ge,e):Object(d.createElement)(ve,e)};function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ke=function(e){var t=e.colorSettings,n=Object(F.a)(e,["colorSettings"]),r=t.map((function(e){var t=e.value,n=e.onChange;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(F.a)(e,["value","onChange"]),{colorValue:t,onColorChange:n})}));return Object(d.createElement)(Oe,Object(u.a)({settings:r,gradients:[],disableCustomGradients:!0},n))},ye=n(50);function _e(e){var t=e.tinyBackgroundColor,n=e.tinyTextColor,r=e.backgroundColor,o=e.textColor,i=t.getBrightness()<n.getBrightness()?Object(U.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(U.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.");return Object(d.useEffect)((function(){Object(ye.speak)(Object(U.__)("This color combination may be hard for people to read."))}),[r,o]),Object(d.createElement)("div",{className:"block-editor-contrast-checker"},Object(d.createElement)(z.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},i))}var Ee=function(e){var t=e.backgroundColor,n=e.fallbackBackgroundColor,r=e.fallbackTextColor,o=e.fontSize,i=e.isLargeText,c=e.textColor;if(!t&&!n||!c&&!r)return null;var a=O()(t||n),l=O()(c||r);return 1!==a.getAlpha()||1!==l.getAlpha()||O.a.isReadable(a,l,{level:"AA",size:i||!1!==i&&o>=24?"large":"small"})?null:Object(d.createElement)(_e,{backgroundColor:t,textColor:c,tinyBackgroundColor:a,tinyTextColor:l})},Se=Object(z.createSlotFill)("InspectorControls"),we=Se.Fill,Ce=Se.Slot,Ie=X(we);Ie.Slot=Ce;var Be=Ie;function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pe=window,Ne=Pe.getComputedStyle,Le=Pe.Node,Re=[],Me={textColor:Object(U.__)("Text Color"),backgroundColor:Object(U.__)("Background Color")},Ae=function(e,t,n){return"function"==typeof e?e(t):!0===e?n:e},De=function(e){var t=e.title,n=e.colorSettings,r=e.colorPanelProps,o=e.contrastCheckers,i=e.detectedBackgroundColor,c=e.detectedColor,a=e.panelChildren,l=e.initialOpen;return Object(d.createElement)(ke,Object(u.a)({title:t,initialOpen:l,colorSettings:Object.values(n)},r),o&&(Array.isArray(o)?o.map((function(e){var t=e.backgroundColor,r=e.textColor,o=Object(F.a)(e,["backgroundColor","textColor"]);return t=Ae(t,n,i),r=Ae(r,n,c),Object(d.createElement)(Ee,Object(u.a)({key:"".concat(t,"-").concat(r),backgroundColor:t,textColor:r},o))})):Object(p.map)(n,(function(e){var t=e.value,r=o.backgroundColor,a=o.textColor;return r=Ae(r||t,n,i),a=Ae(a||t,n,c),Object(d.createElement)(Ee,Object(u.a)({},o,{key:"".concat(r,"-").concat(a),backgroundColor:r,textColor:a}))}))),"function"==typeof a?a(n):a)},Fe=function(e){return Object(d.createElement)(Be,null,Object(d.createElement)(De,e))};function He(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{panelTitle:Object(U.__)("Color settings")},n=t.panelTitle,r=void 0===n?Object(U.__)("Color settings"):n,o=t.colorPanelProps,i=t.contrastCheckers,c=t.panelChildren,a=t.colorDetector,l=(a=void 0===a?{}:a).targetRef,u=a.backgroundColorTargetRef,f=void 0===u?l:u,h=a.textColorTargetRef,m=void 0===h?l:h,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],O=$(),j=O.clientId,k=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockAttributes,r=(0,t.getSettings)().colors;return{attributes:n(j),settingsColors:r&&!0!==r?r:Re}}),[j]),y=k.attributes,_=k.settingsColors,E=Object(g.useDispatch)("core/block-editor"),S=E.updateBlockAttributes,w=Object(d.useCallback)((function(e){return S(j,e)}),[S,j]),C=Object(d.useMemo)((function(){return V()((function(e,t,n,r,o,i){return function(c){var a,l=c.children,u=c.className,f=void 0===u?"":u,h=c.style,m=void 0===h?{}:h,g={};r?g=Object(s.a)({},t,o):i&&(g=Object(s.a)({},t,i));var v={className:b()(f,(a={},Object(s.a)(a,"has-".concat(Object(p.kebabCase)(r),"-").concat(Object(p.kebabCase)(t)),r),Object(s.a)(a,n||"has-".concat(Object(p.kebabCase)(e)),r||i),a)),style:Te({},g,{},m)};return Object(p.isFunction)(l)?l(v):d.Children.map(l,(function(e){return Object(d.cloneElement)(e,{className:b()(e.props.className,v.className),style:Te({},v.style,{},e.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),I=Object(d.useMemo)((function(){return V()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));w(Object(s.a)({},r?Object(p.camelCase)("custom ".concat(e)):e,void 0)),w(Object(s.a)({},r?e:Object(p.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[w,e.length]),B=Object(d.useState)(),x=Object(D.a)(B,2),T=x[0],P=x[1],N=Object(d.useState)(),L=Object(D.a)(N,2),R=L[0],M=L[1];return Object(d.useEffect)((function(){if(i){var e=!1,t=!1,n=!0,r=!1,o=void 0;try{for(var c,a=Object(p.castArray)(i)[Symbol.iterator]();!(n=(c=a.next()).done);n=!0){var l=c.value,s=l.backgroundColor,u=l.textColor;if(e||(e=!0===s),t||(t=!0===u),e&&t)break}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}if(t&&M(Ne(m.current).color),e){for(var d=f.current,b=Ne(d).backgroundColor;"rgba(0, 0, 0, 0)"===b&&d.parentNode&&d.parentNode.nodeType===Le.ELEMENT_NODE;)d=d.parentNode,b=Ne(d).backgroundColor;P(b)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(y[t.name]," | ").concat(y[Object(p.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(A.a)(v))),Object(d.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=Te({},n,{color:y[n.name]}),o=r.name,i=r.property,c=void 0===i?o:i,a=r.className,l=r.panelLabel,s=void 0===l?n.label||Me[o]||Object(p.startCase)(o):l,u=r.componentName,d=void 0===u?Object(p.startCase)(o).replace(/\s/g,""):u,f=r.color,b=void 0===f?n.color:f,h=r.colors,m=void 0===h?_:h,g=y[Object(p.camelCase)("custom ".concat(o))],v=g?void 0:m.find((function(e){return e.slug===b}));return e[d]=C(o,c,a,b,v&&v.color,g),e[d].displayName=d,e[d].color=g||v&&v.color,e[d].slug=b,e[d].setColor=I(o,m),t[d]={value:v?v.color:y[Object(p.camelCase)("custom ".concat(o))],onChange:e[d].setColor,label:s,colors:m},m||delete t[d].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:i,detectedBackgroundColor:T,detectedColor:R,panelChildren:c};return Te({},n,{ColorPanel:Object(d.createElement)(De,a),InspectorControlsColorPanel:Object(d.createElement)(Fe,a)})}),[y,w,R,T].concat(Object(A.a)(v)))}var Ve=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{size:n}};function Ue(e){if(e)return"has-".concat(Object(p.kebabCase)(e),"-font-size")}var ze=Object(g.withSelect)((function(e){var t=e("core/block-editor").getSettings();return{disableCustomFontSizes:t.disableCustomFontSizes,fontSizes:t.fontSizes}}))(z.FontSizePicker);function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var We=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Object(p.reduce)(t,(function(e,t){return e[t]="custom".concat(Object(p.upperFirst)(t)),e}),{});return Object(h.createHigherOrderComponent)(Object(h.compose)([Object(g.withSelect)((function(e){return{fontSizes:e("core/block-editor").getSettings().fontSizes}})),function(e){return function(t){function n(e){var t;return Object(_.a)(this,n),(t=Object(S.a)(this,Object(w.a)(n).call(this,e))).setters=t.createSetters(),t.state={},t}return Object(I.a)(n,t),Object(E.a)(n,[{key:"createSetters",value:function(){var e=this;return Object(p.reduce)(r,(function(t,n,r){var o=Object(p.upperFirst)(r);return t["set".concat(o)]=e.createSetFontSize(r,n),t}),{})}},{key:"createSetFontSize",value:function(e,t){var n=this;return function(r){var o,i=Object(p.find)(n.props.fontSizes,{size:Number(r)});n.props.setAttributes((o={},Object(s.a)(o,e,i&&i.slug?i.slug:void 0),Object(s.a)(o,t,i&&i.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(d.createElement)(e,Ke({},this.props,{fontSizes:void 0},this.state,{},this.setters))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.attributes,o=e.fontSizes,i=function(e,r){return!t[r]||(n[r]?n[r]!==t[r].slug:t[r].size!==n[e])};if(!Object(p.some)(r,i))return null;var c=Object(p.reduce)(Object(p.pickBy)(r,i),(function(e,t,r){var i=n[r],c=Ve(o,i,n[t]);return e[r]=Ke({},c,{class:Ue(i)}),e}),{});return Ke({},t,{},c)}}]),n}(d.Component)}]),"withFontSizes")},qe=n(259),$e=n(260),Ye=n(261);function Xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ze=[{icon:qe.a,title:Object(U.__)("Align text left"),align:"left"},{icon:$e.a,title:Object(U.__)("Align text center"),align:"center"},{icon:Ye.a,title:Object(U.__)("Align text right"),align:"right"}],Je={position:"bottom right"};var Qe=function(e){var t=e.value,n=e.onChange,r=e.alignmentControls,o=void 0===r?Ze:r,i=e.label,c=void 0===i?Object(U.__)("Change text alignment"):i,a=e.isCollapsed,l=void 0===a||a;function u(e){return function(){return n(t===e?void 0:e)}}var f=Object(p.find)(o,(function(e){return e.align===t}));return Object(d.createElement)(z.Toolbar,{isCollapsed:l,icon:f?f.icon:qe.a,label:c,popoverProps:Je,controls:o.map((function(e){var n=e.align;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{isActive:t===n,role:l?"menuitemradio":void 0,onClick:u(n)})}))})};var et=Object(h.compose)([Y((function(e){return{blockName:e.name}})),function(e){return function(t){var n=t.completers,r=void 0===n?[]:n;return Object(m.hasFilter)("editor.Autocomplete.completers")&&(r=Object(m.applyFilters)("editor.Autocomplete.completers",r.map(p.clone),t.blockName)),Object(d.createElement)(e,Object(u.a)({},t,{completers:r}))}}])(z.Autocomplete),tt=n(7),nt=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(tt.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),rt=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(tt.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),ot=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(tt.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),it=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(tt.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),ct=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(tt.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"}));function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var lt={left:{icon:nt,title:Object(U.__)("Align left")},center:{icon:rt,title:Object(U.__)("Align center")},right:{icon:ot,title:Object(U.__)("Align right")},wide:{icon:it,title:Object(U.__)("Wide width")},full:{icon:ct,title:Object(U.__)("Full width")}},st=["left","center","right","wide","full"],ut=["wide","full"];var dt=Object(h.compose)(Y((function(e){return{clientId:e.clientId}})),Object(g.withSelect)((function(e){return{wideControlsEnabled:(0,e("core/block-editor").getSettings)().alignWide}})))((function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?st:r,i=e.isCollapsed,c=void 0===i||i,a=e.wideControlsEnabled,l=void 0!==a&&a?o:o.filter((function(e){return-1===ut.indexOf(e)})),u=lt[t],f=lt.center;return Object(d.createElement)(z.Toolbar,{isCollapsed:c,icon:u?u.icon:f.icon,label:Object(U.__)("Change alignment"),controls:l.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},lt[e],{isActive:t===e,role:c?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))})}));var ft=Object(g.withSelect)((function(e,t){return{name:(0,e("core/block-editor").getBlockName)(t.clientId)}}))((function(e){var t=e.name;if(!t)return null;var n=Object(i.getBlockType)(t);return n?n.title:null})),bt=function(){var e=Object(g.useDispatch)("core/block-editor"),t=e.selectBlock,n=e.clearSelectedBlock,r=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectionStart,r=t.getSelectedBlockClientId,o=t.getBlockParents,i=r();return{parents:o(i),clientId:i,hasSelection:!!n().clientId}}),[]),o=r.clientId,i=r.parents,c=r.hasSelection;return Object(d.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(U.__)("Block breadcrumb")},Object(d.createElement)("li",{className:c?void 0:"block-editor-block-breadcrumb__current","aria-current":c?void 0:"true"},c&&Object(d.createElement)(z.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:n},Object(U.__)("Document")),!c&&Object(U.__)("Document")),i.map((function(e){return Object(d.createElement)("li",{key:e},Object(d.createElement)(z.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:function(){return t(e)}},Object(d.createElement)(ft,{clientId:e})))})),!!o&&Object(d.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(d.createElement)(ft,{clientId:o})))},pt=Object(z.createSlotFill)("BlockControls"),ht=pt.Fill,mt=pt.Slot,gt=X((function(e){var t=e.controls,n=e.children;return Object(d.createElement)(ht,null,Object(d.createElement)(z.Toolbar,{controls:t}),n)}));gt.Slot=mt;var vt=gt,Ot=Object(z.createSlotFill)("BlockFormatControls"),jt=Ot.Fill,kt=Ot.Slot,yt=X(jt);yt.Slot=kt;var _t=yt,Et=n(262);function St(e){var t=e.icon,n=e.showColors,r=void 0!==n&&n,o=e.className;"block-default"===Object(p.get)(t,["src"])&&(t={src:Et.a});var i=Object(d.createElement)(z.Icon,{icon:t&&t.src?t.src:t}),c=r?{backgroundColor:t&&t.background,color:t&&t.foreground}:{};return Object(d.createElement)("span",{style:c,className:b()("block-editor-block-icon",o,{"has-colors":r})},i)}var wt=n(114),Ct=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(tt.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),It=n(79),Bt=n.n(It),xt=n(22),Tt=n(27),Pt=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(tt.Path,{d:"M5 7v3l-2 1.5V5h11V3l4 3.01L14 9V7H5zm10 6v-3l2-1.5V15H6v2l-4-3.01L6 11v2h9z"})),Nt={insertUsage:{}},Lt={alignWide:!1,colors:[{name:Object(U.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(U.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(U.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(U.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(U.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(U.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(U.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(U.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(U.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"},{name:Object(U.__)("Very light gray"),slug:"very-light-gray",color:"#eeeeee"},{name:Object(U.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(U.__)("Very dark gray"),slug:"very-dark-gray",color:"#313131"}],fontSizes:[{name:Object(U._x)("Small","font size name"),size:13,slug:"small"},{name:Object(U._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(U._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(U._x)("Large","font size name"),size:36,slug:"large"},{name:Object(U._x)("Huge","font size name"),size:48,slug:"huge"}],imageSizes:[{slug:"thumbnail",name:Object(U.__)("Thumbnail")},{slug:"medium",name:Object(U.__)("Medium")},{slug:"large",name:Object(U.__)("Large")},{slug:"full",name:Object(U.__)("Full Size")}],maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,availableLegacyWidgets:{},hasPermissionsToManageWidgets:!1,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalEnableLegacyWidgetBlock:!1,__experimentalBlockDirectory:!1,__experimentalEnableFullSiteEditing:!1,__experimentalEnableFullSiteEditingDemo:!1,__mobileEnablePageTemplates:!1,gradients:[{name:Object(U.__)("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(U.__)("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(U.__)("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(U.__)("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(U.__)("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(U.__)("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(U.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(U.__)("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(U.__)("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(U.__)("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(U.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(U.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function Rt(e,t,n){return[].concat(Object(A.a)(e.slice(0,n)),Object(A.a)(Object(p.castArray)(t)),Object(A.a)(e.slice(n)))}function Mt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(A.a)(e);return o.splice(t,r),Rt(o,e.slice(t,t+r),n)}function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(s.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,Ft(o,r))})),n}function Ht(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(s.a)({},n.clientId,t),Ht(n.innerBlocks,n.clientId))}),{})}function Vt(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.identity,n={},r=Object(A.a)(e);r.length;){var o=r.shift(),i=o.innerBlocks,c=Object(F.a)(o,["innerBlocks"]);r.push.apply(r,Object(A.a)(i)),n[c.clientId]=t(c)}return n}function Ut(e){return Vt(e,(function(e){return Object(p.omit)(e,"attributes")}))}function zt(e){return Vt(e,(function(e){return e.attributes}))}function Gt(e,t){return e===t?Dt({},e):t}function Kt(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&e.clientId===t.clientId&&(n=e.attributes,r=t.attributes,Object(p.isEqual)(Object(p.keys)(n),Object(p.keys)(r)));var n,r}var Wt=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var qt=Object(p.flow)(g.combineReducers,(function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=Dt({},t)).attributes=Object(p.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?Dt({},e,{ref:o}):e}))}return e(t,n)}}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e(t,n);if(r===t)return t;r.cache=t.cache?t.cache:{};var o=function(e){return e.reduce((function(e,n){var r=n;do{e.push(r),r=t.parents[r]}while(r);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(p.mapValues)(Vt(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var i=Object(p.keys)(Vt(n.blocks));n.rootClientId&&i.push(n.rootClientId),r.cache=Dt({},r.cache,{},Wt(o(i)));break;case"UPDATE_BLOCK":case"UPDATE_BLOCK_ATTRIBUTES":r.cache=Dt({},r.cache,{},Wt(o([n.clientId])));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var c=Wt(o(n.replacedClientIds));r.cache=Dt({},Object(p.omit)(r.cache,n.replacedClientIds),{},Object(p.omit)(c,n.replacedClientIds),{},Wt(Object(p.keys)(Vt(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=Dt({},Object(p.omit)(r.cache,n.removedClientIds),{},Wt(Object(p.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCK_TO_POSITION":var a=[n.clientId];n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=Dt({},r.cache,{},Wt(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=Dt({},r.cache,{},Wt(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(p.keys)(Object(p.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=Dt({},r.cache,{},Wt(o(s)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var n=e,r=0;r<n.length;r++){var o;t.order[n[r]]&&(n===e&&(n=Object(A.a)(n)),(o=n).push.apply(o,Object(A.a)(t.order[n[r]])))}return n};if(t)switch(n.type){case"REMOVE_BLOCKS":n=Dt({},n,{type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:r(n.clientIds)});break;case"REPLACE_BLOCKS":n=Dt({},n,{type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:r(n.clientIds)})}return e(t,n)}}),(function(e){return function(t,n){if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);var r=t;t.order[n.rootClientId]&&(r=e(r,{type:"REMOVE_BLOCKS",clientIds:t.order[n.rootClientId]}));var o=r;return n.blocks.length&&(o=e(o,Dt({},n,{type:"INSERT_BLOCKS",index:0}))),o}}),(function(e){return function(t,n){if(t&&"RESET_BLOCKS"===n.type){var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.reduce)(t[n],(function(n,r){return[].concat(Object(A.a)(n),[r],Object(A.a)(e(t,r)))}),[])}(t.order);return Dt({},t,{byClientId:Dt({},Object(p.omit)(t.byClientId,r),{},Ut(n.blocks)),attributes:Dt({},Object(p.omit)(t.attributes,r),{},zt(n.blocks)),order:Dt({},Object(p.omit)(t.order,r),{},Ft(n.blocks)),parents:Dt({},Object(p.omit)(t.parents,r),{},Ht(n.blocks)),cache:Dt({},Object(p.omit)(t.cache,r),{},Object(p.mapValues)(Vt(n.blocks),(function(){return{}})))})}return e(t,n)}}),(function(e){var t,n=!1;return function(r,o){var i=e(r,o),c="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||n;if(r===i&&!c){n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var a=Object(p.get)(r,["isPersistentChange"],!0);return r.isPersistentChange===a?r:Dt({},i,{isPersistentChange:a})}return i=Dt({},i,{isPersistentChange:c?!n:!Kt(o,t)}),t=o,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type,i}}),(function(e){var t=new Set(["RECEIVE_BLOCKS"]);return function(n,r){var o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}))({byClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Ut(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Dt({},e,{},Ut(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(p.omit)(t.updates,"attributes");return Object(p.isEmpty)(n)?e:Dt({},e,Object(s.a)({},t.clientId,Dt({},e[t.clientId],{},n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Dt({},Object(p.omit)(e,t.replacedClientIds),{},Ut(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return zt(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Dt({},e,{},zt(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?Dt({},e,Object(s.a)({},t.clientId,Dt({},e[t.clientId],{},t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(!e[t.clientId])return e;var n=Object(p.reduce)(t.attributes,(function(n,r,o){return r!==n[o]&&((n=Gt(e[t.clientId],n))[o]=r),n}),e[t.clientId]);return n===e[t.clientId]?e:Dt({},e,Object(s.a)({},t.clientId,n));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Dt({},Object(p.omit)(e,t.replacedClientIds),{},zt(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Ft(t.blocks);case"RECEIVE_BLOCKS":return Dt({},e,{},Object(p.omit)(Ft(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],i=Ft(t.blocks,r),c=t.index,a=void 0===c?o.length:c;return Dt({},e,{},i,Object(s.a)({},r,Rt(o,i[r],a)));case"MOVE_BLOCK_TO_POSITION":var l,u=t.fromRootClientId,d=void 0===u?"":u,f=t.toRootClientId,b=void 0===f?"":f,h=t.clientId,m=t.index,g=void 0===m?e[b].length:m;if(d===b){var v=e[b],O=v.indexOf(h);return Dt({},e,Object(s.a)({},b,Mt(e[b],O,g)))}return Dt({},e,(l={},Object(s.a)(l,d,Object(p.without)(e[d],h)),Object(s.a)(l,b,Rt(e[b],h,g)),l));case"MOVE_BLOCKS_UP":var j=t.clientIds,k=t.rootClientId,y=void 0===k?"":k,_=Object(p.first)(j),E=e[y];if(!E.length||_===Object(p.first)(E))return e;var S=E.indexOf(_);return Dt({},e,Object(s.a)({},y,Mt(E,S,S-1,j.length)));case"MOVE_BLOCKS_DOWN":var w=t.clientIds,C=t.rootClientId,I=void 0===C?"":C,B=Object(p.first)(w),x=Object(p.last)(w),T=e[I];if(!T.length||x===Object(p.last)(T))return e;var P=T.indexOf(B);return Dt({},e,Object(s.a)({},I,Mt(T,P,P+1,w.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var N=t.clientIds;if(!t.blocks)return e;var L=Ft(t.blocks);return Object(p.flow)([function(e){return Object(p.omit)(e,t.replacedClientIds)},function(e){return Dt({},e,{},Object(p.omit)(L,""))},function(e){return Object(p.mapValues)(e,(function(e){return Object(p.reduce)(e,(function(e,t){return t===N[0]?[].concat(Object(A.a)(e),Object(A.a)(L[""])):(-1===N.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.flow)([function(e){return Object(p.omit)(e,t.removedClientIds)},function(e){return Object(p.mapValues)(e,(function(e){return p.without.apply(void 0,[e].concat(Object(A.a)(t.removedClientIds)))}))}])(e)}return e},parents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Ht(t.blocks);case"RECEIVE_BLOCKS":return Dt({},e,{},Ht(t.blocks));case"INSERT_BLOCKS":return Dt({},e,{},Ht(t.blocks,t.rootClientId||""));case"MOVE_BLOCK_TO_POSITION":return Dt({},e,Object(s.a)({},t.clientId,t.toRootClientId||""));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Dt({},Object(p.omit)(e,t.replacedClientIds),{},Ht(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e}});function $t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;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?{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;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];return r?r.clientId===e.clientId?e:{clientId:r.clientId}:{}}return e}var Yt=Object(g.combineReducers)({blocks:qt,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isDraggingBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return!0;case"STOP_DRAGGING_BLOCKS":return!1}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selectionStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset};case"RESET_SELECTION":return t.selectionStart;case"MULTI_SELECT":return{clientId:t.start}}return $t(e,t)},selectionEnd:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset};case"RESET_SELECTION":return t.selectionEnd;case"MULTI_SELECT":return{clientId:t.end}}return $t(e,t)},isMultiSelecting:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(e,t){return"SELECT_BLOCK"===t.type?t.initialPosition:"REMOVE_BLOCKS"===t.type?e:void 0},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){var n=t.clientId;return Dt({},e,Object(s.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(p.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(p.isEqual)(e[n],t.settings)?e:Dt({},e,Object(s.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(p.omit)(e,n):e}return e},insertionPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r};case"HIDE_INSERTION_POINT":return null}return e},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return Dt({},e,{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lt,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return Dt({},e,{},t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nt,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((function(e,n){var r=n.name,o={name:n.name};return Object(i.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),Dt({},e,{insertUsage:Dt({},e.insertUsage,Object(s.a)({},r,{time:t.time,count:e.insertUsage[r]?e.insertUsage[r].count+1:1,insert:o}))})}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return Object(s.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return Object(s.a)({},t.clientId,t.attributes)}return null},isNavigationMode:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode: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"STOP_TYPING":return e}}}),Xt=n(84),Zt=n.n(Xt),Jt=n(235),Qt=n.n(Jt),en=n(31),tn=n(23),nn=n.n(tn);function rn(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return{type:"SELECT",storeName:e,selectorName:t,args:r}}var on={SELECT:Object(g.createRegistryControl)((function(e){return function(t){var n,r=t.storeName,o=t.selectorName,i=t.args;return(n=e.select(r))[o].apply(n,Object(A.a)(i))}}))};function cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cn(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ln=nn.a.mark(On),sn=nn.a.mark(wn),un=nn.a.mark(Cn),dn=nn.a.mark(Ln),fn=nn.a.mark(Fn),bn=nn.a.mark(Vn),pn=nn.a.mark(qn),hn=nn.a.mark(dr),mn=nn.a.mark(fr),gn=nn.a.mark(br),vn=nn.a.mark(pr);function On(){return nn.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rn("core/block-editor","getBlockCount");case 2:if(0!==e.sent){e.next=6;break}return e.next=6,or();case 6:case"end":return e.stop()}}),ln)}function jn(e){return{type:"RESET_BLOCKS",blocks:e}}function kn(e,t){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t}}function yn(e){return{type:"RECEIVE_BLOCKS",blocks:e}}function _n(e,t){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientId:e,attributes:t}}function En(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function Sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function wn(e){var t;return nn.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,rn("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,Sn(t,-1);case 6:case"end":return n.stop()}}),sn)}function Cn(e){var t;return nn.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,rn("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,Sn(t);case 6:case"end":return n.stop()}}),un)}function In(){return{type:"START_MULTI_SELECT"}}function Bn(){return{type:"STOP_MULTI_SELECT"}}function xn(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function Tn(){return{type:"CLEAR_SELECTED_BLOCK"}}function Pn(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function Nn(e,t){var n=Object(p.get)(t,["__experimentalPreferredStyleVariations","value"],{});return e.map((function(e){var t=e.name;if(!n[t])return e;var r=Object(p.get)(e,["attributes","className"]);if(Object(p.includes)(r,"is-style-"))return e;var o=e.attributes,i=void 0===o?{}:o,c=n[t];return an({},e,{attributes:an({},i,{className:"".concat(r||""," is-style-").concat(c).trim()})})}))}function Ln(e,t,n){var r,o,i;return nn.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return e=Object(p.castArray)(e),c.t0=Nn,c.t1=Object(p.castArray)(t),c.next=5,rn("core/block-editor","getSettings");case 5:return c.t2=c.sent,t=(0,c.t0)(c.t1,c.t2),c.next=9,rn("core/block-editor","getBlockRootClientId",Object(p.first)(e));case 9:r=c.sent,o=0;case 11:if(!(o<t.length)){c.next=21;break}return i=t[o],c.next=15,rn("core/block-editor","canInsertBlockType",i.name,r);case 15:if(c.sent){c.next=18;break}return c.abrupt("return");case 18:o++,c.next=11;break;case 21:return c.next=23,{type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n};case 23:return c.delegateYield(On(),"t3",24);case 24:case"end":return c.stop()}}),dn)}function Rn(e,t){return Ln(e,t)}function Mn(e){return function(t,n){return{clientIds:Object(p.castArray)(t),type:e,rootClientId:n}}}var An=Mn("MOVE_BLOCKS_DOWN"),Dn=Mn("MOVE_BLOCKS_UP");function Fn(e){var t,n,r,o,i,c,a=arguments;return nn.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return t=a.length>1&&void 0!==a[1]?a[1]:"",n=a.length>2&&void 0!==a[2]?a[2]:"",r=a.length>3?a[3]:void 0,l.next=5,rn("core/block-editor","getTemplateLock",t);case 5:if("all"!==(o=l.sent)){l.next=8;break}return l.abrupt("return");case 8:if(i={type:"MOVE_BLOCK_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientId:e,index:r},t!==n){l.next=13;break}return l.next=12,i;case 12:return l.abrupt("return");case 13:if("insert"!==o){l.next=15;break}return l.abrupt("return");case 15:return l.next=17,rn("core/block-editor","getBlockName",e);case 17:return c=l.sent,l.next=20,rn("core/block-editor","canInsertBlockType",c,n);case 20:if(!l.sent){l.next=24;break}return l.next=24,i;case 24:case"end":return l.stop()}}),fn)}function Hn(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return Vn([e],t,n,r)}function Vn(e,t,n){var r,o,i,c,a,l,s,u,d=arguments;return nn.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return r=!(d.length>3&&void 0!==d[3])||d[3],f.t0=Nn,f.t1=Object(p.castArray)(e),f.next=5,rn("core/block-editor","getSettings");case 5:f.t2=f.sent,e=(0,f.t0)(f.t1,f.t2),o=[],i=!0,c=!1,a=void 0,f.prev=11,l=e[Symbol.iterator]();case 13:if(i=(s=l.next()).done){f.next=22;break}return u=s.value,f.next=17,rn("core/block-editor","canInsertBlockType",u.name,n);case 17:f.sent&&o.push(u);case 19:i=!0,f.next=13;break;case 22:f.next=28;break;case 24:f.prev=24,f.t3=f.catch(11),c=!0,a=f.t3;case 28:f.prev=28,f.prev=29,i||null==l.return||l.return();case 31:if(f.prev=31,!c){f.next=34;break}throw a;case 34:return f.finish(31);case 35:return f.finish(28);case 36:if(!o.length){f.next=38;break}return f.abrupt("return",{type:"INSERT_BLOCKS",blocks:o,index:t,rootClientId:n,time:Date.now(),updateSelection:r});case 38:case"end":return f.stop()}}),bn,null,[[11,24,28,36],[29,,31,35]])}function Un(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function zn(){return{type:"HIDE_INSERTION_POINT"}}function Gn(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function Kn(){return{type:"SYNCHRONIZE_TEMPLATE"}}function Wn(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function qn(e){var t,n,r=arguments;return nn.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(t=!(r.length>1&&void 0!==r[1])||r[1],e&&e.length){o.next=3;break}return o.abrupt("return");case 3:return e=Object(p.castArray)(e),o.next=6,rn("core/block-editor","getBlockRootClientId",e[0]);case 6:return n=o.sent,o.next=9,rn("core/block-editor","getTemplateLock",n);case 9:if(!o.sent){o.next=12;break}return o.abrupt("return");case 12:if(!t){o.next=15;break}return o.next=15,wn(e[0]);case 15:return o.next=17,{type:"REMOVE_BLOCKS",clientIds:e};case 17:return o.delegateYield(On(),"t0",18);case 18:case"end":return o.stop()}}),pn)}function $n(e,t){return qn([e],t)}function Yn(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,time:Date.now()}}function Xn(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function Zn(){return{type:"START_TYPING"}}function Jn(){return{type:"STOP_TYPING"}}function Qn(){return{type:"START_DRAGGING_BLOCKS"}}function er(){return{type:"STOP_DRAGGING_BLOCKS"}}function tr(){return{type:"ENTER_FORMATTED_TEXT"}}function nr(){return{type:"EXIT_FORMATTED_TEXT"}}function rr(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function or(e,t,n){var r=Object(i.getDefaultBlockName)();if(r)return Hn(Object(i.createBlock)(r,e),n,t)}function ir(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function cr(e){return{type:"UPDATE_SETTINGS",settings:e}}function ar(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function lr(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function sr(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function ur(){return{type:"MARK_AUTOMATIC_CHANGE"}}function dr(){var e,t=arguments;return nn.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=!(t.length>0&&void 0!==t[0])||t[0],n.next=3,{type:"SET_NAVIGATION_MODE",isNavigationMode:e};case 3:e?Object(ye.speak)(Object(U.__)("You are currently in navigation mode. Navigate blocks using the Tab key. To exit navigation mode and edit the selected block, press Enter.")):Object(ye.speak)(Object(U.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),hn)}function fr(e){var t,n,r,o,c;return nn.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(e||e.length){a.next=2;break}return a.abrupt("return");case 2:return a.next=4,rn("core/block-editor","getBlocksByClientId",e);case 4:return t=a.sent,a.next=7,rn("core/block-editor","getBlockRootClientId",e[0]);case 7:if(n=a.sent,!Object(p.some)(t,(function(e){return!e}))){a.next=10;break}return a.abrupt("return");case 10:if(r=t.map((function(e){return e.name})),!Object(p.some)(r,(function(e){return!Object(i.hasBlockSupport)(e,"multiple",!0)}))){a.next=13;break}return a.abrupt("return");case 13:return a.next=15,rn("core/block-editor","getBlockIndex",Object(p.last)(Object(p.castArray)(e)),n);case 15:return o=a.sent,c=t.map((function(e){return Object(i.cloneBlock)(e)})),a.next=19,Vn(c,o+1,n);case 19:if(!(c.length>1)){a.next=22;break}return a.next=22,xn(Object(p.first)(c).clientId,Object(p.last)(c).clientId);case 22:case"end":return a.stop()}}),mn)}function br(e){var t,n;return nn.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,rn("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,rn("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,rn("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,or({},t,n);case 15:case"end":return r.stop()}}),gn)}function pr(e){var t,n;return nn.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,rn("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,rn("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,rn("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,or({},t,n+1);case 15:case"end":return r.stop()}}),vn)}var hr=n(39);function mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vr=3,Or=2,jr=1,kr=0,yr=Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(z.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(d.createElement)(z.G,null,Object(d.createElement)(z.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 Er(e,t){var n=e.blocks.byClientId[t];return n?n.name:null}function Sr(e,t){var n=e.blocks.byClientId[t];return!!n&&n.isValid}function wr(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}var Cr=Object(hr.a)((function(e,t){var n=e.blocks.byClientId[t];return n?gr({},n,{attributes:wr(e,t),innerBlocks:Br(e,t)}):null}),(function(e,t){return[e.blocks.cache[t]]})),Ir=Object(hr.a)((function(e,t){var n=e.blocks.byClientId[t];return n?gr({},n,{attributes:wr(e,t)}):null}),(function(e,t){return[e.blocks.byClientId[t],e.blocks.attributes[t]]})),Br=Object(hr.a)((function(e,t){return Object(p.map)(lo(e,t),(function(t){return Cr(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),xr=function e(t,n){return Object(p.flatMap)(n,(function(n){var r=lo(t,n);return[].concat(Object(A.a)(r),Object(A.a)(e(t,r)))}))},Tr=Object(hr.a)((function(e){var t=lo(e);return[].concat(Object(A.a)(t),Object(A.a)(xr(e,t)))}),(function(e){return[e.blocks.order]})),Pr=Object(hr.a)((function(e,t){var n=Tr(e);return t?Object(p.reduce)(n,(function(n,r){return e.blocks.byClientId[r].name===t?n+1:n}),0):n.length}),(function(e){return[e.blocks.order,e.blocks.byClientId]})),Nr=Object(hr.a)((function(e,t){return Object(p.map)(Object(p.castArray)(t),(function(t){return Cr(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function Lr(e,t){return lo(e,t).length}function Rr(e){return e.selectionStart}function Mr(e){return e.selectionEnd}function Ar(e){return e.selectionStart.clientId}function Dr(e){return e.selectionEnd.clientId}function Fr(e){var t=Qr(e).length;return t||(e.selectionStart.clientId?1:0)}function Hr(e){var t=e.selectionStart,n=e.selectionEnd;return!!t.clientId&&t.clientId===n.clientId}function Vr(e){var t=e.selectionStart,n=e.selectionEnd,r=t.clientId;return r&&r===n.clientId?r:null}function Ur(e){var t=Vr(e);return t?Cr(e,t):null}function zr(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}var Gr=Object(hr.a)((function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],o=t;e.blocks.parents[o];)o=e.blocks.parents[o],r.push(o);return n?r:r.reverse()}),(function(e){return[e.blocks.parents]})),Kr=Object(hr.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Gr(e,t,r);return Object(p.map)(Object(p.filter)(Object(p.map)(o,(function(t){return{id:t,name:Er(e,t)}})),{name:n}),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function Wr(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function qr(e,t){for(var n,r=Vr(e),o=[].concat(Object(A.a)(Gr(e,t)),[t]),i=[].concat(Object(A.a)(Gr(e,r)),[r]),c=Math.min(o.length,i.length),a=0;a<c&&o[a]===i[a];a++)n=o[a];return n}function $r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=Vr(e)),void 0===t&&(t=n<0?to(e):no(e)),!t)return null;var r=zr(e,t);if(null===r)return null;var o=e.blocks.order,i=o[r],c=i.indexOf(t),a=c+1*n;return a<0?null:a===i.length?null:i[a]}function Yr(e,t){return $r(e,t,-1)}function Xr(e,t){return $r(e,t,1)}function Zr(e){return e.initialPosition}var Jr=Object(hr.a)((function(e){var t=e.selectionStart,n=e.selectionEnd;if(void 0===t.clientId||void 0===n.clientId)return _r;if(t.clientId===n.clientId)return[t.clientId];var r=zr(e,t.clientId);if(null===r)return _r;var o=lo(e,r),i=o.indexOf(t.clientId),c=o.indexOf(n.clientId);return i>c?o.slice(c,i+1):o.slice(i,c+1)}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function Qr(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?_r:Jr(e)}var eo=Object(hr.a)((function(e){var t=Qr(e);return t.length?t.map((function(t){return Cr(e,t)})):_r}),(function(e){return[].concat(Object(A.a)(Jr.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function to(e){return Object(p.first)(Qr(e))||null}function no(e){return Object(p.last)(Qr(e))||null}function ro(e,t){return to(e)===t}function oo(e,t){return-1!==Qr(e).indexOf(t)}var io=Object(hr.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=oo(e,n=zr(e,n));return r}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function co(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:t.clientId||null}function ao(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:n.clientId||null}function lo(e,t){return e.blocks.order[t||""]||_r}function so(e,t,n){return lo(e,n).indexOf(t)}function uo(e,t){var n=e.selectionStart,r=e.selectionEnd;return n.clientId===r.clientId&&n.clientId===t}function fo(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(p.some)(lo(e,t),(function(t){return uo(e,t)||oo(e,t)||n&&fo(e,t,n)}))}function bo(e,t){if(!t)return!1;var n=Qr(e),r=n.indexOf(t);return r>-1&&r<n.length-1}function po(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId!==n.clientId}function ho(e){return e.isMultiSelecting}function mo(e){return e.isSelectionEnabled}function go(e,t){return e.blocksMode[t]||"visual"}function vo(e){return e.isTyping}function Oo(e){return e.isDraggingBlocks}function jo(e){return e.isCaretWithinFormattedText}function ko(e){var t,n,r=e.insertionPoint,o=e.selectionEnd;if(null!==r)return r;var i=o.clientId;return i?(t=zr(e,i)||void 0,n=so(e,o.clientId,t)+1):n=lo(e).length,{rootClientId:t,index:n}}function yo(e){return null!==e.insertionPoint}function _o(e){return e.template.isValid}function Eo(e){return e.settings.template}function So(e,t){if(!t)return e.settings.templateLock;var n=No(e,t);return n?n.templateLock:null}var wo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(p.isBoolean)(e)?e:Object(p.isArray)(e)?!(!Object(p.includes)(e,"core/post-content")||null!==t)||Object(p.includes)(e,t):n},o=Object(i.getBlockType)(t);if(!o)return!1;var c=Lo(e),a=c.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!So(e,n);if(s)return!1;var u=No(e,n),d=Object(p.get)(u,["allowedBlocks"]),f=r(d,t),b=o.parent,h=Er(e,n),m=r(b,h);return null!==f&&null!==m?f||m:null!==f?f:null===m||m},Co=Object(hr.a)(wo,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function Io(e,t){return Object(p.get)(e.preferences.insertUsage,[t],null)}var Bo=function(e,t,n){return!!Object(i.hasBlockSupport)(t,"inserter",!0)&&wo(e,t.name,n)},xo=Object(hr.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(e,t,n){return n?vr:t>0?Or:"common"===e?jr:kr},r=function(e,t){if(!e)return t;var 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}},o=function(t){var o=t.name,c=!1;Object(i.hasBlockSupport)(t.name,"multiple",!0)||(c=Object(p.some)(Nr(e,Tr(e)),{name:t.name}));var a=Object(p.isArray)(t.parent),l=Io(e,o)||{},s=l.time,u=l.count,d=void 0===u?0:u,f=t.variations.filter((function(e){var t=e.scope;return!t||t.includes("inserter")}));return{id:o,name:t.name,initialAttributes:{},title:t.title,description:t.description,icon:t.icon,category:t.category,keywords:t.keywords,variations:f,example:t.example,isDisabled:c,utility:n(t.category,d,a),frecency:r(s,d)}},c=function(t){var o,c="core/block/".concat(t.id),a=Ao(e,t.id);1===a.length&&(o=Object(i.getBlockType)(a[0].name));var l=Io(e,c)||{},s=l.time,u=l.count,d=void 0===u?0:u,f=n("reusable",d,!1),b=r(s,d);return{id:c,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:o?o.icon:yr,category:"reusable",keywords:[],isDisabled:!1,utility:f,frecency:b}},a=Object(i.getBlockTypes)().filter((function(n){return Bo(e,n,t)})).map(o),l=wo(e,"core/block",t)?Ho(e).map(c):[];return Object(p.orderBy)([].concat(Object(A.a)(a),Object(A.a)(l)),["utility","frecency"],["desc","desc"])}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Ho(e),Object(i.getBlockTypes)()]})),To=Object(hr.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(p.some)(Object(i.getBlockTypes)(),(function(n){return Bo(e,n,t)}));if(n)return!0;var r=wo(e,"core/block",t)&&Ho(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Ho(e),Object(i.getBlockTypes)()]})),Po=Object(hr.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(p.filter)(Object(i.getBlockTypes)(),(function(n){return Bo(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(i.getBlockTypes)()]}));function No(e,t){return e.blockListSettings[t]}function Lo(e){return e.settings}function Ro(e){return e.blocks.isPersistentChange}var Mo=Object(hr.a)((function(e,t){return Object(p.filter)(e.blockListSettings,(function(e,n){return t.includes(n)}))}),(function(e){return[e.blockListSettings]})),Ao=Object(hr.a)((function(e,t){var n=Object(p.find)(Ho(e),(function(e){return e.id===t}));return n?Object(i.parse)(n.content):null}),(function(e){return[Ho(e)]}));function Do(e){return e.blocks.isIgnoredChange}function Fo(e){return e.lastBlockAttributesChange}function Ho(e){return Object(p.get)(e,["settings","__experimentalReusableBlocks"],_r)}function Vo(e){return e.isNavigationMode}function Uo(e){return!!e.automaticChangeStatus}function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ko={MERGE_BLOCKS:function(e,t){var n=t.dispatch,r=t.getState(),o=Object(D.a)(e.blocks,2),a=o[0],l=o[1],s=Cr(r,a),u=Object(i.getBlockType)(s.name);if(u.merge){var d=Cr(r,l),f=Object(i.getBlockType)(d.name),b=Rr(r),h=b.clientId,m=b.attributeKey,g=b.offset,v=(h===a?u:f).attributes[m],O=(h===a||h===l)&&void 0!==m&&void 0!==g&&!!v;v||("number"==typeof m?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 ".concat(Object(en.a)(m))):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));var j=Object(i.cloneBlock)(s),k=Object(i.cloneBlock)(d);if(O){var y=h===a?j:k,_=y.attributes[m],E=v.multiline,S=v.__unstableMultilineWrapperTags,w=v.__unstablePreserveWhiteSpace,C=Object(c.insert)(Object(c.create)({html:_,multilineTag:E,multilineWrapperTags:S,preserveWhiteSpace:w}),"†",g,g);y.attributes[m]=Object(c.toHTMLString)({value:C,multilineTag:E,preserveWhiteSpace:w})}var I=s.name===d.name?[k]:Object(i.switchToBlockType)(k,s.name);if(I&&I.length){var B=u.merge(j.attributes,I[0].attributes);if(O){var x=Object(p.findKey)(B,(function(e){return"string"==typeof e&&-1!==e.indexOf("†")})),T=B[x],P=u.attributes[x],N=P.multiline,L=P.__unstableMultilineWrapperTags,R=P.__unstablePreserveWhiteSpace,M=Object(c.create)({html:T,multilineTag:N,multilineWrapperTags:L,preserveWhiteSpace:R}),F=M.text.indexOf("†"),H=Object(c.remove)(M,F,F+1),V=Object(c.toHTMLString)({value:H,multilineTag:N,preserveWhiteSpace:R});B[x]=V,n(rr(s.clientId,x,F,F))}n(Ln([s.clientId,d.clientId],[Go({},s,{attributes:Go({},s.attributes,{},B)})].concat(Object(A.a)(I.slice(1)))))}}else n(Sn(s.clientId))},RESET_BLOCKS:[function(e,t){var n=t.getState(),r=Eo(n),o=So(n),c=!r||"all"!==o||Object(i.doBlocksMatchTemplate)(e.blocks,r);if(c!==_o(n))return Gn(c)}],MULTI_SELECT:function(e,t){var n=Fr((0,t.getState)());Object(ye.speak)(Object(U.sprintf)(Object(U._n)("%s block selected.","%s blocks selected.",n),n),"assertive")},SYNCHRONIZE_TEMPLATE:function(e,t){var n=(0,t.getState)(),r=Br(n),o=Eo(n);return jn(Object(i.synchronizeBlocksWithTemplate)(r,o))},MARK_AUTOMATIC_CHANGE:function(e,t){var n=window,r=n.setTimeout,o=n.requestIdleCallback;(void 0===o?function(e){return r(e,100)}:o)((function(){t.dispatch({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))}};var Wo=function(e){var t,n=[Zt()(Ko),Qt.a],r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}};return t=n.map((function(e){return e(o)})),r=p.flowRight.apply(void 0,Object(A.a)(t))(e.dispatch),e.dispatch=r,e};function qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var $o={reducer:Yt,selectors:o,actions:r,controls:on},Yo=Object(g.registerStore)("core/block-editor",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qo(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},$o,{persist:["preferences"]}));Wo(Yo);var Xo=Object(h.createHigherOrderComponent)((function(e){return Object(g.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,i=Object(F.a)(t,["useSubRegistry","registry"]);if(!r)return Object(d.createElement)(e,Object(u.a)({registry:o},i));var c=Object(d.useState)(null),a=Object(D.a)(c,2),l=a[0],s=a[1];return Object(d.useEffect)((function(){var e=Object(g.createRegistry)({},o),t=e.registerStore("core/block-editor",$o);Wo(t),s(e)}),[o]),l?Object(d.createElement)(g.RegistryProvider,{value:l},Object(d.createElement)(e,Object(u.a)({registry:l},i))):null}))}),"withRegistryProvider"),Zo=function(e){function t(){return Object(_.a)(this,t),Object(S.a)(this,Object(w.a)(t).apply(this,arguments))}return Object(I.a)(t,e),Object(E.a)(t,[{key:"componentDidMount",value:function(){this.props.updateSettings(this.props.settings),this.props.resetBlocks(this.props.value),this.attachChangeObserver(this.props.registry),this.isSyncingOutcomingValue=[]}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.settings,r=t.updateSettings,o=t.value,i=t.resetBlocks,c=t.selectionStart,a=t.selectionEnd,l=t.resetSelection,s=t.registry;n!==e.settings&&r(n),s!==e.registry&&this.attachChangeObserver(s),this.isSyncingOutcomingValue.includes(o)?Object(p.last)(this.isSyncingOutcomingValue)===o&&(this.isSyncingOutcomingValue=[]):o!==e.value&&(this.isSyncingOutcomingValue=[],this.isSyncingIncomingValue=o,i(o),c&&a&&l(c,a))}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe()}},{key:"attachChangeObserver",value:function(e){var t=this;this.unsubscribe&&this.unsubscribe();var n=e.select("core/block-editor"),r=n.getBlocks,o=n.getSelectionStart,i=n.getSelectionEnd,c=n.isLastBlockChangePersistent,a=n.__unstableIsLastBlockChangeIgnored,l=r(),s=c();this.unsubscribe=e.subscribe((function(){var e=t.props,n=e.onChange,u=void 0===n?p.noop:n,d=e.onInput,f=void 0===d?p.noop:d,b=r(),h=c();if(b!==l&&(t.isSyncingIncomingValue||a()))return t.isSyncingIncomingValue=null,l=b,void(s=h);if(b!==l||h&&!s){b!==l&&t.isSyncingOutcomingValue.push(b),l=b,s=h;var m=o(),g=i();s?u(l,{selectionStart:m,selectionEnd:g}):f(l,{selectionStart:m,selectionEnd:g})}}))}},{key:"render",value:function(){return this.props.children}}]),t}(d.Component),Jo=Object(h.compose)([Xo,Object(g.withDispatch)((function(e){var t=e("core/block-editor");return{updateSettings:t.updateSettings,resetBlocks:t.resetBlocks,resetSelection:t.resetSelection}}))])(Zo),Qo=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(tt.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var ei=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(d.createElement)("div",{className:b()(t,"block-editor-warning")},Object(d.createElement)("div",{className:"block-editor-warning__contents"},Object(d.createElement)("p",{className:"block-editor-warning__message"},r),(d.Children.count(n)>0||o)&&Object(d.createElement)("div",{className:"block-editor-warning__actions"},d.Children.count(n)>0&&d.Children.map(n,(function(e,t){return Object(d.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(d.createElement)(z.Dropdown,{className:"block-editor-warning__secondary",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(z.Button,{icon:Qo,label:Object(U.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(){return Object(d.createElement)(z.MenuGroup,null,o.map((function(e,t){return Object(d.createElement)(z.MenuItem,{onClick:e.onClick,key:t},e.title)})))}}))))},ti=n(236),ni=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,i=e.actionText,c=e.className;return Object(d.createElement)("div",{className:c},Object(d.createElement)("div",{className:"block-editor-block-compare__content"},Object(d.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(d.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(d.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(d.createElement)("div",{className:"block-editor-block-compare__action"},Object(d.createElement)(z.Button,{isSecondary:!0,tabIndex:"0",onClick:o},i)))},ri=function(e){function t(){return Object(_.a)(this,t),Object(S.a)(this,Object(w.a)(t).apply(this,arguments))}return Object(I.a)(t,e),Object(E.a)(t,[{key:"getDifference",value:function(e,t){return Object(ti.diffChars)(e,t).map((function(e,t){var n=b()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(d.createElement)("span",{key:t,className:n},e.value)}))}},{key:"getOriginalContent",value:function(e){return{rawContent:e.originalContent,renderedContent:Object(i.getSaveElement)(e.name,e.attributes)}}},{key:"getConvertedContent",value:function(e){var t=Object(p.castArray)(e),n=t.map((function(e){return Object(i.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),r=t.map((function(e){return Object(i.getSaveElement)(e.name,e.attributes,e.innerBlocks)}));return{rawContent:n.join(""),renderedContent:r}}},{key:"render",value:function(){var e=this.props,t=e.block,n=e.onKeep,r=e.onConvert,o=e.convertor,i=e.convertButtonText,c=this.getOriginalContent(t),a=this.getConvertedContent(o(t)),l=this.getDifference(c.rawContent,a.rawContent);return Object(d.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(d.createElement)(ni,{title:Object(U.__)("Current"),className:"block-editor-block-compare__current",action:n,actionText:Object(U.__)("Convert to HTML"),rawContent:c.rawContent,renderedContent:c.renderedContent}),Object(d.createElement)(ni,{title:Object(U.__)("After Conversion"),className:"block-editor-block-compare__converted",action:r,actionText:i,rawContent:l,renderedContent:a.renderedContent}))}}]),t}(d.Component),oi=function(e){function t(e){var n;return Object(_.a)(this,t),(n=Object(S.a)(this,Object(w.a)(t).call(this,e))).state={compare:!1},n.onCompare=n.onCompare.bind(Object(C.a)(n)),n.onCompareClose=n.onCompareClose.bind(Object(C.a)(n)),n}return Object(I.a)(t,e),Object(E.a)(t,[{key:"onCompare",value:function(){this.setState({compare:!0})}},{key:"onCompareClose",value:function(){this.setState({compare:!1})}},{key:"render",value:function(){var e=this.props,t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,c=e.block,a=!!Object(i.getBlockType)("core/html"),l=this.state.compare,s=[{title:Object(U.__)("Convert to Classic Block"),onClick:r},{title:Object(U.__)("Attempt Block Recovery"),onClick:o}];return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(ei,{actions:[Object(d.createElement)(z.Button,{key:"convert",onClick:this.onCompare,isSecondary:a,isPrimary:!a},Object(U._x)("Resolve","imperative verb")),a&&Object(d.createElement)(z.Button,{key:"edit",onClick:t,isPrimary:!0},Object(U.__)("Convert to HTML"))],secondaryActions:s},Object(U.__)("This block contains unexpected or invalid content.")),l&&Object(d.createElement)(z.Modal,{title:Object(U.__)("Resolve Block"),onRequestClose:this.onCompareClose,className:"block-editor-block-compare"},Object(d.createElement)(ri,{block:c,onKeep:t,onConvert:n,convertor:ii,convertButtonText:Object(U.__)("Convert to Blocks")})))}}]),t}(d.Component),ii=function(e){return Object(i.rawHandler)({HTML:e.originalContent})},ci=Object(h.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(g.withDispatch)((function(e,t){var n=t.block,r=e("core/block-editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(i.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(i.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,ii(n))},attemptBlockRecovery:function(){var e,t,o,c;r(n.clientId,(t=(e=n).name,o=e.attributes,c=e.innerBlocks,Object(i.createBlock)(t,o,c)))}}}))])(oi),ai=Object(d.createElement)(ei,{className:"block-editor-block-list__block-crash-warning"},Object(U.__)("This block has encountered an error and cannot be previewed.")),li=function(){return ai},si=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).state={hasError:!1},e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"componentDidCatch",value:function(e){this.props.onError(e),this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),t}(d.Component),ui=n(72),di=n.n(ui);var fi=function(e){var t=e.clientId,n=Object(d.useState)(""),r=Object(D.a)(n,2),o=r[0],c=r[1],a=Object(g.useSelect)((function(e){return{block:e("core/block-editor").getBlock(t)}}),[t]).block,l=Object(g.useDispatch)("core/block-editor").updateBlock;return Object(d.useEffect)((function(){c(Object(i.getBlockContent)(a))}),[a]),Object(d.createElement)(di.a,{className:"block-editor-block-list__block-html-textarea",value:o,onBlur:function(){var e=Object(i.getBlockType)(a.name),n=Object(i.getBlockAttributes)(e,o,a.attributes),r=o||Object(i.getSaveContent)(e,n),s=!o||Object(i.isValidBlockContent)(e,n,r);l(t,{attributes:n,originalContent:r,isValid:s}),o||c({content:r})},onChange:function(e){return c(e.target.value)}})},bi=n(74),pi=n(28);function hi(e){return document.getElementById("block-"+e)}function mi(e,t){return t.closest(".block-editor-block-list__block")===e}function gi(e){e.nodeType!==e.ELEMENT_NODE&&(e=e.parentElement);var t=e.closest(".block-editor-block-list__block");if(t)return t.id.slice("block-".length)}var vi=function(e){return e+1},Oi=function(e){return{top:e.offsetTop,left:e.offsetLeft}};var ji=function(e,t,n,r,o){var i=Object(h.useReducedMotion)()||!r,c=Object(d.useReducer)(vi,0),a=Object(D.a)(c,2),l=a[0],s=a[1],u=Object(d.useReducer)(vi,0),f=Object(D.a)(u,2),b=f[0],p=f[1],m=Object(d.useState)({x:0,y:0,scrollTop:0}),g=Object(D.a)(m,2),v=g[0],O=g[1],j=e.current?Oi(e.current):null,k=Object(d.useMemo)((function(){return!!n&&Object(pi.getScrollContainer)(e.current)}),[n]);Object(d.useLayoutEffect)((function(){l&&p()}),[l]),Object(d.useLayoutEffect)((function(){if(i){if(n&&k){e.current.style.transform="none";var t=Oi(e.current);k.scrollTop=k.scrollTop-j.top+t.top}}else{e.current.style.transform="none";var r=Oi(e.current),o={x:j?j.left-r.left:0,y:j?j.top-r.top:0,scrollTop:j&&k?k.scrollTop-j.top+r.top:0};e.current.style.transform=0===o.x&&0===o.y?void 0:"translate3d(".concat(o.x,"px,").concat(o.y,"px,0)"),s(),O(o)}}),[o]);var y=Object(bi.useSpring)({from:{x:v.x,y:v.y},to:{x:0,y:0},reset:l!==b,config:{mass:5,tension:2e3,friction:200},immediate:i,onFrame:function(e){n&&k&&!i&&e.y&&(k.scrollTop=v.scrollTop+e.y)}});return i?{}:{transformOrigin:"center",transform:Object(bi.interpolate)([y.x,y.y],(function(e,t){return 0===e&&0===t?void 0:"translate3d(".concat(e,"px,").concat(t,"px,0)")})),zIndex:Object(bi.interpolate)([y.x,y.y],(function(e,n){return!t||0===e&&0===n?void 0:"1"}))}};function ki(e,t){for(var n="start"===t?"firstChild":"lastChild",r="start"===t?"nextSibling":"previousSibling";e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/^[ \t\n]*$/.test(e.data)&&e[r];)e=e[r];return e}function yi(e){var t=e("core/block-editor"),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.getMultiSelectedBlockClientIds,i=t.hasMultiSelection,c=t.getBlockParents,a=t.getSelectedBlockClientId;return{isSelectionEnabled:n(),isMultiSelecting:r(),multiSelectedBlockClientIds:o(),hasMultiSelection:i(),getBlockParents:c,selectedBlockClientId:a()}}function _i(e,t){Array.from(e.querySelectorAll(".rich-text")).forEach((function(e){t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}var Ei=Object(d.forwardRef)((function(e,t){var n=e.selectedClientId,r=e.isReverse,o=e.containerRef,i=e.noCapture,c=e.hasMultiSelection,a=e.multiSelectionContainer,l=Object(g.useSelect)((function(e){return e("core/block-editor").isNavigationMode()})),s=Object(g.useDispatch)("core/block-editor").setNavigationMode;return Object(d.createElement)("div",{ref:t,tabIndex:l?void 0:"0",onFocus:function(){if(i.current)i.current=null;else if(n){var e=hi(n);if(r){var t=pi.focus.tabbable.find(e);(Object(p.last)(t)||e).focus()}else e.focus()}else{if(c)return void a.current.focus();s(!0);var l=pi.focus.tabbable.find(o.current);l.length&&(r?Object(p.last)(l).focus():Object(p.first)(l).focus())}},style:{position:"fixed"}})})),Si=window,wi=Si.getSelection,Ci=Si.getComputedStyle,Ii=Object(p.overEvery)([pi.isTextField,pi.focus.tabbable.isTabbableIndex]);function Bi(e,t,n){var r=pi.focus.focusable.find(n);return t&&(r=Object(p.reverse)(r)),r=r.slice(r.indexOf(e)+1),Object(p.find)(r,(function t(n,r,o){if(!pi.focus.tabbable.isTabbableIndex(n))return!1;if(Object(pi.isTextField)(n))return!0;if(!n.classList.contains("block-editor-block-list__block"))return!1;if(function(e){return e.classList.contains("block-editor-block-list__layout")||!!e.querySelector(".block-editor-block-list__layout")}(n))return!0;if(n.contains(e))return!1;for(var i,c=1;(i=o[r+c])&&n.contains(i);c++)if(t(i,r+c,o))return!1;return!0}))}function xi(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,i=t.getPreviousBlockClientId,c=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,l=t.getLastMultiSelectedBlockClientId,s=t.hasMultiSelection,u=t.getBlockOrder,d=t.isNavigationMode,f=t.isSelectionEnabled,b=t.getBlockSelectionStart,p=t.isMultiSelecting,h=n(),m=r(),g=o();return{selectedBlockClientId:h,selectionStartClientId:m,selectionBeforeEndClientId:i(g||h),selectionAfterEndClientId:c(g||h),selectedFirstClientId:a(),selectedLastClientId:l(),hasMultiSelection:s(),blocks:u(),isNavigationMode:d(),isSelectionEnabled:f(),blockSelectionStart:b(),isMultiSelecting:p()}}function Ti(e){var t=e.children,n=Object(d.useRef)(),r=Object(d.useRef)(),o=Object(d.useRef)(),i=Object(d.useRef)(),c=Object(d.useRef)(),a=Object(d.useRef)(),l=Object(d.useRef)(),s=Object(g.useSelect)(xi,[]),u=s.selectedBlockClientId,f=s.selectionStartClientId,h=s.selectionBeforeEndClientId,m=s.selectionAfterEndClientId,v=s.selectedFirstClientId,O=s.selectedLastClientId,j=s.hasMultiSelection,k=s.blocks,y=s.isNavigationMode,_=s.isSelectionEnabled,E=s.blockSelectionStart,S=s.isMultiSelecting,w=Object(g.useDispatch)("core/block-editor"),C=w.multiSelect,I=w.selectBlock,B=w.clearSelectedBlock,x=w.setNavigationMode;Object(d.useEffect)((function(){j&&!S&&i.current.focus()}),[j,S]);var T=b()("block-editor-writing-flow",{"is-navigate-mode":y});return Object(d.createElement)("div",{className:T},Object(d.createElement)(Ei,{ref:r,selectedClientId:u,containerRef:n,noCapture:a,hasMultiSelection:j,multiSelectionContainer:i}),Object(d.createElement)("div",{ref:n,onKeyDown:function(e){var t=e.keyCode,s=e.target,d=t===xt.UP,b=t===xt.DOWN,g=t===xt.LEFT,_=t===xt.RIGHT,E=t===xt.TAB,S=t===xt.ESCAPE,w=d||g,T=g||_,P=d||b,N=T||P,L=e.shiftKey,R=L||e.ctrlKey||e.altKey||e.metaKey,M=P?pi.isVerticalEdge:pi.isHorizontalEdge;if(y){var A=E&&L||d,D=E&&!L||b,F=A?h:m;if(D||A)if(F)e.preventDefault(),I(F);else if(E&&u){var H,V=hi(u);(H=D?pi.focus.tabbable.findNext(V):pi.focus.tabbable.findPrevious(V))&&(e.preventDefault(),H.focus(),B())}}else{if(u)if(E){var U=hi(u);if(L){if(s===U)return a.current=!0,void r.current.focus()}else{var z=pi.focus.tabbable.find(U);if(s===(Object(p.last)(z)||U))return a.current=!0,void o.current.focus()}}else S&&x(!0);else if(j&&E&&s===i.current)return a.current=!0,void(L?r.current.focus():o.current.focus());if(P?l.current||(l.current=Object(pi.computeCaretRect)()):l.current=null,!N)return xt.isKeyboardEvent.primary(e)&&(c.current=Object(pi.isEntirelySelected)(s)),void(xt.isKeyboardEvent.primary(e,"a")&&((s.isContentEditable?c.current:Object(pi.isEntirelySelected)(s))&&(C(Object(p.first)(k),Object(p.last)(k)),e.preventDefault()),c.current=!0));if(!e.nativeEvent.defaultPrevented&&function(e,t,n){if((t===xt.UP||t===xt.DOWN)&&!n)return!0;var r=e.tagName;return"INPUT"!==r&&"TEXTAREA"!==r}(s,t,R)){var G="rtl"===Ci(s).direction?!w:w;if(L)(w&&h||!w&&m)&&(j||function(e,t){var r,o,i=Bi(e,t,n.current);return!(i&&(r=e,o=i,r.closest(".block-editor-block-list__block")===o.closest(".block-editor-block-list__block")))}(s,w)&&M(s,w))&&(!function(e){var t=e?h:m;t&&C(f||u,t)}(w),e.preventDefault());else if(j)!function(e){var t=e?v:O;t&&I(t)}(w),e.preventDefault();else if(P&&Object(pi.isVerticalEdge)(s,w)){var K=Bi(s,w,n.current);K&&(Object(pi.placeCaretAtVerticalEdge)(K,w,l.current),e.preventDefault())}else if(T&&wi().isCollapsed&&Object(pi.isHorizontalEdge)(s,G)){var W=Bi(s,G,n.current);Object(pi.placeCaretAtHorizontalEdge)(W,G),e.preventDefault()}}}},onMouseDown:function(e){if(l.current=null,y&&u&&mi(hi(u),e.target)&&x(!1),_&&0===e.button){var t=gi(e.target);t&&(e.shiftKey?E!==t&&(C(E,t),e.preventDefault()):j&&I(t))}}},Object(d.createElement)("div",{ref:i,tabIndex:j?"0":void 0,"aria-label":j?Object(U.__)("Multiple selected blocks"):void 0,style:{position:"fixed"}}),t),Object(d.createElement)(Ei,{ref:o,selectedClientId:u,containerRef:n,noCapture:a,hasMultiSelection:j,multiSelectionContainer:i,isReverse:!0}),Object(d.createElement)("div",{"aria-hidden":!0,tabIndex:-1,onClick:function(){var e=pi.focus.focusable.find(n.current),t=Object(p.findLast)(e,Ii);t&&Object(pi.placeCaretAtHorizontalEdge)(t,!0)},className:"block-editor-writing-flow__click-redirect"}))}function Pi(e){var t=e.clientId;return Object(g.useSelect)((function(e){var n=e("core/block-editor"),r=n.getBlockIndex,o=n.getBlockInsertionPoint,i=n.isBlockInsertionPointVisible,c=(0,n.getBlockRootClientId)(t),a=r(t,c),l=o();return i()&&l.index===a&&l.rootClientId===c}),[t])?Object(d.createElement)("div",{className:"block-editor-block-list__insertion-point-indicator"}):null}function Ni(e){var t=e.className,n=e.isMultiSelecting,r=e.hasMultiSelection,o=e.selectedBlockClientId,i=e.children,c=e.containerRef,a=Object(d.useState)(!1),l=Object(D.a)(a,2),s=l[0],u=l[1],f=Object(d.useState)(!1),p=Object(D.a)(f,2),h=p[0],m=p[1],v=Object(d.useState)(null),O=Object(D.a)(v,2),j=O[0],k=O[1],y=Object(d.useState)(null),_=Object(D.a)(y,2),E=_[0],S=_[1],w=Object(d.useRef)(),C=Object(g.useSelect)((function(e){return{multiSelectedBlockClientIds:(0,e("core/block-editor").getMultiSelectedBlockClientIds)()}})).multiSelectedBlockClientIds;var I=r?C.includes(E):E===o;return Object(d.createElement)(d.Fragment,null,!n&&(s||h)&&Object(d.createElement)(z.Popover,{noArrow:!0,animate:!1,anchorRef:j,position:"top right left",focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:"block-toolbar",__unstableFixedPosition:!1},Object(d.createElement)("div",{className:"block-editor-block-list__insertion-point",style:{width:j.offsetWidth}},Object(d.createElement)(Pi,{clientId:E}),Object(d.createElement)("div",{ref:w,onFocus:function(){return m(!0)},onBlur:function(){return m(!1)},onClick:function(e){var t=e.clientX,n=e.clientY,r=e.target;if(r===w.current){var o=r.getBoundingClientRect(),i=n<o.top+o.height/2,a=hi(E),l=Bi(a,!0,i?c.current:a)||a,s=new window.DOMRect(t,n,0,16);Object(pi.placeCaretAtVerticalEdge)(l,i,s,!1)}},tabIndex:-1,className:b()("block-editor-block-list__insertion-point-inserter",{"is-inserter-hidden":I})},Object(d.createElement)(Dc,{clientId:E})))),Object(d.createElement)("div",{onMouseMove:h||n?void 0:function(e){if(e.target.className===t){var n=e.target.getBoundingClientRect(),r=e.clientY-n.top,o=Array.from(e.target.children).find((function(e){return e.offsetTop>r}));if(o){var i=o.id.slice("block-".length);if(i){var c=o.getBoundingClientRect();e.clientX>c.right||e.clientX<c.left?s&&u(!1):(u(!0),k(o),S(i))}}}else s&&u(!1)}},i))}var Li=function(e){var t=e.clientId,n=e.rootClientId,r=e.moverDirection,o=Object(F.a)(e,["clientId","rootClientId","moverDirection"]),c=Object(g.useSelect)((function(e){var r=e("core/block-editor"),o=r.__unstableGetBlockWithoutInnerBlocks,i=(0,r.getBlockIndex)(t,n),c=o(t);return{index:i,name:c.name,attributes:c.attributes}}),[t,n]),a=c.index,l=c.name,s=c.attributes,f=Object(g.useDispatch)("core/block-editor"),b=f.setNavigationMode,p=f.removeBlock,h=Object(d.useRef)();Object(d.useEffect)((function(){h.current.focus()}));var m=Object(i.getBlockType)(l),v=Object(i.__experimentalGetAccessibleBlockLabel)(m,s,a+1,r);return Object(d.createElement)("div",Object(u.a)({className:"block-editor-block-list__breadcrumb"},o),Object(d.createElement)(z.Toolbar,null,Object(d.createElement)(z.Button,{ref:h,onClick:function(){return b(!1)},onKeyDown:function(e){var n=e.keyCode;n!==xt.BACKSPACE&&n!==xt.DELETE||(p(t),e.preventDefault())},label:v},Object(d.createElement)(ft,{clientId:t}))))};var Ri=function(e){var t=e.children,n=e.focusOnMount,r=Object(F.a)(e,["children","focusOnMount"]),o=Object(d.useRef)(),i=Object(d.useCallback)((function(){var e=pi.focus.tabbable.find(o.current);e.length&&e[0].focus()}),[]);return Object(l.useShortcut)("core/block-editor/focus-toolbar",i,{bindGlobal:!0,eventName:"keydown"}),Object(d.useEffect)((function(){n&&i()}),[]),Object(d.createElement)(z.NavigableMenu,Object(u.a)({orientation:"horizontal",role:"toolbar",ref:o},r),t)};var Mi=function(e){var t=e.focusOnMount,n=Object(F.a)(e,["focusOnMount"]);return Object(d.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(d.createElement)(Ri,Object(u.a)({focusOnMount:t,className:"block-editor-block-contextual-toolbar","aria-label":Object(U.__)("Block tools")},n),Object(d.createElement)(Cs,null)))};function Ai(e){var t=e("core/block-editor"),n=t.isNavigationMode,r=t.isMultiSelecting,o=t.hasMultiSelection,i=t.isTyping,c=t.isCaretWithinFormattedText,a=t.getSettings,l=t.getLastMultiSelectedBlockClientId;return{isNavigationMode:n(),isMultiSelecting:r(),isTyping:i(),isCaretWithinFormattedText:c(),hasMultiSelection:o(),hasFixedToolbar:a().hasFixedToolbar,lastClientId:l()}}function Di(e){var t=e.clientId,n=e.rootClientId,r=e.align,o=e.isValid,i=e.moverDirection,c=e.isEmptyDefaultBlock,a=e.capturingClientId,s=Object(g.useSelect)(Ai,[]),u=s.isNavigationMode,f=s.isMultiSelecting,p=s.isTyping,m=s.isCaretWithinFormattedText,v=s.hasMultiSelection,O=s.hasFixedToolbar,j=s.lastClientId,k=Object(h.useViewportMatch)("medium"),y=Object(d.useState)(!1),_=Object(D.a)(y,2),E=_[0],S=_[1],w=Object(d.useState)(!1),C=Object(D.a)(w,2),I=C[0],B=C[1],x=Object(d.useContext)(Ui),T=Object(D.a)(x,1)[0],P=!u&&c&&o,N=u,L=!u&&!O&&k&&!P&&!f&&(!p||m),R=!(u||L||O||c);if(Object(l.useShortcut)("core/block-editor/focus-toolbar",Object(d.useCallback)((function(){return S(!0)}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!R}),!(N||L||E||P))return null;var M=T[t];if(a&&(M=document.getElementById("block-"+a)),!M)return null;M.classList.contains("is-block-collapsed")&&(M=M.querySelector(".is-block-content")||M);var A=M;if(v){var F=T[j];if(!F)return null;A={top:M,bottom:F}}var H=P?"top left right":"top right left";return Object(d.createElement)(z.Popover,{noArrow:!0,animate:!1,position:H,focusOnMount:!1,anchorRef:A,className:"block-editor-block-list__block-popover",__unstableSticky:!P,__unstableSlotName:"block-toolbar",__unstableBoundaryParent:!0,__unstableAllowVerticalSubpixelPosition:"horizontal"!==i&&M,__unstableAllowHorizontalSubpixelPosition:"horizontal"===i&&M,onBlur:function(){return S(!1)},shouldAnchorIncludePadding:!0,key:L},(L||E)&&Object(d.createElement)("div",{onFocus:function(){B(!0)},onBlur:function(){B(!1)},tabIndex:-1,className:b()("block-editor-block-list__block-popover-inserter",{"is-visible":I})},Object(d.createElement)(Dc,{clientId:t,rootClientId:n})),(L||E)&&Object(d.createElement)(Mi,{focusOnMount:E,"data-align":r}),N&&Object(d.createElement)(Li,{clientId:t,rootClientId:n,moverDirection:i,"data-align":r}),P&&Object(d.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(d.createElement)(Dc,{position:"top right",rootClientId:n,clientId:t})))}function Fi(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getFirstMultiSelectedBlockClientId,o=t.getBlockRootClientId,c=t.__unstableGetBlockWithoutInnerBlocks,a=t.getBlockParents,l=t.getBlockListSettings,s=t.__experimentalGetBlockListSettingsForBlocks,u=n()||r();if(u){var d,f=o(u),b=c(u)||{},h=b.name,m=b.attributes,g=void 0===m?{}:m,v=b.isValid,O=a(u),j=(l(f)||{}).__experimentalMoverDirection,k=s(O),y=Object(p.findIndex)(k,["__experimentalCaptureToolbars",!0]);return-1!==y&&(d=O[y]),{clientId:u,rootClientId:o(u),name:h,align:g.align,isValid:v,moverDirection:j,isEmptyDefaultBlock:h&&Object(i.isUnmodifiedDefaultBlock)({name:h,attributes:g}),capturingClientId:d}}}function Hi(){var e=Object(g.useSelect)(Fi,[]);if(!e)return null;var t=e.clientId,n=e.rootClientId,r=e.name,o=e.align,i=e.isValid,c=e.moverDirection,a=e.isEmptyDefaultBlock,l=e.capturingClientId;return r?Object(d.createElement)(Di,{clientId:t,rootClientId:n,align:o,isValid:i,moverDirection:c,isEmptyDefaultBlock:a,capturingClientId:l}):null}var Vi=Object(d.createContext)(),Ui=Object(d.createContext)();function zi(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.hasMultiSelection,o=t.isMultiSelecting;return{selectedBlockClientId:n(),hasMultiSelection:r(),isMultiSelecting:o()}}function Gi(e){gi(e.target)&&e.preventDefault()}var Ki=Object(d.forwardRef)((function(e,t){var n=e.children,r=e.className,o=e.hasPopover,i=void 0===o||o,c=Object(g.useSelect)(zi,[]),a=c.selectedBlockClientId,l=c.hasMultiSelection,s=c.isMultiSelecting,u=Object(g.useDispatch)("core/block-editor").selectBlock,f=function(e){var t=Object(g.useSelect)(yi,[]),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.multiSelectedBlockClientIds,i=t.hasMultiSelection,c=t.getBlockParents,a=t.selectedBlockClientId,l=Object(g.useDispatch)("core/block-editor"),s=l.startMultiSelect,u=l.stopMultiSelect,f=l.multiSelect,b=l.selectBlock,p=Object(d.useRef)(),h=Object(d.useRef)(),m=Object(d.useRef)();Object(d.useEffect)((function(){if(i&&!r){var e=o.length;if(!(e<2)){var t=o[0],n=o[e-1],c=hi(t),l=hi(n),s=window.getSelection(),u=document.createRange();c=ki(c,"start"),l=ki(l,"end"),u.setStartBefore(c),u.setEndAfter(l),s.removeAllRanges(),s.addRange(u)}}else{if(!a||r)return;var d=window.getSelection();if(d.rangeCount&&!d.isCollapsed){var f=hi(a),b=d.getRangeAt(0),p=b.startContainer,h=b.endContainer;f.contains(p)&&f.contains(h)||d.removeAllRanges()}}}),[i,r,o,b,a]);var v=Object(d.useCallback)((function(t){var n=t.isSelectionEnd,r=window.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=gi(r.focusNode);if(h.current===o){if(b(o),n&&(_i(e.current,!0),r.rangeCount)){var i=r.getRangeAt(0).commonAncestorContainer;m.current.contains(i)&&m.current.focus()}}else{var a=[].concat(Object(A.a)(c(h.current)),[h.current]),l=[].concat(Object(A.a)(c(o)),[o]),s=Math.min(a.length,l.length)-1;f(a[s],l[s])}}else _i(e.current,!0)}),[b,c,f]),O=Object(d.useCallback)((function(){document.removeEventListener("selectionchange",v),window.removeEventListener("mouseup",O),p.current=window.requestAnimationFrame((function(){v({isSelectionEnd:!0}),u()}))}),[v,u]);return Object(d.useEffect)((function(){return function(){document.removeEventListener("selectionchange",v),window.removeEventListener("mouseup",O),window.cancelAnimationFrame(p.current)}}),[v,O]),Object(d.useCallback)((function(t){n&&(h.current=t,m.current=document.activeElement,s(),document.addEventListener("selectionchange",v),window.addEventListener("mouseup",O),_i(e.current,!1))}),[n,s,O])}(t);return Object(d.createElement)(Ni,{className:r,isMultiSelecting:s,hasMultiSelection:l,selectedBlockClientId:a,containerRef:t},Object(d.createElement)(Ui.Provider,{value:Object(d.useState)({})},i?Object(d.createElement)(Hi,null):null,Object(d.createElement)("div",{ref:t,className:r,onFocus:function(e){if(!l){var t=gi(e.target);t&&t!==a&&u(t)}},onDragStart:Gi},Object(d.createElement)(Vi.Provider,{value:f},n))))}));function Wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wi(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $i=Object(d.forwardRef)((function(e,t){var n=e.children,r=e.tagName,o=void 0===r?"div":r,i=e.__unstableIsHtml,c=Object(F.a)(e,["children","tagName","__unstableIsHtml"]),a=Object(d.useContext)(Vi),l=Object(d.useContext)(Ui),f=Object(D.a)(l,2)[1],h=Object(d.useContext)(Zi),m=h.clientId,v=h.rootClientId,O=h.isSelected,j=h.isFirstMultiSelected,k=h.isLastMultiSelected,y=h.isMultiSelecting,_=h.isNavigationMode,E=h.isPartOfMultiSelection,S=h.enableAnimation,w=h.index,C=h.className,I=h.isLocked,B=h.name,x=h.mode,T=h.blockTitle,P=h.wrapperProps,N=Object(g.useSelect)((function(e){return O?{initialPosition:e("core/block-editor").getSelectedBlocksInitialCaretPosition()}:{}}),[O]).initialPosition,L=Object(g.useDispatch)("core/block-editor"),R=L.removeBlock,M=L.insertDefaultBlock,A=Object(d.useRef)();t=t||A,Object(d.useLayoutEffect)((function(){if(O||j||k){var e=t.current;return f((function(t){return qi({},t,Object(s.a)({},m,e))})),function(){f((function(e){return Object(p.omit)(e,m)}))}}}),[O,j,k]);var H=Object(U.sprintf)(Object(U.__)("Block: %s"),T);Object(d.useEffect)((function(){y||_||!O||function(){if(!t.current.contains(document.activeElement)){var e=pi.focus.tabbable.find(t.current).filter(pi.isTextField).filter((function(e){return mi(t.current,e)})),n=-1===N,r=(n?p.last:p.first)(e)||t.current;Object(pi.placeCaretAtHorizontalEdge)(r,n)}}()}),[O,y,_]);var V=ji(t,O||E,O||j,S,w),z="html"!==x||i?"":"-visual",G="block-".concat(m).concat(z),K=bi.animated[o];return Object(d.createElement)(K,Object(u.a)({"aria-label":H,role:"group"},P,c,{id:G,ref:t,className:b()(C,c.className),"data-block":m,"data-type":B,"data-title":T,onKeyDown:O&&!I?function(e){var n=e.keyCode,r=e.target;c.onKeyDown&&c.onKeyDown(e),n!==xt.ENTER&&n!==xt.BACKSPACE&&n!==xt.DELETE||r!==t.current||Object(pi.isTextField)(r)||(e.preventDefault(),n===xt.ENTER?M({},v,w+1):R(m))}:void 0,onMouseLeave:O?function(e){var t=e.which;1===(e.buttons||t)&&a(m)}:void 0,tabIndex:"0",style:qi({},c.style||{},{},V)}),n)})),Yi=["p","div","h1","h2","h3","h4","h5","h6","ol","ul","figure"].reduce((function(e,t){return e[t]=Object(d.forwardRef)((function(e,n){return Object(d.createElement)($i,Object(u.a)({},e,{ref:n,tagName:t}))})),e}),$i);function Xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Zi=Object(d.createContext)();var Ji=Object(g.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=t.isLargeViewport,i=e("core/block-editor"),c=i.isBlockSelected,a=i.isAncestorMultiSelected,l=i.isBlockMultiSelected,s=i.isFirstMultiSelectedBlock,u=i.getLastMultiSelectedBlockClientId,d=i.isTyping,f=i.getBlockMode,b=i.isSelectionEnabled,p=i.getSettings,h=i.hasSelectedInnerBlock,m=i.getTemplateLock,g=i.__unstableGetBlockWithoutInnerBlocks,v=i.isNavigationMode,O=g(n),j=c(n),k=p(),y=k.focusMode,_=k.isRTL,E=m(r),S=h(n,!0),w=O||{},C=w.name,I=w.attributes,B=w.isValid;return{isMultiSelected:l(n),isPartOfMultiSelection:l(n)||a(n),isFirstMultiSelected:s(n),isLastMultiSelected:u()===n,isTypingWithinBlock:(j||S)&&d(),mode:f(n),isSelectionEnabled:b(),isLocked:!!E,isFocusMode:y&&o,isNavigationMode:v(),isRTL:_,block:O,name:C,attributes:I,isValid:B,isSelected:j,isAncestorOfSelectedBlock:S}})),Qi=Object(g.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-editor"),c=o.updateBlockAttributes,a=o.insertBlocks,l=o.mergeBlocks,s=o.replaceBlocks,u=o.toggleSelection,d=o.__unstableMarkLastChangeAsPersistent;return{setAttributes:function(e){var n=t.clientId;c(n,e)},onInsertBlocks:function(e,n){var r=t.rootClientId;a(e,n,r)},onInsertBlocksAfter:function(e){var n=t.clientId,o=t.rootClientId,i=(0,r("core/block-editor").getBlockIndex)(n,o);a(e,i+1,o)},onMerge:function(e){var n=t.clientId,o=r("core/block-editor"),i=o.getPreviousBlockClientId,c=o.getNextBlockClientId;if(e){var a=c(n);a&&l(n,a)}else{var s=i(n);s&&l(s,n)}},onReplace:function(e,n){e.length&&!Object(i.isUnmodifiedDefaultBlock)(e[e.length-1])&&d(),s([t.clientId],e,n)},toggleSelection:function(e){u(e)}}})),ec=Object(h.compose)(h.pure,Object(a.withViewportMatch)({isLargeViewport:"medium"}),Ji,Qi,Object(h.ifCondition)((function(e){return!!e.block})),Object(z.withFilters)("editor.BlockListBlock"))((function(e){var t=e.mode,n=e.isFocusMode,r=e.isLocked,o=e.clientId,c=e.rootClientId,a=e.isSelected,l=e.isMultiSelected,u=e.isPartOfMultiSelection,f=e.isFirstMultiSelected,p=e.isLastMultiSelected,h=e.isTypingWithinBlock,m=e.isAncestorOfSelectedBlock,v=e.isSelectionEnabled,O=e.className,j=e.name,k=e.isValid,y=e.attributes,_=e.wrapperProps,E=e.setAttributes,S=e.onReplace,w=e.onInsertBlocksAfter,C=e.onMerge,I=e.toggleSelection,B=e.index,x=e.enableAnimation,T=e.isNavigationMode,P=e.isMultiSelecting,N=e.hasSelectedUI,L=void 0===N||N,R=Object(g.useSelect)((function(e){return{isDraggingBlocks:e("core/block-editor").isDraggingBlocks()}}),[]).isDraggingBlocks,M=Object(d.useState)(!1),A=Object(D.a)(M,2),F=A[0],H=A[1],V=Object(i.getBlockType)(j),U=Object(i.hasBlockSupport)(V,"lightBlockWrapper",!1),z=j===Object(i.getUnregisteredTypeHandlerName)(),G=R&&(a||u);!U&&V.getEditWrapperProps&&(_=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xi(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},_,{},V.getEditWrapperProps(y)));var K=_&&_["data-align"],W=U&&Object(i.hasBlockSupport)(V,"className",!0)?Object(i.getBlockDefaultClassName)(j):null,q=U?y.className:null,$=b()(W,q,"wp-block block-editor-block-list__block",{"has-selected-ui":L,"has-warning":!k||!!F||z,"is-selected":a,"is-multi-selected":l,"is-reusable":Object(i.isReusableBlock)(V),"is-dragging":G,"is-typing":h,"is-focused":n&&(a||m),"is-focus-mode":n,"has-child-selected":m,"is-block-collapsed":K},O),Y=Object(d.createElement)(Z,{name:j,isSelected:a,attributes:y,setAttributes:E,insertBlocksAfter:r?void 0:w,onReplace:r?void 0:S,mergeBlocks:r?void 0:C,clientId:o,isSelectionEnabled:v,toggleSelection:I});!U&&K&&(Y=Object(d.createElement)("div",{className:"is-block-content"},Y)),"visual"!==t&&(Y=Object(d.createElement)("div",{style:{display:"none"}},Y));var X={clientId:o,rootClientId:c,isSelected:a,isFirstMultiSelected:f,isLastMultiSelected:p,isMultiSelecting:P,isNavigationMode:T,isPartOfMultiSelection:u,enableAnimation:x,index:B,className:$,isLocked:r,name:j,mode:t,blockTitle:V.title,wrapperProps:_},J=Object(d.useMemo)((function(){return X}),Object.values(X));return Object(d.createElement)(Zi.Provider,{value:J},Object(d.createElement)(si,{onError:function(){return H(!0)}},k&&U&&Object(d.createElement)(d.Fragment,null,Y,"html"===t&&Object(d.createElement)(Yi.div,{__unstableIsHtml:!0},Object(d.createElement)(fi,{clientId:o}))),k&&!U&&Object(d.createElement)(Yi.div,_,Y,"html"===t&&Object(d.createElement)(fi,{clientId:o})),!k&&Object(d.createElement)(Yi.div,null,Object(d.createElement)(ci,{clientId:o}),Object(d.createElement)("div",null,Object(i.getSaveElement)(V,y)))),!!F&&Object(d.createElement)(Yi.div,null,Object(d.createElement)(li,null)))})),tc=n(56);var nc=Object(h.compose)(Object(g.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getBlockCount,o=n.getBlockName,c=n.isBlockValid,a=n.getSettings,l=n.getTemplateLock,s=!r(t.rootClientId),u=o(t.lastBlockClientId)===Object(i.getDefaultBlockName)(),d=c(t.lastBlockClientId),f=a().bodyPlaceholder;return{isVisible:s||!u||!d,showPrompt:s,isLocked:!!l(t.rootClientId),placeholder:f}})),Object(g.withDispatch)((function(e,t){var n=e("core/block-editor"),r=n.insertDefaultBlock,o=n.startTyping;return{onAppend:function(){var e=t.rootClientId;r(void 0,e),o()}}})))((function(e){var t=e.isLocked,n=e.isVisible,r=e.onAppend,o=e.showPrompt,i=e.placeholder,c=e.rootClientId;if(t||!n)return null;var a=Object(tc.decodeEntities)(i)||Object(U.__)("Start writing or type / to choose a block");return Object(d.createElement)("div",{"data-root-client-id":c||"",className:"wp-block block-editor-default-block-appender"},Object(d.createElement)(di.a,{role:"button","aria-label":Object(U.__)("Add block"),className:"block-editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?a:""}),Object(d.createElement)(Dc,{rootClientId:c,position:"top right",isAppender:!0}))}));function rc(e){e.stopPropagation()}var oc=Object(g.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getBlockOrder,c=r.canInsertBlockType;return{isLocked:!!(0,r.getTemplateLock)(n),blockClientIds:o(n),canInsertDefaultBlock:c(Object(i.getDefaultBlockName)(),n)}}))((function(e){var t,n=e.blockClientIds,r=e.rootClientId,o=e.canInsertDefaultBlock,i=e.isLocked,c=e.renderAppender,a=e.className;return i||!1===c?null:(t=c?Object(d.createElement)(c,null):o?Object(d.createElement)(nc,{rootClientId:r,lastBlockClientId:Object(p.last)(n)}):Object(d.createElement)(Fc,{rootClientId:r,className:"block-list-appender__toggle"}),Object(d.createElement)("div",{tabIndex:-1,onFocus:rc,className:b()("block-list-appender",a)},t))}));function ic(e){var t=e.element,n=e.rootClientId,r=Object(d.useState)(null),o=Object(D.a)(r,2),c=o[0],a=o[1];var l=Object(g.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockIndex,o=t.getClientIdsOfDescendants,i=t.getSettings,a=t.getTemplateLock;return{getBlockIndex:r,blockIndex:r(c,n),getClientIdsOfDescendants:o,hasUploadPermissions:!!i().mediaUpload,isLockedAll:"all"===a(n)}}),[n,c]),s=l.getBlockIndex,u=l.blockIndex,f=l.getClientIdsOfDescendants,b=l.hasUploadPermissions,p=l.isLockedAll,h=Object(g.useDispatch)("core/block-editor"),m=h.insertBlocks,v=h.updateBlockAttributes,O=h.moveBlockToPosition,j=Object(d.useCallback)((function(e){if(b){var t=Object(i.findTransform)(Object(i.getBlockTransforms)("from"),(function(t){return"files"===t.type&&t.isMatch(e)}));if(t){var r=t.transform(e,v);m(r,u,n)}}}),[b,v,m,u,n]),k=Object(d.useCallback)((function(e){var t=Object(i.pasteHandler)({HTML:e,mode:"BLOCKS"});t.length&&m(t,u,n)}),[m,u,n]),y=Object(d.useCallback)((function(e){var t=function(e){var t={srcRootClientId:null,srcClientId:null,srcIndex:null,type:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("text")))}catch(e){return t}return t}(e),r=t.srcRootClientId,o=t.srcClientId,i=t.srcIndex,a=t.type;if("block"===a&&o!==c&&!function(e,t){return f([e]).some((function(e){return e===t}))}(o,c||n)){var l,d,b=c?s(c,n):void 0,p=b&&i<b&&((l=r)===(d=n)||1==!l&&1==!d)?u-1:u;O(o,r,n,p)}}),[f,s,c,u,O,n]),_=Object(z.__unstableUseDropZone)({element:t,onFilesDrop:j,onHTMLDrop:k,onDrop:y,isDisabled:p,withPosition:!0}).position;if(Object(d.useEffect)((function(){if(_){var e=_.y-t.current.getBoundingClientRect().top,n=Array.from(t.current.children).find((function(t){return t.offsetTop+t.offsetHeight/2>e}));if(!n)return;var r=n.id.slice("block-".length);if(!r)return;a(r)}}),[_]),_)return c}var cc=Object(d.forwardRef)((function(e,t){var n=e.className,r=e.rootClientId,o=e.isDraggable,i=e.renderAppender,c=e.__experimentalUIParts,a=void 0===c?{}:c,l=e.__experimentalTagName,s=void 0===l?"div":l,f=e.__experimentalPassedProps,p=void 0===f?{}:f,h=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockOrder,o=t.isMultiSelecting,i=t.getSelectedBlockClientId,c=t.getMultiSelectedBlockClientIds,a=t.hasMultiSelection,l=t.getGlobalBlockCount,s=t.isTyping;return{blockClientIds:n(r),isMultiSelecting:o(),selectedBlockClientId:i(),multiSelectedBlockClientIds:c(),hasMultiSelection:a(),enableAnimation:!s()&&l()<=200}}),[r]),m=h.blockClientIds,v=h.isMultiSelecting,O=h.selectedBlockClientId,j=h.multiSelectedBlockClientIds,k=h.hasMultiSelection,y=h.enableAnimation,_=r?s:Ki,E=ic({element:t,rootClientId:r}),S=r?{}:{hasPopover:a.hasPopover};return Object(d.createElement)(_,Object(u.a)({},p,{ref:t,className:b()("block-editor-block-list__layout",n,p.className)},S),m.map((function(e,t){var n=k?j.includes(e):O===e;return Object(d.createElement)(g.AsyncModeProvider,{key:e,value:!n},Object(d.createElement)(ec,{rootClientId:r,clientId:e,isDraggable:o,isMultiSelecting:v,index:t,enableAnimation:y,hasSelectedUI:a.hasSelectedUI,className:e===E?"is-drop-target":void 0}))})),Object(d.createElement)(oc,{rootClientId:r,renderAppender:i,className:null===E?"is-drop-target":void 0}))})),ac=Object(d.forwardRef)((function(e,t){var n=Object(d.useRef)();return Object(d.createElement)(g.AsyncModeProvider,{value:!1},Object(d.createElement)(cc,Object(u.a)({ref:t||n},e)))})),lc=function(e,t,n,r,o){return{transform:"scale(".concat(e,")"),visibility:r?"visible":"hidden",left:t,top:n,width:o}};var sc=function(e){var t=e.blocks,n=e.viewportWidth,r=e.padding,o=void 0===r?0:r,i=e.onReady,c=e.scalingDelay,a=Object(d.useRef)(null),l=Object(d.useState)(!1),s=Object(D.a)(l,2),u=s[0],f=s[1],p=Object(d.useState)(1),h=Object(D.a)(p,2),m=h[0],g=h[1],v=Object(d.useState)({x:0,y:0}),O=Object(D.a)(v,2),j=O[0],k=j.x,y=j.y,_=O[1];if(Object(d.useLayoutEffect)((function(){var e=setTimeout((function(){var e=a.current;if(e){var r,c=0,l=0;if(1===t.length){var s=function(e){var t=hi(e);if(t)return t.firstChild||t}(t[0].clientId);if(!s)return;var u=e.getBoundingClientRect();u={width:u.width-2*o,height:u.height-2*o,left:u.left,top:u.top};var d=s.getBoundingClientRect();r=u.width/d.width||1,c=-(d.left-u.left)*r+o,l=u.height>d.height*r?(u.height-d.height*r)/2+o:0,g(r),_({x:c,y:l}),s.style.marginTop="0"}else{r=e.getBoundingClientRect().width/n,g(r)}f(!0),i({scale:r,position:{x:c,y:l},previewContainerRef:a,inlineStyles:lc(r,c,l,!0,n)})}}),c);return function(){e&&window.clearTimeout(e)}}),[]),!t||0===t.length)return null;var E=lc(m,k,y,u,n);return Object(d.createElement)("div",{ref:a,className:b()("block-editor-block-preview__container editor-styles-wrapper is-centered",{"is-ready":u}),"aria-hidden":!0},Object(d.createElement)(z.Disabled,{style:E,className:"block-editor-block-preview__content"},Object(d.createElement)(ac,null)))},uc=n(108),dc=n.n(uc);var fc=function(e){var t=e.viewportWidth,n=dc()(),r=Object(D.a)(n,2),o=r[0],i=r[1].width,c=dc()(),a=Object(D.a)(c,2),l=a[0],s=a[1].height;return Object(d.createElement)("div",{className:"block-editor-block-preview__container editor-styles-wrapper is-auto-height","aria-hidden":!0,style:{height:s*i/t}},o,Object(d.createElement)(z.Disabled,{style:{transform:"scale(".concat(i/t,")"),width:t},className:"block-editor-block-preview__content"},l,Object(d.createElement)(ac,null)))};var bc=function(e){var t=e.blocks,n=e.viewportWidth,r=void 0===n?700:n,o=e.padding,i=e.autoHeight,c=void 0!==i&&i,a=e.__experimentalOnReady,l=void 0===a?p.noop:a,s=e.__experimentalScalingDelay,u=void 0===s?100:s,f=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings()})),b=Object(d.useMemo)((function(){return Object(p.castArray)(t)}),[t]),h=Object(d.useReducer)((function(e){return e+1}),0),m=Object(D.a)(h,2),v=m[0],O=m[1];return Object(d.useLayoutEffect)(O,[t]),t&&0!==t.length?Object(d.createElement)(Jo,{value:b,settings:f},c?Object(d.createElement)(fc,{key:v,viewportWidth:r}):Object(d.createElement)(sc,{key:v,blocks:b,viewportWidth:r,padding:o,onReady:l,scalingDelay:u})):null};var pc=function(e){var t=e.icon,n=e.onClick,r=e.isDisabled,o=e.title,i=e.className,c=Object(F.a)(e,["icon","onClick","isDisabled","title","className"]),a=t?{backgroundColor:t.background,color:t.foreground}:{};return Object(d.createElement)("li",{className:"block-editor-block-types-list__list-item"},Object(d.createElement)(z.Button,Object(u.a)({className:b()("block-editor-block-types-list__item",i),onClick:function(e){e.preventDefault(),n()},disabled:r},c),Object(d.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:a},Object(d.createElement)(St,{icon:t,showColors:!0})),Object(d.createElement)("span",{className:"block-editor-block-types-list__item-title"},o)))};function hc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hc(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gc=function(e){var t=e.items,n=void 0===t?[]:t,r=e.onSelect,o=e.onHover,c=void 0===o?function(){}:o,a=e.children,l=n.reduce((function(e,t){var n=t.variations,r=void 0===n?[]:n;return r.some((function(e){return e.isDefault}))||e.push(t),r.length&&(e=e.concat(r.map((function(e){return mc({},t,{id:"".concat(t.id,"-").concat(e.name),icon:e.icon||t.icon,title:e.title||t.title,description:e.description||t.description,example:e.hasOwnProperty("example")?e.example:t.example,initialAttributes:mc({},t.initialAttributes,{},e.attributes),innerBlocks:e.innerBlocks})})))),e}),[]);return Object(d.createElement)("ul",{role:"list",className:"block-editor-block-types-list"},l.map((function(e){return Object(d.createElement)(pc,{key:e.id,className:Object(i.getBlockMenuDefaultClassName)(e.id),icon:e.icon,onClick:function(){r(e),c(null)},onFocus:function(){return c(e)},onMouseEnter:function(){return c(e)},onMouseLeave:function(){return c(null)},onBlur:function(){return c(null)},isDisabled:e.isDisabled,title:e.title})})),a)};var vc=function(e){var t=e.blockType;return Object(d.createElement)("div",{className:"block-editor-block-card"},Object(d.createElement)(St,{icon:t.icon,showColors:!0}),Object(d.createElement)("div",{className:"block-editor-block-card__content"},Object(d.createElement)("div",{className:"block-editor-block-card__title"},t.title),Object(d.createElement)("div",{className:"block-editor-block-card__description"},t.description)))};var Oc=Object(h.compose)(Object(h.ifCondition)((function(e){var t=e.items;return t&&t.length>0})),Object(g.withSelect)((function(e,t){var n=t.rootClientId,r=(0,e("core/blocks").getBlockType)((0,e("core/block-editor").getBlockName)(n));return{rootBlockTitle:r&&r.title,rootBlockIcon:r&&r.icon}})))((function(e){var t=e.rootBlockIcon,n=e.rootBlockTitle,r=e.items,o=Object(F.a)(e,["rootBlockIcon","rootBlockTitle","items"]);return Object(d.createElement)("div",{className:"block-editor-inserter__child-blocks"},(t||n)&&Object(d.createElement)("div",{className:"block-editor-inserter__parent-block-header"},Object(d.createElement)(St,{icon:t,showColors:!0}),n&&Object(d.createElement)("h2",null,n)),Object(d.createElement)(gc,Object(u.a)({items:r},o)))})),jc=[Object(d.__experimentalCreateInterpolateElement)(Object(U.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:Object(d.createElement)("kbd",null)}),Object(d.__experimentalCreateInterpolateElement)(Object(U.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:Object(d.createElement)("kbd",null)}),Object(d.__experimentalCreateInterpolateElement)(Object(U.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line"),{kbd:Object(d.createElement)("kbd",null)}),Object(U.__)("Drag files into the editor to automatically insert media blocks."),Object(U.__)("Change a block's type by pressing the block icon on the toolbar.")];var kc=function(){var e=Object(d.useState)(Math.floor(Math.random()*jc.length)),t=Object(D.a)(e,1)[0];return Object(d.createElement)(z.Tip,null,jc[t])},yc=Object(z.createSlotFill)("__experimentalInserterMenuExtension"),_c=yc.Fill,Ec=yc.Slot;_c.Slot=Ec;var Sc=_c;function wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Cc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=(e=Object(p.deburr)(e)).replace(/^\//,"")).toLowerCase(),Object(p.words)(e)},Ic=function(e,t){return Object(p.differenceWith)(e,Cc(t),(function(e,t){return t.includes(e)}))},Bc=function(e,t,n,r){var o=Cc(r);return 0===o.length?e:e.filter((function(e){var r=e.name,i=e.title,c=e.category,a=e.keywords,l=void 0===a?[]:a,s=e.variations,u=void 0===s?[]:s,d=Ic(o,i);if(0===d.length)return!0;if(0===(d=Ic(d,l.join(" "))).length)return!0;d=Ic(d,Object(p.get)(Object(p.find)(t,{slug:c}),["title"]));var f=n[r.split("/")[0]];return f&&(d=Ic(d,f.title)),0===d.length||0===(d=Ic(d,u.map((function(e){return e.title})).join(" "))).length})).map((function(e){if(Object(p.isEmpty)(e.variations))return e;var t=e.variations.filter((function(e){return Object(p.intersectionWith)(o,Cc(e.title),(function(e,t){return t.includes(e)})).length>0}));return Object(p.isEmpty)(t)?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wc(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{variations:t})}))};function xc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xc(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pc=function(e){return e.stopPropagation()},Nc=function(e){return e.name.split("/")[0]},Lc=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).state={childItems:[],filterValue:"",hoveredItem:null,suggestedItems:[],reusableItems:[],itemsPerCategory:{},itemsPerCollection:{},openPanels:["suggested"]},e.onChangeSearchInput=e.onChangeSearchInput.bind(Object(C.a)(e)),e.onHover=e.onHover.bind(Object(C.a)(e)),e.panels={},e.inserterResults=Object(d.createRef)(),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"componentDidMount",value:function(){this.props.fetchReusableBlocks&&this.props.fetchReusableBlocks(),this.filter()}},{key:"componentDidUpdate",value:function(e){e.items!==this.props.items&&this.filter(this.state.filterValue)}},{key:"onChangeSearchInput",value:function(e){this.filter(e.target.value)}},{key:"onHover",value:function(e){this.setState({hoveredItem:e});var t=this.props,n=t.showInsertionPoint,r=t.hideInsertionPoint;e?n():r()}},{key:"bindPanel",value:function(e){var t=this;return function(n){t.panels[e]=n}}},{key:"onTogglePanel",value:function(e){var t=this;return function(){-1!==t.state.openPanels.indexOf(e)?t.setState({openPanels:Object(p.without)(t.state.openPanels,e)}):(t.setState({openPanels:[].concat(Object(A.a)(t.state.openPanels),[e])}),t.props.setTimeout((function(){Bt()(t.panels[e],t.inserterResults.current,{alignWithTop:!0})})))}}},{key:"filterOpenPanels",value:function(e,t,n,r,o){if(e===this.state.filterValue)return this.state.openPanels;if(!e)return["suggested"];var i=[];return o.length>0&&i.push("reusable"),r.length>0&&(i=i.concat(Object.keys(t),Object.keys(n))),i}},{key:"filter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.categories,r=t.collections,o=t.debouncedSpeak,i=t.items,c=t.rootChildBlocks,a=Bc(i,n,r,e),l=Object(p.filter)(a,(function(e){var t=e.name;return Object(p.includes)(c,t)})),s=[];if(!e){var u=this.props.maxSuggestedItems||9;s=Object(p.filter)(i,(function(e){return e.utility>0})).slice(0,u)}var d=Object(p.filter)(a,{category:"reusable"}),f=function(e){return Object(p.findIndex)(n,(function(t){return t.slug===e.category}))},b=Object(p.flow)((function(e){return Object(p.filter)(e,(function(e){return"reusable"!==e.category}))}),(function(e){return Object(p.sortBy)(e,f)}),(function(e){return Object(p.groupBy)(e,"category")}))(a),h=Tc({},r);Object.keys(r).forEach((function(e){h[e]=a.filter((function(t){return Nc(t)===e})),0===h[e].length&&delete h[e]})),this.setState({hoveredItem:null,childItems:l,filterValue:e,suggestedItems:s,reusableItems:d,itemsPerCategory:b,itemsPerCollection:h,openPanels:this.filterOpenPanels(e,b,h,a,d)});var m=Object.keys(b).reduce((function(e,t){return e+b[t].length}),0),g=Object(U.sprintf)(Object(U._n)("%d result found.","%d results found.",m),m);o(g)}},{key:"onKeyDown",value:function(e){Object(p.includes)([xt.LEFT,xt.DOWN,xt.RIGHT,xt.UP,xt.BACKSPACE,xt.ENTER],e.keyCode)&&e.stopPropagation()}},{key:"render",value:function(){var e=this,t=this.props,n=t.categories,r=t.collections,o=t.instanceId,c=t.onSelect,a=t.rootClientId,l=t.showInserterHelpPanel,s=this.state,u=s.childItems,f=s.hoveredItem,b=s.itemsPerCategory,h=s.itemsPerCollection,m=s.openPanels,g=s.reusableItems,v=s.suggestedItems,O=s.filterValue,j=function(e){return-1!==m.indexOf(e)},k=!(Object(p.isEmpty)(v)&&Object(p.isEmpty)(g)&&Object(p.isEmpty)(b)&&Object(p.isEmpty)(h)),y=f?Object(i.getBlockType)(f.name):null,_=k&&l;return Object(d.createElement)("div",{className:"block-editor-inserter__menu",onKeyPress:Pc,onKeyDown:this.onKeyDown},Object(d.createElement)("div",{className:"block-editor-inserter__main-area"},Object(d.createElement)("label",{htmlFor:"block-editor-inserter__search-".concat(o),className:"screen-reader-text"},Object(U.__)("Search for a block")),Object(d.createElement)("input",{id:"block-editor-inserter__search-".concat(o),type:"search",placeholder:Object(U.__)("Search for a block"),className:"block-editor-inserter__search",autoFocus:!0,onChange:this.onChangeSearchInput}),Object(d.createElement)("div",{className:"block-editor-inserter__results",ref:this.inserterResults,tabIndex:"0",role:"region","aria-label":Object(U.__)("Available block types")},Object(d.createElement)(Oc,{rootClientId:a,items:u,onSelect:c,onHover:this.onHover}),!!v.length&&Object(d.createElement)(z.PanelBody,{title:Object(U._x)("Most used","blocks"),opened:j("suggested"),onToggle:this.onTogglePanel("suggested"),ref:this.bindPanel("suggested")},Object(d.createElement)(gc,{items:v,onSelect:c,onHover:this.onHover})),Object(p.map)(n,(function(t){var n=b[t.slug];return n&&n.length?Object(d.createElement)(z.PanelBody,{key:t.slug,title:t.title,icon:t.icon,opened:j(t.slug),onToggle:e.onTogglePanel(t.slug),ref:e.bindPanel(t.slug)},Object(d.createElement)(gc,{items:n,onSelect:c,onHover:e.onHover})):null})),Object(p.map)(r,(function(t,n){var r=h[n];return r&&r.length?Object(d.createElement)(z.PanelBody,{key:n,title:t.title,icon:t.icon,opened:j(n),onToggle:e.onTogglePanel(n),ref:e.bindPanel(n)},Object(d.createElement)(gc,{items:r,onSelect:c,onHover:e.onHover})):null})),!!g.length&&Object(d.createElement)(z.PanelBody,{className:"block-editor-inserter__reusable-blocks-panel",title:Object(U.__)("Reusable"),opened:j("reusable"),onToggle:this.onTogglePanel("reusable"),icon:Pt,ref:this.bindPanel("reusable")},Object(d.createElement)(gc,{items:g,onSelect:c,onHover:this.onHover}),Object(d.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:Object(Tt.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(U.__)("Manage all reusable blocks"))),Object(d.createElement)(Sc.Slot,{fillProps:{onSelect:c,onHover:this.onHover,filterValue:O,hasItems:k}},(function(e){return e.length?e:k?null:Object(d.createElement)("p",{className:"block-editor-inserter__no-results"},Object(U.__)("No blocks found."))}))),l&&Object(d.createElement)("div",{className:"block-editor-inserter__tips"},Object(d.createElement)(kc,null))),_&&f&&Object(d.createElement)("div",{className:"block-editor-inserter__menu-help-panel"},!Object(i.isReusableBlock)(f)&&Object(d.createElement)(vc,{blockType:f}),Object(d.createElement)("div",{className:"block-editor-inserter__preview"},Object(i.isReusableBlock)(f)||y.example?Object(d.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(d.createElement)(bc,{padding:10,viewportWidth:500,blocks:y.example?Object(i.getBlockFromExample)(f.name,{attributes:Tc({},y.example.attributes,{},f.initialAttributes),innerBlocks:y.example.innerBlocks}):Object(i.createBlock)(f.name,f.initialAttributes)})):Object(d.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(U.__)("No Preview Available.")))))}}]),t}(d.Component),Rc=Object(h.compose)(Object(g.withSelect)((function(e,t){var n=t.clientId,r=t.isAppender,o=t.rootClientId,i=e("core/block-editor"),c=i.getInserterItems,a=i.getBlockName,l=i.getBlockRootClientId,s=i.getBlockSelectionEnd,u=i.getSettings,d=e("core/blocks"),f=d.getCategories,b=d.getCollections,p=d.getChildBlockNames,h=o;if(!h&&!n&&!r){var m=s();m&&(h=l(m)||void 0)}var g=a(h),v=u().__experimentalFetchReusableBlocks;return{categories:f(),collections:b(),rootChildBlocks:p(g),items:c(h),destinationRootClientId:h,fetchReusableBlocks:v}})),Object(g.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-editor"),c=o.showInsertionPoint;function a(){var e=r("core/block-editor"),n=e.getBlockIndex,o=e.getBlockSelectionEnd,i=e.getBlockOrder,c=t.clientId,a=t.destinationRootClientId,l=t.isAppender;if(c)return n(c,a);var s=o();return!l&&s?n(s,a)+1:i(a).length}return{showInsertionPoint:function(){var e=a();c(t.destinationRootClientId,e)},hideInsertionPoint:o.hideInsertionPoint,onSelect:function(n){var o=e("core/block-editor"),c=o.replaceBlocks,l=o.insertBlock,s=r("core/block-editor").getSelectedBlock,u=t.isAppender,d=t.onSelect,f=t.__experimentalSelectBlockOnInsert,b=n.name,h=n.title,m=n.initialAttributes,g=n.innerBlocks,v=s(),O=Object(i.createBlock)(b,m,function e(t){return Object(p.map)(t,(function(t){var n=Object(D.a)(t,3),r=n[0],o=n[1],c=n[2],a=void 0===c?[]:c;return Object(i.createBlock)(r,o,e(a))}))}(g));if(!u&&v&&Object(i.isUnmodifiedDefaultBlock)(v))c(v.clientId,O);else if(l(O,a(),t.destinationRootClientId,f),!f){var j=Object(U.sprintf)(Object(U.__)("%s block added"),h);Object(ye.speak)(j)}return d(),O}}})),z.withSpokenMessages,h.withInstanceId,h.withSafeTimeout)(Lc),Mc=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,i=e.blockTitle,c=e.hasSingleBlockType,a=e.toggleProps;return t=c?Object(U.sprintf)(Object(U._x)("Add %s","directly add the only allowed block"),i):Object(U._x)("Add block","Generic label for block inserter button"),Object(d.createElement)(z.Button,Object(u.a)({icon:Ct,label:t,tooltipPosition:"bottom",onClick:n,className:"block-editor-inserter__toggle","aria-haspopup":!c&&"true","aria-expanded":!c&&o,disabled:r},a))},Ac=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).onToggle=e.onToggle.bind(Object(C.a)(e)),e.renderToggle=e.renderToggle.bind(Object(C.a)(e)),e.renderContent=e.renderContent.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,r=this.props,o=r.disabled,i=r.blockTitle,c=r.hasSingleBlockType,a=r.toggleProps,l=r.renderToggle,s=void 0===l?Mc:l;return s({onToggle:t,isOpen:n,disabled:o,blockTitle:i,hasSingleBlockType:c,toggleProps:a})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,i=n.isAppender,c=n.showInserterHelpPanel,a=n.__experimentalSelectBlockOnInsert;return Object(d.createElement)(Rc,{onSelect:t,rootClientId:r,clientId:o,isAppender:i,showInserterHelpPanel:c,__experimentalSelectBlockOnInsert:a})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.hasSingleBlockType,r=e.insertOnlyAllowedBlock;return n?this.renderToggle({onToggle:r}):Object(d.createElement)(z.Dropdown,{className:"block-editor-inserter",contentClassName:"block-editor-inserter__popover",position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(U.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),t}(d.Component),Dc=Object(h.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/block-editor"),i=o.getBlockRootClientId,c=o.hasInserterItems,a=o.__experimentalGetAllowedBlocks,l=e("core/blocks").getBlockVariations,s=a(r=r||i(n)||void 0),u=1===Object(p.size)(s)&&0===Object(p.size)(l(s[0].name,"inserter")),d=!1;return u&&(d=s[0]),{hasItems:c(r),hasSingleBlockType:u,blockTitle:d?d.title:"",allowedBlockType:d,rootClientId:r}})),Object(g.withDispatch)((function(e,t,n){var r=n.select;return{insertOnlyAllowedBlock:function(){var n=t.rootClientId,o=t.clientId,c=t.isAppender,a=t.hasSingleBlockType,l=t.allowedBlockType,s=t.__experimentalSelectBlockOnInsert;if(a&&((0,e("core/block-editor").insertBlock)(Object(i.createBlock)(l.name),function(){var e=r("core/block-editor"),t=e.getBlockIndex,i=e.getBlockSelectionEnd,a=e.getBlockOrder;if(o)return t(o,n);var l=i();return!c&&l?t(l,n)+1:a(n).length}(),n,s),!s)){var u=Object(U.sprintf)(Object(U.__)("%s block added"),l.title);Object(ye.speak)(u)}}}})),Object(h.ifCondition)((function(e){return e.hasItems}))])(Ac);var Fc=function(e){var t=e.rootClientId,n=e.className,r=e.__experimentalSelectBlockOnInsert;return Object(d.createElement)(Dc,{rootClientId:t,__experimentalSelectBlockOnInsert:r,renderToggle:function(e){var t,r=e.onToggle,o=e.disabled,i=e.isOpen,c=e.blockTitle,a=e.hasSingleBlockType;t=a?Object(U.sprintf)(Object(U._x)("Add %s","directly add the only allowed block"),c):Object(U._x)("Add block","Generic label for block inserter button");var l=!a;return Object(d.createElement)(z.Tooltip,{text:t},Object(d.createElement)(z.Button,{className:b()(n,"block-editor-button-block-appender"),onClick:r,"aria-haspopup":l?"true":void 0,"aria-expanded":l?i:void 0,disabled:o,label:t},Object(d.createElement)("span",{className:"screen-reader-text"},t),Object(d.createElement)(wt.a,{icon:Ct})))},isAppender:!0})};function Hc(e){var t=e.blocks,n=e.selectedBlockClientId,r=e.selectBlock,o=e.showAppender,c=e.showNestedBlocks,a=e.parentBlockClientId,l=o&&!!a;return Object(d.createElement)("ul",{className:"block-editor-block-navigation__list",role:"list"},Object(p.map)(Object(p.omitBy)(t,p.isNil),(function(e){var t=Object(i.getBlockType)(e.name),a=e.clientId===n;return Object(d.createElement)("li",{key:e.clientId},Object(d.createElement)("div",{className:"block-editor-block-navigation__item"},Object(d.createElement)(z.Button,{className:b()("block-editor-block-navigation__item-button",{"is-selected":a}),onClick:function(){return r(e.clientId)}},Object(d.createElement)(St,{icon:t.icon,showColors:!0}),Object(i.__experimentalGetBlockLabel)(t,e.attributes),a&&Object(d.createElement)("span",{className:"screen-reader-text"},Object(U.__)("(selected block)")))),c&&!!e.innerBlocks&&!!e.innerBlocks.length&&Object(d.createElement)(Hc,{blocks:e.innerBlocks,selectedBlockClientId:n,selectBlock:r,parentBlockClientId:e.clientId,showAppender:o,showNestedBlocks:!0}))})),l&&Object(d.createElement)("li",null,Object(d.createElement)("div",{className:"block-editor-block-navigation__item"},Object(d.createElement)(Fc,{rootClientId:a,__experimentalSelectBlockOnInsert:!1}))))}var Vc=Object(h.compose)(Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.getBlock,i=t.getBlocks,c=n();return{rootBlocks:i(),rootBlock:c?o(r(c)):null,selectedBlockClientId:c}})),Object(g.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?p.noop:n;return{selectBlock:function(t){e("core/block-editor").selectBlock(t),r(t)}}})))((function(e){var t=e.rootBlock,n=e.rootBlocks,r=e.selectedBlockClientId,o=e.selectBlock;if(!n||0===n.length)return null;var i=t&&(t.clientId!==r||t.innerBlocks&&0!==t.innerBlocks.length);return Object(d.createElement)(z.NavigableMenu,{role:"presentation",className:"block-editor-block-navigation__container"},Object(d.createElement)("p",{className:"block-editor-block-navigation__label"},Object(U.__)("Block navigation")),i&&Object(d.createElement)(Hc,{blocks:[t],selectedBlockClientId:r,selectBlock:o,showNestedBlocks:!0}),!i&&Object(d.createElement)(Hc,{blocks:n,selectedBlockClientId:r,selectBlock:o}))})),Uc=Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(d.createElement)(z.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));function zc(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen;Object(l.useShortcut)("core/edit-post/toggle-block-navigation",Object(d.useCallback)(n,[n]),{bindGlobal:!0,isDisabled:!t});var o=Object(g.useSelect)((function(e){return e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-block-navigation")}),[]);return Object(d.createElement)(z.Button,{icon:Uc,"aria-expanded":r,onClick:t?n:void 0,label:Object(U.__)("Block navigation"),className:"block-editor-block-navigation",shortcut:o,"aria-disabled":!t})}var Gc=function(e){var t=e.isDisabled,n=Object(g.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[])&&!t;return Object(d.createElement)(z.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:function(e){return Object(d.createElement)(zc,Object(u.a)({},e,{isEnabled:n}))},renderContent:function(e){var t=e.onClose;return Object(d.createElement)(Vc,{onSelect:t})}})};function Kc(e){var t=e.pattern,n=e.onClick,r=t.title,o=t.content,c=Object(d.useMemo)((function(){return Object(i.parse)(o)}),[o]);return Object(d.createElement)("div",{className:"block-editor-patterns__item",role:"button",onClick:function(){return n(t,c)},onKeyDown:function(e){xt.ENTER!==e.keyCode&&xt.SPACE!==e.keyCode||n(c)},tabIndex:0},Object(d.createElement)("div",{className:"block-editor-patterns__item-preview"},Object(d.createElement)(bc,{blocks:c,autoHeight:!0})),Object(d.createElement)("div",{className:"block-editor-patterns__item-title"},r))}var Wc=function(e){var t=e.patterns,n=Object(g.useSelect)((function(e){return e("core/block-editor").getBlockInsertionPoint})),r=Object(g.useDispatch)("core/block-editor").insertBlocks,o=Object(g.useDispatch)("core/notices").createSuccessNotice,c=Object(d.useCallback)((function(e,t){var c=n(),a=c.index,l=c.rootClientId;r(Object(p.map)(t,(function(e){return Object(i.cloneBlock)(e)})),a,l,!1),o(Object(U.sprintf)(Object(U.__)('Pattern "%s" inserted'),e.title),{type:"snackbar"})}),[]);return Object(d.createElement)("div",{className:"block-editor-patterns"},t.map((function(e,t){return Object(d.createElement)(Kc,{key:t,pattern:e,onClick:c})})))},qc=n(180);var $c=function(e){var t=e.icon,n=void 0===t?qc.a:t,r=e.label,o=void 0===r?Object(U.__)("Choose variation"):r,i=e.instructions,c=void 0===i?Object(U.__)("Select a variation to start with."):i,a=e.variations,l=e.onSelect,s=e.allowSkip,u=b()("block-editor-block-variation-picker",{"has-many-variations":a.length>4});return Object(d.createElement)(z.Placeholder,{icon:n,label:o,instructions:c,className:u},Object(d.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list"},a.map((function(e){return Object(d.createElement)("li",{key:e.name},Object(d.createElement)(z.Button,{isSecondary:!0,icon:e.icon,iconSize:48,onClick:function(){return l(e)},className:"block-editor-block-variation-picker__variation",label:e.title}))}))),s&&Object(d.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(d.createElement)(z.Button,{isLink:!0,onClick:function(){return l()}},Object(U.__)("Skip"))))},Yc=Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(z.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),Xc=Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(z.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"}));function Zc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Jc={top:{icon:Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(z.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:Object(U._x)("Vertically Align Top","Block vertical alignment setting")},center:{icon:Xc,title:Object(U._x)("Vertically Align Middle","Block vertical alignment setting")},bottom:{icon:Yc,title:Object(U._x)("Vertically Align Bottom","Block vertical alignment setting")}},Qc=["top","center","bottom"];var ea=function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?Qc:r,i=e.isCollapsed,c=void 0===i||i,a=Jc[t],l=Jc.top;return Object(d.createElement)(z.Toolbar,{isCollapsed:c,icon:a?a.icon:l.icon,label:Object(U._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zc(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Jc[e],{isActive:t===e,role:c?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))})},ta=Object(h.createHigherOrderComponent)(Object(g.withSelect)((function(e,t){var n=e("core/block-editor").getSettings(),r=void 0===t.colors?n.colors:t.colors,o=void 0===t.disableCustomColors?n.disableCustomColors:t.disableCustomColors;return{colors:r,disableCustomColors:o,hasColorsToChoose:!Object(p.isEmpty)(r)||!o}})),"withColorContext"),na=ta(z.ColorPalette);function ra(e){var t=e.onChange,n=e.value,r=Object(F.a)(e,["onChange","value"]);return Object(d.createElement)(ue,Object(u.a)({},r,{onColorChange:t,colorValue:n,gradients:[],disableCustomGradients:!0}))}var oa=Object(z.navigateRegions)((function(e){var t=e.footer,n=e.header,r=e.sidebar,o=e.content,i=e.publish,c=e.className;return function(e){Object(d.useEffect)((function(){var t=document&&document.querySelector("html:not(.".concat(e,")"));if(t)return t.classList.toggle(e),function(){t.classList.toggle(e)}}),[e])}("block-editor-editor-skeleton__html-container"),Object(d.createElement)("div",{className:b()(c,"block-editor-editor-skeleton")},!!n&&Object(d.createElement)("div",{className:"block-editor-editor-skeleton__header",role:"region","aria-label":Object(U.__)("Editor top bar"),tabIndex:"-1"},n),Object(d.createElement)("div",{className:"block-editor-editor-skeleton__body"},Object(d.createElement)("div",{className:"block-editor-editor-skeleton__content",role:"region","aria-label":Object(U.__)("Editor content"),tabIndex:"-1"},o),!!r&&Object(d.createElement)("div",{className:"block-editor-editor-skeleton__sidebar",role:"region","aria-label":Object(U.__)("Editor settings"),tabIndex:"-1"},r),!!i&&Object(d.createElement)("div",{className:"block-editor-editor-skeleton__publish",role:"region","aria-label":Object(U.__)("Editor publish"),tabIndex:"-1"},i)),!!t&&Object(d.createElement)("div",{className:"block-editor-editor-skeleton__footer",role:"region","aria-label":Object(U.__)("Editor footer"),tabIndex:"-1"},t))}));function ia(e){var t=Object(g.useSelect)((function(e){return Object(p.pick)(e("core/block-editor").getSettings(),["gradients","disableCustomGradients"])}),[]),n=t.gradients,r=t.disableCustomGradients;return Object(d.createElement)(z.__experimentalGradientPicker,Object(u.a)({gradients:void 0!==e.gradients?e.gradient:n,disableCustomGradients:void 0!==e.disableCustomGradients?e.disableCustomGradients:r},e))}var ca=function(e){var t=void 0!==e.gradients&&void 0!==e.disableCustomGradients?z.__experimentalGradientPicker:ia;return Object(d.createElement)(t,e)},aa=function(e){var t=e.className,n=e.value,r=e.onChange,o=e.label,i=void 0===o?Object(U.__)("Gradient Presets"):o,c=Object(F.a)(e,["className","value","onChange","label"]),a=Object(g.useSelect)((function(e){return Object(p.pick)(e("core/block-editor").getSettings(),["gradients","disableCustomGradients"])}),[]),l=a.gradients,s=void 0===l?[]:l,f=a.disableCustomGradients;return Object(p.isEmpty)(s)&&f?null:Object(d.createElement)(z.BaseControl,{className:b()("block-editor-gradient-picker-control",t)},Object(d.createElement)(z.BaseControl.VisualLabel,null,i),Object(d.createElement)(ca,Object(u.a)({value:n,onChange:r,className:"block-editor-gradient-picker-control__gradient-picker-presets",gradients:s,disableCustomGradients:f},c)))};function la(e){var t=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings().gradients}),[]);return Object(p.isEmpty)(t)?null:Object(d.createElement)(z.PanelBody,{title:Object(U.__)("Gradient")},Object(d.createElement)(aa,e))}var sa=function(e){function t(e){var n;return Object(_.a)(this,t),(n=Object(S.a)(this,Object(w.a)(t).call(this,e))).updateDimensions=n.updateDimensions.bind(Object(C.a)(n)),n}return Object(I.a)(t,e),Object(E.a)(t,[{key:"updateDimensions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return function(){e.props.onChange({width:t,height:n})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.imageWidth,r=t.imageHeight,o=t.imageSizeOptions,i=void 0===o?[]:o,c=t.isResizable,a=void 0===c||c,l=t.slug,s=t.width,u=t.height,f=t.onChange,b=t.onChangeImage,h=void 0===b?p.noop:b;return Object(d.createElement)(d.Fragment,null,!Object(p.isEmpty)(i)&&Object(d.createElement)(z.SelectControl,{label:Object(U.__)("Image size"),value:l,options:i,onChange:h}),a&&Object(d.createElement)("div",{className:"block-editor-image-size-control"},Object(d.createElement)("p",{className:"block-editor-image-size-control__row"},Object(U.__)("Image dimensions")),Object(d.createElement)("div",{className:"block-editor-image-size-control__row"},Object(d.createElement)(z.TextControl,{type:"number",className:"block-editor-image-size-control__width",label:Object(U.__)("Width"),value:s||n||"",min:1,onChange:function(e){return f({width:parseInt(e,10)})}}),Object(d.createElement)(z.TextControl,{type:"number",className:"block-editor-image-size-control__height",label:Object(U.__)("Height"),value:u||r||"",min:1,onChange:function(e){return f({height:parseInt(e,10)})}})),Object(d.createElement)("div",{className:"block-editor-image-size-control__row"},Object(d.createElement)(z.ButtonGroup,{"aria-label":Object(U.__)("Image Size")},[25,50,75,100].map((function(t){var o=Math.round(n*(t/100)),i=Math.round(r*(t/100)),c=s===o&&u===i;return Object(d.createElement)(z.Button,{key:t,isSmall:!0,isPrimary:c,isPressed:c,onClick:e.updateDimensions(o,i)},t,"%")}))),Object(d.createElement)(z.Button,{isSmall:!0,onClick:this.updateDimensions()},Object(U.__)("Reset")))))}}]),t}(d.Component),ua=n(49),da=n.n(ua),fa=Object(h.createHigherOrderComponent)((function(e){return Y((function(e){return Object(p.pick)(e,["clientId"])}))(e)}),"withClientId"),ba=fa((function(e){var t=e.clientId,n=e.showSeparator;return Object(d.createElement)(Fc,{rootClientId:t,showSeparator:n})})),pa=Object(h.compose)([fa,Object(g.withSelect)((function(e,t){var n=t.clientId,r=(0,e("core/block-editor").getBlockOrder)(n);return{lastBlockClientId:Object(p.last)(r)}}))])((function(e){var t=e.clientId,n=e.lastBlockClientId;return Object(d.createElement)(nc,{rootClientId:t,lastBlockClientId:n})})),ha=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).state={templateInProcess:!!e.props.template},e.updateNestedSettings(),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.block,n=e.templateLock,r=e.__experimentalBlocks,o=e.replaceInnerBlocks,i=e.__unstableMarkNextChangeAsNotPersistent;0!==t.innerBlocks.length&&"all"!==n||this.synchronizeBlocksWithTemplate(),this.state.templateInProcess&&this.setState({templateInProcess:!1}),r&&(i(),o(r))}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.block,r=t.templateLock,o=t.template,i=t.isLastBlockChangePersistent,c=t.onInput,a=t.onChange,l=n.innerBlocks;(this.updateNestedSettings(),0===l.length||"all"===r)&&(!Object(p.isEqual)(o,e.template)&&this.synchronizeBlocksWithTemplate());if(e.block.innerBlocks!==l){var s=i?a:c;s&&s(l)}}},{key:"synchronizeBlocksWithTemplate",value:function(){var e=this.props,t=e.template,n=e.block,r=e.replaceInnerBlocks,o=n.innerBlocks,c=Object(i.synchronizeBlocksWithTemplate)(o,t);Object(p.isEqual)(c,o)||r(c)}},{key:"updateNestedSettings",value:function(){var e=this.props,t=e.blockListSettings,n=e.allowedBlocks,r=e.updateNestedSettings,o=e.templateLock,i=e.parentLock,c={allowedBlocks:n,templateLock:void 0===o?i:o,__experimentalCaptureToolbars:e.__experimentalCaptureToolbars||!1,__experimentalMoverDirection:e.__experimentalMoverDirection,__experimentalUIParts:e.__experimentalUIParts};da()(t,c)||r(c)}},{key:"render",value:function(){var e=this.props,t=e.enableClickThrough,n=e.clientId,r=e.hasOverlay,o=e.__experimentalCaptureToolbars,i=e.forwardedRef,c=Object(F.a)(e,["enableClickThrough","clientId","hasOverlay","__experimentalCaptureToolbars","forwardedRef"]);if(this.state.templateInProcess)return null;var a=b()({"has-overlay":t&&r,"is-capturing-toolbar":o}),l=Object(d.createElement)(ac,Object(u.a)({},c,{ref:i,rootClientId:n,className:a}));return c.__experimentalTagName?l:Object(d.createElement)("div",{className:"block-editor-inner-blocks",ref:i},l)}}]),t}(d.Component),ma=Object(h.compose)([Object(a.withViewportMatch)({isSmallScreen:"< medium"}),Y((function(e){return Object(p.pick)(e,["clientId"])})),Object(g.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.isBlockSelected,o=n.hasSelectedInnerBlock,i=n.getBlock,c=n.getBlockListSettings,a=n.getBlockRootClientId,l=n.getTemplateLock,s=n.isNavigationMode,u=n.isLastBlockChangePersistent,d=t.clientId,f=t.isSmallScreen,b=i(d),p=a(d);return{block:b,blockListSettings:c(d),hasOverlay:"core/template"!==b.name&&!r(d)&&!o(d,!0),parentLock:l(p),enableClickThrough:s()||f,isLastBlockChangePersistent:u()}})),Object(g.withDispatch)((function(e,t){var n=e("core/block-editor"),r=n.replaceInnerBlocks,o=n.__unstableMarkNextChangeAsNotPersistent,i=n.updateBlockListSettings,c=t.block,a=t.clientId,l=t.templateInsertUpdatesSelection,s=void 0===l||l;return{replaceInnerBlocks:function(e){r(a,e,0===c.innerBlocks.length&&s&&0!==e.length)},__unstableMarkNextChangeAsNotPersistent:o,updateNestedSettings:function(t){e(i(a,t))}}}))])(ha),ga=Object(d.forwardRef)((function(e,t){var n=Object(d.useRef)();return Object(d.createElement)(ma,Object(u.a)({},e,{forwardedRef:t||n}))}));ga.DefaultBlockAppender=pa,ga.ButtonBlockAppender=ba,ga.Content=Object(i.withBlockContentContext)((function(e){var t=e.BlockContent;return Object(d.createElement)(t,null)}));var va=ga,Oa=Object(z.createSlotFill)("InspectorAdvancedControls"),ja=Oa.Fill,ka=Oa.Slot,ya=X(ja);ya.slotName="InspectorAdvancedControls",ya.Slot=ka;var _a=ya,Ea=n(44);function Sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var wa=[{id:"opensInNewTab",title:Object(U.__)("Open in new tab")}],Ca=function(e){var t=e.value,n=e.onChange,r=void 0===n?p.noop:n,o=e.settings,i=void 0===o?wa:o;if(!i||!i.length)return null;var c=function(e){return function(n){r(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sa(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,Object(s.a)({},e.id,n)))}},a=i.map((function(e){return Object(d.createElement)(z.ToggleControl,{className:"block-editor-link-control__setting",key:e.id,label:e.title,onChange:c(e),checked:!!t&&!!t[e.id]})}));return Object(d.createElement)("fieldset",{className:"block-editor-link-control__settings"},Object(d.createElement)("legend",{className:"screen-reader-text"},Object(U.__)("Currently selected link settings")),a)},Ia=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(tt.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"})),Ba=function(e){var t=e.itemProps,n=e.suggestion,r=e.isSelected,o=void 0!==r&&r,i=e.onClick,c=e.isURL,a=void 0!==c&&c,l=e.searchTerm,s=void 0===l?"":l;return Object(d.createElement)(z.Button,Object(u.a)({},t,{onClick:i,className:b()("block-editor-link-control__search-item",{"is-selected":o,"is-url":a,"is-entity":!a})}),a&&Object(d.createElement)(wt.a,{className:"block-editor-link-control__search-item-icon",icon:Ia}),Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(d.createElement)(z.TextHighlight,{text:n.title,highlight:s})),Object(d.createElement)("span",{"aria-hidden":!a,className:"block-editor-link-control__search-item-info"},!a&&(Object(Tt.safeDecodeURI)(n.url)||""),a&&Object(U.__)("Press ENTER to add this link"))),n.type&&Object(d.createElement)("span",{className:"block-editor-link-control__search-item-type"},n.type))},xa=n(181),Ta=function(e){var t=e.value,n=e.onChange,r=e.onSelect,o=e.renderSuggestions,i=e.fetchSuggestions,c=e.showInitialSuggestions,a=e.errorMessage,l=Object(d.useState)(),s=Object(D.a)(l,2),u=s[0],f=s[1];return Object(d.createElement)("form",{onSubmit:function(e){e.preventDefault(),r(u||{url:t})}},Object(d.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(d.createElement)($a,{className:"block-editor-link-control__search-input",value:t,onChange:function(e,t){n(e),f(t)},placeholder:Object(U.__)("Search or type url"),__experimentalRenderSuggestions:o,__experimentalFetchLinkSuggestions:i,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:c}),Object(d.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(d.createElement)(z.Button,{type:"submit",label:Object(U.__)("Submit"),icon:xa.a,className:"block-editor-link-control__search-submit"}))),a&&Object(d.createElement)(z.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},a))},Pa=function(e){var t=e.searchTerm,n=e.onClick,r=e.itemProps,o=e.isSelected;return t?Object(d.createElement)(z.Button,Object(u.a)({},r,{className:b()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":o}),onClick:n}),Object(d.createElement)(z.Icon,{className:"block-editor-link-control__search-item-icon",icon:"insert"}),Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(d.__experimentalCreateInterpolateElement)(Object(U.sprintf)(Object(U.__)("New page: <mark>%s</mark>"),t),{mark:Object(d.createElement)("mark",null)})))):null};function Na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Na(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Na(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ra=Object(z.createSlotFill)("BlockEditorLinkControlViewer"),Ma=Ra.Slot,Aa=Ra.Fill,Da=function(e){var t=!1;return{promise:new Promise((function(n,r){e.then((function(e){return t?r({isCanceled:!0}):n(e)}),(function(e){return r(t?{isCanceled:!0}:e)}))})),cancel:function(){t=!0}}};function Fa(e){var t=e.value,n=e.settings,r=e.onChange,o=void 0===r?p.noop:r,i=e.showInitialSuggestions,c=e.forceIsEditingLink,a=e.createSuggestion,l=Object(d.useRef)(),s=Object(d.useRef)(),f=Object(d.useRef)(),m=Object(h.useInstanceId)(Fa),v=Object(d.useState)(t&&t.url||""),O=Object(D.a)(v,2),j=O[0],k=O[1],y=Object(d.useState)(void 0!==c?c:!t||!t.url),_=Object(D.a)(y,2),E=_[0],S=_[1],w=Object(d.useState)(!1),C=Object(D.a)(w,2),I=C[0],B=C[1],x=Object(d.useState)(null),T=Object(D.a)(x,2),P=T[0],N=T[1],L=Object(d.useRef)(!1),R=Object(g.useSelect)((function(e){return{fetchSearchSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}}),[]).fetchSearchSuggestions,M=t&&Object(Tt.filterURLForDisplay)(Object(Tt.safeDecodeURI)(t.url))||"";Object(d.useEffect)((function(){void 0!==c&&c!==E&&S(c)}),[c]),Object(d.useEffect)((function(){L.current&&f.current&&!f.current.contains(document.activeElement)&&(pi.focus.focusable.find(f.current)[0]||f.current).focus();L.current=!1}),[E]),Object(d.useEffect)((function(){return function(){l.current&&l.current.cancel(),s.current&&s.current.cancel()}}),[]);var A=function(e){var t="URL",n=Object(Tt.getProtocol)(e)||"";return n.includes("mailto")&&(t="mailto"),n.includes("tel")&&(t="tel"),Object(p.startsWith)(e,"#")&&(t="internal"),Promise.resolve([{id:e,title:e,url:"URL"===t?Object(Tt.prependHTTP)(e):e,type:t}])},F=function(){var e=Object(Ea.a)(nn.a.mark((function e(t,n){var r,o;return nn.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([R(t,La({},n.isInitialSuggestions?{perPage:3}:{})),A(t)]);case 2:return r=e.sent,o=!t.includes(" "),r=o&&!n.isInitialSuggestions?r[0].concat(r[1]):r[0],e.abrupt("return",V(t)?r:r.concat({title:t,url:t,type:"__CREATE__"}));case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();function H(){L.current=!!f.current&&f.current.contains(document.activeElement),S(!1)}function V(e){var t=Object(p.startsWith)(e,"#");return Object(Tt.isURL)(e)||e&&e.includes("www.")||t}var G=Object(d.useCallback)((function(e,t){return V(e)?A(e):F(e,t)}),[A,R]),K=function(){var e=Object(Ea.a)(nn.a.mark((function e(t){var n;return nn.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B(!0),N(null),e.prev=2,s.current=Da(Promise.resolve(a(t))),e.next=6,s.current.promise;case 6:n=e.sent,B(!1),n?(o(n),H()):S(!0),e.next=18;break;case 11:if(e.prev=11,e.t0=e.catch(2),!e.t0||!e.t0.isCanceled){e.next=15;break}return e.abrupt("return");case 15:N(e.t0.message||Object(U.__)("An unknown error occurred during creation. Please try again.")),B(!1),S(!0);case 18:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(t){return e.apply(this,arguments)}}(),W=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};S(!1),o(La({},t,{},e))},q=Object(d.useMemo)((function(){return{url:t&&t.url}}),[t&&t.url]);return Object(d.createElement)("div",{tabIndex:-1,ref:f,className:"block-editor-link-control"},I&&Object(d.createElement)("div",{className:"block-editor-link-control__loading"},Object(d.createElement)(z.Spinner,null)," ",Object(U.__)("Creating"),"…"),(E||!t)&&!I&&Object(d.createElement)(Ta,{value:j,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";k(e)},onSelect:function(){var e=Object(Ea.a)(nn.a.mark((function e(n){return nn.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("__CREATE__"!==n.type){e.next=5;break}return e.next=3,K(j);case 3:e.next=7;break;case 5:W(n,t),H();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),renderSuggestions:function(e){var n=e.suggestionsListProps,r=e.buildSuggestionItemProps,i=e.suggestions,c=e.selectedSuggestion,l=e.isLoading,s=e.isInitialSuggestions,f=b()("block-editor-link-control__search-results",{"is-loading":l}),p=["url","mailto","tel","internal"],h=1===i.length&&p.includes(i[0].type.toLowerCase()),g=a&&!h&&!s,v="block-editor-link-control-search-results-label-".concat(m),O=s?Object(U.__)("Recently updated"):Object(U.sprintf)(Object(U.__)('Search results for "%s"'),j),k=Object(d.createElement)(s?d.Fragment:z.VisuallyHidden,{},Object(d.createElement)("span",{className:"block-editor-link-control__search-results-label",id:v},O));return Object(d.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},k,Object(d.createElement)("div",Object(u.a)({},n,{className:f,"aria-labelledby":v}),i.map((function(e,n){return g&&"__CREATE__"===e.type?Object(d.createElement)(Pa,{searchTerm:j,onClick:Object(Ea.a)(nn.a.mark((function t(){return nn.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,K(e.title);case 2:case"end":return t.stop()}}),t)}))),key:e.type,itemProps:r(e,n),isSelected:n===c}):"__CREATE__"===e.type?null:Object(d.createElement)(Ba,{key:"".concat(e.id,"-").concat(e.type),itemProps:r(e,n),suggestion:e,index:n,onClick:function(){H(),o(La({},t,{},e))},isSelected:n===c,isURL:p.includes(e.type.toLowerCase()),searchTerm:j})}))))},fetchSuggestions:G,showInitialSuggestions:i,errorMessage:P}),t&&!E&&!I&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{"aria-label":Object(U.__)("Currently selected"),"aria-selected":"true",className:b()("block-editor-link-control__search-item",{"is-current":!0})},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)(z.ExternalLink,{className:"block-editor-link-control__search-item-title",href:t.url},t&&t.title||M),t&&t.title&&Object(d.createElement)("span",{className:"block-editor-link-control__search-item-info"},M)),Object(d.createElement)(z.Button,{isSecondary:!0,onClick:function(){return S(!0)},className:"block-editor-link-control__search-item-action"},Object(U.__)("Edit")),Object(d.createElement)(Ma,{fillProps:q}))),Object(d.createElement)(Ca,{value:t,settings:n,onChange:o}))}Fa.ViewerFill=Aa;var Ha=Fa,Va=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(tt.Path,{d:"M13 11V4c0-.55-.45-1-1-1h-1.67L9 1H5L3.67 3H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h10c.55 0 1-.45 1-1zM7 4.5c1.38 0 2.5 1.12 2.5 2.5S8.38 9.5 7 9.5 4.5 8.38 4.5 7 5.62 4.5 7 4.5zM14 6h5v10.5c0 1.38-1.12 2.5-2.5 2.5S14 17.88 14 16.5s1.12-2.5 2.5-2.5c.17 0 .34.02.5.05V9h-3V6zm-4 8.05V13h2v3.5c0 1.38-1.12 2.5-2.5 2.5S7 17.88 7 16.5 8.12 14 9.5 14c.17 0 .34.02.5.05z"})),Ua=n(264),za=n(156),Ga=Object(z.withFilters)("editor.MediaUpload")((function(){return null}));var Ka=Object(g.withSelect)((function(e){return{hasUploadPermissions:!!(0,e("core/block-editor").getSettings)().mediaUpload}}))((function(e){var t=e.hasUploadPermissions,n=e.fallback,r=void 0===n?null:n,o=e.children;return t?o:r})),Wa=function(e){return e.stopPropagation()},qa=function(e){function t(e){var n;return Object(_.a)(this,t),(n=Object(S.a)(this,Object(w.a)(t).call(this,e))).onChange=n.onChange.bind(Object(C.a)(n)),n.onFocus=n.onFocus.bind(Object(C.a)(n)),n.onKeyDown=n.onKeyDown.bind(Object(C.a)(n)),n.selectLink=n.selectLink.bind(Object(C.a)(n)),n.handleOnClick=n.handleOnClick.bind(Object(C.a)(n)),n.bindSuggestionNode=n.bindSuggestionNode.bind(Object(C.a)(n)),n.autocompleteRef=e.autocompleteRef||Object(d.createRef)(),n.inputRef=Object(d.createRef)(),n.updateSuggestions=Object(p.throttle)(n.updateSuggestions.bind(Object(C.a)(n)),200),n.suggestionNodes=[],n.isUpdatingSuggestions=!1,n.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null},n}return Object(I.a)(t,e),Object(E.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this,n=this.state,r=n.showSuggestions,o=n.selectedSuggestion,i=this.props.value;r&&null!==o&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,Bt()(this.suggestionNodes[o],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){t.scrollingIntoView=!1}),100)),e.value!==i&&this.shouldShowInitialSuggestions()&&this.updateSuggestions()}},{key:"componentDidMount",value:function(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest}},{key:"bindSuggestionNode",value:function(e){var t=this;return function(n){t.suggestionNodes[e]=n}}},{key:"shouldShowInitialSuggestions",value:function(){var e=this.state.suggestions,t=this.props,n=t.__experimentalShowInitialSuggestions,r=void 0!==n&&n,o=t.value;return!this.isUpdatingSuggestions&&r&&!(o&&o.length)&&!(e&&e.length)}},{key:"updateSuggestions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=this.props,r=n.__experimentalFetchLinkSuggestions,o=n.__experimentalHandleURLSuggestions;if(r){var i=!(t&&t.length);if(i||!(t.length<2||!o&&Object(Tt.isURL)(t))){this.isUpdatingSuggestions=!0,this.setState({showSuggestions:!0,selectedSuggestion:null,loading:!0});var c=r(t,{isInitialSuggestions:i});c.then((function(t){e.suggestionsRequest===c&&(e.setState({suggestions:t,loading:!1}),t.length?e.props.debouncedSpeak(Object(U.sprintf)(Object(U._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):e.props.debouncedSpeak(Object(U.__)("No results."),"assertive"),e.isUpdatingSuggestions=!1)})).catch((function(){e.suggestionsRequest===c&&(e.setState({loading:!1}),e.isUpdatingSuggestions=!1)})),this.suggestionsRequest=c}else this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1})}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t)}},{key:"onFocus",value:function(){var e=this.state.suggestions,t=this.props,n=t.disableSuggestions,r=t.value;!r||n||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(r)}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,i=t.loading;if(n&&o.length&&!i){var c=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case xt.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case xt.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case xt.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(c),this.props.speak(Object(U.__)("Link selected.")));break;case xt.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(c))}}else switch(e.keyCode){case xt.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case xt.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.instanceId,o=t.className,i=t.isFullWidth,c=t.hasBorder,a=t.__experimentalRenderSuggestions,l=t.placeholder,s=void 0===l?Object(U.__)("Paste URL or type to search"):l,f=t.value,h=void 0===f?"":f,m=t.autoFocus,g=void 0===m||m,v=t.__experimentalShowInitialSuggestions,O=void 0!==v&&v,j=this.state,k=j.showSuggestions,y=j.suggestions,_=j.selectedSuggestion,E=j.loading,S="url-input-control-".concat(r),w="block-editor-url-input-suggestions-".concat(r),C="block-editor-url-input-suggestion-".concat(r),I={id:w,ref:this.autocompleteRef,role:"listbox"},B=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(C,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===_}};return Object(d.createElement)(z.BaseControl,{label:n,id:S,className:b()("block-editor-url-input",o,{"is-full-width":i,"has-border":c})},Object(d.createElement)("input",{className:"block-editor-url-input__input",autoFocus:g,type:"text","aria-label":Object(U.__)("URL"),required:!0,value:h,onChange:this.onChange,onFocus:this.onFocus,onInput:Wa,placeholder:s,onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":k,"aria-autocomplete":"list","aria-owns":w,"aria-activedescendant":null!==_?"".concat(C,"-").concat(_):void 0,ref:this.inputRef}),E&&Object(d.createElement)(z.Spinner,null),Object(p.isFunction)(a)&&k&&!!y.length&&a({suggestions:y,selectedSuggestion:_,suggestionsListProps:I,buildSuggestionItemProps:B,isLoading:E,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:O&&!(h&&h.length)}),!Object(p.isFunction)(a)&&k&&!!y.length&&Object(d.createElement)(z.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(d.createElement)("div",Object(u.a)({},I,{className:b()("block-editor-url-input__suggestions","".concat(o,"__suggestions"))}),y.map((function(t,n){return Object(d.createElement)(z.Button,Object(u.a)({},B(0,n),{key:t.id,className:b()("block-editor-url-input__suggestion",{"is-selected":n===_}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.disableSuggestions,o=e.__experimentalShowInitialSuggestions,i=void 0!==o&&o,c=t.showSuggestions,a=n&&n.length;return i||a||(c=!1),!0===r&&(c=!1),{showSuggestions:c}}}]),t}(d.Component),$a=Object(h.compose)(h.withSafeTimeout,z.withSpokenMessages,h.withInstanceId,Object(g.withSelect)((function(e,t){if(!Object(p.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(qa);function Ya(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,i=Object(F.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(d.createElement)("form",Object(u.a)({className:b()("block-editor-url-popover__link-editor",n)},i),Object(d.createElement)($a,{value:o,onChange:r,autocompleteRef:t}),Object(d.createElement)(z.Button,{icon:xa.a,label:Object(U.__)("Apply"),type:"submit"}))}var Xa=n(263);function Za(e){var t=e.url,n=e.urlLabel,r=e.className,o=b()(r,"block-editor-url-popover__link-viewer-url");return t?Object(d.createElement)(z.ExternalLink,{className:o,href:t},n||Object(Tt.filterURLForDisplay)(Object(Tt.safeDecodeURI)(t))):Object(d.createElement)("span",{className:o})}function Ja(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,i=e.urlLabel,c=Object(F.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(d.createElement)("div",Object(u.a)({className:b()("block-editor-url-popover__link-viewer",t)},c),Object(d.createElement)(Za,{url:o,urlLabel:i,className:n}),r&&Object(d.createElement)(z.Button,{icon:Xa.a,label:Object(U.__)("Edit"),onClick:r}))}var Qa=Object(h.compose)(z.withNotices)((function(e){var t,n=e.mediaURL,r=e.mediaId,o=e.allowedTypes,i=e.accept,c=e.onSelect,a=e.onSelectURL,l=e.onError,s=e.name,u=void 0===s?Object(U.__)("Replace"):s,f=Object(d.useState)(!1),b=Object(D.a)(f,2),p=b[0],h=b[1],m=Object(d.useState)(!1),v=Object(D.a)(m,2),O=v[0],j=v[1],k=Object(d.useState)(n),y=Object(D.a)(k,2),_=y[0],E=y[1],S=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),w=Object(d.createRef)(),C=function(e){c(e),E(e.url),Object(ye.speak)(Object(U.__)("The media file has been replaced"))},I=function(e){e.keyCode===xt.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return t=O?Object(d.createElement)(Ya,{onKeyDown:function(e){[xt.LEFT,xt.DOWN,xt.RIGHT,xt.UP,xt.BACKSPACE,xt.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},onKeyPress:function(e){e.stopPropagation()},value:_,isFullWidthInput:!0,hasInputBorder:!0,onChangeInputValue:function(e){return E(e)},onSubmit:function(e){e.preventDefault(),a(_),j(!1),w.current.focus()}}):Object(d.createElement)(Ja,{isFullWidth:!0,className:"block-editor-media-replace-flow__link-viewer",url:_,onEditLinkClick:function(){return j(!O)}}),Object(d.createElement)(z.Dropdown,{contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(z.ToolbarGroup,{className:"media-replace-flow"},Object(d.createElement)(z.Button,{ref:w,"aria-expanded":t,onClick:n,onKeyDown:I},u))},renderContent:function(e){var n=e.onClose;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.NavigableMenu,null,Object(d.createElement)(Ga,{value:r,onSelect:function(e){return C(e)},allowedTypes:o,render:function(e){var t=e.open;return Object(d.createElement)(z.MenuItem,{icon:Va,onClick:t},Object(U.__)("Open Media Library"))}}),Object(d.createElement)(Ka,null,Object(d.createElement)(z.FormFileUpload,{onChange:function(e){!function(e,t){var n=e.target.files;S({allowedTypes:o,filesList:n,onFileChange:function(e){var n=Object(D.a)(e,1)[0];C(n),t()},onError:l})}(e,n)},accept:i,render:function(e){var t=e.openFileDialog;return Object(d.createElement)(z.MenuItem,{icon:Ua.a,onClick:function(){t()}},Object(U.__)("Upload"))}})),a&&Object(d.createElement)(z.MenuItem,{icon:za.a,onClick:function(){return h(!p)},"aria-expanded":p},Object(d.createElement)("div",null," ",Object(U.__)("Insert from URL")," "))),p&&Object(d.createElement)("div",{className:"block-editor-media-flow__url-input"},t))}})})),el=n(38),tl=n.n(el),nl=n(265),rl=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).toggleSettingsVisibility=e.toggleSettingsVisibility.bind(Object(C.a)(e)),e.state={isSettingsExpanded:!1},e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"toggleSettingsVisibility",value:function(){this.setState({isSettingsExpanded:!this.state.isSettingsExpanded})}},{key:"render",value:function(){var e=this.props,t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,i=void 0===o?"bottom center":o,c=e.focusOnMount,a=void 0===c?"firstElement":c,l=Object(F.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),s=this.state.isSettingsExpanded,f=!!r&&s;return Object(d.createElement)(z.Popover,Object(u.a)({className:"block-editor-url-popover",focusOnMount:a,position:i},l),Object(d.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(d.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(d.createElement)(z.Button,{className:"block-editor-url-popover__settings-toggle",icon:nl.a,label:Object(U.__)("Link settings"),onClick:this.toggleSettingsVisibility,"aria-expanded":s})),f&&Object(d.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!f&&Object(d.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}}]),t}(d.Component);rl.LinkEditor=Ya,rl.LinkViewer=Ja;var ol=rl,il=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(d.createElement)(ol,{onClose:o},Object(d.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(d.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(U.__)("URL"),placeholder:Object(U.__)("Paste or type URL"),onChange:n,value:t}),Object(d.createElement)(z.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:xa.a,label:Object(U.__)("Apply"),type:"submit"})))},cl=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).state={src:"",isURLInputVisible:!1},e.onChangeSrc=e.onChangeSrc.bind(Object(C.a)(e)),e.onSubmitSrc=e.onSubmitSrc.bind(Object(C.a)(e)),e.onUpload=e.onUpload.bind(Object(C.a)(e)),e.onFilesUpload=e.onFilesUpload.bind(Object(C.a)(e)),e.openURLInput=e.openURLInput.bind(Object(C.a)(e)),e.closeURLInput=e.closeURLInput.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"onlyAllowsImages",value:function(){var e=this.props.allowedTypes;return!!e&&Object(p.every)(e,(function(e){return"image"===e||Object(p.startsWith)(e,"image/")}))}},{key:"componentDidMount",value:function(){this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"componentDidUpdate",value:function(e){Object(p.get)(e.value,["src"],"")!==Object(p.get)(this.props.value,["src"],"")&&this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"onChangeSrc",value:function(e){this.setState({src:e.target.value})}},{key:"onSubmitSrc",value:function(e){e.preventDefault(),this.state.src&&this.props.onSelectURL&&(this.props.onSelectURL(this.state.src),this.closeURLInput())}},{key:"onUpload",value:function(e){this.onFilesUpload(e.target.files)}},{key:"onFilesUpload",value:function(e){var t,n=this.props,r=n.addToGallery,o=n.allowedTypes,i=n.mediaUpload,c=n.multiple,a=n.onError,l=n.onSelect,s=n.value;if(c)if(r){var u=void 0===s?[]:s;t=function(e){l(u.concat(e))}}else t=l;else t=function(e){var t=Object(D.a)(e,1)[0];return l(t)};i({allowedTypes:o,filesList:e,onFileChange:t,onError:a})}},{key:"openURLInput",value:function(){this.setState({isURLInputVisible:!0})}},{key:"closeURLInput",value:function(){this.setState({isURLInputVisible:!1})}},{key:"renderPlaceholder",value:function(e,t){var n=this.props,r=n.allowedTypes,o=void 0===r?[]:r,i=n.className,c=n.icon,a=n.isAppender,l=n.labels,s=void 0===l?{}:l,u=n.onDoubleClick,f=n.mediaPreview,p=n.notices,h=n.onSelectURL,m=n.mediaUpload,g=n.children,v=s.instructions,O=s.title;if(m||h||(v=Object(U.__)("To edit this block, you need permission to upload media.")),void 0===v||void 0===O){var j=1===o.length,k=j&&"audio"===o[0],y=j&&"image"===o[0],_=j&&"video"===o[0];void 0===v&&m&&(v=Object(U.__)("Upload a media file or pick one from your media library."),k?v=Object(U.__)("Upload an audio file, pick one from your media library, or add one with a URL."):y?v=Object(U.__)("Upload an image file, pick one from your media library, or add one with a URL."):_&&(v=Object(U.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===O&&(O=Object(U.__)("Media"),k?O=Object(U.__)("Audio"):y?O=Object(U.__)("Image"):_&&(O=Object(U.__)("Video")))}var E=b()("block-editor-media-placeholder",i,{"is-appender":a});return Object(d.createElement)(z.Placeholder,{icon:c,label:O,instructions:v,className:E,notices:p,onClick:t,onDoubleClick:u,preview:f},e,g)}},{key:"renderDropZone",value:function(){var e=this.props,t=e.disableDropZone,n=e.onHTMLDrop,r=void 0===n?p.noop:n;return t?null:Object(d.createElement)(z.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:r})}},{key:"renderCancelLink",value:function(){var e=this.props.onCancel;return e&&Object(d.createElement)(z.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(U.__)("Cancel"),isLink:!0,onClick:e},Object(U.__)("Cancel"))}},{key:"renderUrlSelectionUI",value:function(){if(!this.props.onSelectURL)return null;var e=this.state,t=e.isURLInputVisible,n=e.src;return Object(d.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(d.createElement)(z.Button,{className:"block-editor-media-placeholder__button",onClick:this.openURLInput,isPressed:t,isTertiary:!0},Object(U.__)("Insert from URL")),t&&Object(d.createElement)(il,{src:n,onChange:this.onChangeSrc,onSubmit:this.onSubmitSrc,onClose:this.closeURLInput}))}},{key:"renderMediaUploadChecked",value:function(){var e=this,t=this.props,n=t.accept,r=t.addToGallery,o=t.allowedTypes,i=void 0===o?[]:o,c=t.isAppender,a=t.mediaUpload,l=t.multiple,s=void 0!==l&&l,u=t.onSelect,f=t.value,h=void 0===f?{}:f,m=Object(d.createElement)(Ga,{addToGallery:r,gallery:s&&this.onlyAllowsImages(),multiple:s,onSelect:u,allowedTypes:i,value:Object(p.isArray)(h)?h.map((function(e){return e.id})):h.id,render:function(e){var t=e.open;return Object(d.createElement)(z.Button,{isTertiary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(U.__)("Media Library"))}});if(a&&c)return Object(d.createElement)(d.Fragment,null,this.renderDropZone(),Object(d.createElement)(z.FormFileUpload,{onChange:this.onUpload,accept:n,multiple:s,render:function(t){var n=t.openFileDialog,r=Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.Button,{isPrimary:!0,className:b()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(U.__)("Upload")),m,e.renderUrlSelectionUI(),e.renderCancelLink());return e.renderPlaceholder(r,n)}}));if(a){var g=Object(d.createElement)(d.Fragment,null,this.renderDropZone(),Object(d.createElement)(z.FormFileUpload,{isPrimary:!0,className:b()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:this.onUpload,accept:n,multiple:s},Object(U.__)("Upload")),m,this.renderUrlSelectionUI(),this.renderCancelLink());return this.renderPlaceholder(g)}return this.renderPlaceholder(m)}},{key:"render",value:function(){var e=this.props,t=e.disableMediaButtons,n=e.dropZoneUIOnly;return n||t?(n&&tl()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(d.createElement)(Ka,null,this.renderDropZone())):Object(d.createElement)(Ka,{fallback:this.renderPlaceholder(this.renderUrlSelectionUI())},this.renderMediaUploadChecked())}}]),t}(d.Component),al=Object(g.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),ll=Object(h.compose)(al,Object(z.withFilters)("editor.MediaPlaceholder"))(cl),sl=Object(d.forwardRef)((function(e,t){var n=e.onChange,r=e.className,o=Object(F.a)(e,["onChange","className"]);return Object(d.createElement)(di.a,Object(u.a)({ref:t,className:b()("block-editor-plain-text",r),onChange:function(e){return n(e.target.value)}},o))}));function ul(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(h.useInstanceId)(ul),i=r||Object(U.sprintf)(Object(U._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."),t,n.label);return Object(d.createElement)(d.Fragment,null,Object(d.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(d.createElement)("span",{className:"screen-reader-text",id:"rbc-desc-".concat(o)},i))}var dl=function(e){var t=e.title,n=e.property,r=e.toggleLabel,o=e.onIsResponsiveChange,i=e.renderDefaultControl,c=e.renderResponsiveControls,a=e.isResponsive,l=void 0!==a&&a,s=e.defaultLabel,u=void 0===s?{id:"all",label:Object(U.__)("All")}:s,f=e.viewports,p=void 0===f?[{id:"small",label:Object(U.__)("Small screens")},{id:"medium",label:Object(U.__)("Medium screens")},{id:"large",label:Object(U.__)("Large screens")}]:f;if(!t||!n||!i)return null;var h=r||Object(U.sprintf)(Object(U.__)("Use the same %s on all screensizes."),n),m=Object(U.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),g=i(Object(d.createElement)(ul,{property:n,viewport:u}),u);return Object(d.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(d.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(d.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(d.createElement)(z.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:h,checked:!l,onChange:o,help:m}),Object(d.createElement)("div",{className:b()("block-editor-responsive-block-control__group",{"is-responsive":l})},!l&&g,l&&(c?c(p):p.map((function(e){return Object(d.createElement)(d.Fragment,{key:e.id},i(Object(d.createElement)(ul,{property:n,viewport:e}),e))}))))))},fl=[xt.rawShortcut.primary("z"),xt.rawShortcut.primaryShift("z"),xt.rawShortcut.primary("y")],bl=Object(d.createElement)(z.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.fromPairs)(fl.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),pl=function(){return bl},hl=n(42);function ml(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'<img src="'.concat(Object(hl.createBlobURL)(e),'">')})).join("")}var gl={position:"bottom right"},vl=function(){return Object(d.createElement)("div",{className:"block-editor-format-toolbar"},Object(d.createElement)(z.Toolbar,null,["bold","italic","link","text-color"].map((function(e){return Object(d.createElement)(z.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(d.createElement)(z.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(d.createElement)(z.DropdownMenu,{icon:nl.a,label:Object(U.__)("More rich text controls"),controls:Object(p.orderBy)(e.map((function(e){return Object(D.a)(e,1)[0].props})),"title"),popoverProps:gl})}))))},Ol=function(e){var t=e.inline,n=e.anchorRef;return t?Object(d.createElement)(z.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar"},Object(d.createElement)(vl,null)):Object(d.createElement)(_t,null,Object(d.createElement)(vl,null))},jl=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).onUse=e.onUse.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"onUse",value:function(){return this.props.onUse(),!1}},{key:"render",value:function(){var e=this.props,t=e.character,n=e.type;return Object(d.createElement)(z.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(s.a)({},xt.rawShortcut[n](t),this.onUse)})}}]),t}(d.Component);function kl(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,i=Object(F.a)(e,["name","shortcutType","shortcutCharacter"]),c="RichText.ToolbarControls";return n&&(c+=".".concat(n)),r&&o&&(t=xt.displayShortcut[r](o)),Object(d.createElement)(z.Fill,{name:c},Object(d.createElement)(z.ToolbarButton,Object(u.a)({},i,{shortcut:t})))}var yl=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).onInput=e.onInput.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"onInput",value:function(e){e.inputType===this.props.inputType&&this.props.onInput()}},{key:"componentDidMount",value:function(){document.addEventListener("input",this.onInput,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("input",this.onInput,!0)}},{key:"render",value:function(){return null}}]),t}(d.Component);function _l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function El(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}var Sl=Object(d.forwardRef)((function e(t,n){var r=t.children,o=t.tagName,a=t.value,l=t.onChange,f=t.isSelected,p=t.multiline,m=t.inlineToolbar,v=t.wrapperClassName,O=t.className,j=t.autocompleters,k=t.onReplace,y=t.placeholder,_=t.keepPlaceholderOnFocus,E=t.allowedFormats,S=t.formattingControls,w=t.withoutInteractiveFormatting,C=t.onRemove,I=t.onMerge,B=t.onSplit,x=t.__unstableOnSplitMiddle,T=t.identifier,P=t.start,N=t.reversed,L=t.style,R=t.preserveWhiteSpace,M=t.__unstableEmbedURLOnPaste,H=Object(F.a)(t,["children","tagName","value","onChange","isSelected","multiline","inlineToolbar","wrapperClassName","className","autocompleters","onReplace","placeholder","keepPlaceholderOnFocus","allowedFormats","formattingControls","withoutInteractiveFormatting","onRemove","onMerge","onSplit","__unstableOnSplitMiddle","identifier","start","reversed","style","preserveWhiteSpace","__unstableEmbedURLOnPaste"]),V=Object(h.useInstanceId)(e);T=T||V;var U=Object(d.useRef)(),z=n||U,G=$(),K=G.clientId,W=G.onCaretVerticalPositionChange,q=G.isSelected,Y=Object(g.useSelect)((function(e){var t,n=e("core/block-editor"),r=n.isCaretWithinFormattedText,o=n.getSelectionStart,c=n.getSelectionEnd,a=n.getSettings,l=n.didAutomaticChange,u=n.__unstableGetBlockWithoutInnerBlocks,b=n.isMultiSelecting,p=n.hasMultiSelection,h=o(),m=c(),g=a(),v=g.__experimentalCanUserUseUnfilteredHTML,O=g.__experimentalUndo;void 0===f?t=h.clientId===K&&h.attributeKey===T:f&&(t=h.clientId===K);var j={};if("native"===d.Platform.OS){var k=K&&u(K);j={shouldBlurOnUnmount:k&&t&&Object(i.isUnmodifiedDefaultBlock)(k)}}return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_l(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({canUserUseUnfilteredHTML:v,isCaretWithinFormattedText:r(),selectionStart:t?h.offset:void 0,selectionEnd:t?m.offset:void 0,isSelected:t,didAutomaticChange:l(),disabled:b()||p(),undo:O},j)})),X=Y.canUserUseUnfilteredHTML,Z=Y.isCaretWithinFormattedText,J=Y.selectionStart,Q=Y.selectionEnd,ee=Y.isSelected,te=Y.didAutomaticChange,ne=Y.disabled,re=Y.undo,oe=Y.shouldBlurOnUnmount,ie=Object(g.useDispatch)("core/block-editor"),ce=ie.__unstableMarkLastChangeAsPersistent,ae=ie.enterFormattedText,le=ie.exitFormattedText,se=ie.selectionChange,ue=ie.__unstableMarkAutomaticChange,de=El(p),fe=function(e){var t=e.allowedFormats,n=e.formattingControls;if(t||n)return t||(tl()("wp.blockEditor.RichText formattingControls prop",{alternative:"allowedFormats"}),n.map((function(e){return"core/".concat(e)})))}({allowedFormats:E,formattingControls:S}),be=!fe||fe.length>0,pe=a,he=l;Array.isArray(a)&&(pe=i.children.toHTML(a),he=function(e){return l(i.children.fromDOM(Object(c.__unstableCreateElement)(document,e).childNodes))});var me=Object(d.useCallback)((function(e,t){se(K,T,e,t)}),[K,T]),ge=Object(d.useCallback)((function(e){var t=e.value,n=e.isReverse;I&&I(!n),C&&Object(c.isEmpty)(t)&&n&&C(!n)}),[I,C]),ve=Object(d.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(k&&B){var n=[],r=Object(c.split)(e),o=Object(D.a)(r,2),i=o[0],a=o[1],l=t.length>0;l&&Object(c.isEmpty)(i)||n.push(B(Object(c.toHTMLString)({value:i,multilineTag:de}))),l?n.push.apply(n,Object(A.a)(t)):x&&n.push(x()),!l&&x&&Object(c.isEmpty)(a)||n.push(B(Object(c.toHTMLString)({value:a,multilineTag:de})));var s=l?n.length-1:1;k(n,s)}}),[k,B,de,x]),Oe=Object(d.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=k&&B;if(k){var a=Object(i.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),l=Object(i.findTransform)(a,(function(e){return e.regExp.test(t.text)}));l&&(k([l.transform({content:t.text})]),ue())}p?r?n(Object(c.insert)(t,"\n")):o&&Object(c.__unstableIsEmptyLine)(t)?ve(t):n(Object(c.__unstableInsertLineSeparator)(t)):r||!o?n(Object(c.insert)(t,"\n")):ve(t)}),[k,B,ue,p,ve]),je=Object(d.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.html,a=e.plainText,l=e.files,s=e.activeFormats;if(l&&l.length&&!r){var u=Object(i.pasteHandler)({HTML:ml(l),mode:"BLOCKS",tagName:o});return window.console.log("Received items:\n\n",l),void(k&&Object(c.isEmpty)(t)?k(u):ve(t,u))}var d=k&&B?"AUTO":"INLINE";M&&Object(c.isEmpty)(t)&&Object(Tt.isURL)(a.trim())&&(d="BLOCKS");var f=Object(i.pasteHandler)({HTML:r,plainText:a,mode:d,tagName:o,canUserUseUnfilteredHTML:X});if("string"==typeof f){var b=Object(c.create)({html:f});if(s.length)for(var h=b.formats.length;h--;)b.formats[h]=[].concat(Object(A.a)(s),Object(A.a)(b.formats[h]||[]));p&&(b=Object(c.replace)(b,/\n+/g,c.__UNSTABLE_LINE_SEPARATOR)),n(Object(c.insert)(t,b))}else f.length>0&&(k&&Object(c.isEmpty)(t)?k(f):ve(t,f))}),[o,k,B,ve,M,X,p]),ke=Object(d.useCallback)((function(e,t){if(k){var n=e.start,r=e.text;if(" "===r.slice(n-1,n)){var o=r.slice(0,n).trim(),a=Object(i.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),l=Object(i.findTransform)(a,(function(e){var t=e.prefix;return o===t}));if(l){var s=t(Object(c.slice)(e,n,r.length)),u=l.transform(s);k([u]),ue()}}}}),[k,ue]),ye=Object(d.createElement)(c.__experimentalRichText,Object(u.a)({},H,{clientId:K,identifier:T,ref:z,value:pe,onChange:he,selectionStart:J,selectionEnd:Q,onSelectionChange:me,tagName:o,className:b()("block-editor-rich-text__editable",O,{"keep-placeholder-on-focus":_}),placeholder:y,allowedFormats:fe,withoutInteractiveFormatting:w,onEnter:Oe,onDelete:ge,onPaste:je,__unstableIsSelected:ee,__unstableInputRule:ke,__unstableMultilineTag:de,__unstableIsCaretWithinFormattedText:Z,__unstableOnEnterFormattedText:ae,__unstableOnExitFormattedText:le,__unstableOnCreateUndoLevel:ce,__unstableMarkAutomaticChange:ue,__unstableDidAutomaticChange:te,__unstableUndo:re,style:L,preserveWhiteSpace:R,disabled:ne,start:P,reversed:N,onCaretVerticalPositionChange:W,blockIsSelected:void 0!==f?f:q,shouldBlurOnUnmount:oe}),(function(e){var t=e.isSelected,n=e.value,o=e.onChange,i=e.onFocus,c=e.Editable;return Object(d.createElement)(d.Fragment,null,r&&r({value:n,onChange:o,onFocus:i}),t&&be&&Object(d.createElement)(Ol,{inline:m,anchorRef:z.current}),t&&Object(d.createElement)(pl,null),Object(d.createElement)(et,{onReplace:k,completers:j,record:n,onChange:o,isSelected:t},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(d.createElement)(c,{"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,start:P,reversed:N,onKeyDown:r})})))}));return v?(tl()("wp.blockEditor.RichText wrapperClassName prop",{alternative:"className prop or create your own wrapper div"}),Object(d.createElement)("div",{className:b()("block-editor-rich-text",v)},ye)):ye}));Sl.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(F.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=i.children.toHTML(t));var c=El(r);!t&&c&&(t="<".concat(c,"></").concat(c,">"));var a=Object(d.createElement)(d.RawHTML,null,t);return n?Object(d.createElement)(n,Object(p.omit)(o,["format"]),a):a},Sl.isEmpty=function(e){return!e||0===e.length},Sl.Content.defaultProps={format:"string",value:""};var wl=Sl,Cl=Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(d.createElement)(z.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"})),Il=Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(d.createElement)(z.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 Bl=function(){var e=Object(g.useSelect)((function(e){return e("core/block-editor").isNavigationMode()}),[]),t=Object(g.useDispatch)("core/block-editor").setNavigationMode;if(!Object(h.useViewportMatch)("medium"))return null;var n=function(e){t("edit"!==e)};return Object(d.createElement)(z.Dropdown,{renderToggle:function(t){var n=t.isOpen,r=t.onToggle;return Object(d.createElement)(z.Button,{icon:e?Il:Cl,"aria-expanded":n,onClick:r,label:Object(U.__)("Tools")})},position:"bottom right",renderContent:function(){return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.NavigableMenu,{role:"menu","aria-label":Object(U.__)("Tools")},Object(d.createElement)(z.MenuItemsChoice,{value:e?"select":"edit",onSelect:n,choices:[{value:"edit",label:Object(d.createElement)(d.Fragment,null,Cl,Object(U.__)("Edit"))},{value:"select",label:Object(d.createElement)(d.Fragment,null,Il,Object(U.__)("Select"))}]})),Object(d.createElement)("div",{className:"block-editor-tool-selector__help"},Object(U.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})},xl=Object(d.createElement)(tt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(tt.Path,{d:"M18 9v2H6l4 4-1 2-7-7 7-7 1 2-4 4h12z"})),Tl=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).toggle=e.toggle.bind(Object(C.a)(e)),e.submitLink=e.submitLink.bind(Object(C.a)(e)),e.state={expanded:!1},e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,r=this.state.expanded,o=t?Object(U.__)("Edit link"):Object(U.__)("Insert link");return Object(d.createElement)("div",{className:"block-editor-url-input__button"},Object(d.createElement)(z.Button,{icon:za.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(d.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(d.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(d.createElement)(z.Button,{className:"block-editor-url-input__back",icon:xl,label:Object(U.__)("Close"),onClick:this.toggle}),Object(d.createElement)($a,{value:t||"",onChange:n}),Object(d.createElement)(z.Button,{icon:xa.a,label:Object(U.__)("Submit"),type:"submit"}))))}}]),t}(d.Component),Pl=n(117),Nl=["noreferrer","noopener"],Ll=Object(d.createElement)(z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(z.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(d.createElement)(z.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(d.createElement)(z.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),Rl=function(e){var t=e.linkDestination,n=e.onChangeUrl,r=e.url,o=e.mediaType,i=void 0===o?"image":o,c=e.mediaUrl,a=e.mediaLink,l=e.linkTarget,s=e.linkClass,u=e.rel,f=Object(d.useState)(!1),b=Object(D.a)(f,2),h=b[0],m=b[1],g=Object(d.useCallback)((function(){m(!0)})),v=Object(d.useState)(!1),O=Object(D.a)(v,2),j=O[0],k=O[1],y=Object(d.useState)(null),_=Object(D.a)(y,2),E=_[0],S=_[1],w=Object(d.useRef)(null),C=function(e){e.stopPropagation()},I=function(e){[xt.LEFT,xt.DOWN,xt.RIGHT,xt.UP,xt.BACKSPACE,xt.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},B=Object(d.useCallback)((function(){"media"!==t&&"attachment"!==t||S(""),k(!0)})),x=Object(d.useCallback)((function(){k(!1)})),T=Object(d.useCallback)((function(){S(null),x(),m(!1)})),P=function(e){var t=e;return void 0===e||Object(p.isEmpty)(t)||Object(p.isEmpty)(t)||(Object(p.each)(Nl,(function(e){var n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),Object(p.isEmpty)(t)&&(t=void 0)),t},N=Object(d.useCallback)((function(){return function(e){var t=w.current;t&&t.contains(e.target)||(m(!1),S(null),x())}})),L=Object(d.useCallback)((function(){return function(e){E&&n({href:E}),x(),S(null),e.preventDefault()}})),R=Object(d.useCallback)((function(){n({linkDestination:"none",href:""})})),M=function(){return[{linkDestination:"media",title:Object(U.__)("Media File"),url:"image"===i?c:void 0,icon:Ll},{linkDestination:"attachment",title:Object(U.__)("Attachment Page"),url:"image"===i?a:void 0,icon:Object(d.createElement)(z.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(z.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(d.createElement)(z.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"}))}]},A=Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.ToggleControl,{label:Object(U.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||u?P(u):void 0}}(e);n(t)},checked:"_blank"===l}),Object(d.createElement)(z.TextControl,{label:Object(U.__)("Link Rel"),value:P(u)||"",onChange:function(e){n({rel:e})},onKeyPress:C,onKeyDown:I}),Object(d.createElement)(z.TextControl,{label:Object(U.__)("Link CSS Class"),value:s||"",onKeyPress:C,onKeyDown:I,onChange:function(e){n({linkClass:e})}})),F=null!==E?E:r,H=(Object(p.find)(M(),["linkDestination",t])||{}).title;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.Button,{icon:za.a,className:"components-toolbar__control",label:r?Object(U.__)("Edit link"):Object(U.__)("Insert link"),"aria-expanded":h,onClick:g}),h&&Object(d.createElement)(ol,{onFocusOutside:N(),onClose:T,renderSettings:function(){return A},additionalControls:!F&&Object(d.createElement)(z.NavigableMenu,null,Object(p.map)(M(),(function(e){return Object(d.createElement)(z.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;S(null),t=e.url,o=M(),r=t?(Object(p.find)(o,(function(e){return e.url===t}))||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:r,href:t}),x()}},e.title)})))},(!r||j)&&Object(d.createElement)(ol.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:F,onChangeInputValue:S,onKeyDown:I,onKeyPress:C,onSubmit:L(),autocompleteRef:w}),r&&!j&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(ol.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",onKeyPress:C,url:r,onEditLinkClick:B,urlLabel:H}),Object(d.createElement)(z.Button,{icon:Pl.a,label:Object(U.__)("Remove link"),onClick:R}))))},Ml=Object(z.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),Al=Ml.Fill,Dl=Ml.Slot;Al.Slot=Dl;var Fl=Al,Hl=Object(g.withSelect)((function(e){return{selectedBlockClientId:e("core/block-editor").getBlockSelectionStart()}}))((function(e){var t=e.selectedBlockClientId;return t&&Object(d.createElement)(z.Button,{isSecondary:!0,className:"block-editor-skip-to-selected-block",onClick:function(){hi(t).focus()}},Object(U.__)("Skip to the selected block"))})),Vl=n(174),Ul=n.n(Vl);function zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zl(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kl(e,t,n){var r=new Ul.a(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+n.name),r.value}var Wl=Object(h.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock,o=e("core/blocks").getBlockStyles,c=r(n),a=Object(i.getBlockType)(c.name);return{block:c,className:c.attributes.className||"",styles:o(c.name),type:a}})),Object(g.withDispatch)((function(e,t){var n=t.clientId;return{onChangeClassName:function(t){e("core/block-editor").updateBlockAttributes(n,{className:t})}}}))])((function(e){var t=e.styles,n=e.className,r=e.onChangeClassName,o=e.type,c=e.block,a=e.onSwitch,l=void 0===a?p.noop:a,s=e.onHoverClassName,u=void 0===s?p.noop:s;if(!t||0===t.length)return null;o.styles||Object(p.find)(t,"isDefault")||(t=[{name:"default",label:Object(U._x)("Default","block style"),isDefault:!0}].concat(Object(A.a)(t)));var f=function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,c=new Ul.a(t).values()[Symbol.iterator]();!(n=(i=c.next()).done);n=!0){var a=i.value;if(-1!==a.indexOf("is-style-")){var l=a.substring(9),s=Object(p.find)(e,{name:l});if(s)return s}}}catch(e){r=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}return Object(p.find)(e,"isDefault")}(t,n);function h(e){var t=Kl(n,f,e);r(t),u(null),l()}return Object(d.createElement)("div",{className:"block-editor-block-styles"},t.map((function(e){var t=Kl(n,f,e);return Object(d.createElement)("div",{key:e.name,className:b()("block-editor-block-styles__item",{"is-active":f===e}),onClick:function(){return h(e)},onKeyDown:function(t){xt.ENTER!==t.keyCode&&xt.SPACE!==t.keyCode||(t.preventDefault(),h(e))},onMouseEnter:function(){return u(t)},onMouseLeave:function(){return u(null)},role:"button",tabIndex:"0","aria-label":e.label||e.name},Object(d.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(d.createElement)(bc,{viewportWidth:500,blocks:o.example?Object(i.getBlockFromExample)(c.name,{attributes:Gl({},o.example.attributes,{className:t}),innerBlocks:o.example.innerBlocks}):Object(i.cloneBlock)(c,{className:t})})),Object(d.createElement)("div",{className:"block-editor-block-styles__item-label"},e.label||e.name))})))})),ql=n(123);var $l=Object(g.withSelect)((function(e){return{blocks:(0,e("core/block-editor").getMultiSelectedBlocks)()}}))((function(e){var t=e.blocks,n=Object(ql.count)(Object(i.serialize)(t),"words");return Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},Object(d.createElement)(St,{icon:Object(d.createElement)(z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(z.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),showColors:!0}),Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},Object(U.sprintf)(Object(U._n)("%d block","%d blocks",t.length),t.length)),Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},Object(U.sprintf)(Object(U._n)("%d word","%d words",n),n))))}));function Yl(e){var t=e.blockName,n=Object(g.useSelect)((function(e){var n=e("core/block-editor").getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:Object(p.get)(n,["value",t]),onUpdatePreferredStyleVariations:Object(p.get)(n,["onChange"],null),styles:e("core/blocks").getBlockStyles(t)}}),[t]),r=n.preferredStyle,o=n.onUpdatePreferredStyleVariations,i=n.styles,c=Object(d.useMemo)((function(){return[{label:Object(U.__)("Not set"),value:""}].concat(Object(A.a)(i.map((function(e){return{label:e.label,value:e.name}}))))}),[i]),a=Object(d.useCallback)((function(e){o(t,e)}),[t,o]);return o&&Object(d.createElement)(z.SelectControl,{options:c,value:r||"",label:Object(U.__)("Default Style"),onChange:a})}var Xl=Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getSelectedBlockCount,o=t.getBlockName,c=e("core/blocks").getBlockStyles,a=n(),l=a&&o(a),s=a&&Object(i.getBlockType)(l),u=a&&c(l);return{count:r(),hasBlockStyles:u&&u.length>0,selectedBlockName:l,selectedBlockClientId:a,blockType:s}}))((function(e){var t=e.blockType,n=e.count,r=e.hasBlockStyles,o=e.selectedBlockClientId,c=e.selectedBlockName,a=e.showNoBlockSelectedMessage,l=void 0===a||a,s=Object(z.__experimentalUseSlot)(_a.slotName),u=Boolean(s.fills&&s.fills.length);if(n>1)return Object(d.createElement)($l,null);var f=c===Object(i.getUnregisteredTypeHandlerName)();return t&&o&&!f?Object(d.createElement)("div",{className:"block-editor-block-inspector"},Object(d.createElement)(vc,{blockType:t}),r&&Object(d.createElement)("div",null,Object(d.createElement)(z.PanelBody,{title:Object(U.__)("Styles"),initialOpen:!1},Object(d.createElement)(Wl,{clientId:o}),Object(d.createElement)(Yl,{blockName:t.name}))),Object(d.createElement)(Be.Slot,{bubblesVirtually:!0}),Object(d.createElement)("div",null,u&&Object(d.createElement)(z.PanelBody,{className:"block-editor-block-inspector__advanced",title:Object(U.__)("Advanced"),initialOpen:!1},Object(d.createElement)(_a.Slot,{bubblesVirtually:!0}))),Object(d.createElement)(Hl,{key:"back"})):l?Object(d.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(U.__)("No block selected.")):null}));function Zl(e,t,n,r,o,i,c,a){var l=n+1,s=function(e){return"up"===e?"horizontal"===c?a?"right":"left":"up":"down"===e?"horizontal"===c?a?"left":"right":"down":null};if(e>1)return function(e,t,n,r,o){var i=t+1;if(o<0&&n)return Object(U.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(U.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(U.sprintf)(Object(U._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,i);if(o>0&&!r)return Object(U.sprintf)(Object(U._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,i)}(e,n,r,o,i);if(r&&o)return Object(U.sprintf)(Object(U.__)("Block %s is the only block, and cannot be moved"),t);if(i>0&&!o){var u=s("down");if("down"===u)return Object(U.sprintf)(Object(U.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===u)return Object(U.sprintf)(Object(U.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===u)return Object(U.sprintf)(Object(U.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(i>0&&o){var d=s("down");if("down"===d)return Object(U.sprintf)(Object(U.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===d)return Object(U.sprintf)(Object(U.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===d)return Object(U.sprintf)(Object(U.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(i<0&&!r){var f=s("up");if("up"===f)return Object(U.sprintf)(Object(U.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===f)return Object(U.sprintf)(Object(U.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===f)return Object(U.sprintf)(Object(U.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l-1)}if(i<0&&r){var b=s("up");if("up"===b)return Object(U.sprintf)(Object(U.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===b)return Object(U.sprintf)(Object(U.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===b)return Object(U.sprintf)(Object(U.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var Jl=Object(d.createElement)(z.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(z.Polygon,{points:"14.5,8 10.6,12 14.5,16 13.5,17 8.4,12 13.5,7 "})),Ql=Object(d.createElement)(z.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(z.Polygon,{points:"9.5,16 13.4,12 9.5,8 10.5,7 15.6,12 10.5,17 "})),es=(Object(d.createElement)(z.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(d.createElement)(z.Path,{d:"M13,8c0.6,0,1-0.4,1-1s-0.4-1-1-1s-1,0.4-1,1S12.4,8,13,8z M5,6C4.4,6,4,6.4,4,7s0.4,1,1,1s1-0.4,1-1S5.6,6,5,6z M5,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S5.6,10,5,10z M13,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S13.6,10,13,10z M9,6 C8.4,6,8,6.4,8,7s0.4,1,1,1s1-0.4,1-1S9.6,6,9,6z M9,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S9.6,10,9,10z"})),n(266)),ts=function(e){var t=e.children,n=e.clientIds,r=Object(g.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockIndex,o=t.getBlockRootClientId,i=t.getTemplateLock,c=1===n.length?o(n[0]):null,a=c?i(c):null;return{index:r(n[0],c),srcRootClientId:c,isDraggable:1===n.length&&"all"!==a}}),[n]),o=r.srcRootClientId,i=r.index,c=r.isDraggable,a=Object(d.useRef)(!1),l=Object(g.useDispatch)("core/block-editor"),s=l.startDraggingBlocks,u=l.stopDraggingBlocks;if(Object(d.useEffect)((function(){return function(){a.current&&u()}}),[]),!c)return t({isDraggable:!1});var f="block-".concat(n[0]),b={type:"block",srcIndex:i,srcClientId:n[0],srcRootClientId:o};return Object(d.createElement)(z.Draggable,{elementId:f,transferData:b,onDragStart:function(){s(),a.current=!0},onDragEnd:function(){u(),a.current=!1}},(function(e){var n=e.onDraggableStart,r=e.onDraggableEnd;return t({isDraggable:!0,onDraggableStart:n,onDraggableEnd:r})}))},ns=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(C.a)(e)),e.onBlur=e.onBlur.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"onFocus",value:function(){this.setState({isFocused:!0})}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.onMoveUp,r=t.onMoveDown,o=t.__experimentalOrientation,i=t.isRTL,c=t.isFirst,a=t.isLast,l=t.clientIds,s=t.blockType,u=t.firstIndex,f=t.isLocked,p=t.instanceId,h=t.isHidden,m=t.rootClientId,g=t.hideDragHandle,v=this.state.isFocused,O=l.length;if(f||c&&a&&!m)return null;var j=function(e){return"up"===e?"horizontal"===o?i?Ql:Jl:es.a:"down"===e?"horizontal"===o?i?Jl:Ql:nl.a:null},k=function(e){return"up"===e?"horizontal"===o?i?Object(U.__)("Move right"):Object(U.__)("Move left"):Object(U.__)("Move up"):"down"===e?"horizontal"===o?i?Object(U.__)("Move left"):Object(U.__)("Move right"):Object(U.__)("Move down"):null};return Object(d.createElement)(ts,{clientIds:l},(function(t){var l=t.isDraggable,f=t.onDraggableStart,m=t.onDraggableEnd;return Object(d.createElement)("div",{className:b()("block-editor-block-mover",{"is-visible":v||!h,"is-horizontal":"horizontal"===o}),draggable:l&&!g,onDragStart:f,onDragEnd:m},Object(d.createElement)(z.ToolbarGroup,null,Object(d.createElement)(z.Button,{className:"block-editor-block-mover__control block-editor-block-mover__control-up",onClick:c?null:n,icon:j("up"),label:k("up"),"aria-describedby":"block-editor-block-mover__up-description-".concat(p),"aria-disabled":c,onFocus:e.onFocus,onBlur:e.onBlur}),Object(d.createElement)(z.Button,{className:"block-editor-block-mover__control block-editor-block-mover__control-down",onClick:a?null:r,icon:j("down"),label:k("down"),"aria-describedby":"block-editor-block-mover__down-description-".concat(p),"aria-disabled":a,onFocus:e.onFocus,onBlur:e.onBlur}),Object(d.createElement)("span",{id:"block-editor-block-mover__up-description-".concat(p),className:"block-editor-block-mover__description"},Zl(O,s&&s.title,u,c,a,-1,o,i)),Object(d.createElement)("span",{id:"block-editor-block-mover__down-description-".concat(p),className:"block-editor-block-mover__description"},Zl(O,s&&s.title,u,c,a,1,o,i))))}))}}]),t}(d.Component),rs=Object(h.compose)(Object(g.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlock,c=r.getBlockIndex,a=r.getTemplateLock,l=r.getBlockRootClientId,s=r.getBlockOrder,u=Object(p.first)(n),d=o(u),f=l(Object(p.first)(n)),b=s(f),h=c(u,f),m=c(Object(p.last)(n),f),g=(0,e("core/block-editor").getSettings)().isRTL;return{blockType:d?Object(i.getBlockType)(d.name):null,isLocked:"all"===a(f),rootClientId:f,firstIndex:h,isRTL:g,isFirst:0===h,isLast:m===b.length-1}})),Object(g.withDispatch)((function(e,t){var n=t.clientIds,r=t.rootClientId,o=e("core/block-editor"),i=o.moveBlocksDown,c=o.moveBlocksUp;return{onMoveDown:Object(p.partial)(i,n,r),onMoveUp:Object(p.partial)(c,n,r)}})),h.withInstanceId)(ns),os=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(C.a)(e)),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearSelectionIfFocusTarget",value:function(e){var t=this.props,n=t.hasSelectedBlock,r=t.hasMultiSelection,o=t.clearSelectedBlock,i=n||r;e.target===this.container&&i&&o()}},{key:"render",value:function(){return Object(d.createElement)("div",Object(u.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(p.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),t}(d.Component),is=Object(h.compose)([Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}})),Object(g.withDispatch)((function(e){return{clearSelectedBlock:e("core/block-editor").clearSelectedBlock}}))])(os);var cs=Object(h.compose)([Object(g.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.canInsertBlockType,o=n.getBlockRootClientId,c=n.getBlocksByClientId,a=n.getTemplateLock,l=e("core/blocks").getDefaultBlockName,s=c(t.clientIds),u=o(t.clientIds[0]);return{blocks:s,canDuplicate:Object(p.every)(s,(function(e){return!!e&&Object(i.hasBlockSupport)(e.name,"multiple",!0)&&r(e.name,u)})),canInsertDefaultBlock:r(l(),u),extraProps:t,isLocked:!!a(u),rootClientId:u}})),Object(g.withDispatch)((function(e,t,n){var r=n.select,o=t.clientIds,c=t.blocks,a=e("core/block-editor"),l=a.removeBlocks,s=a.replaceBlocks,u=a.duplicateBlocks,d=a.insertAfterBlock,f=a.insertBeforeBlock;return{onDuplicate:function(){return u(o)},onRemove:function(){l(o)},onInsertBefore:function(){f(Object(p.first)(Object(p.castArray)(o)))},onInsertAfter:function(){d(Object(p.last)(Object(p.castArray)(o)))},onGroup:function(){if(c.length){var e=(0,r("core/blocks").getGroupingBlockName)(),t=Object(i.switchToBlockType)(c,e);t&&s(o,t)}},onUngroup:function(){if(c.length){var e=c[0].innerBlocks;e.length&&s(o,e)}}}}))])((function(e){var t=e.canDuplicate,n=e.canInsertDefaultBlock;return(0,e.children)({canDuplicate:t,canInsertDefaultBlock:n,isLocked:e.isLocked,onDuplicate:e.onDuplicate,onGroup:e.onGroup,onInsertAfter:e.onInsertAfter,onInsertBefore:e.onInsertBefore,onRemove:e.onRemove,onUngroup:e.onUngroup})}));var as=Object(h.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlock,c=r.getBlockMode,a=r.getSettings,l=o(n),s=a().codeEditingEnabled;return{mode:c(n),blockType:l?Object(i.getBlockType)(l.name):null,isCodeEditingEnabled:s}})),Object(g.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?p.noop:n,o=t.clientId;return{onToggleMode:function(){e("core/block-editor").toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,c=void 0!==o&&o,a=e.isCodeEditingEnabled,l=void 0===a||a;if(!Object(i.hasBlockSupport)(t,"html",!0)||!l)return null;var s="visual"===n?Object(U.__)("Edit as HTML"):Object(U.__)("Edit visually");return Object(d.createElement)(z.MenuItem,{onClick:r},!c&&s)}));function ls(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(U.__)("Convert to Blocks");return Object(d.createElement)(z.MenuItem,{onClick:n},!r&&o)}var ss=Object(h.compose)(Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}})),Object(g.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(i.rawHandler)({HTML:Object(i.getBlockContent)(n)}))}}})))(ls),us=Object(h.compose)(Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&r.name===Object(i.getFreeformContentHandlerName)()}})),Object(g.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(i.rawHandler)({HTML:Object(i.serialize)(n)}))}}})))(ls);function ds(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ds(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bs=Object(z.createSlotFill)("BlockSettingsMenuControls"),ps=bs.Fill,hs=bs.Slot;ps.Slot=function(e){var t=e.fillProps,n=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlocksByClientId,r=t.getSelectedBlockClientIds;return{selectedBlocks:Object(p.map)(n(r()),(function(e){return e.name}))}}),[]).selectedBlocks;return Object(d.createElement)(hs,{fillProps:fs({},t,{selectedBlocks:n})},(function(e){return!Object(p.isEmpty)(e)&&Object(d.createElement)(z.MenuGroup,null,e)}))};var ms=ps,gs={className:"block-editor-block-settings-menu__popover",position:"bottom right",noArrow:!0};var vs=function(e){var t=e.clientIds,n=Object(p.castArray)(t),r=n.length,o=n[0],i=Object(g.useSelect)((function(e){var t=e("core/keyboard-shortcuts").getShortcutRepresentation;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")}}),[]);return Object(d.createElement)(cs,{clientIds:t},(function(e){var t=e.canDuplicate,n=e.canInsertDefaultBlock,c=e.isLocked,a=e.onDuplicate,l=e.onInsertAfter,s=e.onInsertBefore,u=e.onRemove;return Object(d.createElement)(z.Toolbar,null,Object(d.createElement)(z.DropdownMenu,{icon:Qo,label:Object(U.__)("More options"),className:"block-editor-block-settings-menu",popoverProps:gs,noIcons:!0},(function(e){var f=e.onClose;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.MenuGroup,null,Object(d.createElement)(Fl.Slot,{fillProps:{onClose:f}}),1===r&&Object(d.createElement)(us,{clientId:o}),1===r&&Object(d.createElement)(ss,{clientId:o}),t&&Object(d.createElement)(z.MenuItem,{onClick:Object(p.flow)(f,a),shortcut:i.duplicate},Object(U.__)("Duplicate")),n&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(z.MenuItem,{onClick:Object(p.flow)(f,s),shortcut:i.insertBefore},Object(U.__)("Insert Before")),Object(d.createElement)(z.MenuItem,{onClick:Object(p.flow)(f,l),shortcut:i.insertAfter},Object(U.__)("Insert After"))),1===r&&Object(d.createElement)(as,{clientId:o,onToggle:f})),Object(d.createElement)(ms.Slot,{fillProps:{onClose:f}}),Object(d.createElement)(z.MenuGroup,null,!c&&Object(d.createElement)(z.MenuItem,{onClick:Object(p.flow)(f,u),shortcut:i.remove},Object(U._n)("Remove Block","Remove Blocks",r))))})))}))};function Os(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function js(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Os(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Os(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ks=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).state={hoveredClassName:null},e.onHoverClassName=e.onHoverClassName.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"onHoverClassName",value:function(e){this.setState({hoveredClassName:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.blocks,r=t.onTransform,o=t.inserterItems,c=t.hasBlockStyles,a=this.state.hoveredClassName;if(!n||!n.length)return null;var l,s=a?n[0]:null,u=a?Object(i.getBlockType)(s.name):null,f=Object(p.mapKeys)(o,(function(e){return e.name})),b=Object(p.orderBy)(Object(p.filter)(Object(i.getPossibleBlockTransformations)(n),(function(e){return e&&!!f[e.name]})),(function(e){return f[e.name].frecency}),"desc");if(1===Object(p.uniq)(Object(p.map)(n,"name")).length){var h=n[0].name,m=Object(i.getBlockType)(h);l=m.icon}else l=qc.a;return c||b.length?Object(d.createElement)(z.Dropdown,{position:"bottom right",className:"block-editor-block-switcher",contentClassName:"block-editor-block-switcher__popover",renderToggle:function(e){var t=e.onToggle,r=e.isOpen,o=1===n.length?Object(U.__)("Change block type or style"):Object(U.sprintf)(Object(U._n)("Change type of %d block","Change type of %d blocks",n.length),n.length);return Object(d.createElement)(z.Toolbar,null,Object(d.createElement)(z.Button,{className:"block-editor-block-switcher__toggle",onClick:t,"aria-haspopup":"true","aria-expanded":r,label:o,onKeyDown:function(e){r||e.keyCode!==xt.DOWN||(e.preventDefault(),e.stopPropagation(),t())},showTooltip:!0,icon:Object(d.createElement)(St,{icon:l,showColors:!0})}))},renderContent:function(t){var o=t.onClose;return Object(d.createElement)(d.Fragment,null,(c||0!==b.length)&&Object(d.createElement)("div",{className:"block-editor-block-switcher__container"},c&&Object(d.createElement)(z.MenuGroup,null,Object(d.createElement)("div",{className:"block-editor-block-switcher__label"},Object(U.__)("Styles")),Object(d.createElement)(Wl,{clientId:n[0].clientId,onSwitch:o,onHoverClassName:e.onHoverClassName})),0!==b.length&&Object(d.createElement)(z.MenuGroup,null,Object(d.createElement)("div",{className:"block-editor-block-switcher__label"},Object(U.__)("Transform to")),Object(d.createElement)(gc,{items:b.map((function(e){return{id:e.name,icon:e.icon,title:e.title}})),onSelect:function(e){r(n,e.id),o()}}))),null!==a&&Object(d.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(d.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(U.__)("Preview")),Object(d.createElement)(bc,{viewportWidth:500,blocks:u.example?Object(i.getBlockFromExample)(s.name,{attributes:js({},u.example.attributes,{className:a}),innerBlocks:u.example.innerBlocks}):Object(i.cloneBlock)(s,{className:a})})))}}):Object(d.createElement)(z.Toolbar,null,Object(d.createElement)(z.Button,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",label:Object(U.__)("Block icon"),icon:Object(d.createElement)(St,{icon:l,showColors:!0})}))}}]),t}(d.Component),ys=Object(h.compose)(Object(g.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlocksByClientId,i=r.getBlockRootClientId,c=r.getInserterItems,a=e("core/blocks").getBlockStyles,l=i(Object(p.first)(Object(p.castArray)(n))),s=o(n),u=s&&1===s.length?s[0]:null,d=u&&a(u.name);return{blocks:s,inserterItems:c(l),hasBlockStyles:d&&d.length>0}})),Object(g.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(i.switchToBlockType)(n,r))}}})))(ks),_s=window,Es=_s.clearTimeout,Ss=_s.setTimeout;function ws(e){var t=e.ref,n=e.isFocused,r=e.debounceTimeout,o=void 0===r?500:r,i=Object(d.useState)(!1),c=Object(D.a)(i,2),a=c[0],l=c[1],s=Object(d.useRef)(),u=function(){var e=(null==t?void 0:t.current)&&t.current.matches(":hover");return!n&&!e},f=Object(d.useCallback)((function(e){e&&e.stopPropagation();var t=s.current;t&&Es&&Es(t),a||l(!0)}),[a]),b=Object(d.useCallback)((function(e){e&&e.stopPropagation(),s.current=Ss((function(){u()&&l(!1)}),o)}),[n]);return Object(d.useEffect)((function(){return function(){return Es(s.current)}}),[]),{showMovers:a,debouncedShowMovers:f,debouncedHideMovers:b}}function Cs(e){var t=e.hideDragHandle,n=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockMode,r=t.getSelectedBlockClientIds,o=t.isBlockValid,i=t.getBlockRootClientId,c=t.getBlockListSettings,a=t.getSettings,l=r(),s=i(l[0]),u=c(s)||{},d=u.__experimentalMoverDirection,f=u.__experimentalUIParts,b=void 0===f?{}:f;return{blockClientIds:l,hasFixedToolbar:a().hasFixedToolbar,rootClientId:s,isValid:1===l.length?o(l[0]):null,mode:1===l.length?n(l[0]):null,moverDirection:d,hasMovers:b.hasMovers}}),[]),r=n.blockClientIds,o=n.hasFixedToolbar,i=n.isValid,c=n.mode,a=n.moverDirection,l=n.hasMovers,s=void 0===l||l,f=Object(d.useRef)(),p=function(e){var t=e.ref,n=e.debounceTimeout,r=void 0===n?500:n,o=Object(d.useState)(!1),i=Object(D.a)(o,2),c=i[0],a=i[1],l=ws({ref:t,debounceTimeout:r,isFocused:c}),s=l.showMovers,u=l.debouncedShowMovers,f=l.debouncedHideMovers,b=Object(d.useRef)(!1),p=function(){return(null==t?void 0:t.current)&&t.current.contains(document.activeElement)};return Object(d.useEffect)((function(){var e=t.current,n=function(){p()&&(a(!0),u())},r=function(){p()||(a(!1),f())};return e&&!b.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",r,!0),b.current=!0),function(){e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",r))}}),[t,b,a,u,f]),{showMovers:s,gestures:{onMouseMove:u,onMouseLeave:f}}}({ref:f}),m=p.showMovers,v=p.gestures,O=Object(h.useViewportMatch)("medium","<")||o,j=O||m&&s;if(0===r.length)return null;var k=i&&"visual"===c,y=r.length>1,_={opacity:j?1:0,transform:j?"translateX(0px)":"translateX(100%)"},E=b()("block-editor-block-toolbar",!O&&"has-responsive-movers");return Object(d.createElement)("div",{className:E},Object(d.createElement)("div",{className:"block-editor-block-toolbar__mover-switcher-container",ref:f},Object(d.createElement)("div",Object(u.a)({className:"block-editor-block-toolbar__mover-trigger-container"},v),Object(d.createElement)("div",{className:"block-editor-block-toolbar__mover-trigger-wrapper",style:_},Object(d.createElement)(rs,{clientIds:r,__experimentalOrientation:a,hideDragHandle:t}))),(k||y)&&Object(d.createElement)("div",Object(u.a)({},v,{className:"block-editor-block-toolbar__block-switcher-wrapper"}),Object(d.createElement)(ys,{clientIds:r}))),k&&!y&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(vt.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(d.createElement)(_t.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(d.createElement)(vs,{clientIds:r}))}var Is=Object(h.compose)([Object(g.withDispatch)((function(e,t,n){var r=(0,n.select)("core/block-editor"),o=r.getBlocksByClientId,c=r.getSelectedBlockClientIds,a=r.hasMultiSelection,l=r.getSettings,s=e("core/block-editor"),u=s.removeBlocks,d=s.replaceBlocks,f=l().__experimentalCanUserUseUnfilteredHTML;return{handler:function(e){var t=c();if(0!==t.length&&(a()||!Object(pi.documentHasSelection)())){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){var n=o(t),r=Object(i.serialize)(n);e.clipboardData.setData("text/plain",r),e.clipboardData.setData("text/html",r)}if("cut"===e.type)u(t);else if("paste"===e.type){var l=function(e){var t=e.clipboardData,n=t.items,r=t.files;n=Object(p.isNil)(n)?[]:n,r=Object(p.isNil)(r)?[]:r;var o="",i="";try{o=t.getData("text/plain"),i=t.getData("text/html")}catch(e){try{i=t.getData("Text")}catch(e){return}}return r=Array.from(r),Array.from(n).forEach((function(e){if(e.getAsFile){var t=e.getAsFile();if(t){var n=t.name,o=t.type,i=t.size;Object(p.find)(r,{name:n,type:o,size:i})||r.push(t)}}})),(r=r.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}))).length&&!i&&(i=r.map((function(e){return'<img src="'.concat(Object(hl.createBlobURL)(e),'">')})).join(""),o=""),{html:i,plainText:o}}(e),s=l.plainText,b=l.html,h=Object(i.pasteHandler)({HTML:b,plainText:s,mode:"BLOCKS",canUserUseUnfilteredHTML:f});d(t,h)}}}}}))])((function(e){var t=e.children,n=e.handler;return Object(d.createElement)("div",{onCopy:n,onCut:n,onPaste:n},t)}));function Bs(){var e=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientIds,r=t.getBlockOrder;return{clientIds:n(),rootBlocksClientIds:r()}}),[]),t=e.clientIds,n=e.rootBlocksClientIds,r=Object(g.useDispatch)("core/block-editor"),o=r.duplicateBlocks,i=r.removeBlocks,c=r.insertAfterBlock,a=r.insertBeforeBlock,s=r.multiSelect,u=r.clearSelectedBlock;return Object(l.useShortcut)("core/block-editor/duplicate",Object(d.useCallback)((function(e){e.preventDefault(),o(t)}),[t,o]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/remove",Object(d.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-after",Object(d.useCallback)((function(e){e.preventDefault(),c(Object(p.last)(t))}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-before",Object(d.useCallback)((function(e){e.preventDefault(),a(Object(p.first)(t))}),[t,a]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/delete-multi-selection",Object(d.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{isDisabled:t.length<1}),Object(l.useShortcut)("core/block-editor/select-all",Object(d.useCallback)((function(e){e.preventDefault(),s(Object(p.first)(n),Object(p.last)(n))}),[n,s])),Object(l.useShortcut)("core/block-editor/unselect",Object(d.useCallback)((function(e){e.preventDefault(),u(),window.getSelection().removeAllRanges()}),[t,u]),{isDisabled:t.length<2}),null}Bs.Register=function(){var e=Object(g.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(d.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(U.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(U.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(U.__)("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(U.__)("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(U.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(U.__)("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(U.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(U.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}})}),[e]),null};var xs=Bs;function Ts(){var e=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockSelectionEnd,r=t.isMultiSelecting;return{selectionEnd:n(),isMultiSelecting:r()}}),[]),t=e.selectionEnd,n=e.isMultiSelecting;return Object(d.useEffect)((function(){if(t&&!n){var e=hi(t);if(e){var r=Object(pi.getScrollContainer)(e);r&&Bt()(e,r,{onlyScrollIfNeeded:!0})}}}),[t,n]),null}var Ps=[xt.UP,xt.RIGHT,xt.DOWN,xt.LEFT,xt.ENTER,xt.BACKSPACE];var Ns=Object(h.withSafeTimeout)((function(e){var t=e.children,n=e.setTimeout,r=Object(d.useRef)(),o=Object(g.useSelect)((function(e){return e("core/block-editor").isTyping()})),i=Object(g.useDispatch)("core/block-editor"),c=i.startTyping,a=i.stopTyping;function l(e){var t=e?"addEventListener":"removeEventListener";document[t]("selectionchange",u),document[t]("mousemove",s)}function s(e){var t=e.clientX,n=e.clientY;if(r.current){var o=r.current,i=o.clientX,c=o.clientY;i===t&&c===n||a()}r.current={clientX:t,clientY:n}}function u(){var e=window.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||a()}function f(e){var t=e.type,n=e.target;o||!Object(pi.isTextField)(n)||n.closest(".block-editor-block-toolbar")||("keydown"!==t||function(e){var t=e.keyCode;return!e.shiftKey&&Object(p.includes)(Ps,t)}(e))&&c()}return Object(d.useEffect)((function(){return l(o),function(){return l(!1)}}),[o]),Object(d.createElement)("div",{onFocus:function(e){var t=e.target;n((function(){o&&!Object(pi.isTextField)(t)&&a()}))},onKeyPress:f,onKeyDown:Object(p.over)([f,function(e){!o||e.keyCode!==xt.ESCAPE&&e.keyCode!==xt.TAB||a()}])},t)}));function Ls(){return tl()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}var Rs=-1!==window.navigator.userAgent.indexOf("Trident"),Ms=new Set([xt.UP,xt.DOWN,xt.LEFT,xt.RIGHT]),As=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(S.a)(this,Object(w.a)(t).apply(this,arguments))).ref=Object(d.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(C.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(C.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(C.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(C.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(C.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(C.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(C.a)(e)),e}return Object(I.a)(t,e),Object(E.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScrollResize,!0),window.addEventListener("resize",this.onScrollResize,!0)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.onScrollResize,!0),window.removeEventListener("resize",this.onScrollResize,!0),document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.onScrollResize.rafId&&window.cancelAnimationFrame(this.onScrollResize.rafId),this.onKeyDown.rafId&&window.cancelAnimationFrame(this.onKeyDown.rafId)}},{key:"computeCaretRect",value:function(){this.isSelectionEligibleForScroll()&&(this.caretRect=Object(pi.computeCaretRect)())}},{key:"computeCaretRectOnSelectionChange",value:function(){document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.computeCaretRect()}},{key:"onScrollResize",value:function(){var e=this;this.onScrollResize.rafId||(this.onScrollResize.rafId=window.requestAnimationFrame((function(){e.computeCaretRect(),delete e.onScrollResize.rafId})))}},{key:"isSelectionEligibleForScroll",value:function(){return this.props.selectedBlockClientId&&this.ref.current.contains(document.activeElement)&&document.activeElement.isContentEditable}},{key:"isLastEditableNode",value:function(){var e=this.ref.current.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===document.activeElement}},{key:"maintainCaretPosition",value:function(e){var t=e.keyCode;if(this.isSelectionEligibleForScroll()){var n=Object(pi.computeCaretRect)();if(n)if(this.caretRect)if(Ms.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(pi.getScrollContainer)(this.ref.current);if(o){var i=o===document.body,c=i?window.scrollY:o.scrollTop,a=i?0:o.getBoundingClientRect().top,l=i?this.caretRect.top/window.innerHeight:(this.caretRect.top-a)/(window.innerHeight-a);if(0===c&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=i?window.innerHeight:o.clientHeight;this.caretRect.top+this.caretRect.height>a+s||this.caretRect.top<a?this.caretRect=n:i?window.scrollBy(0,r):o.scrollTop+=r}}}}else this.caretRect=n}}},{key:"addSelectionChangeListener",value:function(){document.addEventListener("selectionchange",this.computeCaretRectOnSelectionChange)}},{key:"onKeyDown",value:function(e){var t=this;e.persist(),this.onKeyDown.rafId&&window.cancelAnimationFrame(this.onKeyDown.rafId),this.onKeyDown.rafId=window.requestAnimationFrame((function(){t.maintainCaretPosition(e),delete t.onKeyDown.rafId}))}},{key:"render",value:function(){return Object(d.createElement)("div",{ref:this.ref,onKeyDown:this.onKeyDown,onKeyUp:this.maintainCaretPosition,onMouseDown:this.addSelectionChangeListener,onTouchStart:this.addSelectionChangeListener,className:"block-editor__typewriter"},this.props.children)}}]),t}(d.Component),Ds=Rs?function(e){return e.children}:Object(g.withSelect)((function(e){return{selectedBlockClientId:(0,e("core/block-editor").getSelectedBlockClientId)()}}))(As),Fs=n(237),Hs=/\((min|max)-width:[^\(]*?\)/g;function Vs(e){return!!e.media&&!!e.media.mediaText.match(Hs)}function Us(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function zs(e,t){return e.replace(Hs,(function(e){return Object(Fs.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)"}))}function Gs(e,t){Object(d.useEffect)((function(){var n="undefined"==typeof window?[]:Object(p.filter)(Object(p.get)(window,["document","styleSheets"],[]),(function(e){return!!e.href&&Object(Tt.getProtocol)(e.href)===window.location.protocol&&Object(Tt.getAuthority)(e.href)===window.location.host})),r=[];return n.forEach((function(n,o){for(var i=!1,c=0;c<n.cssRules.length;++c){var a=n.cssRules[c];if((a.type===window.CSSRule.STYLE_RULE||a.type===window.CSSRule.MEDIA_RULE)&&(!i&&a.cssText.match(new RegExp("#start-".concat(e)))&&(i=!0),i&&a.cssText.match(new RegExp("#end-".concat(e)))&&(i=!1),i&&Vs(a))){var l=a.cssText;r[o]||(r[o]=[]),r[o][c]=l,Us(n,zs(l,t),c)}}})),function(){r.forEach((function(e,t){if(e)for(var r=0;r<e.length;++r){var o=e[r];o&&Us(n[t],o,r)}}))}}),[t])}function Ks(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ws=["left","center","right","wide","full"],qs=["wide","full"];function $s(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?e:!0===e?Ws:[],!r||!0===e&&!n?p.without.apply(void 0,[t].concat(qs)):t}var Ys=Object(d.createContext)({}),Xs=Ys.Provider,Zs=Object(h.createHigherOrderComponent)((function(e){return function(t){var n=Object(d.useContext)(Ys).isEmbedButton,r=t.name,o=n?[]:$s(Object(i.getBlockSupport)(r,"align"),Object(i.hasBlockSupport)(r,"alignWide",!0));return[o.length>0&&t.isSelected&&Object(d.createElement)(vt,{key:"align-controls"},Object(d.createElement)(dt,{value:t.attributes.align,onChange:function(e){if(!e){var n=Object(i.getBlockType)(t.name);Object(p.get)(n,["attributes","align","default"])&&(e="")}t.setAttributes({align:e})},controls:o})),Object(d.createElement)(e,Object(u.a)({key:"edit"},t))]}}),"withToolbarControls"),Js=Object(h.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=Object(g.useSelect)((function(e){return!!e("core/block-editor").getSettings().alignWide}),[]);if(void 0===r)return Object(d.createElement)(e,t);var c=$s(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0),o),a=t.wrapperProps;return Object(p.includes)(c,r)&&(a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ks(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ks(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},a,{"data-align":r})),Object(d.createElement)(e,Object(u.a)({},t,{wrapperProps:a}))}}));Object(m.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(p.has)(e.attributes,["align","type"])?e:(Object(i.hasBlockSupport)(e,"align")&&(e.attributes=Object(p.assign)(e.attributes,{align:{type:"string"}})),e)})),Object(m.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Js),Object(m.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",Zs),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align,o=Object(i.getBlockSupport)(t,"align"),c=Object(i.hasBlockSupport)(t,"alignWide",!0);return Object(p.includes)($s(o,c),r)&&(e.className=b()("align".concat(r),e.className)),e}));var Qs=/[\s#]/g;var eu=Object(h.createHigherOrderComponent)((function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(d.createElement)(d.Fragment,null,Object(d.createElement)(e,t),Object(d.createElement)(_a,null,Object(d.createElement)(z.TextControl,{className:"html-anchor-control",label:Object(U.__)("HTML anchor"),help:Object(d.createElement)(d.Fragment,null,Object(U.__)("Enter a word or two — without spaces — to make a unique web address just for this heading, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),Object(d.createElement)(z.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(U.__)("Learn more about anchors"))),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(Qs,"-"),t.setAttributes({anchor:e})}}))):Object(d.createElement)(e,t)}}),"withInspectorControl");Object(m.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(p.has)(e.attributes,["anchor","type"])?e:(Object(i.hasBlockSupport)(e,"anchor")&&(e.attributes=Object(p.assign)(e.attributes,{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}})),e)})),Object(m.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",eu),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(i.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));var tu=Object(h.createHigherOrderComponent)((function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(d.createElement)(d.Fragment,null,Object(d.createElement)(e,t),Object(d.createElement)(_a,null,Object(d.createElement)(z.TextControl,{label:Object(U.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:""!==e?e:void 0})},help:Object(U.__)("Separate multiple classes with spaces.")}))):Object(d.createElement)(e,t)}}),"withInspectorControl");function nu(e){e="<div data-custom-class-name>".concat(e,"</div>");var t=Object(i.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(m.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(i.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=Object(p.assign)(e.attributes,{className:{type:"string"}})),e})),Object(m.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",tu),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(i.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=b()(e.className,n.className)),e})),Object(m.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(i.hasBlockSupport)(t,"customClassName",!0)){var r=Object(p.omit)(e,["className"]),o=Object(i.getSaveContent)(t,r),c=nu(o),a=nu(n),l=Object(p.difference)(a,c);l.length?e.className=l.join(" "):o&&delete e.className}return e})),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(i.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(p.uniq)([Object(i.getBlockDefaultClassName)(t.name)].concat(Object(A.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(i.getBlockDefaultClassName)(t.name)),e}));var ru=n(238),ou=n.n(ru),iu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,cu=function(e,t){t=t||{};var n=1,r=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new c(e),b(),t}}function c(e){this.start=e,this.end={line:n,column:r},this.source=t.source}c.prototype.content=e;var a=[];function l(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i;a.push(i)}function s(){return f(/^{\s*/)}function u(){return f(/^}/)}function d(){var t,n=[];for(b(),p(n);e.length&&"}"!==e.charAt(0)&&(t=S()||w());)!1!==t&&(n.push(t),p(n));return n}function f(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function b(){f(/^\s*/)}function p(e){var t;for(e=e||[];t=h();)!1!==t&&e.push(t);return e}function h(){var t=i();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var c=e.slice(2,n-2);return r+=2,o(c),e=e.slice(n),r+=2,t({type:"comment",comment:c})}}function m(){var e=f(/^([^{]+)/);if(e)return au(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 g(){var e=i(),t=f(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=au(t[0]),!f(/^:\s*/))return l("property missing ':'");var n=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(iu,""),value:n?au(n[0]).replace(iu,""):""});return f(/^[;\s]*/),r}}function v(){var e,t=[];if(!s())return l("missing '{'");for(p(t);e=g();)!1!==e&&(t.push(e),p(t));return u()?t:l("missing '}'")}function O(){for(var e,t=[],n=i();e=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),f(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:v()})}var j,k=E("import"),y=E("charset"),_=E("namespace");function E(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=i(),r=f(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function S(){if("@"===e[0])return function(){var e=i(),t=f(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=f(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,o=t[1];if(!s())return l("@keyframes missing '{'");for(var c=p();r=O();)c.push(r),c=c.concat(p());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:c}):l("@keyframes missing '}'")}}()||function(){var e=i(),t=f(/^@media *([^{]+)/);if(t){var n=au(t[1]);if(!s())return l("@media missing '{'");var r=p().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=i(),t=f(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:au(t[1]),media:au(t[2])})}()||function(){var e=i(),t=f(/^@supports *([^{]+)/);if(t){var n=au(t[1]);if(!s())return l("@supports missing '{'");var r=p().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||k()||y()||_()||function(){var e=i(),t=f(/^@([-\w]+)?document *([^{]+)/);if(t){var n=au(t[1]),r=au(t[2]);if(!s())return l("@document missing '{'");var o=p().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=i();if(f(/^@page */)){var t=m()||[];if(!s())return l("@page missing '{'");for(var n,r=p();n=g();)r.push(n),r=r.concat(p());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=i();if(f(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=p().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=i();if(f(/^@font-face\s*/)){if(!s())return l("@font-face missing '{'");for(var t,n=p();t=g();)n.push(t),n=n.concat(p());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}function w(){var e=i(),t=m();return t?(p(),e({type:"rule",selectors:t,declarations:v()})):l("selector missing")}return function e(t,n){var r=t&&"string"==typeof t.type,o=r?t:n;for(var i in t){var c=t[i];Array.isArray(c)?c.forEach((function(t){e(t,o)})):c&&"object"===Object(en.a)(c)&&e(c,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((j=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:j,parsingErrors:a}}))};function au(e){return e?e.replace(/^\s+|\s+$/g,""):""}var lu=n(141),su=n.n(lu),uu=du;function du(e){this.options=e||{}}du.prototype.emit=function(e){return e},du.prototype.visit=function(e){return this[e.type](e)},du.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r<o;r++)n+=this.visit(e[r]),t&&r<o-1&&(n+=this.emit(t));return n};var fu=bu;function bu(e){uu.call(this,e)}su()(bu,uu),bu.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},bu.prototype.comment=function(e){return this.emit("",e.position)},bu.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},bu.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},bu.prototype.document=function(e){var t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},bu.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},bu.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},bu.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},bu.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},bu.prototype.keyframe=function(e){var t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},bu.prototype.page=function(e){var t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},bu.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},bu.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},bu.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},bu.prototype.rule=function(e){var t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},bu.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var pu=hu;function hu(e){e=e||{},uu.call(this,e),this.indentation=e.indent}su()(hu,uu),hu.prototype.compile=function(e){return this.stylesheet(e)},hu.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},hu.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},hu.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},hu.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}")},hu.prototype.document=function(e){var 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}")},hu.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},hu.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},hu.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}")},hu.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)+"}")},hu.prototype.keyframe=function(e){var 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")},hu.prototype.page=function(e){var 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}")},hu.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}")},hu.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}")},hu.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},hu.prototype.rule=function(e){var 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()+"}"):""},hu.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},hu.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var mu=function(e,t){try{var n=cu(e),r=ou.a.map(n,(function(e){if(!e)return e;var n=t(e);return this.update(n)}));return o=r,((i=i||{}).compress?new fu(i):new pu(i)).compile(o)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}var o,i},gu=n(109);function vu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ou(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vu(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ju(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 ku(e){return function(t){var n=function(e,t){var n=Object(gu.parse)(e).pathname;return Object(gu.resolve)(t,n)}(t.value,e);return Ou({},t,{newUrl:"url("+t.before+t.quote+n+t.quote+t.after+")"})}}var yu=function(e){return function(t){if("declaration"===t.type){var n=function(e){for(var t,n=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g,r=[];null!==(t=n.exec(e));){var o={source:t[0],before:t[1],quote:t[2],value:t[3],after:t[4]};ju(o)&&r.push(o)}return r}(t.value).map(ku(e));return Ou({},t,{value:(r=t.value,o=n,o.forEach((function(e){r=r.replace(e.source,e.newUrl)})),r)})}var r,o;return t}};function _u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_u(Object(n),!0).forEach((function(t){Object(s.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Su=/^(body|html|:root).*$/,wu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?Eu({},n,{selectors:n.selectors.map((function(n){return Object(p.includes)(t,n.trim())?n:n.match(Su)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},Cu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.map)(e,(function(e){var n=e.css,r=e.baseURL,o=[];return t&&o.push(wu(t)),r&&o.push(yu(r)),o.length?mu(n,Object(h.compose)(o)):n}))};n.d(t,"__experimentalAlignmentHookSettingsProvider",(function(){return Xs})),n.d(t,"AlignmentToolbar",(function(){return Qe})),n.d(t,"Autocomplete",(function(){return et})),n.d(t,"BlockAlignmentToolbar",(function(){return dt})),n.d(t,"BlockBreadcrumb",(function(){return bt})),n.d(t,"BlockControls",(function(){return vt})),n.d(t,"BlockEdit",(function(){return Z})),n.d(t,"useBlockEditContext",(function(){return $})),n.d(t,"BlockFormatControls",(function(){return _t})),n.d(t,"BlockIcon",(function(){return St})),n.d(t,"BlockNavigationDropdown",(function(){return Gc})),n.d(t,"__experimentalBlockNavigationList",(function(){return Hc})),n.d(t,"__experimentalBlockPatterns",(function(){return Wc})),n.d(t,"__experimentalBlockVariationPicker",(function(){return $c})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return ea})),n.d(t,"ButtonBlockerAppender",(function(){return Fc})),n.d(t,"ColorPalette",(function(){return na})),n.d(t,"ColorPaletteControl",(function(){return ra})),n.d(t,"ContrastChecker",(function(){return Ee})),n.d(t,"__experimentalEditorSkeleton",(function(){return oa})),n.d(t,"__experimentalGradientPicker",(function(){return ca})),n.d(t,"__experimentalGradientPickerControl",(function(){return aa})),n.d(t,"__experimentalGradientPickerPanel",(function(){return la})),n.d(t,"__experimentalColorGradientControl",(function(){return ue})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return Oe})),n.d(t,"__experimentalImageSizeControl",(function(){return sa})),n.d(t,"InnerBlocks",(function(){return va})),n.d(t,"InspectorAdvancedControls",(function(){return _a})),n.d(t,"InspectorControls",(function(){return Be})),n.d(t,"__experimentalLinkControl",(function(){return Ha})),n.d(t,"MediaReplaceFlow",(function(){return Qa})),n.d(t,"MediaPlaceholder",(function(){return ll})),n.d(t,"MediaUpload",(function(){return Ga})),n.d(t,"MediaUploadCheck",(function(){return Ka})),n.d(t,"PanelColorSettings",(function(){return ke})),n.d(t,"PlainText",(function(){return sl})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return dl})),n.d(t,"RichText",(function(){return wl})),n.d(t,"RichTextShortcut",(function(){return jl})),n.d(t,"RichTextToolbarButton",(function(){return kl})),n.d(t,"__unstableRichTextInputEvent",(function(){return yl})),n.d(t,"ToolSelector",(function(){return Bl})),n.d(t,"URLInput",(function(){return $a})),n.d(t,"URLInputButton",(function(){return Tl})),n.d(t,"URLPopover",(function(){return ol})),n.d(t,"__experimentalImageURLInputUI",(function(){return Rl})),n.d(t,"withColorContext",(function(){return ta})),n.d(t,"__experimentalBlockSettingsMenuFirstItem",(function(){return Fl})),n.d(t,"__experimentalInserterMenuExtension",(function(){return Sc})),n.d(t,"BlockInspector",(function(){return Xl})),n.d(t,"BlockList",(function(){return ac})),n.d(t,"__experimentalBlock",(function(){return Yi})),n.d(t,"BlockMover",(function(){return rs})),n.d(t,"BlockPreview",(function(){return bc})),n.d(t,"BlockSelectionClearer",(function(){return is})),n.d(t,"BlockSettingsMenu",(function(){return vs})),n.d(t,"BlockSettingsMenuControls",(function(){return ms})),n.d(t,"BlockTitle",(function(){return ft})),n.d(t,"BlockToolbar",(function(){return Cs})),n.d(t,"CopyHandler",(function(){return Is})),n.d(t,"DefaultBlockAppender",(function(){return nc})),n.d(t,"Inserter",(function(){return Dc})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return xs})),n.d(t,"MultiSelectScrollIntoView",(function(){return Ts})),n.d(t,"NavigableToolbar",(function(){return Ri})),n.d(t,"ObserveTyping",(function(){return Ns})),n.d(t,"PreserveScrollInReorder",(function(){return Ls})),n.d(t,"SkipToSelectedBlock",(function(){return Hl})),n.d(t,"Typewriter",(function(){return Ds})),n.d(t,"Warning",(function(){return ei})),n.d(t,"WritingFlow",(function(){return Ti})),n.d(t,"BlockEditorProvider",(function(){return Jo})),n.d(t,"useSimulatedMediaQuery",(function(){return Gs})),n.d(t,"getColorClassName",(function(){return y})),n.d(t,"getColorObjectByAttributeValues",(function(){return j})),n.d(t,"getColorObjectByColorValue",(function(){return k})),n.d(t,"createCustomColorsHOC",(function(){return R})),n.d(t,"withColors",(function(){return M})),n.d(t,"__experimentalUseColors",(function(){return He})),n.d(t,"__experimentalGetGradientClass",(function(){return J})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return ee})),n.d(t,"__experimentalUseGradient",(function(){return ne})),n.d(t,"getFontSize",(function(){return Ve})),n.d(t,"getFontSizeClass",(function(){return Ue})),n.d(t,"FontSizePicker",(function(){return ze})),n.d(t,"withFontSizes",(function(){return We})),n.d(t,"transformStyles",(function(){return Cu})),n.d(t,"storeConfig",(function(){return $o})),n.d(t,"SETTINGS_DEFAULTS",(function(){return Lt}))}]);
build/block-library/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'moment', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '61998ec00dad20aaa9107afc5a1b717b');
1
+ <?php return array('dependencies' => array('lodash', 'moment', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => 'c3c27a4b4a8ebb3e4fb6a2a549ad5bf2');
build/block-library/index.js CHANGED
@@ -5,7 +5,7 @@ this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function n(r){if(t
5
  http://jedwatson.github.io/classnames
6
  */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r))e.push(o.apply(null,r));else if("object"===c)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?e.exports=o:void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},109:function(e,t,n){"use strict";var r=n(157),o=n(159);function c(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=v,t.resolve=function(e,t){return v(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?v(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=v(e));return e instanceof c?e.format():c.prototype.format.call(e)},t.Url=c;var a=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),b=["%","/","?",";","#"].concat(u),m=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},O=n(160);function v(e,t,n){if(e&&o.isObject(e)&&e instanceof c)return e;var r=new c;return r.parse(e,t,n),r}c.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var c=e.indexOf("?"),i=-1!==c&&c<e.indexOf("#")?"?":"#",s=e.split(i);s[0]=s[0].replace(/\\/g,"/");var v=e=s.join(i);if(v=v.trim(),!n&&1===e.split("#").length){var j=l.exec(v);if(j)return this.path=v,this.href=v,this.pathname=j[1],j[2]?(this.search=j[2],this.query=t?O.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var y=a.exec(v);if(y){var w=(y=y[0]).toLowerCase();this.protocol=w,v=v.substr(y.length)}if(n||y||v.match(/^\/\/[^@\/]+@[^@\/]+/)){var _="//"===v.substr(0,2);!_||y&&g[y]||(v=v.substr(2),this.slashes=!0)}if(!g[y]&&(_||y&&!f[y])){for(var k,C,E=-1,x=0;x<m.length;x++){-1!==(S=v.indexOf(m[x]))&&(-1===E||S<E)&&(E=S)}-1!==(C=-1===E?v.lastIndexOf("@"):v.lastIndexOf("@",E))&&(k=v.slice(0,C),v=v.slice(C+1),this.auth=decodeURIComponent(k)),E=-1;for(x=0;x<b.length;x++){var S;-1!==(S=v.indexOf(b[x]))&&(-1===E||S<E)&&(E=S)}-1===E&&(E=v.length),this.host=v.slice(0,E),v=v.slice(E),this.parseHost(),this.hostname=this.hostname||"";var P="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!P)for(var T=this.hostname.split(/\./),B=(x=0,T.length);x<B;x++){var N=T[x];if(N&&!N.match(d)){for(var z="",M=0,I=N.length;M<I;M++)N.charCodeAt(M)>127?z+="x":z+=N[M];if(!z.match(d)){var R=T.slice(0,x),A=T.slice(x+1),H=N.match(p);H&&(R.push(H[1]),A.unshift(H[2])),A.length&&(v="/"+A.join(".")+v),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=r.toASCII(this.hostname));var L=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+L,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!h[w])for(x=0,B=u.length;x<B;x++){var D=u[x];if(-1!==v.indexOf(D)){var F=encodeURIComponent(D);F===D&&(F=escape(D)),v=v.split(D).join(F)}}var U=v.indexOf("#");-1!==U&&(this.hash=v.substr(U),v=v.slice(0,U));var G=v.indexOf("?");if(-1!==G?(this.search=v.substr(G),this.query=v.substr(G+1),t&&(this.query=O.parse(this.query)),v=v.slice(0,G)):t&&(this.search="",this.query={}),v&&(this.pathname=v),f[w]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){L=this.pathname||"";var W=this.search||"";this.path=L+W}return this.href=this.format(),this},c.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",c=!1,a="";this.host?c=e+this.host:this.hostname&&(c=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(c+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=O.stringify(this.query));var i=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||f[t])&&!1!==c?(c="//"+(c||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):c||(c=""),r&&"#"!==r.charAt(0)&&(r="#"+r),i&&"?"!==i.charAt(0)&&(i="?"+i),t+c+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(i=i.replace("#","%23"))+r},c.prototype.resolve=function(e){return this.resolveObject(v(e,!1,!0)).format()},c.prototype.resolveObject=function(e){if(o.isString(e)){var t=new c;t.parse(e,!1,!0),e=t}for(var n=new c,r=Object.keys(this),a=0;a<r.length;a++){var i=r[a];n[i]=this[i]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),s=0;s<l.length;s++){var u=l[s];"protocol"!==u&&(n[u]=e[u])}return f[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!f[e.protocol]){for(var b=Object.keys(e),m=0;m<b.length;m++){var d=b[m];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||g[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var h=n.pathname||"",O=n.search||"";n.path=h+O}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var v=n.pathname&&"/"===n.pathname.charAt(0),j=e.host||e.pathname&&"/"===e.pathname.charAt(0),y=j||v||n.host&&e.pathname,w=y,_=n.pathname&&n.pathname.split("/")||[],k=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!f[n.protocol]);if(k&&(n.hostname="",n.port=null,n.host&&(""===_[0]?_[0]=n.host:_.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),y=y&&(""===p[0]||""===_[0])),j)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,_=p;else if(p.length)_||(_=[]),_.pop(),_=_.concat(p),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(k)n.hostname=n.host=_.shift(),(P=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=P.shift(),n.host=n.hostname=P.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!_.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=_.slice(-1)[0],E=(n.host||e.host||_.length>1)&&("."===C||".."===C)||""===C,x=0,S=_.length;S>=0;S--)"."===(C=_[S])?_.splice(S,1):".."===C?(_.splice(S,1),x++):x&&(_.splice(S,1),x--);if(!y&&!w)for(;x--;x)_.unshift("..");!y||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),E&&"/"!==_.join("/").substr(-1)&&_.push("");var P,T=""===_[0]||_[0]&&"/"===_[0].charAt(0);k&&(n.hostname=n.host=T?"":_.length?_.shift():"",(P=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=P.shift(),n.host=n.hostname=P.shift()));return(y=y||n.host&&_.length)&&!T&&_.unshift(""),_.length?n.pathname=_.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},c.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},11:function(e,t){!function(){e.exports=this.wp.blocks}()},114:function(e,t,n){"use strict";var r=n(6),o=n(20),c=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,i=void 0===n?24:n,l=Object(o.a)(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:i,height:i},l))}},117:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.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},12:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},13:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},14:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},15:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(31),o=n(8);function c(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},156:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.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},157:function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(c){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var i,l=2147483647,s=/^xn--/,u=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,p=String.fromCharCode;function h(e){throw new RangeError(m[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function f(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(b,".")).split("."),t).join(".")}function O(e){for(var t,n,r=[],o=0,c=e.length;o<c;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<c?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function v(e){return g(e,(function(e){var t="";return e>65535&&(t+=p((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=p(e)})).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function y(e,t,n){var r=0;for(e=n?d(e/700):e>>1,e+=d(e/t);e>455;r+=36)e=d(e/35);return d(r+36*e/(e+38))}function w(e){var t,n,r,o,c,a,i,s,u,b,m,p=[],g=e.length,f=0,O=128,j=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&h("not-basic"),p.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<g;){for(c=f,a=1,i=36;o>=g&&h("invalid-input"),((s=(m=e.charCodeAt(o++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:36)>=36||s>d((l-f)/a))&&h("overflow"),f+=s*a,!(s<(u=i<=j?1:i>=j+26?26:i-j));i+=36)a>d(l/(b=36-u))&&h("overflow"),a*=b;j=y(f-c,t=p.length+1,0==c),d(f/t)>l-O&&h("overflow"),O+=d(f/t),f%=t,p.splice(f++,0,O)}return v(p)}function _(e){var t,n,r,o,c,a,i,s,u,b,m,g,f,v,w,_=[];for(g=(e=O(e)).length,t=128,n=0,c=72,a=0;a<g;++a)(m=e[a])<128&&_.push(p(m));for(r=o=_.length,o&&_.push("-");r<g;){for(i=l,a=0;a<g;++a)(m=e[a])>=t&&m<i&&(i=m);for(i-t>d((l-n)/(f=r+1))&&h("overflow"),n+=(i-t)*f,t=i,a=0;a<g;++a)if((m=e[a])<t&&++n>l&&h("overflow"),m==t){for(s=n,u=36;!(s<(b=u<=c?1:u>=c+26?26:u-c));u+=36)w=s-b,v=36-b,_.push(p(j(b+w%v,0))),s=d(w/v);_.push(p(j(s,0))),c=y(n,f,r==o),n=0,++r}++n,++t}return _.join("")}i={version:"1.4.1",ucs2:{decode:O,encode:v},decode:w,encode:_,toASCII:function(e){return f(e,(function(e){return u.test(e)?"xn--"+_(e):e}))},toUnicode:function(e){return f(e,(function(e){return s.test(e)?w(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(158)(e),n(82))},158:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},159:function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},16:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},160:function(e,t,n){"use strict";t.decode=t.parse=n(161),t.encode=t.stringify=n(162)},161:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,c){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var i=/\+/g;e=e.split(t);var l=1e3;c&&"number"==typeof c.maxKeys&&(l=c.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var u=0;u<s;++u){var b,m,d,p,h=e[u].replace(i,"%20"),g=h.indexOf(n);g>=0?(b=h.substr(0,g),m=h.substr(g+1)):(b=h,m=""),d=decodeURIComponent(b),p=decodeURIComponent(m),r(a,d)?o(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},162:function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,i){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?c(a(e),(function(a){var i=encodeURIComponent(r(a))+n;return o(e[a])?c(e[a],(function(e){return i+encodeURIComponent(r(e))})).join(t):i+encodeURIComponent(r(e[a]))})).join(t):i?encodeURIComponent(r(i))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function c(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},17:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},18:function(e,t,n){"use strict";var r=n(33);var o=n(34);function c(e,t){return Object(r.a)(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}}(e,t)||Object(o.a)()}n.d(t,"a",(function(){return c}))},180:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M2 2h5v11H2V2zm6 0h5v5H8V2zm6 0h4v16h-4V2zM8 8h5v5H8V8zm-6 6h11v4H2v-4z"}));t.a=c},181:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M16 4h2v9H7v3l-5-4 5-4v3h9V4z"}));t.a=c},19:function(e,t,n){"use strict";var r=n(32);function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",(function(){return o}))},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(37);function o(e,t){if(null==e)return{};var n,o,c=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},22:function(e,t){!function(){e.exports=this.wp.keycodes}()},23:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},239:function(e,t,n){
7
  /*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */
8
- e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}return function(){function n(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n)}var r,o,c;return r=n,(o=[{key:"getColorAsync",value:function(e,t,n){e.complete?t.call(e,this.getColor(e,n),n&&n.data):this._bindImageEvents(e,t,n)}},{key:"getColor",value:function(e,t){t=t||{};var n=this._getDefaultColor(t),r=this._getOriginalSize(e),o=this._prepareSizeAndPosition(r,t),c=null,a=n;if(!(o.srcWidth&&o.srcHeight&&o.destWidth&&o.destHeight))return this._prepareResult(n,new Error("FastAverageColor: Incorrect sizes."));if(!this._ctx&&(this._canvas=this._makeCanvas(),this._ctx=this._canvas.getContext&&this._canvas.getContext("2d"),!this._ctx))return this._prepareResult(n,new Error("FastAverageColor: Canvas Context 2D is not supported in this browser."));this._canvas.width=o.destWidth,this._canvas.height=o.destHeight;try{this._ctx.clearRect(0,0,o.destWidth,o.destHeight),this._ctx.drawImage(e,o.srcLeft,o.srcTop,o.srcWidth,o.srcHeight,0,0,o.destWidth,o.destHeight);var i=this._ctx.getImageData(0,0,o.destWidth,o.destHeight).data;a=this.getColorFromArray4(i,t)}catch(e){c=e}return this._prepareResult(a,c)}},{key:"getColorFromArray4",value:function(e,t){t=t||{};var n=e.length;if(n<4)return this._getDefaultColor(t);var r=n-n%4,o=4*(t.step||1),c="_"+(t.algorithm||"sqrt")+"Algorithm";if("function"!=typeof this[c])throw new Error("FastAverageColor: ".concat(t.algorithm," is unknown algorithm."));return this[c](e,r,o)}},{key:"destroy",value:function(){delete this._canvas,delete this._ctx}},{key:"_getDefaultColor",value:function(e){return this._getOption(e,"defaultColor",[255,255,255,255])}},{key:"_getOption",value:function(e,t,n){return void 0===e[t]?n:e[t]}},{key:"_prepareSizeAndPosition",value:function(e,t){var n,r=this._getOption(t,"left",0),o=this._getOption(t,"top",0),c=this._getOption(t,"width",e.width),a=this._getOption(t,"height",e.height),i=c,l=a;return"precision"===t.mode?{srcLeft:r,srcTop:o,srcWidth:c,srcHeight:a,destWidth:i,destHeight:l}:(c>a?(n=c/a,i=100,l=Math.round(i/n)):(n=a/c,l=100,i=Math.round(l/n)),(i>c||l>a||i<10||l<10)&&(i=c,l=a),{srcLeft:r,srcTop:o,srcWidth:c,srcHeight:a,destWidth:i,destHeight:l})}},{key:"_simpleAlgorithm",value:function(e,t,n){for(var r=0,o=0,c=0,a=0,i=0,l=0;l<t;l+=n){var s=e[l+3];r+=e[l]*s,o+=e[l+1]*s,c+=e[l+2]*s,a+=s,i++}return a?[Math.round(r/a),Math.round(o/a),Math.round(c/a),Math.round(a/i)]:[0,0,0,0]}},{key:"_sqrtAlgorithm",value:function(e,t,n){for(var r=0,o=0,c=0,a=0,i=0,l=0;l<t;l+=n){var s=e[l],u=e[l+1],b=e[l+2],m=e[l+3];r+=s*s*m,o+=u*u*m,c+=b*b*m,a+=m,i++}return a?[Math.round(Math.sqrt(r/a)),Math.round(Math.sqrt(o/a)),Math.round(Math.sqrt(c/a)),Math.round(a/i)]:[0,0,0,0]}},{key:"_dominantAlgorithm",value:function(e,n,r){for(var o={},c=0;c<n;c+=r){var a=e[c],i=e[c+1],l=e[c+2],s=e[c+3],u=Math.round(a/24)+","+Math.round(i/24)+","+Math.round(l/24);o[u]?o[u]=[o[u][0]+a*s,o[u][1]+i*s,o[u][2]+l*s,o[u][3]+s,o[u][4]+1]:o[u]=[a*s,i*s,l*s,s,1]}var b=t(Object.keys(o).map((function(e){return o[e]})).sort((function(e,t){var n=e[4],r=t[4];return n>r?-1:n===r?0:1}))[0],5),m=b[0],d=b[1],p=b[2],h=b[3],g=b[4];return h?[Math.round(m/h),Math.round(d/h),Math.round(p/h),Math.round(h/g)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,n){var r=this,o=(n=n||{})&&n.data,c=this._getDefaultColor(n),a=function(){s(),t.call(e,r.getColor(e,n),o)},i=function(){s(),t.call(e,r._prepareResult(c,new Error("Image error")),o)},l=function(){s(),t.call(e,r._prepareResult(c,new Error("Image abort")),o)},s=function(){e.removeEventListener("load",a),e.removeEventListener("error",i),e.removeEventListener("abort",l)};e.addEventListener("load",a),e.addEventListener("error",i),e.addEventListener("abort",l)}},{key:"_prepareResult",value:function(e,t){var n=e.slice(0,3),r=[].concat(n,e[3]/255),o=this._isDark(e);return{error:t,value:e,rgb:"rgb("+n.join(",")+")",rgba:"rgba("+r.join(",")+")",hex:this._arrayToHex(n),hexa:this._arrayToHex(e),isDark:o,isLight:!o}}},{key:"_getOriginalSize",value:function(e){return e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}},{key:"_toHex",value:function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}},{key:"_arrayToHex",value:function(e){return"#"+e.map(this._toHex).join("")}},{key:"_isDark",value:function(e){return(299*e[0]+587*e[1]+114*e[2])/1e3<128}},{key:"_makeCanvas",value:function(){return"undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")}}])&&e(r.prototype,o),c&&e(r,c),n}()}()},24:function(e,t){!function(){e.exports=this.wp.richText}()},258:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"}));t.a=c},259:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},260:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.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},261:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.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},263:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6zM13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z"}));t.a=c},267:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));t.a=c},27:function(e,t){!function(){e.exports=this.wp.url}()},28:function(e,t){!function(){e.exports=this.wp.dom}()},3:function(e,t){!function(){e.exports=this.wp.components}()},31:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},32:function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},33:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},34:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",(function(){return r}))},35:function(e,t){!function(){e.exports=this.moment}()},364:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"metadata",(function(){return Ie})),n.d(r,"name",(function(){return Re})),n.d(r,"settings",(function(){return Ae}));var o={};n.r(o),n.d(o,"metadata",(function(){return Vt})),n.d(o,"name",(function(){return Dt})),n.d(o,"settings",(function(){return Ft}));var c={};n.r(c),n.d(c,"metadata",(function(){return Yt})),n.d(c,"name",(function(){return Xt})),n.d(c,"settings",(function(){return en}));var a={};n.r(a),n.d(a,"metadata",(function(){return pn})),n.d(a,"name",(function(){return hn})),n.d(a,"settings",(function(){return gn}));var i={};n.r(i),n.d(i,"metadata",(function(){return Un})),n.d(i,"name",(function(){return Gn})),n.d(i,"settings",(function(){return Wn}));var l={};n.r(l),n.d(l,"name",(function(){return $n})),n.d(l,"settings",(function(){return Qn}));var s={};n.r(s),n.d(s,"metadata",(function(){return rr})),n.d(s,"name",(function(){return or})),n.d(s,"settings",(function(){return cr}));var u={};n.r(u),n.d(u,"metadata",(function(){return yr})),n.d(u,"name",(function(){return wr})),n.d(u,"settings",(function(){return _r}));var b={};n.r(b),n.d(b,"metadata",(function(){return Pr})),n.d(b,"name",(function(){return Tr})),n.d(b,"settings",(function(){return Br}));var m={};n.r(m),n.d(m,"name",(function(){return Hr})),n.d(m,"settings",(function(){return Lr}));var d={};n.r(d),n.d(d,"name",(function(){return Gr})),n.d(d,"settings",(function(){return Wr}));var p={};n.r(p),n.d(p,"metadata",(function(){return Jr})),n.d(p,"name",(function(){return Yr})),n.d(p,"settings",(function(){return Xr}));var h={};n.r(h),n.d(h,"metadata",(function(){return ho})),n.d(h,"name",(function(){return go})),n.d(h,"settings",(function(){return fo}));var g={};n.r(g),n.d(g,"metadata",(function(){return jo})),n.d(g,"name",(function(){return yo})),n.d(g,"settings",(function(){return wo}));var f={};n.r(f),n.d(f,"metadata",(function(){return qo})),n.d(f,"name",(function(){return Zo})),n.d(f,"settings",(function(){return Ko}));var O={};n.r(O),n.d(O,"name",(function(){return mc})),n.d(O,"settings",(function(){return dc})),n.d(O,"common",(function(){return pc})),n.d(O,"others",(function(){return hc}));var v={};n.r(v),n.d(v,"metadata",(function(){return yc})),n.d(v,"name",(function(){return wc})),n.d(v,"settings",(function(){return _c}));var j={};n.r(j),n.d(j,"metadata",(function(){return Sc})),n.d(j,"name",(function(){return Pc})),n.d(j,"settings",(function(){return Tc}));var y={};n.r(y),n.d(y,"metadata",(function(){return Zc})),n.d(y,"name",(function(){return Kc})),n.d(y,"settings",(function(){return $c}));var w={};n.r(w),n.d(w,"justifyLeftIcon",(function(){return ra})),n.d(w,"justifyCenterIcon",(function(){return oa})),n.d(w,"justifyRightIcon",(function(){return ca}));var _={};n.r(_),n.d(_,"name",(function(){return sa})),n.d(_,"settings",(function(){return ua}));var k={};n.r(k),n.d(k,"metadata",(function(){return va})),n.d(k,"name",(function(){return ja})),n.d(k,"settings",(function(){return ya}));var C={};n.r(C),n.d(C,"name",(function(){return ka})),n.d(C,"settings",(function(){return Ca}));var E={};n.r(E),n.d(E,"name",(function(){return Ra})),n.d(E,"settings",(function(){return Aa}));var x={};n.r(x),n.d(x,"name",(function(){return Ya})),n.d(x,"settings",(function(){return Xa}));var S={};n.r(S),n.d(S,"metadata",(function(){return bi})),n.d(S,"name",(function(){return mi})),n.d(S,"settings",(function(){return di}));var P={};n.r(P),n.d(P,"metadata",(function(){return hi})),n.d(P,"name",(function(){return gi})),n.d(P,"settings",(function(){return fi}));var T={};n.r(T),n.d(T,"metadata",(function(){return yi})),n.d(T,"name",(function(){return wi})),n.d(T,"settings",(function(){return _i}));var B={};n.r(B),n.d(B,"metadata",(function(){return Ei})),n.d(B,"name",(function(){return xi})),n.d(B,"settings",(function(){return Si}));var N={};n.r(N),n.d(N,"metadata",(function(){return Bi})),n.d(N,"name",(function(){return Ni})),n.d(N,"settings",(function(){return zi}));var z={};n.r(z),n.d(z,"metadata",(function(){return Ui})),n.d(z,"name",(function(){return Gi})),n.d(z,"settings",(function(){return Wi}));var M={};n.r(M),n.d(M,"name",(function(){return Qi})),n.d(M,"settings",(function(){return Ji}));var I={};n.r(I),n.d(I,"name",(function(){return el})),n.d(I,"settings",(function(){return tl}));var R={};n.r(R),n.d(R,"name",(function(){return rl})),n.d(R,"settings",(function(){return ol}));var A={};n.r(A),n.d(A,"metadata",(function(){return ll})),n.d(A,"name",(function(){return sl})),n.d(A,"settings",(function(){return ul}));var H={};n.r(H),n.d(H,"metadata",(function(){return hl})),n.d(H,"name",(function(){return gl})),n.d(H,"settings",(function(){return fl}));var L={};n.r(L),n.d(L,"metadata",(function(){return wl})),n.d(L,"name",(function(){return _l})),n.d(L,"settings",(function(){return kl}));var V={};n.r(V),n.d(V,"metadata",(function(){return xl})),n.d(V,"name",(function(){return Sl})),n.d(V,"settings",(function(){return Pl}));var D={};n.r(D),n.d(D,"metadata",(function(){return zl})),n.d(D,"name",(function(){return Ml})),n.d(D,"settings",(function(){return Il}));var F={};n.r(F),n.d(F,"metadata",(function(){return bs})),n.d(F,"name",(function(){return ms})),n.d(F,"settings",(function(){return ds}));var U={};n.r(U),n.d(U,"metadata",(function(){return hs})),n.d(U,"name",(function(){return gs})),n.d(U,"settings",(function(){return fs}));var G={};n.r(G),n.d(G,"metadata",(function(){return ys})),n.d(G,"name",(function(){return ws})),n.d(G,"settings",(function(){return _s}));var W={};n.r(W),n.d(W,"metadata",(function(){return Bs})),n.d(W,"name",(function(){return Ns})),n.d(W,"settings",(function(){return zs}));var q={};n.r(q),n.d(q,"name",(function(){return As})),n.d(q,"settings",(function(){return Hs}));var Z={};n.r(Z),n.d(Z,"metadata",(function(){return Gs})),n.d(Z,"name",(function(){return Ws})),n.d(Z,"settings",(function(){return qs}));var K={};n.r(K),n.d(K,"metadata",(function(){return Qs})),n.d(K,"name",(function(){return Js})),n.d(K,"settings",(function(){return Ys}));var $={};n.r($),n.d($,"metadata",(function(){return ru})),n.d($,"name",(function(){return ou})),n.d($,"settings",(function(){return cu}));var Q={};n.r(Q),n.d(Q,"metadata",(function(){return su})),n.d(Q,"name",(function(){return uu})),n.d(Q,"settings",(function(){return bu}));var J={};n.r(J),n.d(J,"metadata",(function(){return fu})),n.d(J,"name",(function(){return Ou})),n.d(J,"settings",(function(){return vu}));var Y={};n.r(Y),n.d(Y,"metadata",(function(){return yu})),n.d(Y,"name",(function(){return wu})),n.d(Y,"settings",(function(){return _u}));var X={};n.r(X),n.d(X,"metadata",(function(){return Cu})),n.d(X,"name",(function(){return Eu})),n.d(X,"settings",(function(){return xu}));var ee={};n.r(ee),n.d(ee,"metadata",(function(){return Pu})),n.d(ee,"name",(function(){return Tu})),n.d(ee,"settings",(function(){return Bu}));var te={};n.r(te),n.d(te,"metadata",(function(){return zu})),n.d(te,"name",(function(){return Mu})),n.d(te,"settings",(function(){return Iu}));var ne={};n.r(ne),n.d(ne,"metadata",(function(){return Ru})),n.d(ne,"name",(function(){return Au})),n.d(ne,"settings",(function(){return Hu}));var re={};n.r(re),n.d(re,"metadata",(function(){return Vu})),n.d(re,"name",(function(){return Du})),n.d(re,"settings",(function(){return Fu}));var oe={};n.r(oe),n.d(oe,"metadata",(function(){return Gu})),n.d(oe,"name",(function(){return Wu})),n.d(oe,"settings",(function(){return qu}));var ce={};n.r(ce),n.d(ce,"metadata",(function(){return Ku})),n.d(ce,"name",(function(){return $u})),n.d(ce,"settings",(function(){return Qu}));var ae={};n.r(ae),n.d(ae,"metadata",(function(){return Yu})),n.d(ae,"name",(function(){return Xu})),n.d(ae,"settings",(function(){return eb}));var ie=n(19),le=n(6),se=n(41),ue=n(5),be=n(11),me=n(2),de=n(1),pe=n(0),he=n(7),ge=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(he.Path,{d:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"})),fe=n(10),Oe=n.n(fe);function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ye={className:!1},we={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},direction:{type:"string",enum:["ltr","rtl"]}},_e=[{supports:ye,attributes:we,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,c=n.dropCap,a=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=n.fontSize,b=n.customFontSize,m=n.direction,d=Object(ue.getColorClassName)("color",i),p=Object(ue.getColorClassName)("background-color",a),h=Object(ue.getFontSizeClass)(u),g=Oe()((t={"has-text-color":i||s,"has-background":a||l,"has-drop-cap":c},Object(le.a)(t,h,h),Object(le.a)(t,d,d),Object(le.a)(t,p,p),t)),f={backgroundColor:p?void 0:l,color:d?void 0:s,fontSize:h?void 0:b,textAlign:r};return Object(pe.createElement)(ue.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:o,dir:m})}},{supports:ye,attributes:je({},we,{width:{type:"string"}}),save:function(e){var t,n=e.attributes,r=n.width,o=n.align,c=n.content,a=n.dropCap,i=n.backgroundColor,l=n.textColor,s=n.customBackgroundColor,u=n.customTextColor,b=n.fontSize,m=n.customFontSize,d=Object(ue.getColorClassName)("color",l),p=Object(ue.getColorClassName)("background-color",i),h=b&&"is-".concat(b,"-text"),g=Oe()((t={},Object(le.a)(t,"align".concat(r),r),Object(le.a)(t,"has-background",i||s),Object(le.a)(t,"has-drop-cap",a),Object(le.a)(t,h,h),Object(le.a)(t,d,d),Object(le.a)(t,p,p),t)),f={backgroundColor:p?void 0:s,color:d?void 0:u,fontSize:h?void 0:m,textAlign:o};return Object(pe.createElement)(ue.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:c})}},{supports:ye,attributes:Object(me.omit)(je({},we,{fontSize:{type:"number"}}),"customFontSize","customTextColor","customBackgroundColor"),save:function(e){var t,n=e.attributes,r=n.width,o=n.align,c=n.content,a=n.dropCap,i=n.backgroundColor,l=n.textColor,s=n.fontSize,u=Oe()((t={},Object(le.a)(t,"align".concat(r),r),Object(le.a)(t,"has-background",i),Object(le.a)(t,"has-drop-cap",a),t)),b={backgroundColor:i,color:l,fontSize:s,textAlign:o};return Object(pe.createElement)("p",{style:b,className:u||void 0},c)},migrate:function(e){return Object(me.omit)(je({},e,{customFontSize:Object(me.isFinite)(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&"#"===e.backgroundColor[0]?e.backgroundColor:void 0}),["fontSize","textColor","backgroundColor"])}},{supports:ye,attributes:je({},we,{content:{type:"string",source:"html",default:""}}),save:function(e){var t=e.attributes;return Object(pe.createElement)(pe.RawHTML,null,t.content)},migrate:function(e){return e}}],ke=n(18),Ce=n(3),Ee=n(9),xe=n(4),Se=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(pe.createElement)(he.Path,{d:"M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z"}));function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Te=window.getComputedStyle,Be=window.document.querySelector.bind(document);function Ne(e){var t=e.direction,n=e.setDirection;return Object(xe.useSelect)((function(e){return!!e("core/block-editor").getSettings().isRTL}),[])&&Object(pe.createElement)(Ce.ToolbarGroup,{controls:[{icon:Se,title:Object(de._x)("Left to right","editor button"),isActive:"ltr"===t,onClick:function(){n("ltr"===t?void 0:"ltr")}}]})}var ze=Object(Ee.compose)([Object(ue.withFontSizes)("fontSize")])((function(e){var t,n,r,o,c,a,i,l=e.attributes,s=e.fontSize,u=e.mergeBlocks,b=e.onReplace,m=e.setAttributes,d=e.setFontSize,p=l.align,h=l.content,g=l.dropCap,f=l.placeholder,O=l.direction,v=Object(pe.useRef)(),j=(n=g,r=[s.size],o=Object(pe.useState)(),c=Object(ke.a)(o,2),a=c[0],i=c[1],Object(pe.useEffect)((function(){var e=Be("p.has-drop-cap");n&&e?i(Te(e,"first-letter").lineHeight):a&&i(void 0)}),[n,a,i].concat(Object(ie.a)(r))),a),y=Object(ue.__experimentalUseColors)([{name:"textColor",property:"color"},{name:"backgroundColor",className:"has-background"}],{contrastCheckers:[{backgroundColor:!0,textColor:!0,fontSize:s.size}],colorDetector:{targetRef:v}},[s.size]),w=y.TextColor,_=y.BackgroundColor,k=y.InspectorControlsColorPanel;return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ue.AlignmentToolbar,{value:p,onChange:function(e){return m({align:e})}}),Object(pe.createElement)(Ne,{direction:O,setDirection:function(e){return m({direction:e})}})),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Text settings")},Object(pe.createElement)(ue.FontSizePicker,{value:s.size,onChange:d}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Drop cap"),checked:!!g,onChange:function(){return m({dropCap:!g})},help:g?Object(de.__)("Showing large initial letter."):Object(de.__)("Toggle to show a large initial letter.")}))),k,Object(pe.createElement)(_,null,Object(pe.createElement)(w,null,Object(pe.createElement)(ue.RichText,{ref:v,identifier:"content",tagName:ue.__experimentalBlock.p,className:Oe()((t={"has-drop-cap":g},Object(le.a)(t,"has-text-align-".concat(p),p),Object(le.a)(t,s.class,s.class),t)),style:{fontSize:s.size?s.size+"px":void 0,direction:O,minHeight:j},value:h,onChange:function(e){return m({content:e})},onSplit:function(e){return e?Object(be.createBlock)("core/paragraph",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},l,{content:e})):Object(be.createBlock)("core/paragraph")},onMerge:u,onReplace:b,onRemove:b?function(){return b([])}:void 0,"aria-label":h?Object(de.__)("Paragraph block"):Object(de.__)("Empty block; start writing or type forward slash to choose a block"),placeholder:f||Object(de.__)("Start writing or type / to choose a block"),__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0}))))}));var Me={from:[{type:"raw",priority:20,selector:"p",schema:function(e){return{p:{children:e.phrasingContentSchema,attributes:e.isPaste?[]:["style"]}}},transform:function(e){var t=Object(be.getBlockAttributes)("core/paragraph",e.outerHTML),n=(e.style||{}).textAlign;return"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),Object(be.createBlock)("core/paragraph",t)}}]},Ie={name:"core/paragraph",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},direction:{type:"string",enum:["ltr","rtl"]}}},Re=Ie.name,Ae={title:Object(de.__)("Paragraph"),description:Object(de.__)("Start with the building block of all narrative."),icon:ge,keywords:[Object(de.__)("text")],example:{attributes:{content:Object(de.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing."),customFontSize:28,dropCap:!0}},supports:{className:!1,__unstablePasteTextInline:!0,lightBlockWrapper:!0},__experimentalLabel:function(e,t){if("accessibility"===t.context){var n=e.content;return Object(me.isEmpty)(n)?Object(de.__)("Empty"):n}},transforms:Me,deprecated:_e,merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},edit:ze,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,c=n.dropCap,a=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=n.fontSize,b=n.customFontSize,m=n.direction,d=Object(ue.getColorClassName)("color",i),p=Object(ue.getColorClassName)("background-color",a),h=Object(ue.getFontSizeClass)(u),g=Oe()((t={"has-text-color":i||s,"has-background":a||l,"has-drop-cap":c},Object(le.a)(t,"has-text-align-".concat(r),r),Object(le.a)(t,h,h),Object(le.a)(t,d,d),Object(le.a)(t,p,p),t)),f={backgroundColor:p?void 0:l,color:d?void 0:s,fontSize:h?void 0:b};return Object(pe.createElement)(ue.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:o,dir:m})}},He=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.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-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),Le=n(12),Ve={align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},De=[{attributes:Ve,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,c=n.caption,a=n.align,i=n.href,l=n.width,s=n.height,u=n.id,b=Oe()((t={},Object(le.a)(t,"align".concat(a),a),Object(le.a)(t,"is-resized",l||s),t)),m=Object(pe.createElement)("img",{src:r,alt:o,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(pe.createElement)("figure",{className:b},i?Object(pe.createElement)("a",{href:i},m):m,!ue.RichText.isEmpty(c)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:c}))}},{attributes:Ve,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=t.id,u=Object(pe.createElement)("img",{src:n,alt:r,className:s?"wp-image-".concat(s):null,width:i,height:l});return Object(pe.createElement)("figure",{className:c?"align".concat(c):null},a?Object(pe.createElement)("a",{href:a},u):u,!ue.RichText.isEmpty(o)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:Ve,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=i||l?{width:i,height:l}:{},u=Object(pe.createElement)("img",Object(Le.a)({src:n,alt:r},s)),b={};return i?b={width:i}:"left"!==c&&"right"!==c||(b={maxWidth:"50%"}),Object(pe.createElement)("figure",{className:c?"align".concat(c):null,style:b},a?Object(pe.createElement)("a",{href:a},u):u,!ue.RichText.isEmpty(o)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:o}))}}],Fe=n(14),Ue=n(13),Ge=n(15),We=n(16),qe=n(8),Ze=n(17),Ke=n(42),$e=n(27),Qe=n(55),Je=Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(Ce.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.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),Ye=Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(Ce.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.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})),Xe=Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(Ce.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-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),et=Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(Ce.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.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})),tt={foreground:"#1da1f2",src:Object(pe.createElement)(Ce.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.G,null,Object(pe.createElement)(Ce.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"})))},nt={foreground:"#ff0000",src:Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},rt={foreground:"#3b5998",src:Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},ot=Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.G,null,Object(pe.createElement)(Ce.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),ct={foreground:"#0073AA",src:Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.G,null,Object(pe.createElement)(Ce.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},at={foreground:"#1db954",src:Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},it=Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),lt={foreground:"#1ab7ea",src:Object(pe.createElement)(Ce.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.G,null,Object(pe.createElement)(Ce.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},st=Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.Path,{d:"M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z"})),ut={foreground:"#35465c",src:Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.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-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z"}))},bt=Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),Object(pe.createElement)(Ce.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),Object(pe.createElement)(Ce.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})),mt=[{name:"core-embed/twitter",settings:{title:"Twitter",icon:tt,keywords:["tweet",Object(de.__)("social")],description:Object(de.__)("Embed a tweet.")},patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i]},{name:"core-embed/youtube",settings:{title:"YouTube",icon:nt,keywords:[Object(de.__)("music"),Object(de.__)("video")],description:Object(de.__)("Embed a YouTube video.")},patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i]},{name:"core-embed/facebook",settings:{title:"Facebook",icon:rt,keywords:[Object(de.__)("social")],description:Object(de.__)("Embed a Facebook post.")},patterns:[/^https?:\/\/www\.facebook.com\/.+/i]},{name:"core-embed/instagram",settings:{title:"Instagram",icon:ot,keywords:[Object(de.__)("image"),Object(de.__)("social")],description:Object(de.__)("Embed an Instagram post.")},patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]},{name:"core-embed/wordpress",settings:{title:"WordPress",icon:ct,keywords:[Object(de.__)("post"),Object(de.__)("blog")],responsive:!1,description:Object(de.__)("Embed a WordPress post.")}},{name:"core-embed/soundcloud",settings:{title:"SoundCloud",icon:Ye,keywords:[Object(de.__)("music"),Object(de.__)("audio")],description:Object(de.__)("Embed SoundCloud content.")},patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]},{name:"core-embed/spotify",settings:{title:"Spotify",icon:at,keywords:[Object(de.__)("music"),Object(de.__)("audio")],description:Object(de.__)("Embed Spotify content.")},patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i]},{name:"core-embed/flickr",settings:{title:"Flickr",icon:it,keywords:[Object(de.__)("image")],description:Object(de.__)("Embed Flickr content.")},patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i]},{name:"core-embed/vimeo",settings:{title:"Vimeo",icon:lt,keywords:[Object(de.__)("video")],description:Object(de.__)("Embed a Vimeo video.")},patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i]}],dt=[{name:"core-embed/animoto",settings:{title:"Animoto",icon:et,description:Object(de.__)("Embed an Animoto video.")},patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]},{name:"core-embed/cloudup",settings:{title:"Cloudup",icon:Je,description:Object(de.__)("Embed Cloudup content.")},patterns:[/^https?:\/\/cloudup\.com\/.+/i]},{name:"core-embed/collegehumor",settings:{title:"CollegeHumor",icon:et,description:Object(de.__)("Embed CollegeHumor content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/crowdsignal",settings:{title:"Crowdsignal",icon:Je,keywords:["polldaddy",Object(de.__)("survey")],transform:[{type:"block",blocks:["core-embed/polldaddy"],transform:function(e){return Object(be.createBlock)("core-embed/crowdsignal",{content:e})}}],description:Object(de.__)("Embed Crowdsignal (formerly Polldaddy) content.")},patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]},{name:"core-embed/dailymotion",settings:{title:"Dailymotion",icon:et,keywords:[Object(de.__)("video")],description:Object(de.__)("Embed a Dailymotion video.")},patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]},{name:"core-embed/hulu",settings:{title:"Hulu",icon:et,keywords:[Object(de.__)("video")],description:Object(de.__)("Embed Hulu content.")},patterns:[/^https?:\/\/(www\.)?hulu\.com\/.+/i]},{name:"core-embed/imgur",settings:{title:"Imgur",icon:Xe,description:Object(de.__)("Embed Imgur content.")},patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i]},{name:"core-embed/issuu",settings:{title:"Issuu",icon:Je,description:Object(de.__)("Embed Issuu content.")},patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i]},{name:"core-embed/kickstarter",settings:{title:"Kickstarter",icon:Je,description:Object(de.__)("Embed Kickstarter content.")},patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i]},{name:"core-embed/meetup-com",settings:{title:"Meetup.com",icon:Je,description:Object(de.__)("Embed Meetup.com content.")},patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]},{name:"core-embed/mixcloud",settings:{title:"Mixcloud",icon:Ye,keywords:[Object(de.__)("music"),Object(de.__)("audio")],description:Object(de.__)("Embed Mixcloud content.")},patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]},{name:"core-embed/polldaddy",settings:{title:"Polldaddy",icon:Je,description:Object(de.__)("Embed Polldaddy content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/reddit",settings:{title:"Reddit",icon:st,description:Object(de.__)("Embed a Reddit thread.")},patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i]},{name:"core-embed/reverbnation",settings:{title:"ReverbNation",icon:Ye,description:Object(de.__)("Embed ReverbNation content.")},patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]},{name:"core-embed/screencast",settings:{title:"Screencast",icon:et,description:Object(de.__)("Embed Screencast content.")},patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i]},{name:"core-embed/scribd",settings:{title:"Scribd",icon:Je,description:Object(de.__)("Embed Scribd content.")},patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i]},{name:"core-embed/slideshare",settings:{title:"Slideshare",icon:Je,description:Object(de.__)("Embed Slideshare content.")},patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]},{name:"core-embed/smugmug",settings:{title:"SmugMug",icon:Xe,description:Object(de.__)("Embed SmugMug content.")},patterns:[/^https?:\/\/(www\.)?smugmug\.com\/.+/i]},{name:"core-embed/speaker",settings:{title:"Speaker",icon:Ye,supports:{inserter:!1}},patterns:[]},{name:"core-embed/speaker-deck",settings:{title:"Speaker Deck",icon:Je,transform:[{type:"block",blocks:["core-embed/speaker"],transform:function(e){return Object(be.createBlock)("core-embed/speaker-deck",{content:e})}}],description:Object(de.__)("Embed Speaker Deck content.")},patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]},{name:"core-embed/tiktok",settings:{title:"TikTok",icon:et,keywords:[Object(de.__)("video")],description:Object(de.__)("Embed a TikTok video.")},patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i]},{name:"core-embed/ted",settings:{title:"TED",icon:et,description:Object(de.__)("Embed a TED video.")},patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]},{name:"core-embed/tumblr",settings:{title:"Tumblr",icon:ut,keywords:[Object(de.__)("social")],description:Object(de.__)("Embed a Tumblr post.")},patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i]},{name:"core-embed/videopress",settings:{title:"VideoPress",icon:et,keywords:[Object(de.__)("video")],description:Object(de.__)("Embed a VideoPress video.")},patterns:[/^https?:\/\/videopress\.com\/.+/i]},{name:"core-embed/wordpress-tv",settings:{title:"WordPress.tv",icon:et,description:Object(de.__)("Embed a WordPress.tv video.")},patterns:[/^https?:\/\/wordpress\.tv\/.+/i]},{name:"core-embed/amazon-kindle",settings:{title:"Amazon Kindle",icon:bt,keywords:[Object(de.__)("ebook")],responsive:!1,description:Object(de.__)("Embed Amazon Kindle content.")},patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]}],pt=["facebook.com","smugmug.com"],ht=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],gt=n(81),ft=n.n(gt),Ot=n(47),vt=n.n(Ot);function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var yt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))},wt=function(e){return Object(me.includes)(e,'class="wp-embedded-content"')},_t=function(e,t){var n=e.preview,r=e.name,o=e.attributes.url;if(o){var c=function(e){for(var t=0,n=[].concat(Object(ie.a)(mt),Object(ie.a)(dt));t<n.length;t++){var r=n[t];if(yt(e,r.patterns))return r.name}return"core/embed"}(o);if(Object(be.getBlockType)(c)){if("core-embed/wordpress"!==r&&"core/embed"!==c&&r!==c)return Object(be.createBlock)(c,{url:o});if(n){var a=n.html;if(wt(a)&&"core-embed/wordpress"!==r)return Object(be.createBlock)("core-embed/wordpress",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({url:o},t))}}}};function kt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!n){for(var r={"wp-has-aspect-ratio":!1},o=0;o<ht.length;o++){var c=ht[o];r[c.className]=!1}return ft()(t,r)}var a=document.implementation.createHTMLDocument("");a.body.innerHTML=e;var i=a.body.querySelector("iframe");if(i&&i.height&&i.width)for(var l=(i.width/i.height).toFixed(2),s=0;s<ht.length;s++){var u,b=ht[s];if(l>=b.ratio)return ft()(t,(u={},Object(le.a)(u,b.className,n),Object(le.a)(u,"wp-has-aspect-ratio",n),u))}return t}function Ct(e,t){var n=Object(pe.createElement)("a",{href:e},e);t(Object(be.createBlock)("core/paragraph",{content:Object(pe.renderToString)(n)}))}var Et=vt()((function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var c={},a=e.type,i=void 0===a?"rich":a,l=e.html,s=e.provider_name,u=Object(me.kebabCase)(Object(me.toLower)(""!==s?s:t));return wt(l)&&(i="wp-embed"),(l||"photo"===i)&&(c.type=i,c.providerNameSlug=u),c.className=kt(l,n,r&&o),c})),xt=["image"];var St=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).state={width:void 0,height:void 0},e.bindContainer=e.bindContainer.bind(Object(qe.a)(e)),e.calculateSize=e.calculateSize.bind(Object(qe.a)(e)),e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"componentDidUpdate",value:function(e){this.props.src!==e.src&&(this.setState({width:void 0,height:void 0}),this.fetchImageSize()),this.props.dirtynessTrigger!==e.dirtynessTrigger&&this.calculateSize()}},{key:"componentDidMount",value:function(){this.fetchImageSize()}},{key:"componentWillUnmount",value:function(){this.image&&(this.image.onload=me.noop)}},{key:"fetchImageSize",value:function(){this.image=new window.Image,this.image.onload=this.calculateSize,this.image.src=this.props.src}},{key:"calculateSize",value:function(){var e,t,n,r,o,c=(e=this.image,t=this.container,n=t.clientWidth,r=e.width>n,o=e.height/e.width,{width:r?n:e.width,height:r?n*o:e.height}),a=c.width,i=c.height;this.setState({width:a,height:i})}},{key:"render",value:function(){var e={imageWidth:this.image&&this.image.width,imageHeight:this.image&&this.image.height,containerWidth:this.container&&this.container.clientWidth,containerHeight:this.container&&this.container.clientHeight,imageWidthWithinContainer:this.state.width,imageHeightWithinContainer:this.state.height};return Object(pe.createElement)("div",{ref:this.bindContainer},this.props.children(e))}}]),t}(pe.Component),Pt=Object(Ee.withGlobalEvents)({resize:"calculateSize"})(St);function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nt=function(e,t){return!e&&Object(Ke.isBlobURL)(t)},zt=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).updateAlt=e.updateAlt.bind(Object(qe.a)(e)),e.updateAlignment=e.updateAlignment.bind(Object(qe.a)(e)),e.onFocusCaption=e.onFocusCaption.bind(Object(qe.a)(e)),e.onImageClick=e.onImageClick.bind(Object(qe.a)(e)),e.onSelectImage=e.onSelectImage.bind(Object(qe.a)(e)),e.onSelectURL=e.onSelectURL.bind(Object(qe.a)(e)),e.updateImage=e.updateImage.bind(Object(qe.a)(e)),e.onSetHref=e.onSetHref.bind(Object(qe.a)(e)),e.onSetTitle=e.onSetTitle.bind(Object(qe.a)(e)),e.getFilename=e.getFilename.bind(Object(qe.a)(e)),e.onUploadError=e.onUploadError.bind(Object(qe.a)(e)),e.onImageError=e.onImageError.bind(Object(qe.a)(e)),e.state={captionFocused:!1},e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,c=n.id,a=n.url,i=void 0===a?"":a;if(Nt(c,i)){var l=Object(Ke.getBlobByURL)(i);l&&r({filesList:[l],onFileChange:function(t){var n=Object(ke.a)(t,1)[0];e.onSelectImage(n)},allowedTypes:xt,onError:function(e){o.createErrorNotice(e)}})}}},{key:"componentDidUpdate",value:function(e){var t=e.attributes,n=t.id,r=t.url,o=void 0===r?"":r,c=this.props.attributes,a=c.id,i=c.url,l=void 0===i?"":i;Nt(n,o)&&!Nt(a,l)&&Object(Ke.revokeBlobURL)(l),!this.props.isSelected&&e.isSelected&&this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"onSelectImage",value:function(e){if(e&&e.url){var t,n,r,o=this.props.attributes,c=o.id,a=o.url,i=o.alt,l=o.caption,s=o.linkDestination,u=(t=e,(n=Object(me.pick)(t,["alt","id","link","caption"])).url=Object(me.get)(t,["sizes","large","url"])||Object(me.get)(t,["media_details","sizes","large","source_url"])||t.url,n);Nt(c,a)&&i&&(u=Object(me.omit)(u,["alt"])),l&&!Object(me.get)(u,["caption"])&&(u=Object(me.omit)(u,["caption"])),r=e.id&&e.id===c?{url:a}:{width:void 0,height:void 0,sizeSlug:"large"},"media"===s&&(u.href=e.url),"attachment"===s&&(u.href=e.link),this.props.setAttributes(Bt({},u,{},r))}else this.props.setAttributes({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0})}},{key:"onSelectURL",value:function(e){e!==this.props.attributes.url&&this.props.setAttributes({url:e,id:void 0,sizeSlug:"large"})}},{key:"onImageError",value:function(e){var t=_t({attributes:{url:e}});void 0!==t&&this.props.onReplace(t)}},{key:"onSetHref",value:function(e){this.props.setAttributes(e)}},{key:"onSetTitle",value:function(e){this.props.setAttributes({title:e})}},{key:"onFocusCaption",value:function(){this.state.captionFocused||this.setState({captionFocused:!0})}},{key:"onImageClick",value:function(){this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"updateAlt",value:function(e){this.props.setAttributes({alt:e})}},{key:"updateAlignment",value:function(e){var t=-1!==["wide","full"].indexOf(e)?{width:void 0,height:void 0}:{};this.props.setAttributes(Bt({},t,{align:e}))}},{key:"updateImage",value:function(e){var t=this.props.image,n=Object(me.get)(t,["media_details","sizes",e,"source_url"]);if(!n)return null;this.props.setAttributes({url:n,width:void 0,height:void 0,sizeSlug:e})}},{key:"getFilename",value:function(e){var t=Object($e.getPath)(e);if(t)return Object(me.last)(t.split("/"))}},{key:"getImageSizeOptions",value:function(){var e=this.props,t=e.imageSizes,n=e.image;return Object(me.map)(Object(me.filter)(t,(function(e){var t=e.slug;return Object(me.get)(n,["media_details","sizes",t,"source_url"])})),(function(e){var t=e.name;return{value:e.slug,label:t}}))}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,o=n.setAttributes,c=n.isLargeViewport,a=n.isSelected,i=n.className,l=n.maxWidth,s=n.noticeUI,u=n.isRTL,b=n.onResizeStart,m=n.onResizeStop,d=r.url,p=r.alt,h=r.caption,g=r.align,f=r.id,O=r.href,v=r.rel,j=r.linkClass,y=r.linkDestination,w=r.title,_=r.width,k=r.height,C=r.linkTarget,E=r.sizeSlug,x=function(e,t){return t&&!e&&!Object(Ke.isBlobURL)(t)}(f,d),S=Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ue.BlockAlignmentToolbar,{value:g,onChange:this.updateAlignment}),d&&Object(pe.createElement)(ue.MediaReplaceFlow,{mediaId:f,mediaURL:d,allowedTypes:xt,accept:"image/*",onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,onError:this.onUploadError}),d&&Object(pe.createElement)(Ce.ToolbarGroup,null,Object(pe.createElement)(ue.__experimentalImageURLInputUI,{url:O||"",onChangeUrl:this.onSetHref,linkDestination:y,mediaUrl:this.props.image&&this.props.image.source_url,mediaLink:this.props.image&&this.props.image.link,linkTarget:C,linkClass:j,rel:v}))),P=x?d:void 0,T={title:d?Object(de.__)("Edit image"):Object(de.__)("Image"),instructions:Object(de.__)("Upload an image file, pick one from your media library, or add one with a URL.")},B=!!d&&Object(pe.createElement)("img",{alt:Object(de.__)("Edit image"),title:Object(de.__)("Edit image"),className:"edit-image-preview",src:d}),N=["center","left","right"].includes(g),z=Object(pe.createElement)(ue.MediaPlaceholder,{icon:Object(pe.createElement)(ue.BlockIcon,{icon:He}),labels:T,onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,notices:s,onError:this.onUploadError,accept:"image/*",allowedTypes:xt,value:{id:f,src:P},mediaPreview:B,disableMediaButtons:d});if(!d)return Object(pe.createElement)(pe.Fragment,null,S,Object(pe.createElement)(ue.__experimentalBlock.div,{className:Oe()(i,Object(le.a)({},"align".concat(g),!N&&g))},N?Object(pe.createElement)("div",{className:"align".concat(g)},z):z));var M=Oe()(i,(e={"is-transient":Object(Ke.isBlobURL)(d),"is-resized":!!_||!!k,"is-focused":a},Object(le.a)(e,"size-".concat(E),E),Object(le.a)(e,"align".concat(g),g),e)),I=-1===["wide","full"].indexOf(g)&&c,R=this.getImageSizeOptions(),A=function(e,n){return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Image settings")},Object(pe.createElement)(Ce.TextareaControl,{label:Object(de.__)("Alt text (alternative text)"),value:p,onChange:t.updateAlt,help:Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(Ce.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(de.__)("Describe the purpose of the image")),Object(de.__)("Leave empty if the image is purely decorative."))}),Object(pe.createElement)(ue.__experimentalImageSizeControl,{onChangeImage:t.updateImage,onChange:function(e){return o(e)},slug:E,width:_,height:k,imageSizeOptions:R,isResizable:I,imageWidth:e,imageHeight:n}))),Object(pe.createElement)(ue.InspectorAdvancedControls,null,Object(pe.createElement)(Ce.TextControl,{label:Object(de.__)("Title attribute"),value:w||"",onChange:t.onSetTitle,help:Object(pe.createElement)(pe.Fragment,null,Object(de.__)("Describe the role of this image on the page."),Object(pe.createElement)(Ce.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},Object(de.__)("(Note: many devices and browsers do not display this text.)")))})))},H=N?ue.__experimentalBlock.div:pe.Fragment,L=N?"figure":ue.__experimentalBlock.figure;return Object(pe.createElement)(pe.Fragment,null,S,Object(pe.createElement)(H,null,Object(pe.createElement)(L,{className:M},Object(pe.createElement)(Pt,{src:d,dirtynessTrigger:g},(function(e){var n,r=e.imageWidthWithinContainer,c=e.imageHeightWithinContainer,a=e.imageWidth,i=e.imageHeight,s=t.getFilename(d);n=p||(s?Object(de.sprintf)(Object(de.__)("This image has an empty alt attribute; its file name is %s"),s):Object(de.__)("This image has an empty alt attribute"));var h=Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)("img",{src:d,alt:n,onClick:t.onImageClick,onError:function(){return t.onImageError(d)}}),Object(Ke.isBlobURL)(d)&&Object(pe.createElement)(Ce.Spinner,null));if(!I||!r)return Object(pe.createElement)(pe.Fragment,null,A(a,i),Object(pe.createElement)("div",{style:{width:_,height:k}},h));var f=_||r,O=k||c,v=a/i,j=a<i?20:20*v,y=i<a?20:20/v,w=2.5*l,C=!1,E=!1;return"center"===g?(C=!0,E=!0):u?"left"===g?C=!0:E=!0:"right"===g?E=!0:C=!0,Object(pe.createElement)(pe.Fragment,null,A(a,i),Object(pe.createElement)(Ce.ResizableBox,{size:{width:_,height:k},minWidth:j,maxWidth:w,minHeight:y,maxHeight:w/v,lockAspectRatio:!0,enable:{top:!1,right:C,bottom:!0,left:E},onResizeStart:b,onResizeStop:function(e,t,n,r){m(),o({width:parseInt(f+r.width,10),height:parseInt(O+r.height,10)})}},h))})),(!ue.RichText.isEmpty(h)||a)&&Object(pe.createElement)(ue.RichText,{tagName:"figcaption",placeholder:Object(de.__)("Write caption…"),value:h,unstableOnFocus:this.onFocusCaption,onChange:function(e){return o({caption:e})},isSelected:this.state.captionFocused,inlineToolbar:!0}),z)))}}]),t}(pe.Component),Mt=Object(Ee.compose)([Object(xe.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),Object(xe.withSelect)((function(e,t){var n=e("core").getMedia,r=e("core/block-editor").getSettings,o=t.attributes.id,c=t.isSelected,a=r(),i=a.mediaUpload,l=a.imageSizes,s=a.isRTL,u=a.maxWidth;return{image:o&&c?n(o):null,maxWidth:u,isRTL:s,imageSizes:l,mediaUpload:i}})),Object(Qe.withViewportMatch)({isLargeViewport:"medium"}),Ce.withNotices])(zt);function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function At(e,t){var n=document.implementation.createHTMLDocument("").body;n.innerHTML=e;var r=n.firstElementChild;if(r&&"A"===r.nodeName)return r.getAttribute(t)||void 0}var Ht={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},Lt={from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("img")},schema:function(e){var t=e.phrasingContentSchema;return{figure:{require:["img"],children:Rt({},Ht,{a:{attributes:["href","rel","target"],children:Ht},figcaption:{children:t}})}}},transform:function(e){var t=e.className+" "+e.querySelector("img").className,n=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),r=n?n[1]:void 0,o=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),c=o?Number(o[1]):void 0,a=e.querySelector("a"),i=a&&a.href?"custom":void 0,l=a&&a.href?a.href:void 0,s=a&&a.rel?a.rel:void 0,u=a&&a.className?a.className:void 0,b=Object(be.getBlockAttributes)("core/image",e.outerHTML,{align:r,id:c,linkDestination:i,href:l,rel:s,linkClass:u});return Object(be.createBlock)("core/image",b)}},{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("image/")},transform:function(e){var t=e[0];return Object(be.createBlock)("core/image",{url:Object(Ke.createBlobURL)(t)})}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:function(e,t){var n=t.shortcode,r=document.implementation.createHTMLDocument("").body;r.innerHTML=n.content;for(var o=r.querySelector("img");o&&o.parentNode&&o.parentNode!==r;)o=o.parentNode;return o&&o.parentNode.removeChild(o),r.innerHTML.trim()}},href:{shortcode:function(e,t){return At(t.shortcode.content,"href")}},rel:{shortcode:function(e,t){return At(t.shortcode.content,"rel")}},linkClass:{shortcode:function(e,t){return At(t.shortcode.content,"class")}},id:{type:"number",shortcode:function(e){var t=e.named.id;if(t)return parseInt(t.replace("attachment_",""),10)}},align:{type:"string",shortcode:function(e){var t=e.named.align;return(void 0===t?"alignnone":t).replace("align","")}}}}]},Vt={name:"core/image",category:"common",attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}}},Dt=Vt.name,Ft={title:Object(de.__)("Image"),description:Object(de.__)("Insert an image to make a visual statement."),icon:He,keywords:["img",Object(de.__)("photo")],supports:{lightBlockWrapper:!0},example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(de.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(de._x)("Default","block style"),isDefault:!0},{name:"rounded",label:Object(de._x)("Rounded","block style")}],__experimentalLabel:function(e,t){if("accessibility"===t.context){var n=e.caption,r=e.alt;return e.url?r?r+(n?". "+n:""):n||"":Object(de.__)("Empty")}},transforms:Lt,edit:Mt,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,c=n.caption,a=n.align,i=n.href,l=n.rel,s=n.linkClass,u=n.width,b=n.height,m=n.id,d=n.linkTarget,p=n.sizeSlug,h=n.title,g=Object(me.isEmpty)(l)?void 0:l,f=Oe()((t={},Object(le.a)(t,"align".concat(a),a),Object(le.a)(t,"size-".concat(p),p),Object(le.a)(t,"is-resized",u||b),t)),O=Object(pe.createElement)("img",{src:r,alt:o,className:m?"wp-image-".concat(m):null,width:u,height:b,title:h}),v=Object(pe.createElement)(pe.Fragment,null,i?Object(pe.createElement)("a",{className:s,href:i,target:d,rel:g},O):O,!ue.RichText.isEmpty(c)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:c}));return"left"===a||"right"===a||"center"===a?Object(pe.createElement)("div",null,Object(pe.createElement)("figure",{className:f},v)):Object(pe.createElement)("figure",{className:f},v)},deprecated:De},Ut=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(he.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"})),Gt={className:!1,anchor:!0},Wt={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},qt=[{attributes:Wt,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,c=n.customTextColor,a=n.level,i=n.textColor,l="h"+a,s=Object(ue.getColorClassName)("color",i),u=Oe()((t={},Object(le.a)(t,s,s),Object(le.a)(t,"has-text-align-".concat(r),r),t));return Object(pe.createElement)(ue.RichText.Content,{className:u||void 0,tagName:l,style:{color:s?void 0:c},value:o})},supports:Gt},{supports:Gt,attributes:Wt,save:function(e){var t=e.attributes,n=t.align,r=t.level,o=t.content,c=t.textColor,a=t.customTextColor,i="h"+r,l=Object(ue.getColorClassName)("color",c),s=Oe()(Object(le.a)({},l,l));return Object(pe.createElement)(ue.RichText.Content,{className:s||void 0,tagName:i,style:{textAlign:n,color:l?void 0:a},value:o})}}];function Zt(e){var t=e.level,n=e.isPressed,r=void 0!==n&&n,o={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return o.hasOwnProperty(t)?Object(pe.createElement)(Ce.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:r},Object(pe.createElement)(Ce.Path,{d:o[t]})):null}var Kt=function(e){function t(){return Object(Fe.a)(this,t),Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"createLevelControl",value:function(e,t,n){var r=e===t;return{icon:Object(pe.createElement)(Zt,{level:e,isPressed:r}),title:Object(de.sprintf)(Object(de.__)("Heading %d"),e),isActive:r,onClick:function(){return n(e)}}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isCollapsed,r=void 0===n||n,o=t.minLevel,c=t.maxLevel,a=t.selectedLevel,i=t.onChange;return Object(pe.createElement)(Ce.ToolbarGroup,{isCollapsed:r,icon:Object(pe.createElement)(Zt,{level:a}),controls:Object(me.range)(o,c).map((function(t){return e.createLevelControl(t,a,i)})),label:Object(de.__)("Change heading level")})}}]),t}(pe.Component);function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Qt=function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=e.onReplace,c=Object(pe.useRef)(),a=Object(ue.__experimentalUseColors)([{name:"textColor",property:"color"}],{contrastCheckers:{backgroundColor:!0,textColor:!0},colorDetector:{targetRef:c}},[]),i=a.TextColor,l=a.InspectorControlsColorPanel,s=t.align,u=t.content,b=t.level,m=t.placeholder,d="h"+b;return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(Kt,{minLevel:2,maxLevel:5,selectedLevel:b,onChange:function(e){return n({level:e})}}),Object(pe.createElement)(ue.AlignmentToolbar,{value:s,onChange:function(e){n({align:e})}})),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Heading settings")},Object(pe.createElement)("p",null,Object(de.__)("Level")),Object(pe.createElement)(Kt,{isCollapsed:!1,minLevel:1,maxLevel:7,selectedLevel:b,onChange:function(e){return n({level:e})}}))),l,Object(pe.createElement)(i,null,Object(pe.createElement)(ue.RichText,{ref:c,identifier:"content",tagName:ue.__experimentalBlock[d],value:u,onChange:function(e){return n({content:e})},onMerge:r,onSplit:function(e){return e?Object(be.createBlock)("core/heading",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{content:e})):Object(be.createBlock)("core/paragraph")},onReplace:o,onRemove:function(){return o([])},className:Oe()(Object(le.a)({},"has-text-align-".concat(s),s)),placeholder:m||Object(de.__)("Write heading…")})))};var Jt={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(be.createBlock)("core/heading",{content:t})}},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:function(e){var t={children:e.phrasingContentSchema,attributes:e.isPaste?[]:["style"]};return{h1:t,h2:t,h3:t,h4:t,h5:t,h6:t}},transform:function(e){var t,n=Object(be.getBlockAttributes)("core/heading",e.outerHTML),r=(e.style||{}).textAlign;return n.level=(t=e.nodeName,Number(t.substr(1))),"left"!==r&&"center"!==r&&"right"!==r||(n.align=r),Object(be.createBlock)("core/heading",n)}}].concat(Object(ie.a)([2,3,4,5,6].map((function(e){return{type:"prefix",prefix:Array(e+1).join("#"),transform:function(t){return Object(be.createBlock)("core/heading",{level:e,content:t})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(be.createBlock)("core/paragraph",{content:t})}}]},Yt={name:"core/heading",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}}},Xt=Yt.name,en={title:Object(de.__)("Heading"),description:Object(de.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:Ut,keywords:[Object(de.__)("title"),Object(de.__)("subtitle")],supports:{className:!1,anchor:!0,__unstablePasteTextInline:!0,lightBlockWrapper:!0},example:{attributes:{content:Object(de.__)("Code is Poetry"),level:2}},__experimentalLabel:function(e,t){if("accessibility"===t.context){var n=e.content,r=e.level;return Object(me.isEmpty)(n)?Object(de.sprintf)(Object(de.__)("Level %s. Empty."),r):Object(de.sprintf)(Object(de.__)("Level %1$s. %2$s"),r,n)}},transforms:Jt,deprecated:qt,merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},edit:Qt,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,c=n.customTextColor,a=n.level,i=n.textColor,l="h"+a,s=Object(ue.getColorClassName)("color",i),u=Oe()((t={},Object(le.a)(t,s,s),Object(le.a)(t,"has-text-color",i||c),Object(le.a)(t,"has-text-align-".concat(r),r),t));return Object(pe.createElement)(ue.RichText.Content,{className:u||void 0,tagName:l,style:{color:s?void 0:c},value:o})}},tn=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"}));function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var on={value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},cn=[{attributes:on,save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation;return Object(pe.createElement)("blockquote",{style:{textAlign:n||null}},Object(pe.createElement)(ue.RichText.Content,{multiline:!0,value:r}),!ue.RichText.isEmpty(o)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"cite",value:o}))}},{attributes:rn({},on,{style:{type:"number",default:1}}),migrate:function(e){return 2===e.style?rn({},Object(me.omit)(e,["style"]),{className:e.className?e.className+" is-style-large":"is-style-large"}):e},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,c=t.style;return Object(pe.createElement)("blockquote",{className:2===c?"is-large":"",style:{textAlign:n||null}},Object(pe.createElement)(ue.RichText.Content,{multiline:!0,value:r}),!ue.RichText.isEmpty(o)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"cite",value:o}))}},{attributes:rn({},on,{citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}}),save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,c=t.style;return Object(pe.createElement)("blockquote",{className:"blocks-quote-style-".concat(c),style:{textAlign:n||null}},Object(pe.createElement)(ue.RichText.Content,{multiline:!0,value:r}),!ue.RichText.isEmpty(o)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"footer",value:o}))}}];function an(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ln=n(20),sn=n(24);function un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var bn={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(be.createBlock)("core/quote",{value:Object(sn.toHTMLString)({value:Object(sn.join)(e.map((function(e){var t=e.content;return Object(sn.create)({html:t})})),"\u2028"),multilineTag:"p"})})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(be.createBlock)("core/quote",{value:"<p>".concat(t,"</p>")})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(be.createBlock)("core/quote",{value:t,citation:n})}},{type:"prefix",prefix:">",transform:function(e){return Object(be.createBlock)("core/quote",{value:"<p>".concat(e,"</p>")})}},{type:"raw",isMatch:function(e){var t,n=(t=!1,function(e){return"P"===e.nodeName||(t||"CITE"!==e.nodeName?void 0:(t=!0,!0))});return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(n)},schema:function(e){var t=e.phrasingContentSchema;return{blockquote:{children:{p:{children:t},cite:{children:t}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,n=e.citation,r=[];return t&&"<p></p>"!==t&&r.push.apply(r,Object(ie.a)(Object(sn.split)(Object(sn.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(be.createBlock)("core/paragraph",{content:Object(sn.toHTMLString)({value:e})})})))),n&&"<p></p>"!==n&&r.push(Object(be.createBlock)("core/paragraph",{content:n})),0===r.length?Object(be.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,n=e.citation,r=Object(ln.a)(e,["value","citation"]);if("<p></p>"===t)return Object(be.createBlock)("core/heading",{content:n});var o=Object(sn.split)(Object(sn.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object(be.createBlock)("core/heading",{content:Object(sn.toHTMLString)({value:o[0]})});if(!n&&1===o.length)return c;var a=o.slice(1);return[c,Object(be.createBlock)("core/quote",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?un(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):un(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r,{citation:n,value:Object(sn.toHTMLString)({value:a.length?Object(sn.join)(o.slice(1),"\u2028"):Object(sn.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(be.createBlock)("core/pullquote",{value:t,citation:n})}}]};function mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pn={name:"core/quote",category:"common",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}}},hn=pn.name,gn={title:Object(de.__)("Quote"),description:Object(de.__)('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'),icon:tn,keywords:[Object(de.__)("blockquote"),Object(de.__)("cite")],example:{attributes:{value:"<p>"+Object(de.__)("In quoting others, we cite ourselves.")+"</p>",citation:"Julio Cortázar",className:"is-style-large"}},styles:[{name:"default",label:Object(de._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(de._x)("Large","block style")}],transforms:bn,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,o=e.mergeBlocks,c=e.onReplace,a=e.className,i=t.align,l=t.value,s=t.citation;return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ue.AlignmentToolbar,{value:i,onChange:function(e){n({align:e})}})),Object(pe.createElement)(Ce.BlockQuotation,{className:Oe()(a,Object(le.a)({},"has-text-align-".concat(i),i))},Object(pe.createElement)(ue.RichText,{identifier:"value",multiline:!0,value:l,onChange:function(e){return n({value:e})},onMerge:o,onRemove:function(e){var t=!s||0===s.length;!e&&t&&c([])},placeholder:Object(de.__)("Write quote…"),onReplace:c,onSplit:function(e){return Object(be.createBlock)("core/quote",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?an(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{value:e}))},__unstableOnSplitMiddle:function(){return Object(be.createBlock)("core/paragraph")}}),(!ue.RichText.isEmpty(s)||r)&&Object(pe.createElement)(ue.RichText,{identifier:"citation",value:s,onChange:function(e){return n({citation:e})},__unstableMobileNoFocusOnMount:!0,placeholder:Object(de.__)("Write citation…"),className:"wp-block-quote__citation"})))},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,c=Oe()(Object(le.a)({},"has-text-align-".concat(n),n));return Object(pe.createElement)("blockquote",{className:c},Object(pe.createElement)(ue.RichText.Content,{multiline:!0,value:r}),!ue.RichText.isEmpty(o)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"cite",value:o}))},merge:function(e,t){var n=t.value,r=t.citation;return r||(r=e.citation),dn({},e,n&&"<p></p>"!==n?{value:e.value+n,citation:r}:{citation:r})},deprecated:cn},fn=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 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.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"}));function On(e){return Math.min(3,e.images.length)}var vn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large",n=Object(me.pick)(e,["alt","id","link","caption"]);n.url=Object(me.get)(e,["sizes",t,"url"])||Object(me.get)(e,["media_details","sizes",t,"source_url"])||e.url;var r=Object(me.get)(e,["sizes","full","url"])||Object(me.get)(e,["media_details","sizes","full","source_url"]);return r&&(n.fullUrl=r),n};function jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jn(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wn=[{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},isEligible:function(e){var t=e.ids;return t&&t.some((function(e){return"string"==typeof e}))},migrate:function(e){return yn({},e,{ids:Object(me.map)(e.ids,(function(e){var t=parseInt(e,10);return Number.isInteger(t)?t:null}))})},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?On(t):r,c=t.imageCrop,a=t.caption,i=t.linkTo;return Object(pe.createElement)("figure",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},Object(pe.createElement)("ul",{className:"blocks-gallery-grid"},n.map((function(e){var t;switch(i){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object(pe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(pe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(pe.createElement)("figure",null,t?Object(pe.createElement)("a",{href:t},n):n,!ue.RichText.isEmpty(e.caption)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!ue.RichText.isEmpty(a)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?On(t):r,c=t.imageCrop,a=t.linkTo;return Object(pe.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},n.map((function(e){var t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object(pe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(pe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(pe.createElement)("figure",null,t?Object(pe.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:function(e){var t=e.images,n=e.ids;return t&&t.length>0&&(!n&&t||n&&t&&n.length!==t.length||Object(me.some)(t,(function(e,t){return!e&&null!==n[t]||parseInt(e,10)!==n[t]})))},migrate:function(e){return yn({},e,{ids:Object(me.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},supports:{align:!0},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?On(t):r,c=t.imageCrop,a=t.linkTo;return Object(pe.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},n.map((function(e){var t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(pe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(pe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(pe.createElement)("figure",null,t?Object(pe.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?On(t):r,c=t.align,a=t.imageCrop,i=t.linkTo,l=Oe()("columns-".concat(o),{alignnone:"none"===c,"is-cropped":a});return Object(pe.createElement)("div",{className:l},n.map((function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(pe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(pe.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(pe.createElement)("a",{href:t},n):n)})))}}],_n=Object(pe.createElement)(ue.BlockIcon,{icon:fn}),kn=n(22),Cn=n(117),En=Object(pe.createElement)(Ce.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(Ce.Path,{d:"M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z"})),xn=Object(pe.createElement)(Ce.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(Ce.Path,{d:"M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z"})),Sn=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).onBlur=e.onBlur.bind(Object(qe.a)(e)),e.onFocus=e.onFocus.bind(Object(qe.a)(e)),e.onSelectImage=e.onSelectImage.bind(Object(qe.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(qe.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(qe.a)(e)),e.bindContainer=e.bindContainer.bind(Object(qe.a)(e)),e.debouncedOnDeselect=Object(me.debounce)(e.props.onDeselect,50),e.state={captionSelected:!1},e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"onSelectImage",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onRemoveImage",value:function(e){this.container===document.activeElement&&this.props.isSelected&&-1!==[kn.BACKSPACE,kn.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isSelected,r=t.image,o=t.url,c=t.__unstableMarkNextChangeAsNotPersistent;r&&!o&&(c(),this.props.setAttributes({url:r.source_url,alt:r.alt_text})),this.state.captionSelected&&!n&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"onBlur",value:function(){this.debouncedOnDeselect()}},{key:"onFocus",value:function(){this.debouncedOnDeselect.cancel()}},{key:"render",value:function(){var e,t=this.props,n=t.url,r=t.alt,o=t.id,c=t.linkTo,a=t.link,i=t.isFirstItem,l=t.isLastItem,s=t.isSelected,u=t.caption,b=t.onRemove,m=t.onMoveForward,d=t.onMoveBackward,p=t.setAttributes,h=t["aria-label"];switch(c){case"media":e=n;break;case"attachment":e=a}var g=Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)("img",{src:n,alt:r,"data-id":o,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":h,ref:this.bindContainer}),Object(Ke.isBlobURL)(n)&&Object(pe.createElement)(Ce.Spinner,null)),f=Oe()({"is-selected":s,"is-transient":Object(Ke.isBlobURL)(n)});return Object(pe.createElement)("figure",{className:f,onBlur:this.onBlur,onFocus:this.onFocus},e?Object(pe.createElement)("a",{href:e},g):g,Object(pe.createElement)("div",{className:"block-library-gallery-item__move-menu"},Object(pe.createElement)(Ce.Button,{icon:En,onClick:i?void 0:d,className:"blocks-gallery-item__move-backward",label:Object(de.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object(pe.createElement)(Ce.Button,{icon:xn,onClick:l?void 0:m,className:"blocks-gallery-item__move-forward",label:Object(de.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object(pe.createElement)("div",{className:"block-library-gallery-item__inline-menu"},Object(pe.createElement)(Ce.Button,{icon:Cn.a,onClick:b,className:"blocks-gallery-item__remove",label:Object(de.__)("Remove image"),disabled:!s})),(s||u)&&Object(pe.createElement)(ue.RichText,{tagName:"figcaption",placeholder:s?Object(de.__)("Write caption…"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return p({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),t}(pe.Component),Pn=Object(Ee.compose)([Object(xe.withSelect)((function(e,t){var n=e("core").getMedia,r=t.id;return{image:r?n(parseInt(r,10)):null}})),Object(xe.withDispatch)((function(e){return{__unstableMarkNextChangeAsNotPersistent:e("core/block-editor").__unstableMarkNextChangeAsNotPersistent}}))])(Sn),Tn=function(e){var t,n=e.attributes,r=e.className,o=e.isSelected,c=e.setAttributes,a=e.selectedImage,i=e.mediaPlaceholder,l=e.onMoveBackward,s=e.onMoveForward,u=e.onRemoveImage,b=e.onSelectImage,m=e.onDeselectImage,d=e.onSetImageAttributes,p=e.onFocusGalleryCaption,h=n.align,g=n.columns,f=void 0===g?On(n):g,O=n.caption,v=n.imageCrop,j=n.images,y=Oe()("blocks-gallery-caption",{"screen-reader-text":!o&&ue.RichText.isEmpty(O)});return Object(pe.createElement)("figure",{className:Oe()(r,(t={},Object(le.a)(t,"align".concat(h),h),Object(le.a)(t,"columns-".concat(f),f),Object(le.a)(t,"is-cropped",v),t))},Object(pe.createElement)("ul",{className:"blocks-gallery-grid"},j.map((function(e,t){var n=Object(de.sprintf)(Object(de.__)("image %1$d of %2$d in gallery"),t+1,j.length);return Object(pe.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(pe.createElement)(Pn,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===t,isLastItem:t+1===j.length,isSelected:o&&a===t,onMoveBackward:l(t),onMoveForward:s(t),onRemove:u(t),onSelect:b(t),onDeselect:m(t),setAttributes:function(e){return d(t,e)},caption:e.caption,"aria-label":n}))}))),i,Object(pe.createElement)(ue.RichText,{tagName:"figcaption",className:y,placeholder:Object(de.__)("Write gallery caption…"),value:O,unstableOnFocus:p,onChange:function(e){return c({caption:e})},inlineToolbar:!0}))};function Bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zn="web"===pe.Platform.OS?Ce.RangeControl:Ce.StepperControl,Mn=[{value:"attachment",label:Object(de.__)("Attachment Page")},{value:"media",label:Object(de.__)("Media File")},{value:"none",label:Object(de.__)("None")}],In=["image"],Rn=pe.Platform.select({web:Object(de.__)("Drag images, upload new ones or select files from your library."),native:Object(de.__)("ADD MEDIA")}),An=pe.Platform.select({web:{},native:{separatorType:"fullWidth"}}),Hn=pe.Platform.select({web:{},native:{separatorType:"none"}}),Ln=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(qe.a)(e)),e.onSelectImages=e.onSelectImages.bind(Object(qe.a)(e)),e.onDeselectImage=e.onDeselectImage.bind(Object(qe.a)(e)),e.setLinkTo=e.setLinkTo.bind(Object(qe.a)(e)),e.setColumnsNumber=e.setColumnsNumber.bind(Object(qe.a)(e)),e.toggleImageCrop=e.toggleImageCrop.bind(Object(qe.a)(e)),e.onMove=e.onMove.bind(Object(qe.a)(e)),e.onMoveForward=e.onMoveForward.bind(Object(qe.a)(e)),e.onMoveBackward=e.onMoveBackward.bind(Object(qe.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(qe.a)(e)),e.onUploadError=e.onUploadError.bind(Object(qe.a)(e)),e.setImageAttributes=e.setImageAttributes.bind(Object(qe.a)(e)),e.setAttributes=e.setAttributes.bind(Object(qe.a)(e)),e.onFocusGalleryCaption=e.onFocusGalleryCaption.bind(Object(qe.a)(e)),e.getImagesSizeOptions=e.getImagesSizeOptions.bind(Object(qe.a)(e)),e.updateImagesSize=e.updateImagesSize.bind(Object(qe.a)(e)),e.state={selectedImage:null,attachmentCaptions:null},e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=Nn({},e,{ids:Object(me.map)(e.images,(function(e){var t=e.id;return parseInt(t,10)}))})),this.props.setAttributes(e)}},{key:"onSelectImage",value:function(e){var t=this;return function(){t.state.selectedImage!==e&&t.setState({selectedImage:e})}}},{key:"onDeselectImage",value:function(e){var t=this;return function(){t.state.selectedImage===e&&t.setState({selectedImage:null})}}},{key:"onMove",value:function(e,t){var n=Object(ie.a)(this.props.attributes.images);n.splice(t,1,this.props.attributes.images[e]),n.splice(e,1,this.props.attributes.images[t]),this.setState({selectedImage:t}),this.setAttributes({images:n})}},{key:"onMoveForward",value:function(e){var t=this;return function(){e!==t.props.attributes.images.length-1&&t.onMove(e,e+1)}}},{key:"onMoveBackward",value:function(e){var t=this;return function(){0!==e&&t.onMove(e,e-1)}}},{key:"onRemoveImage",value:function(e){var t=this;return function(){var n=Object(me.filter)(t.props.attributes.images,(function(t,n){return e!==n})),r=t.props.attributes.columns;t.setState({selectedImage:null}),t.setAttributes({images:n,columns:r?Math.min(n.length,r):r})}}},{key:"selectCaption",value:function(e,t,n){var r=Object(me.toString)(e.id),o=Object(me.find)(t,{id:r}),c=o?o.caption:e.caption;if(!n)return c;var a=Object(me.find)(n,{id:r});return a&&a.caption!==e.caption?e.caption:c}},{key:"onSelectImages",value:function(e){var t=this,n=this.props.attributes,r=n.columns,o=n.images,c=n.sizeSlug,a=this.state.attachmentCaptions;this.setState({attachmentCaptions:e.map((function(e){return{id:Object(me.toString)(e.id),caption:e.caption}}))}),this.setAttributes({images:e.map((function(e){return Nn({},vn(e,c),{caption:t.selectCaption(e,o,a),id:Object(me.toString)(e.id)})})),columns:r?Math.min(e.length,r):r})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"setLinkTo",value:function(e){this.setAttributes({linkTo:e})}},{key:"setColumnsNumber",value:function(e){this.setAttributes({columns:e})}},{key:"toggleImageCrop",value:function(){this.setAttributes({imageCrop:!this.props.attributes.imageCrop})}},{key:"getImageCropHelp",value:function(e){return e?Object(de.__)("Thumbnails are cropped to align."):Object(de.__)("Thumbnails are not cropped.")}},{key:"onFocusGalleryCaption",value:function(){this.setState({selectedImage:null})}},{key:"setImageAttributes",value:function(e,t){var n=this.props.attributes.images,r=this.setAttributes;n[e]&&r({images:[].concat(Object(ie.a)(n.slice(0,e)),[Nn({},n[e],{},t)],Object(ie.a)(n.slice(e+1)))})}},{key:"getImagesSizeOptions",value:function(){var e=this.props,t=e.imageSizes,n=e.resizedImages;return Object(me.map)(Object(me.filter)(t,(function(e){var t=e.slug;return Object(me.some)(n,(function(e){return e[t]}))})),(function(e){var t=e.name;return{value:e.slug,label:t}}))}},{key:"updateImagesSize",value:function(e){var t=this.props,n=t.attributes.images,r=t.resizedImages,o=Object(me.map)(n,(function(t){if(!t.id)return t;var n=Object(me.get)(r,[parseInt(t.id,10),e]);return Nn({},t,{},n&&{url:n})}));this.setAttributes({images:o,sizeSlug:e})}},{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.mediaUpload,r=t.images;if("web"===pe.Platform.OS&&r&&r.length>0&&Object(me.every)(r,(function(e){var t=e.url;return Object(Ke.isBlobURL)(t)}))){var o=Object(me.map)(r,(function(e){var t=e.url;return Object(Ke.getBlobByURL)(t)}));Object(me.forEach)(r,(function(e){var t=e.url;return Object(Ke.revokeBlobURL)(t)})),n({filesList:o,onFileChange:this.onSelectImages,allowedTypes:["image"]})}}},{key:"componentDidUpdate",value:function(e){!this.props.isSelected&&e.isSelected&&this.setState({selectedImage:null,captionSelected:!1})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,r=e.isSelected,o=e.noticeUI,c=t.columns,a=void 0===c?On(t):c,i=t.imageCrop,l=t.images,s=t.linkTo,u=t.sizeSlug,b=!!l.length,m=b&&Object(me.some)(l,(function(e){return e.id})),d=Object(pe.createElement)(ue.MediaPlaceholder,{addToGallery:m,isAppender:b,className:n,disableMediaButtons:b&&!r,icon:!b&&_n,labels:{title:!b&&Object(de.__)("Gallery"),instructions:!b&&Rn},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:In,multiple:!0,value:m?l:void 0,onError:this.onUploadError,notices:b?void 0:o,onFocus:this.props.onFocus});if(!b)return d;var p=this.getImagesSizeOptions(),h=b&&!Object(me.isEmpty)(p),g=h?An:Hn;return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Gallery settings")},l.length>1&&Object(pe.createElement)(zn,Object(Le.a)({label:Object(de.__)("Columns")},An,{value:a,onChange:this.setColumnsNumber,min:1,max:Math.min(8,l.length),required:!0})),Object(pe.createElement)(Ce.ToggleControl,Object(Le.a)({label:Object(de.__)("Crop images")},An,{checked:!!i,onChange:this.toggleImageCrop,help:this.getImageCropHelp})),Object(pe.createElement)(Ce.SelectControl,Object(Le.a)({label:Object(de.__)("Link to")},g,{value:s,onChange:this.setLinkTo,options:Mn})),h&&Object(pe.createElement)(Ce.SelectControl,Object(Le.a)({label:Object(de.__)("Images size")},Hn,{value:u,options:p,onChange:this.updateImagesSize})))),o,Object(pe.createElement)(Tn,Object(Le.a)({},this.props,{selectedImage:this.state.selectedImage,mediaPlaceholder:d,onMoveBackward:this.onMoveBackward,onMoveForward:this.onMoveForward,onRemoveImage:this.onRemoveImage,onSelectImage:this.onSelectImage,onDeselectImage:this.onDeselectImage,onSetImageAttributes:this.setImageAttributes,onFocusGalleryCaption:this.onFocusGalleryCaption})))}}]),t}(pe.Component),Vn=Object(Ee.compose)([Object(xe.withSelect)((function(e,t){var n=t.attributes.ids,r=t.isSelected,o=e("core").getMedia,c=(0,e("core/block-editor").getSettings)(),a=c.imageSizes,i=c.mediaUpload,l={};return r&&(l=Object(me.reduce)(n,(function(e,t){if(!t)return e;var n=o(t),r=Object(me.reduce)(a,(function(e,t){var r=Object(me.get)(n,["sizes",t.slug,"url"]),o=Object(me.get)(n,["media_details","sizes",t.slug,"source_url"]);return Nn({},e,Object(le.a)({},t.slug,r||o))}),{});return Nn({},e,Object(le.a)({},parseInt(t,10),r))}),{})),{imageSizes:a,mediaUpload:i,resizedImages:l}})),Ce.withNotices,Object(Qe.withViewportMatch)({isNarrow:"< small"})])(Ln);var Dn=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},Fn={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0],n=t.align,r=t.sizeSlug;n=Object(me.every)(e,["align",n])?n:void 0,r=Object(me.every)(e,["sizeSlug",r])?r:void 0;var o=Object(me.filter)(e,(function(e){return e.url}));return Object(be.createBlock)("core/gallery",{images:o.map((function(e){var t=e.id,n=e.url,r=e.alt,o=e.caption;return{id:Object(me.toString)(t),url:n,alt:r,caption:o}})),ids:o.map((function(e){var t=e.id;return parseInt(t,10)})),align:n,sizeSlug:r})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return Dn(t).map((function(e){return{id:Object(me.toString)(e)}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return Dn(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link,n=void 0===t?"attachment":t;return"file"===n?"media":n}}}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(me.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e){return Object(be.createBlock)("core/gallery",{images:e.map((function(e){return vn({url:Object(Ke.createBlobURL)(e)})}))})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align,r=e.sizeSlug,o=e.ids;return t.length>0?t.map((function(e,t){var c=e.url,a=e.alt,i=e.caption;return Object(be.createBlock)("core/image",{id:o[t],url:c,alt:a,caption:i,align:n,sizeSlug:r})})):Object(be.createBlock)("core/image",{align:n})}}]},Un={name:"core/gallery",category:"common",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}}},Gn=Un.name,Wn={title:Object(de.__)("Gallery"),description:Object(de.__)("Display multiple images in a rich gallery."),icon:fn,keywords:[Object(de.__)("images"),Object(de.__)("photos")],example:{attributes:{columns:2,images:[{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},supports:{align:!0},transforms:Fn,edit:Vn,save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?On(t):r,c=t.imageCrop,a=t.caption,i=t.linkTo;return Object(pe.createElement)("figure",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},Object(pe.createElement)("ul",{className:"blocks-gallery-grid"},n.map((function(e){var t;switch(i){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object(pe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(pe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(pe.createElement)("figure",null,t?Object(pe.createElement)("a",{href:t},n):n,!ue.RichText.isEmpty(e.caption)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!ue.RichText.isEmpty(a)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},deprecated:wn},qn=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"})),Zn=n(59),Kn=n.n(Zn);var $n="core/archives",Qn={title:Object(de.__)("Archives"),description:Object(de.__)("Display a monthly archive of your posts."),icon:qn,category:"widgets",supports:{align:!0,html:!1},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.showPostCounts,o=t.displayAsDropdown;return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Archives settings")},Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Display as dropdown"),checked:o,onChange:function(){return n({displayAsDropdown:!o})}}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Show post counts"),checked:r,onChange:function(){return n({showPostCounts:!r})}}))),Object(pe.createElement)(Ce.Disabled,null,Object(pe.createElement)(Kn.a,{block:"core/archives",attributes:t})))}},Jn=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),Yn=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.loop,c=t.preload,a=t.src;return Object(pe.createElement)("figure",null,Object(pe.createElement)("audio",{controls:"controls",src:a,autoPlay:n,loop:o,preload:c}),!ue.RichText.isEmpty(r)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:r}))}}],Xn=["audio"],er=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).toggleAttribute=e.toggleAttribute.bind(Object(qe.a)(e)),e.onSelectURL=e.onSelectURL.bind(Object(qe.a)(e)),e.onUploadError=e.onUploadError.bind(Object(qe.a)(e)),e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.mediaUpload,r=e.noticeOperations,o=e.setAttributes,c=t.id,a=t.src,i=void 0===a?"":a;if(!c&&Object(Ke.isBlobURL)(i)){var l=Object(Ke.getBlobByURL)(i);l&&n({filesList:[l],onFileChange:function(e){var t=Object(ke.a)(e,1)[0],n=t.id,r=t.url;o({id:n,src:r})},onError:function(e){o({src:void 0,id:void 0}),r.createErrorNotice(e)},allowedTypes:Xn})}}},{key:"toggleAttribute",value:function(e){var t=this;return function(n){t.props.setAttributes(Object(le.a)({},e,n))}}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var o=_t({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"getAutoplayHelp",value:function(e){return e?Object(de.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}},{key:"render",value:function(){var e=this.props.attributes,t=e.id,n=e.autoplay,r=e.caption,o=e.loop,c=e.preload,a=e.src,i=this.props,l=i.setAttributes,s=i.isSelected,u=i.className,b=i.noticeUI,m=function(e){e&&e.url?l({src:e.url,id:e.id}):l({src:void 0,id:void 0})};return a?Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ue.MediaReplaceFlow,{mediaId:t,mediaURL:a,allowedTypes:Xn,accept:"audio/*",onSelect:m,onSelectURL:this.onSelectURL,onError:this.onUploadError})),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Audio settings")},Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n,help:this.getAutoplayHelp}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:o}),Object(pe.createElement)(Ce.SelectControl,{label:Object(de.__)("Preload"),value:void 0!==c?c:"none",onChange:function(e){return l({preload:"none"!==e?e:void 0})},options:[{value:"auto",label:Object(de.__)("Auto")},{value:"metadata",label:Object(de.__)("Metadata")},{value:"none",label:Object(de.__)("None")}]}))),Object(pe.createElement)("figure",{className:u},Object(pe.createElement)(Ce.Disabled,null,Object(pe.createElement)("audio",{controls:"controls",src:a})),(!ue.RichText.isEmpty(r)||s)&&Object(pe.createElement)(ue.RichText,{tagName:"figcaption",placeholder:Object(de.__)("Write caption…"),value:r,onChange:function(e){return l({caption:e})},inlineToolbar:!0}))):Object(pe.createElement)(ue.MediaPlaceholder,{icon:Object(pe.createElement)(ue.BlockIcon,{icon:Jn}),className:u,onSelect:m,onSelectURL:this.onSelectURL,accept:"audio/*",allowedTypes:Xn,value:this.props.attributes,notices:b,onError:this.onUploadError})}}]),t}(pe.Component),tr=Object(Ee.compose)([Object(xe.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),Ce.withNotices])(er);var nr={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform:function(e){var t=e[0];return Object(be.createBlock)("core/audio",{src:Object(Ke.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){return e.named.src}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},rr={name:"core/audio",category:"common",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}}},or=rr.name,cr={title:Object(de.__)("Audio"),description:Object(de.__)("Embed a simple audio player."),keywords:[Object(de.__)("music"),Object(de.__)("sound"),Object(de.__)("podcast"),Object(de.__)("recording")],icon:Jn,transforms:nr,deprecated:Yn,supports:{align:!0},edit:tr,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.loop,c=t.preload,a=t.src;return a&&Object(pe.createElement)("figure",null,Object(pe.createElement)("audio",{controls:"controls",src:a,autoPlay:n,loop:o,preload:c}),!ue.RichText.isEmpty(r)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:r}))}},ar=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M19 7H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 13.5h8V12H8v1.5z"})),ir={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:function(e){return Object(be.createBlock)("core/buttons",{},e.map((function(e){return Object(be.createBlock)("core/button",e)})))}}]};function lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ur=function(e){return Object(me.omit)(sr({},e,{customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0}),["color","textColor"])},br={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},mr=[{attributes:sr({},br,{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}}),isEligible:function(e){return e.className&&e.className.includes("is-style-squared")},migrate:function(e){var t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),sr({},e,{className:t||void 0,borderRadius:0})},save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.customBackgroundColor,c=n.customTextColor,a=n.linkTarget,i=n.rel,l=n.text,s=n.textColor,u=n.title,b=n.url,m=Object(ue.getColorClassName)("color",s),d=Object(ue.getColorClassName)("background-color",r),p=Oe()("wp-block-button__link",(t={"has-text-color":s||c},Object(le.a)(t,m,m),Object(le.a)(t,"has-background",r||o),Object(le.a)(t,d,d),t)),h={backgroundColor:d?void 0:o,color:m?void 0:c};return Object(pe.createElement)("div",null,Object(pe.createElement)(ue.RichText.Content,{tagName:"a",className:p,href:b,title:u,style:h,value:l,target:a,rel:i}))}},{attributes:sr({},br,{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}}),save:function(e){var t,n=e.attributes,r=n.url,o=n.text,c=n.title,a=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=Object(ue.getColorClassName)("color",i),b=Object(ue.getColorClassName)("background-color",a),m=Oe()("wp-block-button__link",(t={"has-text-color":i||s},Object(le.a)(t,u,u),Object(le.a)(t,"has-background",a||l),Object(le.a)(t,b,b),t)),d={backgroundColor:b?void 0:l,color:u?void 0:s};return Object(pe.createElement)("div",null,Object(pe.createElement)(ue.RichText.Content,{tagName:"a",className:m,href:r,title:c,style:d,value:o}))},migrate:ur},{attributes:sr({},br,{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,c=t.align,a={backgroundColor:t.color,color:t.textColor};return Object(pe.createElement)("div",{className:"align".concat(c)},Object(pe.createElement)(ue.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:n,title:o,style:a,value:r}))},migrate:ur},{attributes:sr({},br,{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,c=t.align,a=t.color,i=t.textColor;return Object(pe.createElement)("div",{className:"align".concat(c),style:{backgroundColor:a}},Object(pe.createElement)(ue.RichText.Content,{tagName:"a",href:n,title:o,style:{color:i},value:r}))},migrate:ur}],dr=n(156);function pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pr(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gr=window.getComputedStyle,fr=Object(Ce.withFallbackStyles)((function(e,t){var n=t.textColor,r=t.backgroundColor,o=r&&r.color,c=n&&n.color,a=!c&&e?e.querySelector('[contenteditable="true"]'):null;return{fallbackBackgroundColor:o||!e?void 0:gr(e).backgroundColor,fallbackTextColor:c||!a?void 0:gr(a).color}}));function Or(e){var t=e.borderRadius,n=void 0===t?"":t,r=e.setAttributes,o=Object(pe.useCallback)((function(e){r({borderRadius:e})}),[r]);return Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Border settings")},Object(pe.createElement)(Ce.RangeControl,{value:n,label:Object(de.__)("Border radius"),min:0,max:50,initialPosition:5,allowReset:!0,onChange:o}))}function vr(e){var t=e.isSelected,n=e.url,r=e.setAttributes,o=e.opensInNewTab,c=e.onToggleOpenInNewTab,a=Object(pe.useState)(!1),i=Object(ke.a)(a,2),l=i[0],s=i[1],u=function(){s(!0)},b=l&&Object(pe.createElement)(Ce.Popover,{position:"bottom center",onClose:function(){return s(!1)}},Object(pe.createElement)(ue.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:n,opensInNewTab:o},onChange:function(e){var t=e.url,n=void 0===t?"":t,a=e.opensInNewTab;r({url:n}),o!==a&&c(a)}}));return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(Ce.ToolbarGroup,null,Object(pe.createElement)(Ce.ToolbarButton,{name:"link",icon:dr.a,title:Object(de.__)("Link"),shortcut:kn.displayShortcut.primary("k"),onClick:u}))),t&&Object(pe.createElement)(Ce.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(le.a)({},kn.rawShortcut.primary("k"),u)}),b)}var jr=Object(Ee.compose)([Object(ue.withColors)("backgroundColor",{textColor:"color"}),fr])((function(e){var t,n=e.attributes,r=e.backgroundColor,o=e.textColor,c=e.setBackgroundColor,a=e.setTextColor,i=e.fallbackBackgroundColor,l=e.fallbackTextColor,s=e.setAttributes,u=e.className,b=e.isSelected,m=n.borderRadius,d=n.linkTarget,p=n.placeholder,h=n.rel,g=n.text,f=n.url,O=Object(pe.useCallback)((function(e){s({rel:e})}),[s]),v=Object(pe.useCallback)((function(e){var t=e?"_blank":void 0,n=h;t&&!h?n="noreferrer noopener":t||"noreferrer noopener"!==h||(n=void 0),s({linkTarget:t,rel:n})}),[h,s]),j=Object(ue.__experimentalUseGradient)(),y=j.gradientClass,w=j.gradientValue,_=j.setGradient;return Object(pe.createElement)("div",{className:u},Object(pe.createElement)(ue.RichText,{placeholder:p||Object(de.__)("Add text…"),value:g,onChange:function(e){return s({text:e})},withoutInteractiveFormatting:!0,className:Oe()("wp-block-button__link",(t={"has-background":r.color||w},Object(le.a)(t,r.class,!w&&r.class),Object(le.a)(t,"has-text-color",o.color),Object(le.a)(t,o.class,o.class),Object(le.a)(t,y,y),Object(le.a)(t,"no-border-radius",0===m),t)),style:hr({},!r.color&&w?{background:w}:{backgroundColor:r.color},{color:o.color,borderRadius:m?m+"px":void 0})}),Object(pe.createElement)(vr,{url:f,setAttributes:s,isSelected:b,opensInNewTab:"_blank"===d,onToggleOpenInNewTab:v}),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(ue.__experimentalPanelColorGradientSettings,{title:Object(de.__)("Background & Text Color"),settings:[{colorValue:o.color,onColorChange:a,label:Object(de.__)("Text color")},{colorValue:r.color,onColorChange:c,gradientValue:w,onGradientChange:_,label:Object(de.__)("Background")}]},Object(pe.createElement)(ue.ContrastChecker,{isLargeText:!1,textColor:o.color,backgroundColor:r.color,fallbackBackgroundColor:i,fallbackTextColor:l})),Object(pe.createElement)(Or,{borderRadius:m,setAttributes:s}),Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Link settings")},Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Open in new tab"),onChange:v,checked:"_blank"===d}),Object(pe.createElement)(Ce.TextControl,{label:Object(de.__)("Link rel"),value:h||"",onChange:O}))))}));var yr={name:"core/button",category:"layout",attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}}},wr=yr.name,_r={title:Object(de.__)("Button"),description:Object(de.__)("Prompt visitors to take action with a button-style link."),icon:ar,keywords:[Object(de.__)("link")],example:{attributes:{className:"is-style-fill",backgroundColor:"vivid-green-cyan",text:Object(de.__)("Call to Action")}},supports:{align:!0,alignWide:!1},parent:["core/buttons"],styles:[{name:"fill",label:Object(de.__)("Fill"),isDefault:!0},{name:"outline",label:Object(de.__)("Outline")}],edit:jr,save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.borderRadius,c=n.customBackgroundColor,a=n.customTextColor,i=n.customGradient,l=n.linkTarget,s=n.gradient,u=n.rel,b=n.text,m=n.textColor,d=n.title,p=n.url,h=Object(ue.getColorClassName)("color",m),g=!i&&Object(ue.getColorClassName)("background-color",r),f=Object(ue.__experimentalGetGradientClass)(s),O=Oe()("wp-block-button__link",(t={"has-text-color":m||a},Object(le.a)(t,h,h),Object(le.a)(t,"has-background",r||c||i||s),Object(le.a)(t,g,g),Object(le.a)(t,"no-border-radius",0===o),Object(le.a)(t,f,f),t)),v={background:i||void 0,backgroundColor:g||i||s?void 0:c,color:h?void 0:a,borderRadius:o?o+"px":void 0};return Object(pe.createElement)("div",null,Object(pe.createElement)(ue.RichText.Content,{tagName:"a",className:O,href:p,title:d,style:v,value:b,target:l,rel:u}))},deprecated:mr},kr=[wr],Cr=[["core/button"]],Er={hasSelectedUI:!1},xr={isEmbedButton:!0};var Sr=function(e){var t=e.className;return Object(pe.createElement)("div",{className:t},Object(pe.createElement)(ue.__experimentalAlignmentHookSettingsProvider,{value:xr},Object(pe.createElement)(ue.InnerBlocks,{allowedBlocks:kr,template:Cr,__experimentalUIParts:Er,__experimentalMoverDirection:"horizontal"})))};var Pr={name:"core/buttons",category:"layout",attributes:{}},Tr=Pr.name,Br={title:Object(de.__)("Buttons"),description:Object(de.__)("Prompt visitors to take action with a group of button-style links."),icon:ar,keywords:[Object(de.__)("link")],supports:{align:!0,alignWide:!1},transforms:ir,edit:Sr,save:function(){return Object(pe.createElement)("div",null,Object(pe.createElement)(ue.InnerBlocks.Content,null))}},Nr=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.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.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})),zr=n(35),Mr=n.n(zr);function Ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Rr=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).getYearMonth=vt()(e.getYearMonth.bind(Object(qe.a)(e)),{maxSize:1}),e.getServerSideAttributes=vt()(e.getServerSideAttributes.bind(Object(qe.a)(e)),{maxSize:1}),e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"getYearMonth",value:function(e){if(!e)return{};var t=Mr()(e);return{year:t.year(),month:t.month()+1}}},{key:"getServerSideAttributes",value:function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ir(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ir(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{},this.getYearMonth(t))}},{key:"render",value:function(){return Object(pe.createElement)(Ce.Disabled,null,Object(pe.createElement)(Kn.a,{block:"core/calendar",attributes:this.getServerSideAttributes(this.props.attributes,this.props.date)}))}}]),t}(pe.Component),Ar=Object(xe.withSelect)((function(e){var t=e("core/editor");if(t){var n=t.getEditedPostAttribute;return{date:"post"===n("type")?n("date"):void 0}}}))(Rr),Hr="core/calendar",Lr={title:Object(de.__)("Calendar"),description:Object(de.__)("A calendar of your site’s posts."),icon:Nr,category:"widgets",keywords:[Object(de.__)("posts"),Object(de.__)("archive")],supports:{align:!0},example:{},edit:Ar},Vr=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.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.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})),Dr=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(pe.createElement)(he.Path,{d:"M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z"})),Fr=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).toggleDisplayAsDropdown=e.toggleDisplayAsDropdown.bind(Object(qe.a)(e)),e.toggleShowPostCounts=e.toggleShowPostCounts.bind(Object(qe.a)(e)),e.toggleShowHierarchy=e.toggleShowHierarchy.bind(Object(qe.a)(e)),e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"toggleDisplayAsDropdown",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({displayAsDropdown:!t.displayAsDropdown})}},{key:"toggleShowPostCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showPostCounts:!t.showPostCounts})}},{key:"toggleShowHierarchy",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showHierarchy:!t.showHierarchy})}},{key:"getCategories",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.categories;return t&&t.length?null===e?t:t.filter((function(t){return t.parent===e})):[]}},{key:"getCategoryListClassName",value:function(e){return"wp-block-categories__list wp-block-categories__list-level-".concat(e)}},{key:"renderCategoryName",value:function(e){return e.name?Object(me.unescape)(e.name).trim():Object(de.__)("(Untitled)")}},{key:"renderCategoryList",value:function(){var e=this,t=this.props.attributes.showHierarchy?0:null,n=this.getCategories(t);return Object(pe.createElement)("ul",{className:this.getCategoryListClassName(0)},n.map((function(t){return e.renderCategoryListItem(t,0)})))}},{key:"renderCategoryListItem",value:function(e,t){var n=this,r=this.props.attributes,o=r.showHierarchy,c=r.showPostCounts,a=this.getCategories(e.id);return Object(pe.createElement)("li",{key:e.id},Object(pe.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},this.renderCategoryName(e)),c&&Object(pe.createElement)("span",{className:"wp-block-categories__post-count"}," ","(",e.count,")"),o&&!!a.length&&Object(pe.createElement)("ul",{className:this.getCategoryListClassName(t+1)},a.map((function(e){return n.renderCategoryListItem(e,t+1)}))))}},{key:"renderCategoryDropdown",value:function(){var e=this,t=this.props.instanceId,n=this.props.attributes.showHierarchy?0:null,r=this.getCategories(n),o="blocks-category-select-".concat(t);return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)("label",{htmlFor:o,className:"screen-reader-text"},Object(de.__)("Categories")),Object(pe.createElement)("select",{id:o,className:"wp-block-categories__dropdown"},r.map((function(t){return e.renderCategoryDropdownItem(t,0)}))))}},{key:"renderCategoryDropdownItem",value:function(e,t){var n=this,r=this.props.attributes,o=r.showHierarchy,c=r.showPostCounts,a=this.getCategories(e.id);return[Object(pe.createElement)("option",{key:e.id},Object(me.times)(3*t,(function(){return" "})),this.renderCategoryName(e),c?" (".concat(e.count,")"):""),o&&!!a.length&&a.map((function(e){return n.renderCategoryDropdownItem(e,t+1)}))]}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.isRequesting,r=t.displayAsDropdown,o=t.showHierarchy,c=t.showPostCounts,a=Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Categories settings")},Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Display as dropdown"),checked:r,onChange:this.toggleDisplayAsDropdown}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Show hierarchy"),checked:o,onChange:this.toggleShowHierarchy}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Show post counts"),checked:c,onChange:this.toggleShowPostCounts})));return n?Object(pe.createElement)(pe.Fragment,null,a,Object(pe.createElement)(Ce.Placeholder,{icon:Dr,label:Object(de.__)("Categories")},Object(pe.createElement)(Ce.Spinner,null))):Object(pe.createElement)(pe.Fragment,null,a,Object(pe.createElement)("div",{className:this.props.className},r?this.renderCategoryDropdown():this.renderCategoryList()))}}]),t}(pe.Component),Ur=Object(Ee.compose)(Object(xe.withSelect)((function(e){var t=e("core").getEntityRecords,n=e("core/data").isResolving,r={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",r),isRequesting:n("core","getEntityRecords",["taxonomy","category",r])}})),Ee.withInstanceId)(Fr),Gr="core/categories",Wr={title:Object(de.__)("Categories"),description:Object(de.__)("Display a list of all categories."),icon:Vr,category:"widgets",supports:{align:!0,html:!1},edit:Ur},qr=n(267);var Zr=n(68);function Kr(e){return e.replace(/\[/g,"&#91;")}function $r(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1&#47;&#47;$2")}var Qr={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(be.createBlock)("core/code")}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},Jr={name:"core/code",category:"formatting",attributes:{content:{type:"string",source:"text",selector:"code"}}},Yr=Jr.name,Xr={title:Object(de.__)("Code"),description:Object(de.__)("Display code snippets that respect your spacing and tabs."),icon:qr.a,example:{attributes:{content:Object(de.__)('// A "block" is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );')}},supports:{html:!1},transforms:Qr,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className;return Object(pe.createElement)("div",{className:r},Object(pe.createElement)(ue.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(de.__)("Write code…"),"aria-label":Object(de.__)("Code")}))},save:function(e){var t,n=e.attributes;return Object(pe.createElement)("pre",null,Object(pe.createElement)("code",null,(t=n.content,Object(me.flow)(Zr.escapeEditableHTML,Kr,$r)(t||""))))}},eo=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"}));function to(e){var t,n=to.doc;n||(n=document.implementation.createHTMLDocument(""),to.doc=n),n.body.innerHTML=e;var r=!0,o=!1,c=void 0;try{for(var a,i=n.body.firstChild.classList[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){if(t=a.value.match(/^layout-column-(\d+)$/))return Number(t[1])-1}}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}}var no=[{attributes:{columns:{type:"number",default:2}},isEligible:function(e,t){return!!t.some((function(e){return/layout-column-\d+/.test(e.originalContent)}))&&t.some((function(e){return void 0!==to(e.originalContent)}))},migrate:function(e,t){var n=t.reduce((function(e,t){var n=to(t.originalContent);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e}),[]).map((function(e){return Object(be.createBlock)("core/column",{},e)}));return[Object(me.omit)(e,["columns"]),n]},save:function(e){var t=e.attributes.columns;return Object(pe.createElement)("div",{className:"has-".concat(t,"-columns")},Object(pe.createElement)(ue.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:function(e,t){return[e=Object(me.omit)(e,["columns"]),t]},save:function(e){var t=e.attributes,n=t.verticalAlignment,r=t.columns,o=Oe()("has-".concat(r,"-columns"),Object(le.a)({},"are-vertically-aligned-".concat(n),n));return Object(pe.createElement)("div",{className:o},Object(pe.createElement)(ue.InnerBlocks.Content,null))}}],ro=function(e){return Number.isFinite(e)?parseFloat(e.toFixed(2)):void 0};function oo(e,t){var n=e.attributes.width;return ro(void 0===n?100/t:n)}function co(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(me.sumBy)(e,(function(e){return oo(e,t)}))}function ao(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,n){var r=oo(n,t);return Object.assign(e,Object(le.a)({},n.clientId,r))}),{})}function io(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=co(e,n),o=t-r,c=o/e.length;return Object(me.mapValues)(ao(e,n),(function(e){return ro(e+c)}))}function lo(e,t){return e.map((function(e){return Object(me.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var so=["core/column"];var uo=Object(xe.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,c=t.setAttributes,a=e("core/block-editor").updateBlockAttributes,i=n.select("core/block-editor").getBlockOrder;c({verticalAlignment:r}),i(o).forEach((function(e){a(e,{verticalAlignment:r})}))},updateColumns:function(r,o){var c=t.clientId,a=e("core/block-editor").replaceInnerBlocks,i=(0,n.select("core/block-editor").getBlocks)(c),l=i.every((function(e){return Number.isFinite(e.attributes.width)})),s=o>r;if(s&&l){var u=ro(100/o),b=io(i,100-u);i=[].concat(Object(ie.a)(lo(i,b)),Object(ie.a)(Object(me.times)(o-r,(function(){return Object(be.createBlock)("core/column",{width:u})}))))}else if(s)i=[].concat(Object(ie.a)(i),Object(ie.a)(Object(me.times)(o-r,(function(){return Object(be.createBlock)("core/column")}))));else{if(i=Object(me.dropRight)(i,r-o),l)i=lo(i,io(i,100))}a(c,i,!1)}}}))((function(e){var t=e.attributes,n=e.updateAlignment,r=e.updateColumns,o=e.clientId,c=t.verticalAlignment,a=Object(xe.useSelect)((function(e){return{count:e("core/block-editor").getBlockCount(o)}}),[o]).count,i=Object(pe.useRef)(),l=Object(ue.__experimentalUseColors)([{name:"textColor",property:"color"},{name:"backgroundColor",className:"has-background"}],{contrastCheckers:[{backgroundColor:!0,textColor:!0}],colorDetector:{targetRef:i}}),s=l.BackgroundColor,u=l.InspectorControlsColorPanel,b=l.TextColor,m=Oe()(Object(le.a)({},"are-vertically-aligned-".concat(c),c));return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ue.BlockVerticalAlignmentToolbar,{onChange:n,value:c})),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,null,Object(pe.createElement)(Ce.RangeControl,{label:Object(de.__)("Columns"),value:a,onChange:function(e){return r(a,e)},min:2,max:6}))),u,Object(pe.createElement)(s,null,Object(pe.createElement)(b,null,Object(pe.createElement)(ue.InnerBlocks,{allowedBlocks:so,__experimentalMoverDirection:"horizontal",ref:i,__experimentalTagName:ue.__experimentalBlock.div,__experimentalPassedProps:{className:m}}))))})),bo=function e(t){return Object(me.map)(t,(function(t){var n=Object(ke.a)(t,3),r=n[0],o=n[1],c=n[2],a=void 0===c?[]:c;return Object(be.createBlock)(r,o,e(a))}))},mo=function(e){var t=e.clientId,n=e.name,r=Object(xe.useSelect)((function(e){var r=e("core/blocks"),o=r.getBlockVariations,c=r.getBlockType,a=r.getDefaultBlockVariation;return{blockType:c(n),defaultVariation:a(n,"block"),hasInnerBlocks:e("core/block-editor").getBlocks(t).length>0,variations:o(n,"block")}}),[t,n]),o=r.blockType,c=r.defaultVariation,a=r.hasInnerBlocks,i=r.variations,l=Object(xe.useDispatch)("core/block-editor").replaceInnerBlocks;return a?Object(pe.createElement)(uo,e):Object(pe.createElement)(ue.__experimentalBlock.div,null,Object(pe.createElement)(ue.__experimentalBlockVariationPicker,{icon:Object(me.get)(o,["icon","src"]),label:Object(me.get)(o,["title"]),variations:i,onSelect:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;t.attributes&&e.setAttributes(t.attributes),t.innerBlocks&&l(e.clientId,bo(t.innerBlocks))},allowSkip:!0}))};var po=[{name:"two-columns-equal",title:Object(de.__)("Two columns; equal split"),icon:Object(pe.createElement)(Ce.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(Ce.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:Object(de.__)("Two columns; one-third, two-thirds split"),icon:Object(pe.createElement)(Ce.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(Ce.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:33.33}],["core/column",{width:66.66}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:Object(de.__)("Two columns; two-thirds, one-third split"),icon:Object(pe.createElement)(Ce.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(Ce.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:66.66}],["core/column",{width:33.33}]],scope:["block"]},{name:"three-columns-equal",title:Object(de.__)("Three columns; equal split"),icon:Object(pe.createElement)(Ce.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(Ce.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:Object(de.__)("Three columns; wide center column"),icon:Object(pe.createElement)(Ce.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(Ce.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),innerBlocks:[["core/column",{width:25}],["core/column",{width:50}],["core/column",{width:25}]],scope:["block"]}],ho={name:"core/columns",category:"layout",attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}}},go=ho.name,fo={title:Object(de.__)("Columns"),icon:eo,description:Object(de.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),supports:{align:["wide","full"],html:!1,lightBlockWrapper:!0},variations:po,example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(de.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:Object(de.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(de.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:Object(de.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:no,edit:mo,save:function(e){var t,n=e.attributes,r=n.verticalAlignment,o=n.backgroundColor,c=n.customBackgroundColor,a=n.textColor,i=n.customTextColor,l=Object(ue.getColorClassName)("background-color",o),s=Object(ue.getColorClassName)("color",a),u=Oe()((t={"has-background":o||c,"has-text-color":a||i},Object(le.a)(t,l,l),Object(le.a)(t,s,s),Object(le.a)(t,"are-vertically-aligned-".concat(r),r),t)),b={backgroundColor:l?void 0:c,color:s?void 0:i};return Object(pe.createElement)("div",{className:u||void 0,style:b},Object(pe.createElement)(ue.InnerBlocks.Content,null))}},Oo=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(he.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"}));var vo=Object(Ee.compose)(Object(xe.withSelect)((function(e,t){var n=t.clientId;return{hasChildBlocks:(0,e("core/block-editor").getBlockOrder)(n).length>0}})),Object(xe.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,c=t.setAttributes,a=e("core/block-editor").updateBlockAttributes,i=n.select("core/block-editor").getBlockRootClientId;c({verticalAlignment:r}),a(i(o),{verticalAlignment:null})}}})))((function(e){var t=e.attributes,n=e.setAttributes,r=e.updateAlignment,o=e.hasChildBlocks,c=t.verticalAlignment,a=t.width,i=Oe()("block-core-columns",Object(le.a)({},"is-vertically-aligned-".concat(c),c)),l=Number.isFinite(a);return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ue.BlockVerticalAlignmentToolbar,{onChange:r,value:c})),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Column settings")},Object(pe.createElement)(Ce.RangeControl,{label:Object(de.__)("Percentage width"),value:a||"",onChange:function(e){n({width:e})},min:0,max:100,step:.1,required:!0,allowReset:!0,placeholder:void 0===a?Object(de.__)("Auto"):void 0}))),Object(pe.createElement)(ue.InnerBlocks,{templateLock:!1,renderAppender:!o&&function(){return Object(pe.createElement)(ue.InnerBlocks.ButtonBlockAppender,null)},__experimentalTagName:ue.__experimentalBlock.div,__experimentalPassedProps:{className:i,style:l?{flexBasis:a+"%"}:void 0}}))}));var jo={name:"core/column",category:"common",attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}}},yo=jo.name,wo={title:Object(de.__)("Column"),parent:["core/columns"],icon:Oo,description:Object(de.__)("A single column within a columns block."),supports:{inserter:!1,reusable:!1,html:!1,lightBlockWrapper:!0},edit:vo,save:function(e){var t,n=e.attributes,r=n.verticalAlignment,o=n.width,c=Oe()(Object(le.a)({},"is-vertically-aligned-".concat(r),r));return Number.isFinite(o)&&(t={flexBasis:o+"%"}),Object(pe.createElement)("div",{className:c,style:t},Object(pe.createElement)(ue.InnerBlocks.Content,null))}},_o=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(he.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-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"}));function ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Co(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}function Eo(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function xo(e){return function(t){if(t&&t.url){var n;if(t.media_type)n="image"===t.media_type?"image":"video";else{if("image"!==t.type&&"video"!==t.type)return;n=t.type}e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ko(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ko(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({url:t.url,id:t.id,backgroundType:n},"video"===n?{focalPoint:void 0,hasParallax:void 0}:{}))}else e({url:void 0,id:void 0})}}function So(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Po(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?So(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):So(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var To={url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"}},Bo=[{attributes:Po({},To,{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}}),save:function(e){var t=e.attributes,n=t.backgroundType,r=t.gradient,o=t.customGradient,c=t.customOverlayColor,a=t.dimRatio,i=t.focalPoint,l=t.hasParallax,s=t.overlayColor,u=t.url,b=t.minHeight,m=Object(ue.getColorClassName)("background-color",s),d=Object(ue.__experimentalGetGradientClass)(r),p="image"===n?Co(u):{};m||(p.backgroundColor=c),i&&!l&&(p.backgroundPosition="".concat(100*i.x,"% ").concat(100*i.y,"%")),o&&!u&&(p.background=o),p.minHeight=b||void 0;var h=Oe()(Eo(a),m,Object(le.a)({"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":o},d,!u&&d));return Object(pe.createElement)("div",{className:h,style:p},u&&(r||o)&&0!==a&&Object(pe.createElement)("span",{"aria-hidden":"true",className:Oe()("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),"video"===n&&u&&Object(pe.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(pe.createElement)("div",{className:"wp-block-cover__inner-container"},Object(pe.createElement)(ue.InnerBlocks.Content,null)))}},{attributes:Po({},To,{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}}),supports:{align:!0},save:function(e){var t=e.attributes,n=t.backgroundType,r=t.contentAlign,o=t.customOverlayColor,c=t.dimRatio,a=t.focalPoint,i=t.hasParallax,l=t.overlayColor,s=t.title,u=t.url,b=Object(ue.getColorClassName)("background-color",l),m="image"===n?Co(u):{};b||(m.backgroundColor=o),a&&!i&&(m.backgroundPosition="".concat(100*a.x,"% ").concat(100*a.y,"%"));var d=Oe()(Eo(c),b,Object(le.a)({"has-background-dim":0!==c,"has-parallax":i},"has-".concat(r,"-content"),"center"!==r));return Object(pe.createElement)("div",{className:d,style:m},"video"===n&&u&&Object(pe.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!ue.RichText.isEmpty(s)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:s}))},migrate:function(e){return[Object(me.omit)(e,["title","contentAlign"]),[Object(be.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(de.__)("Write title…")})]]}},{attributes:Po({},To,{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}}),supports:{className:!1},save:function(e){var t=e.attributes,n=t.url,r=t.title,o=t.hasParallax,c=t.dimRatio,a=t.align,i=t.contentAlign,l=t.overlayColor,s=t.customOverlayColor,u=Object(ue.getColorClassName)("background-color",l),b=Co(n);u||(b.backgroundColor=s);var m=Oe()("wp-block-cover-image",Eo(c),u,Object(le.a)({"has-background-dim":0!==c,"has-parallax":o},"has-".concat(i,"-content"),"center"!==i),a?"align".concat(a):null);return Object(pe.createElement)("div",{className:m,style:b},!ue.RichText.isEmpty(r)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:r}))},migrate:function(e){return[Object(me.omit)(e,["title","contentAlign","align"]),[Object(be.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(de.__)("Write title…")})]]}},{attributes:Po({},To,{title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}}),supports:{className:!1},save:function(e){var t=e.attributes,n=t.url,r=t.title,o=t.hasParallax,c=t.dimRatio,a=t.align,i=Co(n),l=Oe()("wp-block-cover-image",Eo(c),{"has-background-dim":0!==c,"has-parallax":o},a?"align".concat(a):null);return Object(pe.createElement)("section",{className:l,style:i},Object(pe.createElement)(ue.RichText.Content,{tagName:"h2",value:r}))},migrate:function(e){return[Object(me.omit)(e,["title","contentAlign","align"]),[Object(be.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(de.__)("Write title…")})]]}}],No=n(239),zo=n.n(No),Mo=n(51),Io=n.n(Mo);function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ro(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ho=["image","video"],Lo=[["core/paragraph",{align:"center",fontSize:"large",placeholder:Object(de.__)("Write title…")}]];function Vo(){return Vo.fastAverageColor||(Vo.fastAverageColor=new zo.a),Vo.fastAverageColor}var Do=Object(Ee.withInstanceId)((function(e){var t=e.value,n=void 0===t?"":t,r=e.instanceId,o=e.onChange,c=Object(pe.useState)(null),a=Object(ke.a)(c,2),i=a[0],l=a[1],s="block-cover-height-input-".concat(r);return Object(pe.createElement)(Ce.BaseControl,{label:Object(de.__)("Minimum height in pixels"),id:s},Object(pe.createElement)("input",{type:"number",id:s,onChange:function(e){var t=""!==e.target.value?parseInt(e.target.value,10):void 0;(isNaN(t)||t<50)&&void 0!==t?l(e.target.value):(l(null),o(t))},onBlur:function(){null!==i&&l(null)},value:null!==i?i:n,min:50,step:"1"}))})),Fo={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};function Uo(e){var t=e.className,n=e.children,r=e.onResizeStart,o=e.onResize,c=e.onResizeStop,a=Object(pe.useState)(!1),i=Object(ke.a)(a,2),l=i[0],s=i[1];return Object(pe.createElement)(Ce.ResizableBox,{className:Oe()(t,{"is-resizing":l}),enable:Fo,onResizeStart:function(e,t,n){r(n.clientHeight),o(n.clientHeight)},onResize:function(e,t,n){o(n.clientHeight),l||s(!0)},onResizeStop:function(e,t,n){c(n.clientHeight),s(!1)},minHeight:50},n)}var Go=Object(Ee.compose)([Object(xe.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),Object(ue.withColors)({overlayColor:"background-color"}),Ce.withNotices,Ee.withInstanceId])((function(e){var t,n=e.attributes,r=e.setAttributes,o=e.isSelected,c=e.className,a=e.noticeUI,i=e.overlayColor,l=e.setOverlayColor,s=e.toggleSelection,u=e.noticeOperations,b=n.id,m=n.backgroundType,d=n.dimRatio,p=n.focalPoint,h=n.hasParallax,g=n.minHeight,f=n.url,O=Object(ue.__experimentalUseGradient)(),v=O.gradientClass,j=O.gradientValue,y=O.setGradient,w=xo(r),_=Object(pe.useRef)(),k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=Object(pe.useState)(!1),c=Object(ke.a)(o,2),a=c[0],i=c[1];return Object(pe.useEffect)((function(){e&&t<=50&&r.current&&Vo().getColorAsync(r.current,(function(e){i(e.isDark)}))}),[e,e&&t<=50&&r.current,i]),Object(pe.useEffect)((function(){if(t>50||!e){if(!n)return void i(!0);i(Io()(n).isDark())}}),[n,t>50||!e,i]),Object(pe.useEffect)((function(){e||n||i(!1)}),[!e&&!n,i]),a}(f,d,i.color,_),C=Object(pe.useState)(null),E=Object(ke.a)(C,2),x=E[0],S=E[1],P=u.removeAllNotices,T=u.createErrorNotice,B=Ao({},"image"===m?Co(f):{},{backgroundColor:i.color,minHeight:x||g});j&&!f&&(B.background=j),p&&(B.backgroundPosition="".concat(100*p.x,"% ").concat(100*p.y,"%"));var N=!!(f||i.color||j),z=Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,N&&Object(pe.createElement)(ue.MediaReplaceFlow,{mediaId:b,mediaURL:f,allowedTypes:Ho,accept:"image/*,video/*",onSelect:w})),Object(pe.createElement)(ue.InspectorControls,null,!!f&&Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Media settings")},"image"===m&&Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Fixed background"),checked:h,onChange:function(){r(Ao({hasParallax:!h},h?{}:{focalPoint:void 0}))}}),"image"===m&&!h&&Object(pe.createElement)(Ce.FocalPointPicker,{label:Object(de.__)("Focal point picker"),url:f,value:p,onChange:function(e){return r({focalPoint:e})}}),"video"===m&&Object(pe.createElement)("video",{autoPlay:!0,muted:!0,loop:!0,src:f}),Object(pe.createElement)(Ce.PanelRow,null,Object(pe.createElement)(Ce.Button,{isSecondary:!0,isSmall:!0,className:"block-library-cover__reset-button",onClick:function(){return r({url:void 0,id:void 0,backgroundType:void 0,dimRatio:void 0,focalPoint:void 0,hasParallax:void 0})}},Object(de.__)("Clear Media")))),N&&Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Dimensions")},Object(pe.createElement)(Do,{value:x||g,onChange:function(e){return r({minHeight:e})}})),Object(pe.createElement)(ue.__experimentalPanelColorGradientSettings,{title:Object(de.__)("Overlay"),initialOpen:!0,settings:[{colorValue:i.color,gradientValue:j,onColorChange:l,onGradientChange:y,label:Object(de.__)("Color")}]},!!f&&Object(pe.createElement)(Ce.RangeControl,{label:Object(de.__)("Background opacity"),value:d,onChange:function(e){return r({dimRatio:e})},min:0,max:100,step:10,required:!0})))));if(!N){var M=Object(pe.createElement)(ue.BlockIcon,{icon:_o}),I=Object(de.__)("Cover");return Object(pe.createElement)(pe.Fragment,null,z,Object(pe.createElement)(ue.MediaPlaceholder,{icon:M,className:c,labels:{title:I,instructions:Object(de.__)("Upload an image or video file, or pick one from your media library.")},onSelect:w,accept:"image/*,video/*",allowedTypes:Ho,notices:a,onError:function(e){P(),T(e)}},Object(pe.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(pe.createElement)(ue.ColorPalette,{disableCustomColors:!0,value:i.color,onChange:l,clearable:!1}))))}var R=Oe()(c,Eo(d),(t={"is-dark-theme":k,"has-background-dim":0!==d,"has-parallax":h},Object(le.a)(t,i.class,i.class),Object(le.a)(t,"has-background-gradient",j),Object(le.a)(t,v,!f&&v),t));return Object(pe.createElement)(pe.Fragment,null,z,Object(pe.createElement)(Uo,{className:Oe()("block-library-cover__resize-container",{"is-selected":o}),onResizeStart:function(){return s(!1)},onResize:S,onResizeStop:function(e){s(!0),r({minHeight:e}),S(null)}},Object(pe.createElement)("div",{"data-url":f,style:B,className:R},"image"===m&&Object(pe.createElement)("img",{ref:_,"aria-hidden":!0,alt:"",style:{display:"none"},src:f}),f&&j&&0!==d&&Object(pe.createElement)("span",{"aria-hidden":"true",className:Oe()("wp-block-cover__gradient-background",v),style:{background:j}}),"video"===m&&Object(pe.createElement)("video",{ref:_,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:f}),Object(pe.createElement)("div",{className:"wp-block-cover__inner-container"},Object(pe.createElement)(ue.InnerBlocks,{template:Lo})))))}));var Wo={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,n=e.url,r=e.align,o=e.id;return Object(be.createBlock)("core/cover",{title:t,url:n,align:r,id:o})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,n=e.src,r=e.align,o=e.id;return Object(be.createBlock)("core/cover",{title:t,url:n,align:r,id:o,backgroundType:"video"})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType,n=e.url,r=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return n?"image"===t:!(r||o||c||a)},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(be.createBlock)("core/image",{caption:t,url:n,align:r,id:o})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType,n=e.url,r=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return n?"video"===t:!(r||o||c||a)},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(be.createBlock)("core/video",{caption:t,src:n,id:o,align:r})}}]},qo={name:"core/cover",category:"common",attributes:{url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}}},Zo=qo.name,Ko={title:Object(de.__)("Cover"),description:Object(de.__)("Add an image or video with a text overlay — great for headers."),icon:_o,supports:{align:!0,html:!1},example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(de.__)("<strong>Snow Patrol</strong>"),align:"center"}}]},transforms:Wo,save:function(e){var t=e.attributes,n=t.backgroundType,r=t.gradient,o=t.customGradient,c=t.customOverlayColor,a=t.dimRatio,i=t.focalPoint,l=t.hasParallax,s=t.overlayColor,u=t.url,b=t.minHeight,m=Object(ue.getColorClassName)("background-color",s),d=Object(ue.__experimentalGetGradientClass)(r),p="image"===n?Co(u):{};m||(p.backgroundColor=c),i&&!l&&(p.backgroundPosition="".concat(Math.round(100*i.x),"% ").concat(Math.round(100*i.y),"%")),o&&!u&&(p.background=o),p.minHeight=b||void 0;var h=Oe()(Eo(a),m,Object(le.a)({"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":o},d,!u&&d));return Object(pe.createElement)("div",{className:h,style:p},u&&(r||o)&&0!==a&&Object(pe.createElement)("span",{"aria-hidden":"true",className:Oe()("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),"video"===n&&u&&Object(pe.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(pe.createElement)("div",{className:"wp-block-cover__inner-container"},Object(pe.createElement)(ue.InnerBlocks.Content,null)))},edit:Go,deprecated:Bo},$o=n(263),Qo=function(e){var t=e.blockSupportsResponsive,n=e.showEditButton,r=e.themeSupportsResponsive,o=e.allowResponsive,c=e.getResponsiveHelp,a=e.toggleResponsive,i=e.switchBackToURLInput;return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(Ce.ToolbarGroup,null,n&&Object(pe.createElement)(Ce.Button,{className:"components-toolbar__control",label:Object(de.__)("Edit URL"),icon:$o.a,onClick:i}))),r&&t&&Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Media settings"),className:"blocks-responsive"},Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Resize for smaller devices"),checked:o,help:c,onChange:a}))))},Jo=function(){return Object(pe.createElement)("div",{className:"wp-block-embed is-loading"},Object(pe.createElement)(Ce.Spinner,null),Object(pe.createElement)("p",null,Object(de.__)("Embedding…")))},Yo=function(e){var t=e.icon,n=e.label,r=e.value,o=e.onSubmit,c=e.onChange,a=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(pe.createElement)(Ce.Placeholder,{icon:Object(pe.createElement)(ue.BlockIcon,{icon:t,showColors:!0}),label:n,className:"wp-block-embed",instructions:Object(de.__)("Paste a link to the content you want to display on your site.")},Object(pe.createElement)("form",{onSubmit:o},Object(pe.createElement)("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:Object(de.__)("Enter URL to embed here…"),onChange:c}),Object(pe.createElement)(Ce.Button,{isPrimary:!0,type:"submit"},Object(de._x)("Embed","button label"))),Object(pe.createElement)("div",{className:"components-placeholder__learn-more"},Object(pe.createElement)(Ce.ExternalLink,{href:Object(de.__)("https://wordpress.org/support/article/embeds/")},Object(de.__)("Learn more about embeds"))),a&&Object(pe.createElement)("div",{className:"components-placeholder__error"},Object(pe.createElement)("div",{className:"components-placeholder__instructions"},Object(de.__)("Sorry, this content could not be embedded.")),Object(pe.createElement)(Ce.Button,{isSecondary:!0,onClick:l},Object(de._x)("Try again","button label"))," ",Object(pe.createElement)(Ce.Button,{isSecondary:!0,onClick:i},Object(de._x)("Convert to link","button label"))))},Xo=n(109),ec=window.FocusEvent,tc=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).checkFocus=e.checkFocus.bind(Object(qe.a)(e)),e.node=Object(pe.createRef)(),e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new ec("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html;return Object(pe.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:e}})}}]),t}(pe.Component),nc=Object(Ee.withGlobalEvents)({blur:"checkFocus"})(tc),rc=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).hideOverlay=e.hideOverlay.bind(Object(qe.a)(e)),e.state={interactive:!1},e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,n,r=this.props,o=r.preview,c=r.url,a=r.type,i=r.caption,l=r.onCaptionChange,s=r.isSelected,u=r.className,b=r.icon,m=r.label,d=o.scripts,p=this.state.interactive,h="photo"===a?(t=(e=o).thumbnail_url?e.thumbnail_url:e.url,n=Object(pe.createElement)("p",null,Object(pe.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object(pe.renderToString)(n)):o.html,g=Object(Xo.parse)(c).host.split("."),f=g.splice(g.length-2,g.length-1).join("."),O=Object(me.includes)(pt,f),v=Object(de.sprintf)(Object(de.__)("Embedded content from %s"),f),j=ft()(a,u,"wp-block-embed__wrapper"),y="wp-embed"===a?Object(pe.createElement)(nc,{html:h}):Object(pe.createElement)("div",{className:"wp-block-embed__wrapper"},Object(pe.createElement)(Ce.SandBox,{html:h,scripts:d,title:v,type:j,onFocus:this.hideOverlay}),!p&&Object(pe.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(pe.createElement)("figure",{className:ft()(u,"wp-block-embed",{"is-type-video":"video"===a})},O?Object(pe.createElement)(Ce.Placeholder,{icon:Object(pe.createElement)(ue.BlockIcon,{icon:b,showColors:!0}),label:m},Object(pe.createElement)("p",{className:"components-placeholder__error"},Object(pe.createElement)("a",{href:c},c)),Object(pe.createElement)("p",{className:"components-placeholder__error"},Object(de.sprintf)(Object(de.__)("Embedded content from %s can't be previewed in the editor."),f))):y,(!ue.RichText.isEmpty(i)||s)&&Object(pe.createElement)(ue.RichText,{tagName:"figcaption",placeholder:Object(de.__)("Write caption…"),value:i,onChange:l,inlineToolbar:!0}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(pe.Component);function oc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oc(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ac(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ic(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ac(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ac(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lc={url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0}};function sc(e){var t=e.title,n=e.description,r=e.icon,o=e.category,c=void 0===o?"embed":o,a=e.transforms,i=e.keywords,l=void 0===i?[]:i,s=e.supports,u=void 0===s?{}:s,b=e.responsive,m=void 0===b||b,d=n||Object(de.__)("Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube."),p=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(function(r){function o(){var e;return Object(Fe.a)(this,o),(e=Object(Ge.a)(this,Object(We.a)(o).apply(this,arguments))).switchBackToURLInput=e.switchBackToURLInput.bind(Object(qe.a)(e)),e.setUrl=e.setUrl.bind(Object(qe.a)(e)),e.getMergedAttributes=e.getMergedAttributes.bind(Object(qe.a)(e)),e.setMergedAttributes=e.setMergedAttributes.bind(Object(qe.a)(e)),e.getResponsiveHelp=e.getResponsiveHelp.bind(Object(qe.a)(e)),e.toggleResponsive=e.toggleResponsive.bind(Object(qe.a)(e)),e.handleIncomingPreview=e.handleIncomingPreview.bind(Object(qe.a)(e)),e.state={editingURL:!1,url:e.props.attributes.url},e.props.preview&&e.handleIncomingPreview(),e}return Object(Ze.a)(o,r),Object(Ue.a)(o,[{key:"handleIncomingPreview",value:function(){if(this.setMergedAttributes(),this.props.onReplace){var e=_t(this.props,this.getMergedAttributes());e&&this.props.onReplace(e)}}},{key:"componentDidUpdate",value:function(e){var t=void 0!==this.props.preview,n=void 0!==e.preview,r=e.preview&&this.props.preview&&this.props.preview.html!==e.preview.html||t&&!n,o=this.props.attributes.url!==e.attributes.url;if(r||o){if(this.props.cannotEmbed)return void(this.props.fetching||this.resubmitWithoutTrailingSlash());this.handleIncomingPreview()}}},{key:"resubmitWithoutTrailingSlash",value:function(){this.setState((function(e){return{url:e.url.replace(/\/$/,"")}}),this.setUrl)}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;this.setState({editingURL:!1}),n({url:t})}},{key:"getMergedAttributes",value:function(){var t=this.props.preview,r=this.props.attributes,o=r.className,c=r.allowResponsive;return cc({},this.props.attributes,{},Et(t,e,o,n,c))}},{key:"setMergedAttributes",value:function(){(0,this.props.setAttributes)(this.getMergedAttributes())}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"getResponsiveHelp",value:function(e){return e?Object(de.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(de.__)("This embed may not preserve its aspect ratio when the browser is resized.")}},{key:"toggleResponsive",value:function(){var e=this.props.attributes,t=e.allowResponsive,r=e.className,o=this.props.preview.html,c=!t;this.props.setAttributes({allowResponsive:c,className:kt(o,r,n&&c)})}},{key:"render",value:function(){var r=this,o=this.state,c=o.url,a=o.editingURL,i=this.props,l=i.fetching,s=i.setAttributes,u=i.isSelected,b=i.preview,m=i.cannotEmbed,d=i.themeSupportsResponsive,p=i.tryAgain;if(l)return Object(pe.createElement)(Jo,null);var h=Object(de.sprintf)(Object(de.__)("%s URL"),e);if(!b||m||a)return Object(pe.createElement)(Yo,{icon:t,label:h,onSubmit:this.setUrl,value:c,cannotEmbed:m,onChange:function(e){return r.setState({url:e.target.value})},fallback:function(){return Ct(c,r.props.onReplace)},tryAgain:p});var g=this.getMergedAttributes(),f=g.caption,O=g.type,v=g.allowResponsive,j=Oe()(g.className,this.props.className);return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(Qo,{showEditButton:b&&!m,themeSupportsResponsive:d,blockSupportsResponsive:n,allowResponsive:v,getResponsiveHelp:this.getResponsiveHelp,toggleResponsive:this.toggleResponsive,switchBackToURLInput:this.switchBackToURLInput}),Object(pe.createElement)(rc,{preview:b,className:j,url:c,type:O,caption:f,onCaptionChange:function(e){return s({caption:e})},isSelected:u,icon:t,label:h}))}}]),o}(pe.Component))}(t,r,m);return{title:t,description:d,icon:r,category:c,keywords:l,attributes:lc,supports:ic({align:!0},u),transforms:a,edit:Object(Ee.compose)(Object(xe.withSelect)((function(e,t){var n=t.attributes.url,r=e("core"),o=r.getEmbedPreview,c=r.isPreviewEmbedFallback,a=r.isRequestingEmbedPreview,i=r.getThemeSupports,l=void 0!==n&&o(n),s=void 0!==n&&c(n),u=void 0!==n&&a(n),b=i(),m=!!l&&void 0===l.type&&!1===l.html,d=!!l&&l.data&&404===l.data.status,p=!!l&&!m&&!d,h=void 0!==n&&(!p||s);return{preview:p?l:void 0,fetching:u,themeSupportsResponsive:b["responsive-embeds"],cannotEmbed:h}})),Object(xe.withDispatch)((function(e,t){var n=t.attributes.url,r=e("core/data");return{tryAgain:function(){r.invalidateResolution("core","getEmbedPreview",[n])}}})))(p),save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,c=n.type,a=n.providerNameSlug;if(!r)return null;var i=ft()("wp-block-embed",(t={},Object(le.a)(t,"is-type-".concat(c),c),Object(le.a)(t,"is-provider-".concat(a),a),t));return Object(pe.createElement)("figure",{className:i},Object(pe.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(r,"\n")),!ue.RichText.isEmpty(o)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:o}))},deprecated:[{attributes:lc,save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,c=n.type,a=n.providerNameSlug;if(!r)return null;var i=ft()("wp-block-embed",(t={},Object(le.a)(t,"is-type-".concat(c),c),Object(le.a)(t,"is-provider-".concat(a),a),t));return Object(pe.createElement)("figure",{className:i},"\n".concat(r,"\n"),!ue.RichText.isEmpty(o)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:o}))}}]}}function uc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uc(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mc="core/embed",dc=sc({title:Object(de._x)("Embed","block title"),description:Object(de.__)("Embed videos, images, tweets, audio, and other content from external sources."),icon:Je,responsive:!1,transforms:{from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)},transform:function(e){return Object(be.createBlock)("core/embed",{url:e.textContent.trim()})}}]}}),pc=mt.map((function(e){return bc({},e,{settings:sc(e.settings)})})),hc=dt.map((function(e){return bc({},e,{settings:sc(e.settings)})})),gc=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));function fc(e){var t=e.hrefs,n=e.openInNewWindow,r=e.showDownloadButton,o=e.changeLinkDestinationOption,c=e.changeOpenInNewWindow,a=e.changeShowDownloadButton,i=t.href,l=t.textLinkHref,s=t.attachmentPage,u=[{value:i,label:Object(de.__)("URL")}];return s&&(u=[{value:i,label:Object(de.__)("Media file")},{value:s,label:Object(de.__)("Attachment page")}]),Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Text link settings")},Object(pe.createElement)(Ce.SelectControl,{label:Object(de.__)("Link to"),value:l,options:u,onChange:o}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Open in new tab"),checked:n,onChange:c})),Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Download button settings")},Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Show download button"),checked:r,onChange:a}))))}var Oc=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).onSelectFile=e.onSelectFile.bind(Object(qe.a)(e)),e.confirmCopyURL=e.confirmCopyURL.bind(Object(qe.a)(e)),e.resetCopyConfirmation=e.resetCopyConfirmation.bind(Object(qe.a)(e)),e.changeLinkDestinationOption=e.changeLinkDestinationOption.bind(Object(qe.a)(e)),e.changeOpenInNewWindow=e.changeOpenInNewWindow.bind(Object(qe.a)(e)),e.changeShowDownloadButton=e.changeShowDownloadButton.bind(Object(qe.a)(e)),e.onUploadError=e.onUploadError.bind(Object(qe.a)(e)),e.state={hasError:!1,showCopyConfirmation:!1},e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,c=t.setAttributes,a=n.downloadButtonText,i=n.href;Object(Ke.isBlobURL)(i)&&(r({filesList:[Object(Ke.getBlobByURL)(i)],onFileChange:function(t){var n=Object(ke.a)(t,1)[0];return e.onSelectFile(n)},onError:function(t){e.setState({hasError:!0}),o.createErrorNotice(t)}}),Object(Ke.revokeBlobURL)(i));void 0===a&&c({downloadButtonText:Object(de._x)("Download","button label")})}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id}))}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"confirmCopyURL",value:function(){this.setState({showCopyConfirmation:!0})}},{key:"resetCopyConfirmation",value:function(){this.setState({showCopyConfirmation:!1})}},{key:"changeLinkDestinationOption",value:function(e){this.props.setAttributes({textLinkHref:e})}},{key:"changeOpenInNewWindow",value:function(e){this.props.setAttributes({textLinkTarget:!!e&&"_blank"})}},{key:"changeShowDownloadButton",value:function(e){this.props.setAttributes({showDownloadButton:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.isSelected,o=t.attributes,c=t.setAttributes,a=t.noticeUI,i=t.media,l=o.id,s=o.fileName,u=o.href,b=o.textLinkHref,m=o.textLinkTarget,d=o.showDownloadButton,p=o.downloadButtonText,h=this.state,g=h.hasError,f=h.showCopyConfirmation,O=i&&i.link;if(!u||g)return Object(pe.createElement)(ue.MediaPlaceholder,{icon:Object(pe.createElement)(ue.BlockIcon,{icon:gc}),labels:{title:Object(de.__)("File"),instructions:Object(de.__)("Upload a file or pick one from your media library.")},onSelect:this.onSelectFile,notices:a,onError:this.onUploadError,accept:"*"});var v=Oe()(n,{"is-transient":Object(Ke.isBlobURL)(u)});return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(fc,Object(Le.a)({hrefs:{href:u,textLinkHref:b,attachmentPage:O}},{openInNewWindow:!!m,showDownloadButton:d,changeLinkDestinationOption:this.changeLinkDestinationOption,changeOpenInNewWindow:this.changeOpenInNewWindow,changeShowDownloadButton:this.changeShowDownloadButton})),Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ue.MediaReplaceFlow,{mediaId:l,mediaURL:u,accept:"*",onSelect:this.onSelectFile,onError:this.onUploadError})),Object(pe.createElement)(Ce.Animate,{type:Object(Ke.isBlobURL)(u)?"loading":null},(function(t){var n=t.className;return Object(pe.createElement)("div",{className:Oe()(v,n)},Object(pe.createElement)("div",{className:"wp-block-file__content-wrapper"},Object(pe.createElement)("div",{className:"wp-block-file__textlink"},Object(pe.createElement)(ue.RichText,{tagName:"div",value:s,placeholder:Object(de.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:function(e){return c({fileName:e})}})),d&&Object(pe.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},Object(pe.createElement)(ue.RichText,{tagName:"div",className:"wp-block-file__button",value:p,withoutInteractiveFormatting:!0,placeholder:Object(de.__)("Add text…"),onChange:function(e){return c({downloadButtonText:e})}}))),r&&Object(pe.createElement)(Ce.ClipboardButton,{isSecondary:!0,text:u,className:"wp-block-file__copy-url-button",onCopy:e.confirmCopyURL,onFinishCopy:e.resetCopyConfirmation,disabled:Object(Ke.isBlobURL)(u)},f?Object(de.__)("Copied!"):Object(de.__)("Copy URL")))})))}}]),t}(pe.Component),vc=Object(Ee.compose)([Object(xe.withSelect)((function(e,t){var n=e("core").getMedia,r=(0,e("core/block-editor").getSettings)().mediaUpload,o=t.attributes.id;return{media:void 0===o?void 0:n(o),mediaUpload:r}})),Ce.withNotices])(Oc);var jc={from:[{type:"files",isMatch:function(e){return e.length>0},priority:15,transform:function(e){var t=[];return e.forEach((function(e){var n=Object(Ke.createBlobURL)(e);t.push(Object(be.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(be.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/video"],transform:function(e){return Object(be.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id})}},{type:"block",blocks:["core/image"],transform:function(e){return Object(be.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(xe.select)("core").getMedia)(t);return!!n&&Object(me.includes)(n.mime_type,"audio")},transform:function(e){return Object(be.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(xe.select)("core").getMedia)(t);return!!n&&Object(me.includes)(n.mime_type,"video")},transform:function(e){return Object(be.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(xe.select)("core").getMedia)(t);return!!n&&Object(me.includes)(n.mime_type,"image")},transform:function(e){return Object(be.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id})}}]},yc={name:"core/file",category:"common",attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"}}},wc=yc.name,_c={title:Object(de.__)("File"),description:Object(de.__)("Add a link to a downloadable file."),icon:gc,keywords:[Object(de.__)("document"),Object(de.__)("pdf"),Object(de.__)("download")],supports:{align:!0},transforms:jc,edit:vc,save:function(e){var t=e.attributes,n=t.href,r=t.fileName,o=t.textLinkHref,c=t.textLinkTarget,a=t.showDownloadButton,i=t.downloadButtonText;return n&&Object(pe.createElement)("div",null,!ue.RichText.isEmpty(r)&&Object(pe.createElement)("a",{href:o,target:c,rel:!!c&&"noreferrer noopener"},Object(pe.createElement)(ue.RichText.Content,{value:r})),a&&Object(pe.createElement)("a",{href:n,className:"wp-block-file__button",download:!0},Object(pe.createElement)(ue.RichText.Content,{value:i})))}},kc=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M4.5,11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5V11z M7,10.5h1.5V15H10v-4.5h1.5V9H7V10.5z M14.5,10l-1-1H12v6h1.5v-3.9 l1,1l1-1V15H17V9h-1.5L14.5,10z M19.5,13.5V9H18v6h5v-1.5H19.5z"})),Cc=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).state={isPreview:!1,styles:[]},e.switchToHTML=e.switchToHTML.bind(Object(qe.a)(e)),e.switchToPreview=e.switchToPreview.bind(Object(qe.a)(e)),e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.styles;this.setState({styles:["\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"].concat(Object(ie.a)(Object(ue.transformStyles)(e)))})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"switchToHTML",value:function(){this.setState({isPreview:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=this.state,c=o.isPreview,a=o.styles;return Object(pe.createElement)("div",{className:"wp-block-html"},Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(Ce.ToolbarGroup,null,Object(pe.createElement)(Ce.Button,{className:"components-tab-button",isPressed:!c,onClick:this.switchToHTML},Object(pe.createElement)("span",null,"HTML")),Object(pe.createElement)(Ce.Button,{className:"components-tab-button",isPressed:c,onClick:this.switchToPreview},Object(pe.createElement)("span",null,Object(de.__)("Preview"))))),Object(pe.createElement)(Ce.Disabled.Consumer,null,(function(t){return c||t?Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(Ce.SandBox,{html:n.content,styles:a}),!e.props.isSelected&&Object(pe.createElement)("div",{className:"block-library-html__preview-overlay"})):Object(pe.createElement)(ue.PlainText,{value:n.content,onChange:function(e){return r({content:e})},placeholder:Object(de.__)("Write HTML…"),"aria-label":Object(de.__)("HTML")})})))}}]),t}(pe.Component),Ec=Object(xe.withSelect)((function(e){return{styles:(0,e("core/block-editor").getSettings)().styles}}))(Cc);var xc={from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("iframe")},schema:function(e){return{figure:{require:["iframe"],children:{iframe:{attributes:["src","allowfullscreen","height","width"]},figcaption:{children:e.phrasingContentSchema}}}}}}]},Sc={name:"core/html",category:"formatting",attributes:{content:{type:"string",source:"html"}}},Pc=Sc.name,Tc={title:Object(de.__)("Custom HTML"),description:Object(de.__)("Add custom HTML code and preview it as you edit."),icon:kc,keywords:[Object(de.__)("embed")],example:{attributes:{content:"<marquee>"+Object(de.__)("Welcome to the wonderful world of blocks…")+"</marquee>"}},supports:{customClassName:!1,className:!1,html:!1},transforms:xc,edit:Ec,save:function(e){var t=e.attributes;return Object(pe.createElement)(pe.RawHTML,null,t.content)}},Bc=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(he.Path,{d:"M4 17h7V6H4v11zm9-10v1.5h7V7h-7zm0 5.5h7V11h-7v1.5zm0 4h7V15h-7v1.5z"})),Nc=Object(pe.createElement)(Ce.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.Path,{d:"M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z"}),Object(pe.createElement)(Ce.Path,{d:"M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z"}),Object(pe.createElement)(Ce.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),zc=["image","video"];function Mc(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}var Ic=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).onUploadError=e.onUploadError.bind(Object(qe.a)(e)),e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"renderToolbarEditButton",value:function(){var e=this.props,t=e.onSelectMedia,n=e.mediaUrl,r=e.mediaId;return Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ue.MediaReplaceFlow,{mediaId:r,mediaURL:n,allowedTypes:zc,accept:"image/*,video/*",onSelect:t}))}},{key:"renderImage",value:function(){var e=this.props,t=e.mediaAlt,n=e.mediaUrl,r=e.className,o=e.imageFill,c=e.focalPoint,a=o?Mc(n,c):{};return Object(pe.createElement)(pe.Fragment,null,this.renderToolbarEditButton(),Object(pe.createElement)("figure",{className:r,style:a},Object(pe.createElement)("img",{src:n,alt:t})))}},{key:"renderVideo",value:function(){var e=this.props,t=e.mediaUrl,n=e.className;return Object(pe.createElement)(pe.Fragment,null,this.renderToolbarEditButton(),Object(pe.createElement)("figure",{className:n},Object(pe.createElement)("video",{controls:!0,src:t})))}},{key:"renderPlaceholder",value:function(){var e=this.props,t=e.onSelectMedia,n=e.className,r=e.noticeUI;return Object(pe.createElement)(ue.MediaPlaceholder,{icon:Object(pe.createElement)(ue.BlockIcon,{icon:Nc}),labels:{title:Object(de.__)("Media area")},className:n,onSelect:t,accept:"image/*,video/*",allowedTypes:zc,notices:r,onError:this.onUploadError})}},{key:"render",value:function(){var e=this.props,t=e.mediaPosition,n=e.mediaUrl,r=e.mediaType,o=e.mediaWidth,c=e.commitWidthChange,a=e.onWidthChange,i=e.toggleSelection;if(r&&n){var l={right:"left"===t,left:"right"===t},s=null;switch(r){case"image":s=this.renderImage();break;case"video":s=this.renderVideo()}return Object(pe.createElement)(Ce.ResizableBox,{className:"editor-media-container__resizer",size:{width:o+"%"},minWidth:"10%",maxWidth:"100%",enable:l,onResizeStart:function(){i(!1)},onResize:function(e,t,n){a(parseInt(n.style.width))},onResizeStop:function(e,t,n){i(!0),c(parseInt(n.style.width))},axis:"x"},s)}return this.renderPlaceholder()}}]),t}(pe.Component),Rc=Object(Ee.compose)([Object(xe.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),Ce.withNotices])(Ic);function Ac(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Hc={align:{type:"string",default:"wide"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1}},Lc=[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ac(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ac(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Hc,{verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}}),save:function(e){var t,n,r=e.attributes,o=r.backgroundColor,c=r.customBackgroundColor,a=r.isStackedOnMobile,i=r.mediaAlt,l=r.mediaPosition,s=r.mediaType,u=r.mediaUrl,b=r.mediaWidth,m=r.mediaId,d=r.verticalAlignment,p=r.imageFill,h=r.focalPoint,g={image:function(){return Object(pe.createElement)("img",{src:u,alt:i,className:m&&"image"===s?"wp-image-".concat(m):null})},video:function(){return Object(pe.createElement)("video",{controls:!0,src:u})}},f=Object(ue.getColorClassName)("background-color",o),O=Oe()((t={"has-media-on-the-right":"right"===l},Object(le.a)(t,f,f),Object(le.a)(t,"is-stacked-on-mobile",a),Object(le.a)(t,"is-vertically-aligned-".concat(d),d),Object(le.a)(t,"is-image-fill",p),t)),v=p?Mc(u,h):{};50!==b&&(n="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var j={backgroundColor:f?void 0:c,gridTemplateColumns:n};return Object(pe.createElement)("div",{className:O,style:j},Object(pe.createElement)("figure",{className:"wp-block-media-text__media",style:v},(g[s]||me.noop)()),Object(pe.createElement)("div",{className:"wp-block-media-text__content"},Object(pe.createElement)(ue.InnerBlocks.Content,null)))}},{attributes:Hc,save:function(e){var t,n,r=e.attributes,o=r.backgroundColor,c=r.customBackgroundColor,a=r.isStackedOnMobile,i=r.mediaAlt,l=r.mediaPosition,s=r.mediaType,u=r.mediaUrl,b=r.mediaWidth,m={image:function(){return Object(pe.createElement)("img",{src:u,alt:i})},video:function(){return Object(pe.createElement)("video",{controls:!0,src:u})}},d=Object(ue.getColorClassName)("background-color",o),p=Oe()((t={"has-media-on-the-right":"right"===l},Object(le.a)(t,d,d),Object(le.a)(t,"is-stacked-on-mobile",a),t));50!==b&&(n="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var h={backgroundColor:d?void 0:c,gridTemplateColumns:n};return Object(pe.createElement)("div",{className:p,style:h},Object(pe.createElement)("figure",{className:"wp-block-media-text__media"},(m[s]||me.noop)()),Object(pe.createElement)("div",{className:"wp-block-media-text__content"},Object(pe.createElement)(ue.InnerBlocks.Content,null)))}}],Vc=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(he.Path,{d:"M4 18h6V6H4v12zm9-10v1.5h7V8h-7zm0 7.5h7V14h-7v1.5z"})),Dc=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(he.Path,{d:"M14 6v12h6V6h-6zM4 9.5h7V8H4v1.5zm0 6h7V14H4v1.5z"})),Fc=[["core/paragraph",{fontSize:"large",placeholder:Object(de._x)("Content…","content placeholder")}]],Uc=function(e){return Math.max(15,Math.min(e,85))},Gc=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).onSelectMedia=e.onSelectMedia.bind(Object(qe.a)(e)),e.onWidthChange=e.onWidthChange.bind(Object(qe.a)(e)),e.commitWidthChange=e.commitWidthChange.bind(Object(qe.a)(e)),e.state={mediaWidth:null},e.onSetHref=e.onSetHref.bind(Object(qe.a)(e)),e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"onSelectMedia",value:function(e){var t,n,r=this.props.setAttributes,o=this.props.attributes,c=o.linkDestination,a=o.href;"image"===(t=e.media_type?"image"===e.media_type?"image":"video":e.type)&&(n=Object(me.get)(e,["sizes","large","url"])||Object(me.get)(e,["media_details","sizes","large","source_url"]));var i=a;"media"===c&&(i=e.url),"attachment"===c&&(i=e.link),r({mediaAlt:e.alt,mediaId:e.id,mediaType:t,mediaUrl:n||e.url,mediaLink:e.link||void 0,href:i,focalPoint:void 0})}},{key:"onWidthChange",value:function(e){this.setState({mediaWidth:Uc(e)})}},{key:"onSetHref",value:function(e){this.props.setAttributes(e)}},{key:"commitWidthChange",value:function(e){(0,this.props.setAttributes)({mediaWidth:Uc(e)}),this.setState({mediaWidth:null})}},{key:"renderMediaArea",value:function(){var e=this.props.attributes,t=e.mediaAlt,n=e.mediaId,r=e.mediaPosition,o=e.mediaType,c=e.mediaUrl,a=e.mediaWidth,i=e.imageFill,l=e.focalPoint;return Object(pe.createElement)(Rc,Object(Le.a)({className:"wp-block-media-text__media",onSelectMedia:this.onSelectMedia,onWidthChange:this.onWidthChange,commitWidthChange:this.commitWidthChange},{mediaAlt:t,mediaId:n,mediaType:o,mediaUrl:c,mediaPosition:r,mediaWidth:a,imageFill:i,focalPoint:l}))}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=t.className,o=t.backgroundColor,c=t.isSelected,a=t.setAttributes,i=t.setBackgroundColor,l=t.image,s=n.isStackedOnMobile,u=n.mediaAlt,b=n.mediaPosition,m=n.mediaType,d=n.mediaWidth,p=n.verticalAlignment,h=n.mediaUrl,g=n.imageFill,f=n.focalPoint,O=n.rel,v=n.href,j=n.linkTarget,y=n.linkClass,w=n.linkDestination,_=this.state.mediaWidth,k=Oe()(r,(e={"has-media-on-the-right":"right"===b,"is-selected":c,"has-background":o.class||o.color},Object(le.a)(e,o.class,o.class),Object(le.a)(e,"is-stacked-on-mobile",s),Object(le.a)(e,"is-vertically-aligned-".concat(p),p),Object(le.a)(e,"is-image-fill",g),e)),C="".concat(_||d,"%"),E="right"===b?"1fr ".concat(C):"".concat(C," 1fr"),x={gridTemplateColumns:E,msGridColumns:E,backgroundColor:o.color},S=[{value:o.color,onChange:i,label:Object(de.__)("Background color")}],P=[{icon:Vc,title:Object(de.__)("Show media on left"),isActive:"left"===b,onClick:function(){return a({mediaPosition:"left"})}},{icon:Dc,title:Object(de.__)("Show media on right"),isActive:"right"===b,onClick:function(){return a({mediaPosition:"right"})}}],T=Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Media & Text settings")},Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Stack on mobile"),checked:s,onChange:function(){return a({isStackedOnMobile:!s})}}),"image"===m&&Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Crop image to fill entire column"),checked:g,onChange:function(){return a({imageFill:!g})}}),g&&Object(pe.createElement)(Ce.FocalPointPicker,{label:Object(de.__)("Focal point picker"),url:h,value:f,onChange:function(e){return a({focalPoint:e})}}),"image"===m&&Object(pe.createElement)(Ce.TextareaControl,{label:Object(de.__)("Alt text (alternative text)"),value:u,onChange:function(e){a({mediaAlt:e})},help:Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(Ce.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(de.__)("Describe the purpose of the image")),Object(de.__)("Leave empty if the image is purely decorative."))}));return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.InspectorControls,null,T,Object(pe.createElement)(ue.PanelColorSettings,{title:Object(de.__)("Color settings"),initialOpen:!1,colorSettings:S})),Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(Ce.ToolbarGroup,{controls:P}),Object(pe.createElement)(ue.BlockVerticalAlignmentToolbar,{onChange:function(e){a({verticalAlignment:e})},value:p}),"image"===m&&Object(pe.createElement)(Ce.ToolbarGroup,null,Object(pe.createElement)(ue.__experimentalImageURLInputUI,{url:v||"",onChangeUrl:this.onSetHref,linkDestination:w,mediaType:m,mediaUrl:l&&l.source_url,mediaLink:l&&l.link,linkTarget:j,linkClass:y,rel:O}))),Object(pe.createElement)("div",{className:k,style:x},this.renderMediaArea(),Object(pe.createElement)(ue.InnerBlocks,{template:Fc,templateInsertUpdatesSelection:!1})))}}]),t}(pe.Component),Wc=Object(Ee.compose)([Object(ue.withColors)("backgroundColor"),Object(xe.withSelect)((function(e,t){var n=e("core").getMedia,r=t.attributes.mediaId,o=t.isSelected;return{image:r&&o?n(r):null}}))])(Gc);var qc={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.alt,n=e.url,r=e.id;return Object(be.createBlock)("core/media-text",{mediaAlt:t,mediaId:r,mediaUrl:n,mediaType:"image"})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.src,n=e.id;return Object(be.createBlock)("core/media-text",{mediaId:n,mediaUrl:t,mediaType:"video"})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"image"===t},transform:function(e){var t=e.mediaAlt,n=e.mediaId,r=e.mediaUrl;return Object(be.createBlock)("core/image",{alt:t,id:n,url:r})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.mediaType;return!e.mediaUrl||"video"===t},transform:function(e){var t=e.mediaId,n=e.mediaUrl;return Object(be.createBlock)("core/video",{id:t,src:n})}}]},Zc={name:"core/media-text",category:"layout",attributes:{align:{type:"string",default:"wide"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}}},Kc=Zc.name,$c={title:Object(de.__)("Media & Text"),description:Object(de.__)("Set media and words side-by-side for a richer layout."),icon:Bc,keywords:[Object(de.__)("image"),Object(de.__)("video")],supports:{align:["wide","full"],html:!1},example:{attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:Object(de.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(de.__)("— Kobayashi Issa (一茶)")}}]},transforms:qc,edit:Wc,save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.customBackgroundColor,c=n.isStackedOnMobile,a=n.mediaAlt,i=n.mediaPosition,l=n.mediaType,s=n.mediaUrl,u=n.mediaWidth,b=n.mediaId,m=n.verticalAlignment,d=n.imageFill,p=n.focalPoint,h=n.linkClass,g=n.href,f=n.linkTarget,O=n.rel,v=Object(me.isEmpty)(O)?void 0:O,j=Object(pe.createElement)("img",{src:s,alt:a,className:b&&"image"===l?"wp-image-".concat(b):null});g&&(j=Object(pe.createElement)("a",{className:h,href:g,target:f,rel:v},j));var y,w={image:function(){return j},video:function(){return Object(pe.createElement)("video",{controls:!0,src:s})}},_=Object(ue.getColorClassName)("background-color",r),k=Oe()((t={"has-media-on-the-right":"right"===i,"has-background":_||o},Object(le.a)(t,_,_),Object(le.a)(t,"is-stacked-on-mobile",c),Object(le.a)(t,"is-vertically-aligned-".concat(m),m),Object(le.a)(t,"is-image-fill",d),t)),C=d?Mc(s,p):{};50!==u&&(y="right"===i?"auto ".concat(u,"%"):"".concat(u,"% auto"));var E={backgroundColor:_?void 0:o,gridTemplateColumns:y};return Object(pe.createElement)("div",{className:k,style:E},Object(pe.createElement)("figure",{className:"wp-block-media-text__media",style:C},(w[l]||me.noop)()),Object(pe.createElement)("div",{className:"wp-block-media-text__content"},Object(pe.createElement)(ue.InnerBlocks.Content,null)))},deprecated:Lc},Qc=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})),Jc=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(pe.createElement)(he.Path,{d:"M17 7V5H3v2h14zm0 4V9H3v2h14zm0 4v-2H3v2h14z"}));function Yc(e){var t=e.clientId,n=Object(xe.useSelect)((function(e){var n=e("core/block-editor"),r=n.getSelectedBlockClientId;return{block:(0,n.getBlock)(t),selectedBlockClientId:r()}}),[t]),r=n.block,o=n.selectedBlockClientId,c=Object(xe.useDispatch)("core/block-editor").selectBlock;return Object(pe.createElement)(ue.__experimentalBlockNavigationList,{blocks:[r],selectedBlockClientId:o,selectBlock:c,showNestedBlocks:!0,showAppender:!0})}var Xc=Object(pe.createElement)(Ce.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(pe.createElement)(Ce.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));var ea=function(){return Object(pe.createElement)(Ce.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(pe.createElement)(Ce.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"}))},ta=function(e){var t=e.style,n=e.className;return Object(pe.createElement)("div",{className:"block-library-colors-selector__icon-container"},Object(pe.createElement)("div",{className:"".concat(n," block-library-colors-selector__state-selection"),style:t},Object(pe.createElement)(ea,null)))},na=function(e){var t,n,r,o=e.children,c=Object(ln.a)(e,["children"]);return Object(pe.createElement)(Ce.Dropdown,{position:"bottom right",className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:(t=c,n=t.TextColor,r=t.BackgroundColor,function(e){var t=e.onToggle,o=e.isOpen;return Object(pe.createElement)(Ce.ToolbarGroup,null,Object(pe.createElement)(Ce.Button,{className:"components-toolbar__control block-library-colors-selector__toggle",label:Object(de.__)("Open Colors Selector"),onClick:t,onKeyDown:function(e){o||e.keyCode!==kn.DOWN||(e.preventDefault(),e.stopPropagation(),t())},icon:Object(pe.createElement)(r,null,Object(pe.createElement)(n,null,Object(pe.createElement)(ta,null)))}))}),renderContent:function(){return o}})},ra=Object(pe.createElement)(Ce.SVG,{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.Path,{d:"M11 16v-3h10v-2H11V8l-4 4 4 4zM5 4H3v16h2V4z"})),oa=Object(pe.createElement)(Ce.SVG,{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.Path,{d:"M5 8v3H1v2h4v3l4-4-4-4zm14 8v-3h4v-2h-4V8l-4 4 4 4zM13 4h-2v16h2V4z"})),ca=Object(pe.createElement)(Ce.SVG,{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.Path,{d:"M13 8v3H3v2h10v3l4-4-4-4zm8-4h-2v16h2V4z"}));var aa=Object(Ee.compose)([Object(ue.withFontSizes)("fontSize"),Object(xe.withSelect)((function(e,t){var n,r,o=t.clientId,c={parent:0,order:"asc",orderby:"id"},a=["core","getEntityRecords",["postType","page",c]];return{hasExistingNavItems:!!e("core/block-editor").getBlocks(o).length,pages:e("core").getEntityRecords("postType","page",c),isRequestingPages:(n=e("core/data")).isResolving.apply(n,a),hasResolvedPages:(r=e("core/data")).hasFinishedResolution.apply(r,a)}})),Object(xe.withDispatch)((function(e,t){var n=t.clientId;return{updateNavItemBlocks:function(t){e("core/block-editor").replaceInnerBlocks(n,t)}}}))])((function(e){var t,n=e.attributes,r=e.clientId,o=e.fontSize,c=e.hasExistingNavItems,a=e.hasResolvedPages,i=e.isRequestingPages,l=e.pages,s=e.setAttributes,u=e.setFontSize,b=e.updateNavItemBlocks,m=e.className,d=Object(pe.useRef)(),p=Object(xe.useDispatch)("core/block-editor").selectBlock,h=Object(ue.__experimentalUseColors)([{name:"textColor",property:"color"},{name:"backgroundColor",className:"has-background"}],{contrastCheckers:[{backgroundColor:!0,textColor:!0,fontSize:o.size}],colorDetector:{targetRef:d},colorPanelProps:{initialOpen:!0}},[o.size]),g=h.TextColor,f=h.BackgroundColor,O=h.InspectorControlsColorPanel,v=h.ColorPanel,j=function(e){var t=Object(pe.useState)(!1),n=Object(ke.a)(t,2),r=n[0],o=n[1];return{navigatorToolbarButton:Object(pe.createElement)(Ce.Button,{className:"components-toolbar__control",label:Object(de.__)("Open block navigator"),onClick:function(){return o(!0)},icon:Xc}),navigatorModal:r&&Object(pe.createElement)(Ce.Modal,{title:Object(de.__)("Block Navigator"),closeLabel:Object(de.__)("Close"),onRequestClose:function(){o(!1)}},Object(pe.createElement)(Yc,{clientId:e}))}}(r),y=j.navigatorToolbarButton,_=j.navigatorModal,k=Object(pe.useMemo)((function(){return l?l.map((function(e){var t=e.title,n=e.type,r=e.link,o=e.id;return Object(be.createBlock)("core/navigation-link",{type:n,id:o,url:r,label:t.rendered?Object(me.escape)(t.rendered):Object(de.__)("(no title)"),opensInNewTab:!1})})):null}),[l]);function C(e){return function(){var t=n.itemsJustification===e?void 0:e;s({itemsJustification:t})}}var E=a&&l&&l.length,x=Oe()(m,(t={},Object(le.a)(t,"items-justification-".concat(n.itemsJustification),n.itemsJustification),Object(le.a)(t,o.class,o.class),t)),S={fontSize:o.size?o.size+"px":void 0};return c?Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(Ce.Toolbar,{icon:n.itemsJustification?w["justify".concat(Object(me.upperFirst)(n.itemsJustification),"Icon")]:ra,label:Object(de.__)("Change items justification"),isCollapsed:!0,controls:[{icon:ra,title:Object(de.__)("Justify items left"),isActive:"left"===n.itemsJustification,onClick:C("left")},{icon:oa,title:Object(de.__)("Justify items center"),isActive:"center"===n.itemsJustification,onClick:C("center")},{icon:ca,title:Object(de.__)("Justify items right"),isActive:"right"===n.itemsJustification,onClick:C("right")}]}),Object(pe.createElement)(Ce.ToolbarGroup,null,y),Object(pe.createElement)(na,{TextColor:g,BackgroundColor:f},v)),_,Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Navigation Structure")},Object(pe.createElement)(Yc,{clientId:r})),Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Text settings")},Object(pe.createElement)(ue.FontSizePicker,{value:o.size,onChange:u}))),O,Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Display settings")},Object(pe.createElement)(Ce.ToggleControl,{checked:n.showSubmenuIcon,onChange:function(e){s({showSubmenuIcon:e})},label:Object(de.__)("Show submenu indicator icons")}))),Object(pe.createElement)(g,null,Object(pe.createElement)(f,null,Object(pe.createElement)("div",{ref:d,className:x,style:S},!c&&i&&Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(Ce.Spinner,null)," ",Object(de.__)("Loading Navigation…")," "),Object(pe.createElement)(ue.InnerBlocks,{allowedBlocks:["core/navigation-link"],templateInsertUpdatesSelection:!1,__experimentalMoverDirection:"horizontal"}))))):Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(Ce.Placeholder,{className:"wp-block-navigation-placeholder",icon:Jc,label:Object(de.__)("Navigation"),instructions:Object(de.__)("Create a Navigation from all existing pages, or create an empty one.")},Object(pe.createElement)("div",{ref:d,className:"wp-block-navigation-placeholder__buttons"},Object(pe.createElement)(Ce.Button,{isPrimary:!0,className:"wp-block-navigation-placeholder__button",onClick:function(){b(k),p(r)},disabled:!E},Object(de.__)("Create from all top-level pages")),Object(pe.createElement)(Ce.Button,{isLink:!0,className:"wp-block-navigation-placeholder__button",onClick:function(){var e=Object(be.createBlock)("core/navigation-link");b([e])}},Object(de.__)("Create empty")))))}));function ia(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var la=[{attributes:{className:{type:"string"},textColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean"}},isEligible:function(e){return e.rgbTextColor||e.rgbBackgroundColor},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},migrate:function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ia(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ia(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(me.omit)(e,["rgbTextColor","rgbBackgroundColor"]),{customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor})},save:function(){return Object(pe.createElement)(ue.InnerBlocks.Content,null)}}],sa="core/navigation",ua={title:Object(de.__)("Navigation"),icon:Qc,description:Object(de.__)("Add a navigation block to your site."),keywords:[Object(de.__)("menu"),Object(de.__)("navigation"),Object(de.__)("links")],category:"layout",supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},styles:[{name:"light",label:Object(de.__)("Light"),isDefault:!0},{name:"dark",label:Object(de.__)("Dark")}],edit:aa,save:function(){return Object(pe.createElement)(ue.InnerBlocks.Content,null)},deprecated:la},ba=n(23),ma=n.n(ba),da=n(44),pa=n(28),ha=function(){return Object(pe.createElement)(Ce.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},Object(pe.createElement)(Ce.Path,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"}))},ga=function(){return Object(pe.createElement)(Ce.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",transform:"rotate(90)"},Object(pe.createElement)(Ce.Path,{d:"M8 5v14l11-7z"}),Object(pe.createElement)(Ce.Path,{d:"M0 0h24v24H0z",fill:"none"}))};var fa=function(e,t,n){return n||(e&&e.length?Object(me.get)(Object(me.find)(e,{slug:t}),"color"):void 0)},Oa=Object(Ee.compose)([Object(xe.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getBlockAttributes,o=n.getClientIdsOfDescendants,c=n.hasSelectedInnerBlock,a=n.getBlockParentsByBlockName,i=n.getSettings,l=t.clientId,s=r(Object(me.head)(a(l,"core/navigation"))),u=Object(me.get)(i(),"colors",[]),b=!!o([l]).length,m=!!s.showSubmenuIcon&&b,d=c(l,!0),p=e("core").canUser("create","pages");return{isParentOfSelectedBlock:d,hasDescendants:b,showSubmenuIcon:m,textColor:s.textColor,backgroundColor:s.backgroundColor,userCanCreatePages:p,rgbTextColor:fa(u,s.textColor,s.customTextColor),rgbBackgroundColor:fa(u,s.backgroundColor,s.customBackgroundColor)}})),Object(xe.withDispatch)((function(e,t,n){return{saveEntityRecord:e("core").saveEntityRecord,insertLinkBlock:function(){var r=t.clientId,o=e("core/block-editor").insertBlock,c=(0,n.select("core/block-editor").getClientIdsOfDescendants)([r]),a=c.length?c.length:0;o(Object(be.createBlock)("core/navigation-link"),a,r)}}}))])((function(e){var t,n=e.attributes,r=e.hasDescendants,o=e.isSelected,c=e.isParentOfSelectedBlock,a=e.setAttributes,i=e.showSubmenuIcon,l=e.insertLinkBlock,s=e.textColor,u=e.backgroundColor,b=e.rgbTextColor,m=e.rgbBackgroundColor,d=e.saveEntityRecord,p=e.userCanCreatePages,h=void 0!==p&&p,g=n.label,f=n.opensInNewTab,O=n.url,v=n.nofollow,j=n.description,y={url:O,opensInNewTab:f},w=Object(pe.useState)(!1),_=Object(ke.a)(w,2),k=_[0],C=_[1],E=Object(de.__)("Add link…"),x=Object(pe.useRef)();function S(){return(S=Object(da.a)(ma.a.mark((function e(t){var n,r;return ma.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="page",e.next=3,d("postType",n,{title:t,status:"publish"});case 3:return r=e.sent,e.abrupt("return",{id:r.id,type:n,title:r.title.rendered,url:r.link});case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(Object(pe.useEffect)((function(){O||C(!0)}),[]),Object(pe.useEffect)((function(){o||C(!1)}),[o]),Object(pe.useEffect)((function(){k&&O&&(Object($e.isURL)(Object($e.prependHTTP)(g))&&/^.+\.[a-z]+/.test(g)?function(){x.current.focus();var e=window.getSelection(),t=document.createRange();t.selectNodeContents(x.current),e.removeAllRanges(),e.addRange(t)}():Object(pa.placeCaretAtHorizontalEdge)(x.current,!0))}),[O]),Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(Ce.ToolbarGroup,null,Object(pe.createElement)(Ce.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(le.a)({},kn.rawShortcut.primary("k"),(function(){return C(!0)}))}),Object(pe.createElement)(Ce.ToolbarButton,{name:"link",icon:dr.a,title:Object(de.__)("Link"),shortcut:kn.displayShortcut.primary("k"),onClick:function(){return C(!0)}}),Object(pe.createElement)(Ce.ToolbarButton,{name:"submenu",icon:Object(pe.createElement)(ha,null),title:Object(de.__)("Add submenu"),onClick:l}))),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("SEO settings")},Object(pe.createElement)(Ce.ToggleControl,{checked:v,onChange:function(e){a({nofollow:e})},label:Object(de.__)("Add nofollow to link"),help:Object(pe.createElement)(pe.Fragment,null,Object(de.__)("Don't let search engines follow this link."),Object(pe.createElement)(Ce.ExternalLink,{className:"wp-block-navigation-link__nofollow-external-link",href:Object(de.__)("https://codex.wordpress.org/Nofollow")},Object(de.__)("What's this?")))})),Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Link settings")},Object(pe.createElement)(Ce.TextareaControl,{value:j||"",onChange:function(e){a({description:e})},label:Object(de.__)("Description"),help:Object(de.__)("The description will be displayed in the menu if the current theme supports it.")}))),Object(pe.createElement)("div",{className:Oe()("wp-block-navigation-link",(t={"is-editing":o||c,"is-selected":o,"has-link":!!O,"has-child":r,"has-text-color":b},Object(le.a)(t,"has-".concat(s,"-color"),!!s),Object(le.a)(t,"has-background",m),Object(le.a)(t,"has-".concat(u,"-background-color"),!!u),t)),style:{color:b,backgroundColor:m}},Object(pe.createElement)("div",{className:"wp-block-navigation-link__content"},Object(pe.createElement)(ue.RichText,{ref:x,tagName:"span",className:"wp-block-navigation-link__label",value:g,onChange:function(e){return a({label:e})},placeholder:E,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}),i&&Object(pe.createElement)("span",{className:"wp-block-navigation-link__submenu-icon"},Object(pe.createElement)(ga,null)),k&&Object(pe.createElement)(Ce.Popover,{position:"bottom center",onClose:function(){return C(!1)}},Object(pe.createElement)(ue.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:y,showInitialSuggestions:!0,createSuggestion:h?function(e){return S.apply(this,arguments)}:void 0,onChange:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.title,o=void 0===r?"":r,c=n.url,i=void 0===c?"":c,l=n.opensInNewTab,s=n.id;return a({url:encodeURI(i),label:(e=o.replace(/http(s?):\/\//gi,""),t=i.replace(/http(s?):\/\//gi,""),""!==o&&e!==t&&g!==o?Object(me.escape)(o):g||Object(me.escape)(t)),opensInNewTab:l,id:s})}}))),Object(pe.createElement)(ue.InnerBlocks,{allowedBlocks:["core/navigation-link"],renderAppender:!!(r&&o||c)&&ue.InnerBlocks.DefaultAppender}))))}));var va={name:"core/navigation-link",category:"layout",attributes:{label:{type:"string"},nofollow:{type:"boolean",default:!1},type:{type:"string"},description:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"}}},ja=va.name,ya={title:Object(de.__)("Navigation Link"),parent:["core/navigation"],icon:Qc,description:Object(de.__)("Add a page, link, or another item to your navigation."),supports:{reusable:!1,html:!1},__experimentalLabel:function(e){return e.label},edit:Oa,save:function(){return Object(pe.createElement)(ue.InnerBlocks.Content,null)}},wa=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"})),_a=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).setCommentsToShow=e.setCommentsToShow.bind(Object(qe.a)(e)),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"createToggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(le.a)({},e,!n))}}},{key:"setCommentsToShow",value:function(e){this.props.setAttributes({commentsToShow:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.commentsToShow,n=e.displayAvatar,r=e.displayDate,o=e.displayExcerpt;return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Latest comments settings")},Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Display avatar"),checked:n,onChange:this.toggleDisplayAvatar}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Display date"),checked:r,onChange:this.toggleDisplayDate}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Display excerpt"),checked:o,onChange:this.toggleDisplayExcerpt}),Object(pe.createElement)(Ce.RangeControl,{label:Object(de.__)("Number of comments"),value:t,onChange:this.setCommentsToShow,min:1,max:100,required:!0}))),Object(pe.createElement)(Ce.Disabled,null,Object(pe.createElement)(Kn.a,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),t}(pe.Component),ka="core/latest-comments",Ca={title:Object(de.__)("Latest Comments"),description:Object(de.__)("Display a list of your most recent comments."),icon:wa,category:"widgets",keywords:[Object(de.__)("recent comments")],supports:{align:!0,html:!1},edit:_a},Ea=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Rect,{x:"11",y:"7",width:"6",height:"2"}),Object(pe.createElement)(he.Rect,{x:"11",y:"11",width:"6",height:"2"}),Object(pe.createElement)(he.Rect,{x:"11",y:"15",width:"6",height:"2"}),Object(pe.createElement)(he.Rect,{x:"7",y:"7",width:"2",height:"2"}),Object(pe.createElement)(he.Rect,{x:"7",y:"11",width:"2",height:"2"}),Object(pe.createElement)(he.Rect,{x:"7",y:"15",width:"2",height:"2"}),Object(pe.createElement)(he.Path,{d:"M20.1,3H3.9C3.4,3,3,3.4,3,3.9v16.2C3,20.5,3.4,21,3.9,21h16.2c0.4,0,0.9-0.5,0.9-0.9V3.9C21,3.4,20.5,3,20.1,3z M19,19H5V5h14V19z"})),xa=n(40),Sa=n.n(xa),Pa=n(53),Ta=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})),Ba=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(pe.createElement)(he.Path,{d:"M9 9V3H3v6h6zm8 0V3h-6v6h6zm-8 8v-6H3v6h6zm8 0v-6h-6v6h6z"}));function Na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var za={per_page:-1},Ma=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).state={categoriesList:[]},e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.isStillMounted=!0,this.fetchRequest=Sa()({path:Object($e.addQueryArgs)("/wp/v2/categories",za)}).then((function(t){e.isStillMounted&&e.setState({categoriesList:t})})).catch((function(){e.isStillMounted&&e.setState({categoriesList:[]})}))}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.imageSizeOptions,o=e.latestPosts,c=e.defaultImageWidth,a=e.defaultImageHeight,i=this.state.categoriesList,l=t.displayFeaturedImage,s=t.displayPostContentRadio,u=t.displayPostContent,b=t.displayPostDate,m=t.postLayout,d=t.columns,p=t.order,h=t.orderBy,g=t.categories,f=t.postsToShow,O=t.excerptLength,v=t.featuredImageAlign,j=t.featuredImageSizeSlug,y=t.featuredImageSizeWidth,w=t.featuredImageSizeHeight,_=Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Post content settings")},Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Post content"),checked:u,onChange:function(e){return n({displayPostContent:e})}}),u&&Object(pe.createElement)(Ce.RadioControl,{label:Object(de.__)("Show:"),selected:s,options:[{label:Object(de.__)("Excerpt"),value:"excerpt"},{label:Object(de.__)("Full post"),value:"full_post"}],onChange:function(e){return n({displayPostContentRadio:e})}}),u&&"excerpt"===s&&Object(pe.createElement)(Ce.RangeControl,{label:Object(de.__)("Max number of words in excerpt"),value:O,onChange:function(e){return n({excerptLength:e})},min:10,max:100})),Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Post meta settings")},Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Display post date"),checked:b,onChange:function(e){return n({displayPostDate:e})}})),Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Featured image settings")},Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Display featured image"),checked:l,onChange:function(e){return n({displayFeaturedImage:e})}}),l&&Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.__experimentalImageSizeControl,{onChange:function(e){var t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),n(t)},slug:j,width:y,height:w,imageWidth:c,imageHeight:a,imageSizeOptions:r,onChangeImage:function(e){return n({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}}),Object(pe.createElement)(Ce.BaseControl,null,Object(pe.createElement)(Ce.BaseControl.VisualLabel,null,Object(de.__)("Image alignment")),Object(pe.createElement)(ue.BlockAlignmentToolbar,{value:v,onChange:function(e){return n({featuredImageAlign:e})},controls:["left","center","right"],isCollapsed:!1})))),Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Sorting and filtering")},Object(pe.createElement)(Ce.QueryControls,Object(Le.a)({order:p,orderBy:h},{numberOfItems:f,categoriesList:i,selectedCategoryId:g,onOrderChange:function(e){return n({order:e})},onOrderByChange:function(e){return n({orderBy:e})},onCategoryChange:function(e){return n({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return n({postsToShow:e})}})),"grid"===m&&Object(pe.createElement)(Ce.RangeControl,{label:Object(de.__)("Columns"),value:d,onChange:function(e){return n({columns:e})},min:2,max:k?Math.min(6,o.length):6,required:!0}))),k=Array.isArray(o)&&o.length;if(!k)return Object(pe.createElement)(pe.Fragment,null,_,Object(pe.createElement)(Ce.Placeholder,{icon:Dr,label:Object(de.__)("Latest Posts")},Array.isArray(o)?Object(de.__)("No posts found."):Object(pe.createElement)(Ce.Spinner,null)));var C=o.length>f?o.slice(0,f):o,E=[{icon:Ta,title:Object(de.__)("List view"),onClick:function(){return n({postLayout:"list"})},isActive:"list"===m},{icon:Ba,title:Object(de.__)("Grid view"),onClick:function(){return n({postLayout:"grid"})},isActive:"grid"===m}],x=Object(Pa.__experimentalGetSettings)().formats.date;return Object(pe.createElement)(pe.Fragment,null,_,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(Ce.ToolbarGroup,{controls:E})),Object(pe.createElement)("ul",{className:Oe()(this.props.className,Object(le.a)({"wp-block-latest-posts__list":!0,"is-grid":"grid"===m,"has-dates":b},"columns-".concat(d),"grid"===m))},C.map((function(e,t){var n=Object(me.invoke)(e,["title","rendered","trim"]),r=e.excerpt.rendered,o=document.createElement("div");o.innerHTML=r,r=o.textContent||o.innerText||"";var c=e.featuredImageSourceUrl,a=Oe()(Object(le.a)({"wp-block-latest-posts__featured-image":!0},"align".concat(v),!!v)),i=O<r.trim().split(" ").length&&""===e.excerpt.raw?r.trim().split(" ",O).join(" ")+" ... <a href="+e.link+'target="_blank" rel="noopener noreferrer">'+Object(de.__)("Read more")+"</a>":r;return Object(pe.createElement)("li",{key:t},l&&Object(pe.createElement)("div",{className:a},c&&Object(pe.createElement)("img",{src:c,alt:"",style:{maxWidth:y,maxHeight:w}})),Object(pe.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},n?Object(pe.createElement)(pe.RawHTML,null,n):Object(de.__)("(no title)")),b&&e.date_gmt&&Object(pe.createElement)("time",{dateTime:Object(Pa.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(Pa.dateI18n)(x,e.date_gmt)),u&&"excerpt"===s&&Object(pe.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},Object(pe.createElement)(pe.RawHTML,{key:"html"},i)),u&&"full_post"===s&&Object(pe.createElement)("div",{className:"wp-block-latest-posts__post-full-content"},Object(pe.createElement)(pe.RawHTML,{key:"html"},e.content.raw.trim())))}))))}}]),t}(pe.Component),Ia=Object(xe.withSelect)((function(e,t){var n=t.attributes,r=n.featuredImageSizeSlug,o=n.postsToShow,c=n.order,a=n.orderBy,i=n.categories,l=e("core"),s=l.getEntityRecords,u=l.getMedia,b=(0,e("core/block-editor").getSettings)(),m=b.imageSizes,d=b.imageDimensions,p=s("postType","post",Object(me.pickBy)({categories:i,order:c,orderby:a,per_page:o},(function(e){return!Object(me.isUndefined)(e)}))),h=m.filter((function(e){return"full"!==e.slug})).map((function(e){var t=e.name;return{value:e.slug,label:t}}));return{defaultImageWidth:d[r].width,defaultImageHeight:d[r].height,imageSizeOptions:h,latestPosts:Array.isArray(p)?p.map((function(e){if(e.featured_media){var t=u(e.featured_media),n=Object(me.get)(t,["media_details","sizes",r,"source_url"],null);return n||(n=Object(me.get)(t,"source_url",null)),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Na(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Na(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{featuredImageSourceUrl:n})}return e})):p}}))(Ma),Ra="core/latest-posts",Aa={title:Object(de.__)("Latest Posts"),description:Object(de.__)("Display a list of your most recent posts."),icon:Ea,category:"widgets",keywords:[Object(de.__)("recent posts")],supports:{align:!0,html:!1},edit:Ia},Ha=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M7 11h2v2H7v-2zm14-5v14l-2 2H5l-2-2V6l2-2h1V2h2v2h8V2h2v2h1l2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"})),La=n(258),Va=n(49),Da=n.n(Va),Fa=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).containerRef=Object(pe.createRef)(),e.formRef=Object(pe.createRef)(),e.widgetContentRef=Object(pe.createRef)(),e.idBaseInputRef=Object(pe.createRef)(),e.widgetNumberInputRef=Object(pe.createRef)(),e.triggerWidgetEvent=e.triggerWidgetEvent.bind(Object(qe.a)(e)),e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"componentDidMount",value:function(){this.triggerWidgetEvent("widget-added"),this.previousFormData=new window.FormData(this.formRef.current)}},{key:"shouldComponentUpdate",value:function(e){var t=!1;(e.idBase!==this.props.idBase&&this.idBaseInputRef.current&&(this.idBaseInputRef.current.value=e.idBase,t=!0),e.number!==this.props.number&&this.widgetNumberInputRef.current&&(this.widgetNumberInputRef.current.value=e.number),e.form!==this.props.form&&this.widgetContentRef.current)&&(this.widgetContentRef.current.innerHTML=e.form,t=!0);return t&&(this.triggerWidgetEvent("widget-updated"),this.previousFormData=new window.FormData(this.formRef.current)),!1}},{key:"render",value:function(){var e=this,t=this.props,n=t.id,r=t.idBase,o=t.number,c=t.form,a=t.isReferenceWidget;return Object(pe.createElement)("div",{className:"widget open",ref:this.containerRef},Object(pe.createElement)("div",{className:"widget-inside"},Object(pe.createElement)("form",{ref:this.formRef,method:"post",onBlur:function(){e.shouldTriggerInstanceUpdate()&&(a&&e.containerRef.current&&window.wpWidgets.save(window.jQuery(e.containerRef.current)),e.props.onInstanceChange(e.retrieveUpdatedInstance()))}},Object(pe.createElement)("div",{ref:this.widgetContentRef,className:"widget-content",dangerouslySetInnerHTML:{__html:c}}),a&&Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)("input",{type:"hidden",name:"widget-id",className:"widget-id",value:n}),Object(pe.createElement)("input",{ref:this.idBaseInputRef,type:"hidden",name:"id_base",className:"id_base",value:r}),Object(pe.createElement)("input",{ref:this.widgetNumberInputRef,type:"hidden",name:"widget_number",className:"widget_number",value:o}),Object(pe.createElement)("input",{type:"hidden",name:"multi_number",className:"multi_number",value:""}),Object(pe.createElement)("input",{type:"hidden",name:"add_new",className:"add_new",value:""})))))}},{key:"shouldTriggerInstanceUpdate",value:function(){if(!this.formRef.current)return!1;if(!this.previousFormData)return!0;var e=new window.FormData(this.formRef.current),t=Array.from(e.keys()),n=Array.from(this.previousFormData.keys());if(t.length!==n.length)return!0;for(var r=0,o=t;r<o.length;r++){var c=o[r];if(!Da()(e.getAll(c),this.previousFormData.getAll(c)))return this.previousFormData=e,!0}return!1}},{key:"triggerWidgetEvent",value:function(e){window.jQuery(window.document).trigger(e,[window.jQuery(this.containerRef.current)])}},{key:"retrieveUpdatedInstance",value:function(){if(this.formRef.current){var e=this.formRef.current,t=new window.FormData(e),n={},r=!0,o=!1,c=void 0;try{for(var a,i=t.keys()[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var l=a.value;if(!Object(me.includes)(["widget-id","id_base","widget_number","multi_number","add_new"],l)){var s=l.match(/[^\[]*\[[-\d]*\]\[([^\]]*)\]/),u=s&&s[1]?s[1]:l,b=t.getAll(l);b.length>1?n[u]=b:n[u]=b[0]}}}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}}}]),t}(pe.Component),Ua=window,Ga=Ua.XMLHttpRequest,Wa=Ua.FormData,qa=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).state={form:null},e.widgetNonce=null,e.instanceUpdating=null,e.onInstanceChange=e.onInstanceChange.bind(Object(qe.a)(e)),e.requestWidgetUpdater=e.requestWidgetUpdater.bind(Object(qe.a)(e)),e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.isStillMounted=!0,this.trySetNonce(),this.requestWidgetUpdater(void 0,(function(t){e.props.onInstanceChange(null,!!t.form)}))}},{key:"componentDidUpdate",value:function(e){var t=this;this.widgetNonce||this.trySetNonce(),e.instance!==this.props.instance&&this.instanceUpdating!==this.props.instance&&this.requestWidgetUpdater(void 0,(function(e){t.props.onInstanceChange(null,!!e.form)})),this.instanceUpdating===this.props.instance&&(this.instanceUpdating=null)}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,r=t.id,o=t.number,c=t.idBase,a=t.instance,i=t.isSelected,l=t.widgetName,s=this.state.form;if(!s)return null;var u=Object(me.get)(a,["title"]),b=null;return i&&(u&&l?b="".concat(l,": ").concat(u):!u&&l?b=l:u&&!l&&(b=u)),Object(pe.createElement)(pe.Fragment,null,b&&Object(pe.createElement)("div",{className:"wp-block-legacy-widget__edit-widget-title"},b),Object(pe.createElement)("div",{className:"wp-block-legacy-widget__edit-container",style:{display:this.props.isVisible?"block":"none"}},Object(pe.createElement)(Fa,{isReferenceWidget:!!r,ref:function(t){e.widgetEditDomManagerRef=t},onInstanceChange:this.onInstanceChange,number:o||-1*n,id:r,idBase:c,form:s})))}},{key:"trySetNonce",value:function(){var e=document.getElementById("_wpnonce_widgets");e&&e.value&&(this.widgetNonce=e.value)}},{key:"onInstanceChange",value:function(e){var t=this;this.props.id?this.props.onInstanceChange(e,!0):this.requestWidgetUpdater(e,(function(e){t.instanceUpdating=e.instance,t.props.onInstanceChange(e.instance,!!e.form)}))}},{key:"requestWidgetUpdater",value:function(e,t){var n=this,r=this.props,o=r.id,c=r.idBase,a=r.instance,i=r.widgetClass,l=this.isStillMounted;if(o||i){if(o){var s=new Ga,u=new Wa;return u.append("action","save-widget"),u.append("id_base",c),u.append("widget-id",o),u.append("widget-width","250"),u.append("widget-height","200"),u.append("savewidgets",this.widgetNonce),s.open("POST",window.ajaxurl),s.addEventListener("load",(function(){if(l){var e=s.responseText;n.setState({form:e}),t&&t({form:e})}})),void s.send(u)}i&&Sa()({path:"/__experimental/widget-forms/".concat(i,"/"),data:{instance:a,instance_changes:e},method:"POST"}).then((function(e){l&&(n.setState({form:e.form}),t&&t(e))}))}}}]),t}(pe.Component),Za=Object(Ee.withInstanceId)(qa),Ka=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(pe.createElement)(he.Path,{d:"M18.33 3.57s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92.98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM1.4 17.65c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29.63.67.8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z"}));function $a(e){var t,n=e.availableLegacyWidgets,r=e.currentWidget,o=e.hasPermissionsToManageWidgets,c=e.onChangeWidget,a=Object(pe.useMemo)((function(){return Object(me.pickBy)(n,(function(e){return!e.isHidden}))}),[n]);return t=o?Object(me.isEmpty)(a)?Object(de.__)("There are no widgets available."):Object(pe.createElement)(Ce.SelectControl,{label:Object(de.__)("Select a legacy widget to display:"),value:r||"none",onChange:c,options:[{value:"none",label:"Select widget"}].concat(Object(me.map)(a,(function(e,t){return{value:t,label:e.name}})))}):Object(de.__)("You don't have permissions to use widgets on this site."),Object(pe.createElement)(Ce.Placeholder,{icon:Object(pe.createElement)(ue.BlockIcon,{icon:Ka}),label:Object(de.__)("Legacy Widget")},t)}var Qa=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).state={hasEditForm:!0,isPreview:!1},e.switchToEdit=e.switchToEdit.bind(Object(qe.a)(e)),e.switchToPreview=e.switchToPreview.bind(Object(qe.a)(e)),e.changeWidget=e.changeWidget.bind(Object(qe.a)(e)),e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.availableLegacyWidgets,o=t.hasPermissionsToManageWidgets,c=t.isSelected,a=t.setAttributes,i=this.state,l=i.isPreview,s=i.hasEditForm,u=n.id,b=n.widgetClass,m=u&&r[u]||b&&r[b];if(!u&&!b)return Object(pe.createElement)($a,{availableLegacyWidgets:r,hasPermissionsToManageWidgets:o,onChangeWidget:function(e){var t=r[e].isReferenceWidget;a({instance:{},id:t?e:void 0,widgetClass:t?void 0:e})}});var d=m?Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:m.name},m.description)):null;return o?Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(Ce.ToolbarGroup,null,m&&!m.isHidden&&Object(pe.createElement)(Ce.Button,{onClick:this.changeWidget,label:Object(de.__)("Change widget"),icon:La.a}),s&&Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(Ce.Button,{className:"components-tab-button",isPressed:!l,onClick:this.switchToEdit},Object(pe.createElement)("span",null,Object(de.__)("Edit"))),Object(pe.createElement)(Ce.Button,{className:"components-tab-button",isPressed:l,onClick:this.switchToPreview},Object(pe.createElement)("span",null,Object(de.__)("Preview")))))),d,s&&Object(pe.createElement)(Za,{isSelected:c,isVisible:!l,id:u,idBase:n.idBase||n.id,number:n.number,widgetName:Object(me.get)(m,["name"]),widgetClass:n.widgetClass,instance:n.instance,onInstanceChange:function(t,n){t&&e.props.setAttributes({instance:t}),n!==e.hasEditForm&&e.setState({hasEditForm:n})}}),(l||!s)&&this.renderWidgetPreview()):Object(pe.createElement)(pe.Fragment,null,d,this.renderWidgetPreview())}},{key:"changeWidget",value:function(){this.switchToEdit(),this.props.setAttributes({instance:{},id:void 0,widgetClass:void 0}),this.setState({hasEditForm:!0})}},{key:"switchToEdit",value:function(){this.setState({isPreview:!1})}},{key:"switchToPreview",value:function(){this.setState({isPreview:!0})}},{key:"renderWidgetPreview",value:function(){var e=this.props.attributes;return Object(pe.createElement)(Kn.a,{className:"wp-block-legacy-widget__preview",block:"core/legacy-widget",attributes:e})}}]),t}(pe.Component),Ja=Object(xe.withSelect)((function(e){var t=e("core/block-editor").getSettings(),n=t.availableLegacyWidgets;return{hasPermissionsToManageWidgets:t.hasPermissionsToManageWidgets,availableLegacyWidgets:n}}))(Qa),Ya="core/legacy-widget",Xa={title:Object(de.__)("Legacy Widget (Experimental)"),description:Object(de.__)("Display a legacy widget."),icon:Ha,category:"widgets",supports:{html:!1,customClassName:!1},edit:Ja},ei=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(he.Path,{d:"M4 7.2v1.5h16V7.2H4zm7.1 8.6H20v-1.5h-8.9v1.5zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),ti=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(he.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zM4 7.2v1.5h16V7.2H4zm.2 6.8l.8-.3V17h1v-4.7l-2.2.7.4 1z"})),ni=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(he.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zM8 8l-4 4 4 4 1-1-3-3 3-3-1-1z"})),ri=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(he.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm1-4l4-4-4-4-1 1 3 3-3 3 1 1z"})),oi=function(e){var t=e.setAttributes,n=e.reversed,r=e.start;return Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Ordered list settings")},Object(pe.createElement)(Ce.TextControl,{label:Object(de.__)("Start value"),type:"number",onChange:function(e){var n=parseInt(e,10);t({start:isNaN(n)?void 0:n})},value:Number.isInteger(r)?r.toString(10):"",step:"1"}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Reverse list numbering"),checked:n||!1,onChange:function(e){t({reversed:e||void 0})}})))};function ci(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ai(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ai(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function li(e){var t=ii({},e.phrasingContentSchema,{ul:{},ol:{attributes:["type","start","reversed"]}});return["ul","ol"].forEach((function(e){t[e].children={li:{children:t}}})),t}var si={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(be.createBlock)("core/list",{values:Object(sn.toHTMLString)({value:Object(sn.join)(e.map((function(t){var n=t.content,r=Object(sn.create)({html:n});return e.length>1?r:Object(sn.replace)(r,/\n/g,sn.__UNSTABLE_LINE_SEPARATOR)})),sn.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.value;return Object(be.createBlock)("core/list",{values:Object(sn.toHTMLString)({value:Object(sn.create)({html:t,multilineTag:"p"}),multilineTag:"li"})})}},{type:"raw",selector:"ol,ul",schema:function(e){return{ol:li(e).ol,ul:li(e).ul}},transform:function(e){var t={ordered:"OL"===e.nodeName};if(t.ordered){var n=e.getAttribute("type");n&&(t.type=n),null!==e.getAttribute("reversed")&&(t.reversed=!0);var r=parseInt(e.getAttribute("start"),10);isNaN(r)||1===r&&!t.reversed||(t.start=r)}return Object(be.createBlock)("core/list",ii({},Object(be.getBlockAttributes)("core/list",e.outerHTML),{},t))}}].concat(Object(ie.a)(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(be.createBlock)("core/list",{values:"<li>".concat(e,"</li>")})}}}))),Object(ie.a)(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(be.createBlock)("core/list",{ordered:!0,values:"<li>".concat(e,"</li>")})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(sn.split)(Object(sn.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),sn.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(be.createBlock)("core/paragraph",{content:Object(sn.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values;return Object(be.createBlock)("core/quote",{value:Object(sn.toHTMLString)({value:Object(sn.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"})})}}]};function ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var bi={name:"core/list",category:"common",attributes:{ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:""},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"}}},mi=bi.name,di={title:Object(de.__)("List"),description:Object(de.__)("Create a bulleted or numbered list."),icon:Ta,keywords:[Object(de.__)("bullet list"),Object(de.__)("ordered list"),Object(de.__)("numbered list")],supports:{className:!1,__unstablePasteTextInline:!0,lightBlockWrapper:!0},example:{attributes:{values:"<li>Alice.</li><li>The White Rabbit.</li><li>The Cheshire Cat.</li><li>The Mad Hatter.</li><li>The Queen of Hearts.</li>"}},transforms:si,merge:function(e,t){var n=t.values;return n&&"<li></li>"!==n?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ui(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ui(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{values:e.values+n}):e},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=e.onReplace,c=e.isSelected,a=t.ordered,i=t.values,l=t.type,s=t.reversed,u=t.start,b=a?"ol":"ul";return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.RichText,{identifier:"values",multiline:"li",__unstableMultilineRootTag:b,tagName:ue.__experimentalBlock[b],onChange:function(e){return n({values:e})},value:i,placeholder:Object(de.__)("Write list…"),onMerge:r,onSplit:function(e){return Object(be.createBlock)(mi,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ci(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ci(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{values:e}))},__unstableOnSplitMiddle:function(){return Object(be.createBlock)("core/paragraph")},onReplace:o,onRemove:function(){return o([])},start:u,reversed:s,type:l},(function(e){var t=e.value,r=e.onChange,o=e.onFocus;return Object(pe.createElement)(pe.Fragment,null,c&&Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.RichTextShortcut,{type:"primary",character:"[",onUse:function(){r(Object(sn.__unstableOutdentListItems)(t))}}),Object(pe.createElement)(ue.RichTextShortcut,{type:"primary",character:"]",onUse:function(){r(Object(sn.__unstableIndentListItems)(t,{type:b}))}}),Object(pe.createElement)(ue.RichTextShortcut,{type:"primary",character:"m",onUse:function(){r(Object(sn.__unstableIndentListItems)(t,{type:b}))}}),Object(pe.createElement)(ue.RichTextShortcut,{type:"primaryShift",character:"m",onUse:function(){r(Object(sn.__unstableOutdentListItems)(t))}})),Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(Ce.ToolbarGroup,{controls:[{icon:ei,title:Object(de.__)("Convert to unordered list"),isActive:Object(sn.__unstableIsActiveListType)(t,"ul",b),onClick:function(){r(Object(sn.__unstableChangeListType)(t,{type:"ul"})),o(),Object(sn.__unstableIsListRootSelected)(t)&&n({ordered:!1})}},{icon:ti,title:Object(de.__)("Convert to ordered list"),isActive:Object(sn.__unstableIsActiveListType)(t,"ol",b),onClick:function(){r(Object(sn.__unstableChangeListType)(t,{type:"ol"})),o(),Object(sn.__unstableIsListRootSelected)(t)&&n({ordered:!0})}},{icon:ni,title:Object(de.__)("Outdent list item"),shortcut:Object(de._x)("Backspace","keyboard key"),isDisabled:!Object(sn.__unstableCanOutdentListItems)(t),onClick:function(){r(Object(sn.__unstableOutdentListItems)(t)),o()}},{icon:ri,title:Object(de.__)("Indent list item"),shortcut:Object(de._x)("Space","keyboard key"),isDisabled:!Object(sn.__unstableCanIndentListItems)(t),onClick:function(){r(Object(sn.__unstableIndentListItems)(t,{type:b})),o()}}]})))})),a&&Object(pe.createElement)(oi,{setAttributes:n,ordered:a,reversed:s,start:u}))},save:function(e){var t=e.attributes,n=t.ordered,r=t.values,o=t.type,c=t.reversed,a=t.start,i=n?"ol":"ul";return Object(pe.createElement)(ue.RichText.Content,{tagName:i,value:r,type:o,reversed:c,start:a,multiline:"li"})}};var pi=Object(xe.withDispatch)((function(e,t){var n=t.clientId,r=t.attributes,o=e("core/block-editor").replaceBlock;return{convertToHTML:function(){o(n,Object(be.createBlock)("core/html",{content:r.originalUndelimitedContent}))}}}))((function(e){var t,n=e.attributes,r=e.convertToHTML,o=n.originalName,c=n.originalUndelimitedContent,a=!!c,i=Object(be.getBlockType)("core/html"),l=[];return a&&i?(t=Object(de.sprintf)(Object(de.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),o),l.push(Object(pe.createElement)(Ce.Button,{key:"convert",onClick:r,isLarge:!0,isPrimary:!0},Object(de.__)("Keep as HTML")))):t=Object(de.sprintf)(Object(de.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),o),Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.Warning,{actions:l},t),Object(pe.createElement)(pe.RawHTML,null,c))}));var hi={name:"core/missing",category:"common",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}}},gi=hi.name,fi={name:gi,title:Object(de.__)("Unsupported"),description:Object(de.__)("Your site doesn’t include support for this block."),supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1},__experimentalLabel:function(e,t){if("accessibility"===t.context){var n=e.originalName,r=n?Object(be.getBlockType)(n):void 0;return r?r.settings.title||n:""}},edit:pi,save:function(e){var t=e.attributes;return Object(pe.createElement)(pe.RawHTML,null,t.originalContent)}},Oi=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})),vi=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).onChangeInput=e.onChangeInput.bind(Object(qe.a)(e)),e.onKeyDown=e.onKeyDown.bind(Object(qe.a)(e)),e.state={defaultText:Object(de.__)("Read more")},e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"onChangeInput",value:function(e){this.setState({defaultText:""});var t=0===e.target.value.length?void 0:e.target.value;this.props.setAttributes({customText:t})}},{key:"onKeyDown",value:function(e){var t=e.keyCode,n=this.props.insertBlocksAfter;t===kn.ENTER&&n([Object(be.createBlock)(Object(be.getDefaultBlockName)())])}},{key:"getHideExcerptHelp",value:function(e){return e?Object(de.__)("The excerpt is hidden."):Object(de.__)("The excerpt is visible.")}},{key:"render",value:function(){var e=this.props.attributes,t=e.customText,n=e.noTeaser,r=this.props.setAttributes,o=this.state.defaultText,c=void 0!==t?t:o,a={width:c.length+1.2+"em"};return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,null,Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:function(){return r({noTeaser:!n})},help:this.getHideExcerptHelp}))),Object(pe.createElement)("div",{className:"wp-block-more"},Object(pe.createElement)("input",{type:"text",value:c,onChange:this.onChangeInput,onKeyDown:this.onKeyDown,style:a})))}}]),t}(pe.Component);var ji={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/more"===e.dataset.block},transform:function(e){var t=e.dataset,n=t.customText,r=t.noTeaser,o={};return n&&(o.customText=n),""===r&&(o.noTeaser=!0),Object(be.createBlock)("core/more",o)}}]},yi={name:"core/more",category:"layout",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}}},wi=yi.name,_i={title:Object(de._x)("More","block name"),description:Object(de.__)("Content before this block will be shown in the excerpt on your archives page."),icon:Oi,supports:{customClassName:!1,className:!1,html:!1,multiple:!1},example:{},__experimentalLabel:function(e,t){if("accessibility"===t.context)return e.customText},transforms:ji,edit:vi,save:function(e){var t=e.attributes,n=t.customText,r=t.noTeaser,o=n?"\x3c!--more ".concat(n,"--\x3e"):"\x3c!--more--\x3e",c=r?"\x3c!--noteaser--\x3e":"";return Object(pe.createElement)(pe.RawHTML,null,Object(me.compact)([o,c]).join("\n"))}},ki=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(he.Path,{d:"M7.8 6c0-.7.6-1.2 1.2-1.2h6c.7 0 1.2.6 1.2 1.2v3h1.5V6c0-1.5-1.2-2.8-2.8-2.8H9C7.5 3.2 6.2 4.5 6.2 6v3h1.5V6zm8.4 11c0 .7-.6 1.2-1.2 1.2H9c-.7 0-1.2-.6-1.2-1.2v-3H6.2v3c0 1.5 1.2 2.8 2.8 2.8h6c1.5 0 2.8-1.2 2.8-2.8v-3h-1.5v3zM4 11v1h16v-1H4z"}));var Ci={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/nextpage"===e.dataset.block},transform:function(){return Object(be.createBlock)("core/nextpage",{})}}]},Ei={name:"core/nextpage",category:"layout"},xi=Ei.name,Si={title:Object(de.__)("Page Break"),parent:["core/post-content"],description:Object(de.__)("Separate your content into a multi-page experience."),icon:ki,keywords:[Object(de.__)("next page"),Object(de.__)("pagination")],supports:{customClassName:!1,className:!1,html:!1},example:{},transforms:Ci,edit:function(){return Object(pe.createElement)("div",{className:"wp-block-nextpage"},Object(pe.createElement)("span",null,Object(de.__)("Page break")))},save:function(){return Object(pe.createElement)(pe.RawHTML,null,"\x3c!--nextpage--\x3e")}},Pi=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"}));var Ti={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:function(e){var t=e.content;return Object(be.createBlock)("core/preformatted",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName)},schema:function(e){return{pre:{children:e.phrasingContentSchema}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(be.createBlock)("core/paragraph",e)}}]},Bi={name:"core/preformatted",category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0}}},Ni=Bi.name,zi={title:Object(de.__)("Preformatted"),description:Object(de.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:Pi,example:{attributes:{content:Object(de.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\nWindow, very small in the distance, illuminated.\nAll around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:Ti,edit:function(e){var t=e.attributes,n=e.mergeBlocks,r=e.setAttributes,o=e.className,c=e.style,a=t.content;return Object(pe.createElement)(ue.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:a,onChange:function(e){r({content:e})},placeholder:Object(de.__)("Write preformatted text…"),className:o,style:c,onMerge:n})},save:function(e){var t=e.attributes.content;return Object(pe.createElement)(ue.RichText.Content,{tagName:"pre",value:t})},merge:function(e,t){return{content:e.content+t.content}}},Mi=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})),Ii="is-style-".concat("solid-color");function Ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ri(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hi={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}};function Li(e){if(e){var t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}}var Vi=[{attributes:Ai({},Hi,{figureStyle:{source:"attribute",selector:"figure",attribute:"style"}}),save:function(e){var t,n,r=e.attributes,o=r.mainColor,c=r.customMainColor,a=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className,b=r.figureStyle;if(Object(me.includes)(u,Ii)){var m=Object(ue.getColorClassName)("background-color",o);t=Oe()(Object(le.a)({"has-background":m||c},m,m)),n={backgroundColor:m?void 0:c}}else if(c)n={borderColor:c};else if(o){n={borderColor:Li(b)}}var d=Object(ue.getColorClassName)("color",a),p=(a||i)&&Oe()("has-text-color",Object(le.a)({},d,d)),h=d?void 0:{color:i};return Object(pe.createElement)("figure",{className:t,style:n},Object(pe.createElement)("blockquote",{className:p,style:h},Object(pe.createElement)(ue.RichText.Content,{value:l,multiline:!0}),!ue.RichText.isEmpty(s)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"cite",value:s})))},migrate:function(e){var t=e.className,n=e.figureStyle,r=e.mainColor,o=Object(ln.a)(e,["className","figureStyle","mainColor"]);if(!Object(me.includes)(t,Ii)&&r&&n){var c=Li(n);if(c)return Ai({},o,{className:t,customMainColor:c})}return Ai({className:t,mainColor:r},o)}},{attributes:Hi,save:function(e){var t,n,r=e.attributes,o=r.mainColor,c=r.customMainColor,a=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className;if(Object(me.includes)(u,Ii))(t=Object(ue.getColorClassName)("background-color",o))||(n={backgroundColor:c});else if(c)n={borderColor:c};else if(o){var b=Object(me.get)(Object(xe.select)("core/block-editor").getSettings(),["colors"],[]);n={borderColor:Object(ue.getColorObjectByAttributeValues)(b,o).color}}var m=Object(ue.getColorClassName)("color",a),d=a||i?Oe()("has-text-color",Object(le.a)({},m,m)):void 0,p=m?void 0:{color:i};return Object(pe.createElement)("figure",{className:t,style:n},Object(pe.createElement)("blockquote",{className:d,style:p},Object(pe.createElement)(ue.RichText.Content,{value:l,multiline:!0}),!ue.RichText.isEmpty(s)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"cite",value:s})))}},{attributes:Ai({},Hi),save:function(e){var t=e.attributes,n=t.value,r=t.citation;return Object(pe.createElement)("blockquote",null,Object(pe.createElement)(ue.RichText.Content,{value:n,multiline:!0}),!ue.RichText.isEmpty(r)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"cite",value:r}))}},{attributes:Ai({},Hi,{citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.value,r=t.citation,o=t.align;return Object(pe.createElement)("blockquote",{className:"align".concat(o)},Object(pe.createElement)(ue.RichText.Content,{value:n,multiline:!0}),!ue.RichText.isEmpty(r)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"footer",value:r}))}}],Di=function(e){function t(e){var n;return Object(Fe.a)(this,t),(n=Object(Ge.a)(this,Object(We.a)(t).call(this,e))).wasTextColorAutomaticallyComputed=!1,n.pullQuoteMainColorSetter=n.pullQuoteMainColorSetter.bind(Object(qe.a)(n)),n.pullQuoteTextColorSetter=n.pullQuoteTextColorSetter.bind(Object(qe.a)(n)),n}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"pullQuoteMainColorSetter",value:function(e){var t=this.props,n=t.colorUtils,r=t.textColor,o=t.setAttributes,c=t.setTextColor,a=t.setMainColor,i=t.className,l=Object(me.includes)(i,Ii),s=!r.color||this.wasTextColorAutomaticallyComputed,u=l&&s&&e;l?a(e):o({customMainColor:e}),u&&(this.wasTextColorAutomaticallyComputed=!0,c(n.getMostReadableColor(e)))}},{key:"pullQuoteTextColorSetter",value:function(e){(0,this.props.setTextColor)(e),this.wasTextColorAutomaticallyComputed=!1}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.attributes,r=t.className,o=t.mainColor,c=t.setAttributes;n.mainColor&&!Object(me.includes)(r,Ii)&&Object(me.includes)(e.className,Ii)&&c({mainColor:void 0,customMainColor:o.color})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.mainColor,r=e.textColor,o=e.setAttributes,c=e.isSelected,a=e.className,i=t.value,l=t.citation,s=Object(me.includes)(a,Ii),u=s?{backgroundColor:n.color}:{borderColor:n.color},b=Oe()(a,Object(le.a)({"has-background":s&&n.color},n.class,s&&n.class)),m={color:r.color},d=r.color&&Oe()("has-text-color",Object(le.a)({},r.class,r.class));return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)("figure",{style:u,className:b},Object(pe.createElement)("blockquote",{style:m,className:d},Object(pe.createElement)(ue.RichText,{multiline:!0,value:i,onChange:function(e){return o({value:e})},placeholder:Object(de.__)("Write quote…")}),(!ue.RichText.isEmpty(l)||c)&&Object(pe.createElement)(ue.RichText,{value:l,placeholder:Object(de.__)("Write citation…"),onChange:function(e){return o({citation:e})},className:"wp-block-pullquote__citation"}))),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(ue.PanelColorSettings,{title:Object(de.__)("Color settings"),colorSettings:[{value:n.color,onChange:this.pullQuoteMainColorSetter,label:Object(de.__)("Main color")},{value:r.color,onChange:this.pullQuoteTextColorSetter,label:Object(de.__)("Text color")}]},s&&Object(pe.createElement)(ue.ContrastChecker,Object(Le.a)({textColor:r.color,backgroundColor:n.color},{isLargeText:!1})))))}}]),t}(pe.Component),Fi=Object(ue.withColors)({mainColor:"background-color",textColor:"color"})(Di);var Ui={name:"core/pullquote",category:"formatting",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}}},Gi=Ui.name,Wi={title:Object(de.__)("Pullquote"),description:Object(de.__)("Give special visual emphasis to a quote from your text."),icon:Mi,example:{attributes:{value:"<p>"+Object(de.__)("One of the hardest things to do in technology is disrupt yourself.")+"</p>",citation:Object(de.__)("Matt Mullenweg")}},styles:[{name:"default",label:Object(de._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(de.__)("Solid color")}],supports:{align:["left","right","wide","full"]},edit:Fi,save:function(e){var t,n,r=e.attributes,o=r.mainColor,c=r.customMainColor,a=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className;if(Object(me.includes)(u,Ii)){var b=Object(ue.getColorClassName)("background-color",o);t=Oe()(Object(le.a)({"has-background":b||c},b,b)),n={backgroundColor:b?void 0:c}}else c&&(n={borderColor:c});var m=Object(ue.getColorClassName)("color",a),d=(a||i)&&Oe()("has-text-color",Object(le.a)({},m,m)),p=m?void 0:{color:i};return Object(pe.createElement)("figure",{className:t,style:n},Object(pe.createElement)("blockquote",{className:d,style:p},Object(pe.createElement)(ue.RichText.Content,{value:l,multiline:!0}),!ue.RichText.isEmpty(s)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"cite",value:s})))},deprecated:Vi},qi=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).titleField=Object(pe.createRef)(),e.editButton=Object(pe.createRef)(),e.handleFormSubmit=e.handleFormSubmit.bind(Object(qe.a)(e)),e.handleTitleChange=e.handleTitleChange.bind(Object(qe.a)(e)),e.handleTitleKeyDown=e.handleTitleKeyDown.bind(Object(qe.a)(e)),e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"componentDidMount",value:function(){this.props.isEditing&&this.titleField.current&&this.titleField.current.select()}},{key:"componentDidUpdate",value:function(e){!e.isEditing&&this.props.isEditing&&this.titleField.current.select(),!e.isEditing&&!e.isSaving||this.props.isEditing||this.props.isSaving||this.editButton.current.focus()}},{key:"handleFormSubmit",value:function(e){e.preventDefault(),this.props.onSave()}},{key:"handleTitleChange",value:function(e){this.props.onChangeTitle(e.target.value)}},{key:"handleTitleKeyDown",value:function(e){e.keyCode===kn.ESCAPE&&(e.stopPropagation(),this.props.onCancel())}},{key:"render",value:function(){var e=this.props,t=e.isEditing,n=e.title,r=e.isSaving,o=e.isEditDisabled,c=e.onEdit,a=e.instanceId;return Object(pe.createElement)(pe.Fragment,null,!t&&!r&&Object(pe.createElement)("div",{className:"reusable-block-edit-panel"},Object(pe.createElement)("b",{className:"reusable-block-edit-panel__info"},n),Object(pe.createElement)(Ce.Button,{ref:this.editButton,isSecondary:!0,className:"reusable-block-edit-panel__button",disabled:o,onClick:c},Object(de.__)("Edit"))),(t||r)&&Object(pe.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:this.handleFormSubmit},Object(pe.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(a),className:"reusable-block-edit-panel__label"},Object(de.__)("Name:")),Object(pe.createElement)("input",{ref:this.titleField,type:"text",disabled:r,className:"reusable-block-edit-panel__title",value:n,onChange:this.handleTitleChange,onKeyDown:this.handleTitleKeyDown,id:"reusable-block-edit-panel__title-".concat(a)}),Object(pe.createElement)(Ce.Button,{type:"submit",isSecondary:!0,isBusy:r,disabled:!n||r,className:"reusable-block-edit-panel__button"},Object(de.__)("Save"))))}}]),t}(pe.Component),Zi=Object(Ee.withInstanceId)(qi),Ki=function(e){function t(e){var n,r=e.reusableBlock;return Object(Fe.a)(this,t),(n=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).startEditing=n.startEditing.bind(Object(qe.a)(n)),n.stopEditing=n.stopEditing.bind(Object(qe.a)(n)),n.setBlocks=n.setBlocks.bind(Object(qe.a)(n)),n.setTitle=n.setTitle.bind(Object(qe.a)(n)),n.save=n.save.bind(Object(qe.a)(n)),n.state=r?{isEditing:r.isTemporary,title:r.title,blocks:Object(be.parse)(r.content)}:{isEditing:!1,title:null,blocks:[]},n}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"componentDidMount",value:function(){this.props.reusableBlock||this.props.fetchReusableBlock()}},{key:"componentDidUpdate",value:function(e){e.reusableBlock!==this.props.reusableBlock&&null===this.state.title&&this.setState({title:this.props.reusableBlock.title,blocks:Object(be.parse)(this.props.reusableBlock.content)})}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,blocks:Object(be.parse)(e.content)})}},{key:"stopEditing",value:function(){this.setState({isEditing:!1,title:null,blocks:[]})}},{key:"setBlocks",value:function(e){this.setState({blocks:e})}},{key:"setTitle",value:function(e){this.setState({title:e})}},{key:"save",value:function(){var e=this.props,t=e.onChange,n=e.onSave,r=this.state,o=r.blocks;t({title:r.title,content:Object(be.serialize)(o)}),n(),this.stopEditing()}},{key:"render",value:function(){var e=this.props,t=e.isSelected,n=e.reusableBlock,r=e.isFetching,o=e.isSaving,c=e.canUpdateBlock,a=e.settings,i=this.state,l=i.isEditing,s=i.title,u=i.blocks;if(!n&&r)return Object(pe.createElement)(Ce.Placeholder,null,Object(pe.createElement)(Ce.Spinner,null));if(!n)return Object(pe.createElement)(Ce.Placeholder,null,Object(de.__)("Block has been deleted or is unavailable."));var b=Object(pe.createElement)(ue.BlockEditorProvider,{settings:a,value:u,onChange:this.setBlocks,onInput:this.setBlocks},Object(pe.createElement)(ue.WritingFlow,null,Object(pe.createElement)(ue.BlockList,null)));return l||(b=Object(pe.createElement)(Ce.Disabled,null,b)),Object(pe.createElement)("div",{className:"block-library-block__reusable-block-container"},(t||l)&&Object(pe.createElement)(Zi,{isEditing:l,title:null!==s?s:n.title,isSaving:o&&!n.isTemporary,isEditDisabled:!c,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),b)}}]),t}(pe.Component),$i=Object(Ee.compose)([Object(xe.withSelect)((function(e,t){var n=e("core/editor"),r=n.__experimentalGetReusableBlock,o=n.__experimentalIsFetchingReusableBlock,c=n.__experimentalIsSavingReusableBlock,a=e("core").canUser,i=e("core/block-editor"),l=i.__experimentalGetParsedReusableBlock,s=i.getSettings,u=t.attributes.ref,b=r(u);return{reusableBlock:b,isFetching:o(u),isSaving:c(u),blocks:b?l(b.id):null,canUpdateBlock:!!b&&!b.isTemporary&&!!a("update","blocks",u),settings:s()}})),Object(xe.withDispatch)((function(e,t){var n=e("core/editor"),r=n.__experimentalFetchReusableBlocks,o=n.__experimentalUpdateReusableBlock,c=n.__experimentalSaveReusableBlock,a=t.attributes.ref;return{fetchReusableBlock:Object(me.partial)(r,a),onChange:Object(me.partial)(o,a),onSave:Object(me.partial)(c,a)}}))])(Ki),Qi="core/block",Ji={title:Object(de.__)("Reusable Block"),category:"reusable",description:Object(de.__)("Create content, and save it for you and other contributors to reuse across your site. Update the block, and the changes apply everywhere it’s used."),supports:{customClassName:!1,html:!1,inserter:!1},edit:$i},Yi=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(he.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"})),Xi=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.feedURL},e.toggleAttribute=e.toggleAttribute.bind(Object(qe.a)(e)),e.onSubmitURL=e.onSubmitURL.bind(Object(qe.a)(e)),e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"toggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(le.a)({},e,!n))}}},{key:"onSubmitURL",value:function(e){e.preventDefault(),this.props.attributes.feedURL&&this.setState({editing:!1})}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.blockLayout,r=t.columns,o=t.displayAuthor,c=t.displayExcerpt,a=t.displayDate,i=t.excerptLength,l=t.feedURL,s=t.itemsToShow,u=this.props.setAttributes;if(this.state.editing)return Object(pe.createElement)(Ce.Placeholder,{icon:Yi,label:"RSS"},Object(pe.createElement)("form",{onSubmit:this.onSubmitURL,className:"blocks-rss__placeholder-form"},Object(pe.createElement)(Ce.TextControl,{placeholder:Object(de.__)("Enter URL here…"),value:l,onChange:function(e){return u({feedURL:e})},className:"blocks-rss__placeholder-input"}),Object(pe.createElement)(Ce.Button,{isPrimary:!0,type:"submit"},Object(de.__)("Use URL"))));var b=[{icon:$o.a,title:Object(de.__)("Edit RSS URL"),onClick:function(){return e.setState({editing:!0})}},{icon:Ta,title:Object(de.__)("List view"),onClick:function(){return u({blockLayout:"list"})},isActive:"list"===n},{icon:Ba,title:Object(de.__)("Grid view"),onClick:function(){return u({blockLayout:"grid"})},isActive:"grid"===n}];return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(Ce.ToolbarGroup,{controls:b})),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("RSS settings")},Object(pe.createElement)(Ce.RangeControl,{label:Object(de.__)("Number of items"),value:s,onChange:function(e){return u({itemsToShow:e})},min:1,max:10,required:!0}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Display author"),checked:o,onChange:this.toggleAttribute("displayAuthor")}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Display date"),checked:a,onChange:this.toggleAttribute("displayDate")}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Display excerpt"),checked:c,onChange:this.toggleAttribute("displayExcerpt")}),c&&Object(pe.createElement)(Ce.RangeControl,{label:Object(de.__)("Max number of words in excerpt"),value:i,onChange:function(e){return u({excerptLength:e})},min:10,max:100,required:!0}),"grid"===n&&Object(pe.createElement)(Ce.RangeControl,{label:Object(de.__)("Columns"),value:r,onChange:function(e){return u({columns:e})},min:2,max:6,required:!0}))),Object(pe.createElement)(Ce.Disabled,null,Object(pe.createElement)(Kn.a,{block:"core/rss",attributes:this.props.attributes})))}}]),t}(pe.Component),el="core/rss",tl={title:Object(de.__)("RSS"),description:Object(de.__)("Display entries from any RSS or Atom feed."),icon:Yi,category:"widgets",keywords:[Object(de.__)("atom"),Object(de.__)("feed")],supports:{align:!0,html:!1},example:{attributes:{feedURL:"https://wordpress.org"}},edit:Xi},nl=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(pe.createElement)(he.Path,{d:"M12.14 4.18c1.87 1.87 2.11 4.75.72 6.89.12.1.22.21.36.31.2.16.47.36.81.59.34.24.56.39.66.47.42.31.73.57.94.78.32.32.6.65.84 1 .25.35.44.69.59 1.04.14.35.21.68.18 1-.02.32-.14.59-.36.81s-.49.34-.81.36c-.31.02-.65-.04-.99-.19-.35-.14-.7-.34-1.04-.59-.35-.24-.68-.52-1-.84-.21-.21-.47-.52-.77-.93-.1-.13-.25-.35-.47-.66-.22-.32-.4-.57-.56-.78-.16-.2-.29-.35-.44-.5-2.07 1.09-4.69.76-6.44-.98-2.14-2.15-2.14-5.64 0-7.78 2.15-2.15 5.63-2.15 7.78 0zm-1.41 6.36c1.36-1.37 1.36-3.58 0-4.95-1.37-1.37-3.59-1.37-4.95 0-1.37 1.37-1.37 3.58 0 4.95 1.36 1.37 3.58 1.37 4.95 0z"}));var rl="core/search",ol={title:Object(de.__)("Search"),description:Object(de.__)("Help visitors find your content."),icon:nl,category:"widgets",keywords:[Object(de.__)("find")],supports:{align:!0},example:{},edit:function(e){var t=e.className,n=e.attributes,r=e.setAttributes,o=n.label,c=n.placeholder,a=n.buttonText;return Object(pe.createElement)("div",{className:t},Object(pe.createElement)(ue.RichText,{className:"wp-block-search__label","aria-label":Object(de.__)("Label text"),placeholder:Object(de.__)("Add label…"),withoutInteractiveFormatting:!0,value:o,onChange:function(e){return r({label:e})}}),Object(pe.createElement)("input",{className:"wp-block-search__input","aria-label":Object(de.__)("Optional placeholder text"),placeholder:c?void 0:Object(de.__)("Optional placeholder…"),value:c,onChange:function(e){return r({placeholder:e.target.value})}}),Object(pe.createElement)(ue.RichText,{className:"wp-block-search__button","aria-label":Object(de.__)("Button text"),placeholder:Object(de.__)("Add button text…"),withoutInteractiveFormatting:!0,value:a,onChange:function(e){return r({buttonText:e})}}))}},cl=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"})),al=[{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=t.textColor,c=t.customTextColor,a=Object(ue.getColorClassName)("background-color",n),i=Object(ue.getColorClassName)("color",o),l=Oe()(a,{"has-text-color":o||c,"has-background":n||r}),s={backgroundColor:a?void 0:r,color:i?void 0:c};return Object(pe.createElement)("div",{className:l,style:s},Object(pe.createElement)("div",{className:"wp-block-group__inner-container"},Object(pe.createElement)(ue.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=Object(ue.getColorClassName)("background-color",n),c=Oe()(o,{"has-background":n||r}),a={backgroundColor:o?void 0:r};return Object(pe.createElement)("div",{className:c,style:a},Object(pe.createElement)(ue.InnerBlocks.Content,null))}}];var il=Object(Ee.compose)([Object(xe.withSelect)((function(e,t){var n=t.clientId,r=(0,e("core/block-editor").getBlock)(n);return{hasInnerBlocks:!(!r||!r.innerBlocks.length)}}))])((function(e){var t=e.hasInnerBlocks,n=e.className,r=Object(pe.useRef)(),o=Object(ue.__experimentalUseColors)([{name:"textColor",property:"color"},{name:"backgroundColor",className:"has-background"}],{contrastCheckers:[{backgroundColor:!0,textColor:!0}],colorDetector:{targetRef:r}}),c=o.TextColor,a=o.BackgroundColor,i=o.InspectorControlsColorPanel;return Object(pe.createElement)(pe.Fragment,null,i,Object(pe.createElement)(a,null,Object(pe.createElement)(c,null,Object(pe.createElement)("div",{className:n,ref:r},Object(pe.createElement)("div",{className:"wp-block-group__inner-container"},Object(pe.createElement)(ue.InnerBlocks,{renderAppender:!t&&ue.InnerBlocks.ButtonBlockAppender}))))))}));var ll={name:"core/group",category:"layout",attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}}},sl=ll.name,ul={title:Object(de.__)("Group"),icon:cl,description:Object(de.__)("A block that groups other blocks."),keywords:[Object(de.__)("container"),Object(de.__)("wrapper"),Object(de.__)("row"),Object(de.__)("section")],example:{attributes:{customBackgroundColor:"#ffffff",customTextColor:"#000000"},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:Object(de.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:Object(de.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:Object(de.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:Object(de.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:Object(de.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:Object(de.__)("Six.")}}]},supports:{align:["wide","full"],anchor:!0,html:!1},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:function(e){if(1!==e.length||"core/group"!==e[0].name){var t=["wide","full"],n=e.reduce((function(e,n){var r=n.attributes.align;return t.indexOf(r)>t.indexOf(e)?r:e}),void 0),r=e.map((function(e){return Object(be.createBlock)(e.name,e.attributes,e.innerBlocks)}));return Object(be.createBlock)("core/group",{align:n},r)}}}]},edit:il,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=t.textColor,c=t.customTextColor,a=Object(ue.getColorClassName)("background-color",n),i=Object(ue.getColorClassName)("color",o),l=Oe()(a,i,{"has-text-color":o||c,"has-background":n||r}),s={backgroundColor:a?void 0:r,color:i?void 0:c};return Object(pe.createElement)("div",{className:l,style:s},Object(pe.createElement)("div",{className:"wp-block-group__inner-container"},Object(pe.createElement)(ue.InnerBlocks.Content,null)))},deprecated:al},bl=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M20.2 7v4H3.8V7H2.2v9h1.6v-3.5h16.4V16h1.6V7z"})),ml=function(e){var t=e.color,n=e.setColor;return Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(ue.PanelColorSettings,{title:Object(de.__)("Color settings"),colorSettings:[{value:t.color,onChange:n,label:Object(de.__)("Color")}]}))};var dl=Object(ue.withColors)("color",{textColor:"color"})((function(e){var t=e.color,n=e.setColor,r=e.className;return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(Ce.HorizontalRule,{className:Oe()(r,Object(le.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}}),Object(pe.createElement)(ml,{color:t,setColor:n}))}));var pl={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(be.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},hl={name:"core/separator",category:"layout",attributes:{color:{type:"string"},customColor:{type:"string"}}},gl=hl.name,fl={title:Object(de.__)("Separator"),description:Object(de.__)("Create a break between ideas or sections with a horizontal separator."),icon:bl,keywords:[Object(de.__)("horizontal-line"),"hr",Object(de.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(de.__)("Default"),isDefault:!0},{name:"wide",label:Object(de.__)("Wide Line")},{name:"dots",label:Object(de.__)("Dots")}],transforms:pl,edit:dl,save:function(e){var t,n=e.attributes,r=n.color,o=n.customColor,c=Object(ue.getColorClassName)("background-color",r),a=Object(ue.getColorClassName)("color",r),i=Oe()((t={"has-text-color has-background":r||o},Object(le.a)(t,c,c),Object(le.a)(t,a,a),t)),l={backgroundColor:c?void 0:o,color:a?void 0:o};return Object(pe.createElement)("hr",{className:i,style:l})}},Ol=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"})),vl=n(114);var jl=n(80),yl={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var n=t.content;return Object(jl.removep)(Object(jl.autop)(n))}}},priority:20}]},wl={name:"core/shortcode",category:"widgets",attributes:{text:{type:"string",source:"html"}}},_l=wl.name,kl={title:Object(de.__)("Shortcode"),description:Object(de.__)("Insert additional custom elements with a WordPress shortcode."),icon:Ol,transforms:yl,supports:{customClassName:!1,className:!1,html:!1},edit:function e(t){var n=t.attributes,r=t.setAttributes,o=Object(Ee.useInstanceId)(e),c="blocks-shortcode-input-".concat(o);return Object(pe.createElement)("div",{className:"wp-block-shortcode components-placeholder"},Object(pe.createElement)("label",{htmlFor:c,className:"components-placeholder__label"},Object(pe.createElement)(vl.a,{icon:Ol}),Object(de.__)("Shortcode")),Object(pe.createElement)(ue.PlainText,{className:"input-control",id:c,value:n.text,placeholder:Object(de.__)("Write shortcode here…"),onChange:function(e){return r({text:e})}}))},save:function(e){var t=e.attributes;return Object(pe.createElement)(pe.RawHTML,null,t.text)}},Cl=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M19 5v-.8h-6.5v1.6h4.7L5.8 17.2V12H4.2v7H5v.8h7v-1.6H6.8L18.2 6.8v4.7h1.6V5z"})),El=Object(Ee.compose)([Object(xe.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),Ee.withInstanceId])((function(e){var t=e.attributes,n=e.isSelected,r=e.setAttributes,o=e.instanceId,c=e.onResizeStart,a=e.onResizeStop,i=t.height,l="block-spacer-height-input-".concat(o),s=Object(pe.useState)(i),u=Object(ke.a)(s,2),b=u[0],m=u[1];return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(Ce.ResizableBox,{className:Oe()("block-library-spacer__resize-container",{"is-selected":n}),size:{height:i},minHeight:"20",enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:c,onResizeStop:function(e,t,n,o){a();var c=parseInt(i+o.height,10);r({height:c}),m(c)}}),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Spacer settings")},Object(pe.createElement)(Ce.BaseControl,{label:Object(de.__)("Height in pixels"),id:l},Object(pe.createElement)("input",{type:"number",id:l,onChange:function(e){var t=parseInt(e.target.value,10);m(t),isNaN(t)?(m(""),t=100):t<20&&(t=20),r({height:t})},value:b,min:"20",step:"10"})))))}));var xl={name:"core/spacer",category:"layout",attributes:{height:{type:"number",default:100}}},Sl=xl.name,Pl={title:Object(de.__)("Spacer"),description:Object(de.__)("Add white space between blocks and customize its height."),icon:Cl,edit:El,save:function(e){var t=e.attributes;return Object(pe.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}},Tl=n(38),Bl=n.n(Tl);var Nl={to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(be.createBlock)("core/paragraph",e)}}]},zl={name:"core/subhead",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p"}}},Ml=zl.name,Il={title:Object(de.__)("Subheading (deprecated)"),description:Object(de.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Object(pe.createElement)(Ce.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"})),supports:{inserter:!1,multiple:!1},transforms:Nl,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=t.align,c=t.content,a=t.placeholder;return Bl()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ue.AlignmentToolbar,{value:o,onChange:function(e){n({align:e})}})),Object(pe.createElement)(ue.RichText,{tagName:"p",value:c,onChange:function(e){n({content:e})},style:{textAlign:o},className:r,placeholder:a||Object(de.__)("Write subheading…")}))},save:function(e){var t=e.attributes,n=t.align,r=t.content;return Object(pe.createElement)(ue.RichText.Content,{tagName:"p",style:{textAlign:n},value:r})}},Rl=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.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-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})),Al=[{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,o=t.body,c=t.foot,a=t.backgroundColor;if(!r.length&&!o.length&&!c.length)return null;var i=Object(ue.getColorClassName)("background-color",a),l=Oe()(i,{"has-fixed-layout":n,"has-background":!!i}),s=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var r="t".concat(t);return Object(pe.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object(pe.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag,o=e.scope;return Object(pe.createElement)(ue.RichText.Content,{tagName:r,value:n,key:t,scope:"th"===r?o:void 0})})))})))};return Object(pe.createElement)("table",{className:l},Object(pe.createElement)(s,{type:"head",rows:r}),Object(pe.createElement)(s,{type:"body",rows:o}),Object(pe.createElement)(s,{type:"foot",rows:c}))}}],Hl=n(259),Ll=n(260),Vl=n(261),Dl=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(pe.createElement)(he.Path,{d:"M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z"})),Fl=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(pe.createElement)(he.Path,{d:"M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z"})),Ul=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(pe.createElement)(he.Path,{d:"M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z"})),Gl=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(pe.createElement)(he.Path,{d:"M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z"})),Wl=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(pe.createElement)(he.Path,{d:"M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z"})),ql=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(pe.createElement)(he.Path,{d:"M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z"})),Zl=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(he.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));function Kl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var $l=["align"];function Ql(e,t,n){if(!t)return e;var r=Object(me.pick)(e,["head","body","foot"]),o=t.sectionName,c=t.rowIndex;return Object(me.mapValues)(r,(function(e,r){return o&&o!==r?e:e.map((function(e,o){return c&&c!==o?e:{cells:e.cells.map((function(e,c){return function(e,t){if(!e||!t)return!1;switch(t.type){case"column":return"column"===t.type&&e.columnIndex===t.columnIndex;case"cell":return"cell"===t.type&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}({sectionName:r,columnIndex:c,rowIndex:o},t)?n(e):e}))}}))}))}function Jl(e,t){var n=t.sectionName,r=t.rowIndex,o=t.columnCount,c=function(e){return es(e.head)?es(e.body)?es(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),a=void 0===o?Object(me.get)(c,["cells","length"]):o;return a?Object(le.a)({},n,[].concat(Object(ie.a)(e[n].slice(0,r)),[{cells:Object(me.times)(a,(function(e){var t=Object(me.get)(c,["cells",e],{});return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kl(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(me.pick)(t,$l),{content:"",tag:"head"===n?"th":"td"})}))}],Object(ie.a)(e[n].slice(r)))):e}function Yl(e,t){var n=t.columnIndex,r=Object(me.pick)(e,["head","body","foot"]);return Object(me.mapValues)(r,(function(e,t){return es(e)?e:e.map((function(e){return ts(e)||e.cells.length<n?e:{cells:[].concat(Object(ie.a)(e.cells.slice(0,n)),[{content:"",tag:"head"===t?"th":"td"}],Object(ie.a)(e.cells.slice(n)))}}))}))}function Xl(e,t){return es(e[t])?Jl(e,{sectionName:t,rowIndex:0,columnCount:Object(me.get)(e,["body",0,"cells","length"],1)}):Object(le.a)({},t,[])}function es(e){return!e||!e.length||Object(me.every)(e,ts)}function ts(e){return!(e.cells&&e.cells.length)}function ns(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ns(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ns(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var os=[{color:"#f3f4f5",name:"Subtle light gray",slug:"subtle-light-gray"},{color:"#e9fbe5",name:"Subtle pale green",slug:"subtle-pale-green"},{color:"#e7f5fe",name:"Subtle pale blue",slug:"subtle-pale-blue"},{color:"#fcf0ef",name:"Subtle pale pink",slug:"subtle-pale-pink"}],cs=[{icon:Hl.a,title:Object(de.__)("Align Column Left"),align:"left"},{icon:Ll.a,title:Object(de.__)("Align Column Center"),align:"center"},{icon:Vl.a,title:Object(de.__)("Align Column Right"),align:"right"}],as=Object(ue.createCustomColorsHOC)(os),is=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).onCreateTable=e.onCreateTable.bind(Object(qe.a)(e)),e.onChangeFixedLayout=e.onChangeFixedLayout.bind(Object(qe.a)(e)),e.onChange=e.onChange.bind(Object(qe.a)(e)),e.onChangeInitialColumnCount=e.onChangeInitialColumnCount.bind(Object(qe.a)(e)),e.onChangeInitialRowCount=e.onChangeInitialRowCount.bind(Object(qe.a)(e)),e.renderSection=e.renderSection.bind(Object(qe.a)(e)),e.getTableControls=e.getTableControls.bind(Object(qe.a)(e)),e.onInsertRow=e.onInsertRow.bind(Object(qe.a)(e)),e.onInsertRowBefore=e.onInsertRowBefore.bind(Object(qe.a)(e)),e.onInsertRowAfter=e.onInsertRowAfter.bind(Object(qe.a)(e)),e.onDeleteRow=e.onDeleteRow.bind(Object(qe.a)(e)),e.onInsertColumn=e.onInsertColumn.bind(Object(qe.a)(e)),e.onInsertColumnBefore=e.onInsertColumnBefore.bind(Object(qe.a)(e)),e.onInsertColumnAfter=e.onInsertColumnAfter.bind(Object(qe.a)(e)),e.onDeleteColumn=e.onDeleteColumn.bind(Object(qe.a)(e)),e.onToggleHeaderSection=e.onToggleHeaderSection.bind(Object(qe.a)(e)),e.onToggleFooterSection=e.onToggleFooterSection.bind(Object(qe.a)(e)),e.onChangeColumnAlignment=e.onChangeColumnAlignment.bind(Object(qe.a)(e)),e.getCellAlignment=e.getCellAlignment.bind(Object(qe.a)(e)),e.state={initialRowCount:2,initialColumnCount:2,selectedCell:null},e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"onChangeInitialColumnCount",value:function(e){this.setState({initialColumnCount:e})}},{key:"onChangeInitialRowCount",value:function(e){this.setState({initialRowCount:e})}},{key:"onCreateTable",value:function(e){e.preventDefault();var t,n,r,o=this.props.setAttributes,c=this.state,a=c.initialRowCount,i=c.initialColumnCount;a=parseInt(a,10)||2,i=parseInt(i,10)||2,o((n=(t={rowCount:a,columnCount:i}).rowCount,r=t.columnCount,{body:Object(me.times)(n,(function(){return{cells:Object(me.times)(r,(function(){return{content:"",tag:"td"}}))}}))}))}},{key:"onChangeFixedLayout",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({hasFixedLayout:!t.hasFixedLayout})}},{key:"onChange",value:function(e){var t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes;(0,n.setAttributes)(Ql(r,t,(function(t){return rs({},t,{content:e})})))}}},{key:"onChangeColumnAlignment",value:function(e){var t=this.state.selectedCell;if(t){var n={type:"column",columnIndex:t.columnIndex},r=this.props,o=r.attributes;(0,r.setAttributes)(Ql(o,n,(function(t){return rs({},t,{align:e})})))}}},{key:"getCellAlignment",value:function(){var e=this.state.selectedCell;if(e){var t,n,r,o,c,a,i=this.props.attributes;return t=i,r="align",o=(n=e).sectionName,c=n.rowIndex,a=n.columnIndex,Object(me.get)(t,[o,c,"cells",a,r])}}},{key:"onToggleHeaderSection",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)(Xl(t,"head"))}},{key:"onToggleFooterSection",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)(Xl(t,"foot"))}},{key:"onInsertRow",value:function(e){var t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,c=t.sectionName,a=t.rowIndex;this.setState({selectedCell:null}),o(Jl(r,{sectionName:c,rowIndex:a+e}))}}},{key:"onInsertRowBefore",value:function(){this.onInsertRow(0)}},{key:"onInsertRowAfter",value:function(){this.onInsertRow(1)}},{key:"onDeleteRow",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,n=t.attributes,r=t.setAttributes,o=e.sectionName,c=e.rowIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.sectionName,r=t.rowIndex;return Object(le.a)({},n,e[n].filter((function(e,t){return t!==r})))}(n,{sectionName:o,rowIndex:c}))}}},{key:"onInsertColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,c=t.columnIndex;this.setState({selectedCell:null}),o(Yl(r,{columnIndex:c+e}))}}},{key:"onInsertColumnBefore",value:function(){this.onInsertColumn(0)}},{key:"onInsertColumnAfter",value:function(){this.onInsertColumn(1)}},{key:"onDeleteColumn",value:function(){var e=this.state.selectedCell;if(e){var t=this.props,n=t.attributes,r=t.setAttributes,o=e.sectionName,c=e.columnIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.columnIndex,r=Object(me.pick)(e,["head","body","foot"]);return Object(me.mapValues)(r,(function(e){return es(e)?e:e.map((function(e){return{cells:e.cells.length>=n?e.cells.filter((function(e,t){return t!==n})):e.cells}})).filter((function(e){return e.cells.length}))}))}(n,{sectionName:o,columnIndex:c}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:rs({},e,{type:"cell"})})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:Dl,title:Object(de.__)("Add Row Before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:Fl,title:Object(de.__)("Add Row After"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:Ul,title:Object(de.__)("Delete Row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:Gl,title:Object(de.__)("Add Column Before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:Wl,title:Object(de.__)("Add Column After"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:ql,title:Object(de.__)("Delete Column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,n=e.name,r=e.rows;if(es(r))return null;var o="t".concat(n);return Object(pe.createElement)(o,null,r.map((function(e,r){var o=e.cells;return Object(pe.createElement)("tr",{key:r},o.map((function(e,o){var c=e.content,a=e.tag,i=e.scope,l=e.align,s={sectionName:n,rowIndex:r,columnIndex:o},u=Oe()(Object(le.a)({},"has-text-align-".concat(l),l),"wp-block-table__cell-content"),b="";return"head"===n?b=Object(de.__)("Header label"):"foot"===n&&(b=Object(de.__)("Footer label")),Object(pe.createElement)(ue.RichText,{tagName:a,key:o,className:u,scope:"th"===a?i:void 0,value:c,onChange:t.onChange,unstableOnFocus:t.createOnFocus(s),placeholder:b})})))})))}},{key:"componentDidUpdate",value:function(){var e=this.props.isSelected,t=this.state.selectedCell;!e&&t&&this.setState({selectedCell:null})}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.className,o=t.backgroundColor,c=t.setBackgroundColor,a=t.setAttributes,i=this.state,l=i.initialRowCount,s=i.initialColumnCount,u=n.hasFixedLayout,b=n.caption,m=n.head,d=n.body,p=n.foot,h=es(m)&&es(d)&&es(p),g=this.renderSection;if(h)return Object(pe.createElement)(Ce.Placeholder,{label:Object(de.__)("Table"),icon:Object(pe.createElement)(ue.BlockIcon,{icon:Rl,showColors:!0}),instructions:Object(de.__)("Insert a table for sharing data.")},Object(pe.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:this.onCreateTable},Object(pe.createElement)(Ce.TextControl,{type:"number",label:Object(de.__)("Column Count"),value:s,onChange:this.onChangeInitialColumnCount,min:"1",className:"blocks-table__placeholder-input"}),Object(pe.createElement)(Ce.TextControl,{type:"number",label:Object(de.__)("Row Count"),value:l,onChange:this.onChangeInitialRowCount,min:"1",className:"blocks-table__placeholder-input"}),Object(pe.createElement)(Ce.Button,{className:"blocks-table__placeholder-button",isPrimary:!0,type:"submit"},Object(de.__)("Create Table"))));var f=Oe()(o.class,{"has-fixed-layout":u,"has-background":!!o.color});return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(Ce.ToolbarGroup,null,Object(pe.createElement)(Ce.DropdownMenu,{hasArrowIndicator:!0,icon:Zl,label:Object(de.__)("Edit table"),controls:this.getTableControls()})),Object(pe.createElement)(ue.AlignmentToolbar,{label:Object(de.__)("Change column alignment"),alignmentControls:cs,value:this.getCellAlignment(),onChange:function(t){return e.onChangeColumnAlignment(t)},onHover:this.onHoverAlignment})),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Table settings"),className:"blocks-table-settings"},Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Fixed width table cells"),checked:!!u,onChange:this.onChangeFixedLayout}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Header section"),checked:!(!m||!m.length),onChange:this.onToggleHeaderSection}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Footer section"),checked:!(!p||!p.length),onChange:this.onToggleFooterSection})),Object(pe.createElement)(ue.PanelColorSettings,{title:Object(de.__)("Color settings"),initialOpen:!1,colorSettings:[{value:o.color,onChange:c,label:Object(de.__)("Background color"),disableCustomColors:!0,colors:os}]})),Object(pe.createElement)("figure",{className:r},Object(pe.createElement)("table",{className:f},Object(pe.createElement)(g,{name:"head",rows:m}),Object(pe.createElement)(g,{name:"body",rows:d}),Object(pe.createElement)(g,{name:"foot",rows:p})),Object(pe.createElement)(ue.RichText,{tagName:"figcaption",placeholder:Object(de.__)("Write caption…"),value:b,onChange:function(e){return a({caption:e})},unstableOnFocus:function(){return e.setState({selectedCell:null})}})))}}]),t}(pe.Component),ls=as("backgroundColor")(is);var ss=function(e){var t=e.phrasingContentSchema;return{tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:t,attributes:["scope"]},td:{allowEmpty:!0,children:t}}}}},us={from:[{type:"raw",selector:"table",schema:function(e){return{table:{children:{thead:{allowEmpty:!0,children:ss(e)},tfoot:{allowEmpty:!0,children:ss(e)},tbody:{allowEmpty:!0,children:ss(e)}}}}}}]},bs={name:"core/table",category:"formatting",attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}}},ms=bs.name,ds={title:Object(de.__)("Table"),description:Object(de.__)("Insert a table — perfect for sharing charts and data."),icon:Rl,example:{attributes:{head:[{cells:[{content:Object(de.__)("Version"),tag:"th"},{content:Object(de.__)("Jazz Musician"),tag:"th"},{content:Object(de.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(de.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(de.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(de.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(de._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(de.__)("Stripes")}],supports:{align:!0},transforms:us,edit:ls,save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,o=t.body,c=t.foot,a=t.backgroundColor,i=t.caption;if(!r.length&&!o.length&&!c.length)return null;var l=Object(ue.getColorClassName)("background-color",a),s=Oe()(l,{"has-fixed-layout":n,"has-background":!!l}),u=!ue.RichText.isEmpty(i),b=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var r="t".concat(t);return Object(pe.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object(pe.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag,o=e.scope,c=e.align,a=Oe()(Object(le.a)({},"has-text-align-".concat(c),c));return Object(pe.createElement)(ue.RichText.Content,{className:a||void 0,"data-align":c,tagName:r,value:n,key:t,scope:"th"===r?o:void 0})})))})))};return Object(pe.createElement)("figure",null,Object(pe.createElement)("table",{className:""===s?void 0:s},Object(pe.createElement)(b,{type:"head",rows:r}),Object(pe.createElement)(b,{type:"body",rows:o}),Object(pe.createElement)(b,{type:"foot",rows:c})),u&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:i}))},deprecated:Al};var ps={to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,n=e.columns,r=e.content,o=e.width;return Object(be.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:t,columns:n},r.map((function(e){var t=e.children;return Object(be.createBlock)("core/column",{},[Object(be.createBlock)("core/paragraph",{content:t})])})))}}]},hs={name:"core/text-columns",icon:"columns",category:"layout",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}}},gs=hs.name,fs={supports:{inserter:!1},title:Object(de.__)("Text Columns (deprecated)"),description:Object(de.__)("This block is deprecated. Please use the Columns block instead."),transforms:ps,getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=t.width,c=t.content,a=t.columns;return Bl()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ue.BlockAlignmentToolbar,{value:o,onChange:function(e){return n({width:e})},controls:["center","wide","full"]})),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,null,Object(pe.createElement)(Ce.RangeControl,{label:Object(de.__)("Columns"),value:a,onChange:function(e){return n({columns:e})},min:2,max:4,required:!0}))),Object(pe.createElement)("div",{className:"".concat(r," align").concat(o," columns-").concat(a)},Object(me.times)(a,(function(e){return Object(pe.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(pe.createElement)(ue.RichText,{tagName:"p",value:Object(me.get)(c,[e,"children"]),onChange:function(t){n({content:[].concat(Object(ie.a)(c.slice(0,e)),[{children:t}],Object(ie.a)(c.slice(e+1)))})},placeholder:Object(de.__)("New Column")}))}))))},save:function(e){var t=e.attributes,n=t.width,r=t.content,o=t.columns;return Object(pe.createElement)("div",{className:"align".concat(n," columns-").concat(o)},Object(me.times)(o,(function(e){return Object(pe.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(pe.createElement)(ue.RichText.Content,{tagName:"p",value:Object(me.get)(r,[e,"children"])}))})))}},Os=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})),vs=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content;return Object(pe.createElement)(ue.RichText.Content,{tagName:"pre",style:{textAlign:n},value:r})}}];var js={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(be.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(be.createBlock)("core/paragraph",e)}}]},ys={name:"core/verse",category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0},textAlign:{type:"string"}}},ws=ys.name,_s={title:Object(de.__)("Verse"),description:Object(de.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:Os,example:{attributes:{content:Object(de.__)("WHAT was he doing, the great god Pan,\n\tDown in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.")}},keywords:[Object(de.__)("poetry"),Object(de.__)("poem")],transforms:js,deprecated:vs,merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=e.mergeBlocks,c=t.textAlign,a=t.content;return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ue.AlignmentToolbar,{value:c,onChange:function(e){n({textAlign:e})}})),Object(pe.createElement)(ue.RichText,{tagName:"pre",preserveWhiteSpace:!0,value:a,onChange:function(e){n({content:e})},placeholder:Object(de.__)("Write…"),className:Oe()(r,Object(le.a)({},"has-text-align-".concat(c),c)),onMerge:o}))},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content,o=Oe()(Object(le.a)({},"has-text-align-".concat(n),n));return Object(pe.createElement)(ue.RichText.Content,{tagName:"pre",className:o,value:r})}},ks=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.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"})),Cs=function(e){var t=e.setAttributes,n=e.attributes,r=n.autoplay,o=n.controls,c=n.loop,a=n.muted,i=n.playsInline,l=n.preload,s=function(e){return function(n){t(Object(le.a)({},e,n))}};return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Autoplay"),onChange:s("autoplay"),checked:r,help:function(e){return e?Object(de.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Loop"),onChange:s("loop"),checked:c}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Muted"),onChange:s("muted"),checked:a}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Playback controls"),onChange:s("controls"),checked:o}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Play inline"),onChange:s("playsInline"),checked:i}),Object(pe.createElement)(Ce.SelectControl,{label:Object(de.__)("Preload"),value:l,onChange:function(e){return t({preload:e})},options:[{value:"auto",label:Object(de.__)("Auto")},{value:"metadata",label:Object(de.__)("Metadata")},{value:"none",label:Object(de.__)("None")}]}))},Es=["video"],xs=["image"],Ss=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).videoPlayer=Object(pe.createRef)(),e.posterImageButton=Object(pe.createRef)(),e.onSelectURL=e.onSelectURL.bind(Object(qe.a)(e)),e.onSelectPoster=e.onSelectPoster.bind(Object(qe.a)(e)),e.onRemovePoster=e.onRemovePoster.bind(Object(qe.a)(e)),e.onUploadError=e.onUploadError.bind(Object(qe.a)(e)),e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.mediaUpload,r=e.noticeOperations,o=e.setAttributes,c=t.id,a=t.src,i=void 0===a?"":a;if(!c&&Object(Ke.isBlobURL)(i)){var l=Object(Ke.getBlobByURL)(i);l&&n({filesList:[l],onFileChange:function(e){var t=Object(ke.a)(e,1)[0].url;o({src:t})},onError:function(e){r.createErrorNotice(e)},allowedTypes:Es})}}},{key:"componentDidUpdate",value:function(e){this.props.attributes.poster!==e.attributes.poster&&this.videoPlayer.current.load()}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var o=_t({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}}},{key:"onSelectPoster",value:function(e){(0,this.props.setAttributes)({poster:e.url})}},{key:"onRemovePoster",value:function(){(0,this.props.setAttributes)({poster:""}),this.posterImageButton.current.focus()}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.id,r=t.caption,o=t.controls,c=t.poster,a=t.src,i=this.props,l=i.className,s=i.instanceId,u=i.isSelected,b=i.noticeUI,m=i.attributes,d=i.setAttributes,p=function(e){e&&e.url?d({src:e.url,id:e.id}):d({src:void 0,id:void 0})};if(!a)return Object(pe.createElement)(ue.MediaPlaceholder,{icon:Object(pe.createElement)(ue.BlockIcon,{icon:ks}),className:l,onSelect:p,onSelectURL:this.onSelectURL,accept:"video/*",allowedTypes:Es,value:this.props.attributes,notices:b,onError:this.onUploadError});var h="video-block__poster-image-description-".concat(s);return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ue.MediaReplaceFlow,{mediaId:n,mediaURL:a,allowedTypes:Es,accept:"video/*",onSelect:p,onSelectURL:this.onSelectURL,onError:this.onUploadError})),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Video settings")},Object(pe.createElement)(Cs,{setAttributes:d,attributes:m}),Object(pe.createElement)(ue.MediaUploadCheck,null,Object(pe.createElement)(Ce.BaseControl,{className:"editor-video-poster-control"},Object(pe.createElement)(Ce.BaseControl.VisualLabel,null,Object(de.__)("Poster image")),Object(pe.createElement)(ue.MediaUpload,{title:Object(de.__)("Select poster image"),onSelect:this.onSelectPoster,allowedTypes:xs,render:function(t){var n=t.open;return Object(pe.createElement)(Ce.Button,{isSecondary:!0,onClick:n,ref:e.posterImageButton,"aria-describedby":h},e.props.attributes.poster?Object(de.__)("Replace image"):Object(de.__)("Select Poster Image"))}}),Object(pe.createElement)("p",{id:h,hidden:!0},this.props.attributes.poster?Object(de.sprintf)(Object(de.__)("The current poster image url is %s"),this.props.attributes.poster):Object(de.__)("There is no poster image currently selected")),!!this.props.attributes.poster&&Object(pe.createElement)(Ce.Button,{onClick:this.onRemovePoster,isLink:!0,isDestructive:!0},Object(de.__)("Remove Poster Image")))))),Object(pe.createElement)("figure",{className:l},Object(pe.createElement)(Ce.Disabled,null,Object(pe.createElement)("video",{controls:o,poster:c,src:a,ref:this.videoPlayer})),(!ue.RichText.isEmpty(r)||u)&&Object(pe.createElement)(ue.RichText,{tagName:"figcaption",placeholder:Object(de.__)("Write caption…"),value:r,onChange:function(e){return d({caption:e})},inlineToolbar:!0})))}}]),t}(pe.Component),Ps=Object(Ee.compose)([Object(xe.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),Ce.withNotices,Ee.withInstanceId])(Ss);var Ts={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("video/")},transform:function(e){var t=e[0];return Object(be.createBlock)("core/video",{src:Object(Ke.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,n=t.src,r=t.mp4,o=t.m4v,c=t.webm,a=t.ogv,i=t.flv;return n||r||o||c||a||i}},poster:{type:"string",shortcode:function(e){return e.named.poster}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},Bs={name:"core/video",category:"common",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"}}},Ns=Bs.name,zs={title:Object(de.__)("Video"),description:Object(de.__)("Embed a video from your media library or upload a new one."),icon:ks,keywords:[Object(de.__)("movie")],transforms:Ts,supports:{align:!0},edit:Ps,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.controls,c=t.loop,a=t.muted,i=t.poster,l=t.preload,s=t.src,u=t.playsInline;return Object(pe.createElement)("figure",null,s&&Object(pe.createElement)("video",{autoPlay:n,controls:o,loop:c,muted:a,poster:i,preload:"metadata"!==l?l:void 0,src:s,playsInline:u}),!ue.RichText.isEmpty(r)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:r}))}},Ms=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(he.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"})),Is=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.taxonomy},e.setTaxonomy=e.setTaxonomy.bind(Object(qe.a)(e)),e.toggleShowTagCounts=e.toggleShowTagCounts.bind(Object(qe.a)(e)),e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"getTaxonomyOptions",value:function(){var e=Object(me.filter)(this.props.taxonomies,"show_cloud"),t={label:Object(de.__)("- Select -"),value:"",disabled:!0},n=Object(me.map)(e,(function(e){return{value:e.slug,label:e.name}}));return[t].concat(Object(ie.a)(n))}},{key:"setTaxonomy",value:function(e){(0,this.props.setAttributes)({taxonomy:e})}},{key:"toggleShowTagCounts",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)({showTagCounts:!t.showTagCounts})}},{key:"render",value:function(){var e=this.props.attributes,t=e.taxonomy,n=e.showTagCounts,r=this.getTaxonomyOptions(),o=Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Tag Cloud settings")},Object(pe.createElement)(Ce.SelectControl,{label:Object(de.__)("Taxonomy"),options:r,value:t,onChange:this.setTaxonomy}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Show post counts"),checked:n,onChange:this.toggleShowTagCounts})));return Object(pe.createElement)(pe.Fragment,null,o,Object(pe.createElement)(Kn.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:e}))}}]),t}(pe.Component),Rs=Object(xe.withSelect)((function(e){return{taxonomies:e("core").getTaxonomies()}}))(Is),As="core/tag-cloud",Hs={title:Object(de.__)("Tag Cloud"),description:Object(de.__)("A cloud of your most used tags."),icon:Ms,category:"widgets",supports:{html:!1,align:!0},edit:Rs},Ls=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"}));function Vs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vs(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fs=window.wp;var Us=function(e){function t(e){var n;return Object(Fe.a)(this,t),(n=Object(Ge.a)(this,Object(We.a)(t).call(this,e))).initialize=n.initialize.bind(Object(qe.a)(n)),n.onSetup=n.onSetup.bind(Object(qe.a)(n)),n.focus=n.focus.bind(Object(qe.a)(n)),n}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"componentDidMount",value:function(){var e=window.wpEditorL10n.tinymce,t=e.baseURL,n=e.suffix;window.tinymce.EditorManager.overrideDefaults({base_url:t,suffix:n}),"complete"===document.readyState?this.initialize():window.addEventListener("DOMContentLoaded",this.initialize)}},{key:"componentWillUnmount",value:function(){window.addEventListener("DOMContentLoaded",this.initialize),Fs.oldEditor.remove("editor-".concat(this.props.clientId))}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.clientId,r=t.attributes.content,o=window.tinymce.get("editor-".concat(n));e.attributes.content!==r&&o.setContent(r||"")}},{key:"initialize",value:function(){var e=this.props.clientId,t=window.wpEditorL10n.tinymce.settings;Fs.oldEditor.initialize("editor-".concat(e),{tinymce:Ds({},t,{inline:!0,content_css:!1,fixed_toolbar_container:"#toolbar-".concat(e),setup:this.onSetup})})}},{key:"onSetup",value:function(e){var t,n=this,r=this.props,o=r.attributes.content,c=r.setAttributes,a=this.ref;this.editor=e,o&&e.on("loadContent",(function(){return e.setContent(o)})),e.on("blur",(function(){return t=e.selection.getBookmark(2,!0),c({content:e.getContent()}),e.once("focus",(function(){t&&e.selection.moveToBookmark(t)})),!1})),e.on("mousedown touchstart",(function(){t=null})),e.on("keydown",(function(t){t.keyCode!==kn.BACKSPACE&&t.keyCode!==kn.DELETE||!function(e){var t=e.getBody();return!(t.childNodes.length>1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(n.props.onReplace([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===kn.F10&&t.stopPropagation()})),e.addButton("kitchensink",{tooltip:Object(de._x)("More","button to expand options"),icon:"dashicon dashicons-editor-kitchensink",onClick:function(){var t=!this.active();this.active(t),e.dom.toggleClass(a,"has-advanced-toolbar",t)}}),e.on("init",(function(){e.settings.toolbar1&&-1===e.settings.toolbar1.indexOf("kitchensink")&&e.dom.addClass(a,"has-advanced-toolbar")})),e.addButton("wp_add_media",{tooltip:Object(de.__)("Insert Media"),icon:"dashicon dashicons-admin-media",cmd:"WP_Medialib"}),e.on("init",(function(){var e=n.editor.getBody();document.activeElement===e&&(e.blur(),n.editor.focus())}))}},{key:"focus",value:function(){this.editor&&this.editor.focus()}},{key:"onToolbarKeyDown",value:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},{key:"render",value:function(){var e=this,t=this.props.clientId;return[Object(pe.createElement)("div",{key:"toolbar",id:"toolbar-".concat(t),ref:function(t){return e.ref=t},className:"block-library-classic__toolbar",onClick:this.focus,"data-placeholder":Object(de.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object(pe.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})]}}]),t}(pe.Component);var Gs={name:"core/freeform",category:"formatting",attributes:{content:{type:"string",source:"html"}}},Ws=Gs.name,qs={title:Object(de._x)("Classic","block title"),description:Object(de.__)("Use the classic WordPress editor."),icon:Ls,supports:{className:!1,customClassName:!1,reusable:!1},edit:Us,save:function(e){var t=e.attributes.content;return Object(pe.createElement)(pe.RawHTML,null,t)}},Zs=["core/social-link"],Ks=[["core/social-link",{service:"wordpress",url:"https://wordpress.org"}],["core/social-link",{service:"facebook"}],["core/social-link",{service:"twitter"}],["core/social-link",{service:"instagram"}],["core/social-link",{service:"linkedin"}],["core/social-link",{service:"youtube"}]],$s=function(e){var t=e.className;return Object(pe.createElement)("div",{className:t},Object(pe.createElement)(ue.InnerBlocks,{allowedBlocks:Zs,templateLock:!1,template:Ks,__experimentalMoverDirection:"horizontal"}))};var Qs={name:"core/social-links",category:"widgets",icon:"share",attributes:{}},Js=Qs.name,Ys={title:Object(de.__)("Social Icons"),description:Object(de.__)("Display icons linking to your social media profiles or websites."),keywords:[Object(de._x)("links","block keywords")],supports:{align:["left","center","right"]},example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},styles:[{name:"default",label:Object(de.__)("Default"),isDefault:!0},{name:"logos-only",label:Object(de.__)("Logos Only")},{name:"pill-shape",label:Object(de.__)("Pill Shape")}],edit:$s,save:function(e){var t=e.className;return Object(pe.createElement)("ul",{className:t},Object(pe.createElement)(ue.InnerBlocks.Content,null))}},Xs=n(181),eu=function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M19.647,16.706a1.134,1.134,0,0,0-.343-.833l-2.549-2.549a1.134,1.134,0,0,0-.833-.343,1.168,1.168,0,0,0-.883.392l.233.226q.2.189.264.264a2.922,2.922,0,0,1,.184.233.986.986,0,0,1,.159.312,1.242,1.242,0,0,1,.043.337,1.172,1.172,0,0,1-1.176,1.176,1.237,1.237,0,0,1-.337-.043,1,1,0,0,1-.312-.159,2.76,2.76,0,0,1-.233-.184q-.073-.068-.264-.264l-.226-.233a1.19,1.19,0,0,0-.4.895,1.134,1.134,0,0,0,.343.833L15.837,19.3a1.13,1.13,0,0,0,.833.331,1.18,1.18,0,0,0,.833-.318l1.8-1.789a1.12,1.12,0,0,0,.343-.821Zm-8.615-8.64a1.134,1.134,0,0,0-.343-.833L8.163,4.7a1.134,1.134,0,0,0-.833-.343,1.184,1.184,0,0,0-.833.331L4.7,6.473a1.12,1.12,0,0,0-.343.821,1.134,1.134,0,0,0,.343.833l2.549,2.549a1.13,1.13,0,0,0,.833.331,1.184,1.184,0,0,0,.883-.38L8.728,10.4q-.2-.189-.264-.264A2.922,2.922,0,0,1,8.28,9.9a.986.986,0,0,1-.159-.312,1.242,1.242,0,0,1-.043-.337A1.172,1.172,0,0,1,9.254,8.079a1.237,1.237,0,0,1,.337.043,1,1,0,0,1,.312.159,2.761,2.761,0,0,1,.233.184q.073.068.264.264l.226.233a1.19,1.19,0,0,0,.4-.895ZM22,16.706a3.343,3.343,0,0,1-1.042,2.488l-1.8,1.789a3.536,3.536,0,0,1-4.988-.025l-2.525-2.537a3.384,3.384,0,0,1-1.017-2.488,3.448,3.448,0,0,1,1.078-2.561l-1.078-1.078a3.434,3.434,0,0,1-2.549,1.078,3.4,3.4,0,0,1-2.5-1.029L3.029,9.794A3.4,3.4,0,0,1,2,7.294,3.343,3.343,0,0,1,3.042,4.806l1.8-1.789A3.384,3.384,0,0,1,7.331,2a3.357,3.357,0,0,1,2.5,1.042l2.525,2.537a3.384,3.384,0,0,1,1.017,2.488,3.448,3.448,0,0,1-1.078,2.561l1.078,1.078a3.551,3.551,0,0,1,5.049-.049l2.549,2.549A3.4,3.4,0,0,1,22,16.706Z"}))},tu=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.Path,{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"}))}},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:"500px",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"}))}},{name:"amazon",attributes:{service:"amazon"},title:"Amazon",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"}))}},{name:"bandcamp",attributes:{service:"bandcamp"},title:"Bandcamp",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"}))}},{name:"behance",attributes:{service:"behance"},title:"Behance",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"}))}},{name:"chain",attributes:{service:"chain"},title:"Link",icon:eu},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"}))}},{name:"deviantart",attributes:{service:"deviantart"},title:"DeviantArt",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"}))}},{name:"dribbble",attributes:{service:"dribbble"},title:"Dribbble",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"}))}},{name:"dropbox",attributes:{service:"dropbox"},title:"Dropbox",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"}))}},{name:"etsy",attributes:{service:"etsy"},title:"Etsy",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"}))}},{name:"facebook",attributes:{service:"facebook"},title:"Facebook",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"}))}},{name:"feed",attributes:{service:"feed"},title:"RSS Feed",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"}))}},{name:"flickr",attributes:{service:"flickr"},title:"Flickr",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"}))}},{name:"foursquare",attributes:{service:"foursquare"},title:"Foursquare",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"}))}},{name:"goodreads",attributes:{service:"goodreads"},title:"Goodreads",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"}))}},{name:"google",attributes:{service:"google"},title:"Google",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"}))}},{name:"github",attributes:{service:"github"},title:"GitHub",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"}))}},{name:"instagram",attributes:{service:"instagram"},title:"Instagram",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"}))}},{name:"lastfm",attributes:{service:"lastfm"},title:"Last.fm",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M10.5002,0 C4.7006,0 0,4.70109753 0,10.4998496 C0,16.2989526 4.7006,21 10.5002,21 C16.299,21 21,16.2989526 21,10.4998496 C21,4.70109753 16.299,0 10.5002,0 Z M14.69735,14.7204413 C13.3164,14.7151781 12.4346,14.0870017 11.83445,12.6859357 L11.6816001,12.3451305 L10.35405,9.31011397 C9.92709997,8.26875064 8.85260001,7.57120012 7.68010001,7.57120012 C6.06945001,7.57120012 4.75925001,8.88509738 4.75925001,10.5009524 C4.75925001,12.1164565 6.06945001,13.4303036 7.68010001,13.4303036 C8.77200001,13.4303036 9.76514999,12.827541 10.2719501,11.8567047 C10.2893,11.8235214 10.3239,11.8019673 10.36305,11.8038219 C10.4007,11.8053759 10.43535,11.8287847 10.4504,11.8631709 L10.98655,13.1045863 C11.0016,13.1389726 10.9956,13.17782 10.97225,13.2068931 C10.1605001,14.1995341 8.96020001,14.7683115 7.68010001,14.7683115 C5.33305,14.7683115 3.42340001,12.8535563 3.42340001,10.5009524 C3.42340001,8.14679459 5.33300001,6.23203946 7.68010001,6.23203946 C9.45720002,6.23203946 10.8909,7.19074535 11.6138,8.86359341 C11.6205501,8.88018505 12.3412,10.5707777 12.97445,12.0190621 C13.34865,12.8739575 13.64615,13.3959676 14.6288,13.4291508 C15.5663001,13.4612814 16.25375,12.9121534 16.25375,12.1484869 C16.25375,11.4691321 15.8320501,11.3003585 14.8803,10.98216 C13.2365,10.4397989 12.34495,9.88605929 12.34495,8.51817658 C12.34495,7.1809207 13.26665,6.31615054 14.692,6.31615054 C15.62875,6.31615054 16.3155,6.7286858 16.79215,7.5768142 C16.80495,7.60062396 16.8079001,7.62814302 16.8004001,7.65420843 C16.7929,7.68027384 16.7748,7.70212868 16.7507001,7.713808 L15.86145,8.16900031 C15.8178001,8.19200805 15.7643,8.17807308 15.73565,8.13847371 C15.43295,7.71345711 15.0956,7.52513451 14.6423,7.52513451 C14.05125,7.52513451 13.6220001,7.92899802 13.6220001,8.48649708 C13.6220001,9.17382194 14.1529001,9.34144259 15.0339,9.61923972 C15.14915,9.65578139 15.26955,9.69397731 15.39385,9.73432853 C16.7763,10.1865133 17.57675,10.7311301 17.57675,12.1836251 C17.57685,13.629654 16.3389,14.7204413 14.69735,14.7204413 Z"}))}},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"}))}},{name:"mail",attributes:{service:"mail"},title:"Mail",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M20,4H4C2.895,4,2,4.895,2,6v12c0,1.105,0.895,2,2,2h16c1.105,0,2-0.895,2-2V6C22,4.895,21.105,4,20,4z M20,8.236l-8,4.882 L4,8.236V6h16V8.236z"}))}},{name:"mastodon",attributes:{service:"mastodon"},title:"Mastodon",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"}))}},{name:"meetup",attributes:{service:"meetup"},title:"Meetup",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"}))}},{name:"medium",attributes:{service:"medium"},title:"Medium",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M20.962,7.257l-5.457,8.867l-3.923-6.375l3.126-5.08c0.112-0.182,0.319-0.286,0.527-0.286c0.05,0,0.1,0.008,0.149,0.02 c0.039,0.01,0.078,0.023,0.114,0.041l5.43,2.715l0.006,0.003c0.004,0.002,0.007,0.006,0.011,0.008 C20.971,7.191,20.98,7.227,20.962,7.257z M9.86,8.592v5.783l5.14,2.57L9.86,8.592z M15.772,17.331l4.231,2.115 C20.554,19.721,21,19.529,21,19.016V8.835L15.772,17.331z M8.968,7.178L3.665,4.527C3.569,4.479,3.478,4.456,3.395,4.456 C3.163,4.456,3,4.636,3,4.938v11.45c0,0.306,0.224,0.669,0.498,0.806l4.671,2.335c0.12,0.06,0.234,0.088,0.337,0.088 c0.29,0,0.494-0.225,0.494-0.602V7.231C9,7.208,8.988,7.188,8.968,7.178z"}))}},{name:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"}))}},{name:"pocket",attributes:{service:"pocket"},title:"Pocket",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"}))}},{name:"reddit",attributes:{service:"reddit"},title:"Reddit",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M22,11.816c0-1.256-1.021-2.277-2.277-2.277c-0.593,0-1.122,0.24-1.526,0.614c-1.481-0.965-3.455-1.594-5.647-1.69 l1.171-3.702l3.18,0.748c0.008,1.028,0.846,1.862,1.876,1.862c1.035,0,1.877-0.842,1.877-1.878c0-1.035-0.842-1.877-1.877-1.877 c-0.769,0-1.431,0.466-1.72,1.13l-3.508-0.826c-0.203-0.047-0.399,0.067-0.46,0.261l-1.35,4.268 c-2.316,0.038-4.411,0.67-5.97,1.671C5.368,9.765,4.853,9.539,4.277,9.539C3.021,9.539,2,10.56,2,11.816 c0,0.814,0.433,1.523,1.078,1.925c-0.037,0.221-0.061,0.444-0.061,0.672c0,3.292,4.011,5.97,8.941,5.97s8.941-2.678,8.941-5.97 c0-0.214-0.02-0.424-0.053-0.632C21.533,13.39,22,12.661,22,11.816z M18.776,4.394c0.606,0,1.1,0.493,1.1,1.1s-0.493,1.1-1.1,1.1 s-1.1-0.494-1.1-1.1S18.169,4.394,18.776,4.394z M2.777,11.816c0-0.827,0.672-1.5,1.499-1.5c0.313,0,0.598,0.103,0.838,0.269 c-0.851,0.676-1.477,1.479-1.812,2.36C2.983,12.672,2.777,12.27,2.777,11.816z M11.959,19.606c-4.501,0-8.164-2.329-8.164-5.193 S7.457,9.22,11.959,9.22s8.164,2.329,8.164,5.193S16.46,19.606,11.959,19.606z M20.636,13.001c-0.326-0.89-0.948-1.701-1.797-2.384 c0.248-0.186,0.55-0.301,0.883-0.301c0.827,0,1.5,0.673,1.5,1.5C21.223,12.299,20.992,12.727,20.636,13.001z M8.996,14.704 c-0.76,0-1.397-0.616-1.397-1.376c0-0.76,0.637-1.397,1.397-1.397c0.76,0,1.376,0.637,1.376,1.397 C10.372,14.088,9.756,14.704,8.996,14.704z M16.401,13.328c0,0.76-0.616,1.376-1.376,1.376c-0.76,0-1.399-0.616-1.399-1.376 c0-0.76,0.639-1.397,1.399-1.397C15.785,11.931,16.401,12.568,16.401,13.328z M15.229,16.708c0.152,0.152,0.152,0.398,0,0.55 c-0.674,0.674-1.727,1.002-3.219,1.002c-0.004,0-0.007-0.002-0.011-0.002c-0.004,0-0.007,0.002-0.011,0.002 c-1.492,0-2.544-0.328-3.218-1.002c-0.152-0.152-0.152-0.398,0-0.55c0.152-0.152,0.399-0.151,0.55,0 c0.521,0.521,1.394,0.775,2.669,0.775c0.004,0,0.007,0.002,0.011,0.002c0.004,0,0.007-0.002,0.011-0.002 c1.275,0,2.148-0.253,2.669-0.775C14.831,16.556,15.078,16.556,15.229,16.708z"}))}},{name:"skype",attributes:{service:"skype"},title:"Skype",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"}))}},{name:"snapchat",attributes:{service:"snapchat"},title:"Snapchat",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"}))}},{name:"soundcloud",attributes:{service:"soundcloud"},title:"SoundCloud",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M8.9,16.1L9,14L8.9,9.5c0-0.1,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.1c0,0-0.1,0.1-0.1,0.1L8.3,14l0.1,2.1 c0,0.1,0,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1C8.8,16.3,8.9,16.3,8.9,16.1z M11.4,15.9l0.1-1.8L11.4,9c0-0.1,0-0.2-0.1-0.2 c0,0-0.1,0-0.1,0s-0.1,0-0.1,0c-0.1,0-0.1,0.1-0.1,0.2l0,0.1l-0.1,5c0,0,0,0.7,0.1,2v0c0,0.1,0,0.1,0.1,0.1c0.1,0.1,0.1,0.1,0.2,0.1 c0.1,0,0.1,0,0.2-0.1c0.1,0,0.1-0.1,0.1-0.2L11.4,15.9z M2.4,12.9L2.5,14l-0.2,1.1c0,0.1,0,0.1-0.1,0.1c0,0-0.1,0-0.1-0.1L2.1,14 l0.1-1.1C2.2,12.9,2.3,12.9,2.4,12.9C2.3,12.9,2.4,12.9,2.4,12.9z M3.1,12.2L3.3,14l-0.2,1.8c0,0.1,0,0.1-0.1,0.1 c-0.1,0-0.1,0-0.1-0.1L2.8,14L3,12.2C3,12.2,3,12.2,3.1,12.2C3.1,12.2,3.1,12.2,3.1,12.2z M3.9,11.9L4.1,14l-0.2,2.1 c0,0.1,0,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L3.5,14l0.2-2.1c0-0.1,0-0.1,0.1-0.1C3.9,11.8,3.9,11.8,3.9,11.9z M4.7,11.9L4.9,14 l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L4.3,14l0.2-2.2c0-0.1,0-0.1,0.1-0.1C4.7,11.7,4.7,11.8,4.7,11.9z M5.6,12 l0.2,2l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c0,0-0.1,0-0.1,0c0,0,0-0.1,0-0.1L5.1,14l0.2-2c0,0,0-0.1,0-0.1s0.1,0,0.1,0 C5.5,11.9,5.5,11.9,5.6,12L5.6,12z M6.4,10.7L6.6,14l-0.2,2.1c0,0,0,0.1,0,0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1-0.1-0.2-0.2L5.9,14 l0.2-3.3c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0C6.4,10.7,6.4,10.7,6.4,10.7z M7.2,10l0.2,4.1l-0.2,2.1c0,0,0,0.1,0,0.1 c0,0-0.1,0-0.1,0c-0.1,0-0.2-0.1-0.2-0.2l-0.1-2.1L6.8,10c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0S7.2,9.9,7.2,10z M8,9.6L8.2,14 L8,16.1c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2L7.5,14l0.1-4.4c0-0.1,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0.1,0,0.1,0,0.1,0.1 C8,9.6,8,9.6,8,9.6z M11.4,16.1L11.4,16.1L11.4,16.1z M9.7,9.6L9.8,14l-0.1,2.1c0,0.1,0,0.1-0.1,0.2s-0.1,0.1-0.2,0.1 c-0.1,0-0.1,0-0.1-0.1s-0.1-0.1-0.1-0.2L9.2,14l0.1-4.4c0-0.1,0-0.1,0.1-0.2s0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S9.7,9.5,9.7,9.6 L9.7,9.6z M10.6,9.8l0.1,4.3l-0.1,2c0,0.1,0,0.1-0.1,0.2c0,0-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c0,0-0.1-0.1-0.1-0.2L10,14 l0.1-4.3c0-0.1,0-0.1,0.1-0.2c0,0,0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S10.6,9.7,10.6,9.8z M12.4,14l-0.1,2c0,0.1,0,0.1-0.1,0.2 c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2l-0.1-1l-0.1-1l0.1-5.5v0c0-0.1,0-0.2,0.1-0.2 c0.1,0,0.1-0.1,0.2-0.1c0,0,0.1,0,0.1,0c0.1,0,0.1,0.1,0.1,0.2L12.4,14z M22.1,13.9c0,0.7-0.2,1.3-0.7,1.7c-0.5,0.5-1.1,0.7-1.7,0.7 h-6.8c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2V8.2c0-0.1,0.1-0.2,0.2-0.3c0.5-0.2,1-0.3,1.6-0.3c1.1,0,2.1,0.4,2.9,1.1 c0.8,0.8,1.3,1.7,1.4,2.8c0.3-0.1,0.6-0.2,1-0.2c0.7,0,1.3,0.2,1.7,0.7C21.8,12.6,22.1,13.2,22.1,13.9L22.1,13.9z"}))}},{name:"spotify",attributes:{service:"spotify"},title:"Spotify",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"}))}},{name:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M16.749,17.396c-0.357,0.17-1.041,0.319-1.551,0.332c-1.539,0.041-1.837-1.081-1.85-1.896V9.847h3.861V6.937h-3.847V2.039 c0,0-2.77,0-2.817,0c-0.046,0-0.127,0.041-0.138,0.144c-0.165,1.499-0.867,4.13-3.783,5.181v2.484h1.945v6.282 c0,2.151,1.587,5.206,5.775,5.135c1.413-0.024,2.982-0.616,3.329-1.126L16.749,17.396z"}))}},{name:"twitch",attributes:{service:"twitch"},title:"Twitch",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"}))}},{name:"twitter",attributes:{service:"twitter"},title:"Twitter",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"}))}},{name:"vimeo",attributes:{service:"vimeo"},title:"Vimeo",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"}))}},{name:"vk",attributes:{service:"vk"},title:"VK",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"}))}},{name:"yelp",attributes:{service:"yelp"},title:"Yelp",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"}))}},{name:"youtube",attributes:{service:"youtube"},title:"YouTube",icon:function(){return Object(pe.createElement)(he.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(pe.createElement)(he.Path,{d:"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"}))}}],nu=function(e){var t,n,r=e.attributes,o=e.setAttributes,c=e.isSelected,a=r.url,i=r.service,l=r.label,s=Object(pe.useState)(!1),u=Object(ke.a)(s,2),b=u[0],m=u[1],d=Oe()("wp-social-link","wp-social-link-"+i,{"wp-social-link__is-incomplete":!a}),p=(t=i,(n=Object(me.find)(tu,{name:t}))?n.icon:eu),h=function(e){var t=Object(me.find)(tu,{name:e});return t?t.title:Object(de.__)("Social Icon")}(i);return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.sprintf)(Object(de.__)("%s label"),h),initialOpen:!1},Object(pe.createElement)(Ce.PanelRow,null,Object(pe.createElement)(Ce.TextControl,{label:Object(de.__)("Link label"),help:Object(de.__)("Briefly describe the link to help screen reader users."),value:l,onChange:function(e){return o({label:e})}})))),Object(pe.createElement)(Ce.Button,{className:d,onClick:function(){return m(!0)}},Object(pe.createElement)(p,null),c&&b&&Object(pe.createElement)(ue.URLPopover,{onClose:function(){return m(!1)}},Object(pe.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:function(e){e.preventDefault(),m(!1)}},Object(pe.createElement)("div",{className:"block-editor-url-input"},Object(pe.createElement)(ue.URLInput,{value:a,onChange:function(e){return o({url:e})},placeholder:Object(de.__)("Enter address"),disableSuggestions:!0})),Object(pe.createElement)(Ce.Button,{icon:Xs.a,label:Object(de.__)("Apply"),type:"submit"})))))},ru={name:"core/social-link",category:"widgets",icon:"share",attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"}}},ou=ru.name,cu={title:Object(de.__)("Social Icon"),parent:["core/social-links"],supports:{reusable:!1,html:!1},edit:nu,description:Object(de.__)("Display an icon linking to a social media profile or website."),variations:tu},au=Object(pe.createElement)(he.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(he.Path,{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zM7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9z"}),Object(pe.createElement)(he.Circle,{cx:"12",cy:"9",r:"2.5"}));function iu(e){var t=e.level,n=e.isPressed,r=void 0!==n&&n;return Object(pe.createElement)(Ce.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:r},Object(pe.createElement)(Ce.Path,{d:{0:"M11 5v7H9.5C7.6 12 6 10.4 6 8.5S7.6 5 9.5 5H11m8-2H9.5C6.5 3 4 5.5 4 8.5S6.5 14 9.5 14H11v7h2V5h2v16h2V5h2V3z",1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"}[t]}))}function lu(e){var t=e.level,n=e.onChange;return Object(pe.createElement)(Ce.ToolbarGroup,{isCollapsed:!0,icon:Object(pe.createElement)(iu,{level:t}),controls:[0,1,2,3,4,5,6].map((function(e){var r=e===t;return{icon:Object(pe.createElement)(iu,{level:e,isPressed:r}),title:0===e?Object(de.__)("Paragraph"):Object(de.sprintf)(Object(de.__)("Heading %d"),e),isActive:r,onClick:function(){return n(e)}}})),label:Object(de.__)("Change heading level")})}var su={name:"core/site-title",category:"layout",attributes:{level:{type:"number",default:1}}},uu=su.name,bu={title:Object(de.__)("Site Title"),icon:au,supports:{html:!1},edit:function(e){var t=e.attributes.level,n=e.setAttributes,r=Object(se.useEntityProp)("root","site","title"),o=Object(ke.a)(r,2),c=o[0],a=o[1],i=0===t?"p":"h".concat(t);return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(lu,{level:t,onChange:function(e){return n({level:e})}})),Object(pe.createElement)(ue.RichText,{tagName:i,placeholder:Object(de.__)("Site Title"),value:c,onChange:a,allowedFormats:[]}))}};function mu(e,t,n){return Object(xe.useSelect)((function(r){if(e)return r("core").getEntityRecord("postType","wp_template_part",e)&&e;if(t&&n){var o=r("core").getEntityRecords("postType","wp_template_part",{status:"auto-draft",slug:t,meta:{theme:n}}),c=o&&o.find((function(e){return e.slug===t&&e.meta&&e.meta.theme===n}));return c&&c.id}}),[e,t,n])}function du(){var e=Object(se.useEntityBlockEditor)("postType","wp_template_part",{initialEdits:{status:"publish"}}),t=Object(ke.a)(e,3),n=t[0],r=t[1],o=t[2];return Object(pe.createElement)(ue.InnerBlocks,{__experimentalBlocks:n,onInput:r,onChange:o})}var pu=n(180);function hu(){var e=Object(se.useEntityBlockEditor)("postType","wp_template_part"),t=Object(ke.a)(e,1)[0];return Object(pe.createElement)("div",{className:"wp-block-template-part__placeholder-preview"},Object(pe.createElement)("div",{className:"wp-block-template-part__placeholder-preview-title"},Object(de.__)("Preview")),Object(pe.createElement)(ue.BlockPreview,{blocks:t}))}function gu(e){var t=e.setAttributes,n=Object(pe.useState)(),r=Object(ke.a)(n,2),o=r[0],c=r[1],a=Object(pe.useState)(),i=Object(ke.a)(a,2),l=i[0],s=i[1],u=Object(pe.useState)(),b=Object(ke.a)(u,2),m=b[0],d=b[1],p=mu(null,o,l),h=Object(xe.useSelect)((function(e){if(p)return e("core").getEntityRecord("postType","wp_template_part",p)?Object(pe.createElement)(se.EntityProvider,{kind:"postType",type:"wp_template_part",id:p},Object(pe.createElement)(hu,null)):void 0}),[p]),g=Object(pe.useCallback)((function(e){c(e),d(Object($e.cleanForSlug)(e))}),[]),f=Object(xe.useDispatch)("core").saveEntityRecord,O=Object(pe.useCallback)(Object(da.a)(ma.a.mark((function e(){var n,r,c;return ma.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={slug:o,theme:l},null==p){e.next=5;break}n.postId=p,e.next=16;break;case 5:return e.prev=5,r=Object($e.cleanForSlug)(o),e.next=9,f("postType","wp_template_part",{title:r,status:"publish",slug:r,meta:{theme:l}});case 9:c=e.sent,n.postId=c.id,e.next=16;break;case 13:e.prev=13,e.t0=e.catch(5),d(Object(de.__)("Error adding template."));case 16:t(n);case 17:case"end":return e.stop()}}),e,null,[[5,13]])}))),[p,o,l]);return Object(pe.createElement)(Ce.Placeholder,{icon:pu.a,label:Object(de.__)("Template Part"),instructions:Object(de.__)("Choose a template part by slug and theme, or create a new one.")},Object(pe.createElement)("div",{className:"wp-block-template-part__placeholder-input-container"},Object(pe.createElement)(Ce.TextControl,{label:Object(de.__)("Slug"),placeholder:Object(de.__)("header"),value:o,onChange:g,help:m,className:"wp-block-template-part__placeholder-input"}),Object(pe.createElement)(Ce.TextControl,{label:Object(de.__)("Theme"),placeholder:Object(de.__)("twentytwenty"),value:l,onChange:s,className:"wp-block-template-part__placeholder-input"})),h,Object(pe.createElement)(Ce.Button,{isPrimary:!0,disabled:!o||!l,onClick:O},p?Object(de.__)("Choose"):Object(de.__)("Create")))}var fu={name:"core/template-part",category:"layout",attributes:{postId:{type:"number"},slug:{type:"string"},theme:{type:"string"}}},Ou=fu.name,vu={title:Object(de.__)("Template Part"),supports:{html:!1},edit:function(e){var t=e.attributes,n=t.postId,r=t.slug,o=t.theme,c=e.setAttributes,a=Object(pe.useRef)(n),i=Object(pe.useRef)(r),l=Object(pe.useRef)(o),s=mu(n,r,o);return Object(pe.useEffect)((function(){void 0!==a.current&&null!==a.current||null==s||c({postId:s})}),[s]),s?Object(pe.createElement)(se.EntityProvider,{kind:"postType",type:"wp_template_part",id:s},Object(pe.createElement)(du,null)):i.current||l.current?null:Object(pe.createElement)(gu,{setAttributes:c})}},ju=Object(pe.createElement)(he.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(he.Path,{d:"M5 4v3h5.5v12h3V7H19V4H5z"}));var yu={name:"core/post-title",category:"layout"},wu=yu.name,_u={title:Object(de.__)("Post Title"),icon:ju,supports:{html:!1},edit:function(){return"Post Title Placeholder"}},ku=Object(pe.createElement)(he.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(he.Path,{d:"M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"}));var Cu={name:"core/post-content",category:"layout"},Eu=Cu.name,xu={title:Object(de.__)("Post Content"),icon:ku,supports:{html:!1},edit:function(){return"Post Content Placeholder"}};function Su(){var e=Object(se.useEntityProp)("postType","post","author"),t=Object(ke.a)(e,1)[0],n=Object(xe.useSelect)((function(e){return e("core").getEntityRecord("root","user",t)}),[t]);return n?Object(pe.createElement)("address",null,Object(de.sprintf)(Object(de.__)("By %s"),n.name)):null}var Pu={name:"core/post-author",category:"layout"},Tu=Pu.name,Bu={title:Object(de.__)("Post Author"),supports:{html:!1},edit:function(){return Object(se.useEntityId)("postType","post")?Object(pe.createElement)(Su,null):"Post Author Placeholder"}};function Nu(e){var t=e.className,n=Object(se.useEntityId)("postType","post"),r=Object(pe.useState)(),o=Object(ke.a)(r,2),c=o[0],a=o[1];return Object(pe.useEffect)((function(){var e=n;Sa()({path:Object($e.addQueryArgs)("/wp/v2/comments",{post:n}),parse:!1}).then((function(t){e===n&&a(t.headers.get("X-WP-Total"))}))}),[n]),Object(pe.createElement)("span",{className:t},void 0!==c&&c)}var zu={name:"core/post-comments-count",category:"layout"},Mu=zu.name,Iu={title:Object(de.__)("Post Comments Count"),supports:{html:!1},edit:function(e){var t=e.className;return Object(se.useEntityId)("postType","post")?Object(pe.createElement)(Nu,{className:t}):"Post Comments Count Placeholder"}};var Ru={name:"core/post-comments-form",category:"layout"},Au=Ru.name,Hu={title:Object(de.__)("Post Comments Form"),supports:{html:!1},edit:function(){return"Post Comments Form Placeholder"}};function Lu(e){var t=e.format,n=e.setAttributes,r=Object(se.useEntityProp)("root","site","date_format"),o=Object(ke.a)(r,1)[0],c=Object(se.useEntityProp)("postType","post","date"),a=Object(ke.a)(c,2),i=a[0],l=a[1],s=Object(pe.useState)(!1),u=Object(ke.a)(s,2),b=u[0],m=u[1],d=Object(Pa.__experimentalGetSettings)(),p=/a(?!\\)/i.test(d.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join("")),h=Object.values(d.formats).map((function(e){return{key:e,name:Object(Pa.dateI18n)(e,i)}})),g=t||o||d.formats.date;return i?Object(pe.createElement)("time",{dateTime:Object(Pa.dateI18n)("c",i)},Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(Ce.ToolbarGroup,null,Object(pe.createElement)(Ce.ToolbarButton,{icon:"edit",title:Object(de.__)("Change Date"),onClick:function(){return m((function(e){return!e}))}}))),Object(Pa.dateI18n)(g,i),b&&Object(pe.createElement)(Ce.Popover,{onClose:m.bind(null,!1)},Object(pe.createElement)(Ce.DateTimePicker,{currentDate:i,onChange:l,is12Hour:p})),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Format settings")},Object(pe.createElement)(Ce.CustomSelectControl,{hideLabelFromVision:!0,label:Object(de.__)("Date Format"),options:h,onChange:function(e){var t=e.selectedItem;return n({format:t.key})},value:h.find((function(e){return e.key===g}))})))):Object(de.__)("No Date")}var Vu={name:"core/post-date",category:"layout",attributes:{format:{type:"string"}}},Du=Vu.name,Fu={title:Object(de.__)("Post Date"),supports:{html:!1},edit:function(e){var t=e.attributes.format,n=e.setAttributes;return Object(se.useEntityId)("postType","post")?Object(pe.createElement)(Lu,{format:t,setAttributes:n}):"Post Date Placeholder"}};function Uu(e){var t=e.attributes,n=t.wordCount,r=t.moreText,o=t.showMoreOnNewLine,c=e.setAttributes,a=e.isSelected,i=Object(se.useEntityProp)("postType","post","excerpt"),l=Object(ke.a)(i,2),s=l[0],u=l[1],b=function(e){var t=Object(se.useEntityProp)("postType","post","content"),n=Object(ke.a)(t,3)[2].raw;return Object(pe.useMemo)((function(){if(!n)return"";var t=document.createElement("div");return t.innerHTML=n,(t.textContent||t.innerText||"").trim().split(" ",e).join(" ")}),[n,e])}(n);return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Post Excerpt Settings")},!s&&Object(pe.createElement)(Ce.RangeControl,{label:Object(de.__)("Max words"),value:n,onChange:function(e){return c({wordCount:e})},min:10,max:100}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Show link on new line"),checked:o,onChange:function(e){return c({showMoreOnNewLine:e})}}))),Object(pe.createElement)(ue.RichText,{className:!o&&"wp-block-post-excerpt__excerpt is-inline",placeholder:b,value:s||(a?"":b),onChange:u,keepPlaceholderOnFocus:!0}),!o&&" ",o?Object(pe.createElement)("p",null,Object(pe.createElement)(ue.RichText,{tagName:"a",placeholder:Object(de.__)("Read more…"),value:r,onChange:function(e){return c({moreText:e})}})):Object(pe.createElement)(ue.RichText,{tagName:"a",placeholder:Object(de.__)("Read more…"),value:r,onChange:function(e){return c({moreText:e})}}))}var Gu={name:"core/post-excerpt",category:"layout",attributes:{wordCount:{type:"number",default:55},moreText:{type:"string"},showMoreOnNewLine:{type:"boolean",default:!0}}},Wu=Gu.name,qu={title:Object(de.__)("Post Excerpt"),supports:{html:!1},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected;return Object(se.useEntityId)("postType","post")?Object(pe.createElement)(Uu,{attributes:t,setAttributes:n,isSelected:r}):"Post Excerpt Placeholder"}};function Zu(){var e=Object(se.useEntityProp)("postType","post","featured_media"),t=Object(ke.a)(e,1)[0],n=Object(xe.useSelect)((function(e){return t&&e("core").getMedia(t)}),[t]);return n?Object(pe.createElement)(Ce.ResponsiveWrapper,{naturalWidth:n.media_details.width,naturalHeight:n.media_details.height},Object(pe.createElement)("img",{src:n.source_url,alt:"Post Featured Media"})):null}var Ku={name:"core/post-featured-image",category:"layout"},$u=Ku.name,Qu={title:Object(de.__)("Post Featured Image"),supports:{html:!1},edit:function(){return Object(se.useEntityId)("postType","post")?Object(pe.createElement)(Zu,null):"Post Featured Image Placeholder"}};function Ju(){var e=Object(se.useEntityProp)("postType","post","tags"),t=Object(ke.a)(e,1)[0],n=Object(xe.useSelect)((function(e){var n=e("core").getEntityRecord,r=!0,o=t.map((function(e){var t=n("taxonomy","post_tag",e);return t?Object(pe.createElement)("a",{key:e,href:t.link},t.name):r=!1}));return r&&o}),[t]);return n&&(0===n.length?Object(de.__)("No tags."):n.reduce((function(e,t){return[e," | ",t]})))}var Yu={name:"core/post-tags",category:"layout"},Xu=Yu.name,eb={title:Object(de.__)("Post Tags"),edit:function(){return Object(se.useEntityId)("postType","post")?Object(pe.createElement)(Ju,null):"Post Tags Placeholder"}};n.d(t,"registerCoreBlocks",(function(){return nb})),n.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return rb}));var tb=function(e){if(e){var t=e.metadata,n=e.settings,r=e.name;t&&Object(be.unstable__bootstrapServerSideBlockDefinitions)(Object(le.a)({},r,t)),Object(be.registerBlockType)(r,n)}},nb=function(){[r,o,c,i,S,a,L,l,s,u,b,m,d,p,h,g,f,O].concat(Object(ie.a)(pc),Object(ie.a)(hc),[v,A,window.wp&&window.wp.oldEditor?Z:null,j,y,C,E,P,T,B,N,z,I,R,H,M,K,$,V,D,F,q,U,G,W]).forEach(tb),Object(be.setDefaultBlockName)(Re),window.wp&&window.wp.oldEditor&&Object(be.setFreeformContentHandlerName)(Ws),Object(be.setUnregisteredTypeHandlerName)(gi),A&&Object(be.setGroupingBlockName)(sl)},rb=function(e){var t=e.__experimentalEnableLegacyWidgetBlock,n=e.__experimentalEnableFullSiteEditing;[t?x:null,_,k].concat(Object(ie.a)(n?[Q,J,Y,X,ee,te,ne,re,oe,ce,ae]:[])).forEach(tb)}},37:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},38:function(e,t){!function(){e.exports=this.wp.deprecated}()},4:function(e,t){!function(){e.exports=this.wp.data}()},40:function(e,t){!function(){e.exports=this.wp.apiFetch}()},41:function(e,t){!function(){e.exports=this.wp.coreData}()},42:function(e,t){!function(){e.exports=this.wp.blob}()},44:function(e,t,n){"use strict";function r(e,t,n,r,o,c,a){try{var i=e[c](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,c){var a=e.apply(t,n);function i(e){r(a,o,c,i,l,"next",e)}function l(e){r(a,o,c,i,l,"throw",e)}i(void 0)}))}}n.d(t,"a",(function(){return o}))},47:function(e,t,n){e.exports=function(e,t){var n,r,o,c=0;function a(){var t,a,i=r,l=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(a=0;a<l;a++)if(i.args[a]!==arguments[a]){i=i.next;continue e}return i!==r&&(i===o&&(o=i.prev),i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=r,i.prev=null,r.prev=i,r=i),i.val}i=i.next}for(t=new Array(l),a=0;a<l;a++)t[a]=arguments[a];return i={args:t,val:e.apply(null,t)},r?(r.prev=i,i.next=r):o=i,c===n?(o=o.prev).next=null:c++,r=i,i.val}return t&&t.maxSize&&(n=t.maxSize),a.clear=function(){r=null,o=null,c=0},a}},49:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},5:function(e,t){!function(){e.exports=this.wp.blockEditor}()},51:function(e,t,n){var r;!function(o){var c=/^\s+/,a=/\s+$/,i=0,l=o.round,s=o.min,u=o.max,b=o.random;function m(e,t){if(t=t||{},(e=e||"")instanceof m)return e;if(!(this instanceof m))return new m(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,l=null,b=!1,m=!1;"string"==typeof e&&(e=function(e){e=e.replace(c,"").replace(a,"").toLowerCase();var t,n=!1;if(T[e])e=T[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=U.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=U.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=U.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=U.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=U.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=U.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=U.hex8.exec(e))return{r:I(t[1]),g:I(t[2]),b:I(t[3]),a:L(t[4]),format:n?"name":"hex8"};if(t=U.hex6.exec(e))return{r:I(t[1]),g:I(t[2]),b:I(t[3]),format:n?"name":"hex"};if(t=U.hex4.exec(e))return{r:I(t[1]+""+t[1]),g:I(t[2]+""+t[2]),b:I(t[3]+""+t[3]),a:L(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=U.hex3.exec(e))return{r:I(t[1]+""+t[1]),g:I(t[2]+""+t[2]),b:I(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(G(e.r)&&G(e.g)&&G(e.b)?(d=e.r,p=e.g,h=e.b,t={r:255*z(d,255),g:255*z(p,255),b:255*z(h,255)},b=!0,m="%"===String(e.r).substr(-1)?"prgb":"rgb"):G(e.h)&&G(e.s)&&G(e.v)?(r=A(e.s),i=A(e.v),t=function(e,t,n){e=6*z(e,360),t=z(t,100),n=z(n,100);var r=o.floor(e),c=e-r,a=n*(1-t),i=n*(1-c*t),l=n*(1-(1-c)*t),s=r%6;return{r:255*[n,i,a,a,l,n][s],g:255*[l,n,n,i,a,a][s],b:255*[a,a,l,n,n,i][s]}}(e.h,r,i),b=!0,m="hsv"):G(e.h)&&G(e.s)&&G(e.l)&&(r=A(e.s),l=A(e.l),t=function(e,t,n){var r,o,c;function a(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=z(e,360),t=z(t,100),n=z(n,100),0===t)r=o=c=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=a(l,i,e+1/3),o=a(l,i,e),c=a(l,i,e-1/3)}return{r:255*r,g:255*o,b:255*c}}(e.h,r,l),b=!0,m="hsl"),e.hasOwnProperty("a")&&(n=e.a));var d,p,h;return n=N(n),{ok:b,format:e.format||m,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=i++}function d(e,t,n){e=z(e,255),t=z(t,255),n=z(n,255);var r,o,c=u(e,t,n),a=s(e,t,n),i=(c+a)/2;if(c==a)r=o=0;else{var l=c-a;switch(o=i>.5?l/(2-c-a):l/(c+a),c){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:i}}function p(e,t,n){e=z(e,255),t=z(t,255),n=z(n,255);var r,o,c=u(e,t,n),a=s(e,t,n),i=c,l=c-a;if(o=0===c?0:l/c,c==a)r=0;else{switch(c){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:i}}function h(e,t,n,r){var o=[R(l(e).toString(16)),R(l(t).toString(16)),R(l(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function g(e,t,n,r){return[R(H(r)),R(l(e).toString(16)),R(l(t).toString(16)),R(l(n).toString(16))].join("")}function f(e,t){t=0===t?0:t||10;var n=m(e).toHsl();return n.s-=t/100,n.s=M(n.s),m(n)}function O(e,t){t=0===t?0:t||10;var n=m(e).toHsl();return n.s+=t/100,n.s=M(n.s),m(n)}function v(e){return m(e).desaturate(100)}function j(e,t){t=0===t?0:t||10;var n=m(e).toHsl();return n.l+=t/100,n.l=M(n.l),m(n)}function y(e,t){t=0===t?0:t||10;var n=m(e).toRgb();return n.r=u(0,s(255,n.r-l(-t/100*255))),n.g=u(0,s(255,n.g-l(-t/100*255))),n.b=u(0,s(255,n.b-l(-t/100*255))),m(n)}function w(e,t){t=0===t?0:t||10;var n=m(e).toHsl();return n.l-=t/100,n.l=M(n.l),m(n)}function _(e,t){var n=m(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,m(n)}function k(e){var t=m(e).toHsl();return t.h=(t.h+180)%360,m(t)}function C(e){var t=m(e).toHsl(),n=t.h;return[m(e),m({h:(n+120)%360,s:t.s,l:t.l}),m({h:(n+240)%360,s:t.s,l:t.l})]}function E(e){var t=m(e).toHsl(),n=t.h;return[m(e),m({h:(n+90)%360,s:t.s,l:t.l}),m({h:(n+180)%360,s:t.s,l:t.l}),m({h:(n+270)%360,s:t.s,l:t.l})]}function x(e){var t=m(e).toHsl(),n=t.h;return[m(e),m({h:(n+72)%360,s:t.s,l:t.l}),m({h:(n+216)%360,s:t.s,l:t.l})]}function S(e,t,n){t=t||6,n=n||30;var r=m(e).toHsl(),o=360/n,c=[m(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,c.push(m(r));return c}function P(e,t){t=t||6;for(var n=m(e).toHsv(),r=n.h,o=n.s,c=n.v,a=[],i=1/t;t--;)a.push(m({h:r,s:o,v:c})),c=(c+i)%1;return a}m.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,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=N(e),this._roundA=l(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=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var c=[R(l(e).toString(16)),R(l(t).toString(16)),R(l(n).toString(16)),R(H(r))];if(o&&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))return c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0);return c.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*z(this._r,255))+"%",g:l(100*z(this._g,255))+"%",b:l(100*z(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*z(this._r,255))+"%, "+l(100*z(this._g,255))+"%, "+l(100*z(this._b,255))+"%)":"rgba("+l(100*z(this._r,255))+"%, "+l(100*z(this._g,255))+"%, "+l(100*z(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(B[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=m(e);n="#"+g(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"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 m(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(y,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},m.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:A(e[r]));e=n}return m(e,t)},m.equals=function(e,t){return!(!e||!t)&&m(e).toRgbString()==m(t).toRgbString()},m.random=function(){return m.fromRatio({r:b(),g:b(),b:b()})},m.mix=function(e,t,n){n=0===n?0:n||50;var r=m(e).toRgb(),o=m(t).toRgb(),c=n/100;return m({r:(o.r-r.r)*c+r.r,g:(o.g-r.g)*c+r.g,b:(o.b-r.b)*c+r.b,a:(o.a-r.a)*c+r.a})},m.readability=function(e,t){var n=m(e),r=m(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},m.isReadable=function(e,t,n){var r,o,c=m.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},m.mostReadable=function(e,t,n){var r,o,c,a,i=null,l=0;o=(n=n||{}).includeFallbackColors,c=n.level,a=n.size;for(var s=0;s<t.length;s++)(r=m.readability(e,t[s]))>l&&(l=r,i=m(t[s]));return m.isReadable(e,i,{level:c,size:a})||!o?i:(n.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],n))};var T=m.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"},B=m.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(T);function N(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function z(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),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return s(1,u(0,e))}function I(e){return parseInt(e,16)}function R(e){return 1==e.length?"0"+e:""+e}function A(e){return e<=1&&(e=100*e+"%"),e}function H(e){return o.round(255*parseFloat(e)).toString(16)}function L(e){return I(e)/255}var V,D,F,U=(D="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",F="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+F),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 G(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=m:void 0===(r=function(){return m}.call(t,n,t,e))||(e.exports=r)}(Math)},53:function(e,t){!function(){e.exports=this.wp.date}()},55:function(e,t){!function(){e.exports=this.wp.viewport}()},59:function(e,t){!function(){e.exports=this.wp.serverSideRender}()},6:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},68:function(e,t){!function(){e.exports=this.wp.escapeHtml}()},7:function(e,t){!function(){e.exports=this.wp.primitives}()},8:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},80:function(e,t){!function(){e.exports=this.wp.autop}()},81:function(e,t,n){var r;
5
  http://jedwatson.github.io/classnames
6
  */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r))e.push(o.apply(null,r));else if("object"===c)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?e.exports=o:void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},109:function(e,t,n){"use strict";var r=n(157),o=n(159);function c(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=v,t.resolve=function(e,t){return v(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?v(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=v(e));return e instanceof c?e.format():c.prototype.format.call(e)},t.Url=c;var a=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),b=["%","/","?",";","#"].concat(u),m=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},O=n(160);function v(e,t,n){if(e&&o.isObject(e)&&e instanceof c)return e;var r=new c;return r.parse(e,t,n),r}c.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var c=e.indexOf("?"),i=-1!==c&&c<e.indexOf("#")?"?":"#",s=e.split(i);s[0]=s[0].replace(/\\/g,"/");var v=e=s.join(i);if(v=v.trim(),!n&&1===e.split("#").length){var j=l.exec(v);if(j)return this.path=v,this.href=v,this.pathname=j[1],j[2]?(this.search=j[2],this.query=t?O.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var y=a.exec(v);if(y){var w=(y=y[0]).toLowerCase();this.protocol=w,v=v.substr(y.length)}if(n||y||v.match(/^\/\/[^@\/]+@[^@\/]+/)){var _="//"===v.substr(0,2);!_||y&&g[y]||(v=v.substr(2),this.slashes=!0)}if(!g[y]&&(_||y&&!f[y])){for(var k,C,E=-1,x=0;x<m.length;x++){-1!==(S=v.indexOf(m[x]))&&(-1===E||S<E)&&(E=S)}-1!==(C=-1===E?v.lastIndexOf("@"):v.lastIndexOf("@",E))&&(k=v.slice(0,C),v=v.slice(C+1),this.auth=decodeURIComponent(k)),E=-1;for(x=0;x<b.length;x++){var S;-1!==(S=v.indexOf(b[x]))&&(-1===E||S<E)&&(E=S)}-1===E&&(E=v.length),this.host=v.slice(0,E),v=v.slice(E),this.parseHost(),this.hostname=this.hostname||"";var P="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!P)for(var T=this.hostname.split(/\./),B=(x=0,T.length);x<B;x++){var N=T[x];if(N&&!N.match(d)){for(var z="",M=0,I=N.length;M<I;M++)N.charCodeAt(M)>127?z+="x":z+=N[M];if(!z.match(d)){var R=T.slice(0,x),A=T.slice(x+1),H=N.match(p);H&&(R.push(H[1]),A.unshift(H[2])),A.length&&(v="/"+A.join(".")+v),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=r.toASCII(this.hostname));var L=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+L,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!h[w])for(x=0,B=u.length;x<B;x++){var D=u[x];if(-1!==v.indexOf(D)){var F=encodeURIComponent(D);F===D&&(F=escape(D)),v=v.split(D).join(F)}}var U=v.indexOf("#");-1!==U&&(this.hash=v.substr(U),v=v.slice(0,U));var G=v.indexOf("?");if(-1!==G?(this.search=v.substr(G),this.query=v.substr(G+1),t&&(this.query=O.parse(this.query)),v=v.slice(0,G)):t&&(this.search="",this.query={}),v&&(this.pathname=v),f[w]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){L=this.pathname||"";var W=this.search||"";this.path=L+W}return this.href=this.format(),this},c.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",c=!1,a="";this.host?c=e+this.host:this.hostname&&(c=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(c+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=O.stringify(this.query));var i=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||f[t])&&!1!==c?(c="//"+(c||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):c||(c=""),r&&"#"!==r.charAt(0)&&(r="#"+r),i&&"?"!==i.charAt(0)&&(i="?"+i),t+c+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(i=i.replace("#","%23"))+r},c.prototype.resolve=function(e){return this.resolveObject(v(e,!1,!0)).format()},c.prototype.resolveObject=function(e){if(o.isString(e)){var t=new c;t.parse(e,!1,!0),e=t}for(var n=new c,r=Object.keys(this),a=0;a<r.length;a++){var i=r[a];n[i]=this[i]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),s=0;s<l.length;s++){var u=l[s];"protocol"!==u&&(n[u]=e[u])}return f[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!f[e.protocol]){for(var b=Object.keys(e),m=0;m<b.length;m++){var d=b[m];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||g[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var h=n.pathname||"",O=n.search||"";n.path=h+O}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var v=n.pathname&&"/"===n.pathname.charAt(0),j=e.host||e.pathname&&"/"===e.pathname.charAt(0),y=j||v||n.host&&e.pathname,w=y,_=n.pathname&&n.pathname.split("/")||[],k=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!f[n.protocol]);if(k&&(n.hostname="",n.port=null,n.host&&(""===_[0]?_[0]=n.host:_.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),y=y&&(""===p[0]||""===_[0])),j)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,_=p;else if(p.length)_||(_=[]),_.pop(),_=_.concat(p),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(k)n.hostname=n.host=_.shift(),(P=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=P.shift(),n.host=n.hostname=P.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!_.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=_.slice(-1)[0],E=(n.host||e.host||_.length>1)&&("."===C||".."===C)||""===C,x=0,S=_.length;S>=0;S--)"."===(C=_[S])?_.splice(S,1):".."===C?(_.splice(S,1),x++):x&&(_.splice(S,1),x--);if(!y&&!w)for(;x--;x)_.unshift("..");!y||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),E&&"/"!==_.join("/").substr(-1)&&_.push("");var P,T=""===_[0]||_[0]&&"/"===_[0].charAt(0);k&&(n.hostname=n.host=T?"":_.length?_.shift():"",(P=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=P.shift(),n.host=n.hostname=P.shift()));return(y=y||n.host&&_.length)&&!T&&_.unshift(""),_.length?n.pathname=_.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},c.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},11:function(e,t){!function(){e.exports=this.wp.blocks}()},114:function(e,t,n){"use strict";var r=n(6),o=n(20),c=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,i=void 0===n?24:n,l=Object(o.a)(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:i,height:i},l))}},117:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.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},12:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},13:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},14:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},15:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(31),o=n(8);function c(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},156:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.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},157:function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(c){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var i,l=2147483647,s=/^xn--/,u=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,p=String.fromCharCode;function h(e){throw new RangeError(m[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function f(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(b,".")).split("."),t).join(".")}function O(e){for(var t,n,r=[],o=0,c=e.length;o<c;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<c?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function v(e){return g(e,(function(e){var t="";return e>65535&&(t+=p((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=p(e)})).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function y(e,t,n){var r=0;for(e=n?d(e/700):e>>1,e+=d(e/t);e>455;r+=36)e=d(e/35);return d(r+36*e/(e+38))}function w(e){var t,n,r,o,c,a,i,s,u,b,m,p=[],g=e.length,f=0,O=128,j=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&h("not-basic"),p.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<g;){for(c=f,a=1,i=36;o>=g&&h("invalid-input"),((s=(m=e.charCodeAt(o++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:36)>=36||s>d((l-f)/a))&&h("overflow"),f+=s*a,!(s<(u=i<=j?1:i>=j+26?26:i-j));i+=36)a>d(l/(b=36-u))&&h("overflow"),a*=b;j=y(f-c,t=p.length+1,0==c),d(f/t)>l-O&&h("overflow"),O+=d(f/t),f%=t,p.splice(f++,0,O)}return v(p)}function _(e){var t,n,r,o,c,a,i,s,u,b,m,g,f,v,w,_=[];for(g=(e=O(e)).length,t=128,n=0,c=72,a=0;a<g;++a)(m=e[a])<128&&_.push(p(m));for(r=o=_.length,o&&_.push("-");r<g;){for(i=l,a=0;a<g;++a)(m=e[a])>=t&&m<i&&(i=m);for(i-t>d((l-n)/(f=r+1))&&h("overflow"),n+=(i-t)*f,t=i,a=0;a<g;++a)if((m=e[a])<t&&++n>l&&h("overflow"),m==t){for(s=n,u=36;!(s<(b=u<=c?1:u>=c+26?26:u-c));u+=36)w=s-b,v=36-b,_.push(p(j(b+w%v,0))),s=d(w/v);_.push(p(j(s,0))),c=y(n,f,r==o),n=0,++r}++n,++t}return _.join("")}i={version:"1.4.1",ucs2:{decode:O,encode:v},decode:w,encode:_,toASCII:function(e){return f(e,(function(e){return u.test(e)?"xn--"+_(e):e}))},toUnicode:function(e){return f(e,(function(e){return s.test(e)?w(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(158)(e),n(82))},158:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},159:function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},16:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},160:function(e,t,n){"use strict";t.decode=t.parse=n(161),t.encode=t.stringify=n(162)},161:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,c){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var i=/\+/g;e=e.split(t);var l=1e3;c&&"number"==typeof c.maxKeys&&(l=c.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var u=0;u<s;++u){var b,m,d,p,h=e[u].replace(i,"%20"),g=h.indexOf(n);g>=0?(b=h.substr(0,g),m=h.substr(g+1)):(b=h,m=""),d=decodeURIComponent(b),p=decodeURIComponent(m),r(a,d)?o(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},162:function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,i){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?c(a(e),(function(a){var i=encodeURIComponent(r(a))+n;return o(e[a])?c(e[a],(function(e){return i+encodeURIComponent(r(e))})).join(t):i+encodeURIComponent(r(e[a]))})).join(t):i?encodeURIComponent(r(i))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function c(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},17:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},18:function(e,t,n){"use strict";var r=n(33);var o=n(34);function c(e,t){return Object(r.a)(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}}(e,t)||Object(o.a)()}n.d(t,"a",(function(){return c}))},180:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M2 2h5v11H2V2zm6 0h5v5H8V2zm6 0h4v16h-4V2zM8 8h5v5H8V8zm-6 6h11v4H2v-4z"}));t.a=c},181:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M16 4h2v9H7v3l-5-4 5-4v3h9V4z"}));t.a=c},19:function(e,t,n){"use strict";var r=n(32);function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",(function(){return o}))},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(37);function o(e,t){if(null==e)return{};var n,o,c=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},22:function(e,t){!function(){e.exports=this.wp.keycodes}()},23:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},239:function(e,t,n){
7
  /*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */
8
+ e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}return function(){function n(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n)}var r,o,c;return r=n,(o=[{key:"getColorAsync",value:function(e,t,n){e.complete?t.call(e,this.getColor(e,n),n&&n.data):this._bindImageEvents(e,t,n)}},{key:"getColor",value:function(e,t){t=t||{};var n=this._getDefaultColor(t),r=this._getOriginalSize(e),o=this._prepareSizeAndPosition(r,t),c=null,a=n;if(!(o.srcWidth&&o.srcHeight&&o.destWidth&&o.destHeight))return this._prepareResult(n,new Error("FastAverageColor: Incorrect sizes."));if(!this._ctx&&(this._canvas=this._makeCanvas(),this._ctx=this._canvas.getContext&&this._canvas.getContext("2d"),!this._ctx))return this._prepareResult(n,new Error("FastAverageColor: Canvas Context 2D is not supported in this browser."));this._canvas.width=o.destWidth,this._canvas.height=o.destHeight;try{this._ctx.clearRect(0,0,o.destWidth,o.destHeight),this._ctx.drawImage(e,o.srcLeft,o.srcTop,o.srcWidth,o.srcHeight,0,0,o.destWidth,o.destHeight);var i=this._ctx.getImageData(0,0,o.destWidth,o.destHeight).data;a=this.getColorFromArray4(i,t)}catch(e){c=e}return this._prepareResult(a,c)}},{key:"getColorFromArray4",value:function(e,t){t=t||{};var n=e.length;if(n<4)return this._getDefaultColor(t);var r=n-n%4,o=4*(t.step||1),c="_"+(t.algorithm||"sqrt")+"Algorithm";if("function"!=typeof this[c])throw new Error("FastAverageColor: ".concat(t.algorithm," is unknown algorithm."));return this[c](e,r,o)}},{key:"destroy",value:function(){delete this._canvas,delete this._ctx}},{key:"_getDefaultColor",value:function(e){return this._getOption(e,"defaultColor",[255,255,255,255])}},{key:"_getOption",value:function(e,t,n){return void 0===e[t]?n:e[t]}},{key:"_prepareSizeAndPosition",value:function(e,t){var n,r=this._getOption(t,"left",0),o=this._getOption(t,"top",0),c=this._getOption(t,"width",e.width),a=this._getOption(t,"height",e.height),i=c,l=a;return"precision"===t.mode?{srcLeft:r,srcTop:o,srcWidth:c,srcHeight:a,destWidth:i,destHeight:l}:(c>a?(n=c/a,i=100,l=Math.round(i/n)):(n=a/c,l=100,i=Math.round(l/n)),(i>c||l>a||i<10||l<10)&&(i=c,l=a),{srcLeft:r,srcTop:o,srcWidth:c,srcHeight:a,destWidth:i,destHeight:l})}},{key:"_simpleAlgorithm",value:function(e,t,n){for(var r=0,o=0,c=0,a=0,i=0,l=0;l<t;l+=n){var s=e[l+3];r+=e[l]*s,o+=e[l+1]*s,c+=e[l+2]*s,a+=s,i++}return a?[Math.round(r/a),Math.round(o/a),Math.round(c/a),Math.round(a/i)]:[0,0,0,0]}},{key:"_sqrtAlgorithm",value:function(e,t,n){for(var r=0,o=0,c=0,a=0,i=0,l=0;l<t;l+=n){var s=e[l],u=e[l+1],b=e[l+2],m=e[l+3];r+=s*s*m,o+=u*u*m,c+=b*b*m,a+=m,i++}return a?[Math.round(Math.sqrt(r/a)),Math.round(Math.sqrt(o/a)),Math.round(Math.sqrt(c/a)),Math.round(a/i)]:[0,0,0,0]}},{key:"_dominantAlgorithm",value:function(e,n,r){for(var o={},c=0;c<n;c+=r){var a=e[c],i=e[c+1],l=e[c+2],s=e[c+3],u=Math.round(a/24)+","+Math.round(i/24)+","+Math.round(l/24);o[u]?o[u]=[o[u][0]+a*s,o[u][1]+i*s,o[u][2]+l*s,o[u][3]+s,o[u][4]+1]:o[u]=[a*s,i*s,l*s,s,1]}var b=t(Object.keys(o).map((function(e){return o[e]})).sort((function(e,t){var n=e[4],r=t[4];return n>r?-1:n===r?0:1}))[0],5),m=b[0],d=b[1],p=b[2],h=b[3],g=b[4];return h?[Math.round(m/h),Math.round(d/h),Math.round(p/h),Math.round(h/g)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,n){var r=this,o=(n=n||{})&&n.data,c=this._getDefaultColor(n),a=function(){s(),t.call(e,r.getColor(e,n),o)},i=function(){s(),t.call(e,r._prepareResult(c,new Error("Image error")),o)},l=function(){s(),t.call(e,r._prepareResult(c,new Error("Image abort")),o)},s=function(){e.removeEventListener("load",a),e.removeEventListener("error",i),e.removeEventListener("abort",l)};e.addEventListener("load",a),e.addEventListener("error",i),e.addEventListener("abort",l)}},{key:"_prepareResult",value:function(e,t){var n=e.slice(0,3),r=[].concat(n,e[3]/255),o=this._isDark(e);return{error:t,value:e,rgb:"rgb("+n.join(",")+")",rgba:"rgba("+r.join(",")+")",hex:this._arrayToHex(n),hexa:this._arrayToHex(e),isDark:o,isLight:!o}}},{key:"_getOriginalSize",value:function(e){return e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}},{key:"_toHex",value:function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}},{key:"_arrayToHex",value:function(e){return"#"+e.map(this._toHex).join("")}},{key:"_isDark",value:function(e){return(299*e[0]+587*e[1]+114*e[2])/1e3<128}},{key:"_makeCanvas",value:function(){return"undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")}}])&&e(r.prototype,o),c&&e(r,c),n}()}()},24:function(e,t){!function(){e.exports=this.wp.richText}()},258:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"}));t.a=c},259:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},260:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.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},261:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.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},263:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6zM13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z"}));t.a=c},267:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));t.a=c},27:function(e,t){!function(){e.exports=this.wp.url}()},28:function(e,t){!function(){e.exports=this.wp.dom}()},3:function(e,t){!function(){e.exports=this.wp.components}()},31:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},32:function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},33:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},34:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",(function(){return r}))},35:function(e,t){!function(){e.exports=this.moment}()},364:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"metadata",(function(){return Ie})),n.d(r,"name",(function(){return Re})),n.d(r,"settings",(function(){return Ae}));var o={};n.r(o),n.d(o,"metadata",(function(){return Vt})),n.d(o,"name",(function(){return Dt})),n.d(o,"settings",(function(){return Ft}));var c={};n.r(c),n.d(c,"metadata",(function(){return Yt})),n.d(c,"name",(function(){return Xt})),n.d(c,"settings",(function(){return en}));var a={};n.r(a),n.d(a,"metadata",(function(){return pn})),n.d(a,"name",(function(){return hn})),n.d(a,"settings",(function(){return gn}));var i={};n.r(i),n.d(i,"metadata",(function(){return Un})),n.d(i,"name",(function(){return Gn})),n.d(i,"settings",(function(){return Wn}));var l={};n.r(l),n.d(l,"name",(function(){return $n})),n.d(l,"settings",(function(){return Qn}));var s={};n.r(s),n.d(s,"metadata",(function(){return rr})),n.d(s,"name",(function(){return or})),n.d(s,"settings",(function(){return cr}));var u={};n.r(u),n.d(u,"metadata",(function(){return yr})),n.d(u,"name",(function(){return wr})),n.d(u,"settings",(function(){return _r}));var b={};n.r(b),n.d(b,"metadata",(function(){return Pr})),n.d(b,"name",(function(){return Tr})),n.d(b,"settings",(function(){return Br}));var m={};n.r(m),n.d(m,"name",(function(){return Hr})),n.d(m,"settings",(function(){return Lr}));var d={};n.r(d),n.d(d,"name",(function(){return Gr})),n.d(d,"settings",(function(){return Wr}));var p={};n.r(p),n.d(p,"metadata",(function(){return Jr})),n.d(p,"name",(function(){return Yr})),n.d(p,"settings",(function(){return Xr}));var h={};n.r(h),n.d(h,"metadata",(function(){return fo})),n.d(h,"name",(function(){return Oo})),n.d(h,"settings",(function(){return vo}));var g={};n.r(g),n.d(g,"metadata",(function(){return wo})),n.d(g,"name",(function(){return _o})),n.d(g,"settings",(function(){return ko}));var f={};n.r(f),n.d(f,"metadata",(function(){return Ko})),n.d(f,"name",(function(){return $o})),n.d(f,"settings",(function(){return Qo}));var O={};n.r(O),n.d(O,"name",(function(){return pc})),n.d(O,"settings",(function(){return hc})),n.d(O,"common",(function(){return gc})),n.d(O,"others",(function(){return fc}));var v={};n.r(v),n.d(v,"metadata",(function(){return _c})),n.d(v,"name",(function(){return kc})),n.d(v,"settings",(function(){return Cc}));var j={};n.r(j),n.d(j,"metadata",(function(){return Tc})),n.d(j,"name",(function(){return Bc})),n.d(j,"settings",(function(){return Nc}));var y={};n.r(y),n.d(y,"metadata",(function(){return $c})),n.d(y,"name",(function(){return Qc})),n.d(y,"settings",(function(){return Jc}));var w={};n.r(w),n.d(w,"justifyLeftIcon",(function(){return ca})),n.d(w,"justifyCenterIcon",(function(){return aa})),n.d(w,"justifyRightIcon",(function(){return ia}));var _={};n.r(_),n.d(_,"name",(function(){return ba})),n.d(_,"settings",(function(){return ma}));var k={};n.r(k),n.d(k,"metadata",(function(){return ya})),n.d(k,"name",(function(){return wa})),n.d(k,"settings",(function(){return _a}));var C={};n.r(C),n.d(C,"name",(function(){return Ea})),n.d(C,"settings",(function(){return xa}));var E={};n.r(E),n.d(E,"name",(function(){return Ha})),n.d(E,"settings",(function(){return La}));var x={};n.r(x),n.d(x,"name",(function(){return ei})),n.d(x,"settings",(function(){return ti}));var S={};n.r(S),n.d(S,"metadata",(function(){return di})),n.d(S,"name",(function(){return pi})),n.d(S,"settings",(function(){return hi}));var P={};n.r(P),n.d(P,"metadata",(function(){return fi})),n.d(P,"name",(function(){return Oi})),n.d(P,"settings",(function(){return vi}));var T={};n.r(T),n.d(T,"metadata",(function(){return _i})),n.d(T,"name",(function(){return ki})),n.d(T,"settings",(function(){return Ci}));var B={};n.r(B),n.d(B,"metadata",(function(){return Si})),n.d(B,"name",(function(){return Pi})),n.d(B,"settings",(function(){return Ti}));var N={};n.r(N),n.d(N,"metadata",(function(){return zi})),n.d(N,"name",(function(){return Mi})),n.d(N,"settings",(function(){return Ii}));var z={};n.r(z),n.d(z,"metadata",(function(){return Wi})),n.d(z,"name",(function(){return qi})),n.d(z,"settings",(function(){return Zi}));var M={};n.r(M),n.d(M,"name",(function(){return Yi})),n.d(M,"settings",(function(){return Xi}));var I={};n.r(I),n.d(I,"name",(function(){return nl})),n.d(I,"settings",(function(){return rl}));var R={};n.r(R),n.d(R,"name",(function(){return cl})),n.d(R,"settings",(function(){return al}));var A={};n.r(A),n.d(A,"metadata",(function(){return ul})),n.d(A,"name",(function(){return bl})),n.d(A,"settings",(function(){return ml}));var H={};n.r(H),n.d(H,"metadata",(function(){return fl})),n.d(H,"name",(function(){return Ol})),n.d(H,"settings",(function(){return vl}));var L={};n.r(L),n.d(L,"metadata",(function(){return kl})),n.d(L,"name",(function(){return Cl})),n.d(L,"settings",(function(){return El}));var V={};n.r(V),n.d(V,"metadata",(function(){return Pl})),n.d(V,"name",(function(){return Tl})),n.d(V,"settings",(function(){return Bl}));var D={};n.r(D),n.d(D,"metadata",(function(){return Il})),n.d(D,"name",(function(){return Rl})),n.d(D,"settings",(function(){return Al}));var F={};n.r(F),n.d(F,"metadata",(function(){return ds})),n.d(F,"name",(function(){return ps})),n.d(F,"settings",(function(){return hs}));var U={};n.r(U),n.d(U,"metadata",(function(){return fs})),n.d(U,"name",(function(){return Os})),n.d(U,"settings",(function(){return vs}));var G={};n.r(G),n.d(G,"metadata",(function(){return _s})),n.d(G,"name",(function(){return ks})),n.d(G,"settings",(function(){return Cs}));var W={};n.r(W),n.d(W,"metadata",(function(){return zs})),n.d(W,"name",(function(){return Ms})),n.d(W,"settings",(function(){return Is}));var q={};n.r(q),n.d(q,"name",(function(){return Ls})),n.d(q,"settings",(function(){return Vs}));var Z={};n.r(Z),n.d(Z,"metadata",(function(){return qs})),n.d(Z,"name",(function(){return Zs})),n.d(Z,"settings",(function(){return Ks}));var K={};n.r(K),n.d(K,"metadata",(function(){return Ys})),n.d(K,"name",(function(){return Xs})),n.d(K,"settings",(function(){return eu}));var $={};n.r($),n.d($,"metadata",(function(){return cu})),n.d($,"name",(function(){return au})),n.d($,"settings",(function(){return iu}));var Q={};n.r(Q),n.d(Q,"metadata",(function(){return bu})),n.d(Q,"name",(function(){return mu})),n.d(Q,"settings",(function(){return du}));var J={};n.r(J),n.d(J,"metadata",(function(){return vu})),n.d(J,"name",(function(){return ju})),n.d(J,"settings",(function(){return yu}));var Y={};n.r(Y),n.d(Y,"metadata",(function(){return _u})),n.d(Y,"name",(function(){return ku})),n.d(Y,"settings",(function(){return Cu}));var X={};n.r(X),n.d(X,"metadata",(function(){return xu})),n.d(X,"name",(function(){return Su})),n.d(X,"settings",(function(){return Pu}));var ee={};n.r(ee),n.d(ee,"metadata",(function(){return Bu})),n.d(ee,"name",(function(){return Nu})),n.d(ee,"settings",(function(){return zu}));var te={};n.r(te),n.d(te,"metadata",(function(){return Iu})),n.d(te,"name",(function(){return Ru})),n.d(te,"settings",(function(){return Au}));var ne={};n.r(ne),n.d(ne,"metadata",(function(){return Hu})),n.d(ne,"name",(function(){return Lu})),n.d(ne,"settings",(function(){return Vu}));var re={};n.r(re),n.d(re,"metadata",(function(){return Fu})),n.d(re,"name",(function(){return Uu})),n.d(re,"settings",(function(){return Gu}));var oe={};n.r(oe),n.d(oe,"metadata",(function(){return qu})),n.d(oe,"name",(function(){return Zu})),n.d(oe,"settings",(function(){return Ku}));var ce={};n.r(ce),n.d(ce,"metadata",(function(){return Qu})),n.d(ce,"name",(function(){return Ju})),n.d(ce,"settings",(function(){return Yu}));var ae={};n.r(ae),n.d(ae,"metadata",(function(){return eb})),n.d(ae,"name",(function(){return tb})),n.d(ae,"settings",(function(){return nb}));var ie=n(19),le=n(6),se=n(41),ue=n(5),be=n(11),me=n(2),de=n(1),pe=n(0),he=n(7),ge=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(he.Path,{d:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"})),fe=n(10),Oe=n.n(fe);function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ye={className:!1},we={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},direction:{type:"string",enum:["ltr","rtl"]}},_e=[{supports:ye,attributes:we,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,c=n.dropCap,a=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=n.fontSize,b=n.customFontSize,m=n.direction,d=Object(ue.getColorClassName)("color",i),p=Object(ue.getColorClassName)("background-color",a),h=Object(ue.getFontSizeClass)(u),g=Oe()((t={"has-text-color":i||s,"has-background":a||l,"has-drop-cap":c},Object(le.a)(t,h,h),Object(le.a)(t,d,d),Object(le.a)(t,p,p),t)),f={backgroundColor:p?void 0:l,color:d?void 0:s,fontSize:h?void 0:b,textAlign:r};return Object(pe.createElement)(ue.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:o,dir:m})}},{supports:ye,attributes:je({},we,{width:{type:"string"}}),save:function(e){var t,n=e.attributes,r=n.width,o=n.align,c=n.content,a=n.dropCap,i=n.backgroundColor,l=n.textColor,s=n.customBackgroundColor,u=n.customTextColor,b=n.fontSize,m=n.customFontSize,d=Object(ue.getColorClassName)("color",l),p=Object(ue.getColorClassName)("background-color",i),h=b&&"is-".concat(b,"-text"),g=Oe()((t={},Object(le.a)(t,"align".concat(r),r),Object(le.a)(t,"has-background",i||s),Object(le.a)(t,"has-drop-cap",a),Object(le.a)(t,h,h),Object(le.a)(t,d,d),Object(le.a)(t,p,p),t)),f={backgroundColor:p?void 0:s,color:d?void 0:u,fontSize:h?void 0:m,textAlign:o};return Object(pe.createElement)(ue.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:c})}},{supports:ye,attributes:Object(me.omit)(je({},we,{fontSize:{type:"number"}}),"customFontSize","customTextColor","customBackgroundColor"),save:function(e){var t,n=e.attributes,r=n.width,o=n.align,c=n.content,a=n.dropCap,i=n.backgroundColor,l=n.textColor,s=n.fontSize,u=Oe()((t={},Object(le.a)(t,"align".concat(r),r),Object(le.a)(t,"has-background",i),Object(le.a)(t,"has-drop-cap",a),t)),b={backgroundColor:i,color:l,fontSize:s,textAlign:o};return Object(pe.createElement)("p",{style:b,className:u||void 0},c)},migrate:function(e){return Object(me.omit)(je({},e,{customFontSize:Object(me.isFinite)(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&"#"===e.backgroundColor[0]?e.backgroundColor:void 0}),["fontSize","textColor","backgroundColor"])}},{supports:ye,attributes:je({},we,{content:{type:"string",source:"html",default:""}}),save:function(e){var t=e.attributes;return Object(pe.createElement)(pe.RawHTML,null,t.content)},migrate:function(e){return e}}],ke=n(18),Ce=n(3),Ee=n(9),xe=n(4),Se=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(pe.createElement)(he.Path,{d:"M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z"}));function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Te=window.getComputedStyle,Be=window.document.querySelector.bind(document);function Ne(e){var t=e.direction,n=e.setDirection;return Object(xe.useSelect)((function(e){return!!e("core/block-editor").getSettings().isRTL}),[])&&Object(pe.createElement)(Ce.ToolbarGroup,{controls:[{icon:Se,title:Object(de._x)("Left to right","editor button"),isActive:"ltr"===t,onClick:function(){n("ltr"===t?void 0:"ltr")}}]})}var ze=Object(Ee.compose)([Object(ue.withFontSizes)("fontSize")])((function(e){var t,n,r,o,c,a,i,l=e.attributes,s=e.fontSize,u=e.mergeBlocks,b=e.onReplace,m=e.setAttributes,d=e.setFontSize,p=l.align,h=l.content,g=l.dropCap,f=l.placeholder,O=l.direction,v=Object(pe.useRef)(),j=(n=g,r=[s.size],o=Object(pe.useState)(),c=Object(ke.a)(o,2),a=c[0],i=c[1],Object(pe.useEffect)((function(){var e=Be("p.has-drop-cap");n&&e?i(Te(e,"first-letter").lineHeight):a&&i(void 0)}),[n,a,i].concat(Object(ie.a)(r))),a),y=Object(ue.__experimentalUseColors)([{name:"textColor",property:"color"},{name:"backgroundColor",className:"has-background"}],{contrastCheckers:[{backgroundColor:!0,textColor:!0,fontSize:s.size}],colorDetector:{targetRef:v}},[s.size]),w=y.TextColor,_=y.BackgroundColor,k=y.InspectorControlsColorPanel;return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ue.AlignmentToolbar,{value:p,onChange:function(e){return m({align:e})}}),Object(pe.createElement)(Ne,{direction:O,setDirection:function(e){return m({direction:e})}})),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Text settings")},Object(pe.createElement)(ue.FontSizePicker,{value:s.size,onChange:d}),Object(pe.createElement)(Ce.ToggleControl,{label:Object(de.__)("Drop cap"),checked:!!g,onChange:function(){return m({dropCap:!g})},help:g?Object(de.__)("Showing large initial letter."):Object(de.__)("Toggle to show a large initial letter.")}))),k,Object(pe.createElement)(_,null,Object(pe.createElement)(w,null,Object(pe.createElement)(ue.RichText,{ref:v,identifier:"content",tagName:ue.__experimentalBlock.p,className:Oe()((t={"has-drop-cap":g},Object(le.a)(t,"has-text-align-".concat(p),p),Object(le.a)(t,s.class,s.class),t)),style:{fontSize:s.size?s.size+"px":void 0,direction:O,minHeight:j},value:h,onChange:function(e){return m({content:e})},onSplit:function(e){return e?Object(be.createBlock)("core/paragraph",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},l,{content:e})):Object(be.createBlock)("core/paragraph")},onMerge:u,onReplace:b,onRemove:b?function(){return b([])}:void 0,"aria-label":h?Object(de.__)("Paragraph block"):Object(de.__)("Empty block; start writing or type forward slash to choose a block"),placeholder:f||Object(de.__)("Start writing or type / to choose a block"),__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0}))))}));var Me={from:[{type:"raw",priority:20,selector:"p",schema:function(e){return{p:{children:e.phrasingContentSchema,attributes:e.isPaste?[]:["style"]}}},transform:function(e){var t=Object(be.getBlockAttributes)("core/paragraph",e.outerHTML),n=(e.style||{}).textAlign;return"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),Object(be.createBlock)("core/paragraph",t)}}]},Ie={name:"core/paragraph",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},direction:{type:"string",enum:["ltr","rtl"]}}},Re=Ie.name,Ae={title:Object(de.__)("Paragraph"),description:Object(de.__)("Start with the building block of all narrative."),icon:ge,keywords:[Object(de.__)("text")],example:{attributes:{content:Object(de.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing."),customFontSize:28,dropCap:!0}},supports:{className:!1,__unstablePasteTextInline:!0,lightBlockWrapper:!0},__experimentalLabel:function(e,t){if("accessibility"===t.context){var n=e.content;return Object(me.isEmpty)(n)?Object(de.__)("Empty"):n}},transforms:Me,deprecated:_e,merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},edit:ze,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,c=n.dropCap,a=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=n.fontSize,b=n.customFontSize,m=n.direction,d=Object(ue.getColorClassName)("color",i),p=Object(ue.getColorClassName)("background-color",a),h=Object(ue.getFontSizeClass)(u),g=Oe()((t={"has-text-color":i||s,"has-background":a||l,"has-drop-cap":c},Object(le.a)(t,"has-text-align-".concat(r),r),Object(le.a)(t,h,h),Object(le.a)(t,d,d),Object(le.a)(t,p,p),t)),f={backgroundColor:p?void 0:l,color:d?void 0:s,fontSize:h?void 0:b};return Object(pe.createElement)(ue.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:o,dir:m})}},He=Object(pe.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(he.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-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),Le=n(12),Ve={align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},De=[{attributes:Ve,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,c=n.caption,a=n.align,i=n.href,l=n.width,s=n.height,u=n.id,b=Oe()((t={},Object(le.a)(t,"align".concat(a),a),Object(le.a)(t,"is-resized",l||s),t)),m=Object(pe.createElement)("img",{src:r,alt:o,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(pe.createElement)("figure",{className:b},i?Object(pe.createElement)("a",{href:i},m):m,!ue.RichText.isEmpty(c)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:c}))}},{attributes:Ve,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=t.id,u=Object(pe.createElement)("img",{src:n,alt:r,className:s?"wp-image-".concat(s):null,width:i,height:l});return Object(pe.createElement)("figure",{className:c?"align".concat(c):null},a?Object(pe.createElement)("a",{href:a},u):u,!ue.RichText.isEmpty(o)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:Ve,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=i||l?{width:i,height:l}:{},u=Object(pe.createElement)("img",Object(Le.a)({src:n,alt:r},s)),b={};return i?b={width:i}:"left"!==c&&"right"!==c||(b={maxWidth:"50%"}),Object(pe.createElement)("figure",{className:c?"align".concat(c):null,style:b},a?Object(pe.createElement)("a",{href:a},u):u,!ue.RichText.isEmpty(o)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:o}))}}],Fe=n(14),Ue=n(13),Ge=n(15),We=n(16),qe=n(8),Ze=n(17),Ke=n(42),$e=n(27),Qe=n(55),Je=Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(Ce.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.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),Ye=Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(Ce.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.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})),Xe=Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(Ce.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-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),et=Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(pe.createElement)(Ce.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.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})),tt={foreground:"#1da1f2",src:Object(pe.createElement)(Ce.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.G,null,Object(pe.createElement)(Ce.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"})))},nt={foreground:"#ff0000",src:Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},rt={foreground:"#3b5998",src:Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},ot=Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.G,null,Object(pe.createElement)(Ce.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),ct={foreground:"#0073AA",src:Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.G,null,Object(pe.createElement)(Ce.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},at={foreground:"#1db954",src:Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},it=Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),lt={foreground:"#1ab7ea",src:Object(pe.createElement)(Ce.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.G,null,Object(pe.createElement)(Ce.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},st=Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.Path,{d:"M22 11.816c0-1.256-1.02-2.277-2.277-2.277-.593 0-1.122.24-1.526.613-1.48-.965-3.455-1.594-5.647-1.69l1.17-3.702 3.18.75c.01 1.027.847 1.86 1.877 1.86 1.035 0 1.877-.84 1.877-1.877 0-1.035-.842-1.877-1.877-1.877-.77 0-1.43.466-1.72 1.13L13.55 3.92c-.204-.047-.4.067-.46.26l-1.35 4.27c-2.317.037-4.412.67-5.97 1.67-.402-.355-.917-.58-1.493-.58C3.02 9.54 2 10.56 2 11.815c0 .814.433 1.523 1.078 1.925-.037.222-.06.445-.06.673 0 3.292 4.01 5.97 8.94 5.97s8.94-2.678 8.94-5.97c0-.214-.02-.424-.052-.632.687-.39 1.154-1.12 1.154-1.964zm-3.224-7.422c.606 0 1.1.493 1.1 1.1s-.493 1.1-1.1 1.1-1.1-.494-1.1-1.1.493-1.1 1.1-1.1zm-16 7.422c0-.827.673-1.5 1.5-1.5.313 0 .598.103.838.27-.85.675-1.477 1.478-1.812 2.36-.32-.274-.525-.676-.525-1.13zm9.183 7.79c-4.502 0-8.165-2.33-8.165-5.193S7.457 9.22 11.96 9.22s8.163 2.33 8.163 5.193-3.663 5.193-8.164 5.193zM20.635 13c-.326-.89-.948-1.7-1.797-2.383.247-.186.55-.3.882-.3.827 0 1.5.672 1.5 1.5 0 .482-.23.91-.586 1.184zm-11.64 1.704c-.76 0-1.397-.616-1.397-1.376 0-.76.636-1.397 1.396-1.397.76 0 1.376.638 1.376 1.398 0 .76-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.615 1.376-1.375 1.376s-1.4-.616-1.4-1.376c0-.76.64-1.397 1.4-1.397.76 0 1.376.638 1.376 1.398zm-1.17 3.38c.15.152.15.398 0 .55-.675.674-1.728 1.002-3.22 1.002l-.01-.002-.012.002c-1.492 0-2.544-.328-3.218-1.002-.152-.152-.152-.398 0-.55.152-.152.4-.15.55 0 .52.52 1.394.775 2.67.775l.01.002.01-.002c1.276 0 2.15-.253 2.67-.775.15-.152.398-.152.55 0z"})),ut={foreground:"#35465c",src:Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.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-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z"}))},bt=Object(pe.createElement)(Ce.SVG,{viewBox:"0 0 24 24"},Object(pe.createElement)(Ce.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),Object(pe.createElement)(Ce.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),Object(pe.createElement)(Ce.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})),mt=[{name:"core-embed/twitter",settings:{title:"Twitter",icon:tt,keywords:["tweet",Object(de.__)("social")],description:Object(de.__)("Embed a tweet.")},patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i]},{name:"core-embed/youtube",settings:{title:"YouTube",icon:nt,keywords:[Object(de.__)("music"),Object(de.__)("video")],description:Object(de.__)("Embed a YouTube video.")},patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i]},{name:"core-embed/facebook",settings:{title:"Facebook",icon:rt,keywords:[Object(de.__)("social")],description:Object(de.__)("Embed a Facebook post.")},patterns:[/^https?:\/\/www\.facebook.com\/.+/i]},{name:"core-embed/instagram",settings:{title:"Instagram",icon:ot,keywords:[Object(de.__)("image"),Object(de.__)("social")],description:Object(de.__)("Embed an Instagram post.")},patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]},{name:"core-embed/wordpress",settings:{title:"WordPress",icon:ct,keywords:[Object(de.__)("post"),Object(de.__)("blog")],responsive:!1,description:Object(de.__)("Embed a WordPress post.")}},{name:"core-embed/soundcloud",settings:{title:"SoundCloud",icon:Ye,keywords:[Object(de.__)("music"),Object(de.__)("audio")],description:Object(de.__)("Embed SoundCloud content.")},patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]},{name:"core-embed/spotify",settings:{title:"Spotify",icon:at,keywords:[Object(de.__)("music"),Object(de.__)("audio")],description:Object(de.__)("Embed Spotify content.")},patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i]},{name:"core-embed/flickr",settings:{title:"Flickr",icon:it,keywords:[Object(de.__)("image")],description:Object(de.__)("Embed Flickr content.")},patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i]},{name:"core-embed/vimeo",settings:{title:"Vimeo",icon:lt,keywords:[Object(de.__)("video")],description:Object(de.__)("Embed a Vimeo video.")},patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i]}],dt=[{name:"core-embed/animoto",settings:{title:"Animoto",icon:et,description:Object(de.__)("Embed an Animoto video.")},patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]},{name:"core-embed/cloudup",settings:{title:"Cloudup",icon:Je,description:Object(de.__)("Embed Cloudup content.")},patterns:[/^https?:\/\/cloudup\.com\/.+/i]},{name:"core-embed/collegehumor",settings:{title:"CollegeHumor",icon:et,description:Object(de.__)("Embed CollegeHumor content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/crowdsignal",settings:{title:"Crowdsignal",icon:Je,keywords:["polldaddy",Object(de.__)("survey")],transform:[{type:"block",blocks:["core-embed/polldaddy"],transform:function(e){return Object(be.createBlock)("core-embed/crowdsignal",{content:e})}}],description:Object(de.__)("Embed Crowdsignal (formerly Polldaddy) content.")},patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]},{name:"core-embed/dailymotion",settings:{title:"Dailymotion",icon:et,keywords:[Object(de.__)("video")],description:Object(de.__)("Embed a Dailymotion video.")},patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]},{name:"core-embed/hulu",settings:{title:"Hulu",icon:et,keywords:[Object(de.__)("video")],description:Object(de.__)("Embed Hulu content.")},patterns:[/^https?:\/\/(www\.)?hulu\.com\/.+/i]},{name:"core-embed/imgur",settings:{title:"Imgur",icon:Xe,description:Object(de.__)("Embed Imgur content.")},patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i]},{name:"core-embed/issuu",settings:{title:"Issuu",icon:Je,description:Object(de.__)("Embed Issuu content.")},patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i]},{name:"core-embed/kickstarter",settings:{title:"Kickstarter",icon:Je,description:Object(de.__)("Embed Kickstarter content.")},patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i]},{name:"core-embed/meetup-com",settings:{title:"Meetup.com",icon:Je,description:Object(de.__)("Embed Meetup.com content.")},patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]},{name:"core-embed/mixcloud",settings:{title:"Mixcloud",icon:Ye,keywords:[Object(de.__)("music"),Object(de.__)("audio")],description:Object(de.__)("Embed Mixcloud content.")},patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]},{name:"core-embed/polldaddy",settings:{title:"Polldaddy",icon:Je,description:Object(de.__)("Embed Polldaddy content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/reddit",settings:{title:"Reddit",icon:st,description:Object(de.__)("Embed a Reddit thread.")},patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i]},{name:"core-embed/reverbnation",settings:{title:"ReverbNation",icon:Ye,description:Object(de.__)("Embed ReverbNation content.")},patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]},{name:"core-embed/screencast",settings:{title:"Screencast",icon:et,description:Object(de.__)("Embed Screencast content.")},patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i]},{name:"core-embed/scribd",settings:{title:"Scribd",icon:Je,description:Object(de.__)("Embed Scribd content.")},patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i]},{name:"core-embed/slideshare",settings:{title:"Slideshare",icon:Je,description:Object(de.__)("Embed Slideshare content.")},patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]},{name:"core-embed/smugmug",settings:{title:"SmugMug",icon:Xe,description:Object(de.__)("Embed SmugMug content.")},patterns:[/^https?:\/\/(www\.)?smugmug\.com\/.+/i]},{name:"core-embed/speaker",settings:{title:"Speaker",icon:Ye,supports:{inserter:!1}},patterns:[]},{name:"core-embed/speaker-deck",settings:{title:"Speaker Deck",icon:Je,transform:[{type:"block",blocks:["core-embed/speaker"],transform:function(e){return Object(be.createBlock)("core-embed/speaker-deck",{content:e})}}],description:Object(de.__)("Embed Speaker Deck content.")},patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]},{name:"core-embed/tiktok",settings:{title:"TikTok",icon:et,keywords:[Object(de.__)("video")],description:Object(de.__)("Embed a TikTok video.")},patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i]},{name:"core-embed/ted",settings:{title:"TED",icon:et,description:Object(de.__)("Embed a TED video.")},patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]},{name:"core-embed/tumblr",settings:{title:"Tumblr",icon:ut,keywords:[Object(de.__)("social")],description:Object(de.__)("Embed a Tumblr post.")},patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i]},{name:"core-embed/videopress",settings:{title:"VideoPress",icon:et,keywords:[Object(de.__)("video")],description:Object(de.__)("Embed a VideoPress video.")},patterns:[/^https?:\/\/videopress\.com\/.+/i]},{name:"core-embed/wordpress-tv",settings:{title:"WordPress.tv",icon:et,description:Object(de.__)("Embed a WordPress.tv video.")},patterns:[/^https?:\/\/wordpress\.tv\/.+/i]},{name:"core-embed/amazon-kindle",settings:{title:"Amazon Kindle",icon:bt,keywords:[Object(de.__)("ebook")],responsive:!1,description:Object(de.__)("Embed Amazon Kindle content.")},patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]}],pt=["facebook.com","smugmug.com"],ht=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],gt=n(81),ft=n.n(gt),Ot=n(47),vt=n.n(Ot);function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var yt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))},wt=function(e){return Object(me.includes)(e,'class="wp-embedded-content"')},_t=function(e,t){var n=e.preview,r=e.name,o=e.attributes.url;if(o){var c=function(e){for(var t=0,n=[].concat(Object(ie.a)(mt),Object(ie.a)(dt));t<n.length;t++){var r=n[t];if(yt(e,r.patterns))return r.name}return"core/embed"}(o);if(Object(be.getBlockType)(c)){if("core-embed/wordpress"!==r&&"core/embed"!==c&&r!==c)return Object(be.createBlock)(c,{url:o});if(n){var a=n.html;if(wt(a)&&"core-embed/wordpress"!==r)return Object(be.createBlock)("core-embed/wordpress",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({url:o},t))}}}};function kt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!n){for(var r={"wp-has-aspect-ratio":!1},o=0;o<ht.length;o++){var c=ht[o];r[c.className]=!1}return ft()(t,r)}var a=document.implementation.createHTMLDocument("");a.body.innerHTML=e;var i=a.body.querySelector("iframe");if(i&&i.height&&i.width)for(var l=(i.width/i.height).toFixed(2),s=0;s<ht.length;s++){var u,b=ht[s];if(l>=b.ratio)return ft()(t,(u={},Object(le.a)(u,b.className,n),Object(le.a)(u,"wp-has-aspect-ratio",n),u))}return t}function Ct(e,t){var n=Object(pe.createElement)("a",{href:e},e);t(Object(be.createBlock)("core/paragraph",{content:Object(pe.renderToString)(n)}))}var Et=vt()((function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var c={},a=e.type,i=void 0===a?"rich":a,l=e.html,s=e.provider_name,u=Object(me.kebabCase)(Object(me.toLower)(""!==s?s:t));return wt(l)&&(i="wp-embed"),(l||"photo"===i)&&(c.type=i,c.providerNameSlug=u),c.className=kt(l,n,r&&o),c})),xt=["image"];var St=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).state={width:void 0,height:void 0},e.bindContainer=e.bindContainer.bind(Object(qe.a)(e)),e.calculateSize=e.calculateSize.bind(Object(qe.a)(e)),e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"componentDidUpdate",value:function(e){this.props.src!==e.src&&(this.setState({width:void 0,height:void 0}),this.fetchImageSize()),this.props.dirtynessTrigger!==e.dirtynessTrigger&&this.calculateSize()}},{key:"componentDidMount",value:function(){this.fetchImageSize()}},{key:"componentWillUnmount",value:function(){this.image&&(this.image.onload=me.noop)}},{key:"fetchImageSize",value:function(){this.image=new window.Image,this.image.onload=this.calculateSize,this.image.src=this.props.src}},{key:"calculateSize",value:function(){var e,t,n,r,o,c=(e=this.image,t=this.container,n=t.clientWidth,r=e.width>n,o=e.height/e.width,{width:r?n:e.width,height:r?n*o:e.height}),a=c.width,i=c.height;this.setState({width:a,height:i})}},{key:"render",value:function(){var e={imageWidth:this.image&&this.image.width,imageHeight:this.image&&this.image.height,containerWidth:this.container&&this.container.clientWidth,containerHeight:this.container&&this.container.clientHeight,imageWidthWithinContainer:this.state.width,imageHeightWithinContainer:this.state.height};return Object(pe.createElement)("div",{ref:this.bindContainer},this.props.children(e))}}]),t}(pe.Component),Pt=Object(Ee.withGlobalEvents)({resize:"calculateSize"})(St);function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nt=function(e,t){return!e&&Object(Ke.isBlobURL)(t)},zt=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))).updateAlt=e.updateAlt.bind(Object(qe.a)(e)),e.updateAlignment=e.updateAlignment.bind(Object(qe.a)(e)),e.onFocusCaption=e.onFocusCaption.bind(Object(qe.a)(e)),e.onImageClick=e.onImageClick.bind(Object(qe.a)(e)),e.onSelectImage=e.onSelectImage.bind(Object(qe.a)(e)),e.onSelectURL=e.onSelectURL.bind(Object(qe.a)(e)),e.updateImage=e.updateImage.bind(Object(qe.a)(e)),e.onSetHref=e.onSetHref.bind(Object(qe.a)(e)),e.onSetTitle=e.onSetTitle.bind(Object(qe.a)(e)),e.getFilename=e.getFilename.bind(Object(qe.a)(e)),e.onUploadError=e.onUploadError.bind(Object(qe.a)(e)),e.onImageError=e.onImageError.bind(Object(qe.a)(e)),e.state={captionFocused:!1},e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,c=n.id,a=n.url,i=void 0===a?"":a;if(Nt(c,i)){var l=Object(Ke.getBlobByURL)(i);l&&r({filesList:[l],onFileChange:function(t){var n=Object(ke.a)(t,1)[0];e.onSelectImage(n)},allowedTypes:xt,onError:function(e){o.createErrorNotice(e)}})}}},{key:"componentDidUpdate",value:function(e){var t=e.attributes,n=t.id,r=t.url,o=void 0===r?"":r,c=this.props.attributes,a=c.id,i=c.url,l=void 0===i?"":i;Nt(n,o)&&!Nt(a,l)&&Object(Ke.revokeBlobURL)(l),!this.props.isSelected&&e.isSelected&&this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"onSelectImage",value:function(e){if(e&&e.url){var t,n,r,o=this.props.attributes,c=o.id,a=o.url,i=o.alt,l=o.caption,s=o.linkDestination,u=(t=e,(n=Object(me.pick)(t,["alt","id","link","caption"])).url=Object(me.get)(t,["sizes","large","url"])||Object(me.get)(t,["media_details","sizes","large","source_url"])||t.url,n);Nt(c,a)&&i&&(u=Object(me.omit)(u,["alt"])),l&&!Object(me.get)(u,["caption"])&&(u=Object(me.omit)(u,["caption"])),r=e.id&&e.id===c?{url:a}:{width:void 0,height:void 0,sizeSlug:"large"},"media"===s&&(u.href=e.url),"attachment"===s&&(u.href=e.link),this.props.setAttributes(Bt({},u,{},r))}else this.props.setAttributes({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0})}},{key:"onSelectURL",value:function(e){e!==this.props.attributes.url&&this.props.setAttributes({url:e,id:void 0,sizeSlug:"large"})}},{key:"onImageError",value:function(e){var t=_t({attributes:{url:e}});void 0!==t&&this.props.onReplace(t)}},{key:"onSetHref",value:function(e){this.props.setAttributes(e)}},{key:"onSetTitle",value:function(e){this.props.setAttributes({title:e})}},{key:"onFocusCaption",value:function(){this.state.captionFocused||this.setState({captionFocused:!0})}},{key:"onImageClick",value:function(){this.state.captionFocused&&this.setState({captionFocused:!1})}},{key:"updateAlt",value:function(e){this.props.setAttributes({alt:e})}},{key:"updateAlignment",value:function(e){var t=-1!==["wide","full"].indexOf(e)?{width:void 0,height:void 0}:{};this.props.setAttributes(Bt({},t,{align:e}))}},{key:"updateImage",value:function(e){var t=this.props.image,n=Object(me.get)(t,["media_details","sizes",e,"source_url"]);if(!n)return null;this.props.setAttributes({url:n,width:void 0,height:void 0,sizeSlug:e})}},{key:"getFilename",value:function(e){var t=Object($e.getPath)(e);if(t)return Object(me.last)(t.split("/"))}},{key:"getImageSizeOptions",value:function(){var e=this.props,t=e.imageSizes,n=e.image;return Object(me.map)(Object(me.filter)(t,(function(e){var t=e.slug;return Object(me.get)(n,["media_details","sizes",t,"source_url"])})),(function(e){var t=e.name;return{value:e.slug,label:t}}))}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,o=n.setAttributes,c=n.isLargeViewport,a=n.isSelected,i=n.className,l=n.maxWidth,s=n.noticeUI,u=n.isRTL,b=n.onResizeStart,m=n.onResizeStop,d=r.url,p=r.alt,h=r.caption,g=r.align,f=r.id,O=r.href,v=r.rel,j=r.linkClass,y=r.linkDestination,w=r.title,_=r.width,k=r.height,C=r.linkTarget,E=r.sizeSlug,x=function(e,t){return t&&!e&&!Object(Ke.isBlobURL)(t)}(f,d),S=Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(ue.BlockAlignmentToolbar,{value:g,onChange:this.updateAlignment}),d&&Object(pe.createElement)(ue.MediaReplaceFlow,{mediaId:f,mediaURL:d,allowedTypes:xt,accept:"image/*",onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,onError:this.onUploadError}),d&&Object(pe.createElement)(Ce.ToolbarGroup,null,Object(pe.createElement)(ue.__experimentalImageURLInputUI,{url:O||"",onChangeUrl:this.onSetHref,linkDestination:y,mediaUrl:this.props.image&&this.props.image.source_url,mediaLink:this.props.image&&this.props.image.link,linkTarget:C,linkClass:j,rel:v}))),P=x?d:void 0,T={title:d?Object(de.__)("Edit image"):Object(de.__)("Image"),instructions:Object(de.__)("Upload an image file, pick one from your media library, or add one with a URL.")},B=!!d&&Object(pe.createElement)("img",{alt:Object(de.__)("Edit image"),title:Object(de.__)("Edit image"),className:"edit-image-preview",src:d}),N=["center","left","right"].includes(g),z=Object(pe.createElement)(ue.MediaPlaceholder,{icon:Object(pe.createElement)(ue.BlockIcon,{icon:He}),labels:T,onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,notices:s,onError:this.onUploadError,accept:"image/*",allowedTypes:xt,value:{id:f,src:P},mediaPreview:B,disableMediaButtons:d});if(!d)return Object(pe.createElement)(pe.Fragment,null,S,Object(pe.createElement)(ue.__experimentalBlock.div,{className:Oe()(i,Object(le.a)({},"align".concat(g),!N&&g))},N?Object(pe.createElement)("div",{className:"align".concat(g)},z):z));var M=Oe()(i,(e={"is-transient":Object(Ke.isBlobURL)(d),"is-resized":!!_||!!k,"is-focused":a},Object(le.a)(e,"size-".concat(E),E),Object(le.a)(e,"align".concat(g),g),e)),I=-1===["wide","full"].indexOf(g)&&c,R=this.getImageSizeOptions(),A=function(e,n){return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Image settings")},Object(pe.createElement)(Ce.TextareaControl,{label:Object(de.__)("Alt text (alternative text)"),value:p,onChange:t.updateAlt,help:Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(Ce.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(de.__)("Describe the purpose of the image")),Object(de.__)("Leave empty if the image is purely decorative."))}),Object(pe.createElement)(ue.__experimentalImageSizeControl,{onChangeImage:t.updateImage,onChange:function(e){return o(e)},slug:E,width:_,height:k,imageSizeOptions:R,isResizable:I,imageWidth:e,imageHeight:n}))),Object(pe.createElement)(ue.InspectorAdvancedControls,null,Object(pe.createElement)(Ce.TextControl,{label:Object(de.__)("Title attribute"),value:w||"",onChange:t.onSetTitle,help:Object(pe.createElement)(pe.Fragment,null,Object(de.__)("Describe the role of this image on the page."),Object(pe.createElement)(Ce.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},Object(de.__)("(Note: many devices and browsers do not display this text.)")))})))},H=N?ue.__experimentalBlock.div:pe.Fragment,L=N?"figure":ue.__experimentalBlock.figure;return Object(pe.createElement)(pe.Fragment,null,S,Object(pe.createElement)(H,null,Object(pe.createElement)(L,{className:M},Object(pe.createElement)(Pt,{src:d,dirtynessTrigger:g},(function(e){var n,r=e.imageWidthWithinContainer,c=e.imageHeightWithinContainer,a=e.imageWidth,i=e.imageHeight,s=t.getFilename(d);n=p||(s?Object(de.sprintf)(Object(de.__)("This image has an empty alt attribute; its file name is %s"),s):Object(de.__)("This image has an empty alt attribute"));var h=Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)("img",{src:d,alt:n,onClick:t.onImageClick,onError:function(){return t.onImageError(d)}}),Object(Ke.isBlobURL)(d)&&Object(pe.createElement)(Ce.Spinner,null));if(!I||!r)return Object(pe.createElement)(pe.Fragment,null,A(a,i),Object(pe.createElement)("div",{style:{width:_,height:k}},h));var f=_||r,O=k||c,v=a/i,j=a<i?20:20*v,y=i<a?20:20/v,w=2.5*l,C=!1,E=!1;return"center"===g?(C=!0,E=!0):u?"left"===g?C=!0:E=!0:"right"===g?E=!0:C=!0,Object(pe.createElement)(pe.Fragment,null,A(a,i),Object(pe.createElement)(Ce.ResizableBox,{size:{width:_,height:k},minWidth:j,maxWidth:w,minHeight:y,maxHeight:w/v,lockAspectRatio:!0,enable:{top:!1,right:C,bottom:!0,left:E},onResizeStart:b,onResizeStop:function(e,t,n,r){m(),o({width:parseInt(f+r.width,10),height:parseInt(O+r.height,10)})}},h))})),(!ue.RichText.isEmpty(h)||a)&&Object(pe.createElement)(ue.RichText,{tagName:"figcaption",placeholder:Object(de.__)("Write caption…"),value:h,unstableOnFocus:this.onFocusCaption,onChange:function(e){return o({caption:e})},isSelected:this.state.captionFocused,inlineToolbar:!0}),z)))}}]),t}(pe.Component),Mt=Object(Ee.compose)([Object(xe.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),Object(xe.withSelect)((function(e,t){var n=e("core").getMedia,r=e("core/block-editor").getSettings,o=t.attributes.id,c=t.isSelected,a=r(),i=a.mediaUpload,l=a.imageSizes,s=a.isRTL,u=a.maxWidth;return{image:o&&c?n(o):null,maxWidth:u,isRTL:s,imageSizes:l,mediaUpload:i}})),Object(Qe.withViewportMatch)({isLargeViewport:"medium"}),Ce.withNotices])(zt);function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function At(e,t){var n=document.implementation.createHTMLDocument("").body;n.innerHTML=e;var r=n.firstElementChild;if(r&&"A"===r.nodeName)return r.getAttribute(t)||void 0}var Ht={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},Lt={from:[{type:"raw",isMatch:function(e){return"FIGURE"===e.nodeName&&!!e.querySelector("img")},schema:function(e){var t=e.phrasingContentSchema;return{figure:{require:["img"],children:Rt({},Ht,{a:{attributes:["href","rel","target"],children:Ht},figcaption:{children:t}})}}},transform:function(e){var t=e.className+" "+e.querySelector("img").className,n=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),r=n?n[1]:void 0,o=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),c=o?Number(o[1]):void 0,a=e.querySelector("a"),i=a&&a.href?"custom":void 0,l=a&&a.href?a.href:void 0,s=a&&a.rel?a.rel:void 0,u=a&&a.className?a.className:void 0,b=Object(be.getBlockAttributes)("core/image",e.outerHTML,{align:r,id:c,linkDestination:i,href:l,rel:s,linkClass:u});return Object(be.createBlock)("core/image",b)}},{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("image/")},transform:function(e){var t=e[0];return Object(be.createBlock)("core/image",{url:Object(Ke.createBlobURL)(t)})}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:function(e,t){var n=t.shortcode,r=document.implementation.createHTMLDocument("").body;r.innerHTML=n.content;for(var o=r.querySelector("img");o&&o.parentNode&&o.parentNode!==r;)o=o.parentNode;return o&&o.parentNode.removeChild(o),r.innerHTML.trim()}},href:{shortcode:function(e,t){return At(t.shortcode.content,"href")}},rel:{shortcode:function(e,t){return At(t.shortcode.content,"rel")}},linkClass:{shortcode:function(e,t){return At(t.shortcode.content,"class")}},id:{type:"number",shortcode:function(e){var t=e.named.id;if(t)return parseInt(t.replace("attachment_",""),10)}},align:{type:"string",shortcode:function(e){var t=e.named.align;return(void 0===t?"alignnone":t).replace("align","")}}}}]},Vt={name:"core/image",category:"common",attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}}},Dt=Vt.name,Ft={title:Object(de.__)("Image"),description:Object(de.__)("Insert an image to make a visual statement."),icon:He,keywords:["img",Object(de.__)("photo")],supports:{lightBlockWrapper:!0},example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(de.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(de._x)("Default","block style"),isDefault:!0},{name:"rounded",label:Object(de._x)("Rounded","block style")}],__experimentalLabel:function(e,t){if("accessibility"===t.context){var n=e.caption,r=e.alt;return e.url?r?r+(n?". "+n:""):n||"":Object(de.__)("Empty")}},transforms:Lt,edit:Mt,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,c=n.caption,a=n.align,i=n.href,l=n.rel,s=n.linkClass,u=n.width,b=n.height,m=n.id,d=n.linkTarget,p=n.sizeSlug,h=n.title,g=Object(me.isEmpty)(l)?void 0:l,f=Oe()((t={},Object(le.a)(t,"align".concat(a),a),Object(le.a)(t,"size-".concat(p),p),Object(le.a)(t,"is-resized",u||b),t)),O=Object(pe.createElement)("img",{src:r,alt:o,className:m?"wp-image-".concat(m):null,width:u,height:b,title:h}),v=Object(pe.createElement)(pe.Fragment,null,i?Object(pe.createElement)("a",{className:s,href:i,target:d,rel:g},O):O,!ue.RichText.isEmpty(c)&&Object(pe.createElement)(ue.RichText.Content,{tagName:"figcaption",value:c}));return"left"===a||"right"===a||"center"===a?Object(pe.createElement)("div",null,Object(pe.createElement)("figure",{className:f},v)):Object(pe.createElement)("figure",{className:f},v)},deprecated:De},Ut=Object(pe.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(pe.createElement)(he.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"})),Gt={className:!1,anchor:!0},Wt={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},qt=[{attributes:Wt,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,c=n.customTextColor,a=n.level,i=n.textColor,l="h"+a,s=Object(ue.getColorClassName)("color",i),u=Oe()((t={},Object(le.a)(t,s,s),Object(le.a)(t,"has-text-align-".concat(r),r),t));return Object(pe.createElement)(ue.RichText.Content,{className:u||void 0,tagName:l,style:{color:s?void 0:c},value:o})},supports:Gt},{supports:Gt,attributes:Wt,save:function(e){var t=e.attributes,n=t.align,r=t.level,o=t.content,c=t.textColor,a=t.customTextColor,i="h"+r,l=Object(ue.getColorClassName)("color",c),s=Oe()(Object(le.a)({},l,l));return Object(pe.createElement)(ue.RichText.Content,{className:s||void 0,tagName:i,style:{textAlign:n,color:l?void 0:a},value:o})}}];function Zt(e){var t=e.level,n=e.isPressed,r=void 0!==n&&n,o={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return o.hasOwnProperty(t)?Object(pe.createElement)(Ce.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:r},Object(pe.createElement)(Ce.Path,{d:o[t]})):null}var Kt=function(e){function t(){return Object(Fe.a)(this,t),Object(Ge.a)(this,Object(We.a)(t).apply(this,arguments))}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"createLevelControl",value:function(e,t,n){var r=e===t;return{icon:Object(pe.createElement)(Zt,{level:e,isPressed:r}),title:Object(de.sprintf)(Object(de.__)("Heading %d"),e),isActive:r,onClick:function(){return n(e)}}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isCollapsed,r=void 0===n||n,o=t.minLevel,c=t.maxLevel,a=t.selectedLevel,i=t.onChange;return Object(pe.createElement)(Ce.ToolbarGroup,{isCollapsed:r,icon:Object(pe.createElement)(Zt,{level:a}),controls:Object(me.range)(o,c).map((function(t){return e.createLevelControl(t,a,i)})),label:Object(de.__)("Change heading level")})}}]),t}(pe.Component);function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Qt=function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=e.onReplace,c=Object(pe.useRef)(),a=Object(ue.__experimentalUseColors)([{name:"textColor",property:"color"}],{contrastCheckers:{backgroundColor:!0,textColor:!0},colorDetector:{targetRef:c}},[]),i=a.TextColor,l=a.InspectorControlsColorPanel,s=t.align,u=t.content,b=t.level,m=t.placeholder,d="h"+b;return Object(pe.createElement)(pe.Fragment,null,Object(pe.createElement)(ue.BlockControls,null,Object(pe.createElement)(Kt,{minLevel:2,maxLevel:5,selectedLevel:b,onChange:function(e){return n({level:e})}}),Object(pe.createElement)(ue.AlignmentToolbar,{value:s,onChange:function(e){n({align:e})}})),Object(pe.createElement)(ue.InspectorControls,null,Object(pe.createElement)(Ce.PanelBody,{title:Object(de.__)("Heading settings")},Object(pe.createElement)("p",null,Object(de.__)("Level")),Object(pe.createElement)(Kt,{isCollapsed:!1,minLevel:1,maxLevel:7,selectedLevel:b,onChange:function(e){return n({level:e})}}))),l,Object(pe.createElement)(i,null,Object(pe.createElement)(ue.RichText,{ref:c,identifier:"content",tagName:ue.__experimentalBlock[d],value:u,onChange:function(e){return n({content:e})},onMerge:r,onSplit:function(e){return e?Object(be.createBlock)("core/heading",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){Object(le.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{content:e})):Object(be.createBlock)("core/paragraph")},onReplace:o,onRemove:function(){return o([])},className:Oe()(Object(le.a)({},"has-text-align-".concat(s),s)),placeholder:m||Object(de.__)("Write heading…")})))};var Jt={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(be.createBlock)("core/heading",{content:t})}},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:function(e){var t={children:e.phrasingContentSchema,attributes:e.isPaste?[]:["style"]};return{h1:t,h2:t,h3:t,h4:t,h5:t,h6:t}},transform:function(e){var t,n=Object(be.getBlockAttributes)("core/heading",e.outerHTML),r=(e.style||{}).textAlign;return n.level=(t=e.nodeNa