mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-16 23:55:12 +01:00
48299521c6
The following package versions were changed: @wordpress/a11y: 2.5.1 -> 2.6.0 @wordpress/annotations: 1.9.0 -> 1.10.0 @wordpress/api-fetch: 3.8.0 -> 3.9.0 @wordpress/blob: 2.5.1 -> 2.6.0 @wordpress/block-directory: 1.2.0 -> 1.3.0 @wordpress/block-editor: 3.4.0 -> 3.5.0 @wordpress/block-library: 2.11.0 -> 2.12.0 @wordpress/blocks: 6.9.0 -> 6.10.0 @wordpress/components: 8.5.0 -> 9.0.0 @wordpress/compose: 3.9.0 -> 3.10.0 @wordpress/core-data: 2.9.0 -> 2.10.0 @wordpress/data: 4.11.0 -> 4.12.0 @wordpress/data-controls: 1.5.0 -> 1.6.0 @wordpress/dom: 2.6.0 -> 2.7.0 @wordpress/dom-ready: 2.5.1 -> 2.6.0 @wordpress/e2e-test-utils: 4.0.0 -> 4.1.0 @wordpress/edit-post: 3.10.0 -> 3.11.0 @wordpress/editor: 9.9.0 -> 9.10.0 @wordpress/format-library: 1.11.0 -> 1.12.0 @wordpress/i18n: 3.7.0 -> 3.8.0 @wordpress/is-shallow-equal: 1.6.1 -> 1.7.0 @wordpress/keycodes: 2.7.0 -> 2.8.0 @wordpress/list-reusable-blocks: 1.10.0 -> 1.11.0 @wordpress/media-utils: 1.4.0 -> 1.5.0 @wordpress/notices: 1.10.0 -> 1.11.0 @wordpress/nux: 3.9.0 -> 3.10.0 @wordpress/plugins: 2.9.0 -> 2.10.0 @wordpress/priority-queue: 1.3.1 -> 1.4.0 @wordpress/rich-text: 3.9.0 -> 3.10.0 @wordpress/scripts: 6.1.1 -> 6.2.0 @wordpress/server-side-render: 1.5.0 -> 1.6.0 @wordpress/viewport: 2.10.0 -> 2.11.0 The following package was added: @wordpress/keyboard-shortcuts Props gziolo. Fixes #49204. Built from https://develop.svn.wordpress.org/trunk@47106 git-svn-id: http://core.svn.wordpress.org/trunk@46906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
14 lines
313 KiB
JavaScript
14 lines
313 KiB
JavaScript
/*! This file is auto-generated */
|
||
this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=361)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t,n){var r;
|
||
/*!
|
||
Copyright (c) 2017 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var c=o.apply(null,r);c&&e.push(c)}else if("object"===a)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},11:function(e,t){!function(){e.exports=this.wp.blocks}()},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}))},121:function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.3.2 by @mathias */!function(a){t&&t.nodeType,e&&e.nodeType;var c="object"==typeof r&&r;c.global!==c&&c.window!==c&&c.self;var i,l=2147483647,s=36,u=1,b=26,m=38,d=700,h=72,p=128,g="-",f=/^xn--/,v=/[^\x20-\x7E]/,O=/[\x2E\u3002\uFF0E\uFF61]/g,j={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=s-u,_=Math.floor,k=String.fromCharCode;function C(e){throw RangeError(j[e])}function w(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+w((e=e.replace(O,".")).split("."),t).join(".")}function x(e){for(var t,n,r=[],o=0,a=e.length;o<a;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<a?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function S(e){return w(e,(function(e){var t="";return e>65535&&(t+=k((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=k(e)})).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function N(e,t,n){var r=0;for(e=n?_(e/d):e>>1,e+=_(e/t);e>y*b>>1;r+=s)e=_(e/y);return _(r+(y+1)*e/(e+m))}function B(e){var t,n,r,o,a,c,i,m,d,f,v,O=[],j=e.length,y=0,k=p,w=h;for((n=e.lastIndexOf(g))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&C("not-basic"),O.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<j;){for(a=y,c=1,i=s;o>=j&&C("invalid-input"),((m=(v=e.charCodeAt(o++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:s)>=s||m>_((l-y)/c))&&C("overflow"),y+=m*c,!(m<(d=i<=w?u:i>=w+b?b:i-w));i+=s)c>_(l/(f=s-d))&&C("overflow"),c*=f;w=N(y-a,t=O.length+1,0==a),_(y/t)>l-k&&C("overflow"),k+=_(y/t),y%=t,O.splice(y++,0,k)}return S(O)}function A(e){var t,n,r,o,a,c,i,m,d,f,v,O,j,y,w,E=[];for(O=(e=x(e)).length,t=p,n=0,a=h,c=0;c<O;++c)(v=e[c])<128&&E.push(k(v));for(r=o=E.length,o&&E.push(g);r<O;){for(i=l,c=0;c<O;++c)(v=e[c])>=t&&v<i&&(i=v);for(i-t>_((l-n)/(j=r+1))&&C("overflow"),n+=(i-t)*j,t=i,c=0;c<O;++c)if((v=e[c])<t&&++n>l&&C("overflow"),v==t){for(m=n,d=s;!(m<(f=d<=a?u:d>=a+b?b:d-a));d+=s)w=m-f,y=s-f,E.push(k(T(f+w%y,0))),m=_(w/y);E.push(k(T(m,0))),a=N(n,j,r==o),n=0,++r}++n,++t}return E.join("")}i={version:"1.3.2",ucs2:{decode:x,encode:S},decode:B,encode:A,toASCII:function(e){return E(e,(function(e){return v.test(e)?"xn--"+A(e):e}))},toUnicode:function(e){return E(e,(function(e){return f.test(e)?B(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(122)(e),n(63))},122: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}},123: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}}},124:function(e,t,n){"use strict";t.decode=t.parse=n(125),t.encode=t.stringify=n(126)},125:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,a){t=t||"&",n=n||"=";var c={};if("string"!=typeof e||0===e.length)return c;var i=/\+/g;e=e.split(t);var l=1e3;a&&"number"==typeof a.maxKeys&&(l=a.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var u=0;u<s;++u){var b,m,d,h,p=e[u].replace(i,"%20"),g=p.indexOf(n);g>=0?(b=p.substr(0,g),m=p.substr(g+1)):(b=p,m=""),d=decodeURIComponent(b),h=decodeURIComponent(m),r(c,d)?o(c[d])?c[d].push(h):c[d]=[c[d],h]:c[d]=h}return c};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},126: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?a(c(e),(function(c){var i=encodeURIComponent(r(c))+n;return o(e[c])?a(e[c],(function(e){return i+encodeURIComponent(r(e))})).join(t):i+encodeURIComponent(r(e[c]))})).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 a(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 c=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},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 a}));var r=n(32),o=n(7);function a(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},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}))},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(31);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}))},19:function(e,t){!function(){e.exports=this.wp.keycodes}()},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(40);function o(e,t){if(null==e)return{};var n,o,a=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},219:function(e,t,n){
|
||
/*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */
|
||
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,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}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,a;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),a=null,c=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;c=this.getColorFromArray4(i,t)}catch(e){a=e}return this._prepareResult(c,a)}},{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),a="_"+(t.algorithm||"sqrt")+"Algorithm";if("function"!=typeof this[a])throw new Error("FastAverageColor: ".concat(t.algorithm," is unknown algorithm."));return this[a](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),a=this._getOption(t,"width",e.width),c=this._getOption(t,"height",e.height),i=a,l=c;return"precision"===t.mode?{srcLeft:r,srcTop:o,srcWidth:a,srcHeight:c,destWidth:i,destHeight:l}:(a>c?(n=a/c,i=100,l=Math.round(i/n)):(n=c/a,l=100,i=Math.round(l/n)),(i>a||l>c||i<10||l<10)&&(i=a,l=c),{srcLeft:r,srcTop:o,srcWidth:a,srcHeight:c,destWidth:i,destHeight:l})}},{key:"_simpleAlgorithm",value:function(e,t,n){for(var r=0,o=0,a=0,c=0,i=0,l=0;l<t;l+=n){var s=e[l+3];r+=e[l]*s,o+=e[l+1]*s,a+=e[l+2]*s,c+=s,i++}return c?[Math.round(r/c),Math.round(o/c),Math.round(a/c),Math.round(c/i)]:[0,0,0,0]}},{key:"_sqrtAlgorithm",value:function(e,t,n){for(var r=0,o=0,a=0,c=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,a+=b*b*m,c+=m,i++}return c?[Math.round(Math.sqrt(r/c)),Math.round(Math.sqrt(o/c)),Math.round(Math.sqrt(a/c)),Math.round(c/i)]:[0,0,0,0]}},{key:"_dominantAlgorithm",value:function(e,n,r){for(var o={},a=0;a<n;a+=r){var c=e[a],i=e[a+1],l=e[a+2],s=e[a+3],u=Math.round(c/24)+","+Math.round(i/24)+","+Math.round(l/24);o[u]?o[u]=[o[u][0]+c*s,o[u][1]+i*s,o[u][2]+l*s,o[u][3]+s,o[u][4]+1]:o[u]=[c*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],h=b[2],p=b[3],g=b[4];return p?[Math.round(m/p),Math.round(d/p),Math.round(h/p),Math.round(p/g)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,n){var r=this,o=(n=n||{})&&n.data,a=this._getDefaultColor(n),c=function(){s(),t.call(e,r.getColor(e,n),o)},i=function(){s(),t.call(e,r._prepareResult(a,new Error("Image error")),o)},l=function(){s(),t.call(e,r._prepareResult(a,new Error("Image abort")),o)},s=function(){e.removeEventListener("load",c),e.removeEventListener("error",i),e.removeEventListener("abort",l)};e.addEventListener("load",c),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),a&&e(r,a),n}()}()},22:function(e,t,n){"use strict";var r=n(35);var o=n(36);function a(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,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}return n}}(e,t)||Object(o.a)()}n.d(t,"a",(function(){return a}))},24:function(e,t){!function(){e.exports=this.wp.richText}()},25:function(e,t){!function(){e.exports=this.wp.url}()},26:function(e,t){!function(){e.exports=this.wp.editor}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t){!function(){e.exports=this.moment}()},31: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}))},32: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}))},33:function(e,t){!function(){e.exports=this.wp.deprecated}()},35:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},36: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}))},361:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"metadata",(function(){return ve})),n.d(r,"name",(function(){return Oe})),n.d(r,"settings",(function(){return je}));var o={};n.r(o),n.d(o,"metadata",(function(){return ft})),n.d(o,"name",(function(){return vt})),n.d(o,"settings",(function(){return Ot}));var a={};n.r(a),n.d(a,"metadata",(function(){return xt})),n.d(a,"name",(function(){return St})),n.d(a,"settings",(function(){return Tt}));var c={};n.r(c),n.d(c,"metadata",(function(){return Pt})),n.d(c,"name",(function(){return zt})),n.d(c,"settings",(function(){return Ht}));var i={};n.r(i),n.d(i,"metadata",(function(){return on})),n.d(i,"name",(function(){return an})),n.d(i,"settings",(function(){return cn}));var l={};n.r(l),n.d(l,"name",(function(){return bn})),n.d(l,"settings",(function(){return mn}));var s={};n.r(s),n.d(s,"metadata",(function(){return On})),n.d(s,"name",(function(){return jn})),n.d(s,"settings",(function(){return yn}));var u={};n.r(u),n.d(u,"metadata",(function(){return zn})),n.d(u,"name",(function(){return Hn})),n.d(u,"settings",(function(){return Ln}));var b={};n.r(b),n.d(b,"metadata",(function(){return qn})),n.d(b,"name",(function(){return Wn})),n.d(b,"settings",(function(){return Kn}));var m={};n.r(m),n.d(m,"name",(function(){return Xn})),n.d(m,"settings",(function(){return er}));var d={};n.r(d),n.d(d,"name",(function(){return or})),n.d(d,"settings",(function(){return ar}));var h={};n.r(h),n.d(h,"metadata",(function(){return br})),n.d(h,"name",(function(){return mr})),n.d(h,"settings",(function(){return dr}));var p={};n.r(p),n.d(p,"metadata",(function(){return Sr})),n.d(p,"name",(function(){return Tr})),n.d(p,"settings",(function(){return Nr}));var g={};n.r(g),n.d(g,"metadata",(function(){return Rr})),n.d(g,"name",(function(){return Ir})),n.d(g,"settings",(function(){return Mr}));var f={};n.r(f),n.d(f,"metadata",(function(){return no})),n.d(f,"name",(function(){return ro})),n.d(f,"settings",(function(){return oo}));var v={};n.r(v),n.d(v,"name",(function(){return fo})),n.d(v,"settings",(function(){return vo})),n.d(v,"common",(function(){return Oo})),n.d(v,"others",(function(){return jo}));var O={};n.r(O),n.d(O,"metadata",(function(){return Eo})),n.d(O,"name",(function(){return xo})),n.d(O,"settings",(function(){return So}));var j={};n.r(j),n.d(j,"metadata",(function(){return Ro})),n.d(j,"name",(function(){return Io})),n.d(j,"settings",(function(){return Mo}));var y={};n.r(y),n.d(y,"metadata",(function(){return Jo})),n.d(y,"name",(function(){return Qo})),n.d(y,"settings",(function(){return Yo}));var _={};n.r(_),n.d(_,"justifyLeftIcon",(function(){return aa})),n.d(_,"justifyCenterIcon",(function(){return ca})),n.d(_,"justifyRightIcon",(function(){return ia}));var k={};n.r(k),n.d(k,"name",(function(){return sa})),n.d(k,"settings",(function(){return ua}));var C={};n.r(C),n.d(C,"metadata",(function(){return ha})),n.d(C,"name",(function(){return pa})),n.d(C,"settings",(function(){return ga}));var w={};n.r(w),n.d(w,"name",(function(){return Oa})),n.d(w,"settings",(function(){return ja}));var E={};n.r(E),n.d(E,"name",(function(){return Sa})),n.d(E,"settings",(function(){return Ta}));var x={};n.r(x),n.d(x,"metadata",(function(){return Ia})),n.d(x,"name",(function(){return Ma})),n.d(x,"settings",(function(){return Pa}));var S={};n.r(S),n.d(S,"metadata",(function(){return Ha})),n.d(S,"name",(function(){return La})),n.d(S,"settings",(function(){return Va}));var T={};n.r(T),n.d(T,"metadata",(function(){return Ga})),n.d(T,"name",(function(){return qa})),n.d(T,"settings",(function(){return Wa}));var N={};n.r(N),n.d(N,"metadata",(function(){return $a})),n.d(N,"name",(function(){return Ja})),n.d(N,"settings",(function(){return Qa}));var B={};n.r(B),n.d(B,"metadata",(function(){return ec})),n.d(B,"name",(function(){return tc})),n.d(B,"settings",(function(){return nc}));var A={};n.r(A),n.d(A,"metadata",(function(){return uc})),n.d(A,"name",(function(){return bc})),n.d(A,"settings",(function(){return mc}));var R={};n.r(R),n.d(R,"name",(function(){return fc})),n.d(R,"settings",(function(){return vc}));var I={};n.r(I),n.d(I,"name",(function(){return jc})),n.d(I,"settings",(function(){return yc}));var M={};n.r(M),n.d(M,"name",(function(){return _c})),n.d(M,"settings",(function(){return kc}));var P={};n.r(P),n.d(P,"metadata",(function(){return xc})),n.d(P,"name",(function(){return Sc})),n.d(P,"settings",(function(){return Tc}));var z={};n.r(z),n.d(z,"metadata",(function(){return Ic})),n.d(z,"name",(function(){return Mc})),n.d(z,"settings",(function(){return Pc}));var H={};n.r(H),n.d(H,"name",(function(){return Vc})),n.d(H,"settings",(function(){return Fc}));var L={};n.r(L),n.d(L,"metadata",(function(){return Gc})),n.d(L,"name",(function(){return qc})),n.d(L,"settings",(function(){return Wc}));var V={};n.r(V),n.d(V,"metadata",(function(){return Qc})),n.d(V,"name",(function(){return Yc})),n.d(V,"settings",(function(){return Xc}));var F={};n.r(F),n.d(F,"metadata",(function(){return gi})),n.d(F,"name",(function(){return fi})),n.d(F,"settings",(function(){return vi}));var D={};n.r(D),n.d(D,"metadata",(function(){return ji})),n.d(D,"name",(function(){return yi})),n.d(D,"settings",(function(){return _i}));var U={};n.r(U),n.d(U,"metadata",(function(){return Ei})),n.d(U,"name",(function(){return xi})),n.d(U,"settings",(function(){return Si}));var G={};n.r(G),n.d(G,"metadata",(function(){return Pi})),n.d(G,"name",(function(){return zi})),n.d(G,"settings",(function(){return Hi}));var q={};n.r(q),n.d(q,"name",(function(){return Fi})),n.d(q,"settings",(function(){return Di}));var W={};n.r(W),n.d(W,"metadata",(function(){return Wi})),n.d(W,"name",(function(){return Ki})),n.d(W,"settings",(function(){return Zi}));var K=n(18),Z=n(9),$=(n(64),n(5)),J=(n(26),n(11)),Q=n(1),Y=n(6),X=n(0),ee=n(10),te=n.n(ee),ne=n(2),re={className:!1},oe={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"]}},ae=[{supports:re,attributes:oe,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,a=n.dropCap,c=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=n.fontSize,b=n.customFontSize,m=n.direction,d=Object($.getColorClassName)("color",i),h=Object($.getColorClassName)("background-color",c),p=Object($.getFontSizeClass)(u),g=te()((t={"has-text-color":i||s,"has-background":c||l,"has-drop-cap":a},Object(Z.a)(t,p,p),Object(Z.a)(t,d,d),Object(Z.a)(t,h,h),t)),f={backgroundColor:h?void 0:l,color:d?void 0:s,fontSize:p?void 0:b,textAlign:r};return Object(X.createElement)($.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:o,dir:m})}},{supports:re,attributes:Object(Y.a)({},oe,{width:{type:"string"}}),save:function(e){var t,n=e.attributes,r=n.width,o=n.align,a=n.content,c=n.dropCap,i=n.backgroundColor,l=n.textColor,s=n.customBackgroundColor,u=n.customTextColor,b=n.fontSize,m=n.customFontSize,d=Object($.getColorClassName)("color",l),h=Object($.getColorClassName)("background-color",i),p=b&&"is-".concat(b,"-text"),g=te()((t={},Object(Z.a)(t,"align".concat(r),r),Object(Z.a)(t,"has-background",i||s),Object(Z.a)(t,"has-drop-cap",c),Object(Z.a)(t,p,p),Object(Z.a)(t,d,d),Object(Z.a)(t,h,h),t)),f={backgroundColor:h?void 0:s,color:d?void 0:u,fontSize:p?void 0:m,textAlign:o};return Object(X.createElement)($.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:a})}},{supports:re,attributes:Object(ne.omit)(Object(Y.a)({},oe,{fontSize:{type:"number"}}),"customFontSize","customTextColor","customBackgroundColor"),save:function(e){var t,n=e.attributes,r=n.width,o=n.align,a=n.content,c=n.dropCap,i=n.backgroundColor,l=n.textColor,s=n.fontSize,u=te()((t={},Object(Z.a)(t,"align".concat(r),r),Object(Z.a)(t,"has-background",i),Object(Z.a)(t,"has-drop-cap",c),t)),b={backgroundColor:i,color:l,fontSize:s,textAlign:o};return Object(X.createElement)("p",{style:b,className:u||void 0},a)},migrate:function(e){return Object(ne.omit)(Object(Y.a)({},e,{customFontSize:Object(ne.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:re,attributes:Object(Y.a)({},oe,{content:{type:"string",source:"html",default:""}}),save:function(e){var t=e.attributes;return Object(X.createElement)(X.RawHTML,null,t.content)},migrate:function(e){return e}}],ce=n(22),ie=n(3),le=n(8),se=n(4),ue=window.getComputedStyle,be=window.document.querySelector.bind(document),me="core/paragraph",de="p.has-drop-cap";function he(e){var t=e.direction,n=e.setDirection;return Object(se.useSelect)((function(e){return!!e("core/block-editor").getSettings().isRTL}),[])&&Object(X.createElement)(ie.ToolbarGroup,{controls:[{icon:"editor-ltr",title:Object(Q._x)("Left to right","editor button"),isActive:"ltr"===t,onClick:function(){n("ltr"===t?void 0:"ltr")}}]})}var pe=Object(le.compose)([Object($.withFontSizes)("fontSize")])((function(e){var t,n,r,o,a,c,i,l=e.attributes,s=e.className,u=e.fontSize,b=e.mergeBlocks,m=e.onReplace,d=e.setAttributes,h=e.setFontSize,p=l.align,g=l.content,f=l.dropCap,v=l.placeholder,O=l.direction,j=(n=f,r=[u.size],o=Object(X.useState)(),a=Object(ce.a)(o,2),c=a[0],i=a[1],Object(X.useEffect)((function(){var e=be(de);n&&e?i(ue(e,"first-letter").height):c&&i(void 0)}),[n,c,i].concat(Object(K.a)(r))),c),y=Object($.__experimentalUseColors)([{name:"textColor",property:"color"},{name:"backgroundColor",className:"has-background"}],{contrastCheckers:[{backgroundColor:!0,textColor:!0,fontSize:u.size}]},[u.size]),_=y.TextColor,k=y.BackgroundColor,C=y.InspectorControlsColorPanel,w=y.ColorDetector;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)($.AlignmentToolbar,{value:p,onChange:function(e){return d({align:e})}}),Object(X.createElement)(he,{direction:O,setDirection:function(e){return d({direction:e})}})),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Text Settings")},Object(X.createElement)($.FontSizePicker,{value:u.size,onChange:h}),Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Drop Cap"),checked:!!f,onChange:function(){return d({dropCap:!f})},help:f?Object(Q.__)("Showing large initial letter."):Object(Q.__)("Toggle to show a large initial letter.")}))),C,Object(X.createElement)(k,null,Object(X.createElement)(_,null,Object(X.createElement)(w,{querySelector:'[contenteditable="true"]'}),Object(X.createElement)($.RichText,{identifier:"content",tagName:"p",className:te()("wp-block-paragraph",s,(t={"has-drop-cap":f},Object(Z.a)(t,"has-text-align-".concat(p),p),Object(Z.a)(t,u.class,u.class),t)),style:{fontSize:u.size?u.size+"px":void 0,direction:O,minHeight:j},value:g,onChange:function(e){return d({content:e})},onSplit:function(e){return e?Object(J.createBlock)(me,Object(Y.a)({},l,{content:e})):Object(J.createBlock)(me)},onMerge:b,onReplace:m,onRemove:m?function(){return m([])}:void 0,"aria-label":g?Object(Q.__)("Paragraph block"):Object(Q.__)("Empty block; start writing or type forward slash to choose a block"),placeholder:v||Object(Q.__)("Start writing or type / to choose a block"),__unstableEmbedURLOnPaste:!0}))))})),ge=Object(X.createElement)(ie.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ie.Path,{d:"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"}));var fe={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(J.getBlockAttributes)("core/paragraph",e.outerHTML),n=(e.style||{}).textAlign;return"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),Object(J.createBlock)("core/paragraph",t)}}]},ve={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"]}}},Oe=ve.name,je={title:Object(Q.__)("Paragraph"),description:Object(Q.__)("Start with the building block of all narrative."),icon:ge,keywords:[Object(Q.__)("text")],example:{attributes:{content:Object(Q.__)("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},transforms:fe,deprecated:ae,merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},getEditWrapperProps:function(e){var t=e.width;if(-1!==["wide","full","left","right"].indexOf(t))return{"data-align":t}},edit:pe,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,a=n.dropCap,c=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=n.fontSize,b=n.customFontSize,m=n.direction,d=Object($.getColorClassName)("color",i),h=Object($.getColorClassName)("background-color",c),p=Object($.getFontSizeClass)(u),g=te()((t={"has-text-color":i||s,"has-background":c||l,"has-drop-cap":a},Object(Z.a)(t,"has-text-align-".concat(r),r),Object(Z.a)(t,p,p),Object(Z.a)(t,d,d),Object(Z.a)(t,h,h),t)),f={backgroundColor:h?void 0:l,color:d?void 0:s,fontSize:p?void 0:b};return Object(X.createElement)($.RichText.Content,{tagName:"p",style:f,className:g||void 0,value:o,dir:m})}},ye=n(12),_e={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"}},ke=[{attributes:_e,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,a=n.caption,c=n.align,i=n.href,l=n.width,s=n.height,u=n.id,b=te()((t={},Object(Z.a)(t,"align".concat(c),c),Object(Z.a)(t,"is-resized",l||s),t)),m=Object(X.createElement)("img",{src:r,alt:o,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(X.createElement)("figure",{className:b},i?Object(X.createElement)("a",{href:i},m):m,!$.RichText.isEmpty(a)&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",value:a}))}},{attributes:_e,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,a=t.align,c=t.href,i=t.width,l=t.height,s=t.id,u=Object(X.createElement)("img",{src:n,alt:r,className:s?"wp-image-".concat(s):null,width:i,height:l});return Object(X.createElement)("figure",{className:a?"align".concat(a):null},c?Object(X.createElement)("a",{href:c},u):u,!$.RichText.isEmpty(o)&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:_e,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,a=t.align,c=t.href,i=t.width,l=t.height,s=i||l?{width:i,height:l}:{},u=Object(X.createElement)("img",Object(ye.a)({src:n,alt:r},s)),b={};return i?b={width:i}:"left"!==a&&"right"!==a||(b={maxWidth:"50%"}),Object(X.createElement)("figure",{className:a?"align".concat(a):null,style:b},c?Object(X.createElement)("a",{href:c},u):u,!$.RichText.isEmpty(o)&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",value:o}))}}],Ce=n(14),we=n(13),Ee=n(15),xe=n(16),Se=n(7),Te=n(17),Ne=n(37),Be=n(25),Ae=n(51),Re=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(X.createElement)(ie.Path,{d:"M19,4H5C3.89,4,3,4.9,3,6v12c0,1.1,0.89,2,2,2h14c1.1,0,2-0.9,2-2V6C21,4.9,20.11,4,19,4z M19,18H5V8h14V18z"})),Ie=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(X.createElement)(ie.Path,{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3z"})),Me=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(X.createElement)(ie.Path,{d:"M21,4H3C1.9,4,1,4.9,1,6v12c0,1.1,0.9,2,2,2h18c1.1,0,2-0.9,2-2V6C23,4.9,22.1,4,21,4z M21,18H3V6h18V18z"}),Object(X.createElement)(ie.Polygon,{points:"14.5 11 11 15.51 8.5 12.5 5 17 19 17"})),Pe=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(X.createElement)(ie.Path,{d:"m10 8v8l5-4-5-4zm9-5h-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-2zm0 16h-14v-14h14v14z"})),ze={foreground:"#1da1f2",src:Object(X.createElement)(ie.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ie.G,null,Object(X.createElement)(ie.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"})))},He={foreground:"#ff0000",src:Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(ie.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"}))},Le={foreground:"#3b5998",src:Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(ie.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"}))},Ve=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(ie.G,null,Object(X.createElement)(ie.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"}))),Fe={foreground:"#0073AA",src:Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(ie.G,null,Object(X.createElement)(ie.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"})))},De={foreground:"#1db954",src:Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(ie.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"}))},Ue=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(ie.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"})),Ge={foreground:"#1ab7ea",src:Object(X.createElement)(ie.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ie.G,null,Object(X.createElement)(ie.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"})))},qe=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(ie.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"})),We={foreground:"#35465c",src:Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(ie.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"}))},Ke=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24"},Object(X.createElement)(ie.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(X.createElement)(ie.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(X.createElement)(ie.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"})),Ze=[{name:"core-embed/twitter",settings:{title:"Twitter",icon:ze,keywords:["tweet"],description:Object(Q.__)("Embed a tweet.")},patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i]},{name:"core-embed/youtube",settings:{title:"YouTube",icon:He,keywords:[Object(Q.__)("music"),Object(Q.__)("video")],description:Object(Q.__)("Embed a YouTube video.")},patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i]},{name:"core-embed/facebook",settings:{title:"Facebook",icon:Le,description:Object(Q.__)("Embed a Facebook post.")},patterns:[/^https?:\/\/www\.facebook.com\/.+/i]},{name:"core-embed/instagram",settings:{title:"Instagram",icon:Ve,keywords:[Object(Q.__)("image")],description:Object(Q.__)("Embed an Instagram post.")},patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]},{name:"core-embed/wordpress",settings:{title:"WordPress",icon:Fe,keywords:[Object(Q.__)("post"),Object(Q.__)("blog")],responsive:!1,description:Object(Q.__)("Embed a WordPress post.")}},{name:"core-embed/soundcloud",settings:{title:"SoundCloud",icon:Ie,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed SoundCloud content.")},patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]},{name:"core-embed/spotify",settings:{title:"Spotify",icon:De,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed Spotify content.")},patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i]},{name:"core-embed/flickr",settings:{title:"Flickr",icon:Ue,keywords:[Object(Q.__)("image")],description:Object(Q.__)("Embed Flickr content.")},patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i]},{name:"core-embed/vimeo",settings:{title:"Vimeo",icon:Ge,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a Vimeo video.")},patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i]}],$e=[{name:"core-embed/animoto",settings:{title:"Animoto",icon:Pe,description:Object(Q.__)("Embed an Animoto video.")},patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]},{name:"core-embed/cloudup",settings:{title:"Cloudup",icon:Re,description:Object(Q.__)("Embed Cloudup content.")},patterns:[/^https?:\/\/cloudup\.com\/.+/i]},{name:"core-embed/collegehumor",settings:{title:"CollegeHumor",icon:Pe,description:Object(Q.__)("Embed CollegeHumor content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/crowdsignal",settings:{title:"Crowdsignal",icon:Re,keywords:["polldaddy"],transform:[{type:"block",blocks:["core-embed/polldaddy"],transform:function(e){return Object(J.createBlock)("core-embed/crowdsignal",{content:e})}}],description:Object(Q.__)("Embed Crowdsignal (formerly Polldaddy) content.")},patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i]},{name:"core-embed/dailymotion",settings:{title:"Dailymotion",icon:Pe,description:Object(Q.__)("Embed a Dailymotion video.")},patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]},{name:"core-embed/hulu",settings:{title:"Hulu",icon:Pe,description:Object(Q.__)("Embed Hulu content.")},patterns:[/^https?:\/\/(www\.)?hulu\.com\/.+/i]},{name:"core-embed/imgur",settings:{title:"Imgur",icon:Me,description:Object(Q.__)("Embed Imgur content.")},patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i]},{name:"core-embed/issuu",settings:{title:"Issuu",icon:Re,description:Object(Q.__)("Embed Issuu content.")},patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i]},{name:"core-embed/kickstarter",settings:{title:"Kickstarter",icon:Re,description:Object(Q.__)("Embed Kickstarter content.")},patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i]},{name:"core-embed/meetup-com",settings:{title:"Meetup.com",icon:Re,description:Object(Q.__)("Embed Meetup.com content.")},patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]},{name:"core-embed/mixcloud",settings:{title:"Mixcloud",icon:Ie,keywords:[Object(Q.__)("music"),Object(Q.__)("audio")],description:Object(Q.__)("Embed Mixcloud content.")},patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]},{name:"core-embed/polldaddy",settings:{title:"Polldaddy",icon:Re,description:Object(Q.__)("Embed Polldaddy content."),supports:{inserter:!1}},patterns:[]},{name:"core-embed/reddit",settings:{title:"Reddit",icon:qe,description:Object(Q.__)("Embed a Reddit thread.")},patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i]},{name:"core-embed/reverbnation",settings:{title:"ReverbNation",icon:Ie,description:Object(Q.__)("Embed ReverbNation content.")},patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]},{name:"core-embed/screencast",settings:{title:"Screencast",icon:Pe,description:Object(Q.__)("Embed Screencast content.")},patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i]},{name:"core-embed/scribd",settings:{title:"Scribd",icon:Re,description:Object(Q.__)("Embed Scribd content.")},patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i]},{name:"core-embed/slideshare",settings:{title:"Slideshare",icon:Re,description:Object(Q.__)("Embed Slideshare content.")},patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]},{name:"core-embed/smugmug",settings:{title:"SmugMug",icon:Me,description:Object(Q.__)("Embed SmugMug content.")},patterns:[/^https?:\/\/(www\.)?smugmug\.com\/.+/i]},{name:"core-embed/speaker",settings:{title:"Speaker",icon:Ie,supports:{inserter:!1}},patterns:[]},{name:"core-embed/speaker-deck",settings:{title:"Speaker Deck",icon:Re,transform:[{type:"block",blocks:["core-embed/speaker"],transform:function(e){return Object(J.createBlock)("core-embed/speaker-deck",{content:e})}}],description:Object(Q.__)("Embed Speaker Deck content.")},patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]},{name:"core-embed/ted",settings:{title:"TED",icon:Pe,description:Object(Q.__)("Embed a TED video.")},patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]},{name:"core-embed/tumblr",settings:{title:"Tumblr",icon:We,description:Object(Q.__)("Embed a Tumblr post.")},patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i]},{name:"core-embed/videopress",settings:{title:"VideoPress",icon:Pe,keywords:[Object(Q.__)("video")],description:Object(Q.__)("Embed a VideoPress video.")},patterns:[/^https?:\/\/videopress\.com\/.+/i]},{name:"core-embed/wordpress-tv",settings:{title:"WordPress.tv",icon:Pe,description:Object(Q.__)("Embed a WordPress.tv video.")},patterns:[/^https?:\/\/wordpress\.tv\/.+/i]},{name:"core-embed/amazon-kindle",settings:{title:"Amazon Kindle",icon:Ke,keywords:[Object(Q.__)("ebook")],responsive:!1,description:Object(Q.__)("Embed Amazon Kindle content.")},patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i]}],Je=["facebook.com","smugmug.com"],Qe=[{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"}],Ye=n(71),Xe=n.n(Ye),et=n(42),tt=n.n(et),nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))},rt=function(e){return Object(ne.includes)(e,'class="wp-embedded-content"')},ot=function(e,t){var n=e.preview,r=e.name,o=e.attributes.url;if(o){var a=function(e){for(var t=0,n=[].concat(Object(K.a)(Ze),Object(K.a)($e));t<n.length;t++){var r=n[t];if(nt(e,r.patterns))return r.name}return"core/embed"}(o);if(Object(J.getBlockType)(a)){if("core-embed/wordpress"!==r&&"core/embed"!==a&&r!==a)return Object(J.createBlock)(a,{url:o});if(n){var c=n.html;if(rt(c)&&"core-embed/wordpress"!==r)return Object(J.createBlock)("core-embed/wordpress",Object(Y.a)({url:o},t))}}}};function at(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<Qe.length;o++){r[Qe[o].className]=!1}return Xe()(t,r)}var a=document.implementation.createHTMLDocument("");a.body.innerHTML=e;var c=a.body.querySelector("iframe");if(c&&c.height&&c.width)for(var i=(c.width/c.height).toFixed(2),l=0;l<Qe.length;l++){var s,u=Qe[l];if(i>=u.ratio)return Xe()(t,(s={},Object(Z.a)(s,u.className,n),Object(Z.a)(s,"wp-has-aspect-ratio",n),s))}return t}var ct=tt()((function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var a={},c=e.type,i=void 0===c?"rich":c,l=e.html,s=e.provider_name,u=Object(ne.kebabCase)(Object(ne.toLower)(""!==s?s:t));return rt(l)&&(i="wp-embed"),(l||"photo"===i)&&(a.type=i,a.providerNameSlug=u),a.className=at(l,n,r&&o),a})),it=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(X.createElement)(ie.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(X.createElement)(ie.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),lt=(Object(X.createElement)(ie.SVG,{width:20,height:20,viewBox:"0 0 20 20"},Object(X.createElement)(ie.Rect,{x:11,y:3,width:7,height:5,rx:1}),Object(X.createElement)(ie.Rect,{x:2,y:12,width:7,height:5,rx:1}),Object(X.createElement)(ie.Path,{d:"M13,12h1a3,3,0,0,1-3,3v2a5,5,0,0,0,5-5h1L15,9Z"}),Object(X.createElement)(ie.Path,{d:"M4,8H3l2,3L7,8H6A3,3,0,0,1,9,5V3A5,5,0,0,0,4,8Z"})),["image"]);var st=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).state={width:void 0,height:void 0},e.bindContainer=e.bindContainer.bind(Object(Se.a)(e)),e.calculateSize=e.calculateSize.bind(Object(Se.a)(e)),e}return Object(Te.a)(t,e),Object(we.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=ne.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,a=(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}),c=a.width,i=a.height;this.setState({width:c,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(X.createElement)("div",{ref:this.bindContainer},this.props.children(e))}}]),t}(X.Component),ut=Object(le.withGlobalEvents)({resize:"calculateSize"})(st),bt=function(e,t){return!e&&Object(Ne.isBlobURL)(t)},mt=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).updateAlt=e.updateAlt.bind(Object(Se.a)(e)),e.updateAlignment=e.updateAlignment.bind(Object(Se.a)(e)),e.onFocusCaption=e.onFocusCaption.bind(Object(Se.a)(e)),e.onImageClick=e.onImageClick.bind(Object(Se.a)(e)),e.onSelectImage=e.onSelectImage.bind(Object(Se.a)(e)),e.onSelectURL=e.onSelectURL.bind(Object(Se.a)(e)),e.updateImage=e.updateImage.bind(Object(Se.a)(e)),e.updateWidth=e.updateWidth.bind(Object(Se.a)(e)),e.updateHeight=e.updateHeight.bind(Object(Se.a)(e)),e.updateDimensions=e.updateDimensions.bind(Object(Se.a)(e)),e.onSetHref=e.onSetHref.bind(Object(Se.a)(e)),e.onSetTitle=e.onSetTitle.bind(Object(Se.a)(e)),e.getFilename=e.getFilename.bind(Object(Se.a)(e)),e.onUploadError=e.onUploadError.bind(Object(Se.a)(e)),e.onImageError=e.onImageError.bind(Object(Se.a)(e)),e.state={captionFocused:!1},e}return Object(Te.a)(t,e),Object(we.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,a=n.id,c=n.url,i=void 0===c?"":c;if(bt(a,i)){var l=Object(Ne.getBlobByURL)(i);l&&r({filesList:[l],onFileChange:function(t){var n=Object(ce.a)(t,1)[0];e.onSelectImage(n)},allowedTypes:lt,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,a=this.props.attributes,c=a.id,i=a.url,l=void 0===i?"":i;bt(n,o)&&!bt(c,l)&&Object(Ne.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,a=o.id,c=o.url,i=o.alt,l=o.caption,s=o.linkDestination,u=(t=e,(n=Object(ne.pick)(t,["alt","id","link","caption"])).url=Object(ne.get)(t,["sizes","large","url"])||Object(ne.get)(t,["media_details","sizes","large","source_url"])||t.url,n);bt(a,c)&&(i&&(u=Object(ne.omit)(u,["alt"])),l&&(u=Object(ne.omit)(u,["caption"]))),r=e.id&&e.id===a?{url:c}:{width:void 0,height:void 0,sizeSlug:"large"},"media"===s&&(u.href=e.url),"attachment"===s&&(u.href=e.link),this.props.setAttributes(Object(Y.a)({},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=ot({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(Object(Y.a)({},t,{align:e}))}},{key:"updateImage",value:function(e){var t=this.props.image,n=Object(ne.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:"updateWidth",value:function(e){this.props.setAttributes({width:parseInt(e,10)})}},{key:"updateHeight",value:function(e){this.props.setAttributes({height:parseInt(e,10)})}},{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.setAttributes({width:t,height:n})}}},{key:"getFilename",value:function(e){var t=Object(Be.getPath)(e);if(t)return Object(ne.last)(t.split("/"))}},{key:"getImageSizeOptions",value:function(){var e=this.props,t=e.imageSizes,n=e.image;return Object(ne.map)(Object(ne.filter)(t,(function(e){var t=e.slug;return Object(ne.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=this,t=this.props,n=t.attributes,r=t.setAttributes,o=t.isLargeViewport,a=t.isSelected,c=t.className,i=t.maxWidth,l=t.noticeUI,s=t.isRTL,u=t.onResizeStart,b=t.onResizeStop,m=n.url,d=n.alt,h=n.caption,p=n.align,g=n.id,f=n.href,v=n.rel,O=n.linkClass,j=n.linkDestination,y=n.title,_=n.width,k=n.height,C=n.linkTarget,w=n.sizeSlug,E=function(e,t){return t&&!e&&!Object(Ne.isBlobURL)(t)}(g,m),x=Object(X.createElement)($.BlockControls,null,Object(X.createElement)($.BlockAlignmentToolbar,{value:p,onChange:this.updateAlignment}),m&&Object(X.createElement)($.MediaReplaceFlow,{mediaURL:m,allowedTypes:lt,accept:"image/*",onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,onError:this.onUploadError}),m&&Object(X.createElement)(ie.ToolbarGroup,null,Object(X.createElement)($.__experimentalImageURLInputUI,{url:f||"",onChangeUrl:this.onSetHref,linkDestination:j,mediaUrl:this.props.image&&this.props.image.source_url,mediaLink:this.props.image&&this.props.image.link,linkTarget:C,linkClass:O,rel:v}))),S=E?m:void 0,T={title:m?Object(Q.__)("Edit image"):Object(Q.__)("Image"),instructions:Object(Q.__)("Upload an image file, pick one from your media library, or add one with a URL.")},N=!!m&&Object(X.createElement)("img",{alt:Object(Q.__)("Edit image"),title:Object(Q.__)("Edit image"),className:"edit-image-preview",src:m}),B=Object(X.createElement)($.MediaPlaceholder,{icon:Object(X.createElement)($.BlockIcon,{icon:it}),className:c,labels:T,onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,notices:l,onError:this.onUploadError,accept:"image/*",allowedTypes:lt,value:{id:g,src:S},mediaPreview:N,disableMediaButtons:m});if(!m)return Object(X.createElement)(X.Fragment,null,x,B);var A=te()(c,Object(Z.a)({"is-transient":Object(Ne.isBlobURL)(m),"is-resized":!!_||!!k,"is-focused":a},"size-".concat(w),w)),R=-1===["wide","full"].indexOf(p)&&o,I=this.getImageSizeOptions(),M=function(t,n){return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Image Settings")},Object(X.createElement)(ie.TextareaControl,{label:Object(Q.__)("Alt Text (Alternative Text)"),value:d,onChange:e.updateAlt,help:Object(X.createElement)(X.Fragment,null,Object(X.createElement)(ie.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(Q.__)("Describe the purpose of the image")),Object(Q.__)("Leave empty if the image is purely decorative."))}),!Object(ne.isEmpty)(I)&&Object(X.createElement)(ie.SelectControl,{label:Object(Q.__)("Image Size"),value:w,options:I,onChange:e.updateImage}),R&&Object(X.createElement)("div",{className:"block-library-image__dimensions"},Object(X.createElement)("p",{className:"block-library-image__dimensions__row"},Object(Q.__)("Image Dimensions")),Object(X.createElement)("div",{className:"block-library-image__dimensions__row"},Object(X.createElement)(ie.TextControl,{type:"number",className:"block-library-image__dimensions__width",label:Object(Q.__)("Width"),value:_||t||"",min:1,onChange:e.updateWidth}),Object(X.createElement)(ie.TextControl,{type:"number",className:"block-library-image__dimensions__height",label:Object(Q.__)("Height"),value:k||n||"",min:1,onChange:e.updateHeight})),Object(X.createElement)("div",{className:"block-library-image__dimensions__row"},Object(X.createElement)(ie.ButtonGroup,{"aria-label":Object(Q.__)("Image Size")},[25,50,75,100].map((function(r){var o=Math.round(t*(r/100)),a=Math.round(n*(r/100)),c=_===o&&k===a;return Object(X.createElement)(ie.Button,{key:r,isSmall:!0,isPrimary:c,isPressed:c,onClick:e.updateDimensions(o,a)},r,"%")}))),Object(X.createElement)(ie.Button,{isSmall:!0,onClick:e.updateDimensions()},Object(Q.__)("Reset")))))),Object(X.createElement)($.InspectorAdvancedControls,null,Object(X.createElement)(ie.TextControl,{label:Object(Q.__)("Title Attribute"),value:y||"",onChange:e.onSetTitle,help:Object(X.createElement)(X.Fragment,null,Object(Q.__)("Describe the role of this image on the page."),Object(X.createElement)(ie.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},Object(Q.__)("(Note: many devices and browsers do not display this text.)")))})))};return Object(X.createElement)(X.Fragment,null,x,Object(X.createElement)("figure",{className:A},Object(X.createElement)(ut,{src:m,dirtynessTrigger:p},(function(t){var n,o=t.imageWidthWithinContainer,a=t.imageHeightWithinContainer,c=t.imageWidth,l=t.imageHeight,h=e.getFilename(m);n=d||(h?Object(Q.sprintf)(Object(Q.__)("This image has an empty alt attribute; its file name is %s"),h):Object(Q.__)("This image has an empty alt attribute"));var g=Object(X.createElement)(X.Fragment,null,Object(X.createElement)("img",{src:m,alt:n,onClick:e.onImageClick,onError:function(){return e.onImageError(m)}}),Object(Ne.isBlobURL)(m)&&Object(X.createElement)(ie.Spinner,null));if(!R||!o)return Object(X.createElement)(X.Fragment,null,M(c,l),Object(X.createElement)("div",{style:{width:_,height:k}},g));var f=_||o,v=k||a,O=c/l,j=c<l?20:20*O,y=l<c?20:20/O,C=2.5*i,w=!1,E=!1;return"center"===p?(w=!0,E=!0):s?"left"===p?w=!0:E=!0:"right"===p?E=!0:w=!0,Object(X.createElement)(X.Fragment,null,M(c,l),Object(X.createElement)(ie.ResizableBox,{size:{width:_,height:k},minWidth:j,maxWidth:C,minHeight:y,maxHeight:C/O,lockAspectRatio:!0,enable:{top:!1,right:w,bottom:!0,left:E},onResizeStart:u,onResizeStop:function(e,t,n,o){b(),r({width:parseInt(f+o.width,10),height:parseInt(v+o.height,10)})}},g))})),(!$.RichText.isEmpty(h)||a)&&Object(X.createElement)($.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:h,unstableOnFocus:this.onFocusCaption,onChange:function(e){return r({caption:e})},isSelected:this.state.captionFocused,inlineToolbar:!0})),B)}}]),t}(X.Component),dt=Object(le.compose)([Object(se.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),Object(se.withSelect)((function(e,t){var n=e("core").getMedia,r=e("core/block-editor").getSettings,o=t.attributes.id,a=t.isSelected,c=r(),i=c.mediaUpload,l=c.imageSizes,s=c.isRTL,u=c.maxWidth;return{image:o&&a?n(o):null,maxWidth:u,isRTL:s,imageSizes:l,mediaUpload:i}})),Object(Ae.withViewportMatch)({isLargeViewport:"medium"}),ie.withNotices])(mt);function ht(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 pt={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},gt={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:Object(Y.a)({},pt,{a:{attributes:["href","rel","target"],children:pt},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),a=o?Number(o[1]):void 0,c=e.querySelector("a"),i=c&&c.href?"custom":void 0,l=c&&c.href?c.href:void 0,s=c&&c.rel?c.rel:void 0,u=c&&c.className?c.className:void 0,b=Object(J.getBlockAttributes)("core/image",e.outerHTML,{align:r,id:a,linkDestination:i,href:l,rel:s,linkClass:u});return Object(J.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(J.createBlock)("core/image",{url:Object(Ne.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 ht(t.shortcode.content,"href")}},rel:{shortcode:function(e,t){return ht(t.shortcode.content,"rel")}},linkClass:{shortcode:function(e,t){return ht(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","")}}}}]},ft={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"}}},vt=ft.name,Ot={title:Object(Q.__)("Image"),description:Object(Q.__)("Insert an image to make a visual statement."),icon:it,keywords:["img",Object(Q.__)("photo")],example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(Q.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"rounded",label:Object(Q._x)("Rounded","block style")}],transforms:gt,getEditWrapperProps:function(e){var t=e.align,n=e.width;if("left"===t||"center"===t||"right"===t||"wide"===t||"full"===t)return{"data-align":t,"data-resized":!!n}},edit:dt,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,a=n.caption,c=n.align,i=n.href,l=n.rel,s=n.linkClass,u=n.width,b=n.height,m=n.id,d=n.linkTarget,h=n.sizeSlug,p=n.title,g=Object(ne.isEmpty)(l)?void 0:l,f=te()((t={},Object(Z.a)(t,"align".concat(c),c),Object(Z.a)(t,"size-".concat(h),h),Object(Z.a)(t,"is-resized",u||b),t)),v=Object(X.createElement)("img",{src:r,alt:o,className:m?"wp-image-".concat(m):null,width:u,height:b,title:p}),O=Object(X.createElement)(X.Fragment,null,i?Object(X.createElement)("a",{className:s,href:i,target:d,rel:g},v):v,!$.RichText.isEmpty(a)&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",value:a}));return"left"===c||"right"===c||"center"===c?Object(X.createElement)("div",null,Object(X.createElement)("figure",{className:f},O)):Object(X.createElement)("figure",{className:f},O)},deprecated:ke},jt={className:!1,anchor:!0},yt={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"}},_t=[{attributes:yt,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,a=n.customTextColor,c=n.level,i=n.textColor,l="h"+c,s=Object($.getColorClassName)("color",i),u=te()((t={},Object(Z.a)(t,s,s),Object(Z.a)(t,"has-text-align-".concat(r),r),t));return Object(X.createElement)($.RichText.Content,{className:u||void 0,tagName:l,style:{color:s?void 0:a},value:o})},supports:jt},{supports:jt,attributes:yt,save:function(e){var t=e.attributes,n=t.align,r=t.level,o=t.content,a=t.textColor,c=t.customTextColor,i="h"+r,l=Object($.getColorClassName)("color",a),s=te()(Object(Z.a)({},l,l));return Object(X.createElement)($.RichText.Content,{className:s||void 0,tagName:i,style:{textAlign:n,color:l?void 0:c},value:o})}}];function kt(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(X.createElement)(ie.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:r},Object(X.createElement)(ie.Path,{d:o[t]})):null}var Ct=function(e){function t(){return Object(Ce.a)(this,t),Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))}return Object(Te.a)(t,e),Object(we.a)(t,[{key:"createLevelControl",value:function(e,t,n){var r=e===t;return{icon:Object(X.createElement)(kt,{level:e,isPressed:r}),title:Object(Q.sprintf)(Object(Q.__)("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,a=t.maxLevel,c=t.selectedLevel,i=t.onChange;return Object(X.createElement)(ie.ToolbarGroup,{isCollapsed:r,icon:Object(X.createElement)(kt,{level:c}),controls:Object(ne.range)(o,a).map((function(t){return e.createLevelControl(t,c,i)}))})}}]),t}(X.Component);var wt=function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=e.onReplace,a=e.className,c=Object($.__experimentalUseColors)([{name:"textColor",property:"color"}],{contrastCheckers:{backgroundColor:!0,textColor:!0}},[]),i=c.TextColor,l=c.InspectorControlsColorPanel,s=c.ColorDetector,u=t.align,b=t.content,m=t.level,d=t.placeholder,h="h"+m;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)(Ct,{minLevel:2,maxLevel:5,selectedLevel:m,onChange:function(e){return n({level:e})}}),Object(X.createElement)($.AlignmentToolbar,{value:u,onChange:function(e){n({align:e})}})),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Heading Settings")},Object(X.createElement)("p",null,Object(Q.__)("Level")),Object(X.createElement)(Ct,{isCollapsed:!1,minLevel:1,maxLevel:7,selectedLevel:m,onChange:function(e){return n({level:e})}}))),l,Object(X.createElement)(i,null,Object(X.createElement)(s,{querySelector:'[contenteditable="true"]'}),Object(X.createElement)($.RichText,{identifier:"content",tagName:h,value:b,onChange:function(e){return n({content:e})},onMerge:r,onSplit:function(e){return e?Object(J.createBlock)("core/heading",Object(Y.a)({},t,{content:e})):Object(J.createBlock)("core/paragraph")},onReplace:o,onRemove:function(){return o([])},className:te()(a,Object(Z.a)({},"has-text-align-".concat(u),u)),placeholder:d||Object(Q.__)("Write heading…")})))};var Et={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(J.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(J.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(J.createBlock)("core/heading",n)}}].concat(Object(K.a)([2,3,4,5,6].map((function(e){return{type:"prefix",prefix:Array(e+1).join("#"),transform:function(t){return Object(J.createBlock)("core/heading",{level:e,content:t})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return Object(J.createBlock)("core/paragraph",{content:t})}}]},xt={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"}}},St=xt.name,Tt={title:Object(Q.__)("Heading"),description:Object(Q.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:"heading",keywords:[Object(Q.__)("title"),Object(Q.__)("subtitle")],supports:{className:!1,anchor:!0,__unstablePasteTextInline:!0},example:{attributes:{content:Object(Q.__)("Code is Poetry"),level:2}},transforms:Et,deprecated:_t,merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},edit:wt,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,a=n.customTextColor,c=n.level,i=n.textColor,l="h"+c,s=Object($.getColorClassName)("color",i),u=te()((t={},Object(Z.a)(t,s,s),Object(Z.a)(t,"has-text-color",i||a),Object(Z.a)(t,"has-text-align-".concat(r),r),t));return Object(X.createElement)($.RichText.Content,{className:u||void 0,tagName:l,style:{color:s?void 0:a},value:o})}},Nt={value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},Bt=[{attributes:Nt,save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation;return Object(X.createElement)("blockquote",{style:{textAlign:n||null}},Object(X.createElement)($.RichText.Content,{multiline:!0,value:r}),!$.RichText.isEmpty(o)&&Object(X.createElement)($.RichText.Content,{tagName:"cite",value:o}))}},{attributes:Object(Y.a)({},Nt,{style:{type:"number",default:1}}),migrate:function(e){return 2===e.style?Object(Y.a)({},Object(ne.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,a=t.style;return Object(X.createElement)("blockquote",{className:2===a?"is-large":"",style:{textAlign:n||null}},Object(X.createElement)($.RichText.Content,{multiline:!0,value:r}),!$.RichText.isEmpty(o)&&Object(X.createElement)($.RichText.Content,{tagName:"cite",value:o}))}},{attributes:Object(Y.a)({},Nt,{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,a=t.style;return Object(X.createElement)("blockquote",{className:"blocks-quote-style-".concat(a),style:{textAlign:n||null}},Object(X.createElement)($.RichText.Content,{multiline:!0,value:r}),!$.RichText.isEmpty(o)&&Object(X.createElement)($.RichText.Content,{tagName:"footer",value:o}))}}];var At=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(X.createElement)(ie.Path,{d:"M18.62 18h-5.24l2-4H13V6h8v7.24L18.62 18zm-2-2h.76L19 12.76V8h-4v4h3.62l-2 4zm-8 2H3.38l2-4H3V6h8v7.24L8.62 18zm-2-2h.76L9 12.76V8H5v4h3.62l-2 4z"}));var Rt=n(20),It=n(24),Mt={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(J.createBlock)("core/quote",{value:Object(It.toHTMLString)({value:Object(It.join)(e.map((function(e){var t=e.content;return Object(It.create)({html:t})})),"\u2028"),multilineTag:"p"})})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return Object(J.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(J.createBlock)("core/quote",{value:t,citation:n})}},{type:"prefix",prefix:">",transform:function(e){return Object(J.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(K.a)(Object(It.split)(Object(It.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(J.createBlock)("core/paragraph",{content:Object(It.toHTMLString)({value:e})})})))),n&&"<p></p>"!==n&&r.push(Object(J.createBlock)("core/paragraph",{content:n})),0===r.length?Object(J.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,n=e.citation,r=Object(Rt.a)(e,["value","citation"]);if("<p></p>"===t)return Object(J.createBlock)("core/heading",{content:n});var o=Object(It.split)(Object(It.create)({html:t,multilineTag:"p"}),"\u2028"),a=Object(J.createBlock)("core/heading",{content:Object(It.toHTMLString)({value:o[0]})});if(!n&&1===o.length)return a;var c=o.slice(1);return[a,Object(J.createBlock)("core/quote",Object(Y.a)({},r,{citation:n,value:Object(It.toHTMLString)({value:c.length?Object(It.join)(o.slice(1),"\u2028"):Object(It.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation;return Object(J.createBlock)("core/pullquote",{value:t,citation:n})}}]},Pt={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"}}},zt=Pt.name,Ht={title:Object(Q.__)("Quote"),description:Object(Q.__)('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'),icon:At,keywords:[Object(Q.__)("blockquote"),Object(Q.__)("cite")],example:{attributes:{value:"<p>"+Object(Q.__)("In quoting others, we cite ourselves.")+"</p>",citation:"Julio Cortázar",className:"is-style-large"}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(Q._x)("Large","block style")}],transforms:Mt,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,o=e.mergeBlocks,a=e.onReplace,c=e.className,i=t.align,l=t.value,s=t.citation;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)($.AlignmentToolbar,{value:i,onChange:function(e){n({align:e})}})),Object(X.createElement)(ie.BlockQuotation,{className:te()(c,Object(Z.a)({},"has-text-align-".concat(i),i))},Object(X.createElement)($.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&&a([])},placeholder:Object(Q.__)("Write quote…"),onReplace:a,onSplit:function(e){return Object(J.createBlock)("core/quote",Object(Y.a)({},t,{value:e}))},__unstableOnSplitMiddle:function(){return Object(J.createBlock)("core/paragraph")}}),(!$.RichText.isEmpty(s)||r)&&Object(X.createElement)($.RichText,{identifier:"citation",value:s,onChange:function(e){return n({citation:e})},__unstableMobileNoFocusOnMount:!0,placeholder:Object(Q.__)("Write citation…"),className:"wp-block-quote__citation"})))},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,a=te()(Object(Z.a)({},"has-text-align-".concat(n),n));return Object(X.createElement)("blockquote",{className:a},Object(X.createElement)($.RichText.Content,{multiline:!0,value:r}),!$.RichText.isEmpty(o)&&Object(X.createElement)($.RichText.Content,{tagName:"cite",value:o}))},merge:function(e,t){var n=t.value,r=t.citation;return r||(r=e.citation),n&&"<p></p>"!==n?Object(Y.a)({},e,{value:e.value+n,citation:r}):Object(Y.a)({},e,{citation:r})},deprecated:Bt};function Lt(e){return Math.min(3,e.images.length)}var Vt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large",n=Object(ne.pick)(e,["alt","id","link","caption"]);n.url=Object(ne.get)(e,["sizes",t,"url"])||Object(ne.get)(e,["media_details","sizes",t,"source_url"])||e.url;var r=Object(ne.get)(e,["sizes","full","url"])||Object(ne.get)(e,["media_details","sizes","full","source_url"]);return r&&(n.fullUrl=r),n},Ft=[{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"}},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?Lt(t):r,a=t.imageCrop,c=t.linkTo;return Object(X.createElement)("ul",{className:"columns-".concat(o," ").concat(a?"is-cropped":"")},n.map((function(e){var t;switch(c){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object(X.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(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(X.createElement)($.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(ne.some)(t,(function(e,t){return!e&&null!==n[t]||parseInt(e,10)!==n[t]})))},migrate:function(e){return Object(Y.a)({},e,{ids:Object(ne.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?Lt(t):r,a=t.imageCrop,c=t.linkTo;return Object(X.createElement)("ul",{className:"columns-".concat(o," ").concat(a?"is-cropped":"")},n.map((function(e){var t;switch(c){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(X.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(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(X.createElement)($.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"}},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?Lt(t):r,a=t.align,c=t.imageCrop,i=t.linkTo,l=te()("columns-".concat(o),{alignnone:"none"===a,"is-cropped":c});return Object(X.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(X.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(X.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(X.createElement)("a",{href:t},n):n)})))}}],Dt=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(X.createElement)(ie.G,null,Object(X.createElement)(ie.Path,{d:"M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67l1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}))),Ut=Object(X.createElement)(ie.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{d:"M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z"})),Gt=Object(X.createElement)(ie.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{d:"M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z"})),qt=Object(X.createElement)($.BlockIcon,{icon:Dt}),Wt=n(19),Kt=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(Se.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(Se.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(Se.a)(e)),e.bindContainer=e.bindContainer.bind(Object(Se.a)(e)),e.state={captionSelected:!1},e}return Object(Te.a)(t,e),Object(we.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!==[Wt.BACKSPACE,Wt.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;r&&!o&&this.props.setAttributes({url:r.source_url,alt:r.alt_text}),this.state.captionSelected&&!n&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"render",value:function(){var e,t=this.props,n=t.url,r=t.alt,o=t.id,a=t.linkTo,c=t.link,i=t.isFirstItem,l=t.isLastItem,s=t.isSelected,u=t.caption,b=t.onRemove,m=t.onMoveForward,d=t.onMoveBackward,h=t.setAttributes,p=t["aria-label"];switch(a){case"media":e=n;break;case"attachment":e=c}var g=Object(X.createElement)(X.Fragment,null,Object(X.createElement)("img",{src:n,alt:r,"data-id":o,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":p,ref:this.bindContainer}),Object(Ne.isBlobURL)(n)&&Object(X.createElement)(ie.Spinner,null)),f=te()({"is-selected":s,"is-transient":Object(Ne.isBlobURL)(n)});return Object(X.createElement)("figure",{className:f},e?Object(X.createElement)("a",{href:e},g):g,Object(X.createElement)("div",{className:"block-library-gallery-item__move-menu"},Object(X.createElement)(ie.Button,{icon:Ut,onClick:i?void 0:d,className:"blocks-gallery-item__move-backward",label:Object(Q.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object(X.createElement)(ie.Button,{icon:Gt,onClick:l?void 0:m,className:"blocks-gallery-item__move-forward",label:Object(Q.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object(X.createElement)("div",{className:"block-library-gallery-item__inline-menu"},Object(X.createElement)(ie.Button,{icon:"no-alt",onClick:b,className:"blocks-gallery-item__remove",label:Object(Q.__)("Remove image"),disabled:!s})),(s||u)&&Object(X.createElement)($.RichText,{tagName:"figcaption",placeholder:s?Object(Q.__)("Write caption…"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return h({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),t}(X.Component),Zt=Object(se.withSelect)((function(e,t){var n=e("core").getMedia,r=t.id;return{image:r?n(r):null}}))(Kt),$t=function(e){var t,n=e.attributes,r=e.className,o=e.isSelected,a=e.setAttributes,c=e.selectedImage,i=e.mediaPlaceholder,l=e.onMoveBackward,s=e.onMoveForward,u=e.onRemoveImage,b=e.onSelectImage,m=e.onSetImageAttributes,d=e.onFocusGalleryCaption,h=n.align,p=n.columns,g=void 0===p?Lt(n):p,f=n.caption,v=n.imageCrop,O=n.images,j=te()("blocks-gallery-caption",{"screen-reader-text":!o&&$.RichText.isEmpty(f)});return Object(X.createElement)("figure",{className:te()(r,(t={},Object(Z.a)(t,"align".concat(h),h),Object(Z.a)(t,"columns-".concat(g),g),Object(Z.a)(t,"is-cropped",v),t))},Object(X.createElement)("ul",{className:"blocks-gallery-grid"},O.map((function(e,t){var n=Object(Q.sprintf)(Object(Q.__)("image %1$d of %2$d in gallery"),t+1,O.length);return Object(X.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(X.createElement)(Zt,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===t,isLastItem:t+1===O.length,isSelected:o&&c===t,onMoveBackward:l(t),onMoveForward:s(t),onRemove:u(t),onSelect:b(t),setAttributes:function(e){return m(t,e)},caption:e.caption,"aria-label":n}))}))),i,Object(X.createElement)($.RichText,{tagName:"figcaption",className:j,placeholder:Object(Q.__)("Write gallery caption…"),value:f,unstableOnFocus:d,onChange:function(e){return a({caption:e})},inlineToolbar:!0}))},Jt=[{value:"attachment",label:Object(Q.__)("Attachment Page")},{value:"media",label:Object(Q.__)("Media File")},{value:"none",label:Object(Q.__)("None")}],Qt=["image"],Yt=X.Platform.select({web:Object(Q.__)("Drag images, upload new ones or select files from your library."),native:Object(Q.__)("ADD MEDIA")}),Xt=X.Platform.select({web:{},native:{separatorType:"fullWidth"}}),en=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).onSelectImage=e.onSelectImage.bind(Object(Se.a)(e)),e.onSelectImages=e.onSelectImages.bind(Object(Se.a)(e)),e.setLinkTo=e.setLinkTo.bind(Object(Se.a)(e)),e.setColumnsNumber=e.setColumnsNumber.bind(Object(Se.a)(e)),e.toggleImageCrop=e.toggleImageCrop.bind(Object(Se.a)(e)),e.onMove=e.onMove.bind(Object(Se.a)(e)),e.onMoveForward=e.onMoveForward.bind(Object(Se.a)(e)),e.onMoveBackward=e.onMoveBackward.bind(Object(Se.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(Se.a)(e)),e.onUploadError=e.onUploadError.bind(Object(Se.a)(e)),e.setImageAttributes=e.setImageAttributes.bind(Object(Se.a)(e)),e.setAttributes=e.setAttributes.bind(Object(Se.a)(e)),e.onFocusGalleryCaption=e.onFocusGalleryCaption.bind(Object(Se.a)(e)),e.getImagesSizeOptions=e.getImagesSizeOptions.bind(Object(Se.a)(e)),e.updateImagesSize=e.updateImagesSize.bind(Object(Se.a)(e)),e.state={selectedImage:null,attachmentCaptions:null},e}return Object(Te.a)(t,e),Object(we.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=Object(Y.a)({},e,{ids:Object(ne.map)(e.images,"id")})),this.props.setAttributes(e)}},{key:"onSelectImage",value:function(e){var t=this;return function(){t.state.selectedImage!==e&&t.setState({selectedImage:e})}}},{key:"onMove",value:function(e,t){var n=Object(K.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(ne.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(ne.find)(t,{id:e.id}),o=r?r.caption:e.caption;if(!n)return o;var a=Object(ne.find)(n,{id:e.id});return a&&a.caption!==e.caption?e.caption:o}},{key:"onSelectImages",value:function(e){var t=this,n=this.props.attributes,r=n.columns,o=n.images,a=n.sizeSlug,c=this.state.attachmentCaptions;this.setState({attachmentCaptions:e.map((function(e){return{id:e.id,caption:e.caption}}))}),this.setAttributes({images:e.map((function(e){return Object(Y.a)({},Vt(e,a),{caption:t.selectCaption(e,o,c)})})),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(Q.__)("Thumbnails are cropped to align."):Object(Q.__)("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(K.a)(n.slice(0,e)),[Object(Y.a)({},n[e],t)],Object(K.a)(n.slice(e+1)))})}},{key:"getImagesSizeOptions",value:function(){var e=this.props,t=e.imageSizes,n=e.resizedImages;return Object(ne.map)(Object(ne.filter)(t,(function(e){var t=e.slug;return Object(ne.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(ne.map)(n,(function(t){if(!t.id)return t;var n=Object(ne.get)(r,[parseInt(t.id,10),e]);return Object(Y.a)({},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"===X.Platform.OS&&r&&r.length>0&&Object(ne.every)(r,(function(e){var t=e.url;return Object(Ne.isBlobURL)(t)}))){var o=Object(ne.map)(r,(function(e){var t=e.url;return Object(Ne.getBlobByURL)(t)}));Object(ne.forEach)(r,(function(e){var t=e.url;return Object(Ne.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,a=t.columns,c=void 0===a?Lt(t):a,i=t.imageCrop,l=t.images,s=t.linkTo,u=t.sizeSlug,b=!!l.length,m=b&&Object(ne.some)(l,(function(e){return e.id})),d=Object(X.createElement)($.MediaPlaceholder,{addToGallery:m,isAppender:b,className:n,disableMediaButtons:b&&!r,icon:!b&&qt,labels:{title:!b&&Object(Q.__)("Gallery"),instructions:!b&&Yt},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:Qt,multiple:!0,value:m?l:void 0,onError:this.onUploadError,notices:b?void 0:o,onFocus:this.props.onFocus});if(!b)return d;var h=this.getImagesSizeOptions();return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Gallery Settings")},l.length>1&&Object(X.createElement)(ie.RangeControl,Object(ye.a)({label:Object(Q.__)("Columns")},Xt,{value:c,onChange:this.setColumnsNumber,min:1,max:Math.min(8,l.length),required:!0})),Object(X.createElement)(ie.ToggleControl,Object(ye.a)({label:Object(Q.__)("Crop Images")},Xt,{checked:!!i,onChange:this.toggleImageCrop,help:this.getImageCropHelp})),Object(X.createElement)(ie.SelectControl,Object(ye.a)({label:Object(Q.__)("Link To")},Xt,{value:s,onChange:this.setLinkTo,options:Jt})),b&&!Object(ne.isEmpty)(h)&&Object(X.createElement)(ie.SelectControl,{label:Object(Q.__)("Images Size"),value:u,options:h,onChange:this.updateImagesSize}))),o,Object(X.createElement)($t,Object(ye.a)({},this.props,{selectedImage:this.state.selectedImage,mediaPlaceholder:d,onMoveBackward:this.onMoveBackward,onMoveForward:this.onMoveForward,onRemoveImage:this.onRemoveImage,onSelectImage:this.onSelectImage,onSetImageAttributes:this.setImageAttributes,onFocusGalleryCaption:this.onFocusGalleryCaption})))}}]),t}(X.Component),tn=Object(le.compose)([Object(se.withSelect)((function(e,t){var n=t.attributes.ids,r=t.isSelected,o=e("core").getMedia,a=(0,e("core/block-editor").getSettings)(),c=a.imageSizes,i=a.mediaUpload,l={};return r&&(l=Object(ne.reduce)(n,(function(e,t){if(!t)return e;var n=o(t),r=Object(ne.reduce)(c,(function(e,t){var r=Object(ne.get)(n,["sizes",t.slug,"url"]),o=Object(ne.get)(n,["media_details","sizes",t.slug,"source_url"]);return Object(Y.a)({},e,Object(Z.a)({},t.slug,r||o))}),{});return Object(Y.a)({},e,Object(Z.a)({},parseInt(t,10),r))}),{})),{imageSizes:c,mediaUpload:i,resizedImages:l}})),ie.withNotices,Object(Ae.withViewportMatch)({isNarrow:"< small"})])(en);var nn=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},rn={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0],n=t.align,r=t.sizeSlug;n=Object(ne.every)(e,["align",n])?n:void 0,r=Object(ne.every)(e,["sizeSlug",r])?r:void 0;var o=Object(ne.filter)(e,(function(e){return e.url}));return Object(J.createBlock)("core/gallery",{images:o.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),ids:o.map((function(e){return e.id})),align:n,sizeSlug:r})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return nn(t).map((function(e){return{id:e}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return nn(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(ne.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e){return Object(J.createBlock)("core/gallery",{images:e.map((function(e){return Vt({url:Object(Ne.createBlobURL)(e)})}))})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align,r=e.sizeSlug;return t.length>0?t.map((function(e){var t=e.id,o=e.url,a=e.alt,c=e.caption;return Object(J.createBlock)("core/image",{id:t,url:o,alt:a,caption:c,align:n,sizeSlug:r})})):Object(J.createBlock)("core/image",{align:n})}}]},on={name:"core/gallery",category:"common",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",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"}}},an=on.name,cn={title:Object(Q.__)("Gallery"),description:Object(Q.__)("Display multiple images in a rich gallery."),icon:Dt,keywords:[Object(Q.__)("images"),Object(Q.__)("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:rn,edit:tn,save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?Lt(t):r,a=t.imageCrop,c=t.caption,i=t.linkTo;return Object(X.createElement)("figure",{className:"columns-".concat(o," ").concat(a?"is-cropped":"")},Object(X.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(X.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(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},n):n,!$.RichText.isEmpty(e.caption)&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!$.RichText.isEmpty(c)&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:c}))},deprecated:Ft},ln=n(60),sn=n.n(ln);var un=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{d:"M21 6V20C21 21.1 20.1 22 19 22H5C3.89 22 3 21.1 3 20L3.01 6C3.01 4.9 3.89 4 5 4H6V2H8V4H16V2H18V4H19C20.1 4 21 4.9 21 6ZM5 8H19V6H5V8ZM19 20V10H5V20H19ZM11 12H17V14H11V12ZM17 16H11V18H17V16ZM7 12H9V14H7V12ZM9 18V16H7V18H9Z"})),bn="core/archives",mn={title:Object(Q.__)("Archives"),description:Object(Q.__)("Display a monthly archive of your posts."),icon:un,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(X.createElement)(X.Fragment,null,Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Archives Settings")},Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Display as Dropdown"),checked:o,onChange:function(){return n({displayAsDropdown:!o})}}),Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Show Post Counts"),checked:r,onChange:function(){return n({showPostCounts:!r})}}))),Object(X.createElement)(ie.Disabled,null,Object(X.createElement)(sn.a,{block:"core/archives",attributes:t})))}},dn=[{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,a=t.preload,c=t.src;return Object(X.createElement)("figure",null,Object(X.createElement)("audio",{controls:"controls",src:c,autoPlay:n,loop:o,preload:a}),!$.RichText.isEmpty(r)&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",value:r}))}}],hn=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(X.createElement)(ie.Path,{d:"m12 3l0.01 10.55c-0.59-0.34-1.27-0.55-2-0.55-2.22 0-4.01 1.79-4.01 4s1.79 4 4.01 4 3.99-1.79 3.99-4v-10h4v-4h-6zm-1.99 16c-1.1 0-2-0.9-2-2s0.9-2 2-2 2 0.9 2 2-0.9 2-2 2z"})),pn=["audio"],gn=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.src},e.toggleAttribute=e.toggleAttribute.bind(Object(Se.a)(e)),e.onSelectURL=e.onSelectURL.bind(Object(Se.a)(e)),e.onUploadError=e.onUploadError.bind(Object(Se.a)(e)),e}return Object(Te.a)(t,e),Object(we.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,a=t.setAttributes,c=n.id,i=n.src,l=void 0===i?"":i;if(!c&&Object(Ne.isBlobURL)(l)){var s=Object(Ne.getBlobByURL)(l);s&&r({filesList:[s],onFileChange:function(e){var t=Object(ce.a)(e,1)[0],n=t.id,r=t.url;a({id:n,src:r})},onError:function(t){a({src:void 0,id:void 0}),e.setState({editing:!0}),o.createErrorNotice(t)},allowedTypes:pn})}}},{key:"toggleAttribute",value:function(e){var t=this;return function(n){t.props.setAttributes(Object(Z.a)({},e,n))}}},{key:"onSelectURL",value:function(e){var t=this.props,n=t.attributes,r=t.setAttributes;if(e!==n.src){var o=ot({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}this.setState({editing:!1})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"getAutoplayHelp",value:function(e){return e?Object(Q.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.autoplay,r=t.caption,o=t.loop,a=t.preload,c=t.src,i=this.props,l=i.setAttributes,s=i.isSelected,u=i.className,b=i.noticeUI,m=this.state.editing,d=function(){e.setState({editing:!0})};return m?Object(X.createElement)($.MediaPlaceholder,{icon:Object(X.createElement)($.BlockIcon,{icon:hn}),className:u,onSelect:function(t){if(!t||!t.url)return l({src:void 0,id:void 0}),void d();l({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"audio/*",allowedTypes:pn,value:this.props.attributes,notices:b,onError:this.onUploadError}):Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)(ie.ToolbarGroup,null,Object(X.createElement)(ie.Button,{className:"components-toolbar__control",label:Object(Q.__)("Edit audio"),onClick:d,icon:"edit"}))),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Audio Settings")},Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Autoplay"),onChange:this.toggleAttribute("autoplay"),checked:n,help:this.getAutoplayHelp}),Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Loop"),onChange:this.toggleAttribute("loop"),checked:o}),Object(X.createElement)(ie.SelectControl,{label:Object(Q.__)("Preload"),value:void 0!==a?a:"none",onChange:function(e){return l({preload:"none"!==e?e:void 0})},options:[{value:"auto",label:Object(Q.__)("Auto")},{value:"metadata",label:Object(Q.__)("Metadata")},{value:"none",label:Object(Q.__)("None")}]}))),Object(X.createElement)("figure",{className:u},Object(X.createElement)(ie.Disabled,null,Object(X.createElement)("audio",{controls:"controls",src:c})),(!$.RichText.isEmpty(r)||s)&&Object(X.createElement)($.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:r,onChange:function(e){return l({caption:e})},inlineToolbar:!0})))}}]),t}(X.Component),fn=Object(le.compose)([Object(se.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),ie.withNotices])(gn);var vn={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(J.createBlock)("core/audio",{src:Object(Ne.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}}}}]},On={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"}}},jn=On.name,yn={title:Object(Q.__)("Audio"),description:Object(Q.__)("Embed a simple audio player."),keywords:[Object(Q.__)("music"),Object(Q.__)("sound"),Object(Q.__)("podcast"),Object(Q.__)("recording")],icon:hn,transforms:vn,deprecated:dn,supports:{align:!0},edit:fn,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.loop,a=t.preload,c=t.src;return c&&Object(X.createElement)("figure",null,Object(X.createElement)("audio",{controls:"controls",src:c,autoPlay:n,loop:o,preload:a}),!$.RichText.isEmpty(r)&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",value:r}))}},_n=function(e){return Object(ne.omit)(Object(Y.a)({},e,{customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0}),["color","textColor"])},kn={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"}},Cn=[{attributes:Object(Y.a)({},kn,{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()),Object(Y.a)({},e,{className:t||void 0,borderRadius:0})},save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.customBackgroundColor,a=n.customTextColor,c=n.linkTarget,i=n.rel,l=n.text,s=n.textColor,u=n.title,b=n.url,m=Object($.getColorClassName)("color",s),d=Object($.getColorClassName)("background-color",r),h=te()("wp-block-button__link",(t={"has-text-color":s||a},Object(Z.a)(t,m,m),Object(Z.a)(t,"has-background",r||o),Object(Z.a)(t,d,d),t)),p={backgroundColor:d?void 0:o,color:m?void 0:a};return Object(X.createElement)("div",null,Object(X.createElement)($.RichText.Content,{tagName:"a",className:h,href:b,title:u,style:p,value:l,target:c,rel:i}))}},{attributes:Object(Y.a)({},kn,{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,a=n.title,c=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=Object($.getColorClassName)("color",i),b=Object($.getColorClassName)("background-color",c),m=te()("wp-block-button__link",(t={"has-text-color":i||s},Object(Z.a)(t,u,u),Object(Z.a)(t,"has-background",c||l),Object(Z.a)(t,b,b),t)),d={backgroundColor:b?void 0:l,color:u?void 0:s};return Object(X.createElement)("div",null,Object(X.createElement)($.RichText.Content,{tagName:"a",className:m,href:r,title:a,style:d,value:o}))},migrate:_n},{attributes:Object(Y.a)({},kn,{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,a=t.align,c={backgroundColor:t.color,color:t.textColor};return Object(X.createElement)("div",{className:"align".concat(a)},Object(X.createElement)($.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:n,title:o,style:c,value:r}))},migrate:_n},{attributes:Object(Y.a)({},kn,{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,a=t.align,c=t.color,i=t.textColor;return Object(X.createElement)("div",{className:"align".concat(a),style:{backgroundColor:c}},Object(X.createElement)($.RichText.Content,{tagName:"a",href:n,title:o,style:{color:i},value:r}))},migrate:_n}],wn=window.getComputedStyle,En=Object(ie.withFallbackStyles)((function(e,t){var n=t.textColor,r=t.backgroundColor,o=r&&r.color,a=n&&n.color,c=!a&&e?e.querySelector('[contenteditable="true"]'):null;return{fallbackBackgroundColor:o||!e?void 0:wn(e).backgroundColor,fallbackTextColor:a||!c?void 0:wn(c).color}})),xn="noreferrer noopener",Sn=0,Tn=50,Nn=5;function Bn(e){var t=e.borderRadius,n=void 0===t?"":t,r=e.setAttributes,o=Object(X.useCallback)((function(e){r({borderRadius:e})}),[r]);return Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Border Settings")},Object(X.createElement)(ie.RangeControl,{value:n,label:Object(Q.__)("Border Radius"),min:Sn,max:Tn,initialPosition:Nn,allowReset:!0,onChange:o}))}var An=function(e){var t=e.keyCode;[Wt.LEFT,Wt.DOWN,Wt.RIGHT,Wt.UP,Wt.BACKSPACE,Wt.ENTER].indexOf(t)>-1&&e.stopPropagation()},Rn=function(e){e.stopPropagation()};function In(e){var t=e.isSelected,n=e.url,r=e.title,o=e.setAttributes,a=e.opensInNewTab,c=e.onToggleOpenInNewTab,i=Object(X.useState)(!1),l=Object(ce.a)(i,2),s=l[0],u=l[1];Object(X.useEffect)((function(){t||u(!1)}),[t]);var b=function(){u(!0)},m=s&&Object(X.createElement)($.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",onKeyDown:An,onKeyPress:Rn,currentLink:n||r?{url:n,title:r}:null,onLinkChange:function(e){var t=e.title,n=void 0===t?"":t,r=e.url,a=void 0===r?"":r;o({title:Object(ne.escape)(n),url:a})},currentSettings:[{id:"opensInNewTab",title:Object(Q.__)("Open in new tab"),checked:a}],onSettingsChange:function(e,t){"opensInNewTab"===e&&c(t)},onClose:function(){u(!1)}});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)(ie.ToolbarGroup,null,Object(X.createElement)(ie.ToolbarButton,{name:"link",icon:"admin-links",title:Object(Q.__)("Link"),shortcut:Wt.displayShortcut.primary("k"),onClick:b}))),t&&Object(X.createElement)(ie.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(Z.a)({},Wt.rawShortcut.primary("k"),b)}),m)}var Mn=Object(le.compose)([Object($.withColors)("backgroundColor",{textColor:"color"}),En])((function(e){var t,n=e.attributes,r=e.backgroundColor,o=e.textColor,a=e.setBackgroundColor,c=e.setTextColor,i=e.fallbackBackgroundColor,l=e.fallbackTextColor,s=e.setAttributes,u=e.className,b=e.isSelected,m=n.borderRadius,d=n.linkTarget,h=n.placeholder,p=n.rel,g=n.text,f=n.title,v=n.url,O=Object(X.useCallback)((function(e){s({rel:e})}),[s]),j=Object(X.useCallback)((function(e){var t=e?"_blank":void 0,n=p;t&&!p?n=xn:t||p!==xn||(n=void 0),s({linkTarget:t,rel:n})}),[p,s]),y=Object($.__experimentalUseGradient)(),_=y.gradientClass,k=y.gradientValue,C=y.setGradient;return Object(X.createElement)("div",{className:u,title:f},Object(X.createElement)($.RichText,{placeholder:h||Object(Q.__)("Add text…"),value:g,onChange:function(e){return s({text:e})},withoutInteractiveFormatting:!0,className:te()("wp-block-button__link",(t={"has-background":r.color||k},Object(Z.a)(t,r.class,!k&&r.class),Object(Z.a)(t,"has-text-color",o.color),Object(Z.a)(t,o.class,o.class),Object(Z.a)(t,_,_),Object(Z.a)(t,"no-border-radius",0===m),t)),style:Object(Y.a)({},!r.color&&k?{background:k}:{backgroundColor:r.color},{color:o.color,borderRadius:m?m+"px":void 0})}),Object(X.createElement)(In,{title:f,url:v,setAttributes:s,isSelected:b,opensInNewTab:"_blank"===d,onToggleOpenInNewTab:j}),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)($.__experimentalPanelColorGradientSettings,{title:Object(Q.__)("Background & Text Color"),settings:[{colorValue:o.color,onColorChange:c,label:Object(Q.__)("Text Color")},{colorValue:r.color,onColorChange:a,gradientValue:k,onGradientChange:C,label:Object(Q.__)("Background")}]},Object(X.createElement)($.ContrastChecker,{isLargeText:!1,textColor:o.color,backgroundColor:r.color,fallbackBackgroundColor:i,fallbackTextColor:l})),Object(X.createElement)(Bn,{borderRadius:m,setAttributes:s}),Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Link settings")},Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Open in new tab"),onChange:j,checked:"_blank"===d}),Object(X.createElement)(ie.TextControl,{label:Object(Q.__)("Link rel"),value:p||"",onChange:O}))))})),Pn=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(X.createElement)(ie.G,null,Object(X.createElement)(ie.Path,{d:"M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"})));var zn={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"}}},Hn=zn.name,Ln={title:Object(Q.__)("Button"),description:Object(Q.__)("Prompt visitors to take action with a button-style link."),icon:Pn,keywords:[Object(Q.__)("link")],example:{attributes:{className:"is-style-fill",backgroundColor:"vivid-green-cyan",text:Object(Q.__)("Call to Action")}},supports:{align:!0,alignWide:!1},parent:["core/buttons"],styles:[{name:"fill",label:Object(Q.__)("Fill"),isDefault:!0},{name:"outline",label:Object(Q.__)("Outline")}],edit:Mn,save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.borderRadius,a=n.customBackgroundColor,c=n.customTextColor,i=n.customGradient,l=n.linkTarget,s=n.gradient,u=n.rel,b=n.text,m=n.textColor,d=n.title,h=n.url,p=Object($.getColorClassName)("color",m),g=!i&&Object($.getColorClassName)("background-color",r),f=Object($.__experimentalGetGradientClass)(s),v=te()("wp-block-button__link",(t={"has-text-color":m||c},Object(Z.a)(t,p,p),Object(Z.a)(t,"has-background",r||a||i||s),Object(Z.a)(t,g,g),Object(Z.a)(t,"no-border-radius",0===o),Object(Z.a)(t,f,f),t)),O={background:i||void 0,backgroundColor:g||i||s?void 0:a,color:p?void 0:c,borderRadius:o?o+"px":void 0};return Object(X.createElement)("div",null,Object(X.createElement)($.RichText.Content,{tagName:"a",className:v,href:h,title:d,style:O,value:b,target:l,rel:u}))},deprecated:Cn},Vn=[Hn],Fn=[["core/button"]],Dn={hasSelectedUI:!1};var Un=function(e){var t=e.className;return Object(X.createElement)("div",{className:t},Object(X.createElement)($.InnerBlocks,{allowedBlocks:Vn,template:Fn,__experimentalUIParts:Dn,__experimentalMoverDirection:"horizontal"}))},Gn=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(X.createElement)(ie.G,null,Object(X.createElement)(ie.Path,{d:"M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"})));var qn={name:"core/buttons",category:"layout",attributes:{}},Wn=qn.name,Kn={title:Object(Q.__)("Buttons"),description:Object(Q.__)("Prompt visitors to take action with a group of button-style links."),icon:Gn,keywords:[Object(Q.__)("link")],supports:{align:!0,alignWide:!1},edit:Un,save:function(){return Object(X.createElement)("div",null,Object(X.createElement)($.InnerBlocks.Content,null))}},Zn=n(30),$n=n.n(Zn),Jn=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).getYearMonth=tt()(e.getYearMonth.bind(Object(Se.a)(e)),{maxSize:1}),e.getServerSideAttributes=tt()(e.getServerSideAttributes.bind(Object(Se.a)(e)),{maxSize:1}),e}return Object(Te.a)(t,e),Object(we.a)(t,[{key:"getYearMonth",value:function(e){if(!e)return{};var t=$n()(e);return{year:t.year(),month:t.month()+1}}},{key:"getServerSideAttributes",value:function(e,t){return Object(Y.a)({},e,this.getYearMonth(t))}},{key:"render",value:function(){return Object(X.createElement)(ie.Disabled,null,Object(X.createElement)(sn.a,{block:"core/calendar",attributes:this.getServerSideAttributes(this.props.attributes,this.props.date)}))}}]),t}(X.Component),Qn=Object(se.withSelect)((function(e){var t=e("core/editor");if(t){var n=t.getEditedPostAttribute;return{date:"post"===n("type")?n("date"):void 0}}}))(Jn),Yn=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(X.createElement)(ie.G,null,Object(X.createElement)(ie.Path,{d:"M7 11h2v2H7v-2zm14-5v14c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2l.01-14c0-1.1.88-2 1.99-2h1V2h2v2h8V2h2v2h1c1.1 0 2 .9 2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"}))),Xn="core/calendar",er={title:Object(Q.__)("Calendar"),description:Object(Q.__)("A calendar of your site’s posts."),icon:Yn,category:"widgets",keywords:[Object(Q.__)("posts"),Object(Q.__)("archive")],supports:{align:!0},example:{},edit:Qn},tr=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).toggleDisplayAsDropdown=e.toggleDisplayAsDropdown.bind(Object(Se.a)(e)),e.toggleShowPostCounts=e.toggleShowPostCounts.bind(Object(Se.a)(e)),e.toggleShowHierarchy=e.toggleShowHierarchy.bind(Object(Se.a)(e)),e}return Object(Te.a)(t,e),Object(we.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(ne.unescape)(e.name).trim():Object(Q.__)("(Untitled)")}},{key:"renderCategoryList",value:function(){var e=this,t=this.props.attributes.showHierarchy?0:null,n=this.getCategories(t);return Object(X.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,a=r.showPostCounts,c=this.getCategories(e.id);return Object(X.createElement)("li",{key:e.id},Object(X.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},this.renderCategoryName(e)),a&&Object(X.createElement)("span",{className:"wp-block-categories__post-count"}," ","(",e.count,")"),o&&!!c.length&&Object(X.createElement)("ul",{className:this.getCategoryListClassName(t+1)},c.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(X.createElement)(X.Fragment,null,Object(X.createElement)("label",{htmlFor:o,className:"screen-reader-text"},Object(Q.__)("Categories")),Object(X.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,a=r.showPostCounts,c=this.getCategories(e.id);return[Object(X.createElement)("option",{key:e.id},Object(ne.times)(3*t,(function(){return" "})),this.renderCategoryName(e),a?" (".concat(e.count,")"):""),o&&!!c.length&&c.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,a=t.showPostCounts,c=Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Categories Settings")},Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Display as Dropdown"),checked:r,onChange:this.toggleDisplayAsDropdown}),Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Show Hierarchy"),checked:o,onChange:this.toggleShowHierarchy}),Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Show Post Counts"),checked:a,onChange:this.toggleShowPostCounts})));return n?Object(X.createElement)(X.Fragment,null,c,Object(X.createElement)(ie.Placeholder,{icon:"admin-post",label:Object(Q.__)("Categories")},Object(X.createElement)(ie.Spinner,null))):Object(X.createElement)(X.Fragment,null,c,Object(X.createElement)("div",{className:this.props.className},r?this.renderCategoryDropdown():this.renderCategoryList()))}}]),t}(X.Component),nr=Object(le.compose)(Object(se.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])}})),le.withInstanceId)(tr),rr=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(X.createElement)(ie.Path,{d:"M12,2l-5.5,9h11L12,2z M12,5.84L13.93,9h-3.87L12,5.84z"}),Object(X.createElement)(ie.Path,{d:"m17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),Object(X.createElement)(ie.Path,{d:"m3 21.5h8v-8h-8v8zm2-6h4v4h-4v-4z"})),or="core/categories",ar={title:Object(Q.__)("Categories"),description:Object(Q.__)("Display a list of all categories."),icon:rr,category:"widgets",supports:{align:!0,html:!1},edit:nr};var cr=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(X.createElement)(ie.Path,{d:"M9.4,16.6L4.8,12l4.6-4.6L8,6l-6,6l6,6L9.4,16.6z M14.6,16.6l4.6-4.6l-4.6-4.6L16,6l6,6l-6,6L14.6,16.6z"})),ir=n(61);function lr(e){return e.replace(/\[/g,"[")}function sr(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var ur={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(J.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":{}}}}}}}]},br={name:"core/code",category:"formatting",attributes:{content:{type:"string",source:"text",selector:"code"}}},mr=br.name,dr={title:Object(Q.__)("Code"),description:Object(Q.__)("Display code snippets that respect your spacing and tabs."),icon:cr,example:{attributes:{content:Object(Q.__)('// 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:ur,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className;return Object(X.createElement)("div",{className:r},Object(X.createElement)($.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(Q.__)("Write code…"),"aria-label":Object(Q.__)("Code")}))},save:function(e){var t,n=e.attributes;return Object(X.createElement)("pre",null,Object(X.createElement)("code",null,(t=n.content,Object(ne.flow)(ir.escapeEditableHTML,lr,sr)(t||""))))}};function hr(e){var t,n=hr.doc;n||(n=document.implementation.createHTMLDocument(""),hr.doc=n),n.body.innerHTML=e;var r=!0,o=!1,a=void 0;try{for(var c,i=n.body.firstChild.classList[Symbol.iterator]();!(r=(c=i.next()).done);r=!0){if(t=c.value.match(/^layout-column-(\d+)$/))return Number(t[1])-1}}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}}var pr=[{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!==hr(e.originalContent)}))},migrate:function(e,t){var n=t.reduce((function(e,t){var n=hr(t.originalContent);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e}),[]).map((function(e){return Object(J.createBlock)("core/column",{},e)}));return[Object(ne.omit)(e,["columns"]),n]},save:function(e){var t=e.attributes.columns;return Object(X.createElement)("div",{className:"has-".concat(t,"-columns")},Object(X.createElement)($.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:function(e,t){return[e=Object(ne.omit)(e,["columns"]),t]},save:function(e){var t=e.attributes,n=t.verticalAlignment,r=t.columns,o=te()("has-".concat(r,"-columns"),Object(Z.a)({},"are-vertically-aligned-".concat(n),n));return Object(X.createElement)("div",{className:o},Object(X.createElement)($.InnerBlocks.Content,null))}}],gr=function(e){return Number.isFinite(e)?parseFloat(e.toFixed(2)):void 0};function fr(e,t){var n=e.attributes.width;return gr(void 0===n?100/t:n)}function vr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(ne.sumBy)(e,(function(e){return fr(e,t)}))}function Or(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,n){var r=fr(n,t);return Object.assign(e,Object(Z.a)({},n.clientId,r))}),{})}function jr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=(t-vr(e,n))/e.length;return Object(ne.mapValues)(Or(e,n),(function(e){return gr(e+r)}))}function yr(e,t){return e.map((function(e){return Object(ne.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var _r=["core/column"];var kr=Object(se.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,a=t.setAttributes,c=e("core/block-editor").updateBlockAttributes,i=n.select("core/block-editor").getBlockOrder;a({verticalAlignment:r}),i(o).forEach((function(e){c(e,{verticalAlignment:r})}))},updateColumns:function(r,o){var a=t.clientId,c=e("core/block-editor").replaceInnerBlocks,i=(0,n.select("core/block-editor").getBlocks)(a),l=i.some((function(e){return Number.isFinite(e.attributes.width)})),s=o>r;if(s&&l){var u=gr(100/o),b=jr(i,100-u);i=[].concat(Object(K.a)(yr(i,b)),Object(K.a)(Object(ne.times)(o-r,(function(){return Object(J.createBlock)("core/column",{width:u})}))))}else if(s)i=[].concat(Object(K.a)(i),Object(K.a)(Object(ne.times)(o-r,(function(){return Object(J.createBlock)("core/column")}))));else{if(i=Object(ne.dropRight)(i,r-o),l)i=yr(i,jr(i,100))}c(a,i,!1)}}}))((function(e){var t=e.attributes,n=e.className,r=e.updateAlignment,o=e.updateColumns,a=e.clientId,c=t.verticalAlignment,i=Object(se.useSelect)((function(e){return{count:e("core/block-editor").getBlockCount(a)}}),[a]).count,l=te()(n,Object(Z.a)({},"are-vertically-aligned-".concat(c),c));return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,null,Object(X.createElement)(ie.RangeControl,{label:Object(Q.__)("Columns"),value:i,onChange:function(e){return o(i,e)},min:2,max:6}))),Object(X.createElement)($.BlockControls,null,Object(X.createElement)($.BlockVerticalAlignmentToolbar,{onChange:r,value:c})),Object(X.createElement)("div",{className:l},Object(X.createElement)($.InnerBlocks,{templateLock:"all",allowedBlocks:_r})))})),Cr=function e(t){return Object(ne.map)(t,(function(t){var n=Object(ce.a)(t,3),r=n[0],o=n[1],a=n[2],c=void 0===a?[]:a;return Object(J.createBlock)(r,o,e(c))}))},wr=function(e){var t=e.clientId,n=e.name,r=Object(se.useSelect)((function(e){var r=e("core/blocks"),o=r.__experimentalGetBlockPatterns,a=r.getBlockType,c=r.__experimentalGetDefaultBlockPattern;return{blockType:a(n),defaultPattern:c(n),hasInnerBlocks:e("core/block-editor").getBlocks(t).length>0,patterns:o(n)}}),[t,n]),o=r.blockType,a=r.defaultPattern,c=r.hasInnerBlocks,i=r.patterns,l=Object(se.useDispatch)("core/block-editor").replaceInnerBlocks;return c?Object(X.createElement)(kr,e):Object(X.createElement)($.__experimentalBlockPatternPicker,{icon:Object(ne.get)(o,["icon","src"]),label:Object(ne.get)(o,["title"]),patterns:i,onSelect:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;t.attributes&&e.setAttributes(t.attributes),t.innerBlocks&&l(e.clientId,Cr(t.innerBlocks))},allowSkip:!0})},Er=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(X.createElement)(ie.G,null,Object(X.createElement)(ie.Path,{d:"M4,4H20a2,2,0,0,1,2,2V18a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V6A2,2,0,0,1,4,4ZM4 6V18H8V6Zm6 0V18h4V6Zm6 0V18h4V6Z"}))),xr=[{name:"two-columns-equal",label:Object(Q.__)("Two columns; equal split"),icon:Object(X.createElement)(ie.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.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"]]},{name:"two-columns-one-third-two-thirds",label:Object(Q.__)("Two columns; one-third, two-thirds split"),icon:Object(X.createElement)(ie.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.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}]]},{name:"two-columns-two-thirds-one-third",label:Object(Q.__)("Two columns; two-thirds, one-third split"),icon:Object(X.createElement)(ie.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.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}]]},{name:"three-columns-equal",label:Object(Q.__)("Three columns; equal split"),icon:Object(X.createElement)(ie.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.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"]]},{name:"three-columns-wider-center",label:Object(Q.__)("Three columns; wide center column"),icon:Object(X.createElement)(ie.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.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}]]}];var Sr={name:"core/columns",category:"layout",attributes:{verticalAlignment:{type:"string"}}},Tr=Sr.name,Nr={title:Object(Q.__)("Columns"),icon:Er,description:Object(Q.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),supports:{align:["wide","full"],html:!1},patterns:xr,example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Q.__)("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(Q.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(Q.__)("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(Q.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:pr,edit:wr,save:function(e){var t=e.attributes.verticalAlignment,n=te()(Object(Z.a)({},"are-vertically-aligned-".concat(t),t));return Object(X.createElement)("div",{className:n},Object(X.createElement)($.InnerBlocks.Content,null))}};var Br=Object(le.compose)(Object(se.withSelect)((function(e,t){var n=t.clientId;return{hasChildBlocks:(0,e("core/block-editor").getBlockOrder)(n).length>0}})),Object(se.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,a=t.setAttributes,c=e("core/block-editor").updateBlockAttributes,i=n.select("core/block-editor").getBlockRootClientId;a({verticalAlignment:r}),c(i(o),{verticalAlignment:null})},updateWidth:function(r){var o=t.clientId,a=e("core/block-editor").updateBlockAttributes,c=n.select("core/block-editor"),i=c.getBlockRootClientId,l=(0,c.getBlocks)(i(o)),s=function(e,t){var n=Object(ne.findIndex)(e,{clientId:t});return n===e.length-1?e.slice(0,n):e.slice(n+1)}(l,o),u=r+vr(Object(ne.difference)(l,[Object(ne.find)(l,{clientId:o})].concat(Object(K.a)(s)))),b=Object(Y.a)({},Or(l,l.length),Object(Z.a)({},o,gr(r)),jr(s,100-u,l.length));Object(ne.forEach)(b,(function(e,t){a(t,{width:e})}))}}})))((function(e){var t=e.attributes,n=e.className,r=e.updateAlignment,o=e.updateWidth,a=e.hasChildBlocks,c=t.verticalAlignment,i=t.width,l=te()(n,"block-core-columns",Object(Z.a)({},"is-vertically-aligned-".concat(c),c));return Object(X.createElement)("div",{className:l},Object(X.createElement)($.BlockControls,null,Object(X.createElement)($.BlockVerticalAlignmentToolbar,{onChange:r,value:c})),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Column Settings")},Object(X.createElement)(ie.RangeControl,{label:Object(Q.__)("Percentage width"),value:i||"",onChange:o,min:0,max:100,required:!0,allowReset:!0}))),Object(X.createElement)($.InnerBlocks,{templateLock:!1,renderAppender:a?void 0:function(){return Object(X.createElement)($.InnerBlocks.ButtonBlockAppender,null)}}))})),Ar=Object(X.createElement)(ie.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ie.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(X.createElement)(ie.Path,{d:"M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z"}));var Rr={name:"core/column",category:"common",attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}}},Ir=Rr.name,Mr={title:Object(Q.__)("Column"),parent:["core/columns"],icon:Ar,description:Object(Q.__)("A single column within a columns block."),supports:{inserter:!1,reusable:!1,html:!1},getEditWrapperProps:function(e){var t=e.width;if(Number.isFinite(t))return{style:{flexBasis:t+"%"}}},edit:Br,save:function(e){var t,n=e.attributes,r=n.verticalAlignment,o=n.width,a=te()(Object(Z.a)({},"is-vertically-aligned-".concat(r),r));return Number.isFinite(o)&&(t={flexBasis:o+"%"}),Object(X.createElement)("div",{className:a,style:t},Object(X.createElement)($.InnerBlocks.Content,null))}},Pr="image",zr="video",Hr=50;function Lr(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}function Vr(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}var Fr={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"}},Dr=[{attributes:Object(Y.a)({},Fr,{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,a=t.customOverlayColor,c=t.dimRatio,i=t.focalPoint,l=t.hasParallax,s=t.overlayColor,u=t.url,b=t.minHeight,m=Object($.getColorClassName)("background-color",s),d=Object($.__experimentalGetGradientClass)(r),h=n===Pr?Lr(u):{};m||(h.backgroundColor=a),i&&!l&&(h.backgroundPosition="".concat(100*i.x,"% ").concat(100*i.y,"%")),o&&!u&&(h.background=o),h.minHeight=b||void 0;var p=te()(Vr(c),m,Object(Z.a)({"has-background-dim":0!==c,"has-parallax":l,"has-background-gradient":o},d,!u&&d));return Object(X.createElement)("div",{className:p,style:h},u&&(r||o)&&0!==c&&Object(X.createElement)("span",{"aria-hidden":"true",className:te()("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),zr===n&&u&&Object(X.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(X.createElement)("div",{className:"wp-block-cover__inner-container"},Object(X.createElement)($.InnerBlocks.Content,null)))}},{attributes:Object(Y.a)({},Fr,{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,a=t.dimRatio,c=t.focalPoint,i=t.hasParallax,l=t.overlayColor,s=t.title,u=t.url,b=Object($.getColorClassName)("background-color",l),m=n===Pr?Lr(u):{};b||(m.backgroundColor=o),c&&!i&&(m.backgroundPosition="".concat(100*c.x,"% ").concat(100*c.y,"%"));var d=te()(Vr(a),b,Object(Z.a)({"has-background-dim":0!==a,"has-parallax":i},"has-".concat(r,"-content"),"center"!==r));return Object(X.createElement)("div",{className:d,style:m},zr===n&&u&&Object(X.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!$.RichText.isEmpty(s)&&Object(X.createElement)($.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:s}))},migrate:function(e){return[Object(ne.omit)(e,["title","contentAlign"]),[Object(J.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(Q.__)("Write title…")})]]}},{attributes:Object(Y.a)({},Fr,{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,a=t.dimRatio,c=t.align,i=t.contentAlign,l=t.overlayColor,s=t.customOverlayColor,u=Object($.getColorClassName)("background-color",l),b=Lr(n);u||(b.backgroundColor=s);var m=te()("wp-block-cover-image",Vr(a),u,Object(Z.a)({"has-background-dim":0!==a,"has-parallax":o},"has-".concat(i,"-content"),"center"!==i),c?"align".concat(c):null);return Object(X.createElement)("div",{className:m,style:b},!$.RichText.isEmpty(r)&&Object(X.createElement)($.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:r}))},migrate:function(e){return[Object(ne.omit)(e,["title","contentAlign","align"]),[Object(J.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(Q.__)("Write title…")})]]}},{attributes:Object(Y.a)({},Fr,{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,a=t.dimRatio,c=t.align,i=Lr(n),l=te()("wp-block-cover-image",Vr(a),{"has-background-dim":0!==a,"has-parallax":o},c?"align".concat(c):null);return Object(X.createElement)("section",{className:l,style:i},Object(X.createElement)($.RichText.Content,{tagName:"h2",value:r}))},migrate:function(e){return[Object(ne.omit)(e,["title","contentAlign","align"]),[Object(J.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(Q.__)("Write title…")})]]}}],Ur=n(219),Gr=n.n(Ur),qr=n(49),Wr=n.n(qr),Kr=Object(X.createElement)(ie.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ie.Path,{d:"M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-7v2h7v7h2V4c0-1.1-.9-2-2-2zm0 18h-7v2h7c1.1 0 2-.9 2-2v-7h-2v7zM4 13H2v7c0 1.1.9 2 2 2h7v-2H4v-7z"}),Object(X.createElement)(ie.Path,{d:"M0 0h24v24H0z",fill:"none"})),Zr=["image","video"],$r=[["core/paragraph",{align:"center",fontSize:"large",placeholder:Object(Q.__)("Write title…")}]];function Jr(){return Jr.fastAverageColor||(Jr.fastAverageColor=new Gr.a),Jr.fastAverageColor}var Qr=Object(le.withInstanceId)((function(e){var t=e.value,n=void 0===t?"":t,r=e.instanceId,o=e.onChange,a=Object(X.useState)(null),c=Object(ce.a)(a,2),i=c[0],l=c[1],s="block-cover-height-input-".concat(r);return Object(X.createElement)(ie.BaseControl,{label:Object(Q.__)("Minimum height in pixels"),id:s},Object(X.createElement)("input",{type:"number",id:s,onChange:function(e){var t=""!==e.target.value?parseInt(e.target.value,10):void 0;(isNaN(t)||t<Hr)&&void 0!==t?l(e.target.value):(l(null),o(t))},onBlur:function(){null!==i&&l(null)},value:null!==i?i:n,min:Hr,step:"1"}))})),Yr={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};function Xr(e){var t=e.className,n=e.children,r=e.onResizeStart,o=e.onResize,a=e.onResizeStop,c=Object(X.useState)(!1),i=Object(ce.a)(c,2),l=i[0],s=i[1];return Object(X.createElement)(ie.ResizableBox,{className:te()(t,{"is-resizing":l}),enable:Yr,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){a(n.clientHeight),s(!1)},minHeight:Hr},n)}var eo=Object(le.compose)([Object(se.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),Object($.withColors)({overlayColor:"background-color"}),ie.withNotices,le.withInstanceId])((function(e){var t,n=e.attributes,r=e.setAttributes,o=e.isSelected,a=e.className,c=e.noticeUI,i=e.overlayColor,l=e.setOverlayColor,s=e.toggleSelection,u=e.noticeOperations,b=n.backgroundType,m=n.dimRatio,d=n.focalPoint,h=n.hasParallax,p=n.id,g=n.minHeight,f=n.url,v=Object($.__experimentalUseGradient)(),O=v.gradientClass,j=v.gradientValue,y=v.setGradient,_=function(e){return function(t){if(t&&t.url){var n;if(t.media_type)n=t.media_type===Pr?Pr:zr;else{if(t.type!==Pr&&t.type!==zr)return;n=t.type}e(Object(Y.a)({url:t.url,id:t.id,backgroundType:n},n===zr?{focalPoint:void 0,hasParallax:void 0}:{}))}else e({url:void 0,id:void 0})}}(r),k=Object(X.useRef)(),C=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(X.useState)(!1),a=Object(ce.a)(o,2),c=a[0],i=a[1];return Object(X.useEffect)((function(){e&&t<=50&&r.current&&Jr().getColorAsync(r.current,(function(e){i(e.isDark)}))}),[e,e&&t<=50&&r.current,i]),Object(X.useEffect)((function(){if(t>50||!e){if(!n)return void i(!0);i(Wr()(n).isDark())}}),[n,t>50||!e,i]),Object(X.useEffect)((function(){e||n||i(!1)}),[!e&&!n,i]),c}(f,m,i.color,k),w=Object(X.useState)(null),E=Object(ce.a)(w,2),x=E[0],S=E[1],T=u.removeAllNotices,N=u.createErrorNotice,B=Object(Y.a)({},b===Pr?Lr(f):{},{backgroundColor:i.color,minHeight:x||g});j&&!f&&(B.background=j),d&&(B.backgroundPosition="".concat(100*d.x,"% ").concat(100*d.y,"%"));var A=!!(f||i.color||j),R=Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,A&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.MediaUploadCheck,null,Object(X.createElement)(ie.ToolbarGroup,null,Object(X.createElement)($.MediaUpload,{onSelect:_,allowedTypes:Zr,value:p,render:function(e){var t=e.open;return Object(X.createElement)(ie.Button,{className:"components-toolbar__control",label:Object(Q.__)("Edit media"),icon:"edit",onClick:t})}}))))),Object(X.createElement)($.InspectorControls,null,!!f&&Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Media Settings")},Pr===b&&Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Fixed Background"),checked:h,onChange:function(){r(Object(Y.a)({hasParallax:!h},h?{}:{focalPoint:void 0}))}}),Pr===b&&!h&&Object(X.createElement)(ie.FocalPointPicker,{label:Object(Q.__)("Focal Point Picker"),url:f,value:d,onChange:function(e){return r({focalPoint:e})}}),zr===b&&Object(X.createElement)("video",{autoPlay:!0,muted:!0,loop:!0,src:f}),Object(X.createElement)(ie.PanelRow,null,Object(X.createElement)(ie.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(Q.__)("Clear Media")))),A&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Dimensions")},Object(X.createElement)(Qr,{value:x||g,onChange:function(e){return r({minHeight:e})}})),Object(X.createElement)($.__experimentalPanelColorGradientSettings,{title:Object(Q.__)("Overlay"),initialOpen:!0,settings:[{colorValue:i.color,gradientValue:j,onColorChange:l,onGradientChange:y,label:Object(Q.__)("Overlay")}]},!!f&&Object(X.createElement)(ie.RangeControl,{label:Object(Q.__)("Background Opacity"),value:m,onChange:function(e){return r({dimRatio:e})},min:0,max:100,step:10,required:!0})))));if(!A){var I=Object(X.createElement)($.BlockIcon,{icon:Kr}),M=Object(Q.__)("Cover");return Object(X.createElement)(X.Fragment,null,R,Object(X.createElement)($.MediaPlaceholder,{icon:I,className:a,labels:{title:M,instructions:Object(Q.__)("Upload an image or video file, or pick one from your media library.")},onSelect:_,accept:"image/*,video/*",allowedTypes:Zr,notices:c,onError:function(e){T(),N(e)}},Object(X.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(X.createElement)($.ColorPalette,{disableCustomColors:!0,value:i.color,onChange:l,clearable:!1}),Object(X.createElement)($.__experimentalGradientPicker,{disableCustomGradients:!0,onChange:function(e){y(e),r({overlayColor:void 0})},value:j,clearable:!1}))))}var P=te()(a,Vr(m),(t={"is-dark-theme":C,"has-background-dim":0!==m,"has-parallax":h},Object(Z.a)(t,i.class,i.class),Object(Z.a)(t,"has-background-gradient",j),Object(Z.a)(t,O,!f&&O),t));return Object(X.createElement)(X.Fragment,null,R,Object(X.createElement)(Xr,{className:te()("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(X.createElement)("div",{"data-url":f,style:B,className:P},Pr===b&&Object(X.createElement)("img",{ref:k,"aria-hidden":!0,alt:"",style:{display:"none"},src:f}),f&&j&&0!==m&&Object(X.createElement)("span",{"aria-hidden":"true",className:te()("wp-block-cover__gradient-background",O),style:{background:j}}),zr===b&&Object(X.createElement)("video",{ref:k,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:f}),Object(X.createElement)("div",{className:"wp-block-cover__inner-container"},Object(X.createElement)($.InnerBlocks,{template:$r})))))}));var to={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,n=e.url,r=e.align,o=e.id;return Object(J.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(J.createBlock)("core/cover",{title:t,url:n,align:r,id:o,backgroundType:zr})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType,n=e.url,r=e.overlayColor,o=e.customOverlayColor,a=e.gradient,c=e.customGradient;return n?t===Pr:!(r||o||a||c)},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(J.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,a=e.gradient,c=e.customGradient;return n?t===zr:!(r||o||a||c)},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id;return Object(J.createBlock)("core/video",{caption:t,src:n,id:o,align:r})}}]},no={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"}}},ro=no.name,oo={title:Object(Q.__)("Cover"),description:Object(Q.__)("Add an image or video with a text overlay — great for headers."),icon:Kr,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(Q.__)("<strong>Snow Patrol</strong>"),align:"center"}}]},transforms:to,save:function(e){var t=e.attributes,n=t.backgroundType,r=t.gradient,o=t.customGradient,a=t.customOverlayColor,c=t.dimRatio,i=t.focalPoint,l=t.hasParallax,s=t.overlayColor,u=t.url,b=t.minHeight,m=Object($.getColorClassName)("background-color",s),d=Object($.__experimentalGetGradientClass)(r),h=n===Pr?Lr(u):{};m||(h.backgroundColor=a),i&&!l&&(h.backgroundPosition="".concat(Math.round(100*i.x),"% ").concat(Math.round(100*i.y),"%")),o&&!u&&(h.background=o),h.minHeight=b||void 0;var p=te()(Vr(c),m,Object(Z.a)({"has-background-dim":0!==c,"has-parallax":l,"has-background-gradient":o},d,!u&&d));return Object(X.createElement)("div",{className:p,style:h},u&&(r||o)&&0!==c&&Object(X.createElement)("span",{"aria-hidden":"true",className:te()("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),zr===n&&u&&Object(X.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(X.createElement)("div",{className:"wp-block-cover__inner-container"},Object(X.createElement)($.InnerBlocks.Content,null)))},edit:eo,deprecated:Dr},ao=function(e){var t=e.blockSupportsResponsive,n=e.showEditButton,r=e.themeSupportsResponsive,o=e.allowResponsive,a=e.getResponsiveHelp,c=e.toggleResponsive,i=e.switchBackToURLInput;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)(ie.ToolbarGroup,null,n&&Object(X.createElement)(ie.Button,{className:"components-toolbar__control",label:Object(Q.__)("Edit URL"),icon:"edit",onClick:i}))),r&&t&&Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Media Settings"),className:"blocks-responsive"},Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Resize for smaller devices"),checked:o,help:a,onChange:c}))))},co=function(){return Object(X.createElement)("div",{className:"wp-block-embed is-loading"},Object(X.createElement)(ie.Spinner,null),Object(X.createElement)("p",null,Object(Q.__)("Embedding…")))},io=function(e){var t=e.icon,n=e.label,r=e.value,o=e.onSubmit,a=e.onChange,c=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(X.createElement)(ie.Placeholder,{icon:Object(X.createElement)($.BlockIcon,{icon:t,showColors:!0}),label:n,className:"wp-block-embed",instructions:Object(Q.__)("Paste a link to the content you want to display on your site.")},Object(X.createElement)("form",{onSubmit:o},Object(X.createElement)("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:Object(Q.__)("Enter URL to embed here…"),onChange:a}),Object(X.createElement)(ie.Button,{isSecondary:!0,type:"submit"},Object(Q._x)("Embed","button label")),c&&Object(X.createElement)("p",{className:"components-placeholder__error"},Object(Q.__)("Sorry, this content could not be embedded."),Object(X.createElement)("br",null),Object(X.createElement)(ie.Button,{isSecondary:!0,onClick:l},Object(Q._x)("Try again","button label"))," ",Object(X.createElement)(ie.Button,{isSecondary:!0,onClick:i},Object(Q._x)("Convert to link","button label")))),Object(X.createElement)("div",{className:"components-placeholder__learn-more"},Object(X.createElement)(ie.ExternalLink,{href:Object(Q.__)("https://wordpress.org/support/article/embeds/")},Object(Q.__)("Learn more about embeds"))))},lo=n(85),so=window.FocusEvent,uo=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).checkFocus=e.checkFocus.bind(Object(Se.a)(e)),e.node=Object(X.createRef)(),e}return Object(Te.a)(t,e),Object(we.a)(t,[{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new so("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html;return Object(X.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:e}})}}]),t}(X.Component),bo=Object(le.withGlobalEvents)({blur:"checkFocus"})(uo),mo=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).hideOverlay=e.hideOverlay.bind(Object(Se.a)(e)),e.state={interactive:!1},e}return Object(Te.a)(t,e),Object(we.a)(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,n,r=this.props,o=r.preview,a=r.url,c=r.type,i=r.caption,l=r.onCaptionChange,s=r.isSelected,u=r.className,b=r.icon,m=r.label,d=o.scripts,h=this.state.interactive,p="photo"===c?(t=(e=o).thumbnail_url?e.thumbnail_url:e.url,n=Object(X.createElement)("p",null,Object(X.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object(X.renderToString)(n)):o.html,g=Object(lo.parse)(a).host.split("."),f=g.splice(g.length-2,g.length-1).join("."),v=Object(ne.includes)(Je,f),O=Object(Q.sprintf)(Object(Q.__)("Embedded content from %s"),f),j=Xe()(c,u,"wp-block-embed__wrapper"),y="wp-embed"===c?Object(X.createElement)(bo,{html:p}):Object(X.createElement)("div",{className:"wp-block-embed__wrapper"},Object(X.createElement)(ie.SandBox,{html:p,scripts:d,title:O,type:j,onFocus:this.hideOverlay}),!h&&Object(X.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(X.createElement)("figure",{className:Xe()(u,"wp-block-embed",{"is-type-video":"video"===c})},v?Object(X.createElement)(ie.Placeholder,{icon:Object(X.createElement)($.BlockIcon,{icon:b,showColors:!0}),label:m},Object(X.createElement)("p",{className:"components-placeholder__error"},Object(X.createElement)("a",{href:a},a)),Object(X.createElement)("p",{className:"components-placeholder__error"},Object(Q.sprintf)(Object(Q.__)("Embedded content from %s can't be previewed in the editor."),f))):y,(!$.RichText.isEmpty(i)||s)&&Object(X.createElement)($.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:i,onChange:l,inlineToolbar:!0}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(X.Component);function ho(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(function(r){function o(){var e;return Object(Ce.a)(this,o),(e=Object(Ee.a)(this,Object(xe.a)(o).apply(this,arguments))).switchBackToURLInput=e.switchBackToURLInput.bind(Object(Se.a)(e)),e.setUrl=e.setUrl.bind(Object(Se.a)(e)),e.getMergedAttributes=e.getMergedAttributes.bind(Object(Se.a)(e)),e.setMergedAttributes=e.setMergedAttributes.bind(Object(Se.a)(e)),e.getResponsiveHelp=e.getResponsiveHelp.bind(Object(Se.a)(e)),e.toggleResponsive=e.toggleResponsive.bind(Object(Se.a)(e)),e.handleIncomingPreview=e.handleIncomingPreview.bind(Object(Se.a)(e)),e.state={editingURL:!1,url:e.props.attributes.url},e.props.preview&&e.handleIncomingPreview(),e}return Object(Te.a)(o,r),Object(we.a)(o,[{key:"handleIncomingPreview",value:function(){if(this.setMergedAttributes(),this.props.onReplace){var e=ot(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,a=r.allowResponsive;return Object(Y.a)({},this.props.attributes,ct(t,e,o,n,a))}},{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(Q.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(Q.__)("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,a=!t;this.props.setAttributes({allowResponsive:a,className:at(o,r,n&&a)})}},{key:"render",value:function(){var r=this,o=this.state,a=o.url,c=o.editingURL,i=this.props,l=i.fetching,s=i.setAttributes,u=i.isSelected,b=i.preview,m=i.cannotEmbed,d=i.themeSupportsResponsive,h=i.tryAgain;if(l)return Object(X.createElement)(co,null);var p=Object(Q.sprintf)(Object(Q.__)("%s URL"),e);if(!b||m||c)return Object(X.createElement)(io,{icon:t,label:p,onSubmit:this.setUrl,value:a,cannotEmbed:m,onChange:function(e){return r.setState({url:e.target.value})},fallback:function(){return function(e,t){var n=Object(X.createElement)("a",{href:e},e);t(Object(J.createBlock)("core/paragraph",{content:Object(X.renderToString)(n)}))}(a,r.props.onReplace)},tryAgain:h});var g=this.getMergedAttributes(),f=g.caption,v=g.type,O=g.allowResponsive,j=te()(g.className,this.props.className);return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(ao,{showEditButton:b&&!m,themeSupportsResponsive:d,blockSupportsResponsive:n,allowResponsive:O,getResponsiveHelp:this.getResponsiveHelp,toggleResponsive:this.toggleResponsive,switchBackToURLInput:this.switchBackToURLInput}),Object(X.createElement)(mo,{preview:b,className:j,url:a,type:v,caption:f,onCaptionChange:function(e){return s({caption:e})},isSelected:u,icon:t,label:p}))}}]),o}(X.Component))}var po={url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0}};function go(e){var t=e.title,n=e.description,r=e.icon,o=e.category,a=void 0===o?"embed":o,c=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(Q.__)("Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube."),h=ho(t,r,m);return{title:t,description:d,icon:r,category:a,keywords:l,attributes:po,supports:Object(Y.a)({align:!0},u),transforms:c,edit:Object(le.compose)(Object(se.withSelect)((function(e,t){var n=t.attributes.url,r=e("core"),o=r.getEmbedPreview,a=r.isPreviewEmbedFallback,c=r.isRequestingEmbedPreview,i=r.getThemeSupports,l=void 0!==n&&o(n),s=void 0!==n&&a(n),u=void 0!==n&&c(n),b=i(),m=!!l&&void 0===l.type&&!1===l.html,d=!!l&&l.data&&404===l.data.status,h=!!l&&!m&&!d,p=void 0!==n&&(!h||s);return{preview:h?l:void 0,fetching:u,themeSupportsResponsive:b["responsive-embeds"],cannotEmbed:p}})),Object(se.withDispatch)((function(e,t){var n=t.attributes.url,r=e("core/data");return{tryAgain:function(){r.invalidateResolution("core","getEmbedPreview",[n])}}})))(h),save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,a=n.type,c=n.providerNameSlug;if(!r)return null;var i=Xe()("wp-block-embed",(t={},Object(Z.a)(t,"is-type-".concat(a),a),Object(Z.a)(t,"is-provider-".concat(c),c),t));return Object(X.createElement)("figure",{className:i},Object(X.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(r,"\n")),!$.RichText.isEmpty(o)&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",value:o}))},deprecated:[{attributes:po,save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,a=n.type,c=n.providerNameSlug;if(!r)return null;var i=Xe()("wp-block-embed",(t={},Object(Z.a)(t,"is-type-".concat(a),a),Object(Z.a)(t,"is-provider-".concat(c),c),t));return Object(X.createElement)("figure",{className:i},"\n".concat(r,"\n"),!$.RichText.isEmpty(o)&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",value:o}))}}]}}var fo="core/embed",vo=go({title:Object(Q._x)("Embed","block title"),description:Object(Q.__)("Embed videos, images, tweets, audio, and other content from external sources."),icon:Re,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(J.createBlock)("core/embed",{url:e.textContent.trim()})}}]}}),Oo=Ze.map((function(e){return Object(Y.a)({},e,{settings:go(e.settings)})})),jo=$e.map((function(e){return Object(Y.a)({},e,{settings:go(e.settings)})})),yo=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(X.createElement)(ie.Path,{d:"M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}));function _o(e){var t=e.hrefs,n=e.openInNewWindow,r=e.showDownloadButton,o=e.changeLinkDestinationOption,a=e.changeOpenInNewWindow,c=e.changeShowDownloadButton,i=t.href,l=t.textLinkHref,s=t.attachmentPage,u=[{value:i,label:Object(Q.__)("URL")}];return s&&(u=[{value:i,label:Object(Q.__)("Media File")},{value:s,label:Object(Q.__)("Attachment page")}]),Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Text link settings")},Object(X.createElement)(ie.SelectControl,{label:Object(Q.__)("Link To"),value:l,options:u,onChange:o}),Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Open in new tab"),checked:n,onChange:a})),Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Download button settings")},Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Show download button"),checked:r,onChange:c}))))}var ko=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).onSelectFile=e.onSelectFile.bind(Object(Se.a)(e)),e.confirmCopyURL=e.confirmCopyURL.bind(Object(Se.a)(e)),e.resetCopyConfirmation=e.resetCopyConfirmation.bind(Object(Se.a)(e)),e.changeLinkDestinationOption=e.changeLinkDestinationOption.bind(Object(Se.a)(e)),e.changeOpenInNewWindow=e.changeOpenInNewWindow.bind(Object(Se.a)(e)),e.changeShowDownloadButton=e.changeShowDownloadButton.bind(Object(Se.a)(e)),e.onUploadError=e.onUploadError.bind(Object(Se.a)(e)),e.state={hasError:!1,showCopyConfirmation:!1},e}return Object(Te.a)(t,e),Object(we.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,a=t.setAttributes,c=n.downloadButtonText,i=n.href;Object(Ne.isBlobURL)(i)&&(r({filesList:[Object(Ne.getBlobByURL)(i)],onFileChange:function(t){var n=Object(ce.a)(t,1)[0];return e.onSelectFile(n)},onError:function(t){e.setState({hasError:!0}),o.createErrorNotice(t)}}),Object(Ne.revokeBlobURL)(i));void 0===c&&a({downloadButtonText:Object(Q._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,a=t.setAttributes,c=t.noticeUI,i=t.media,l=o.fileName,s=o.href,u=o.textLinkHref,b=o.textLinkTarget,m=o.showDownloadButton,d=o.downloadButtonText,h=this.state,p=h.hasError,g=h.showCopyConfirmation,f=i&&i.link;if(!s||p)return Object(X.createElement)($.MediaPlaceholder,{icon:Object(X.createElement)($.BlockIcon,{icon:yo}),labels:{title:Object(Q.__)("File"),instructions:Object(Q.__)("Upload a file or pick one from your media library.")},onSelect:this.onSelectFile,notices:c,onError:this.onUploadError,accept:"*"});var v=te()(n,{"is-transient":Object(Ne.isBlobURL)(s)});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(_o,Object(ye.a)({hrefs:{href:s,textLinkHref:u,attachmentPage:f}},{openInNewWindow:!!b,showDownloadButton:m,changeLinkDestinationOption:this.changeLinkDestinationOption,changeOpenInNewWindow:this.changeOpenInNewWindow,changeShowDownloadButton:this.changeShowDownloadButton})),Object(X.createElement)($.BlockControls,null,Object(X.createElement)($.MediaReplaceFlow,{mediaURL:s,accept:"*",onSelect:this.onSelectFile,onError:this.onUploadError})),Object(X.createElement)(ie.Animate,{type:Object(Ne.isBlobURL)(s)?"loading":null},(function(t){var n=t.className;return Object(X.createElement)("div",{className:te()(v,n)},Object(X.createElement)("div",{className:"wp-block-file__content-wrapper"},Object(X.createElement)("div",{className:"wp-block-file__textlink"},Object(X.createElement)($.RichText,{tagName:"div",value:l,placeholder:Object(Q.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:function(e){return a({fileName:e})}})),m&&Object(X.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},Object(X.createElement)($.RichText,{tagName:"div",className:"wp-block-file__button",value:d,withoutInteractiveFormatting:!0,placeholder:Object(Q.__)("Add text…"),onChange:function(e){return a({downloadButtonText:e})}}))),r&&Object(X.createElement)(ie.ClipboardButton,{isSecondary:!0,text:s,className:"wp-block-file__copy-url-button",onCopy:e.confirmCopyURL,onFinishCopy:e.resetCopyConfirmation,disabled:Object(Ne.isBlobURL)(s)},g?Object(Q.__)("Copied!"):Object(Q.__)("Copy URL")))})))}}]),t}(X.Component),Co=Object(le.compose)([Object(se.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}})),ie.withNotices])(ko);var wo={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(Ne.createBlobURL)(e);t.push(Object(J.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(J.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(J.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(J.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(se.select)("core").getMedia)(t);return!!n&&Object(ne.includes)(n.mime_type,"audio")},transform:function(e){return Object(J.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(se.select)("core").getMedia)(t);return!!n&&Object(ne.includes)(n.mime_type,"video")},transform:function(e){return Object(J.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(se.select)("core").getMedia)(t);return!!n&&Object(ne.includes)(n.mime_type,"image")},transform:function(e){return Object(J.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id})}}]},Eo={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]"}}},xo=Eo.name,So={title:Object(Q.__)("File"),description:Object(Q.__)("Add a link to a downloadable file."),icon:yo,keywords:[Object(Q.__)("document"),Object(Q.__)("pdf"),Object(Q.__)("download")],supports:{align:!0},transforms:wo,edit:Co,save:function(e){var t=e.attributes,n=t.href,r=t.fileName,o=t.textLinkHref,a=t.textLinkTarget,c=t.showDownloadButton,i=t.downloadButtonText;return n&&Object(X.createElement)("div",null,!$.RichText.isEmpty(r)&&Object(X.createElement)("a",{href:o,target:a,rel:!!a&&"noreferrer noopener"},Object(X.createElement)($.RichText.Content,{value:r})),c&&Object(X.createElement)("a",{href:n,className:"wp-block-file__button",download:!0},Object(X.createElement)($.RichText.Content,{value:i})))}},To=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).state={isPreview:!1,styles:[]},e.switchToHTML=e.switchToHTML.bind(Object(Se.a)(e)),e.switchToPreview=e.switchToPreview.bind(Object(Se.a)(e)),e}return Object(Te.a)(t,e),Object(we.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(K.a)(Object($.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.props,t=e.attributes,n=e.setAttributes,r=this.state,o=r.isPreview,a=r.styles;return Object(X.createElement)("div",{className:"wp-block-html"},Object(X.createElement)($.BlockControls,null,Object(X.createElement)(ie.ToolbarGroup,null,Object(X.createElement)(ie.Button,{className:"components-tab-button",isPressed:!o,onClick:this.switchToHTML},Object(X.createElement)("span",null,"HTML")),Object(X.createElement)(ie.Button,{className:"components-tab-button",isPressed:o,onClick:this.switchToPreview},Object(X.createElement)("span",null,Object(Q.__)("Preview"))))),Object(X.createElement)(ie.Disabled.Consumer,null,(function(e){return o||e?Object(X.createElement)(ie.SandBox,{html:t.content,styles:a}):Object(X.createElement)($.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(Q.__)("Write HTML…"),"aria-label":Object(Q.__)("HTML")})})))}}]),t}(X.Component),No=Object(se.withSelect)((function(e){return{styles:(0,e("core/block-editor").getSettings)().styles}}))(To),Bo=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.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"}));var Ao={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}}}}}}]},Ro={name:"core/html",category:"formatting",attributes:{content:{type:"string",source:"html"}}},Io=Ro.name,Mo={title:Object(Q.__)("Custom HTML"),description:Object(Q.__)("Add custom HTML code and preview it as you edit."),icon:Bo,keywords:[Object(Q.__)("embed")],example:{attributes:{content:"<marquee>"+Object(Q.__)("Welcome to the wonderful world of blocks…")+"</marquee>"}},supports:{customClassName:!1,className:!1,html:!1},transforms:Ao,edit:No,save:function(e){var t=e.attributes;return Object(X.createElement)(X.RawHTML,null,t.content)}},Po=Object(X.createElement)(ie.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ie.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(X.createElement)(ie.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(X.createElement)(ie.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),zo=["image","video"];function Ho(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}var Lo=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).onUploadError=e.onUploadError.bind(Object(Se.a)(e)),e}return Object(Te.a)(t,e),Object(we.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.mediaId,n=e.onSelectMedia;return Object(X.createElement)($.BlockControls,null,Object(X.createElement)(ie.ToolbarGroup,null,Object(X.createElement)($.MediaUpload,{onSelect:n,allowedTypes:zo,value:t,render:function(e){var t=e.open;return Object(X.createElement)(ie.Button,{className:"components-toolbar__control",label:Object(Q.__)("Edit media"),icon:"edit",onClick:t})}})))}},{key:"renderImage",value:function(){var e=this.props,t=e.mediaAlt,n=e.mediaUrl,r=e.className,o=e.imageFill,a=e.focalPoint,c=o?Ho(n,a):{};return Object(X.createElement)(X.Fragment,null,this.renderToolbarEditButton(),Object(X.createElement)("figure",{className:r,style:c},Object(X.createElement)("img",{src:n,alt:t})))}},{key:"renderVideo",value:function(){var e=this.props,t=e.mediaUrl,n=e.className;return Object(X.createElement)(X.Fragment,null,this.renderToolbarEditButton(),Object(X.createElement)("figure",{className:n},Object(X.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(X.createElement)($.MediaPlaceholder,{icon:Object(X.createElement)($.BlockIcon,{icon:Po}),labels:{title:Object(Q.__)("Media area")},className:n,onSelect:t,accept:"image/*,video/*",allowedTypes:zo,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,a=e.commitWidthChange,c=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(X.createElement)(ie.ResizableBox,{className:"editor-media-container__resizer",size:{width:o+"%"},minWidth:"10%",maxWidth:"100%",enable:l,onResizeStart:function(){i(!1)},onResize:function(e,t,n){c(parseInt(n.style.width))},onResizeStop:function(e,t,n){i(!0),a(parseInt(n.style.width))},axis:"x"},s)}return this.renderPlaceholder()}}]),t}(X.Component),Vo=Object(le.compose)([Object(se.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),ie.withNotices])(Lo),Fo={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}},Do=[{attributes:Object(Y.a)({},Fo,{verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}}),save:function(e){var t,n,r=e.attributes,o=r.backgroundColor,a=r.customBackgroundColor,c=r.isStackedOnMobile,i=r.mediaAlt,l=r.mediaPosition,s=r.mediaType,u=r.mediaUrl,b=r.mediaWidth,m=r.mediaId,d=r.verticalAlignment,h=r.imageFill,p=r.focalPoint,g={image:function(){return Object(X.createElement)("img",{src:u,alt:i,className:m&&"image"===s?"wp-image-".concat(m):null})},video:function(){return Object(X.createElement)("video",{controls:!0,src:u})}},f=Object($.getColorClassName)("background-color",o),v=te()((t={"has-media-on-the-right":"right"===l},Object(Z.a)(t,f,f),Object(Z.a)(t,"is-stacked-on-mobile",c),Object(Z.a)(t,"is-vertically-aligned-".concat(d),d),Object(Z.a)(t,"is-image-fill",h),t)),O=h?Ho(u,p):{};50!==b&&(n="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var j={backgroundColor:f?void 0:a,gridTemplateColumns:n};return Object(X.createElement)("div",{className:v,style:j},Object(X.createElement)("figure",{className:"wp-block-media-text__media",style:O},(g[s]||ne.noop)()),Object(X.createElement)("div",{className:"wp-block-media-text__content"},Object(X.createElement)($.InnerBlocks.Content,null)))}},{attributes:Fo,save:function(e){var t,n,r=e.attributes,o=r.backgroundColor,a=r.customBackgroundColor,c=r.isStackedOnMobile,i=r.mediaAlt,l=r.mediaPosition,s=r.mediaType,u=r.mediaUrl,b=r.mediaWidth,m={image:function(){return Object(X.createElement)("img",{src:u,alt:i})},video:function(){return Object(X.createElement)("video",{controls:!0,src:u})}},d=Object($.getColorClassName)("background-color",o),h=te()((t={"has-media-on-the-right":"right"===l},Object(Z.a)(t,d,d),Object(Z.a)(t,"is-stacked-on-mobile",c),t));50!==b&&(n="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var p={backgroundColor:d?void 0:a,gridTemplateColumns:n};return Object(X.createElement)("div",{className:h,style:p},Object(X.createElement)("figure",{className:"wp-block-media-text__media"},(m[s]||ne.noop)()),Object(X.createElement)("div",{className:"wp-block-media-text__content"},Object(X.createElement)($.InnerBlocks.Content,null)))}}],Uo=[["core/paragraph",{fontSize:"large",placeholder:Object(Q._x)("Content…","content placeholder")}]],Go=function(e){return Math.max(15,Math.min(e,85))},qo=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).onSelectMedia=e.onSelectMedia.bind(Object(Se.a)(e)),e.onWidthChange=e.onWidthChange.bind(Object(Se.a)(e)),e.commitWidthChange=e.commitWidthChange.bind(Object(Se.a)(e)),e.state={mediaWidth:null},e.onSetHref=e.onSetHref.bind(Object(Se.a)(e)),e}return Object(Te.a)(t,e),Object(we.a)(t,[{key:"onSelectMedia",value:function(e){var t,n,r=this.props.setAttributes,o=this.props.attributes,a=o.linkDestination,c=o.href;"image"===(t=e.media_type?"image"===e.media_type?"image":"video":e.type)&&(n=Object(ne.get)(e,["sizes","large","url"])||Object(ne.get)(e,["media_details","sizes","large","source_url"]));var i=c;"media"===a&&(i=e.url),"attachment"===a&&(i=e.link),r({mediaAlt:e.alt,mediaId:e.id,mediaType:t,mediaUrl:n||e.url,mediaLink:e.link||void 0,href:i,imageFill:void 0,focalPoint:void 0})}},{key:"onWidthChange",value:function(e){this.setState({mediaWidth:Go(e)})}},{key:"onSetHref",value:function(e){this.props.setAttributes(e)}},{key:"commitWidthChange",value:function(e){(0,this.props.setAttributes)({mediaWidth:Go(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,a=e.mediaUrl,c=e.mediaWidth,i=e.imageFill,l=e.focalPoint;return Object(X.createElement)(Vo,Object(ye.a)({className:"block-library-media-text__media-container",onSelectMedia:this.onSelectMedia,onWidthChange:this.onWidthChange,commitWidthChange:this.commitWidthChange},{mediaAlt:t,mediaId:n,mediaType:o,mediaUrl:a,mediaPosition:r,mediaWidth:c,imageFill:i,focalPoint:l}))}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=t.className,o=t.backgroundColor,a=t.isSelected,c=t.setAttributes,i=t.setBackgroundColor,l=t.image,s=n.isStackedOnMobile,u=n.mediaAlt,b=n.mediaPosition,m=n.mediaType,d=n.mediaWidth,h=n.verticalAlignment,p=n.mediaUrl,g=n.imageFill,f=n.focalPoint,v=n.rel,O=n.href,j=n.linkTarget,y=n.linkClass,_=n.linkDestination,k=this.state.mediaWidth,C=te()(r,(e={"has-media-on-the-right":"right"===b,"is-selected":a,"has-background":o.class||o.color},Object(Z.a)(e,o.class,o.class),Object(Z.a)(e,"is-stacked-on-mobile",s),Object(Z.a)(e,"is-vertically-aligned-".concat(h),h),Object(Z.a)(e,"is-image-fill",g),e)),w="".concat(k||d,"%"),E="right"===b?"1fr ".concat(w):"".concat(w," 1fr"),x={gridTemplateColumns:E,msGridColumns:E,backgroundColor:o.color},S=[{value:o.color,onChange:i,label:Object(Q.__)("Background Color")}],T=[{icon:"align-pull-left",title:Object(Q.__)("Show media on left"),isActive:"left"===b,onClick:function(){return c({mediaPosition:"left"})}},{icon:"align-pull-right",title:Object(Q.__)("Show media on right"),isActive:"right"===b,onClick:function(){return c({mediaPosition:"right"})}}],N=Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Media & Text Settings")},Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Stack on mobile"),checked:s,onChange:function(){return c({isStackedOnMobile:!s})}}),"image"===m&&Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Crop image to fill entire column"),checked:g,onChange:function(){return c({imageFill:!g})}}),g&&Object(X.createElement)(ie.FocalPointPicker,{label:Object(Q.__)("Focal Point Picker"),url:p,value:f,onChange:function(e){return c({focalPoint:e})}}),"image"===m&&Object(X.createElement)(ie.TextareaControl,{label:Object(Q.__)("Alt Text (Alternative Text)"),value:u,onChange:function(e){c({mediaAlt:e})},help:Object(X.createElement)(X.Fragment,null,Object(X.createElement)(ie.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(Q.__)("Describe the purpose of the image")),Object(Q.__)("Leave empty if the image is purely decorative."))}));return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.InspectorControls,null,N,Object(X.createElement)($.PanelColorSettings,{title:Object(Q.__)("Color Settings"),initialOpen:!1,colorSettings:S})),Object(X.createElement)($.BlockControls,null,Object(X.createElement)(ie.ToolbarGroup,{controls:T}),Object(X.createElement)($.BlockVerticalAlignmentToolbar,{onChange:function(e){c({verticalAlignment:e})},value:h}),"image"===m&&Object(X.createElement)(ie.ToolbarGroup,null,Object(X.createElement)($.__experimentalImageURLInputUI,{url:O||"",onChangeUrl:this.onSetHref,linkDestination:_,mediaType:m,mediaUrl:l&&l.source_url,mediaLink:l&&l.link,linkTarget:j,linkClass:y,rel:v}))),Object(X.createElement)("div",{className:C,style:x},this.renderMediaArea(),Object(X.createElement)($.InnerBlocks,{template:Uo,templateInsertUpdatesSelection:!1})))}}]),t}(X.Component),Wo=Object(le.compose)([Object($.withColors)("backgroundColor"),Object(se.withSelect)((function(e,t){var n=e("core").getMedia,r=t.attributes.mediaId,o=t.isSelected;return{image:r&&o?n(r):null}}))])(qo),Ko=Object(X.createElement)(ie.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ie.Path,{d:"M13 17h8v-2h-8v2zM3 19h8V5H3v14zM13 9h8V7h-8v2zm0 4h8v-2h-8v2z"})),Zo=50;var $o={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.alt,n=e.url,r=e.id;return Object(J.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(J.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(J.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(J.createBlock)("core/video",{id:t,src:n})}}]},Jo={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"}}},Qo=Jo.name,Yo={title:Object(Q.__)("Media & Text"),description:Object(Q.__)("Set media and words side-by-side for a richer layout."),icon:Ko,keywords:[Object(Q.__)("image"),Object(Q.__)("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(Q.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(Q.__)("— Kobayashi Issa (一茶)")}}]},transforms:$o,edit:Wo,save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.customBackgroundColor,a=n.isStackedOnMobile,c=n.mediaAlt,i=n.mediaPosition,l=n.mediaType,s=n.mediaUrl,u=n.mediaWidth,b=n.mediaId,m=n.verticalAlignment,d=n.imageFill,h=n.focalPoint,p=n.linkClass,g=n.href,f=n.linkTarget,v=n.rel,O=Object(ne.isEmpty)(v)?void 0:v,j=Object(X.createElement)("img",{src:s,alt:c,className:b&&"image"===l?"wp-image-".concat(b):null});g&&(j=Object(X.createElement)("a",{className:p,href:g,target:f,rel:O},j));var y,_={image:function(){return j},video:function(){return Object(X.createElement)("video",{controls:!0,src:s})}},k=Object($.getColorClassName)("background-color",r),C=te()((t={"has-media-on-the-right":"right"===i,"has-background":k||o},Object(Z.a)(t,k,k),Object(Z.a)(t,"is-stacked-on-mobile",a),Object(Z.a)(t,"is-vertically-aligned-".concat(m),m),Object(Z.a)(t,"is-image-fill",d),t)),w=d?Ho(s,h):{};u!==Zo&&(y="right"===i?"auto ".concat(u,"%"):"".concat(u,"% auto"));var E={backgroundColor:k?void 0:o,gridTemplateColumns:y};return Object(X.createElement)("div",{className:C,style:E},Object(X.createElement)("figure",{className:"wp-block-media-text__media",style:w},(_[l]||ne.noop)()),Object(X.createElement)("div",{className:"wp-block-media-text__content"},Object(X.createElement)($.InnerBlocks.Content,null)))},deprecated:Do};function Xo(e){var t=e.clientId,n=Object(se.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,a=Object(se.useDispatch)("core/block-editor").selectBlock;return Object(X.createElement)($.__experimentalBlockNavigationList,{blocks:[r],selectedBlockClientId:o,selectBlock:a,showNestedBlocks:!0,showAppender:!0})}var ea=Object(X.createElement)(ie.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},Object(X.createElement)(ie.Path,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"}));var ta=function(){return Object(X.createElement)(ie.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(X.createElement)(ie.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"}))},na=function(e){var t=e.color;return Object(X.createElement)("div",{className:"block-library-colors-selector__icon-container"},Object(X.createElement)("div",{className:"block-library-colors-selector__state-selection",style:Object(Y.a)({},t&&{color:t})},Object(X.createElement)(ta,null)))},ra=function(e){var t=e.value,n=e.onChange,r=void 0===n?ne.noop:n;return function(){return Object(X.createElement)(X.Fragment,null,Object(X.createElement)("div",{className:"color-palette-controller-container"},Object(X.createElement)($.ColorPaletteControl,{value:t,onChange:r,label:Object(Q.__)("Text Color")})))}},oa=function(e){return Object(X.createElement)(ie.Dropdown,{position:"bottom right",className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:(t=e,n=t.value,function(e){var t=e.onToggle,r=e.isOpen;return Object(X.createElement)(ie.ToolbarGroup,null,Object(X.createElement)(ie.Button,{className:"components-toolbar__control block-library-colors-selector__toggle",label:Object(Q.__)("Open Colors Selector"),onClick:t,onKeyDown:function(e){r||e.keyCode!==Wt.DOWN||(e.preventDefault(),e.stopPropagation(),t())},icon:Object(X.createElement)(na,{color:n})}))}),renderContent:ra(e)});var t,n},aa=Object(X.createElement)(ie.SVG,{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ie.Path,{d:"M11 16v-3h10v-2H11V8l-4 4 4 4zM5 4H3v16h2V4z"})),ca=Object(X.createElement)(ie.SVG,{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ie.Path,{d:"M5 8v3H1v2h4v3l4-4-4-4zm14 8v-3h4v-2h-4V8l-4 4 4 4zM13 4h-2v16h2V4z"})),ia=Object(X.createElement)(ie.SVG,{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ie.Path,{d:"M13 8v3H3v2h10v3l4-4-4-4zm8-4h-2v16h2V4z"}));var la=Object(le.compose)([Object($.withFontSizes)("fontSize"),Object(se.withSelect)((function(e,t){var n,r,o=t.clientId,a={parent:0,order:"asc",orderby:"id"},c=["core","getEntityRecords",["postType","page",a]];return{hasExistingNavItems:!!e("core/block-editor").getBlocks(o).length,pages:e("core").getEntityRecords("postType","page",a),isRequestingPages:(n=e("core/data")).isResolving.apply(n,c),hasResolvedPages:(r=e("core/data")).hasFinishedResolution.apply(r,c)}})),Object(se.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,a=e.hasExistingNavItems,c=e.hasResolvedPages,i=e.isRequestingPages,l=e.pages,s=e.setAttributes,u=e.setFontSize,b=e.updateNavItemBlocks,m=Object($.__experimentalUseColors)([{name:"textColor",property:"color"}]).TextColor,d=function(e){var t=Object(X.useState)(!1),n=Object(ce.a)(t,2),r=n[0],o=n[1];return{navigatorToolbarButton:Object(X.createElement)(ie.Button,{className:"components-toolbar__control",label:Object(Q.__)("Open block navigator"),onClick:function(){return o(!0)},icon:ea}),navigatorModal:r&&Object(X.createElement)(ie.Modal,{title:Object(Q.__)("Block Navigator"),closeLabel:Object(Q.__)("Close"),onRequestClose:function(){o(!1)}},Object(X.createElement)(Xo,{clientId:e}))}}(r),h=d.navigatorToolbarButton,p=d.navigatorModal,g=Object(X.useMemo)((function(){return l?l.map((function(e){var t=e.title,n=e.type,r=e.link,o=e.id;return Object(J.createBlock)("core/navigation-link",{type:n,id:o,url:r,label:Object(ne.escape)(t.rendered),title:Object(ne.escape)(t.raw),opensInNewTab:!1})})):null}),[l]);function f(e){return function(){var t=n.itemsJustification===e?void 0:e;s({itemsJustification:t})}}var v=c&&l&&l.length,O=te()("wp-block-navigation",(t={},Object(Z.a)(t,"items-justification-".concat(n.itemsJustification),n.itemsJustification),Object(Z.a)(t,o.class,o.class),t)),j={fontSize:o.size?o.size+"px":void 0};return a?Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)(ie.Toolbar,{icon:n.itemsJustification?_["justify".concat(Object(ne.upperFirst)(n.itemsJustification),"Icon")]:aa,label:Object(Q.__)("Change items justification"),isCollapsed:!0,controls:[{icon:aa,title:Object(Q.__)("Justify items left"),isActive:"left"===n.itemsJustification,onClick:f("left")},{icon:ca,title:Object(Q.__)("Justify items center"),isActive:"center"===n.itemsJustification,onClick:f("center")},{icon:ia,title:Object(Q.__)("Justify items right"),isActive:"right"===n.itemsJustification,onClick:f("right")}]}),Object(X.createElement)(ie.ToolbarGroup,null,h),Object(X.createElement)(oa,{value:m.color,onChange:m.setColor})),p,Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Navigation Structure")},Object(X.createElement)(Xo,{clientId:r})),Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Text Settings")},Object(X.createElement)($.FontSizePicker,{value:o.size,onChange:u}))),Object(X.createElement)(m,null,Object(X.createElement)("div",{className:O,style:j},!a&&i&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(ie.Spinner,null)," ",Object(Q.__)("Loading Navigation…")," "),Object(X.createElement)($.InnerBlocks,{allowedBlocks:["core/navigation-link"],templateInsertUpdatesSelection:!1,__experimentalMoverDirection:"horizontal"})))):Object(X.createElement)(X.Fragment,null,Object(X.createElement)(ie.Placeholder,{className:"wp-block-navigation-placeholder",icon:"menu",label:Object(Q.__)("Navigation"),instructions:Object(Q.__)("Create a Navigation from all existing pages, or create an empty one.")},Object(X.createElement)("div",{className:"wp-block-navigation-placeholder__buttons"},Object(X.createElement)(ie.Button,{isSecondary:!0,className:"wp-block-navigation-placeholder__button",onClick:function(){b(g)},disabled:!v},Object(Q.__)("Create from all top-level pages")),Object(X.createElement)(ie.Button,{isLink:!0,className:"wp-block-navigation-placeholder__button",onClick:function(){var e=Object(J.createBlock)("core/navigation-link");b([e])}},Object(Q.__)("Create empty")))))}));var sa="core/navigation",ua={title:Object(Q.__)("Navigation"),icon:"menu",description:Object(Q.__)("Add a navigation block to your site."),keywords:[Object(Q.__)("menu"),Object(Q.__)("navigation"),Object(Q.__)("links")],category:"layout",supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},styles:[{name:"light",label:Object(Q.__)("Light"),isDefault:!0},{name:"dark",label:Object(Q.__)("Dark")}],edit:la,save:function(){return Object(X.createElement)($.InnerBlocks.Content,null)}},ba=function(e){return function(t,n){e(Object(Z.a)({},t,n))}},ma=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.title,o=void 0===r?"":r,a=n.url,c=void 0===a?"":a;e({title:Object(ne.escape)(o),url:c}),t||e({label:Object(ne.escape)(o)})}};var da=Object(le.compose)([Object(se.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getClientIdsOfDescendants,o=n.hasSelectedInnerBlock,a=t.clientId;return{isParentOfSelectedBlock:o(a,!0),hasDescendants:!!r([a]).length}})),Object(se.withDispatch)((function(e,t,n){return{insertLinkBlock:function(){var r=t.clientId,o=e("core/block-editor").insertBlock,a=(0,n.select("core/block-editor").getClientIdsOfDescendants)([r]),c=a.length?a.length:0;o(Object(J.createBlock)("core/navigation-link"),c,r)}}}))])((function(e){var t=e.attributes,n=e.hasDescendants,r=e.isSelected,o=e.isParentOfSelectedBlock,a=e.setAttributes,c=e.insertLinkBlock,i=t.label,l=t.opensInNewTab,s=t.title,u=t.url,b=t.nofollow,m=t.description,d=s?{title:Object(ne.unescape)(s),url:u}:null,h=Object(X.useState)(!i&&r),p=Object(ce.a)(h,2),g=p[0],f=p[1],v=null;Object(X.useEffect)((function(){return r||f(!1),function(){v&&clearTimeout(v)}}),[r]);var O=function(){g||f(!g)},j=Object(Q.__)("Add link…");return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)(ie.ToolbarGroup,null,Object(X.createElement)(ie.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(Z.a)({},Wt.rawShortcut.primary("k"),O)}),Object(X.createElement)(ie.ToolbarButton,{name:"link",icon:"admin-links",title:Object(Q.__)("Link"),shortcut:Wt.displayShortcut.primary("k"),onClick:O}),Object(X.createElement)(ie.ToolbarButton,{name:"submenu",icon:Object(X.createElement)(ie.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},Object(X.createElement)(ie.Path,{d:"M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7.92 2 11.5z"}),Object(X.createElement)(ie.Path,{fill:"none",d:"M0 0h24v24H0z"})),title:Object(Q.__)("Add submenu"),onClick:c}))),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Link Settings")},Object(X.createElement)(ie.TextareaControl,{value:m||"",onChange:function(e){a({description:e})},label:Object(Q.__)("Description")})),Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("SEO Settings")},Object(X.createElement)(ie.TextControl,{value:s||"",onChange:function(e){a({title:e})},label:Object(Q.__)("Title Attribute"),help:Object(Q.__)("Provide more context about where the link goes.")}),Object(X.createElement)(ie.ToggleControl,{checked:b,onChange:function(e){a({nofollow:e})},label:Object(Q.__)("Add nofollow to link"),help:Object(X.createElement)(X.Fragment,null,Object(Q.__)("Don't let search engines follow this link."),Object(X.createElement)(ie.ExternalLink,{className:"wp-block-navigation-link__nofollow-external-link",href:Object(Q.__)("https://codex.wordpress.org/Nofollow")},Object(Q.__)("What's this?")))}))),Object(X.createElement)("div",{className:te()("wp-block-navigation-link",{"is-editing":r||o,"is-selected":r,"has-link":!!u})},Object(X.createElement)("div",null,Object(X.createElement)($.RichText,{className:"wp-block-navigation-link__content",value:i,onChange:function(e){return a({label:e})},placeholder:j,withoutInteractiveFormatting:!0}),g&&Object(X.createElement)($.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",onKeyDown:function(e){var t=e.keyCode;[Wt.LEFT,Wt.DOWN,Wt.RIGHT,Wt.UP,Wt.BACKSPACE,Wt.ENTER].indexOf(t)>-1&&e.stopPropagation()},onKeyPress:function(e){return e.stopPropagation()},currentLink:d,onLinkChange:ma(a,i),onClose:function(){v=setTimeout((function(){return f(!1)}),100)},currentSettings:[{id:"opensInNewTab",title:Object(Q.__)("Open in new tab"),checked:l}],onSettingsChange:ba(a)})),Object(X.createElement)($.InnerBlocks,{allowedBlocks:["core/navigation-link"],renderAppender:!!n&&$.InnerBlocks.ButtonBlockAppender})))}));var ha={name:"core/navigation-link",category:"layout",attributes:{label:{type:"string"},nofollow:{type:"boolean",default:!1},title:{type:"string"},type:{type:"string"},description:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"}}},pa=ha.name,ga={title:Object(Q.__)("Navigation Link"),parent:["core/navigation"],icon:Object(X.createElement)(ie.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},Object(X.createElement)(ie.Path,{d:"M12 7.27l4.28 10.43-3.47-1.53-.81-.36-.81.36-3.47 1.53L12 7.27M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71L12 2z"})),description:Object(Q.__)("Add a page, link, or another item to your navigation."),supports:{reusable:!1},__experimentalDisplayName:"label",edit:da,save:function(){return Object(X.createElement)($.InnerBlocks.Content,null)}},fa=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).setCommentsToShow=e.setCommentsToShow.bind(Object(Se.a)(e)),e.toggleDisplayAvatar=e.createToggleAttribute("displayAvatar"),e.toggleDisplayDate=e.createToggleAttribute("displayDate"),e.toggleDisplayExcerpt=e.createToggleAttribute("displayExcerpt"),e}return Object(Te.a)(t,e),Object(we.a)(t,[{key:"createToggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(Z.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(X.createElement)(X.Fragment,null,Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Latest Comments Settings")},Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Display Avatar"),checked:n,onChange:this.toggleDisplayAvatar}),Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Display Date"),checked:r,onChange:this.toggleDisplayDate}),Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Display Excerpt"),checked:o,onChange:this.toggleDisplayExcerpt}),Object(X.createElement)(ie.RangeControl,{label:Object(Q.__)("Number of Comments"),value:t,onChange:this.setCommentsToShow,min:1,max:100,required:!0}))),Object(X.createElement)(ie.Disabled,null,Object(X.createElement)(sn.a,{block:"core/latest-comments",attributes:this.props.attributes})))}}]),t}(X.Component),va=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(X.createElement)(ie.G,null,Object(X.createElement)(ie.Path,{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM20 4v13.17L18.83 16H4V4h16zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z"}))),Oa="core/latest-comments",ja={title:Object(Q.__)("Latest Comments"),description:Object(Q.__)("Display a list of your most recent comments."),icon:va,category:"widgets",keywords:[Object(Q.__)("recent comments")],supports:{align:!0,html:!1},edit:fa},ya=n(38),_a=n.n(ya),ka=n(55),Ca={per_page:-1},wa=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).state={categoriesList:[]},e}return Object(Te.a)(t,e),Object(we.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.isStillMounted=!0,this.fetchRequest=_a()({path:Object(Be.addQueryArgs)("/wp/v2/categories",Ca)}).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.latestPosts,o=this.state.categoriesList,a=t.displayPostContentRadio,c=t.displayPostContent,i=t.displayPostDate,l=t.postLayout,s=t.columns,u=t.order,b=t.orderBy,m=t.categories,d=t.postsToShow,h=t.excerptLength,p=Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Post Content Settings")},Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Post Content"),checked:c,onChange:function(e){return n({displayPostContent:e})}}),c&&Object(X.createElement)(ie.RadioControl,{label:Object(Q.__)("Show:"),selected:a,options:[{label:Object(Q.__)("Excerpt"),value:"excerpt"},{label:Object(Q.__)("Full Post"),value:"full_post"}],onChange:function(e){return n({displayPostContentRadio:e})}}),c&&"excerpt"===a&&Object(X.createElement)(ie.RangeControl,{label:Object(Q.__)("Max number of words in excerpt"),value:h,onChange:function(e){return n({excerptLength:e})},min:10,max:100})),Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Post Meta Settings")},Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Display post date"),checked:i,onChange:function(e){return n({displayPostDate:e})}})),Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Sorting and Filtering")},Object(X.createElement)(ie.QueryControls,Object(ye.a)({order:u,orderBy:b},{numberOfItems:d,categoriesList:o,selectedCategoryId:m,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"===l&&Object(X.createElement)(ie.RangeControl,{label:Object(Q.__)("Columns"),value:s,onChange:function(e){return n({columns:e})},min:2,max:g?Math.min(6,r.length):6,required:!0}))),g=Array.isArray(r)&&r.length;if(!g)return Object(X.createElement)(X.Fragment,null,p,Object(X.createElement)(ie.Placeholder,{icon:"admin-post",label:Object(Q.__)("Latest Posts")},Array.isArray(r)?Object(Q.__)("No posts found."):Object(X.createElement)(ie.Spinner,null)));var f=r.length>d?r.slice(0,d):r,v=[{icon:"list-view",title:Object(Q.__)("List view"),onClick:function(){return n({postLayout:"list"})},isActive:"list"===l},{icon:"grid-view",title:Object(Q.__)("Grid view"),onClick:function(){return n({postLayout:"grid"})},isActive:"grid"===l}],O=Object(ka.__experimentalGetSettings)().formats.date;return Object(X.createElement)(X.Fragment,null,p,Object(X.createElement)($.BlockControls,null,Object(X.createElement)(ie.ToolbarGroup,{controls:v})),Object(X.createElement)("ul",{className:te()(this.props.className,Object(Z.a)({"wp-block-latest-posts__list":!0,"is-grid":"grid"===l,"has-dates":i},"columns-".concat(s),"grid"===l))},f.map((function(e,t){var n=e.title.rendered.trim(),r=e.excerpt.rendered;""===e.excerpt.raw&&(r=e.content.raw);var o=document.createElement("div");return o.innerHTML=r,r=o.textContent||o.innerText||"",Object(X.createElement)("li",{key:t},Object(X.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},n?Object(X.createElement)(X.RawHTML,null,n):Object(Q.__)("(no title)")),i&&e.date_gmt&&Object(X.createElement)("time",{dateTime:Object(ka.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(ka.dateI18n)(O,e.date_gmt)),c&&"excerpt"===a&&Object(X.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},Object(X.createElement)(X.RawHTML,{key:"html"},h<r.trim().split(" ").length?r.trim().split(" ",h).join(" ")+" ... <a href="+e.link+'target="_blank" rel="noopener noreferrer">'+Object(Q.__)("Read more")+"</a>":r.trim().split(" ",h).join(" "))),c&&"full_post"===a&&Object(X.createElement)("div",{className:"wp-block-latest-posts__post-full-content"},Object(X.createElement)(X.RawHTML,{key:"html"},e.content.raw.trim())))}))))}}]),t}(X.Component),Ea=Object(se.withSelect)((function(e,t){var n=t.attributes,r=n.postsToShow,o=n.order,a=n.orderBy,c=n.categories;return{latestPosts:(0,e("core").getEntityRecords)("postType","post",Object(ne.pickBy)({categories:c,order:o,orderby:a,per_page:r},(function(e){return!Object(ne.isUndefined)(e)})))}}))(wa),xa=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(X.createElement)(ie.Rect,{x:"11",y:"7",width:"6",height:"2"}),Object(X.createElement)(ie.Rect,{x:"11",y:"11",width:"6",height:"2"}),Object(X.createElement)(ie.Rect,{x:"11",y:"15",width:"6",height:"2"}),Object(X.createElement)(ie.Rect,{x:"7",y:"7",width:"2",height:"2"}),Object(X.createElement)(ie.Rect,{x:"7",y:"11",width:"2",height:"2"}),Object(X.createElement)(ie.Rect,{x:"7",y:"15",width:"2",height:"2"}),Object(X.createElement)(ie.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"})),Sa="core/latest-posts",Ta={title:Object(Q.__)("Latest Posts"),description:Object(Q.__)("Display a list of your most recent posts."),icon:xa,category:"widgets",keywords:[Object(Q.__)("recent posts")],supports:{align:!0,html:!1},edit:Ea},Na=function(e){var t=e.setAttributes,n=e.reversed,r=e.start;return Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Ordered List Settings")},Object(X.createElement)(ie.TextControl,{label:Object(Q.__)("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(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Reverse List Numbering"),checked:n||!1,onChange:function(e){t({reversed:e||void 0})}})))};var Ba=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.G,null,Object(X.createElement)(ie.Path,{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));function Aa(e){var t=e.phrasingContentSchema,n=Object(Y.a)({},t,{ul:{},ol:{attributes:["type","start","reversed"]}});return["ul","ol"].forEach((function(e){n[e].children={li:{children:n}}})),n}var Ra={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(J.createBlock)("core/list",{values:Object(It.toHTMLString)({value:Object(It.join)(e.map((function(t){var n=t.content,r=Object(It.create)({html:n});return e.length>1?r:Object(It.replace)(r,/\n/g,It.__UNSTABLE_LINE_SEPARATOR)})),It.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"})})}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.value;return Object(J.createBlock)("core/list",{values:Object(It.toHTMLString)({value:Object(It.create)({html:t,multilineTag:"p"}),multilineTag:"li"})})}},{type:"raw",selector:"ol,ul",schema:function(e){return{ol:Aa(e).ol,ul:Aa(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(J.createBlock)("core/list",Object(Y.a)({},Object(J.getBlockAttributes)("core/list",e.outerHTML),t))}}].concat(Object(K.a)(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(J.createBlock)("core/list",{values:"<li>".concat(e,"</li>")})}}}))),Object(K.a)(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(J.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(It.split)(Object(It.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),It.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(J.createBlock)("core/paragraph",{content:Object(It.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values;return Object(J.createBlock)("core/quote",{value:Object(It.toHTMLString)({value:Object(It.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"})})}}]},Ia={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"}}},Ma=Ia.name,Pa={title:Object(Q.__)("List"),description:Object(Q.__)("Create a bulleted or numbered list."),icon:Ba,keywords:[Object(Q.__)("bullet list"),Object(Q.__)("ordered list"),Object(Q.__)("numbered list")],supports:{className:!1,__unstablePasteTextInline:!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:Ra,merge:function(e,t){var n=t.values;return n&&"<li></li>"!==n?Object(Y.a)({},e,{values:e.values+n}):e},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=e.onReplace,a=e.className,c=e.isSelected,i=t.ordered,l=t.values,s=t.type,u=t.reversed,b=t.start,m=i?"ol":"ul";return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.RichText,{identifier:"values",multiline:"li",tagName:m,onChange:function(e){return n({values:e})},value:l,className:a,placeholder:Object(Q.__)("Write list…"),onMerge:r,onSplit:function(e){return Object(J.createBlock)(Ma,Object(Y.a)({},t,{values:e}))},__unstableOnSplitMiddle:function(){return Object(J.createBlock)("core/paragraph")},onReplace:o,onRemove:function(){return o([])},start:b,reversed:u,type:s},(function(e){var t=e.value,r=e.onChange;return Object(X.createElement)(X.Fragment,null,c&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.RichTextShortcut,{type:"primary",character:"[",onUse:function(){r(Object(It.__unstableOutdentListItems)(t))}}),Object(X.createElement)($.RichTextShortcut,{type:"primary",character:"]",onUse:function(){r(Object(It.__unstableIndentListItems)(t,{type:m}))}}),Object(X.createElement)($.RichTextShortcut,{type:"primary",character:"m",onUse:function(){r(Object(It.__unstableIndentListItems)(t,{type:m}))}}),Object(X.createElement)($.RichTextShortcut,{type:"primaryShift",character:"m",onUse:function(){r(Object(It.__unstableOutdentListItems)(t))}})),Object(X.createElement)($.BlockControls,null,Object(X.createElement)(ie.ToolbarGroup,{controls:[{icon:"editor-ul",title:Object(Q.__)("Convert to unordered list"),isActive:Object(It.__unstableIsActiveListType)(t,"ul",m),onClick:function(){r(Object(It.__unstableChangeListType)(t,{type:"ul"})),Object(It.__unstableIsListRootSelected)(t)&&n({ordered:!1})}},{icon:"editor-ol",title:Object(Q.__)("Convert to ordered list"),isActive:Object(It.__unstableIsActiveListType)(t,"ol",m),onClick:function(){r(Object(It.__unstableChangeListType)(t,{type:"ol"})),Object(It.__unstableIsListRootSelected)(t)&&n({ordered:!0})}},{icon:"editor-outdent",title:Object(Q.__)("Outdent list item"),shortcut:Object(Q._x)("Backspace","keyboard key"),isDisabled:!Object(It.__unstableCanOutdentListItems)(t),onClick:function(){r(Object(It.__unstableOutdentListItems)(t))}},{icon:"editor-indent",title:Object(Q.__)("Indent list item"),shortcut:Object(Q._x)("Space","keyboard key"),isDisabled:!Object(It.__unstableCanIndentListItems)(t),onClick:function(){r(Object(It.__unstableIndentListItems)(t,{type:m}))}}]})))})),i&&Object(X.createElement)(Na,{setAttributes:n,ordered:i,reversed:u,start:b}))},save:function(e){var t=e.attributes,n=t.ordered,r=t.values,o=t.type,a=t.reversed,c=t.start,i=n?"ol":"ul";return Object(X.createElement)($.RichText.Content,{tagName:i,value:r,type:o,reversed:a,start:c,multiline:"li"})}};var za=Object(se.withDispatch)((function(e,t){var n=t.clientId,r=t.attributes,o=e("core/block-editor").replaceBlock;return{convertToHTML:function(){o(n,Object(J.createBlock)("core/html",{content:r.originalUndelimitedContent}))}}}))((function(e){var t,n=e.attributes,r=e.convertToHTML,o=n.originalName,a=n.originalUndelimitedContent,c=!!a,i=Object(J.getBlockType)("core/html"),l=[];return c&&i?(t=Object(Q.sprintf)(Object(Q.__)('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(X.createElement)(ie.Button,{key:"convert",onClick:r,isLarge:!0,isPrimary:!0},Object(Q.__)("Keep as HTML")))):t=Object(Q.sprintf)(Object(Q.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),o),Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.Warning,{actions:l},t),Object(X.createElement)(X.RawHTML,null,a))}));var Ha={name:"core/missing",category:"common",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}}},La=Ha.name,Va={name:La,title:Object(Q.__)("Unrecognized Block"),description:Object(Q.__)("Your site doesn’t include support for this block."),supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1},edit:za,save:function(e){var t=e.attributes;return Object(X.createElement)(X.RawHTML,null,t.originalContent)}},Fa=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).onChangeInput=e.onChangeInput.bind(Object(Se.a)(e)),e.onKeyDown=e.onKeyDown.bind(Object(Se.a)(e)),e.state={defaultText:Object(Q.__)("Read more")},e}return Object(Te.a)(t,e),Object(we.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===Wt.ENTER&&n([Object(J.createBlock)(Object(J.getDefaultBlockName)())])}},{key:"getHideExcerptHelp",value:function(e){return e?Object(Q.__)("The excerpt is hidden."):Object(Q.__)("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,a=void 0!==t?t:o,c=a.length+1;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,null,Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:function(){return r({noTeaser:!n})},help:this.getHideExcerptHelp}))),Object(X.createElement)("div",{className:"wp-block-more"},Object(X.createElement)("input",{type:"text",value:a,size:c,onChange:this.onChangeInput,onKeyDown:this.onKeyDown})))}}]),t}(X.Component),Da=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(X.createElement)(ie.G,null,Object(X.createElement)(ie.Path,{d:"M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"})));var Ua={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(J.createBlock)("core/more",o)}}]},Ga={name:"core/more",category:"layout",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}}},qa=Ga.name,Wa={title:Object(Q._x)("More","block name"),description:Object(Q.__)("Content before this block will be shown in the excerpt on your archives page."),icon:Da,supports:{customClassName:!1,className:!1,html:!1,multiple:!1},example:{},transforms:Ua,edit:Fa,save:function(e){var t=e.attributes,n=t.customText,r=t.noTeaser,o=n?"\x3c!--more ".concat(n,"--\x3e"):"\x3c!--more--\x3e",a=r?"\x3c!--noteaser--\x3e":"";return Object(X.createElement)(X.RawHTML,null,Object(ne.compact)([o,a]).join("\n"))}};var Ka=Object(X.createElement)(ie.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"0 0 24 24"},Object(X.createElement)(ie.Path,{d:"M0 0h24v24H0z",fill:"none"}),Object(X.createElement)(ie.Path,{d:"M9 11h6v2H9zM2 11h5v2H2zM17 11h5v2h-5zM6 4h7v5h7V8l-6-6H6a2 2 0 0 0-2 2v5h2zM18 20H6v-5H4v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5h-2z"}));var Za={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/nextpage"===e.dataset.block},transform:function(){return Object(J.createBlock)("core/nextpage",{})}}]},$a={name:"core/nextpage",category:"layout"},Ja=$a.name,Qa={title:Object(Q.__)("Page Break"),parent:["core/post-content"],description:Object(Q.__)("Separate your content into a multi-page experience."),icon:Ka,keywords:[Object(Q.__)("next page"),Object(Q.__)("pagination")],supports:{customClassName:!1,className:!1,html:!1},example:{},transforms:Za,edit:function(){return Object(X.createElement)("div",{className:"wp-block-nextpage"},Object(X.createElement)("span",null,Object(Q.__)("Page break")))},save:function(){return Object(X.createElement)(X.RawHTML,null,"\x3c!--nextpage--\x3e")}};var Ya=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(X.createElement)(ie.Path,{d:"M20,4H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V6C22,4.9,21.1,4,20,4z M20,18H4V6h16V18z"}),Object(X.createElement)(ie.Rect,{x:"6",y:"10",width:"2",height:"2"}),Object(X.createElement)(ie.Rect,{x:"6",y:"14",width:"8",height:"2"}),Object(X.createElement)(ie.Rect,{x:"16",y:"14",width:"2",height:"2"}),Object(X.createElement)(ie.Rect,{x:"10",y:"10",width:"8",height:"2"}));var Xa={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:function(e){var t=e.content;return Object(J.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(J.createBlock)("core/paragraph",e)}}]},ec={name:"core/preformatted",category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0}}},tc=ec.name,nc={title:Object(Q.__)("Preformatted"),description:Object(Q.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:Ya,example:{attributes:{content:Object(Q.__)("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:Xa,edit:function(e){var t=e.attributes,n=e.mergeBlocks,r=e.setAttributes,o=e.className,a=e.style,c=t.content;return Object(X.createElement)($.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:c,onChange:function(e){r({content:e})},placeholder:Object(Q.__)("Write preformatted text…"),className:o,style:a,onMerge:n})},save:function(e){var t=e.attributes.content;return Object(X.createElement)($.RichText.Content,{tagName:"pre",value:t})},merge:function(e,t){return{content:e.content+t.content}}},rc="is-style-".concat("solid-color"),oc={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 ac(e){if(e){var t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}}var cc=[{attributes:Object(Y.a)({},oc,{figureStyle:{source:"attribute",selector:"figure",attribute:"style"}}),save:function(e){var t,n,r=e.attributes,o=r.mainColor,a=r.customMainColor,c=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className,b=r.figureStyle;if(Object(ne.includes)(u,rc)){var m=Object($.getColorClassName)("background-color",o);t=te()(Object(Z.a)({"has-background":m||a},m,m)),n={backgroundColor:m?void 0:a}}else if(a)n={borderColor:a};else if(o){n={borderColor:ac(b)}}var d=Object($.getColorClassName)("color",c),h=(c||i)&&te()("has-text-color",Object(Z.a)({},d,d)),p=d?void 0:{color:i};return Object(X.createElement)("figure",{className:t,style:n},Object(X.createElement)("blockquote",{className:h,style:p},Object(X.createElement)($.RichText.Content,{value:l,multiline:!0}),!$.RichText.isEmpty(s)&&Object(X.createElement)($.RichText.Content,{tagName:"cite",value:s})))},migrate:function(e){var t=e.className,n=e.figureStyle,r=e.mainColor,o=Object(Rt.a)(e,["className","figureStyle","mainColor"]);if(!Object(ne.includes)(t,rc)&&r&&n){var a=ac(n);if(a)return Object(Y.a)({},o,{className:t,customMainColor:a})}return Object(Y.a)({className:t,mainColor:r},o)}},{attributes:oc,save:function(e){var t,n,r=e.attributes,o=r.mainColor,a=r.customMainColor,c=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className;if(Object(ne.includes)(u,rc))(t=Object($.getColorClassName)("background-color",o))||(n={backgroundColor:a});else if(a)n={borderColor:a};else if(o){var b=Object(ne.get)(Object(se.select)("core/block-editor").getSettings(),["colors"],[]);n={borderColor:Object($.getColorObjectByAttributeValues)(b,o).color}}var m=Object($.getColorClassName)("color",c),d=c||i?te()("has-text-color",Object(Z.a)({},m,m)):void 0,h=m?void 0:{color:i};return Object(X.createElement)("figure",{className:t,style:n},Object(X.createElement)("blockquote",{className:d,style:h},Object(X.createElement)($.RichText.Content,{value:l,multiline:!0}),!$.RichText.isEmpty(s)&&Object(X.createElement)($.RichText.Content,{tagName:"cite",value:s})))}},{attributes:Object(Y.a)({},oc),save:function(e){var t=e.attributes,n=t.value,r=t.citation;return Object(X.createElement)("blockquote",null,Object(X.createElement)($.RichText.Content,{value:n,multiline:!0}),!$.RichText.isEmpty(r)&&Object(X.createElement)($.RichText.Content,{tagName:"cite",value:r}))}},{attributes:Object(Y.a)({},oc,{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(X.createElement)("blockquote",{className:"align".concat(o)},Object(X.createElement)($.RichText.Content,{value:n,multiline:!0}),!$.RichText.isEmpty(r)&&Object(X.createElement)($.RichText.Content,{tagName:"footer",value:r}))}}],ic=function(e){function t(e){var n;return Object(Ce.a)(this,t),(n=Object(Ee.a)(this,Object(xe.a)(t).call(this,e))).wasTextColorAutomaticallyComputed=!1,n.pullQuoteMainColorSetter=n.pullQuoteMainColorSetter.bind(Object(Se.a)(n)),n.pullQuoteTextColorSetter=n.pullQuoteTextColorSetter.bind(Object(Se.a)(n)),n}return Object(Te.a)(t,e),Object(we.a)(t,[{key:"pullQuoteMainColorSetter",value:function(e){var t=this.props,n=t.colorUtils,r=t.textColor,o=t.setAttributes,a=t.setTextColor,c=t.setMainColor,i=t.className,l=Object(ne.includes)(i,rc),s=!r.color||this.wasTextColorAutomaticallyComputed,u=l&&s&&e;l?c(e):o({customMainColor:e}),u&&(this.wasTextColorAutomaticallyComputed=!0,a(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,a=t.setAttributes;n.mainColor&&!Object(ne.includes)(r,rc)&&Object(ne.includes)(e.className,rc)&&a({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,a=e.isSelected,c=e.className,i=t.value,l=t.citation,s=Object(ne.includes)(c,rc),u=s?{backgroundColor:n.color}:{borderColor:n.color},b=te()(c,Object(Z.a)({"has-background":s&&n.color},n.class,s&&n.class)),m={color:r.color},d=r.color&&te()("has-text-color",Object(Z.a)({},r.class,r.class));return Object(X.createElement)(X.Fragment,null,Object(X.createElement)("figure",{style:u,className:b},Object(X.createElement)("blockquote",{style:m,className:d},Object(X.createElement)($.RichText,{multiline:!0,value:i,onChange:function(e){return o({value:e})},placeholder:Object(Q.__)("Write quote…")}),(!$.RichText.isEmpty(l)||a)&&Object(X.createElement)($.RichText,{value:l,placeholder:Object(Q.__)("Write citation…"),onChange:function(e){return o({citation:e})},className:"wp-block-pullquote__citation"}))),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)($.PanelColorSettings,{title:Object(Q.__)("Color Settings"),colorSettings:[{value:n.color,onChange:this.pullQuoteMainColorSetter,label:Object(Q.__)("Main Color")},{value:r.color,onChange:this.pullQuoteTextColorSetter,label:Object(Q.__)("Text Color")}]},s&&Object(X.createElement)($.ContrastChecker,Object(ye.a)({textColor:r.color,backgroundColor:n.color},{isLargeText:!1})))))}}]),t}(X.Component),lc=Object($.withColors)({mainColor:"background-color",textColor:"color"})(ic),sc=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(X.createElement)(ie.Polygon,{points:"21 18 2 18 2 20 21 20"}),Object(X.createElement)(ie.Path,{d:"m19 10v4h-15v-4h15m1-2h-17c-0.55 0-1 0.45-1 1v6c0 0.55 0.45 1 1 1h17c0.55 0 1-0.45 1-1v-6c0-0.55-0.45-1-1-1z"}),Object(X.createElement)(ie.Polygon,{points:"21 4 2 4 2 6 21 6"}));var uc={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"}}},bc=uc.name,mc={title:Object(Q.__)("Pullquote"),description:Object(Q.__)("Give special visual emphasis to a quote from your text."),icon:sc,example:{attributes:{value:"<p>"+Object(Q.__)("One of the hardest things to do in technology is disrupt yourself.")+"</p>",citation:Object(Q.__)("Matt Mullenweg")}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(Q.__)("Solid Color")}],supports:{align:["left","right","wide","full"]},edit:lc,save:function(e){var t,n,r=e.attributes,o=r.mainColor,a=r.customMainColor,c=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className;if(Object(ne.includes)(u,rc)){var b=Object($.getColorClassName)("background-color",o);t=te()(Object(Z.a)({"has-background":b||a},b,b)),n={backgroundColor:b?void 0:a}}else a&&(n={borderColor:a});var m=Object($.getColorClassName)("color",c),d=(c||i)&&te()("has-text-color",Object(Z.a)({},m,m)),h=m?void 0:{color:i};return Object(X.createElement)("figure",{className:t,style:n},Object(X.createElement)("blockquote",{className:d,style:h},Object(X.createElement)($.RichText.Content,{value:l,multiline:!0}),!$.RichText.isEmpty(s)&&Object(X.createElement)($.RichText.Content,{tagName:"cite",value:s})))},deprecated:cc},dc=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).titleField=Object(X.createRef)(),e.editButton=Object(X.createRef)(),e.handleFormSubmit=e.handleFormSubmit.bind(Object(Se.a)(e)),e.handleTitleChange=e.handleTitleChange.bind(Object(Se.a)(e)),e.handleTitleKeyDown=e.handleTitleKeyDown.bind(Object(Se.a)(e)),e}return Object(Te.a)(t,e),Object(we.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===Wt.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,a=e.onEdit,c=e.instanceId;return Object(X.createElement)(X.Fragment,null,!t&&!r&&Object(X.createElement)("div",{className:"reusable-block-edit-panel"},Object(X.createElement)("b",{className:"reusable-block-edit-panel__info"},n),Object(X.createElement)(ie.Button,{ref:this.editButton,isSecondary:!0,className:"reusable-block-edit-panel__button",disabled:o,onClick:a},Object(Q.__)("Edit"))),(t||r)&&Object(X.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:this.handleFormSubmit},Object(X.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(c),className:"reusable-block-edit-panel__label"},Object(Q.__)("Name:")),Object(X.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(c)}),Object(X.createElement)(ie.Button,{type:"submit",isSecondary:!0,isBusy:r,disabled:!n||r,className:"reusable-block-edit-panel__button"},Object(Q.__)("Save"))))}}]),t}(X.Component),hc=Object(le.withInstanceId)(dc),pc=function(e){function t(e){var n,r=e.reusableBlock;return Object(Ce.a)(this,t),(n=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).startEditing=n.startEditing.bind(Object(Se.a)(n)),n.stopEditing=n.stopEditing.bind(Object(Se.a)(n)),n.setBlocks=n.setBlocks.bind(Object(Se.a)(n)),n.setTitle=n.setTitle.bind(Object(Se.a)(n)),n.save=n.save.bind(Object(Se.a)(n)),n.state=r?{isEditing:r.isTemporary,title:r.title,blocks:Object(J.parse)(r.content)}:{isEditing:!1,title:null,blocks:[]},n}return Object(Te.a)(t,e),Object(we.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(J.parse)(this.props.reusableBlock.content)})}},{key:"startEditing",value:function(){var e=this.props.reusableBlock;this.setState({isEditing:!0,title:e.title,blocks:Object(J.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(J.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,a=e.canUpdateBlock,c=e.settings,i=this.state,l=i.isEditing,s=i.title,u=i.blocks;if(!n&&r)return Object(X.createElement)(ie.Placeholder,null,Object(X.createElement)(ie.Spinner,null));if(!n)return Object(X.createElement)(ie.Placeholder,null,Object(Q.__)("Block has been deleted or is unavailable."));var b=Object(X.createElement)($.BlockEditorProvider,{settings:c,value:u,onChange:this.setBlocks,onInput:this.setBlocks},Object(X.createElement)($.WritingFlow,null,Object(X.createElement)($.BlockList,null)));return l||(b=Object(X.createElement)(ie.Disabled,null,b)),Object(X.createElement)("div",{className:"block-library-block__reusable-block-container"},(t||l)&&Object(X.createElement)(hc,{isEditing:l,title:null!==s?s:n.title,isSaving:o&&!n.isTemporary,isEditDisabled:!a,onEdit:this.startEditing,onChangeTitle:this.setTitle,onSave:this.save,onCancel:this.stopEditing}),b)}}]),t}(X.Component),gc=Object(le.compose)([Object(se.withSelect)((function(e,t){var n=e("core/editor"),r=n.__experimentalGetReusableBlock,o=n.__experimentalIsFetchingReusableBlock,a=n.__experimentalIsSavingReusableBlock,c=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:a(u),blocks:b?l(b.id):null,canUpdateBlock:!!b&&!b.isTemporary&&!!c("update","blocks",u),settings:s()}})),Object(se.withDispatch)((function(e,t){var n=e("core/editor"),r=n.__experimentalFetchReusableBlocks,o=n.__experimentalUpdateReusableBlock,a=n.__experimentalSaveReusableBlock,c=t.attributes.ref;return{fetchReusableBlock:Object(ne.partial)(r,c),onChange:Object(ne.partial)(o,c),onSave:Object(ne.partial)(a,c)}}))])(pc),fc="core/block",vc={title:Object(Q.__)("Reusable Block"),category:"reusable",description:Object(Q.__)("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:gc},Oc=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.feedURL},e.toggleAttribute=e.toggleAttribute.bind(Object(Se.a)(e)),e.onSubmitURL=e.onSubmitURL.bind(Object(Se.a)(e)),e}return Object(Te.a)(t,e),Object(we.a)(t,[{key:"toggleAttribute",value:function(e){var t=this;return function(){var n=t.props.attributes[e];(0,t.props.setAttributes)(Object(Z.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,a=t.displayExcerpt,c=t.displayDate,i=t.excerptLength,l=t.feedURL,s=t.itemsToShow,u=this.props.setAttributes;if(this.state.editing)return Object(X.createElement)(ie.Placeholder,{icon:"rss",label:"RSS"},Object(X.createElement)("form",{onSubmit:this.onSubmitURL},Object(X.createElement)(ie.TextControl,{placeholder:Object(Q.__)("Enter URL here…"),value:l,onChange:function(e){return u({feedURL:e})},className:"components-placeholder__input"}),Object(X.createElement)(ie.Button,{isSecondary:!0,type:"submit"},Object(Q.__)("Use URL"))));var b=[{icon:"edit",title:Object(Q.__)("Edit RSS URL"),onClick:function(){return e.setState({editing:!0})}},{icon:"list-view",title:Object(Q.__)("List view"),onClick:function(){return u({blockLayout:"list"})},isActive:"list"===n},{icon:"grid-view",title:Object(Q.__)("Grid view"),onClick:function(){return u({blockLayout:"grid"})},isActive:"grid"===n}];return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)(ie.ToolbarGroup,{controls:b})),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("RSS Settings")},Object(X.createElement)(ie.RangeControl,{label:Object(Q.__)("Number of items"),value:s,onChange:function(e){return u({itemsToShow:e})},min:1,max:10,required:!0}),Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Display author"),checked:o,onChange:this.toggleAttribute("displayAuthor")}),Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Display date"),checked:c,onChange:this.toggleAttribute("displayDate")}),Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Display excerpt"),checked:a,onChange:this.toggleAttribute("displayExcerpt")}),a&&Object(X.createElement)(ie.RangeControl,{label:Object(Q.__)("Max number of words in excerpt"),value:i,onChange:function(e){return u({excerptLength:e})},min:10,max:100,required:!0}),"grid"===n&&Object(X.createElement)(ie.RangeControl,{label:Object(Q.__)("Columns"),value:r,onChange:function(e){return u({columns:e})},min:2,max:6,required:!0}))),Object(X.createElement)(ie.Disabled,null,Object(X.createElement)(sn.a,{block:"core/rss",attributes:this.props.attributes})))}}]),t}(X.Component),jc="core/rss",yc={title:Object(Q.__)("RSS"),description:Object(Q.__)("Display entries from any RSS or Atom feed."),icon:"rss",category:"widgets",keywords:[Object(Q.__)("atom"),Object(Q.__)("feed")],supports:{align:!0,html:!1},example:{attributes:{feedURL:"https://wordpress.org"}},edit:Oc};var _c="core/search",kc={title:Object(Q.__)("Search"),description:Object(Q.__)("Help visitors find your content."),icon:"search",category:"widgets",keywords:[Object(Q.__)("find")],supports:{align:!0},example:{},edit:function(e){var t=e.className,n=e.attributes,r=e.setAttributes,o=n.label,a=n.placeholder,c=n.buttonText;return Object(X.createElement)("div",{className:t},Object(X.createElement)($.RichText,{className:"wp-block-search__label","aria-label":Object(Q.__)("Label text"),placeholder:Object(Q.__)("Add label…"),withoutInteractiveFormatting:!0,value:o,onChange:function(e){return r({label:e})}}),Object(X.createElement)("input",{className:"wp-block-search__input","aria-label":Object(Q.__)("Optional placeholder text"),placeholder:a?void 0:Object(Q.__)("Optional placeholder…"),value:a,onChange:function(e){return r({placeholder:e.target.value})}}),Object(X.createElement)($.RichText,{className:"wp-block-search__button","aria-label":Object(Q.__)("Button text"),placeholder:Object(Q.__)("Add button text…"),withoutInteractiveFormatting:!0,value:c,onChange:function(e){return r({buttonText:e})}}))}},Cc=[{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($.getColorClassName)("background-color",n),a=te()(o,{"has-background":n||r}),c={backgroundColor:o?void 0:r};return Object(X.createElement)("div",{className:a,style:c},Object(X.createElement)($.InnerBlocks.Content,null))}}];var wc=Object(le.compose)([Object($.withColors)("backgroundColor"),Object(se.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.className,n=e.setBackgroundColor,r=e.backgroundColor,o=e.hasInnerBlocks,a={backgroundColor:r.color},c=te()(t,r.class,{"has-background":!!r.color});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.InspectorControls,null,Object(X.createElement)($.PanelColorSettings,{title:Object(Q.__)("Color Settings"),colorSettings:[{value:r.color,onChange:n,label:Object(Q.__)("Background Color")}]})),Object(X.createElement)("div",{className:c,style:a},Object(X.createElement)("div",{className:"wp-block-group__inner-container"},Object(X.createElement)($.InnerBlocks,{renderAppender:!o&&$.InnerBlocks.ButtonBlockAppender,__experimentalUIParts:{hasSelectedUI:!1,hasMovers:!1}}))))})),Ec=Object(X.createElement)(ie.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9 8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-1v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h1V8zm2 3h4V9h-4v2zm2 2H9v2h4v-2z"}),Object(X.createElement)(ie.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4.732A2 2 0 1 1 4.732 2h14.536A2 2 0 1 1 22 4.732v14.536A2 2 0 1 1 19.268 22H4.732A2 2 0 1 1 2 19.268V4.732zM4.732 4h14.536c.175.304.428.557.732.732v14.536a2.01 2.01 0 0 0-.732.732H4.732A2.01 2.01 0 0 0 4 19.268V4.732A2.01 2.01 0 0 0 4.732 4z"}));var xc={name:"core/group",category:"layout",attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}}},Sc=xc.name,Tc={title:Object(Q.__)("Group"),icon:Ec,description:Object(Q.__)("A block that groups other blocks."),keywords:[Object(Q.__)("container"),Object(Q.__)("wrapper"),Object(Q.__)("row"),Object(Q.__)("section")],example:{attributes:{customBackgroundColor:"#ffffff"},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:Object(Q.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:Object(Q.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:Object(Q.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:Object(Q.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:Object(Q.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:Object(Q.__)("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(J.createBlock)(e.name,e.attributes,e.innerBlocks)}));return Object(J.createBlock)("core/group",{align:n},r)}}}]},edit:wc,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=Object($.getColorClassName)("background-color",n),a=te()(o,{"has-background":n||r}),c={backgroundColor:o?void 0:r};return Object(X.createElement)("div",{className:a,style:c},Object(X.createElement)("div",{className:"wp-block-group__inner-container"},Object(X.createElement)($.InnerBlocks.Content,null)))},deprecated:Cc},Nc=function(e){var t=e.color,n=e.setColor;return Object(X.createElement)($.InspectorControls,null,Object(X.createElement)($.PanelColorSettings,{title:Object(Q.__)("Color Settings"),colorSettings:[{value:t.color,onChange:n,label:Object(Q.__)("Color")}]}))};var Bc=Object($.withColors)("color",{textColor:"color"})((function(e){var t=e.color,n=e.setColor,r=e.className;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(ie.HorizontalRule,{className:te()(r,Object(Z.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}}),Object(X.createElement)(Nc,{color:t,setColor:n}))})),Ac=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(X.createElement)(ie.Path,{d:"M19 13H5v-2h14v2z"}));var Rc={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(J.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},Ic={name:"core/separator",category:"layout",attributes:{color:{type:"string"},customColor:{type:"string"}}},Mc=Ic.name,Pc={title:Object(Q.__)("Separator"),description:Object(Q.__)("Create a break between ideas or sections with a horizontal separator."),icon:Ac,keywords:[Object(Q.__)("horizontal-line"),"hr",Object(Q.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(Q.__)("Default"),isDefault:!0},{name:"wide",label:Object(Q.__)("Wide Line")},{name:"dots",label:Object(Q.__)("Dots")}],transforms:Rc,edit:Bc,save:function(e){var t,n=e.attributes,r=n.color,o=n.customColor,a=Object($.getColorClassName)("background-color",r),c=Object($.getColorClassName)("color",r),i=te()((t={"has-text-color has-background":r||o},Object(Z.a)(t,a,a),Object(Z.a)(t,c,c),t)),l={backgroundColor:a?void 0:o,color:c?void 0:o};return Object(X.createElement)("hr",{className:i,style:l})}};var zc=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{d:"M8.5,21.4l1.9,0.5l5.2-19.3l-1.9-0.5L8.5,21.4z M3,19h4v-2H5V7h2V5H3V19z M17,5v2h2v10h-2v2h4V5H17z"}));var Hc=n(70),Lc={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var n=t.content;return Object(Hc.removep)(Object(Hc.autop)(n))}}},priority:20}]},Vc="core/shortcode",Fc={title:Object(Q.__)("Shortcode"),description:Object(Q.__)("Insert additional custom elements with a WordPress shortcode."),icon:zc,category:"widgets",transforms:Lc,supports:{customClassName:!1,className:!1,html:!1},edit:function e(t){var n=t.attributes,r=t.setAttributes,o=Object(le.useInstanceId)(e),a="blocks-shortcode-input-".concat(o);return Object(X.createElement)("div",{className:"wp-block-shortcode components-placeholder"},Object(X.createElement)("label",{htmlFor:a,className:"components-placeholder__label"},Object(X.createElement)(ie.Dashicon,{icon:"shortcode"}),Object(Q.__)("Shortcode")),Object(X.createElement)($.PlainText,{className:"input-control",id:a,value:n.text,placeholder:Object(Q.__)("Write shortcode here…"),onChange:function(e){return r({text:e})}}))},save:function(e){var t=e.attributes;return Object(X.createElement)(X.RawHTML,null,t.text)}},Dc=Object(le.compose)([Object(se.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),le.withInstanceId])((function(e){var t=e.attributes,n=e.isSelected,r=e.setAttributes,o=e.instanceId,a=e.onResizeStart,c=e.onResizeStop,i=t.height,l="block-spacer-height-input-".concat(o),s=Object(X.useState)(i),u=Object(ce.a)(s,2),b=u[0],m=u[1];return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(ie.ResizableBox,{className:te()("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:a,onResizeStop:function(e,t,n,o){c();var a=parseInt(i+o.height,10);r({height:a}),m(a)}}),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Spacer Settings")},Object(X.createElement)(ie.BaseControl,{label:Object(Q.__)("Height in pixels"),id:l},Object(X.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"})))))})),Uc=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.G,null,Object(X.createElement)(ie.Path,{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"})));var Gc={name:"core/spacer",category:"layout",attributes:{height:{type:"number",default:100}}},qc=Gc.name,Wc={title:Object(Q.__)("Spacer"),description:Object(Q.__)("Add white space between blocks and customize its height."),icon:Uc,edit:Dc,save:function(e){var t=e.attributes;return Object(X.createElement)("div",{style:{height:t.height},"aria-hidden":!0})}},Kc=n(33),Zc=n.n(Kc);var $c=Object(X.createElement)(ie.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ie.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"}));var Jc={to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(J.createBlock)("core/paragraph",e)}}]},Qc={name:"core/subhead",category:"common",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p"}}},Yc=Qc.name,Xc={title:Object(Q.__)("Subheading (deprecated)"),description:Object(Q.__)("This block is deprecated. Please use the Paragraph block instead."),icon:$c,supports:{inserter:!1,multiple:!1},transforms:Jc,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=t.align,a=t.content,c=t.placeholder;return Zc()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)($.AlignmentToolbar,{value:o,onChange:function(e){n({align:e})}})),Object(X.createElement)($.RichText,{tagName:"p",value:a,onChange:function(e){n({content:e})},style:{textAlign:o},className:r,placeholder:c||Object(Q.__)("Write subheading…")}))},save:function(e){var t=e.attributes,n=t.align,r=t.content;return Object(X.createElement)($.RichText.Content,{tagName:"p",style:{textAlign:n},value:r})}},ei=[{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,a=t.foot,c=t.backgroundColor;if(!r.length&&!o.length&&!a.length)return null;var i=Object($.getColorClassName)("background-color",c),l=te()(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(X.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object(X.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag,o=e.scope;return Object(X.createElement)($.RichText.Content,{tagName:r,value:n,key:t,scope:"th"===r?o:void 0})})))})))};return Object(X.createElement)("table",{className:l},Object(X.createElement)(s,{type:"head",rows:r}),Object(X.createElement)(s,{type:"body",rows:o}),Object(X.createElement)(s,{type:"foot",rows:a}))}}],ti=["align"];function ni(e,t,n){if(!t)return e;var r=Object(ne.pick)(e,["head","body","foot"]),o=t.sectionName,a=t.rowIndex;return Object(ne.mapValues)(r,(function(e,r){return o&&o!==r?e:e.map((function(e,o){return a&&a!==o?e:{cells:e.cells.map((function(e,a){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:a,rowIndex:o},t)?n(e):e}))}}))}))}function ri(e,t){var n=t.sectionName,r=t.rowIndex,o=t.columnCount,a=function(e){return ci(e.head)?ci(e.body)?ci(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),c=void 0===o?Object(ne.get)(a,["cells","length"]):o;return c?Object(Z.a)({},n,[].concat(Object(K.a)(e[n].slice(0,r)),[{cells:Object(ne.times)(c,(function(e){var t=Object(ne.get)(a,["cells",e],{}),r=Object(ne.pick)(t,ti);return Object(Y.a)({},r,{content:"",tag:"head"===n?"th":"td"})}))}],Object(K.a)(e[n].slice(r)))):e}function oi(e,t){var n=t.columnIndex,r=Object(ne.pick)(e,["head","body","foot"]);return Object(ne.mapValues)(r,(function(e,t){return ci(e)?e:e.map((function(e){return ii(e)||e.cells.length<n?e:{cells:[].concat(Object(K.a)(e.cells.slice(0,n)),[{content:"",tag:"head"===t?"th":"td"}],Object(K.a)(e.cells.slice(n)))}}))}))}function ai(e,t){return ci(e[t])?ri(e,{sectionName:t,rowIndex:0,columnCount:Object(ne.get)(e,["body",0,"cells","length"],1)}):Object(Z.a)({},t,[])}function ci(e){return!e||!e.length||Object(ne.every)(e,ii)}function ii(e){return!(e.cells&&e.cells.length)}var li=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(X.createElement)(ie.G,null,Object(X.createElement)(ie.Path,{d:"M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z"}))),si=[{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"}],ui=[{icon:"editor-alignleft",title:Object(Q.__)("Align Column Left"),align:"left"},{icon:"editor-aligncenter",title:Object(Q.__)("Align Column Center"),align:"center"},{icon:"editor-alignright",title:Object(Q.__)("Align Column Right"),align:"right"}],bi=Object($.createCustomColorsHOC)(si),mi=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).onCreateTable=e.onCreateTable.bind(Object(Se.a)(e)),e.onChangeFixedLayout=e.onChangeFixedLayout.bind(Object(Se.a)(e)),e.onChange=e.onChange.bind(Object(Se.a)(e)),e.onChangeInitialColumnCount=e.onChangeInitialColumnCount.bind(Object(Se.a)(e)),e.onChangeInitialRowCount=e.onChangeInitialRowCount.bind(Object(Se.a)(e)),e.renderSection=e.renderSection.bind(Object(Se.a)(e)),e.getTableControls=e.getTableControls.bind(Object(Se.a)(e)),e.onInsertRow=e.onInsertRow.bind(Object(Se.a)(e)),e.onInsertRowBefore=e.onInsertRowBefore.bind(Object(Se.a)(e)),e.onInsertRowAfter=e.onInsertRowAfter.bind(Object(Se.a)(e)),e.onDeleteRow=e.onDeleteRow.bind(Object(Se.a)(e)),e.onInsertColumn=e.onInsertColumn.bind(Object(Se.a)(e)),e.onInsertColumnBefore=e.onInsertColumnBefore.bind(Object(Se.a)(e)),e.onInsertColumnAfter=e.onInsertColumnAfter.bind(Object(Se.a)(e)),e.onDeleteColumn=e.onDeleteColumn.bind(Object(Se.a)(e)),e.onToggleHeaderSection=e.onToggleHeaderSection.bind(Object(Se.a)(e)),e.onToggleFooterSection=e.onToggleFooterSection.bind(Object(Se.a)(e)),e.onChangeColumnAlignment=e.onChangeColumnAlignment.bind(Object(Se.a)(e)),e.getCellAlignment=e.getCellAlignment.bind(Object(Se.a)(e)),e.state={initialRowCount:2,initialColumnCount:2,selectedCell:null},e}return Object(Te.a)(t,e),Object(we.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,a=this.state,c=a.initialRowCount,i=a.initialColumnCount;c=parseInt(c,10)||2,i=parseInt(i,10)||2,o((n=(t={rowCount:c,columnCount:i}).rowCount,r=t.columnCount,{body:Object(ne.times)(n,(function(){return{cells:Object(ne.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)(ni(r,t,(function(t){return Object(Y.a)({},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)(ni(o,n,(function(t){return Object(Y.a)({},t,{align:e})})))}}},{key:"getCellAlignment",value:function(){var e=this.state.selectedCell;if(e){var t,n,r,o,a,c,i=this.props.attributes;return t=i,r="align",o=(n=e).sectionName,a=n.rowIndex,c=n.columnIndex,Object(ne.get)(t,[o,a,"cells",c,r])}}},{key:"onToggleHeaderSection",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)(ai(t,"head"))}},{key:"onToggleFooterSection",value:function(){var e=this.props,t=e.attributes;(0,e.setAttributes)(ai(t,"foot"))}},{key:"onInsertRow",value:function(e){var t=this.state.selectedCell;if(t){var n=this.props,r=n.attributes,o=n.setAttributes,a=t.sectionName,c=t.rowIndex;this.setState({selectedCell:null}),o(ri(r,{sectionName:a,rowIndex:c+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,a=e.rowIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.sectionName,r=t.rowIndex;return Object(Z.a)({},n,e[n].filter((function(e,t){return t!==r})))}(n,{sectionName:o,rowIndex:a}))}}},{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,a=t.columnIndex;this.setState({selectedCell:null}),o(oi(r,{columnIndex:a+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,a=e.columnIndex;this.setState({selectedCell:null}),r(function(e,t){var n=t.columnIndex,r=Object(ne.pick)(e,["head","body","foot"]);return Object(ne.mapValues)(r,(function(e){return ci(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:a}))}}},{key:"createOnFocus",value:function(e){var t=this;return function(){t.setState({selectedCell:Object(Y.a)({},e,{type:"cell"})})}}},{key:"getTableControls",value:function(){var e=this.state.selectedCell;return[{icon:"table-row-before",title:Object(Q.__)("Add Row Before"),isDisabled:!e,onClick:this.onInsertRowBefore},{icon:"table-row-after",title:Object(Q.__)("Add Row After"),isDisabled:!e,onClick:this.onInsertRowAfter},{icon:"table-row-delete",title:Object(Q.__)("Delete Row"),isDisabled:!e,onClick:this.onDeleteRow},{icon:"table-col-before",title:Object(Q.__)("Add Column Before"),isDisabled:!e,onClick:this.onInsertColumnBefore},{icon:"table-col-after",title:Object(Q.__)("Add Column After"),isDisabled:!e,onClick:this.onInsertColumnAfter},{icon:"table-col-delete",title:Object(Q.__)("Delete Column"),isDisabled:!e,onClick:this.onDeleteColumn}]}},{key:"renderSection",value:function(e){var t=this,n=e.name,r=e.rows;if(ci(r))return null;var o="t".concat(n);return Object(X.createElement)(o,null,r.map((function(e,r){var o=e.cells;return Object(X.createElement)("tr",{key:r},o.map((function(e,o){var a=e.content,c=e.tag,i=e.scope,l=e.align,s={sectionName:n,rowIndex:r,columnIndex:o},u=te()(Object(Z.a)({},"has-text-align-".concat(l),l),"wp-block-table__cell-content");return Object(X.createElement)($.RichText,{tagName:c,key:o,className:u,scope:"th"===c?i:void 0,value:a,onChange:t.onChange,unstableOnFocus:t.createOnFocus(s)})})))})))}},{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,a=t.setBackgroundColor,c=t.setAttributes,i=this.state,l=i.initialRowCount,s=i.initialColumnCount,u=n.hasFixedLayout,b=n.caption,m=n.head,d=n.body,h=n.foot,p=ci(m)&&ci(d)&&ci(h),g=this.renderSection;if(p)return Object(X.createElement)(ie.Placeholder,{label:Object(Q.__)("Table"),icon:Object(X.createElement)($.BlockIcon,{icon:li,showColors:!0}),instructions:Object(Q.__)("Insert a table for sharing data.")},Object(X.createElement)("form",{className:"wp-block-table__placeholder-form",onSubmit:this.onCreateTable},Object(X.createElement)(ie.TextControl,{type:"number",label:Object(Q.__)("Column Count"),value:s,onChange:this.onChangeInitialColumnCount,min:"1",className:"wp-block-table__placeholder-input"}),Object(X.createElement)(ie.TextControl,{type:"number",label:Object(Q.__)("Row Count"),value:l,onChange:this.onChangeInitialRowCount,min:"1",className:"wp-block-table__placeholder-input"}),Object(X.createElement)(ie.Button,{className:"wp-block-table__placeholder-button",isSecondary:!0,type:"submit"},Object(Q.__)("Create Table"))));var f=te()(o.class,{"has-fixed-layout":u,"has-background":!!o.color});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)(ie.ToolbarGroup,null,Object(X.createElement)(ie.DropdownMenu,{hasArrowIndicator:!0,icon:"editor-table",label:Object(Q.__)("Edit table"),controls:this.getTableControls()})),Object(X.createElement)($.AlignmentToolbar,{label:Object(Q.__)("Change column alignment"),alignmentControls:ui,value:this.getCellAlignment(),onChange:function(t){return e.onChangeColumnAlignment(t)},onHover:this.onHoverAlignment})),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Table Settings"),className:"blocks-table-settings"},Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Fixed width table cells"),checked:!!u,onChange:this.onChangeFixedLayout}),Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Header section"),checked:!(!m||!m.length),onChange:this.onToggleHeaderSection}),Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Footer section"),checked:!(!h||!h.length),onChange:this.onToggleFooterSection})),Object(X.createElement)($.PanelColorSettings,{title:Object(Q.__)("Color Settings"),initialOpen:!1,colorSettings:[{value:o.color,onChange:a,label:Object(Q.__)("Background Color"),disableCustomColors:!0,colors:si}]})),Object(X.createElement)("figure",{className:r},Object(X.createElement)("table",{className:f},Object(X.createElement)(g,{name:"head",rows:m}),Object(X.createElement)(g,{name:"body",rows:d}),Object(X.createElement)(g,{name:"foot",rows:h})),Object(X.createElement)($.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:b,onChange:function(e){return c({caption:e})},unstableOnFocus:function(){return e.setState({selectedCell:null})}})))}}]),t}(X.Component),di=bi("backgroundColor")(mi);var hi=function(e){var t=e.phrasingContentSchema;return{tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:t,attributes:["scope"]},td:{allowEmpty:!0,children:t}}}}},pi={from:[{type:"raw",selector:"table",schema:function(e){return{table:{children:{thead:{allowEmpty:!0,children:hi(e)},tfoot:{allowEmpty:!0,children:hi(e)},tbody:{allowEmpty:!0,children:hi(e)}}}}}}]},gi={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"}}}}}}},fi=gi.name,vi={title:Object(Q.__)("Table"),description:Object(Q.__)("Insert a table — perfect for sharing charts and data."),icon:li,example:{attributes:{head:[{cells:[{content:Object(Q.__)("Version"),tag:"th"},{content:Object(Q.__)("Jazz Musician"),tag:"th"},{content:Object(Q.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(Q.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(Q.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(Q.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(Q.__)("Stripes")}],supports:{align:!0},transforms:pi,edit:di,save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,o=t.body,a=t.foot,c=t.backgroundColor,i=t.caption;if(!r.length&&!o.length&&!a.length)return null;var l=Object($.getColorClassName)("background-color",c),s=te()(l,{"has-fixed-layout":n,"has-background":!!l}),u=!$.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(X.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object(X.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag,o=e.scope,a=e.align,c=te()(Object(Z.a)({},"has-text-align-".concat(a),a));return Object(X.createElement)($.RichText.Content,{className:c||void 0,"data-align":a,tagName:r,value:n,key:t,scope:"th"===r?o:void 0})})))})))};return Object(X.createElement)("figure",null,Object(X.createElement)("table",{className:""===s?void 0:s},Object(X.createElement)(b,{type:"head",rows:r}),Object(X.createElement)(b,{type:"body",rows:o}),Object(X.createElement)(b,{type:"foot",rows:a})),u&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",value:i}))},deprecated:ei};var Oi={to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,n=e.columns,r=e.content,o=e.width;return Object(J.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(J.createBlock)("core/column",{},[Object(J.createBlock)("core/paragraph",{content:t})])})))}}]},ji={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"}}},yi=ji.name,_i={supports:{inserter:!1},title:Object(Q.__)("Text Columns (deprecated)"),description:Object(Q.__)("This block is deprecated. Please use the Columns block instead."),transforms:Oi,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,a=t.content,c=t.columns;return Zc()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)($.BlockAlignmentToolbar,{value:o,onChange:function(e){return n({width:e})},controls:["center","wide","full"]})),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,null,Object(X.createElement)(ie.RangeControl,{label:Object(Q.__)("Columns"),value:c,onChange:function(e){return n({columns:e})},min:2,max:4,required:!0}))),Object(X.createElement)("div",{className:"".concat(r," align").concat(o," columns-").concat(c)},Object(ne.times)(c,(function(e){return Object(X.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(X.createElement)($.RichText,{tagName:"p",value:Object(ne.get)(a,[e,"children"]),onChange:function(t){n({content:[].concat(Object(K.a)(a.slice(0,e)),[{children:t}],Object(K.a)(a.slice(e+1)))})},placeholder:Object(Q.__)("New Column")}))}))))},save:function(e){var t=e.attributes,n=t.width,r=t.content,o=t.columns;return Object(X.createElement)("div",{className:"align".concat(n," columns-").concat(o)},Object(ne.times)(o,(function(e){return Object(X.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(X.createElement)($.RichText.Content,{tagName:"p",value:Object(ne.get)(r,[e,"children"])}))})))}},ki=[{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(X.createElement)($.RichText.Content,{tagName:"pre",style:{textAlign:n},value:r})}}];var Ci=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{d:"M21 11.01L3 11V13H21V11.01ZM3 16H17V18H3V16ZM15 6H3V8.01L15 8V6Z"}));var wi={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(J.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(J.createBlock)("core/paragraph",e)}}]},Ei={name:"core/verse",category:"formatting",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0},textAlign:{type:"string"}}},xi=Ei.name,Si={title:Object(Q.__)("Verse"),description:Object(Q.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:Ci,example:{attributes:{content:Object(Q.__)("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(Q.__)("poetry"),Object(Q.__)("poem")],transforms:wi,deprecated:ki,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,a=t.textAlign,c=t.content;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)($.AlignmentToolbar,{value:a,onChange:function(e){n({textAlign:e})}})),Object(X.createElement)($.RichText,{tagName:"pre",preserveWhiteSpace:!0,value:c,onChange:function(e){n({content:e})},placeholder:Object(Q.__)("Write…"),className:te()(r,Object(Z.a)({},"has-text-align-".concat(a),a)),onMerge:o}))},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content,o=te()(Object(Z.a)({},"has-text-align-".concat(n),n));return Object(X.createElement)($.RichText.Content,{tagName:"pre",className:o,value:r})}},Ti=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(X.createElement)(ie.Path,{d:"M4 6.47L5.76 10H20v8H4V6.47M22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4z"})),Ni=function(e){var t=e.setAttributes,n=e.attributes,r=n.autoplay,o=n.controls,a=n.loop,c=n.muted,i=n.playsInline,l=n.preload,s=function(e){return function(n){t(Object(Z.a)({},e,n))}};return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Autoplay"),onChange:s("autoplay"),checked:r,help:function(e){return e?Object(Q.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}}),Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Loop"),onChange:s("loop"),checked:a}),Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Muted"),onChange:s("muted"),checked:c}),Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Playback Controls"),onChange:s("controls"),checked:o}),Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Play inline"),onChange:s("playsInline"),checked:i}),Object(X.createElement)(ie.SelectControl,{label:Object(Q.__)("Preload"),value:l,onChange:function(e){return t({preload:e})},options:[{value:"auto",label:Object(Q.__)("Auto")},{value:"metadata",label:Object(Q.__)("Metadata")},{value:"none",label:Object(Q.__)("None")}]}))},Bi=["video"],Ai=["image"],Ri=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.src},e.videoPlayer=Object(X.createRef)(),e.posterImageButton=Object(X.createRef)(),e.onSelectURL=e.onSelectURL.bind(Object(Se.a)(e)),e.onSelectPoster=e.onSelectPoster.bind(Object(Se.a)(e)),e.onRemovePoster=e.onRemovePoster.bind(Object(Se.a)(e)),e.onUploadError=e.onUploadError.bind(Object(Se.a)(e)),e}return Object(Te.a)(t,e),Object(we.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,a=t.setAttributes,c=n.id,i=n.src,l=void 0===i?"":i;if(!c&&Object(Ne.isBlobURL)(l)){var s=Object(Ne.getBlobByURL)(l);s&&r({filesList:[s],onFileChange:function(e){var t=Object(ce.a)(e,1)[0].url;a({src:t})},onError:function(t){e.setState({editing:!0}),o.createErrorNotice(t)},allowedTypes:Bi})}}},{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=ot({attributes:{url:e}});if(void 0!==o)return void this.props.onReplace(o);r({src:e,id:void 0})}this.setState({editing:!1})}},{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.caption,r=t.controls,o=t.poster,a=t.src,c=this.props,i=c.className,l=c.instanceId,s=c.isSelected,u=c.noticeUI,b=c.attributes,m=c.setAttributes,d=this.state.editing,h=function(){e.setState({editing:!0})};if(d)return Object(X.createElement)($.MediaPlaceholder,{icon:Object(X.createElement)($.BlockIcon,{icon:Ti}),className:i,onSelect:function(t){if(!t||!t.url)return m({src:void 0,id:void 0}),void h();m({src:t.url,id:t.id}),e.setState({src:t.url,editing:!1})},onSelectURL:this.onSelectURL,accept:"video/*",allowedTypes:Bi,value:this.props.attributes,notices:u,onError:this.onUploadError});var p="video-block__poster-image-description-".concat(l);return Object(X.createElement)(X.Fragment,null,Object(X.createElement)($.BlockControls,null,Object(X.createElement)(ie.ToolbarGroup,null,Object(X.createElement)(ie.Button,{className:"components-toolbar__control",label:Object(Q.__)("Edit video"),onClick:h,icon:"edit"}))),Object(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Video Settings")},Object(X.createElement)(Ni,{setAttributes:m,attributes:b}),Object(X.createElement)($.MediaUploadCheck,null,Object(X.createElement)(ie.BaseControl,{className:"editor-video-poster-control"},Object(X.createElement)(ie.BaseControl.VisualLabel,null,Object(Q.__)("Poster Image")),Object(X.createElement)($.MediaUpload,{title:Object(Q.__)("Select Poster Image"),onSelect:this.onSelectPoster,allowedTypes:Ai,render:function(t){var n=t.open;return Object(X.createElement)(ie.Button,{isSecondary:!0,onClick:n,ref:e.posterImageButton,"aria-describedby":p},e.props.attributes.poster?Object(Q.__)("Replace image"):Object(Q.__)("Select Poster Image"))}}),Object(X.createElement)("p",{id:p,hidden:!0},this.props.attributes.poster?Object(Q.sprintf)(Object(Q.__)("The current poster image url is %s"),this.props.attributes.poster):Object(Q.__)("There is no poster image currently selected")),!!this.props.attributes.poster&&Object(X.createElement)(ie.Button,{onClick:this.onRemovePoster,isLink:!0,isDestructive:!0},Object(Q.__)("Remove Poster Image")))))),Object(X.createElement)("figure",{className:i},Object(X.createElement)(ie.Disabled,null,Object(X.createElement)("video",{controls:r,poster:o,src:a,ref:this.videoPlayer})),(!$.RichText.isEmpty(n)||s)&&Object(X.createElement)($.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:n,onChange:function(e){return m({caption:e})},inlineToolbar:!0})))}}]),t}(X.Component),Ii=Object(le.compose)([Object(se.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),ie.withNotices,le.withInstanceId])(Ri);var Mi={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(J.createBlock)("core/video",{src:Object(Ne.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,a=t.webm,c=t.ogv,i=t.flv;return n||r||o||a||c||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}}}}]},Pi={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"}}},zi=Pi.name,Hi={title:Object(Q.__)("Video"),description:Object(Q.__)("Embed a video from your media library or upload a new one."),icon:Ti,keywords:[Object(Q.__)("movie")],transforms:Mi,supports:{align:!0},edit:Ii,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.controls,a=t.loop,c=t.muted,i=t.poster,l=t.preload,s=t.src,u=t.playsInline;return Object(X.createElement)("figure",null,s&&Object(X.createElement)("video",{autoPlay:n,controls:o,loop:a,muted:c,poster:i,preload:"metadata"!==l?l:void 0,src:s,playsInline:u}),!$.RichText.isEmpty(r)&&Object(X.createElement)($.RichText.Content,{tagName:"figcaption",value:r}))}},Li=function(e){function t(){var e;return Object(Ce.a)(this,t),(e=Object(Ee.a)(this,Object(xe.a)(t).apply(this,arguments))).state={editing:!e.props.attributes.taxonomy},e.setTaxonomy=e.setTaxonomy.bind(Object(Se.a)(e)),e.toggleShowTagCounts=e.toggleShowTagCounts.bind(Object(Se.a)(e)),e}return Object(Te.a)(t,e),Object(we.a)(t,[{key:"getTaxonomyOptions",value:function(){var e=Object(ne.filter)(this.props.taxonomies,"show_cloud"),t={label:Object(Q.__)("- Select -"),value:"",disabled:!0},n=Object(ne.map)(e,(function(e){return{value:e.slug,label:e.name}}));return[t].concat(Object(K.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(X.createElement)($.InspectorControls,null,Object(X.createElement)(ie.PanelBody,{title:Object(Q.__)("Tag Cloud Settings")},Object(X.createElement)(ie.SelectControl,{label:Object(Q.__)("Taxonomy"),options:r,value:t,onChange:this.setTaxonomy}),Object(X.createElement)(ie.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:n,onChange:this.toggleShowTagCounts})));return Object(X.createElement)(X.Fragment,null,o,Object(X.createElement)(sn.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:e}))}}]),t}(X.Component),Vi=Object(se.withSelect)((function(e){return{taxonomies:e("core").getTaxonomies()}}))(Li),Fi="core/tag-cloud",Di={title:Object(Q.__)("Tag Cloud"),description:Object(Q.__)("A cloud of your most used tags."),icon:"tag",category:"widgets",supports:{html:!1,align:!0},edit:Vi},Ui=window.wp;var Gi=function(e){function t(e){var n;return Object(Ce.a)(this,t),(n=Object(Ee.a)(this,Object(xe.a)(t).call(this,e))).initialize=n.initialize.bind(Object(Se.a)(n)),n.onSetup=n.onSetup.bind(Object(Se.a)(n)),n.focus=n.focus.bind(Object(Se.a)(n)),n}return Object(Te.a)(t,e),Object(we.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),Ui.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;Ui.oldEditor.initialize("editor-".concat(e),{tinymce:Object(Y.a)({},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,a=r.setAttributes,c=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),a({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!==Wt.BACKSPACE&&t.keyCode!==Wt.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===Wt.F10&&t.stopPropagation()})),e.addButton("kitchensink",{tooltip:Object(Q._x)("More","button to expand options"),icon:"dashicon dashicons-editor-kitchensink",onClick:function(){var t=!this.active();this.active(t),e.dom.toggleClass(c,"has-advanced-toolbar",t)}}),e.on("init",(function(){e.settings.toolbar1&&-1===e.settings.toolbar1.indexOf("kitchensink")&&e.dom.addClass(c,"has-advanced-toolbar")})),e.addButton("wp_add_media",{tooltip:Object(Q.__)("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(X.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(Q.__)("Classic"),onKeyDown:this.onToolbarKeyDown}),Object(X.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})]}}]),t}(X.Component),qi=Object(X.createElement)(ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ie.Path,{d:"M0,0h24v24H0V0z M0,0h24v24H0V0z",fill:"none"}),Object(X.createElement)(ie.Path,{d:"m20 7v10h-16v-10h16m0-2h-16c-1.1 0-1.99 0.9-1.99 2l-0.01 10c0 1.1 0.9 2 2 2h16c1.1 0 2-0.9 2-2v-10c0-1.1-0.9-2-2-2z"}),Object(X.createElement)(ie.Rect,{x:"11",y:"8",width:"2",height:"2"}),Object(X.createElement)(ie.Rect,{x:"11",y:"11",width:"2",height:"2"}),Object(X.createElement)(ie.Rect,{x:"8",y:"8",width:"2",height:"2"}),Object(X.createElement)(ie.Rect,{x:"8",y:"11",width:"2",height:"2"}),Object(X.createElement)(ie.Rect,{x:"5",y:"11",width:"2",height:"2"}),Object(X.createElement)(ie.Rect,{x:"5",y:"8",width:"2",height:"2"}),Object(X.createElement)(ie.Rect,{x:"8",y:"14",width:"8",height:"2"}),Object(X.createElement)(ie.Rect,{x:"14",y:"11",width:"2",height:"2"}),Object(X.createElement)(ie.Rect,{x:"14",y:"8",width:"2",height:"2"}),Object(X.createElement)(ie.Rect,{x:"17",y:"11",width:"2",height:"2"}),Object(X.createElement)(ie.Rect,{x:"17",y:"8",width:"2",height:"2"}));var Wi={name:"core/freeform",category:"formatting",attributes:{content:{type:"string",source:"html"}}},Ki=Wi.name,Zi={title:Object(Q._x)("Classic","block title"),description:Object(Q.__)("Use the classic WordPress editor."),icon:qi,supports:{className:!1,customClassName:!1,reusable:!1},edit:Gi,save:function(e){var t=e.attributes.content;return Object(X.createElement)(X.RawHTML,null,t)}};n.d(t,"registerCoreBlocks",(function(){return Ji})),n.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return Qi}));var $i=function(e){if(e){var t=e.metadata,n=e.settings,r=e.name;t&&Object(J.unstable__bootstrapServerSideBlockDefinitions)(Object(Z.a)({},r,t)),Object(J.registerBlockType)(r,n)}},Ji=function(){[r,o,a,i,x,c,H,l,s,u,b,m,d,h,p,g,f,v].concat(Object(K.a)(Oo),Object(K.a)(jo),[O,P,window.wp&&window.wp.oldEditor?W:null,j,y,w,E,S,T,k,C,N,B,A,I,M,z,R,L,V,F,q,D,U,G]).forEach($i),Object(J.setDefaultBlockName)(Oe),window.wp&&window.wp.oldEditor&&Object(J.setFreeformContentHandlerName)(Ki),Object(J.setUnregisteredTypeHandlerName)(La),P&&Object(J.setGroupingBlockName)(Sc)},Qi=void 0},37:function(e,t){!function(){e.exports=this.wp.blob}()},38:function(e,t){!function(){e.exports=this.wp.apiFetch}()},4:function(e,t){!function(){e.exports=this.wp.data}()},40:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},42:function(e,t,n){e.exports=function(e,t){var n,r,o,a=0;function c(){var t,c,i=r,l=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(c=0;c<l;c++)if(i.args[c]!==arguments[c]){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),c=0;c<l;c++)t[c]=arguments[c];return i={args:t,val:e.apply(null,t)},r?(r.prev=i,i.next=r):o=i,a===n?(o=o.prev).next=null:a++,r=i,i.val}return t&&t.maxSize&&(n=t.maxSize),c.clear=function(){r=null,o=null,a=0},c}},49:function(e,t,n){var r;!function(o){var a=/^\s+/,c=/\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(a,"").replace(c,"").toLowerCase();var t,n=!1;if(N[e])e=N[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:M(t[1]),g:M(t[2]),b:M(t[3]),a:L(t[4]),format:n?"name":"hex8"};if(t=U.hex6.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),format:n?"name":"hex"};if(t=U.hex4.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),a:L(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=U.hex3.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(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,h=e.g,p=e.b,t={r:255*R(d,255),g:255*R(h,255),b:255*R(p,255)},b=!0,m="%"===String(e.r).substr(-1)?"prgb":"rgb"):G(e.h)&&G(e.s)&&G(e.v)?(r=z(e.s),i=z(e.v),t=function(e,t,n){e=6*R(e,360),t=R(t,100),n=R(n,100);var r=o.floor(e),a=e-r,c=n*(1-t),i=n*(1-a*t),l=n*(1-(1-a)*t),s=r%6;return{r:255*[n,i,c,c,l,n][s],g:255*[l,n,n,i,c,c][s],b:255*[c,c,l,n,n,i][s]}}(e.h,r,i),b=!0,m="hsv"):G(e.h)&&G(e.s)&&G(e.l)&&(r=z(e.s),l=z(e.l),t=function(e,t,n){var r,o,a;function c(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=R(e,360),t=R(t,100),n=R(n,100),0===t)r=o=a=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=c(l,i,e+1/3),o=c(l,i,e),a=c(l,i,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,l),b=!0,m="hsl"),e.hasOwnProperty("a")&&(n=e.a));var d,h,p;return n=A(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=R(e,255),t=R(t,255),n=R(n,255);var r,o,a=u(e,t,n),c=s(e,t,n),i=(a+c)/2;if(a==c)r=o=0;else{var l=a-c;switch(o=i>.5?l/(2-a-c):l/(a+c),a){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 h(e,t,n){e=R(e,255),t=R(t,255),n=R(n,255);var r,o,a=u(e,t,n),c=s(e,t,n),i=a,l=a-c;if(o=0===a?0:l/a,a==c)r=0;else{switch(a){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 p(e,t,n,r){var o=[P(l(e).toString(16)),P(l(t).toString(16)),P(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[P(H(r)),P(l(e).toString(16)),P(l(t).toString(16)),P(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=I(n.s),m(n)}function v(e,t){t=0===t?0:t||10;var n=m(e).toHsl();return n.s+=t/100,n.s=I(n.s),m(n)}function O(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=I(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 _(e,t){t=0===t?0:t||10;var n=m(e).toHsl();return n.l-=t/100,n.l=I(n.l),m(n)}function k(e,t){var n=m(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,m(n)}function C(e){var t=m(e).toHsl();return t.h=(t.h+180)%360,m(t)}function w(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,a=[m(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(m(r));return a}function T(e,t){t=t||6;for(var n=m(e).toHsv(),r=n.h,o=n.s,a=n.v,c=[],i=1/t;t--;)c.push(m({h:r,s:o,v:a})),a=(a+i)%1;return c}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=A(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(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 p(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 a=[P(l(e).toString(16)),P(l(t).toString(16)),P(l(n).toString(16)),P(H(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.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*R(this._r,255))+"%",g:l(100*R(this._g,255))+"%",b:l(100*R(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*R(this._r,255))+"%, "+l(100*R(this._g,255))+"%, "+l(100*R(this._b,255))+"%)":"rgba("+l(100*R(this._r,255))+"%, "+l(100*R(this._g,255))+"%, "+l(100*R(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(B[p(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(_,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(O,arguments)},spin:function(){return this._applyModification(k,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(C,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(w,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]:z(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(),a=n/100;return m({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+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,a=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=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},m.mostReadable=function(e,t,n){var r,o,a,c,i=null,l=0;o=(n=n||{}).includeFallbackColors,a=n.level,c=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:a,size:c})||!o?i:(n.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],n))};var N=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}(N);function A(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function R(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 I(e){return s(1,u(0,e))}function M(e){return parseInt(e,16)}function P(e){return 1==e.length?"0"+e:""+e}function z(e){return e<=1&&(e=100*e+"%"),e}function H(e){return o.round(255*parseFloat(e)).toString(16)}function L(e){return M(e)/255}var V,F,D,U=(F="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",D="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+D),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+D),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+D),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)},5:function(e,t){!function(){e.exports=this.wp.blockEditor}()},51:function(e,t){!function(){e.exports=this.wp.viewport}()},55:function(e,t){!function(){e.exports=this.wp.date}()},6:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(9);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Object(r.a)(e,t,n[t])}))}return e}},60:function(e,t){!function(){e.exports=this.wp.serverSideRender}()},61:function(e,t){!function(){e.exports=this.wp.escapeHtml}()},63:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},64:function(e,t){!function(){e.exports=this.wp.coreData}()},7: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}))},70:function(e,t){!function(){e.exports=this.wp.autop}()},71:function(e,t,n){var r;
|
||
/*!
|
||
Copyright (c) 2017 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/!function(){"use strict";var n=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r<n;++r)o(e,t[r])}e.prototype=Object.create(null);var n={}.hasOwnProperty;var r=/\s+/;function o(e,o){if(o){var a=typeof o;"string"===a?function(e,t){for(var n=t.split(r),o=n.length,a=0;a<o;++a)e[n[a]]=!0}(e,o):Array.isArray(o)?t(e,o):"object"===a?function(e,t){for(var r in t)n.call(t,r)&&(e[r]=!!t[r])}(e,o):"number"===a&&function(e,t){e[t]=!0}(e,o)}}return function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=new e;t(a,r);var c=[];for(var i in a)a[i]&&c.push(i);return c.join(" ")}}();e.exports?(n.default=n,e.exports=n):void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()},8:function(e,t){!function(){e.exports=this.wp.compose}()},85:function(e,t,n){"use strict";var r=n(121),o=n(123);function a(){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=O,t.resolve=function(e,t){return O(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?O(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=O(e));return e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a;var c=/^([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}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={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},v=n(124);function O(e,t,n){if(e&&o.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),i=-1!==a&&a<e.indexOf("#")?"?":"#",s=e.split(i);s[0]=s[0].replace(/\\/g,"/");var O=e=s.join(i);if(O=O.trim(),!n&&1===e.split("#").length){var j=l.exec(O);if(j)return this.path=O,this.href=O,this.pathname=j[1],j[2]?(this.search=j[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var y=c.exec(O);if(y){var _=(y=y[0]).toLowerCase();this.protocol=_,O=O.substr(y.length)}if(n||y||O.match(/^\/\/[^@\/]+@[^@\/]+/)){var k="//"===O.substr(0,2);!k||y&&g[y]||(O=O.substr(2),this.slashes=!0)}if(!g[y]&&(k||y&&!f[y])){for(var C,w,E=-1,x=0;x<m.length;x++){-1!==(S=O.indexOf(m[x]))&&(-1===E||S<E)&&(E=S)}-1!==(w=-1===E?O.lastIndexOf("@"):O.lastIndexOf("@",E))&&(C=O.slice(0,w),O=O.slice(w+1),this.auth=decodeURIComponent(C)),E=-1;for(x=0;x<b.length;x++){var S;-1!==(S=O.indexOf(b[x]))&&(-1===E||S<E)&&(E=S)}-1===E&&(E=O.length),this.host=O.slice(0,E),O=O.slice(E),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var N=this.hostname.split(/\./),B=(x=0,N.length);x<B;x++){var A=N[x];if(A&&!A.match(d)){for(var R="",I=0,M=A.length;I<M;I++)A.charCodeAt(I)>127?R+="x":R+=A[I];if(!R.match(d)){var P=N.slice(0,x),z=N.slice(x+1),H=A.match(h);H&&(P.push(H[1]),z.unshift(H[2])),z.length&&(O="/"+z.join(".")+O),this.hostname=P.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var L=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+L,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==O[0]&&(O="/"+O))}if(!p[_])for(x=0,B=u.length;x<B;x++){var F=u[x];if(-1!==O.indexOf(F)){var D=encodeURIComponent(F);D===F&&(D=escape(F)),O=O.split(F).join(D)}}var U=O.indexOf("#");-1!==U&&(this.hash=O.substr(U),O=O.slice(0,U));var G=O.indexOf("?");if(-1!==G?(this.search=O.substr(G),this.query=O.substr(G+1),t&&(this.query=v.parse(this.query)),O=O.slice(0,G)):t&&(this.search="",this.query={}),O&&(this.pathname=O),f[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){L=this.pathname||"";var q=this.search||"";this.path=L+q}return this.href=this.format(),this},a.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||"",a=!1,c="";this.host?a=e+this.host:this.hostname&&(a=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(c=v.stringify(this.query));var i=this.search||c&&"?"+c||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||f[t])&&!1!==a?(a="//"+(a||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):a||(a=""),r&&"#"!==r.charAt(0)&&(r="#"+r),i&&"?"!==i.charAt(0)&&(i="?"+i),t+a+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(i=i.replace("#","%23"))+r},a.prototype.resolve=function(e){return this.resolveObject(O(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if(o.isString(e)){var t=new a;t.parse(e,!1,!0),e=t}for(var n=new a,r=Object.keys(this),c=0;c<r.length;c++){var i=r[c];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 h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.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 p=n.pathname||"",v=n.search||"";n.path=p+v}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var O=n.pathname&&"/"===n.pathname.charAt(0),j=e.host||e.pathname&&"/"===e.pathname.charAt(0),y=j||O||n.host&&e.pathname,_=y,k=n.pathname&&n.pathname.split("/")||[],C=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!f[n.protocol]);if(C&&(n.hostname="",n.port=null,n.host&&(""===k[0]?k[0]=n.host:k.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),y=y&&(""===h[0]||""===k[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,k=h;else if(h.length)k||(k=[]),k.pop(),k=k.concat(h),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(C)n.hostname=n.host=k.shift(),(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.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(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var w=k.slice(-1)[0],E=(n.host||e.host||k.length>1)&&("."===w||".."===w)||""===w,x=0,S=k.length;S>=0;S--)"."===(w=k[S])?k.splice(S,1):".."===w?(k.splice(S,1),x++):x&&(k.splice(S,1),x--);if(!y&&!_)for(;x--;x)k.unshift("..");!y||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),E&&"/"!==k.join("/").substr(-1)&&k.push("");var T,N=""===k[0]||k[0]&&"/"===k[0].charAt(0);C&&(n.hostname=n.host=N?"":k.length?k.shift():"",(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift()));return(y=y||n.host&&k.length)&&!N&&k.unshift(""),k.length?n.pathname=k.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},a.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)}},9: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}))}}); |