Done ! 403WebShell
403Webshell
Server IP : 54.36.91.62  /  Your IP : 216.73.216.38
Web Server : Apache
System : Linux webm008.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : awaywithxm ( 25098)
PHP Version : 7.0.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/awaywithxm/www/wp-content/plugins/gutenberg/build/block-library/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/awaywithxm/www/wp-content/plugins/gutenberg/build/block-library//index.js
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=401)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.compose}()},100:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(45);function o(e,t,n){var o,c;if(void 0===n&&(n={}),"function"==typeof Event)return new Event(t,n);var a=Object(r.a)(e).createEvent("Event");return a.initEvent(t,null===(o=n)||void 0===o?void 0:o.bubbles,null===(c=n)||void 0===c?void 0:c.cancelable),a}},102:function(e,t){!function(){e.exports=this.wp.autop}()},11: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}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l}))},110:function(e,t,n){"use strict";n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return w}));var r=n(11),o=n(43),c=n(42),a=n(61),i=n(8),l=n(62),s=(n(75),n(40)),u=n(49),b=n(53),m=n(70),d=n(72),p=n(76),g=n(45),f=n(81),h=n(93),v=n(50),O="undefined"!=typeof window&&"msCrypto"in window;var j="undefined"!=typeof window&&"msCrypto"in window;function y(e,t,n){var r=Object(s.a)(n);return Object(i.useCallback)((function(n){var o;if(e&&function(e){return!!Object(u.a)(e)&&(!e.metaKey&&"Tab"!==e.key)}(n)){var c=null==t?void 0:t.ref.current;if(c&&(Object(h.a)(c,n.type,n),n.currentTarget.contains(c)))return n.stopPropagation(),void n.preventDefault()}null===(o=r.current)||void 0===o||o.call(r,n)}),[e,t])}function _(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var w=Object(c.a)({name:"Composite",compose:[m.a],useState:v.g,useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{currentId:Object(v.e)(e)})},useProps:function(e,t){var n=t.ref,o=t.onFocus,c=t.onBlur,a=t.onKeyDown,m=t.onKeyUp,d=Object(r.a)(t,["ref","onFocus","onBlur","onKeyDown","onKeyUp"]),h=Object(i.useRef)(null),w=Object(v.d)(e.items,e.currentId),k=Object(i.useRef)(void 0),E=Object(s.a)(o),C=Object(s.a)(c),x=j?function(e){var t=Object(i.useRef)(null);return Object(i.useEffect)((function(){var n=Object(g.a)(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(h):void 0;Object(i.useEffect)((function(){var t=h.current;t&&e.unstable_moves&&!w&&t.focus()}),[e.unstable_moves,w]);var S=y(e.unstable_virtual,w,a),P=y(e.unstable_virtual,w,m),T=Object(i.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o,c=(null==x?void 0:x.current)||t.relatedTarget,a=_(e.items,c);if(Object(u.a)(t)&&!a)return null===(r=E.current)||void 0===r||r.call(E,t),void(null==w||null===(o=w.ref.current)||void 0===o||o.focus());if(a)return void t.stopPropagation()}else if(Object(u.a)(t)){var i;null===(i=e.setCurrentId)||void 0===i||i.call(e,null)}null===(n=E.current)||void 0===n||n.call(E,t)}),[e.unstable_virtual,e.items,w,e.setCurrentId]),B=Object(i.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o=_(e.items,t.target),c=function(e){return O?Object(b.a)(e.target):e.relatedTarget}(t),a=_(e.items,c);if(Object(u.a)(t)&&a)return(null===(r=k.current)||void 0===r?void 0:r.ref.current)&&Object(f.a)(k.current.ref.current,"blur",t),k.current=w,void t.stopPropagation();o?k.current=w:((null==w?void 0:w.ref.current)&&Object(f.a)(w.ref.current,"blur",t),k.current=void 0)}null===(n=C.current)||void 0===n||n.call(C,t)}),[e.unstable_virtual,e.items,w]),z=Object(i.useMemo)((function(){return Object(p.a)({onKeyDown:S,stopPropagation:!0,shouldKeyDown:function(t){return Object(u.a)(t)&&null===e.currentId},keyMap:function(){var t,n="horizontal"!==e.orientation,r="vertical"!==e.orientation,o=!!(null===(t=e.groups)||void 0===t?void 0:t.length),c=e.first&&function(){return e.first()},a=e.last&&function(){return e.last()};return{ArrowUp:(o||n)&&function(){if(o){var t,n=(c=e.items,Object(v.a)(Object(v.b)(Object(v.f)(Object(v.c)(c)))));if(null==n?void 0:n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}var c},ArrowRight:(o||r)&&c,ArrowDown:(o||n)&&c,ArrowLeft:(o||r)&&a,Home:c,End:a,PageUp:c,PageDown:a}}})}),[S,e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return Object(r.b)({ref:Object(l.a)(h,n),id:e.baseId,onFocus:T,onBlur:B,onKeyDown:z,onKeyUp:P,"aria-activedescendant":e.unstable_virtual&&(null==w?void 0:w.id)||void 0},d)},useComposeProps:function(e,t){t=Object(a.a)(e,t,!0);var n=Object(m.a)(e,t,!0);return e.unstable_virtual||null===e.currentId?n:Object(r.b)(Object(r.b)({},t),{},{ref:n.ref})}}),k=Object(o.a)({as:"div",useHook:w,useCreateElement:function(e,t,n){return Object(d.a)(e,t,n)}})},111:function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return y}));var r=n(11),o=n(43),c=n(42),a=n(8),i=n(62),l=(n(75),n(40)),s=n(49),u=n(66),b=n(69),m=n(68),d=n(77),p=n(76),g=n(45),f=n(50),h=n(86),v=n(82),O=n(83);function j(e){return e.querySelector("[data-composite-item-widget]")}var y=Object(c.a)({name:"CompositeItem",compose:[d.a,h.a],useState:f.g,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return d.a.unstable_propsAreEqual(e,t);var n=e.currentId,o=e.unstable_moves,c=Object(r.a)(e,["currentId","unstable_moves"]),a=t.currentId,i=t.unstable_moves,l=Object(r.a)(t,["currentId","unstable_moves"]);if(a!==n){if(t.id===a||t.id===n)return!1}else if(o!==i)return!1;return d.a.unstable_propsAreEqual(c,l)},useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{id:e.id,currentId:Object(f.e)(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,o=t.ref,c=t.tabIndex,d=void 0===c?0:c,f=t.onFocus,h=t.onBlur,y=t.onKeyDown,_=t.onClick,w=Object(r.a)(t,["ref","tabIndex","onFocus","onBlur","onKeyDown","onClick"]),k=Object(a.useRef)(null),E=e.id,C=e.disabled&&!e.focusable,x=e.currentId===E,S=Object(l.a)(x),P=Object(a.useRef)(!1),T=function(e){return Object(a.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),B=Object(l.a)(f),z=Object(l.a)(h),N=Object(l.a)(y),I=Object(l.a)(_),M=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&x||!(null===(n=e.items)||void 0===n?void 0:n.length);Object(a.useEffect)((function(){var t;if(E)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:E,ref:k,disabled:!!C}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,E)}}),[E,C,e.registerItem,e.unregisterItem]),Object(a.useEffect)((function(){var t=k.current;t&&e.unstable_moves&&S.current&&t.focus()}),[e.unstable_moves]);var R=Object(a.useCallback)((function(t){var n,o;if(null===(n=B.current)||void 0===n||n.call(B,t),!t.defaultPrevented&&!Object(b.a)(t)&&E&&!function(e,t){if(Object(s.a)(e))return!1;for(var n,o=Object(r.c)(t);!(n=o()).done;){if(n.value.ref.current===e.target)return!0}return!1}(t,e.items)&&(null===(o=e.setCurrentId)||void 0===o||o.call(e,E),e.unstable_virtual&&e.baseId&&Object(s.a)(t))){var c=t.target,a=Object(g.a)(c).getElementById(e.baseId);a&&(P.current=!0,Object(m.a)(a))}}),[E,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),A=Object(a.useCallback)((function(t){var n;if(e.unstable_virtual&&P.current)return P.current=!1,t.preventDefault(),void t.stopPropagation();null===(n=z.current)||void 0===n||n.call(z,t)}),[e.unstable_virtual]),V=Object(a.useCallback)((function(e){var t;if(null===(t=N.current)||void 0===t||t.call(N,e),Object(s.a)(e)&&1===e.key.length&&" "!==e.key){var n=j(e.currentTarget);if(n&&Object(v.a)(n)){n.focus();var r=e.key;window.requestAnimationFrame((function(){Object(O.a)(n,r)}))}}}),[]),H=Object(a.useMemo)((function(){return Object(p.a)({onKeyDown:V,stopPropagation:!0,shouldKeyDown:s.a,keyMap:function(){var t="horizontal"!==e.orientation,n="vertical"!==e.orientation,r=!!(null==T?void 0:T.groupId),o=function(e){var t=j(e.currentTarget);t&&Object(v.a)(t)&&Object(O.a)(t,"")},c=e.up&&function(){return e.up()},a=e.next&&function(){return e.next()},i=e.down&&function(){return e.down()},l=e.previous&&function(){return e.previous()};return{Delete:o,Backspace:o,ArrowUp:(r||t)&&c,ArrowRight:(r||n)&&a,ArrowDown:(r||t)&&i,ArrowLeft:(r||n)&&l,Home:function(t){var n,o;!r||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(o=e.previous)||void 0===o||o.call(e,!0)},End:function(t){var n,o;!r||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(o=e.next)||void 0===o||o.call(e,!0)},PageUp:function(){var t,n;r?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;r?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}}})}),[V,e.orientation,T,e.up,e.next,e.down,e.previous,e.first,e.last]),L=Object(a.useCallback)((function(e){var t;if(null===(t=I.current)||void 0===t||t.call(I,e),!e.defaultPrevented){var n=j(e.currentTarget);n&&!Object(u.a)(n)&&n.focus()}}),[]);return Object(r.b)({ref:Object(i.a)(k,o),id:E,tabIndex:M?d:-1,"aria-selected":!(!e.unstable_virtual||!x)||void 0,onFocus:R,onBlur:A,onKeyDown:H,onClick:L},w)}}),_=Object(o.a)({as:"button",memo:!0,useHook:y})},116:function(e,t,n){var r;!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 c=typeof o;"string"===c?function(e,t){for(var n=t.split(r),o=n.length,c=0;c<o;++c)e[n[c]]=!0}(e,o):Array.isArray(o)?t(e,o):"object"===c?function(e,t){for(var r in t)n.call(t,r)&&(e[r]=!!t[r])}(e,o):"number"===c&&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 c=new e;t(c,r);var a=[];for(var i in c)c[i]&&a.push(i);return a.join(" ")}}();e.exports?e.exports=n:void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()},12:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},127:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 11.9l3.3-3.4-1.1-1-3.2 3.3-3.2-3.3-1.1 1 3.3 3.4-3.5 3.6 1 1L12 13l3.5 3.5 1-1z"}));t.a=c},129:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=c},13:function(e,t){!function(){e.exports=this.wp.keycodes}()},144: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}function o(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,i=void 0===n?24:n,l=o(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:i,height:i},l))}},156:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=c},17:function(e,t){!function(){e.exports=this.wp.richText}()},18:function(e,t){!function(){e.exports=this.wp.url}()},189:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=c},192:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=c},2:function(e,t){!function(){e.exports=this.lodash}()},200:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=c},213:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=c},214:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=c},215:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=c},217:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M16 4h2v9H7v3l-5-4 5-4v3h9V4z"}));t.a=c},218:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=c},219:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=c},23:function(e,t){!function(){e.exports=this.wp.dom}()},268:function(e,t,n){e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}return function(){function n(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n)}var r,o,c;return r=n,(o=[{key:"getColorAsync",value:function(e,t,n){e.complete?t.call(e,this.getColor(e,n),n&&n.data):this._bindImageEvents(e,t,n)}},{key:"getColor",value:function(e,t){t=t||{};var n=this._getDefaultColor(t),r=this._getOriginalSize(e),o=this._prepareSizeAndPosition(r,t),c=null,a=n;if(!(o.srcWidth&&o.srcHeight&&o.destWidth&&o.destHeight))return this._prepareResult(n,new Error("FastAverageColor: Incorrect sizes."));if(!this._ctx&&(this._canvas=this._makeCanvas(),this._ctx=this._canvas.getContext&&this._canvas.getContext("2d"),!this._ctx))return this._prepareResult(n,new Error("FastAverageColor: Canvas Context 2D is not supported in this browser."));this._canvas.width=o.destWidth,this._canvas.height=o.destHeight;try{this._ctx.clearRect(0,0,o.destWidth,o.destHeight),this._ctx.drawImage(e,o.srcLeft,o.srcTop,o.srcWidth,o.srcHeight,0,0,o.destWidth,o.destHeight);var i=this._ctx.getImageData(0,0,o.destWidth,o.destHeight).data;a=this.getColorFromArray4(i,t)}catch(e){c=e}return this._prepareResult(a,c)}},{key:"getColorFromArray4",value:function(e,t){t=t||{};var n=e.length;if(n<4)return this._getDefaultColor(t);var r=n-n%4,o=4*(t.step||1),c="_"+(t.algorithm||"sqrt")+"Algorithm";if("function"!=typeof this[c])throw new Error("FastAverageColor: ".concat(t.algorithm," is unknown algorithm."));return this[c](e,r,o)}},{key:"destroy",value:function(){delete this._canvas,delete this._ctx}},{key:"_getDefaultColor",value:function(e){return this._getOption(e,"defaultColor",[255,255,255,255])}},{key:"_getOption",value:function(e,t,n){return void 0===e[t]?n:e[t]}},{key:"_prepareSizeAndPosition",value:function(e,t){var n,r=this._getOption(t,"left",0),o=this._getOption(t,"top",0),c=this._getOption(t,"width",e.width),a=this._getOption(t,"height",e.height),i=c,l=a;return"precision"===t.mode||(c>a?(n=c/a,i=100,l=Math.round(i/n)):(n=a/c,l=100,i=Math.round(l/n)),(i>c||l>a||i<10||l<10)&&(i=c,l=a)),{srcLeft:r,srcTop:o,srcWidth:c,srcHeight:a,destWidth:i,destHeight:l}}},{key:"_simpleAlgorithm",value:function(e,t,n){for(var r=0,o=0,c=0,a=0,i=0,l=0;l<t;l+=n){var s=e[l+3];r+=e[l]*s,o+=e[l+1]*s,c+=e[l+2]*s,a+=s,i++}return a?[Math.round(r/a),Math.round(o/a),Math.round(c/a),Math.round(a/i)]:[0,0,0,0]}},{key:"_sqrtAlgorithm",value:function(e,t,n){for(var r=0,o=0,c=0,a=0,i=0,l=0;l<t;l+=n){var s=e[l],u=e[l+1],b=e[l+2],m=e[l+3];r+=s*s*m,o+=u*u*m,c+=b*b*m,a+=m,i++}return a?[Math.round(Math.sqrt(r/a)),Math.round(Math.sqrt(o/a)),Math.round(Math.sqrt(c/a)),Math.round(a/i)]:[0,0,0,0]}},{key:"_dominantAlgorithm",value:function(e,n,r){for(var o={},c=0;c<n;c+=r){var a=e[c],i=e[c+1],l=e[c+2],s=e[c+3],u=Math.round(a/24)+","+Math.round(i/24)+","+Math.round(l/24);o[u]?o[u]=[o[u][0]+a*s,o[u][1]+i*s,o[u][2]+l*s,o[u][3]+s,o[u][4]+1]:o[u]=[a*s,i*s,l*s,s,1]}var b=t(Object.keys(o).map((function(e){return o[e]})).sort((function(e,t){var n=e[4],r=t[4];return n>r?-1:n===r?0:1}))[0],5),m=b[0],d=b[1],p=b[2],g=b[3],f=b[4];return g?[Math.round(m/g),Math.round(d/g),Math.round(p/g),Math.round(g/f)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,n){var r=this,o=(n=n||{})&&n.data,c=this._getDefaultColor(n),a=function(){s(),t.call(e,r.getColor(e,n),o)},i=function(){s(),t.call(e,r._prepareResult(c,new Error("Image error")),o)},l=function(){s(),t.call(e,r._prepareResult(c,new Error("Image abort")),o)},s=function(){e.removeEventListener("load",a),e.removeEventListener("error",i),e.removeEventListener("abort",l)};e.addEventListener("load",a),e.addEventListener("error",i),e.addEventListener("abort",l)}},{key:"_prepareResult",value:function(e,t){var n=e.slice(0,3),r=[].concat(n,e[3]/255),o=this._isDark(e);return{error:t,value:e,rgb:"rgb("+n.join(",")+")",rgba:"rgba("+r.join(",")+")",hex:this._arrayToHex(n),hexa:this._arrayToHex(e),isDark:o,isLight:!o}}},{key:"_getOriginalSize",value:function(e){return e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}},{key:"_toHex",value:function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}},{key:"_arrayToHex",value:function(e){return"#"+e.map(this._toHex).join("")}},{key:"_isDark",value:function(e){return(299*e[0]+587*e[1]+114*e[2])/1e3<128}},{key:"_makeCanvas",value:function(){return"undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")}}])&&e(r.prototype,o),c&&e(r,c),n}()}()},287:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},288:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=c},289:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=c},290:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=c},3:function(e,t){!function(){e.exports=this.wp.components}()},300:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));t.a=c},301:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));t.a=c},302:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));t.a=c},31:function(e,t){!function(){e.exports=this.wp.deprecated}()},33:function(e,t){!function(){e.exports=this.wp.apiFetch}()},34:function(e,t){!function(){e.exports=this.wp.coreData}()},38: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}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return l}))},4:function(e,t){!function(){e.exports=this.wp.data}()},40:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(8),o=n(52);function c(e){var t=Object(r.useRef)(e);return Object(o.a)((function(){t.current=e})),t}},401:function(e,t,n){"use strict";n.r(t),n.d(t,"__experimentalGetCoreBlocks",(function(){return xp})),n.d(t,"registerCoreBlocks",(function(){return Sp})),n.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return Pp}));var r={};n.r(r),n.d(r,"metadata",(function(){return Ze})),n.d(r,"name",(function(){return Ke})),n.d(r,"settings",(function(){return $e}));var o={};n.r(o),n.d(o,"metadata",(function(){return on})),n.d(o,"name",(function(){return cn})),n.d(o,"settings",(function(){return an}));var c={};n.r(c),n.d(c,"metadata",(function(){return kn})),n.d(c,"name",(function(){return En})),n.d(c,"settings",(function(){return Cn}));var a={};n.r(a),n.d(a,"metadata",(function(){return Dn})),n.d(a,"name",(function(){return Fn})),n.d(a,"settings",(function(){return Gn}));var i={};n.r(i),n.d(i,"metadata",(function(){return Er})),n.d(i,"name",(function(){return Cr})),n.d(i,"settings",(function(){return xr}));var l={};n.r(l),n.d(l,"metadata",(function(){return Br})),n.d(l,"name",(function(){return zr})),n.d(l,"settings",(function(){return Nr}));var s={};n.r(s),n.d(s,"metadata",(function(){return Hr})),n.d(s,"name",(function(){return Lr})),n.d(s,"settings",(function(){return Dr}));var u={};n.r(u),n.d(u,"metadata",(function(){return ho})),n.d(u,"name",(function(){return vo})),n.d(u,"settings",(function(){return Oo}));var b={};n.r(b),n.d(b,"metadata",(function(){return ko})),n.d(b,"name",(function(){return Eo})),n.d(b,"settings",(function(){return Co}));var m={};n.r(m),n.d(m,"metadata",(function(){return No})),n.d(m,"name",(function(){return Io})),n.d(m,"settings",(function(){return Mo}));var d={};n.r(d),n.d(d,"metadata",(function(){return Vo})),n.d(d,"name",(function(){return Ho})),n.d(d,"settings",(function(){return Lo}));var p={};n.r(p),n.d(p,"metadata",(function(){return qo})),n.d(p,"name",(function(){return Wo})),n.d(p,"settings",(function(){return Zo}));var g={};n.r(g),n.d(g,"metadata",(function(){return gc})),n.d(g,"name",(function(){return fc})),n.d(g,"settings",(function(){return hc}));var f={};n.r(f),n.d(f,"metadata",(function(){return wc})),n.d(f,"name",(function(){return kc})),n.d(f,"settings",(function(){return Ec}));var h={};n.r(h),n.d(h,"metadata",(function(){return ea})),n.d(h,"name",(function(){return ta})),n.d(h,"settings",(function(){return na}));var v={};n.r(v),n.d(v,"metadata",(function(){return Va})),n.d(v,"name",(function(){return Ha})),n.d(v,"settings",(function(){return La}));var O={};n.r(O),n.d(O,"metadata",(function(){return qa})),n.d(O,"name",(function(){return Wa})),n.d(O,"settings",(function(){return Za}));var j={};n.r(j),n.d(j,"metadata",(function(){return Ja})),n.d(j,"name",(function(){return Qa})),n.d(j,"settings",(function(){return Ya}));var y={};n.r(y),n.d(y,"metadata",(function(){return Oi})),n.d(y,"name",(function(){return ji})),n.d(y,"settings",(function(){return yi}));var _={};n.r(_),n.d(_,"justifyLeftIcon",(function(){return Ei})),n.d(_,"justifyCenterIcon",(function(){return Ci})),n.d(_,"justifyRightIcon",(function(){return xi}));var w={};n.r(w),n.d(w,"metadata",(function(){return Fi})),n.d(w,"name",(function(){return Gi})),n.d(w,"settings",(function(){return Ui}));var k={};n.r(k),n.d(k,"metadata",(function(){return il})),n.d(k,"name",(function(){return ll})),n.d(k,"settings",(function(){return sl}));var E={};n.r(E),n.d(E,"metadata",(function(){return bl})),n.d(E,"name",(function(){return ml})),n.d(E,"settings",(function(){return dl}));var C={};n.r(C),n.d(C,"metadata",(function(){return El})),n.d(C,"name",(function(){return Cl})),n.d(C,"settings",(function(){return xl}));var x={};n.r(x),n.d(x,"metadata",(function(){return ql})),n.d(x,"name",(function(){return Wl})),n.d(x,"settings",(function(){return Zl}));var S={};n.r(S),n.d(S,"metadata",(function(){return $l})),n.d(S,"name",(function(){return Jl})),n.d(S,"settings",(function(){return Ql}));var P={};n.r(P),n.d(P,"metadata",(function(){return ts})),n.d(P,"name",(function(){return ns})),n.d(P,"settings",(function(){return rs}));var T={};n.r(T),n.d(T,"metadata",(function(){return as})),n.d(T,"name",(function(){return is})),n.d(T,"settings",(function(){return ls}));var B={};n.r(B),n.d(B,"metadata",(function(){return bs})),n.d(B,"name",(function(){return ms})),n.d(B,"settings",(function(){return ds}));var z={};n.r(z),n.d(z,"metadata",(function(){return xs})),n.d(z,"name",(function(){return Ss})),n.d(z,"settings",(function(){return Ps}));var N={};n.r(N),n.d(N,"metadata",(function(){return Bs})),n.d(N,"name",(function(){return zs})),n.d(N,"settings",(function(){return Ns}));var I={};n.r(I),n.d(I,"metadata",(function(){return Ms})),n.d(I,"name",(function(){return Rs})),n.d(I,"settings",(function(){return As}));var M={};n.r(M),n.d(M,"metadata",(function(){return Ws})),n.d(M,"name",(function(){return Zs})),n.d(M,"settings",(function(){return Ks}));var R={};n.r(R),n.d(R,"metadata",(function(){return nu})),n.d(R,"name",(function(){return ru})),n.d(R,"settings",(function(){return ou}));var A={};n.r(A),n.d(A,"metadata",(function(){return su})),n.d(A,"name",(function(){return uu})),n.d(A,"settings",(function(){return bu}));var V={};n.r(V),n.d(V,"metadata",(function(){return fu})),n.d(V,"name",(function(){return hu})),n.d(V,"settings",(function(){return vu}));var H={};n.r(H),n.d(H,"metadata",(function(){return yu})),n.d(H,"name",(function(){return _u})),n.d(H,"settings",(function(){return wu}));var L={};n.r(L),n.d(L,"metadata",(function(){return xu})),n.d(L,"name",(function(){return Su})),n.d(L,"settings",(function(){return Pu}));var D={};n.r(D),n.d(D,"metadata",(function(){return ib})),n.d(D,"name",(function(){return lb})),n.d(D,"settings",(function(){return sb}));var F={};n.r(F),n.d(F,"metadata",(function(){return bb})),n.d(F,"name",(function(){return mb})),n.d(F,"settings",(function(){return db}));var G={};n.r(G),n.d(G,"metadata",(function(){return hb})),n.d(G,"name",(function(){return vb})),n.d(G,"settings",(function(){return Ob}));var U={};n.r(U),n.d(U,"metadata",(function(){return Rb})),n.d(U,"name",(function(){return Ab})),n.d(U,"settings",(function(){return Vb}));var q={};n.r(q),n.d(q,"metadata",(function(){return Lb})),n.d(q,"name",(function(){return Db})),n.d(q,"settings",(function(){return Fb}));var W={};n.r(W),n.d(W,"metadata",(function(){return Kb})),n.d(W,"name",(function(){return $b})),n.d(W,"settings",(function(){return Jb}));var Z={};n.r(Z),n.d(Z,"metadata",(function(){return em})),n.d(Z,"name",(function(){return tm})),n.d(Z,"settings",(function(){return nm}));var K={};n.r(K),n.d(K,"metadata",(function(){return im})),n.d(K,"name",(function(){return lm})),n.d(K,"settings",(function(){return sm}));var $={};n.r($),n.d($,"metadata",(function(){return gm})),n.d($,"name",(function(){return fm})),n.d($,"settings",(function(){return hm}));var J={};n.r(J),n.d(J,"metadata",(function(){return Om})),n.d(J,"name",(function(){return jm})),n.d(J,"settings",(function(){return ym}));var Q={};n.r(Q),n.d(Q,"metadata",(function(){return km})),n.d(Q,"name",(function(){return Em})),n.d(Q,"settings",(function(){return Cm}));var Y={};n.r(Y),n.d(Y,"metadata",(function(){return qm})),n.d(Y,"name",(function(){return Wm})),n.d(Y,"settings",(function(){return Zm}));var X={};n.r(X),n.d(X,"metadata",(function(){return ad})),n.d(X,"name",(function(){return id})),n.d(X,"settings",(function(){return ld})),n.d(X,"useQueryContext",(function(){return Xm}));var ee={};n.r(ee),n.d(ee,"metadata",(function(){return bd})),n.d(ee,"name",(function(){return md})),n.d(ee,"settings",(function(){return dd}));var te={};n.r(te),n.d(te,"metadata",(function(){return pd})),n.d(te,"name",(function(){return gd})),n.d(te,"settings",(function(){return fd}));var ne={};n.r(ne),n.d(ne,"metadata",(function(){return hd})),n.d(ne,"name",(function(){return vd})),n.d(ne,"settings",(function(){return Od}));var re={};n.r(re),n.d(re,"metadata",(function(){return _d})),n.d(re,"name",(function(){return wd})),n.d(re,"settings",(function(){return kd}));var oe={};n.r(oe),n.d(oe,"metadata",(function(){return xd})),n.d(oe,"name",(function(){return Sd})),n.d(oe,"settings",(function(){return Pd}));var ce={};n.r(ce),n.d(ce,"metadata",(function(){return Bd})),n.d(ce,"name",(function(){return zd})),n.d(ce,"settings",(function(){return Nd}));var ae={};n.r(ae),n.d(ae,"metadata",(function(){return Md})),n.d(ae,"name",(function(){return Rd})),n.d(ae,"settings",(function(){return Ad}));var ie={};n.r(ie),n.d(ie,"metadata",(function(){return Vd})),n.d(ie,"name",(function(){return Hd})),n.d(ie,"settings",(function(){return Ld}));var le={};n.r(le),n.d(le,"metadata",(function(){return Fd})),n.d(le,"name",(function(){return Gd})),n.d(le,"settings",(function(){return Ud}));var se={};n.r(se),n.d(se,"metadata",(function(){return Zd})),n.d(se,"name",(function(){return Kd})),n.d(se,"settings",(function(){return $d}));var ue={};n.r(ue),n.d(ue,"metadata",(function(){return Qd})),n.d(ue,"name",(function(){return Yd})),n.d(ue,"settings",(function(){return Xd}));var be={};n.r(be),n.d(be,"metadata",(function(){return tp})),n.d(be,"name",(function(){return np})),n.d(be,"settings",(function(){return rp}));var me={};n.r(me),n.d(me,"metadata",(function(){return op})),n.d(me,"name",(function(){return cp})),n.d(me,"settings",(function(){return ap}));var de={};n.r(de),n.d(de,"metadata",(function(){return sp})),n.d(de,"name",(function(){return up})),n.d(de,"settings",(function(){return bp}));var pe={};n.r(pe),n.d(pe,"metadata",(function(){return gp})),n.d(pe,"name",(function(){return fp})),n.d(pe,"settings",(function(){return hp}));var ge={};n.r(ge),n.d(ge,"metadata",(function(){return Op})),n.d(ge,"name",(function(){return jp})),n.d(ge,"settings",(function(){return yp}));var fe={};function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ve(e,t){if(e){if("string"==typeof e)return he(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(e,t):void 0}}function Oe(e){return function(e){if(Array.isArray(e))return he(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ve(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(fe),n.d(fe,"metadata",(function(){return _p})),n.d(fe,"name",(function(){return kp})),n.d(fe,"settings",(function(){return Ep}));var ye=n(34),_e=(n(78),n(5)),we=(n(96),n(9)),ke=n(2),Ee=n(1),Ce=n(0),xe=n(6),Se=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"})),Pe=n(7),Te=n.n(Pe);function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ne={className:!1},Ie={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},fontSize:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]},style:{type:"object"}},Me=function(e){if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;var t={};return(e.customTextColor||e.customBackgroundColor)&&(t.color={}),e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customFontSize&&(t.typography={fontSize:e.customFontSize}),ze(ze({},Object(ke.omit)(e,["customTextColor","customBackgroundColor","customFontSize"])),{},{style:t})},Re=[{supports:Ne,attributes:ze(ze({},Object(ke.omit)(Ie,["style"])),{},{customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}}),migrate:Me,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,c=n.dropCap,a=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=n.fontSize,b=n.customFontSize,m=n.direction,d=Object(_e.getColorClassName)("color",i),p=Object(_e.getColorClassName)("background-color",a),g=Object(_e.getFontSizeClass)(u),f=Te()((je(t={"has-text-color":i||s,"has-background":a||l,"has-drop-cap":c},"has-text-align-".concat(r),r),je(t,g,g),je(t,d,d),je(t,p,p),t)),h={backgroundColor:p?void 0:l,color:d?void 0:s,fontSize:g?void 0:b};return Object(Ce.createElement)(_e.RichText.Content,{tagName:"p",style:h,className:f||void 0,value:o,dir:m})}},{supports:Ne,attributes:ze(ze({},Object(ke.omit)(Ie,["style"])),{},{customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}}),migrate:Me,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,c=n.dropCap,a=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=n.fontSize,b=n.customFontSize,m=n.direction,d=Object(_e.getColorClassName)("color",i),p=Object(_e.getColorClassName)("background-color",a),g=Object(_e.getFontSizeClass)(u),f=Te()((je(t={"has-text-color":i||s,"has-background":a||l,"has-drop-cap":c},g,g),je(t,d,d),je(t,p,p),t)),h={backgroundColor:p?void 0:l,color:d?void 0:s,fontSize:g?void 0:b,textAlign:r};return Object(Ce.createElement)(_e.RichText.Content,{tagName:"p",style:h,className:f||void 0,value:o,dir:m})}},{supports:Ne,attributes:ze(ze({},Object(ke.omit)(Ie,["style"])),{},{customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}}),migrate:Me,save:function(e){var t,n=e.attributes,r=n.width,o=n.align,c=n.content,a=n.dropCap,i=n.backgroundColor,l=n.textColor,s=n.customBackgroundColor,u=n.customTextColor,b=n.fontSize,m=n.customFontSize,d=Object(_e.getColorClassName)("color",l),p=Object(_e.getColorClassName)("background-color",i),g=b&&"is-".concat(b,"-text"),f=Te()((je(t={},"align".concat(r),r),je(t,"has-background",i||s),je(t,"has-drop-cap",a),je(t,g,g),je(t,d,d),je(t,p,p),t)),h={backgroundColor:p?void 0:s,color:d?void 0:u,fontSize:g?void 0:m,textAlign:o};return Object(Ce.createElement)(_e.RichText.Content,{tagName:"p",style:h,className:f||void 0,value:c})}},{supports:Ne,attributes:Object(ke.omit)(ze(ze({},Ie),{},{fontSize:{type:"number"}}),["style"]),save:function(e){var t,n=e.attributes,r=n.width,o=n.align,c=n.content,a=n.dropCap,i=n.backgroundColor,l=n.textColor,s=n.fontSize,u=Te()((je(t={},"align".concat(r),r),je(t,"has-background",i),je(t,"has-drop-cap",a),t)),b={backgroundColor:i,color:l,fontSize:s,textAlign:o};return Object(Ce.createElement)("p",{style:b,className:u||void 0},c)},migrate:function(e){return Me(Object(ke.omit)(ze(ze({},e),{},{customFontSize:Object(ke.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})))}},{supports:Ne,attributes:ze(ze({},Ie),{},{content:{type:"string",source:"html",default:""}}),save:function(e){var t=e.attributes;return Object(Ce.createElement)(Ce.RawHTML,null,t.content)},migrate:function(e){return e}}];function Ae(){return(Ae=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)}function Ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}}(e,t)||ve(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var He=n(3),Le=n(4),De=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Ce.createElement)(xe.Path,{d:"M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z"}));function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ue(e){var t=e.direction,n=e.setDirection;return Object(Le.useSelect)((function(e){return!!e("core/block-editor").getSettings().isRTL}),[])&&Object(Ce.createElement)(He.ToolbarGroup,{controls:[{icon:De,title:Object(Ee._x)("Left to right","editor button"),isActive:"ltr"===t,onClick:function(){n("ltr"===t?void 0:"ltr")}}]})}var qe=function(e){var t=e.attributes,n=e.mergeBlocks,r=e.onReplace,o=e.onRemove,c=e.setAttributes,a=t.align,i=t.content,l=t.direction,s=t.dropCap,u=t.placeholder,b=t.fontSize,m=t.style,d=Object(_e.__experimentalUseEditorFeature)("typography.dropCap"),p=Object(Ce.useRef)(),g=null==m?void 0:m.fontSize,f=Object(Le.useSelect)((function(e){var t=e("core/block-editor").getSettings().fontSizes;return Object(_e.getFontSize)(t,b,g).size}),[b,g]),h=function(e,t,n){var r=Ve(Object(Ce.useState)(),2),o=r[0],c=r[1];return Object(Ce.useEffect)((function(){var n,r;t?c():c((n=e.current,r="first-letter",n.ownerDocument.defaultView.getComputedStyle(n,r)).lineHeight)}),[t].concat(Oe(n))),o}(p,!(d&&s),[f]),v=Object(_e.useBlockProps)({ref:p,className:Te()(je({"has-drop-cap":s},"has-text-align-".concat(a),a)),style:{direction:l,minHeight:h}});return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.AlignmentToolbar,{value:a,onChange:function(e){return c({align:e})}}),Object(Ce.createElement)(Ue,{direction:l,setDirection:function(e){return c({direction:e})}})),d&&Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Text settings")},Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Drop cap"),checked:!!s,onChange:function(){return c({dropCap:!s})},help:s?Object(Ee.__)("Showing large initial letter."):Object(Ee.__)("Toggle to show a large initial letter.")}))),Object(Ce.createElement)(_e.RichText,Ae({identifier:"content",tagName:"p"},v,{value:i,onChange:function(e){return c({content:e})},onSplit:function(e){return e?Object(we.createBlock)("core/paragraph",Ge(Ge({},t),{},{content:e})):Object(we.createBlock)("core/paragraph")},onMerge:n,onReplace:r,onRemove:o,"aria-label":i?Object(Ee.__)("Paragraph block"):Object(Ee.__)("Empty block; start writing or type forward slash to choose a block"),placeholder:u||Object(Ee.__)("Start writing or type / to choose a block"),__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})))};var We={from:[{type:"raw",priority:20,selector:"p",schema:function(e){return{p:{children:e.phrasingContentSchema,attributes:e.isPaste?[]:["style","id"]}}},transform:function(e){var t=Object(we.getBlockAttributes)("core/paragraph",e.outerHTML),n=(e.style||{}).textAlign;return"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),Object(we.createBlock)("core/paragraph",t)}}]},Ze={apiVersion:2,name:"core/paragraph",category:"text",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:"p",__unstablePasteTextInline:!0}},Ke=Ze.name,$e={title:Object(Ee.__)("Paragraph"),description:Object(Ee.__)("Start with the building block of all narrative."),icon:Se,keywords:[Object(Ee.__)("text")],example:{attributes:{content:Object(Ee.__)("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."),style:{typography:{fontSize:28}},dropCap:!0}},__experimentalLabel:function(e,t){if("accessibility"===t.context){var n=e.content;return Object(ke.isEmpty)(n)?Object(Ee.__)("Empty"):n}},transforms:We,deprecated:Re,merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},edit:qe,save:function(e){var t=e.attributes,n=t.align,r=t.content,o=t.dropCap,c=t.direction,a=Te()(je({"has-drop-cap":o},"has-text-align-".concat(n),n));return Object(Ce.createElement)("p",_e.useBlockProps.save({className:a,dir:c}),Object(Ce.createElement)(_e.RichText.Content,{value:r}))}},Je=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),Qe={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"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},Ye=[{attributes:Qe,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,c=n.caption,a=n.align,i=n.href,l=n.width,s=n.height,u=n.id,b=Te()((je(t={},"align".concat(a),a),je(t,"is-resized",l||s),t)),m=Object(Ce.createElement)("img",{src:r,alt:o,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(Ce.createElement)("figure",{className:b},i?Object(Ce.createElement)("a",{href:i},m):m,!_e.RichText.isEmpty(c)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"figcaption",value:c}))}},{attributes:Qe,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=t.id,u=Object(Ce.createElement)("img",{src:n,alt:r,className:s?"wp-image-".concat(s):null,width:i,height:l});return Object(Ce.createElement)("figure",{className:c?"align".concat(c):null},a?Object(Ce.createElement)("a",{href:a},u):u,!_e.RichText.isEmpty(o)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:Qe,save:function(e){var t=e.attributes,n=t.url,r=t.alt,o=t.caption,c=t.align,a=t.href,i=t.width,l=t.height,s=i||l?{width:i,height:l}:{},u=Object(Ce.createElement)("img",Ae({src:n,alt:r},s)),b={};return i?b={width:i}:"left"!==c&&"right"!==c||(b={maxWidth:"50%"}),Object(Ce.createElement)("figure",{className:c?"align".concat(c):null,style:b},a?Object(Ce.createElement)("a",{href:a},u):u,!_e.RichText.isEmpty(o)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"figcaption",value:o}))}}],Xe=n(41),et=n(10),tt=n(18),nt=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M17.5 7v8H19V7c0-1.1-.9-2-2-2H9v1.5h8c.3 0 .5.2.5.5zM7 17.5c-.3 0-.5-.2-.5-.5V1H5v4H1v1.5h4V17c0 1.1.9 2 2 2h10.5v4H19v-4h4v-1.5H7z"})),rt=n(218),ot=[{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"}],ct=n(116),at=n.n(ct),it=n(65),lt=n.n(it);function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bt=function(e){var t;return null===(t=Object(we.getBlockVariations)("core/embed"))||void 0===t?void 0:t.find((function(t){var n=t.patterns;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))}(e,n)}))},mt=function(e){return e&&e.includes('class="wp-embedded-content"')},dt=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.preview,o=e.attributes,c=(o=void 0===o?{}:o).url,a=o.providerNameSlug,i=o.type;if(c&&Object(we.getBlockType)("core/embed")){var l=bt(c),s="wordpress"===a||"wp-embed"===i,u=!s&&l&&(l.attributes.providerNameSlug!==a||!a);if(u)return Object(we.createBlock)("core/embed",ut({url:c},l.attributes));var b=null===(t=Object(we.getBlockVariations)("core/embed"))||void 0===t?void 0:t.find((function(e){return"wordpress"===e.name}));if(b&&r&&mt(r.html)&&!s)return Object(we.createBlock)("core/embed",ut(ut({url:c},b.attributes),n))}},pt=function(e){var t=ot.reduce((function(e,t){return e[t.className]=!1,e}),{"wp-has-aspect-ratio":!1});return at()(e,t)};function gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!n)return pt(t);var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var o=r.body.querySelector("iframe");if(o&&o.height&&o.width)for(var c=(o.width/o.height).toFixed(2),a=0;a<ot.length;a++){var i=ot[a];if(c>=i.ratio)return at()(pt(t),i.className,"wp-has-aspect-ratio")}return t}var ft=lt()((function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var c={},a=e.type,i=void 0===a?"rich":a,l=e.html,s=e.provider_name,u=Object(ke.kebabCase)((s||t).toLowerCase());return mt(l)&&(i="wp-embed"),(l||"photo"===i)&&(c.type=i,c.providerNameSlug=u),c.className=gt(l,n,r&&o),c}));function ht(e,t){var n=Ve(Object(Ce.useState)(),2),r=n[0],o=n[1];function c(){o(e.current.clientWidth)}return Object(Ce.useEffect)(c,t),Object(Ce.useEffect)((function(){var t=e.current.ownerDocument.defaultView;return t.addEventListener("resize",c),function(){t.removeEventListener("resize",c)}}),[]),r}var vt=function(e,t){return(vt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var Ot=function(){return(Ot=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var jt=n(8),yt=n.n(jt);function _t(e,t,n,r){void 0===r&&(r=0);var o=Nt(e,t,r),c=o.width,a=o.height;return e>=t*n&&c>t*n?{width:t*n,height:t}:c>t*n?{width:e,height:e/n}:c>a*n?{width:a*n,height:a}:{width:c,height:c/n}}function wt(e,t,n,r,o){void 0===o&&(o=0);var c=Nt(t.width,t.height,o),a=c.width,i=c.height;return{x:kt(e.x,a,n.width,r),y:kt(e.y,i,n.height,r)}}function kt(e,t,n,r){var o=t*r/2-n/2;return Math.min(o,Math.max(e,-o))}function Et(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function Ct(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function xt(e,t,n,r,o,c,a){void 0===c&&(c=0),void 0===a&&(a=!0);var i=a&&0===c?St:Pt,l={x:i(100,((t.width-n.width/o)/2-e.x/o)/t.width*100),y:i(100,((t.height-n.height/o)/2-e.y/o)/t.height*100),width:i(100,n.width/t.width*100/o),height:i(100,n.height/t.height*100/o)},s=Math.round(i(t.naturalWidth,l.width*t.naturalWidth/100)),u=Math.round(i(t.naturalHeight,l.height*t.naturalHeight/100)),b=t.naturalWidth>=t.naturalHeight*r?{width:Math.round(u*r),height:u}:{width:s,height:Math.round(s/r)};return{croppedAreaPercentages:l,croppedAreaPixels:Ot(Ot({},b),{x:Math.round(i(t.naturalWidth-b.width,l.x*t.naturalWidth/100)),y:Math.round(i(t.naturalHeight-b.height,l.y*t.naturalHeight/100))})}}function St(e,t){return Math.min(e,Math.max(0,t))}function Pt(e,t){return t}function Tt(e,t,n){var r=t.width/t.naturalWidth,o=function(e,t,n){var r=t.width/t.naturalWidth;if(n)return n.height>n.width?n.height/r/e.height:n.width/r/e.width;var o=e.width/e.height;return t.naturalWidth>=t.naturalHeight*o?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,n),c=r*o;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*c,y:((t.naturalHeight-e.height)/2-e.y)*c},zoom:o}}function Bt(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function zt(e,t,n,r,o){var c=Math.cos,a=Math.sin,i=o*Math.PI/180;return[(e-n)*c(i)-(t-r)*a(i)+n,(e-n)*a(i)+(t-r)*c(i)+r]}function Nt(e,t,n){var r=e/2,o=t/2,c=[zt(0,0,r,o,n),zt(e,0,r,o,n),zt(e,t,r,o,n),zt(0,t,r,o,n)],a=Math.min.apply(Math,c.map((function(e){return e[0]}))),i=Math.max.apply(Math,c.map((function(e){return e[0]}))),l=Math.min.apply(Math,c.map((function(e){return e[1]})));return{width:i-a,height:Math.max.apply(Math,c.map((function(e){return e[1]})))-l}}function It(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return"string"==typeof e&&e.length>0})).join(" ").trim()}var Mt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.imageRef=null,n.videoRef=null,n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.state={cropSize:null,hasWheelJustStarted:!1},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){document.removeEventListener("mousemove",n.onMouseMove),document.removeEventListener("mouseup",n.onDragStopped),document.removeEventListener("touchmove",n.onTouchMove),document.removeEventListener("touchend",n.onDragStopped)},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){n.computeSizes(),n.emitCropData(),n.setInitialCrop(),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(){var e=n.props,t=e.initialCroppedAreaPixels,r=e.cropSize;if(t){var o=Tt(t,n.mediaSize,r),c=o.crop,a=o.zoom;n.props.onCropChange(c),n.props.onZoomChange&&n.props.onZoomChange(a)}},n.computeSizes=function(){var e,t,r,o,c=n.imageRef||n.videoRef;if(c){n.mediaSize={width:c.offsetWidth,height:c.offsetHeight,naturalWidth:(null===(e=n.imageRef)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef)||void 0===t?void 0:t.videoWidth)||0,naturalHeight:(null===(r=n.imageRef)||void 0===r?void 0:r.naturalHeight)||(null===(o=n.videoRef)||void 0===o?void 0:o.videoHeight)||0};var a=n.props.cropSize?n.props.cropSize:_t(c.offsetWidth,c.offsetHeight,n.props.aspect,n.props.rotation);n.setState({cropSize:a},n.recomputeCropPosition)}n.containerRef&&(n.containerRect=n.containerRef.getBoundingClientRect())},n.onMouseDown=function(e){e.preventDefault(),document.addEventListener("mousemove",n.onMouseMove),document.addEventListener("mouseup",n.onDragStopped),n.onDragStart(t.getMousePoint(e))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onTouchStart=function(e){e.preventDefault(),document.addEventListener("touchmove",n.onTouchMove,{passive:!1}),document.addEventListener("touchend",n.onDragStopped),2===e.touches.length?n.onPinchStart(e):1===e.touches.length&&n.onDragStart(t.getTouchPoint(e.touches[0]))},n.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?n.onPinchMove(e):1===e.touches.length&&n.onDrag(t.getTouchPoint(e.touches[0]))},n.onDragStart=function(e){var t,r,o=e.x,c=e.y;n.dragStartPosition={x:o,y:c},n.dragStartCrop=Ot({},n.props.crop),null===(r=(t=n.props).onInteractionStart)||void 0===r||r.call(t)},n.onDrag=function(e){var t=e.x,r=e.y;n.rafDragTimeout&&window.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=window.requestAnimationFrame((function(){if(n.state.cropSize&&void 0!==t&&void 0!==r){var e=t-n.dragStartPosition.x,o=r-n.dragStartPosition.y,c={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+o},a=n.props.restrictPosition?wt(c,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):c;n.props.onCropChange(a)}}))},n.onDragStopped=function(){var e,t;n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){e.preventDefault();var r=t.getMousePoint(e),o=n.props.zoom-e.deltaY*n.props.zoomSpeed/200;n.setNewZoom(o,r),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=n.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=window.setTimeout((function(){return n.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=n.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)},n.getPointOnContainer=function(e){var t=e.x,r=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(t-n.containerRect.left),y:n.containerRect.height/2-(r-n.containerRect.top)}},n.getPointOnMedia=function(e){var t=e.x,r=e.y,o=n.props,c=o.crop,a=o.zoom;return{x:(t+c.x)/a,y:(r+c.y)/a}},n.setNewZoom=function(e,t){if(n.state.cropSize&&n.props.onZoomChange){var r=n.getPointOnContainer(t),o=n.getPointOnMedia(r),c=Math.min(n.props.maxZoom,Math.max(e,n.props.minZoom)),a={x:o.x*c-r.x,y:o.y*c-r.y},i=n.props.restrictPosition?wt(a,n.mediaSize,n.state.cropSize,c,n.props.rotation):a;n.props.onCropChange(i),n.props.onZoomChange(c)}},n.emitCropData=function(){if(n.state.cropSize){var e=xt(n.props.restrictPosition?wt(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition),t=e.croppedAreaPercentages,r=e.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(t,r)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var e=n.props.restrictPosition?wt(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(e),n.emitCropData()}},n}return function(e,t){function n(){this.constructor=e}vt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.computeSizes),this.containerRef&&(this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.preventZoomSafari),this.containerRef.addEventListener("gesturechange",this.preventZoomSafari)),this.props.disableAutomaticStylesInjection||(this.styleRef=document.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.styleRef.innerHTML=".reactEasyCrop_Container {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  overflow: hidden;\n  user-select: none;\n  touch-action: none;\n  cursor: move;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n  max-width: 100%;\n  max-height: 100%;\n  margin: auto;\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_CropArea {\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  box-sizing: border-box;\n  box-shadow: 0 0 0 9999em;\n  color: rgba(0, 0, 0, 0.5);\n  overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n  border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n  content: ' ';\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 0;\n  bottom: 0;\n  left: 33.33%;\n  right: 33.33%;\n  border-top: 0;\n  border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n  content: ' ';\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 33.33%;\n  bottom: 33.33%;\n  left: 0;\n  right: 0;\n  border-left: 0;\n  border-right: 0;\n}\n",document.head.appendChild(this.styleRef)),this.imageRef&&this.imageRef.complete&&this.onMediaLoad()},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.computeSizes),this.containerRef&&(this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.containerRef.removeEventListener("gesturechange",this.preventZoomSafari)),this.styleRef&&this.styleRef.remove(),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()},t.prototype.componentDidUpdate=function(e){e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():e.cropSize!==this.props.cropSize&&this.computeSizes(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=Et(n,r),this.lastPinchRotation=Ct(n,r),this.onDragStart(Bt(n,r))},t.prototype.onPinchMove=function(e){var n=this,r=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]),c=Bt(r,o);this.onDrag(c),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=Et(r,o),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,c),n.lastPinchDistance=e;var a=Ct(r,o),i=n.props.rotation+(a-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(i),n.lastPinchRotation=a}))},t.prototype.render=function(){var e=this,t=this.props,n=t.image,r=t.video,o=t.mediaProps,c=t.crop,a=c.x,i=c.y,l=t.rotation,s=t.zoom,u=t.cropShape,b=t.showGrid,m=t.style,d=m.containerStyle,p=m.cropAreaStyle,g=m.mediaStyle,f=t.classes,h=f.containerClassName,v=f.cropAreaClassName,O=f.mediaClassName;return yt.a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:d,className:It("reactEasyCrop_Container",h)},n?yt.a.createElement("img",Ot({alt:"",className:It("reactEasyCrop_Image",O)},o,{src:n,ref:function(t){return e.imageRef=t},style:Ot(Ot({},g),{transform:"translate("+a+"px, "+i+"px) rotate("+l+"deg) scale("+s+")"}),onLoad:this.onMediaLoad})):r&&yt.a.createElement("video",Ot({autoPlay:!0,loop:!0,muted:!0,className:It("reactEasyCrop_Video",O)},o,{src:r,ref:function(t){return e.videoRef=t},onLoadedMetadata:this.onMediaLoad,style:Ot(Ot({},g),{transform:"translate("+a+"px, "+i+"px) rotate("+l+"deg) scale("+s+")"}),controls:!1})),this.state.cropSize&&yt.a.createElement("div",{style:Ot(Ot({},p),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:It("reactEasyCrop_CropArea","round"===u&&"reactEasyCrop_CropAreaRound",b&&"reactEasyCrop_CropAreaGrid",v)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(yt.a.Component),Rt=n(129),At=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"})),Vt=n(290),Ht=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})),Lt=n(33),Dt=n.n(Lt),Ft={position:"bottom right",isAlternate:!0};function Gt(e){var t=e.aspectRatios,n=e.isDisabled,r=e.label,o=e.onClick,c=e.value;return Object(Ce.createElement)(He.MenuGroup,{label:r},t.map((function(e){var t=e.title,r=e.aspect;return Object(Ce.createElement)(He.MenuItem,{key:r,disabled:n,onClick:function(){o(r)},role:"menuitemradio",isSelected:r===c,icon:r===c?Rt.a:void 0},t)})))}function Ut(e){var t=e.toggleProps,n=e.isDisabled,r=e.onClick,o=e.value,c=e.defaultValue;return Object(Ce.createElement)(He.DropdownMenu,{icon:At,label:Object(Ee.__)("Aspect Ratio"),popoverProps:Ft,toggleProps:t,className:"wp-block-image__aspect-ratio"},(function(e){var t=e.onClose;return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(Gt,{isDisabled:n,onClick:function(e){r(e),t()},value:o,aspectRatios:[{title:Object(Ee.__)("Original"),aspect:c},{title:Object(Ee.__)("Square"),aspect:1}]}),Object(Ce.createElement)(Gt,{label:Object(Ee.__)("Landscape"),isDisabled:n,onClick:function(e){r(e),t()},value:o,aspectRatios:[{title:Object(Ee.__)("16:10"),aspect:1.6},{title:Object(Ee.__)("16:9"),aspect:16/9},{title:Object(Ee.__)("4:3"),aspect:4/3},{title:Object(Ee.__)("3:2"),aspect:1.5}]}),Object(Ce.createElement)(Gt,{label:Object(Ee.__)("Portrait"),isDisabled:n,onClick:function(e){r(e),t()},value:o,aspectRatios:[{title:Object(Ee.__)("10:16"),aspect:.625},{title:Object(Ee.__)("9:16"),aspect:9/16},{title:Object(Ee.__)("3:4"),aspect:3/4},{title:Object(Ee.__)("2:3"),aspect:2/3}]}))}))}function qt(e){var t=e.id,n=e.url,r=e.setAttributes,o=e.naturalWidth,c=e.naturalHeight,a=e.width,i=e.height,l=e.clientWidth,s=e.setIsEditingImage,u=Object(Le.useDispatch)("core/notices").createErrorNotice,b=Ve(Object(Ce.useState)(!1),2),m=b[0],d=b[1],p=Ve(Object(Ce.useState)(null),2),g=p[0],f=p[1],h=Ve(Object(Ce.useState)({x:0,y:0}),2),v=h[0],O=h[1],j=Ve(Object(Ce.useState)(100),2),y=j[0],_=j[1],w=Ve(Object(Ce.useState)(o/c),2),k=w[0],E=w[1],C=Ve(Object(Ce.useState)(0),2),x=C[0],S=C[1],P=Ve(Object(Ce.useState)(),2),T=P[0],B=P[1],z=a,N=i||l*c/o,I=o/c;return x%180==90&&(N=l*o/c,I=c/o),Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)("div",{className:Te()("wp-block-image__crop-area",{"is-applying":m}),style:{width:z,height:N}},Object(Ce.createElement)(Mt,{image:T||n,disabled:m,minZoom:1,maxZoom:3,crop:v,zoom:y/100,aspect:k,onCropChange:O,onCropComplete:function(e){f(e)},onZoomChange:function(e){_(100*e)}}),m&&Object(Ce.createElement)(He.Spinner,null)),Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(He.ToolbarGroup,null,Object(Ce.createElement)(He.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:Ft,renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(Ce.createElement)(He.ToolbarButton,{icon:Vt.a,label:Object(Ee.__)("Zoom"),onClick:n,"aria-expanded":t,disabled:m})},renderContent:function(){return Object(Ce.createElement)(He.RangeControl,{min:100,max:300,value:Math.round(y),onChange:_})}}),Object(Ce.createElement)(He.ToolbarItem,null,(function(e){return Object(Ce.createElement)(Ut,{toggleProps:e,isDisabled:m,onClick:E,value:k,defaultValue:o/c})}))),Object(Ce.createElement)(He.ToolbarGroup,null,Object(Ce.createElement)(He.ToolbarButton,{icon:Ht,label:Object(Ee.__)("Rotate"),onClick:function(){var e=(x+90)%360;if(0===e)return B(),S(e),E(1/k),void O({x:-v.y*I,y:v.x*I});var t=new window.Image;t.src=n,t.onload=function(t){var n=document.createElement("canvas"),r=0,o=0;e%180?(n.width=t.target.height,n.height=t.target.width):(n.width=t.target.width,n.height=t.target.height),90!==e&&180!==e||(r=n.width),270!==e&&180!==e||(o=n.height);var c=n.getContext("2d");c.translate(r,o),c.rotate(e*Math.PI/180),c.drawImage(t.target,0,0),n.toBlob((function(t){B(URL.createObjectURL(t)),S(e),E(1/k),O({x:-v.y*I,y:v.x*I})}))}},disabled:m})),Object(Ce.createElement)(He.ToolbarGroup,null,Object(Ce.createElement)(He.ToolbarButton,{onClick:function(){d(!0);var e={};(g.width<99.9||g.height<99.9)&&(e=g),x>0&&(e.rotation=x),e.src=n,Dt()({path:"/wp/v2/media/".concat(t,"/edit"),method:"POST",data:e}).then((function(e){r({id:e.id,url:e.source_url,height:i&&a?a/k:void 0})})).catch((function(e){u(Object(Ee.sprintf)(
/* translators: 1. Error message */
Object(Ee.__)("Could not edit image. %s"),e.message),{id:"image-editing-error",type:"snackbar"})})).finally((function(){d(!1),s(!1)}))},disabled:m},Object(Ee.__)("Apply")),Object(Ce.createElement)(He.ToolbarButton,{onClick:function(){return s(!1)}},Object(Ee.__)("Cancel")))))}var Wt=["image"];function Zt(e){var t=e.attributes,n=t.url,r=void 0===n?"":n,o=t.alt,c=t.caption,a=t.align,i=t.id,l=t.href,s=t.rel,u=t.linkClass,b=t.linkDestination,m=t.title,d=t.width,p=t.height,g=t.linkTarget,f=t.sizeSlug,h=e.setAttributes,v=e.isSelected,O=e.insertBlocksAfter,j=e.onReplace,y=e.onSelectImage,_=e.onSelectURL,w=e.onUploadError,k=e.containerRef,E=Object(Ce.useRef)(),C=Object(et.usePrevious)(r),x=Object(Le.useSelect)((function(e){var t=e("core").getMedia;return i&&v?t(i):null}),[i,v]),S=Object(Le.useSelect)((function(e){var t=e("core/block-editor").getSettings;return Object(ke.pick)(t(),["imageEditing","imageSizes","isRTL","maxWidth","mediaUpload"])})),P=S.imageEditing,T=S.imageSizes,B=S.isRTL,z=S.maxWidth,N=S.mediaUpload,I=Object(Le.useDispatch)("core/block-editor").toggleSelection,M=Object(Le.useDispatch)("core/notices"),R=M.createErrorNotice,A=M.createSuccessNotice,V=Object(et.useViewportMatch)("medium"),H=Ve(Object(Ce.useState)(!1),2),L=H[0],D=H[1],F=Object(ke.includes)(["wide","full"],a),G=Ve(Object(Ce.useState)({}),2),U=G[0],q=U.naturalWidth,W=U.naturalHeight,Z=G[1],K=Ve(Object(Ce.useState)(!1),2),$=K[0],J=K[1],Q=Ve(Object(Ce.useState)(),2),Y=Q[0],X=Q[1],ee=ht(k,[a]),te=!F&&V,ne=Object(ke.map)(Object(ke.filter)(T,(function(e){var t=e.slug;return Object(ke.get)(x,["media_details","sizes",t,"source_url"])})),(function(e){var t=e.name;return{value:e.slug,label:t}}));Object(Ce.useEffect)((function(){v||D(!1)}),[v]),Object(Ce.useEffect)((function(){Qt(i,r)&&v&&!Y&&window.fetch(r).then((function(e){return e.blob()})).then((function(e){return X(e)}))}),[i,r,v,Y]),Object(Ce.useEffect)((function(){r&&!C&&v&&E.current.focus()}),[r,C]),Object(Ce.useEffect)((function(){v||J(!1)}),[v]);var re,oe=i&&q&&W&&P,ce=Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,!$&&Object(Ce.createElement)(He.ToolbarGroup,null,Object(Ce.createElement)(_e.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:function(e){h(e)},linkDestination:b,mediaUrl:x&&x.source_url||r,mediaLink:x&&x.link,linkTarget:g,linkClass:u,rel:s})),oe&&!$&&Object(Ce.createElement)(He.ToolbarGroup,null,Object(Ce.createElement)(He.ToolbarButton,{onClick:function(){return J(!0)},icon:nt,label:Object(Ee.__)("Crop")})),Y&&Object(Ce.createElement)(He.ToolbarGroup,null,Object(Ce.createElement)(He.ToolbarButton,{onClick:function(){N({filesList:[Y],onFileChange:function(e){var t=Ve(e,1)[0];y(t),Object(Xe.isBlobURL)(t.url)||(X(),A(Object(Ee.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:Wt,onError:function(e){R(e,{type:"snackbar"})}})},icon:rt.a,label:Object(Ee.__)("Upload external image")})),!$&&Object(Ce.createElement)(_e.MediaReplaceFlow,{mediaId:i,mediaURL:r,allowedTypes:Wt,accept:"image/*",onSelect:y,onSelectURL:_,onError:w})),Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Image settings")},Object(Ce.createElement)(He.TextareaControl,{label:Object(Ee.__)("Alt text (alternative text)"),value:o,onChange:function(e){h({alt:e})},help:Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(He.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(Ee.__)("Describe the purpose of the image")),Object(Ee.__)("Leave empty if the image is purely decorative."))}),Object(Ce.createElement)(_e.__experimentalImageSizeControl,{onChangeImage:function(e){var t=Object(ke.get)(x,["media_details","sizes",e,"source_url"]);if(!t)return null;h({url:t,width:void 0,height:void 0,sizeSlug:e})},onChange:function(e){return h(e)},slug:f,width:d,height:p,imageSizeOptions:ne,isResizable:te,imageWidth:q,imageHeight:W}))),Object(Ce.createElement)(_e.InspectorAdvancedControls,null,Object(Ce.createElement)(He.TextControl,{label:Object(Ee.__)("Title attribute"),value:m||"",onChange:function(e){h({title:e})},help:Object(Ce.createElement)(Ce.Fragment,null,Object(Ee.__)("Describe the role of this image on the page."),Object(Ce.createElement)(He.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},Object(Ee.__)("(Note: many devices and browsers do not display this text.)")))}))),ae=function(e){var t=Object(tt.getPath)(e);if(t)return Object(ke.last)(t.split("/"))}(r);re=o||(ae?Object(Ee.sprintf)(
/* translators: %s: file name */
Object(Ee.__)("This image has an empty alt attribute; its file name is %s"),ae):Object(Ee.__)("This image has an empty alt attribute"));var ie,le,se=Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)("img",{src:r,alt:re,onClick:function(){L&&D(!1)},onError:function(){var e;void 0!==(e=dt({attributes:{url:r}}))&&j(e)},onLoad:function(e){Z(Object(ke.pick)(e.target,["naturalWidth","naturalHeight"]))}}),Object(Xe.isBlobURL)(r)&&Object(Ce.createElement)(He.Spinner,null));if(ee&&q&&W){var ue=q>ee;ie=ue?ee:q,le=ue?ee*(W/q):W}if(oe&&$)se=Object(Ce.createElement)(qt,{id:i,url:r,setAttributes:h,naturalWidth:q,naturalHeight:W,width:d,height:p,clientWidth:ee,setIsEditingImage:J});else if(te&&ie){var be=d||ie,me=p||le,de=q/W,pe=q<W?20:20*de,ge=W<q?20:20/de,fe=2.5*z,he=!1,ve=!1;"center"===a?(he=!0,ve=!0):B?"left"===a?he=!0:ve=!0:"right"===a?ve=!0:he=!0,se=Object(Ce.createElement)(He.ResizableBox,{size:{width:d,height:p},showHandle:v,minWidth:pe,maxWidth:fe,minHeight:ge,maxHeight:fe/de,lockAspectRatio:!0,enable:{top:!1,right:he,bottom:!0,left:ve},onResizeStart:function(){I(!1)},onResizeStop:function(e,t,n,r){I(!0),h({width:parseInt(be+r.width,10),height:parseInt(me+r.height,10)})}},se)}else se=Object(Ce.createElement)("div",{style:{width:d,height:p}},se);return Object(Ce.createElement)(Ce.Fragment,null,ce,se,(!_e.RichText.isEmpty(c)||v)&&Object(Ce.createElement)(_e.RichText,{ref:E,tagName:"figcaption",placeholder:Object(Ee.__)("Write caption…"),value:c,unstableOnFocus:function(){L||D(!0)},onChange:function(e){return h({caption:e})},isSelected:L,inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return O(Object(we.createBlock)("core/paragraph"))}}))}function Kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kt(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jt=function(e,t){return!e&&Object(Xe.isBlobURL)(t)},Qt=function(e,t){return t&&!e&&!Object(Xe.isBlobURL)(t)};var Yt=Object(He.withNotices)((function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,o=e.className,c=e.noticeUI,a=e.insertBlocksAfter,i=e.noticeOperations,l=e.onReplace,s=t.url,u=void 0===s?"":s,b=t.alt,m=t.caption,d=t.align,p=t.id,g=t.width,f=t.height,h=t.sizeSlug,v=Object(Ce.useRef)();Object(Ce.useEffect)((function(){v.current=b}),[b]);var O=Object(Ce.useRef)();Object(Ce.useEffect)((function(){O.current=m}),[m]);var j=Object(Ce.useRef)(),y=Object(Le.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}));function _(e){i.removeAllNotices(),i.createErrorNotice(e)}function w(e){var r,o,c,a,i;if(e&&e.url){var l,s,b,m=(l=e,(s=Object(ke.pick)(l,["alt","id","link","caption"])).url=Object(ke.get)(l,["sizes","large","url"])||Object(ke.get)(l,["media_details","sizes","large","source_url"])||l.url,s);Jt(p,u)&&v.current&&(m=Object(ke.omit)(m,["alt"])),O.current&&!Object(ke.get)(m,["caption"])&&(m=Object(ke.omit)(m,["caption"])),b=e.id&&e.id===p?{url:u}:{width:void 0,height:void 0,sizeSlug:"large"};var d,g=t.linkDestination;if(!g)switch((null===(r=wp)||void 0===r||null===(o=r.media)||void 0===o||null===(c=o.view)||void 0===c||null===(a=c.settings)||void 0===a||null===(i=a.defaultProps)||void 0===i?void 0:i.link)||"none"){case"file":case"media":g="media";break;case"post":case"attachment":g="attachment";break;case"custom":g="custom";break;case"none":g="none"}switch(g){case"media":d=e.url;break;case"attachment":d=e.link}m.href=d,n($t($t($t({},m),b),{},{linkDestination:g}))}else n({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0})}function k(e){e!==u&&n({url:e,id:void 0,sizeSlug:"large"})}var E=Jt(p,u);Object(Ce.useEffect)((function(){if(E){var e=Object(Xe.getBlobByURL)(u);e&&y({filesList:[e],onFileChange:function(e){w(Ve(e,1)[0])},allowedTypes:Wt,onError:function(e){i.createErrorNotice(e),n({src:void 0,id:void 0,url:void 0})}})}}),[]),Object(Ce.useEffect)((function(){if(E)return function(){Object(Xe.revokeBlobURL)(u)}}),[E]);var C=Qt(p,u),x=Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.BlockAlignmentToolbar,{value:d,onChange:function(e){var t=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};n($t($t({},t),{},{align:e}))}})),S=C?u:void 0,P=!!u&&Object(Ce.createElement)("img",{alt:Object(Ee.__)("Edit image"),title:Object(Ee.__)("Edit image"),className:"edit-image-preview",src:u}),T=Object(Ce.createElement)(_e.MediaPlaceholder,{icon:Object(Ce.createElement)(_e.BlockIcon,{icon:Je}),onSelect:w,onSelectURL:k,notices:c,onError:_,accept:"image/*",allowedTypes:Wt,value:{id:p,src:S},mediaPreview:P,disableMediaButtons:u}),B=Te()(o,je({"is-transient":Object(Xe.isBlobURL)(u),"is-resized":!!g||!!f,"is-focused":r},"size-".concat(h),h)),z=Object(_e.useBlockProps)({ref:j,className:B});return Object(Ce.createElement)(Ce.Fragment,null,x,Object(Ce.createElement)("figure",z,u&&Object(Ce.createElement)(Zt,{attributes:t,setAttributes:n,isSelected:r,insertBlocksAfter:a,onReplace:l,onSelectImage:w,onSelectURL:k,onUploadError:_,containerRef:j}),T))}));function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function en(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tn(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 nn={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},rn={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:en(en({},nn),{},{a:{attributes:["href","rel","target"],children:nn},figcaption:{children:t}})}}},transform:function(e){var t=e.className+" "+e.querySelector("img").className,n=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),r=""===e.id?void 0:e.id,o=n?n[1]:void 0,c=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),a=c?Number(c[1]):void 0,i=e.querySelector("a"),l=i&&i.href?"custom":void 0,s=i&&i.href?i.href:void 0,u=i&&i.rel?i.rel:void 0,b=i&&i.className?i.className:void 0,m=Object(we.getBlockAttributes)("core/image",e.outerHTML,{align:o,id:a,linkDestination:l,href:s,rel:u,linkClass:b,anchor:r});return Object(we.createBlock)("core/image",m)}},{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("image/")},transform:function(e){var t=e[0];return Object(we.createBlock)("core/image",{url:Object(Xe.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 tn(t.shortcode.content,"href")}},rel:{shortcode:function(e,t){return tn(t.shortcode.content,"rel")}},linkClass:{shortcode:function(e,t){return tn(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","")}}}}]},on={apiVersion:2,name:"core/image",category:"media",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"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0}},cn=on.name,an={title:Object(Ee.__)("Image"),description:Object(Ee.__)("Insert an image to make a visual statement."),icon:Je,keywords:["img",Object(Ee.__)("photo"),Object(Ee.__)("picture")],example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",
// translators: Caption accompanying an image of the Mont Blanc, which serves as an example for the Image block.
caption:Object(Ee.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(Ee._x)("Default","block style"),isDefault:!0},{name:"rounded",label:Object(Ee._x)("Rounded","block style")}],__experimentalLabel:function(e,t){if("accessibility"===t.context){var n=e.caption,r=e.alt;return e.url?r?r+(n?". "+n:""):n||"":Object(Ee.__)("Empty")}},getEditWrapperProps:function(e){return{"data-align":e.align}},transforms:rn,edit:Yt,save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,c=n.caption,a=n.align,i=n.href,l=n.rel,s=n.linkClass,u=n.width,b=n.height,m=n.id,d=n.linkTarget,p=n.sizeSlug,g=n.title,f=Object(ke.isEmpty)(l)?void 0:l,h=Te()((je(t={},"align".concat(a),a),je(t,"size-".concat(p),p),je(t,"is-resized",u||b),t)),v=Object(Ce.createElement)("img",{src:r,alt:o,className:m?"wp-image-".concat(m):null,width:u,height:b,title:g}),O=Object(Ce.createElement)(Ce.Fragment,null,i?Object(Ce.createElement)("a",{className:s,href:i,target:d,rel:f},v):v,!_e.RichText.isEmpty(c)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"figcaption",value:c}));return"left"===a||"right"===a||"center"===a?Object(Ce.createElement)("div",_e.useBlockProps.save(),Object(Ce.createElement)("figure",{className:h},O)):Object(Ce.createElement)("figure",_e.useBlockProps.save({className:h}),O)},deprecated:Ye},ln=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"}));function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bn={className:!1,anchor:!0},mn={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},dn=function(e){if(!e.customTextColor)return e;var t={color:{text:e.customTextColor}};return un(un({},Object(ke.omit)(e,["customTextColor"])),{},{style:t})},pn=[{supports:bn,attributes:un(un({},mn),{},{customTextColor:{type:"string"},textColor:{type:"string"}}),migrate:dn,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,c=n.customTextColor,a=n.level,i=n.textColor,l="h"+a,s=Object(_e.getColorClassName)("color",i),u=Te()((je(t={},s,s),je(t,"has-text-color",i||c),je(t,"has-text-align-".concat(r),r),t));return Object(Ce.createElement)(_e.RichText.Content,{className:u||void 0,tagName:l,style:{color:s?void 0:c},value:o})}},{attributes:un(un({},mn),{},{customTextColor:{type:"string"},textColor:{type:"string"}}),migrate:dn,save:function(e){var t,n=e.attributes,r=n.align,o=n.content,c=n.customTextColor,a=n.level,i=n.textColor,l="h"+a,s=Object(_e.getColorClassName)("color",i),u=Te()((je(t={},s,s),je(t,"has-text-align-".concat(r),r),t));return Object(Ce.createElement)(_e.RichText.Content,{className:u||void 0,tagName:l,style:{color:s?void 0:c},value:o})},supports:bn},{supports:bn,attributes:un(un({},mn),{},{customTextColor:{type:"string"},textColor:{type:"string"}}),migrate:dn,save:function(e){var t=e.attributes,n=t.align,r=t.level,o=t.content,c=t.textColor,a=t.customTextColor,i="h"+r,l=Object(_e.getColorClassName)("color",c),s=Te()(je({},l,l));return Object(Ce.createElement)(_e.RichText.Content,{className:s||void 0,tagName:i,style:{textAlign:n,color:l?void 0:a},value:o})}}],gn=n(13);function fn(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(Ce.createElement)(He.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:r},Object(Ce.createElement)(He.Path,{d:o[t]})):null}var hn=[1,2,3,4,5,6],vn={className:"block-library-heading-level-dropdown",isAlternate:!0};function On(e){var t=e.selectedLevel,n=e.onChange;return Object(Ce.createElement)(He.Dropdown,{popoverProps:vn,renderToggle:function(e){var n=e.onToggle,r=e.isOpen;return Object(Ce.createElement)(He.ToolbarButton,{"aria-expanded":r,"aria-haspopup":"true",icon:Object(Ce.createElement)(fn,{level:t}),label:Object(Ee.__)("Change heading level"),onClick:n,onKeyDown:function(e){r||e.keyCode!==gn.DOWN||(e.preventDefault(),e.stopPropagation(),n())},showTooltip:!0})},renderContent:function(){return Object(Ce.createElement)(He.Toolbar,{className:"block-library-heading-level-toolbar",label:Object(Ee.__)("Change heading level")},Object(Ce.createElement)(He.ToolbarGroup,{isCollapsed:!1,controls:hn.map((function(e){var r=e===t;return{icon:Object(Ce.createElement)(fn,{level:e,isPressed:r}),title:Object(Ee.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
Object(Ee.__)("Heading %d"),e),isActive:r,onClick:function(){n(e)}}}))}))}})}function jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jn(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _n=function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=e.onReplace,c=e.mergedStyle,a=t.align,i=t.content,l=t.level,s=t.placeholder,u="h"+l,b=Object(_e.useBlockProps)({className:Te()(je({},"has-text-align-".concat(a),a)),style:c});return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(He.ToolbarGroup,null,Object(Ce.createElement)(On,{selectedLevel:l,onChange:function(e){return n({level:e})}})),Object(Ce.createElement)(_e.AlignmentToolbar,{value:a,onChange:function(e){n({align:e})}})),Object(Ce.createElement)(_e.RichText,Ae({identifier:"content",tagName:u,value:i,onChange:function(e){return n({content:e})},onMerge:r,onSplit:function(e){return e?Object(we.createBlock)("core/heading",yn(yn({},t),{},{content:e})):Object(we.createBlock)("core/paragraph")},onReplace:o,onRemove:function(){return o([])},placeholder:s||Object(Ee.__)("Write heading…"),textAlign:a},b)))};var wn={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return e.map((function(e){var t=e.content,n=e.anchor;return Object(we.createBlock)("core/heading",{content:t,anchor:n})}))}},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:function(e){var t={children:e.phrasingContentSchema,attributes:e.isPaste?[]:["style","id"]};return{h1:t,h2:t,h3:t,h4:t,h5:t,h6:t}},transform:function(e){var t,n=Object(we.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(we.createBlock)("core/heading",n)}}].concat(Oe([1,2,3,4,5,6].map((function(e){return{type:"prefix",prefix:Array(e+1).join("#"),transform:function(t){return Object(we.createBlock)("core/heading",{level:e,content:t})}}})))),to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return e.map((function(e){var t=e.content,n=e.anchor;return Object(we.createBlock)("core/paragraph",{content:t,anchor:n})}))}}]},kn={apiVersion:2,name:"core/heading",category:"text",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"}},supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:{"core/heading/h1":"h1","core/heading/h2":"h2","core/heading/h3":"h3","core/heading/h4":"h4","core/heading/h5":"h5","core/heading/h6":"h6"},__unstablePasteTextInline:!0}},En=kn.name,Cn={title:Object(Ee.__)("Heading"),description:Object(Ee.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:ln,keywords:[Object(Ee.__)("title"),Object(Ee.__)("subtitle")],example:{attributes:{content:Object(Ee.__)("Code is Poetry"),level:2}},__experimentalLabel:function(e,t){if("accessibility"===t.context){var n=e.content,r=e.level;return Object(ke.isEmpty)(n)?Object(Ee.sprintf)(
/* translators: accessibility text. %s: heading level. */
Object(Ee.__)("Level %s. Empty."),r):Object(Ee.sprintf)(
/* translators: accessibility text. 1: heading level. 2: heading content. */
Object(Ee.__)("Level %1$s. %2$s"),r,n)}},transforms:wn,deprecated:pn,merge:function(e,t){return{content:(e.content||"")+(t.content||"")}},edit:_n,save:function(e){var t=e.attributes,n=t.align,r=t.content,o="h"+t.level,c=Te()(je({},"has-text-align-".concat(n),n));return Object(Ce.createElement)(o,_e.useBlockProps.save({className:c}),Object(Ce.createElement)(_e.RichText.Content,{value:r}))}},xn=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"}));function Sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tn={value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},Bn=[{attributes:Tn,save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation;return Object(Ce.createElement)("blockquote",{style:{textAlign:n||null}},Object(Ce.createElement)(_e.RichText.Content,{multiline:!0,value:r}),!_e.RichText.isEmpty(o)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"cite",value:o}))}},{attributes:Pn(Pn({},Tn),{},{style:{type:"number",default:1}}),migrate:function(e){return 2===e.style?Pn(Pn({},Object(ke.omit)(e,["style"])),{},{className:e.className?e.className+" is-style-large":"is-style-large"}):e},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,c=t.style;return Object(Ce.createElement)("blockquote",{className:2===c?"is-large":"",style:{textAlign:n||null}},Object(Ce.createElement)(_e.RichText.Content,{multiline:!0,value:r}),!_e.RichText.isEmpty(o)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"cite",value:o}))}},{attributes:Pn(Pn({},Tn),{},{citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}}),save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,c=t.style;return Object(Ce.createElement)("blockquote",{className:"blocks-quote-style-".concat(c),style:{textAlign:n||null}},Object(Ce.createElement)(_e.RichText.Content,{multiline:!0,value:r}),!_e.RichText.isEmpty(o)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"footer",value:o}))}}];function zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zn(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function In(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Mn=n(17);function Rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rn(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vn={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(we.createBlock)("core/quote",{value:Object(Mn.toHTMLString)({value:Object(Mn.join)(e.map((function(e){var t=e.content;return Object(Mn.create)({html:t})})),"\u2028"),multilineTag:"p"}),anchor:e.anchor})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content,n=e.anchor;return Object(we.createBlock)("core/quote",{value:"<p>".concat(t,"</p>"),anchor:n})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation,r=e.anchor;return Object(we.createBlock)("core/quote",{value:t,citation:n,anchor:r})}},{type:"prefix",prefix:">",transform:function(e){return Object(we.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,Oe(Object(Mn.split)(Object(Mn.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(we.createBlock)("core/paragraph",{content:Object(Mn.toHTMLString)({value:e})})})))),n&&"<p></p>"!==n&&r.push(Object(we.createBlock)("core/paragraph",{content:n})),0===r.length?Object(we.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,n=e.citation,r=In(e,["value","citation"]);if("<p></p>"===t)return Object(we.createBlock)("core/heading",{content:n});var o=Object(Mn.split)(Object(Mn.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object(we.createBlock)("core/heading",{content:Object(Mn.toHTMLString)({value:o[0]})});if(!n&&1===o.length)return c;var a=o.slice(1);return[c,Object(we.createBlock)("core/quote",An(An({},r),{},{citation:n,value:Object(Mn.toHTMLString)({value:a.length?Object(Mn.join)(o.slice(1),"\u2028"):Object(Mn.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,n=e.citation,r=e.anchor;return Object(we.createBlock)("core/pullquote",{value:t,citation:n,anchor:r})}}]};function Hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dn={apiVersion:2,name:"core/quote",category:"text",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},supports:{anchor:!0}},Fn=Dn.name,Gn={title:Object(Ee.__)("Quote"),description:Object(Ee.__)('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'),icon:xn,keywords:[Object(Ee.__)("blockquote"),Object(Ee.__)("cite")],example:{attributes:{value:"<p>"+Object(Ee.__)("In quoting others, we cite ourselves.")+"</p>",citation:"Julio Cortázar",className:"is-style-large"}},styles:[{name:"default",label:Object(Ee._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(Ee._x)("Large","block style")}],transforms:Vn,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,o=e.mergeBlocks,c=e.onReplace,a=e.className,i=e.insertBlocksAfter,l=t.align,s=t.value,u=t.citation,b=Object(_e.useBlockProps)({className:Te()(a,je({},"has-text-align-".concat(l),l))});return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.AlignmentToolbar,{value:l,onChange:function(e){n({align:e})}})),Object(Ce.createElement)(He.BlockQuotation,b,Object(Ce.createElement)(_e.RichText,{identifier:"value",multiline:!0,value:s,onChange:function(e){return n({value:e})},onMerge:o,onRemove:function(e){var t=!u||0===u.length;!e&&t&&c([])},placeholder:// translators: placeholder text used for the quote
Object(Ee.__)("Write quote…"),onReplace:c,onSplit:function(e){return Object(we.createBlock)("core/quote",Nn(Nn({},t),{},{value:e}))},__unstableOnSplitMiddle:function(){return Object(we.createBlock)("core/paragraph")},textAlign:l}),(!_e.RichText.isEmpty(u)||r)&&Object(Ce.createElement)(_e.RichText,{identifier:"citation",value:u,onChange:function(e){return n({citation:e})},__unstableMobileNoFocusOnMount:!0,placeholder:// translators: placeholder text used for the citation
Object(Ee.__)("Write citation…"),className:"wp-block-quote__citation",textAlign:l,__unstableOnSplitAtEnd:function(){return i(Object(we.createBlock)("core/paragraph"))}})))},save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation,c=Te()(je({},"has-text-align-".concat(n),n));return Object(Ce.createElement)("blockquote",_e.useBlockProps.save({className:c}),Object(Ce.createElement)(_e.RichText.Content,{multiline:!0,value:r}),!_e.RichText.isEmpty(o)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"cite",value:o}))},merge:function(e,t){var n=t.value,r=t.citation;return r||(r=e.citation),Ln(Ln({},e),{},n&&"<p></p>"!==n?{value:e.value+n,citation:r}:{citation:r})},deprecated:Bn},Un=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"}));function qn(e){return Math.min(3,e.images.length)}var Wn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large",n=Object(ke.pick)(e,["alt","id","link","caption"]);n.url=Object(ke.get)(e,["sizes",t,"url"])||Object(ke.get)(e,["media_details","sizes",t,"source_url"])||e.url;var r=Object(ke.get)(e,["sizes","full","url"])||Object(ke.get)(e,["media_details","sizes","full","source_url"]);return r&&(n.fullUrl=r),n};function Zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zn(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $n=[{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?qn(t):r,c=t.imageCrop,a=t.caption,i=t.linkTo;return Object(Ce.createElement)("figure",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},Object(Ce.createElement)("ul",{className:"blocks-gallery-grid"},n.map((function(e){var t;switch(i){case"file":t=e.fullUrl||e.url;break;case"post":t=e.link}var n=Object(Ce.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(Ce.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(Ce.createElement)("figure",null,t?Object(Ce.createElement)("a",{href:t},n):n,!_e.RichText.isEmpty(e.caption)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!_e.RichText.isEmpty(a)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}},supports:{align:!0},isEligible:function(e){var t=e.linkTo;return!t||"attachment"===t||"media"===t},migrate:function(e){var t=e.linkTo;return e.linkTo?"attachment"===e.linkTo?t="post":"media"===e.linkTo&&(t="file"):t="none",Kn(Kn({},e),{},{linkTo:t})},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?qn(t):r,c=t.imageCrop,a=t.caption,i=t.linkTo;return Object(Ce.createElement)("figure",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},Object(Ce.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(Ce.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(Ce.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(Ce.createElement)("figure",null,t?Object(Ce.createElement)("a",{href:t},n):n,!_e.RichText.isEmpty(e.caption)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!_e.RichText.isEmpty(a)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},isEligible:function(e){var t=e.ids;return t&&t.some((function(e){return"string"==typeof e}))},migrate:function(e){return Kn(Kn({},e),{},{ids:Object(ke.map)(e.ids,(function(e){var t=parseInt(e,10);return Number.isInteger(t)?t:null}))})},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?qn(t):r,c=t.imageCrop,a=t.caption,i=t.linkTo;return Object(Ce.createElement)("figure",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},Object(Ce.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(Ce.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(Ce.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(Ce.createElement)("figure",null,t?Object(Ce.createElement)("a",{href:t},n):n,!_e.RichText.isEmpty(e.caption)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!_e.RichText.isEmpty(a)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?qn(t):r,c=t.imageCrop,a=t.linkTo;return Object(Ce.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},n.map((function(e){var t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}var n=Object(Ce.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(Ce.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(Ce.createElement)("figure",null,t?Object(Ce.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(Ce.createElement)(_e.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(ke.some)(t,(function(e,t){return!e&&null!==n[t]||parseInt(e,10)!==n[t]})))},migrate:function(e){return Kn(Kn({},e),{},{ids:Object(ke.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},supports:{align:!0},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?qn(t):r,c=t.imageCrop,a=t.linkTo;return Object(Ce.createElement)("ul",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},n.map((function(e){var t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}var n=Object(Ce.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(Ce.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(Ce.createElement)("figure",null,t?Object(Ce.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?qn(t):r,c=t.align,a=t.imageCrop,i=t.linkTo,l=Te()("columns-".concat(o),{alignnone:"none"===c,"is-cropped":a});return Object(Ce.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(Ce.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(Ce.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(Ce.createElement)("a",{href:t},n):n)})))}}],Jn=n(99),Qn=Object(Ce.createElement)(_e.BlockIcon,{icon:Un});function Yn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xn(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 er(e,t,n){return t&&Xn(e.prototype,t),n&&Xn(e,n),e}function tr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nr(e,t){return(nr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rr(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&&nr(e,t)}function or(e){return(or="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)}function cr(e,t){return!t||"object"!==or(t)&&"function"!=typeof t?tr(e):t}function ar(e){return(ar=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ir=n(214),lr=n(213),sr=n(200),ur=n(127);function br(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ar(e);if(t){var o=ar(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cr(this,n)}}var mr=function(e){rr(n,e);var t=br(n);function n(){var e;return Yn(this,n),(e=t.apply(this,arguments)).onSelectImage=e.onSelectImage.bind(tr(e)),e.onSelectCaption=e.onSelectCaption.bind(tr(e)),e.onRemoveImage=e.onRemoveImage.bind(tr(e)),e.bindContainer=e.bindContainer.bind(tr(e)),e.onEdit=e.onEdit.bind(tr(e)),e.onSelectImageFromLibrary=e.onSelectImageFromLibrary.bind(tr(e)),e.onSelectCustomURL=e.onSelectCustomURL.bind(tr(e)),e.state={captionSelected:!1,isEditing:!1},e}return er(n,[{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!==[gn.BACKSPACE,gn.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"onEdit",value:function(){this.setState({isEditing:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isSelected,r=t.image,o=t.url,c=t.__unstableMarkNextChangeAsNotPersistent;r&&!o&&(c(),this.props.setAttributes({url:r.source_url,alt:r.alt_text})),this.state.captionSelected&&!n&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"deselectOnBlur",value:function(){this.props.onDeselect()}},{key:"onSelectImageFromLibrary",value:function(e){var t=this.props,n=t.setAttributes,r=t.id,o=t.url,c=t.alt,a=t.caption,i=t.sizeSlug;if(e&&e.url){var l=Wn(e,i);(function(e,t){return!e&&Object(Xe.isBlobURL)(t)})(r,o)&&c&&(l=Object(ke.omit)(l,["alt"])),a&&!Object(ke.get)(l,["caption"])&&(l=Object(ke.omit)(l,["caption"])),n(l),this.setState({isEditing:!1})}}},{key:"onSelectCustomURL",value:function(e){var t=this.props,n=t.setAttributes;e!==t.url&&(n({url:e,id:void 0}),this.setState({isEditing:!1}))}},{key:"render",value:function(){var e,t=this.props,n=t.url,r=t.alt,o=t.id,c=t.linkTo,a=t.link,i=t.isFirstItem,l=t.isLastItem,s=t.isSelected,u=t.caption,b=t.onRemove,m=t.onMoveForward,d=t.onMoveBackward,p=t.setAttributes,g=t["aria-label"],f=this.state.isEditing;switch(c){case"file":e=n;break;case"post":e=a}var h=Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)("img",{src:n,alt:r,"data-id":o,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":g,ref:this.bindContainer}),Object(Xe.isBlobURL)(n)&&Object(Ce.createElement)(He.Spinner,null)),v=Te()({"is-selected":s,"is-transient":Object(Xe.isBlobURL)(n)});return Object(Ce.createElement)("figure",{className:v},!f&&(e?Object(Ce.createElement)("a",{href:e},h):h),f&&Object(Ce.createElement)(_e.MediaPlaceholder,{labels:{title:Object(Ee.__)("Edit gallery image")},icon:Je,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:o,src:n}}),Object(Ce.createElement)(He.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},Object(Ce.createElement)(He.Button,{icon:ir.a,onClick:i?void 0:d,label:Object(Ee.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object(Ce.createElement)(He.Button,{icon:lr.a,onClick:l?void 0:m,label:Object(Ee.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object(Ce.createElement)(He.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},Object(Ce.createElement)(He.Button,{icon:sr.a,onClick:this.onEdit,label:Object(Ee.__)("Replace image"),disabled:!s}),Object(Ce.createElement)(He.Button,{icon:ur.a,onClick:b,label:Object(Ee.__)("Remove image"),disabled:!s})),!f&&(s||u)&&Object(Ce.createElement)(_e.RichText,{tagName:"figcaption",placeholder:s?Object(Ee.__)("Write caption…"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return p({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),n}(Ce.Component),dr=Object(et.compose)([Object(Le.withSelect)((function(e,t){var n=e("core").getMedia,r=t.id;return{image:r?n(parseInt(r,10)):null}})),Object(Le.withDispatch)((function(e){return{__unstableMarkNextChangeAsNotPersistent:e("core/block-editor").__unstableMarkNextChangeAsNotPersistent}}))])(mr);function pr(e){var t=e.isHidden,n=In(e,["isHidden"]);return t?Object(Ce.createElement)(He.VisuallyHidden,Ae({as:_e.RichText},n)):Object(Ce.createElement)(_e.RichText,n)}var gr=function(e){var t,n=e.attributes,r=e.className,o=e.isSelected,c=e.setAttributes,a=e.selectedImage,i=e.mediaPlaceholder,l=e.onMoveBackward,s=e.onMoveForward,u=e.onRemoveImage,b=e.onSelectImage,m=e.onDeselectImage,d=e.onSetImageAttributes,p=e.onFocusGalleryCaption,g=e.insertBlocksAfter,f=n.align,h=n.columns,v=void 0===h?qn(n):h,O=n.caption,j=n.imageCrop,y=n.images;return Object(Ce.createElement)("figure",{className:Te()(r,(t={},je(t,"align".concat(f),f),je(t,"columns-".concat(v),v),je(t,"is-cropped",j),t))},Object(Ce.createElement)("ul",{className:"blocks-gallery-grid"},y.map((function(e,t){var r=Object(Ee.sprintf)(
/* translators: 1: the order number of the image. 2: the total number of images. */
Object(Ee.__)("image %1$d of %2$d in gallery"),t+1,y.length);return Object(Ce.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(Ce.createElement)(dr,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===t,isLastItem:t+1===y.length,isSelected:o&&a===t,onMoveBackward:l(t),onMoveForward:s(t),onRemove:u(t),onSelect:b(t),onDeselect:m(t),setAttributes:function(e){return d(t,e)},caption:e.caption,"aria-label":r,sizeSlug:n.sizeSlug}))}))),i,Object(Ce.createElement)(pr,{isHidden:!o&&_e.RichText.isEmpty(O),tagName:"figcaption",className:"blocks-gallery-caption",placeholder:Object(Ee.__)("Write gallery caption…"),value:O,unstableOnFocus:p,onChange:function(e){return c({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return g(Object(we.createBlock)("core/paragraph"))}}))};function fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fr(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vr=[{value:"post",label:Object(Ee.__)("Attachment Page")},{value:"file",label:Object(Ee.__)("Media File")},{value:"none",label:Object(Ee.__)("None")}],Or=["image"],jr=Ce.Platform.select({web:Object(Ee.__)("Drag images, upload new ones or select files from your library."),native:Object(Ee.__)("ADD MEDIA")}),yr=Ce.Platform.select({web:{},native:{type:"stepper"}});var _r=Object(et.compose)([Object(Le.withSelect)((function(e,t){var n=t.attributes.ids,r=t.isSelected,o=e("core").getMedia,c=(0,e("core/block-editor").getSettings)(),a=c.imageSizes,i=c.mediaUpload,l={};return r&&(l=Object(ke.reduce)(n,(function(e,t){if(!t)return e;var n=o(t),r=Object(ke.reduce)(a,(function(e,t){var r=Object(ke.get)(n,["sizes",t.slug,"url"]),o=Object(ke.get)(n,["media_details","sizes",t.slug,"source_url"]);return hr(hr({},e),{},je({},t.slug,r||o))}),{});return hr(hr({},e),{},je({},parseInt(t,10),r))}),{})),{imageSizes:a,mediaUpload:i,resizedImages:l}})),He.withNotices,Object(Jn.withViewportMatch)({isNarrow:"< small"})])((function(e){var t=e.attributes,n=e.className,r=e.isSelected,o=e.noticeUI,c=e.noticeOperations,a=e.mediaUpload,i=e.imageSizes,l=e.resizedImages,s=e.onFocus,u=t.columns,b=void 0===u?qn(t):u,m=t.imageCrop,d=t.images,p=t.linkTo,g=t.sizeSlug,f=Ve(Object(Ce.useState)(),2),h=f[0],v=f[1],O=Ve(Object(Ce.useState)(),2),j=O[0],y=O[1];function _(t){if(t.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');t.images&&(t=hr(hr({},t),{},{ids:Object(ke.map)(t.images,(function(e){var t=e.id;return parseInt(t,10)}))})),e.setAttributes(t)}function w(e,t){var n=Oe(d);n.splice(t,1,d[e]),n.splice(e,1,d[t]),v(t),_({images:n})}function k(e){var t=Object(ke.toString)(e.id),n=Object(ke.find)(d,{id:t}),r=n?n.caption:e.caption;if(!j)return r;var o=Object(ke.find)(j,{id:t});return o&&o.caption!==e.caption?e.caption:r}function E(e){y(e.map((function(e){return{id:Object(ke.toString)(e.id),caption:e.caption}}))),_({images:e.map((function(e){return hr(hr({},Wn(e,g)),{},{caption:k(e),id:Object(ke.toString)(e.id)})})),columns:t.columns?Math.min(e.length,t.columns):t.columns})}Object(Ce.useEffect)((function(){if("web"===Ce.Platform.OS&&d&&d.length>0&&Object(ke.every)(d,(function(e){var t=e.url;return Object(Xe.isBlobURL)(t)}))){var e=Object(ke.map)(d,(function(e){var t=e.url;return Object(Xe.getBlobByURL)(t)}));Object(ke.forEach)(d,(function(e){var t=e.url;return Object(Xe.revokeBlobURL)(t)})),a({filesList:e,onFileChange:E,allowedTypes:["image"]})}}),[]),Object(Ce.useEffect)((function(){r||v()}),[r]),Object(Ce.useEffect)((function(){var e,t,n,r,o,c;p||_({linkTo:(null===(e=window)||void 0===e||null===(t=e.wp)||void 0===t||null===(n=t.media)||void 0===n||null===(r=n.view)||void 0===r||null===(o=r.settings)||void 0===o||null===(c=o.defaultProps)||void 0===c?void 0:c.link)||"none"})}),[p]);var C=!!d.length,x=Object(Ce.createElement)(_e.MediaPlaceholder,{addToGallery:C,isAppender:C,className:n,disableMediaButtons:C&&!r,icon:!C&&Qn,labels:{title:!C&&Object(Ee.__)("Gallery"),instructions:!C&&jr},onSelect:E,accept:"image/*",allowedTypes:Or,multiple:!0,value:d,onError:function(e){c.removeAllNotices(),c.createErrorNotice(e)},notices:C?void 0:o,onFocus:s});if(!C)return x;var S=Object(ke.map)(Object(ke.filter)(i,(function(e){var t=e.slug;return Object(ke.some)(l,(function(e){return e[t]}))})),(function(e){var t=e.name;return{value:e.slug,label:t}})),P=C&&!Object(ke.isEmpty)(S);return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Gallery settings")},d.length>1&&Object(Ce.createElement)(He.RangeControl,Ae({label:Object(Ee.__)("Columns"),value:b,onChange:function(e){_({columns:e})},min:1,max:Math.min(8,d.length)},yr,{required:!0})),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Crop images"),checked:!!m,onChange:function(){_({imageCrop:!m})},help:function(e){return e?Object(Ee.__)("Thumbnails are cropped to align."):Object(Ee.__)("Thumbnails are not cropped.")}}),Object(Ce.createElement)(He.SelectControl,{label:Object(Ee.__)("Link to"),value:p,onChange:function(e){_({linkTo:e})},options:vr}),P&&Object(Ce.createElement)(He.SelectControl,{label:Object(Ee.__)("Image size"),value:g,options:S,onChange:function(e){_({images:Object(ke.map)(d,(function(t){if(!t.id)return t;var n=Object(ke.get)(l,[parseInt(t.id,10),e]);return hr(hr({},t),n&&{url:n})})),newSizeSlug:e})}}))),o,Object(Ce.createElement)(gr,Ae({},e,{selectedImage:h,mediaPlaceholder:x,onMoveBackward:function(e){return function(){0!==e&&w(e,e-1)}},onMoveForward:function(e){return function(){e!==d.length-1&&w(e,e+1)}},onRemoveImage:function(e){return function(){var n=Object(ke.filter)(d,(function(t,n){return e!==n}));v(),_({images:n,columns:t.columns?Math.min(n.length,t.columns):t.columns})}},onSelectImage:function(e){return function(){v(e)}},onDeselectImage:function(){return function(){v()}},onSetImageAttributes:function(e,t){d[e]&&_({images:[].concat(Oe(d.slice(0,e)),[hr(hr({},d[e]),t)],Oe(d.slice(e+1)))})},onFocusGalleryCaption:function(){v()}})))}));var wr=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},kr={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0],n=t.align,r=t.sizeSlug;n=Object(ke.every)(e,["align",n])?n:void 0,r=Object(ke.every)(e,["sizeSlug",r])?r:void 0;var o=Object(ke.filter)(e,(function(e){return e.url}));return Object(we.createBlock)("core/gallery",{images:o.map((function(e){var t=e.id,n=e.url,r=e.alt,o=e.caption;return{id:Object(ke.toString)(t),url:n,alt:r,caption:o}})),ids:o.map((function(e){var t=e.id;return parseInt(t,10)})),align:n,sizeSlug:r})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return wr(t).map((function(e){return{id:Object(ke.toString)(e)}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return wr(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;return void 0===t?"post":t}}},isMatch:function(e){return void 0!==e.named.ids}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(ke.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e){return Object(we.createBlock)("core/gallery",{images:e.map((function(e){return Wn({url:Object(Xe.createBlobURL)(e)})}))})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align,r=e.sizeSlug,o=e.ids;return t.length>0?t.map((function(e,t){var c=e.url,a=e.alt,i=e.caption;return Object(we.createBlock)("core/image",{id:o[t],url:c,alt:a,caption:i,align:n,sizeSlug:r})})):Object(we.createBlock)("core/image",{align:n})}}]},Er={name:"core/gallery",category:"media",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0}},Cr=Er.name,xr={title:Object(Ee.__)("Gallery"),description:Object(Ee.__)("Display multiple images in a rich gallery."),icon:Un,keywords:[Object(Ee.__)("images"),Object(Ee.__)("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"}]}},transforms:kr,edit:_r,save:function(e){var t=e.attributes,n=t.images,r=t.columns,o=void 0===r?qn(t):r,c=t.imageCrop,a=t.caption,i=t.linkTo;return Object(Ce.createElement)("figure",{className:"columns-".concat(o," ").concat(c?"is-cropped":"")},Object(Ce.createElement)("ul",{className:"blocks-gallery-grid"},n.map((function(e){var t;switch(i){case"file":t=e.fullUrl||e.url;break;case"post":t=e.link}var n=Object(Ce.createElement)("img",{src:e.url,alt:""!==e.alt?e.alt:e.caption,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(Ce.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(Ce.createElement)("figure",null,t?Object(Ce.createElement)("a",{href:t},n):n,!_e.RichText.isEmpty(e.caption)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!_e.RichText.isEmpty(a)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},deprecated:$n},Sr=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"})),Pr=n(90),Tr=n.n(Pr);var Br={apiVersion:2,name:"core/archives",category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},zr=Br.name,Nr={title:Object(Ee.__)("Archives"),description:Object(Ee.__)("Display a monthly archive of your posts."),icon:Sr,example:{},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.showPostCounts,o=t.displayAsDropdown;return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Archives settings")},Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Display as dropdown"),checked:o,onChange:function(){return n({displayAsDropdown:!o})}}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Show post counts"),checked:r,onChange:function(){return n({showPostCounts:!r})}}))),Object(Ce.createElement)("div",Object(_e.useBlockProps)(),Object(Ce.createElement)(He.Disabled,null,Object(Ce.createElement)(Tr.a,{block:"core/archives",attributes:t}))))}},Ir=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),Mr=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.loop,c=t.preload,a=t.src;return Object(Ce.createElement)("figure",null,Object(Ce.createElement)("audio",{controls:"controls",src:a,autoPlay:n,loop:o,preload:c}),!_e.RichText.isEmpty(r)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"figcaption",value:r}))}}],Rr=["audio"];var Ar=Object(He.withNotices)((function(e){var t=e.attributes,n=e.noticeOperations,r=e.setAttributes,o=e.onReplace,c=e.isSelected,a=e.noticeUI,i=e.insertBlocksAfter,l=t.id,s=t.autoplay,u=t.caption,b=t.loop,m=t.preload,d=t.src,p=Object(_e.useBlockProps)(),g=Object(Le.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}),[]);function f(e){return function(t){r(je({},e,t))}}function h(e){if(e!==d){var t=dt({attributes:{url:e}});if(void 0!==t)return void o(t);r({src:e,id:void 0})}}function v(e){n.removeAllNotices(),n.createErrorNotice(e)}function O(e){e&&e.url?r({src:e.url,id:e.id}):r({src:void 0,id:void 0})}return Object(Ce.useEffect)((function(){if(!l&&Object(Xe.isBlobURL)(d)){var e=Object(Xe.getBlobByURL)(d);e&&g({filesList:[e],onFileChange:function(e){var t=Ve(e,1)[0],n=t.id,o=t.url;r({id:n,src:o})},onError:function(e){r({src:void 0,id:void 0}),n.createErrorNotice(e)},allowedTypes:Rr})}}),[]),d?Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.MediaReplaceFlow,{mediaId:l,mediaURL:d,allowedTypes:Rr,accept:"audio/*",onSelect:O,onSelectURL:h,onError:v})),Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Audio settings")},Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Autoplay"),onChange:f("autoplay"),checked:s,help:function(e){return e?Object(Ee.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Loop"),onChange:f("loop"),checked:b}),Object(Ce.createElement)(He.SelectControl,{label:Object(Ee.__)("Preload"),value:m||"",onChange:function(e){return r({preload:e||void 0})},options:[{value:"",label:Object(Ee.__)("Browser default")},{value:"auto",label:Object(Ee.__)("Auto")},{value:"metadata",label:Object(Ee.__)("Metadata")},{value:"none",label:Object(Ee.__)("None")}]}))),Object(Ce.createElement)("figure",p,Object(Ce.createElement)(He.Disabled,null,Object(Ce.createElement)("audio",{controls:"controls",src:d})),(!_e.RichText.isEmpty(u)||c)&&Object(Ce.createElement)(_e.RichText,{tagName:"figcaption",placeholder:Object(Ee.__)("Write caption…"),value:u,onChange:function(e){return r({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return i(Object(we.createBlock)("core/paragraph"))}}))):Object(Ce.createElement)("div",p,Object(Ce.createElement)(_e.MediaPlaceholder,{icon:Object(Ce.createElement)(_e.BlockIcon,{icon:Ir}),onSelect:O,onSelectURL:h,accept:"audio/*",allowedTypes:Rr,value:t,notices:a,onError:v}))}));var Vr={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(we.createBlock)("core/audio",{src:Object(Xe.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,n=t.src,r=t.mp3,o=t.m4a,c=t.ogg,a=t.wav,i=t.wma;return n||r||o||c||a||i}},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}}}}]},Hr={apiVersion:2,name:"core/audio",category:"media",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:{anchor:!0,align:!0}},Lr=Hr.name,Dr={title:Object(Ee.__)("Audio"),description:Object(Ee.__)("Embed a simple audio player."),keywords:[Object(Ee.__)("music"),Object(Ee.__)("sound"),Object(Ee.__)("podcast"),Object(Ee.__)("recording")],icon:Ir,transforms:Vr,deprecated:Mr,edit:Ar,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.loop,c=t.preload,a=t.src;return a&&Object(Ce.createElement)("figure",_e.useBlockProps.save(),Object(Ce.createElement)("audio",{controls:"controls",src:a,autoPlay:n,loop:o,preload:c}),!_e.RichText.isEmpty(r)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"figcaption",value:r}))}},Fr=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 13h8v-1.5H8V13z"})),Gr={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:function(e){return Object(we.createBlock)("core/buttons",{},e.map((function(e){return Object(we.createBlock)("core/button",e)})))}}]};function Ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wr=function(e){if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;var t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient),qr(qr({},Object(ke.omit)(e,["customTextColor","customBackgroundColor","customGradient"])),{},{style:t})},Zr=function(e){return Wr(Object(ke.omit)(qr(qr({},e),{},{customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0}),["color","textColor"]))},Kr={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"}},$r=[{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:qr(qr({},Kr),{},{linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}}),save:function(e){var t=e.attributes,n=t.borderRadius,r=t.linkTarget,o=t.rel,c=t.text,a=t.title,i=t.url,l=Te()("wp-block-button__link",{"no-border-radius":0===n}),s={borderRadius:n?n+"px":void 0};return Object(Ce.createElement)(_e.RichText.Content,{tagName:"a",className:l,href:i,title:a,style:s,value:c,target:r,rel:o})}},{supports:{align:!0,alignWide:!1},attributes:qr(qr({},Kr),{},{linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}}),isEligible:function(e){return!!e.customTextColor||!!e.customBackgroundColor||!!e.customGradient},migrate:Wr,save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.borderRadius,c=n.customBackgroundColor,a=n.customTextColor,i=n.customGradient,l=n.linkTarget,s=n.gradient,u=n.rel,b=n.text,m=n.textColor,d=n.title,p=n.url,g=Object(_e.getColorClassName)("color",m),f=!i&&Object(_e.getColorClassName)("background-color",r),h=Object(_e.__experimentalGetGradientClass)(s),v=Te()("wp-block-button__link",(je(t={"has-text-color":m||a},g,g),je(t,"has-background",r||c||i||s),je(t,f,f),je(t,"no-border-radius",0===o),je(t,h,h),t)),O={background:i||void 0,backgroundColor:f||i||s?void 0:c,color:g?void 0:a,borderRadius:o?o+"px":void 0};return Object(Ce.createElement)("div",null,Object(Ce.createElement)(_e.RichText.Content,{tagName:"a",className:v,href:p,title:d,style:O,value:b,target:l,rel:u}))}},{attributes:qr(qr({},Kr),{},{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()),Wr(qr(qr({},e),{},{className:t||void 0,borderRadius:0}))},save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.customBackgroundColor,c=n.customTextColor,a=n.linkTarget,i=n.rel,l=n.text,s=n.textColor,u=n.title,b=n.url,m=Object(_e.getColorClassName)("color",s),d=Object(_e.getColorClassName)("background-color",r),p=Te()("wp-block-button__link",(je(t={"has-text-color":s||c},m,m),je(t,"has-background",r||o),je(t,d,d),t)),g={backgroundColor:d?void 0:o,color:m?void 0:c};return Object(Ce.createElement)("div",null,Object(Ce.createElement)(_e.RichText.Content,{tagName:"a",className:p,href:b,title:u,style:g,value:l,target:a,rel:i}))}},{attributes:qr(qr({},Kr),{},{align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}}),migrate:Zr,save:function(e){var t,n=e.attributes,r=n.url,o=n.text,c=n.title,a=n.backgroundColor,i=n.textColor,l=n.customBackgroundColor,s=n.customTextColor,u=Object(_e.getColorClassName)("color",i),b=Object(_e.getColorClassName)("background-color",a),m=Te()("wp-block-button__link",(je(t={"has-text-color":i||s},u,u),je(t,"has-background",a||l),je(t,b,b),t)),d={backgroundColor:b?void 0:l,color:u?void 0:s};return Object(Ce.createElement)("div",null,Object(Ce.createElement)(_e.RichText.Content,{tagName:"a",className:m,href:r,title:c,style:d,value:o}))}},{attributes:qr(qr({},Kr),{},{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,c=t.align,a={backgroundColor:t.color,color:t.textColor};return Object(Ce.createElement)("div",{className:"align".concat(c)},Object(Ce.createElement)(_e.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:n,title:o,style:a,value:r}))},migrate:Zr},{attributes:qr(qr({},Kr),{},{color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.url,r=t.text,o=t.title,c=t.align,a=t.color,i=t.textColor;return Object(Ce.createElement)("div",{className:"align".concat(c),style:{backgroundColor:a}},Object(Ce.createElement)(_e.RichText.Content,{tagName:"a",href:n,title:o,style:{color:i},value:r}))},migrate:Zr}],Jr=n(192),Qr=n(219);function Yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yr(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var eo=[],to="web"===Ce.Platform.OS;function no(e){return e.ownerDocument.defaultView.getComputedStyle(e)}var ro=function e(t){if(!Object(ke.isObject)(t))return t;var n=Object(ke.pickBy)(Object(ke.mapValues)(t,e),ke.identity);return Object(ke.isEqual)(n,{})?void 0:n};function oo(e){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,o=void 0===r||r,c=Ve(Object(Ce.useState)(),2),a=c[0],i=c[1],l=Ve(Object(Ce.useState)(),2),s=l[0],u=l[1],b=to?Object(Ee.__)("Color settings"):Object(Ee.__)("Color Settings");return Object(Ce.useEffect)((function(){if(!to||o){var e=function(e){return document.getElementById("block-"+e)}(n);if(e){u(no(e).color);for(var t=e,r=no(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)r=no(t=t.parentNode).backgroundColor;i(r)}}})),Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(_e.__experimentalPanelColorGradientSettings,{title:b,initialOpen:!1,settings:t},to&&o&&Object(Ce.createElement)(_e.ContrastChecker,{backgroundColor:a,textColor:s})))}var co=function(e){var t,n,r,o=e.attributes,c=Object(_e.__experimentalUseEditorFeature)("color.palette")||eo,a=Object(_e.__experimentalUseEditorFeature)("color.gradients")||eo,i=Object(Ce.useRef)(o);Object(Ce.useEffect)((function(){i.current=o}),[o]);var l,s,u=o.style,b=o.textColor,m=o.backgroundColor,d=o.gradient;l=d?Object(_e.getGradientValueBySlug)(a,d):null==u||null===(s=u.color)||void 0===s?void 0:s.gradient;var p=function(t){return function(n){var r,o,a=Object(_e.getColorObjectByColorValue)(c,n),l=t+"Color",s=Xr(Xr({},i.current.style),{},{color:Xr(Xr({},null===(r=i.current)||void 0===r||null===(o=r.style)||void 0===o?void 0:o.color),{},je({},t,(null==a?void 0:a.slug)?void 0:n))}),u=(null==a?void 0:a.slug)?a.slug:void 0,b=je({style:ro(s)},l,u);e.setAttributes(b),i.current=Xr(Xr({},i.current),b)}};return Object(Ce.createElement)(oo,{enableContrastChecking:!d&&!(null==u||null===(t=u.color)||void 0===t?void 0:t.gradient),clientId:e.clientId,settings:[{label:Object(Ee.__)("Text Color"),onColorChange:p("text"),colorValue:Object(_e.getColorObjectByAttributeValues)(c,b,null==u||null===(n=u.color)||void 0===n?void 0:n.text).color},{label:Object(Ee.__)("Background Color"),onColorChange:p("background"),colorValue:Object(_e.getColorObjectByAttributeValues)(c,m,null==u||null===(r=u.color)||void 0===r?void 0:r.background).color,gradientValue:l,onGradientChange:function(t){var n,r=Object(_e.getGradientSlugByValue)(a,t);if(r){var o,c,l,s=Xr(Xr({},null===(o=i.current)||void 0===o?void 0:o.style),{},{color:Xr(Xr({},null===(c=i.current)||void 0===c||null===(l=c.style)||void 0===l?void 0:l.color),{},{gradient:void 0})});n={style:ro(s),gradient:r}}else{var u,b,m,d=Xr(Xr({},null===(u=i.current)||void 0===u?void 0:u.style),{},{color:Xr(Xr({},null===(b=i.current)||void 0===b||null===(m=b.style)||void 0===m?void 0:m.color),{},{gradient:t})});n={style:ro(d),gradient:void 0}}e.setAttributes(n),i.current=Xr(Xr({},i.current),n)}}]})};function ao(e,t){var n,r,o,c,a,i,l,s,u,b,m,d=arguments.length>2&&void 0!==arguments[2]&&arguments[2],p=e.backgroundColor,g=e.textColor,f=e.gradient,h=e.style,v=Object(_e.getColorClassName)("background-color",p),O=Object(_e.__experimentalGetGradientClass)(f),j=Object(_e.getColorClassName)("color",g),y=Te()(j,O,(je(a={},v,!(null==h||null===(n=h.color)||void 0===n?void 0:n.gradient)&&!!v),je(a,"has-text-color",g||(null==h||null===(r=h.color)||void 0===r?void 0:r.text)),je(a,"has-background",p||(null==h||null===(o=h.color)||void 0===o?void 0:o.background)||f||(null==h||null===(c=h.color)||void 0===c?void 0:c.gradient)),a)),_=(null==h||null===(i=h.color)||void 0===i?void 0:i.background)||(null==h||null===(l=h.color)||void 0===l?void 0:l.text)||(null==h||null===(s=h.color)||void 0===s?void 0:s.gradient)?{background:(null==h||null===(u=h.color)||void 0===u?void 0:u.gradient)?h.color.gradient:void 0,backgroundColor:(null==h||null===(b=h.color)||void 0===b?void 0:b.background)?h.color.background:void 0,color:(null==h||null===(m=h.color)||void 0===m?void 0:m.text)?h.color.text:void 0}:{};if(d){if(p){var w=Object(_e.getColorObjectByAttributeValues)(t,p);_.backgroundColor=w.color}if(g){var k=Object(_e.getColorObjectByAttributeValues)(t,g);_.color=k.color}}return{className:y||void 0,style:_}}function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?io(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var so=[];function uo(e){var t=e.borderRadius,n=void 0===t?"":t,r=e.setAttributes,o=n,c=Object(Ce.useCallback)((function(e){r(void 0===e?{borderRadius:o}:{borderRadius:e})}),[r]);return Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Border settings")},Object(Ce.createElement)(He.RangeControl,{value:n,label:Object(Ee.__)("Border radius"),min:0,max:50,initialPosition:5,allowReset:!0,onChange:c}))}function bo(e){var t,n=e.isSelected,r=e.url,o=e.setAttributes,c=e.opensInNewTab,a=e.onToggleOpenInNewTab,i=Ve(Object(Ce.useState)(!1),2),l=i[0],s=i[1],u=!!r,b=u&&n,m=function(){return s(!0),!1},d=function(){o({url:void 0,linkTarget:void 0,rel:void 0}),s(!1)},p=(l||b)&&Object(Ce.createElement)(He.Popover,{position:"bottom center",onClose:function(){return s(!1)}},Object(Ce.createElement)(_e.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:r,opensInNewTab:c},onChange:function(e){var t=e.url,n=void 0===t?"":t,r=e.opensInNewTab;o({url:n}),c!==r&&a(r)}}));return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(He.ToolbarGroup,null,!u&&Object(Ce.createElement)(He.ToolbarButton,{name:"link",icon:Jr.a,title:Object(Ee.__)("Link"),shortcut:gn.displayShortcut.primary("k"),onClick:m}),b&&Object(Ce.createElement)(He.ToolbarButton,{name:"link",icon:Qr.a,title:Object(Ee.__)("Unlink"),shortcut:gn.displayShortcut.primaryShift("k"),onClick:d,isActive:!0}))),n&&Object(Ce.createElement)(He.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(t={},je(t,gn.rawShortcut.primary("k"),m),je(t,gn.rawShortcut.primaryShift("k"),d),t)}),p)}var mo=function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=e.isSelected,c=e.onReplace,a=e.mergeBlocks,i=t.borderRadius,l=t.linkTarget,s=t.placeholder,u=t.rel,b=t.text,m=t.url,d=Object(Ce.useCallback)((function(e){n({rel:e})}),[n]),p=Object(_e.__experimentalUseEditorFeature)("color.palette")||so,g=Object(Ce.useCallback)((function(e){var t=e?"_blank":void 0,r=u;t&&!u?r="noreferrer noopener":t||"noreferrer noopener"!==u||(r=void 0),n({linkTarget:t,rel:r})}),[u,n]),f=ao(t,p,!0),h=Object(_e.useBlockProps)();return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(co,e),Object(Ce.createElement)("div",h,Object(Ce.createElement)(_e.RichText,{placeholder:s||Object(Ee.__)("Add text…"),value:b,onChange:function(e){return n({text:e})},withoutInteractiveFormatting:!0,className:Te()(r,"wp-block-button__link",f.className,{"no-border-radius":0===i}),style:lo({borderRadius:i?i+"px":void 0},f.style),onSplit:function(e){return Object(we.createBlock)("core/button",lo(lo({},t),{},{text:e}))},onReplace:c,onMerge:a,identifier:"text"})),Object(Ce.createElement)(bo,{url:m,setAttributes:n,isSelected:o,opensInNewTab:"_blank"===l,onToggleOpenInNewTab:g}),Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(uo,{borderRadius:i,setAttributes:n}),Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Link settings")},Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Open in new tab"),onChange:g,checked:"_blank"===l}),Object(Ce.createElement)(He.TextControl,{label:Object(Ee.__)("Link rel"),value:u||"",onChange:d}))))};function po(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?go(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):go(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ho={apiVersion:2,name:"core/button",category:"design",parent:["core/buttons"],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"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},style:{type:"object"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"}},supports:{anchor:!0,align:!0,alignWide:!1,reusable:!1,__experimentalSelector:".wp-block-button > a"}},vo=ho.name,Oo={title:Object(Ee.__)("Button"),description:Object(Ee.__)("Prompt visitors to take action with a button-style link."),icon:Fr,keywords:[Object(Ee.__)("link")],example:{attributes:{className:"is-style-fill",backgroundColor:"vivid-green-cyan",text:Object(Ee.__)("Call to Action")}},styles:[{name:"fill",label:Object(Ee.__)("Fill"),isDefault:!0},{name:"outline",label:Object(Ee.__)("Outline")}],edit:mo,save:function(e){var t=e.attributes,n=t.borderRadius,r=t.linkTarget,o=t.rel,c=t.text,a=t.title,i=t.url,l=ao(t),s=Te()("wp-block-button__link",l.className,{"no-border-radius":0===n}),u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?po(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):po(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({borderRadius:n?n+"px":void 0},l.style);return Object(Ce.createElement)("div",_e.useBlockProps.save(),Object(Ce.createElement)(_e.RichText.Content,{tagName:"a",className:s,href:i,title:a,style:u,value:c,target:r,rel:o}))},deprecated:$r,merge:function(e,t){var n=t.text,r=void 0===n?"":n;return fo(fo({},e),{},{text:(e.text||"")+r})}},jo=[vo],yo=[["core/button"]],_o={isEmbedButton:!0};var wo=function(){var e=Object(_e.useBlockProps)(),t=Object(_e.__experimentalUseInnerBlocksProps)(e,{allowedBlocks:jo,template:yo,orientation:"horizontal"});return Object(Ce.createElement)(_e.__experimentalAlignmentHookSettingsProvider,{value:_o},Object(Ce.createElement)("div",t))};var ko={apiVersion:2,name:"core/buttons",category:"design",supports:{anchor:!0,align:!0,alignWide:!1}},Eo=ko.name,Co={title:Object(Ee.__)("Buttons"),description:Object(Ee.__)("Prompt visitors to take action with a group of button-style links."),icon:Fr,keywords:[Object(Ee.__)("link")],example:{innerBlocks:[{name:"core/button",attributes:{text:Object(Ee.__)("Find out more")}},{name:"core/button",attributes:{text:Object(Ee.__)("Contact us")}}]},transforms:Gr,edit:wo,save:function(){return Object(Ce.createElement)("div",_e.useBlockProps.save(),Object(Ce.createElement)(_e.InnerBlocks.Content,null))}},xo=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})),So=n(47),Po=n.n(So);function To(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?To(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zo=lt()((function(e){if(!e)return{};var t=Po()(e);return{year:t.year(),month:t.month()+1}}));var No={apiVersion:2,name:"core/calendar",category:"widgets",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0}},Io=No.name,Mo={title:Object(Ee.__)("Calendar"),description:Object(Ee.__)("A calendar of your site’s posts."),icon:xo,keywords:[Object(Ee.__)("posts"),Object(Ee.__)("archive")],example:{},edit:function(e){var t=e.attributes,n=Object(Le.useSelect)((function(e){var t=e("core/editor").getEditedPostAttribute;return"post"===t("type")?t("date"):void 0}),[]);return Object(Ce.createElement)("div",Object(_e.useBlockProps)(),Object(Ce.createElement)(He.Disabled,null,Object(Ce.createElement)(Tr.a,{block:"core/calendar",attributes:Bo(Bo({},t),zo(n))})))}},Ro=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})),Ao=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Ce.createElement)(xe.Path,{d:"M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z"}));var Vo={apiVersion:2,name:"core/categories",category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},Ho=Vo.name,Lo={title:Object(Ee.__)("Categories"),description:Object(Ee.__)("Display a list of all categories."),icon:Ro,example:{},edit:function e(t){var n,r=t.attributes,o=r.displayAsDropdown,c=r.showHierarchy,a=r.showPostCounts,i=t.setAttributes,l=Object(et.useInstanceId)(e,"blocks-category-select"),s=Object(Le.useSelect)((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])}}),[]),u=s.categories,b=s.isRequesting,m=function(e){return(null==u?void 0:u.length)?null===e?u:u.filter((function(t){return t.parent===e})):[]},d=function(e){return"wp-block-categories__list wp-block-categories__list-level-".concat(e)},p=function(e){return function(t){return i(je({},e,t))}},g=function(e){return e?Object(ke.unescape)(e).trim():Object(Ee.__)("(Untitled)")},f=function e(t,n){var r=m(t.id),o=t.id,i=t.link,l=t.count,s=t.name;return Object(Ce.createElement)("li",{key:o},Object(Ce.createElement)("a",{href:i,target:"_blank",rel:"noreferrer noopener"},g(s)),a&&Object(Ce.createElement)("span",{className:"wp-block-categories__post-count"}," (".concat(l,")")),c&&!!r.length&&Object(Ce.createElement)("ul",{className:d(n+1)},r.map((function(t){return e(t,n+1)}))))},h=function e(t,n){var r=t.id,o=t.count,i=t.name,l=m(r);return[Object(Ce.createElement)("option",{key:r},Object(ke.times)(3*n,(function(){return" "})),g(i),a&&" (".concat(o,")")),c&&!!l.length&&l.map((function(t){return e(t,n+1)}))]};return Object(Ce.createElement)("div",Object(_e.useBlockProps)(),Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Categories settings")},Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Display as dropdown"),checked:o,onChange:p("displayAsDropdown")}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Show hierarchy"),checked:c,onChange:p("showHierarchy")}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Show post counts"),checked:a,onChange:p("showPostCounts")}))),b&&Object(Ce.createElement)(He.Placeholder,{icon:Ao,label:Object(Ee.__)("Categories")},Object(Ce.createElement)(He.Spinner,null)),!b&&(o?(n=m(c?0:null),Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(He.VisuallyHidden,{as:"label",htmlFor:l},Object(Ee.__)("Categories")),Object(Ce.createElement)("select",{id:l,className:"wp-block-categories__dropdown"},n.map((function(e){return h(e,0)}))))):function(){var e=m(c?0:null);return Object(Ce.createElement)("ul",{className:d(0)},e.map((function(e){return f(e,0)})))}()))}},Do=n(301);function Fo(e){return e.replace(/\[/g,"&#91;")}function Go(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1&#47;&#47;$2")}var Uo={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(we.createBlock)("core/code")}},{type:"block",blocks:["core/html"],transform:function(e){var t=e.content;return Object(we.createBlock)("core/code",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},qo={apiVersion:2,name:"core/code",category:"text",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{anchor:!0}},Wo=qo.name,Zo={title:Object(Ee.__)("Code"),description:Object(Ee.__)("Display code snippets that respect your spacing and tabs."),icon:Do.a,example:{attributes:{
// translators: Preserve \n markers for line breaks
content:Object(Ee.__)('// 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 );')}},transforms:Uo,edit:function(e){var t=e.attributes,n=e.setAttributes,r=Object(_e.useBlockProps)();return Object(Ce.createElement)("pre",r,Object(Ce.createElement)(_e.RichText,{tagName:"code",value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(Ee.__)("Write code…"),"aria-label":Object(Ee.__)("Code"),preserveWhiteSpace:!0}))},save:function(e){var t,n=e.attributes;return Object(Ce.createElement)("pre",_e.useBlockProps.save(),Object(Ce.createElement)(_e.RichText.Content,{tagName:"code",value:(t=n.content,Object(ke.flow)(Fo,Go)(t||""))}))}},Ko=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"}));function $o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$o(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qo(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Yo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,i=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){i=!0,c=e},f:function(){try{a||null==n.return||n.return()}finally{if(i)throw c}}}}function Yo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xo(e){var t,n=Xo.doc;n||(n=document.implementation.createHTMLDocument(""),Xo.doc=n),n.body.innerHTML=e;var r,o=Qo(n.body.firstChild.classList);try{for(o.s();!(r=o.n()).done;){if(t=r.value.match(/^layout-column-(\d+)$/))return Number(t[1])-1}}catch(e){o.e(e)}finally{o.f()}}var ec=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:function(e){if(!e.customTextColor&&!e.customBackgroundColor)return e;var t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),Jo(Jo({},Object(ke.omit)(e,["customTextColor","customBackgroundColor"])),{},{style:t})},save:function(e){var t,n=e.attributes,r=n.verticalAlignment,o=n.backgroundColor,c=n.customBackgroundColor,a=n.textColor,i=n.customTextColor,l=Object(_e.getColorClassName)("background-color",o),s=Object(_e.getColorClassName)("color",a),u=Te()((je(t={"has-background":o||c,"has-text-color":a||i},l,l),je(t,s,s),je(t,"are-vertically-aligned-".concat(r),r),t)),b={backgroundColor:l?void 0:c,color:s?void 0:i};return Object(Ce.createElement)("div",{className:u||void 0,style:b},Object(Ce.createElement)(_e.InnerBlocks.Content,null))}},{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!==Xo(e.originalContent)}))},migrate:function(e,t){var n=t.reduce((function(e,t){var n=Xo(t.originalContent);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e}),[]).map((function(e){return Object(we.createBlock)("core/column",{},e)}));return[Object(ke.omit)(e,["columns"]),n]},save:function(e){var t=e.attributes.columns;return Object(Ce.createElement)("div",{className:"has-".concat(t,"-columns")},Object(Ce.createElement)(_e.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:function(e,t){return[e=Object(ke.omit)(e,["columns"]),t]},save:function(e){var t=e.attributes,n=t.verticalAlignment,r=t.columns,o=Te()("has-".concat(r,"-columns"),je({},"are-vertically-aligned-".concat(n),n));return Object(Ce.createElement)("div",{className:o},Object(Ce.createElement)(_e.InnerBlocks.Content,null))}}],tc=function(e){return Number.isFinite(e)?parseFloat(e.toFixed(2)):void 0};function nc(e,t){var n=e.attributes.width;return tc(void 0===n?100/t:n)}function rc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(ke.sumBy)(e,(function(e){return nc(e,t)}))}function oc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,n){var r=nc(n,t);return Object.assign(e,je({},n.clientId,r))}),{})}function cc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=rc(e,n),o=t-r,c=o/e.length;return Object(ke.mapValues)(oc(e,n),(function(e){return tc(e+c)}))}function ac(e,t){return e.map((function(e){return Object(ke.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var ic=["core/column"];var lc=Object(Le.withDispatch)((function(e,t,n){return{updateAlignment:function(r){var o=t.clientId,c=t.setAttributes,a=e("core/block-editor").updateBlockAttributes,i=n.select("core/block-editor").getBlockOrder;c({verticalAlignment:r}),i(o).forEach((function(e){a(e,{verticalAlignment:r})}))},updateColumns:function(r,o){var c=t.clientId,a=e("core/block-editor").replaceInnerBlocks,i=(0,n.select("core/block-editor").getBlocks)(c),l=i.every((function(e){return Number.isFinite(e.attributes.width)})),s=o>r;if(s&&l){var u=tc(100/o),b=cc(i,100-u);i=[].concat(Oe(ac(i,b)),Oe(Object(ke.times)(o-r,(function(){return Object(we.createBlock)("core/column",{width:u})}))))}else if(s)i=[].concat(Oe(i),Oe(Object(ke.times)(o-r,(function(){return Object(we.createBlock)("core/column")}))));else{if(i=Object(ke.dropRight)(i,r-o),l)i=ac(i,cc(i,100))}a(c,i,!1)}}}))((function(e){var t=e.attributes,n=e.updateAlignment,r=e.updateColumns,o=e.clientId,c=t.verticalAlignment,a=Object(Le.useSelect)((function(e){return{count:e("core/block-editor").getBlockCount(o)}}),[o]).count,i=Te()(je({},"are-vertically-aligned-".concat(c),c)),l=Object(_e.useBlockProps)({className:i}),s=Object(_e.__experimentalUseInnerBlocksProps)(l,{allowedBlocks:ic,orientation:"horizontal",renderAppender:!1});return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.BlockVerticalAlignmentToolbar,{onChange:n,value:c})),Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,null,Object(Ce.createElement)(He.RangeControl,{label:Object(Ee.__)("Columns"),value:a,onChange:function(e){return r(a,e)},min:1,max:Math.max(6,a)}),a>6&&Object(Ce.createElement)(He.Notice,{status:"warning",isDismissible:!1},Object(Ee.__)("This column count exceeds the recommended amount and may cause visual breakage.")))),Object(Ce.createElement)("div",s))}));function sc(e){var t=e.clientId,n=e.name,r=e.setAttributes,o=Object(Le.useSelect)((function(e){var t=e("core/blocks"),r=t.getBlockVariations,o=t.getBlockType,c=t.getDefaultBlockVariation;return{blockType:o(n),defaultVariation:c(n,"block"),variations:r(n,"block")}}),[n]),c=o.blockType,a=o.defaultVariation,i=o.variations,l=Object(Le.useDispatch)("core/block-editor").replaceInnerBlocks,s=Object(_e.useBlockProps)();return Object(Ce.createElement)("div",s,Object(Ce.createElement)(_e.__experimentalBlockVariationPicker,{icon:Object(ke.get)(c,["icon","src"]),label:Object(ke.get)(c,["title"]),variations:i,onSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;e.attributes&&r(e.attributes),e.innerBlocks&&l(t,Object(we.createBlocksFromInnerBlocksTemplate)(e.innerBlocks))},allowSkip:!0}))}var uc=function(e){var t=e.clientId,n=Object(Le.useSelect)((function(e){return e("core/block-editor").getBlocks(t).length>0}),[t])?lc:sc;return Object(Ce.createElement)(n,e)};var bc=[{name:"one-column-full",title:Object(Ee.__)("100"),description:Object(Ee.__)("One column"),icon:Object(Ce.createElement)(He.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(He.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:Object(Ee.__)("50 / 50"),description:Object(Ee.__)("Two columns; equal split"),icon:Object(Ce.createElement)(He.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(He.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:Object(Ee.__)("30 / 70"),description:Object(Ee.__)("Two columns; one-third, two-thirds split"),icon:Object(Ce.createElement)(He.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(He.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:Object(Ee.__)("70 / 30"),description:Object(Ee.__)("Two columns; two-thirds, one-third split"),icon:Object(Ce.createElement)(He.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(He.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:Object(Ee.__)("33 / 33 / 33"),description:Object(Ee.__)("Three columns; equal split"),icon:Object(Ce.createElement)(He.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(He.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:Object(Ee.__)("25 / 50 / 25"),description:Object(Ee.__)("Three columns; wide center column"),icon:Object(Ce.createElement)(He.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(He.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}];function mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mc(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pc={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:function(e){var t=+(100/e.length).toFixed(2),n=e.map((function(e){var n=e.name,r=e.attributes,o=e.innerBlocks;return["core/column",{width:"".concat(t,"%")},[[n,dc({},r),o]]]}));return Object(we.createBlock)("core/columns",{},Object(we.createBlocksFromInnerBlocksTemplate)(n))},isMatch:function(e){var t=e.length;return t&&t<=6}}]},gc={apiVersion:2,name:"core/columns",category:"design",attributes:{verticalAlignment:{type:"string"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}}},fc=gc.name,hc={title:Object(Ee.__)("Columns"),icon:Ko,description:Object(Ee.__)("Add a block that displays content in multiple columns, then add whatever content blocks you’d like."),variations:bc,example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{
/* translators: example text. */
content:Object(Ee.__)("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:{
/* translators: example text. */
content:Object(Ee.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{
/* translators: example text. */
content:Object(Ee.__)("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:{
/* translators: example text. */
content:Object(Ee.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:ec,edit:uc,save:function(e){var t=e.attributes.verticalAlignment,n=Te()(je({},"are-vertically-aligned-".concat(t),t));return Object(Ce.createElement)("div",_e.useBlockProps.save({className:n}),Object(Ce.createElement)(_e.InnerBlocks.Content,null))},transforms:pc},vc=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"}));function Oc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oc(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yc=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},migrate:function(e){return jc(jc({},e),{},{width:"".concat(e.width,"%")})},save:function(e){var t,n=e.attributes,r=n.verticalAlignment,o=n.width,c=Te()(je({},"is-vertically-aligned-".concat(r),r));return Number.isFinite(o)&&(t={flexBasis:o+"%"}),Object(Ce.createElement)("div",{className:c,style:t},Object(Ce.createElement)(_e.InnerBlocks.Content,null))}}];var _c=function(e){var t=e.attributes,n=t.verticalAlignment,r=t.width,o=t.templateLock,c=void 0!==o&&o,a=e.setAttributes,i=e.clientId,l=Te()("block-core-columns",je({},"is-vertically-aligned-".concat(n),n)),s=Object(Le.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockOrder,r=t.getBlockRootClientId;return{hasChildBlocks:n(i).length>0,rootClientId:r(i)}}),[i]),u=s.hasChildBlocks,b=s.rootClientId,m=Object(Le.useDispatch)("core/block-editor").updateBlockAttributes,d=Object(_e.useBlockProps)({className:l,style:r?{flexBasis:r}:void 0}),p=Object(_e.__experimentalUseInnerBlocksProps)(d,{templateLock:c,renderAppender:u?void 0:_e.InnerBlocks.ButtonBlockAppender});return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.BlockVerticalAlignmentToolbar,{onChange:function(e){a({verticalAlignment:e}),m(b,{verticalAlignment:null})},value:n})),Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Column settings")},Object(Ce.createElement)(He.__experimentalUnitControl,{label:Object(Ee.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:r||"",onChange:function(e){e=0>parseFloat(e)?"0":e,a({width:e})},units:[{value:"%",label:"%",default:""},{value:"px",label:"px",default:""},{value:"em",label:"em",default:""},{value:"rem",label:"rem",default:""},{value:"vw",label:"vw",default:""}]}))),Object(Ce.createElement)("div",p))};var wc={apiVersion:2,name:"core/column",category:"text",parent:["core/columns"],attributes:{verticalAlignment:{type:"string"},width:{type:"string"},templateLock:{type:"string"}},supports:{anchor:!0,reusable:!1,html:!1}},kc=wc.name,Ec={title:Object(Ee.__)("Column"),icon:vc,description:Object(Ee.__)("A single column within a columns block."),edit:_c,save:function(e){var t,n=e.attributes,r=n.verticalAlignment,o=n.width,c=Te()(je({},"is-vertically-aligned-".concat(r),r));return o&&(t={flexBasis:o}),Object(Ce.createElement)("div",_e.useBlockProps.save({className:c,style:t}),Object(Ce.createElement)(_e.InnerBlocks.Content,null))},deprecated:yc},Cc=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"}));function xc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Sc={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"};function Pc(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}var Tc=[{value:"px",label:"px",default:430},{value:"em",label:"em",default:20},{value:"rem",label:"rem",default:20},{value:"vw",label:"vw",default:20},{value:"vh",label:"vh",default:50}];function Bc(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function zc(e){return function(t){if(t&&t.url){var n;if(Object(Xe.isBlobURL)(t.url)&&(t.type=Object(Xe.getBlobTypeByURL)(t.url)),t.media_type)n="image"===t.media_type?"image":"video";else{if("image"!==t.type&&"video"!==t.type)return;n=t.type}e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xc(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({url:t.url,id:t.id,backgroundType:n},"video"===n?{focalPoint:void 0,hasParallax:void 0}:{}))}else e({url:void 0,id:void 0})}}function Nc(e){return!e||"center center"===e||"center"===e}function Ic(e){return Nc(e)?"":Sc[e]}function Mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mc(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ac={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"}},Vc=[{attributes:Rc(Rc({},Ac),{},{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}}),save:function(e){var t=e.attributes,n=t.backgroundType,r=t.gradient,o=t.customGradient,c=t.customOverlayColor,a=t.dimRatio,i=t.focalPoint,l=t.hasParallax,s=t.overlayColor,u=t.url,b=t.minHeight,m=Object(_e.getColorClassName)("background-color",s),d=Object(_e.__experimentalGetGradientClass)(r),p="image"===n?Pc(u):{};m||(p.backgroundColor=c),i&&!l&&(p.backgroundPosition="".concat(Math.round(100*i.x),"% ").concat(Math.round(100*i.y),"%")),o&&!u&&(p.background=o),p.minHeight=b||void 0;var g=Te()(Bc(a),m,je({"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":o},d,!u&&d));return Object(Ce.createElement)("div",{className:g,style:p},u&&(r||o)&&0!==a&&Object(Ce.createElement)("span",{"aria-hidden":"true",className:Te()("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),"video"===n&&u&&Object(Ce.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(Ce.createElement)("div",{className:"wp-block-cover__inner-container"},Object(Ce.createElement)(_e.InnerBlocks.Content,null)))}},{attributes:Rc(Rc({},Ac),{},{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}}),save:function(e){var t=e.attributes,n=t.backgroundType,r=t.gradient,o=t.customGradient,c=t.customOverlayColor,a=t.dimRatio,i=t.focalPoint,l=t.hasParallax,s=t.overlayColor,u=t.url,b=t.minHeight,m=Object(_e.getColorClassName)("background-color",s),d=Object(_e.__experimentalGetGradientClass)(r),p="image"===n?Pc(u):{};m||(p.backgroundColor=c),i&&!l&&(p.backgroundPosition="".concat(100*i.x,"% ").concat(100*i.y,"%")),o&&!u&&(p.background=o),p.minHeight=b||void 0;var g=Te()(Bc(a),m,je({"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":o},d,!u&&d));return Object(Ce.createElement)("div",{className:g,style:p},u&&(r||o)&&0!==a&&Object(Ce.createElement)("span",{"aria-hidden":"true",className:Te()("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),"video"===n&&u&&Object(Ce.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),Object(Ce.createElement)("div",{className:"wp-block-cover__inner-container"},Object(Ce.createElement)(_e.InnerBlocks.Content,null)))}},{attributes:Rc(Rc({},Ac),{},{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}}),supports:{align:!0},save:function(e){var t=e.attributes,n=t.backgroundType,r=t.contentAlign,o=t.customOverlayColor,c=t.dimRatio,a=t.focalPoint,i=t.hasParallax,l=t.overlayColor,s=t.title,u=t.url,b=Object(_e.getColorClassName)("background-color",l),m="image"===n?Pc(u):{};b||(m.backgroundColor=o),a&&!i&&(m.backgroundPosition="".concat(100*a.x,"% ").concat(100*a.y,"%"));var d=Te()(Bc(c),b,je({"has-background-dim":0!==c,"has-parallax":i},"has-".concat(r,"-content"),"center"!==r));return Object(Ce.createElement)("div",{className:d,style:m},"video"===n&&u&&Object(Ce.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!_e.RichText.isEmpty(s)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:s}))},migrate:function(e){return[Object(ke.omit)(e,["title","contentAlign"]),[Object(we.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(Ee.__)("Write title…")})]]}},{attributes:Rc(Rc({},Ac),{},{title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}}),supports:{className:!1},save:function(e){var t=e.attributes,n=t.url,r=t.title,o=t.hasParallax,c=t.dimRatio,a=t.align,i=t.contentAlign,l=t.overlayColor,s=t.customOverlayColor,u=Object(_e.getColorClassName)("background-color",l),b=Pc(n);u||(b.backgroundColor=s);var m=Te()("wp-block-cover-image",Bc(c),u,je({"has-background-dim":0!==c,"has-parallax":o},"has-".concat(i,"-content"),"center"!==i),a?"align".concat(a):null);return Object(Ce.createElement)("div",{className:m,style:b},!_e.RichText.isEmpty(r)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:r}))},migrate:function(e){return[Object(ke.omit)(e,["title","contentAlign","align"]),[Object(we.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(Ee.__)("Write title…")})]]}},{attributes:Rc(Rc({},Ac),{},{title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}}),supports:{className:!1},save:function(e){var t=e.attributes,n=t.url,r=t.title,o=t.hasParallax,c=t.dimRatio,a=t.align,i=Pc(n),l=Te()("wp-block-cover-image",Bc(c),{"has-background-dim":0!==c,"has-parallax":o},a?"align".concat(a):null);return Object(Ce.createElement)("section",{className:l,style:i},Object(Ce.createElement)(_e.RichText.Content,{tagName:"h2",value:r}))},migrate:function(e){return[Object(ke.omit)(e,["title","contentAlign","align"]),[Object(we.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(Ee.__)("Write title…")})]]}}],Hc=n(268),Lc=n.n(Hc),Dc=n(74),Fc=n.n(Dc);function Gc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gc(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qc=["image","video"],Wc=[["core/paragraph",{align:"center",fontSize:"large",placeholder:Object(Ee.__)("Write title…")}]],Zc=He.__experimentalBoxControl.__Visualizer;function Kc(){return Kc.fastAverageColor||(Kc.fastAverageColor=new Lc.a),Kc.fastAverageColor}function $c(e){var t=e.onChange,n=e.onUnitChange,r=e.unit,o=void 0===r?"px":r,c=e.value,a=void 0===c?"":c,i=Ve(Object(Ce.useState)(null),2),l=i[0],s=i[1],u=Object(et.useInstanceId)(_e.__experimentalUnitControl),b="block-cover-height-input-".concat(u),m=null!==l?l:a,d="px"===o?50:0;return Object(Ce.createElement)(He.BaseControl,{label:Object(Ee.__)("Minimum height of cover"),id:b},Object(Ce.createElement)(_e.__experimentalUnitControl,{id:b,isResetValueOnUnitChange:!0,min:d,onBlur:function(){null!==l&&s(null)},onChange:function(e){var r=""!==e?parseInt(e,10):void 0;isNaN(r)&&void 0!==r?s(e):(s(null),t(r),void 0===r&&n())},onUnitChange:n,step:"1",style:{maxWidth:80},unit:o,units:Tc,value:m}))}var Jc={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};function Qc(e){var t=e.className,n=e.onResizeStart,r=e.onResize,o=e.onResizeStop,c=In(e,["className","onResizeStart","onResize","onResizeStop"]),a=Ve(Object(Ce.useState)(!1),2),i=a[0],l=a[1];return Object(Ce.createElement)(He.ResizableBox,Ae({className:Te()(t,{"is-resizing":i}),enable:Jc,onResizeStart:function(e,t,o){n(o.clientHeight),r(o.clientHeight)},onResize:function(e,t,n){r(n.clientHeight),i||l(!0)},onResizeStop:function(e,t,n){o(n.clientHeight),l(!1)},minHeight:50},c))}var Yc=Object(et.compose)([Object(Le.withDispatch)((function(e){return{toggleSelection:e("core/block-editor").toggleSelection}})),Object(_e.withColors)({overlayColor:"background-color"}),He.withNotices,et.withInstanceId])((function(e){var t,n,r,o,c=e.attributes,a=e.setAttributes,i=e.isSelected,l=e.noticeUI,s=e.overlayColor,u=e.setOverlayColor,b=e.toggleSelection,m=e.noticeOperations,d=c.contentPosition,p=c.id,g=c.backgroundType,f=c.dimRatio,h=c.focalPoint,v=c.hasParallax,O=c.isRepeated,j=c.minHeight,y=c.minHeightUnit,_=c.style,w=c.url,k=Object(_e.__experimentalUseGradient)(),E=k.gradientClass,C=k.gradientValue,x=k.setGradient,S=zc(a),P=Object(Xe.isBlobURL)(w),T=Object(Ce.useRef)(),B=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(Ce.useState)(!1),c=Ve(o,2),a=c[0],i=c[1];return Object(Ce.useEffect)((function(){e&&t<=50&&r.current&&Kc().getColorAsync(r.current,(function(e){i(e.isDark)}))}),[e,e&&t<=50&&r.current,i]),Object(Ce.useEffect)((function(){if(t>50||!e){if(!n)return void i(!0);i(Fc()(n).isDark())}}),[n,t>50||!e,i]),Object(Ce.useEffect)((function(){e||n||i(!1)}),[!e&&!n,i]),a}(w,f,s.color,T),z="image"===g,N="video"===g,I=Ve(Object(Ce.useState)(null),2),M=I[0],R=I[1],A=m.removeAllNotices,V=m.createErrorNotice,H=y?"".concat(j).concat(y):j,L=Uc(Uc({},z?Pc(w):{}),{},{backgroundColor:s.color,minHeight:M||H||void 0});C&&!w&&(L.background=C),h&&(o="".concat(100*h.x,"% ").concat(100*h.y,"%"),z&&(L.backgroundPosition=o));var D=!!w&&(s.color||C),F=!!(w||s.color||C),G=N||z&&(!v||O),U=Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,F&&Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.__experimentalBlockAlignmentMatrixToolbar,{label:Object(Ee.__)("Change content position"),value:d,onChange:function(e){return a({contentPosition:e})}}),Object(Ce.createElement)(_e.MediaReplaceFlow,{mediaId:p,mediaURL:w,allowedTypes:qc,accept:"image/*,video/*",onSelect:S}))),Object(Ce.createElement)(_e.InspectorControls,null,!!w&&Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Media settings")},z&&Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Fixed background"),checked:v,onChange:function(){a(Uc({hasParallax:!v},v?{}:{focalPoint:void 0}))}}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Repeated background"),checked:O,onChange:function(){a({isRepeated:!O})}})),G&&Object(Ce.createElement)(He.FocalPointPicker,{label:Object(Ee.__)("Focal point picker"),url:w,value:h,onChange:function(e){return a({focalPoint:e})}}),Object(Ce.createElement)(He.PanelRow,null,Object(Ce.createElement)(He.Button,{isSecondary:!0,isSmall:!0,className:"block-library-cover__reset-button",onClick:function(){return a({url:void 0,id:void 0,backgroundType:void 0,dimRatio:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0})}},Object(Ee.__)("Clear Media")))),F&&Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Dimensions")},Object(Ce.createElement)($c,{value:M||j,unit:y,onChange:function(e){return a({minHeight:e})},onUnitChange:function(e){a({minHeightUnit:e})}})),Object(Ce.createElement)(_e.__experimentalPanelColorGradientSettings,{title:Object(Ee.__)("Overlay"),initialOpen:!0,settings:[{colorValue:s.color,gradientValue:C,onColorChange:u,onGradientChange:x,label:Object(Ee.__)("Color")}]},D&&Object(Ce.createElement)(He.RangeControl,{label:Object(Ee.__)("Opacity"),value:f,onChange:function(e){return a({dimRatio:e})},min:0,max:100,step:10,required:!0}))))),q=Object(_e.useBlockProps)(),W=Object(_e.__experimentalUseInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:Wc});if(!F){var Z=Object(Ce.createElement)(_e.BlockIcon,{icon:Cc}),K=Object(Ee.__)("Cover");return Object(Ce.createElement)(Ce.Fragment,null,U,Object(Ce.createElement)("div",Ae({},q,{className:Te()("is-placeholder",q.className)}),Object(Ce.createElement)(_e.MediaPlaceholder,{icon:Z,labels:{title:K,instructions:Object(Ee.__)("Upload an image or video file, or pick one from your media library.")},onSelect:S,accept:"image/*,video/*",allowedTypes:qc,notices:l,onError:function(e){A(),V(e)}},Object(Ce.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(Ce.createElement)(_e.ColorPalette,{disableCustomColors:!0,value:s.color,onChange:u,clearable:!1})))))}var $=Te()(Bc(f),(je(t={"is-dark-theme":B,"has-background-dim":0!==f,"is-transient":P,"has-parallax":v,"is-repeated":O},s.class,s.class),je(t,"has-background-gradient",C),je(t,E,!w&&E),je(t,"has-custom-content-position",!Nc(d)),t),Ic(d));return Object(Ce.createElement)(Ce.Fragment,null,U,Object(Ce.createElement)("div",Ae({},q,{className:Te()($,q.className),style:Uc(Uc({},L),q.style),"data-url":w}),Object(Ce.createElement)(Zc,{values:null==_||null===(n=_.spacing)||void 0===n?void 0:n.padding,showValues:null==_||null===(r=_.visualizers)||void 0===r?void 0:r.padding}),Object(Ce.createElement)(Qc,{className:"block-library-cover__resize-container",onResizeStart:function(){a({minHeightUnit:"px"}),b(!1)},onResize:R,onResizeStop:function(e){b(!0),a({minHeight:e}),R(null)},showHandle:i}),z&&Object(Ce.createElement)("img",{ref:T,"aria-hidden":!0,alt:"",style:{display:"none"},src:w}),w&&C&&0!==f&&Object(Ce.createElement)("span",{"aria-hidden":"true",className:Te()("wp-block-cover__gradient-background",E),style:{background:C}}),N&&Object(Ce.createElement)("video",{ref:T,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:w,style:{objectPosition:o}}),P&&Object(Ce.createElement)(He.Spinner,null),Object(Ce.createElement)("div",W)))}));var Xc={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,n=e.url,r=e.align,o=e.id,c=e.anchor;return Object(we.createBlock)("core/cover",{title:t,url:n,align:r,id:o,anchor:c})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,n=e.src,r=e.align,o=e.id,c=e.anchor;return Object(we.createBlock)("core/cover",{title:t,url:n,align:r,id:o,backgroundType:"video",anchor:c})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType,n=e.url,r=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return n?"image"===t:!(r||o||c||a)},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id,c=e.anchor;return Object(we.createBlock)("core/image",{caption:t,url:n,align:r,id:o,anchor:c})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType,n=e.url,r=e.overlayColor,o=e.customOverlayColor,c=e.gradient,a=e.customGradient;return n?"video"===t:!(r||o||c||a)},transform:function(e){var t=e.title,n=e.url,r=e.align,o=e.id,c=e.anchor;return Object(we.createBlock)("core/video",{caption:t,src:n,id:o,align:r,anchor:c})}}]},ea={apiVersion:2,name:"core/cover",category:"media",attributes:{url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},isRepeated:{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"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0}}},ta=ea.name,na={title:Object(Ee.__)("Cover"),description:Object(Ee.__)("Add an image or video with a text overlay — great for headers."),icon:Cc,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(Ee.__)("<strong>Snow Patrol</strong>"),align:"center"}}]},transforms:Xc,save:function(e){var t,n,r=e.attributes,o=r.backgroundType,c=r.gradient,a=r.contentPosition,i=r.customGradient,l=r.customOverlayColor,s=r.dimRatio,u=r.focalPoint,b=r.hasParallax,m=r.isRepeated,d=r.overlayColor,p=r.url,g=r.minHeight,f=r.minHeightUnit,h=Object(_e.getColorClassName)("background-color",d),v=Object(_e.__experimentalGetGradientClass)(c),O=f?"".concat(g).concat(f):g,j="image"===o,y="video"===o,_=j?Pc(p):{},w={};h||(_.backgroundColor=l),i&&!p&&(_.background=i),_.minHeight=O||void 0,u&&(n="".concat(Math.round(100*u.x),"% ").concat(Math.round(100*u.y),"%"),j&&!b&&(_.backgroundPosition=n),y&&(w.objectPosition=n));var k=Te()(Bc(s),h,(je(t={"has-background-dim":0!==s,"has-parallax":b,"is-repeated":m,"has-background-gradient":c||i},v,!p&&v),je(t,"has-custom-content-position",!Nc(a)),t),Ic(a));return Object(Ce.createElement)("div",_e.useBlockProps.save({className:k,style:_}),p&&(c||i)&&0!==s&&Object(Ce.createElement)("span",{"aria-hidden":"true",className:Te()("wp-block-cover__gradient-background",v),style:i?{background:i}:void 0}),y&&p&&Object(Ce.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:w}),Object(Ce.createElement)("div",{className:"wp-block-cover__inner-container"},Object(Ce.createElement)(_e.InnerBlocks.Content,null)))},edit:Yc,deprecated:Vc},ra=function(e){var t=e.blockSupportsResponsive,n=e.showEditButton,r=e.themeSupportsResponsive,o=e.allowResponsive,c=e.getResponsiveHelp,a=e.toggleResponsive,i=e.switchBackToURLInput;return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(He.ToolbarGroup,null,n&&Object(Ce.createElement)(He.ToolbarButton,{className:"components-toolbar__control",label:Object(Ee.__)("Edit URL"),icon:sr.a,onClick:i}))),r&&t&&Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Media settings"),className:"blocks-responsive"},Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Resize for smaller devices"),checked:o,help:c,onChange:a}))))},oa=function(){return Object(Ce.createElement)("div",{className:"wp-block-embed is-loading"},Object(Ce.createElement)(He.Spinner,null),Object(Ce.createElement)("p",null,Object(Ee.__)("Embedding…")))},ca=function(e){var t=e.icon,n=e.label,r=e.value,o=e.onSubmit,c=e.onChange,a=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(Ce.createElement)(He.Placeholder,{icon:Object(Ce.createElement)(_e.BlockIcon,{icon:t,showColors:!0}),label:n,className:"wp-block-embed",instructions:Object(Ee.__)("Paste a link to the content you want to display on your site.")},Object(Ce.createElement)("form",{onSubmit:o},Object(Ce.createElement)("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:Object(Ee.__)("Enter URL to embed here…"),onChange:c}),Object(Ce.createElement)(He.Button,{isPrimary:!0,type:"submit"},Object(Ee._x)("Embed","button label"))),Object(Ce.createElement)("div",{className:"components-placeholder__learn-more"},Object(Ce.createElement)(He.ExternalLink,{href:Object(Ee.__)("https://wordpress.org/support/article/embeds/")},Object(Ee.__)("Learn more about embeds"))),a&&Object(Ce.createElement)("div",{className:"components-placeholder__error"},Object(Ce.createElement)("div",{className:"components-placeholder__instructions"},Object(Ee.__)("Sorry, this content could not be embedded.")),Object(Ce.createElement)(He.Button,{isSecondary:!0,onClick:l},Object(Ee._x)("Try again","button label"))," ",Object(Ce.createElement)(He.Button,{isSecondary:!0,onClick:i},Object(Ee._x)("Convert to link","button label"))))};function aa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ar(e);if(t){var o=ar(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cr(this,n)}}var ia=window,la=ia.FocusEvent,sa=ia.DOMParser,ua=function(e){rr(n,e);var t=aa(n);function n(){var e;return Yn(this,n),(e=t.apply(this,arguments)).checkFocus=e.checkFocus.bind(tr(e)),e.node=Object(Ce.createRef)(),e}return er(n,[{key:"componentDidMount",value:function(){window.addEventListener("message",this.resizeWPembeds)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("message",this.resizeWPembeds)}},{key:"resizeWPembeds",value:function(e){var t=e.data,n=(t=void 0===t?{}:t).secret,r=t.message,o=t.value;[n,r,o].some((function(e){return!e}))||"height"!==r||document.querySelectorAll('iframe[data-secret="'.concat(n,'"')).forEach((function(e){+e.height!==o&&(e.height=o)}))}},{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new la("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html,t=(new sa).parseFromString(e,"text/html"),n=t.querySelector("iframe");n&&n.removeAttribute("style");var r=t.querySelector("blockquote");return r&&(r.style.display="none"),Object(Ce.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:t.body.innerHTML}})}}]),n}(Ce.Component),ba=Object(et.withGlobalEvents)({blur:"checkFocus"})(ua);function ma(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ar(e);if(t){var o=ar(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cr(this,n)}}var da=function(e){rr(n,e);var t=ma(n);function n(){var e;return Yn(this,n),(e=t.apply(this,arguments)).hideOverlay=e.hideOverlay.bind(tr(e)),e.state={interactive:!1},e}return er(n,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,n,r=this.props,o=r.preview,c=r.previewable,a=r.url,i=r.type,l=r.caption,s=r.onCaptionChange,u=r.isSelected,b=r.className,m=r.icon,d=r.label,p=r.insertBlocksAfter,g=o.scripts,f=this.state.interactive,h="photo"===i?(t=(e=o).thumbnail_url||e.url,n=Object(Ce.createElement)("p",null,Object(Ce.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object(Ce.renderToString)(n)):o.html,v=new URL(a).host.split("."),O=v.splice(v.length-2,v.length-1).join("."),j=Object(Ee.sprintf)(// translators: %s: host providing embed content e.g: www.youtube.com
Object(Ee.__)("Embedded content from %s"),O),y=at()(i,b,"wp-block-embed__wrapper"),_="wp-embed"===i?Object(Ce.createElement)(ba,{html:h}):Object(Ce.createElement)("div",{className:"wp-block-embed__wrapper"},Object(Ce.createElement)(He.SandBox,{html:h,scripts:g,title:j,type:y,onFocus:this.hideOverlay}),!f&&Object(Ce.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(Ce.createElement)("figure",{className:at()(b,"wp-block-embed",{"is-type-video":"video"===i})},c?_:Object(Ce.createElement)(He.Placeholder,{icon:Object(Ce.createElement)(_e.BlockIcon,{icon:m,showColors:!0}),label:d},Object(Ce.createElement)("p",{className:"components-placeholder__error"},Object(Ce.createElement)("a",{href:a},a)),Object(Ce.createElement)("p",{className:"components-placeholder__error"},Object(Ee.sprintf)(
/* translators: %s: host providing embed content e.g: www.youtube.com */
Object(Ee.__)("Embedded content from %s can't be previewed in the editor."),O))),(!_e.RichText.isEmpty(l)||u)&&Object(Ce.createElement)(_e.RichText,{tagName:"figcaption",placeholder:Object(Ee.__)("Write caption…"),value:l,onChange:s,inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return p(Object(we.createBlock)("core/paragraph"))}}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),n}(Ce.Component);function pa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ga(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pa(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fa(e){return e?Object(Ee.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(Ee.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var ha=function(e){var t,n,r=e.attributes,o=r.providerNameSlug,c=r.previewable,a=r.responsive,i=r.url,l=e.attributes,s=e.isSelected,u=e.onReplace,b=e.setAttributes,m=e.insertBlocksAfter,d={title:La.title,icon:La.icon},p=(t=o,(null===(n=Object(we.getBlockVariations)("core/embed"))||void 0===n?void 0:n.find((function(e){return e.name===t})))||d),g=p.icon,f=p.title,h=Ve(Object(Ce.useState)(i),2),v=h[0],O=h[1],j=Ve(Object(Ce.useState)(!1),2),y=j[0],_=j[1],w=Object(Le.useDispatch)("core/data").invalidateResolution,k=Object(Le.useSelect)((function(e){var t,n=e("core"),r=n.getEmbedPreview,o=n.isPreviewEmbedFallback,c=n.isRequestingEmbedPreview,a=n.getThemeSupports;if(!i)return{fetching:!1,cannotEmbed:!1};var l=r(i),s=o(i),u=!1===(null==l?void 0:l.html)&&void 0===(null==l?void 0:l.type),b=404===(null==l||null===(t=l.data)||void 0===t?void 0:t.status),m=!!l&&!u&&!b;return{preview:m?l:void 0,fetching:c(i),themeSupportsResponsive:a()["responsive-embeds"],cannotEmbed:!m||s}}),[i]),E=k.preview,C=k.fetching,x=k.themeSupportsResponsive,S=k.cannotEmbed,P=function(){var e=l.allowResponsive,t=l.className;return ga(ga({},l),ft(E,f,t,a,e))};Object(Ce.useEffect)((function(){if((null==E?void 0:E.html)&&S&&!C){var e=i.replace(/\/$/,"");O(e),_(!1),b({url:e})}}),[null==E?void 0:E.html,i]),Object(Ce.useEffect)((function(){if(E&&!y&&(b(P()),u)){var t=dt(e,P());t&&u(t)}}),[E,y]);var T=Object(_e.useBlockProps)();if(C)return Object(Ce.createElement)("div",T,Object(Ce.createElement)(oa,null));// translators: %s: type of embed e.g: "YouTube", "Twitter", etc. "Embed" is used when no specific type exists
var B=Object(Ee.sprintf)(Object(Ee.__)("%s URL"),f);if(!E||S||y)return Object(Ce.createElement)("div",T,Object(Ce.createElement)(ca,{icon:g,label:B,onSubmit:function(e){e&&e.preventDefault(),_(!1),b({url:v})},value:v,cannotEmbed:S,onChange:function(e){return O(e.target.value)},fallback:function(){return function(e,t){var n=Object(Ce.createElement)("a",{href:e},e);t(Object(we.createBlock)("core/paragraph",{content:Object(Ce.renderToString)(n)}))}(v,u)},tryAgain:function(){w("core","getEmbedPreview",[v])}}));var z=P(),N=z.caption,I=z.type,M=z.allowResponsive,R=z.className,A=Te()(R,e.className);return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(ra,{showEditButton:E&&!S,themeSupportsResponsive:x,blockSupportsResponsive:a,allowResponsive:M,getResponsiveHelp:fa,toggleResponsive:function(){var e=l.allowResponsive,t=l.className,n=E.html,r=!e;b({allowResponsive:r,className:gt(n,t,a&&r)})},switchBackToURLInput:function(){return _(!0)}}),Object(Ce.createElement)("div",T,Object(Ce.createElement)(da,{preview:E,previewable:c,className:A,url:v,type:I,caption:N,onCaptionChange:function(e){return b({caption:e})},isSelected:s,icon:g,label:B,insertBlocksAfter:m})))};var va={from:[{type:"raw",isMatch:function(e){return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)},transform:function(e){return Object(we.createBlock)("core/embed",{url:e.textContent.trim()})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.url,n=e.caption,r=Object(Ce.createElement)("a",{href:t},n||t);return Object(we.createBlock)("core/paragraph",{content:Object(Ce.renderToString)(r)})}}]},Oa=Object(Ce.createElement)(He.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(He.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),ja=Object(Ce.createElement)(He.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(He.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})),ya=Object(Ce.createElement)(He.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(He.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),_a=Object(Ce.createElement)(He.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(He.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})),wa={foreground:"#1da1f2",src:Object(Ce.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(He.G,null,Object(Ce.createElement)(He.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"})))},ka={foreground:"#ff0000",src:Object(Ce.createElement)(He.SVG,{viewBox:"0 0 24 24"},Object(Ce.createElement)(He.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"}))},Ea={foreground:"#3b5998",src:Object(Ce.createElement)(He.SVG,{viewBox:"0 0 24 24"},Object(Ce.createElement)(He.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"}))},Ca=Object(Ce.createElement)(He.SVG,{viewBox:"0 0 24 24"},Object(Ce.createElement)(He.G,null,Object(Ce.createElement)(He.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"}))),xa={foreground:"#0073AA",src:Object(Ce.createElement)(He.SVG,{viewBox:"0 0 24 24"},Object(Ce.createElement)(He.G,null,Object(Ce.createElement)(He.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"})))},Sa={foreground:"#1db954",src:Object(Ce.createElement)(He.SVG,{viewBox:"0 0 24 24"},Object(Ce.createElement)(He.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"}))},Pa=Object(Ce.createElement)(He.SVG,{viewBox:"0 0 24 24"},Object(Ce.createElement)(He.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"})),Ta={foreground:"#1ab7ea",src:Object(Ce.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(He.G,null,Object(Ce.createElement)(He.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"})))},Ba=Object(Ce.createElement)(He.SVG,{viewBox:"0 0 24 24"},Object(Ce.createElement)(He.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"})),za={foreground:"#35465c",src:Object(Ce.createElement)(He.SVG,{viewBox:"0 0 24 24"},Object(Ce.createElement)(He.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"}))},Na=Object(Ce.createElement)(He.SVG,{viewBox:"0 0 24 24"},Object(Ce.createElement)(He.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(Ce.createElement)(He.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(Ce.createElement)(He.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"})),Ia=Object(Ce.createElement)(He.SVG,{viewBox:"0 0 24 24"},Object(Ce.createElement)(He.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),Object(Ce.createElement)(He.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),Object(Ce.createElement)(He.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),Object(Ce.createElement)(He.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),Object(Ce.createElement)(He.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),Object(Ce.createElement)(He.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),Ma=Object(Ce.createElement)(He.SVG,{viewBox:"0 0 24 24"},Object(Ce.createElement)(He.Path,{d:"m12.1479 18.5957c-2.4949 0-4.28131-1.7558-4.28131-4.0658 0-2.2176 1.78641-4.0965 4.09651-4.0965 2.2793 0 4.0349 1.7864 4.0349 4.1581 0 2.2794-1.7556 4.0042-3.8501 4.0042zm8.3521-18.5957-4.5329 1v7c-1.1088-1.41691-2.8028-1.8787-4.8049-1.8787-2.09443 0-3.97329.76993-5.5133 2.27917-1.72483 1.66323-2.6489 3.78863-2.6489 6.16033 0 2.5873.98562 4.8049 2.89526 6.499 1.44763 1.2936 3.17251 1.9402 5.17454 1.9402 1.9713 0 3.4498-.5236 4.8973-1.9402v1.9402h4.5329c0-7.6359 0-15.3641 0-23z",fill:"#333436"})),Ra=[{name:"twitter",title:"Twitter",icon:wa,keywords:["tweet",Object(Ee.__)("social")],description:Object(Ee.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:"YouTube",icon:ka,keywords:[Object(Ee.__)("music"),Object(Ee.__)("video")],description:Object(Ee.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:"Facebook",icon:Ea,keywords:[Object(Ee.__)("social")],description:Object(Ee.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:"Instagram",icon:Ca,keywords:[Object(Ee.__)("image"),Object(Ee.__)("social")],description:Object(Ee.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:"WordPress",icon:xa,keywords:[Object(Ee.__)("post"),Object(Ee.__)("blog")],description:Object(Ee.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:"SoundCloud",icon:ja,keywords:[Object(Ee.__)("music"),Object(Ee.__)("audio")],description:Object(Ee.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:"Spotify",icon:Sa,keywords:[Object(Ee.__)("music"),Object(Ee.__)("audio")],description:Object(Ee.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:"Flickr",icon:Pa,keywords:[Object(Ee.__)("image")],description:Object(Ee.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:"Vimeo",icon:Ta,keywords:[Object(Ee.__)("video")],description:Object(Ee.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:"Animoto",icon:Ia,description:Object(Ee.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:"Cloudup",icon:Oa,description:Object(Ee.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:"CollegeHumor",icon:_a,description:Object(Ee.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:"Crowdsignal",icon:Oa,keywords:["polldaddy",Object(Ee.__)("survey")],description:Object(Ee.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:"Dailymotion",icon:Ma,keywords:[Object(Ee.__)("video")],description:Object(Ee.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:"Imgur",icon:ya,description:Object(Ee.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:"Issuu",icon:Oa,description:Object(Ee.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:"Kickstarter",icon:Oa,description:Object(Ee.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"meetup-com",title:"Meetup.com",icon:Oa,description:Object(Ee.__)("Embed Meetup.com content."),patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i],attributes:{providerNameSlug:"meetup-com",responsive:!0}},{name:"mixcloud",title:"Mixcloud",icon:ja,keywords:[Object(Ee.__)("music"),Object(Ee.__)("audio")],description:Object(Ee.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"reddit",title:"Reddit",icon:Ba,description:Object(Ee.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:"ReverbNation",icon:ja,description:Object(Ee.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"screencast",title:"Screencast",icon:_a,description:Object(Ee.__)("Embed Screencast content."),patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i],attributes:{providerNameSlug:"screencast",responsive:!0}},{name:"scribd",title:"Scribd",icon:Oa,description:Object(Ee.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"slideshare",title:"Slideshare",icon:Oa,description:Object(Ee.__)("Embed Slideshare content."),patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i],attributes:{providerNameSlug:"slideshare",responsive:!0}},{name:"smugmug",title:"SmugMug",icon:ya,description:Object(Ee.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:"Speaker Deck",icon:Oa,description:Object(Ee.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:"TikTok",icon:_a,keywords:[Object(Ee.__)("video")],description:Object(Ee.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:"TED",icon:_a,description:Object(Ee.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:"Tumblr",icon:za,keywords:[Object(Ee.__)("social")],description:Object(Ee.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:"VideoPress",icon:_a,keywords:[Object(Ee.__)("video")],description:Object(Ee.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:"WordPress.tv",icon:_a,description:Object(Ee.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:"Amazon Kindle",icon:Na,keywords:[Object(Ee.__)("ebook")],description:Object(Ee.__)("Embed Amazon Kindle content."),patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i],attributes:{providerNameSlug:"amazon-kindle"}}],Aa=[{attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,c=n.type,a=n.providerNameSlug;if(!r)return null;var i=Te()("wp-block-embed",(je(t={},"is-type-".concat(c),c),je(t,"is-provider-".concat(a),a),t));return Object(Ce.createElement)("figure",{className:i},"\n".concat(r,"\n"),!_e.RichText.isEmpty(o)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"figcaption",value:o}))}}],Va={apiVersion:2,name:"core/embed",category:"embed",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0,reusable:!1,html:!1}},Ha=Va.name,La={title:Object(Ee._x)("Embed","block title"),description:Object(Ee.__)("Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube."),icon:Oa,edit:ha,save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,c=n.type,a=n.providerNameSlug;if(!r)return null;var i=at()("wp-block-embed",(je(t={},"is-type-".concat(c),c),je(t,"is-provider-".concat(a),a),je(t,"wp-block-embed-".concat(a),a),t));return Object(Ce.createElement)("figure",_e.useBlockProps.save({className:i}),Object(Ce.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(r,"\n")),!_e.RichText.isEmpty(o)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"figcaption",value:o}))},transforms:va,variations:Ra,deprecated:Aa},Da=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));function Fa(e){var t=e.hrefs,n=e.openInNewWindow,r=e.showDownloadButton,o=e.changeLinkDestinationOption,c=e.changeOpenInNewWindow,a=e.changeShowDownloadButton,i=t.href,l=t.textLinkHref,s=t.attachmentPage,u=[{value:i,label:Object(Ee.__)("URL")}];return s&&(u=[{value:i,label:Object(Ee.__)("Media file")},{value:s,label:Object(Ee.__)("Attachment page")}]),Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Text link settings")},Object(Ce.createElement)(He.SelectControl,{label:Object(Ee.__)("Link to"),value:l,options:u,onChange:o}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Open in new tab"),checked:n,onChange:c})),Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Download button settings")},Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Show download button"),checked:r,onChange:a}))))}var Ga=Object(He.withNotices)((function(e){var t=e.isSelected,n=e.attributes,r=e.setAttributes,o=e.noticeUI,c=e.noticeOperations,a=n.id,i=n.fileName,l=n.href,s=n.textLinkHref,u=n.textLinkTarget,b=n.showDownloadButton,m=n.downloadButtonText,d=Ve(Object(Ce.useState)(!1),2),p=d[0],g=d[1],f=Ve(Object(Ce.useState)(!1),2),h=f[0],v=f[1],O=Object(Le.useSelect)((function(e){return{media:void 0===a?void 0:e("core").getMedia(a),mediaUpload:e("core/block-editor").getSettings().mediaUpload}}),[a]),j=O.media,y=O.mediaUpload;function _(e){e&&e.url&&(g(!1),r({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id}))}function w(e){g(!0),c.removeAllNotices(),c.createErrorNotice(e)}Object(Ce.useEffect)((function(){if(Object(Xe.isBlobURL)(l)){var e=Object(Xe.getBlobByURL)(l);y({filesList:[e],onFileChange:function(e){return _(Ve(e,1)[0])},onError:function(e){g(!0),c.createErrorNotice(e)}}),Object(Xe.revokeBlobURL)(l)}void 0===m&&r({downloadButtonText:Object(Ee._x)("Download","button label")})}),[]),Object(Ce.useEffect)((function(){v(!1)}),[t]);var k=j&&j.link,E=Object(_e.useBlockProps)({className:Te()(Object(He.__unstableUseAnimate)({type:Object(Xe.isBlobURL)(l)?"loading":null}),{"is-transient":Object(Xe.isBlobURL)(l)})});return!l||p?Object(Ce.createElement)("div",E,Object(Ce.createElement)(_e.MediaPlaceholder,{icon:Object(Ce.createElement)(_e.BlockIcon,{icon:Da}),labels:{title:Object(Ee.__)("File"),instructions:Object(Ee.__)("Upload a file or pick one from your media library.")},onSelect:_,notices:o,onError:w,accept:"*"})):Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(Fa,Ae({hrefs:{href:l,textLinkHref:s,attachmentPage:k}},{openInNewWindow:!!u,showDownloadButton:b,changeLinkDestinationOption:function(e){r({textLinkHref:e})},changeOpenInNewWindow:function(e){r({textLinkTarget:!!e&&"_blank"})},changeShowDownloadButton:function(e){r({showDownloadButton:e})}})),Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.MediaReplaceFlow,{mediaId:a,mediaURL:l,accept:"*",onSelect:_,onError:w})),Object(Ce.createElement)("div",E,Object(Ce.createElement)("div",{className:"wp-block-file__content-wrapper"},Object(Ce.createElement)("div",{className:"wp-block-file__textlink"},Object(Ce.createElement)(_e.RichText,{tagName:"div",value:i,placeholder:Object(Ee.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:function(e){return r({fileName:e})}})),b&&Object(Ce.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},Object(Ce.createElement)(_e.RichText,{tagName:"div",className:"wp-block-file__button",value:m,withoutInteractiveFormatting:!0,placeholder:Object(Ee.__)("Add text…"),onChange:function(e){return r({downloadButtonText:e})}}))),t&&Object(Ce.createElement)(He.ClipboardButton,{isSecondary:!0,text:l,className:"wp-block-file__copy-url-button",onCopy:function(){v(!0)},onFinishCopy:function(){v(!1)},disabled:Object(Xe.isBlobURL)(l)},h?Object(Ee.__)("Copied!"):Object(Ee.__)("Copy URL"))))}));var Ua={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(Xe.createBlobURL)(e);t.push(Object(we.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(we.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/video"],transform:function(e){return Object(we.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/image"],transform:function(e){return Object(we.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id,anchor:e.anchor})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(Le.select)("core").getMedia)(t);return!!n&&Object(ke.includes)(n.mime_type,"audio")},transform:function(e){return Object(we.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(Le.select)("core").getMedia)(t);return!!n&&Object(ke.includes)(n.mime_type,"video")},transform:function(e){return Object(we.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var n=(0,Object(Le.select)("core").getMedia)(t);return!!n&&Object(ke.includes)(n.mime_type,"image")},transform:function(e){return Object(we.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}}]},qa={apiVersion:2,name:"core/file",category:"media",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]"}},supports:{anchor:!0,align:!0}},Wa=qa.name,Za={title:Object(Ee.__)("File"),description:Object(Ee.__)("Add a link to a downloadable file."),icon:Da,keywords:[Object(Ee.__)("document"),Object(Ee.__)("pdf"),Object(Ee.__)("download")],transforms:Ua,edit:Ga,save:function(e){var t=e.attributes,n=t.href,r=t.fileName,o=t.textLinkHref,c=t.textLinkTarget,a=t.showDownloadButton,i=t.downloadButtonText;return n&&Object(Ce.createElement)("div",_e.useBlockProps.save(),!_e.RichText.isEmpty(r)&&Object(Ce.createElement)("a",{href:o,target:c,rel:!!c&&"noreferrer noopener"},Object(Ce.createElement)(_e.RichText.Content,{value:r})),a&&Object(Ce.createElement)("a",{href:n,className:"wp-block-file__button",download:!0},Object(Ce.createElement)(_e.RichText.Content,{value:i})))}},Ka=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"}));var $a={from:[{type:"block",blocks:["core/code"],transform:function(e){var t=e.content;return Object(we.createBlock)("core/html",{content:t})}}]},Ja={apiVersion:2,name:"core/html",category:"widgets",attributes:{content:{type:"string",source:"html"}},supports:{customClassName:!1,className:!1,html:!1}},Qa=Ja.name,Ya={title:Object(Ee.__)("Custom HTML"),description:Object(Ee.__)("Add custom HTML code and preview it as you edit."),icon:Ka,keywords:[Object(Ee.__)("embed")],example:{attributes:{content:"<marquee>"+Object(Ee.__)("Welcome to the wonderful world of blocks…")+"</marquee>"}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,o=Ve(Object(Ce.useState)(),2),c=o[0],a=o[1],i=Object(Le.useSelect)((function(e){return["\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(Oe(Object(_e.transformStyles)(e("core/block-editor").getSettings().styles)))}),[]);return Object(Ce.createElement)("div",Object(_e.useBlockProps)(),Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(He.ToolbarGroup,null,Object(Ce.createElement)(He.ToolbarButton,{className:"components-tab-button",isPressed:!c,onClick:function(){a(!1)}},Object(Ce.createElement)("span",null,"HTML")),Object(Ce.createElement)(He.ToolbarButton,{className:"components-tab-button",isPressed:c,onClick:function(){a(!0)}},Object(Ce.createElement)("span",null,Object(Ee.__)("Preview"))))),Object(Ce.createElement)(He.Disabled.Consumer,null,(function(e){return c||e?Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(He.SandBox,{html:t.content,styles:i}),!r&&Object(Ce.createElement)("div",{className:"block-library-html__preview-overlay"})):Object(Ce.createElement)(_e.PlainText,{value:t.content,onChange:function(e){return n({content:e})},placeholder:Object(Ee.__)("Write HTML…"),"aria-label":Object(Ee.__)("HTML")})})))},save:function(e){var t=e.attributes;return Object(Ce.createElement)(Ce.RawHTML,null,t.content)},transforms:$a},Xa=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M4 17h7V6H4v11zm9-10v1.5h7V7h-7zm0 5.5h7V11h-7v1.5zm0 4h7V15h-7v1.5z"})),ei=Object(Ce.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(He.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(Ce.createElement)(He.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(Ce.createElement)(He.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),ti=["image","video"];function ni(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}function ri(e){var t=e.isSelected,n=e.isStackedOnMobile,r=In(e,["isSelected","isStackedOnMobile"]),o=Object(et.useViewportMatch)("small","<");return Object(Ce.createElement)(He.ResizableBox,Ae({showHandle:t&&(!o||!n)},r))}function oi(e){var t=e.mediaId,n=e.mediaUrl,r=e.onSelectMedia;return Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.MediaReplaceFlow,{mediaId:t,mediaURL:n,allowedTypes:ti,accept:"image/*,video/*",onSelect:r}))}function ci(e){var t=e.className,n=e.noticeOperations,r=e.noticeUI,o=e.onSelectMedia;return Object(Ce.createElement)(_e.MediaPlaceholder,{icon:Object(Ce.createElement)(_e.BlockIcon,{icon:ei}),labels:{title:Object(Ee.__)("Media area")},className:t,onSelect:o,accept:"image/*,video/*",allowedTypes:ti,notices:r,onError:function(e){n.removeAllNotices(),n.createErrorNotice(e)}})}var ai=Object(He.withNotices)((function(e){var t=e.className,n=e.commitWidthChange,r=e.focalPoint,o=e.imageFill,c=e.isSelected,a=e.isStackedOnMobile,i=e.mediaAlt,l=e.mediaId,s=e.mediaPosition,u=e.mediaType,b=e.mediaUrl,m=e.mediaWidth,d=e.onSelectMedia,p=e.onWidthChange,g=Object(Le.useDispatch)("core/block-editor").toggleSelection;if(u&&b){var f={right:"left"===s,left:"right"===s},h="image"===u&&o?ni(b,r):{},v={image:function(){return Object(Ce.createElement)("img",{src:b,alt:i})},video:function(){return Object(Ce.createElement)("video",{controls:!0,src:b})}};return Object(Ce.createElement)(ri,{as:"figure",className:Te()(t,"editor-media-container__resizer"),style:h,size:{width:m+"%"},minWidth:"10%",maxWidth:"100%",enable:f,onResizeStart:function(){g(!1)},onResize:function(e,t,n){p(parseInt(n.style.width))},onResizeStop:function(e,t,r){g(!0),n(parseInt(r.style.width))},axis:"x",isSelected:c,isStackedOnMobile:a},Object(Ce.createElement)(oi,{onSelectMedia:d,mediaUrl:b,mediaId:l}),(v[u]||ke.noop)())}return Object(Ce.createElement)(ci,e)}));function ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ii(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ii(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var si=function(e){if(!e.customBackgroundColor)return e;var t={color:{background:e.customBackgroundColor}};return li(li({},Object(ke.omit)(e,["customBackgroundColor"])),{},{style:t})},ui={align:{type:"string",default:"wide"},backgroundColor:{type:"string"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!0}},bi=[{attributes:li(li({},ui),{},{customBackgroundColor:{type:"string"},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"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}}),migrate:si,save:function(e){var t,n=e.attributes,r=n.backgroundColor,o=n.customBackgroundColor,c=n.isStackedOnMobile,a=n.mediaAlt,i=n.mediaPosition,l=n.mediaType,s=n.mediaUrl,u=n.mediaWidth,b=n.mediaId,m=n.verticalAlignment,d=n.imageFill,p=n.focalPoint,g=n.linkClass,f=n.href,h=n.linkTarget,v=n.rel,O=Object(ke.isEmpty)(v)?void 0:v,j=Object(Ce.createElement)("img",{src:s,alt:a,className:b&&"image"===l?"wp-image-".concat(b):null});f&&(j=Object(Ce.createElement)("a",{className:g,href:f,target:h,rel:O},j));var y,_={image:function(){return j},video:function(){return Object(Ce.createElement)("video",{controls:!0,src:s})}},w=Object(_e.getColorClassName)("background-color",r),k=Te()((je(t={"has-media-on-the-right":"right"===i,"has-background":w||o},w,w),je(t,"is-stacked-on-mobile",c),je(t,"is-vertically-aligned-".concat(m),m),je(t,"is-image-fill",d),t)),E=d?ni(s,p):{};50!==u&&(y="right"===i?"auto ".concat(u,"%"):"".concat(u,"% auto"));var C={backgroundColor:w?void 0:o,gridTemplateColumns:y};return Object(Ce.createElement)("div",{className:k,style:C},Object(Ce.createElement)("figure",{className:"wp-block-media-text__media",style:E},(_[l]||ke.noop)()),Object(Ce.createElement)("div",{className:"wp-block-media-text__content"},Object(Ce.createElement)(_e.InnerBlocks.Content,null)))}},{attributes:li(li({},ui),{},{customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}}),migrate:si,save:function(e){var t,n,r=e.attributes,o=r.backgroundColor,c=r.customBackgroundColor,a=r.isStackedOnMobile,i=r.mediaAlt,l=r.mediaPosition,s=r.mediaType,u=r.mediaUrl,b=r.mediaWidth,m=r.mediaId,d=r.verticalAlignment,p=r.imageFill,g=r.focalPoint,f={image:function(){return Object(Ce.createElement)("img",{src:u,alt:i,className:m&&"image"===s?"wp-image-".concat(m):null})},video:function(){return Object(Ce.createElement)("video",{controls:!0,src:u})}},h=Object(_e.getColorClassName)("background-color",o),v=Te()((je(t={"has-media-on-the-right":"right"===l},h,h),je(t,"is-stacked-on-mobile",a),je(t,"is-vertically-aligned-".concat(d),d),je(t,"is-image-fill",p),t)),O=p?ni(u,g):{};50!==b&&(n="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var j={backgroundColor:h?void 0:c,gridTemplateColumns:n};return Object(Ce.createElement)("div",{className:v,style:j},Object(Ce.createElement)("figure",{className:"wp-block-media-text__media",style:O},(f[s]||ke.noop)()),Object(Ce.createElement)("div",{className:"wp-block-media-text__content"},Object(Ce.createElement)(_e.InnerBlocks.Content,null)))}},{attributes:li(li({},ui),{},{customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}}),save:function(e){var t,n,r=e.attributes,o=r.backgroundColor,c=r.customBackgroundColor,a=r.isStackedOnMobile,i=r.mediaAlt,l=r.mediaPosition,s=r.mediaType,u=r.mediaUrl,b=r.mediaWidth,m={image:function(){return Object(Ce.createElement)("img",{src:u,alt:i})},video:function(){return Object(Ce.createElement)("video",{controls:!0,src:u})}},d=Object(_e.getColorClassName)("background-color",o),p=Te()((je(t={"has-media-on-the-right":"right"===l},d,d),je(t,"is-stacked-on-mobile",a),t));50!==b&&(n="right"===l?"auto ".concat(b,"%"):"".concat(b,"% auto"));var g={backgroundColor:d?void 0:c,gridTemplateColumns:n};return Object(Ce.createElement)("div",{className:p,style:g},Object(Ce.createElement)("figure",{className:"wp-block-media-text__media"},(m[s]||ke.noop)()),Object(Ce.createElement)("div",{className:"wp-block-media-text__content"},Object(Ce.createElement)(_e.InnerBlocks.Content,null)))}}],mi=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M4 18h6V6H4v12zm9-10v1.5h7V8h-7zm0 7.5h7V14h-7v1.5z"})),di=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M14 6v12h6V6h-6zM4 9.5h7V8H4v1.5zm0 6h7V14H4v1.5z"})),pi=[["core/paragraph",{fontSize:"large",placeholder:Object(Ee._x)("Content…","content placeholder")}]],gi=function(e){return Math.max(15,Math.min(e,85))};function fi(e,t){var n,r,o;return null==e||null===(n=e.media_details)||void 0===n||null===(r=n.sizes)||void 0===r||null===(o=r[t])||void 0===o?void 0:o.source_url}var hi=function(e){var t,n=e.attributes,r=e.isSelected,o=e.setAttributes,c=n.focalPoint,a=n.href,i=n.imageFill,l=n.isStackedOnMobile,s=n.linkClass,u=n.linkDestination,b=n.linkTarget,m=n.mediaAlt,d=n.mediaId,p=n.mediaPosition,g=n.mediaType,f=n.mediaUrl,h=n.mediaWidth,v=n.rel,O=n.verticalAlignment,j=n.mediaSizeSlug||"full",y=Object(Le.useSelect)((function(e){return d&&r?e("core").getMedia(d):null}),[r,d]),_=Ve(Object(Ce.useState)(null),2),w=_[0],k=_[1],E=function(e){var t=e.attributes,n=t.linkDestination,r=t.href,o=e.setAttributes;return function(e){var t,c,a,i,l,s,u;"image"===(t=e.media_type?"image"===e.media_type?"image":"video":e.type)&&(c=(null===(a=e.sizes)||void 0===a||null===(i=a.large)||void 0===i?void 0:i.url)||(null===(l=e.media_details)||void 0===l||null===(s=l.sizes)||void 0===s||null===(u=s.large)||void 0===u?void 0:u.source_url));var b=r;"media"===n&&(b=e.url),"attachment"===n&&(b=e.link),o({mediaAlt:e.alt,mediaId:e.id,mediaType:t,mediaUrl:c||e.url,mediaLink:e.link||void 0,href:b,focalPoint:void 0})}}({attributes:n,setAttributes:o}),C=Te()((je(t={"has-media-on-the-right":"right"===p,"is-selected":r,"is-stacked-on-mobile":l},"is-vertically-aligned-".concat(O),O),je(t,"is-image-fill",i),t)),x="".concat(w||h,"%"),S="right"===p?"1fr ".concat(x):"".concat(x," 1fr"),P={gridTemplateColumns:S,msGridColumns:S},T=[{icon:mi,title:Object(Ee.__)("Show media on left"),isActive:"left"===p,onClick:function(){return o({mediaPosition:"left"})}},{icon:di,title:Object(Ee.__)("Show media on right"),isActive:"right"===p,onClick:function(){return o({mediaPosition:"right"})}}],B=Object(Le.useSelect)((function(e){var t=e("core/block-editor").getSettings();return null==t?void 0:t.imageSizes})),z=Object(ke.map)(Object(ke.filter)(B,(function(e){var t=e.slug;return fi(y,t)})),(function(e){var t=e.name;return{value:e.slug,label:t}})),N=Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Media & Text settings")},Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Stack on mobile"),checked:l,onChange:function(){return o({isStackedOnMobile:!l})}}),"image"===g&&Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Crop image to fill entire column"),checked:i,onChange:function(){return o({imageFill:!i})}}),i&&Object(Ce.createElement)(He.FocalPointPicker,{label:Object(Ee.__)("Focal point picker"),url:f,value:c,onChange:function(e){return o({focalPoint:e})}}),"image"===g&&Object(Ce.createElement)(He.TextareaControl,{label:Object(Ee.__)("Alt text (alternative text)"),value:m,onChange:function(e){o({mediaAlt:e})},help:Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(He.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(Ee.__)("Describe the purpose of the image")),Object(Ee.__)("Leave empty if the image is purely decorative."))}),"image"===g&&Object(Ce.createElement)(_e.__experimentalImageSizeControl,{onChangeImage:function(e){var t=fi(y,e);if(!t)return null;o({mediaUrl:t,mediaSizeSlug:e})},slug:j,imageSizeOptions:z,isResizable:!1})),I=Object(_e.useBlockProps)({className:C,style:P}),M=Object(_e.__experimentalUseInnerBlocksProps)({className:"wp-block-media-text__content"},{template:pi,templateInsertUpdatesSelection:!1});return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.InspectorControls,null,N),Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(He.ToolbarGroup,{controls:T}),Object(Ce.createElement)(_e.BlockVerticalAlignmentToolbar,{onChange:function(e){o({verticalAlignment:e})},value:O}),"image"===g&&Object(Ce.createElement)(He.ToolbarGroup,null,Object(Ce.createElement)(_e.__experimentalImageURLInputUI,{url:a||"",onChangeUrl:function(e){o(e)},linkDestination:u,mediaType:g,mediaUrl:y&&y.source_url,mediaLink:y&&y.link,linkTarget:b,linkClass:s,rel:v}))),Object(Ce.createElement)("div",I,Object(Ce.createElement)(ai,Ae({className:"wp-block-media-text__media",onSelectMedia:E,onWidthChange:function(e){k(gi(e))},commitWidthChange:function(e){o({mediaWidth:gi(e)}),k(gi(e))}},{focalPoint:c,imageFill:i,isSelected:r,isStackedOnMobile:l,mediaAlt:m,mediaId:d,mediaPosition:p,mediaType:g,mediaUrl:f,mediaWidth:h})),Object(Ce.createElement)("div",M)))};var vi={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.alt,n=e.url,r=e.id,o=e.anchor;return Object(we.createBlock)("core/media-text",{mediaAlt:t,mediaId:r,mediaUrl:n,mediaType:"image",anchor:o})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.src,n=e.id,r=e.anchor;return Object(we.createBlock)("core/media-text",{mediaId:n,mediaUrl:t,mediaType:"video",anchor:r})}}],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,o=e.anchor;return Object(we.createBlock)("core/image",{alt:t,id:n,url:r,anchor:o})}},{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,r=e.anchor;return Object(we.createBlock)("core/video",{id:t,src:n,anchor:r})}}]},Oi={apiVersion:2,name:"core/media-text",category:"media",attributes:{align:{type:"string",default:"wide"},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},mediaSizeSlug:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}}},ji=Oi.name,yi={title:Object(Ee.__)("Media & Text"),description:Object(Ee.__)("Set media and words side-by-side for a richer layout."),icon:Xa,keywords:[Object(Ee.__)("image"),Object(Ee.__)("video")],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(Ee.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(Ee.__)("— Kobayashi Issa (一茶)")}}]},transforms:vi,edit:hi,save:function(e){var t,n,r=e.attributes,o=r.isStackedOnMobile,c=r.mediaAlt,a=r.mediaPosition,i=r.mediaType,l=r.mediaUrl,s=r.mediaWidth,u=r.mediaId,b=r.verticalAlignment,m=r.imageFill,d=r.focalPoint,p=r.linkClass,g=r.href,f=r.linkTarget,h=r.rel,v=r.mediaSizeSlug||"full",O=Object(ke.isEmpty)(h)?void 0:h,j=Te()((je(t={},"wp-image-".concat(u),u&&"image"===i),je(t,"size-".concat(v),u&&"image"===i),t)),y=Object(Ce.createElement)("img",{src:l,alt:c,className:j||null});g&&(y=Object(Ce.createElement)("a",{className:p,href:g,target:f,rel:O},y));var _,w={image:function(){return y},video:function(){return Object(Ce.createElement)("video",{controls:!0,src:l})}},k=Te()((je(n={"has-media-on-the-right":"right"===a,"is-stacked-on-mobile":o},"is-vertically-aligned-".concat(b),b),je(n,"is-image-fill",m),n)),E=m?ni(l,d):{};50!==s&&(_="right"===a?"auto ".concat(s,"%"):"".concat(s,"% auto"));var C={gridTemplateColumns:_};return Object(Ce.createElement)("div",_e.useBlockProps.save({className:k,style:C}),Object(Ce.createElement)("figure",{className:"wp-block-media-text__media",style:E},(w[i]||ke.noop)()),Object(Ce.createElement)("div",{className:"wp-block-media-text__content"},Object(Ce.createElement)(_e.InnerBlocks.Content,null)))},deprecated:bi},_i=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"}));function wi(e){var t=e.clientId,n=e.__experimentalFeatures,r=Object(Le.useSelect)((function(e){var n=e("core/block-editor"),r=n.getSelectedBlockClientId;return{block:(0,n.getBlock)(t),selectedBlockClientId:r()}}),[t]),o=r.block,c=r.selectedBlockClientId,a=Object(Le.useDispatch)("core/block-editor").selectBlock;return Object(Ce.createElement)(_e.__experimentalBlockNavigationTree,{blocks:o.innerBlocks,selectedBlockClientId:c,selectBlock:a,__experimentalFeatures:n,showNestedBlocks:!0,showAppender:!0,showBlockMovers:!0})}var ki=Object(Ce.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(Ce.createElement)(He.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));var Ei=Object(Ce.createElement)(He.SVG,{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(He.Path,{d:"M11 16v-3h10v-2H11V8l-4 4 4 4zM5 4H3v16h2V4z"})),Ci=Object(Ce.createElement)(He.SVG,{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(He.Path,{d:"M5 8v3H1v2h4v3l4-4-4-4zm14 8v-3h4v-2h-4V8l-4 4 4 4zM13 4h-2v16h2V4z"})),xi=Object(Ce.createElement)(He.SVG,{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(He.Path,{d:"M13 8v3H3v2h10v3l4-4-4-4zm8-4h-2v16h2V4z"}));function Si(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Si(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Si(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ti(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Bi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bi(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,i=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){i=!0,c=e},f:function(){try{a||null==n.return||n.return()}finally{if(i)throw c}}}}function Bi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var zi=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"parent",o=Object.create(null),c=[],a=Ti(e);try{for(a.s();!(t=a.n()).done;){var i=t.value;o[i[n]]=Pi(Pi({},i),{},{children:[]})}}catch(e){a.e(e)}finally{a.f()}var l,s=Ti(e);try{for(s.s();!(l=s.n()).done;){var u=l.value;u[r]?o[u[r]].children.push(o[u[n]]):c.push(o[u[n]])}}catch(e){s.e(e)}finally{s.f()}return c};function Ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mi(e,t){return e&&t?Object(Ee.__)("Use an existing menu here, include all top-level pages, or add an empty Navigation block."):e&&!t?Object(Ee.__)("Use an existing menu here, or add an empty Navigation block."):!e&&t?Object(Ee.__)("Include all existing pages here, or add an empty Navigation block."):Object(Ee.__)("Create an empty navigation.")}function Ri(e){return e?function e(t){return t.map((function(t){var n,r,o;if("block"===t.type){var c=Ve(Object(we.parse)(t.content.raw),1)[0];return c||Object(we.createBlock)("core/freeform",{content:t.content})}var a={label:t.title.rendered?t.title.rendered:Object(Ee.__)("(no title)"),opensInNewTab:"_blank"===t.target};t.url&&(a.url=t.url),t.description&&(a.description=t.description),(null===(n=t.xfn)||void 0===n?void 0:n.length)&&Object(ke.some)(t.xfn)&&(a.rel=t.xfn.join(" ")),(null===(r=t.classes)||void 0===r?void 0:r.length)&&Object(ke.some)(t.classes)&&(a.className=t.classes.join(" "));var i=(null===(o=t.children)||void 0===o?void 0:o.length)?e(t.children):[];return Object(we.createBlock)("core/navigation-link",a,i)}))}(zi(e)):null}var Ai=Object(Ce.forwardRef)((function(e,t){var n=e.onCreate,r=Ve(Object(Ce.useState)(),2),o=r[0],c=r[1],a=Ve(Object(Ce.useState)(!1),2),i=a[0],l=a[1],s=Object(Le.useSelect)((function(e){var t=e("core"),n=t.getEntityRecords,r=t.getMenus,c=t.getMenuItems,a=t.isResolving,i=t.hasFinishedResolution,l=["postType","page",{parent:0,order:"asc",orderby:"id",per_page:-1}],s=[{per_page:-1}],u=function(e){var t=null==e?void 0:e.id;return void 0!==t&&Number.isInteger(t)?t:void 0}(o),b=void 0!==u,m=b?[{menus:u,per_page:-1}]:void 0;return{pages:n.apply(void 0,l),isResolvingPages:a("getEntityRecords",l),hasResolvedPages:i("getEntityRecords",l),menus:r.apply(void 0,s),isResolvingMenus:a("getMenus",s),hasResolvedMenus:i("getMenus",s),menuItems:b?c.apply(void 0,Oe(m)):void 0,hasResolvedMenuItems:!!b&&i("getMenuItems",m)}}),[o]),u=s.pages,b=s.isResolvingPages,m=s.hasResolvedPages,d=s.menus,p=s.isResolvingMenus,g=s.hasResolvedMenus,f=s.menuItems,h=s.hasResolvedMenuItems,v=!(!m||!(null==u?void 0:u.length)),O=!(!g||!(null==d?void 0:d.length)),j=b||p,y=Object(Ce.useMemo)((function(){return[].concat(Oe(O?d:[]),[{id:"__CREATE_EMPTY__",name:Object(Ee.__)("Create empty Navigation"),className:"is-create-empty-option"}],Oe(v?[{id:"__CREATE_FROM_PAGES__",name:Object(Ee.__)("Create from all top-level pages")}]:[]))}),[d,O,v]),_=Object(Ce.useCallback)((function(){if(f.length){var e=Ri(f);n(e,!0)}else n([])})),w=Object(Ce.useCallback)((function(){if(o)switch(o.key){case"__CREATE_EMPTY__":return void n([]);case"__CREATE_FROM_PAGES__":var e=function(e){return e?e.map((function(e){var t=e.title,n=e.type,r=e.link,o=e.id;return Object(we.createBlock)("core/navigation-link",{type:n,id:o,url:r,label:t.rendered?t.rendered:Object(Ee.__)("(no title)"),opensInNewTab:!1})})):null}(u);return void n(e,!0);default:if(h)return void _();l(!0)}}));return Object(Ce.useEffect)((function(){i&&h&&(_(),l(!1))}),[i,h]),O&&!o&&c(y[0]),Object(Ce.createElement)(He.Placeholder,{className:"wp-block-navigation-placeholder",icon:_i,label:Object(Ee.__)("Navigation")},j&&Object(Ce.createElement)("div",{ref:t},Object(Ce.createElement)(He.Spinner,null)," ",Object(Ee.__)("Loading…")),!j&&Object(Ce.createElement)("div",{ref:t,className:"wp-block-navigation-placeholder__actions"},Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(He.CustomSelectControl,{className:Te()("wp-block-navigation-placeholder__select-control",{"has-menus":O}),label:j?void 0:Mi(O,v),value:o||y[0],onChange:function(e){var t=e.selectedItem;(null==t?void 0:t.key)!==o&&(c(t),l(!1))},options:y.map((function(e){return Ii(Ii({},e),{},{key:e.id})}))}),Object(Ce.createElement)(He.Button,{isSecondary:!0,className:"wp-block-navigation-placeholder__button",disabled:!o,isBusy:i,onClick:w},Object(Ee.__)("Create")))))}));var Vi=Object(et.compose)([Object(Le.withSelect)((function(e,t){var n,r=t.clientId,o=e("core/block-editor").getBlocks(r),c=e("core/block-editor"),a=c.getClientIdsOfDescendants,i=c.hasSelectedInnerBlock,l=c.getSelectedBlockClientId;return{isImmediateParentOfSelectedBlock:i(r,!1),selectedBlockHasDescendants:!!(null===(n=a([l()]))||void 0===n?void 0:n.length),hasExistingNavItems:!!o.length}})),Object(Le.withDispatch)((function(e,t){var n=t.clientId;return{updateInnerBlocks:function(t){if(0===(null==t?void 0:t.length))return!1;e("core/block-editor").replaceInnerBlocks(n,t)}}}))])((function(e){var t,n=e.selectedBlockHasDescendants,r=e.attributes,o=e.setAttributes,c=e.clientId,a=e.hasExistingNavItems,i=e.isImmediateParentOfSelectedBlock,l=e.isSelected,s=e.updateInnerBlocks,u=e.className,b=e.hasSubmenuIndicatorSetting,m=void 0===b||b,d=e.hasItemJustificationControls,p=void 0===d||d,g=e.hasListViewModal,f=void 0===g||g,h=Ve(Object(Ce.useState)(!a),2),v=h[0],O=h[1],j=Object(Le.useDispatch)("core/block-editor").selectBlock,y=Object(_e.useBlockProps)(),w=function(e,t){var n=Ve(Object(Ce.useState)(!1),2),r=n[0],o=n[1];return{navigatorToolbarButton:Object(Ce.createElement)(He.ToolbarButton,{className:"components-toolbar__control",label:Object(Ee.__)("Open block navigator"),onClick:function(){return o(!0)},icon:ki}),navigatorModal:r&&Object(Ce.createElement)(He.Modal,{title:Object(Ee.__)("Block Navigator"),closeLabel:Object(Ee.__)("Close"),onRequestClose:function(){o(!1)}},Object(Ce.createElement)(wi,{clientId:e,__experimentalFeatures:t}))}}(c),k=w.navigatorToolbarButton,E=w.navigatorModal,C=Object(_e.__experimentalUseInnerBlocksProps)({className:"wp-block-navigation__container"},{allowedBlocks:["core/navigation-link","core/search","core/social-links"],orientation:r.orientation||"horizontal",renderAppender:!!(i&&!n||l)&&_e.InnerBlocks.DefaultAppender,templateInsertUpdatesSelection:!1,__experimentalAppenderTagName:"li",__experimentalCaptureToolbars:!0,templateLock:!1});if(v)return Object(Ce.createElement)("div",y,Object(Ce.createElement)(Ai,{onCreate:function(e,t){O(!1),s(e),t&&j(c)}}));function x(e){return function(){var t=r.itemsJustification===e?void 0:e;o({itemsJustification:t})}}var S=Te()(u,(je(t={},"items-justified-".concat(r.itemsJustification),r.itemsJustification),je(t,"is-vertical","vertical"===r.orientation),t));return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,p&&Object(Ce.createElement)(He.ToolbarGroup,{icon:r.itemsJustification?_["justify".concat(Object(ke.upperFirst)(r.itemsJustification),"Icon")]:Ei,label:Object(Ee.__)("Change items justification"),isCollapsed:!0,controls:[{icon:Ei,title:Object(Ee.__)("Justify items left"),isActive:"left"===r.itemsJustification,onClick:x("left")},{icon:Ci,title:Object(Ee.__)("Justify items center"),isActive:"center"===r.itemsJustification,onClick:x("center")},{icon:xi,title:Object(Ee.__)("Justify items right"),isActive:"right"===r.itemsJustification,onClick:x("right")}]}),f&&Object(Ce.createElement)(He.ToolbarGroup,null,k)),f&&E,Object(Ce.createElement)(_e.InspectorControls,null,m&&Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Display settings")},Object(Ce.createElement)(He.ToggleControl,{checked:r.showSubmenuIcon,onChange:function(e){o({showSubmenuIcon:e})},label:Object(Ee.__)("Show submenu indicator icons")}))),Object(Ce.createElement)("nav",Ae({},y,{className:Te()(y.className,S)}),Object(Ce.createElement)("ul",C)))}));function Hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hi(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Di=[{attributes:{className:{type:"string"},textColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean"}},isEligible:function(e){return e.rgbTextColor||e.rgbBackgroundColor},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},migrate:function(e){return Li(Li({},Object(ke.omit)(e,["rgbTextColor","rgbBackgroundColor"])),{},{customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor})},save:function(){return Object(Ce.createElement)(_e.InnerBlocks.Content,null)}}],Fi={apiVersion:2,name:"core/navigation",category:"design",attributes:{orientation:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0}},providesContext:{textColor:"textColor",customTextColor:"customTextColor",backgroundColor:"backgroundColor",customBackgroundColor:"customBackgroundColor",fontSize:"fontSize",customFontSize:"customFontSize",showSubmenuIcon:"showSubmenuIcon"},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,fontSize:!0,color:{textColor:!0,backgroundColor:!0}}},Gi=Fi.name,Ui={title:Object(Ee.__)("Navigation"),icon:_i,description:Object(Ee.__)("A collection of blocks that allow visitors to get around your site."),keywords:[Object(Ee.__)("menu"),Object(Ee.__)("navigation"),Object(Ee.__)("links")],variations:[{name:"horizontal",isDefault:!0,title:Object(Ee.__)("Navigation (horizontal)"),description:Object(Ee.__)("Links shown in a row."),attributes:{orientation:"horizontal"}},{name:"vertical",title:Object(Ee.__)("Navigation (vertical)"),description:Object(Ee.__)("Links shown in a column."),attributes:{orientation:"vertical"}}],example:{innerBlocks:[{name:"core/navigation-link",attributes:{
// translators: 'Home' as in a website's home page.
label:Object(Ee.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{
// translators: 'About' as in a website's about page.
label:Object(Ee.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{
// translators: 'Contact' as in a website's contact page.
label:Object(Ee.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:Vi,save:function(){return Object(Ce.createElement)(_e.InnerBlocks.Content,null)},deprecated:Di},qi=Object(Ce.createElement)(xe.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M12.5 4C8.9 4 6 6.8 6 10.2c0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C19 6.8 16.1 4 12.5 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4zM12.5 9c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5 1.5-.7 1.5-1.5S13.3 9 12.5 9z"})),Wi=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{fill:"#000",d:"M4 14.5h16V16H4zM4 18.5h9V20H4zM4 4h3c2 0 3 .86 3 2.583 0 .891-.253 1.554-.76 1.988-.505.435-1.24.652-2.204.652H5.542V12H4V4zm2.855 4c.53 0 .924-.114 1.18-.343.266-.228.398-.579.398-1.051 0-.473-.132-.82-.397-1.04-.265-.229-.67-.343-1.217-.343H5.542V8h1.313z"})),Zi=n(302),Ki=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"})),$i=n(12),Ji=n.n($i);function Qi(e,t,n,r,o,c,a){try{var i=e[c](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,o)}function Yi(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var c=e.apply(t,n);function a(e){Qi(c,r,o,a,i,"next",e)}function i(e){Qi(c,r,o,a,i,"throw",e)}a(void 0)}))}}var Xi=n(23),el=function(){return Object(Ce.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},Object(Ce.createElement)(He.Path,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"}))},tl=function(){return Object(Ce.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",transform:"rotate(90)"},Object(Ce.createElement)(He.Path,{d:"M8 5v14l11-7z"}),Object(Ce.createElement)(He.Path,{d:"M0 0h24v24H0z",fill:"none"}))};function nl(e){switch(e){case"post":case"page":return{type:"post",subtype:e};case"category":return{type:"term",subtype:"category"};case"tag":return{type:"term",subtype:"post_tag"};default:return{}}}var rl=function(e,t,n){return n||(e&&e.length?Object(ke.get)(Object(ke.find)(e,{slug:t}),"color"):void 0)},ol=Object(et.compose)([Object(Le.withSelect)((function(e,t){var n,r=e("core/block-editor"),o=r.getBlockAttributes,c=r.getClientIdsOfDescendants,a=r.hasSelectedInnerBlock,i=r.getBlockParentsByBlockName,l=r.getSelectedBlockClientId,s=r.getSettings,u=t.clientId,b=o(Object(ke.head)(i(u,"core/navigation"))),m=Object(ke.get)(s(),"colors",[]),d=!!c([u]).length,p=!!b.showSubmenuIcon&&d;return{isParentOfSelectedBlock:a(u,!0),isImmediateParentOfSelectedBlock:a(u,!1),hasDescendants:d,selectedBlockHasDescendants:!!(null===(n=c([l()]))||void 0===n?void 0:n.length),showSubmenuIcon:p,textColor:b.textColor,backgroundColor:b.backgroundColor,userCanCreatePages:e("core").canUser("create","pages"),userCanCreatePosts:e("core").canUser("create","posts"),rgbTextColor:rl(m,b.textColor,b.customTextColor),rgbBackgroundColor:rl(m,b.backgroundColor,b.customBackgroundColor)}})),Object(Le.withDispatch)((function(e,t,n){return{insertLinkBlock:function(){var r=t.clientId,o=e("core/block-editor").insertBlock,c=(0,n.select("core/block-editor").getClientIdsOfDescendants)([r]),a=c.length?c.length:0;o(Object(we.createBlock)("core/navigation-link"),a,r)}}}))])((function(e){var t,n=e.attributes,r=e.hasDescendants,o=e.isSelected,c=e.isImmediateParentOfSelectedBlock,a=e.isParentOfSelectedBlock,i=e.setAttributes,l=e.showSubmenuIcon,s=e.insertLinkBlock,u=e.textColor,b=e.backgroundColor,m=e.rgbTextColor,d=e.rgbBackgroundColor,p=e.selectedBlockHasDescendants,g=e.userCanCreatePages,f=void 0!==g&&g,h=e.userCanCreatePosts,v=void 0!==h&&h,O=e.insertBlocksAfter,j=e.mergeBlocks,y=e.onReplace,_=n.label,w=n.type,k=n.opensInNewTab,E=n.url,C=n.description,x=n.rel,S=n.title,P={url:E,opensInNewTab:k},T=Object(Le.useDispatch)("core").saveEntityRecord,B=Ve(Object(Ce.useState)(!1),2),z=B[0],N=B[1],I=Object(Ce.useRef)(null),M=function(e){var t=Ve(Object(Ce.useState)(!1),2),n=t[0],r=t[1];return Object(Ce.useEffect)((function(){function t(e){o(e)}function n(){r(!1)}function o(t){e.current.contains(t.target)?r(!0):r(!1)}return document.addEventListener("dragstart",t),document.addEventListener("dragend",n),document.addEventListener("dragenter",o),function(){document.removeEventListener("dragstart",t),document.removeEventListener("dragend",n),document.removeEventListener("dragenter",o)}}),[]),n}(I),R=Object(Ee.__)("Add link…"),A=Object(Ce.useRef)(),V=Object(Le.useSelect)((function(e){return e("core/block-editor").isDraggingBlocks()}),[]);Object(Ce.useEffect)((function(){E||N(!0)}),[]),Object(Ce.useEffect)((function(){o||N(!1)}),[o]),Object(Ce.useEffect)((function(){z&&E&&(Object(tt.isURL)(Object(tt.prependHTTP)(_))&&/^.+\.[a-z]+/.test(_)?function(){A.current.focus();var e=A.current.ownerDocument,t=e.defaultView.getSelection(),n=e.createRange();n.selectNodeContents(A.current),t.removeAllRanges(),t.addRange(n)}():Object(Xi.placeCaretAtHorizontalEdge)(A.current,!0))}),[E]);var H=!1;function L(){return(L=Yi(Ji.a.mark((function e(t){var n,r;return Ji.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=w||"page",e.next=3,T("postType",n,{title:t,status:"publish"});case 3:return r=e.sent,e.abrupt("return",{id:r.id,postType:n,title:r.title.rendered,url:r.link});case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}w&&"page"!==w?"post"===w&&(H=v):H=f;var D=Object(_e.useBlockProps)({ref:I,className:Te()((t={"is-editing":(o||a)&&!V,"is-selected":o&&!V,"is-dragging-within":M,"has-link":!!E,"has-child":r,"has-text-color":m},je(t,"has-".concat(u,"-color"),!!u),je(t,"has-background",d),je(t,"has-".concat(b,"-background-color"),!!b),t)),style:{color:m,backgroundColor:d}}),F=Object(_e.__experimentalUseInnerBlocksProps)({className:Te()("wp-block-navigation__container",{"is-parent-of-selected-block":a&&!V})},{allowedBlocks:["core/navigation-link"],renderAppender:!!(o&&r||c&&!p||V&&r)&&_e.InnerBlocks.DefaultAppender,__experimentalAppenderTagName:"li"});return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(He.ToolbarGroup,null,Object(Ce.createElement)(He.KeyboardShortcuts,{bindGlobal:!0,shortcuts:je({},gn.rawShortcut.primary("k"),(function(){return N(!0)}))}),Object(Ce.createElement)(He.ToolbarButton,{name:"link",icon:Jr.a,title:Object(Ee.__)("Link"),shortcut:gn.displayShortcut.primary("k"),onClick:function(){return N(!0)}}),Object(Ce.createElement)(He.ToolbarButton,{name:"submenu",icon:Object(Ce.createElement)(el,null),title:Object(Ee.__)("Add submenu"),onClick:s}))),Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Link settings")},Object(Ce.createElement)(He.TextareaControl,{value:C||"",onChange:function(e){i({description:e})},label:Object(Ee.__)("Description"),help:Object(Ee.__)("The description will be displayed in the menu if the current theme supports it.")}),Object(Ce.createElement)(He.TextControl,{value:S||"",onChange:function(e){i({title:e})},label:Object(Ee.__)("Link title"),autoComplete:"off"}),Object(Ce.createElement)(He.TextControl,{value:x||"",onChange:function(e){i({rel:e})},label:Object(Ee.__)("Link rel"),autoComplete:"off"}))),Object(Ce.createElement)("li",D,Object(Ce.createElement)("div",{className:"wp-block-navigation-link__content"},Object(Ce.createElement)(_e.RichText,{ref:A,identifier:"label",className:"wp-block-navigation-link__label",value:_,onChange:function(e){return i({label:e})},onMerge:j,onReplace:y,__unstableOnSplitAtEnd:function(){return O(Object(we.createBlock)("core/navigation-link"))},placeholder:R,keepPlaceholderOnFocus:!0,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}),z&&Object(Ce.createElement)(He.Popover,{position:"bottom center",onClose:function(){return N(!1)}},Object(Ce.createElement)(_e.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:P,showInitialSuggestions:!0,withCreateSuggestion:H,createSuggestion:function(e){return L.apply(this,arguments)},createSuggestionButtonText:function(e){var t;
/* translators: %s: search term. */
return t="post"===w?Object(Ee.__)("Create post: <mark>%s</mark>"):Object(Ee.__)("Create page: <mark>%s</mark>"),Object(Ce.createInterpolateElement)(Object(Ee.sprintf)(t,e),{mark:Object(Ce.createElement)("mark",null)})},noDirectEntry:!!w,noURLSuggestion:!!w,suggestionsQuery:nl(w),onChange:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.title,o=void 0===r?"":r,c=n.url,a=void 0===c?"":c,l=n.opensInNewTab,s=n.id;return i({url:encodeURI(a),label:(e=o.replace(/http(s?):\/\//gi,""),t=a.replace(/http(s?):\/\//gi,""),""!==o&&e!==t&&_!==o?Object(ke.escape)(o):_||Object(ke.escape)(t)),opensInNewTab:l,id:s})}}))),l&&Object(Ce.createElement)("span",{className:"wp-block-navigation-link__submenu-icon"},Object(Ce.createElement)(tl,null)),Object(Ce.createElement)("ul",F)))}));function cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function al(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cl(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var il={apiVersion:2,name:"core/navigation-link",category:"design",parent:["core/navigation"],attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","fontSize","customFontSize","showSubmenuIcon"],supports:{reusable:!1,html:!1}},ll=il.name,sl={title:Object(Ee.__)("Link"),icon:qi,description:Object(Ee.__)("Add a page, link, or another item to your navigation."),variations:[{name:"link",isDefault:!0,title:Object(Ee.__)("Link"),description:Object(Ee.__)("A link to a URL."),attributes:{}},{name:"post",icon:Wi,title:Object(Ee.__)("Post Link"),description:Object(Ee.__)("A link to a post."),attributes:{type:"post"}},{name:"page",icon:Zi.a,title:Object(Ee.__)("Page Link"),description:Object(Ee.__)("A link to a page."),attributes:{type:"page"}},{name:"category",icon:Ro,title:Object(Ee.__)("Category Link"),description:Object(Ee.__)("A link to a category."),attributes:{type:"category"}},{name:"tag",icon:Ki,title:Object(Ee.__)("Tag Link"),description:Object(Ee.__)("A link to a tag."),attributes:{type:"tag"}}],__experimentalLabel:function(e){return e.label},merge:function(e,t){var n=t.label,r=void 0===n?"":n;return al(al({},e),{},{label:e.label+r})},edit:ol,save:function(){return Object(Ce.createElement)(_e.InnerBlocks.Content,null)},deprecated:[{isEligible:function(e){return e.nofollow},attributes:{label:{type:"string"},type:{type:"string"},nofollow:{type:"boolean"},description:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"}},migrate:function(e){return al({rel:e.nofollow?"nofollow":""},In(e,["nofollow"]))},save:function(){return Object(Ce.createElement)(_e.InnerBlocks.Content,null)}}]},ul=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"}));var bl={apiVersion:2,name:"core/latest-comments",category:"widgets",attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},supports:{align:!0,html:!1}},ml=bl.name,dl={title:Object(Ee.__)("Latest Comments"),description:Object(Ee.__)("Display a list of your most recent comments."),icon:ul,keywords:[Object(Ee.__)("recent comments")],example:{},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.commentsToShow,o=t.displayAvatar,c=t.displayDate,a=t.displayExcerpt;return Object(Ce.createElement)("div",Object(_e.useBlockProps)(),Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Latest comments settings")},Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Display avatar"),checked:o,onChange:function(){return n({displayAvatar:!o})}}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Display date"),checked:c,onChange:function(){return n({displayDate:!c})}}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Display excerpt"),checked:a,onChange:function(){return n({displayExcerpt:!a})}}),Object(Ce.createElement)(He.RangeControl,{label:Object(Ee.__)("Number of comments"),value:r,onChange:function(e){return n({commentsToShow:e})},min:1,max:100,required:!0}))),Object(Ce.createElement)(He.Disabled,null,Object(Ce.createElement)(Tr.a,{block:"core/latest-comments",attributes:t})))}},pl=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));function gl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gl(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hl=[{attributes:fl(fl({},{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}}),{},{categories:{type:"string"}}),supports:{align:!0,html:!1},migrate:function(e){return fl(fl({},e),{},{categories:[{id:Number(e.categories)}]})},isEligible:function(e){var t=e.categories;return t&&"string"==typeof t},save:function(){return null}}],vl=n(64),Ol=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})),jl=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"}));function yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yl(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wl={per_page:-1},kl={per_page:-1};var El={name:"core/latest-posts",category:"widgets",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},Cl=El.name,xl={title:Object(Ee.__)("Latest Posts"),description:Object(Ee.__)("Display a list of your most recent posts."),icon:pl,keywords:[Object(Ee.__)("recent posts")],example:{},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.postsToShow,o=t.order,c=t.orderBy,a=t.categories,i=t.selectedAuthor,l=t.displayFeaturedImage,s=t.displayPostContentRadio,u=t.displayPostContent,b=t.displayPostDate,m=t.displayAuthor,d=t.postLayout,p=t.columns,g=t.excerptLength,f=t.featuredImageAlign,h=t.featuredImageSizeSlug,v=t.featuredImageSizeWidth,O=t.featuredImageSizeHeight,j=t.addLinkToFeaturedImage,y=Object(Le.useSelect)((function(e){var t=e("core"),n=t.getEntityRecords,l=t.getMedia,s=(0,e("core/block-editor").getSettings)(),u=s.imageSizes,b=s.imageDimensions,m=a&&a.length>0?a.map((function(e){return e.id})):[],d=n("postType","post",Object(ke.pickBy)({categories:m,author:i,order:o,orderby:c,per_page:r},(function(e){return!Object(ke.isUndefined)(e)})));return{defaultImageWidth:Object(ke.get)(b,[h,"width"],0),defaultImageHeight:Object(ke.get)(b,[h,"height"],0),imageSizeOptions:u.filter((function(e){return"full"!==e.slug})).map((function(e){var t=e.name;return{value:e.slug,label:t}})),latestPosts:Array.isArray(d)?d.map((function(e){if(!e.featured_media)return e;var t=l(e.featured_media),n=Object(ke.get)(t,["media_details","sizes",h,"source_url"],null);n||(n=Object(ke.get)(t,"source_url",null));var r={url:n,alt:null==t?void 0:t.alt_text};return _l(_l({},e),{},{featuredImageInfo:r})})):d}}),[h,r,o,c,a,i]),_=y.imageSizeOptions,w=y.latestPosts,k=y.defaultImageWidth,E=y.defaultImageHeight,C=Ve(Object(Ce.useState)([]),2),x=C[0],S=C[1],P=Ve(Object(Ce.useState)([]),2),T=P[0],B=P[1],z=x.reduce((function(e,t){return _l(_l({},e),{},je({},t.name,t))}),{}),N=Object(Ce.useRef)();Object(Ce.useEffect)((function(){return N.current=!0,Dt()({path:Object(tt.addQueryArgs)("/wp/v2/categories",wl)}).then((function(e){N.current&&S(e)})).catch((function(){N.current&&S([])})),Dt()({path:Object(tt.addQueryArgs)("/wp/v2/users",kl)}).then((function(e){N.current&&B(e)})).catch((function(){N.current&&B([])})),function(){N.current=!1}}),[]);var I=Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Post content settings")},Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Post content"),checked:u,onChange:function(e){return n({displayPostContent:e})}}),u&&Object(Ce.createElement)(He.RadioControl,{label:Object(Ee.__)("Show:"),selected:s,options:[{label:Object(Ee.__)("Excerpt"),value:"excerpt"},{label:Object(Ee.__)("Full post"),value:"full_post"}],onChange:function(e){return n({displayPostContentRadio:e})}}),u&&"excerpt"===s&&Object(Ce.createElement)(He.RangeControl,{label:Object(Ee.__)("Max number of words in excerpt"),value:g,onChange:function(e){return n({excerptLength:e})},min:10,max:100})),Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Post meta settings")},Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Display author name"),checked:m,onChange:function(e){return n({displayAuthor:e})}}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Display post date"),checked:b,onChange:function(e){return n({displayPostDate:e})}})),Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Featured image settings")},Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Display featured image"),checked:l,onChange:function(e){return n({displayFeaturedImage:e})}}),l&&Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.__experimentalImageSizeControl,{onChange:function(e){var t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),n(t)},slug:h,width:v,height:O,imageWidth:k,imageHeight:E,imageSizeOptions:_,onChangeImage:function(e){return n({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}}),Object(Ce.createElement)(He.BaseControl,{className:"block-editor-image-alignment-control__row"},Object(Ce.createElement)(He.BaseControl.VisualLabel,null,Object(Ee.__)("Image alignment")),Object(Ce.createElement)(_e.BlockAlignmentToolbar,{value:f,onChange:function(e){return n({featuredImageAlign:e})},controls:["left","center","right"],isCollapsed:!1})),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Add link to featured image"),checked:j,onChange:function(e){return n({addLinkToFeaturedImage:e})}}))),Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Sorting and filtering")},Object(Ce.createElement)(He.QueryControls,Ae({order:o,orderBy:c},{numberOfItems:r,onOrderChange:function(e){return n({order:e})},onOrderByChange:function(e){return n({orderBy:e})},onNumberOfItemsChange:function(e){return n({postsToShow:e})},categorySuggestions:z,onCategoryChange:function(e){if(!e.some((function(e){return"string"==typeof e&&!z[e]}))){var t=e.map((function(e){return"string"==typeof e?z[e]:e}));if(Object(ke.includes)(t,null))return!1;n({categories:t})}},selectedCategories:a,onAuthorChange:function(e){return n({selectedAuthor:""!==e?Number(e):void 0})},authorList:T,selectedAuthorId:i})),"grid"===d&&Object(Ce.createElement)(He.RangeControl,{label:Object(Ee.__)("Columns"),value:p,onChange:function(e){return n({columns:e})},min:2,max:R?Math.min(6,w.length):6,required:!0}))),M=Object(_e.useBlockProps)(),R=Array.isArray(w)&&w.length;if(!R)return Object(Ce.createElement)("div",M,I,Object(Ce.createElement)(He.Placeholder,{icon:Ao,label:Object(Ee.__)("Latest Posts")},Array.isArray(w)?Object(Ee.__)("No posts found."):Object(Ce.createElement)(He.Spinner,null)));var A=w.length>r?w.slice(0,r):w,V=[{icon:Ol,title:Object(Ee.__)("List view"),onClick:function(){return n({postLayout:"list"})},isActive:"list"===d},{icon:jl,title:Object(Ee.__)("Grid view"),onClick:function(){return n({postLayout:"grid"})},isActive:"grid"===d}],H=Object(vl.__experimentalGetSettings)().formats.date;return Object(Ce.createElement)("div",M,I,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(He.ToolbarGroup,{controls:V})),Object(Ce.createElement)("ul",{className:Te()(je({"wp-block-latest-posts__list":!0,"is-grid":"grid"===d,"has-dates":b,"has-author":m},"columns-".concat(p),"grid"===d))},A.map((function(e,t){var n=Object(ke.invoke)(e,["title","rendered","trim"]),r=e.excerpt.rendered,o=T.find((function(t){return t.id===e.author})),c=document.createElement("div");c.innerHTML=r,r=c.textContent||c.innerText||"";var a=e.featuredImageInfo,i=(a=void 0===a?{}:a).url,d=a.alt,p=Te()(je({"wp-block-latest-posts__featured-image":!0},"align".concat(f),!!f)),h=l&&i,y=h&&Object(Ce.createElement)("img",{src:i,alt:d,style:{maxWidth:v,maxHeight:O}}),_=g<r.trim().split(" ").length&&""===e.excerpt.raw?Object(Ce.createElement)(Ce.Fragment,null,r.trim().split(" ",g).join(" "),Object(Ee.__)(" … "),Object(Ce.createElement)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer"},Object(Ee.__)("Read more"))):r;return Object(Ce.createElement)("li",{key:t},h&&Object(Ce.createElement)("div",{className:p},j?Object(Ce.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},y):y),Object(Ce.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener"},n?Object(Ce.createElement)(Ce.RawHTML,null,n):Object(Ee.__)("(no title)")),m&&o&&Object(Ce.createElement)("div",{className:"wp-block-latest-posts__post-author"},Object(Ee.sprintf)(
/* translators: byline. %s: current author. */
Object(Ee.__)("by %s"),o.name)),b&&e.date_gmt&&Object(Ce.createElement)("time",{dateTime:Object(vl.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},Object(vl.dateI18n)(H,e.date_gmt)),u&&"excerpt"===s&&Object(Ce.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},_),u&&"full_post"===s&&Object(Ce.createElement)("div",{className:"wp-block-latest-posts__post-full-content"},Object(Ce.createElement)(Ce.RawHTML,{key:"html"},e.content.raw.trim())))}))))},deprecated:hl},Sl=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})),Pl=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),Tl=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"})),Bl=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})),zl=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"})),Nl=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})),Il=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"})),Ml=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"})),Rl=function(e){var t=e.setAttributes,n=e.reversed,r=e.start;return Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Ordered list settings")},Object(Ce.createElement)(He.TextControl,{label:Object(Ee.__)("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(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Reverse list numbering"),checked:n||!1,onChange:function(e){t({reversed:e||void 0})}})))};function Al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Al(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Al(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ll(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hl(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dl(e){var t=Ll(Ll({},e.phrasingContentSchema),{},{ul:{},ol:{attributes:["type","start","reversed"]}});return["ul","ol"].forEach((function(e){t[e].children={li:{children:t}}})),t}var Fl={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:function(e){return Object(we.createBlock)("core/list",{values:Object(Mn.toHTMLString)({value:Object(Mn.join)(e.map((function(t){var n=t.content,r=Object(Mn.create)({html:n});return e.length>1?r:Object(Mn.replace)(r,/\n/g,Mn.__UNSTABLE_LINE_SEPARATOR)})),Mn.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"}),anchor:e.anchor})}},{type:"block",blocks:["core/quote","core/pullquote"],transform:function(e){var t=e.value,n=e.anchor;return Object(we.createBlock)("core/list",{values:Object(Mn.toHTMLString)({value:Object(Mn.create)({html:t,multilineTag:"p"}),multilineTag:"li"}),anchor:n})}},{type:"raw",selector:"ol,ul",schema:function(e){return{ol:Dl(e).ol,ul:Dl(e).ul}},transform:function(e){var t={ordered:"OL"===e.nodeName,anchor:""===e.id?void 0:e.id};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(we.createBlock)("core/list",Ll(Ll({},Object(we.getBlockAttributes)("core/list",e.outerHTML)),t))}}].concat(Oe(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(we.createBlock)("core/list",{values:"<li>".concat(e,"</li>")})}}}))),Oe(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(we.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(Mn.split)(Object(Mn.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),Mn.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(we.createBlock)("core/paragraph",{content:Object(Mn.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.values;return Object(Mn.split)(Object(Mn.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),Mn.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(we.createBlock)("core/heading",{content:Object(Mn.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values,n=e.anchor;return Object(we.createBlock)("core/quote",{value:Object(Mn.toHTMLString)({value:Object(Mn.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:n})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.values,n=e.anchor;return Object(we.createBlock)("core/pullquote",{value:Object(Mn.toHTMLString)({value:Object(Mn.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:n})}}]};function Gl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ul(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gl(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ql={apiVersion:2,name:"core/list",category:"text",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"}},supports:{anchor:!0,className:!1,color:{gradients:!0},__unstablePasteTextInline:!0}},Wl=ql.name,Zl={title:Object(Ee.__)("List"),description:Object(Ee.__)("Create a bulleted or numbered list."),icon:Ol,keywords:[Object(Ee.__)("bullet list"),Object(Ee.__)("ordered list"),Object(Ee.__)("numbered list")],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:Fl,merge:function(e,t){var n=t.values;return n&&"<li></li>"!==n?Ul(Ul({},e),{},{values:e.values+n}):e},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=e.onReplace,c=e.isSelected,a=t.ordered,i=t.values,l=t.type,s=t.reversed,u=t.start,b=a?"ol":"ul",m=Object(Le.useSelect)((function(e){return!!e("core/block-editor").getSettings().isRTL}),[]),d=Object(_e.useBlockProps)();return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.RichText,Ae({identifier:"values",multiline:"li",__unstableMultilineRootTag:b,tagName:b,onChange:function(e){return n({values:e})},value:i,placeholder:Object(Ee.__)("Write list…"),onMerge:r,onSplit:function(e){return Object(we.createBlock)(Wl,Vl(Vl({},t),{},{values:e}))},__unstableOnSplitMiddle:function(){return Object(we.createBlock)("core/paragraph")},onReplace:o,onRemove:function(){return o([])},start:u,reversed:s,type:l},d),(function(e){var t=e.value,r=e.onChange,o=e.onFocus;return Object(Ce.createElement)(Ce.Fragment,null,c&&Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.RichTextShortcut,{type:"primary",character:"[",onUse:function(){r(Object(Mn.__unstableOutdentListItems)(t))}}),Object(Ce.createElement)(_e.RichTextShortcut,{type:"primary",character:"]",onUse:function(){r(Object(Mn.__unstableIndentListItems)(t,{type:b}))}}),Object(Ce.createElement)(_e.RichTextShortcut,{type:"primary",character:"m",onUse:function(){r(Object(Mn.__unstableIndentListItems)(t,{type:b}))}}),Object(Ce.createElement)(_e.RichTextShortcut,{type:"primaryShift",character:"m",onUse:function(){r(Object(Mn.__unstableOutdentListItems)(t))}})),Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(He.ToolbarGroup,{controls:[{icon:m?Sl:Pl,title:Object(Ee.__)("Convert to unordered list"),isActive:Object(Mn.__unstableIsActiveListType)(t,"ul",b),onClick:function(){r(Object(Mn.__unstableChangeListType)(t,{type:"ul"})),o(),Object(Mn.__unstableIsListRootSelected)(t)&&n({ordered:!1})}},{icon:m?Tl:Bl,title:Object(Ee.__)("Convert to ordered list"),isActive:Object(Mn.__unstableIsActiveListType)(t,"ol",b),onClick:function(){r(Object(Mn.__unstableChangeListType)(t,{type:"ol"})),o(),Object(Mn.__unstableIsListRootSelected)(t)&&n({ordered:!0})}},{icon:m?zl:Nl,title:Object(Ee.__)("Outdent list item"),shortcut:Object(Ee._x)("Backspace","keyboard key"),isDisabled:!Object(Mn.__unstableCanOutdentListItems)(t),onClick:function(){r(Object(Mn.__unstableOutdentListItems)(t)),o()}},{icon:m?Il:Ml,title:Object(Ee.__)("Indent list item"),shortcut:Object(Ee._x)("Space","keyboard key"),isDisabled:!Object(Mn.__unstableCanIndentListItems)(t),onClick:function(){r(Object(Mn.__unstableIndentListItems)(t,{type:b})),o()}}]})))})),a&&Object(Ce.createElement)(Rl,{setAttributes:n,ordered:a,reversed:s,start:u}))},save:function(e){var t=e.attributes,n=t.ordered,r=t.values,o=t.type,c=t.reversed,a=t.start,i=n?"ol":"ul";return Object(Ce.createElement)(i,_e.useBlockProps.save({type:o,reversed:c,start:a}),Object(Ce.createElement)(_e.RichText.Content,{value:r,multiline:"li"}))}};var Kl=Object(Le.withDispatch)((function(e,t){var n=t.clientId,r=t.attributes,o=e("core/block-editor").replaceBlock;return{convertToHTML:function(){o(n,Object(we.createBlock)("core/html",{content:r.originalUndelimitedContent}))}}}))((function(e){var t,n=e.attributes,r=e.convertToHTML,o=n.originalName,c=n.originalUndelimitedContent,a=!!c,i=Object(we.getBlockType)("core/html"),l=[];return a&&i?(t=Object(Ee.sprintf)(
/* translators: %s: block name */
Object(Ee.__)('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(Ce.createElement)(He.Button,{key:"convert",onClick:r,isPrimary:!0},Object(Ee.__)("Keep as HTML")))):t=Object(Ee.sprintf)(
/* translators: %s: block name */
Object(Ee.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),o),Object(Ce.createElement)("div",Object(_e.useBlockProps)(),Object(Ce.createElement)(_e.Warning,{actions:l},t),Object(Ce.createElement)(Ce.RawHTML,null,c))}));var $l={apiVersion:2,name:"core/missing",category:"text",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1}},Jl=$l.name,Ql={name:Jl,title:Object(Ee.__)("Unsupported"),description:Object(Ee.__)("Your site doesn’t include support for this block."),__experimentalLabel:function(e,t){if("accessibility"===t.context){var n=e.originalName,r=n?Object(we.getBlockType)(n):void 0;return r?r.settings.title||n:""}},edit:Kl,save:function(e){var t=e.attributes;return Object(Ce.createElement)(Ce.RawHTML,null,t.originalContent)}},Yl=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})),Xl=Object(Ee.__)("Read more");var es={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(we.createBlock)("core/more",o)}}]},ts={apiVersion:2,name:"core/more",category:"design",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1}},ns=ts.name,rs={title:Object(Ee._x)("More","block name"),description:Object(Ee.__)("Content before this block will be shown in the excerpt on your archives page."),keywords:[Object(Ee.__)("read more")],icon:Yl,example:{},__experimentalLabel:function(e,t){if("accessibility"===t.context)return e.customText},transforms:es,edit:function(e){var t=e.attributes,n=t.customText,r=t.noTeaser,o=e.insertBlocksAfter,c=e.setAttributes,a={width:"".concat((n||Xl).length+1.2,"em")};return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,null,Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Hide the excerpt on the full content page"),checked:!!r,onChange:function(){return c({noTeaser:!r})},help:function(e){return e?Object(Ee.__)("The excerpt is hidden."):Object(Ee.__)("The excerpt is visible.")}}))),Object(Ce.createElement)("div",Object(_e.useBlockProps)(),Object(Ce.createElement)("div",{className:"wp-block-more"},Object(Ce.createElement)("input",{"aria-label":Object(Ee.__)("Read more link text"),type:"text",value:n,placeholder:Xl,onChange:function(e){c({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:function(e){e.keyCode===gn.ENTER&&o([Object(we.createBlock)(Object(we.getDefaultBlockName)())])},style:a}))))},save:function(e){var t=e.attributes,n=t.customText,r=t.noTeaser,o=n?"\x3c!--more ".concat(n,"--\x3e"):"\x3c!--more--\x3e",c=r?"\x3c!--noteaser--\x3e":"";return Object(Ce.createElement)(Ce.RawHTML,null,Object(ke.compact)([o,c]).join("\n"))}},os=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M7.8 6c0-.7.6-1.2 1.2-1.2h6c.7 0 1.2.6 1.2 1.2v3h1.5V6c0-1.5-1.2-2.8-2.8-2.8H9C7.5 3.2 6.2 4.5 6.2 6v3h1.5V6zm8.4 11c0 .7-.6 1.2-1.2 1.2H9c-.7 0-1.2-.6-1.2-1.2v-3H6.2v3c0 1.5 1.2 2.8 2.8 2.8h6c1.5 0 2.8-1.2 2.8-2.8v-3h-1.5v3zM4 11v1h16v-1H4z"}));var cs={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/nextpage"===e.dataset.block},transform:function(){return Object(we.createBlock)("core/nextpage",{})}}]},as={apiVersion:2,name:"core/nextpage",category:"design",parent:["core/post-content"],supports:{customClassName:!1,className:!1,html:!1}},is=as.name,ls={title:Object(Ee.__)("Page Break"),description:Object(Ee.__)("Separate your content into a multi-page experience."),icon:os,keywords:[Object(Ee.__)("next page"),Object(Ee.__)("pagination")],example:{},transforms:cs,edit:function(){return Object(Ce.createElement)("div",Object(_e.useBlockProps)(),Object(Ce.createElement)("div",{className:"wp-block-nextpage"},Object(Ce.createElement)("span",null,Object(Ee.__)("Page break"))))},save:function(){return Object(Ce.createElement)(Ce.RawHTML,null,"\x3c!--nextpage--\x3e")}},ss=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"}));var us={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:function(e){var t=e.content,n=e.anchor;return Object(we.createBlock)("core/preformatted",{content:t,anchor:n})}},{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(we.createBlock)("core/paragraph",e)}},{type:"block",blocks:["core/code"],transform:function(e){return Object(we.createBlock)("core/code",e)}}]},bs={apiVersion:2,name:"core/preformatted",category:"text",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0}},supports:{anchor:!0}},ms=bs.name,ds={title:Object(Ee.__)("Preformatted"),description:Object(Ee.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:ss,example:{attributes:{
// translators: Sample content for the Preformatted block. Can be replaced with a more locale-adequate work.
content:Object(Ee.__)("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:us,edit:function(e){var t=e.attributes,n=e.mergeBlocks,r=e.setAttributes,o=t.content,c=Object(_e.useBlockProps)();return Object(Ce.createElement)(_e.RichText,Ae({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:o,onChange:function(e){r({content:e})},placeholder:Object(Ee.__)("Write preformatted text…"),onMerge:n},c))},save:function(e){var t=e.attributes.content;return Object(Ce.createElement)("pre",_e.useBlockProps.save(),Object(Ce.createElement)(_e.RichText.Content,{value:t}))},merge:function(e,t){return{content:e.content+t.content}}},ps=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})),gs="is-style-".concat("solid-color");function fs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fs(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vs={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 Os(e){if(e){var t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}}var js=[{attributes:hs(hs({},vs),{},{figureStyle:{source:"attribute",selector:"figure",attribute:"style"}}),save:function(e){var t,n,r=e.attributes,o=r.mainColor,c=r.customMainColor,a=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className,b=r.figureStyle;if(Object(ke.includes)(u,gs)){var m=Object(_e.getColorClassName)("background-color",o);t=Te()(je({"has-background":m||c},m,m)),n={backgroundColor:m?void 0:c}}else if(c)n={borderColor:c};else if(o){n={borderColor:Os(b)}}var d=Object(_e.getColorClassName)("color",a),p=(a||i)&&Te()("has-text-color",je({},d,d)),g=d?void 0:{color:i};return Object(Ce.createElement)("figure",{className:t,style:n},Object(Ce.createElement)("blockquote",{className:p,style:g},Object(Ce.createElement)(_e.RichText.Content,{value:l,multiline:!0}),!_e.RichText.isEmpty(s)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"cite",value:s})))},migrate:function(e){var t=e.className,n=e.figureStyle,r=e.mainColor,o=In(e,["className","figureStyle","mainColor"]);if(!Object(ke.includes)(t,gs)&&r&&n){var c=Os(n);if(c)return hs(hs({},o),{},{className:t,customMainColor:c})}return hs({className:t,mainColor:r},o)}},{attributes:vs,save:function(e){var t,n,r=e.attributes,o=r.mainColor,c=r.customMainColor,a=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className;if(Object(ke.includes)(u,gs))(t=Object(_e.getColorClassName)("background-color",o))||(n={backgroundColor:c});else if(c)n={borderColor:c};else if(o){var b=Object(ke.get)(Object(Le.select)("core/block-editor").getSettings(),["colors"],[]);n={borderColor:Object(_e.getColorObjectByAttributeValues)(b,o).color}}var m=Object(_e.getColorClassName)("color",a),d=a||i?Te()("has-text-color",je({},m,m)):void 0,p=m?void 0:{color:i};return Object(Ce.createElement)("figure",{className:t,style:n},Object(Ce.createElement)("blockquote",{className:d,style:p},Object(Ce.createElement)(_e.RichText.Content,{value:l,multiline:!0}),!_e.RichText.isEmpty(s)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"cite",value:s})))}},{attributes:hs({},vs),save:function(e){var t=e.attributes,n=t.value,r=t.citation;return Object(Ce.createElement)("blockquote",null,Object(Ce.createElement)(_e.RichText.Content,{value:n,multiline:!0}),!_e.RichText.isEmpty(r)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"cite",value:r}))}},{attributes:hs(hs({},vs),{},{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(Ce.createElement)("blockquote",{className:"align".concat(o)},Object(Ce.createElement)(_e.RichText.Content,{value:n,multiline:!0}),!_e.RichText.isEmpty(r)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"footer",value:r}))}}];function ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ys(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ws=Object(_e.withColors)({mainColor:"background-color",textColor:"color"})((function(e){var t=e.colorUtils,n=e.textColor,r=e.attributes,o=r.value,c=r.citation,a=e.setAttributes,i=e.setTextColor,l=e.setMainColor,s=e.mainColor,u=e.isSelected,b=e.insertBlocksAfter,m=Object(Ce.useRef)(!1),d=Object(_e.useBlockProps)(),p=d.style,g=void 0===p?{}:p,f=d.className,h=Object(ke.includes)(f,gs),v=_s(_s({},d),{},{className:Te()(f,je({"has-background":h&&s.color},s.class,h&&s.class)),style:_s(_s({},g),{},h?{backgroundColor:s.color}:{borderColor:s.color})});return Object(Ce.useEffect)((function(){s&&!h&&a({mainColor:void 0,customMainColor:s.color})}),[h,s]),Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)("figure",v,Object(Ce.createElement)("blockquote",{style:{color:n.color},className:n.color&&Te()("has-text-color",je({},n.class,n.class))},Object(Ce.createElement)(_e.RichText,{identifier:"value",multiline:!0,value:o,onChange:function(e){return a({value:e})},placeholder:// translators: placeholder text used for the quote
Object(Ee.__)("Write quote…"),textAlign:"center"}),(!_e.RichText.isEmpty(c)||u)&&Object(Ce.createElement)(_e.RichText,{identifier:"citation",value:c,placeholder:// translators: placeholder text used for the citation
Object(Ee.__)("Write citation…"),onChange:function(e){return a({citation:e})},className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:function(){return b(Object(we.createBlock)("core/paragraph"))}}))),"web"===Ce.Platform.OS&&Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(_e.PanelColorSettings,{title:Object(Ee.__)("Color settings"),colorSettings:[{value:s.color,onChange:function(e){var r=!n.color||m.current,o=h&&r;h?l(e):a({customMainColor:e}),o&&(e?(m.current=!0,i(t.getMostReadableColor(e))):m.current&&(m.current=!1,i()))},label:Object(Ee.__)("Main color")},{value:n.color,onChange:function(e){i(e),m.current=!1},label:Object(Ee.__)("Text color")}]},h&&Object(Ce.createElement)(_e.ContrastChecker,Ae({textColor:n.color,backgroundColor:s.color},{isLargeText:!1})))))}));function ks(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ks(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ks(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cs={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(we.createBlock)("core/pullquote",{value:Object(Mn.toHTMLString)({value:Object(Mn.join)(e.map((function(e){var t=e.content;return Object(Mn.create)({html:t})})),"\u2028"),multilineTag:"p"}),anchor:e.anchor})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content,n=e.anchor;return Object(we.createBlock)("core/pullquote",{value:"<p>".concat(t,"</p>"),anchor:n})}}],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,Oe(Object(Mn.split)(Object(Mn.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(we.createBlock)("core/paragraph",{content:Object(Mn.toHTMLString)({value:e})})})))),n&&"<p></p>"!==n&&r.push(Object(we.createBlock)("core/paragraph",{content:n})),0===r.length?Object(we.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,n=e.citation,r=In(e,["value","citation"]);if("<p></p>"===t)return Object(we.createBlock)("core/heading",{content:n});var o=Object(Mn.split)(Object(Mn.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object(we.createBlock)("core/heading",{content:Object(Mn.toHTMLString)({value:o[0]})});if(!n&&1===o.length)return c;var a=o.slice(1);return[c,Object(we.createBlock)("core/pullquote",Es(Es({},r),{},{citation:n,value:Object(Mn.toHTMLString)({value:a.length?Object(Mn.join)(o.slice(1),"\u2028"):Object(Mn.create)(),multilineTag:"p"})}))]}}]},xs={apiVersion:2,name:"core/pullquote",category:"text",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"}},supports:{anchor:!0,align:["left","right","wide","full"]}},Ss=xs.name,Ps={title:Object(Ee.__)("Pullquote"),description:Object(Ee.__)("Give special visual emphasis to a quote from your text."),icon:ps,example:{attributes:{value:"<p>"+// translators: Quote serving as example for the Pullquote block. Attributed to Matt Mullenweg.
Object(Ee.__)("One of the hardest things to do in technology is disrupt yourself.")+"</p>",citation:Object(Ee.__)("Matt Mullenweg")}},styles:[{name:"default",label:Object(Ee._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(Ee.__)("Solid color")}],transforms:Cs,edit:ws,save:function(e){var t,n,r=e.attributes,o=r.mainColor,c=r.customMainColor,a=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className;if(Object(ke.includes)(u,gs)){var b=Object(_e.getColorClassName)("background-color",o);t=Te()(je({"has-background":b||c},b,b)),n={backgroundColor:b?void 0:c}}else c&&(n={borderColor:c});var m=Object(_e.getColorClassName)("color",a),d=(a||i)&&Te()("has-text-color",je({},m,m)),p=m?void 0:{color:i};return Object(Ce.createElement)("figure",_e.useBlockProps.save({className:t,style:n}),Object(Ce.createElement)("blockquote",{className:d,style:p},Object(Ce.createElement)(_e.RichText.Content,{value:l,multiline:!0}),!_e.RichText.isEmpty(s)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"cite",value:s})))},deprecated:js};function Ts(e){var t=e.isEditDisabled,n=e.isEditing,r=e.isSaving,o=e.onChangeTitle,c=e.onEdit,a=e.onSave,i=e.title,l=Object(et.useInstanceId)(Ts),s=Object(Ce.useRef)(),u=Object(Ce.useRef)(),b=Object(et.usePrevious)(n),m=Object(et.usePrevious)(r);return Object(Ce.useEffect)((function(){!b&&n&&s.current.select()}),[n]),Object(Ce.useEffect)((function(){!b&&!m||n||r||u.current.focus()}),[n,r]),Object(Ce.createElement)(Ce.Fragment,null,!n&&!r&&Object(Ce.createElement)("div",{className:"reusable-block-edit-panel"},Object(Ce.createElement)("b",{className:"reusable-block-edit-panel__info"},i),Object(Ce.createElement)(He.Button,{ref:u,isSecondary:!0,className:"reusable-block-edit-panel__button",disabled:t,onClick:c},Object(Ee.__)("Edit"))),(n||r)&&Object(Ce.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:function(e){e.preventDefault(),a()}},Object(Ce.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(l),className:"reusable-block-edit-panel__label"},Object(Ee.__)("Name:")),Object(Ce.createElement)("input",{ref:s,type:"text",disabled:r,className:"reusable-block-edit-panel__title",value:i,onChange:function(e){o(e.target.value)},id:"reusable-block-edit-panel__title-".concat(l)}),Object(Ce.createElement)(He.Button,{type:"submit",isSecondary:!0,isBusy:r,disabled:!i||r,className:"reusable-block-edit-panel__button"},Object(Ee.__)("Save"))))}var Bs={apiVersion:2,name:"core/block",category:"reusable",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1}},zs=Bs.name,Ns={title:Object(Ee.__)("Reusable Block"),description:Object(Ee.__)("Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used."),edit:function(e){var t=e.attributes.ref,n=e.clientId,r=e.isSelected,o=["postType","wp_block",t],c=Object(Le.useSelect)((function(e){var r,c;return{reusableBlock:(r=e("core")).getEditedEntityRecord.apply(r,o),hasResolved:e("core").hasFinishedResolution("getEditedEntityRecord",o),isSaving:(c=e("core")).isSavingEntityRecord.apply(c,o),canUserUpdate:e("core").canUser("update","blocks",t),isEditing:e("core/reusable-blocks").__experimentalIsEditingReusableBlock(n),settings:e("core/block-editor").getSettings()}}),[t,n]),a=c.reusableBlock,i=c.hasResolved,l=c.isEditing,s=c.isSaving,u=c.canUserUpdate,b=c.settings,m=Object(Le.useDispatch)("core"),d=m.editEntityRecord,p=m.saveEditedEntityRecord,g=Object(Le.useDispatch)("core/reusable-blocks").__experimentalSetEditingReusableBlock,f=Object(Ce.useCallback)((function(e){g(n,e)}),[n]),h=Object(Le.useDispatch)("core/reusable-blocks").__experimentalConvertBlockToStatic,v=Object(Le.useDispatch)("core/notices"),O=v.createSuccessNotice,j=v.createErrorNotice,y=Object(Ce.useCallback)(Yi(Ji.a.mark((function e(){return Ji.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.apply(void 0,o);case 3:O(Object(Ee.__)("Block updated."),{type:"snackbar"}),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),j(e.t0.message,{type:"snackbar"});case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),o),_=Ve(Object(ye.useEntityBlockEditor)("postType","wp_block",{id:t}),3),w=_[0],k=_[1],E=_[2],C=Object(_e.useBlockProps)();if(!i)return Object(Ce.createElement)("div",C,Object(Ce.createElement)(He.Placeholder,null,Object(Ce.createElement)(He.Spinner,null)));if(!a)return Object(Ce.createElement)("div",C,Object(Ce.createElement)(He.Placeholder,null,Object(Ee.__)("Block has been deleted or is unavailable.")));var x=Object(Ce.createElement)(_e.BlockEditorProvider,{value:w,onInput:k,onChange:E,settings:b},Object(Ce.createElement)(_e.WritingFlow,null,Object(Ce.createElement)(_e.BlockList,null)));return l||(x=Object(Ce.createElement)(He.Disabled,null,x)),Object(Ce.createElement)("div",C,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(He.ToolbarGroup,null,Object(Ce.createElement)(He.ToolbarButton,{onClick:function(){return h(n)}},Object(Ee.__)("Convert to regular blocks")))),Object(Ce.createElement)("div",{className:"block-library-block__reusable-block-container"},(r||l)&&Object(Ce.createElement)(Ts,{isEditing:l,title:a.title,isSaving:s,isEditDisabled:!u,onEdit:function(){return f(!0)},onChangeTitle:function(e){return d.apply(void 0,o.concat([{title:e}]))},onSave:function(){y(),f(!1)}}),x))}},Is=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"}));var Ms={apiVersion:2,name:"core/rss",category:"widgets",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:""},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55}},supports:{align:!0,html:!1}},Rs=Ms.name,As={title:Object(Ee.__)("RSS"),description:Object(Ee.__)("Display entries from any RSS or Atom feed."),icon:Is,keywords:[Object(Ee.__)("atom"),Object(Ee.__)("feed")],example:{attributes:{feedURL:"https://wordpress.org"}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=Ve(Object(Ce.useState)(!t.feedURL),2),o=r[0],c=r[1],a=t.blockLayout,i=t.columns,l=t.displayAuthor,s=t.displayDate,u=t.displayExcerpt,b=t.excerptLength,m=t.feedURL,d=t.itemsToShow;function p(e){return function(){var r=t[e];n(je({},e,!r))}}var g=Object(_e.useBlockProps)();if(o)return Object(Ce.createElement)("div",g,Object(Ce.createElement)(He.Placeholder,{icon:Is,label:"RSS"},Object(Ce.createElement)("form",{onSubmit:function(e){e.preventDefault(),m&&c(!1)},className:"wp-block-rss__placeholder-form"},Object(Ce.createElement)(He.TextControl,{placeholder:Object(Ee.__)("Enter URL here…"),value:m,onChange:function(e){return n({feedURL:e})},className:"wp-block-rss__placeholder-input"}),Object(Ce.createElement)(He.Button,{isPrimary:!0,type:"submit"},Object(Ee.__)("Use URL")))));var f=[{icon:sr.a,title:Object(Ee.__)("Edit RSS URL"),onClick:function(){return c(!0)}},{icon:Ol,title:Object(Ee.__)("List view"),onClick:function(){return n({blockLayout:"list"})},isActive:"list"===a},{icon:jl,title:Object(Ee.__)("Grid view"),onClick:function(){return n({blockLayout:"grid"})},isActive:"grid"===a}];return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(He.ToolbarGroup,{controls:f})),Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("RSS settings")},Object(Ce.createElement)(He.RangeControl,{label:Object(Ee.__)("Number of items"),value:d,onChange:function(e){return n({itemsToShow:e})},min:1,max:10,required:!0}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Display author"),checked:l,onChange:p("displayAuthor")}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Display date"),checked:s,onChange:p("displayDate")}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Display excerpt"),checked:u,onChange:p("displayExcerpt")}),u&&Object(Ce.createElement)(He.RangeControl,{label:Object(Ee.__)("Max number of words in excerpt"),value:b,onChange:function(e){return n({excerptLength:e})},min:10,max:100,required:!0}),"grid"===a&&Object(Ce.createElement)(He.RangeControl,{label:Object(Ee.__)("Columns"),value:i,onChange:function(e){return n({columns:e})},min:2,max:6,required:!0}))),Object(Ce.createElement)("div",g,Object(Ce.createElement)(He.Disabled,null,Object(Ce.createElement)(Tr.a,{block:"core/rss",attributes:t}))))}},Vs=Object(Ce.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(He.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),Hs=Object(Ce.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(He.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor","stroke-width":"1.5",fill:"none"}),Object(Ce.createElement)(He.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Ls=Object(Ce.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(He.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor","stroke-width":"1.5",fill:"none"}),Object(Ce.createElement)(He.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Ds=Object(Ce.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(He.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none","stroke-width":"1.5"})),Fs=Object(Ce.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(He.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none","stroke-width":"1.5"}),Object(Ce.createElement)(He.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),Gs=Object(Ce.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(He.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none","stroke-width":"1.5"}),Object(Ce.createElement)(He.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"})),Us=[{value:"%",label:"%",default:50},{value:"px",label:"px",default:350}];var qs=[{name:"default",isDefault:!0,attributes:{buttonText:Object(Ee.__)("Search"),label:Object(Ee.__)("Search")}}],Ws={apiVersion:2,name:"core/search",category:"widgets",attributes:{label:{type:"string"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:""},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1}},supports:{align:["left","center","right"],html:!1}},Zs=Ws.name,Ks={title:Object(Ee.__)("Search"),description:Object(Ee.__)("Help visitors find your content."),icon:Vt.a,keywords:[Object(Ee.__)("find")],example:{},variations:qs,edit:function(e){var t=e.className,n=e.attributes,r=e.setAttributes,o=e.toggleSelection,c=e.isSelected,a=n.label,i=n.showLabel,l=n.placeholder,s=n.width,u=n.widthUnit,b=n.align,m=n.buttonText,d=n.buttonPosition,p=n.buttonUseIcon,g=Object(et.useInstanceId)(_e.__experimentalUnitControl),f="wp-block-search__width-".concat(g),h=function(){return Object(Ce.createElement)("input",{className:"wp-block-search__input","aria-label":Object(Ee.__)("Optional placeholder text"),placeholder:l?void 0:Object(Ee.__)("Optional placeholder…"),value:l,onChange:function(e){return r({placeholder:e.target.value})}})},v=function(){return Object(Ce.createElement)(Ce.Fragment,null,p&&Object(Ce.createElement)(He.Button,{icon:Vt.a,className:"wp-block-search__button"}),!p&&Object(Ce.createElement)(_e.RichText,{className:"wp-block-search__button","aria-label":Object(Ee.__)("Button text"),placeholder:Object(Ee.__)("Add button text…"),withoutInteractiveFormatting:!0,value:m,onChange:function(e){return r({buttonText:e})}}))},O=Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(He.ToolbarGroup,null,Object(Ce.createElement)(He.ToolbarButton,{title:Object(Ee.__)("Toggle search label"),icon:Gs,onClick:function(){r({showLabel:!i})},className:i?"is-pressed":void 0}),Object(Ce.createElement)(He.DropdownMenu,{icon:function(){switch(d){case"button-inside":return Ls;case"button-outside":return Hs;case"no-button":return Ds;case"button-only":return Vs}}(),label:Object(Ee.__)("Change button position")},(function(e){var t=e.onClose;return Object(Ce.createElement)(He.MenuGroup,{className:"wp-block-search__button-position-menu"},Object(Ce.createElement)(He.MenuItem,{icon:Ds,onClick:function(){r({buttonPosition:"no-button"}),t()}},Object(Ee.__)("No Button")),Object(Ce.createElement)(He.MenuItem,{icon:Hs,onClick:function(){r({buttonPosition:"button-outside"}),t()}},Object(Ee.__)("Button Outside")),Object(Ce.createElement)(He.MenuItem,{icon:Ls,onClick:function(){r({buttonPosition:"button-inside"}),t()}},Object(Ee.__)("Button Inside")),Object(Ce.createElement)(He.MenuItem,{icon:Vs,onClick:function(){r({buttonPosition:"button-only"}),t()}},Object(Ee.__)("Button Only")))})),"no-button"!==d&&Object(Ce.createElement)(He.ToolbarButton,{title:Object(Ee.__)("Use button with icon"),icon:Fs,onClick:function(){r({buttonUseIcon:!p})},className:p?"is-pressed":void 0}))),Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Display Settings")},Object(Ce.createElement)(He.BaseControl,{label:Object(Ee.__)("Width"),id:f},Object(Ce.createElement)(_e.__experimentalUnitControl,{id:f,min:"".concat(220).concat("px"),onChange:function(e){var t="%"===u&&parseInt(e,10)>100?100:e;r({width:parseInt(t,10)})},onUnitChange:function(e){r({width:"%"===e?50:350,widthUnit:e})},style:{maxWidth:80},value:"".concat(s).concat(u),unit:u,units:Us}),Object(Ce.createElement)(He.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":Object(Ee.__)("Percentage Width")},[25,50,75,100].map((function(e){return Object(Ce.createElement)(He.Button,{key:e,isSmall:!0,isPrimary:"".concat(e,"%")==="".concat(s).concat(u),onClick:function(){return r({width:e,widthUnit:"%"})}},e,"%")}))))))),j=Object(_e.useBlockProps)({className:Te()(t,"button-inside"===d?"wp-block-search__button-inside":void 0,"button-outside"===d?"wp-block-search__button-outside":void 0,"no-button"===d?"wp-block-search__no-button":void 0,"button-only"===d?"wp-block-search__button-only":void 0,p||"no-button"===d?void 0:"wp-block-search__text-button",p&&"no-button"!==d?"wp-block-search__icon-button":void 0)});return Object(Ce.createElement)("div",j,O,i&&Object(Ce.createElement)(_e.RichText,{className:"wp-block-search__label","aria-label":Object(Ee.__)("Label text"),placeholder:Object(Ee.__)("Add label…"),withoutInteractiveFormatting:!0,value:a,onChange:function(e){return r({label:e})}}),Object(Ce.createElement)(He.ResizableBox,{size:{width:"".concat(s).concat(u)},className:"wp-block-search__inside-wrapper",isResetValueOnUnitChange:!0,minWidth:220,enable:"button-only"===d?{}:{right:"right"!==b,left:"right"===b},onResizeStart:function(e,t,n){r({width:parseInt(n.offsetWidth,10),widthUnit:"px"}),o(!1)},onResizeStop:function(e,t,n,c){r({width:parseInt(s+c.width,10)}),o(!0)},showHandle:c},("button-inside"===d||"button-outside"===d)&&Object(Ce.createElement)(Ce.Fragment,null,h(),v()),"button-only"===d&&v(),"no-button"===d&&h()))}},$s=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));function Js(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Js(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Js(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ys=function(e){if(e.tagName||(e=Qs(Qs({},e),{},{tagName:"div"})),!e.customTextColor&&!e.customBackgroundColor)return e;var t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),Qs(Qs({},Object(ke.omit)(e,["customTextColor","customBackgroundColor"])),{},{style:t})},Xs=[{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Ys,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=t.textColor,c=t.customTextColor,a=Object(_e.getColorClassName)("background-color",n),i=Object(_e.getColorClassName)("color",o),l=Te()(a,i,{"has-text-color":o||c,"has-background":n||r}),s={backgroundColor:a?void 0:r,color:i?void 0:c};return Object(Ce.createElement)("div",{className:l,style:s},Object(Ce.createElement)("div",{className:"wp-block-group__inner-container"},Object(Ce.createElement)(_e.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:Ys,supports:{align:["wide","full"],anchor:!0,html:!1},save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=t.textColor,c=t.customTextColor,a=Object(_e.getColorClassName)("background-color",n),i=Object(_e.getColorClassName)("color",o),l=Te()(a,{"has-text-color":o||c,"has-background":n||r}),s={backgroundColor:a?void 0:r,color:i?void 0:c};return Object(Ce.createElement)("div",{className:l,style:s},Object(Ce.createElement)("div",{className:"wp-block-group__inner-container"},Object(Ce.createElement)(_e.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Ys,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=Object(_e.getColorClassName)("background-color",n),c=Te()(o,{"has-background":n||r}),a={backgroundColor:o?void 0:r};return Object(Ce.createElement)("div",{className:c,style:a},Object(Ce.createElement)(_e.InnerBlocks.Content,null))}}],eu=He.__experimentalBoxControl.__Visualizer;var tu=function(e){var t,n,r,o,c=e.attributes,a=e.clientId,i=Object(Le.useSelect)((function(e){var t=(0,e("core/block-editor").getBlock)(a);return!(!t||!t.innerBlocks.length)}),[a]),l=Object(_e.useBlockProps)(),s=c.tagName,u=void 0===s?"div":s,b=c.templateLock,m=Object(_e.__experimentalUseInnerBlocksProps)({className:"wp-block-group__inner-container"},{templateLock:b,renderAppender:i?void 0:_e.InnerBlocks.ButtonBlockAppender});return Object(Ce.createElement)(u,l,Object(Ce.createElement)(eu,{values:null===(t=c.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.padding,showValues:null===(r=c.style)||void 0===r||null===(o=r.visualizers)||void 0===o?void 0:o.padding}),Object(Ce.createElement)("div",m))};var nu={apiVersion:2,name:"core/group",category:"design",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0}}},ru=nu.name,ou={title:Object(Ee.__)("Group"),icon:$s,description:Object(Ee.__)("Combine blocks into a group."),keywords:[Object(Ee.__)("container"),Object(Ee.__)("wrapper"),Object(Ee.__)("row"),Object(Ee.__)("section")],example:{attributes:{style:{color:{text:"#000000",background:"#ffffff"}}},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:Object(Ee.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:Object(Ee.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:Object(Ee.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:Object(Ee.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:Object(Ee.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:Object(Ee.__)("Six.")}}]},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(we.createBlock)(e.name,e.attributes,e.innerBlocks)}));return Object(we.createBlock)("core/group",{align:n},r)}}}]},edit:tu,save:function(e){var t=e.attributes.tagName;return Object(Ce.createElement)(t,_e.useBlockProps.save(),Object(Ce.createElement)("div",{className:"wp-block-group__inner-container"},Object(Ce.createElement)(_e.InnerBlocks.Content,null)))},deprecated:Xs},cu=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M20.2 7v4H3.8V7H2.2v9h1.6v-3.5h16.4V16h1.6V7z"})),au=function(e){var t=e.color,n=e.setColor;return Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(_e.PanelColorSettings,{title:Object(Ee.__)("Color settings"),colorSettings:[{value:t.color,onChange:n,label:Object(Ee.__)("Color")}]}))};var iu=Object(_e.withColors)("color",{textColor:"color"})((function(e){var t=e.color,n=e.setColor,r=e.className;return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(He.HorizontalRule,Object(_e.useBlockProps)({className:Te()(r,je({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}})),Object(Ce.createElement)(au,{color:t,setColor:n}))}));var lu={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(we.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},su={apiVersion:2,name:"core/separator",category:"design",attributes:{color:{type:"string"},customColor:{type:"string"}},supports:{anchor:!0,align:["center","wide","full"]}},uu=su.name,bu={title:Object(Ee.__)("Separator"),description:Object(Ee.__)("Create a break between ideas or sections with a horizontal separator."),icon:cu,keywords:[Object(Ee.__)("horizontal-line"),"hr",Object(Ee.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(Ee.__)("Default"),isDefault:!0},{name:"wide",label:Object(Ee.__)("Wide Line")},{name:"dots",label:Object(Ee.__)("Dots")}],transforms:lu,edit:iu,save:function(e){var t,n=e.attributes,r=n.color,o=n.customColor,c=Object(_e.getColorClassName)("background-color",r),a=Object(_e.getColorClassName)("color",r),i=Te()((je(t={"has-text-color has-background":r||o},c,c),je(t,a,a),t)),l={backgroundColor:c?void 0:o,color:a?void 0:o};return Object(Ce.createElement)("hr",_e.useBlockProps.save({className:i,style:l}))}},mu=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"})),du=n(144);var pu=n(102),gu={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var n=t.content;return Object(pu.removep)(Object(pu.autop)(n))}}},priority:20}]},fu={apiVersion:2,name:"core/shortcode",category:"widgets",attributes:{text:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,html:!1}},hu=fu.name,vu={title:Object(Ee.__)("Shortcode"),description:Object(Ee.__)("Insert additional custom elements with a WordPress shortcode."),icon:mu,transforms:gu,edit:function e(t){var n=t.attributes,r=t.setAttributes,o=Object(et.useInstanceId)(e),c="blocks-shortcode-input-".concat(o);return Object(Ce.createElement)("div",Object(_e.useBlockProps)({className:"components-placeholder"}),Object(Ce.createElement)("label",{htmlFor:c,className:"components-placeholder__label"},Object(Ce.createElement)(du.a,{icon:mu}),Object(Ee.__)("Shortcode")),Object(Ce.createElement)(_e.PlainText,{className:"blocks-shortcode__textarea",id:c,value:n.text,placeholder:Object(Ee.__)("Write shortcode here…"),onChange:function(e){return r({text:e})}}))},save:function(e){var t=e.attributes;return Object(Ce.createElement)(Ce.RawHTML,null,t.text)}},Ou=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M12.5 4.2v1.6h4.7L5.8 17.2V12H4.2v7.8H12v-1.6H6.8L18.2 6.8v4.7h1.6V4.2z"})),ju=Object(et.compose)([Object(Le.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),et.withInstanceId])((function(e){var t=e.attributes,n=e.isSelected,r=e.setAttributes,o=e.onResizeStart,c=e.onResizeStop,a=Ve(Object(Ce.useState)(!1),2),i=a[0],l=a[1],s=t.height,u=function(e){r({height:e})};return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(xe.View,Object(_e.useBlockProps)(),Object(Ce.createElement)(He.ResizableBox,{className:Te()("block-library-spacer__resize-container",{"is-selected":n}),size:{height:s},minHeight:1,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:function(){o.apply(void 0,arguments),l(!0)},onResizeStop:function(e,t,n,r){c();var o=Math.min(parseInt(s+r.height,10),500);u(o),l(!1)},showHandle:n,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:i}})),Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Spacer settings")},Object(Ce.createElement)(He.RangeControl,{label:Object(Ee.__)("Height in pixels"),min:1,max:Math.max(500,s),value:s,onChange:u}))))}));var yu={apiVersion:2,name:"core/spacer",category:"design",attributes:{height:{type:"number",default:100}},supports:{anchor:!0}},_u=yu.name,wu={title:Object(Ee.__)("Spacer"),description:Object(Ee.__)("Add white space between blocks and customize its height."),icon:Ou,edit:ju,save:function(e){var t=e.attributes;return Object(Ce.createElement)("div",_e.useBlockProps.save({style:{height:t.height},"aria-hidden":!0}))}},ku=n(31),Eu=n.n(ku);var Cu={to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(we.createBlock)("core/paragraph",e)}}]},xu={apiVersion:2,name:"core/subhead",category:"text",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p"}},supports:{inserter:!1,multiple:!1}},Su=xu.name,Pu={title:Object(Ee.__)("Subheading (deprecated)"),description:Object(Ee.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Object(Ce.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(He.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"})),transforms:Cu,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=t.align,c=t.content,a=t.placeholder;return Eu()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.AlignmentToolbar,{value:o,onChange:function(e){n({align:e})}})),Object(Ce.createElement)("div",Object(_e.useBlockProps)(),Object(Ce.createElement)(_e.RichText,{tagName:"p",value:c,onChange:function(e){n({content:e})},style:{textAlign:o},className:r,placeholder:a||Object(Ee.__)("Write subheading…")})))},save:function(e){var t=e.attributes,n=t.align,r=t.content;return Object(Ce.createElement)("p",_e.useBlockProps.save({style:{textAlign:n}}),Object(Ce.createElement)(_e.RichText.Content,{value:r}))}},Tu=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})),Bu=[{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,o=t.body,c=t.foot,a=t.backgroundColor;if(!r.length&&!o.length&&!c.length)return null;var i=Object(_e.getColorClassName)("background-color",a),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(Ce.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object(Ce.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag,o=e.scope;return Object(Ce.createElement)(_e.RichText.Content,{tagName:r,value:n,key:t,scope:"th"===r?o:void 0})})))})))};return Object(Ce.createElement)("table",{className:l},Object(Ce.createElement)(s,{type:"head",rows:r}),Object(Ce.createElement)(s,{type:"body",rows:o}),Object(Ce.createElement)(s,{type:"foot",rows:c}))}}],zu=n(287),Nu=n(288),Iu=n(289),Mu=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Ce.createElement)(xe.Path,{d:"M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z"})),Ru=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Ce.createElement)(xe.Path,{d:"M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z"})),Au=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Ce.createElement)(xe.Path,{d:"M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z"})),Vu=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Ce.createElement)(xe.Path,{d:"M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z"})),Hu=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Ce.createElement)(xe.Path,{d:"M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z"})),Lu=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Ce.createElement)(xe.Path,{d:"M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z"})),Du=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));function Fu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fu(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Uu=["align"];function qu(e,t,n){if(!t)return e;var r=Object(ke.pick)(e,["head","body","foot"]),o=t.sectionName,c=t.rowIndex;return Object(ke.mapValues)(r,(function(e,r){return o&&o!==r?e:e.map((function(e,o){return c&&c!==o?e:{cells:e.cells.map((function(e,c){return function(e,t){if(!e||!t)return!1;switch(t.type){case"column":return"column"===t.type&&e.columnIndex===t.columnIndex;case"cell":return"cell"===t.type&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}({sectionName:r,columnIndex:c,rowIndex:o},t)?n(e):e}))}}))}))}function Wu(e,t){var n=t.sectionName,r=t.rowIndex,o=t.columnCount,c=function(e){return $u(e.head)?$u(e.body)?$u(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),a=void 0===o?Object(ke.get)(c,["cells","length"]):o;return a?je({},n,[].concat(Oe(e[n].slice(0,r)),[{cells:Object(ke.times)(a,(function(e){var t=Object(ke.get)(c,["cells",e],{});return Gu(Gu({},Object(ke.pick)(t,Uu)),{},{content:"",tag:"head"===n?"th":"td"})}))}],Oe(e[n].slice(r)))):e}function Zu(e,t){var n=t.columnIndex,r=Object(ke.pick)(e,["head","body","foot"]);return Object(ke.mapValues)(r,(function(e,t){return $u(e)?e:e.map((function(e){return Ju(e)||e.cells.length<n?e:{cells:[].concat(Oe(e.cells.slice(0,n)),[{content:"",tag:"head"===t?"th":"td"}],Oe(e.cells.slice(n)))}}))}))}function Ku(e,t){return $u(e[t])?Wu(e,{sectionName:t,rowIndex:0,columnCount:Object(ke.get)(e,["body",0,"cells","length"],1)}):je({},t,[])}function $u(e){return!e||!e.length||Object(ke.every)(e,Ju)}function Ju(e){return!(e.cells&&e.cells.length)}function Qu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qu(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xu=[{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"}],eb=[{icon:zu.a,title:Object(Ee.__)("Align column left"),align:"left"},{icon:Nu.a,title:Object(Ee.__)("Align column center"),align:"center"},{icon:Iu.a,title:Object(Ee.__)("Align column right"),align:"right"}],tb=Object(_e.createCustomColorsHOC)(Xu),nb={head:Object(Ee.__)("Header label"),foot:Object(Ee.__)("Footer label")};function rb(e){var t=e.name,n=In(e,["name"]),r="t".concat(t);return Object(Ce.createElement)(r,n)}var ob=tb("backgroundColor")((function(e){var t=e.attributes,n=e.backgroundColor,r=e.setBackgroundColor,o=e.setAttributes,c=e.insertBlocksAfter,a=e.isSelected,i=t.hasFixedLayout,l=t.caption,s=t.head,u=t.foot,b=Ve(Object(Ce.useState)(2),2),m=b[0],d=b[1],p=Ve(Object(Ce.useState)(2),2),g=p[0],f=p[1],h=Ve(Object(Ce.useState)(),2),v=h[0],O=h[1];function j(e){v&&o(qu(t,v,(function(t){return Yu(Yu({},t),{},{content:e})})))}function y(e){if(v){var n=v.sectionName,r=v.rowIndex+e;o(Wu(t,{sectionName:n,rowIndex:r})),O({sectionName:n,rowIndex:r,columnIndex:0,type:"cell"})}}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(v){var n=v.columnIndex,r=n+e;o(Zu(t,{columnIndex:r})),O({rowIndex:0,columnIndex:r,type:"cell"})}}Object(Ce.useEffect)((function(){a||O()}),[a]);var w=["head","body","foot"].filter((function(e){return!$u(t[e])})),k=[{icon:Mu,title:Object(Ee.__)("Insert row before"),isDisabled:!v,onClick:function(){y(0)}},{icon:Ru,title:Object(Ee.__)("Insert row after"),isDisabled:!v,onClick:function(){y(1)}},{icon:Au,title:Object(Ee.__)("Delete row"),isDisabled:!v,onClick:function(){if(v){var e=v.sectionName,n=v.rowIndex;O(),o(function(e,t){var n=t.sectionName,r=t.rowIndex;return je({},n,e[n].filter((function(e,t){return t!==r})))}(t,{sectionName:e,rowIndex:n}))}}},{icon:Vu,title:Object(Ee.__)("Insert column before"),isDisabled:!v,onClick:function(){_(0)}},{icon:Hu,title:Object(Ee.__)("Insert column after"),isDisabled:!v,onClick:function(){_(1)}},{icon:Lu,title:Object(Ee.__)("Delete column"),isDisabled:!v,onClick:function(){if(v){var e=v.sectionName,n=v.columnIndex;O(),o(function(e,t){var n=t.columnIndex,r=Object(ke.pick)(e,["head","body","foot"]);return Object(ke.mapValues)(r,(function(e){return $u(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}))}))}(t,{sectionName:e,columnIndex:n}))}}}],E=["head","body","foot"].map((function(e){return Object(Ce.createElement)(rb,{name:e,key:e},t[e].map((function(t,n){var r=t.cells;return Object(Ce.createElement)("tr",{key:n},r.map((function(t,r){var o=t.content,c=t.tag,a=t.scope,i=t.align;return Object(Ce.createElement)(_e.RichText,{tagName:c,key:r,className:Te()(je({},"has-text-align-".concat(i),i),"wp-block-table__cell-content"),scope:"th"===c?a:void 0,value:o,onChange:j,unstableOnFocus:function(){O({sectionName:e,rowIndex:n,columnIndex:r,type:"cell"})},placeholder:nb[e]})})))})))})),C=!w.length;return Object(Ce.createElement)("figure",Object(_e.useBlockProps)(),!C&&Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(He.ToolbarGroup,null,Object(Ce.createElement)(He.ToolbarItem,null,(function(e){return Object(Ce.createElement)(He.DropdownMenu,{hasArrowIndicator:!0,icon:Du,toggleProps:e,label:Object(Ee.__)("Edit table"),controls:k})}))),Object(Ce.createElement)(_e.AlignmentToolbar,{label:Object(Ee.__)("Change column alignment"),alignmentControls:eb,value:function(){var e,n,r,o,c,a;if(v)return e=t,r="align",o=(n=v).sectionName,c=n.rowIndex,a=n.columnIndex,Object(ke.get)(e,[o,c,"cells",a,r])}(),onChange:function(e){return function(e){if(v){var n={type:"column",columnIndex:v.columnIndex},r=qu(t,n,(function(t){return Yu(Yu({},t),{},{align:e})}));o(r)}}(e)}})),!C&&Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Table settings"),className:"blocks-table-settings"},Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Fixed width table cells"),checked:!!i,onChange:function(){o({hasFixedLayout:!i})}}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Header section"),checked:!(!s||!s.length),onChange:function(){o(Ku(t,"head"))}}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Footer section"),checked:!(!u||!u.length),onChange:function(){o(Ku(t,"foot"))}})),Object(Ce.createElement)(_e.PanelColorSettings,{title:Object(Ee.__)("Color settings"),initialOpen:!1,colorSettings:[{value:n.color,onChange:r,label:Object(Ee.__)("Background color"),disableCustomColors:!0,colors:Xu}]})),!C&&Object(Ce.createElement)("table",{className:Te()(n.class,{"has-fixed-layout":i,"has-background":!!n.color})},E),!C&&Object(Ce.createElement)(_e.RichText,{tagName:"figcaption",placeholder:Object(Ee.__)("Write caption…"),value:l,onChange:function(e){return o({caption:e})},unstableOnFocus:function(){return O()},__unstableOnSplitAtEnd:function(){return c(Object(we.createBlock)("core/paragraph"))}}),C&&Object(Ce.createElement)(He.Placeholder,{label:Object(Ee.__)("Table"),icon:Object(Ce.createElement)(_e.BlockIcon,{icon:Tu,showColors:!0}),instructions:Object(Ee.__)("Insert a table for sharing data.")},Object(Ce.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:function(e){var t,n,r;e.preventDefault(),o((t={rowCount:parseInt(m,10)||2,columnCount:parseInt(g,10)||2},n=t.rowCount,r=t.columnCount,{body:Object(ke.times)(n,(function(){return{cells:Object(ke.times)(r,(function(){return{content:"",tag:"td"}}))}}))}))}},Object(Ce.createElement)(He.TextControl,{type:"number",label:Object(Ee.__)("Column count"),value:g,onChange:function(e){f(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(Ce.createElement)(He.TextControl,{type:"number",label:Object(Ee.__)("Row count"),value:m,onChange:function(e){d(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(Ce.createElement)(He.Button,{className:"blocks-table__placeholder-button",isPrimary:!0,type:"submit"},Object(Ee.__)("Create Table")))))}));var cb=function(e){var t=e.phrasingContentSchema;return{tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:t,attributes:["scope"]},td:{allowEmpty:!0,children:t}}}}},ab={from:[{type:"raw",selector:"table",schema:function(e){return{table:{children:{thead:{allowEmpty:!0,children:cb(e)},tfoot:{allowEmpty:!0,children:cb(e)},tbody:{allowEmpty:!0,children:cb(e)}}}}}}]},ib={apiVersion:2,name:"core/table",category:"text",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"}}}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-button > table"}},lb=ib.name,sb={title:Object(Ee.__)("Table"),description:Object(Ee.__)("Insert a table — perfect for sharing charts and data."),icon:Tu,example:{attributes:{head:[{cells:[{content:Object(Ee.__)("Version"),tag:"th"},{content:Object(Ee.__)("Jazz Musician"),tag:"th"},{content:Object(Ee.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(Ee.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(Ee.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(Ee.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(Ee._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(Ee.__)("Stripes")}],transforms:ab,edit:ob,save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,o=t.body,c=t.foot,a=t.backgroundColor,i=t.caption;if(!r.length&&!o.length&&!c.length)return null;var l=Object(_e.getColorClassName)("background-color",a),s=Te()(l,{"has-fixed-layout":n,"has-background":!!l}),u=!_e.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(Ce.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object(Ce.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag,o=e.scope,c=e.align,a=Te()(je({},"has-text-align-".concat(c),c));return Object(Ce.createElement)(_e.RichText.Content,{className:a||void 0,"data-align":c,tagName:r,value:n,key:t,scope:"th"===r?o:void 0})})))})))};return Object(Ce.createElement)("figure",_e.useBlockProps.save(),Object(Ce.createElement)("table",{className:""===s?void 0:s},Object(Ce.createElement)(b,{type:"head",rows:r}),Object(Ce.createElement)(b,{type:"body",rows:o}),Object(Ce.createElement)(b,{type:"foot",rows:c})),u&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"figcaption",value:i}))},deprecated:Bu};var ub={to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,n=e.columns,r=e.content,o=e.width;return Object(we.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(we.createBlock)("core/column",{},[Object(we.createBlock)("core/paragraph",{content:t})])})))}}]},bb={apiVersion:2,name:"core/text-columns",icon:"columns",category:"design",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1}},mb=bb.name,db={title:Object(Ee.__)("Text Columns (deprecated)"),description:Object(Ee.__)("This block is deprecated. Please use the Columns block instead."),transforms:ub,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=t.width,o=t.content,c=t.columns;return Eu()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.BlockAlignmentToolbar,{value:r,onChange:function(e){return n({width:e})},controls:["center","wide","full"]})),Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,null,Object(Ce.createElement)(He.RangeControl,{label:Object(Ee.__)("Columns"),value:c,onChange:function(e){return n({columns:e})},min:2,max:4,required:!0}))),Object(Ce.createElement)("div",Object(_e.useBlockProps)({className:"align".concat(r," columns-").concat(c)}),Object(ke.times)(c,(function(e){return Object(Ce.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(Ce.createElement)(_e.RichText,{tagName:"p",value:Object(ke.get)(o,[e,"children"]),onChange:function(t){n({content:[].concat(Oe(o.slice(0,e)),[{children:t}],Oe(o.slice(e+1)))})},placeholder:Object(Ee.__)("New Column")}))}))))},save:function(e){var t=e.attributes,n=t.width,r=t.content,o=t.columns;return Object(Ce.createElement)("div",_e.useBlockProps.save({className:"align".concat(n," columns-").concat(o)}),Object(ke.times)(o,(function(e){return Object(Ce.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(Ce.createElement)(_e.RichText.Content,{tagName:"p",value:Object(ke.get)(r,[e,"children"])}))})))}},pb=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})),gb=[{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(Ce.createElement)(_e.RichText.Content,{tagName:"pre",style:{textAlign:n},value:r})}}];var fb={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(we.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(we.createBlock)("core/paragraph",e)}}]},hb={apiVersion:2,name:"core/verse",category:"text",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0},textAlign:{type:"string"}},supports:{anchor:!0}},vb=hb.name,Ob={title:Object(Ee.__)("Verse"),description:Object(Ee.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:pb,example:{attributes:{
// translators: Sample content for the Verse block. Can be replaced with a more locale-adequate work.
content:Object(Ee.__)("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(Ee.__)("poetry"),Object(Ee.__)("poem")],transforms:fb,deprecated:gb,merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=t.textAlign,c=t.content,a=Object(_e.useBlockProps)({className:Te()(je({},"has-text-align-".concat(o),o))});return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.AlignmentToolbar,{value:o,onChange:function(e){n({textAlign:e})}})),Object(Ce.createElement)(_e.RichText,Ae({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:c,onChange:function(e){n({content:e})},placeholder:Object(Ee.__)("Write…"),onMerge:r,textAlign:o},a)))},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content,o=Te()(je({},"has-text-align-".concat(n),n));return Object(Ce.createElement)("pre",_e.useBlockProps.save({className:o}),Object(Ce.createElement)(_e.RichText.Content,{value:r}))}},jb=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})),yb=function(e){var t=e.setAttributes,n=e.attributes,r=n.autoplay,o=n.controls,c=n.loop,a=n.muted,i=n.playsInline,l=n.preload,s=function(e){return function(n){t(je({},e,n))}};return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Autoplay"),onChange:s("autoplay"),checked:r,help:function(e){return e?Object(Ee.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Loop"),onChange:s("loop"),checked:c}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Muted"),onChange:s("muted"),checked:a}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Playback controls"),onChange:s("controls"),checked:o}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Play inline"),onChange:s("playsInline"),checked:i}),Object(Ce.createElement)(He.SelectControl,{label:Object(Ee.__)("Preload"),value:l,onChange:function(e){return t({preload:e})},options:[{value:"auto",label:Object(Ee.__)("Auto")},{value:"metadata",label:Object(Ee.__)("Metadata")},{value:"none",label:Object(Ee.__)("None")}]}))};var _b=n(300);function wb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wb(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Eb=["text/vtt"],Cb=[{label:Object(Ee.__)("Subtitles"),value:"subtitles"},{label:Object(Ee.__)("Captions"),value:"captions"},{label:Object(Ee.__)("Descriptions"),value:"descriptions"},{label:Object(Ee.__)("Chapters"),value:"chapters"},{label:Object(Ee.__)("Metadata"),value:"metadata"}],xb=Object(Ce.createElement)(He.SVG,{width:"18",height:"14",viewBox:"0 0 18 14",role:"img",fill:"none"},Object(Ce.createElement)(He.Rect,{x:"0.75",y:"0.75",width:"16.5",height:"12.5",rx:"1.25",stroke:"black",strokeWidth:"1.5",fill:"none"}),Object(Ce.createElement)(He.Path,{d:"M3 7H15",stroke:"black",strokeWidth:"1.5"}),Object(Ce.createElement)(He.Path,{d:"M3 10L15 10",stroke:"black",strokeWidth:"1.5"}));function Sb(e){var t,n=e.tracks,r=e.onEditPress;return t=0===n.length?Object(Ce.createElement)("p",{className:"block-library-video-tracks-editor__tracks-informative-message"},Object(Ee.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")):n.map((function(e,t){return Object(Ce.createElement)("div",{key:t,className:"block-library-video-tracks-editor__track-list-track"},Object(Ce.createElement)("span",null,e.label," "),Object(Ce.createElement)(He.Button,{isTertiary:!0,onClick:function(){return r(t)},"aria-label":Object(Ee.sprintf)(
/* translators: %s: Label of the video text track e.g: "French subtitles" */
Object(Ee.__)("Edit %s"),e.label)},Object(Ee.__)("Edit")))})),Object(Ce.createElement)(He.MenuGroup,{label:Object(Ee.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list"},t)}function Pb(e){var t=e.track,n=e.onChange,r=e.onClose,o=e.onRemove,c=t.src,a=void 0===c?"":c,i=t.label,l=void 0===i?"":i,s=t.srcLang,u=void 0===s?"":s,b=t.kind,m=void 0===b?"subtitles":b,d=a.startsWith("blob:")?"":a.substring(a.lastIndexOf("/")+1);return Object(Ce.createElement)(He.NavigableMenu,null,Object(Ce.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor"},Object(Ce.createElement)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label"},Object(Ee.__)("Edit track")),Object(Ce.createElement)("span",null,Object(Ee.__)("File"),": ",Object(Ce.createElement)("b",null,d)),Object(Ce.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor-label-language"},Object(Ce.createElement)(He.TextControl,{autoFocus:!0,onChange:function(e){return n(kb(kb({},t),{},{label:e}))},label:Object(Ee.__)("Label"),value:l,help:Object(Ee.__)("Title of track")}),Object(Ce.createElement)(He.TextControl,{onChange:function(e){return n(kb(kb({},t),{},{srcLang:e}))},label:Object(Ee.__)("Source language"),value:u,help:Object(Ee.__)("Language tag (en, fr, etc.)")})),Object(Ce.createElement)(He.SelectControl,{className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:Cb,value:m,label:Object(Ee.__)("Kind"),onChange:function(e){"subtitles"===e&&(e=void 0),n(kb(kb({},t),{},{kind:e}))}}),Object(Ce.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor-buttons-container"},Object(Ce.createElement)(He.Button,{isSecondary:!0,onClick:function(){var e={},o=!1;""===l&&(e.label=Object(Ee.__)("English"),o=!0),""===u&&(e.srcLang="en",o=!0),o&&n(kb(kb({},t),e)),r()}},Object(Ee.__)("Close")),Object(Ce.createElement)(He.Button,{isDestructive:!0,isLink:!0,onClick:o},Object(Ee.__)("Remove track")))))}function Tb(e){var t=e.tracks,n=void 0===t?[]:t,r=e.onChange,o=Object(Le.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),c=Ve(Object(Ce.useState)(null),2),a=c[0],i=c[1];return o?Object(Ce.createElement)(He.Dropdown,{contentClassName:"block-library-video-tracks-editor",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(Ce.createElement)(He.ToolbarGroup,null,Object(Ce.createElement)(He.ToolbarButton,{label:Object(Ee.__)("Text tracks"),showTooltip:!0,"aria-expanded":t,"aria-haspopup":"true",onClick:n,icon:xb}))},renderContent:function(e){return function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}(e),null!==a?Object(Ce.createElement)(Pb,{track:n[a],onChange:function(e){var t=Oe(n);t[a]=e,r(t)},onClose:function(){return i(null)},onRemove:function(){r(n.filter((function(e,t){return t!==a}))),i(null)}}):Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(He.NavigableMenu,null,Object(Ce.createElement)(Sb,{tracks:n,onEditPress:i}),Object(Ce.createElement)(He.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:Object(Ee.__)("Add tracks")},Object(Ce.createElement)(_e.MediaUpload,{onSelect:function(e){var t=e.url,o=n.length;r([].concat(Oe(n),[{src:t}])),i(o)},allowedTypes:Eb,render:function(e){var t=e.open;return Object(Ce.createElement)(He.MenuItem,{icon:_b.a,onClick:t},Object(Ee.__)("Open Media Library"))}}),Object(Ce.createElement)(_e.MediaUploadCheck,null,Object(Ce.createElement)(He.FormFileUpload,{onChange:function(e){var t=e.target.files,c=n.length;o({allowedTypes:Eb,filesList:t,onFileChange:function(e){var t=Ve(e,1)[0].url,o=Oe(n);o[c]||(o[c]={}),o[c]=kb(kb({},n[c]),{},{src:t}),r(o),i(c)}})},accept:".vtt,text/vtt",render:function(e){var t=e.openFileDialog;return Object(Ce.createElement)(He.MenuItem,{icon:rt.a,onClick:function(){t()}},Object(Ee.__)("Upload"))}})))))}}):null}function Bb(e){var t=e.tracks;return(void 0===t?[]:t).map((function(e){return Object(Ce.createElement)("track",Ae({key:e.src},e))}))}var zb=["video"],Nb=["image"];var Ib=Object(He.withNotices)((function e(t){var n=t.isSelected,r=t.noticeUI,o=t.attributes,c=t.setAttributes,a=t.insertBlocksAfter,i=t.onReplace,l=t.noticeOperations,s=Object(et.useInstanceId)(e),u=Object(Ce.useRef)(),b=Object(Ce.useRef)(),m=o.id,d=o.caption,p=o.controls,g=o.poster,f=o.src,h=o.tracks,v=Object(Le.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}));function O(e){e&&e.url?c({src:e.url,id:e.id}):c({src:void 0,id:void 0})}function j(e){if(e!==f){var t=dt({attributes:{url:e}});if(void 0!==t)return void i(t);c({src:e,id:void 0})}}function y(e){l.removeAllNotices(),l.createErrorNotice(e)}Object(Ce.useEffect)((function(){if(!m&&Object(Xe.isBlobURL)(f)){var e=Object(Xe.getBlobByURL)(f);e&&v({filesList:[e],onFileChange:function(e){var t=Ve(e,1)[0].url;c({src:t})},onError:function(e){l.createErrorNotice(e)},allowedTypes:zb})}}),[]),Object(Ce.useEffect)((function(){u.current&&u.current.load()}),[g]);var _=Object(_e.useBlockProps)();if(!f)return Object(Ce.createElement)("div",_,Object(Ce.createElement)(_e.MediaPlaceholder,{icon:Object(Ce.createElement)(_e.BlockIcon,{icon:jb}),onSelect:O,onSelectURL:j,accept:"video/*",allowedTypes:zb,value:o,notices:r,onError:y}));var w="video-block__poster-image-description-".concat(s);return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(Tb,{tracks:h,onChange:function(e){c({tracks:e})}}),Object(Ce.createElement)(_e.MediaReplaceFlow,{mediaId:m,mediaURL:f,allowedTypes:zb,accept:"video/*",onSelect:O,onSelectURL:j,onError:y})),Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Video settings")},Object(Ce.createElement)(yb,{setAttributes:c,attributes:o}),Object(Ce.createElement)(_e.MediaUploadCheck,null,Object(Ce.createElement)(He.BaseControl,{className:"editor-video-poster-control"},Object(Ce.createElement)(He.BaseControl.VisualLabel,null,Object(Ee.__)("Poster image")),Object(Ce.createElement)(_e.MediaUpload,{title:Object(Ee.__)("Select poster image"),onSelect:function(e){c({poster:e.url})},allowedTypes:Nb,render:function(e){var t=e.open;return Object(Ce.createElement)(He.Button,{isPrimary:!0,onClick:t,ref:b,"aria-describedby":w},g?Object(Ee.__)("Replace"):Object(Ee.__)("Select"))}}),Object(Ce.createElement)("p",{id:w,hidden:!0},g?Object(Ee.sprintf)(
/* translators: %s: poster image URL. */
Object(Ee.__)("The current poster image url is %s"),g):Object(Ee.__)("There is no poster image currently selected")),!!g&&Object(Ce.createElement)(He.Button,{onClick:function(){c({poster:""}),this.posterImageButton.current.focus()},isTertiary:!0},Object(Ee.__)("Remove")))))),Object(Ce.createElement)("figure",_,Object(Ce.createElement)(He.Disabled,null,Object(Ce.createElement)("video",{controls:p,poster:g,src:f,ref:u},Object(Ce.createElement)(Bb,{tracks:h}))),(!_e.RichText.isEmpty(d)||n)&&Object(Ce.createElement)(_e.RichText,{tagName:"figcaption",placeholder:Object(Ee.__)("Write caption…"),value:d,onChange:function(e){return c({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return a(Object(we.createBlock)("core/paragraph"))}})))}));var Mb={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(we.createBlock)("core/video",{src:Object(Xe.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,n=t.src,r=t.mp4,o=t.m4v,c=t.webm,a=t.ogv,i=t.flv;return n||r||o||c||a||i}},poster:{type:"string",shortcode:function(e){return e.named.poster}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},Rb={apiVersion:2,name:"core/video",category:"media",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"},tracks:{type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0}},Ab=Rb.name,Vb={title:Object(Ee.__)("Video"),description:Object(Ee.__)("Embed a video from your media library or upload a new one."),icon:jb,keywords:[Object(Ee.__)("movie")],transforms:Mb,edit:Ib,save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.controls,c=t.loop,a=t.muted,i=t.poster,l=t.preload,s=t.src,u=t.playsInline,b=t.tracks;return Object(Ce.createElement)("figure",_e.useBlockProps.save(),s&&Object(Ce.createElement)("video",{autoPlay:n,controls:o,loop:c,muted:a,poster:i,preload:"metadata"!==l?l:void 0,src:s,playsInline:u},Object(Ce.createElement)(Bb,{tracks:b})),!_e.RichText.isEmpty(r)&&Object(Ce.createElement)(_e.RichText.Content,{tagName:"figcaption",value:r}))}};var Hb=Object(Le.withSelect)((function(e){return{taxonomies:e("core").getTaxonomies()}}))((function(e){var t,n,r=e.attributes,o=e.setAttributes,c=e.taxonomies,a=r.taxonomy,i=r.showTagCounts,l=Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Tag Cloud settings")},Object(Ce.createElement)(He.SelectControl,{label:Object(Ee.__)("Taxonomy"),options:(t={label:Object(Ee.__)("- Select -"),value:"",disabled:!0},n=Object(ke.map)(Object(ke.filter)(c,"show_cloud"),(function(e){return{value:e.slug,label:e.name}})),[t].concat(Oe(n))),value:a,onChange:function(e){return o({taxonomy:e})}}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Show post counts"),checked:i,onChange:function(){return o({showTagCounts:!i})}})));return Object(Ce.createElement)(Ce.Fragment,null,l,Object(Ce.createElement)("div",Object(_e.useBlockProps)(),Object(Ce.createElement)(Tr.a,{key:"tag-cloud",block:"core/tag-cloud",attributes:r})))})),Lb={apiVersion:2,name:"core/tag-cloud",category:"widgets",attributes:{taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1}},supports:{html:!1,align:!0}},Db=Lb.name,Fb={title:Object(Ee.__)("Tag Cloud"),description:Object(Ee.__)("A cloud of your most used tags."),icon:Ki,example:{},edit:Hb},Gb=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"})),Ub=function(e){var t=e.clientId,n=Object(Le.useDispatch)("core/block-editor").replaceBlocks,r=Object(Le.useSelect)((function(e){return e("core/block-editor").getBlock(t)}),[t]);return Object(Ce.createElement)(He.ToolbarButton,{onClick:function(){return n(r.clientId,Object(we.rawHandler)({HTML:Object(we.serialize)(r)}))}},Object(Ee.__)("Convert to blocks"))};function qb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qb(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zb=window.wp;var Kb={apiVersion:2,name:"core/freeform",category:"text",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1}},$b=Kb.name,Jb={title:Object(Ee._x)("Classic","block title"),description:Object(Ee.__)("Use the classic WordPress editor."),icon:Gb,edit:function(e){var t=e.clientId,n=e.attributes.content,r=e.setAttributes,o=e.onReplace,c=Object(Ce.useRef)(!1);return Object(Ce.useEffect)((function(){if(c.current){var e=window.tinymce.get("editor-".concat(t));(null==e?void 0:e.getContent())!==n&&e.setContent(n||"")}}),[n]),Object(Ce.useEffect)((function(){var e=window.wpEditorL10n.tinymce,a=e.baseURL,i=e.suffix;function l(e){var t;n&&e.on("loadContent",(function(){return e.setContent(n)})),e.on("blur",(function(){t=e.selection.getBookmark(2,!0);var n=document.querySelector(".interface-interface-skeleton__content"),o=n.scrollTop;return r({content:e.getContent()}),e.once("focus",(function(){t&&(e.selection.moveToBookmark(t),n.scrollTop!==o&&(n.scrollTop=o))})),!1})),e.on("mousedown touchstart",(function(){t=null}));var c=Object(ke.debounce)((function(){var t=e.getContent();t!==e._lastChange&&(e._lastChange=t,r({content:t}))}),250);e.on("Paste Change input Undo Redo",c),e.on("remove",c.cancel),e.on("keydown",(function(t){gn.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==gn.BACKSPACE&&t.keyCode!==gn.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)||(o([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===gn.F10&&t.stopPropagation()})),e.on("init",(function(){var t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())}))}function s(){var e=window.wpEditorL10n.tinymce.settings;Zb.oldEditor.initialize("editor-".concat(t),{tinymce:Wb(Wb({},e),{},{inline:!0,content_css:!1,fixed_toolbar_container:"#toolbar-".concat(t),setup:l})})}function u(){"complete"===document.readyState&&s()}return c.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:a,suffix:i}),"complete"===document.readyState?s():document.addEventListener("readystatechange",u),function(){document.removeEventListener("readystatechange",u),Zb.oldEditor.remove("editor-".concat(t))}}),[]),Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(He.ToolbarGroup,null,Object(Ce.createElement)(Ub,{clientId:t}))),Object(Ce.createElement)("div",Object(_e.useBlockProps)(),Object(Ce.createElement)("div",{key:"toolbar",id:"toolbar-".concat(t),className:"block-library-classic__toolbar",onClick:function(){var e=window.tinymce.get("editor-".concat(t));e&&e.focus()},"data-placeholder":Object(Ee.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}}),Object(Ce.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})))},save:function(e){var t=e.attributes.content;return Object(Ce.createElement)(Ce.RawHTML,null,t)}},Qb=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})),Yb=["core/social-link"];var Xb=function(e){var t=e.attributes.openInNewTab,n=e.setAttributes,r=Object(Ce.createElement)("div",{className:"wp-block-social-links__social-placeholder"},Object(Ce.createElement)("div",{className:"wp-block-social-link wp-social-link-facebook"}),Object(Ce.createElement)("div",{className:"wp-block-social-link wp-social-link-twitter"}),Object(Ce.createElement)("div",{className:"wp-block-social-link wp-social-link-instagram"})),o=Object(_e.useBlockProps)(),c=Object(_e.__experimentalUseInnerBlocksProps)(o,{allowedBlocks:Yb,orientation:"horizontal",placeholder:r,templateLock:!1,__experimentalAppenderTagName:"li"});return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Link settings")},Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Open links in new tab"),checked:t,onChange:function(){return n({openInNewTab:!t})}}))),Object(Ce.createElement)("ul",c))};var em={apiVersion:2,name:"core/social-links",category:"widgets",attributes:{openInNewTab:{type:"boolean",default:!1}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],anchor:!0}},tm=em.name,nm={title:Object(Ee.__)("Social Icons"),description:Object(Ee.__)("Display icons linking to your social media profiles or websites."),keywords:[Object(Ee._x)("links","block keywords")],example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},styles:[{name:"default",label:Object(Ee.__)("Default"),isDefault:!0},{name:"logos-only",label:Object(Ee.__)("Logos Only")},{name:"pill-shape",label:Object(Ee.__)("Pill Shape")}],icon:Qb,edit:Xb,save:function(){return Object(Ce.createElement)("ul",_e.useBlockProps.save(),Object(Ce.createElement)(_e.InnerBlocks.Content,null))}},rm=n(217),om=function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M19.647,16.706a1.134,1.134,0,0,0-.343-.833l-2.549-2.549a1.134,1.134,0,0,0-.833-.343,1.168,1.168,0,0,0-.883.392l.233.226q.2.189.264.264a2.922,2.922,0,0,1,.184.233.986.986,0,0,1,.159.312,1.242,1.242,0,0,1,.043.337,1.172,1.172,0,0,1-1.176,1.176,1.237,1.237,0,0,1-.337-.043,1,1,0,0,1-.312-.159,2.76,2.76,0,0,1-.233-.184q-.073-.068-.264-.264l-.226-.233a1.19,1.19,0,0,0-.4.895,1.134,1.134,0,0,0,.343.833L15.837,19.3a1.13,1.13,0,0,0,.833.331,1.18,1.18,0,0,0,.833-.318l1.8-1.789a1.12,1.12,0,0,0,.343-.821Zm-8.615-8.64a1.134,1.134,0,0,0-.343-.833L8.163,4.7a1.134,1.134,0,0,0-.833-.343,1.184,1.184,0,0,0-.833.331L4.7,6.473a1.12,1.12,0,0,0-.343.821,1.134,1.134,0,0,0,.343.833l2.549,2.549a1.13,1.13,0,0,0,.833.331,1.184,1.184,0,0,0,.883-.38L8.728,10.4q-.2-.189-.264-.264A2.922,2.922,0,0,1,8.28,9.9a.986.986,0,0,1-.159-.312,1.242,1.242,0,0,1-.043-.337A1.172,1.172,0,0,1,9.254,8.079a1.237,1.237,0,0,1,.337.043,1,1,0,0,1,.312.159,2.761,2.761,0,0,1,.233.184q.073.068.264.264l.226.233a1.19,1.19,0,0,0,.4-.895ZM22,16.706a3.343,3.343,0,0,1-1.042,2.488l-1.8,1.789a3.536,3.536,0,0,1-4.988-.025l-2.525-2.537a3.384,3.384,0,0,1-1.017-2.488,3.448,3.448,0,0,1,1.078-2.561l-1.078-1.078a3.434,3.434,0,0,1-2.549,1.078,3.4,3.4,0,0,1-2.5-1.029L3.029,9.794A3.4,3.4,0,0,1,2,7.294,3.343,3.343,0,0,1,3.042,4.806l1.8-1.789A3.384,3.384,0,0,1,7.331,2a3.357,3.357,0,0,1,2.5,1.042l2.525,2.537a3.384,3.384,0,0,1,1.017,2.488,3.448,3.448,0,0,1-1.078,2.561l1.078,1.078a3.551,3.551,0,0,1,5.049-.049l2.549,2.549A3.4,3.4,0,0,1,22,16.706Z"}))},cm=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"}))}},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:"500px",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"}))}},{name:"amazon",attributes:{service:"amazon"},title:"Amazon",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"}))}},{name:"bandcamp",attributes:{service:"bandcamp"},title:"Bandcamp",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"}))}},{name:"behance",attributes:{service:"behance"},title:"Behance",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"}))}},{name:"chain",attributes:{service:"chain"},title:"Link",icon:om},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"}))}},{name:"deviantart",attributes:{service:"deviantart"},title:"DeviantArt",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"}))}},{name:"dribbble",attributes:{service:"dribbble"},title:"Dribbble",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"}))}},{name:"dropbox",attributes:{service:"dropbox"},title:"Dropbox",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"}))}},{name:"etsy",attributes:{service:"etsy"},title:"Etsy",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"}))}},{name:"facebook",attributes:{service:"facebook"},title:"Facebook",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"}))}},{name:"feed",attributes:{service:"feed"},title:"RSS Feed",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"}))}},{name:"flickr",attributes:{service:"flickr"},title:"Flickr",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"}))}},{name:"foursquare",attributes:{service:"foursquare"},title:"Foursquare",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"}))}},{name:"goodreads",attributes:{service:"goodreads"},title:"Goodreads",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"}))}},{name:"google",attributes:{service:"google"},title:"Google",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"}))}},{name:"github",attributes:{service:"github"},title:"GitHub",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"}))}},{name:"instagram",attributes:{service:"instagram"},title:"Instagram",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"}))}},{name:"lastfm",attributes:{service:"lastfm"},title:"Last.fm",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"}))}},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"}))}},{name:"mail",attributes:{service:"mail"},title:"Mail",keywords:["email","e-mail"],icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M20,4H4C2.895,4,2,4.895,2,6v12c0,1.105,0.895,2,2,2h16c1.105,0,2-0.895,2-2V6C22,4.895,21.105,4,20,4z M20,8.236l-8,4.882 L4,8.236V6h16V8.236z"}))}},{name:"mastodon",attributes:{service:"mastodon"},title:"Mastodon",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"}))}},{name:"meetup",attributes:{service:"meetup"},title:"Meetup",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"}))}},{name:"medium",attributes:{service:"medium"},title:"Medium",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M20.962,7.257l-5.457,8.867l-3.923-6.375l3.126-5.08c0.112-0.182,0.319-0.286,0.527-0.286c0.05,0,0.1,0.008,0.149,0.02 c0.039,0.01,0.078,0.023,0.114,0.041l5.43,2.715l0.006,0.003c0.004,0.002,0.007,0.006,0.011,0.008 C20.971,7.191,20.98,7.227,20.962,7.257z M9.86,8.592v5.783l5.14,2.57L9.86,8.592z M15.772,17.331l4.231,2.115 C20.554,19.721,21,19.529,21,19.016V8.835L15.772,17.331z M8.968,7.178L3.665,4.527C3.569,4.479,3.478,4.456,3.395,4.456 C3.163,4.456,3,4.636,3,4.938v11.45c0,0.306,0.224,0.669,0.498,0.806l4.671,2.335c0.12,0.06,0.234,0.088,0.337,0.088 c0.29,0,0.494-0.225,0.494-0.602V7.231C9,7.208,8.988,7.188,8.968,7.178z"}))}},{name:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"}))}},{name:"pocket",attributes:{service:"pocket"},title:"Pocket",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"}))}},{name:"reddit",attributes:{service:"reddit"},title:"Reddit",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M22,11.816c0-1.256-1.021-2.277-2.277-2.277c-0.593,0-1.122,0.24-1.526,0.614c-1.481-0.965-3.455-1.594-5.647-1.69 l1.171-3.702l3.18,0.748c0.008,1.028,0.846,1.862,1.876,1.862c1.035,0,1.877-0.842,1.877-1.878c0-1.035-0.842-1.877-1.877-1.877 c-0.769,0-1.431,0.466-1.72,1.13l-3.508-0.826c-0.203-0.047-0.399,0.067-0.46,0.261l-1.35,4.268 c-2.316,0.038-4.411,0.67-5.97,1.671C5.368,9.765,4.853,9.539,4.277,9.539C3.021,9.539,2,10.56,2,11.816 c0,0.814,0.433,1.523,1.078,1.925c-0.037,0.221-0.061,0.444-0.061,0.672c0,3.292,4.011,5.97,8.941,5.97s8.941-2.678,8.941-5.97 c0-0.214-0.02-0.424-0.053-0.632C21.533,13.39,22,12.661,22,11.816z M18.776,4.394c0.606,0,1.1,0.493,1.1,1.1s-0.493,1.1-1.1,1.1 s-1.1-0.494-1.1-1.1S18.169,4.394,18.776,4.394z M2.777,11.816c0-0.827,0.672-1.5,1.499-1.5c0.313,0,0.598,0.103,0.838,0.269 c-0.851,0.676-1.477,1.479-1.812,2.36C2.983,12.672,2.777,12.27,2.777,11.816z M11.959,19.606c-4.501,0-8.164-2.329-8.164-5.193 S7.457,9.22,11.959,9.22s8.164,2.329,8.164,5.193S16.46,19.606,11.959,19.606z M20.636,13.001c-0.326-0.89-0.948-1.701-1.797-2.384 c0.248-0.186,0.55-0.301,0.883-0.301c0.827,0,1.5,0.673,1.5,1.5C21.223,12.299,20.992,12.727,20.636,13.001z M8.996,14.704 c-0.76,0-1.397-0.616-1.397-1.376c0-0.76,0.637-1.397,1.397-1.397c0.76,0,1.376,0.637,1.376,1.397 C10.372,14.088,9.756,14.704,8.996,14.704z M16.401,13.328c0,0.76-0.616,1.376-1.376,1.376c-0.76,0-1.399-0.616-1.399-1.376 c0-0.76,0.639-1.397,1.399-1.397C15.785,11.931,16.401,12.568,16.401,13.328z M15.229,16.708c0.152,0.152,0.152,0.398,0,0.55 c-0.674,0.674-1.727,1.002-3.219,1.002c-0.004,0-0.007-0.002-0.011-0.002c-0.004,0-0.007,0.002-0.011,0.002 c-1.492,0-2.544-0.328-3.218-1.002c-0.152-0.152-0.152-0.398,0-0.55c0.152-0.152,0.399-0.151,0.55,0 c0.521,0.521,1.394,0.775,2.669,0.775c0.004,0,0.007,0.002,0.011,0.002c0.004,0,0.007-0.002,0.011-0.002 c1.275,0,2.148-0.253,2.669-0.775C14.831,16.556,15.078,16.556,15.229,16.708z"}))}},{name:"skype",attributes:{service:"skype"},title:"Skype",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"}))}},{name:"snapchat",attributes:{service:"snapchat"},title:"Snapchat",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"}))}},{name:"soundcloud",attributes:{service:"soundcloud"},title:"SoundCloud",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M8.9,16.1L9,14L8.9,9.5c0-0.1,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.1c0,0-0.1,0.1-0.1,0.1L8.3,14l0.1,2.1 c0,0.1,0,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1C8.8,16.3,8.9,16.3,8.9,16.1z M11.4,15.9l0.1-1.8L11.4,9c0-0.1,0-0.2-0.1-0.2 c0,0-0.1,0-0.1,0s-0.1,0-0.1,0c-0.1,0-0.1,0.1-0.1,0.2l0,0.1l-0.1,5c0,0,0,0.7,0.1,2v0c0,0.1,0,0.1,0.1,0.1c0.1,0.1,0.1,0.1,0.2,0.1 c0.1,0,0.1,0,0.2-0.1c0.1,0,0.1-0.1,0.1-0.2L11.4,15.9z M2.4,12.9L2.5,14l-0.2,1.1c0,0.1,0,0.1-0.1,0.1c0,0-0.1,0-0.1-0.1L2.1,14 l0.1-1.1C2.2,12.9,2.3,12.9,2.4,12.9C2.3,12.9,2.4,12.9,2.4,12.9z M3.1,12.2L3.3,14l-0.2,1.8c0,0.1,0,0.1-0.1,0.1 c-0.1,0-0.1,0-0.1-0.1L2.8,14L3,12.2C3,12.2,3,12.2,3.1,12.2C3.1,12.2,3.1,12.2,3.1,12.2z M3.9,11.9L4.1,14l-0.2,2.1 c0,0.1,0,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L3.5,14l0.2-2.1c0-0.1,0-0.1,0.1-0.1C3.9,11.8,3.9,11.8,3.9,11.9z M4.7,11.9L4.9,14 l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L4.3,14l0.2-2.2c0-0.1,0-0.1,0.1-0.1C4.7,11.7,4.7,11.8,4.7,11.9z M5.6,12 l0.2,2l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c0,0-0.1,0-0.1,0c0,0,0-0.1,0-0.1L5.1,14l0.2-2c0,0,0-0.1,0-0.1s0.1,0,0.1,0 C5.5,11.9,5.5,11.9,5.6,12L5.6,12z M6.4,10.7L6.6,14l-0.2,2.1c0,0,0,0.1,0,0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1-0.1-0.2-0.2L5.9,14 l0.2-3.3c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0C6.4,10.7,6.4,10.7,6.4,10.7z M7.2,10l0.2,4.1l-0.2,2.1c0,0,0,0.1,0,0.1 c0,0-0.1,0-0.1,0c-0.1,0-0.2-0.1-0.2-0.2l-0.1-2.1L6.8,10c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0S7.2,9.9,7.2,10z M8,9.6L8.2,14 L8,16.1c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2L7.5,14l0.1-4.4c0-0.1,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0.1,0,0.1,0,0.1,0.1 C8,9.6,8,9.6,8,9.6z M11.4,16.1L11.4,16.1L11.4,16.1z M9.7,9.6L9.8,14l-0.1,2.1c0,0.1,0,0.1-0.1,0.2s-0.1,0.1-0.2,0.1 c-0.1,0-0.1,0-0.1-0.1s-0.1-0.1-0.1-0.2L9.2,14l0.1-4.4c0-0.1,0-0.1,0.1-0.2s0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S9.7,9.5,9.7,9.6 L9.7,9.6z M10.6,9.8l0.1,4.3l-0.1,2c0,0.1,0,0.1-0.1,0.2c0,0-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c0,0-0.1-0.1-0.1-0.2L10,14 l0.1-4.3c0-0.1,0-0.1,0.1-0.2c0,0,0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S10.6,9.7,10.6,9.8z M12.4,14l-0.1,2c0,0.1,0,0.1-0.1,0.2 c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2l-0.1-1l-0.1-1l0.1-5.5v0c0-0.1,0-0.2,0.1-0.2 c0.1,0,0.1-0.1,0.2-0.1c0,0,0.1,0,0.1,0c0.1,0,0.1,0.1,0.1,0.2L12.4,14z M22.1,13.9c0,0.7-0.2,1.3-0.7,1.7c-0.5,0.5-1.1,0.7-1.7,0.7 h-6.8c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2V8.2c0-0.1,0.1-0.2,0.2-0.3c0.5-0.2,1-0.3,1.6-0.3c1.1,0,2.1,0.4,2.9,1.1 c0.8,0.8,1.3,1.7,1.4,2.8c0.3-0.1,0.6-0.2,1-0.2c0.7,0,1.3,0.2,1.7,0.7C21.8,12.6,22.1,13.2,22.1,13.9L22.1,13.9z"}))}},{name:"spotify",attributes:{service:"spotify"},title:"Spotify",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"}))}},{name:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z"}))}},{name:"twitch",attributes:{service:"twitch"},title:"Twitch",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"}))}},{name:"twitter",attributes:{service:"twitter"},title:"Twitter",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"}))}},{name:"vimeo",attributes:{service:"vimeo"},title:"Vimeo",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"}))}},{name:"vk",attributes:{service:"vk"},title:"VK",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"}))}},{name:"yelp",attributes:{service:"yelp"},title:"Yelp",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"}))}},{name:"youtube",attributes:{service:"youtube"},title:"YouTube",icon:function(){return Object(Ce.createElement)(xe.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Ce.createElement)(xe.Path,{d:"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"}))}}],am=function(e){var t,n,r=e.attributes,o=e.setAttributes,c=e.isSelected,a=r.url,i=r.service,l=r.label,s=Ve(Object(Ce.useState)(!1),2),u=s[0],b=s[1],m=Te()("wp-social-link","wp-social-link-"+i,{"wp-social-link__is-incomplete":!a}),d=(t=i,(n=Object(ke.find)(cm,{name:t}))?n.icon:om),p=function(e){var t=Object(ke.find)(cm,{name:e});return t?t.title:Object(Ee.__)("Social Icon")}(i),g=Object(_e.useBlockProps)({className:m});return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.sprintf)(
/* translators: %s: name of the social service. */
Object(Ee.__)("%s label"),p),initialOpen:!1},Object(Ce.createElement)(He.PanelRow,null,Object(Ce.createElement)(He.TextControl,{label:Object(Ee.__)("Link label"),help:Object(Ee.__)("Briefly describe the link to help screen reader users."),value:l,onChange:function(e){return o({label:e})}})))),Object(Ce.createElement)("li",g,Object(Ce.createElement)(He.Button,{onClick:function(){return b(!0)}},Object(Ce.createElement)(d,null),c&&u&&Object(Ce.createElement)(_e.URLPopover,{onClose:function(){return b(!1)}},Object(Ce.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:function(e){e.preventDefault(),b(!1)}},Object(Ce.createElement)("div",{className:"block-editor-url-input"},Object(Ce.createElement)(_e.URLInput,{value:a,onChange:function(e){return o({url:e})},placeholder:Object(Ee.__)("Enter address"),disableSuggestions:!0})),Object(Ce.createElement)(He.Button,{icon:rm.a,label:Object(Ee.__)("Apply"),type:"submit"}))))))},im={apiVersion:2,name:"core/social-link",category:"widgets",parent:["core/social-links"],attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"}},usesContext:["openInNewTab"],supports:{reusable:!1,html:!1}},lm=im.name,sm={title:Object(Ee.__)("Social Icon"),icon:Qb,edit:am,description:Object(Ee.__)("Display an icon linking to a social media profile or website."),variations:cm},um=Object(Ce.createElement)(He.SVG,{width:"24",height:"24",viewBox:"0 0 24 24"},Object(Ce.createElement)(He.Path,{d:"M11 6C8.71429 6 7.19048 6.61538 7 6.92308V14L8.71429 12.7692C9.57143 12.1538 11.2857 12.1538 12.4286 12.7692C13.5714 13.3846 14.7143 13.6923 16.4286 13.3846C17.5559 13.1823 18.619 11.9487 19 11.2308C18.9048 11.2308 18.4857 11.1692 17.5714 10.9231C16.6571 10.6769 15.3723 9.2674 15.1818 8.85714C14.5152 7.72894 13.2857 6 11 6Z",fill:"black",stroke:"black",strokeWidth:"1.5"}),Object(Ce.createElement)("line",{x1:"6.75",y1:"5.75",x2:"6.75",y2:"19.25",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round"})),bm=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Ce.createElement)(xe.Path,{d:"M12 4h3c.6 0 1 .4 1 1v1H3V5c0-.6.5-1 1-1h3c.2-1.1 1.3-2 2.5-2s2.3.9 2.5 2zM8 4h3c-.2-.6-.9-1-1.5-1S8.2 3.4 8 4zM4 7h11l-.9 10.1c0 .5-.5.9-1 .9H5.9c-.5 0-.9-.4-1-.9L4 7z"}));function mm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var dm=["image"],pm=function(e){var t=e.alt,n=e.attributes,r=n.align,o=n.width,c=n.height,a=e.containerRef,i=e.isSelected,l=e.setAttributes,s=e.logoUrl,u=e.siteUrl,b=ht(a,[r]),m=Object(et.useViewportMatch)("medium"),d=!Object(ke.includes)(["wide","full"],r)&&m,p=Ve(Object(Ce.useState)({}),2),g=p[0],f=g.naturalWidth,h=g.naturalHeight,v=p[1],O=Object(Le.useDispatch)("core/block-editor").toggleSelection,j=Te()({"is-transient":Object(Xe.isBlobURL)(s)}),y=Object(Le.useSelect)((function(e){var t=e("core/block-editor").getSettings;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mm(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({title:e("core").getEditedEntityRecord("root","site").title},Object(ke.pick)(t(),["imageSizes","isRTL","maxWidth"]))})),_=y.maxWidth,w=y.isRTL,k=y.title;var E,C=Object(Ce.createElement)("a",{href:u,className:j,rel:"home",title:k,onClick:function(e){return e.preventDefault()}},Object(Ce.createElement)("span",{className:"custom-logo-link"},Object(Ce.createElement)("img",{className:"custom-logo",src:s,alt:t,onLoad:function(e){v(Object(ke.pick)(e.target,["naturalWidth","naturalHeight"]))}})));b&&f&&h&&(E=f>b?b:f);if(!d||!E)return Object(Ce.createElement)("div",{style:{width:o,height:c}},C);var x=o||E,S=f/h,P=x/S,T=f<h?20:20*S,B=h<f?20:20/S,z=2.5*_,N=!1,I=!1;return"center"===r?(N=!0,I=!0):w?"left"===r?N=!0:I=!0:"right"===r?I=!0:N=!0,Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Site Logo Settings")},Object(Ce.createElement)(He.RangeControl,{label:Object(Ee.__)("Image width"),onChange:function(e){return l({width:e})},min:T,max:z,initialPosition:Math.min(f,z),value:o||"",disabled:!d}))),Object(Ce.createElement)(He.ResizableBox,{size:{width:o,height:c},showHandle:i,minWidth:T,maxWidth:z,minHeight:B,maxHeight:z/S,lockAspectRatio:!0,enable:{top:!1,right:N,bottom:!0,left:I},onResizeStart:function(){O(!1)},onResizeStop:function(e,t,n,r){O(!0),l({width:parseInt(x+r.width,10),height:parseInt(P+r.height,10)})}},C))};var gm={apiVersion:2,name:"core/site-logo",category:"layout",attributes:{align:{type:"string"},width:{type:"number"}},supports:{html:!1}},fm=gm.name,hm={title:Object(Ee.__)("Site Logo"),description:Object(Ee.__)("Show a site logo"),icon:um,supports:{align:!0,alignWide:!1},edit:function(e){var t=e.attributes,n=e.className,r=e.setAttributes,o=e.isSelected,c=t.width,a=Ve(Object(Ce.useState)(),2),i=a[0],l=a[1],s=Ve(Object(Ce.useState)(),2),u=s[0],b=s[1],m=Object(Ce.useRef)(),d=Object(Le.useSelect)((function(e){var t=e("core").getEditedEntityRecord("root","site"),n=e("core").getEntityRecord("root","media",t.sitelogo);return{mediaItemData:n&&{url:n.source_url,alt:n.alt_text},sitelogo:t.sitelogo,url:t.url}}),[]),p=d.mediaItemData,g=d.sitelogo,f=d.url,h=Object(Le.useDispatch)("core").editEntityRecord,v=function(e){return h("root","site",void 0,{sitelogo:e})},O=null;p&&(O=p.alt,i!==p.url&&l(p.url));var j,y=function(e){if(e)return!e.id&&e.url?(v(""),b(),void l(e.url)):void v(e.id.toString())},_=function(e){b(e[2]?e[2]:null)},w=Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(He.ToolbarGroup,null,i&&Object(Ce.createElement)(_e.MediaReplaceFlow,{mediaURL:i,allowedTypes:dm,accept:"image/*",onSelect:y,onError:_}),!!i&&Object(Ce.createElement)(He.ToolbarButton,{icon:bm,onClick:function(){return v(""),void l("")},label:Object(Ee.__)("Delete Site Logo")}))),k=Object(Ee.__)("Site Logo");void 0===g&&(j=Object(Ce.createElement)(He.Spinner,null)),i&&(j=Object(Ce.createElement)(pm,{alt:O,attributes:t,className:n,containerRef:m,isSelected:o,setAttributes:r,logoUrl:i,siteUrl:f}));var E=Object(Ce.createElement)(_e.MediaPlaceholder,{icon:Object(Ce.createElement)(_e.BlockIcon,{icon:um}),labels:{title:k,instructions:Object(Ee.__)("Upload an image, or pick one from your media library, to be your site logo")},onSelect:y,accept:"image/*",allowedTypes:dm,mediaPreview:j,notices:u&&Object(Ce.createElement)(He.Notice,{status:"error",isDismissible:!1},u),onError:_}),C=Te()(n,{"is-resized":!!c,"is-focused":o}),x=!!i,S=Object(_e.useBlockProps)({ref:m,className:C,key:x});return Object(Ce.createElement)("div",S,w,i&&j,!i&&E)}};var vm=Object(Ce.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},Object(Ce.createElement)(He.Path,{fill:"none",d:"M0 0h24v24H0z"}),Object(Ce.createElement)(He.Path,{d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"})),Om={apiVersion:2,name:"core/site-tagline",category:"design",attributes:{textAlign:{type:"string"}},supports:{html:!1,color:{gradients:!0},fontSize:!0,lineHeight:!0}},jm=Om.name,ym={title:Object(Ee.__)("Site Tagline"),description:Object(Ee.__)("In a few words, what this site is about."),keywords:[Object(Ee.__)("description")],icon:vm,edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.textAlign,o=Ve(Object(ye.useEntityProp)("root","site","description"),2),c=o[0],a=o[1],i=Object(_e.useBlockProps)({className:Te()(je({},"has-text-align-".concat(r),r))});return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.AlignmentToolbar,{onChange:function(e){return n({textAlign:e})},value:r})),Object(Ce.createElement)(_e.RichText,Ae({allowedFormats:[],onChange:a,placeholder:Object(Ee.__)("Site Tagline"),tagName:"p",value:c},i)))}};function _m(e){var t=e.level,n=e.isPressed,r=void 0!==n&&n;if(0===t)return Se;return Object(Ce.createElement)(He.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:r},Object(Ce.createElement)(He.Path,{d:{1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"}[t]}))}function wm(e){var t=e.level,n=e.onChange;return Object(Ce.createElement)(He.ToolbarGroup,{isCollapsed:!0,icon:Object(Ce.createElement)(_m,{level:t}),controls:[1,2,3,4,5,6,0].map((function(e){var r=e===t;return{icon:Object(Ce.createElement)(_m,{level:e,isPressed:r}),title:0===e?Object(Ee.__)("Paragraph"):// translators: %s: heading level e.g: "1", "2", "3"
Object(Ee.sprintf)(Object(Ee.__)("Heading %d"),e),isActive:r,onClick:function(){return n(e)}}})),label:Object(Ee.__)("Change heading level")})}var km={apiVersion:2,name:"core/site-title",category:"design",attributes:{level:{type:"number",default:1},textAlign:{type:"string"}},supports:{html:!1,color:{gradients:!0},fontSize:!0,lineHeight:!0}},Em=km.name,Cm={title:Object(Ee.__)("Site Title"),description:Object(Ee.__)("Displays and allows editing the name of the site. The site title usually appears in the browser title bar, in search results, and more. Also available in Settings > General."),icon:qi,edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.level,o=t.textAlign,c=Ve(Object(ye.useEntityProp)("root","site","title"),2),a=c[0],i=c[1],l=0===r?"p":"h".concat(r),s=Object(_e.useBlockProps)({className:Te()(je({},"has-text-align-".concat(o),o))});return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.AlignmentToolbar,{value:o,onChange:function(e){n({textAlign:e})}}),Object(Ce.createElement)(wm,{level:r,onChange:function(e){return n({level:e})}})),Object(Ce.createElement)(_e.RichText,Ae({tagName:l,placeholder:Object(Ee.__)("Site Title"),value:a,onChange:i,allowedFormats:[],disableLineBreaks:!0},s)))}},xm=n(215),Sm=n(189);function Pm(e){var t=e.postId,n=e.setAttributes,r=Ve(Object(ye.useEntityProp)("postType","wp_template_part","title",t),2),o=r[0],c=r[1],a=Ve(Object(ye.useEntityProp)("postType","wp_template_part","slug",t),2),i=a[0],l=a[1],s=Ve(Object(ye.useEntityProp)("postType","wp_template_part","status",t),2),u=s[0],b=s[1];return Object(Ce.createElement)("div",{className:"wp-block-template-part__name-panel"},Object(Ce.createElement)(He.TextControl,{label:Object(Ee.__)("Name"),value:o||i,onChange:function(e){c(e);var r=Object(tt.cleanForSlug)(e);l(r),"publish"!==u&&b("publish"),n({slug:r,postId:t})},onFocus:function(e){return e.target.select()}}))}function Tm(e){var t=e.postId,n=e.hasInnerBlocks,r=Ve(Object(ye.useEntityBlockEditor)("postType","wp_template_part",{id:t}),3),o=r[0],c=r[1],a=r[2],i=Object(_e.__experimentalUseInnerBlocksProps)({},{value:o,onInput:c,onChange:a,renderAppender:n?void 0:_e.InnerBlocks.ButtonBlockAppender});return Object(Ce.createElement)("div",i)}var Bm=n(156),zm=n(111),Nm=n(50),Im=n(110);function Mm(){return Object(Ce.createElement)("div",{className:"wp-block-template-part__selection-preview-item is-placeholder",tabIndex:0})}function Rm(e){var t=e.templatePart,n=e.setAttributes,r=e.onClose,o=e.composite,c=t.id,a=t.slug,i=t.meta.theme,l=t.content.raw||"",s=Object(Ce.useMemo)((function(){return Object(we.parse)(l)}),[l]),u=Object(Le.useDispatch)("core/notices").createSuccessNotice,b=Object(Ce.useCallback)((function(){n({postId:c,slug:a,theme:i}),u(Object(Ee.sprintf)(
/* translators: %s: template part title. */
Object(Ee.__)('Template Part "%s" inserted.'),a),{type:"snackbar"}),r()}),[c,a,i]);return Object(Ce.createElement)(zm.a,Ae({className:"wp-block-template-part__selection-preview-item",role:"listitem",onClick:b,onKeyDown:function(e){gn.ENTER!==e.keyCode&&gn.SPACE!==e.keyCode||b()},tabIndex:0,"aria-label":t.slug},o),Object(Ce.createElement)(_e.BlockPreview,{blocks:s}),Object(Ce.createElement)("div",{className:"wp-block-template-part__selection-preview-item-title"},t.slug))}function Am(e){var t=e.title,n=e.icon,r=e.children;return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)("div",{className:"wp-block-template-part__selection-panel-group-header"},Object(Ce.createElement)("span",{className:"wp-block-template-part__selection-panel-group-title"},t),Object(Ce.createElement)(He.Icon,{icon:n})),Object(Ce.createElement)("div",{className:"wp-block-template-part__selection-panel-group-content"},r))}function Vm(e){var t=e.templateParts,n=e.setAttributes,r=e.onClose,o=e.composite,c=Object(Ce.useMemo)((function(){return Object.values(Object(ke.groupBy)(t,"meta.theme"))}),[t]),a=Object(et.useAsyncList)(t);return c.map((function(e){return Object(Ce.createElement)(Am,{key:e[0].meta.theme,title:e[0].meta.theme},e.map((function(e){return a.includes(e)?Object(Ce.createElement)(Rm,{key:e.id,templatePart:e,setAttributes:n,onClose:r,composite:o}):Object(Ce.createElement)(Mm,{key:e.id})})))}))}function Hm(e){var t=e.templateParts,n=e.setAttributes,r=e.filterValue,o=e.onClose,c=e.composite,a=Object(Ce.useMemo)((function(){var e=Object(ke.deburr)(r).toLowerCase(),n=t.filter((function(t){var n=t.slug,r=t.meta.theme;return n.toLowerCase().includes(e)||Object(ke.deburr)(r).toLowerCase().includes(e)}));return n.sort((function(t,n){var r=t.slug.toLowerCase().indexOf(e),o=n.slug.toLowerCase().indexOf(e);return-1!==r&&-1!==o?r-o:-1!==r?-1:-1!==o?1:Object(ke.deburr)(t.meta.theme).toLowerCase().indexOf(e)-Object(ke.deburr)(n.meta.theme).toLowerCase().indexOf(e)})),n}),[r,t]),i=Object(et.useAsyncList)(a);return a.map((function(e){return Object(Ce.createElement)(Am,{key:e.id,title:e.meta.theme},i.includes(e)?Object(Ce.createElement)(Rm,{key:e.id,templatePart:e,setAttributes:n,onClose:o,composite:c}):Object(Ce.createElement)(Mm,{key:e.id}))}))}function Lm(e){var t=e.setAttributes,n=e.filterValue,r=e.onClose,o=Object(Nm.g)(),c=Object(Le.useSelect)((function(e){var t,n=e("core").getEntityRecords("postType","wp_template_part",{status:["publish"],per_page:-1}),r=null===(t=e("core").getCurrentTheme())||void 0===t?void 0:t.stylesheet,o=e("core").getEntityRecords("postType","wp_template_part",{theme:r,status:["publish","auto-draft"],per_page:-1}),c=[];return n&&c.push.apply(c,Oe(n)),o&&c.push.apply(c,Oe(o)),Object(ke.uniq)(c)}),[]);return c&&c.length?n?Object(Ce.createElement)(Im.a,Ae({},o,{role:"list","aria-label":Object(Ee.__)("List of template parts")}),Object(Ce.createElement)(Hm,{templateParts:c,setAttributes:t,filterValue:n,onClose:r,composite:o})):Object(Ce.createElement)(Im.a,Ae({},o,{role:"list","aria-label":Object(Ee.__)("List of template parts")}),Object(Ce.createElement)(Vm,{templateParts:c,setAttributes:t,onClose:r,composite:o})):null}var Dm=function(e){[gn.LEFT,gn.DOWN,gn.RIGHT,gn.UP,gn.BACKSPACE,gn.ENTER].includes(e.keyCode)&&e.stopPropagation()},Fm=function(e){return e.stopPropagation()};function Gm(e){var t=e.setAttributes,n=e.onClose,r=Ve(Object(Ce.useState)(""),2),o=r[0],c=r[1];return Object(Ce.createElement)("div",{onKeyPress:Fm,onKeyDown:Dm},Object(Ce.createElement)(_e.__experimentalSearchForm,{value:o,onChange:c,className:"wp-block-template-part__selection-preview-search-form"}),Object(Ce.createElement)("div",{className:"wp-block-template-part__selection-preview-container"},Object(Ce.createElement)(Lm,{setAttributes:t,filterValue:o,onClose:n})))}function Um(e){var t=e.setAttributes,n=Object(Le.useDispatch)("core").saveEntityRecord,r=Object(Ce.useCallback)(Yi(Ji.a.mark((function e(){var r,o,c;return Ji.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="Untitled Template Part",o=Object(tt.cleanForSlug)(r),e.next=4,n("postType","wp_template_part",{title:r,status:"publish",slug:o,meta:{theme:"custom"}});case 4:c=e.sent,t({postId:c.id,slug:c.slug,theme:c.meta.theme});case 6:case"end":return e.stop()}}),e)}))),[t]);return Object(Ce.createElement)(He.Placeholder,{icon:Bm.a,label:Object(Ee.__)("Template Part"),instructions:Object(Ee.__)("Create a new template part or pick an existing one from the list.")},Object(Ce.createElement)(He.Dropdown,{contentClassName:"wp-block-template-part__placeholder-preview-dropdown-content",position:"bottom right left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(He.Button,{isPrimary:!0,onClick:n,"aria-expanded":t},Object(Ee.__)("Choose existing")),Object(Ce.createElement)(He.Button,{isTertiary:!0,onClick:r},Object(Ee.__)("New template part")))},renderContent:function(e){var n=e.onClose;return Object(Ce.createElement)(Gm,{setAttributes:t,onClose:n})}}))}var qm={apiVersion:2,name:"core/template-part",category:"design",attributes:{postId:{type:"number"},slug:{type:"string"},theme:{type:"string"},tagName:{type:"string",default:"div"}},supports:{align:!0,html:!1,color:{gradients:!0,link:!0}}},Wm=qm.name,Zm={title:Object(Ee.__)("Template Part"),keywords:[Object(Ee.__)("template part")],__experimentalLabel:function(e){var t=e.slug;return Object(ke.startCase)(t)},edit:function(e){var t=e.attributes,n=t.postId,r=t.slug,o=t.theme,c=t.tagName,a=void 0===c?"div":c,i=e.setAttributes,l=e.clientId,s=Object(Ce.useRef)(n),u=Object(Ce.useRef)(r),b=Object(Ce.useRef)(o),m=function(e,t,n){return Object(Le.useSelect)((function(r){if(e)return r("core").getEntityRecord("postType","wp_template_part",e)&&e;if(t&&n){var o=Object(tt.cleanForSlug)(t),c=r("core").getEntityRecords("postType","wp_template_part",{status:["publish","auto-draft"],slug:o,theme:n}),a=null==c?void 0:c.filter((function(e){return e.slug===o&&e.meta&&e.meta.theme===n})),i=(null==a?void 0:a.find((function(e){return"publish"===e.status})))||(null==a?void 0:a.find((function(e){return"auto-draft"===e.status})));return null==i?void 0:i.id}}),[e,t,n])}(n,r,o),d=Object(Le.useSelect)((function(e){return{innerBlocks:(0,e("core/block-editor").getBlocks)(l)}}),[l]).innerBlocks,p=Object(Le.useDispatch)("core").editEntityRecord,g=Object(Ce.useRef)(0);Object(Ce.useEffect)((function(){g.current<4&&g.current++,3!==g.current||void 0!==s.current&&null!==s.current||null==m||(i({postId:m}),p("postType","wp_template_part",m,{status:"publish"}))}),[d]);var f=Object(_e.useBlockProps)(),h=!!m,v=!m&&!u.current&&!b.current,O=!v&&!m;return Object(Ce.createElement)(a,f,v&&Object(Ce.createElement)(Um,{setAttributes:i}),h&&Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(He.ToolbarGroup,{className:"wp-block-template-part__block-control-group"},Object(Ce.createElement)(Pm,{postId:m,setAttributes:i}),Object(Ce.createElement)(He.Dropdown,{className:"wp-block-template-part__preview-dropdown-button",contentClassName:"wp-block-template-part__preview-dropdown-content",position:"bottom right left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(Ce.createElement)(He.ToolbarButton,{"aria-expanded":t,icon:t?xm.a:Sm.a,label:Object(Ee.__)("Choose another"),onClick:n,disabled:t})},renderContent:function(e){var t=e.onClose;return Object(Ce.createElement)(Gm,{setAttributes:i,onClose:t})}}))),h&&Object(Ce.createElement)(Tm,{postId:m,hasInnerBlocks:d.length>0}),O&&Object(Ce.createElement)(He.Spinner,null))}};function Km(e){var t=e.query,n=e.setQuery;return Object(Ce.createElement)(He.ToolbarGroup,null,Object(Ce.createElement)(He.Dropdown,{contentClassName:"block-library-query-toolbar__popover",renderToggle:function(e){var t=e.onToggle;return Object(Ce.createElement)(He.ToolbarButton,{icon:pl,label:Object(Ee.__)("Query"),onClick:t})},renderContent:function(){return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(He.BaseControl,null,Object(Ce.createElement)(He.__experimentalNumberControl,{__unstableInputWidth:"60px",label:Object(Ee.__)("Items per Page"),labelPosition:"edge",min:1,max:100,onChange:function(e){var t;return n({perPage:null!==(t=+e)&&void 0!==t?t:-1})},step:"1",value:t.perPage,isDragEnabled:!1})),Object(Ce.createElement)(He.BaseControl,null,Object(Ce.createElement)(He.__experimentalNumberControl,{__unstableInputWidth:"60px",label:Object(Ee.__)("Offset"),labelPosition:"edge",min:0,max:100,onChange:function(e){return n({offset:+e})},step:"1",value:t.offset,isDragEnabled:!1})),Object(Ce.createElement)(He.BaseControl,null,Object(Ce.createElement)(He.RangeControl,{label:Object(Ee.__)("Number of Pages"),min:1,allowReset:!0,value:t.pages,onChange:function(e){return n({pages:null!=e?e:-1})}})))}}))}function $m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$m(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qm=Object(Ce.createContext)();function Ym(e){var t=e.children,n=Ve(Object(Ce.useState)({page:1}),2),r=n[0],o=n[1];return Object(Ce.createElement)(Qm.Provider,{value:Object(Ce.useMemo)((function(){return[r,function(e){return o((function(t){return Jm(Jm({},t),e)}))}]}),[r])},t)}function Xm(){return Object(Ce.useContext)(Qm)}function ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var td=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ed(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({terms:e},null==e?void 0:e.reduce((function(e,t){var n=e.mapById,r=e.mapByName,o=e.names;return n[t.id]=t,r[t.name]=t,o.push(t.name),e}),{mapById:{},mapByName:{},names:[]}))};function nd(e){var t,n,r=e.query,o=e.setQuery,c=r.order,a=r.orderBy,i=r.author,l=r.postType,s=Ve(Object(Ce.useState)(!0),2),u=s[0],b=s[1],m=Ve(Object(Ce.useState)(!0),2),d=m[0],p=m[1],g=Object(Le.useSelect)((function(e){var t,n=e("core"),r=n.getEntityRecords,o=n.getPostTypes,c={per_page:100},a=r("taxonomy","category",c),i=r("taxonomy","post_tag",c),l=["attachment"],s=null===(t=o())||void 0===t?void 0:t.filter((function(e){var t=e.viewable,n=e.slug;return t&&!l.includes(n)}));return{categories:td(a),tags:td(i),authorList:r("root","user",{per_page:-1}),postTypes:s}}),[]),f=g.authorList,h=g.categories,v=g.tags,O=g.postTypes,j=Object(Ce.useMemo)((function(){if(null==O?void 0:O.length)return O.reduce((function(e,t){return e[t.slug]=t.taxonomies,e}),{})}),[O]);Object(Ce.useEffect)((function(){if(j){var e=j[l];b(e.includes("category")),p(e.includes("post_tag"))}}),[l,j]);var y=Object(Ce.useMemo)((function(){return(O||[]).map((function(e){var t=e.labels,n=e.slug;return{label:t.singular_name,value:n}}))}),[O]),_=function(e,t){return function(n){var r=n.reduce((function(t,n){var r,o=(null==n?void 0:n.id)||(null===(r=e.mapByName[n])||void 0===r?void 0:r.id);return o&&t.push(o),t}),[]);o(je({},t,r))}},w=_(h,"categoryIds"),k=_(v,"tagIds"),E=Ve(Object(Ce.useState)(r.search),2),C=E[0],x=E[1],S=Object(Ce.useCallback)(Object(ke.debounce)((function(){return o({search:C})}),250),[C]);return Object(Ce.useEffect)((function(){return S(),S.cancel}),[C,S]),Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Filtering and Sorting")},Object(Ce.createElement)(He.SelectControl,{options:y,value:l,label:Object(Ee.__)("Post Type"),onChange:function(e){var t={postType:e};j[e].includes("category")||(t.categoryIds=[]),j[e].includes("post_tag")||(t.tagIds=[]),o(t)}}),u&&(null==h||null===(t=h.terms)||void 0===t?void 0:t.length)>0&&Object(Ce.createElement)(He.FormTokenField,{label:Object(Ee.__)("Categories"),value:(r.categoryIds||[]).map((function(e){return{id:e,value:h.mapById[e].name}})),suggestions:h.names,onChange:w}),d&&(null==v||null===(n=v.terms)||void 0===n?void 0:n.length)>0&&Object(Ce.createElement)(He.FormTokenField,{label:Object(Ee.__)("Tags"),value:(r.tagIds||[]).map((function(e){return{id:e,value:v.mapById[e].name}})),suggestions:v.names,onChange:k}),Object(Ce.createElement)(He.QueryControls,Ae({order:c,orderBy:a,selectedAuthorId:i,authorList:f},{onOrderChange:function(e){return o({order:e})},onOrderByChange:function(e){return o({orderBy:e})},onAuthorChange:function(e){return o({author:""!==e?+e:void 0})}})),Object(Ce.createElement)(He.TextControl,{label:Object(Ee.__)("Search"),value:C,onChange:x})))}function rd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function od(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rd(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cd=[["core/query-loop"]];var ad={apiVersion:2,name:"core/query",category:"design",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:1,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[]}}},providesContext:{queryId:"queryId",query:"query"},usesContext:["postId"],supports:{html:!1}},id=ad.name,ld={title:Object(Ee.__)("Query"),edit:function e(t){var n=t.attributes,r=n.queryId,o=n.query,c=t.context.postId,a=t.setAttributes,i=Object(et.useInstanceId)(e),l=Object(_e.useBlockProps)(),s=Object(Le.useSelect)((function(e){return{postsPerPage:+(0,e("core/block-editor").getSettings)().postsPerPage||3}}),[]).postsPerPage;Object(Ce.useEffect)((function(){var e,t={};c&&!(null===(e=o.exclude)||void 0===e?void 0:e.length)&&(t.exclude=[c]),!o.perPage&&s&&(t.perPage=s),Object.keys(t).length&&u(t)}),[o.perPage,o.exclude,c]),Object(Ce.useEffect)((function(){r||a({queryId:i})}),[r,i]);var u=function(e){return a({query:od(od({},o),e)})};return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(nd,{query:o,setQuery:u}),Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(Km,{query:o,setQuery:u})),Object(Ce.createElement)("div",l,Object(Ce.createElement)(Ym,null,Object(Ce.createElement)(_e.InnerBlocks,{template:cd,templateInsertUpdatesSelection:!1}))))},save:function(){return Object(Ce.createElement)(_e.InnerBlocks.Content,null)}},sd=Object(Ce.createElement)(xe.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Ce.createElement)(xe.Path,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"})),ud=[["core/post-title"],["core/post-date"],["core/post-excerpt"]];var bd={apiVersion:2,name:"core/query-loop",category:"design",usesContext:["queryId","query","queryContext"],supports:{reusable:!1,html:!1}},md=bd.name,dd={title:Object(Ee.__)("Query Loop"),icon:sd,edit:function(e){var t=e.clientId,n=e.context,r=n.query,o=(r=void 0===r?{}:r).perPage,c=r.offset,a=r.categoryIds,i=r.postType,l=r.tagIds,s=void 0===l?[]:l,u=r.order,b=r.orderBy,m=r.author,d=r.search,p=r.exclude,g=n.queryContext,f=Ve(Xm()||g||[{}],1)[0].page,h=Ve(Object(Ce.useState)(),2),v=h[0],O=h[1],j=Object(Le.useSelect)((function(e){var n=e("core").getEntityRecords,r=e("core/block-editor").getBlocks,l={offset:o?o*(f-1)+c:0,categories:a,tags:s,order:u,orderby:b};return o&&(l.per_page=o),m&&(l.author=m),d&&(l.search=d),(null==p?void 0:p.length)&&(l.exclude=p),{posts:n("postType",i,l),blocks:r(t)}}),[o,f,c,a,s,u,b,t,m,d,i,p]),y=j.posts,_=j.blocks,w=Object(Ce.useMemo)((function(){return null==y?void 0:y.map((function(e){return{postType:e.type,postId:e.id}}))}),[y]),k=Object(_e.useBlockProps)();return y?y.length?Object(Ce.createElement)("div",k,w&&w.map((function(e){return Object(Ce.createElement)(_e.BlockContextProvider,{key:e.postId,value:e},e===(v||w[0])?Object(Ce.createElement)(_e.InnerBlocks,{template:ud,templateInsertUpdatesSelection:!1}):Object(Ce.createElement)(_e.BlockPreview,{blocks:_,__experimentalLive:!0,__experimentalOnClick:function(){return O(e)}}))}))):Object(Ce.createElement)("p",k," ",Object(Ee.__)("No results found.")):Object(Ce.createElement)("p",k,Object(Ee.__)("Loading…"))},save:function(){return Object(Ce.createElement)(_e.InnerBlocks.Content,null)}};var pd={apiVersion:2,name:"core/query-pagination",category:"design",usesContext:["queryId","query","queryContext"],supports:{reusable:!1,html:!1}},gd=pd.name,fd={title:Object(Ee.__)("Query Pagination"),edit:function(e){var t,n,r=e.context,o=r.query.pages,c=void 0===o?1:o,a=r.queryContext,i=Ve(Xm()||a,2),l=i[0].page,s=i[1];return l>1&&(t=Object(Ce.createElement)(He.Button,{isPrimary:!0,icon:ir.a,onClick:function(){return s({page:l-1})}},Object(Ee.__)("Previous"))),l<c&&(n=Object(Ce.createElement)(He.Button,{isPrimary:!0,icon:lr.a,onClick:function(){return s({page:l+1})}},Object(Ee.__)("Next"))),Object(Ce.createElement)("div",Object(_e.useBlockProps)(),t||n?Object(Ce.createElement)(He.ButtonGroup,null,t,n):Object(Ee.__)("No pages to paginate."))}};var hd={apiVersion:2,name:"core/post-title",category:"design",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{html:!1,color:{gradients:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:{"core/post-title/h1":"h1","core/post-title/h2":"h2","core/post-title/h3":"h3","core/post-title/h4":"h4","core/post-title/h5":"h5","core/post-title/h6":"h6"}}},vd=hd.name,Od={title:Object(Ee.__)("Post Title"),description:Object(Ee.__)("Add the title of your post."),icon:Wi,edit:function(e){var t=e.attributes,n=t.level,r=t.textAlign,o=t.isLink,c=t.rel,a=t.linkTarget,i=e.setAttributes,l=e.context,s=l.postType,u=l.postId,b=0===n?"p":"h"+n,m=Object(Le.useSelect)((function(e){return e("core").getEditedEntityRecord("postType",s,u)}),[s,u]),d=Object(_e.useBlockProps)({className:Te()(je({},"has-text-align-".concat(r),r))});if(!m)return null;var p=m.title||Object(Ee.__)("Post Title");return o&&(p=Object(Ce.createElement)("a",{href:m.link,target:a,rel:c},p)),Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(He.ToolbarGroup,null,Object(Ce.createElement)(On,{selectedLevel:n,onChange:function(e){return i({level:e})}})),Object(Ce.createElement)(_e.AlignmentToolbar,{value:r,onChange:function(e){i({textAlign:e})}})),Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Link settings")},Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Make title a link"),onChange:function(){return i({isLink:!o})},checked:o}),o&&Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Open in new tab"),onChange:function(e){return i({linkTarget:e?"_blank":"_self"})},checked:"_blank"===a}),Object(Ce.createElement)(He.TextControl,{label:Object(Ee.__)("Link rel"),value:c,onChange:function(e){return i({rel:e})}})))),Object(Ce.createElement)(b,d,p))}},jd=Object(Ce.createElement)(xe.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"}));function yd(e){var t=e.postType,n=e.postId,r=Ve(Object(ye.useEntityBlockEditor)("postType",t,{id:n}),3),o=r[0],c=r[1],a=r[2];return Object(Ce.createElement)(_e.InnerBlocks,{value:o,onInput:c,onChange:a})}var _d={apiVersion:2,name:"core/post-content",category:"design",usesContext:["postId","postType"],supports:{align:["wide","full"],html:!1}},wd=_d.name,kd={title:Object(Ee.__)("Post Content"),icon:jd,edit:function(e){var t=e.context,n=t.postId,r=t.postType,o=Object(Le.useSelect)((function(e){var t;return null!==(t=e("core/editor").getCurrentPost())&&void 0!==t?t:{}})),c=o.id,a=o.type,i=Object(_e.useBlockProps)();return n&&r&&n!==c&&r!==a?Object(Ce.createElement)("div",i,Object(Ce.createElement)(yd,{postType:r,postId:n})):Object(Ce.createElement)("div",i,Object(Ce.createElement)("div",{className:"wp-block-post-content__placeholder"},Object(Ce.createElement)("span",null,Object(Ee.__)("This is a placeholder for post content."))))}};var Ed=function(e){var t=e.isSelected,n=e.context,r=e.attributes,o=e.setAttributes,c=n.postType,a=n.postId,i=Object(Le.useSelect)((function(e){var t,n=e("core"),r=n.getEditedEntityRecord,o=n.getUser,i=n.getUsers,l=null===(t=r("postType",c,a))||void 0===t?void 0:t.author;return{authorId:l,authorDetails:l?o(l):null,authors:i({who:"authors"})}}),[c,a]),l=i.authorId,s=i.authorDetails,u=i.authors,b=Object(Le.useDispatch)("core").editEntityRecord,m=r.textAlign,d=r.showAvatar,p=r.showBio,g=r.byline,f=[];s&&Object(ke.forEach)(s.avatar_urls,(function(e,t){f.push({value:t,label:"".concat(t," x ").concat(t)})}));var h=Object(_e.useBlockProps)({className:Te()(je({},"has-text-align-".concat(m),m))});return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Author Settings")},Object(Ce.createElement)(He.SelectControl,{label:Object(Ee.__)("Author"),value:l,options:u.map((function(e){return{value:e.id,label:e.name}})),onChange:function(e){b("postType",c,a,{author:e})}}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Show avatar"),checked:d,onChange:function(){return o({showAvatar:!d})}}),d&&Object(Ce.createElement)(He.SelectControl,{label:Object(Ee.__)("Avatar size"),value:r.avatarSize,options:f,onChange:function(e){o({avatarSize:Number(e)})}}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Show bio"),checked:p,onChange:function(){return o({showBio:!p})}}))),Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.AlignmentToolbar,{value:m,onChange:function(e){o({textAlign:e})}})),Object(Ce.createElement)("div",h,d&&s&&Object(Ce.createElement)("div",{className:"wp-block-post-author__avatar"},Object(Ce.createElement)("img",{width:r.avatarSize,src:s.avatar_urls[r.avatarSize],alt:s.name})),Object(Ce.createElement)("div",{className:"wp-block-post-author__content"},(!_e.RichText.isEmpty(g)||t)&&Object(Ce.createElement)(_e.RichText,{className:"wp-block-post-author__byline",multiline:!1,placeholder:Object(Ee.__)("Write byline …"),value:g,onChange:function(e){return o({byline:e})}}),Object(Ce.createElement)("p",{className:"wp-block-post-author__name"},(null==s?void 0:s.name)||Object(Ee.__)("Post Author")),p&&Object(Ce.createElement)("p",{className:"wp-block-post-author__bio"},null==s?void 0:s.description))))},Cd=Object(Ce.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(He.Path,{d:"M5.8 11c0-.7.6-1.2 1.2-1.2h4c.7 0 1.2.6 1.2 1.2v1h1.5v-1c0-1.5-1.2-2.8-2.8-2.8H7c-1.5 0-2.8 1.2-2.8 2.8v1h1.5v-1zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zM9 7c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})),xd={apiVersion:2,name:"core/post-author",category:"design",attributes:{textAlign:{type:"string"},avatarSize:{type:"number",default:48},showAvatar:{type:"boolean",default:!0},showBio:{type:"boolean"},byline:{type:"string"}},usesContext:["postType","postId"],supports:{html:!1,fontSize:!0,color:{gradients:!0,link:!0},lineHeight:!0}},Sd=xd.name,Pd={title:Object(Ee.__)("Post Author"),description:Object(Ee.__)("Add the author of this post."),icon:Cd,edit:Ed},Td=["core/post-comment-content","core/post-comment-author"];var Bd={apiVersion:2,name:"core/post-comment",category:"design",attributes:{commentId:{type:"number"}},providesContext:{commentId:"commentId"},supports:{html:!1}},zd=Bd.name,Nd={title:Object(Ee.__)("Post Comment"),description:Object(Ee.__)("Post Comment"),icon:ul,edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.commentId,o=Ve(Object(Ce.useState)(r),2),c=o[0],a=o[1],i=Object(_e.useBlockProps)();return r?Object(Ce.createElement)("div",i,Object(Ce.createElement)(_e.InnerBlocks,{allowedBlocks:Td})):Object(Ce.createElement)("div",i,Object(Ce.createElement)(He.Placeholder,{icon:Bm.a,label:Object(Ee.__)("Post Comment"),instructions:Object(Ee.__)("Input post comment ID")},Object(Ce.createElement)(He.TextControl,{value:r,onChange:function(e){return a(parseInt(e))}}),Object(Ce.createElement)(He.Button,{isPrimary:!0,onClick:function(){n({commentId:c})}},Object(Ee.__)("Save"))))},save:function(){return Object(Ce.createElement)("div",_e.useBlockProps.save(),Object(Ce.createElement)(_e.InnerBlocks.Content,null))}};var Id=Object(Ce.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(He.Path,{d:"M5.8 11c0-.7.6-1.2 1.2-1.2h4c.7 0 1.2.6 1.2 1.2v1h1.5v-1c0-1.5-1.2-2.8-2.8-2.8H7c-1.5 0-2.8 1.2-2.8 2.8v1h1.5v-1zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zM9 7c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})),Md={apiVersion:2,name:"core/post-comment-author",category:"design",usesContext:["commentId"],supports:{html:!1}},Rd=Md.name,Ad={title:Object(Ee.__)("Post Comment Author"),description:Object(Ee.__)("Post Comment Author"),icon:Id,edit:function(e){var t=e.attributes,n=e.context,r=t.className,o=n.commentId,c=Object(Le.useSelect)((function(e){var t=e("core").getEntityRecord,n=t("root","comment",o),r=null==n?void 0:n.author_name;if(n&&!r){var c,a=t("root","user",n.author);return null!==(c=null==a?void 0:a.name)&&void 0!==c?c:Object(Ee.__)("Anonymous")}return null!=r?r:""}));return Object(Ce.createElement)("div",Object(_e.useBlockProps)(),Object(Ce.createElement)("p",{className:r},c))},parent:["core/post-comment"]};var Vd={apiVersion:2,name:"core/post-comment-content",category:"design",usesContext:["commentId"],supports:{html:!1}},Hd=Vd.name,Ld={title:Object(Ee.__)("Post Comment Content"),description:Object(Ee.__)("Post Comment Content"),icon:jd,edit:function(e){var t=e.attributes,n=e.context,r=t.className,o=n.commentId,c=Ve(Object(ye.useEntityProp)("root","comment","content",o),1)[0];return Object(Ce.createElement)("div",Object(_e.useBlockProps)(),Object(Ce.createElement)("p",{className:r},c))},parent:["core/post-comment"]},Dd=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),Object(Ce.createElement)(xe.Path,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"}));var Fd={apiVersion:2,name:"core/post-comment-date",category:"design",attributes:{format:{type:"string"}},usesContext:["commentId"],supports:{html:!1}},Gd=Fd.name,Ud={title:Object(Ee.__)("Post Comment Date"),description:Object(Ee.__)("Post Comment Date"),icon:Dd,edit:function(e){var t=e.attributes,n=e.context,r=e.setAttributes,o=t.className,c=t.format,a=n.commentId,i=Object(vl.__experimentalGetSettings)(),l=Ve(Object(ye.useEntityProp)("root","site","date_format"),1)[0],s=Ve(Object(ye.useEntityProp)("root","comment","date",a),1)[0],u=Object.values(i.formats).map((function(e){return{key:e,name:Object(vl.dateI18n)(e,s)}})),b=c||l||i.formats.date,m=Object(_e.useBlockProps)({className:o});return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Format settings")},Object(Ce.createElement)(He.CustomSelectControl,{hideLabelFromVision:!0,label:Object(Ee.__)("Date Format"),options:u,onChange:function(e){var t=e.selectedItem;return r({format:t.key})},value:u.find((function(e){return e.key===b}))}))),Object(Ce.createElement)("div",m,Object(Ce.createElement)("time",{dateTime:Object(vl.dateI18n)("c",s)},Object(vl.dateI18n)(b,s))))},parent:["core/post-comment"]},qd=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"}));function Wd(e){var t=e.postId;return Object(Le.useSelect)((function(e){var n=e("core").getEntityRecords("root","comment",{post:t});return n&&n.length?n.map((function(e){return Object(Ce.createElement)(Ce.RawHTML,{className:"wp-block-post-comments__comment",key:e.id},e.content.rendered)})):Object(Ee.__)("No comments.")}),[t])}var Zd={apiVersion:2,name:"core/post-comments",category:"design",attributes:{textAlign:{type:"string"}},usesContext:["postId","postType"],supports:{html:!1,align:["wide","full"],fontSize:!0,color:{gradients:!0,link:!0},lineHeight:!0}},Kd=Zd.name,$d={title:Object(Ee.__)("Post Comments"),description:Object(Ee.__)("Display a post's comments."),icon:qd,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.context,o=r.postType,c=r.postId,a=t.textAlign,i=Object(_e.useBlockProps)({className:Te()(je({},"has-text-align-".concat(a),a))});return o&&c?Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.AlignmentToolbar,{value:a,onChange:function(e){n({textAlign:e})}})),Object(Ce.createElement)("div",i,Object(Ce.createElement)(Wd,{postId:c}))):Object(Ce.createElement)(_e.Warning,null,Object(Ee.__)("Post comments block: no post found."))}},Jd=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-2.2 6.6H7l1.6-2.2c.3-.4.5-.7.6-.9.1-.2.2-.4.2-.5 0-.2-.1-.3-.1-.4-.1-.1-.2-.1-.4-.1s-.4 0-.6.1c-.3.1-.5.3-.7.4l-.2.2-.2-1.2.1-.1c.3-.2.5-.3.8-.4.3-.1.6-.1.9-.1.3 0 .6.1.9.2.2.1.4.3.6.5.1.2.2.5.2.7 0 .3-.1.6-.2.9-.1.3-.4.7-.7 1.1l-.5.6h1.6v1.2z"}));var Qd={apiVersion:2,name:"core/post-comments-count",category:"design",attributes:{textAlign:{type:"string"}},usesContext:["postId"],supports:{html:!1,color:{gradients:!0},fontSize:!0,lineHeight:!0}},Yd=Qd.name,Xd={title:Object(Ee.__)("Post Comments Count"),description:Object(Ee.__)("Display a post's comments count."),icon:Jd,edit:function(e){var t=e.attributes,n=e.context,r=e.setAttributes,o=t.textAlign,c=n.postId,a=Ve(Object(Ce.useState)(),2),i=a[0],l=a[1],s=Object(_e.useBlockProps)({className:Te()(je({},"has-text-align-".concat(o),o))});return Object(Ce.useEffect)((function(){if(c){var e=c;Dt()({path:Object(tt.addQueryArgs)("/wp/v2/comments",{post:c}),parse:!1}).then((function(t){e===c&&l(t.headers.get("X-WP-Total"))}))}}),[c]),Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.AlignmentToolbar,{value:o,onChange:function(e){r({textAlign:e})}})),Object(Ce.createElement)("div",s,c&&void 0!==i?i:Object(Ce.createElement)(_e.Warning,null,Object(Ee.__)("Post Comments Count block: post not found."))))}},ep=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-.5 6.6H6.7l-1.2 1.2v-6.3h7v5.1z"}));var tp={apiVersion:2,name:"core/post-comments-form",category:"design",attributes:{textAlign:{type:"string"}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0,link:!0},fontSize:!0,lineHeight:!0}},np=tp.name,rp={title:Object(Ee.__)("Post Comments Form"),description:Object(Ee.__)("Display a post's comments form."),icon:ep,edit:function(e){var t=e.attributes,n=e.context,r=e.setAttributes,o=t.textAlign,c=n.postId,a=n.postType,i=Ve(Object(ye.useEntityProp)("postType",a,"comment_status",c),1)[0],l=Object(_e.useBlockProps)({className:Te()(je({},"has-text-align-".concat(o),o))});return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.AlignmentToolbar,{value:o,onChange:function(e){r({textAlign:e})}})),Object(Ce.createElement)("div",l,!i&&Object(Ce.createElement)(_e.Warning,null,Object(Ee.__)("Post Comments Form block: comments are not enabled for this post type.")),"open"!==i&&Object(Ce.createElement)(_e.Warning,null,Object(Ee.__)("Post Comments Form block: comments to this post are not allowed.")),"open"===i&&Object(Ee.__)("Post Comments Form")))}};var op={apiVersion:2,name:"core/post-date",category:"design",attributes:{textAlign:{type:"string"},format:{type:"string"}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0},fontSize:!0,lineHeight:!0}},cp=op.name,ap={title:Object(Ee.__)("Post Date"),description:Object(Ee.__)("Add the date of this post."),icon:Dd,edit:function(e){var t=e.attributes,n=e.context,r=e.setAttributes,o=t.textAlign,c=t.format,a=n.postId,i=n.postType,l=Ve(Object(ye.useEntityProp)("root","site","date_format"),1)[0],s=Ve(Object(ye.useEntityProp)("postType",i,"date",a),2),u=s[0],b=s[1],m=Ve(Object(Ce.useState)(!1),2),d=m[0],p=m[1],g=Object(vl.__experimentalGetSettings)(),f=/a(?!\\)/i.test(g.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join("")),h=Object.values(g.formats).map((function(e){return{key:e,name:Object(vl.dateI18n)(e,u)}})),v=c||l||g.formats.date,O=Object(_e.useBlockProps)({className:Te()(je({},"has-text-align-".concat(o),o))});return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.AlignmentToolbar,{value:o,onChange:function(e){r({textAlign:e})}}),u&&Object(Ce.createElement)(He.ToolbarGroup,null,Object(Ce.createElement)(He.ToolbarButton,{icon:sr.a,title:Object(Ee.__)("Change Date"),onClick:function(){return p((function(e){return!e}))}}))),Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Format settings")},Object(Ce.createElement)(He.CustomSelectControl,{hideLabelFromVision:!0,label:Object(Ee.__)("Date Format"),options:h,onChange:function(e){var t=e.selectedItem;return r({format:t.key})},value:h.find((function(e){return e.key===v}))}))),Object(Ce.createElement)("div",O,u&&Object(Ce.createElement)("time",{dateTime:Object(vl.dateI18n)("c",u)},Object(vl.dateI18n)(v,u),d&&Object(Ce.createElement)(He.Popover,{onClose:p.bind(null,!1)},Object(Ce.createElement)(He.DateTimePicker,{currentDate:u,onChange:b,is12Hour:f}))),!u&&Object(Ee.__)("No Date")))}},ip=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M12.75 9.333c0 .521-.102.977-.327 1.354-.23.386-.555.628-.893.774-.545.234-1.183.227-1.544.222l-.12-.001v-1.5h.123c.414.001.715.002.948-.099a.395.395 0 00.199-.166c.05-.083.114-.253.114-.584V7.2H8.8V4h3.95v5.333zM7.95 9.333c0 .521-.102.977-.327 1.354-.23.386-.555.628-.893.774-.545.234-1.183.227-1.544.222l-.12-.001v-1.5h.123c.414.001.715.002.948-.099a.394.394 0 00.198-.166c.05-.083.115-.253.115-.584V7.2H4V4h3.95v5.333zM13 20H4v-1.5h9V20zM20 16H4v-1.5h16V16z"}));function lp(e){var t=e.attributes,n=t.textAlign,r=t.wordCount,o=t.moreText,c=t.showMoreOnNewLine,a=e.setAttributes,i=e.isSelected,l=e.context,s=l.postId,u=l.postType,b=Ve(Object(ye.useEntityProp)("postType",u,"excerpt",s),2),m=b[0],d=b[1],p=function(e,t,n){var r=Ve(Object(ye.useEntityProp)("postType",n,"content",t),3)[2],o=null==r?void 0:r.raw;return Object(Ce.useMemo)((function(){if(!o)return"";var t=document.createElement("div");return t.innerHTML=o,(t.textContent||t.innerText||"").trim().split(" ",e).join(" ")}),[o,e])}(r,s,u),g=Object(_e.useBlockProps)({className:Te()(je({},"has-text-align-".concat(n),n))});return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.AlignmentToolbar,{value:n,onChange:function(e){return a({textAlign:e})}})),Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Post Excerpt Settings")},!m&&Object(Ce.createElement)(He.RangeControl,{label:Object(Ee.__)("Max words"),value:r,onChange:function(e){return a({wordCount:e})},min:10,max:100}),Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.__)("Show link on new line"),checked:c,onChange:function(e){return a({showMoreOnNewLine:e})}}))),Object(Ce.createElement)("div",g,Object(Ce.createElement)(_e.RichText,{className:!c&&"wp-block-post-excerpt__excerpt is-inline",placeholder:p,value:m||(i?"":p||Object(Ee.__)("No post excerpt found")),onChange:d,keepPlaceholderOnFocus:!0}),!c&&" ",c?Object(Ce.createElement)("p",{className:"wp-block-post-excerpt__more-text"},Object(Ce.createElement)(_e.RichText,{tagName:"a",placeholder:Object(Ee.__)("Read more…"),value:o,onChange:function(e){return a({moreText:e})}})):Object(Ce.createElement)(_e.RichText,{tagName:"a",placeholder:Object(Ee.__)("Read more…"),value:o,onChange:function(e){return a({moreText:e})}})))}var sp={apiVersion:2,name:"core/post-excerpt",category:"design",attributes:{textAlign:{type:"string"},wordCount:{type:"number",default:55},moreText:{type:"string"},showMoreOnNewLine:{type:"boolean",default:!0}},usesContext:["postId","postType"],supports:{html:!1,fontSize:!0,color:{gradients:!0,link:!0},lineHeight:!0}},up=sp.name,bp={title:Object(Ee.__)("Post Excerpt"),description:Object(Ee.__)("Display a post's excerpt."),icon:ip,edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.isSelected,o=e.context;return o.postType&&o.postId?Object(Ce.createElement)(lp,{attributes:t,setAttributes:n,isSelected:r,context:o}):Object(Ce.createElement)(_e.Warning,null,Object(Ee.__)("Post excerpt block: no post found."))}},mp=Object(Ce.createElement)(xe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Ce.createElement)(xe.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})),dp=Object(Ce.createElement)("div",{className:"post-featured-image_placeholder"},Object(Ce.createElement)(He.Icon,{icon:mp}),Object(Ce.createElement)("p",null," ",Object(Ee.__)("Featured Image")));function pp(e){var t=e.attributes.isLink,n=e.setAttributes,r=e.context,o=r.postId,c=r.postType,a=Ve(Object(ye.useEntityProp)("postType",c,"featured_media",o),1)[0],i=Object(Le.useSelect)((function(e){return a&&e("core").getMedia(a)}),[a]),l=i?Object(Ce.createElement)("img",{src:i.source_url,alt:i.alt_text||Object(Ee.__)("No alternative text set")}):dp;return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.InspectorControls,null,Object(Ce.createElement)(He.PanelBody,{title:Object(Ee.__)("Link settings")},Object(Ce.createElement)(He.ToggleControl,{label:Object(Ee.sprintf)(// translators: %s: Name of the post type e.g: "post".
Object(Ee.__)("Link to %s"),c),onChange:function(){return n({isLink:!t})},checked:t}))),Object(Ce.createElement)("div",Object(_e.useBlockProps)(),l))}var gp={apiVersion:2,name:"core/post-featured-image",category:"design",attributes:{isLink:{type:"boolean",default:!1}},usesContext:["postId","postType"],supports:{html:!1}},fp=gp.name,hp={title:Object(Ee.__)("Post Featured Image"),description:Object(Ee.__)("Display a post's featured image."),icon:mp,edit:function(e){var t;return(null===(t=e.context)||void 0===t?void 0:t.postId)?Object(Ce.createElement)(pp,e):dp}};var vp=[{name:"category",title:Object(Ee.__)("Post Categories"),icon:"category",is_default:!0,attributes:{term:"category"}}],Op={apiVersion:2,name:"core/post-hierarchical-terms",category:"design",attributes:{term:{type:"string"},textAlign:{type:"string"}},usesContext:["postId","postType"],supports:{html:!1,fontSize:!0,color:{gradients:!0,link:!0},lineHeight:!0}},jp=Op.name,yp={title:Object(Ee.__)("Post Hierarchical Terms"),variations:vp,edit:function(e){var t,n,r=e.attributes,o=e.clientId,c=e.context,a=e.name,i=e.setAttributes,l=r.term,s=r.textAlign,u=c.postId,b=c.postType,m=Object(Le.useSelect)((function(e){var t=e("core/blocks"),n=t.getBlockVariations,r=t.getBlockType,o=t.getDefaultBlockVariation;return{blockType:r(a),defaultVariation:o(a,"block"),variations:n(a,"block")}}),[o,a]),d=m.blockType,p=m.defaultVariation,g=m.variations,f=Object(Le.useSelect)((function(e){if(!l)return{};var t=e("core").getTaxonomies({per_page:-1});return Object(ke.find)(t,(function(e){return e.slug===l&&e.hierarchical&&e.visibility.show_ui}))||{}}),[l]),h=function(e){var t=e.postId,n=e.postType,r=e.term,o=r.rest_base,c=r.slug,a=Ve(Object(ye.useEntityProp)("postType",n,o,t),1)[0],i=Object(Le.useSelect)((function(e){var t=e("core").getEntityRecord,n=!0;return{hierarchicalTermLinks:Object(ke.map)(a,(function(e){var r=t("taxonomy",c,e);return r?Object(Ce.createElement)("a",{key:e,href:r.link},r.name):n=!1})),isLoadingHierarchicalTermLinks:!n}}),[a]);return{hierarchicalTermLinks:i.hierarchicalTermLinks,isLoadingHierarchicalTermLinks:i.isLoadingHierarchicalTermLinks}}({postId:u,postType:b,term:f}),v=h.hierarchicalTermLinks,O=h.isLoadingHierarchicalTermLinks,j=u&&b,y=v&&v.length>0,_=Object(_e.useBlockProps)({className:Te()(je({},"has-text-align-".concat(s),s))});return j?l?Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.AlignmentToolbar,{value:s,onChange:function(e){i({textAlign:e})}})),Object(Ce.createElement)("div",_,O&&Object(Ce.createElement)(He.Spinner,null),y&&!O&&v.reduce((function(e,t){return[e," | ",t]})),!O&&!y&&((null==f||null===(t=f.labels)||void 0===t?void 0:t.no_terms)||Object(Ee.__)("Term items not found.")))):Object(Ce.createElement)("div",_,Object(Ce.createElement)(_e.__experimentalBlockVariationPicker,{icon:null==d||null===(n=d.icon)||void 0===n?void 0:n.src,label:null==d?void 0:d.title,onSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;i(e.attributes)},variations:g})):Object(Ce.createElement)("div",_,Object(Ce.createElement)(_e.Warning,null,Object(Ee.__)("Post Hierarchical Terms block: post not found.")))}};var _p={apiVersion:2,name:"core/post-tags",category:"design",attributes:{textAlign:{type:"string"}},usesContext:["postId","postType"],supports:{html:!1,fontSize:!0,color:{gradients:!0,link:!0},lineHeight:!0}},kp=_p.name,Ep={title:Object(Ee.__)("Post Tags"),description:Object(Ee.__)("Display a post's tags."),icon:Ki,edit:function(e){var t=e.context,n=e.attributes,r=e.setAttributes,o=n.textAlign,c=Ve(Object(ye.useEntityProp)("postType",t.postType,"tags",t.postId),1)[0],a=Object(Le.useSelect)((function(e){var t=e("core").getEntityRecord,n=!0,r=null==c?void 0:c.map((function(e){var r=t("taxonomy","post_tag",e);return r?Object(Ce.createElement)("a",{key:e,href:r.link},r.name):n=!1}));return n&&r}),[c]),i=a&&(0===a.length?Object(Ee.__)("No tags."):a.reduce((function(e,t){return[e," | ",t]})));t.postType&&t.postId?"post"!==t.postType&&(i=Object(Ce.createElement)(_e.Warning,null,Object(Ee.__)("Post tags block: Tags are not available for this post type."))):i=Object(Ce.createElement)(_e.Warning,null,Object(Ee.__)("Post tags block: No post found for this block."));var l=Object(_e.useBlockProps)({className:Te()(je({},"has-text-align-".concat(o),o))});return Object(Ce.createElement)(Ce.Fragment,null,Object(Ce.createElement)(_e.BlockControls,null,Object(Ce.createElement)(_e.AlignmentToolbar,{value:o,onChange:function(e){r({textAlign:e})}})),Object(Ce.createElement)("div",l,i))}},Cp=function(e){if(e){var t=e.metadata,n=e.settings,r=e.name;t&&Object(we.unstable__bootstrapServerSideBlockDefinitions)(je({},r,t)),Object(we.registerBlockType)(r,n)}},xp=function(){return[r,o,c,i,x,a,V,l,s,u,b,m,d,p,g,f,h,v,O,R,window.wp&&window.wp.oldEditor?W:null,j,y,E,C,S,P,T,B,z,I,M,A,N,Z,K,H,L,D,q,F,G,U]},Sp=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xp();e.forEach(Cp),Object(we.setDefaultBlockName)(Ke),window.wp&&window.wp.oldEditor&&Object(we.setFreeformContentHandlerName)($b),Object(we.setUnregisteredTypeHandlerName)(Jl),Object(we.setGroupingBlockName)(ru)},Pp=function(e){var t=e.__experimentalEnableFullSiteEditing;[w,k].concat(Oe(t?[$,J,Q,Y,X,ee,te,ne,re,oe,ce,ae,ie,le,se,ue,be,me,de,pe,ge,fe]:[])).forEach(Cp)}},41:function(e,t){!function(){e.exports=this.wp.blob}()},42:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(8),o=n(57);function c(e,t){Object(r.useDebugValue)(e);var n=Object(r.useContext)(o.a);return null!=n[e]?n[e]:t}var a=n(38);var i=n(46);function l(e){var t,n,o,l=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),s=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Options";Object(r.useDebugValue)(o);var i=c(o);return i?Object(a.a)(Object(a.a)({},t),i(t,n)):t}(e.name,t,n)),e.compose)for(var o,i=Object(a.c)(l);!(o=i()).done;){t=o.value.__useOptions(t,n)}return t},u=function(t,n,o){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===o&&(o=!1),o||(t=s(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Props";Object(r.useDebugValue)(o);var a=c(o);return a?a(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var i,u=Object(a.c)(l);!(i=u()).done;){n=(0,i.value)(t,n,!0)}var b={},m=n||{};for(var d in m)void 0!==m[d]&&(b[d]=m[d]);return b};u.__useOptions=s;var b=l.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return u.__keys=[].concat(b,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),u.unstable_propsAreEqual=e.propsAreEqual||(null===(n=l[0])||void 0===n?void 0:n.unstable_propsAreEqual)||i.a,u}},43:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(8),o=n(38),c=n(72);function a(e,t){for(var n={},r={},o=0,c=Object.keys(e);o<c.length;o++){var a=c[o];t.indexOf(a)>=0?n[a]=e[a]:r[a]=e[a]}return[n,r]}var i=n(46);function l(e){var t,n=e.as,l=e.useHook,s=e.memo,u=e.propsAreEqual,b=void 0===u?null==l?void 0:l.unstable_propsAreEqual:u,m=e.keys,d=void 0===m?(null==l?void 0:l.__keys)||[]:m,p=e.useCreateElement,g=void 0===p?c.a:p,f=function(e,t){var r=e.as,c=void 0===r?n:r,i=Object(o.b)(e,["as"]);if(l){var s,u=a(i,d),b=u[0],m=u[1],p=l(b,Object(o.a)({ref:t},m)),f=p.wrapElement,h=Object(o.b)(p,["wrapElement"]),v=(null===(s=c.render)||void 0===s?void 0:s.__keys)||c.__keys,O=v&&a(i,v)[0],j=O?Object(o.a)(Object(o.a)({},h),O):h,y=g(c,j);return f?f(y):y}return g(c,Object(o.a)({ref:t},i))};return t=f,f=Object(r.forwardRef)(t),s&&(f=function(e,t){return Object(r.memo)(e,t)}(f,b)),f.__keys=d,f.unstable_propsAreEqual=b||i.a,f}},45:function(e,t,n){"use strict";function r(e){return e?e.ownerDocument||e:window.document}n.d(t,"a",(function(){return r}))},46:function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var c=0,a=n;c<a.length;c++){var i=a[c];if(e[i]!==t[i])return!1}return!0}n.d(t,"a",(function(){return r}))},47:function(e,t){!function(){e.exports=this.moment}()},49:function(e,t,n){"use strict";function r(e){return e.target===e.currentTarget}n.d(t,"a",(function(){return r}))},5:function(e,t){!function(){e.exports=this.wp.blockEditor}()},50:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return O})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return x}));var r=n(11),o=n(8),c=n(52),a=n(54),i=n(55),l=n(58);function s(e){return e.slice().reverse()}function u(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function b(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&u(t.ref.current,e.ref.current)}))}function m(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function d(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function p(e){for(var t,n=[[]],o=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},c=Object(r.c)(e);!(t=c()).done;)o();return n}function g(e){for(var t,n=0,o=Object(r.c)(e);!(t=o()).done;){var c=t.value.length;c>n&&(n=c)}return n}function f(e){for(var t=p(e),n=g(t),o=[],c=0;c<n;c+=1)for(var a,i=Object(r.c)(t);!(a=i()).done;){var l=a.value;l[c]&&o.push(Object(r.b)(Object(r.b)({},l[c]),{},{groupId:l[c].groupId?""+c:void 0}))}return o}function h(e){for(var t,n=[],o=Object(r.c)(e);!(t=o()).done;){var c=t.value;n.push.apply(n,c)}return n}function v(e){for(var t,n=g(e),o=Object(r.c)(e);!(t=o()).done;){var c=t.value;if(c.length<n)for(var a=0;a<n;a+=1)c[a]||(c[a]={id:"__EMPTY_ITEM__",disabled:!0,ref:{current:null},groupId:c[a-1].groupId})}return e}function O(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=m(e.items||[]))||void 0===n?void 0:n.id}var j={id:null,ref:{current:null}};function y(e,t){return e.filter((function(e){return e.groupId===t}))}var _={horizontal:"vertical",vertical:"horizontal"};function w(e,t,n){return n in e?[].concat(e.slice(0,n),[t],e.slice(n)):[].concat(e,[t])}function k(e){var t=e.slice(),n=!1;return t.sort((function(e,t){var r=e.ref.current,o=t.ref.current;return r&&o&&u(r,o)?(n=!0,-1):0})),n?t:e}function E(e,t){var n=e.unstable_virtual,o=e.rtl,c=e.orientation,a=e.items,l=e.groups,u=e.currentId,g=e.loop,C=e.wrap,x=e.pastIds,S=e.unstable_moves,P=e.initialVirtual,T=e.initialRTL,B=e.initialOrientation,z=e.initialCurrentId,N=e.initialLoop,I=e.initialWrap,M=e.hasSetCurrentId;switch(t.type){case"registerGroup":var R=t.group;if(0===l.length)return Object(r.b)(Object(r.b)({},e),{},{groups:[R]});var A=b(l,R);return Object(r.b)(Object(r.b)({},e),{},{groups:w(l,R,A)});case"unregisterGroup":var V=t.id,H=l.filter((function(e){return e.id!==V}));return H.length===l.length?e:Object(r.b)(Object(r.b)({},e),{},{groups:H});case"registerItem":var L,D=t.item,F=l.find((function(e){var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(D.ref.current)})),G=Object(r.b)({groupId:null==F?void 0:F.id},D),U=b(a,G),q=Object(r.b)(Object(r.b)({},e),{},{items:w(a,G,U)});return M||S||void 0!==z?q:Object(r.b)(Object(r.b)({},q),{},{currentId:null===(L=m(q.items))||void 0===L?void 0:L.id});case"unregisterItem":var W=t.id,Z=a.filter((function(e){return e.id!==W}));if(Z.length===a.length)return e;var K=x.filter((function(e){return e!==W})),$=Object(r.b)(Object(r.b)({},e),{},{pastIds:K,items:Z});if(u&&u===W){var J=O(Object(r.b)(Object(r.b)({},$),{},{currentId:K[0]}));return Object(r.b)(Object(r.b)({},$),{},{currentId:J})}return $;case"move":var Q=t.id;if(void 0===Q)return e;var Y=x.filter((function(e){return e!==u&&e!==Q})),X=u?[u].concat(Y):Y,ee=Object(r.b)(Object(r.b)({},e),{},{pastIds:X});if(null===Q)return Object(r.b)(Object(r.b)({},ee),{},{unstable_moves:S+1,currentId:O(ee,Q)});var te=d(a,Q);return Object(r.b)(Object(r.b)({},ee),{},{unstable_moves:te?S+1:S,currentId:O(ee,null==te?void 0:te.id)});case"next":if(null==u)return E(e,Object(r.b)(Object(r.b)({},t),{},{type:"first"}));var ne=o&&"vertical"!==c,re=ne?s(a):a,oe=re.find((function(e){return e.id===u}));if(!oe)return E(e,Object(r.b)(Object(r.b)({},t),{},{type:"first"}));var ce=!!oe.groupId,ae=re.indexOf(oe),ie=re.slice(ae+1),le=y(ie,oe.groupId);if(t.allTheWay){var se=m(ne?y(re,oe.groupId):s(le));return E(e,Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null==se?void 0:se.id}))}var ue=function(e){return e&&_[e]}(ce?c||"horizontal":c),be=g&&g!==ue,me=ce&&C&&C!==ue,de=t.hasNullItem||!ce&&be&&null===z;if(be){var pe=m(function(e,t,n){var r=e.findIndex((function(e){return e.id===t}));return[].concat(e.slice(r+1),n?[j]:[],e.slice(0,r))}(me&&!de?re:y(re,oe.groupId),u,de),u);return E(e,Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null==pe?void 0:pe.id}))}if(me){var ge=m(de?le:ie,u),fe=de?(null==ge?void 0:ge.id)||null:null==ge?void 0:ge.id;return E(e,Object(r.b)(Object(r.b)({},t),{},{type:"move",id:fe}))}var he=m(le,u);return E(e,!he&&de?Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null}):Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null==he?void 0:he.id}));case"previous":var ve=!!!l.length&&null===z,Oe=E(Object(r.b)(Object(r.b)({},e),{},{items:s(a)}),Object(r.b)(Object(r.b)({},t),{},{type:"next",hasNullItem:ve}));return Object(r.b)(Object(r.b)({},Oe),{},{items:a});case"down":var je=f(h(v(p(a)))),ye=g&&"horizontal"!==g&&null===z,_e=E(Object(r.b)(Object(r.b)({},e),{},{orientation:"vertical",items:je}),Object(r.b)(Object(r.b)({},t),{},{type:"next",hasNullItem:ye}));return Object(r.b)(Object(r.b)({},_e),{},{orientation:c,items:a});case"up":var we=f(s(h(v(p(a))))),ke=null===z,Ee=E(Object(r.b)(Object(r.b)({},e),{},{orientation:"vertical",items:we}),Object(r.b)(Object(r.b)({},t),{},{type:"next",hasNullItem:ke}));return Object(r.b)(Object(r.b)({},Ee),{},{orientation:c,items:a});case"first":var Ce=m(a);return E(e,Object(r.b)(Object(r.b)({},t),{},{type:"move",id:null==Ce?void 0:Ce.id}));case"last":var xe=E(Object(r.b)(Object(r.b)({},e),{},{items:s(a)}),Object(r.b)(Object(r.b)({},t),{},{type:"first"}));return Object(r.b)(Object(r.b)({},xe),{},{items:a});case"sort":return Object(r.b)(Object(r.b)({},e),{},{items:k(a),groups:k(l)});case"setVirtual":return Object(r.b)(Object(r.b)({},e),{},{unstable_virtual:Object(i.a)(t.virtual,n)});case"setRTL":return Object(r.b)(Object(r.b)({},e),{},{rtl:Object(i.a)(t.rtl,o)});case"setOrientation":return Object(r.b)(Object(r.b)({},e),{},{orientation:Object(i.a)(t.orientation,c)});case"setCurrentId":var Se=O(Object(r.b)(Object(r.b)({},e),{},{currentId:Object(i.a)(t.currentId,u)}));return Object(r.b)(Object(r.b)({},e),{},{currentId:Se,hasSetCurrentId:!0});case"setLoop":return Object(r.b)(Object(r.b)({},e),{},{loop:Object(i.a)(t.loop,g)});case"setWrap":return Object(r.b)(Object(r.b)({},e),{},{wrap:Object(i.a)(t.wrap,C)});case"reset":return Object(r.b)(Object(r.b)({},e),{},{unstable_virtual:P,rtl:T,orientation:B,currentId:O(Object(r.b)(Object(r.b)({},e),{},{currentId:z})),loop:N,wrap:I,unstable_moves:0,pastIds:[]});default:throw new Error}}function C(e){return Object(o.useCallback)(e,[])}function x(e){void 0===e&&(e={});var t=Object(a.a)(e),n=t.unstable_virtual,i=void 0!==n&&n,s=t.rtl,u=void 0!==s&&s,b=t.orientation,m=t.currentId,d=t.loop,p=void 0!==d&&d,g=t.wrap,f=void 0!==g&&g,h=Object(r.a)(t,["unstable_virtual","rtl","orientation","currentId","loop","wrap"]),v=Object(o.useReducer)(E,{unstable_virtual:i,rtl:u,orientation:b,items:[],groups:[],currentId:m,loop:p,wrap:f,unstable_moves:0,pastIds:[],initialVirtual:i,initialRTL:u,initialOrientation:b,initialCurrentId:m,initialLoop:p,initialWrap:f}),O=v[0],j=(O.pastIds,O.initialVirtual,O.initialRTL,O.initialOrientation,O.initialCurrentId,O.initialLoop,O.initialWrap,O.hasSetCurrentId,Object(r.a)(O,["pastIds","initialVirtual","initialRTL","initialOrientation","initialCurrentId","initialLoop","initialWrap","hasSetCurrentId"])),y=v[1],_=Object(o.useState)(!1),w=_[0],k=_[1],x=Object(l.a)(h),S=function(){var e=Object(o.useRef)(!1);return Object(c.a)((function(){return function(){e.current=!0}}),[]),e}();return Object(r.b)(Object(r.b)(Object(r.b)({},x),j),{},{unstable_hasActiveWidget:w,unstable_setHasActiveWidget:k,registerItem:C((function(e){S.current||y({type:"registerItem",item:e})})),unregisterItem:C((function(e){S.current||y({type:"unregisterItem",id:e})})),registerGroup:C((function(e){S.current||y({type:"registerGroup",group:e})})),unregisterGroup:C((function(e){S.current||y({type:"unregisterGroup",id:e})})),move:C((function(e){return y({type:"move",id:e})})),next:C((function(e){return y({type:"next",allTheWay:e})})),previous:C((function(e){return y({type:"previous",allTheWay:e})})),up:C((function(e){return y({type:"up",allTheWay:e})})),down:C((function(e){return y({type:"down",allTheWay:e})})),first:C((function(){return y({type:"first"})})),last:C((function(){return y({type:"last"})})),unstable_sort:C((function(){return y({type:"sort"})})),unstable_setVirtual:C((function(e){return y({type:"setVirtual",virtual:e})})),setRTL:C((function(e){return y({type:"setRTL",rtl:e})})),setOrientation:C((function(e){return y({type:"setOrientation",orientation:e})})),setCurrentId:C((function(e){return y({type:"setCurrentId",currentId:e})})),setLoop:C((function(e){return y({type:"setLoop",loop:e})})),setWrap:C((function(e){return y({type:"setWrap",wrap:e})})),reset:C((function(){return y({type:"reset"})}))})}var S=[].concat(l.a.__keys,["unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","unstable_moves","unstable_hasActiveWidget","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","unstable_sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","reset","unstable_setHasActiveWidget"]);x.__keys=S},52:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(8),o="undefined"==typeof window?r.useEffect:r.useLayoutEffect},53:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(45);function o(e){return Object(r.a)(e).activeElement}},54:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(8);function o(e){return Object(r.useState)(e)[0]}},55:function(e,t,n){"use strict";function r(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}n.d(t,"a",(function(){return r}))},57:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(8),o=Object(r.createContext)({})},58:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(8),o=n(54),c=n(60);function a(e){void 0===e&&(e={});var t=Object(o.a)(e).baseId,n=Object(r.useContext)(c.a),a=Object(r.useRef)(0),i=Object(r.useState)((function(){return t||n()}));return{baseId:i[0],unstable_setBaseId:i[1],unstable_idCountRef:a}}a.__keys=["baseId","unstable_setBaseId","unstable_idCountRef"]},6:function(e,t){!function(){e.exports=this.wp.primitives}()},60:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(8);var o=Object(r.createContext)((function(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}))},61:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(11),o=n(43),c=n(42),a=n(46),i=Object(c.a)({name:"Box",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,o=Object(r.a)(e,["unstable_system"]),c=t.unstable_system,i=Object(r.a)(t,["unstable_system"]);return!(n!==c&&!Object(a.a)(n,c))&&Object(a.a)(o,i)}});Object(o.a)({as:"div",useHook:i})},62:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(8);function o(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function c(e,t){return Object(r.useMemo)((function(){return null==e&&null==t?null:function(n){o(e,n),o(t,n)}}),[e,t])}},64:function(e,t){!function(){e.exports=this.wp.date}()},65:function(e,t,n){e.exports=function(e,t){var n,r,o=0;function c(){var c,a,i=n,l=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(a=0;a<l;a++)if(i.args[a]!==arguments[a]){i=i.next;continue e}return i!==n&&(i===r&&(r=i.prev),i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=n,i.prev=null,n.prev=i,n=i),i.val}i=i.next}for(c=new Array(l),a=0;a<l;a++)c[a]=arguments[a];return i={args:c,val:e.apply(null,c)},n?(n.prev=i,i.next=n):r=i,o===t.maxSize?(r=r.prev).next=null:o++,n=i,i.val}return t=t||{},c.clear=function(){n=null,r=null,o=0},c}},66:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(53);function o(e){var t=Object(r.a)(e);if(!t)return!1;if(e.contains(t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}},67:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=["button","color","file","image","reset","submit"];function o(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==r.indexOf(t.type)}return!1}},68:function(e,t,n){"use strict";function r(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function o(e,t){if("closest"in e)return e.closest(t);do{if(r(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var c=n(53),a="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function i(e){return r(e,a)&&function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}(e)}function l(e){for(;e&&!i(e);)e=o(e,a);return e}function s(e){return Object(c.a)(e)===e}function u(e,t){var n=void 0===t?{}:t,r=n.isActive,o=void 0===r?s:r,c=n.preventScroll;return o(e)?-1:(e.focus({preventScroll:c}),o(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:c})})))}},69:function(e,t,n){"use strict";function r(e){return t=e.currentTarget,n=e.target,!(t===n||t.contains(n));var t,n}n.d(t,"a",(function(){return r}))},7:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r))e.push(o.apply(null,r));else if("object"===c)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?e.exports=o:void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},70:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n(11),o=n(43),c=n(42),a=n(61),i=n(8),l=n(62),s=n(67),u=(n(75),n(40)),b=n(52),m=n(66),d=n(69),p=n(53),g=n(68);function f(e){return"undefined"!=typeof window&&-1!==window.navigator.userAgent.indexOf(e)}var h=f("Mac")&&!f("Chrome")&&(f("Safari")||f("Firefox"));function v(e){Object(m.a)(e)||e.focus()}var O=Object(c.a)({name:"Tabbable",compose:a.a,keys:["disabled","focusable"],useOptions:function(e,t){var n=t.disabled;return Object(r.b)({disabled:n},e)},useProps:function(e,t){var n=t.ref,o=t.tabIndex,c=t.onClick,a=t.onMouseDown,m=t.style,f=Object(r.a)(t,["ref","tabIndex","onClick","onMouseDown","style"]),O=Object(i.useRef)(null),j=Object(u.a)(c),y=Object(u.a)(a),_=e.disabled&&!e.focusable,w=Object(i.useState)(!0),k=w[0],E=w[1],C=k?o:o||0,x=e.disabled?Object(r.b)({pointerEvents:"none"},m):m,S=function(){if(h){var e=Object(i.useState)(null),t=e[0],n=e[1];return Object(i.useEffect)((function(){t&&(v(t),n(null))}),[t]),Object(i.useCallback)((function(e){var t=e.currentTarget;if(!Object(d.a)(e)&&Object(s.a)(t)){var r=Object(p.a)(t);if(r){var o="BODY"===r.tagName,c=Object(g.b)(t.parentElement);if(r===c||o&&!c)n(t);else if(c){c.addEventListener("focusin",(function(){return n(t)}),{once:!0})}else{r.addEventListener("blur",(function(){return v(t)}),{once:!0})}}}}),[])}}();Object(b.a)((function(){var e,t=O.current;t&&("BUTTON"!==(e=t).tagName&&"INPUT"!==e.tagName&&"SELECT"!==e.tagName&&"TEXTAREA"!==e.tagName&&"A"!==e.tagName&&"AUDIO"!==e.tagName&&"VIDEO"!==e.tagName&&E(!1))}),[]);var P=Object(i.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=j.current)||void 0===n||n.call(j,t)}),[e.disabled]),T=Object(i.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=y.current)||void 0===n||n.call(y,t),t.defaultPrevented||null==S||S(t)}),[e.disabled,S]);return Object(r.b)({ref:Object(l.a)(O,n),style:x,tabIndex:_?void 0:C,disabled:!(!_||!k)||void 0,"aria-disabled":!!e.disabled||void 0,onClick:P,onMouseDown:T},f)}});Object(o.a)({as:"div",useHook:O})},72:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(8),o=n(57),c=n(38);var a=function(e,t,n){void 0===n&&(n=t.children);var a=Object(r.useContext)(o.a);if(a.useCreateElement)return a.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(Object(c.b)(t,["children"]))}return Object(r.createElement)(e,t,n)}},74:function(e,t,n){var r;!function(o){var c=/^\s+/,a=/\s+$/,i=0,l=o.round,s=o.min,u=o.max,b=o.random;function m(e,t){if(t=t||{},(e=e||"")instanceof m)return e;if(!(this instanceof m))return new m(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,l=null,b=!1,m=!1;"string"==typeof e&&(e=function(e){e=e.replace(c,"").replace(a,"").toLowerCase();var t,n=!1;if(T[e])e=T[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=G.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=G.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=G.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=G.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=G.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=G.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=G.hex8.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),a:H(t[4]),format:n?"name":"hex8"};if(t=G.hex6.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),format:n?"name":"hex"};if(t=G.hex4.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),a:H(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=G.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&&(U(e.r)&&U(e.g)&&U(e.b)?(d=e.r,p=e.g,g=e.b,t={r:255*N(d,255),g:255*N(p,255),b:255*N(g,255)},b=!0,m="%"===String(e.r).substr(-1)?"prgb":"rgb"):U(e.h)&&U(e.s)&&U(e.v)?(r=A(e.s),i=A(e.v),t=function(e,t,n){e=6*N(e,360),t=N(t,100),n=N(n,100);var r=o.floor(e),c=e-r,a=n*(1-t),i=n*(1-c*t),l=n*(1-(1-c)*t),s=r%6;return{r:255*[n,i,a,a,l,n][s],g:255*[l,n,n,i,a,a][s],b:255*[a,a,l,n,n,i][s]}}(e.h,r,i),b=!0,m="hsv"):U(e.h)&&U(e.s)&&U(e.l)&&(r=A(e.s),l=A(e.l),t=function(e,t,n){var r,o,c;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=c=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=a(l,i,e+1/3),o=a(l,i,e),c=a(l,i,e-1/3)}return{r:255*r,g:255*o,b:255*c}}(e.h,r,l),b=!0,m="hsl"),e.hasOwnProperty("a")&&(n=e.a));var d,p,g;return n=z(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=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),a=s(e,t,n),i=(c+a)/2;if(c==a)r=o=0;else{var l=c-a;switch(o=i>.5?l/(2-c-a):l/(c+a),c){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:i}}function p(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),a=s(e,t,n),i=c,l=c-a;if(o=0===c?0:l/c,c==a)r=0;else{switch(c){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:i}}function g(e,t,n,r){var o=[R(l(e).toString(16)),R(l(t).toString(16)),R(l(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function f(e,t,n,r){return[R(V(r)),R(l(e).toString(16)),R(l(t).toString(16)),R(l(n).toString(16))].join("")}function h(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 w(e,t){var n=m(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,m(n)}function k(e){var t=m(e).toHsl();return t.h=(t.h+180)%360,m(t)}function E(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 C(e){var t=m(e).toHsl(),n=t.h;return[m(e),m({h:(n+90)%360,s:t.s,l:t.l}),m({h:(n+180)%360,s:t.s,l:t.l}),m({h:(n+270)%360,s:t.s,l:t.l})]}function x(e){var t=m(e).toHsl(),n=t.h;return[m(e),m({h:(n+72)%360,s:t.s,l:t.l}),m({h:(n+216)%360,s:t.s,l:t.l})]}function S(e,t,n){t=t||6,n=n||30;var r=m(e).toHsl(),o=360/n,c=[m(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,c.push(m(r));return c}function P(e,t){t=t||6;for(var n=m(e).toHsv(),r=n.h,o=n.s,c=n.v,a=[],i=1/t;t--;)a.push(m({h:r,s:o,v:c})),c=(c+i)%1;return a}m.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=z(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var c=[R(l(e).toString(16)),R(l(t).toString(16)),R(l(n).toString(16)),R(V(r))];if(o&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1))return c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0);return c.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(B[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+f(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=m(e);n="#"+f(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(h,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(O,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},m.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:A(e[r]));e=n}return m(e,t)},m.equals=function(e,t){return!(!e||!t)&&m(e).toRgbString()==m(t).toRgbString()},m.random=function(){return m.fromRatio({r:b(),g:b(),b:b()})},m.mix=function(e,t,n){n=0===n?0:n||50;var r=m(e).toRgb(),o=m(t).toRgb(),c=n/100;return m({r:(o.r-r.r)*c+r.r,g:(o.g-r.g)*c+r.g,b:(o.b-r.b)*c+r.b,a:(o.a-r.a)*c+r.a})},m.readability=function(e,t){var n=m(e),r=m(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},m.isReadable=function(e,t,n){var r,o,c=m.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},m.mostReadable=function(e,t,n){var r,o,c,a,i=null,l=0;o=(n=n||{}).includeFallbackColors,c=n.level,a=n.size;for(var s=0;s<t.length;s++)(r=m.readability(e,t[s]))>l&&(l=r,i=m(t[s]));return m.isReadable(e,i,{level:c,size:a})||!o?i:(n.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],n))};var T=m.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},B=m.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(T);function z(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(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 R(e){return 1==e.length?"0"+e:""+e}function A(e){return e<=1&&(e=100*e+"%"),e}function V(e){return o.round(255*parseFloat(e)).toString(16)}function H(e){return M(e)/255}var L,D,F,G=(D="[\\s|\\(]+("+(L="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+L+")[,|\\s]+("+L+")\\s*\\)?",F="[\\s|\\(]+("+L+")[,|\\s]+("+L+")[,|\\s]+("+L+")[,|\\s]+("+L+")\\s*\\)?",{CSS_UNIT:new RegExp(L),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(e){return!!G.CSS_UNIT.exec(e)}e.exports?e.exports=m:void 0===(r=function(){return m}.call(t,n,t,e))||(e.exports=r)}(Math)},75:function(e,t,n){"use strict";n(91),n(8)},76:function(e,t,n){"use strict";function r(e){var t=void 0===e?{}:e,n=t.keyMap,r=t.onKey,o=t.stopPropagation,c=t.onKeyDown,a=t.shouldKeyDown,i=void 0===a?function(){return!0}:a,l=t.preventDefault,s=void 0===l||l;return function(e){if(n){var t,a="function"==typeof n?n(e):n,l="function"==typeof s?s(e):s,u="function"==typeof o?o(e):o;if(e.key in a){var b=a[e.key];if("function"==typeof b&&i(e))return l&&e.preventDefault(),u&&e.stopPropagation(),r&&r(e),void b(e)}if(c&&"current"in c)null===(t=c.current)||void 0===t||t.call(c,e);else null==c||c(e)}}}n.d(t,"a",(function(){return r}))},77:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(11),o=n(43),c=n(42),a=n(8),i=n(67),l=(n(75),n(40)),s=n(49),u=n(70);var b=Object(c.a)({name:"Clickable",compose:u.a,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,o=e.unstable_clickOnSpace,c=void 0===o||o,a=Object(r.a)(e,["unstable_clickOnEnter","unstable_clickOnSpace"]);return Object(r.b)({unstable_clickOnEnter:n,unstable_clickOnSpace:c},a)},useProps:function(e,t){var n=t.onKeyDown,o=t.onKeyUp,c=Object(r.a)(t,["onKeyDown","onKeyUp"]),u=Object(a.useState)(!1),b=u[0],m=u[1],d=Object(l.a)(n),p=Object(l.a)(o),g=Object(a.useCallback)((function(t){var n;if(null===(n=d.current)||void 0===n||n.call(d,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&Object(s.a)(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&(Object(i.a)(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&m(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),f=Object(a.useCallback)((function(t){var n;if(null===(n=p.current)||void 0===n||n.call(p,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;b&&r&&(m(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,b]);return Object(r.b)({"data-active":b||void 0,onKeyDown:g,onKeyUp:f},c)}});Object(o.a)({as:"button",memo:!0,useHook:b})},78:function(e,t){!function(){e.exports=this.wp.notices}()},8:function(e,t){!function(){e.exports=this.React}()},81:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(100);function o(e,t,n){return e.dispatchEvent(Object(r.a)(e,t,n))}},82:function(e,t,n){"use strict";function r(e){try{var t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName,r="true"===e.contentEditable;return t||n||r||!1}catch(e){return!1}}n.d(t,"a",(function(){return r}))},83:function(e,t,n){"use strict";function r(e,t){e.value=t}n.d(t,"a",(function(){return r}))},86:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(11),o=n(43),c=n(42),a=n(8),i=n(60),l=n(58),s=Object(c.a)({useState:l.a,keys:["id"],useOptions:function(e,t){var n=Object(a.useContext)(i.a),o=Object(a.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],c=Object(a.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),l=t.id||e.id||""+c+o;return Object(r.b)(Object(r.b)({},e),{},{id:l})},useProps:function(e,t){return Object(r.b)({id:e.id},t)}});Object(o.a)({as:"div",useHook:s})},9:function(e,t){!function(){e.exports=this.wp.blocks}()},90:function(e,t){!function(){e.exports=this.wp.serverSideRender}()},91:function(e,t,n){"use strict"},93:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(45);function o(e,t,n){if(void 0===n&&(n={}),"function"==typeof KeyboardEvent)return new KeyboardEvent(t,n);var o=Object(r.a)(e).createEvent("KeyboardEvent");return o.initKeyboardEvent(t,n.bubbles,n.cancelable,function(e){return Object(r.a)(e).defaultView||window}(e),n.key,n.location,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey),o}function c(e,t,n){return e.dispatchEvent(o(e,t,n))}},96:function(e,t){!function(){e.exports=this.wp.reusableBlocks}()},99:function(e,t){!function(){e.exports=this.wp.viewport}()}});

Youez - 2016 - github.com/yon3zu
LinuXploit