WordPress/wp-includes/js/dist/block-library.min.js
gziolo ab8a964858 Editor: Update WordPress packages based based on Gutenberg v13.0 RC3
This is the last step of backports from the Gutenberg plugin for WordPress 6.0 Beta 1 release. It includes all updates WordPress packages published to npm based on the Gutenberg plugin v13.0 RC3 release. This patch also includes all the necessary changes applied to core blocks. New blocks included:

- Avatar
- Comment Author Name
- Comment Content
- Comment Date
- Comment Edit Link
- Comment Rely Link
- Comment Template
- Comments Pagination
- Comments Pagination Next
- Comments Pagination Previous
- Comments Query Loop
- Home Link
- Post Author Biography
- Query No Results
- Read More
See more details in https://github.com/WordPress/wordpress-develop/pull/2564.

Props zieladam, ramonopoly, ocean90.
Fixes #55505.


Built from https://develop.svn.wordpress.org/trunk@53157


git-svn-id: http://core.svn.wordpress.org/trunk@52746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-04-12 15:12:47 +00:00

14 lines
644 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! This file is auto-generated */
!function(){var e={3827:function(e,t){var n;
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var o=function(){function e(){}function t(e,t){for(var n=t.length,o=0;o<n;++o)r(e,t[o])}e.prototype=Object.create(null);var n={}.hasOwnProperty;var o=/\s+/;function r(e,r){if(r){var a=typeof r;"string"===a?function(e,t){for(var n=t.split(o),r=n.length,a=0;a<r;++a)e[n[a]]=!0}(e,r):Array.isArray(r)?t(e,r):"object"===a?function(e,t){if(t.toString===Object.prototype.toString)for(var o in t)n.call(t,o)&&(e[o]=!!t[o]);else e[t.toString()]=!0}(e,r):"number"===a&&function(e,t){e[t]=!0}(e,r)}}return function(){for(var n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];var a=new e;t(a,o);var l=[];for(var i in a)a[i]&&l.push(i);return l.join(" ")}}();e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},4403:function(e,t){var n;
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var l=r.apply(null,n);l&&e.push(l)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var i in n)o.call(n,i)&&n[i]&&e.push(i);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},5027:function(e){
/*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */
e.exports=function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function n(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}function o(e,t){return r(e)||a(e,t)||l()}function r(e){if(Array.isArray(e))return e}function a(e,t){var n=[],o=!0,r=!1,a=void 0;try{for(var l,i=e[Symbol.iterator]();!(o=(l=i.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,a=e}finally{try{o||null==i.return||i.return()}finally{if(r)throw a}}return n}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}return function(){function t(){e(this,t)}return n(t,[{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),o=this._getOriginalSize(e),r=this._prepareSizeAndPosition(o,t),a=null,l=n;if(!(r.srcWidth&&r.srcHeight&&r.destWidth&&r.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=r.destWidth,this._canvas.height=r.destHeight;try{this._ctx.clearRect(0,0,r.destWidth,r.destHeight),this._ctx.drawImage(e,r.srcLeft,r.srcTop,r.srcWidth,r.srcHeight,0,0,r.destWidth,r.destHeight);var i=this._ctx.getImageData(0,0,r.destWidth,r.destHeight).data;l=this.getColorFromArray4(i,t)}catch(e){a=e}return this._prepareResult(l,a)}},{key:"getColorFromArray4",value:function(e,t){t=t||{};var n=4,o=e.length;if(o<n)return this._getDefaultColor(t);var r=o-o%n,a=(t.step||1)*n,l="_"+(t.algorithm||"sqrt")+"Algorithm";if("function"!=typeof this[l])throw new Error("FastAverageColor: ".concat(t.algorithm," is unknown algorithm."));return this[l](e,r,a)}},{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=this._getOption(t,"left",0),o=this._getOption(t,"top",0),r=this._getOption(t,"width",e.width),a=this._getOption(t,"height",e.height),l=r,i=a;if("precision"===t.mode)return{srcLeft:n,srcTop:o,srcWidth:r,srcHeight:a,destWidth:l,destHeight:i};var s,c=100,u=10;return r>a?(s=r/a,l=c,i=Math.round(l/s)):(s=a/r,i=c,l=Math.round(i/s)),(l>r||i>a||l<u||i<u)&&(l=r,i=a),{srcLeft:n,srcTop:o,srcWidth:r,srcHeight:a,destWidth:l,destHeight:i}}},{key:"_simpleAlgorithm",value:function(e,t,n){for(var o=0,r=0,a=0,l=0,i=0,s=0;s<t;s+=n){var c=e[s+3];o+=e[s]*c,r+=e[s+1]*c,a+=e[s+2]*c,l+=c,i++}return l?[Math.round(o/l),Math.round(r/l),Math.round(a/l),Math.round(l/i)]:[0,0,0,0]}},{key:"_sqrtAlgorithm",value:function(e,t,n){for(var o=0,r=0,a=0,l=0,i=0,s=0;s<t;s+=n){var c=e[s],u=e[s+1],m=e[s+2],d=e[s+3];o+=c*c*d,r+=u*u*d,a+=m*m*d,l+=d,i++}return l?[Math.round(Math.sqrt(o/l)),Math.round(Math.sqrt(r/l)),Math.round(Math.sqrt(a/l)),Math.round(l/i)]:[0,0,0,0]}},{key:"_dominantAlgorithm",value:function(e,t,n){for(var r={},a=24,l=0;l<t;l+=n){var i=e[l],s=e[l+1],c=e[l+2],u=e[l+3],m=Math.round(i/a)+","+Math.round(s/a)+","+Math.round(c/a);r[m]?r[m]=[r[m][0]+i*u,r[m][1]+s*u,r[m][2]+c*u,r[m][3]+u,r[m][4]+1]:r[m]=[i*u,s*u,c*u,u,1]}var d=Object.keys(r).map((function(e){return r[e]})).sort((function(e,t){var n=e[4],o=t[4];return n>o?-1:n===o?0:1})),p=o(d[0],5),g=p[0],h=p[1],v=p[2],b=p[3],y=p[4];return b?[Math.round(g/b),Math.round(h/b),Math.round(v/b),Math.round(b/y)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,n){var o=this,r=(n=n||{})&&n.data,a=this._getDefaultColor(n),l=function(){c(),t.call(e,o.getColor(e,n),r)},i=function(){c(),t.call(e,o._prepareResult(a,new Error("Image error")),r)},s=function(){c(),t.call(e,o._prepareResult(a,new Error("Image abort")),r)},c=function(){e.removeEventListener("load",l),e.removeEventListener("error",i),e.removeEventListener("abort",s)};e.addEventListener("load",l),e.addEventListener("error",i),e.addEventListener("abort",s)}},{key:"_prepareResult",value:function(e,t){var n=e.slice(0,3),o=[].concat(n,e[3]/255),r=this._isDark(e);return{error:t,value:e,rgb:"rgb("+n.join(",")+")",rgba:"rgba("+o.join(",")+")",hex:this._arrayToHex(n),hexa:this._arrayToHex(e),isDark:r,isLight:!r}}},{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")}}]),t}()}()},9756:function(e){e.exports=function(e,t){var n,o,r=0;function a(){var a,l,i=n,s=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(l=0;l<s;l++)if(i.args[l]!==arguments[l]){i=i.next;continue e}return i!==n&&(i===o&&(o=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(a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return i={args:a,val:e.apply(null,a)},n?(n.prev=i,i.next=n):o=i,r===t.maxSize?(o=o.prev).next=null:r++,n=i,i.val}return t=t||{},a.clear=function(){n=null,o=null,r=0},a}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var a=t[o]={exports:{}};return e[o].call(a.exports,a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};!function(){"use strict";n.r(o),n.d(o,{__experimentalGetCoreBlocks:function(){return vf},__experimentalRegisterExperimentalCoreBlocks:function(){return yf},registerCoreBlocks:function(){return bf}});var e={};n.r(e),n.d(e,{metadata:function(){return Ue},name:function(){return Oe},settings:function(){return qe}});var t={};n.r(t),n.d(t,{metadata:function(){return it},name:function(){return st},settings:function(){return ct}});var r={};n.r(r),n.d(r,{metadata:function(){return zt},name:function(){return It},settings:function(){return Mt}});var a={};n.r(a),n.d(a,{metadata:function(){return Yt},name:function(){return Xt},settings:function(){return en}});var l={};n.r(l),n.d(l,{metadata:function(){return pn},name:function(){return gn},settings:function(){return hn}});var i={};n.r(i),n.d(i,{metadata:function(){return kn},name:function(){return wn},settings:function(){return xn}});var s={};n.r(s),n.d(s,{metadata:function(){return Sn},name:function(){return Bn},settings:function(){return Tn}});var c={};n.r(c),n.d(c,{metadata:function(){return In},name:function(){return Mn},settings:function(){return Ln}});var u={};n.r(u),n.d(u,{metadata:function(){return Dn},name:function(){return Fn},settings:function(){return $n}});var m={};n.r(m),n.d(m,{metadata:function(){return Wn},name:function(){return jn},settings:function(){return Zn}});var d={};n.r(d),n.d(d,{metadata:function(){return mo},name:function(){return po},settings:function(){return go}});var p={};n.r(p),n.d(p,{metadata:function(){return bo},name:function(){return yo},settings:function(){return fo}});var g={};n.r(g),n.d(g,{metadata:function(){return ko},name:function(){return wo},settings:function(){return xo}});var h={};n.r(h),n.d(h,{metadata:function(){return Bo},name:function(){return To},settings:function(){return No}});var v={};n.r(v),n.d(v,{metadata:function(){return zo},name:function(){return Io},settings:function(){return Mo}});var b={};n.r(b),n.d(b,{metadata:function(){return Vo},name:function(){return Ao},settings:function(){return Ho}});var y={};n.r(y),n.d(y,{metadata:function(){return jo},name:function(){return Zo},settings:function(){return Qo}});var f={};n.r(f),n.d(f,{metadata:function(){return Yo},name:function(){return Xo},settings:function(){return er}});var _={};n.r(_),n.d(_,{metadata:function(){return rr},name:function(){return ar},settings:function(){return lr}});var k={};n.r(k),n.d(k,{metadata:function(){return ur},name:function(){return mr},settings:function(){return dr}});var w={};n.r(w),n.d(w,{metadata:function(){return hr},name:function(){return vr},settings:function(){return br}});var x={};n.r(x),n.d(x,{metadata:function(){return _r},name:function(){return kr},settings:function(){return wr}});var E={};n.r(E),n.d(E,{metadata:function(){return Ia},name:function(){return Ma},settings:function(){return La}});var C={};n.r(C),n.d(C,{metadata:function(){return vl},name:function(){return bl},settings:function(){return yl}});var S={};n.r(S),n.d(S,{metadata:function(){return zl},name:function(){return Il},settings:function(){return Ml}});var B={};n.r(B),n.d(B,{metadata:function(){return Fi},name:function(){return $i},settings:function(){return Gi}});var T={};n.r(T),n.d(T,{metadata:function(){return es},name:function(){return ts},settings:function(){return ns}});var N={};n.r(N),n.d(N,{metadata:function(){return xs},name:function(){return Es},settings:function(){return Cs}});var P={};n.r(P),n.d(P,{metadata:function(){return Ts},name:function(){return Ns},settings:function(){return Ps}});var z={};n.r(z),n.d(z,{metadata:function(){return Ms},name:function(){return Ls},settings:function(){return Rs}});var I={};n.r(I),n.d(I,{metadata:function(){return Js},name:function(){return Ys},settings:function(){return Xs}});var M={};n.r(M),n.d(M,{metadata:function(){return tc},name:function(){return nc},settings:function(){return oc}});var L={};n.r(L),n.d(L,{metadata:function(){return mc},name:function(){return dc},settings:function(){return pc}});var R={};n.r(R),n.d(R,{metadata:function(){return Gc},name:function(){return Uc},settings:function(){return qc}});var V={};n.r(V),n.d(V,{metadata:function(){return Kc},name:function(){return Jc},settings:function(){return Yc}});var A={};n.r(A),n.d(A,{metadata:function(){return eu},name:function(){return tu},settings:function(){return nu}});var H={};n.r(H),n.d(H,{metadata:function(){return wu},name:function(){return xu},settings:function(){return Eu}});var D={};n.r(D),n.d(D,{metadata:function(){return Tu},name:function(){return Nu},settings:function(){return Pu}});var F={};n.r(F),n.d(F,{metadata:function(){return Lu},name:function(){return Ru},settings:function(){return Vu}});var $={};n.r($),n.d($,{metadata:function(){return Pm},name:function(){return zm},settings:function(){return Im}});var G={};n.r(G),n.d(G,{metadata:function(){return Zm},name:function(){return Qm},settings:function(){return Km}});var U={};n.r(U),n.d(U,{metadata:function(){return ld},name:function(){return id},settings:function(){return sd}});var O={};n.r(O),n.d(O,{metadata:function(){return md},name:function(){return dd},settings:function(){return pd}});var q={};n.r(q),n.d(q,{metadata:function(){return hd},name:function(){return vd},settings:function(){return bd}});var W={};n.r(W),n.d(W,{metadata:function(){return Ed},name:function(){return Cd},settings:function(){return Sd}});var j={};n.r(j),n.d(j,{metadata:function(){return Dd},name:function(){return Fd},settings:function(){return $d}});var Z={};n.r(Z),n.d(Z,{metadata:function(){return Od},name:function(){return qd},settings:function(){return Wd}});var Q={};n.r(Q),n.d(Q,{metadata:function(){return Zd},name:function(){return Qd},settings:function(){return Kd}});var K={};n.r(K),n.d(K,{metadata:function(){return Yd},name:function(){return Xd},settings:function(){return ep}});var J={};n.r(J),n.d(J,{metadata:function(){return sp},name:function(){return cp},settings:function(){return up}});var Y={};n.r(Y),n.d(Y,{metadata:function(){return pp},name:function(){return gp},settings:function(){return hp}});var X={};n.r(X),n.d(X,{metadata:function(){return yp},name:function(){return fp},settings:function(){return _p}});var ee={};n.r(ee),n.d(ee,{metadata:function(){return Pp},name:function(){return zp},settings:function(){return Ip}});var te={};n.r(te),n.d(te,{metadata:function(){return Ap},name:function(){return Hp},settings:function(){return Dp}});var ne={};n.r(ne),n.d(ne,{metadata:function(){return Up},name:function(){return Op},settings:function(){return qp}});var oe={};n.r(oe),n.d(oe,{metadata:function(){return Kp},name:function(){return Jp},settings:function(){return Yp}});var re={};n.r(re),n.d(re,{metadata:function(){return eg},name:function(){return tg},settings:function(){return ng}});var ae={};n.r(ae),n.d(ae,{metadata:function(){return lg},name:function(){return ig},settings:function(){return sg}});var le={};n.r(le),n.d(le,{metadata:function(){return fg},name:function(){return _g},settings:function(){return kg}});var ie={};n.r(ie),n.d(ie,{metadata:function(){return Qg},name:function(){return Kg},settings:function(){return Jg}});var se={};n.r(se),n.d(se,{metadata:function(){return Xg},name:function(){return eh},settings:function(){return th}});var ce={};n.r(ce),n.d(ce,{metadata:function(){return ah},name:function(){return lh},settings:function(){return ih}});var ue={};n.r(ue),n.d(ue,{metadata:function(){return ch},name:function(){return uh},settings:function(){return mh}});var me={};n.r(me),n.d(me,{metadata:function(){return ph},name:function(){return gh},settings:function(){return hh}});var de={};n.r(de),n.d(de,{metadata:function(){return bh},name:function(){return yh},settings:function(){return fh}});var pe={};n.r(pe),n.d(pe,{metadata:function(){return Sh},name:function(){return Bh},settings:function(){return Th}});var ge={};n.r(ge),n.d(ge,{metadata:function(){return qh},name:function(){return Wh},settings:function(){return Zh},settingsV1:function(){return jh}});var he={};n.r(he),n.d(he,{metadata:function(){return Yh},name:function(){return Xh},settings:function(){return ev}});var ve={};n.r(ve),n.d(ve,{metadata:function(){return tv},name:function(){return nv},settings:function(){return ov}});var be={};n.r(be),n.d(be,{metadata:function(){return av},name:function(){return lv},settings:function(){return iv}});var ye={};n.r(ye),n.d(ye,{metadata:function(){return vv},name:function(){return bv},settings:function(){return yv}});var fe={};n.r(fe),n.d(fe,{metadata:function(){return xv},name:function(){return Ev},settings:function(){return Cv}});var _e={};n.r(_e),n.d(_e,{metadata:function(){return Nv},name:function(){return Pv},settings:function(){return zv}});var ke={};n.r(ke),n.d(ke,{metadata:function(){return Av},name:function(){return Hv},settings:function(){return Dv}});var we={};n.r(we),n.d(we,{metadata:function(){return Gv},name:function(){return Uv},settings:function(){return Ov}});var xe={};n.r(xe),n.d(xe,{metadata:function(){return Kv},name:function(){return Jv},settings:function(){return Yv}});var Ee={};n.r(Ee),n.d(Ee,{metadata:function(){return lb},name:function(){return ib},settings:function(){return sb}});var Ce={};n.r(Ce),n.d(Ce,{metadata:function(){return hb},name:function(){return vb},settings:function(){return bb}});var Se={};n.r(Se),n.d(Se,{metadata:function(){return Sb},name:function(){return Bb},settings:function(){return Tb}});var Be={};n.r(Be),n.d(Be,{metadata:function(){return oy},name:function(){return ry},settings:function(){return ay}});var Te={};n.r(Te),n.d(Te,{metadata:function(){return sy},name:function(){return cy},settings:function(){return uy}});var Ne={};n.r(Ne),n.d(Ne,{metadata:function(){return Sy},name:function(){return By},settings:function(){return Ty}});var Pe={};n.r(Pe),n.d(Pe,{metadata:function(){return zy},name:function(){return Iy},settings:function(){return My}});var ze={};n.r(ze),n.d(ze,{metadata:function(){return Vy},name:function(){return Ay},settings:function(){return Hy}});var Ie={};n.r(Ie),n.d(Ie,{metadata:function(){return qy},name:function(){return Wy},settings:function(){return jy}});var Me={};n.r(Me),n.d(Me,{metadata:function(){return df},name:function(){return pf},settings:function(){return gf}});var Le=window.wp.blocks,Re=window.wp.element,Ve=window.wp.primitives;var Ae=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"})),He=window.wp.components,De=window.wp.i18n,Fe=window.wp.blockEditor,$e=window.wp.serverSideRender,Ge=n.n($e);const Ue={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/archives",title:"Archives",category:"widgets",description:"Display a date archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},type:{type:"string",default:"monthly"}},supports:{align:!0,html:!1},editorStyle:"wp-block-archives-editor"},{name:Oe}=Ue,qe={icon:Ae,example:{},edit:function(e){let{attributes:t,setAttributes:n}=e;const{showPostCounts:o,displayAsDropdown:r,type:a}=t;return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Archives settings")},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Display as dropdown"),checked:r,onChange:()=>n({displayAsDropdown:!r})}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Show post counts"),checked:o,onChange:()=>n({showPostCounts:!o})}),(0,Re.createElement)(He.SelectControl,{label:(0,De.__)("Group by:"),options:[{label:(0,De.__)("Year"),value:"yearly"},{label:(0,De.__)("Month"),value:"monthly"},{label:(0,De.__)("Week"),value:"weekly"},{label:(0,De.__)("Day"),value:"daily"}],value:a,onChange:e=>n({type:e})}))),(0,Re.createElement)("div",(0,Fe.useBlockProps)(),(0,Re.createElement)(He.Disabled,null,(0,Re.createElement)(Ge(),{block:"core/archives",attributes:t}))))}};var We=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"}));function je(){return je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},je.apply(this,arguments)}var Ze=n(4403),Qe=n.n(Ze),Ke=window.wp.url,Je=window.wp.coreData,Ye=window.wp.data;function Xe(e){const t=e?e[0]:24,n=e?e[e.length-1]:96;return{minSize:t,maxSize:Math.floor(2.5*n)}}function et(){const{avatarURL:e}=(0,Ye.useSelect)((e=>{const{getSettings:t}=e(Fe.store),{__experimentalDiscussionSettings:n}=t();return n}));return e}const tt={who:"authors",per_page:-1,_fields:"id,name",context:"view"};var nt=function(e){let{value:t,onChange:n}=e;const[o,r]=(0,Re.useState)(),a=(0,Ye.useSelect)((e=>{const{getUsers:t}=e(Je.store);return t(tt)}),[]);if(!a)return null;const l=a.map((e=>({label:e.name,value:e.id})));return(0,Re.createElement)(He.ComboboxControl,{label:(0,De.__)("User"),help:(0,De.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:t,onChange:n,options:o||l,onFilterValueChange:e=>r(l.filter((t=>t.label.toLowerCase().startsWith(e.toLowerCase()))))})};const ot=e=>{let{setAttributes:t,avatar:n,attributes:o,selectUser:r}=e;return(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Settings")},(0,Re.createElement)(He.RangeControl,{label:(0,De.__)("Image size"),onChange:e=>t({size:e}),min:n.minSize,max:n.maxSize,initialPosition:null==o?void 0:o.size,value:null==o?void 0:o.size}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Link to user profile"),onChange:()=>t({isLink:!o.isLink}),checked:o.isLink}),o.isLink&&(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Open in new tab"),onChange:e=>t({linkTarget:e?"_blank":"_self"}),checked:"_blank"===o.linkTarget}),r&&(0,Re.createElement)(nt,{value:null==o?void 0:o.userId,onChange:e=>{t({userId:e})}})))},rt=e=>{let{setAttributes:t,attributes:n,avatar:o,blockProps:r,isSelected:a}=e;const l=(0,Fe.__experimentalUseBorderProps)(n),i=(0,Ke.addQueryArgs)((0,Ke.removeQueryArgs)(null==o?void 0:o.src,["s"]),{s:2*(null==n?void 0:n.size)});return(0,Re.createElement)("div",r,(0,Re.createElement)(He.ResizableBox,{size:{width:n.size,height:n.size},showHandle:a,onResizeStop:(e,o,r,a)=>{t({size:parseInt(n.size+(a.height||a.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,De.isRTL)(),bottom:!0,left:(0,De.isRTL)()},minWidth:o.minSize,maxWidth:o.maxSize},(0,Re.createElement)("img",je({src:i,alt:o.alt},l,{className:Qe()("avatar","avatar-"+n.size,"photo","wp-block-avatar__image",l.className),style:{...l.style}}))))},at=e=>{let{attributes:t,context:n,setAttributes:o,isSelected:r}=e;const{commentId:a}=n,l=(0,Fe.useBlockProps)(),i=function(e){let{commentId:t}=e;const[n]=(0,Je.useEntityProp)("root","comment","author_avatar_urls",t),[o]=(0,Je.useEntityProp)("root","comment","author_name",t),r=n?Object.values(n):null,a=n?Object.keys(n):null,{minSize:l,maxSize:i}=Xe(a),s=et();return{src:r?r[r.length-1]:s,minSize:l,maxSize:i,alt:o?(0,De.sprintf)((0,De.__)("%s Avatar"),o):(0,De.__)("Default Avatar")}}({commentId:a});return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(ot,{avatar:i,setAttributes:o,attributes:t,selectUser:!1}),t.isLink?(0,Re.createElement)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault()},(0,Re.createElement)(rt,{attributes:t,avatar:i,blockProps:l,isSelected:r,setAttributes:o})):(0,Re.createElement)(rt,{attributes:t,avatar:i,blockProps:l,isSelected:r,setAttributes:o}))},lt=e=>{let{attributes:t,context:n,setAttributes:o,isSelected:r}=e;const{postId:a,postType:l}=n,i=function(e){let{userId:t,postId:n,postType:o}=e;const{authorDetails:r}=(0,Ye.useSelect)((e=>{var r;const{getEditedEntityRecord:a,getUser:l}=e(Je.store);if(t)return{authorDetails:l(t)};const i=null===(r=a("postType",o,n))||void 0===r?void 0:r.author;return{authorDetails:i?l(i):null}}),[o,n,t]),a=r?Object.values(r.avatar_urls):null,l=r?Object.keys(r.avatar_urls):null,{minSize:i,maxSize:s}=Xe(l),c=et();return{src:a?a[a.length-1]:c,minSize:i,maxSize:s,alt:r?(0,De.sprintf)((0,De.__)("%s Avatar"),null==r?void 0:r.name):(0,De.__)("Default Avatar")}}({userId:null==t?void 0:t.userId,postId:a,postType:l}),s=(0,Fe.useBlockProps)();return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(ot,{selectUser:!0,attributes:t,avatar:i,setAttributes:o}),(0,Re.createElement)("div",null,t.isLink?(0,Re.createElement)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault()},(0,Re.createElement)(rt,{attributes:t,avatar:i,blockProps:s,isSelected:r,setAttributes:o})):(0,Re.createElement)(rt,{attributes:t,avatar:i,blockProps:s,isSelected:r,setAttributes:o})))};const it={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/avatar",title:"Avatar",category:"theme",description:"Add a user's avatar.",textdomain:"default",attributes:{userId:{type:"number"},size:{type:"number",default:96},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","commentId"],supports:{html:!1,align:!0,alignWide:!1,spacing:{margin:!0},__experimentalBorder:{__experimentalSkipSerialization:!0,radius:!0,width:!0,color:!0,style:!0,__experimentalDefaultControls:{radius:!0}},color:{text:!1,background:!1,__experimentalDuotone:"img"}},editorStyle:"wp-block-avatar",style:"wp-block-avatar"},{name:st}=it,ct={icon:We,edit:function(e){var t,n;return null!=e&&null!==(t=e.context)&&void 0!==t&&t.commentId||null===(null==e||null===(n=e.context)||void 0===n?void 0:n.commentId)?(0,Re.createElement)(at,e):(0,Re.createElement)(lt,e)}};var ut=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"})),mt=[{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(e){let{attributes:t}=e;const{autoplay:n,caption:o,loop:r,preload:a,src:l}=t;return(0,Re.createElement)("figure",null,(0,Re.createElement)("audio",{controls:"controls",src:l,autoPlay:n,loop:r,preload:a}),!Fe.RichText.isEmpty(o)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",value:o}))}}],dt=window.wp.blob;const pt=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],gt="wp-embed";var ht=window.lodash,vt=n(3827),bt=n.n(vt),yt=n(9756),ft=n.n(yt);const{name:_t}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",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},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},kt=e=>{var t;return null===(t=(0,Le.getBlockVariations)(_t))||void 0===t?void 0:t.find((t=>{let{patterns:n}=t;return function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some((t=>e.match(t)))}(e,n)}))},wt=e=>e&&e.includes('class="wp-embedded-content"'),xt=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{preview:o,attributes:r={}}=e,{url:a,providerNameSlug:l,type:i,...s}=r;if(!a||!(0,Le.getBlockType)(_t))return;const c=kt(a),u="wordpress"===l||i===gt,m=!u&&c&&(c.attributes.providerNameSlug!==l||!l);if(m)return(0,Le.createBlock)(_t,{url:a,...s,...c.attributes});const d=null===(t=(0,Le.getBlockVariations)(_t))||void 0===t?void 0:t.find((e=>{let{name:t}=e;return"wordpress"===t}));return d&&o&&wt(o.html)&&!u?(0,Le.createBlock)(_t,{url:a,...d.attributes,...n}):void 0},Et=e=>{if(!e)return e;const t=pt.reduce(((e,t)=>{let{className:n}=t;return e[n]=!1,e}),{"wp-has-aspect-ratio":!1});return bt()(e,t)};function Ct(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!n)return Et(t);const o=document.implementation.createHTMLDocument("");o.body.innerHTML=e;const r=o.body.querySelector("iframe");if(r&&r.height&&r.width){const e=(r.width/r.height).toFixed(2);for(let n=0;n<pt.length;n++){const o=pt[n];if(e>=o.ratio){return e-o.ratio>.1?Et(t):bt()(Et(t),o.className,"wp-has-aspect-ratio")}}}return t}const St=ft()((function(e,t,n,o){let r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};const a={};let{type:l="rich"}=e;const{html:i,provider_name:s}=e,c=(0,ht.kebabCase)((s||t).toLowerCase());return wt(i)&&(l=gt),(i||"photo"===l)&&(a.type=l,a.providerNameSlug=c),a.className=Ct(i,n,o&&r),a})),Bt=["audio"];var Tt=(0,He.withNotices)((function(e){let{attributes:t,className:n,noticeOperations:o,setAttributes:r,onReplace:a,isSelected:l,noticeUI:i,insertBlocksAfter:s}=e;const{id:c,autoplay:u,caption:m,loop:d,preload:p,src:g}=t,h=!c&&(0,dt.isBlobURL)(g),v=(0,Ye.useSelect)((e=>{const{getSettings:t}=e(Fe.store);return t().mediaUpload}),[]);function b(e){return t=>{r({[e]:t})}}function y(e){if(e!==g){const t=xt({attributes:{url:e}});if(void 0!==t&&a)return void a(t);r({src:e,id:void 0})}}function f(e){o.removeAllNotices(),o.createErrorNotice(e)}function _(e){e&&e.url?r({src:e.url,id:e.id}):r({src:void 0,id:void 0})}(0,Re.useEffect)((()=>{if(!c&&(0,dt.isBlobURL)(g)){const e=(0,dt.getBlobByURL)(g);e&&v({filesList:[e],onFileChange:e=>{let[{id:t,url:n}]=e;r({id:t,src:n})},onError:e=>{r({src:void 0,id:void 0}),o.createErrorNotice(e)},allowedTypes:Bt})}}),[]);const k=Qe()(n,{"is-transient":h}),w=(0,Fe.useBlockProps)({className:k});return g?(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,{group:"other"},(0,Re.createElement)(Fe.MediaReplaceFlow,{mediaId:c,mediaURL:g,allowedTypes:Bt,accept:"audio/*",onSelect:_,onSelectURL:y,onError:f})),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Audio settings")},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Autoplay"),onChange:b("autoplay"),checked:u,help:function(e){return e?(0,De.__)("Autoplay may cause usability issues for some users."):null}}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Loop"),onChange:b("loop"),checked:d}),(0,Re.createElement)(He.SelectControl,{label:(0,De._x)("Preload","noun; Audio block parameter"),value:p||"",onChange:e=>r({preload:e||void 0}),options:[{value:"",label:(0,De.__)("Browser default")},{value:"auto",label:(0,De.__)("Auto")},{value:"metadata",label:(0,De.__)("Metadata")},{value:"none",label:(0,De._x)("None",'"Preload" value')}]}))),(0,Re.createElement)("figure",w,(0,Re.createElement)(He.Disabled,{isDisabled:!l},(0,Re.createElement)("audio",{controls:"controls",src:g})),h&&(0,Re.createElement)(He.Spinner,null),(!Fe.RichText.isEmpty(m)||l)&&(0,Re.createElement)(Fe.RichText,{tagName:"figcaption","aria-label":(0,De.__)("Audio caption text"),placeholder:(0,De.__)("Add caption"),value:m,onChange:e=>r({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>s((0,Le.createBlock)("core/paragraph"))}))):(0,Re.createElement)("div",w,(0,Re.createElement)(Fe.MediaPlaceholder,{icon:(0,Re.createElement)(Fe.BlockIcon,{icon:ut}),onSelect:_,onSelectURL:y,accept:"audio/*",allowedTypes:Bt,value:t,notices:i,onError:f}))}));const Nt={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("audio/"),transform(e){const t=e[0];return(0,Le.createBlock)("core/audio",{src:(0,dt.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:e=>{let{named:{src:t,mp3:n,m4a:o,ogg:r,wav:a,wma:l}}=e;return t||n||o||r||a||l}},loop:{type:"string",shortcode:e=>{let{named:{loop:t}}=e;return t}},autoplay:{type:"string",shortcode:e=>{let{named:{autoplay:t}}=e;return t}},preload:{type:"string",shortcode:e=>{let{named:{preload:t}}=e;return t}}}}]};var Pt=Nt;const zt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",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},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:It}=zt,Mt={icon:ut,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"}},transforms:Pt,deprecated:mt,edit:Tt,save:function(e){let{attributes:t}=e;const{autoplay:n,caption:o,loop:r,preload:a,src:l}=t;return l&&(0,Re.createElement)("figure",Fe.useBlockProps.save(),(0,Re.createElement)("audio",{controls:"controls",src:l,autoPlay:n,loop:r,preload:a}),!Fe.RichText.isEmpty(o)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",value:o}))}};var Lt=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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 12.8h8v-1.5H8v1.5z"})),Rt=window.wp.compose;const Vt=e=>{if(!(0,ht.isObject)(e)||Array.isArray(e))return e;const t=(0,ht.pickBy)((0,ht.mapValues)(e,Vt),ht.identity);return(0,ht.isEmpty)(t)?void 0:t};var At=Vt;function Ht(e){var t,n;if(null==e||null===(t=e.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.fontFamily)return e;const o=(0,ht.cloneDeep)(e),r=o.style.typography.fontFamily.split("|").pop();return delete o.style.typography.fontFamily,o.style=At(o.style),{...o,fontFamily:r}}const Dt=e=>{var t,n,o;const{borderRadius:r,...a}=e,l=[r,null===(t=a.style)||void 0===t||null===(n=t.border)||void 0===n?void 0:n.radius].find((e=>"number"==typeof e&&0!==e));return l?{...a,style:{...a.style,border:{...null===(o=a.style)||void 0===o?void 0:o.border,radius:`${l}px`}}}:a},Ft=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient),{...(0,ht.omit)(e,["customTextColor","customBackgroundColor","customGradient"]),style:t}},$t=e=>Ft((0,ht.omit)({...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0},["color","textColor"])),Gt={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"}},Ut={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"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save(e){var t,n;let{attributes:o,className:r}=e;const{fontSize:a,linkTarget:l,rel:i,style:s,text:c,title:u,url:m,width:d}=o;if(!c)return null;const p=(0,Fe.__experimentalGetBorderClassesAndStyles)(o),g=(0,Fe.__experimentalGetColorClassesAndStyles)(o),h=(0,Fe.__experimentalGetSpacingClassesAndStyles)(o),v=Qe()("wp-block-button__link",g.className,p.className,{"no-border-radius":0===(null==s||null===(t=s.border)||void 0===t?void 0:t.radius)}),b={...p.style,...g.style,...h.style},y=Qe()(r,{[`has-custom-width wp-block-button__width-${d}`]:d,"has-custom-font-size":a||(null==s||null===(n=s.typography)||void 0===n?void 0:n.fontSize)});return(0,Re.createElement)("div",Fe.useBlockProps.save({className:y}),(0,Re.createElement)(Fe.RichText.Content,{tagName:"a",className:v,href:m,title:u,style:b,value:c,target:l,rel:i}))},migrate:Ht,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}},Ot=[Ut,{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...Gt,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible(e){var t;let{style:n}=e;return"number"==typeof(null==n||null===(t=n.border)||void 0===t?void 0:t.radius)},save(e){var t,n,o;let{attributes:r,className:a}=e;const{fontSize:l,linkTarget:i,rel:s,style:c,text:u,title:m,url:d,width:p}=r;if(!u)return null;const g=null==c||null===(t=c.border)||void 0===t?void 0:t.radius,h=(0,Fe.__experimentalGetColorClassesAndStyles)(r),v=Qe()("wp-block-button__link",h.className,{"no-border-radius":0===(null==c||null===(n=c.border)||void 0===n?void 0:n.radius)}),b={borderRadius:g||void 0,...h.style},y=Qe()(a,{[`has-custom-width wp-block-button__width-${p}`]:p,"has-custom-font-size":l||(null==c||null===(o=c.typography)||void 0===o?void 0:o.fontSize)});return(0,Re.createElement)("div",Fe.useBlockProps.save({className:y}),(0,Re.createElement)(Fe.RichText.Content,{tagName:"a",className:v,href:d,title:m,style:b,value:u,target:i,rel:s}))},migrate:(0,Rt.compose)(Ht,Dt)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...Gt,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"},width:{type:"number"}},save(e){let{attributes:t,className:n}=e;const{borderRadius:o,linkTarget:r,rel:a,text:l,title:i,url:s,width:c}=t,u=(0,Fe.__experimentalGetColorClassesAndStyles)(t),m=Qe()("wp-block-button__link",u.className,{"no-border-radius":0===o}),d={borderRadius:o?o+"px":void 0,...u.style},p=Qe()(n,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,Re.createElement)("div",Fe.useBlockProps.save({className:p}),(0,Re.createElement)(Fe.RichText.Content,{tagName:"a",className:m,href:s,title:i,style:d,value:l,target:r,rel:a}))},migrate:(0,Rt.compose)(Ht,Dt)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...Gt,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"},width:{type:"number"}},save(e){let{attributes:t,className:n}=e;const{borderRadius:o,linkTarget:r,rel:a,text:l,title:i,url:s,width:c}=t,u=(0,Fe.__experimentalGetColorClassesAndStyles)(t),m=Qe()("wp-block-button__link",u.className,{"no-border-radius":0===o}),d={borderRadius:o?o+"px":void 0,...u.style},p=Qe()(n,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,Re.createElement)("div",Fe.useBlockProps.save({className:p}),(0,Re.createElement)(Fe.RichText.Content,{tagName:"a",className:m,href:s,title:i,style:d,value:l,target:r,rel:a}))},migrate:(0,Rt.compose)(Ht,Dt)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...Gt,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(e){let{attributes:t}=e;const{borderRadius:n,linkTarget:o,rel:r,text:a,title:l,url:i}=t,s=Qe()("wp-block-button__link",{"no-border-radius":0===n}),c={borderRadius:n?n+"px":void 0};return(0,Re.createElement)(Fe.RichText.Content,{tagName:"a",className:s,href:i,title:l,style:c,value:a,target:o,rel:r})},migrate:Dt},{supports:{align:!0,alignWide:!1},attributes:{...Gt,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:e=>!!e.customTextColor||!!e.customBackgroundColor||!!e.customGradient,migrate:(0,Rt.compose)(Dt,Ft),save(e){let{attributes:t}=e;const{backgroundColor:n,borderRadius:o,customBackgroundColor:r,customTextColor:a,customGradient:l,linkTarget:i,gradient:s,rel:c,text:u,textColor:m,title:d,url:p}=t,g=(0,Fe.getColorClassName)("color",m),h=!l&&(0,Fe.getColorClassName)("background-color",n),v=(0,Fe.__experimentalGetGradientClass)(s),b=Qe()("wp-block-button__link",{"has-text-color":m||a,[g]:g,"has-background":n||r||l||s,[h]:h,"no-border-radius":0===o,[v]:v}),y={background:l||void 0,backgroundColor:h||l||s?void 0:r,color:g?void 0:a,borderRadius:o?o+"px":void 0};return(0,Re.createElement)("div",null,(0,Re.createElement)(Fe.RichText.Content,{tagName:"a",className:b,href:p,title:d,style:y,value:u,target:i,rel:c}))}},{attributes:{...Gt,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:e=>e.className&&e.className.includes("is-style-squared"),migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),Dt(Ft({...e,className:t||void 0,borderRadius:0}))},save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:o,customTextColor:r,linkTarget:a,rel:l,text:i,textColor:s,title:c,url:u}=t,m=(0,Fe.getColorClassName)("color",s),d=(0,Fe.getColorClassName)("background-color",n),p=Qe()("wp-block-button__link",{"has-text-color":s||r,[m]:m,"has-background":n||o,[d]:d}),g={backgroundColor:d?void 0:o,color:m?void 0:r};return(0,Re.createElement)("div",null,(0,Re.createElement)(Fe.RichText.Content,{tagName:"a",className:p,href:u,title:c,style:g,value:i,target:a,rel:l}))}},{attributes:{...Gt,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:$t,save(e){let{attributes:t}=e;const{url:n,text:o,title:r,backgroundColor:a,textColor:l,customBackgroundColor:i,customTextColor:s}=t,c=(0,Fe.getColorClassName)("color",l),u=(0,Fe.getColorClassName)("background-color",a),m=Qe()("wp-block-button__link",{"has-text-color":l||s,[c]:c,"has-background":a||i,[u]:u}),d={backgroundColor:u?void 0:i,color:c?void 0:s};return(0,Re.createElement)("div",null,(0,Re.createElement)(Fe.RichText.Content,{tagName:"a",className:m,href:n,title:r,style:d,value:o}))}},{attributes:{...Gt,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save(e){let{attributes:t}=e;const{url:n,text:o,title:r,align:a,color:l,textColor:i}=t,s={backgroundColor:l,color:i};return(0,Re.createElement)("div",{className:`align${a}`},(0,Re.createElement)(Fe.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:n,title:r,style:s,value:o}))},migrate:$t},{attributes:{...Gt,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save(e){let{attributes:t}=e;const{url:n,text:o,title:r,align:a,color:l,textColor:i}=t;return(0,Re.createElement)("div",{className:`align${a}`,style:{backgroundColor:l}},(0,Re.createElement)(Fe.RichText.Content,{tagName:"a",href:n,title:r,style:{color:i},value:o}))},migrate:$t}];var qt=Ot,Wt=window.wp.keycodes;var jt=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));var Zt=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));const Qt="noreferrer noopener";function Kt(e){let{selectedWidth:t,setAttributes:n}=e;return(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Width settings")},(0,Re.createElement)(He.ButtonGroup,{"aria-label":(0,De.__)("Button width")},[25,50,75,100].map((e=>(0,Re.createElement)(He.Button,{key:e,isSmall:!0,variant:e===t?"primary":void 0,onClick:()=>{var o;n({width:t===(o=e)?void 0:o})}},e,"%")))))}var Jt=function(e){var t;const{attributes:n,setAttributes:o,className:r,isSelected:a,onReplace:l,mergeBlocks:i}=e,{linkTarget:s,placeholder:c,rel:u,style:m,text:d,url:p,width:g}=n,h=(0,Re.useCallback)((e=>{o({rel:e})}),[o]),v=(0,Fe.__experimentalUseBorderProps)(n),b=(0,Fe.__experimentalUseColorProps)(n),y=(0,Fe.__experimentalGetSpacingClassesAndStyles)(n),f=(0,Re.useRef)(),_=(0,Re.useRef)(),k=(0,Fe.useBlockProps)({ref:f,onKeyDown:function(e){if(Wt.isKeyboardEvent.primary(e,"k"))S(e);else if(Wt.isKeyboardEvent.primaryShift(e,"k")){var t;B(),null===(t=_.current)||void 0===t||t.focus()}}}),[w,x]=(0,Re.useState)(!1),E=!!p,C="_blank"===s;function S(e){e.preventDefault(),x(!0)}function B(){o({url:void 0,linkTarget:void 0,rel:void 0}),x(!1)}return(0,Re.useEffect)((()=>{a||x(!1)}),[a]),(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)("div",je({},k,{className:Qe()(k.className,{[`has-custom-width wp-block-button__width-${g}`]:g,"has-custom-font-size":k.style.fontSize})}),(0,Re.createElement)(Fe.RichText,{ref:_,"aria-label":(0,De.__)("Button text"),placeholder:c||(0,De.__)("Add text…"),value:d,onChange:e=>{o({text:e.replace(/<\/?a[^>]*>/g,"")})},withoutInteractiveFormatting:!0,className:Qe()(r,"wp-block-button__link",b.className,v.className,{"no-border-radius":0===(null==m||null===(t=m.border)||void 0===t?void 0:t.radius)}),style:{...v.style,...b.style,...y.style},onSplit:e=>(0,Le.createBlock)("core/button",{...n,text:e}),onReplace:l,onMerge:i,identifier:"text"})),(0,Re.createElement)(Fe.BlockControls,{group:"block"},!E&&(0,Re.createElement)(He.ToolbarButton,{name:"link",icon:jt,title:(0,De.__)("Link"),shortcut:Wt.displayShortcut.primary("k"),onClick:S}),E&&(0,Re.createElement)(He.ToolbarButton,{name:"link",icon:Zt,title:(0,De.__)("Unlink"),shortcut:Wt.displayShortcut.primaryShift("k"),onClick:B,isActive:!0})),a&&(w||E)&&(0,Re.createElement)(He.Popover,{position:"bottom center",onClose:()=>{var e;x(!1),null===(e=_.current)||void 0===e||e.focus()},anchorRef:null==f?void 0:f.current,focusOnMount:!!w&&"firstElement",__unstableSlotName:"__unstable-block-tools-after"},(0,Re.createElement)(Fe.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:p,opensInNewTab:C},onChange:e=>{let{url:t="",opensInNewTab:n}=e;o({url:t}),C!==n&&function(e){const t=e?"_blank":void 0;let n=u;t&&!u?n=Qt:t||u!==Qt||(n=void 0),o({linkTarget:t,rel:n})}(n)},onRemove:()=>{var e;B(),null===(e=_.current)||void 0===e||e.focus()},forceIsEditingLink:w})),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(Kt,{selectedWidth:g,setAttributes:o})),(0,Re.createElement)(Fe.InspectorControls,{__experimentalGroup:"advanced"},(0,Re.createElement)(He.TextControl,{label:(0,De.__)("Link rel"),value:u||"",onChange:h})))};const Yt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/button",title:"Button",category:"design",parent:["core/buttons"],description:"Prompt visitors to take action with a button-style link.",keywords:["link"],textdomain:"default",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"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button"},{name:Xt}=Yt,en={icon:Lt,example:{attributes:{className:"is-style-fill",text:(0,De.__)("Call to Action")}},edit:Jt,save:function(e){var t,n;let{attributes:o,className:r}=e;const{fontSize:a,linkTarget:l,rel:i,style:s,text:c,title:u,url:m,width:d}=o;if(!c)return null;const p=(0,Fe.__experimentalGetBorderClassesAndStyles)(o),g=(0,Fe.__experimentalGetColorClassesAndStyles)(o),h=(0,Fe.__experimentalGetSpacingClassesAndStyles)(o),v=Qe()("wp-block-button__link",g.className,p.className,{"no-border-radius":0===(null==s||null===(t=s.border)||void 0===t?void 0:t.radius)}),b={...p.style,...g.style,...h.style},y=Qe()(r,{[`has-custom-width wp-block-button__width-${d}`]:d,"has-custom-font-size":a||(null==s||null===(n=s.typography)||void 0===n?void 0:n.fontSize)});return(0,Re.createElement)("div",Fe.useBlockProps.save({className:y}),(0,Re.createElement)(Fe.RichText.Content,{tagName:"a",className:v,href:m,title:u,style:b,value:c,target:l,rel:i}))},deprecated:qt,merge:(e,t)=>{let{text:n=""}=t;return{...e,text:(e.text||"")+n}}};var tn=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.Path,{d:"M17 3H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5V6.2h-5v1.6zM17 13H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5v-1.5h-5v1.5z"}));const nn=e=>{if(e.layout)return e;const{contentJustification:t,orientation:n,...o}=e;return(t||n)&&Object.assign(o,{layout:{type:"flex",...t&&{justifyContent:t},...n&&{orientation:n}}}),o},on=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:e=>{let{contentJustification:t,orientation:n}=e;return!!t||!!n},migrate:nn,save(e){let{attributes:{contentJustification:t,orientation:n}}=e;return(0,Re.createElement)("div",Fe.useBlockProps.save({className:Qe()({[`is-content-justification-${t}`]:t,"is-vertical":"vertical"===n})}),(0,Re.createElement)(Fe.InnerBlocks.Content,null))}},{supports:{align:["center","left","right"],anchor:!0},save:()=>(0,Re.createElement)("div",null,(0,Re.createElement)(Fe.InnerBlocks.Content,null)),isEligible(e){let{align:t}=e;return t&&["center","left","right"].includes(t)},migrate:e=>nn({...e,align:void 0,contentJustification:e.align})}];var rn=on,an=window.wp.richText;const{name:ln}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/buttons",title:"Buttons",category:"design",description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},sn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,Le.createBlock)(ln,{},e.map((e=>(0,Le.createBlock)("core/button",e))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,Le.createBlock)(ln,{},e.map((e=>{const t=(0,an.__unstableCreateElement)(document,e.content),n=t.innerText||"",o=t.querySelector("a"),r=null==o?void 0:o.getAttribute("href");return(0,Le.createBlock)("core/button",{text:n,url:r})}))),isMatch:e=>e.every((e=>{const t=(0,an.__unstableCreateElement)(document,e.content),n=t.innerText||"",o=t.querySelectorAll("a");return n.length<=30&&o.length<=1}))}]};var cn=sn;const un=[Xt],mn={name:Xt,attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};var dn=function(e){let{attributes:{layout:t={}}}=e;const n=(0,Fe.useBlockProps)(),o=(0,Ye.useSelect)((e=>{var t;const n=e(Fe.store).getSettings().__experimentalPreferredStyleVariations;return null==n||null===(t=n.value)||void 0===t?void 0:t[Xt]}),[]),r=(0,Fe.useInnerBlocksProps)(n,{allowedBlocks:un,__experimentalDefaultBlock:mn,__experimentalDirectInsert:!0,template:[[Xt,{className:o&&`is-style-${o}`}]],__experimentalLayout:t,templateInsertUpdatesSelection:!0});return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)("div",r))};const pn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/buttons",title:"Buttons",category:"design",description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:gn}=pn,hn={icon:tn,example:{innerBlocks:[{name:"core/button",attributes:{text:(0,De.__)("Find out more")}},{name:"core/button",attributes:{text:(0,De.__)("Contact us")}}]},deprecated:rn,transforms:cn,edit:dn,save:function(){const e=Fe.useInnerBlocksProps.save(Fe.useBlockProps.save());return(0,Re.createElement)("div",e)}};var vn=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"})),bn=window.moment,yn=n.n(bn);const fn=ft()((e=>{if(!e)return{};const t=yn()(e);return{year:t.year(),month:t.month()+1}}));var _n={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,Le.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,Le.createBlock)("core/archives")}]};const kn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your sites posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0},style:"wp-block-calendar"},{name:wn}=kn,xn={icon:vn,example:{},edit:function(e){let{attributes:t}=e;const n=(0,Fe.useBlockProps)(),{date:o,hasPosts:r,hasPostsResolved:a}=(0,Ye.useSelect)((e=>{const{getEntityRecords:t,hasFinishedResolution:n}=e(Je.store),o={status:"publish",per_page:1},r=t("postType","post",o),a=n("getEntityRecords",["postType","post",o]);let l;const i=e("core/editor");if(i){"post"===i.getEditedPostAttribute("type")&&(l=i.getEditedPostAttribute("date"))}return{date:l,hasPostsResolved:a,hasPosts:a&&1===(null==r?void 0:r.length)}}),[]);return r?(0,Re.createElement)("div",n,(0,Re.createElement)(He.Disabled,null,(0,Re.createElement)(Ge(),{block:"core/calendar",attributes:{...t,...fn(o)}}))):(0,Re.createElement)("div",n,(0,Re.createElement)(He.Placeholder,{icon:vn,label:(0,De.__)("Calendar")},a?(0,De.__)("No published posts found."):(0,Re.createElement)(He.Spinner,null)))},transforms:_n};var En=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"}));var Cn=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"}));const Sn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/categories",title:"Categories",category:"widgets",description:"Display a list of all categories.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},showOnlyTopLevel:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:Bn}=Sn,Tn={icon:En,example:{},edit:function e(t){let{attributes:{displayAsDropdown:n,showHierarchy:o,showPostCounts:r,showOnlyTopLevel:a},setAttributes:l}=t;const i=(0,Rt.useInstanceId)(e,"blocks-category-select"),s={per_page:-1,hide_empty:!0,context:"view"};a&&(s.parent=0);const{records:c,isResolving:u}=(0,Je.__experimentalUseEntityRecords)("taxonomy","category",s),m=e=>null!=c&&c.length?null===e?c:c.filter((t=>{let{parent:n}=t;return n===e})):[],d=e=>`wp-block-categories__list wp-block-categories__list-level-${e}`,p=e=>t=>l({[e]:t}),g=e=>e?(0,ht.unescape)(e).trim():(0,De.__)("(Untitled)"),h=(e,t)=>{const n=m(e.id),{id:a,link:l,count:i,name:s}=e;return(0,Re.createElement)("li",{key:a},(0,Re.createElement)("a",{href:l,target:"_blank",rel:"noreferrer noopener"},g(s)),r&&(0,Re.createElement)("span",{className:"wp-block-categories__post-count"},` (${i})`),o&&!!n.length&&(0,Re.createElement)("ul",{className:d(t+1)},n.map((e=>h(e,t+1)))))},v=(e,t)=>{const{id:n,count:a,name:l}=e,i=m(n);return[(0,Re.createElement)("option",{key:n},(0,ht.times)(3*t,(()=>" ")),g(l),r&&` (${a})`),o&&!!i.length&&i.map((e=>v(e,t+1)))]};return(0,Re.createElement)("div",(0,Fe.useBlockProps)(),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Categories settings")},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Display as dropdown"),checked:n,onChange:p("displayAsDropdown")}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Show post counts"),checked:r,onChange:p("showPostCounts")}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Show only top level categories"),checked:a,onChange:p("showOnlyTopLevel")}),!a&&(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Show hierarchy"),checked:o,onChange:p("showHierarchy")}))),u&&(0,Re.createElement)(He.Placeholder,{icon:Cn,label:(0,De.__)("Categories")},(0,Re.createElement)(He.Spinner,null)),!u&&0===(null==c?void 0:c.length)&&(0,Re.createElement)("p",null,(0,De.__)("Your site does not have any posts, so there is nothing to display here at the moment.")),!u&&(null==c?void 0:c.length)>0&&(n?(()=>{const e=m(o?0:null);return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(He.VisuallyHidden,{as:"label",htmlFor:i},(0,De.__)("Categories")),(0,Re.createElement)("select",{id:i,className:"wp-block-categories__dropdown"},e.map((e=>v(e,0)))))})():(()=>{const e=m(o?0:null);return(0,Re.createElement)("ul",{className:d(0)},e.map((e=>h(e,0))))})()))}};var Nn=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"}));var Pn=e=>{let{clientId:t}=e;const{replaceBlocks:n}=(0,Ye.useDispatch)(Fe.store),o=(0,Ye.useSelect)((e=>e(Fe.store).getBlock(t)),[t]);return(0,Re.createElement)(He.ToolbarButton,{onClick:()=>n(o.clientId,(0,Le.rawHandler)({HTML:(0,Le.serialize)(o)}))},(0,De.__)("Convert to blocks"))};const{wp:zn}=window;const In={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-freeform-editor"},{name:Mn}=In,Ln={icon:Nn,edit:function(e){let{clientId:t,attributes:{content:n},setAttributes:o,onReplace:r}=e;const{getMultiSelectedBlockClientIds:a}=(0,Ye.useSelect)(Fe.store),l=(0,Re.useRef)(!1);return(0,Re.useEffect)((()=>{if(!l.current)return;const e=window.tinymce.get(`editor-${t}`);(null==e?void 0:e.getContent())!==n&&e.setContent(n||"")}),[n]),(0,Re.useEffect)((()=>{const{baseURL:e,suffix:i}=window.wpEditorL10n.tinymce;function s(e){let t;n&&e.on("loadContent",(()=>e.setContent(n))),e.on("blur",(()=>{var n;t=e.selection.getBookmark(2,!0);const r=document.querySelector(".interface-interface-skeleton__content"),l=r.scrollTop;return null!==(n=a())&&void 0!==n&&n.length||o({content:e.getContent()}),e.once("focus",(()=>{t&&(e.selection.moveToBookmark(t),r.scrollTop!==l&&(r.scrollTop=l))})),!1})),e.on("mousedown touchstart",(()=>{t=null}));const l=(0,ht.debounce)((()=>{const t=e.getContent();t!==e._lastChange&&(e._lastChange=t,o({content:t}))}),250);e.on("Paste Change input Undo Redo",l),e.on("remove",l.cancel),e.on("keydown",(t=>{Wt.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==Wt.BACKSPACE&&t.keyCode!==Wt.DELETE||!function(e){const 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)||(r([]),t.preventDefault(),t.stopImmediatePropagation());const{altKey:n}=t;n&&t.keyCode===Wt.F10&&t.stopPropagation()})),e.on("init",(()=>{const t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())}))}function c(){const{settings:e}=window.wpEditorL10n.tinymce;zn.oldEditor.initialize(`editor-${t}`,{tinymce:{...e,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${t}`,setup:s}})}function u(){"complete"===document.readyState&&c()}return l.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:e,suffix:i}),"complete"===document.readyState?c():document.addEventListener("readystatechange",u),()=>{document.removeEventListener("readystatechange",u),zn.oldEditor.remove(`editor-${t}`)}}),[]),(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,null,(0,Re.createElement)(He.ToolbarGroup,null,(0,Re.createElement)(Pn,{clientId:t}))),(0,Re.createElement)("div",(0,Fe.useBlockProps)(),(0,Re.createElement)("div",{key:"toolbar",id:`toolbar-${t}`,className:"block-library-classic__toolbar",onClick:function(){const e=window.tinymce.get(`editor-${t}`);e&&e.focus()},"data-placeholder":(0,De.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}}),(0,Re.createElement)("div",{key:"editor",id:`editor-${t}`,className:"wp-block-freeform block-library-rich-text__tinymce"})))},save:function(e){let{attributes:t}=e;const{content:n}=t;return(0,Re.createElement)(Re.RawHTML,null,n)}};var Rn=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"}));function Vn(e){return e.replace(/\[/g,"&#91;")}function An(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1&#47;&#47;$2")}var Hn={from:[{type:"enter",regExp:/^```$/,transform:()=>(0,Le.createBlock)("core/code")},{type:"block",blocks:["core/html","core/paragraph"],transform:e=>{let{content:t}=e;return(0,Le.createBlock)("core/code",{content:t})}},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]};const Dn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{anchor:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{width:!0,color:!0}},color:{text:!0,background:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}}},style:"wp-block-code"},{name:Fn}=Dn,$n={icon:Rn,example:{attributes:{content:(0,De.__)('// A "block" is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );')}},transforms:Hn,edit:function(e){let{attributes:t,setAttributes:n,onRemove:o}=e;const r=(0,Fe.useBlockProps)();return(0,Re.createElement)("pre",r,(0,Re.createElement)(Fe.RichText,{tagName:"code",value:t.content,onChange:e=>n({content:e}),onRemove:o,placeholder:(0,De.__)("Write code…"),"aria-label":(0,De.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0}))},save:function(e){let{attributes:t}=e;return(0,Re.createElement)("pre",Fe.useBlockProps.save(),(0,Re.createElement)(Fe.RichText.Content,{tagName:"code",value:(n=t.content,(0,ht.flow)(Vn,An)(n||""))}));var n}};var Gn=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));const Un=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible(e){let{width:t}=e;return isFinite(t)},migrate:e=>({...e,width:`${e.width}%`}),save(e){let{attributes:t}=e;const{verticalAlignment:n,width:o}=t,r=Qe()({[`is-vertically-aligned-${n}`]:n}),a={flexBasis:o+"%"};return(0,Re.createElement)("div",{className:r,style:a},(0,Re.createElement)(Fe.InnerBlocks.Content,null))}}];var On=Un;var qn=function(e){let{attributes:{verticalAlignment:t,width:n,templateLock:o=!1,allowedBlocks:r},setAttributes:a,clientId:l}=e;const i=Qe()("block-core-columns",{[`is-vertically-aligned-${t}`]:t}),s=(0,He.__experimentalUseCustomUnits)({availableUnits:(0,Fe.useSetting)("spacing.units")||["%","px","em","rem","vw"]}),{columnsIds:c,hasChildBlocks:u,rootClientId:m}=(0,Ye.useSelect)((e=>{const{getBlockOrder:t,getBlockRootClientId:n}=e(Fe.store),o=n(l);return{hasChildBlocks:t(l).length>0,rootClientId:o,columnsIds:t(o)}}),[l]),{updateBlockAttributes:d}=(0,Ye.useDispatch)(Fe.store),p=Number.isFinite(n)?n+"%":n,g=(0,Fe.useBlockProps)({className:i,style:p?{flexBasis:p}:void 0}),h=c.length,v=c.indexOf(l)+1,b=(0,De.sprintf)((0,De.__)("%1$s (%2$d of %3$d)"),g["aria-label"],v,h),y=(0,Fe.useInnerBlocksProps)({...g,"aria-label":b},{templateLock:o,allowedBlocks:r,renderAppender:u?void 0:Fe.InnerBlocks.ButtonBlockAppender});return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,null,(0,Re.createElement)(Fe.BlockVerticalAlignmentToolbar,{onChange:e=>{a({verticalAlignment:e}),d(m,{verticalAlignment:null})},value:t})),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Column settings")},(0,Re.createElement)(He.__experimentalUnitControl,{label:(0,De.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:n||"",onChange:e=>{e=0>parseFloat(e)?"0":e,a({width:e})},units:s}))),(0,Re.createElement)("div",y))};const Wn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/column",title:"Column",category:"text",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:!0,padding:!0,__experimentalDefaultControls:{padding:!0}},__experimentalLayout:!0}},{name:jn}=Wn,Zn={icon:Gn,edit:qn,save:function(e){let{attributes:t}=e;const{verticalAlignment:n,width:o}=t,r=Qe()({[`is-vertically-aligned-${n}`]:n});let a;if(o&&/\d/.test(o)){let e=Number.isFinite(o)?o+"%":o;if(!Number.isFinite(o)&&null!=o&&o.endsWith("%")){const t=1e12;e=Math.round(Number.parseFloat(o)*t)/t+"%"}a={flexBasis:e}}const l=Fe.useBlockProps.save({className:r,style:a}),i=Fe.useInnerBlocksProps.save(l);return(0,Re.createElement)("div",i)},deprecated:On};var Qn=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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 Kn(e){let t,{doc:n}=Kn;n||(n=document.implementation.createHTMLDocument(""),Kn.doc=n),n.body.innerHTML=e;for(const e of n.body.firstChild.classList)if(t=e.match(/^layout-column-(\d+)$/))return Number(t[1])-1}var Jn=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),{...(0,ht.omit)(e,["customTextColor","customBackgroundColor"]),style:t,isStackedOnMobile:!0}},save(e){let{attributes:t}=e;const{verticalAlignment:n,backgroundColor:o,customBackgroundColor:r,textColor:a,customTextColor:l}=t,i=(0,Fe.getColorClassName)("background-color",o),s=(0,Fe.getColorClassName)("color",a),c=Qe()({"has-background":o||r,"has-text-color":a||l,[i]:i,[s]:s,[`are-vertically-aligned-${n}`]:n}),u={backgroundColor:i?void 0:r,color:s?void 0:l};return(0,Re.createElement)("div",{className:c||void 0,style:u},(0,Re.createElement)(Fe.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},isEligible:(e,t)=>!!t.some((e=>/layout-column-\d+/.test(e.originalContent)))&&t.some((e=>void 0!==Kn(e.originalContent))),migrate(e,t){const n=t.reduce(((e,t)=>{const{originalContent:n}=t;let o=Kn(n);return void 0===o&&(o=0),e[o]||(e[o]=[]),e[o].push(t),e}),[]).map((e=>(0,Le.createBlock)("core/column",{},e)));return[{...(0,ht.omit)(e,["columns"]),isStackedOnMobile:!0},n]},save(e){let{attributes:t}=e;const{columns:n}=t;return(0,Re.createElement)("div",{className:`has-${n}-columns`},(0,Re.createElement)(Fe.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:(e,t)=>[e={...(0,ht.omit)(e,["columns"]),isStackedOnMobile:!0},t],save(e){let{attributes:t}=e;const{verticalAlignment:n,columns:o}=t,r=Qe()(`has-${o}-columns`,{[`are-vertically-aligned-${n}`]:n});return(0,Re.createElement)("div",{className:r},(0,Re.createElement)(Fe.InnerBlocks.Content,null))}}];const Yn=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function Xn(e,t){const{width:n=100/t}=e.attributes;return Yn(n)}function eo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return(0,ht.sumBy)(e,(e=>Xn(e,t)))}function to(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce(((e,n)=>{const o=Xn(n,t);return Object.assign(e,{[n.clientId]:o})}),{})}function no(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;const o=eo(e,n);return(0,ht.mapValues)(to(e,n),(e=>Yn(t*e/o)))}function oo(e,t){return e.map((e=>(0,ht.merge)({},e,{attributes:{width:`${t[e.clientId]}%`}})))}const ro=["core/column"];const ao=(0,Ye.withDispatch)(((e,t,n)=>({updateAlignment(o){const{clientId:r,setAttributes:a}=t,{updateBlockAttributes:l}=e(Fe.store),{getBlockOrder:i}=n.select(Fe.store);a({verticalAlignment:o});i(r).forEach((e=>{l(e,{verticalAlignment:o})}))},updateColumns(o,r){const{clientId:a}=t,{replaceInnerBlocks:l}=e(Fe.store),{getBlocks:i}=n.select(Fe.store);let s=i(a);const c=s.every((e=>{var t;const n=e.attributes.width;return Number.isFinite(null!=n&&null!==(t=n.endsWith)&&void 0!==t&&t.call(n,"%")?parseFloat(n):n)}));const u=r>o;if(u&&c){const e=Yn(100/r);s=[...oo(s,no(s,100-e)),...(0,ht.times)(r-o,(()=>(0,Le.createBlock)("core/column",{width:`${e}%`})))]}else if(u)s=[...s,...(0,ht.times)(r-o,(()=>(0,Le.createBlock)("core/column")))];else if(s=(0,ht.dropRight)(s,o-r),c){s=oo(s,no(s,100))}l(a,s)}})))((function(e){let{attributes:t,setAttributes:n,updateAlignment:o,updateColumns:r,clientId:a}=e;const{isStackedOnMobile:l,verticalAlignment:i}=t,{count:s}=(0,Ye.useSelect)((e=>({count:e(Fe.store).getBlockCount(a)})),[a]),c=Qe()({[`are-vertically-aligned-${i}`]:i,"is-not-stacked-on-mobile":!l}),u=(0,Fe.useBlockProps)({className:c}),m=(0,Fe.useInnerBlocksProps)(u,{allowedBlocks:ro,orientation:"horizontal",renderAppender:!1});return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,null,(0,Re.createElement)(Fe.BlockVerticalAlignmentToolbar,{onChange:o,value:i})),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,null,(0,Re.createElement)(He.RangeControl,{label:(0,De.__)("Columns"),value:s,onChange:e=>r(s,e),min:1,max:Math.max(6,s)}),s>6&&(0,Re.createElement)(He.Notice,{status:"warning",isDismissible:!1},(0,De.__)("This column count exceeds the recommended amount and may cause visual breakage.")),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Stack on mobile"),checked:l,onChange:()=>n({isStackedOnMobile:!l})}))),(0,Re.createElement)("div",m))}));function lo(e){let{clientId:t,name:n,setAttributes:o}=e;const{blockType:r,defaultVariation:a,variations:l}=(0,Ye.useSelect)((e=>{const{getBlockVariations:t,getBlockType:o,getDefaultBlockVariation:r}=e(Le.store);return{blockType:o(n),defaultVariation:r(n,"block"),variations:t(n,"block")}}),[n]),{replaceInnerBlocks:i}=(0,Ye.useDispatch)(Fe.store),s=(0,Fe.useBlockProps)();return(0,Re.createElement)("div",s,(0,Re.createElement)(Fe.__experimentalBlockVariationPicker,{icon:(0,ht.get)(r,["icon","src"]),label:(0,ht.get)(r,["title"]),variations:l,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;e.attributes&&o(e.attributes),e.innerBlocks&&i(t,(0,Le.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)},allowSkip:!0}))}var io=e=>{const{clientId:t}=e,n=(0,Ye.useSelect)((e=>e(Fe.store).getBlocks(t).length>0),[t])?ao:lo;return(0,Re.createElement)(n,e)};var so=[{name:"one-column-full",title:(0,De.__)("100"),description:(0,De.__)("One column"),icon:(0,Re.createElement)(He.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Re.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:(0,De.__)("50 / 50"),description:(0,De.__)("Two columns; equal split"),icon:(0,Re.createElement)(He.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Re.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:(0,De.__)("30 / 70"),description:(0,De.__)("Two columns; one-third, two-thirds split"),icon:(0,Re.createElement)(He.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Re.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:(0,De.__)("70 / 30"),description:(0,De.__)("Two columns; two-thirds, one-third split"),icon:(0,Re.createElement)(He.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Re.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:(0,De.__)("33 / 33 / 33"),description:(0,De.__)("Three columns; equal split"),icon:(0,Re.createElement)(He.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Re.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:(0,De.__)("25 / 50 / 25"),description:(0,De.__)("Three columns; wide center column"),icon:(0,Re.createElement)(He.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Re.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"]}];const co={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),n=e.map((e=>{let{name:n,attributes:o,innerBlocks:r}=e;return["core/column",{width:`${t}%`},[[n,{...o},r]]]}));return(0,Le.createBlock)("core/columns",{},(0,Le.createBlocksFromInnerBlocksTemplate)(n))},isMatch:e=>{let{length:t}=e;return t&&t<=6}},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:n,backgroundColor:o,textColor:r,style:a,mediaAlt:l,mediaId:i,mediaPosition:s,mediaSizeSlug:c,mediaType:u,mediaUrl:m,mediaWidth:d,verticalAlignment:p}=e;let g;if("image"!==u&&u)g=["core/video",{id:i,src:m}];else{g=["core/image",{...{id:i,alt:l,url:m,sizeSlug:c},...{href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel}}]}const h=[["core/column",{width:`${d}%`},[g]],["core/column",{width:100-d+"%"},t]];return"right"===s&&h.reverse(),(0,Le.createBlock)("core/columns",{align:n,backgroundColor:o,textColor:r,style:a,verticalAlignment:p},(0,Le.createBlocksFromInnerBlocksTemplate)(h))}}]};var uo=co;const mo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/columns",title:"Columns",category:"design",description:"Display content in multiple columns, with blocks added to each column.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:!0,margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex",flexWrap:"nowrap"}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}}},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:po}=mo,go={icon:Qn,variations:so,example:{viewportWidth:600,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,De.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:(0,De.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,De.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:(0,De.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:Jn,edit:io,save:function(e){let{attributes:t}=e;const{isStackedOnMobile:n,verticalAlignment:o}=t,r=Qe()({[`are-vertically-aligned-${o}`]:o,"is-not-stacked-on-mobile":!n}),a=Fe.useBlockProps.save({className:r}),l=Fe.useInnerBlocksProps.save(a);return(0,Re.createElement)("div",l)},transforms:uo};var ho=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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",fillRule:"evenodd",clipRule:"evenodd"}),(0,Re.createElement)(Ve.Path,{d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",fillRule:"evenodd",clipRule:"evenodd"}),(0,Re.createElement)(Ve.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"}));var vo=[{attributes:{isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:Ht,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];const bo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/comment-author-name",title:"Comment Author Name",category:"theme",ancestor:["core/comment-template"],description:"Displays the name of the author of the comment.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"},fontSize:{type:"string",default:"small"}},usesContext:["commentId"],supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}}},{name:yo}=bo,fo={icon:ho,edit:function(e){let{attributes:{isLink:t,linkTarget:n,textAlign:o},context:{commentId:r},setAttributes:a}=e;const l=(0,Fe.useBlockProps)({className:Qe()({[`has-text-align-${o}`]:o})}),i=(0,Ye.useSelect)((e=>{const{getEntityRecord:t}=e(Je.store),n=t("root","comment",r),o=null==n?void 0:n.author_name;if(n&&!o){var a;const e=t("root","user",n.author);return null!==(a=null==e?void 0:e.name)&&void 0!==a?a:(0,De.__)("Anonymous")}return null!=o?o:""}),[r]),s=(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(Fe.AlignmentControl,{value:o,onChange:e=>a({textAlign:e})})),c=(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Link settings")},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Link to authors URL"),onChange:()=>a({isLink:!t}),checked:t}),t&&(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Open in new tab"),onChange:e=>a({linkTarget:e?"_blank":"_self"}),checked:"_blank"===n})));if(!r||!i)return(0,Re.createElement)(Re.Fragment,null,c,s,(0,Re.createElement)("div",l,(0,Re.createElement)("p",null,(0,De._x)("Comment Author","block title"))));const u=t?(0,Re.createElement)("a",{href:"#comment-author-pseudo-link",onClick:e=>e.preventDefault()},i):(0,Re.createElement)("p",null,i);return(0,Re.createElement)(Re.Fragment,null,c,s,(0,Re.createElement)("div",l,u))},deprecated:vo};var _o=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"}));const ko={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/comment-content",title:"Comment Content",category:"theme",ancestor:["core/comment-template"],description:"Displays the contents of a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0},spacing:{padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},html:!1}},{name:wo}=ko,xo={icon:_o,edit:function(e){let{setAttributes:t,attributes:{textAlign:n},context:{commentId:o}}=e;const r=(0,Fe.useBlockProps)({className:Qe()({[`has-text-align-${n}`]:n})}),[a]=(0,Je.useEntityProp)("root","comment","content",o),l=(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(Fe.AlignmentControl,{value:n,onChange:e=>t({textAlign:e})}));return o&&a?(0,Re.createElement)(Re.Fragment,null,l,(0,Re.createElement)("div",r,(0,Re.createElement)(He.Disabled,null,(0,Re.createElement)(Re.RawHTML,{key:"html"},a.rendered)))):(0,Re.createElement)(Re.Fragment,null,l,(0,Re.createElement)("div",r,(0,Re.createElement)("p",null,(0,De._x)("Comment Content","block title"))))}};var Eo=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}),(0,Re.createElement)(Ve.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"})),Co=window.wp.date;var So=[{attributes:{format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:Ht,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];const Bo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/comment-date",title:"Comment Date",category:"theme",ancestor:["core/comment-template"],description:"Displays the date on which the comment was posted.",textdomain:"default",attributes:{format:{type:"string"},isLink:{type:"boolean",default:!0},fontSize:{type:"string",default:"small"}},usesContext:["commentId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:To}=Bo,No={icon:Eo,edit:function(e){let{attributes:{format:t,isLink:n},context:{commentId:o},setAttributes:r}=e;const a=(0,Fe.useBlockProps)(),[l]=(0,Je.useEntityProp)("root","comment","date",o),[i=(0,Co.__experimentalGetSettings)().formats.date]=(0,Je.useEntityProp)("root","site","date_format"),s=(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Settings")},(0,Re.createElement)(Fe.__experimentalDateFormatPicker,{format:t,defaultFormat:i,onChange:e=>r({format:e})}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Link to comment"),onChange:()=>r({isLink:!n}),checked:n})));if(!o||!l)return(0,Re.createElement)(Re.Fragment,null,s,(0,Re.createElement)("div",a,(0,Re.createElement)("p",null,(0,De._x)("Comment Date","block title"))));let c=(0,Re.createElement)("time",{dateTime:(0,Co.dateI18n)("c",l)},(0,Co.dateI18n)(t||i,l));return n&&(c=(0,Re.createElement)("a",{href:"#comment-date-pseudo-link",onClick:e=>e.preventDefault()},c)),(0,Re.createElement)(Re.Fragment,null,s,(0,Re.createElement)("div",a,c))},deprecated:So};var Po=(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.Path,{d:"m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z"}));const zo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/comment-edit-link",title:"Comment Edit Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to edit the comment in the WordPress Dashboard. This link is only visible to users with the edit comment capability.",textdomain:"default",usesContext:["commentId"],attributes:{linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"},fontSize:{type:"string",default:"small"}},supports:{html:!1,color:{link:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}}},{name:Io}=zo,Mo={icon:Po,edit:function(e){let{attributes:{linkTarget:t,textAlign:n},setAttributes:o}=e;const r=(0,Fe.useBlockProps)({className:Qe()({[`has-text-align-${n}`]:n})}),a=(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(Fe.AlignmentControl,{value:n,onChange:e=>o({textAlign:e})})),l=(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Link settings")},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Open in new tab"),onChange:e=>o({linkTarget:e?"_blank":"_self"}),checked:"_blank"===t})));return(0,Re.createElement)(Re.Fragment,null,a,l,(0,Re.createElement)("div",r,(0,Re.createElement)("a",{href:"#edit-comment-pseudo-link",onClick:e=>e.preventDefault()},(0,De.__)("Edit"))))}};var Lo=(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.Path,{d:"M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"}));var Ro=function(e){let{setAttributes:t,attributes:{textAlign:n}}=e;const o=(0,Fe.useBlockProps)({className:Qe()({[`has-text-align-${n}`]:n})}),r=(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(Fe.AlignmentControl,{value:n,onChange:e=>t({textAlign:e})}));return(0,Re.createElement)(Re.Fragment,null,r,(0,Re.createElement)("div",o,(0,Re.createElement)("a",{href:"#comment-reply-pseudo-link",onClick:e=>e.preventDefault()},(0,De.__)("Reply"))))};const Vo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/comment-reply-link",title:"Comment Reply Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to reply to a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"},fontSize:{type:"string",default:"small"}},supports:{color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0},html:!1}},{name:Ao}=Vo,Ho={edit:Ro,icon:Lo};var Do=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),Fo=window.wp.apiFetch,$o=n.n(Fo);const Go=e=>{let{defaultPage:t,postId:n,perPage:o,queryArgs:r}=e;const[a,l]=(0,Re.useState)({}),i=`${n}_${o}`,s=a[i]||0;return(0,Re.useEffect)((()=>{s||"newest"!==t||$o()({path:(0,Ke.addQueryArgs)("/wp/v2/comments",{...r,post:n,per_page:o,_fields:"id"}),method:"HEAD",parse:!1}).then((e=>{l({...a,[i]:parseInt(e.headers.get("X-WP-TotalPages"))})}))}),[t,n,o,l]),"newest"===t?s:1},Uo=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function Oo(e){var t;let{comment:n,activeCommentId:o,setActiveCommentId:r,firstCommentId:a,blocks:l}=e;const{children:i,...s}=(0,Fe.useInnerBlocksProps)({},{template:Uo});return(0,Re.createElement)("li",s,n.commentId===(o||a)?i:null,(0,Re.createElement)(qo,{blocks:l,commentId:n.commentId,setActiveCommentId:r,isHidden:n.commentId===(o||a)}),(null==n||null===(t=n.children)||void 0===t?void 0:t.length)>0?(0,Re.createElement)(Wo,{comments:n.children,activeCommentId:o,setActiveCommentId:r,blocks:l,firstCommentId:a}):null)}const qo=(0,Re.memo)((e=>{let{blocks:t,commentId:n,setActiveCommentId:o,isHidden:r}=e;const a=(0,Fe.__experimentalUseBlockPreview)({blocks:t}),l=()=>{o(n)},i={display:r?"none":void 0};return(0,Re.createElement)("div",je({},a,{tabIndex:0,role:"button",style:i,onClick:l,onKeyPress:l}))})),Wo=e=>{let{comments:t,blockProps:n,activeCommentId:o,setActiveCommentId:r,blocks:a,firstCommentId:l}=e;return(0,Re.createElement)("ol",n,t&&t.map(((e,t)=>{let{commentId:n,...i}=e;return(0,Re.createElement)(Fe.BlockContextProvider,{key:i.commentId||t,value:{commentId:n<0?null:n}},(0,Re.createElement)(Oo,{comment:{commentId:n,...i},activeCommentId:o,setActiveCommentId:r,blocks:a,firstCommentId:l}))})))};const jo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/comment-template",title:"Comment Template",category:"design",parent:["core/comments-query-loop"],description:"Contains the block elements used to display a comment, like the title, date, author, avatar and more.",textdomain:"default",usesContext:["postId"],supports:{reusable:!1,html:!1,align:!0},style:"wp-block-comment-template"},{name:Zo}=jo,Qo={icon:Do,edit:function(e){var t;let{clientId:n,context:{postId:o}}=e;const r=(0,Fe.useBlockProps)(),[a,l]=(0,Re.useState)(),{commentOrder:i,threadCommentsDepth:s,threadComments:c,commentsPerPage:u}=(0,Ye.useSelect)((e=>{const{getSettings:t}=e(Fe.store);return t().__experimentalDiscussionSettings})),m=(e=>{let{postId:t}=e;const n={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{commentsPerPage:o,defaultCommentsPage:r}=(0,Ye.useSelect)((e=>{const{getSettings:t}=e(Fe.store),{__experimentalDiscussionSettings:n}=t();return n})),a=Go({defaultPage:r,postId:t,perPage:o,queryArgs:n});return(0,Re.useMemo)((()=>a?{...n,post:t,per_page:o,page:a}:null),[t,o,a])})({postId:o}),{topLevelComments:d,blocks:p}=(0,Ye.useSelect)((e=>{const{getEntityRecords:t}=e(Je.store),{getBlocks:o}=e(Fe.store);return{topLevelComments:m?t("root","comment",m):null,blocks:o(n)}}),[n,m]);let g=(e=>(0,Re.useMemo)((()=>null==e?void 0:e.map((e=>{let{id:t,_embedded:n}=e;const[o]=(null==n?void 0:n.children)||[[]];return{commentId:t,children:o.map((e=>({commentId:e.id})))}}))),[e]))("desc"===i&&d?[...d].reverse():d);return d?(o||(g=(e=>{let{perPage:t,threadComments:n,threadCommentsDepth:o}=e;const r=Math.min(o||3,3),a=t<=r?t:r;return n&&1!==a?2===a?[{commentId:-1,children:[{commentId:-2,children:[]}]}]:[{commentId:-1,children:[{commentId:-2,children:[{commentId:-3,children:[]}]}]}]:[{commentId:-1,children:[]}]})({perPage:u,threadComments:c,threadCommentsDepth:s})),g.length?(0,Re.createElement)(Wo,{comments:g,blockProps:r,blocks:p,activeCommentId:a,setActiveCommentId:l,firstCommentId:null===(t=g[0])||void 0===t?void 0:t.commentId}):(0,Re.createElement)("p",r," ",(0,De.__)("No results found."))):(0,Re.createElement)("p",r,(0,Re.createElement)(He.Spinner,null))},save:function(){return(0,Re.createElement)(Fe.InnerBlocks.Content,null)}};var Ko=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"}));const Jo={none:"",arrow:"",chevron:"«"};const Yo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/comments-pagination-previous",title:"Previous Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the previous comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:Xo}=Yo,er={icon:Ko,edit:function(e){let{attributes:{label:t},setAttributes:n,context:{"comments/paginationArrow":o}}=e;const r=Jo[o];return(0,Re.createElement)("a",je({href:"#comments-pagination-previous-pseudo-link",onClick:e=>e.preventDefault()},(0,Fe.useBlockProps)()),r&&(0,Re.createElement)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${o}`},r),(0,Re.createElement)(Fe.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,De.__)("Older comments page link"),placeholder:(0,De.__)("Older Comments"),value:t,onChange:e=>n({label:e})}))}};var tr=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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 nr(e){let{attributes:{TagName:t},setAttributes:n}=e;return(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(Fe.InspectorControls,{__experimentalGroup:"advanced"},(0,Re.createElement)(He.SelectControl,{label:(0,De.__)("HTML element"),options:[{label:(0,De.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}],value:t,onChange:e=>n({tagName:e})})))}const or=[["core/comment-template",{},[["core/columns",{},[["core/column",{width:"40px"},[["core/avatar",{size:40,style:{border:{radius:"20px"}}}]]],["core/column",{},[["core/comment-author-name"],["core/group",{layout:{type:"flex"},style:{spacing:{margin:{top:"0px",bottom:"0px"}}}},[["core/comment-date"],["core/comment-edit-link"]]],["core/comment-content"],["core/comment-reply-link"]]]]]]],["core/comments-pagination"]];const rr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/comments-query-loop",title:"Comments Query Loop",category:"theme",description:"An advanced block that allows displaying post comments using different visual configurations.",textdomain:"default",attributes:{tagName:{type:"string",default:"div"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}}},editorStyle:"wp-block-comments-editor"},{name:ar}=rr,lr={icon:tr,edit:function(e){let{attributes:t,setAttributes:n}=e;const{tagName:o}=t,r=(0,Fe.useBlockProps)(),a=(0,Fe.useInnerBlocksProps)(r,{template:or});return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(nr,{attributes:t,setAttributes:n}),(0,Re.createElement)(o,a))},save:function(e){let{attributes:{tagName:t}}=e;return(0,Re.createElement)(t,Fe.useBlockProps.save(),(0,Re.createElement)(Fe.InnerBlocks.Content,null))}};var ir=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"}));function sr(e){let{value:t,onChange:n}=e;return(0,Re.createElement)(He.__experimentalToggleGroupControl,{label:(0,De.__)("Arrow"),value:t,onChange:n,help:(0,De.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0},(0,Re.createElement)(He.__experimentalToggleGroupControlOption,{value:"none",label:(0,De._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Re.createElement)(He.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,De._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Re.createElement)(He.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,De._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")}))}const cr=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]];const ur={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/comments-pagination",title:"Comments Pagination",category:"theme",parent:["core/comments-query-loop"],description:"Displays a paginated navigation to next/previous set of comments, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"}},providesContext:{"comments/paginationArrow":"paginationArrow"},supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-comments-pagination-editor",style:"wp-block-comments-pagination"},{name:mr}=ur,dr={icon:ir,edit:function(e){let{attributes:{paginationArrow:t,layout:n},setAttributes:o,clientId:r,name:a}=e;const l=n||(e=>{const t=(0,Le.getBlockSupport)(e,"__experimentalLayout");return null==t?void 0:t.default})(a),i=(0,Ye.useSelect)((e=>{const{getBlocks:t}=e(Fe.store),n=t(r);return null==n?void 0:n.find((e=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(e.name)))}),[]),s=(0,Fe.useBlockProps)(),c=(0,Fe.useInnerBlocksProps)(s,{template:cr,allowedBlocks:["core/comments-pagination-previous","core/comments-pagination-numbers","core/comments-pagination-next"],__experimentalLayout:l});return(0,Re.createElement)(Re.Fragment,null,i&&(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Settings")},(0,Re.createElement)(sr,{value:t,onChange:e=>{o({paginationArrow:e})}}))),(0,Re.createElement)("div",c))},save:function(){return(0,Re.createElement)(Fe.InnerBlocks.Content,null)}};var pr=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"}));const gr={none:"",arrow:"",chevron:"»"};const hr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/comments-pagination-next",title:"Next Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the next comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:vr}=hr,br={icon:pr,edit:function(e){let{attributes:{label:t},setAttributes:n,context:{"comments/paginationArrow":o}}=e;const r=gr[o];return(0,Re.createElement)("a",je({href:"#comments-pagination-next-pseudo-link",onClick:e=>e.preventDefault()},(0,Fe.useBlockProps)()),(0,Re.createElement)(Fe.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,De.__)("Newer comments page link"),placeholder:(0,De.__)("Newer Comments"),value:t,onChange:e=>n({label:e})}),r&&(0,Re.createElement)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${o}`},r))}};var yr=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M4 13.5h6v-3H4v3zm8.2-2.5.8-.3V14h1V9.3l-2.2.7.4 1zm7.1-1.2c-.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.5h2.7v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3-.1-.8-.3-1.1z"}));const fr=e=>{let{content:t,tag:n="a",extraClass:o=""}=e;return(0,Re.createElement)(n,{className:`page-numbers ${o}`},t)};const _r={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/comments-pagination-numbers",title:"Page Numbers",category:"theme",parent:["core/comments-pagination"],description:"Displays a list of page numbers for comments pagination.",textdomain:"default",usesContext:["postId"],supports:{reusable:!1,html:!1}},{name:kr}=_r,wr={icon:yr,edit:function(){return(0,Re.createElement)("div",(0,Fe.useBlockProps)(),(0,Re.createElement)(fr,{content:"1"}),(0,Re.createElement)(fr,{content:"2"}),(0,Re.createElement)(fr,{content:"3",tag:"span",extraClass:"current"}),(0,Re.createElement)(fr,{content:"4"}),(0,Re.createElement)(fr,{content:"5"}),(0,Re.createElement)(fr,{content:"...",tag:"span",extraClass:"dots"}),(0,Re.createElement)(fr,{content:"8"}))}};var xr=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));const Er={"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"},Cr="image",Sr="video";function Br(e){return e?{backgroundImage:`url(${e})`}:{}}const Tr=["image","video"];function Nr(e){return 50===e||void 0===!e?null:"has-background-dim-"+10*Math.round(e/10)}function Pr(e){return!e||"center center"===e||"center"===e}function zr(e){return Pr(e)?"":Er[e]}function Ir(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function Mr(e){return{...e,dimRatio:e.url?e.dimRatio:100}}const Lr={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"}},Rr={attributes:{url:{type:"string"},id:{type:"number"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},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"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},save(e){let{attributes:t}=e;const{backgroundType:n,gradient:o,contentPosition:r,customGradient:a,customOverlayColor:l,dimRatio:i,focalPoint:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:d,url:p,alt:g,id:h,minHeight:v,minHeightUnit:b}=t,y=(0,Fe.getColorClassName)("background-color",d),f=(0,Fe.__experimentalGetGradientClass)(o),_=b?`${v}${b}`:v,k=Cr===n,w=Sr===n,x=!(c||m),E={...k&&!x?Br(p):{},minHeight:_||void 0},C={backgroundColor:y?void 0:l,background:a||void 0},S=s&&x?`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`:void 0,B=Qe()({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!Pr(r)},zr(r)),T=o||a;return(0,Re.createElement)("div",Fe.useBlockProps.save({className:B,style:E}),(0,Re.createElement)("span",{"aria-hidden":"true",className:Qe()("wp-block-cover__background",y,Nr(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":p&&T&&0!==i,"has-background-gradient":T,[f]:f}),style:C}),k&&x&&p&&(0,Re.createElement)("img",{className:Qe()("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:g,src:p,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),w&&p&&(0,Re.createElement)("video",{className:Qe()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,Re.createElement)("div",Fe.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})))}},Vr={attributes:{url:{type:"string"},id:{type:"number"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},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"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},save(e){let{attributes:t}=e;const{backgroundType:n,gradient:o,contentPosition:r,customGradient:a,customOverlayColor:l,dimRatio:i,focalPoint:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:d,url:p,alt:g,id:h,minHeight:v,minHeightUnit:b}=t,y=(0,Fe.getColorClassName)("background-color",d),f=(0,Fe.__experimentalGetGradientClass)(o),_=b?`${v}${b}`:v,k=Cr===n,w=Sr===n,x=!(c||m),E={...k&&!x?Br(p):{},minHeight:_||void 0},C={backgroundColor:y?void 0:l,background:a||void 0},S=s&&x?`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`:void 0,B=Qe()({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!Pr(r)},zr(r));return(0,Re.createElement)("div",Fe.useBlockProps.save({className:B,style:E}),(0,Re.createElement)("span",{"aria-hidden":"true",className:Qe()(y,Nr(i),"wp-block-cover__gradient-background",f,{"has-background-dim":void 0!==i,"has-background-gradient":o||a,[f]:!p&&f}),style:C}),k&&x&&p&&(0,Re.createElement)("img",{className:Qe()("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:g,src:p,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),w&&p&&(0,Re.createElement)("video",{className:Qe()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,Re.createElement)("div",Fe.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})))}},Ar={attributes:{...Lr,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""}},supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},save(e){let{attributes:t}=e;const{backgroundType:n,gradient:o,contentPosition:r,customGradient:a,customOverlayColor:l,dimRatio:i,focalPoint:s,hasParallax:c,isRepeated:u,overlayColor:m,url:d,alt:p,id:g,minHeight:h,minHeightUnit:v}=t,b=(0,Fe.getColorClassName)("background-color",m),y=(0,Fe.__experimentalGetGradientClass)(o),f=v?`${h}${v}`:h,_=Cr===n,k=Sr===n,w=!(c||u),x={..._&&!w?Br(d):{},backgroundColor:b?void 0:l,background:a&&!d?a:void 0,minHeight:f||void 0},E=s&&w?`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`:void 0,C=Qe()(Ir(i),b,{"has-background-dim":0!==i,"has-parallax":c,"is-repeated":u,"has-background-gradient":o||a,[y]:!d&&y,"has-custom-content-position":!Pr(r)},zr(r));return(0,Re.createElement)("div",Fe.useBlockProps.save({className:C,style:x}),d&&(o||a)&&0!==i&&(0,Re.createElement)("span",{"aria-hidden":"true",className:Qe()("wp-block-cover__gradient-background",y),style:a?{background:a}:void 0}),_&&w&&d&&(0,Re.createElement)("img",{className:Qe()("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:p,src:d,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),k&&d&&(0,Re.createElement)("video",{className:Qe()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),(0,Re.createElement)("div",{className:"wp-block-cover__inner-container"},(0,Re.createElement)(Fe.InnerBlocks.Content,null)))},migrate:Mr},Hr={attributes:{...Lr,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save(e){let{attributes:t}=e;const{backgroundType:n,gradient:o,contentPosition:r,customGradient:a,customOverlayColor:l,dimRatio:i,focalPoint:s,hasParallax:c,isRepeated:u,overlayColor:m,url:d,minHeight:p,minHeightUnit:g}=t,h=(0,Fe.getColorClassName)("background-color",m),v=(0,Fe.__experimentalGetGradientClass)(o),b=g?`${p}${g}`:p,y=Cr===n,f=Sr===n,_=y?Br(d):{},k={};let w;h||(_.backgroundColor=l),a&&!d&&(_.background=a),_.minHeight=b||void 0,s&&(w=`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`,y&&!c&&(_.backgroundPosition=w),f&&(k.objectPosition=w));const x=Qe()(Ir(i),h,{"has-background-dim":0!==i,"has-parallax":c,"is-repeated":u,"has-background-gradient":o||a,[v]:!d&&v,"has-custom-content-position":!Pr(r)},zr(r));return(0,Re.createElement)("div",Fe.useBlockProps.save({className:x,style:_}),d&&(o||a)&&0!==i&&(0,Re.createElement)("span",{"aria-hidden":"true",className:Qe()("wp-block-cover__gradient-background",v),style:a?{background:a}:void 0}),f&&d&&(0,Re.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:k}),(0,Re.createElement)("div",{className:"wp-block-cover__inner-container"},(0,Re.createElement)(Fe.InnerBlocks.Content,null)))},migrate:Mr},Dr={attributes:{...Lr,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save(e){let{attributes:t}=e;const{backgroundType:n,gradient:o,customGradient:r,customOverlayColor:a,dimRatio:l,focalPoint:i,hasParallax:s,overlayColor:c,url:u,minHeight:m}=t,d=(0,Fe.getColorClassName)("background-color",c),p=(0,Fe.__experimentalGetGradientClass)(o),g=n===Cr?Br(u):{};d||(g.backgroundColor=a),i&&!s&&(g.backgroundPosition=`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`),r&&!u&&(g.background=r),g.minHeight=m||void 0;const h=Qe()(Ir(l),d,{"has-background-dim":0!==l,"has-parallax":s,"has-background-gradient":r,[p]:!u&&p});return(0,Re.createElement)("div",{className:h,style:g},u&&(o||r)&&0!==l&&(0,Re.createElement)("span",{"aria-hidden":"true",className:Qe()("wp-block-cover__gradient-background",p),style:r?{background:r}:void 0}),Sr===n&&u&&(0,Re.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,Re.createElement)("div",{className:"wp-block-cover__inner-container"},(0,Re.createElement)(Fe.InnerBlocks.Content,null)))},migrate:Mr},Fr={attributes:{...Lr,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save(e){let{attributes:t}=e;const{backgroundType:n,gradient:o,customGradient:r,customOverlayColor:a,dimRatio:l,focalPoint:i,hasParallax:s,overlayColor:c,url:u,minHeight:m}=t,d=(0,Fe.getColorClassName)("background-color",c),p=(0,Fe.__experimentalGetGradientClass)(o),g=n===Cr?Br(u):{};d||(g.backgroundColor=a),i&&!s&&(g.backgroundPosition=`${100*i.x}% ${100*i.y}%`),r&&!u&&(g.background=r),g.minHeight=m||void 0;const h=Qe()(Ir(l),d,{"has-background-dim":0!==l,"has-parallax":s,"has-background-gradient":r,[p]:!u&&p});return(0,Re.createElement)("div",{className:h,style:g},u&&(o||r)&&0!==l&&(0,Re.createElement)("span",{"aria-hidden":"true",className:Qe()("wp-block-cover__gradient-background",p),style:r?{background:r}:void 0}),Sr===n&&u&&(0,Re.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,Re.createElement)("div",{className:"wp-block-cover__inner-container"},(0,Re.createElement)(Fe.InnerBlocks.Content,null)))},migrate:Mr},$r={attributes:{...Lr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save(e){let{attributes:t}=e;const{backgroundType:n,contentAlign:o,customOverlayColor:r,dimRatio:a,focalPoint:l,hasParallax:i,overlayColor:s,title:c,url:u}=t,m=(0,Fe.getColorClassName)("background-color",s),d=n===Cr?Br(u):{};m||(d.backgroundColor=r),l&&!i&&(d.backgroundPosition=`${100*l.x}% ${100*l.y}%`);const p=Qe()(Ir(a),m,{"has-background-dim":0!==a,"has-parallax":i,[`has-${o}-content`]:"center"!==o});return(0,Re.createElement)("div",{className:p,style:d},Sr===n&&u&&(0,Re.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!Fe.RichText.isEmpty(c)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:c}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100};return[(0,ht.omit)(t,["title","contentAlign"]),[(0,Le.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,De.__)("Write title")})]]}},Gr={attributes:{...Lr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save(e){let{attributes:t}=e;const{url:n,title:o,hasParallax:r,dimRatio:a,align:l,contentAlign:i,overlayColor:s,customOverlayColor:c}=t,u=(0,Fe.getColorClassName)("background-color",s),m=Br(n);u||(m.backgroundColor=c);const d=Qe()("wp-block-cover-image",Ir(a),u,{"has-background-dim":0!==a,"has-parallax":r,[`has-${i}-content`]:"center"!==i},l?`align${l}`:null);return(0,Re.createElement)("div",{className:d,style:m},!Fe.RichText.isEmpty(o)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:o}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100};return[(0,ht.omit)(t,["title","contentAlign","align"]),[(0,Le.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,De.__)("Write title")})]]}},Ur={attributes:{...Lr,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save(e){let{attributes:t}=e;const{url:n,title:o,hasParallax:r,dimRatio:a,align:l}=t,i=Br(n),s=Qe()("wp-block-cover-image",Ir(a),{"has-background-dim":0!==a,"has-parallax":r},l?`align${l}`:null);return(0,Re.createElement)("section",{className:s,style:i},(0,Re.createElement)(Fe.RichText.Content,{tagName:"h2",value:o}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100};return[(0,ht.omit)(t,["title","contentAlign","align"]),[(0,Le.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,De.__)("Write title")})]]}};var Or=[Rr,Vr,Ar,Hr,Dr,Fr,$r,Gr,Ur],qr=n(5027),Wr=n.n(qr),jr={grad:.9,turn:360,rad:360/(2*Math.PI)},Zr=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Qr=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Kr=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Jr=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Yr=function(e){return{r:Kr(e.r,0,255),g:Kr(e.g,0,255),b:Kr(e.b,0,255),a:Kr(e.a)}},Xr=function(e){return{r:Qr(e.r),g:Qr(e.g),b:Qr(e.b),a:Qr(e.a,3)}},ea=/^#([0-9a-f]{3,8})$/i,ta=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},na=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,a=Math.max(t,n,o),l=a-Math.min(t,n,o),i=l?a===t?(n-o)/l:a===n?2+(o-t)/l:4+(t-n)/l:0;return{h:60*(i<0?i+6:i),s:a?l/a*100:0,v:a/255*100,a:r}},oa=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var a=Math.floor(t),l=o*(1-n),i=o*(1-(t-a)*n),s=o*(1-(1-t+a)*n),c=a%6;return{r:255*[o,i,l,l,s,o][c],g:255*[s,o,o,i,l,l][c],b:255*[l,l,s,o,o,i][c],a:r}},ra=function(e){return{h:Jr(e.h),s:Kr(e.s,0,100),l:Kr(e.l,0,100),a:Kr(e.a)}},aa=function(e){return{h:Qr(e.h),s:Qr(e.s),l:Qr(e.l),a:Qr(e.a,3)}},la=function(e){return oa((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},ia=function(e){return{h:(t=na(e)).h,s:(r=(200-(n=t.s))*(o=t.v)/100)>0&&r<200?n*o/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,o,r},sa=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ca=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ua=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ma=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,da={string:[[function(e){var t=ea.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Qr(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Qr(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=ua.exec(e)||ma.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Yr({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=sa.exec(e)||ca.exec(e);if(!t)return null;var n,o,r=ra({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(jr[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return la(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,r=e.a,a=void 0===r?1:r;return Zr(t)&&Zr(n)&&Zr(o)?Yr({r:Number(t),g:Number(n),b:Number(o),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,r=e.a,a=void 0===r?1:r;if(!Zr(t)||!Zr(n)||!Zr(o))return null;var l=ra({h:Number(t),s:Number(n),l:Number(o),a:Number(a)});return la(l)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,r=e.a,a=void 0===r?1:r;if(!Zr(t)||!Zr(n)||!Zr(o))return null;var l=function(e){return{h:Jr(e.h),s:Kr(e.s,0,100),v:Kr(e.v,0,100),a:Kr(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(a)});return oa(l)},"hsv"]]},pa=function(e,t){for(var n=0;n<t.length;n++){var o=t[n][0](e);if(o)return[o,t[n][1]]}return[null,void 0]},ga=function(e){return"string"==typeof e?pa(e.trim(),da.string):"object"==typeof e&&null!==e?pa(e,da.object):[null,void 0]},ha=function(e,t){var n=ia(e);return{h:n.h,s:Kr(n.s+100*t,0,100),l:n.l,a:n.a}},va=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},ba=function(e,t){var n=ia(e);return{h:n.h,s:n.s,l:Kr(n.l+100*t,0,100),a:n.a}},ya=function(){function e(e){this.parsed=ga(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Qr(va(this.rgba),2)},e.prototype.isDark=function(){return va(this.rgba)<.5},e.prototype.isLight=function(){return va(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Xr(this.rgba)).r,n=e.g,o=e.b,a=(r=e.a)<1?ta(Qr(255*r)):"","#"+ta(t)+ta(n)+ta(o)+a;var e,t,n,o,r,a},e.prototype.toRgb=function(){return Xr(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Xr(this.rgba)).r,n=e.g,o=e.b,(r=e.a)<1?"rgba("+t+", "+n+", "+o+", "+r+")":"rgb("+t+", "+n+", "+o+")";var e,t,n,o,r},e.prototype.toHsl=function(){return aa(ia(this.rgba))},e.prototype.toHslString=function(){return t=(e=aa(ia(this.rgba))).h,n=e.s,o=e.l,(r=e.a)<1?"hsla("+t+", "+n+"%, "+o+"%, "+r+")":"hsl("+t+", "+n+"%, "+o+"%)";var e,t,n,o,r},e.prototype.toHsv=function(){return e=na(this.rgba),{h:Qr(e.h),s:Qr(e.s),v:Qr(e.v),a:Qr(e.a,3)};var e},e.prototype.invert=function(){return fa({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),fa(ha(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),fa(ha(this.rgba,-e))},e.prototype.grayscale=function(){return fa(ha(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),fa(ba(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),fa(ba(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?fa({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Qr(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=ia(this.rgba);return"number"==typeof e?fa({h:e,s:t.s,l:t.l,a:t.a}):Qr(t.h)},e.prototype.isEqual=function(e){return this.toHex()===fa(e).toHex()},e}(),fa=function(e){return e instanceof ya?e:new ya(e)},_a=[];var ka=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"})),wa=window.wp.notices;!function(e){e.forEach((function(e){_a.indexOf(e)<0&&(e(ya,da),_a.push(e))}))}([function(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var r in n)o[n[r]]=r;var a={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,l,i=o[this.toHex()];if(i)return i;if(null==t?void 0:t.closest){var s=this.toRgb(),c=1/0,u="black";if(!a.length)for(var m in n)a[m]=new e(n[m]).toRgb();for(var d in n){var p=(r=s,l=a[d],Math.pow(r.r-l.r,2)+Math.pow(r.g-l.g,2)+Math.pow(r.b-l.b,2));p<c&&(c=p,u=d)}return u}},t.string.push([function(t){var o=t.toLowerCase(),r="transparent"===o?"#0000":n[o];return r?new e(r).toRgb():null},"name"])}]);const{__Visualizer:xa}=He.__experimentalBoxControl;function Ea(){return Ea.fastAverageColor||(Ea.fastAverageColor=new(Wr())),Ea.fastAverageColor}function Ca(e){let{onChange:t,onUnitChange:n,unit:o="px",value:r=""}=e;const a=`block-cover-height-input-${(0,Rt.useInstanceId)(He.__experimentalUnitControl)}`,l="px"===o,i=(0,He.__experimentalUseCustomUnits)({availableUnits:(0,Fe.useSetting)("spacing.units")||["px","em","rem","vw","vh"],defaultValues:{px:430,"%":20,em:20,rem:20,vw:20,vh:50}}),s=(0,Re.useMemo)((()=>{const[e]=(0,He.__experimentalParseQuantityAndUnitFromRawValue)(r);return[e,o].join("")}),[o,r]),c=l?50:0;return(0,Re.createElement)(He.BaseControl,{label:(0,De.__)("Minimum height of cover"),id:a},(0,Re.createElement)(He.__experimentalUnitControl,{id:a,isResetValueOnUnitChange:!0,min:c,onChange:e=>{const n=""!==e?parseFloat(e):void 0;isNaN(n)&&void 0!==n||t(n)},onUnitChange:n,style:{maxWidth:80},units:i,value:s}))}const Sa={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};function Ba(e){let{className:t,onResizeStart:n,onResize:o,onResizeStop:r,...a}=e;const[l,i]=(0,Re.useState)(!1);return(0,Re.createElement)(He.ResizableBox,je({className:Qe()(t,{"is-resizing":l}),enable:Sa,onResizeStart:(e,t,r)=>{n(r.clientHeight),o(r.clientHeight)},onResize:(e,t,n)=>{o(n.clientHeight),l||i(!0)},onResizeStop:(e,t,n)=>{r(n.clientHeight),i(!1)}},a))}function Ta(e){let{x:t,y:n}=e;return`${Math.round(100*t)}% ${Math.round(100*n)}%`}function Na(e){let{disableMediaButtons:t=!1,children:n,onSelectMedia:o,onError:r,style:a}=e;return(0,Re.createElement)(Fe.MediaPlaceholder,{icon:(0,Re.createElement)(Fe.BlockIcon,{icon:xr}),labels:{title:(0,De.__)("Cover"),instructions:(0,De.__)("Drag and drop onto this block, upload, or select existing media from your library.")},onSelect:o,accept:"image/*,video/*",allowedTypes:Tr,disableMediaButtons:t,onError:r,style:a},n)}var Pa=(0,Rt.compose)([(0,Fe.withColors)({overlayColor:"background-color"})])((function(e){var t,n,o;let{attributes:r,clientId:a,isSelected:l,overlayColor:i,setAttributes:s,setOverlayColor:c,toggleSelection:u,context:{postId:m,postType:d}}=e;const{contentPosition:p,id:g,useFeaturedImage:h,dimRatio:v,focalPoint:b,hasParallax:y,isDark:f,isRepeated:_,minHeight:k,minHeightUnit:w,style:x,alt:E,allowedBlocks:C,templateLock:S}=r,[B]=(0,Je.useEntityProp)("postType",d,"featured_media",m),T=(0,Ye.useSelect)((e=>B&&e(Je.store).getMedia(B,{context:"view"})),[B]),N=null==T?void 0:T.source_url,P=h?N:r.url,z=h?Cr:r.backgroundType,{__unstableMarkNextChangeAsNotPersistent:I}=(0,Ye.useDispatch)(Fe.store),{createErrorNotice:M}=(0,Ye.useDispatch)(wa.store),{gradientClass:L,gradientValue:R,setGradient:V}=(0,Fe.__experimentalUseGradient)(),A=function(e,t){return n=>{if(!n||!n.url)return void e({url:void 0,id:void 0});let o;if((0,dt.isBlobURL)(n.url)&&(n.type=(0,dt.getBlobTypeByURL)(n.url)),n.media_type)o=n.media_type===Cr?Cr:Sr;else{if(n.type!==Cr&&n.type!==Sr)return;o=n.type}e({dimRatio:100===t?50:t,url:n.url,id:n.id,alt:null==n?void 0:n.alt,backgroundType:o,...o===Sr?{focalPoint:void 0,hasParallax:void 0}:{}})}}(s,v),H=((e,t)=>!e&&(0,dt.isBlobURL)(t))(g,P),[D,F]=(0,Re.useState)(k),[$,G]=(0,Re.useState)(w),U="vh"===w&&100===k,O=e=>{M(Array.isArray(e)?e[2]:e,{type:"snackbar"})},q=(0,Re.useRef)(),W=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;const[r,a]=(0,Re.useState)(!1);return(0,Re.useEffect)((()=>{e&&t<=50&&o.current&&Ea().getColorAsync(o.current,(e=>{a(e.isDark)}))}),[e,e&&t<=50&&o.current,a]),(0,Re.useEffect)((()=>{if(t>50||!e){if(!n)return void a(!0);a(fa(n).isDark())}}),[n,t>50||!e,a]),(0,Re.useEffect)((()=>{e||n||a(!1)}),[!e&&!n,a]),r}(P,v,i.color,q);(0,Re.useEffect)((()=>{I(),s({isDark:W})}),[W]);const j=Cr===z,Z=Sr===z,Q=k&&w?`${k}${w}`:k,K=!(y||_),J={...j&&!K?Br(P):void 0,minHeight:Q||void 0},Y={backgroundColor:i.color},X={objectPosition:b&&K?Ta(b):void 0},ee=!!(P||i.color||R),te=Z||j&&(!y||_),ne=e=>{const[t,n]=q.current?[q.current.style,"objectPosition"]:[ae.current.style,"backgroundPosition"];t[n]=Ta(e)},oe=(0,Ye.useSelect)((e=>e(Fe.store).getBlock(a).innerBlocks.length>0),[a]),re=(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(Fe.__experimentalBlockAlignmentMatrixControl,{label:(0,De.__)("Change content position"),value:p,onChange:e=>s({contentPosition:e}),isDisabled:!oe}),(0,Re.createElement)(Fe.__experimentalBlockFullHeightAligmentControl,{isActive:U,onToggle:()=>U?s("vh"===$&&100===D?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:D,minHeightUnit:$}):(F(k),G(w),s({minHeight:100,minHeightUnit:"vh"})),isDisabled:!oe})),(0,Re.createElement)(Fe.BlockControls,{group:"other"},(0,Re.createElement)(He.ToolbarButton,{icon:ka,label:(0,De.__)("Use featured image"),isPressed:h,onClick:()=>{s({useFeaturedImage:!h,dimRatio:100===v?50:v})}}),!h&&(0,Re.createElement)(Fe.MediaReplaceFlow,{mediaId:g,mediaURL:P,allowedTypes:Tr,accept:"image/*,video/*",onSelect:A,name:P?(0,De.__)("Replace"):(0,De.__)("Add Media")})),(0,Re.createElement)(Fe.InspectorControls,null,!!P&&(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Media settings")},j&&(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Fixed background"),checked:y,onChange:()=>{s({hasParallax:!y,...y?{}:{focalPoint:void 0}})}}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Repeated background"),checked:_,onChange:()=>{s({isRepeated:!_})}})),te&&(0,Re.createElement)(He.FocalPointPicker,{label:(0,De.__)("Focal point picker"),url:P,value:b,onDragStart:ne,onDrag:ne,onChange:e=>s({focalPoint:e})}),!h&&P&&j&&K&&(0,Re.createElement)(He.TextareaControl,{label:(0,De.__)("Alt text (alternative text)"),value:E,onChange:e=>s({alt:e}),help:(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(He.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,De.__)("Describe the purpose of the image")),(0,De.__)("Leave empty if the image is purely decorative."))}),(0,Re.createElement)(He.PanelRow,null,(0,Re.createElement)(He.Button,{variant:"secondary",isSmall:!0,className:"block-library-cover__reset-button",onClick:()=>s({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:!1})},(0,De.__)("Clear Media")))),(0,Re.createElement)(Fe.__experimentalPanelColorGradientSettings,{__experimentalHasMultipleOrigins:!0,__experimentalIsRenderedInSidebar:!0,title:(0,De.__)("Overlay"),initialOpen:!0,settings:[{colorValue:i.color,gradientValue:R,onColorChange:c,onGradientChange:V,label:(0,De.__)("Color")}]},(0,Re.createElement)(He.RangeControl,{label:(0,De.__)("Opacity"),value:v,onChange:e=>s({dimRatio:e}),min:0,max:100,step:10,required:!0}))),(0,Re.createElement)(Fe.InspectorControls,{__experimentalGroup:"dimensions"},(0,Re.createElement)(He.__experimentalToolsPanelItem,{hasValue:()=>!!k,label:(0,De.__)("Minimum height"),onDeselect:()=>s({minHeight:void 0,minHeightUnit:void 0}),resetAllFilter:()=>({minHeight:void 0,minHeightUnit:void 0}),isShownByDefault:!0,panelId:a},(0,Re.createElement)(Ca,{value:k,unit:w,onChange:e=>s({minHeight:e}),onUnitChange:e=>s({minHeightUnit:e})})))),ae=(0,Re.useRef)(),le=(0,Fe.useBlockProps)({ref:ae}),ie=function(e){return[["core/paragraph",{align:"center",placeholder:(0,De.__)("Write title"),...e}]]}({fontSize:!(null===(t=(0,Fe.useSetting)("typography.fontSizes"))||void 0===t||!t.length)?"large":void 0}),se=(0,Fe.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:ie,templateInsertUpdatesSelection:!0,allowedBlocks:C,templateLock:S});if(!oe&&!ee)return(0,Re.createElement)(Re.Fragment,null,re,(0,Re.createElement)("div",je({},le,{className:Qe()("is-placeholder",le.className)}),(0,Re.createElement)(Na,{onSelectMedia:A,onError:O,style:{minHeight:Q||void 0}},(0,Re.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},(0,Re.createElement)(Fe.ColorPalette,{disableCustomColors:!0,value:i.color,onChange:c,clearable:!1}))),(0,Re.createElement)(Ba,{className:"block-library-cover__resize-container",onResizeStart:()=>{s({minHeightUnit:"px"}),u(!1)},onResize:e=>{s({minHeight:e})},onResizeStop:e=>{u(!0),s({minHeight:e})},showHandle:l})));const ce=Qe()({"is-dark-theme":f,"is-light":!f,"is-transient":H,"has-parallax":y,"is-repeated":_,"has-custom-content-position":!Pr(p)},zr(p));return(0,Re.createElement)(Re.Fragment,null,re,(0,Re.createElement)("div",je({},le,{className:Qe()(ce,le.className),style:{...J,...le.style},"data-url":P}),(0,Re.createElement)(xa,{values:null==x||null===(n=x.spacing)||void 0===n?void 0:n.padding,showValues:null==x||null===(o=x.visualizers)||void 0===o?void 0:o.padding,className:"block-library-cover__padding-visualizer"}),(0,Re.createElement)(Ba,{className:"block-library-cover__resize-container",onResizeStart:()=>{s({minHeightUnit:"px"}),u(!1)},onResize:e=>{s({minHeight:e})},onResizeStop:e=>{u(!0),s({minHeight:e})},showHandle:l}),(0,Re.createElement)("span",{"aria-hidden":"true",className:Qe()("wp-block-cover__background",Nr(v),{[i.class]:i.class,"has-background-dim":void 0!==v,"wp-block-cover__gradient-background":P&&R&&0!==v,"has-background-gradient":R,[L]:L}),style:{backgroundImage:R,...Y}}),P&&j&&K&&(0,Re.createElement)("img",{ref:q,className:"wp-block-cover__image-background",alt:E,src:P,style:X}),P&&Z&&(0,Re.createElement)("video",{ref:q,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:P,style:X}),H&&(0,Re.createElement)(He.Spinner,null),(0,Re.createElement)(Na,{disableMediaButtons:!0,onSelectMedia:A,onError:O}),(0,Re.createElement)("div",se)))}));var za={from:[{type:"block",blocks:["core/image"],transform:e=>{var t;let{caption:n,url:o,alt:r,align:a,id:l,anchor:i,style:s}=e;return(0,Le.createBlock)("core/cover",{dimRatio:50,url:o,alt:r,align:a,id:l,anchor:i,style:{color:{duotone:null==s||null===(t=s.color)||void 0===t?void 0:t.duotone}}},[(0,Le.createBlock)("core/paragraph",{content:n,fontSize:"large",align:"center"})])}},{type:"block",blocks:["core/video"],transform:e=>{let{caption:t,src:n,align:o,id:r,anchor:a}=e;return(0,Le.createBlock)("core/cover",{dimRatio:50,url:n,align:o,id:r,backgroundType:Sr,anchor:a},[(0,Le.createBlock)("core/paragraph",{content:t,fontSize:"large",align:"center"})])}},{type:"block",blocks:["core/group"],isMatch:e=>{var t,n;let{backgroundColor:o,gradient:r,style:a}=e;return o||(null==a||null===(t=a.color)||void 0===t?void 0:t.background)||(null==a||null===(n=a.color)||void 0===n?void 0:n.gradient)||r},transform:(e,t)=>{var n,o;let{align:r,anchor:a,backgroundColor:l,gradient:i,style:s}=e;return(0,Le.createBlock)("core/cover",{align:r,anchor:a,overlayColor:l,customOverlayColor:null==s||null===(n=s.color)||void 0===n?void 0:n.background,gradient:i,customGradient:null==s||null===(o=s.color)||void 0===o?void 0:o.gradient},t)}}],to:[{type:"block",blocks:["core/image"],isMatch:e=>{let{backgroundType:t,url:n,overlayColor:o,customOverlayColor:r,gradient:a,customGradient:l}=e;return n?t===Cr:!(o||r||a||l)},transform:e=>{var t;let{title:n,url:o,alt:r,align:a,id:l,anchor:i,style:s}=e;return(0,Le.createBlock)("core/image",{caption:n,url:o,alt:r,align:a,id:l,anchor:i,style:{color:{duotone:null==s||null===(t=s.color)||void 0===t?void 0:t.duotone}}})}},{type:"block",blocks:["core/video"],isMatch:e=>{let{backgroundType:t,url:n,overlayColor:o,customOverlayColor:r,gradient:a,customGradient:l}=e;return n?t===Sr:!(o||r||a||l)},transform:e=>{let{title:t,url:n,align:o,id:r,anchor:a}=e;return(0,Le.createBlock)("core/video",{caption:t,src:n,id:r,align:o,anchor:a})}}]};const Ia={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/cover",title:"Cover",category:"media",description:"Add an image or video with a text overlay great for headers.",textdomain:"default",attributes:{url:{type:"string"},useFeaturedImage:{type:"boolean",default:!1},id:{type:"number"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},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"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},usesContext:["postId","postType"],supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"},{name:Ma}=Ia,La={icon:xr,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:(0,De.__)("<strong>Snow Patrol</strong>"),align:"center"}}]},transforms:za,save:function(e){let{attributes:t}=e;const{backgroundType:n,gradient:o,contentPosition:r,customGradient:a,customOverlayColor:l,dimRatio:i,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:d,overlayColor:p,url:g,alt:h,id:v,minHeight:b,minHeightUnit:y}=t,f=(0,Fe.getColorClassName)("background-color",p),_=(0,Fe.__experimentalGetGradientClass)(o),k=b&&y?`${b}${y}`:b,w=Cr===n,x=Sr===n,E=!(u||d),C={...!w||E||c?{}:Br(g),minHeight:k||void 0},S={backgroundColor:f?void 0:l,background:a||void 0},B=s&&E?`${Math.round(100*s.x)}% ${Math.round(100*s.y)}%`:void 0,T=Qe()({"is-light":!m,"has-parallax":u,"is-repeated":d,"has-custom-content-position":!Pr(r)},zr(r)),N=o||a;return(0,Re.createElement)("div",Fe.useBlockProps.save({className:T,style:C}),(0,Re.createElement)("span",{"aria-hidden":"true",className:Qe()("wp-block-cover__background",f,Nr(i),{"has-background-dim":void 0!==i,"wp-block-cover__gradient-background":g&&N&&0!==i,"has-background-gradient":N,[_]:_}),style:S}),!c&&w&&E&&g&&(0,Re.createElement)("img",{className:Qe()("wp-block-cover__image-background",v?`wp-image-${v}`:null),alt:h,src:g,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}),x&&g&&(0,Re.createElement)("video",{className:Qe()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:g,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}),(0,Re.createElement)("div",Fe.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})))},edit:Pa,deprecated:Or};var Ra=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));function Va(e){return e?(0,De.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,De.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var Aa=e=>{let{blockSupportsResponsive:t,showEditButton:n,themeSupportsResponsive:o,allowResponsive:r,toggleResponsive:a,switchBackToURLInput:l}=e;return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,null,(0,Re.createElement)(He.ToolbarGroup,null,n&&(0,Re.createElement)(He.ToolbarButton,{className:"components-toolbar__control",label:(0,De.__)("Edit URL"),icon:Ra,onClick:l}))),o&&t&&(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Media settings"),className:"blocks-responsive"},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Resize for smaller devices"),checked:r,help:Va,onChange:a}))))};const Ha=(0,Re.createElement)(He.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.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"})),Da=(0,Re.createElement)(He.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.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"})),Fa=(0,Re.createElement)(He.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.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=(0,Re.createElement)(He.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.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"})),Ga={foreground:"#1da1f2",src:(0,Re.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(He.G,null,(0,Re.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"})))},Ua={foreground:"#ff0000",src:(0,Re.createElement)(He.SVG,{viewBox:"0 0 24 24"},(0,Re.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"}))},Oa={foreground:"#3b5998",src:(0,Re.createElement)(He.SVG,{viewBox:"0 0 24 24"},(0,Re.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"}))},qa=(0,Re.createElement)(He.SVG,{viewBox:"0 0 24 24"},(0,Re.createElement)(He.G,null,(0,Re.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"}))),Wa={foreground:"#0073AA",src:(0,Re.createElement)(He.SVG,{viewBox:"0 0 24 24"},(0,Re.createElement)(He.G,null,(0,Re.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"})))},ja={foreground:"#1db954",src:(0,Re.createElement)(He.SVG,{viewBox:"0 0 24 24"},(0,Re.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"}))},Za=(0,Re.createElement)(He.SVG,{viewBox:"0 0 24 24"},(0,Re.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"})),Qa={foreground:"#1ab7ea",src:(0,Re.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(He.G,null,(0,Re.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"})))},Ka=(0,Re.createElement)(He.SVG,{viewBox:"0 0 24 24"},(0,Re.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"})),Ja={foreground:"#35465c",src:(0,Re.createElement)(He.SVG,{viewBox:"0 0 24 24"},(0,Re.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"}))},Ya=(0,Re.createElement)(He.SVG,{viewBox:"0 0 24 24"},(0,Re.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"}),(0,Re.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"}),(0,Re.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"})),Xa=(0,Re.createElement)(He.SVG,{viewBox:"0 0 24 24"},(0,Re.createElement)(He.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,Re.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"}),(0,Re.createElement)(He.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,Re.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"}),(0,Re.createElement)(He.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,Re.createElement)(He.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),el=(0,Re.createElement)(He.SVG,{viewBox:"0 0 24 24"},(0,Re.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"})),tl=(0,Re.createElement)(He.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(He.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"})),nl=(0,Re.createElement)(He.SVG,{viewBox:"0 0 44 44"},(0,Re.createElement)(He.Path,{d:"M32.59521,22.001l4.31885-4.84473-6.34131-1.38379.646-6.459-5.94336,2.61035L22,6.31934l-3.27344,5.60351L12.78418,9.3125l.645,6.458L7.08643,17.15234,11.40479,21.999,7.08594,26.84375l6.34131,1.38379-.64551,6.458,5.94287-2.60938L22,37.68066l3.27344-5.60351,5.94287,2.61035-.64551-6.458,6.34277-1.38183Zm.44385,2.75244L30.772,23.97827l-1.59558-2.07391,1.97888.735Zm-8.82147,6.1579L22.75,33.424V30.88977l1.52228-2.22168ZM18.56226,13.48816,19.819,15.09534l-2.49219-.88642L15.94037,12.337Zm6.87719.00116,2.62043-1.15027-1.38654,1.86981L24.183,15.0946Zm3.59357,2.6029-1.22546,1.7381.07525-2.73486,1.44507-1.94867ZM22,29.33008l-2.16406-3.15686L22,23.23688l2.16406,2.93634Zm-4.25458-9.582-.10528-3.836,3.60986,1.284v3.73242Zm5.00458-2.552,3.60986-1.284-.10528,3.836L22.75,20.92853Zm-7.78174-1.10559-.29352-2.94263,1.44245,1.94739.07519,2.73321Zm2.30982,5.08319,3.50817,1.18164-2.16247,2.9342-3.678-1.08447Zm2.4486,7.49285L21.25,30.88977v2.53485L19.78052,30.91Zm3.48707-6.31121,3.50817-1.18164,2.33228,3.03137-3.678,1.08447Zm10.87219-4.28113-2.714,3.04529L28.16418,19.928l1.92176-2.72565ZM24.06036,12.81769l-2.06012,2.6322-2.059-2.63318L22,9.292ZM9.91455,18.07227l4.00079-.87195,1.921,2.72735-3.20794,1.19019Zm2.93024,4.565,1.9801-.73462L13.228,23.97827l-2.26838.77429Zm-1.55591,3.58819L13.701,25.4021l2.64935.78058-2.14447.67853Zm3.64868,1.977L18.19,27.17334l.08313,3.46332L14.52979,32.2793Zm10.7876,2.43549.08447-3.464,3.25165,1.03052.407,4.07684Zm4.06824-3.77478-2.14545-.68,2.65063-.781,2.41266.825Z"}));var ol=()=>(0,Re.createElement)("div",{className:"wp-block-embed is-loading"},(0,Re.createElement)(He.Spinner,null));var rl=e=>{let{icon:t,label:n,value:o,onSubmit:r,onChange:a,cannotEmbed:l,fallback:i,tryAgain:s}=e;return(0,Re.createElement)(He.Placeholder,{icon:(0,Re.createElement)(Fe.BlockIcon,{icon:t,showColors:!0}),label:n,className:"wp-block-embed",instructions:(0,De.__)("Paste a link to the content you want to display on your site.")},(0,Re.createElement)("form",{onSubmit:r},(0,Re.createElement)("input",{type:"url",value:o||"",className:"components-placeholder__input","aria-label":n,placeholder:(0,De.__)("Enter URL to embed here"),onChange:a}),(0,Re.createElement)(He.Button,{variant:"primary",type:"submit"},(0,De._x)("Embed","button label"))),(0,Re.createElement)("div",{className:"components-placeholder__learn-more"},(0,Re.createElement)(He.ExternalLink,{href:(0,De.__)("https://wordpress.org/support/article/embeds/")},(0,De.__)("Learn more about embeds"))),l&&(0,Re.createElement)("div",{className:"components-placeholder__error"},(0,Re.createElement)("div",{className:"components-placeholder__instructions"},(0,De.__)("Sorry, this content could not be embedded.")),(0,Re.createElement)(He.Button,{variant:"secondary",onClick:s},(0,De._x)("Try again","button label"))," ",(0,Re.createElement)(He.Button,{variant:"secondary",onClick:i},(0,De._x)("Convert to link","button label"))))};const al={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function ll(e){let{html:t}=e;const n=(0,Re.useRef)(),o=(0,Re.useMemo)((()=>{const e=(new window.DOMParser).parseFromString(t,"text/html").querySelector("iframe"),n={};return e?(Array.from(e.attributes).forEach((e=>{let{name:t,value:o}=e;"style"!==t&&(n[al[t]||t]=o)})),n):n}),[t]);return(0,Re.useEffect)((()=>{const{ownerDocument:e}=n.current,{defaultView:t}=e;function r(e){let{data:{secret:t,message:r,value:a}={}}=e;"height"===r&&t===o["data-secret"]&&(n.current.height=a)}return t.addEventListener("message",r),()=>{t.removeEventListener("message",r)}}),[]),(0,Re.createElement)("div",{className:"wp-block-embed__wrapper"},(0,Re.createElement)("iframe",je({ref:(0,Rt.useMergeRefs)([n,(0,Rt.useFocusableIframe)()]),title:o.title},o)))}class il extends Re.Component{constructor(){super(...arguments),this.hideOverlay=this.hideOverlay.bind(this),this.state={interactive:!1}}static getDerivedStateFromProps(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}hideOverlay(){this.setState({interactive:!0})}render(){const{preview:e,previewable:t,url:n,type:o,caption:r,onCaptionChange:a,isSelected:l,className:i,icon:s,label:c,insertBlocksAfter:u}=this.props,{scripts:m}=e,{interactive:d}=this.state,p="photo"===o?(e=>{const t=e.thumbnail_url||e.url,n=(0,Re.createElement)("p",null,(0,Re.createElement)("img",{src:t,alt:e.title,width:"100%"}));return(0,Re.renderToString)(n)})(e):e.html,g=new URL(n).host.split("."),h=g.splice(g.length-2,g.length-1).join("."),v=(0,De.sprintf)((0,De.__)("Embedded content from %s"),h),b=bt()(o,i,"wp-block-embed__wrapper"),y="wp-embed"===o?(0,Re.createElement)(ll,{html:p}):(0,Re.createElement)("div",{className:"wp-block-embed__wrapper"},(0,Re.createElement)(He.SandBox,{html:p,scripts:m,title:v,type:b,onFocus:this.hideOverlay}),!d&&(0,Re.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return(0,Re.createElement)("figure",{className:bt()(i,"wp-block-embed",{"is-type-video":"video"===o})},t?y:(0,Re.createElement)(He.Placeholder,{icon:(0,Re.createElement)(Fe.BlockIcon,{icon:s,showColors:!0}),label:c},(0,Re.createElement)("p",{className:"components-placeholder__error"},(0,Re.createElement)("a",{href:n},n)),(0,Re.createElement)("p",{className:"components-placeholder__error"},(0,De.sprintf)((0,De.__)("Embedded content from %s can't be previewed in the editor."),h))),(!Fe.RichText.isEmpty(r)||l)&&(0,Re.createElement)(Fe.RichText,{tagName:"figcaption",placeholder:(0,De.__)("Add caption"),value:r,onChange:a,inlineToolbar:!0,__unstableOnSplitAtEnd:()=>u((0,Le.createBlock)("core/paragraph"))}))}}var sl=il;var cl=e=>{const{attributes:{providerNameSlug:t,previewable:n,responsive:o,url:r},attributes:a,isSelected:l,onReplace:i,setAttributes:s,insertBlocksAfter:c,onFocus:u}=e,m={title:(0,De._x)("Embed","block title"),icon:Ha},{icon:d,title:p}=(g=t,(null===(h=(0,Le.getBlockVariations)(_t))||void 0===h?void 0:h.find((e=>{let{name:t}=e;return t===g})))||m);var g,h;const[v,b]=(0,Re.useState)(r),[y,f]=(0,Re.useState)(!1),{invalidateResolution:_}=(0,Ye.useDispatch)(Je.store),{preview:k,fetching:w,themeSupportsResponsive:x,cannotEmbed:E}=(0,Ye.useSelect)((e=>{var t;const{getEmbedPreview:n,isPreviewEmbedFallback:o,isRequestingEmbedPreview:a,getThemeSupports:l}=e(Je.store);if(!r)return{fetching:!1,cannotEmbed:!1};const i=n(r),s=o(r),c=!1===(null==i?void 0:i.html)&&void 0===(null==i?void 0:i.type),u=404===(null==i||null===(t=i.data)||void 0===t?void 0:t.status),m=!!i&&!c&&!u;return{preview:m?i:void 0,fetching:a(r),themeSupportsResponsive:l()["responsive-embeds"],cannotEmbed:!m||s}}),[r]),C=()=>{const{allowResponsive:e,className:t}=a;return{...a,...St(k,p,t,o,e)}};(0,Re.useEffect)((()=>{if(null==k||!k.html||!E||w)return;const e=r.replace(/\/$/,"");b(e),f(!1),s({url:e})}),[null==k?void 0:k.html,r]),(0,Re.useEffect)((()=>{if(k&&!y&&(s(C()),i)){const t=xt(e,C());t&&i(t)}}),[k,y]);const S=(0,Fe.useBlockProps)();if(w)return(0,Re.createElement)(Ve.View,S,(0,Re.createElement)(ol,null));const B=(0,De.sprintf)((0,De.__)("%s URL"),p);if(!k||E||y)return(0,Re.createElement)(Ve.View,S,(0,Re.createElement)(rl,{icon:d,label:B,onFocus:u,onSubmit:e=>{e&&e.preventDefault(),f(!1),s({url:v})},value:v,cannotEmbed:E,onChange:e=>b(e.target.value),fallback:()=>function(e,t){const n=(0,Re.createElement)("a",{href:e},e);t((0,Le.createBlock)("core/paragraph",{content:(0,Re.renderToString)(n)}))}(v,i),tryAgain:()=>{_("getEmbedPreview",[v])}}));const{caption:T,type:N,allowResponsive:P,className:z}=C(),I=Qe()(z,e.className);return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Aa,{showEditButton:k&&!E,themeSupportsResponsive:x,blockSupportsResponsive:o,allowResponsive:P,toggleResponsive:()=>{const{allowResponsive:e,className:t}=a,{html:n}=k,r=!e;s({allowResponsive:r,className:Ct(n,t,o&&r)})},switchBackToURLInput:()=>f(!0)}),(0,Re.createElement)(Ve.View,S,(0,Re.createElement)(sl,{preview:k,previewable:n,className:I,url:v,type:N,caption:T,onCaptionChange:e=>s({caption:e}),isSelected:l,icon:d,label:B,insertBlocksAfter:c})))};const{name:ul}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",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},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"};var ml={from:[{type:"raw",isMatch:e=>{var t,n;return"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)&&1===(null===(t=e.textContent)||void 0===t||null===(n=t.match(/https/gi))||void 0===n?void 0:n.length)},transform:e=>(0,Le.createBlock)(ul,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],isMatch:e=>{let{url:t}=e;return!!t},transform:e=>{let{url:t,caption:n}=e,o=`<a href="${t}">${t}</a>`;return null!=n&&n.trim()&&(o+=`<br />${n}`),(0,Le.createBlock)("core/paragraph",{content:o})}}]};const dl=[{name:"twitter",title:"Twitter",icon:Ga,keywords:["tweet",(0,De.__)("social")],description:(0,De.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:"YouTube",icon:Ua,keywords:[(0,De.__)("music"),(0,De.__)("video")],description:(0,De.__)("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:Oa,keywords:[(0,De.__)("social")],description:(0,De.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:"Instagram",icon:qa,keywords:[(0,De.__)("image"),(0,De.__)("social")],description:(0,De.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:"WordPress",icon:Wa,keywords:[(0,De.__)("post"),(0,De.__)("blog")],description:(0,De.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:"SoundCloud",icon:Da,keywords:[(0,De.__)("music"),(0,De.__)("audio")],description:(0,De.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:"Spotify",icon:ja,keywords:[(0,De.__)("music"),(0,De.__)("audio")],description:(0,De.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:"Flickr",icon:Za,keywords:[(0,De.__)("image")],description:(0,De.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:"Vimeo",icon:Qa,keywords:[(0,De.__)("video")],description:(0,De.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:"Animoto",icon:Xa,description:(0,De.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:"Cloudup",icon:Ha,description:(0,De.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:"CollegeHumor",icon:$a,description:(0,De.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:"Crowdsignal",icon:Ha,keywords:["polldaddy",(0,De.__)("survey")],description:(0,De.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:"Dailymotion",icon:el,keywords:[(0,De.__)("video")],description:(0,De.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:"Imgur",icon:Fa,description:(0,De.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:"Issuu",icon:Ha,description:(0,De.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:"Kickstarter",icon:Ha,description:(0,De.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:"Mixcloud",icon:Da,keywords:[(0,De.__)("music"),(0,De.__)("audio")],description:(0,De.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"reddit",title:"Reddit",icon:Ka,description:(0,De.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:"ReverbNation",icon:Da,description:(0,De.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"screencast",title:"Screencast",icon:$a,description:(0,De.__)("Embed Screencast content."),patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i],attributes:{providerNameSlug:"screencast",responsive:!0}},{name:"scribd",title:"Scribd",icon:Ha,description:(0,De.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"slideshare",title:"Slideshare",icon:Ha,description:(0,De.__)("Embed Slideshare content."),patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i],attributes:{providerNameSlug:"slideshare",responsive:!0}},{name:"smugmug",title:"SmugMug",icon:Fa,description:(0,De.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:"Speaker Deck",icon:Ha,description:(0,De.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:"TikTok",icon:$a,keywords:[(0,De.__)("video")],description:(0,De.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:"TED",icon:$a,description:(0,De.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:"Tumblr",icon:Ja,keywords:[(0,De.__)("social")],description:(0,De.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:"VideoPress",icon:$a,keywords:[(0,De.__)("video")],description:(0,De.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:"WordPress.tv",icon:$a,description:(0,De.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:"Amazon Kindle",icon:Ya,keywords:[(0,De.__)("ebook")],description:(0,De.__)("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"}},{name:"pinterest",title:"Pinterest",icon:tl,keywords:[(0,De.__)("social"),(0,De.__)("bookmark")],description:(0,De.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:"Wolfram",icon:nl,description:(0,De.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}}];dl.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.providerNameSlug===t.providerNameSlug)}));var pl=dl;const{attributes:gl}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",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},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"};var hl=[{attributes:gl,save(e){let{attributes:{url:t,caption:n,type:o,providerNameSlug:r}}=e;if(!t)return null;const a=Qe()("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${r}`]:r});return(0,Re.createElement)("figure",{className:a},`\n${t}\n`,!Fe.RichText.isEmpty(n)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",value:n}))}}];const vl={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",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},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},{name:bl}=vl,yl={icon:Ha,edit:cl,save:function(e){let{attributes:t}=e;const{url:n,caption:o,type:r,providerNameSlug:a}=t;if(!n)return null;const l=bt()("wp-block-embed",{[`is-type-${r}`]:r,[`is-provider-${a}`]:a,[`wp-block-embed-${a}`]:a});return(0,Re.createElement)("figure",Fe.useBlockProps.save({className:l}),(0,Re.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${n}\n`),!Fe.RichText.isEmpty(o)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",value:o}))},transforms:ml,variations:pl,deprecated:hl};var fl=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"}));const _l=[{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]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save(e){let{attributes:t}=e;const{href:n,fileName:o,textLinkHref:r,textLinkTarget:a,showDownloadButton:l,downloadButtonText:i,displayPreview:s,previewHeight:c}=t,u=Fe.RichText.isEmpty(o)?(0,De.__)("PDF embed"):(0,De.sprintf)((0,De.__)("Embed of %s."),o);return n&&(0,Re.createElement)("div",Fe.useBlockProps.save(),s&&(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)("object",{className:"wp-block-file__embed",data:n,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})),!Fe.RichText.isEmpty(o)&&(0,Re.createElement)("a",{href:r,target:a,rel:a?"noreferrer noopener":void 0},(0,Re.createElement)(Fe.RichText.Content,{value:o})),l&&(0,Re.createElement)("a",{href:n,className:"wp-block-file__button",download:!0},(0,Re.createElement)(Fe.RichText.Content,{value:i})))}}];var kl=_l;function wl(e){let{hrefs:t,openInNewWindow:n,showDownloadButton:o,changeLinkDestinationOption:r,changeOpenInNewWindow:a,changeShowDownloadButton:l,displayPreview:i,changeDisplayPreview:s,previewHeight:c,changePreviewHeight:u}=e;const{href:m,textLinkHref:d,attachmentPage:p}=t;let g=[{value:m,label:(0,De.__)("URL")}];return p&&(g=[{value:m,label:(0,De.__)("Media file")},{value:p,label:(0,De.__)("Attachment page")}]),(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.InspectorControls,null,m.endsWith(".pdf")&&(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("PDF settings")},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Show inline embed"),help:i?(0,De.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!i,onChange:s}),i&&(0,Re.createElement)(He.RangeControl,{label:(0,De.__)("Height in pixels"),min:Cl,max:Math.max(Sl,c),value:c,onChange:u})),(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Text link settings")},(0,Re.createElement)(He.SelectControl,{label:(0,De.__)("Link to"),value:d,options:g,onChange:r}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Open in new tab"),checked:n,onChange:a})),(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Download button settings")},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Show download button"),checked:o,onChange:l}))))}const xl=()=>!(window.navigator.userAgent.indexOf("Mobi")>-1)&&(!(window.navigator.userAgent.indexOf("Android")>-1)&&(!(window.navigator.userAgent.indexOf("Macintosh")>-1&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2)&&!((window.ActiveXObject||"ActiveXObject"in window)&&!El("AcroPDF.PDF")&&!El("PDF.PdfCtrl")))),El=e=>{let t;try{t=new window.ActiveXObject(e)}catch(e){t=void 0}return t},Cl=200,Sl=2e3;function Bl(e){let{text:t,disabled:n}=e;const{createNotice:o}=(0,Ye.useDispatch)(wa.store),r=(0,Rt.useCopyToClipboard)(t,(()=>{o("info",(0,De.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})}));return(0,Re.createElement)(He.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:r,disabled:n},(0,De.__)("Copy URL"))}var Tl=(0,He.withNotices)((function(e){let{attributes:t,isSelected:n,setAttributes:o,noticeUI:r,noticeOperations:a,clientId:l}=e;const{id:i,fileId:s,fileName:c,href:u,textLinkHref:m,textLinkTarget:d,showDownloadButton:p,downloadButtonText:g,displayPreview:h,previewHeight:v}=t,{media:b,mediaUpload:y}=(0,Ye.useSelect)((e=>({media:void 0===i?void 0:e(Je.store).getMedia(i),mediaUpload:e(Fe.store).getSettings().mediaUpload})),[i]),{toggleSelection:f,__unstableMarkNextChangeAsNotPersistent:_}=(0,Ye.useDispatch)(Fe.store);function k(e){if(e&&e.url){const t=e.url.endsWith(".pdf");o({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id,displayPreview:!!t||void 0,previewHeight:t?600:void 0})}}function w(e){o({href:void 0}),a.removeAllNotices(),a.createErrorNotice(e)}function x(e){o({downloadButtonText:e.replace(/<\/?a[^>]*>/g,"")})}(0,Re.useEffect)((()=>{if((0,dt.isBlobURL)(u)){const e=(0,dt.getBlobByURL)(u);y({filesList:[e],onFileChange:e=>{let[t]=e;return k(t)},onError:w}),(0,dt.revokeBlobURL)(u)}void 0===g&&x((0,De._x)("Download","button label"))}),[]),(0,Re.useEffect)((()=>{!s&&u&&(_(),o({fileId:`wp-block-file--media-${l}`}))}),[u,s,l]);const E=b&&b.link,C=(0,Fe.useBlockProps)({className:Qe()((0,dt.isBlobURL)(u)&&(0,He.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":(0,dt.isBlobURL)(u)})}),S=xl()&&h;return u?(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(wl,{hrefs:{href:u,textLinkHref:m,attachmentPage:E},openInNewWindow:!!d,showDownloadButton:p,changeLinkDestinationOption:function(e){o({textLinkHref:e})},changeOpenInNewWindow:function(e){o({textLinkTarget:!!e&&"_blank"})},changeShowDownloadButton:function(e){o({showDownloadButton:e})},displayPreview:h,changeDisplayPreview:function(e){o({displayPreview:e})},previewHeight:v,changePreviewHeight:function(e){const t=Math.max(parseInt(e,10),Cl);o({previewHeight:t})}}),(0,Re.createElement)(Fe.BlockControls,{group:"other"},(0,Re.createElement)(Fe.MediaReplaceFlow,{mediaId:i,mediaURL:u,accept:"*",onSelect:k,onError:w}),(0,Re.createElement)(Bl,{text:u,disabled:(0,dt.isBlobURL)(u)})),(0,Re.createElement)("div",C,S&&(0,Re.createElement)(He.ResizableBox,{size:{height:v},minHeight:Cl,maxHeight:Sl,minWidth:"100%",grid:[10,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>f(!1),onResizeStop:function(e,t,n,r){f(!0);const a=parseInt(v+r.height,10);o({previewHeight:a})},showHandle:n},(0,Re.createElement)("object",{className:"wp-block-file__preview",data:u,type:"application/pdf","aria-label":(0,De.__)("Embed of the selected PDF file.")}),!n&&(0,Re.createElement)("div",{className:"wp-block-file__preview-overlay"})),(0,Re.createElement)("div",{className:"wp-block-file__content-wrapper"},(0,Re.createElement)(Fe.RichText,{tagName:"a",value:c,placeholder:(0,De.__)("Write file name"),withoutInteractiveFormatting:!0,onChange:e=>o({fileName:e}),href:m}),p&&(0,Re.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},(0,Re.createElement)(Fe.RichText,{tagName:"div","aria-label":(0,De.__)("Download button text"),className:"wp-block-file__button",value:g,withoutInteractiveFormatting:!0,placeholder:(0,De.__)("Add text"),onChange:e=>x(e)}))))):(0,Re.createElement)("div",C,(0,Re.createElement)(Fe.MediaPlaceholder,{icon:(0,Re.createElement)(Fe.BlockIcon,{icon:fl}),labels:{title:(0,De.__)("File"),instructions:(0,De.__)("Upload a file or pick one from your media library.")},onSelect:k,notices:r,onError:w,accept:"*"}))}));const Nl={from:[{type:"files",isMatch:e=>e.length>0,priority:15,transform:e=>{const t=[];return e.forEach((e=>{const n=(0,dt.createBlobURL)(e);t.push((0,Le.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))})),t}},{type:"block",blocks:["core/audio"],transform:e=>(0,Le.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],transform:e=>(0,Le.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],transform:e=>(0,Le.createBlock)("core/file",{href:e.url,fileName:e.caption||(0,Ke.getFilename)(e.url),textLinkHref:e.url,id:e.id,anchor:e.anchor})}],to:[{type:"block",blocks:["core/audio"],isMatch:e=>{let{id:t}=e;if(!t)return!1;const{getMedia:n}=(0,Ye.select)(Je.store),o=n(t);return!!o&&(0,ht.includes)(o.mime_type,"audio")},transform:e=>(0,Le.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:e=>{let{id:t}=e;if(!t)return!1;const{getMedia:n}=(0,Ye.select)(Je.store),o=n(t);return!!o&&(0,ht.includes)(o.mime_type,"video")},transform:e=>(0,Le.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:e=>{let{id:t}=e;if(!t)return!1;const{getMedia:n}=(0,Ye.select)(Je.store),o=n(t);return!!o&&(0,ht.includes)(o.mime_type,"image")},transform:e=>(0,Le.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]};var Pl=Nl;const zl={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/file",title:"File",category:"media",description:"Add a link to a downloadable file.",keywords:["document","pdf","download"],textdomain:"default",attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},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]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},viewScript:"file:./view.min.js",editorStyle:"wp-block-file-editor",style:"wp-block-file"},{name:Il}=zl,Ml={icon:fl,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,De._x)("Armstrong_Small_Step","Name of the file")}},transforms:Pl,deprecated:kl,edit:Tl,save:function(e){let{attributes:t}=e;const{href:n,fileId:o,fileName:r,textLinkHref:a,textLinkTarget:l,showDownloadButton:i,downloadButtonText:s,displayPreview:c,previewHeight:u}=t,m=Fe.RichText.isEmpty(r)?(0,De.__)("PDF embed"):(0,De.sprintf)((0,De.__)("Embed of %s."),r),d=!Fe.RichText.isEmpty(r),p=d?o:void 0;return n&&(0,Re.createElement)("div",Fe.useBlockProps.save(),c&&(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)("object",{className:"wp-block-file__embed",data:n,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":m})),d&&(0,Re.createElement)("a",{id:p,href:a,target:l,rel:l?"noreferrer noopener":void 0},(0,Re.createElement)(Fe.RichText.Content,{value:r})),i&&(0,Re.createElement)("a",{href:n,className:"wp-block-file__button",download:!0,"aria-describedby":p},(0,Re.createElement)(Fe.RichText.Content,{value:s})))}};var Ll=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"}));const Rl="none",Vl="media",Al="attachment";const Hl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large";const n=(0,ht.pick)(e,["alt","id","link","caption"]);n.url=(0,ht.get)(e,["sizes",t,"url"])||(0,ht.get)(e,["media_details","sizes",t,"source_url"])||e.url;const o=(0,ht.get)(e,["sizes","full","url"])||(0,ht.get)(e,["media_details","sizes","full","source_url"]);return o&&(n.fullUrl=o),n};const Dl="file",Fl="post";function $l(e){var t;return Math.min(3,null==e||null===(t=e.images)||void 0===t?void 0:t.length)}function Gl(e,t){switch(t){case Dl:return{href:(null==e?void 0:e.source_url)||(null==e?void 0:e.url),linkDestination:Vl};case Fl:return{href:null==e?void 0:e.link,linkDestination:Al};case Vl:return{href:(null==e?void 0:e.source_url)||(null==e?void 0:e.url),linkDestination:Vl};case Al:return{href:null==e?void 0:e.link,linkDestination:Al};case Rl:return{href:void 0,linkDestination:Rl}}return{}}function Ul(e){let t=e.linkTo?e.linkTo:"none";"post"===t?t="attachment":"file"===t&&(t="media");const n=e.images.map((n=>function(e,t,n){return(0,Le.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...Gl(e,n)})}(n,e.sizeSlug,t)));return[{...(0,ht.omit)(e,["images","ids"]),linkTo:t,allowResize:!1},n]}const Ol={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},fixedHeight:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0},save(e){let{attributes:t}=e;const{images:n,columns:o=$l(t),imageCrop:r,caption:a,linkTo:l}=t,i=`columns-${o} ${r?"is-cropped":""}`;return(0,Re.createElement)("figure",Fe.useBlockProps.save({className:i}),(0,Re.createElement)("ul",{className:"blocks-gallery-grid"},n.map((e=>{let t;switch(l){case Dl:t=e.fullUrl||e.url;break;case Fl:t=e.link}const n=(0,Re.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-${e.id}`:null});return(0,Re.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,Re.createElement)("figure",null,t?(0,Re.createElement)("a",{href:t},n):n,!Fe.RichText.isEmpty(e.caption)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!Fe.RichText.isEmpty(a)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},migrate:e=>Ul(e)},ql={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(e){let{linkTo:t}=e;return!t||"attachment"===t||"media"===t},migrate:e=>Ul(e),save(e){let{attributes:t}=e;const{images:n,columns:o=$l(t),imageCrop:r,caption:a,linkTo:l}=t;return(0,Re.createElement)("figure",{className:`columns-${o} ${r?"is-cropped":""}`},(0,Re.createElement)("ul",{className:"blocks-gallery-grid"},n.map((e=>{let t;switch(l){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=(0,Re.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-${e.id}`:null});return(0,Re.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,Re.createElement)("figure",null,t?(0,Re.createElement)("a",{href:t},n):n,!Fe.RichText.isEmpty(e.caption)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!Fe.RichText.isEmpty(a)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},Wl={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(e){let{ids:t}=e;return t&&t.some((e=>"string"==typeof e))},migrate:e=>Ul(e),save(e){let{attributes:t}=e;const{images:n,columns:o=$l(t),imageCrop:r,caption:a,linkTo:l}=t;return(0,Re.createElement)("figure",{className:`columns-${o} ${r?"is-cropped":""}`},(0,Re.createElement)("ul",{className:"blocks-gallery-grid"},n.map((e=>{let t;switch(l){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=(0,Re.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-${e.id}`:null});return(0,Re.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,Re.createElement)("figure",null,t?(0,Re.createElement)("a",{href:t},n):n,!Fe.RichText.isEmpty(e.caption)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!Fe.RichText.isEmpty(a)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},jl={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(e){let{attributes:t}=e;const{images:n,columns:o=$l(t),imageCrop:r,linkTo:a}=t;return(0,Re.createElement)("ul",{className:`columns-${o} ${r?"is-cropped":""}`},n.map((e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=(0,Re.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-${e.id}`:null});return(0,Re.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,Re.createElement)("figure",null,t?(0,Re.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",value:e.caption})))})))},migrate:e=>Ul(e)},Zl={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(e){let{images:t,ids:n}=e;return t&&t.length>0&&(!n&&t||n&&t&&n.length!==t.length||(0,ht.some)(t,((e,t)=>!e&&null!==n[t]||parseInt(e,10)!==n[t])))},migrate:e=>Ul(e),supports:{align:!0},save(e){let{attributes:t}=e;const{images:n,columns:o=$l(t),imageCrop:r,linkTo:a}=t;return(0,Re.createElement)("ul",{className:`columns-${o} ${r?"is-cropped":""}`},n.map((e=>{let t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}const n=(0,Re.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,Re.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,Re.createElement)("figure",null,t?(0,Re.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},Ql={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(e){let{attributes:t}=e;const{images:n,columns:o=$l(t),align:r,imageCrop:a,linkTo:l}=t,i=Qe()(`columns-${o}`,{alignnone:"none"===r,"is-cropped":a});return(0,Re.createElement)("div",{className:i},n.map((e=>{let t;switch(l){case"media":t=e.url;break;case"attachment":t=e.link}const n=(0,Re.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return(0,Re.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?(0,Re.createElement)("a",{href:t},n):n)})))},migrate:e=>Ul(e)};var Kl=[Ol,ql,Wl,jl,Zl,Ql],Jl=window.wp.viewport;const Yl=(0,Re.createElement)(Fe.BlockIcon,{icon:Ll}),Xl=20,ei="none",ti="media",ni="attachment",oi="custom",ri=["noreferrer","noopener"],ai=["image"];function li(e,t){switch(t){case"file":case Vl:return{href:(null==e?void 0:e.source_url)||(null==e?void 0:e.url),linkDestination:ti};case"post":case Al:return{href:null==e?void 0:e.link,linkDestination:ni};case Rl:return{href:void 0,linkDestination:ei}}return{}}function ii(e,t){let{rel:n}=t;const o=e?"_blank":void 0;let r;return r=o||n?function(e){let t=e;return void 0===e||(0,ht.isEmpty)(t)||(0,ht.isEmpty)(t)||((0,ht.each)(ri,(e=>{const n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),(0,ht.isEmpty)(t)&&(t=void 0)),t}(n):void 0,{linkTarget:o,rel:r}}const si=["core/image"];function ci(e){let{isHidden:t,captionFocused:n,onFocusCaption:o,className:r,value:a,placeholder:l,tagName:i,captionRef:s,...c}=e;return t?(0,Re.createElement)(He.VisuallyHidden,je({as:Fe.RichText},c)):(0,Re.createElement)(Fe.RichText,je({ref:s,value:a,placeholder:l,className:r,tagName:i,isSelected:n,onClick:o},c))}var ui=e=>{const{attributes:t,isSelected:n,setAttributes:o,mediaPlaceholder:r,insertBlocksAfter:a,blockProps:l}=e,{align:i,columns:s,caption:c,imageCrop:u}=t,{children:m,...d}=(0,Fe.useInnerBlocksProps)(l,{allowedBlocks:si,orientation:"horizontal",renderAppender:!1,__experimentalLayout:{type:"default",alignments:[]}}),[p,g]=(0,Re.useState)(!1);return(0,Re.useEffect)((()=>{n||g(!1)}),[n]),(0,Re.createElement)("figure",je({},d,{className:Qe()(l.className,"blocks-gallery-grid",{[`align${i}`]:i,[`columns-${s}`]:void 0!==s,"columns-default":void 0===s,"is-cropped":u})}),m,n&&!m&&(0,Re.createElement)(Ve.View,{className:"blocks-gallery-media-placeholder-wrapper",onClick:function(){p&&g(!1)}},r),(0,Re.createElement)(ci,{isHidden:!n&&Fe.RichText.isEmpty(c),captionFocused:p,onFocusCaption:function(){p||g(!0)},tagName:"figcaption",className:"blocks-gallery-caption","aria-label":(0,De.__)("Gallery caption text"),placeholder:(0,De.__)("Write gallery caption"),value:c,onChange:e=>o({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>a((0,Le.createBlock)("core/paragraph"))}))};function mi(e,t,n){return(0,Re.useMemo)((()=>function(){if(!e||0===e.length)return;const{imageSizes:o}=n();let r={};t&&(r=e.reduce(((e,t)=>{if(!t.id)return e;const n=o.reduce(((e,n)=>{const o=(0,ht.get)(t,["sizes",n.slug,"url"]),r=(0,ht.get)(t,["media_details","sizes",n.slug,"source_url"]);return{...e,[n.slug]:o||r}}),{});return{...e,[parseInt(t.id,10)]:n}}),{}));return o.filter((e=>{let{slug:t}=e;return(0,ht.some)(r,(e=>e[t]))})).map((e=>{let{name:t,slug:n}=e;return{value:n,label:t}}))}()),[e,t])}function di(e,t){const[n,o]=(0,Re.useState)([]);return(0,Re.useMemo)((()=>function(){let r=!1;const a=n.filter((t=>e.find((e=>t.clientId===e.clientId))));a.length<n.length&&(r=!0);e.forEach((e=>{e.fromSavedContent&&!a.find((t=>t.id===e.id))&&(r=!0,a.push(e))}));const l=e.filter((e=>!a.find((t=>e.clientId&&t.clientId===e.clientId))&&(null==t?void 0:t.find((t=>t.id===e.id)))&&!e.fromSavedConent));(r||(null==l?void 0:l.length)>0)&&o([...a,...l]);return l.length>0?l:null}()),[e,t])}function pi(e){let{blockGap:t,clientId:n}=e;const o=(0,Re.useContext)(Fe.BlockList.__unstableElementContext),r=t||"var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )",a=`#block-${n} { \n\t\t--wp--style--unstable-gallery-gap: ${r};\n\t\tgap: ${r} \n\t}`;return a&&o?(0,Re.createPortal)((0,Re.createElement)((()=>(0,Re.createElement)("style",null,a)),null),o):null}const gi=[{value:Al,label:(0,De.__)("Attachment Page")},{value:Vl,label:(0,De.__)("Media File")},{value:Rl,label:(0,De._x)("None","Media item link option")}],hi=["image"],vi=Re.Platform.isNative?(0,De.__)("ADD MEDIA"):(0,De.__)("Drag images, upload new ones or select files from your library."),bi=Re.Platform.isNative?{type:"stepper"}:{};var yi=(0,Rt.compose)([He.withNotices,(0,Jl.withViewportMatch)({isNarrow:"< small"})])((function(e){var t,n;const{setAttributes:o,attributes:r,className:a,clientId:l,noticeOperations:i,isSelected:s,noticeUI:c,insertBlocksAfter:u}=e,{columns:m,imageCrop:d,linkTarget:p,linkTo:g,shortCodeTransforms:h,sizeSlug:v}=r,{__unstableMarkNextChangeAsNotPersistent:b,replaceInnerBlocks:y,updateBlockAttributes:f,selectBlock:_,clearSelectedBlock:k}=(0,Ye.useDispatch)(Fe.store),{createSuccessNotice:w}=(0,Ye.useDispatch)(wa.store),{getBlock:x,getSettings:E,preferredStyle:C}=(0,Ye.useSelect)((e=>{var t;const n=e(Fe.store).getSettings().__experimentalPreferredStyleVariations;return{getBlock:e(Fe.store).getBlock,getSettings:e(Fe.store).getSettings,preferredStyle:null==n||null===(t=n.value)||void 0===t?void 0:t["core/image"]}}),[]),S=(0,Ye.useSelect)((e=>{var t;return null===(t=e(Fe.store).getBlock(l))||void 0===t?void 0:t.innerBlocks}),[l]),B=(0,Ye.useSelect)((e=>e(Fe.store).wasBlockJustInserted(l,"inserter_menu")),[l]),T=(0,Re.useMemo)((()=>null==S?void 0:S.map((e=>({clientId:e.clientId,id:e.attributes.id,url:e.attributes.url,attributes:e.attributes,fromSavedContent:Boolean(e.originalContent)})))),[S]),N=function(e){const[t,n]=(0,Re.useState)([]),o=(0,Ye.useSelect)((n=>{if(null==e||!e.length)return t;const o=e.map((e=>e.attributes.id)).filter((e=>void 0!==e));return 0===o.length?t:n(Je.store).getMediaItems({include:o.join(","),per_page:-1})}),[e]);return(null==o?void 0:o.length)!==(null==t?void 0:t.length)||null!=o&&o.some((e=>!t.find((t=>t.id===e.id))))?(n(o),o):t}(S),P=di(T,N);(0,Re.useEffect)((()=>{null==P||P.forEach((e=>{f(e.clientId,{...M(e.attributes),id:e.id,align:void 0})})),(null==P?void 0:P.length)>0&&k()}),[P]);const z=function(e){const t=(0,Ye.useSelect)((t=>{if(!e||0===e.length)return;const n=t(Je.store).getMedia;return e.map((e=>{const t=n(e.id);if(t)return{id:t.id,type:"image",url:t.source_url,mime:t.mime_type,alt:t.alt_text,link:t.link}}))}),[e]);if(t)return(0,ht.every)(t,(e=>e&&e.url))?t:void 0}(h);(0,Re.useEffect)((()=>{h&&z&&(R(z),o({shortCodeTransforms:void 0}))}),[h,z]);const I=mi(N,s,E);function M(e){const t=e.id?(0,ht.find)(N,{id:e.id}):null;let n;return n=e.className&&""!==e.className?e.className:C?`is-style-${C}`:void 0,{...Hl(e,v),...li(t,g),...ii(p,r),className:n,sizeSlug:v}}function L(e){var t;return hi.some((t=>{var n;return 0===(null===(n=e.type)||void 0===n?void 0:n.indexOf(t))}))||0===(null===(t=e.url)||void 0===t?void 0:t.indexOf("blob:"))}function R(e){const t="[object FileList]"===Object.prototype.toString.call(e),n=t?Array.from(e).map((e=>e.url?e:Hl({url:(0,dt.createBlobURL)(e)}))):e;n.every(L)||(i.removeAllNotices(),i.createErrorNotice((0,De.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file"}));const o=n.filter((e=>e.url||L(e))).map((e=>e.url?e:Hl({url:(0,dt.createBlobURL)(e)}))),r=o.reduce(((e,t,n)=>(e[t.id]=n,e)),{}),a=t?S:S.filter((e=>o.find((t=>t.id===e.attributes.id)))),s=o.filter((e=>!a.find((t=>e.id===t.attributes.id)))).map((e=>(0,Le.createBlock)("core/image",{id:e.id,url:e.url,caption:e.caption,alt:e.alt})));(null==s?void 0:s.length)>0&&_(s[0].clientId),y(l,(0,ht.concat)(a,s).sort(((e,t)=>r[e.attributes.id]-r[t.attributes.id])))}(0,Re.useEffect)((()=>{var e,t,n,r,a,l;g||(b(),o({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===(a=r.settings)||void 0===a||null===(l=a.defaultProps)||void 0===l?void 0:l.link)||Rl}))}),[g]);const V=!!T.length,A=V&&T.some((e=>!!e.id)),H=T.some((e=>{var t;return!e.id&&0===(null===(t=e.url)||void 0===t?void 0:t.indexOf("blob:"))})),D=Re.Platform.select({web:{addToGallery:!1,disableMediaButtons:H,value:{}},native:{addToGallery:A,isAppender:V,disableMediaButtons:V&&!s||H,value:A?T:{},autoOpenMediaUpload:!V&&s&&B}}),F=(0,Re.createElement)(Fe.MediaPlaceholder,je({handleUpload:!1,icon:Yl,labels:{title:(0,De.__)("Gallery"),instructions:vi},onSelect:R,accept:"image/*",allowedTypes:hi,multiple:!0,onError:function(e){i.removeAllNotices(),i.createErrorNotice(e)},notices:c},D)),$=(0,Fe.useBlockProps)({className:Qe()(a,"has-nested-images")});if(!V)return(0,Re.createElement)(Ve.View,$,F);const G=g&&"none"!==g;return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Gallery settings")},T.length>1&&(0,Re.createElement)(He.RangeControl,je({label:(0,De.__)("Columns"),value:m||(U=T.length,U?Math.min(3,U):3),onChange:function(e){o({columns:e})},min:1,max:Math.min(8,T.length)},bi,{required:!0})),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Crop images"),checked:!!d,onChange:function(){o({imageCrop:!d})},help:function(e){return e?(0,De.__)("Thumbnails are cropped to align."):(0,De.__)("Thumbnails are not cropped.")}}),(0,Re.createElement)(He.SelectControl,{label:(0,De.__)("Link to"),value:g,onChange:function(e){o({linkTo:e});const t={},n=[];x(l).innerBlocks.forEach((o=>{n.push(o.clientId);const r=o.attributes.id?(0,ht.find)(N,{id:o.attributes.id}):null;t[o.clientId]=li(r,e)})),f(n,t,!0);const r=[...gi].find((t=>t.value===e));w((0,De.sprintf)((0,De.__)("All gallery image links updated to: %s"),r.label),{id:"gallery-attributes-linkTo",type:"snackbar"})},options:gi,hideCancelButton:!0}),G&&(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Open in new tab"),checked:"_blank"===p,onChange:function(e){const t=e?"_blank":void 0;o({linkTarget:t});const n={},r=[];x(l).innerBlocks.forEach((e=>{r.push(e.clientId),n[e.clientId]=ii(t,e.attributes)})),f(r,n,!0);const a=e?(0,De.__)("All gallery images updated to open in new tab"):(0,De.__)("All gallery images updated to not open in new tab");w(a,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}}),(null==I?void 0:I.length)>0&&(0,Re.createElement)(He.SelectControl,{label:(0,De.__)("Image size"),value:v,options:I,onChange:function(e){o({sizeSlug:e});const t={},n=[];x(l).innerBlocks.forEach((o=>{n.push(o.clientId);const r=o.attributes.id?(0,ht.find)(N,{id:o.attributes.id}):null;t[o.clientId]=function(e,t){const n=(0,ht.get)(e,["media_details","sizes",t,"source_url"]);return n?{url:n,width:void 0,height:void 0,sizeSlug:t}:{}}(r,e)})),f(n,t,!0);const r=I.find((t=>t.value===e));w((0,De.sprintf)((0,De.__)("All gallery image sizes updated to: %s"),r.label),{id:"gallery-attributes-sizeSlug",type:"snackbar"})},hideCancelButton:!0}),Re.Platform.isWeb&&!I&&A&&(0,Re.createElement)(He.BaseControl,{className:"gallery-image-sizes"},(0,Re.createElement)(He.BaseControl.VisualLabel,null,(0,De.__)("Image size")),(0,Re.createElement)(Ve.View,{className:"gallery-image-sizes__loading"},(0,Re.createElement)(He.Spinner,null),(0,De.__)("Loading options"))))),(0,Re.createElement)(Fe.BlockControls,{group:"other"},(0,Re.createElement)(Fe.MediaReplaceFlow,{allowedTypes:hi,accept:"image/*",handleUpload:!1,onSelect:R,name:(0,De.__)("Add"),multiple:!0,mediaIds:T.map((e=>e.id)),addToGallery:A})),c,Re.Platform.isWeb&&(0,Re.createElement)(pi,{blockGap:null===(t=r.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.blockGap,clientId:l}),(0,Re.createElement)(ui,je({},e,{images:T,mediaPlaceholder:!V||Re.Platform.isNative?F:void 0,blockProps:$,insertBlocksAfter:u})));var U}));const fi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large";const n=(0,ht.pick)(e,["alt","id","link","caption"]);n.url=(0,ht.get)(e,["sizes",t,"url"])||(0,ht.get)(e,["media_details","sizes",t,"source_url"])||e.url;const o=(0,ht.get)(e,["sizes","full","url"])||(0,ht.get)(e,["media_details","sizes","full","source_url"]);return o&&(n.fullUrl=o),n};var _i=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"}));var ki=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));var wi=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));var xi=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));const Ei="none",Ci="file",Si="post";class Bi extends Re.Component{constructor(){super(...arguments),this.onSelectImage=this.onSelectImage.bind(this),this.onRemoveImage=this.onRemoveImage.bind(this),this.bindContainer=this.bindContainer.bind(this),this.onEdit=this.onEdit.bind(this),this.onSelectImageFromLibrary=this.onSelectImageFromLibrary.bind(this),this.onSelectCustomURL=this.onSelectCustomURL.bind(this),this.state={isEditing:!1}}bindContainer(e){this.container=e}onSelectImage(){this.props.isSelected||this.props.onSelect()}onRemoveImage(e){this.container===this.container.ownerDocument.activeElement&&this.props.isSelected&&-1!==[Wt.BACKSPACE,Wt.DELETE].indexOf(e.keyCode)&&(e.preventDefault(),this.props.onRemove())}onEdit(){this.setState({isEditing:!0})}componentDidUpdate(){const{image:e,url:t,__unstableMarkNextChangeAsNotPersistent:n}=this.props;e&&!t&&(n(),this.props.setAttributes({url:e.source_url,alt:e.alt_text}))}deselectOnBlur(){this.props.onDeselect()}onSelectImageFromLibrary(e){const{setAttributes:t,id:n,url:o,alt:r,caption:a,sizeSlug:l}=this.props;if(!e||!e.url)return;let i=fi(e,l);((e,t)=>!e&&(0,dt.isBlobURL)(t))(n,o)&&r&&(i=(0,ht.omit)(i,["alt"])),a&&!(0,ht.get)(i,["caption"])&&(i=(0,ht.omit)(i,["caption"])),t(i),this.setState({isEditing:!1})}onSelectCustomURL(e){const{setAttributes:t,url:n}=this.props;e!==n&&(t({url:e,id:void 0}),this.setState({isEditing:!1}))}render(){const{url:e,alt:t,id:n,linkTo:o,link:r,isFirstItem:a,isLastItem:l,isSelected:i,caption:s,onRemove:c,onMoveForward:u,onMoveBackward:m,setAttributes:d,"aria-label":p}=this.props,{isEditing:g}=this.state;let h;switch(o){case Ci:h=e;break;case Si:h=r}const v=(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)("img",{src:e,alt:t,"data-id":n,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":p,ref:this.bindContainer}),(0,dt.isBlobURL)(e)&&(0,Re.createElement)(He.Spinner,null)),b=Qe()({"is-selected":i,"is-transient":(0,dt.isBlobURL)(e)});return(0,Re.createElement)("figure",{className:b,onClick:this.onSelectImage,onFocus:this.onSelectImage},!g&&(h?(0,Re.createElement)("a",{href:h},v):v),g&&(0,Re.createElement)(Fe.MediaPlaceholder,{labels:{title:(0,De.__)("Edit gallery image")},icon:_i,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:n,src:e}}),(0,Re.createElement)(He.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},(0,Re.createElement)(He.Button,{icon:ki,onClick:a?void 0:m,label:(0,De.__)("Move image backward"),"aria-disabled":a,disabled:!i}),(0,Re.createElement)(He.Button,{icon:wi,onClick:l?void 0:u,label:(0,De.__)("Move image forward"),"aria-disabled":l,disabled:!i})),(0,Re.createElement)(He.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},(0,Re.createElement)(He.Button,{icon:Ra,onClick:this.onEdit,label:(0,De.__)("Replace image"),disabled:!i}),(0,Re.createElement)(He.Button,{icon:xi,onClick:c,label:(0,De.__)("Remove image"),disabled:!i})),!g&&(i||s)&&(0,Re.createElement)(Fe.RichText,{tagName:"figcaption","aria-label":(0,De.__)("Image caption text"),placeholder:i?(0,De.__)("Add caption"):null,value:s,onChange:e=>d({caption:e}),inlineToolbar:!0}))}}var Ti=(0,Rt.compose)([(0,Ye.withSelect)(((e,t)=>{const{getMedia:n}=e(Je.store),{id:o}=t;return{image:o?n(parseInt(o,10)):null}})),(0,Ye.withDispatch)((e=>{const{__unstableMarkNextChangeAsNotPersistent:t}=e(Fe.store);return{__unstableMarkNextChangeAsNotPersistent:t}}))])(Bi);function Ni(e){let{isHidden:t,...n}=e;return t?(0,Re.createElement)(He.VisuallyHidden,je({as:Fe.RichText},n)):(0,Re.createElement)(Fe.RichText,n)}var Pi=e=>{const{attributes:t,isSelected:n,setAttributes:o,selectedImage:r,mediaPlaceholder:a,onMoveBackward:l,onMoveForward:i,onRemoveImage:s,onSelectImage:c,onDeselectImage:u,onSetImageAttributes:m,insertBlocksAfter:d,blockProps:p}=e,{align:g,columns:h=$l(t),caption:v,imageCrop:b,images:y}=t;return(0,Re.createElement)("figure",je({},p,{className:Qe()(p.className,{[`align${g}`]:g,[`columns-${h}`]:h,"is-cropped":b})}),(0,Re.createElement)("ul",{className:"blocks-gallery-grid"},y.map(((e,o)=>{const a=(0,De.sprintf)((0,De.__)("image %1$d of %2$d in gallery"),o+1,y.length);return(0,Re.createElement)("li",{className:"blocks-gallery-item",key:e.id?`${e.id}-${o}`:e.url},(0,Re.createElement)(Ti,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===o,isLastItem:o+1===y.length,isSelected:n&&r===o,onMoveBackward:l(o),onMoveForward:i(o),onRemove:s(o),onSelect:c(o),onDeselect:u(o),setAttributes:e=>m(o,e),caption:e.caption,"aria-label":a,sizeSlug:t.sizeSlug}))}))),a,(0,Re.createElement)(Ni,{isHidden:!n&&Fe.RichText.isEmpty(v),tagName:"figcaption",className:"blocks-gallery-caption","aria-label":(0,De.__)("Gallery caption text"),placeholder:(0,De.__)("Write gallery caption"),value:v,onChange:e=>o({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>d((0,Le.createBlock)("core/paragraph"))}))};const zi=[{value:Si,label:(0,De.__)("Attachment Page")},{value:Ci,label:(0,De.__)("Media File")},{value:Ei,label:(0,De.__)("None")}],Ii=["image"],Mi=Re.Platform.select({web:(0,De.__)("Drag images, upload new ones or select files from your library."),native:(0,De.__)("ADD MEDIA")}),Li=Re.Platform.select({web:{},native:{type:"stepper"}});(0,Rt.compose)([He.withNotices,(0,Jl.withViewportMatch)({isNarrow:"< small"})])((function(e){const{attributes:t,clientId:n,isSelected:o,noticeUI:r,noticeOperations:a,onFocus:l}=e,{columns:i=$l(t),imageCrop:s,images:c,linkTo:u,sizeSlug:m}=t,[d,p]=(0,Re.useState)(),[g,h]=(0,Re.useState)(),{__unstableMarkNextChangeAsNotPersistent:v}=(0,Ye.useDispatch)(Fe.store),{imageSizes:b,mediaUpload:y,getMedia:f,wasBlockJustInserted:_}=(0,Ye.useSelect)((e=>{const t=e(Fe.store).getSettings();return{imageSizes:t.imageSizes,mediaUpload:t.mediaUpload,getMedia:e(Je.store).getMedia,wasBlockJustInserted:e(Fe.store).wasBlockJustInserted(n,"inserter_menu")}})),k=(0,Re.useMemo)((()=>o?(0,ht.reduce)(t.ids,((e,t)=>{if(!t)return e;const n=f(t),o=(0,ht.reduce)(b,((e,t)=>{const o=(0,ht.get)(n,["sizes",t.slug,"url"]),r=(0,ht.get)(n,["media_details","sizes",t.slug,"source_url"]);return{...e,[t.slug]:o||r}}),{});return{...e,[parseInt(t,10)]:o}}),{}):{}),[o,t.ids,b]);function w(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={...t,ids:(0,ht.map)(t.images,(e=>{let{id:t}=e;return parseInt(t,10)}))}),e.setAttributes(t)}function x(e,t){const n=[...c];n.splice(t,1,c[e]),n.splice(e,1,c[t]),p(t),w({images:n})}function E(e){const t=(0,ht.toString)(e.id),n=(0,ht.find)(c,{id:t}),o=n?n.caption:e.caption;if(!g)return o;const r=(0,ht.find)(g,{id:t});return r&&r.caption!==e.caption?e.caption:o}function C(e){h(e.map((e=>({id:(0,ht.toString)(e.id),caption:e.caption})))),w({images:e.map((e=>({...fi(e,m),caption:E(e),id:(0,ht.toString)(e.id)}))),columns:t.columns?Math.min(e.length,t.columns):t.columns})}(0,Re.useEffect)((()=>{if("web"===Re.Platform.OS&&c&&c.length>0&&(0,ht.every)(c,(e=>{let{url:t}=e;return(0,dt.isBlobURL)(t)}))){const e=(0,ht.map)(c,(e=>{let{url:t}=e;return(0,dt.getBlobByURL)(t)}));(0,ht.forEach)(c,(e=>{let{url:t}=e;return(0,dt.revokeBlobURL)(t)})),y({filesList:e,onFileChange:C,allowedTypes:["image"]})}}),[]),(0,Re.useEffect)((()=>{o||p()}),[o]),(0,Re.useEffect)((()=>{var e,t,n,o,r,a;u||(v(),w({linkTo:(null===(e=window)||void 0===e||null===(t=e.wp)||void 0===t||null===(n=t.media)||void 0===n||null===(o=n.view)||void 0===o||null===(r=o.settings)||void 0===r||null===(a=r.defaultProps)||void 0===a?void 0:a.link)||Ei}))}),[u]);const S=!!c.length,B=S&&c.some((e=>!!e.id)),T=(0,Re.createElement)(Fe.MediaPlaceholder,{addToGallery:B,isAppender:S,disableMediaButtons:S&&!o,icon:!S&&Yl,labels:{title:!S&&(0,De.__)("Gallery"),instructions:!S&&Mi},onSelect:C,accept:"image/*",allowedTypes:Ii,multiple:!0,value:B?c:{},onError:function(e){a.removeAllNotices(),a.createErrorNotice(e)},notices:S?void 0:r,onFocus:l,autoOpenMediaUpload:!S&&o&&_}),N=(0,Fe.useBlockProps)();if(!S)return(0,Re.createElement)(Ve.View,N,T);const P=(0,ht.map)((0,ht.filter)(b,(e=>{let{slug:t}=e;return(0,ht.some)(k,(e=>e[t]))})),(e=>{let{name:t,slug:n}=e;return{value:n,label:t}})),z=S&&!(0,ht.isEmpty)(P);return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Gallery settings")},c.length>1&&(0,Re.createElement)(He.RangeControl,je({label:(0,De.__)("Columns"),value:i,onChange:function(e){w({columns:e})},min:1,max:Math.min(8,c.length)},Li,{required:!0})),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Crop images"),checked:!!s,onChange:function(){w({imageCrop:!s})},help:function(e){return e?(0,De.__)("Thumbnails are cropped to align."):(0,De.__)("Thumbnails are not cropped.")}}),(0,Re.createElement)(He.SelectControl,{label:(0,De.__)("Link to"),value:u,onChange:function(e){w({linkTo:e})},options:zi,hideCancelButton:!0}),z&&(0,Re.createElement)(He.SelectControl,{label:(0,De.__)("Image size"),value:m,options:P,onChange:function(e){w({images:(0,ht.map)(c,(t=>{if(!t.id)return t;const n=(0,ht.get)(k,[parseInt(t.id,10),e]);return{...t,...n&&{url:n}}})),sizeSlug:e})},hideCancelButton:!0}))),r,(0,Re.createElement)(Pi,je({},e,{selectedImage:d,mediaPlaceholder:T,onMoveBackward:function(e){return()=>{0!==e&&x(e,e-1)}},onMoveForward:function(e){return()=>{e!==c.length-1&&x(e,e+1)}},onRemoveImage:function(e){return()=>{const n=(0,ht.filter)(c,((t,n)=>e!==n));p(),w({images:n,columns:t.columns?Math.min(n.length,t.columns):t.columns})}},onSelectImage:function(e){return()=>{p(e)}},onDeselectImage:function(){return()=>{p()}},onSetImageAttributes:function(e,t){c[e]&&w({images:[...c.slice(0,e),{...c[e],...t},...c.slice(e+1)]})},blockProps:N,onFocusGalleryCaption:function(){p()}})))}));var Ri=(0,Rt.compose)([He.withNotices])((function(e){return(0,Re.createElement)(yi,e)}));var Vi=window.wp.hooks;const Ai=e=>e?e.split(",").map((e=>parseInt(e,10))):[];(0,Vi.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",(function(e){var t;if("core/gallery"===e.name&&(null===(t=e.attributes)||void 0===t?void 0:t.images.length)>0){const t=e.attributes.images.map((t=>{let{url:n,id:o,alt:r}=t;return(0,Le.createBlock)("core/image",{url:n,id:o?parseInt(o,10):null,alt:r,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination})}));delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e})),(0,Vi.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",(function(e,t){const n=(Array.isArray(t)?t:[t]).find((t=>{var n;return"core/gallery"===t.name&&t.innerBlocks.length>0&&!(null!==(n=t.attributes.images)&&void 0!==n&&n.length)>0&&!e.name.includes("core/")}));if(n){const e=n.innerBlocks.map((e=>{let{attributes:{url:t,id:n,alt:o}}=e;return{url:t,id:n?parseInt(n,10):null,alt:o}})),t=e.map((e=>{let{id:t}=e;return t}));n.attributes.images=e,n.attributes.ids=t}return e}));const Hi={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:n}=e[0];t=(0,ht.every)(e,["align",t])?t:void 0,n=(0,ht.every)(e,["sizeSlug",n])?n:void 0;const o=(0,ht.filter)(e,(e=>{let{url:t}=e;return t}));{const e=o.map((e=>(0,Le.createBlock)("core/image",e)));return(0,Le.createBlock)("core/gallery",{align:t,sizeSlug:n},e)}}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:e=>{let{named:{ids:t}}=e}},ids:{type:"array",shortcode:e=>{let{named:{ids:t}}=e}},shortCodeTransforms:{type:"array",shortcode:e=>{let{named:{ids:t}}=e;return Ai(t).map((e=>({id:parseInt(e)})))}},columns:{type:"number",shortcode:e=>{let{named:{columns:t="3"}}=e;return parseInt(t,10)}},linkTo:{type:"string",shortcode:e=>{let{named:{link:t}}=e;switch(t){case"post":return Al;case"file":return Vl;default:return Rl}}}},isMatch(e){let{named:t}=e;return void 0!==t.ids}},{type:"files",priority:1,isMatch:e=>1!==e.length&&(0,ht.every)(e,(e=>0===e.type.indexOf("image/"))),transform(e){{const t=e.map((e=>(0,Le.createBlock)("core/image",{url:(0,dt.createBlobURL)(e)})));return(0,Le.createBlock)("core/gallery",{},t)}}}],to:[{type:"block",blocks:["core/image"],transform:(e,t)=>{let{align:n,images:o,ids:r,sizeSlug:a}=e;return t.length>0?t.map((e=>{let{attributes:{id:t,url:o,alt:r,caption:a,sizeSlug:l,linkDestination:i,href:s,linkTarget:c}}=e;return(0,Le.createBlock)("core/image",{id:t,url:o,alt:r,caption:a,sizeSlug:l,align:n,linkDestination:i,href:s,linkTarget:c})})):(0,Le.createBlock)("core/image",{align:n})}}]};var Di=Hi;const Fi={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/gallery",title:"Gallery",category:"media",description:"Display multiple images in a rich gallery.",keywords:["images","photos"],textdomain:"default",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:[]},shortCodeTransforms:{type:"array",default:[],items:{type:"object"}},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},providesContext:{allowResize:"allowResize",imageCrop:"imageCrop",fixedHeight:"fixedHeight"},supports:{anchor:!0,align:!0,html:!1,units:["px","em","rem","vh","vw"],spacing:{blockGap:!0,__experimentalSkipSerialization:["blockGap"],__experimentalDefaultControls:{blockGap:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex"}}},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"},{name:$i}=Fi,Gi={icon:Ll,example:{attributes:{columns:2},innerBlocks:[{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}}]},transforms:Di,edit:Ri,save:function(e){let{attributes:t}=e;const{caption:n,columns:o,imageCrop:r}=t,a=Qe()("has-nested-images",{[`columns-${o}`]:void 0!==o,"columns-default":void 0===o,"is-cropped":r}),l=Fe.useBlockProps.save({className:a}),i=Fe.useInnerBlocksProps.save(l);return(0,Re.createElement)("figure",i,i.children,!Fe.RichText.isEmpty(n)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n}))},deprecated:Kl};var Ui=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"}));const Oi=e=>{if(e.tagName||(e={...e,tagName:"div"}),!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),{...(0,ht.omit)(e,["customTextColor","customBackgroundColor"]),style:t}},qi=[{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:"string"}},supports:{align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{radius:!0}},save(e){let{attributes:t}=e;const{tagName:n}=t;return(0,Re.createElement)(n,Fe.useBlockProps.save(),(0,Re.createElement)("div",{className:"wp-block-group__inner-container"},(0,Re.createElement)(Fe.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Oi,save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:o,textColor:r,customTextColor:a}=t,l=(0,Fe.getColorClassName)("background-color",n),i=(0,Fe.getColorClassName)("color",r),s=Qe()(l,i,{"has-text-color":r||a,"has-background":n||o}),c={backgroundColor:l?void 0:o,color:i?void 0:a};return(0,Re.createElement)("div",{className:s,style:c},(0,Re.createElement)("div",{className:"wp-block-group__inner-container"},(0,Re.createElement)(Fe.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:Oi,supports:{align:["wide","full"],anchor:!0,html:!1},save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:o,textColor:r,customTextColor:a}=t,l=(0,Fe.getColorClassName)("background-color",n),i=(0,Fe.getColorClassName)("color",r),s=Qe()(l,{"has-text-color":r||a,"has-background":n||o}),c={backgroundColor:l?void 0:o,color:i?void 0:a};return(0,Re.createElement)("div",{className:s,style:c},(0,Re.createElement)("div",{className:"wp-block-group__inner-container"},(0,Re.createElement)(Fe.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:Oi,save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:o}=t,r=(0,Fe.getColorClassName)("background-color",n),a=Qe()(r,{"has-background":n||o}),l={backgroundColor:r?void 0:o};return(0,Re.createElement)("div",{className:a,style:l},(0,Re.createElement)(Fe.InnerBlocks.Content,null))}}];var Wi=qi;const ji={header:(0,De.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,De.__)("The <main> element should be used for the primary content of your document only. "),section:(0,De.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,De.__)("The <article> element should represent a self contained, syndicatable portion of the document."),aside:(0,De.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,De.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};var Zi=function(e){let{attributes:t,setAttributes:n,clientId:o}=e;const{hasInnerBlocks:r,themeSupportsLayout:a}=(0,Ye.useSelect)((e=>{var t;const{getBlock:n,getSettings:r}=e(Fe.store),a=n(o);return{hasInnerBlocks:!(!a||!a.innerBlocks.length),themeSupportsLayout:null===(t=r())||void 0===t?void 0:t.supportsLayout}}),[o]),l=(0,Fe.useSetting)("layout")||{},{tagName:i="div",templateLock:s,layout:c={}}=t,u=c&&c.inherit?l:c,{type:m="default"}=u,d=a||"default"!==m,p=(0,Fe.useBlockProps)({className:`is-layout-${m}`}),g=(0,Fe.useInnerBlocksProps)(d?p:{className:"wp-block-group__inner-container"},{templateLock:s,renderAppender:r?void 0:Fe.InnerBlocks.ButtonBlockAppender,__experimentalLayout:d?u:void 0});return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.InspectorControls,{__experimentalGroup:"advanced"},(0,Re.createElement)(He.SelectControl,{label:(0,De.__)("HTML element"),options:[{label:(0,De.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:i,onChange:e=>n({tagName:e}),help:ji[i]})),d&&(0,Re.createElement)(i,g),!d&&(0,Re.createElement)(i,p,(0,Re.createElement)("div",g)))};var Qi={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){const t=["wide","full"],n=e.reduce(((e,n)=>{const{align:o}=n.attributes;return t.indexOf(o)>t.indexOf(e)?o:e}),void 0),o=e.map((e=>(0,Le.createBlock)(e.name,e.attributes,e.innerBlocks)));return(0,Le.createBlock)("core/group",{align:n},o)}}]};var Ki=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M9.2 6.5H4V8h5.2c.3 0 .5.2.5.5v7c0 .3-.2.5-.5.5H4v1.5h5.2c1.1 0 2-.9 2-2v-7c0-1.1-.8-2-2-2zM14.8 8H20V6.5h-5.2c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2H20V16h-5.2c-.3 0-.5-.2-.5-.5v-7c-.1-.3.2-.5.5-.5z"}));var Ji=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M16 4v5.2c0 .3-.2.5-.5.5h-7c-.3.1-.5-.2-.5-.5V4H6.5v5.2c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V4H16zm-.5 8.8h-7c-1.1 0-2 .9-2 2V20H8v-5.2c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5V20h1.5v-5.2c0-1.2-.9-2-2-2z"}));const Yi=[{name:"group",title:(0,De.__)("Group"),description:(0,De.__)("Gather blocks in a layout container."),attributes:{layout:{type:"default"}},scope:["transform"],isActive:e=>{var t,n;return!e.layout||!(null!==(t=e.layout)&&void 0!==t&&t.type)||"default"===(null===(n=e.layout)||void 0===n?void 0:n.type)},icon:Ui},{name:"group-row",title:(0,De.__)("Row"),description:(0,De.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["inserter","transform"],isActive:e=>{var t,n,o;return!("flex"!==(null===(t=e.layout)||void 0===t?void 0:t.type)||null!==(n=e.layout)&&void 0!==n&&n.orientation&&"horizontal"!==(null===(o=e.layout)||void 0===o?void 0:o.orientation))},icon:Ki},{name:"group-stack",title:(0,De.__)("Stack"),description:(0,De.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["inserter","transform"],isActive:e=>{var t,n;return"flex"===(null===(t=e.layout)||void 0===t?void 0:t.type)&&"vertical"===(null===(n=e.layout)||void 0===n?void 0:n.orientation)},icon:Ji}];var Xi=Yi;const es={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/group",title:"Group",category:"design",description:"Gather blocks in a layout container.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{align:["wide","full"],anchor:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalLayout:!0},editorStyle:"wp-block-group-editor",style:"wp-block-group"},{name:ts}=es,ns={icon:Ui,example:{attributes:{style:{color:{text:"#000000",background:"#ffffff"}}},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:(0,De.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:(0,De.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:(0,De.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:(0,De.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:(0,De.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:(0,De.__)("Six.")}}]},transforms:Qi,edit:Zi,save:function(e){let{attributes:{tagName:t}}=e;return(0,Re.createElement)(t,Fe.useInnerBlocksProps.save(Fe.useBlockProps.save()))},deprecated:Wi,variations:Xi};var os=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"}));const rs={className:!1,anchor:!0},as={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},ls=e=>{if(!e.customTextColor)return e;const t={color:{text:e.customTextColor}};return{...(0,ht.omit)(e,["customTextColor"]),style:t}},is=["left","right","center"],ss=e=>{const{align:t,...n}=e;return is.includes(t)?{...n,textAlign:t}:e},cs=[{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},attributes:as,isEligible:e=>{let{align:t}=e;return is.includes(t)},migrate:ss,save(e){let{attributes:t}=e;const{align:n,content:o,level:r}=t,a="h"+r,l=Qe()({[`has-text-align-${n}`]:n});return(0,Re.createElement)(a,Fe.useBlockProps.save({className:l}),(0,Re.createElement)(Fe.RichText.Content,{value:o}))}},{supports:rs,attributes:{...as,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>ls(ss(e)),save(e){let{attributes:t}=e;const{align:n,content:o,customTextColor:r,level:a,textColor:l}=t,i="h"+a,s=(0,Fe.getColorClassName)("color",l),c=Qe()({[s]:s,"has-text-color":l||r,[`has-text-align-${n}`]:n});return(0,Re.createElement)(Fe.RichText.Content,{className:c||void 0,tagName:i,style:{color:s?void 0:r},value:o})}},{attributes:{...as,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>ls(ss(e)),save(e){let{attributes:t}=e;const{align:n,content:o,customTextColor:r,level:a,textColor:l}=t,i="h"+a,s=(0,Fe.getColorClassName)("color",l),c=Qe()({[s]:s,[`has-text-align-${n}`]:n});return(0,Re.createElement)(Fe.RichText.Content,{className:c||void 0,tagName:i,style:{color:s?void 0:r},value:o})},supports:rs},{supports:rs,attributes:{...as,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>ls(ss(e)),save(e){let{attributes:t}=e;const{align:n,level:o,content:r,textColor:a,customTextColor:l}=t,i="h"+o,s=(0,Fe.getColorClassName)("color",a),c=Qe()({[s]:s});return(0,Re.createElement)(Fe.RichText.Content,{className:c||void 0,tagName:i,style:{textAlign:n,color:s?void 0:l},value:r})}}];var us=cs;function ms(e){let{level:t,isPressed:n=!1}=e;const 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)?(0,Re.createElement)(He.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:n},(0,Re.createElement)(He.Path,{d:o[t]})):null}const ds=[1,2,3,4,5,6],ps={className:"block-library-heading-level-dropdown"};function gs(e){let{selectedLevel:t,onChange:n}=e;return(0,Re.createElement)(He.ToolbarDropdownMenu,{popoverProps:ps,icon:(0,Re.createElement)(ms,{level:t}),label:(0,De.__)("Change heading level"),controls:ds.map((e=>{{const o=e===t;return{icon:(0,Re.createElement)(ms,{level:e,isPressed:o}),label:(0,De.sprintf)((0,De.__)("Heading %d"),e),isActive:o,onClick(){n(e)}}}}))})}const hs={},vs=e=>(0,ht.trim)((0,ht.deburr)((e=>{const t=document.createElement("div");return t.innerHTML=e,t.innerText})(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase(),"-"),bs=(e,t)=>{const n=vs(t);if(""===n)return null;delete hs[e];let o=n,r=0;for(;Object.values(hs).includes(o);)r+=1,o=n+"-"+r;return o},ys=(e,t)=>{hs[e]=t};var fs=function(e){let{attributes:t,setAttributes:n,mergeBlocks:o,onReplace:r,style:a,clientId:l}=e;const{textAlign:i,content:s,level:c,placeholder:u,anchor:m}=t,d="h"+c,p=(0,Fe.useBlockProps)({className:Qe()({[`has-text-align-${i}`]:i}),style:a}),{canGenerateAnchors:g}=(0,Ye.useSelect)((e=>({canGenerateAnchors:!!e(Fe.store).getSettings().generateAnchors})),[]),{__unstableMarkNextChangeAsNotPersistent:h}=(0,Ye.useDispatch)(Fe.store);return(0,Re.useEffect)((()=>{if(g)return!m&&s&&(h(),n({anchor:bs(l,s)})),ys(l,m),()=>ys(l,null)}),[m,s,l,g]),(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(gs,{selectedLevel:c,onChange:e=>n({level:e})}),(0,Re.createElement)(Fe.AlignmentControl,{value:i,onChange:e=>{n({textAlign:e})}})),(0,Re.createElement)(Fe.RichText,je({identifier:"content",tagName:d,value:s,onChange:e=>{const t={content:e};!g||m&&e&&bs(l,s)!==m||(t.anchor=bs(l,e)),n(t)},onMerge:o,onSplit:(e,n)=>{let o;var r;n||e?o=(0,Le.createBlock)("core/heading",{...t,content:e}):o=(0,Le.createBlock)(null!==(r=(0,Le.getDefaultBlockName)())&&void 0!==r?r:"core/heading");return n&&(o.clientId=l),o},onReplace:r,onRemove:()=>r([]),"aria-label":(0,De.__)("Heading text"),placeholder:u||(0,De.__)("Heading"),textAlign:i},Re.Platform.isNative&&{deleteEnter:!0},p)))};const{name:_s}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"},ks={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((e=>{let{content:t,anchor:n}=e;return(0,Le.createBlock)(_s,{content:t,anchor:n})}))},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:e=>{let{phrasingContentSchema:t,isPaste:n}=e;const o={children:t,attributes:n?[]:["style","id"]};return{h1:o,h2:o,h3:o,h4:o,h5:o,h6:o}},transform(e){const t=(0,Le.getBlockAttributes)(_s,e.outerHTML),{textAlign:n}=e.style||{};var o;return t.level=(o=e.nodeName,Number(o.substr(1))),"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),(0,Le.createBlock)(_s,t)}},...[1,2,3,4,5,6].map((e=>({type:"prefix",prefix:Array(e+1).join("#"),transform:t=>(0,Le.createBlock)(_s,{level:e,content:t})}))),...[1,2,3,4,5,6].map((e=>({type:"enter",regExp:new RegExp(`^/(h|H)${e}$`),transform:t=>(0,Le.createBlock)(_s,{level:e,content:t})})))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((e=>{let{content:t}=e;return(0,Le.createBlock)("core/paragraph",{content:t})}))}]};var ws=ks;const xs={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"},{name:Es}=xs,Cs={icon:os,example:{attributes:{content:(0,De.__)("Code is Poetry"),level:2}},__experimentalLabel(e,t){let{context:n}=t;if("accessibility"===n){const{content:t,level:n}=e;return(0,ht.isEmpty)(t)?(0,De.sprintf)((0,De.__)("Level %s. Empty."),n):(0,De.sprintf)((0,De.__)("Level %1$s. %2$s"),n,t)}},transforms:ws,deprecated:us,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:fs,save:function(e){let{attributes:t}=e;const{textAlign:n,content:o,level:r}=t,a="h"+r,l=Qe()({[`has-text-align-${n}`]:n});return(0,Re.createElement)(a,Fe.useBlockProps.save({className:l}),(0,Re.createElement)(Fe.RichText.Content,{value:o}))}};var Ss=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"}));const Bs=e=>e.preventDefault();const Ts={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/home-link",category:"design",parent:["core/navigation"],title:"Home Link",description:"Create a link that always points to the homepage of the site. Usually not necessary if there is already a site title link present in the header.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","fontSize","customFontSize","style"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-home-link-editor",style:"wp-block-home-link"},{name:Ns}=Ts,Ps={icon:Ss,edit:function(e){var t,n,o,r;let{attributes:a,setAttributes:l,context:i,clientId:s}=e;const{homeUrl:c}=(0,Ye.useSelect)((e=>{var t;const{getUnstableBase:n}=e(Je.store);return{homeUrl:null===(t=n())||void 0===t?void 0:t.home}}),[s]),{textColor:u,backgroundColor:m,style:d}=i,p=(0,Fe.useBlockProps)({className:Qe()("wp-block-navigation-item",{"has-text-color":!!u||!(null==d||null===(t=d.color)||void 0===t||!t.text),[`has-${u}-color`]:!!u,"has-background":!!m||!(null==d||null===(n=d.color)||void 0===n||!n.background),[`has-${m}-background-color`]:!!m}),style:{color:null==d||null===(o=d.color)||void 0===o?void 0:o.text,backgroundColor:null==d||null===(r=d.color)||void 0===r?void 0:r.background}}),{label:g}=a;return(0,Re.useEffect)((()=>{void 0===g&&l({label:(0,De.__)("Home")})}),[s,g]),(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)("div",p,(0,Re.createElement)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:c,onClick:Bs},(0,Re.createElement)(Fe.RichText,{identifier:"label",className:"wp-block-home-link__label",value:g,onChange:e=>{l({label:e})},"aria-label":(0,De.__)("Home link text"),placeholder:(0,De.__)("Add home link"),withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))))},save:function(){return(0,Re.createElement)(Fe.InnerBlocks.Content,null)},example:{attributes:{label:(0,De._x)("Home Link","block example")}}};var zs=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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 Is={from:[{type:"block",blocks:["core/code"],transform:e=>{let{content:t}=e;return(0,Le.createBlock)("core/html",{content:t})}}]};const Ms={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/html",title:"Custom HTML",category:"widgets",description:"Add custom HTML code and preview it as you edit.",keywords:["embed"],textdomain:"default",attributes:{content:{type:"string",source:"html"}},supports:{customClassName:!1,className:!1,html:!1},editorStyle:"wp-block-html-editor"},{name:Ls}=Ms,Rs={icon:zs,example:{attributes:{content:"<marquee>"+(0,De.__)("Welcome to the wonderful world of blocks")+"</marquee>"}},edit:function(e){let{attributes:t,setAttributes:n,isSelected:o}=e;const[r,a]=(0,Re.useState)(),l=(0,Re.useContext)(He.Disabled.Context),i=(0,Ye.useSelect)((e=>["\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",...(0,Fe.transformStyles)(e(Fe.store).getSettings().styles)]),[]);return(0,Re.createElement)("div",(0,Fe.useBlockProps)({className:"block-library-html__edit"}),(0,Re.createElement)(Fe.BlockControls,null,(0,Re.createElement)(He.ToolbarGroup,null,(0,Re.createElement)(He.ToolbarButton,{className:"components-tab-button",isPressed:!r,onClick:function(){a(!1)}},(0,Re.createElement)("span",null,"HTML")),(0,Re.createElement)(He.ToolbarButton,{className:"components-tab-button",isPressed:r,onClick:function(){a(!0)}},(0,Re.createElement)("span",null,(0,De.__)("Preview"))))),r||l?(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(He.SandBox,{html:t.content,styles:i}),!o&&(0,Re.createElement)("div",{className:"block-library-html__preview-overlay"})):(0,Re.createElement)(Fe.PlainText,{value:t.content,onChange:e=>n({content:e}),placeholder:(0,De.__)("Write HTML"),"aria-label":(0,De.__)("HTML")}))},save:function(e){let{attributes:t}=e;return(0,Re.createElement)(Re.RawHTML,null,t.content)},transforms:Is},Vs={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"}},As=[{attributes:{...Vs,title:{type:"string",source:"attribute",selector:"img",attribute:"title"},sizeSlug:{type:"string"}},supports:{anchor:!0,color:{__experimentalDuotone:"img",text:!1,background:!1},__experimentalBorder:{radius:!0,__experimentalDefaultControls:{radius:!0}}},save(e){let{attributes:t}=e;const{url:n,alt:o,caption:r,align:a,href:l,rel:i,linkClass:s,width:c,height:u,id:m,linkTarget:d,sizeSlug:p,title:g}=t,h=(0,ht.isEmpty)(i)?void 0:i,v=Qe()({[`align${a}`]:a,[`size-${p}`]:p,"is-resized":c||u}),b=(0,Re.createElement)("img",{src:n,alt:o,className:m?`wp-image-${m}`:null,width:c,height:u,title:g}),y=(0,Re.createElement)(Re.Fragment,null,l?(0,Re.createElement)("a",{className:s,href:l,target:d,rel:h},b):b,!Fe.RichText.isEmpty(r)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",value:r}));return"left"===a||"right"===a||"center"===a?(0,Re.createElement)("div",Fe.useBlockProps.save(),(0,Re.createElement)("figure",{className:v},y)):(0,Re.createElement)("figure",Fe.useBlockProps.save({className:v}),y)}},{attributes:Vs,save(e){let{attributes:t}=e;const{url:n,alt:o,caption:r,align:a,href:l,width:i,height:s,id:c}=t,u=Qe()({[`align${a}`]:a,"is-resized":i||s}),m=(0,Re.createElement)("img",{src:n,alt:o,className:c?`wp-image-${c}`:null,width:i,height:s});return(0,Re.createElement)("figure",{className:u},l?(0,Re.createElement)("a",{href:l},m):m,!Fe.RichText.isEmpty(r)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",value:r}))}},{attributes:Vs,save(e){let{attributes:t}=e;const{url:n,alt:o,caption:r,align:a,href:l,width:i,height:s,id:c}=t,u=(0,Re.createElement)("img",{src:n,alt:o,className:c?`wp-image-${c}`:null,width:i,height:s});return(0,Re.createElement)("figure",{className:a?`align${a}`:null},l?(0,Re.createElement)("a",{href:l},u):u,!Fe.RichText.isEmpty(r)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",value:r}))}},{attributes:Vs,save(e){let{attributes:t}=e;const{url:n,alt:o,caption:r,align:a,href:l,width:i,height:s}=t,c=i||s?{width:i,height:s}:{},u=(0,Re.createElement)("img",je({src:n,alt:o},c));let m={};return i?m={width:i}:"left"!==a&&"right"!==a||(m={maxWidth:"50%"}),(0,Re.createElement)("figure",{className:a?`align${a}`:null,style:m},l?(0,Re.createElement)("a",{href:l},u):u,!Fe.RichText.isEmpty(r)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",value:r}))}}];var Hs=As;var Ds=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M16.5 7.8v7H18v-7c0-1-.8-1.8-1.8-1.8h-7v1.5h7c.2 0 .3.1.3.3zm-8.7 8.7c-.1 0-.2-.1-.2-.2V2H6v4H2v1.5h4v8.8c0 1 .8 1.8 1.8 1.8h8.8v4H18v-4h4v-1.5H7.8z"}));var Fs=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));var $s=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"}));function Gs(e,t){const[n,o]=(0,Re.useState)();function r(){o(e.current.clientWidth)}return(0,Re.useEffect)(r,t),(0,Re.useEffect)((()=>{const{defaultView:t}=e.current.ownerDocument;return t.addEventListener("resize",r),()=>{t.removeEventListener("resize",r)}}),[]),n}function Us(e){var t;let{temporaryURL:n,attributes:{url:o="",alt:r,caption:a,align:l,id:i,href:s,rel:c,linkClass:u,linkDestination:m,title:d,width:p,height:g,linkTarget:h,sizeSlug:v},setAttributes:b,isSelected:y,insertBlocksAfter:f,onReplace:_,onCloseModal:k,onSelectImage:w,onSelectURL:x,onUploadError:E,containerRef:C,context:S,clientId:B,onImageLoadError:T}=e;const N=(0,Re.useRef)(),P=(0,Re.useRef)(),z=(0,Rt.usePrevious)(o),{allowResize:I=!0}=S,{getBlock:M}=(0,Ye.useSelect)(Fe.store),{image:L,multiImageSelection:R}=(0,Ye.useSelect)((e=>{const{getMedia:t}=e(Je.store),{getMultiSelectedBlockClientIds:n,getBlockName:o}=e(Fe.store),r=n();return{image:i&&y?t(i,{context:"view"}):null,multiImageSelection:r.length&&r.every((e=>"core/image"===o(e)))}}),[i,y]),{canInsertCover:V,imageEditing:A,imageSizes:H,maxWidth:D,mediaUpload:F}=(0,Ye.useSelect)((e=>{const{getBlockRootClientId:t,getSettings:n,canInsertBlockType:o}=e(Fe.store),r=t(B);return{...(0,ht.pick)(n(),["imageEditing","imageSizes","maxWidth","mediaUpload"]),canInsertCover:o("core/cover",r)}}),[B]),{replaceBlocks:$,toggleSelection:G}=(0,Ye.useDispatch)(Fe.store),{createErrorNotice:U,createSuccessNotice:O}=(0,Ye.useDispatch)(wa.store),q=(0,Rt.useViewportMatch)("medium"),W=(0,ht.includes)(["wide","full"],l),[{loadedNaturalWidth:j,loadedNaturalHeight:Z},Q]=(0,Re.useState)({}),[K,J]=(0,Re.useState)(!1),[Y,X]=(0,Re.useState)(),ee=Gs(C,[l]),te=I&&!(W&&q),ne=(0,ht.map)((0,ht.filter)(H,(e=>{let{slug:t}=e;return(0,ht.get)(L,["media_details","sizes",t,"source_url"])})),(e=>{let{name:t,slug:n}=e;return{value:n,label:t}}));(0,Re.useEffect)((()=>{Os(i,o)&&y&&!Y&&window.fetch(o).then((e=>e.blob())).then((e=>X(e))).catch((()=>{}))}),[i,o,y,Y]),(0,Re.useEffect)((()=>{o&&!z&&y&&P.current.focus()}),[o,z]);const{naturalWidth:oe,naturalHeight:re}=(0,Re.useMemo)((()=>{var e,t;return{naturalWidth:(null===(e=N.current)||void 0===e?void 0:e.naturalWidth)||j||void 0,naturalHeight:(null===(t=N.current)||void 0===t?void 0:t.naturalHeight)||Z||void 0}}),[j,Z,null===(t=N.current)||void 0===t?void 0:t.complete]);(0,Re.useEffect)((()=>{y||J(!1),y&&qs(i)&&T()}),[y]);const ae=i&&oe&&re&&A,le=!R&&ae&&!K;const ie=(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(Fe.BlockAlignmentControl,{value:l,onChange:function(e){const t=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};b({...t,align:e})}}),!R&&!K&&(0,Re.createElement)(Fe.__experimentalImageURLInputUI,{url:s||"",onChangeUrl:function(e){b(e)},linkDestination:m,mediaUrl:L&&L.source_url||o,mediaLink:L&&L.link,linkTarget:h,linkClass:u,rel:c}),le&&(0,Re.createElement)(He.ToolbarButton,{onClick:()=>J(!0),icon:Ds,label:(0,De.__)("Crop")}),Y&&(0,Re.createElement)(He.ToolbarButton,{onClick:function(){F({filesList:[Y],onFileChange(e){let[t]=e;w(t),(0,dt.isBlobURL)(t.url)||(X(),O((0,De.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:ai,onError(e){U(e,{type:"snackbar"})}})},icon:Fs,label:(0,De.__)("Upload external image")}),!R&&V&&(0,Re.createElement)(He.ToolbarButton,{icon:$s,label:(0,De.__)("Add text over image"),onClick:function(){$(B,(0,Le.switchToBlockType)(M(B),"core/cover"))}})),!R&&!K&&(0,Re.createElement)(Fe.BlockControls,{group:"other"},(0,Re.createElement)(Fe.MediaReplaceFlow,{mediaId:i,mediaURL:o,allowedTypes:ai,accept:"image/*",onSelect:w,onSelectURL:x,onError:E,onCloseModal:k})),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Image settings")},!R&&(0,Re.createElement)(He.TextareaControl,{label:(0,De.__)("Alt text (alternative text)"),value:r,onChange:function(e){b({alt:e})},help:(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(He.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,De.__)("Describe the purpose of the image")),(0,De.__)("Leave empty if the image is purely decorative."))}),(0,Re.createElement)(Fe.__experimentalImageSizeControl,{onChangeImage:function(e){const t=(0,ht.get)(L,["media_details","sizes",e,"source_url"]);if(!t)return null;b({url:t,width:void 0,height:void 0,sizeSlug:e})},onChange:e=>b(e),slug:v,width:p,height:g,imageSizeOptions:ne,isResizable:te,imageWidth:oe,imageHeight:re}))),(0,Re.createElement)(Fe.InspectorControls,{__experimentalGroup:"advanced"},(0,Re.createElement)(He.TextControl,{label:(0,De.__)("Title attribute"),value:d||"",onChange:function(e){b({title:e})},help:(0,Re.createElement)(Re.Fragment,null,(0,De.__)("Describe the role of this image on the page."),(0,Re.createElement)(He.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},(0,De.__)("(Note: many devices and browsers do not display this text.)")))}))),se=(0,Ke.getFilename)(o);let ce;ce=r||(se?(0,De.sprintf)((0,De.__)("This image has an empty alt attribute; its file name is %s"),se):(0,De.__)("This image has an empty alt attribute"));let ue,me,de=(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)("img",{src:n||o,alt:ce,onError:()=>function(){const e=xt({attributes:{url:o}}),t=void 0!==e;t&&_(e),T(t)}(),onLoad:e=>{var t,n;Q({loadedNaturalWidth:null===(t=e.target)||void 0===t?void 0:t.naturalWidth,loadedNaturalHeight:null===(n=e.target)||void 0===n?void 0:n.naturalHeight})},ref:N}),n&&(0,Re.createElement)(He.Spinner,null));if(ee&&oe&&re){const e=oe>ee,t=re/oe;ue=e?ee:oe,me=e?ee*t:re}if(ae&&K)de=(0,Re.createElement)(Fe.__experimentalImageEditor,{url:o,width:p,height:g,clientWidth:ee,naturalHeight:re,naturalWidth:oe});else if(te&&ue){const e=p||ue,t=g||me,n=oe/re,o=oe<re?Xl:Xl*n,r=re<oe?Xl:Xl/n,a=2.5*D;let i=!1,s=!1;"center"===l?(i=!0,s=!0):(0,De.isRTL)()?"left"===l?i=!0:s=!0:"right"===l?s=!0:i=!0,de=(0,Re.createElement)(He.ResizableBox,{size:{width:null!=p?p:"auto",height:null!=g?g:"auto"},showHandle:y,minWidth:o,maxWidth:a,minHeight:r,maxHeight:a/n,lockAspectRatio:!0,enable:{top:!1,right:i,bottom:!0,left:s},onResizeStart:function(){G(!1)},onResizeStop:(n,o,r,a)=>{G(!0),b({width:parseInt(e+a.width,10),height:parseInt(t+a.height,10)})}},de)}else de=(0,Re.createElement)("div",{style:{width:p,height:g}},de);return(0,Re.createElement)(Fe.__experimentalImageEditingProvider,{id:i,url:o,naturalWidth:oe,naturalHeight:re,clientWidth:ee,onSaveImage:e=>b(e),isEditing:K,onFinishEditing:()=>J(!1)},!n&&ie,de,(!Fe.RichText.isEmpty(a)||y)&&(0,Re.createElement)(Fe.RichText,{ref:P,tagName:"figcaption","aria-label":(0,De.__)("Image caption text"),placeholder:(0,De.__)("Add caption"),value:a,onChange:e=>b({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>f((0,Le.createBlock)("core/paragraph"))}))}const Os=(e,t)=>t&&!e&&!(0,dt.isBlobURL)(t);function qs(e){var t,n;return((null===(t=wp)||void 0===t||null===(n=t.media)||void 0===n?void 0:n.attachment(e))||{}).destroyed}var Ws=(0,He.withNotices)((function(e){let{attributes:t,setAttributes:n,isSelected:o,className:r,noticeUI:a,insertBlocksAfter:l,noticeOperations:i,onReplace:s,context:c,clientId:u}=e;const{url:m="",alt:d,caption:p,align:g,id:h,width:v,height:b,sizeSlug:y}=t,[f,_]=(0,Re.useState)(),k=(0,Re.useRef)();(0,Re.useEffect)((()=>{k.current=d}),[d]);const w=(0,Re.useRef)();(0,Re.useEffect)((()=>{w.current=p}),[p]);const x=(0,Re.useRef)(),{imageDefaultSize:E,mediaUpload:C}=(0,Ye.useSelect)((e=>{const{getSettings:t}=e(Fe.store);return(0,ht.pick)(t(),["imageDefaultSize","mediaUpload"])}),[]);function S(){qs(null==t?void 0:t.id)&&n({url:void 0,id:void 0})}function B(e){i.removeAllNotices(),i.createErrorNotice(e),n({src:void 0,id:void 0,url:void 0}),_(void 0)}function T(e){var o,r,a,l,i;if(!e||!e.url)return void n({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0});if((0,dt.isBlobURL)(e.url))return void _(e.url);_();let s,c=((e,t)=>{const n=(0,ht.pick)(e,["alt","id","link","caption"]);return n.url=(0,ht.get)(e,["sizes",t,"url"])||(0,ht.get)(e,["media_details","sizes",t,"source_url"])||e.url,n})(e,E);var u,d;w.current&&!(0,ht.get)(c,["caption"])&&(c=(0,ht.omit)(c,["caption"])),s=e.id&&e.id===h?{url:m}:{width:void 0,height:void 0,sizeSlug:(u=e,d=E,(0,ht.has)(u,["sizes",d,"url"])||(0,ht.has)(u,["media_details","sizes",d,"source_url"])?E:"full")};let p,g=t.linkDestination;if(!g)switch((null===(o=wp)||void 0===o||null===(r=o.media)||void 0===r||null===(a=r.view)||void 0===a||null===(l=a.settings)||void 0===l||null===(i=l.defaultProps)||void 0===i?void 0:i.link)||ei){case"file":case ti:g=ti;break;case"post":case ni:g=ni;break;case oi:g=oi;break;case ei:g=ei}switch(g){case ti:p=e.url;break;case ni:p=e.link}c.href=p,n({...c,...s,linkDestination:g})}function N(e){e!==m&&n({url:e,id:void 0,width:void 0,height:void 0,sizeSlug:E})}let P=((e,t)=>!e&&(0,dt.isBlobURL)(t))(h,m);(0,Re.useEffect)((()=>{if(!P)return;const e=(0,dt.getBlobByURL)(m);e&&C({filesList:[e],onFileChange:e=>{let[t]=e;T(t)},allowedTypes:ai,onError:e=>{P=!1,B(e)}})}),[]),(0,Re.useEffect)((()=>{P?_(m):(0,dt.revokeBlobURL)(f)}),[P,m]);const z=Os(h,m)?m:void 0,I=!!m&&(0,Re.createElement)("img",{alt:(0,De.__)("Edit image"),title:(0,De.__)("Edit image"),className:"edit-image-preview",src:m}),M=Qe()(r,{"is-transient":f,"is-resized":!!v||!!b,[`size-${y}`]:y}),L=(0,Fe.useBlockProps)({ref:x,className:M});return(0,Re.createElement)("figure",L,(f||m)&&(0,Re.createElement)(Us,{temporaryURL:f,attributes:t,setAttributes:n,isSelected:o,insertBlocksAfter:l,onReplace:s,onSelectImage:T,onSelectURL:N,onUploadError:B,containerRef:x,context:c,clientId:u,onCloseModal:S,onImageLoadError:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e||n({url:void 0,id:void 0})}}),!m&&(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(Fe.BlockAlignmentControl,{value:g,onChange:function(e){const t=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};n({...t,align:e})}})),(0,Re.createElement)(Fe.MediaPlaceholder,{icon:(0,Re.createElement)(Fe.BlockIcon,{icon:_i}),onSelect:T,onSelectURL:N,notices:a,onError:B,onClose:S,accept:"image/*",allowedTypes:ai,value:{id:h,src:z},mediaPreview:I,disableMediaButtons:f||m}))}));function js(e,t){const{body:n}=document.implementation.createHTMLDocument("");n.innerHTML=e;const{firstElementChild:o}=n;if(o&&"A"===o.nodeName)return o.getAttribute(t)||void 0}const Zs={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},Qs={from:[{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&!!e.querySelector("img"),schema:e=>{let{phrasingContentSchema:t}=e;return{figure:{require:["img"],children:{...Zs,a:{attributes:["href","rel","target"],children:Zs},figcaption:{children:t}}}}},transform:e=>{const t=e.className+" "+e.querySelector("img").className,n=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),o=""===e.id?void 0:e.id,r=n?n[1]:void 0,a=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),l=a?Number(a[1]):void 0,i=e.querySelector("a"),s=i&&i.href?"custom":void 0,c=i&&i.href?i.href:void 0,u=i&&i.rel?i.rel:void 0,m=i&&i.className?i.className:void 0,d=(0,Le.getBlockAttributes)("core/image",e.outerHTML,{align:r,id:l,linkDestination:s,href:c,rel:u,linkClass:m,anchor:o});return(0,Le.createBlock)("core/image",d)}},{type:"files",isMatch(e){if(e.some((e=>0===e.type.indexOf("image/")))&&e.some((e=>0!==e.type.indexOf("image/")))){const{createErrorNotice:e}=(0,Ye.dispatch)(wa.store);e((0,De.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-transform-invalid-file"})}return(0,ht.every)(e,(e=>0===e.type.indexOf("image/")))},transform(e){const t=e.map((e=>(0,Le.createBlock)("core/image",{url:(0,dt.createBlobURL)(e)})));return 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){let{shortcode:n}=t;const{body:o}=document.implementation.createHTMLDocument("");o.innerHTML=n.content;let r=o.querySelector("img");for(;r&&r.parentNode&&r.parentNode!==o;)r=r.parentNode;return r&&r.parentNode.removeChild(r),o.innerHTML.trim()}},href:{shortcode:(e,t)=>{let{shortcode:n}=t;return js(n.content,"href")}},rel:{shortcode:(e,t)=>{let{shortcode:n}=t;return js(n.content,"rel")}},linkClass:{shortcode:(e,t)=>{let{shortcode:n}=t;return js(n.content,"class")}},id:{type:"number",shortcode:e=>{let{named:{id:t}}=e;if(t)return parseInt(t.replace("attachment_",""),10)}},align:{type:"string",shortcode:e=>{let{named:{align:t="alignnone"}}=e;return t.replace("align","")}}}}]};var Ks=Qs;const Js={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/image",title:"Image",category:"media",usesContext:["allowResize","imageCrop","fixedHeight"],description:"Insert an image to make a visual statement.",keywords:["img","photo","picture"],textdomain:"default",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,color:{__experimentalDuotone:"img",text:!1,background:!1},__experimentalBorder:{radius:!0,__experimentalDefaultControls:{radius:!0}}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-image-editor",style:"wp-block-image"},{name:Ys}=Js,Xs={icon:_i,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,De.__)("Mont Blanc appearsstill, snowy, and serene.")}},__experimentalLabel(e,t){let{context:n}=t;if("accessibility"===n){const{caption:t,alt:n,url:o}=e;return o?n?n+(t?". "+t:""):t||"":(0,De.__)("Empty")}},getEditWrapperProps:e=>({"data-align":e.align}),transforms:Ks,edit:Ws,save:function(e){let{attributes:t}=e;const{url:n,alt:o,caption:r,align:a,href:l,rel:i,linkClass:s,width:c,height:u,id:m,linkTarget:d,sizeSlug:p,title:g}=t,h=(0,ht.isEmpty)(i)?void 0:i,v=Qe()({[`align${a}`]:a,[`size-${p}`]:p,"is-resized":c||u}),b=(0,Re.createElement)("img",{src:n,alt:o,className:m?`wp-image-${m}`:null,width:c,height:u,title:g}),y=(0,Re.createElement)(Re.Fragment,null,l?(0,Re.createElement)("a",{className:s,href:l,target:d,rel:h},b):b,!Fe.RichText.isEmpty(r)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",value:r}));return(0,Re.createElement)("figure",Fe.useBlockProps.save({className:v}),y)},deprecated:Hs};var ec=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"}));const tc={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/latest-comments",title:"Latest Comments",category:"widgets",description:"Display a list of your most recent comments.",keywords:["recent comments"],textdomain:"default",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},editorStyle:"wp-block-latest-comments-editor",style:"wp-block-latest-comments"},{name:nc}=tc,oc={icon:ec,example:{},edit:function(e){let{attributes:t,setAttributes:n}=e;const{commentsToShow:o,displayAvatar:r,displayDate:a,displayExcerpt:l}=t;return(0,Re.createElement)("div",(0,Fe.useBlockProps)(),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Latest comments settings")},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Display avatar"),checked:r,onChange:()=>n({displayAvatar:!r})}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Display date"),checked:a,onChange:()=>n({displayDate:!a})}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Display excerpt"),checked:l,onChange:()=>n({displayExcerpt:!l})}),(0,Re.createElement)(He.RangeControl,{label:(0,De.__)("Number of comments"),value:o,onChange:e=>n({commentsToShow:e}),min:1,max:100,required:!0}))),(0,Re.createElement)(He.Disabled,null,(0,Re.createElement)(Ge(),{block:"core/latest-comments",attributes:t,urlQueryArgs:{_locale:"site"}})))}};var rc=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"}));const{attributes:ac}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",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},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"};var lc=[{attributes:{...ac,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:e=>{let{categories:t}=e;return t&&"string"==typeof t},save:()=>null}];var ic=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"}));var sc=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));const cc={per_page:-1,context:"view"},uc={per_page:-1,has_published_posts:["post"],context:"view"};const mc={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",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},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"},{name:dc}=mc,pc={icon:rc,example:{},edit:function(e){var t;let{attributes:n,setAttributes:o}=e;const{postsToShow:r,order:a,orderBy:l,categories:i,selectedAuthor:s,displayFeaturedImage:c,displayPostContentRadio:u,displayPostContent:m,displayPostDate:d,displayAuthor:p,postLayout:g,columns:h,excerptLength:v,featuredImageAlign:b,featuredImageSizeSlug:y,featuredImageSizeWidth:f,featuredImageSizeHeight:_,addLinkToFeaturedImage:k}=n,{imageSizes:w,latestPosts:x,defaultImageWidth:E,defaultImageHeight:C,categoriesList:S,authorList:B}=(0,Ye.useSelect)((e=>{const{getEntityRecords:t,getUsers:n}=e(Je.store),o=e(Fe.store).getSettings(),c=i&&i.length>0?i.map((e=>e.id)):[],u=(0,ht.pickBy)({categories:c,author:s,order:a,orderby:l,per_page:r,_embed:"wp:featuredmedia"},(e=>!(0,ht.isUndefined)(e)));return{defaultImageWidth:(0,ht.get)(o.imageDimensions,[y,"width"],0),defaultImageHeight:(0,ht.get)(o.imageDimensions,[y,"height"],0),imageSizes:o.imageSizes,latestPosts:t("postType","post",u),categoriesList:t("taxonomy","category",cc),authorList:n(uc)}}),[y,r,a,l,i,s]),T=w.filter((e=>{let{slug:t}=e;return"full"!==t})).map((e=>{let{name:t,slug:n}=e;return{value:n,label:t}})),N=null!==(t=null==S?void 0:S.reduce(((e,t)=>({...e,[t.name]:t})),{}))&&void 0!==t?t:{},P=!(null==x||!x.length),z=(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Post content settings")},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Post content"),checked:m,onChange:e=>o({displayPostContent:e})}),m&&(0,Re.createElement)(He.RadioControl,{label:(0,De.__)("Show:"),selected:u,options:[{label:(0,De.__)("Excerpt"),value:"excerpt"},{label:(0,De.__)("Full post"),value:"full_post"}],onChange:e=>o({displayPostContentRadio:e})}),m&&"excerpt"===u&&(0,Re.createElement)(He.RangeControl,{label:(0,De.__)("Max number of words in excerpt"),value:v,onChange:e=>o({excerptLength:e}),min:10,max:100})),(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Post meta settings")},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Display author name"),checked:p,onChange:e=>o({displayAuthor:e})}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Display post date"),checked:d,onChange:e=>o({displayPostDate:e})})),(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Featured image settings")},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Display featured image"),checked:c,onChange:e=>o({displayFeaturedImage:e})}),c&&(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.__experimentalImageSizeControl,{onChange:e=>{const t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),o(t)},slug:y,width:f,height:_,imageWidth:E,imageHeight:C,imageSizeOptions:T,onChangeImage:e=>o({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}),(0,Re.createElement)(He.BaseControl,{className:"editor-latest-posts-image-alignment-control"},(0,Re.createElement)(He.BaseControl.VisualLabel,null,(0,De.__)("Image alignment")),(0,Re.createElement)(Fe.BlockAlignmentToolbar,{value:b,onChange:e=>o({featuredImageAlign:e}),controls:["left","center","right"],isCollapsed:!1})),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Add link to featured image"),checked:k,onChange:e=>o({addLinkToFeaturedImage:e})}))),(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Sorting and filtering")},(0,Re.createElement)(He.QueryControls,{order:a,orderBy:l,numberOfItems:r,onOrderChange:e=>o({order:e}),onOrderByChange:e=>o({orderBy:e}),onNumberOfItemsChange:e=>o({postsToShow:e}),categorySuggestions:N,onCategoryChange:e=>{if(e.some((e=>"string"==typeof e&&!N[e])))return;const t=e.map((e=>"string"==typeof e?N[e]:e));if((0,ht.includes)(t,null))return!1;o({categories:t})},selectedCategories:i,onAuthorChange:e=>o({selectedAuthor:""!==e?Number(e):void 0}),authorList:null!=B?B:[],selectedAuthorId:s}),"grid"===g&&(0,Re.createElement)(He.RangeControl,{label:(0,De.__)("Columns"),value:h,onChange:e=>o({columns:e}),min:2,max:P?Math.min(6,x.length):6,required:!0}))),I=(0,Fe.useBlockProps)({className:Qe()({"wp-block-latest-posts__list":!0,"is-grid":"grid"===g,"has-dates":d,"has-author":p,[`columns-${h}`]:"grid"===g})});if(!P)return(0,Re.createElement)("div",I,z,(0,Re.createElement)(He.Placeholder,{icon:Cn,label:(0,De.__)("Latest Posts")},Array.isArray(x)?(0,De.__)("No posts found."):(0,Re.createElement)(He.Spinner,null)));const M=x.length>r?x.slice(0,r):x,L=[{icon:ic,title:(0,De.__)("List view"),onClick:()=>o({postLayout:"list"}),isActive:"list"===g},{icon:sc,title:(0,De.__)("Grid view"),onClick:()=>o({postLayout:"grid"}),isActive:"grid"===g}],R=(0,Co.__experimentalGetSettings)().formats.date;return(0,Re.createElement)("div",null,z,(0,Re.createElement)(Fe.BlockControls,null,(0,Re.createElement)(He.ToolbarGroup,{controls:L})),(0,Re.createElement)("ul",I,M.map(((e,t)=>{const n=(0,ht.invoke)(e,["title","rendered","trim"]);let o=e.excerpt.rendered;const r=null==B?void 0:B.find((t=>t.id===e.author)),a=document.createElement("div");a.innerHTML=o,o=a.textContent||a.innerText||"";const{url:l,alt:i}=function(e,t){var n,o,r,a;const l=(0,ht.get)(e,["_embedded","wp:featuredmedia","0"]);return{url:null!==(n=null==l||null===(o=l.media_details)||void 0===o||null===(r=o.sizes)||void 0===r||null===(a=r[t])||void 0===a?void 0:a.source_url)&&void 0!==n?n:null==l?void 0:l.source_url,alt:null==l?void 0:l.alt_text}}(e,y),s=Qe()({"wp-block-latest-posts__featured-image":!0,[`align${b}`]:!!b}),g=c&&l,h=g&&(0,Re.createElement)("img",{src:l,alt:i,style:{maxWidth:f,maxHeight:_}}),w=v<o.trim().split(" ").length&&""===e.excerpt.raw?(0,Re.createElement)(Re.Fragment,null,o.trim().split(" ",v).join(" "),(0,De.__)(" "),(0,Re.createElement)("a",{href:e.link,rel:"noopener noreferrer"},(0,De.__)("Read more"))):o;return(0,Re.createElement)("li",{key:t},g&&(0,Re.createElement)("div",{className:s},k?(0,Re.createElement)("a",{className:"wp-block-latest-posts__post-title",href:e.link,rel:"noreferrer noopener"},h):h),(0,Re.createElement)("a",{href:e.link,rel:"noreferrer noopener",dangerouslySetInnerHTML:n?{__html:n}:void 0},n?null:(0,De.__)("(no title)")),p&&r&&(0,Re.createElement)("div",{className:"wp-block-latest-posts__post-author"},(0,De.sprintf)((0,De.__)("by %s"),r.name)),d&&e.date_gmt&&(0,Re.createElement)("time",{dateTime:(0,Co.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},(0,Co.dateI18n)(R,e.date_gmt)),m&&"excerpt"===u&&(0,Re.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},w),m&&"full_post"===u&&(0,Re.createElement)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:e.content.raw.trim()}}))}))))},deprecated:lc},gc={attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0},color:{gradients:!0,link:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save(e){let{attributes:t}=e;const{ordered:n,values:o,type:r,reversed:a,start:l}=t,i=n?"ol":"ul";return(0,Re.createElement)(i,Fe.useBlockProps.save({type:r,reversed:a,start:l}),(0,Re.createElement)(Fe.RichText.Content,{value:o,multiline:"li"}))},migrate:Ht,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}};var hc=[gc];var vc=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));var bc=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));var yc=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));var fc=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));var _c=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));var kc=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));var wc=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));var xc=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));var Ec=e=>{let{setAttributes:t,reversed:n,start:o}=e;return(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Ordered list settings")},(0,Re.createElement)(He.TextControl,{label:(0,De.__)("Start value"),type:"number",onChange:e=>{const n=parseInt(e,10);t({start:isNaN(n)?void 0:n})},value:Number.isInteger(o)?o.toString(10):"",step:"1"}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Reverse list numbering"),checked:n||!1,onChange:e=>{t({reversed:e||void 0})}})))};function Cc(e){let{phrasingContentSchema:t}=e;const n={...t,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach((e=>{n[e].children={li:{children:n}}})),n}const Sc={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>(0,Le.createBlock)("core/list",{values:(0,an.toHTMLString)({value:(0,an.join)(e.map((t=>{let{content:n}=t;const o=(0,an.create)({html:n});return e.length>1?o:(0,an.replace)(o,/\n/g,an.__UNSTABLE_LINE_SEPARATOR)})),an.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"}),anchor:e.anchor})},{type:"block",blocks:["core/quote","core/pullquote"],transform:e=>{let{value:t,anchor:n}=e;return(0,Le.createBlock)("core/list",{values:(0,an.toHTMLString)({value:(0,an.create)({html:t,multilineTag:"p"}),multilineTag:"li"}),anchor:n})}},{type:"raw",selector:"ol,ul",schema:e=>({ol:Cc(e).ol,ul:Cc(e).ul}),transform(e){const t={ordered:"OL"===e.nodeName,anchor:""===e.id?void 0:e.id};if(t.ordered){const n=e.getAttribute("type");n&&(t.type=n),null!==e.getAttribute("reversed")&&(t.reversed=!0);const o=parseInt(e.getAttribute("start"),10);isNaN(o)||1===o&&!t.reversed||(t.start=o)}return(0,Le.createBlock)("core/list",{...(0,Le.getBlockAttributes)("core/list",e.outerHTML),...t})}},...["*","-"].map((e=>({type:"prefix",prefix:e,transform:e=>(0,Le.createBlock)("core/list",{values:`<li>${e}</li>`})}))),...["1.","1)"].map((e=>({type:"prefix",prefix:e,transform:e=>(0,Le.createBlock)("core/list",{ordered:!0,values:`<li>${e}</li>`})})))],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{values:t}=e;return(0,an.split)((0,an.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),an.__UNSTABLE_LINE_SEPARATOR).map((e=>(0,Le.createBlock)("core/paragraph",{content:(0,an.toHTMLString)({value:e})})))}},{type:"block",blocks:["core/heading"],transform:e=>{let{values:t}=e;return(0,an.split)((0,an.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),an.__UNSTABLE_LINE_SEPARATOR).map((e=>(0,Le.createBlock)("core/heading",{content:(0,an.toHTMLString)({value:e})})))}},{type:"block",blocks:["core/quote"],transform:e=>{let{values:t,anchor:n}=e;return(0,Le.createBlock)("core/quote",{value:(0,an.toHTMLString)({value:(0,an.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:n})}},{type:"block",blocks:["core/pullquote"],transform:e=>{let{values:t,anchor:n}=e;return(0,Le.createBlock)("core/pullquote",{value:(0,an.toHTMLString)({value:(0,an.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:n})}}]};var Bc=Sc,Tc=window.wp.deprecated,Nc=n.n(Tc);function Pc(e){var t;const n={ordered:"OL"===e.tagName,start:e.getAttribute("start")?parseInt(e.getAttribute("start"),10):void 0,reversed:!0===e.getAttribute("reversed")||void 0,type:null!==(t=e.getAttribute("type"))&&void 0!==t?t:void 0},o=Array.from(e.children).map((e=>{const t=Array.from(e.childNodes).filter((e=>e.nodeType!==e.TEXT_NODE||0!==e.textContent.trim().length));t.reverse();const[n,...o]=t;if(!("UL"===n.tagName||"OL"===n.tagName))return(0,Le.createBlock)("core/list-item",{content:e.innerHTML});const r=o.map((e=>e.nodeType===e.TEXT_NODE?e.textContent:e.outerHTML));r.reverse();const a={content:r.join("").trim()},l=[Pc(n)];return(0,Le.createBlock)("core/list-item",a,l)}));return(0,Le.createBlock)("core/list",n,o)}function zc(e){const{values:t,start:n,reversed:o,ordered:r,type:a}=e,l=document.createElement(r?"ol":"ul");l.innerHTML=t,n&&l.setAttribute("start",n),o&&l.setAttribute("reversed",!0),a&&l.setAttribute("type",a);const i=Pc(l);return[{...(0,ht.omit)(e,["values"]),...i.attributes},i.innerBlocks]}const Ic=[["core/list-item"]];function Mc(e){let{clientId:t}=e;const[n,o]=function(e){const{canOutdent:t}=(0,Ye.useSelect)((t=>{const{getBlockRootClientId:n,getBlock:o}=t(Fe.store),r=n(e);return{canOutdent:!!r&&"core/list-item"===o(r).name}}),[e]),{replaceBlocks:n,selectionChange:o}=(0,Ye.useDispatch)(Fe.store),{getBlockRootClientId:r,getBlockAttributes:a,getBlock:l}=(0,Ye.useSelect)(Fe.store);return[t,(0,Re.useCallback)((()=>{const t=r(e),i=a(t),s=(0,Le.createBlock)("core/list-item",i),{innerBlocks:c}=l(e);n([t],[s,...c]),o((0,ht.last)(c).clientId)}),[e])]}(t);return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(He.ToolbarButton,{icon:(0,De.isRTL)()?_c:kc,title:(0,De.__)("Outdent"),describedBy:(0,De.__)("Outdent list item"),disabled:!n,onClick:o}))}var Lc=function(e){let{attributes:t,setAttributes:n,clientId:o}=e;const r=(0,Fe.useBlockProps)(),a=(0,Fe.useInnerBlocksProps)(r,{allowedBlocks:["core/list-item"],template:Ic});!function(e,t){const n=(0,Ye.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:r}=(0,Ye.useDispatch)(Fe.store);(0,Re.useEffect)((()=>{if(!e.values)return;const[a,l]=zc(e);Nc()("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),n.batch((()=>{o(t,a),r(t,l)}))}),[e.values])}(t,o);const{ordered:l,reversed:i,start:s}=t,c=l?"ol":"ul",u=(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(He.ToolbarButton,{icon:(0,De.isRTL)()?vc:bc,title:(0,De.__)("Unordered"),describedBy:(0,De.__)("Convert to unordered list"),isActive:!1===l,onClick:()=>{n({ordered:!1})}}),(0,Re.createElement)(He.ToolbarButton,{icon:(0,De.isRTL)()?yc:fc,title:(0,De.__)("Ordered"),describedBy:(0,De.__)("Convert to ordered list"),isActive:!0===l,onClick:()=>{n({ordered:!0})}}),(0,Re.createElement)(Mc,{clientId:o}));return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(c,je({reversed:i,start:s},a)),u,l&&(0,Re.createElement)(Ec,{setAttributes:n,ordered:l,reversed:i,start:s}))};const Rc={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map((e=>{let{content:t}=e;return(0,Le.createBlock)("core/list-item",{content:t})}));else if(1===e.length){const n=(0,an.create)({html:e[0].content});t=(0,an.split)(n,"\n").map((e=>(0,Le.createBlock)("core/list-item",{content:(0,an.toHTMLString)({value:e})})))}return(0,Le.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"block",blocks:["core/quote","core/pullquote"],transform:e=>{let{value:t,anchor:n}=e;return(0,Le.createBlock)("core/list",{anchor:n},(0,an.split)((0,an.create)({html:t,multilineTag:"p"}),an.__UNSTABLE_LINE_SEPARATOR).map((e=>(0,Le.createBlock)("core/list-item",{content:(0,an.toHTMLString)({value:e})}))))}},...["*","-"].map((e=>({type:"prefix",prefix:e,transform:e=>(0,Le.createBlock)("core/list",{},[(0,Le.createBlock)("core/list-item",{content:e})])}))),...["1.","1)"].map((e=>({type:"prefix",prefix:e,transform:e=>(0,Le.createBlock)("core/list",{ordered:!0},[(0,Le.createBlock)("core/list-item",{content:e})])})))],to:[...["core/paragraph","core/heading"].map((e=>({type:"block",blocks:[e],transform:(t,n)=>n.filter((e=>{let{name:t}=e;return"core/list-item"===t})).map((t=>{let{attributes:n}=t;return(0,Le.createBlock)(e,{content:n.content})}))}))),...["core/quote","core/pullquote"].map((e=>({type:"block",blocks:[e],transform:(t,n)=>(0,Le.switchToBlockType)((0,Le.switchToBlockType)((0,Le.createBlock)("core/list",t,n),"core/paragraph"),e)})))]};var Vc=Rc;const Ac={attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save(e){let{attributes:t}=e;const{ordered:n,values:o,type:r,reversed:a,start:l}=t,i=n?"ol":"ul";return(0,Re.createElement)(i,Fe.useBlockProps.save({type:r,reversed:a,start:l}),(0,Re.createElement)(Fe.RichText.Content,{value:o,multiline:"li"}))},migrate:zc};var Hc=[Ac,...hc];const Dc={icon:ic,edit:Lc,save:function(e){let{attributes:t}=e;const{ordered:n,reversed:o,start:r}=t,a=n?"ol":"ul";return(0,Re.createElement)(a,je({reversed:o,start:r},Fe.useBlockProps.save()),(0,Re.createElement)(Fe.InnerBlocks.Content,null))},transforms:Vc,deprecated:Hc};var Fc,$c=Dc;const Gc={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/list",title:"List",category:"text",description:"Create a bulleted or numbered list.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},editorStyle:"wp-block-list-editor",style:"wp-block-list"},{name:Uc}=Gc,Oc={icon:ic,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:Bc,merge(e,t){const{values:n}=t;return n&&"<li></li>"!==n?{...e,values:e.values+n}:e},edit:function(e){let{attributes:t,setAttributes:n,mergeBlocks:o,onReplace:r,style:a}=e;const{ordered:l,values:i,type:s,reversed:c,start:u,placeholder:m}=t,d=l?"ol":"ul",p=(0,Fe.useBlockProps)({style:a});return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.RichText,je({identifier:"values",multiline:"li",tagName:d,onChange:e=>n({values:e}),value:i,"aria-label":(0,De.__)("List text"),placeholder:m||(0,De.__)("List"),onMerge:o,onSplit:e=>(0,Le.createBlock)(Uc,{...t,values:e}),__unstableOnSplitMiddle:()=>(0,Le.createBlock)("core/paragraph"),onReplace:r,onRemove:()=>r([]),start:u,reversed:c,type:s},p),(e=>{let{value:t,onChange:o,onFocus:r}=e;return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.RichTextShortcut,{type:"primary",character:"[",onUse:()=>{o((0,an.__unstableOutdentListItems)(t))}}),(0,Re.createElement)(Fe.RichTextShortcut,{type:"primary",character:"]",onUse:()=>{o((0,an.__unstableIndentListItems)(t,{type:d}))}}),(0,Re.createElement)(Fe.RichTextShortcut,{type:"primary",character:"m",onUse:()=>{o((0,an.__unstableIndentListItems)(t,{type:d}))}}),(0,Re.createElement)(Fe.RichTextShortcut,{type:"primaryShift",character:"m",onUse:()=>{o((0,an.__unstableOutdentListItems)(t))}}),(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(He.ToolbarButton,{icon:(0,De.isRTL)()?vc:bc,title:(0,De.__)("Unordered"),describedBy:(0,De.__)("Convert to unordered list"),isActive:(0,an.__unstableIsActiveListType)(t,"ul",d),onClick:()=>{o((0,an.__unstableChangeListType)(t,{type:"ul"})),r(),(0,an.__unstableIsListRootSelected)(t)&&n({ordered:!1})}}),(0,Re.createElement)(He.ToolbarButton,{icon:(0,De.isRTL)()?yc:fc,title:(0,De.__)("Ordered"),describedBy:(0,De.__)("Convert to ordered list"),isActive:(0,an.__unstableIsActiveListType)(t,"ol",d),onClick:()=>{o((0,an.__unstableChangeListType)(t,{type:"ol"})),r(),(0,an.__unstableIsListRootSelected)(t)&&n({ordered:!0})}}),(0,Re.createElement)(He.ToolbarButton,{icon:(0,De.isRTL)()?_c:kc,title:(0,De.__)("Outdent"),describedBy:(0,De.__)("Outdent list item"),shortcut:(0,De._x)("Backspace","keyboard key"),isDisabled:!(0,an.__unstableCanOutdentListItems)(t),onClick:()=>{o((0,an.__unstableOutdentListItems)(t)),r()}}),(0,Re.createElement)(He.ToolbarButton,{icon:(0,De.isRTL)()?wc:xc,title:(0,De.__)("Indent"),describedBy:(0,De.__)("Indent list item"),shortcut:(0,De._x)("Space","keyboard key"),isDisabled:!(0,an.__unstableCanIndentListItems)(t),onClick:()=>{o((0,an.__unstableIndentListItems)(t,{type:d})),r()}})))})),l&&(0,Re.createElement)(Ec,{setAttributes:n,ordered:l,reversed:c,start:u,placeholder:m}))},save:function(e){let{attributes:t}=e;const{ordered:n,values:o,type:r,reversed:a,start:l}=t,i=n?"ol":"ul";return(0,Re.createElement)(i,Fe.useBlockProps.save({type:r,reversed:a,start:l}),(0,Re.createElement)(Fe.RichText.Content,{value:o,multiline:"li"}))},deprecated:hc},qc=null!==(Fc=window)&&void 0!==Fc&&Fc.__experimentalEnableListBlockV2?$c:Oc;var Wc=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));function jc(e,t,n){return(0,Le.createBlock)("core/list-item",e,n&&n.length?[(0,Le.createBlock)("core/list",t,n)]:[])}function Zc(e){const{canIndent:t}=(0,Ye.useSelect)((t=>{const{getBlockIndex:n}=t(Fe.store);return{canIndent:n(e)>0}}),[e]),{replaceBlocks:n,selectionChange:o}=(0,Ye.useDispatch)(Fe.store),{getBlockRootClientId:r,getBlock:a,getBlockOrder:l,getSelectionStart:i,getSelectionEnd:s,getBlockIndex:c}=(0,Ye.useSelect)(Fe.store);return[t,(0,Re.useCallback)((()=>{var t,u,m,d;const p=i(),g=s(),h=r(e),v=l(h)[c(e)-1],b=a(v),y=(null===(t=(0,ht.first)(b.innerBlocks))||void 0===t?void 0:t.innerBlocks)||[],f=(null===(u=(0,ht.first)(b.innerBlocks))||void 0===u?void 0:u.attributes)||{},_=a(e),k=null===(m=(0,ht.first)(_.innerBlocks))||void 0===m?void 0:m.attributes,w=(null===(d=(0,ht.first)(_.innerBlocks))||void 0===d?void 0:d.innerBlocks)||[],x=jc(_.attributes,k,w);n([v,e],[jc(b.attributes,f,[...y,x])]),o(x.clientId,g.attributeKey,g.clientId===p.clientId?p.offset:g.offset,g.offset)}),[e])]}function Qc(e){let{clientId:t}=e;const[n,o]=Zc(t),[r,a]=function(e){const{canOutdent:t}=(0,Ye.useSelect)((t=>{const{getBlockRootClientId:n}=t(Fe.store);return{canOutdent:!!n(n(e))}}),[e]),{replaceBlocks:n,selectionChange:o}=(0,Ye.useDispatch)(Fe.store),{getBlockRootClientId:r,getBlockAttributes:a,getBlock:l,getBlockIndex:i,getSelectionStart:s,getSelectionEnd:c}=(0,Ye.useSelect)(Fe.store);return[t,(0,Re.useCallback)((()=>{const t=s(),u=c(),m=r(e),d=a(m),p=r(m),g=a(p),h=i(e),v=l(m).innerBlocks,b=v.slice(0,h),y=v.slice(h+1),f=jc(g,d,b),_=l(e),k=_.innerBlocks[0],w=(null==k?void 0:k.innerBlocks)||[],x=!!w.length,E=jc(_.attributes,x?k.attributes:d,[...w,...y]);n([p],[f,E]),o(E.clientId,u.attributeKey,u.clientId===t.clientId?t.offset:u.offset,u.offset)}),[e])]}(t);return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(He.ToolbarButton,{icon:(0,De.isRTL)()?_c:kc,title:(0,De.__)("Outdent"),describedBy:(0,De.__)("Outdent list item"),disabled:!r,onClick:a}),(0,Re.createElement)(He.ToolbarButton,{icon:(0,De.isRTL)()?wc:xc,title:(0,De.__)("Indent"),describedBy:(0,De.__)("Indent list item"),isDisabled:!n,onClick:o}))}const Kc={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/list-item",title:"List item",category:"text",parent:["core/list"],description:"Create a list item.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"string",source:"html",selector:"li",default:"",__experimentalRole:"content"}},supports:{className:!1,__experimentalSelector:"li"}},{name:Jc}=Kc,Yc={icon:Wc,edit:function(e){let{name:t,attributes:n,setAttributes:o,mergeBlocks:r,onReplace:a,clientId:l}=e;const{placeholder:i,content:s}=n,c=(0,Fe.useBlockProps)(),u=(0,Fe.useInnerBlocksProps)(c,{allowedBlocks:["core/list"]}),m=function(e){const{replaceBlocks:t}=(0,Ye.useDispatch)(Fe.store),{getBlock:n,getBlockRootClientId:o,getBlockParents:r,getBlockIndex:a}=(0,Ye.useSelect)(Fe.store),l=(0,Re.useRef)(e);l.current=e;const[i,s]=Zc(l.current.clientId);return(0,Rt.useRefEffect)((e=>{function c(e){var c;if(e.defaultPrevented||e.keyCode!==Wt.ENTER)return;const{content:u,clientId:m}=l.current;if(u.length)return;if(e.preventDefault(),i)return void s();const d=o(m),p=r(m)[0],g=n(p),h=a(m),v=(0,Le.cloneBlock)({...g,innerBlocks:g.innerBlocks.slice(0,h)}),b=(0,Le.createBlock)((0,Le.getDefaultBlockName)()),y=[...(null===(c=g.innerBlocks[h].innerBlocks[0])||void 0===c?void 0:c.innerBlocks)||[],...g.innerBlocks.slice(h+1)],f=y.length?[(0,Le.cloneBlock)({...g,innerBlocks:y})]:[];t(d,[v,b,...f],1,0)}return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}}),[i])}({content:s,clientId:l});return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)("li",u,(0,Re.createElement)(Fe.RichText,{ref:(0,Rt.useMergeRefs)([m]),identifier:"content",tagName:"div",onChange:e=>o({content:e}),value:s,"aria-label":(0,De.__)("List text"),placeholder:i||(0,De.__)("List"),onSplit:e=>(0,Le.createBlock)(t,{...n,content:e}),onMerge:r,onReplace:a}),u.children),(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(Qc,{clientId:l})))},save:function(e){let{attributes:t}=e;return(0,Re.createElement)("li",Fe.useBlockProps.save(),(0,Re.createElement)(Fe.RichText.Content,{value:t.content}),(0,Re.createElement)(Fe.InnerBlocks.Content,null))},merge:(e,t)=>({...e,content:e.content+t.content})};var Xc=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"}));const eu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/loginout",title:"Login/out",category:"theme",description:"Show login & logout links.",keywords:["login","logout","form"],textdomain:"default",attributes:{displayLoginAsForm:{type:"boolean",default:!1},redirectToCurrent:{type:"boolean",default:!0}},supports:{className:!0,typography:{fontSize:!1}}},{name:tu}=eu,nu={icon:Xc,edit:function(e){let{attributes:t,setAttributes:n}=e;const{displayLoginAsForm:o,redirectToCurrent:r}=t;return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Login/out settings")},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Display login as form"),checked:o,onChange:()=>n({displayLoginAsForm:!o})}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Redirect to current URL"),checked:r,onChange:()=>n({redirectToCurrent:!r})}))),(0,Re.createElement)("div",(0,Fe.useBlockProps)({className:"logged-in"}),(0,Re.createElement)("a",{href:"#login-pseudo-link"},(0,De.__)("Log out"))))}};var ou=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M3 18h8V6H3v12zM14 7.5V9h7V7.5h-7zm0 5.3h7v-1.5h-7v1.5zm0 3.7h7V15h-7v1.5z"})),ru=(0,Re.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.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"}),(0,Re.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"}),(0,Re.createElement)(He.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"}));const au=["image","video"];function lu(e,t){return e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${100*t.x}% ${100*t.y}%`:"50% 50%"}:{}}const iu=(0,Re.forwardRef)(((e,t)=>{let{isSelected:n,isStackedOnMobile:o,...r}=e;const a=(0,Rt.useViewportMatch)("small","<");return(0,Re.createElement)(He.ResizableBox,je({ref:t,showHandle:n&&(!a||!o)},r))}));function su(e){let{mediaId:t,mediaUrl:n,onSelectMedia:o}=e;return(0,Re.createElement)(Fe.BlockControls,{group:"other"},(0,Re.createElement)(Fe.MediaReplaceFlow,{mediaId:t,mediaURL:n,allowedTypes:au,accept:"image/*,video/*",onSelect:o}))}function cu(e){let{className:t,noticeOperations:n,noticeUI:o,mediaUrl:r,onSelectMedia:a}=e;return(0,Re.createElement)(Fe.MediaPlaceholder,{icon:(0,Re.createElement)(Fe.BlockIcon,{icon:ru}),labels:{title:(0,De.__)("Media area")},className:t,onSelect:a,accept:"image/*,video/*",allowedTypes:au,notices:o,onError:e=>{n.removeAllNotices(),n.createErrorNotice(e)},disableMediaButtons:r})}var uu=(0,He.withNotices)((0,Re.forwardRef)((function(e,t){const{className:n,commitWidthChange:o,focalPoint:r,imageFill:a,isSelected:l,isStackedOnMobile:i,mediaAlt:s,mediaId:c,mediaPosition:u,mediaType:m,mediaUrl:d,mediaWidth:p,onSelectMedia:g,onWidthChange:h}=e,v=!c&&(0,dt.isBlobURL)(d),{toggleSelection:b}=(0,Ye.useDispatch)(Fe.store);if(d){const y=()=>{b(!1)},f=(e,t,n)=>{h(parseInt(n.style.width))},_=(e,t,n)=>{b(!0),o(parseInt(n.style.width))},k={right:"left"===u,left:"right"===u},w="image"===m&&a?lu(d,r):{},x={image:()=>(0,Re.createElement)("img",{src:d,alt:s}),video:()=>(0,Re.createElement)("video",{controls:!0,src:d})};return(0,Re.createElement)(iu,{as:"figure",className:Qe()(n,"editor-media-container__resizer",{"is-transient":v}),style:w,size:{width:p+"%"},minWidth:"10%",maxWidth:"100%",enable:k,onResizeStart:y,onResize:f,onResizeStop:_,axis:"x",isSelected:l,isStackedOnMobile:i,ref:t},(0,Re.createElement)(su,{onSelectMedia:g,mediaUrl:d,mediaId:c}),(x[m]||ht.noop)(),v&&(0,Re.createElement)(He.Spinner,null),(0,Re.createElement)(cu,e))}return(0,Re.createElement)(cu,e)})));const mu=e=>{if(!e.customBackgroundColor)return e;const t={color:{background:e.customBackgroundColor}};return{...(0,ht.omit)(e,["customBackgroundColor"]),style:t}},du={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}};var pu=[{attributes:{...du,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:mu,save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:o,isStackedOnMobile:r,mediaAlt:a,mediaPosition:l,mediaType:i,mediaUrl:s,mediaWidth:c,mediaId:u,verticalAlignment:m,imageFill:d,focalPoint:p,linkClass:g,href:h,linkTarget:v,rel:b}=t,y=(0,ht.isEmpty)(b)?void 0:b;let f=(0,Re.createElement)("img",{src:s,alt:a,className:u&&"image"===i?`wp-image-${u}`:null});h&&(f=(0,Re.createElement)("a",{className:g,href:h,target:v,rel:y},f));const _={image:()=>f,video:()=>(0,Re.createElement)("video",{controls:!0,src:s})},k=(0,Fe.getColorClassName)("background-color",n),w=Qe()({"has-media-on-the-right":"right"===l,"has-background":k||o,[k]:k,"is-stacked-on-mobile":r,[`is-vertically-aligned-${m}`]:m,"is-image-fill":d}),x=d?lu(s,p):{};let E;50!==c&&(E="right"===l?`auto ${c}%`:`${c}% auto`);const C={backgroundColor:k?void 0:o,gridTemplateColumns:E};return(0,Re.createElement)("div",{className:w,style:C},(0,Re.createElement)("figure",{className:"wp-block-media-text__media",style:x},(_[i]||ht.noop)()),(0,Re.createElement)("div",{className:"wp-block-media-text__content"},(0,Re.createElement)(Fe.InnerBlocks.Content,null)))}},{attributes:{...du,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:mu,save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:o,isStackedOnMobile:r,mediaAlt:a,mediaPosition:l,mediaType:i,mediaUrl:s,mediaWidth:c,mediaId:u,verticalAlignment:m,imageFill:d,focalPoint:p}=t,g={image:()=>(0,Re.createElement)("img",{src:s,alt:a,className:u&&"image"===i?`wp-image-${u}`:null}),video:()=>(0,Re.createElement)("video",{controls:!0,src:s})},h=(0,Fe.getColorClassName)("background-color",n),v=Qe()({"has-media-on-the-right":"right"===l,[h]:h,"is-stacked-on-mobile":r,[`is-vertically-aligned-${m}`]:m,"is-image-fill":d}),b=d?lu(s,p):{};let y;50!==c&&(y="right"===l?`auto ${c}%`:`${c}% auto`);const f={backgroundColor:h?void 0:o,gridTemplateColumns:y};return(0,Re.createElement)("div",{className:v,style:f},(0,Re.createElement)("figure",{className:"wp-block-media-text__media",style:b},(g[i]||ht.noop)()),(0,Re.createElement)("div",{className:"wp-block-media-text__content"},(0,Re.createElement)(Fe.InnerBlocks.Content,null)))}},{attributes:{...du,customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:o,isStackedOnMobile:r,mediaAlt:a,mediaPosition:l,mediaType:i,mediaUrl:s,mediaWidth:c}=t,u={image:()=>(0,Re.createElement)("img",{src:s,alt:a}),video:()=>(0,Re.createElement)("video",{controls:!0,src:s})},m=(0,Fe.getColorClassName)("background-color",n),d=Qe()({"has-media-on-the-right":"right"===l,[m]:m,"is-stacked-on-mobile":r});let p;50!==c&&(p="right"===l?`auto ${c}%`:`${c}% auto`);const g={backgroundColor:m?void 0:o,gridTemplateColumns:p};return(0,Re.createElement)("div",{className:d,style:g},(0,Re.createElement)("figure",{className:"wp-block-media-text__media"},(u[i]||ht.noop)()),(0,Re.createElement)("div",{className:"wp-block-media-text__content"},(0,Re.createElement)(Fe.InnerBlocks.Content,null)))}}];var gu=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"}));var hu=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"}));const vu="full",bu=[["core/paragraph",{fontSize:"large",placeholder:(0,De._x)("Content","content placeholder")}]],yu=e=>Math.max(15,Math.min(e,85));function fu(e,t){var n,o,r;return null==e||null===(n=e.media_details)||void 0===n||null===(o=n.sizes)||void 0===o||null===(r=o[t])||void 0===r?void 0:r.source_url}var _u=function(e){let{attributes:t,isSelected:n,setAttributes:o}=e;const{focalPoint:r,href:a,imageFill:l,isStackedOnMobile:i,linkClass:s,linkDestination:c,linkTarget:u,mediaAlt:m,mediaId:d,mediaPosition:p,mediaType:g,mediaUrl:h,mediaWidth:v,rel:b,verticalAlignment:y}=t,f=t.mediaSizeSlug||vu,_=(0,Ye.useSelect)((e=>d&&n?e(Je.store).getMedia(d,{context:"view"}):null),[n,d]),k=(0,Re.useRef)(),w=e=>{const{style:t}=k.current.resizable,{x:n,y:o}=e;t.backgroundPosition=`${100*n}% ${100*o}%`},[x,E]=(0,Re.useState)(null),C=function(e){let{attributes:{linkDestination:t,href:n},setAttributes:o}=e;return e=>{if(!e||!e.url)return void o({mediaAlt:void 0,mediaId:void 0,mediaType:void 0,mediaUrl:void 0,mediaLink:void 0,href:void 0,focalPoint:void 0});let r,a;var l,i,s,c,u;(0,dt.isBlobURL)(e.url)&&(e.type=(0,dt.getBlobTypeByURL)(e.url)),r=e.media_type?"image"===e.media_type?"image":"video":e.type,"image"===r&&(a=(null===(l=e.sizes)||void 0===l||null===(i=l.large)||void 0===i?void 0:i.url)||(null===(s=e.media_details)||void 0===s||null===(c=s.sizes)||void 0===c||null===(u=c.large)||void 0===u?void 0:u.source_url));let m=n;"media"===t&&(m=e.url),"attachment"===t&&(m=e.link),o({mediaAlt:e.alt,mediaId:e.id,mediaType:r,mediaUrl:a||e.url,mediaLink:e.link||void 0,href:m,focalPoint:void 0})}}({attributes:t,setAttributes:o}),S=e=>{o({mediaWidth:yu(e)}),E(yu(e))},B=Qe()({"has-media-on-the-right":"right"===p,"is-selected":n,"is-stacked-on-mobile":i,[`is-vertically-aligned-${y}`]:y,"is-image-fill":l}),T=`${x||v}%`,N="right"===p?`1fr ${T}`:`${T} 1fr`,P={gridTemplateColumns:N,msGridColumns:N},z=(0,Ye.useSelect)((e=>{const t=e(Fe.store).getSettings();return null==t?void 0:t.imageSizes}),[]),I=(0,ht.map)((0,ht.filter)(z,(e=>{let{slug:t}=e;return fu(_,t)})),(e=>{let{name:t,slug:n}=e;return{value:n,label:t}})),M=(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Media & Text settings")},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Stack on mobile"),checked:i,onChange:()=>o({isStackedOnMobile:!i})}),"image"===g&&(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Crop image to fill entire column"),checked:l,onChange:()=>o({imageFill:!l})}),l&&h&&"image"===g&&(0,Re.createElement)(He.FocalPointPicker,{label:(0,De.__)("Focal point picker"),url:h,value:r,onChange:e=>o({focalPoint:e}),onDragStart:w,onDrag:w}),"image"===g&&(0,Re.createElement)(He.TextareaControl,{label:(0,De.__)("Alt text (alternative text)"),value:m,onChange:e=>{o({mediaAlt:e})},help:(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(He.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,De.__)("Describe the purpose of the image")),(0,De.__)("Leave empty if the image is purely decorative."))}),"image"===g&&(0,Re.createElement)(Fe.__experimentalImageSizeControl,{onChangeImage:e=>{const t=fu(_,e);if(!t)return null;o({mediaUrl:t,mediaSizeSlug:e})},slug:f,imageSizeOptions:I,isResizable:!1}),h&&(0,Re.createElement)(He.RangeControl,{label:(0,De.__)("Media width"),value:x||v,onChange:S,min:15,max:85})),L=(0,Fe.useBlockProps)({className:B,style:P}),R=(0,Fe.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:bu});return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.InspectorControls,null,M),(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(Fe.BlockVerticalAlignmentControl,{onChange:e=>{o({verticalAlignment:e})},value:y}),(0,Re.createElement)(He.ToolbarButton,{icon:gu,title:(0,De.__)("Show media on left"),isActive:"left"===p,onClick:()=>o({mediaPosition:"left"})}),(0,Re.createElement)(He.ToolbarButton,{icon:hu,title:(0,De.__)("Show media on right"),isActive:"right"===p,onClick:()=>o({mediaPosition:"right"})}),"image"===g&&(0,Re.createElement)(Fe.__experimentalImageURLInputUI,{url:a||"",onChangeUrl:e=>{o(e)},linkDestination:c,mediaType:g,mediaUrl:_&&_.source_url,mediaLink:_&&_.link,linkTarget:u,linkClass:s,rel:b})),(0,Re.createElement)("div",L,(0,Re.createElement)(uu,{className:"wp-block-media-text__media",onSelectMedia:C,onWidthChange:e=>{E(yu(e))},commitWidthChange:S,ref:k,focalPoint:r,imageFill:l,isSelected:n,isStackedOnMobile:i,mediaAlt:m,mediaId:d,mediaPosition:p,mediaType:g,mediaUrl:h,mediaWidth:v}),(0,Re.createElement)("div",R)))};var ku={from:[{type:"block",blocks:["core/image"],transform:e=>{let{alt:t,url:n,id:o,anchor:r}=e;return(0,Le.createBlock)("core/media-text",{mediaAlt:t,mediaId:o,mediaUrl:n,mediaType:"image",anchor:r})}},{type:"block",blocks:["core/video"],transform:e=>{let{src:t,id:n,anchor:o}=e;return(0,Le.createBlock)("core/media-text",{mediaId:n,mediaUrl:t,mediaType:"video",anchor:o})}}],to:[{type:"block",blocks:["core/image"],isMatch:e=>{let{mediaType:t,mediaUrl:n}=e;return!n||"image"===t},transform:e=>{let{mediaAlt:t,mediaId:n,mediaUrl:o,anchor:r}=e;return(0,Le.createBlock)("core/image",{alt:t,id:n,url:o,anchor:r})}},{type:"block",blocks:["core/video"],isMatch:e=>{let{mediaType:t,mediaUrl:n}=e;return!n||"video"===t},transform:e=>{let{mediaId:t,mediaUrl:n,anchor:o}=e;return(0,Le.createBlock)("core/video",{id:t,src:n,anchor:o})}}]};const wu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/media-text",title:"Media & Text",category:"media",description:"Set media and words side-by-side for a richer layout.",keywords:["image","video"],textdomain:"default",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,__experimentalDefaultControls:{background:!0,text:!0}}},editorStyle:"wp-block-media-text-editor",style:"wp-block-media-text"},{name:xu}=wu,Eu={icon:ou,example:{viewportWidth:601,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:(0,De.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,De.__)(" Kobayashi Issa ()")}}]},transforms:ku,edit:_u,save:function(e){let{attributes:t}=e;const{isStackedOnMobile:n,mediaAlt:o,mediaPosition:r,mediaType:a,mediaUrl:l,mediaWidth:i,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:d,href:p,linkTarget:g,rel:h}=t,v=t.mediaSizeSlug||vu,b=(0,ht.isEmpty)(h)?void 0:h,y=Qe()({[`wp-image-${s}`]:s&&"image"===a,[`size-${v}`]:s&&"image"===a});let f=(0,Re.createElement)("img",{src:l,alt:o,className:y||null});p&&(f=(0,Re.createElement)("a",{className:d,href:p,target:g,rel:b},f));const _={image:()=>f,video:()=>(0,Re.createElement)("video",{controls:!0,src:l})},k=Qe()({"has-media-on-the-right":"right"===r,"is-stacked-on-mobile":n,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),w=u?lu(l,m):{};let x;50!==i&&(x="right"===r?`auto ${i}%`:`${i}% auto`);const E={gridTemplateColumns:x};return(0,Re.createElement)("div",Fe.useBlockProps.save({className:k,style:E}),(0,Re.createElement)("figure",{className:"wp-block-media-text__media",style:w},(_[a]||ht.noop)()),(0,Re.createElement)("div",Fe.useInnerBlocksProps.save({className:"wp-block-media-text__content"})))},deprecated:pu};var Cu=window.wp.dom;const Su=(0,Ye.withDispatch)(((e,t)=>{let{clientId:n,attributes:o}=t;const{replaceBlock:r}=e(Fe.store);return{convertToHTML(){r(n,(0,Le.createBlock)("core/html",{content:o.originalUndelimitedContent}))}}}))((function(e){let{attributes:t,convertToHTML:n}=e;const{originalName:o,originalUndelimitedContent:r}=t,a=!!r,l=(0,Le.getBlockType)("core/html"),i=[];let s;return a&&l?(s=(0,De.sprintf)((0,De.__)('Your site doesnt 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),i.push((0,Re.createElement)(He.Button,{key:"convert",onClick:n,variant:"primary"},(0,De.__)("Keep as HTML")))):s=(0,De.sprintf)((0,De.__)('Your site doesnt include support for the "%s" block. You can leave this block intact or remove it entirely.'),o),(0,Re.createElement)("div",(0,Fe.useBlockProps)({className:"has-warning"}),(0,Re.createElement)(Fe.Warning,{actions:i},s),(0,Re.createElement)(Re.RawHTML,null,(0,Cu.safeHTML)(r)))}));var Bu=Su;const Tu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/missing",title:"Unsupported",category:"text",description:"Your site doesnt include support for this block.",textdomain:"default",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1}},{name:Nu}=Tu,Pu={name:Nu,__experimentalLabel(e,t){let{context:n}=t;if("accessibility"===n){const{originalName:t}=e,n=t?(0,Le.getBlockType)(t):void 0;return n?n.settings.title||t:""}},edit:Bu,save:function(e){let{attributes:t}=e;return(0,Re.createElement)(Re.RawHTML,null,t.originalContent)}};var zu=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"}));const Iu=(0,De.__)("Read more");var Mu={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/more"===e.dataset.block,transform(e){const{customText:t,noTeaser:n}=e.dataset,o={};return t&&(o.customText=t),""===n&&(o.noTeaser=!0),(0,Le.createBlock)("core/more",o)}}]};const Lu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/more",title:"More",category:"design",description:"Content before this block will be shown in the excerpt on your archives page.",keywords:["read more"],textdomain:"default",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1},editorStyle:"wp-block-more-editor"},{name:Ru}=Lu,Vu={icon:zu,example:{},__experimentalLabel(e,t){let{context:n}=t;if("accessibility"===n)return e.customText},transforms:Mu,edit:function(e){let{attributes:{customText:t,noTeaser:n},insertBlocksAfter:o,setAttributes:r}=e;const a={width:`${(t||Iu).length+1.2}em`};return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,null,(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:()=>r({noTeaser:!n}),help:e=>e?(0,De.__)("The excerpt is hidden."):(0,De.__)("The excerpt is visible.")}))),(0,Re.createElement)("div",(0,Fe.useBlockProps)(),(0,Re.createElement)("div",{className:"wp-block-more"},(0,Re.createElement)("input",{"aria-label":(0,De.__)("Read more link text"),type:"text",value:t,placeholder:Iu,onChange:e=>{r({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:e=>{let{keyCode:t}=e;t===Wt.ENTER&&o([(0,Le.createBlock)((0,Le.getDefaultBlockName)())])},style:a}))))},save:function(e){let{attributes:{customText:t,noTeaser:n}}=e;const o=t?`\x3c!--more ${t}--\x3e`:"\x3c!--more--\x3e",r=n?"\x3c!--noteaser--\x3e":"";return(0,Re.createElement)(Re.RawHTML,null,(0,ht.compact)([o,r]).join("\n"))}};var Au=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"})),Hu=window.wp.a11y;function Du(e){return(0,Ye.useSelect)((t=>{var n;const{getEntityRecord:o,getEditedEntityRecord:r,getEntityRecords:a,hasFinishedResolution:l,isResolving:i,canUser:s}=t(Je.store),c=["postType","wp_navigation",e],u=e?o(...c):null;let m=e?r(...c):null;"publish"!==(null===(n=m)||void 0===n?void 0:n.status)&&(m=null);const d=!!e&&l("getEditedEntityRecord",c),p=["postType","wp_navigation",{per_page:-1,status:"publish"}],g=a(...p),h=e?(null==g?void 0:g.length)>1:(null==g?void 0:g.length)>0;return{isNavigationMenuResolved:d,isNavigationMenuMissing:!e||d&&!u,canSwitchNavigationMenu:h,isResolvingNavigationMenus:i("getEntityRecords",p),hasResolvedNavigationMenus:l("getEntityRecords",p),navigationMenu:m,navigationMenus:g,canUserUpdateNavigationMenu:e?s("update","navigation",e):void 0,hasResolvedCanUserUpdateNavigationMenu:l("canUser",["update","navigation",e]),canUserDeleteNavigationMenu:e?s("delete","navigation",e):void 0,hasResolvedCanUserDeleteNavigationMenu:l("canUser",["delete","navigation",e]),canUserCreateNavigationMenu:s("create","navigation"),isResolvingCanUserCreateNavigationMenu:i("canUser",["create","navigation"]),hasResolvedCanUserCreateNavigationMenu:l("canUser",["create","navigation"])}}),[e])}function Fu(e){const{records:t,isResolving:n,hasResolved:o}=(0,Je.__experimentalUseEntityRecords)("root","menu",{per_page:-1,context:"view"}),{records:r,isResolving:a,hasResolved:l}=(0,Je.__experimentalUseEntityRecords)("postType","page",{parent:0,order:"asc",orderby:"id",per_page:-1,context:"view"}),{records:i,hasResolved:s}=(0,Je.__experimentalUseEntityRecords)("root","menuItem",{menus:e,per_page:-1,context:"view"},{enabled:!!e});return{pages:r,isResolvingPages:a,hasResolvedPages:l,hasPages:!(!l||null==r||!r.length),menus:t,isResolvingMenus:n,hasResolvedMenus:o,hasMenus:!(!o||null==t||!t.length),menuItems:i,hasResolvedMenuItems:s}}var $u=function(e){let{icon:t,size:n=24,...o}=e;return(0,Re.cloneElement)(t,{width:n,height:n,...o})};var Gu=e=>{let{isVisible:t=!0}=e;return(0,Re.createElement)("div",{"aria-hidden":!t||void 0,className:"wp-block-navigation-placeholder__preview"},(0,Re.createElement)("div",{className:"wp-block-navigation-placeholder__actions__indicator"},(0,Re.createElement)($u,{icon:Au}),(0,De.__)("Navigation")))},Uu=window.wp.htmlEntities;function Ou(e){let{currentMenuId:t,onSelect:n,onCreateNew:o,showManageActions:r=!1,actionLabel:a,toggleProps:l={}}=e;const i=(0,De.__)("Create from '%s'");a=a||i;const{menus:s}=Fu(),{navigationMenus:c,canUserCreateNavigationMenu:u,canUserUpdateNavigationMenu:m,canSwitchNavigationMenu:d}=Du(),p=(0,Re.useCallback)((e=>t=>{e(),n(null==c?void 0:c.find((e=>e.id===t)))}),[c]),g=(0,Re.useCallback)(((e,t)=>()=>{e(),n(t)}),[]),h=(0,Re.useMemo)((()=>(null==c?void 0:c.map((e=>{let{id:t,title:n}=e;const o=(0,Uu.decodeEntities)(n.rendered);return{value:t,label:o,ariaLabel:(0,De.sprintf)(a,o)}})))||[]),[c]),v=!(null==c||!c.length),b=!(null==s||!s.length),y=!!d,f=!!u,_=u||m;return(d||u)&&(v||b)||_&&r?(0,Re.createElement)(He.ToolbarDropdownMenu,{label:(0,De.__)("Select Menu"),text:(0,De.__)("Select Menu"),icon:null,toggleProps:l},(e=>{let{onClose:n}=e;return(0,Re.createElement)(Re.Fragment,null,y&&v&&(0,Re.createElement)(He.MenuGroup,{label:(0,De.__)("Menus")},(0,Re.createElement)(He.MenuItemsChoice,{value:t,onSelect:p(n),choices:h})),f&&b&&(0,Re.createElement)(He.MenuGroup,{label:(0,De.__)("Classic Menus")},null==s?void 0:s.map((e=>{const t=(0,Uu.decodeEntities)(e.name);return(0,Re.createElement)(He.MenuItem,{onClick:g(n,e),key:e.id,"aria-label":(0,De.sprintf)(i,t)},t)}))),r&&_&&(0,Re.createElement)(He.MenuGroup,{label:(0,De.__)("Tools")},u&&(0,Re.createElement)(He.MenuItem,{onClick:o},(0,De.__)("Create new menu")),(0,Re.createElement)(He.MenuItem,{href:(0,Ke.addQueryArgs)("edit.php",{post_type:"wp_navigation"})},(0,De.__)("Manage menus"))))})):null}function qu(e){let{isSelected:t,currentMenuId:n,clientId:o,canUserCreateNavigationMenu:r=!1,isResolvingCanUserCreateNavigationMenu:a,onFinish:l,onCreateEmpty:i}=e;const{isResolvingMenus:s,hasResolvedMenus:c}=Fu();(0,Re.useEffect)((()=>{t&&(s&&(0,Hu.speak)((0,De.__)("Loading Navigation block setup options.")),c&&(0,Hu.speak)((0,De.__)("Navigation block setup options ready.")))}),[s,t]);const u=s&&a;return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(He.Placeholder,{className:"wp-block-navigation-placeholder"},(0,Re.createElement)(Gu,{isVisible:!t}),(0,Re.createElement)("div",{"aria-hidden":!t||void 0,className:"wp-block-navigation-placeholder__controls"},(0,Re.createElement)("div",{className:"wp-block-navigation-placeholder__actions"},(0,Re.createElement)("div",{className:"wp-block-navigation-placeholder__actions__indicator"},(0,Re.createElement)($u,{icon:Au})," ",(0,De.__)("Navigation")),(0,Re.createElement)("hr",null),u&&(0,Re.createElement)(He.Spinner,null),(0,Re.createElement)(Ou,{currentMenuId:n,clientId:o,onSelect:l,toggleProps:{variant:"tertiary",iconPosition:"right",className:"wp-block-navigation-placeholder__actions__dropdown"}}),(0,Re.createElement)("hr",null),r&&(0,Re.createElement)(He.Button,{variant:"tertiary",onClick:i},(0,De.__)("Start empty"))))))}var Wu=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function ju(){return(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,Re.createElement)(Ve.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,Re.createElement)(Ve.Rect,{x:"4",y:"15",width:"16",height:"1.5"}))}function Zu(e){let{children:t,id:n,isOpen:o,isResponsive:r,onToggle:a,isHiddenByDefault:l,classNames:i,styles:s,hasIcon:c}=e;if(!r)return t;const u=Qe()("wp-block-navigation__responsive-container",i,{"is-menu-open":o,"hidden-by-default":l}),m=Qe()("wp-block-navigation__responsive-container-open",{"always-shown":l}),d=`${n}-modal`,p={className:"wp-block-navigation__responsive-dialog",...o&&{role:"dialog","aria-modal":!0,"aria-label":(0,De.__)("Menu")}};return(0,Re.createElement)(Re.Fragment,null,!o&&(0,Re.createElement)(He.Button,{"aria-haspopup":"true","aria-label":(0,De.__)("Open menu"),className:m,onClick:()=>a(!0)},c&&(0,Re.createElement)(ju,null),!c&&(0,Re.createElement)("span",{className:"wp-block-navigation__toggle_button_label"},(0,De.__)("Menu"))),(0,Re.createElement)("div",{className:u,style:s,id:d},(0,Re.createElement)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1"},(0,Re.createElement)("div",p,(0,Re.createElement)(He.Button,{className:"wp-block-navigation__responsive-container-close","aria-label":(0,De.__)("Close menu"),onClick:()=>a(!1)},(0,Re.createElement)($u,{icon:Wu})),(0,Re.createElement)("div",{className:"wp-block-navigation__responsive-container-content",id:`${d}-content`},t)))))}const Qu=["core/navigation-link","core/search","core/social-links","core/page-list","core/spacer","core/home-link","core/site-title","core/site-logo","core/navigation-submenu"],Ku={name:"core/navigation-link"},Ju={type:"default",alignments:[]};function Yu(e){let{clientId:t,hasCustomPlaceholder:n,orientation:o}=e;const{isImmediateParentOfSelectedBlock:r,selectedBlockHasDescendants:a,isSelected:l}=(0,Ye.useSelect)((e=>{var n;const{getClientIdsOfDescendants:o,hasSelectedInnerBlock:r,getSelectedBlockClientId:a}=e(Fe.store),l=a();return{isImmediateParentOfSelectedBlock:r(t,!1),selectedBlockHasDescendants:!(null===(n=o([l]))||void 0===n||!n.length),isSelected:l===t}}),[t]),[i,s,c]=(0,Je.useEntityBlockEditor)("postType","wp_navigation"),u=(0,Re.useMemo)((()=>i.every((e=>{let{name:t}=e;return"core/navigation-link"===t||"core/navigation-submenu"===t||"core/page-list"===t}))),[i]),m=l||r&&!a,d=(0,Re.useMemo)((()=>(0,Re.createElement)(Gu,null)),[]),p=!(null==i||!i.length),g=!n&&!p&&!l,h=(0,Fe.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:i,onInput:s,onChange:c,allowedBlocks:Qu,__experimentalDefaultBlock:Ku,__experimentalDirectInsert:u,orientation:o,renderAppender:!!(l||r&&!a||m)&&Fe.InnerBlocks.ButtonBlockAppender,templateLock:!1,__experimentalLayout:Ju,placeholder:g?d:void 0});return(0,Re.createElement)(Fe.__experimentalBlockContentOverlay,{clientId:t,tagName:"div",wrapperProps:h})}function Xu(){const[e,t]=(0,Je.useEntityProp)("postType","wp_navigation","title");return(0,Re.createElement)(He.TextControl,{label:(0,De.__)("Menu name"),value:e,onChange:t})}function em(e,t){return e&&t?e+"//"+t:null}const tm=["postType","wp_navigation",{status:"draft",per_page:-1}],nm=["postType","wp_navigation",{per_page:-1,status:"publish"}];function om(e){const t=(0,Re.useContext)(He.Disabled.Context),n=function(e){return(0,Ye.useSelect)((t=>{if(!e)return;const{getBlock:n,getBlockParentsByBlockName:o}=t(Fe.store),r=o(e,"core/template-part",!0);if(null==r||!r.length)return;const a=t("core/editor").__experimentalGetDefaultTemplatePartAreas(),{getEditedEntityRecord:l}=t(Je.store);for(const e of r){const t=n(e),{theme:o,slug:r}=t.attributes,s=l("postType","wp_template_part",em(o,r));var i;if(null!=s&&s.area)return null===(i=a.find((e=>"uncategorized"!==e.area&&e.area===s.area)))||void 0===i?void 0:i.label}}),[e])}(t?void 0:e),o=(0,Ye.useRegistry)();return(0,Re.useCallback)((async()=>{if(t)return"";const{getEntityRecords:e}=o.resolveSelect(Je.store),[r,a]=await Promise.all([e(...tm),e(...nm)]),l=n?(0,De.sprintf)((0,De.__)("%s navigation"),n):(0,De.__)("Navigation"),i=[...r,...a].reduce(((e,t)=>{var n,o;return null!=t&&null!==(n=t.title)&&void 0!==n&&null!==(o=n.raw)&&void 0!==o&&o.startsWith(l)?e+1:e}),0);return(i>0?`${l} ${i+1}`:l)||""}),[t,n])}const rm="success",am="error",lm="pending";function im(e){const[t,n]=(0,Re.useState)("idle"),[o,r]=(0,Re.useState)(null),[a,l]=(0,Re.useState)(null),{saveEntityRecord:i}=(0,Ye.useDispatch)(Je.store),s=om(e),c=(0,Re.useCallback)((async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e&&"string"!=typeof e)throw l("Invalid title supplied when creating Navigation Menu."),n(am),new Error("Value of supplied title argument was not a string.");n(lm),r(null),l(null),e||(e=await s().catch((e=>{throw l(null==e?void 0:e.message),n(am),new Error("Failed to create title when saving new Navigation Menu.",{cause:e})})));const o={title:e,content:(0,Le.serialize)(t),status:"publish"};return i("postType","wp_navigation",o).then((e=>(r(e),n(rm),e))).catch((e=>{throw l(null==e?void 0:e.message),n(am),new Error("Unable to save new Navigation Menu",{cause:e})}))}),[Le.serialize,i]);return{create:c,status:t,value:o,error:a}}const sm={},cm=["postType","wp_navigation",{status:"draft",per_page:-1}],um={name:"core/navigation-link"},mm=["core/navigation-link","core/search","core/social-links","core/page-list","core/spacer","core/home-link","core/site-title","core/site-logo","core/navigation-submenu"];function dm(e){let{blockProps:t,blocks:n,clientId:o,hasSavedUnsavedInnerBlocks:r,onSave:a,hasSelection:l}=e;const i=(0,Re.useRef)();(0,Re.useEffect)((()=>{null!=i&&i.current||(i.current=n)}),[n]);const s=n!==i.current,c=(0,Re.useMemo)((()=>n.every((e=>{let{name:t}=e;return"core/navigation-link"===t||"core/navigation-submenu"===t||"core/page-list"===t}))),[n]),u=(0,Re.useContext)(He.Disabled.Context),m=(0,Re.useRef)(!1),d=(0,Fe.useInnerBlocksProps)(t,{renderAppender:!!l&&void 0,allowedBlocks:mm,__experimentalDefaultBlock:um,__experimentalDirectInsert:c}),{isSaving:p,draftNavigationMenus:g,hasResolvedDraftNavigationMenus:h}=(0,Ye.useSelect)((e=>{if(u)return sm;const{getEntityRecords:t,hasFinishedResolution:n,isSavingEntityRecord:o}=e(Je.store);return{isSaving:o("postType","wp_navigation"),draftNavigationMenus:t(...cm),hasResolvedDraftNavigationMenus:n("getEntityRecords",cm)}}),[u]),{hasResolvedNavigationMenus:v,navigationMenus:b}=Du(),{create:y}=im(o);(0,Re.useEffect)((async()=>{if(u||r||p||m.current||!h||!v||!l||!s)return;m.current=!0;const e=await y(null,n);a(e),m.current=!1}),[u,p,h,v,g,b,l,y,n]);const f=p?He.Disabled:"div";return(0,Re.createElement)(f,{className:"wp-block-navigation__unsaved-changes"},(0,Re.createElement)("div",{className:Qe()("wp-block-navigation__unsaved-changes-overlay",{"is-saving":p})},(0,Re.createElement)("div",d)),p&&(0,Re.createElement)(He.Spinner,null))}function pm(e){let{onDelete:t}=e;const[n,o]=(0,Re.useState)(!1),r=(0,Je.useEntityId)("postType","wp_navigation"),[a]=(0,Je.useEntityProp)("postType","wp_navigation","title"),{deleteEntityRecord:l}=(0,Ye.useDispatch)(Je.store);return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(He.Button,{className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{o(!0)}},(0,De.__)("Delete menu")),n&&(0,Re.createElement)(He.Modal,{title:(0,De.sprintf)((0,De.__)("Delete %s"),a),closeLabel:(0,De.__)("Cancel"),onRequestClose:()=>o(!1)},(0,Re.createElement)("p",null,(0,De.__)("Are you sure you want to delete this navigation menu?")),(0,Re.createElement)(He.Flex,{justify:"flex-end"},(0,Re.createElement)(He.FlexItem,null,(0,Re.createElement)(He.Button,{variant:"secondary",onClick:()=>{o(!1)}},(0,De.__)("Cancel"))),(0,Re.createElement)(He.FlexItem,null,(0,Re.createElement)(He.Button,{variant:"primary",onClick:()=>{l("postType","wp_navigation",r,{force:!0}),t(a)}},(0,De.__)("Confirm"))))))}var gm=function(){let{name:e,message:t=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=(0,Re.useRef)(),{createWarningNotice:o,removeNotice:r}=(0,Ye.useDispatch)(wa.store),a=r=>{n.current||(n.current=e,o(r||t,{id:n.current,type:"snackbar"}))},l=()=>{n.current&&(r(n.current),n.current=null)};return[a,l]};function hm(e){if(!e)return null;const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"parent";const o=Object.create(null),r=[];for(const a of e)o[a[t]]={...a,children:[]},a[n]?(o[a[n]]=o[a[n]]||{},o[a[n]].children=o[a[n]].children||[],o[a[n]].children.push(o[a[t]])):r.push(o[a[t]]);return r}(e),n=vm(t);return(0,Vi.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",n,e)}function vm(e){let t={};const n=(0,ht.sortBy)(e,"menu_order").map((e=>{var n,o;if("block"===e.type){const[t]=(0,Le.parse)(e.content.raw);return t||(0,Le.createBlock)("core/freeform",{content:e.content})}const r=function(e){var t;let{title:n,xfn:o,classes:r,attr_title:a,object:l,object_id:i,description:s,url:c,type:u,target:m}=e;l&&"post_tag"===l&&(l="tag");return{label:(null==n?void 0:n.rendered)||"",...(null===(t=l)||void 0===t?void 0:t.length)&&{type:l},kind:(null==u?void 0:u.replace("_","-"))||"custom",url:c||"",...(null==o?void 0:o.length)&&o.join(" ").trim()&&{rel:o.join(" ").trim()},...(null==r?void 0:r.length)&&r.join(" ").trim()&&{className:r.join(" ").trim()},...(null==a?void 0:a.length)&&{title:a},...i&&"custom"!==l&&{id:i},...(null==s?void 0:s.length)&&{description:s},..."_blank"===m&&{opensInNewTab:!0}}}(e),{innerBlocks:a=[],mapping:l={}}=null!==(n=e.children)&&void 0!==n&&n.length?vm(e.children):{};t={...t,...l};const i=null!==(o=e.children)&&void 0!==o&&o.length?"core/navigation-submenu":"core/navigation-link",s=(0,Le.createBlock)(i,r,a);return t[e.id]=s.clientId,s}));return{innerBlocks:n,mapping:t}}const bm="success",ym="error",fm="pending";var _m=function(e){const{create:t}=im(e),n=(0,Ye.useRegistry)(),[o,r]=(0,Re.useState)("idle"),[a,l]=(0,Re.useState)(null),[i,s]=(0,Re.useState)(null);return{convert:(0,Re.useCallback)(((e,o)=>{if(!e||!o)return s("Unable to convert menu. Missing menu details."),void r(ym);r(fm),l(null),s(null),async function(e,o){let r,a;try{a=await n.resolveSelect(Je.store).getMenuItems({menus:e,per_page:-1,context:"view"})}catch(e){throw new Error((0,De.sprintf)((0,De.__)('Unable to fetch classic menu "%s" from API.'),o),{cause:e})}if(null===a)throw new Error((0,De.sprintf)((0,De.__)('Unable to fetch classic menu "%s" from API.'),o));const{innerBlocks:l}=hm(a);try{r=await t(o,l)}catch(e){throw new Error((0,De.sprintf)((0,De.__)('Unable to create Navigation Menu "%s".'),o),{cause:e})}return r}(e,o).then((e=>{l(e),r(bm)})).catch((e=>{throw s(null==e?void 0:e.message),r(ym),new Error((0,De.sprintf)((0,De.__)('Unable to create Navigation Menu "%s".'),o),{cause:e})}))}),[e]),status:o,value:a,error:i}};const km=[];function wm(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function xm(e,t,n){if(!e)return;t(wm(e).color);let o=e,r=wm(o).backgroundColor;for(;"rgba(0, 0, 0, 0)"===r&&o.parentNode&&o.parentNode.nodeType===o.parentNode.ELEMENT_NODE;)o=o.parentNode,r=wm(o).backgroundColor;n(r)}var Em=(0,Fe.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})((function(e){var t,n;let{attributes:o,setAttributes:r,clientId:a,isSelected:l,className:i,backgroundColor:s,setBackgroundColor:c,textColor:u,setTextColor:m,overlayBackgroundColor:d,setOverlayBackgroundColor:p,overlayTextColor:g,setOverlayTextColor:h,context:{navigationArea:v},hasSubmenuIndicatorSetting:b=!0,hasColorSettings:y=!0,customPlaceholder:f=null}=e;const{openSubmenusOnClick:_,overlayMenu:k,showSubmenuIcon:w,layout:{justifyContent:x,orientation:E="horizontal",flexWrap:C="wrap"}={},hasIcon:S}=o;let B=ht.noop;const T=v?undefined:o.ref,N=(0,Ye.useRegistry)(),P=(0,Re.useCallback)((e=>{r({ref:e}),v&&B(e)}),[v]),[z,I]=(0,Fe.__experimentalUseNoRecursiveRenders)(`navigationMenu/${T}`);Fu();const[M]=gm({name:"block-library/core/navigation/delete"}),[L,R]=gm({name:"block-library/core/navigation/create"}),{create:V,status:A,error:H,value:D}=im(a),F=A===lm;(0,Re.useEffect)((()=>{R(),A===lm&&(0,Hu.speak)((0,De.__)("Creating Navigation Menu.")),A===rm&&(P(D.id),W(a),L((0,De.__)("Navigation Menu successfully created."))),A===am&&L((0,De.__)("Failed to create Navigation Menu."))}),[V,A,H,D]);const{hasUncontrolledInnerBlocks:$,uncontrolledInnerBlocks:G,isInnerBlockSelected:U,hasSubmenus:O}=(0,Ye.useSelect)((e=>{const{getBlock:t,getBlocks:n,hasSelectedInnerBlock:o}=e(Fe.store),r=t(a).innerBlocks,l=!(null==r||!r.length),i=l?km:n(a);return{hasSubmenus:!!(l?r:i).find((e=>"core/navigation-submenu"===e.name)),hasUncontrolledInnerBlocks:l,uncontrolledInnerBlocks:r,isInnerBlockSelected:o(a,!0)}}),[a]),{replaceInnerBlocks:q,selectBlock:W,__unstableMarkNextChangeAsNotPersistent:j}=(0,Ye.useDispatch)(Fe.store),[Z,Q]=(0,Re.useState)(!1),K=!!v&&!T,[J,Y]=(0,Re.useState)(!1),[X,ee]=(0,Re.useState)(!1),{hasResolvedNavigationMenus:te,isNavigationMenuResolved:ne,isNavigationMenuMissing:oe,navigationMenus:re,navigationMenu:ae,canUserUpdateNavigationMenu:le,hasResolvedCanUserUpdateNavigationMenu:ie,canUserDeleteNavigationMenu:se,hasResolvedCanUserDeleteNavigationMenu:ce,canUserCreateNavigationMenu:ue,isResolvingCanUserCreateNavigationMenu:me,hasResolvedCanUserCreateNavigationMenu:de}=Du(T);(0,Re.useEffect)((()=>{F||T||null==re||!re.length||(null==re?void 0:re.length)>1||P(re[0].id)}),[re]);const pe=(0,Re.useRef)(),ge="draft"===(null==ae?void 0:ae.status),{convert:he,status:ve,error:be,value:ye}=_m(a),fe=ve===fm,_e="nav",ke=!T&&!F&&!fe&&te&&(!$||K),we=!oe&&ne,xe=!te||F||fe||!(!T||we||fe),Ee=null===(t=o.style)||void 0===t||null===(n=t.typography)||void 0===n?void 0:n.textDecoration,Ce=(0,Fe.useBlockProps)({ref:pe,className:Qe()(i,{"items-justified-right":"right"===x,"items-justified-space-between":"space-between"===x,"items-justified-left":"left"===x,"items-justified-center":"center"===x,"is-vertical":"vertical"===E,"no-wrap":"nowrap"===C,"is-responsive":"never"!==k,"has-text-color":!!u.color||!(null==u||!u.class),[(0,Fe.getColorClassName)("color",null==u?void 0:u.slug)]:!(null==u||!u.slug),"has-background":!!s.color||s.class,[(0,Fe.getColorClassName)("background-color",null==s?void 0:s.slug)]:!(null==s||!s.slug),[`has-text-decoration-${Ee}`]:Ee}),style:{color:!(null!=u&&u.slug)&&(null==u?void 0:u.color),backgroundColor:!(null!=s&&s.slug)&&(null==s?void 0:s.color)}}),Se=Qe()({"has-text-color":!!g.color||!(null==g||!g.class),[(0,Fe.getColorClassName)("color",null==g?void 0:g.slug)]:!(null==g||!g.slug),"has-background":!!d.color||(null==d?void 0:d.class),[(0,Fe.getColorClassName)("background-color",null==d?void 0:d.slug)]:!(null==d||!d.slug)}),Be={color:!(null!=g&&g.slug)&&(null==g?void 0:g.color),backgroundColor:!(null!=d&&d.slug)&&(null==d?void 0:d.color)&&d.color},Te="web"===Re.Platform.OS,[Ne,Pe]=(0,Re.useState)(),[ze,Ie]=(0,Re.useState)(),[Me,Le]=(0,Re.useState)(),[Ve,Ae]=(0,Re.useState)(),[$e,Ge]=gm({name:"block-library/core/navigation/classic-menu-conversion/error"});function Ue(e){P(e),W(a)}(0,Re.useEffect)((()=>{ve===fm&&(0,Hu.speak)((0,De.__)("Classic menu importing.")),ve===bm&&ye&&(Ue(null==ye?void 0:ye.id),Ge(),(0,Hu.speak)((0,De.__)("Classic menu imported successfully."))),ve===ym&&($e(be),(0,Hu.speak)((0,De.__)("Classic menu import failed.")))}),[ve,ye,be]),(0,Re.useEffect)((()=>{E&&(j(),r({orientation:E}))}),[E]),(0,Re.useEffect)((()=>{var e;if(!Te)return;xm(pe.current,Ie,Pe);const t=null===(e=pe.current)||void 0===e?void 0:e.querySelector('[data-type="core/navigation-link"] [data-type="core/navigation-link"]');t&&xm(t,Ae,Le)}));const[Oe,qe]=gm({name:"block-library/core/navigation/permissions/update",message:(0,De.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")}),[We,je]=gm({name:"block-library/core/navigation/permissions/create",message:(0,De.__)("You do not have permission to create Navigation Menus.")});(0,Re.useEffect)((()=>{l||U||(qe(),je()),(l||U)&&(ie&&!le&&Oe(),T||!de||ue||We())}),[l,U,le,ie,ue,de,T]);const Ze=(0,Re.useCallback)((e=>{if(!e)return;e.hasOwnProperty("auto_add")?he(e.id,e.name):Ue(e.id)}),[he,Ue]),Ke=(0,Re.useCallback)((()=>{N.batch((()=>{v&&B(0),r({ref:void 0}),T||q(a,[])}))}),[a,T]);if($&&!we)return(0,Re.createElement)(_e,Ce,(0,Re.createElement)(Zu,{id:a,onToggle:Y,isOpen:J,isResponsive:"never"!==k,isHiddenByDefault:"always"===k,classNames:Se,styles:Be},(0,Re.createElement)(dm,{blockProps:Ce,blocks:G,clientId:a,navigationMenus:re,hasSelection:l||U,hasSavedUnsavedInnerBlocks:Z,onSave:e=>{Q(!0),P(e.id),L((0,De.__)("New Navigation Menu created."))}})));if(T&&oe)return(0,Re.createElement)("div",Ce,(0,Re.createElement)(Fe.Warning,null,(0,De.__)("Navigation menu has been deleted or is unavailable. "),(0,Re.createElement)(He.Button,{onClick:Ke,variant:"link"},(0,De.__)("Create a new menu?"))));if(we&&z)return(0,Re.createElement)("div",Ce,(0,Re.createElement)(Fe.Warning,null,(0,De.__)("Block cannot be rendered inside itself.")));const Xe=f||qu,et="never"!==k,tt=Qe()("wp-block-navigation__overlay-menu-preview",{open:X});return ke?(0,Re.createElement)(_e,Ce,(0,Re.createElement)(Xe,{isSelected:l,currentMenuId:T,clientId:a,canUserCreateNavigationMenu:ue,isResolvingCanUserCreateNavigationMenu:me,onFinish:Ze,onCreateEmpty:()=>V("",[])})):(0,Re.createElement)(Je.EntityProvider,{kind:"postType",type:"wp_navigation",id:T},(0,Re.createElement)(I,null,(0,Re.createElement)(Fe.BlockControls,null,!ge&&we&&(0,Re.createElement)(He.ToolbarGroup,{className:"wp-block-navigation__toolbar-menu-selector"},(0,Re.createElement)(Ou,{currentMenuId:T,clientId:a,onSelect:Ze,onCreateNew:Ke,actionLabel:(0,De.__)("Switch to '%s'"),showManageActions:!0}))),(0,Re.createElement)(Fe.InspectorControls,null,b&&(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Display")},et&&(0,Re.createElement)(He.Button,{className:tt,onClick:()=>{ee(!X)}},S&&(0,Re.createElement)(ju,null),!S&&(0,Re.createElement)("span",null,(0,De.__)("Menu"))),X&&(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Show icon button"),help:(0,De.__)("Configure the visual appearance of the button opening the overlay menu."),onChange:e=>r({hasIcon:e}),checked:S}),(0,Re.createElement)("h3",null,(0,De.__)("Overlay Menu")),(0,Re.createElement)(He.__experimentalToggleGroupControl,{label:(0,De.__)("Configure overlay menu"),value:k,help:(0,De.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:e=>r({overlayMenu:e}),isBlock:!0,hideLabelFromVision:!0},(0,Re.createElement)(He.__experimentalToggleGroupControlOption,{value:"never",label:(0,De.__)("Off")}),(0,Re.createElement)(He.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,De.__)("Mobile")}),(0,Re.createElement)(He.__experimentalToggleGroupControlOption,{value:"always",label:(0,De.__)("Always")})),O&&(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)("h3",null,(0,De.__)("Submenus")),(0,Re.createElement)(He.ToggleControl,{checked:_,onChange:e=>{r({openSubmenusOnClick:e,...e&&{showSubmenuIcon:!0}})},label:(0,De.__)("Open on click")}),(0,Re.createElement)(He.ToggleControl,{checked:w,onChange:e=>{r({showSubmenuIcon:e})},disabled:o.openSubmenusOnClick,label:(0,De.__)("Show arrow")}))),y&&(0,Re.createElement)(Fe.PanelColorSettings,{__experimentalHasMultipleOrigins:!0,__experimentalIsRenderedInSidebar:!0,title:(0,De.__)("Color"),initialOpen:!1,colorSettings:[{value:u.color,onChange:m,label:(0,De.__)("Text")},{value:s.color,onChange:c,label:(0,De.__)("Background")},{value:g.color,onChange:h,label:(0,De.__)("Submenu & overlay text")},{value:d.color,onChange:p,label:(0,De.__)("Submenu & overlay background")}]},Te&&(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.ContrastChecker,{backgroundColor:Ne,textColor:ze}),(0,Re.createElement)(Fe.ContrastChecker,{backgroundColor:Me,textColor:Ve})))),we&&(0,Re.createElement)(Fe.InspectorControls,{__experimentalGroup:"advanced"},ie&&le&&(0,Re.createElement)(Xu,null),ce&&se&&(0,Re.createElement)(pm,{onDelete:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Ke(),M((0,De.sprintf)((0,De.__)("Navigation menu %s successfully deleted."),e))}})),xe&&(0,Re.createElement)(_e,Ce,(0,Re.createElement)(He.Spinner,{className:"wp-block-navigation__loading-indicator"})),!xe&&(0,Re.createElement)(_e,Ce,(0,Re.createElement)(Zu,{id:a,onToggle:Y,label:(0,De.__)("Menu"),hasIcon:S,isOpen:J,isResponsive:et,isHiddenByDefault:"always"===k,classNames:Se,styles:Be},we&&(0,Re.createElement)(Yu,{clientId:a,hasCustomPlaceholder:!!f,orientation:E})))))}));const Cm={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},Sm=e=>{let{navigationMenuId:t,...n}=e;return{...n,ref:t}},Bm=e=>{if(e.layout)return e;const{itemsJustification:t,orientation:n,...o}=e;return(t||n)&&Object.assign(o,{layout:{type:"flex",...t&&{justifyContent:t},...n&&{orientation:n}}}),o},Tm=[{attributes:{navigationMenuId:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},save:()=>(0,Re.createElement)(Fe.InnerBlocks.Content,null),isEligible:e=>{let{navigationMenuId:t}=e;return!!t},migrate:Sm},{attributes:{navigationMenuId:{type:"number"},orientation:{type:"string",default:"horizontal"},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},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save:()=>(0,Re.createElement)(Fe.InnerBlocks.Content,null),isEligible:e=>{let{itemsJustification:t,orientation:n}=e;return!!t||!!n},migrate:(0,Rt.compose)(Sm,Bm)},{attributes:{orientation:{type:"string",default:"horizontal"},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},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save:()=>(0,Re.createElement)(Fe.InnerBlocks.Content,null),migrate:(0,Rt.compose)(Sm,Bm,Ht),isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}},{attributes:{orientation:{type:"string",default:"horizontal"},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},openSubmenusOnClick:{type:"boolean",default:!1},isResponsive:{type:"boolean",default:"false"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0}},isEligible:e=>e.isResponsive,migrate:(0,Rt.compose)(Sm,Bm,Ht,(function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}})),save:()=>(0,Re.createElement)(Fe.InnerBlocks.Content,null)},{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}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,fontSize:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,color:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},save:()=>(0,Re.createElement)(Fe.InnerBlocks.Content,null),isEligible(e){if(!e.style||!e.style.typography)return!1;for(const t in Cm){const n=e.style.typography[t];if(n&&n.startsWith(Cm[t]))return!0}return!1},migrate:(0,Rt.compose)(Sm,Bm,Ht,(function(e){return{...e,style:{...e.style,typography:(0,ht.mapValues)(e.style.typography,((e,t)=>{const n=Cm[t];if(n&&e.startsWith(n)){const o=e.slice(n.length);return"textDecoration"===t&&"strikethrough"===o?"line-through":o}return e}))}}}))},{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:e=>e.rgbTextColor||e.rgbBackgroundColor,supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},migrate:(0,Rt.compose)(Sm,(e=>({...(0,ht.omit)(e,["rgbTextColor","rgbBackgroundColor"]),customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor}))),save:()=>(0,Re.createElement)(Fe.InnerBlocks.Content,null)}];var Nm=Tm;const Pm={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/navigation",title:"Navigation",category:"theme",description:"A collection of blocks that allow visitors to get around your site.",keywords:["menu","navigation","links"],textdomain:"default",attributes:{ref:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},hasIcon:{type:"boolean",default:!0},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"},maxNestingLevel:{type:"number",default:5}},usesContext:["navigationArea"],providesContext:{textColor:"textColor",customTextColor:"customTextColor",backgroundColor:"backgroundColor",customBackgroundColor:"customBackgroundColor",overlayTextColor:"overlayTextColor",customOverlayTextColor:"customOverlayTextColor",overlayBackgroundColor:"overlayBackgroundColor",customOverlayBackgroundColor:"customOverlayBackgroundColor",fontSize:"fontSize",customFontSize:"customFontSize",showSubmenuIcon:"showSubmenuIcon",openSubmenusOnClick:"openSubmenusOnClick",style:"style",orientation:"orientation",maxNestingLevel:"maxNestingLevel"},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalSkipSerialization:["textDecoration"],__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,default:{type:"flex"}}},viewScript:"file:./view.min.js",editorStyle:"wp-block-navigation-editor",style:"wp-block-navigation"},{name:zm}=Pm,Im={icon:Au,example:{innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,De.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,De.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,De.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:Em,save:function(e){let{attributes:t}=e;if(!t.ref)return(0,Re.createElement)(Fe.InnerBlocks.Content,null)},deprecated:Nm};var Mm=(0,Re.createElement)(Ve.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"}));var Lm=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));const{name:Rm}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",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"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","style"],supports:{reusable:!1,html:!1,__experimentalSlashInserter:!0},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"};function Vm(e,t){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"};case"post_format":return{type:"post-format"};default:return"taxonomy"===t?{type:"term",subtype:e}:"post-type"===t?{type:"post",subtype:e}:{}}}function Am(e){const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body.textContent||""}function Hm(e){let{block:t,transforms:n,replace:o}=e;return null!=n&&n.length?(0,Re.createElement)("div",{className:"link-control-transform"},(0,Re.createElement)("h3",{className:"link-control-transform__subheading"},(0,De.__)("Transform")),(0,Re.createElement)("div",{className:"link-control-transform__items"},n.map(((e,n)=>(0,Re.createElement)(He.Button,{key:`transform-${n}`,onClick:()=>o(t.clientId,(0,Le.switchToBlockType)(t,e.name)),className:"link-control-transform__item"},(0,Re.createElement)(Fe.BlockIcon,{icon:e.icon}),e.title))))):null}var Dm=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.Path,{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"}));var Fm=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));var $m=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));var Gm=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"}));const Um=[{name:"link",isDefault:!0,title:(0,De.__)("Custom Link"),description:(0,De.__)("A link to a custom URL."),attributes:{}},{name:"post",icon:Dm,title:(0,De.__)("Post Link"),description:(0,De.__)("A link to a post."),attributes:{type:"post",kind:"post-type"}},{name:"page",icon:Fm,title:(0,De.__)("Page Link"),description:(0,De.__)("A link to a page."),attributes:{type:"page",kind:"post-type"}},{name:"category",icon:En,title:(0,De.__)("Category Link"),description:(0,De.__)("A link to a category."),attributes:{type:"category",kind:"taxonomy"}},{name:"tag",icon:$m,title:(0,De.__)("Tag Link"),description:(0,De.__)("A link to a tag."),attributes:{type:"tag",kind:"taxonomy"}}];Um.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));var Om=Um;function qm(e){switch(e){case"post":return Dm;case"page":return Fm;case"tag":return $m;case"category":return En;default:return Gm}}const Wm={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,Le.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,Le.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,Le.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,Le.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,Le.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,Le.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,Le.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,Le.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,Le.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,Le.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,Le.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})}]};var jm=Wm;const Zm={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",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"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","style"],supports:{reusable:!1,html:!1,__experimentalSlashInserter:!0},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"},{name:Qm}=Zm,Km={icon:Mm,__experimentalLabel:e=>{let{label:t}=e;return t},merge(e,t){let{label:n=""}=t;return{...e,label:e.label+n}},edit:function(e){let{attributes:t,isSelected:n,setAttributes:o,insertBlocksAfter:r,mergeBlocks:a,onReplace:l,context:i,clientId:s}=e;const{id:c,label:u,type:m,opensInNewTab:d,url:p,description:g,rel:h,title:v,kind:b}=t,[y,f]=((e,t,n)=>{const o="post-type"===e||"post"===t||"page"===t,r=Number.isInteger(n),a=(0,Ye.useSelect)((e=>{var r;if(!o)return null;const{getEntityRecord:a}=e(Je.store);return null===(r=a("postType",t,n))||void 0===r?void 0:r.status}),[o,t,n]);return[o&&r&&a&&"trash"===a,"draft"===a]})(b,m,c),{maxNestingLevel:_}=i,k={url:p,opensInNewTab:d,title:u&&Am(u)},{saveEntityRecord:w}=(0,Ye.useDispatch)(Je.store),{replaceBlock:x,__unstableMarkNextChangeAsNotPersistent:E}=(0,Ye.useDispatch)(Fe.store),[C,S]=(0,Re.useState)(!1),B=(0,Re.useRef)(null),T=(e=>{const[t,n]=(0,Re.useState)(!1);return(0,Re.useEffect)((()=>{const{ownerDocument:t}=e.current;function o(e){a(e)}function r(){n(!1)}function a(t){e.current.contains(t.target)?n(!0):n(!1)}return t.addEventListener("dragstart",o),t.addEventListener("dragend",r),t.addEventListener("dragenter",a),()=>{t.removeEventListener("dragstart",o),t.removeEventListener("dragend",r),t.removeEventListener("dragenter",a)}}),[]),t})(B),N=(0,De.__)("Add link"),P=(0,Re.useRef)(),{innerBlocks:z,isAtMaxNesting:I,isTopLevelLink:M,isParentOfSelectedBlock:L,hasDescendants:R,userCanCreatePages:V,userCanCreatePosts:A,thisBlock:H,blockTransforms:D}=(0,Ye.useSelect)((e=>{var t;const{getBlock:n,getBlocks:o,getBlockName:r,getBlockRootClientId:a,getClientIdsOfDescendants:l,hasSelectedInnerBlock:i,getSelectedBlockClientId:c,getBlockParentsByBlockName:u,getBlockTransformItems:m}=e(Fe.store),d=c(),p=l([s]).length;return{innerBlocks:o(s),isAtMaxNesting:u(s,[Rm,"core/navigation-submenu"]).length>=_,isTopLevelLink:"core/navigation"===r(a(s)),isParentOfSelectedBlock:i(s,!0),isImmediateParentOfSelectedBlock:i(s,!1),hasDescendants:!!p,selectedBlockHasDescendants:!(null===(t=l([d]))||void 0===t||!t.length),userCanCreatePages:e(Je.store).canUser("create","pages"),userCanCreatePosts:e(Je.store).canUser("create","posts"),thisBlock:n(s),blockTransforms:m([n(s)],a(s))}}),[s]);function F(){const e=(0,Le.createBlock)("core/navigation-submenu",t,z);x(s,e)}(0,Re.useEffect)((()=>{E(),o({isTopLevelLink:M})}),[M]);const $=["core/site-logo","core/social-links","core/search"],G=D.filter((e=>$.includes(e.name)));(0,Re.useEffect)((()=>{p||S(!0),R&&F()}),[]),(0,Re.useEffect)((()=>{n||S(!1)}),[n]),(0,Re.useEffect)((()=>{C&&p&&((0,Ke.isURL)((0,Ke.prependHTTP)(u))&&/^.+\.[a-z]+/.test(u)?function(){P.current.focus();const{ownerDocument:e}=P.current,{defaultView:t}=e,n=t.getSelection(),o=e.createRange();o.selectNodeContents(P.current),n.removeAllRanges(),n.addRange(o)}():(0,Cu.placeCaretAtHorizontalEdge)(P.current,!0))}),[p]);let U=!1;m&&"page"!==m?"post"===m&&(U=A):U=V;const{textColor:O,customTextColor:q,backgroundColor:W,customBackgroundColor:j}=function(e,t){var n,o;const{textColor:r,customTextColor:a,backgroundColor:l,customBackgroundColor:i,overlayTextColor:s,customOverlayTextColor:c,overlayBackgroundColor:u,customOverlayBackgroundColor:m,style:d}=e,p={};return t&&c?p.customTextColor=c:t&&s?p.textColor=s:a?p.customTextColor=a:r?p.textColor=r:null!=d&&null!==(n=d.color)&&void 0!==n&&n.text&&(p.customTextColor=d.color.text),t&&m?p.customBackgroundColor=m:t&&u?p.backgroundColor=u:i?p.customBackgroundColor=i:l?p.backgroundColor=l:null!=d&&null!==(o=d.color)&&void 0!==o&&o.background&&(p.customTextColor=d.color.background),p}(i,!M),Z=(0,Fe.useBlockProps)({ref:B,className:Qe()("wp-block-navigation-item",{"is-editing":n||L,"is-dragging-within":T,"has-link":!!p,"has-child":R,"has-text-color":!!O||!!q,[(0,Fe.getColorClassName)("color",O)]:!!O,"has-background":!!W||j,[(0,Fe.getColorClassName)("background-color",W)]:!!W}),style:{color:!O&&q,backgroundColor:!W&&j},onKeyDown:function(e){(Wt.isKeyboardEvent.primary(e,"k")||!p&&e.keyCode===Wt.ENTER)&&S(!0)}});(!p||y||f)&&(Z.onClick=()=>S(!0));const Q=Qe()("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":!p||y||f}),K=(e=>{let t="";switch(e){case"post":t=(0,De.__)("Select post");break;case"page":t=(0,De.__)("Select page");break;case"category":t=(0,De.__)("Select category");break;case"tag":t=(0,De.__)("Select tag");break;default:t=(0,De.__)("Add link")}return t})(m),J=`(${y?(0,De.__)("Invalid"):(0,De.__)("Draft")})`,Y=y||f?(0,De.__)("This item has been deleted, or is a draft"):(0,De.__)("This item is missing a link");return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,null,(0,Re.createElement)(He.ToolbarGroup,null,(0,Re.createElement)(He.ToolbarButton,{name:"link",icon:jt,title:(0,De.__)("Link"),shortcut:Wt.displayShortcut.primary("k"),onClick:()=>S(!0)}),!I&&(0,Re.createElement)(He.ToolbarButton,{name:"submenu",icon:Lm,title:(0,De.__)("Add submenu"),onClick:F}))),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Link settings")},(0,Re.createElement)(He.TextareaControl,{value:g||"",onChange:e=>{o({description:e})},label:(0,De.__)("Description"),help:(0,De.__)("The description will be displayed in the menu if the current theme supports it.")}),(0,Re.createElement)(He.TextControl,{value:v||"",onChange:e=>{o({title:e})},label:(0,De.__)("Link title"),autoComplete:"off"}),(0,Re.createElement)(He.TextControl,{value:h||"",onChange:e=>{o({rel:e})},label:(0,De.__)("Link rel"),autoComplete:"off"}))),(0,Re.createElement)("div",Z,(0,Re.createElement)("a",{className:Q},p?(0,Re.createElement)(Re.Fragment,null,!y&&!f&&(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.RichText,{ref:P,identifier:"label",className:"wp-block-navigation-item__label",value:u,onChange:e=>o({label:e}),onMerge:a,onReplace:l,__unstableOnSplitAtEnd:()=>r((0,Le.createBlock)("core/navigation-link")),"aria-label":(0,De.__)("Navigation link text"),placeholder:N,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"],onClick:()=>{p||S(!0)}}),g&&(0,Re.createElement)("span",{className:"wp-block-navigation-item__description"},g)),(y||f)&&(0,Re.createElement)("div",{className:"wp-block-navigation-link__placeholder-text wp-block-navigation-link__label"},(0,Re.createElement)(He.KeyboardShortcuts,{shortcuts:{enter:()=>n&&S(!0)}}),(0,Re.createElement)(He.Tooltip,{position:"top center",text:Y},(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)("span",null,`${u} ${J}`.trim()),(0,Re.createElement)("span",{className:"wp-block-navigation-link__missing_text-tooltip"},Y))))):(0,Re.createElement)("div",{className:"wp-block-navigation-link__placeholder-text"},(0,Re.createElement)(He.Tooltip,{position:"top center",text:Y},(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)("span",null,K),(0,Re.createElement)("span",{className:"wp-block-navigation-link__missing_text-tooltip"},Y)))),C&&(0,Re.createElement)(He.Popover,{position:"bottom center",onClose:()=>S(!1),anchorRef:B.current},(0,Re.createElement)(Fe.__experimentalLinkControl,{hasTextControl:!0,hasRichPreviews:!0,className:"wp-block-navigation-link__inline-link-input",value:k,showInitialSuggestions:!0,withCreateSuggestion:U,createSuggestion:async function(e){const t=m||"page",n=await w("postType",t,{title:e,status:"draft"});return{id:n.id,type:t,title:n.title.rendered,url:n.link,kind:"post-type"}},createSuggestionButtonText:e=>{let t;return t="post"===m?(0,De.__)("Create draft post: <mark>%s</mark>"):(0,De.__)("Create draft page: <mark>%s</mark>"),(0,Re.createInterpolateElement)((0,De.sprintf)(t,e),{mark:(0,Re.createElement)("mark",null)})},noDirectEntry:!!m,noURLSuggestion:!!m,suggestionsQuery:Vm(m,b),onChange:e=>function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{label:o="",kind:r="",type:a=""}=n,{title:l="",url:i="",opensInNewTab:s,id:c,kind:u=r,type:m=a}=e,d=l.replace(/http(s?):\/\//gi,""),p=i.replace(/http(s?):\/\//gi,""),g=""!==l&&d!==p&&o!==l?(0,ht.escape)(l):o||(0,ht.escape)(p),h="post_tag"===m?"tag":m.replace("-","_"),v=["post","page","tag","category"].indexOf(h)>-1,b=!u&&!v||"custom"===u?"custom":u;t({...i&&{url:encodeURI((0,Ke.safeDecodeURI)(i))},...g&&{label:g},...void 0!==s&&{opensInNewTab:s},...c&&Number.isInteger(c)&&{id:c},...b&&{kind:b},...h&&"URL"!==h&&{type:h}})}(e,o,t),onRemove:function(){o({url:"",label:"",id:"",kind:"",type:""}),S(!1)},renderControlBottom:p?null:()=>(0,Re.createElement)(Hm,{block:H,transforms:G,replace:x})})))))},save:function(){return(0,Re.createElement)(Fe.InnerBlocks.Content,null)},example:{attributes:{label:(0,De._x)("Example Link","navigation link preview example"),url:"https://example.com"}},deprecated:[{isEligible:e=>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(e){let{nofollow:t,...n}=e;return{rel:t?"nofollow":"",...n}},save:()=>(0,Re.createElement)(Fe.InnerBlocks.Content,null)}],transforms:jm};(0,Vi.addFilter)("blocks.registerBlockType","core/navigation-link",(function(e,t){if("core/navigation-link"!==t)return e;if(!e.variations)return{...e,variations:Om};if(e.variations){const t=(e,t)=>e.type===t.type,n=e.variations.map((e=>({...e,...!e.icon&&{icon:qm(e.name)},...!e.isActive&&{isActive:t}})));return{...e,variations:n}}return e}));var Jm=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m13.955 20.748 8-17.5-.91-.416L19.597 6H13.5v1.5h5.411l-1.6 3.5H13.5v1.5h3.126l-1.6 3.5H13.5l.028 1.5h.812l-1.295 2.832.91.416ZM17.675 16l-.686 1.5h4.539L21.5 16h-3.825Zm2.286-5-.686 1.5H21.5V11h-1.54ZM2 12c0 3.58 2.42 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.48 0-4.5-1.52-4.5-4S5.52 7.5 8 7.5h3.5V6H8c-3.58 0-6 2.42-6 6Z"}));const Ym=()=>(0,Re.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},(0,Re.createElement)(He.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})),{name:Xm}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",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"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","openSubmenusOnClick","style"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"},ed=["core/navigation-link","core/navigation-submenu"],td={name:"core/navigation-link"};function nd(e,t){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"};case"post_format":return{type:"post-format"};default:return"taxonomy"===t?{type:"term",subtype:e}:"post-type"===t?{type:"post",subtype:e}:{}}}function od(e,t){var n,o;const{textColor:r,customTextColor:a,backgroundColor:l,customBackgroundColor:i,overlayTextColor:s,customOverlayTextColor:c,overlayBackgroundColor:u,customOverlayBackgroundColor:m,style:d}=e,p={};return t&&c?p.customTextColor=c:t&&s?p.textColor=s:a?p.customTextColor=a:r?p.textColor=r:null!=d&&null!==(n=d.color)&&void 0!==n&&n.text&&(p.customTextColor=d.color.text),t&&m?p.customBackgroundColor=m:t&&u?p.backgroundColor=u:i?p.customBackgroundColor=i:l?p.backgroundColor=l:null!=d&&null!==(o=d.color)&&void 0!==o&&o.background&&(p.customTextColor=d.color.background),p}const rd={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:e=>(0,Le.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:()=>(0,Le.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:()=>(0,Le.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:()=>(0,Le.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:()=>(0,Le.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>{var n;return 0===(null==t||null===(n=t.innerBlocks)||void 0===n?void 0:n.length)},transform:()=>(0,Le.createBlock)("core/search")}]};var ad=rd;const ld={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",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"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","openSubmenusOnClick","style"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"},{name:id}=ld,sd={icon:Lm,__experimentalLabel:e=>{let{label:t}=e;return t},edit:function(e){let{attributes:t,isSelected:n,setAttributes:o,mergeBlocks:r,onReplace:a,context:l,clientId:i}=e;const{label:s,type:c,opensInNewTab:u,url:m,description:d,rel:p,title:g,kind:h}=t,v={url:m,opensInNewTab:u},{showSubmenuIcon:b,maxNestingLevel:y,openSubmenusOnClick:f}=l,{saveEntityRecord:_}=(0,Ye.useDispatch)(Je.store),{__unstableMarkNextChangeAsNotPersistent:k,replaceBlock:w}=(0,Ye.useDispatch)(Fe.store),[x,E]=(0,Re.useState)(!1),C=(0,Re.useRef)(null),S=(e=>{const[t,n]=(0,Re.useState)(!1);return(0,Re.useEffect)((()=>{const{ownerDocument:t}=e.current;function o(e){a(e)}function r(){n(!1)}function a(t){e.current.contains(t.target)?n(!0):n(!1)}return t.addEventListener("dragstart",o),t.addEventListener("dragend",r),t.addEventListener("dragenter",a),()=>{t.removeEventListener("dragstart",o),t.removeEventListener("dragend",r),t.removeEventListener("dragenter",a)}}),[]),t})(C),B=(0,De.__)("Add text"),T=(0,Re.useRef)(),{isAtMaxNesting:N,isTopLevelItem:P,isParentOfSelectedBlock:z,isImmediateParentOfSelectedBlock:I,hasDescendants:M,selectedBlockHasDescendants:L,userCanCreatePages:R,userCanCreatePosts:V,onlyDescendantIsEmptyLink:A}=(0,Ye.useSelect)((e=>{const{getClientIdsOfDescendants:t,hasSelectedInnerBlock:n,getSelectedBlockClientId:o,getBlockParentsByBlockName:r,getBlock:a}=e(Fe.store);let l;const s=o(),c=t([i]).length,u=t([s]);if(1===(null==u?void 0:u.length)){var m;const e=a(u[0]);l="core/navigation-link"===(null==e?void 0:e.name)&&!(null!=e&&null!==(m=e.attributes)&&void 0!==m&&m.label)}return{isAtMaxNesting:r(i,Xm).length>=y,isTopLevelItem:0===r(i,Xm).length,isParentOfSelectedBlock:n(i,!0),isImmediateParentOfSelectedBlock:n(i,!1),hasDescendants:!!c,selectedBlockHasDescendants:!(null==u||!u.length),userCanCreatePages:e(Je.store).canUser("create","pages"),userCanCreatePosts:e(Je.store).canUser("create","posts"),onlyDescendantIsEmptyLink:l}}),[i]);(0,Re.useEffect)((()=>{f||m||E(!0)}),[]),(0,Re.useEffect)((()=>{k(),o({isTopLevelItem:P})}),[P]),(0,Re.useEffect)((()=>{n||E(!1)}),[n]),(0,Re.useEffect)((()=>{x&&m&&((0,Ke.isURL)((0,Ke.prependHTTP)(s))&&/^.+\.[a-z]+/.test(s)?function(){T.current.focus();const{ownerDocument:e}=T.current,{defaultView:t}=e,n=t.getSelection(),o=e.createRange();o.selectNodeContents(T.current),n.removeAllRanges(),n.addRange(o)}():(0,Cu.placeCaretAtHorizontalEdge)(T.current,!0))}),[m]);let H=!1;c&&"page"!==c?"post"===c&&(H=V):H=R;const{textColor:D,customTextColor:F,backgroundColor:$,customBackgroundColor:G}=od(l,!P),U=(0,Fe.useBlockProps)({ref:C,className:Qe()("wp-block-navigation-item",{"is-editing":n||z,"is-dragging-within":S,"has-link":!!m,"has-child":M,"has-text-color":!!D||!!F,[(0,Fe.getColorClassName)("color",D)]:!!D,"has-background":!!$||G,[(0,Fe.getColorClassName)("background-color",$)]:!!$,"open-on-click":f}),style:{color:!D&&F,backgroundColor:!$&&G},onKeyDown:function(e){Wt.isKeyboardEvent.primary(e,"k")&&E(!0)}}),O=od(l,!0),q=N?(0,ht.without)(ed,"core/navigation-submenu"):ed,W=(0,Fe.useInnerBlocksProps)({className:Qe()("wp-block-navigation__submenu-container",{"is-parent-of-selected-block":z,"has-text-color":!(!O.textColor&&!O.customTextColor),[`has-${O.textColor}-color`]:!!O.textColor,"has-background":!(!O.backgroundColor&&!O.customBackgroundColor),[`has-${O.backgroundColor}-background-color`]:!!O.backgroundColor}),style:{color:O.customTextColor,backgroundColor:O.customBackgroundColor}},{allowedBlocks:q,__experimentalDefaultBlock:td,__experimentalDirectInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:!!(n||I&&!L||M)&&Fe.InnerBlocks.ButtonBlockAppender}),j=f?"button":"a",Z=!L||A;return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,null,(0,Re.createElement)(He.ToolbarGroup,null,!f&&(0,Re.createElement)(He.ToolbarButton,{name:"link",icon:jt,title:(0,De.__)("Link"),shortcut:Wt.displayShortcut.primary("k"),onClick:()=>E(!0)}),(0,Re.createElement)(He.ToolbarButton,{name:"revert",icon:Jm,title:(0,De.__)("Convert to Link"),onClick:function(){const e=(0,Le.createBlock)("core/navigation-link",t);w(i,e)},className:"wp-block-navigation__submenu__revert",isDisabled:!Z}))),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Link settings")},(0,Re.createElement)(He.TextareaControl,{value:d||"",onChange:e=>{o({description:e})},label:(0,De.__)("Description"),help:(0,De.__)("The description will be displayed in the menu if the current theme supports it.")}),(0,Re.createElement)(He.TextControl,{value:g||"",onChange:e=>{o({title:e})},label:(0,De.__)("Link title"),autoComplete:"off"}),(0,Re.createElement)(He.TextControl,{value:p||"",onChange:e=>{o({rel:e})},label:(0,De.__)("Link rel"),autoComplete:"off"}))),(0,Re.createElement)("div",U,(0,Re.createElement)(j,{className:"wp-block-navigation-item__content"},(0,Re.createElement)(Fe.RichText,{ref:T,identifier:"label",className:"wp-block-navigation-item__label",value:s,onChange:e=>o({label:e}),onMerge:r,onReplace:a,"aria-label":(0,De.__)("Navigation link text"),placeholder:B,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"],onClick:()=>{f||m||E(!0)}}),!f&&x&&(0,Re.createElement)(He.Popover,{position:"bottom center",onClose:()=>E(!1),anchorRef:C.current},(0,Re.createElement)(Fe.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:v,showInitialSuggestions:!0,withCreateSuggestion:H,createSuggestion:async function(e){const t=c||"page",n=await _("postType",t,{title:e,status:"draft"});return{id:n.id,type:t,title:n.title.rendered,url:n.link,kind:"post-type"}},createSuggestionButtonText:e=>{let t;return t="post"===c?(0,De.__)("Create draft post: <mark>%s</mark>"):(0,De.__)("Create draft page: <mark>%s</mark>"),(0,Re.createInterpolateElement)((0,De.sprintf)(t,e),{mark:(0,Re.createElement)("mark",null)})},noDirectEntry:!!c,noURLSuggestion:!!c,suggestionsQuery:nd(c,h),onChange:e=>function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{label:o="",kind:r="",type:a=""}=n,{title:l="",url:i="",opensInNewTab:s,id:c,kind:u=r,type:m=a}=e,d=l.replace(/http(s?):\/\//gi,""),p=i.replace(/http(s?):\/\//gi,""),g=""!==l&&d!==p&&o!==l?(0,ht.escape)(l):o||(0,ht.escape)(p),h="post_tag"===m?"tag":m.replace("-","_"),v=["post","page","tag","category"].indexOf(h)>-1,b=!u&&!v||"custom"===u?"custom":u;t({...i&&{url:encodeURI((0,Ke.safeDecodeURI)(i))},...g&&{label:g},...void 0!==s&&{opensInNewTab:s},...c&&Number.isInteger(c)&&{id:c},...b&&{kind:b},...h&&"URL"!==h&&{type:h}})}(e,o,t),onRemove:()=>{o({url:""}),(0,Hu.speak)((0,De.__)("Link removed."),"assertive")}}))),(b||f)&&(0,Re.createElement)("span",{className:"wp-block-navigation__submenu-icon"},(0,Re.createElement)(Ym,null)),(0,Re.createElement)("div",W)))},save:function(){return(0,Re.createElement)(Fe.InnerBlocks.Content,null)},transforms:ad};var cd=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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 ud={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/nextpage"===e.dataset.block,transform:()=>(0,Le.createBlock)("core/nextpage",{})}]};const md={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/nextpage",title:"Page Break",category:"design",description:"Separate your content into a multi-page experience.",keywords:["next page","pagination"],parent:["core/post-content"],textdomain:"default",supports:{customClassName:!1,className:!1,html:!1},editorStyle:"wp-block-nextpage-editor"},{name:dd}=md,pd={icon:cd,example:{},transforms:ud,edit:function(){return(0,Re.createElement)("div",(0,Fe.useBlockProps)(),(0,Re.createElement)("div",{className:"wp-block-nextpage"},(0,Re.createElement)("span",null,(0,De.__)("Page break"))))},save:function(){return(0,Re.createElement)(Re.RawHTML,null,"\x3c!--nextpage--\x3e")}};var gd=e=>{let{attributes:t,clientId:n}=e;const o=(0,Ye.useSelect)((e=>e(Fe.store).__experimentalGetParsedPattern(t.slug)),[t.slug]),{replaceBlocks:r,__unstableMarkNextChangeAsNotPersistent:a}=(0,Ye.useDispatch)(Fe.store);(0,Re.useEffect)((()=>{null!=o&&o.blocks&&(a(),r(n,o.blocks))}),[null==o?void 0:o.blocks]);const l=(0,Fe.useBlockProps)();return(0,Re.createElement)("div",l)};const hd={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/pattern",title:"Pattern",category:"theme",description:"Show a block pattern.",supports:{html:!1,inserter:!1},textdomain:"default",attributes:{slug:{type:"string"}}},{name:vd}=hd,bd={edit:gd};var yd=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M7 13.8h6v-1.5H7v1.5zM18 16V4c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2zM5.5 16V4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zM7 10.5h8V9H7v1.5zm0-3.3h8V5.8H7v1.4zM20.2 6v13c0 .7-.6 1.2-1.2 1.2H8v1.5h11c1.5 0 2.7-1.2 2.7-2.8V6h-1.5z"}));const fd=["id","title","link","type","parent"],_d=e=>{let{pages:t,clientId:n,replaceBlock:o,createBlock:r}=e;return()=>{if(!t)return;const e={},a=[];t.forEach((t=>{var n,o;let{id:l,title:i,link:s,type:c,parent:u}=t;const m=null!==(n=null===(o=e[l])||void 0===o?void 0:o.innerBlocks)&&void 0!==n?n:[];if(e[l]=r("core/navigation-link",{id:l,label:i.rendered,url:s,type:c,kind:"post-type"},m),u){e[u]||(e[u]={innerBlocks:[]});e[u].innerBlocks.push(e[l])}else a.push(e[l])}));const l=e=>{e.forEach(((e,t,n)=>{const{attributes:o,innerBlocks:a}=e;if(0!==a.length){l(a);const e=r("core/navigation-submenu",o,a);n[t]=e}}))};l(a),o(n,a)}};function kd(e){let{onClose:t,clientId:n}=e;const{records:o,hasResolved:r}=(0,Je.__experimentalUseEntityRecords)("postType","page",{per_page:100,_fields:fd,orderby:"menu_order",order:"asc"}),{replaceBlock:a}=(0,Ye.useDispatch)(Fe.store);return(0,Re.createElement)(He.Modal,{closeLabel:(0,De.__)("Close"),onRequestClose:t,title:(0,De.__)("Convert to links"),className:"wp-block-page-list-modal",aria:{describedby:"wp-block-page-list-modal__description"}},(0,Re.createElement)("p",{id:"wp-block-page-list-modal__description"},(0,De.__)("To edit this navigation menu, convert it to single page links. This allows you to add, re-order, remove items, or edit their labels.")),(0,Re.createElement)("p",null,(0,De.__)("Note: if you add new pages to your site, you'll need to add them to your navigation menu.")),(0,Re.createElement)("div",{className:"wp-block-page-list-modal-buttons"},(0,Re.createElement)(He.Button,{variant:"tertiary",onClick:t},(0,De.__)("Cancel")),(0,Re.createElement)(He.Button,{variant:"primary",disabled:!r,onClick:_d({pages:o,replaceBlock:a,clientId:n,createBlock:Le.createBlock})},(0,De.__)("Convert"))))}const wd=()=>(0,Re.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},(0,Re.createElement)(He.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"}));const xd=(0,Re.memo)((function e(t){let{context:n,pagesByParentId:o,parentId:r=0,depth:a=0}=t;const l=o.get(r),i=(0,Ye.useSelect)((e=>{const t=e(Je.store).getEntityRecord("root","site");return"page"===(null==t?void 0:t.show_on_front)&&(null==t?void 0:t.page_on_front)}),[]);return null!=l&&l.length?l.map((t=>{var r,l;const s=o.has(t.id),c="showSubmenuIcon"in n;return(0,Re.createElement)("li",{key:t.id,className:Qe()("wp-block-pages-list__item",{"has-child":s,"wp-block-navigation-item":c,"open-on-click":n.openSubmenusOnClick,"open-on-hover-click":!n.openSubmenusOnClick&&n.showSubmenuIcon,"menu-item-home":t.id===i})},s&&n.openSubmenusOnClick?(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)("button",{className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false"},null===(r=t.title)||void 0===r?void 0:r.rendered),(0,Re.createElement)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon"},(0,Re.createElement)(wd,null))):(0,Re.createElement)("a",{className:Qe()("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":c}),href:t.link},null===(l=t.title)||void 0===l?void 0:l.rendered),s&&(0,Re.createElement)(Re.Fragment,null,!n.openSubmenusOnClick&&n.showSubmenuIcon&&(0,Re.createElement)("button",{className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon","aria-expanded":"false"},(0,Re.createElement)(wd,null)),(0,Re.createElement)("ul",{className:Qe()("submenu-container",{"wp-block-navigation__submenu-container":c})},(0,Re.createElement)(e,{context:n,pagesByParentId:o,parentId:t.id,depth:a+1}))))})):[]})),Ed={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/page-list",title:"Page List",category:"widgets",description:"Display a list of all pages.",keywords:["menu","navigation"],textdomain:"default",attributes:{__unstableMaxPages:{type:"number"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"},{name:Cd}=Ed,Sd={icon:yd,example:{},edit:function(e){var t;let{context:n,clientId:o}=e;const{pagesByParentId:r,totalPages:a,hasResolvedPages:l}=function(){const{records:e,hasResolved:t}=(0,Je.__experimentalUseEntityRecords)("postType","page",{orderby:"menu_order",order:"asc",_fields:["id","link","parent","title","menu_order"],per_page:-1});return(0,Re.useMemo)((()=>{var n;const o=(0,ht.sortBy)(e,["menu_order","title.rendered"]).reduce(((e,t)=>{const{parent:n}=t;return e.has(n)?e.get(n).push(t):e.set(n,[t]),e}),new Map);return{pagesByParentId:o,hasResolvedPages:t,totalPages:null!==(n=null==e?void 0:e.length)&&void 0!==n?n:null}}),[e,t])}(),i="showSubmenuIcon"in n&&a<=100,[s,c]=(0,Re.useState)(!1),u=(0,Fe.useBlockProps)({className:Qe()("wp-block-page-list",{"has-text-color":!!n.textColor,[(0,Fe.getColorClassName)("color",n.textColor)]:!!n.textColor,"has-background":!!n.backgroundColor,[(0,Fe.getColorClassName)("background-color",n.backgroundColor)]:!!n.backgroundColor}),style:{...null===(t=n.style)||void 0===t?void 0:t.color}});return(0,Re.createElement)(Re.Fragment,null,i&&(0,Re.createElement)(Fe.BlockControls,{group:"other"},(0,Re.createElement)(He.ToolbarButton,{title:(0,De.__)("Edit"),onClick:()=>c(!0)},(0,De.__)("Edit"))),i&&s&&(0,Re.createElement)(kd,{onClose:()=>c(!1),clientId:o}),!l&&(0,Re.createElement)("div",u,(0,Re.createElement)(He.Spinner,null)),l&&null===a&&(0,Re.createElement)("div",u,(0,Re.createElement)("div",u,(0,Re.createElement)(He.Notice,{status:"warning",isDismissible:!1},(0,De.__)("Page List: Cannot retrieve Pages.")))),0===a&&(0,Re.createElement)("div",u,(0,Re.createElement)(He.Notice,{status:"info",isDismissible:!1},(0,De.__)("Page List: Cannot retrieve Pages."))),a>0&&(0,Re.createElement)("ul",u,(0,Re.createElement)(xd,{context:n,pagesByParentId:r})))}};var Bd=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));const Td={className:!1},Nd={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"}},Pd=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;const 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}),{...(0,ht.omit)(e,["customTextColor","customBackgroundColor","customFontSize"]),style:t}},zd=[{supports:Td,attributes:{...(0,ht.omit)(Nd,["style"]),customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:Pd,save(e){let{attributes:t}=e;const{align:n,content:o,dropCap:r,backgroundColor:a,textColor:l,customBackgroundColor:i,customTextColor:s,fontSize:c,customFontSize:u,direction:m}=t,d=(0,Fe.getColorClassName)("color",l),p=(0,Fe.getColorClassName)("background-color",a),g=(0,Fe.getFontSizeClass)(c),h=Qe()({"has-text-color":l||s,"has-background":a||i,"has-drop-cap":r,[`has-text-align-${n}`]:n,[g]:g,[d]:d,[p]:p}),v={backgroundColor:p?void 0:i,color:d?void 0:s,fontSize:g?void 0:u};return(0,Re.createElement)(Fe.RichText.Content,{tagName:"p",style:v,className:h||void 0,value:o,dir:m})}},{supports:Td,attributes:{...(0,ht.omit)(Nd,["style"]),customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:Pd,save(e){let{attributes:t}=e;const{align:n,content:o,dropCap:r,backgroundColor:a,textColor:l,customBackgroundColor:i,customTextColor:s,fontSize:c,customFontSize:u,direction:m}=t,d=(0,Fe.getColorClassName)("color",l),p=(0,Fe.getColorClassName)("background-color",a),g=(0,Fe.getFontSizeClass)(c),h=Qe()({"has-text-color":l||s,"has-background":a||i,"has-drop-cap":r,[g]:g,[d]:d,[p]:p}),v={backgroundColor:p?void 0:i,color:d?void 0:s,fontSize:g?void 0:u,textAlign:n};return(0,Re.createElement)(Fe.RichText.Content,{tagName:"p",style:v,className:h||void 0,value:o,dir:m})}},{supports:Td,attributes:{...(0,ht.omit)(Nd,["style"]),customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate:Pd,save(e){let{attributes:t}=e;const{width:n,align:o,content:r,dropCap:a,backgroundColor:l,textColor:i,customBackgroundColor:s,customTextColor:c,fontSize:u,customFontSize:m}=t,d=(0,Fe.getColorClassName)("color",i),p=(0,Fe.getColorClassName)("background-color",l),g=u&&`is-${u}-text`,h=Qe()({[`align${n}`]:n,"has-background":l||s,"has-drop-cap":a,[g]:g,[d]:d,[p]:p}),v={backgroundColor:p?void 0:s,color:d?void 0:c,fontSize:g?void 0:m,textAlign:o};return(0,Re.createElement)(Fe.RichText.Content,{tagName:"p",style:v,className:h||void 0,value:r})}},{supports:Td,attributes:(0,ht.omit)({...Nd,fontSize:{type:"number"}},["style"]),save(e){let{attributes:t}=e;const{width:n,align:o,content:r,dropCap:a,backgroundColor:l,textColor:i,fontSize:s}=t,c=Qe()({[`align${n}`]:n,"has-background":l,"has-drop-cap":a}),u={backgroundColor:l,color:i,fontSize:s,textAlign:o};return(0,Re.createElement)("p",{style:u,className:c||void 0},r)},migrate:e=>Pd((0,ht.omit)({...e,customFontSize:(0,ht.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:Td,attributes:{...Nd,content:{type:"string",source:"html",default:""}},save(e){let{attributes:t}=e;return(0,Re.createElement)(Re.RawHTML,null,t.content)},migrate:e=>e}];var Id=zd;var Md=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Re.createElement)(Ve.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 Ld(e){let{direction:t,setDirection:n}=e;return(0,De.isRTL)()&&(0,Re.createElement)(He.ToolbarDropdownMenu,{controls:[{icon:Md,title:(0,De._x)("Left to right","editor button"),isActive:"ltr"===t,onClick(){n("ltr"===t?void 0:"ltr")}}]})}var Rd=function(e){let{attributes:t,mergeBlocks:n,onReplace:o,onRemove:r,setAttributes:a,clientId:l}=e;const{align:i,content:s,direction:c,dropCap:u,placeholder:m}=t,d=(0,Fe.useSetting)("typography.dropCap"),p=(0,Fe.useBlockProps)({className:Qe()({"has-drop-cap":u,[`has-text-align-${i}`]:i}),style:{direction:c}});return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(Fe.AlignmentControl,{value:i,onChange:e=>a({align:e})}),(0,Re.createElement)(Ld,{direction:c,setDirection:e=>a({direction:e})})),d&&(0,Re.createElement)(Fe.InspectorControls,{__experimentalGroup:"typography"},(0,Re.createElement)(He.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,De.__)("Drop cap"),onDeselect:()=>a({dropCap:void 0}),resetAllFilter:()=>({dropCap:void 0}),panelId:l},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Drop cap"),checked:!!u,onChange:()=>a({dropCap:!u}),help:u?(0,De.__)("Showing large initial letter."):(0,De.__)("Toggle to show a large initial letter.")}))),(0,Re.createElement)(Fe.RichText,je({identifier:"content",tagName:"p"},p,{value:s,onChange:e=>a({content:e}),onSplit:(e,n)=>{let o;(n||e)&&(o={...t,content:e});const r=(0,Le.createBlock)("core/paragraph",o);return n&&(r.clientId=l),r},onMerge:n,onReplace:o,onRemove:r,"aria-label":s?(0,De.__)("Paragraph block"):(0,De.__)("Empty block; start writing or type forward slash to choose a block"),"data-empty":!s,placeholder:m||(0,De.__)("Type / to choose a block"),__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})))};const{name:Vd}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:"",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"},Ad={from:[{type:"raw",priority:20,selector:"p",schema:e=>{let{phrasingContentSchema:t,isPaste:n}=e;return{p:{children:t,attributes:n?[]:["style","id"]}}},transform(e){const t=(0,Le.getBlockAttributes)(Vd,e.outerHTML),{textAlign:n}=e.style||{};return"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),(0,Le.createBlock)(Vd,t)}}]};var Hd=Ad;const Dd={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:"",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"},{name:Fd}=Dd,$d={icon:Bd,example:{attributes:{content:(0,De.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing."),style:{typography:{fontSize:28}},dropCap:!0}},__experimentalLabel(e,t){let{context:n}=t;if("accessibility"===n){const{content:t}=e;return(0,ht.isEmpty)(t)?(0,De.__)("Empty"):t}},transforms:Hd,deprecated:Id,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:Rd,save:function(e){let{attributes:t}=e;const{align:n,content:o,dropCap:r,direction:a}=t,l=Qe()({"has-drop-cap":r,[`has-text-align-${n}`]:n});return(0,Re.createElement)("p",Fe.useBlockProps.save({className:l,dir:a}),(0,Re.createElement)(Fe.RichText.Content,{value:o}))}};var Gd=function(e){let{isSelected:t,context:{postType:n,postId:o,queryId:r},attributes:a,setAttributes:l}=e;const i=Number.isFinite(r),{authorId:s,authorDetails:c,authors:u}=(0,Ye.useSelect)((e=>{var t;const{getEditedEntityRecord:r,getUser:a,getUsers:l}=e(Je.store),i=null===(t=r("postType",n,o))||void 0===t?void 0:t.author;return{authorId:i,authorDetails:i?a(i):null,authors:l({who:"authors"})}}),[n,o]),{editEntityRecord:m}=(0,Ye.useDispatch)(Je.store),{textAlign:d,showAvatar:p,showBio:g,byline:h}=a,v=[];c&&(0,ht.forEach)(c.avatar_urls,((e,t)=>{v.push({value:t,label:`${t} x ${t}`})}));const b=(0,Fe.useBlockProps)({className:Qe()({[`has-text-align-${d}`]:d})});return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Author Settings")},!i&&!(null==u||!u.length)&&(0,Re.createElement)(He.SelectControl,{label:(0,De.__)("Author"),value:s,options:u.map((e=>{let{id:t,name:n}=e;return{value:t,label:n}})),onChange:e=>{m("postType",n,o,{author:e})}}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Show avatar"),checked:p,onChange:()=>l({showAvatar:!p})}),p&&(0,Re.createElement)(He.SelectControl,{label:(0,De.__)("Avatar size"),value:a.avatarSize,options:v,onChange:e=>{l({avatarSize:Number(e)})}}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Show bio"),checked:g,onChange:()=>l({showBio:!g})}))),(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(Fe.AlignmentControl,{value:d,onChange:e=>{l({textAlign:e})}})),(0,Re.createElement)("div",b,p&&c&&(0,Re.createElement)("div",{className:"wp-block-post-author__avatar"},(0,Re.createElement)("img",{width:a.avatarSize,src:c.avatar_urls[a.avatarSize],alt:c.name})),(0,Re.createElement)("div",{className:"wp-block-post-author__content"},(!Fe.RichText.isEmpty(h)||t)&&(0,Re.createElement)(Fe.RichText,{className:"wp-block-post-author__byline",multiline:!1,"aria-label":(0,De.__)("Post author byline text"),placeholder:(0,De.__)("Write byline"),value:h,onChange:e=>l({byline:e})}),(0,Re.createElement)("p",{className:"wp-block-post-author__name"},(null==c?void 0:c.name)||(0,De.__)("Post Author")),g&&(0,Re.createElement)("p",{className:"wp-block-post-author__bio"},null==c?void 0:c.description))))};var Ud=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.Path,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"}));const Od={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/post-author",title:"Post Author",category:"theme",description:"Display post author details such as name, avatar, and bio.",textdomain:"default",attributes:{textAlign:{type:"string"},avatarSize:{type:"number",default:48},showAvatar:{type:"boolean",default:!0},showBio:{type:"boolean"},byline:{type:"string"}},usesContext:["postType","postId","queryId"],supports:{html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDuotone:".wp-block-post-author__avatar img",__experimentalDefaultControls:{background:!0,text:!0}}},editorStyle:"wp-block-post-author-editor",style:"wp-block-post-author"},{name:qd}=Od,Wd={icon:Ud,edit:Gd};var jd=function(e){let{context:{postType:t,postId:n},attributes:{textAlign:o},setAttributes:r}=e;const{authorDetails:a}=(0,Ye.useSelect)((e=>{var o;const{getEditedEntityRecord:r,getUser:a}=e(Je.store),l=null===(o=r("postType",t,n))||void 0===o?void 0:o.author;return{authorDetails:l?a(l):null}}),[t,n]),l=(0,Fe.useBlockProps)({className:Qe()({[`has-text-align-${o}`]:o})}),i=(null==a?void 0:a.description)||(0,De.__)("Author Biography");return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(Fe.AlignmentControl,{value:o,onChange:e=>{r({textAlign:e})}})),(0,Re.createElement)("div",l," ",i," "))};const Zd={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/post-author-biography",title:"Post Author Biography",category:"theme",description:"The author biography.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postType","postId"],supports:{spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:Qd}=Zd,Kd={icon:Ud,edit:jd};function Jd(e){let{postId:t}=e;return(0,Ye.useSelect)((e=>{const n=e(Je.store).getEntityRecords("root","comment",{post:t});return n&&n.length?n.map((e=>(0,Re.createElement)(Re.RawHTML,{className:"wp-block-post-comments__comment",key:e.id},e.content.rendered))):(0,De.__)("No comments.")}),[t])}const Yd={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/post-comments",title:"Post Comments (deprecated)",category:"theme",description:"This block is deprecated. Please use the Comments Query Loop block instead.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postId","postType"],supports:{html:!1,align:["wide","full"],typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},inserter:!1},style:["wp-block-post-comments","wp-block-buttons","wp-block-button"]},{name:Xd}=Yd,ep={icon:tr,edit:function(e){let{attributes:t,setAttributes:n,context:o}=e;const{postType:r,postId:a}=o,{textAlign:l}=t,i=(0,Fe.useBlockProps)({className:Qe()({[`has-text-align-${l}`]:l})});return r&&a?(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(Fe.AlignmentControl,{value:l,onChange:e=>{n({textAlign:e})}})),(0,Re.createElement)("div",i,(0,Re.createElement)(Jd,{postId:a}))):(0,Re.createElement)("div",i,(0,Re.createElement)(Fe.Warning,null,(0,De.__)("Post comments block: no post found.")))}};var tp=(0,Re.createElement)(Ve.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M4 20h16v-1.5H4V20zm0-4.8h16v-1.5H4v1.5zm0-6.4v1.5h16V8.8H4zM16 4H4v1.5h12V4z"}));function np(e,t,n){return(0,Ye.useSelect)((o=>o(Je.store).canUserEditEntityRecord(e,t,n)),[e,t,n])}function op(e){let{userCanEdit:t,postType:n,postId:o}=e;const[,,r]=(0,Je.useEntityProp)("postType",n,"content",o),a=(0,Fe.useBlockProps)();return null!=r&&r.protected&&!t?(0,Re.createElement)("div",a,(0,Re.createElement)(Fe.Warning,null,(0,De.__)("This content is password protected."))):(0,Re.createElement)("div",je({},a,{dangerouslySetInnerHTML:{__html:null==r?void 0:r.rendered}}))}function rp(e){let{layout:t,context:n={}}=e;const{postType:o,postId:r}=n,a=(0,Ye.useSelect)((e=>{var t;const{getSettings:n}=e(Fe.store);return null===(t=n())||void 0===t?void 0:t.supportsLayout}),[]),l=(0,Fe.useSetting)("layout")||{},i=t&&t.inherit?l:t,[s,c,u]=(0,Je.useEntityBlockEditor)("postType",o,{id:r}),m=(0,Fe.useInnerBlocksProps)((0,Fe.useBlockProps)({className:"entry-content"}),{value:s,onInput:c,onChange:u,__experimentalLayout:a?i:void 0});return(0,Re.createElement)("div",m)}function ap(e){const{context:{queryId:t,postType:n,postId:o}={}}=e,r=Number.isFinite(t),a=np("postType",n,o);return a&&!r?(0,Re.createElement)(rp,e):(0,Re.createElement)(op,{userCanEdit:a,postType:n,postId:o})}function lp(){const e=(0,Fe.useBlockProps)();return(0,Re.createElement)("div",e,(0,Re.createElement)("p",null,(0,De.__)("Post Content")))}function ip(){const e=(0,Fe.useBlockProps)();return(0,Re.createElement)("div",e,(0,Re.createElement)(Fe.Warning,null,(0,De.__)("Block cannot be rendered inside itself.")))}const sp={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/post-content",title:"Post Content",category:"theme",description:"Displays the contents of a post or page.",textdomain:"default",usesContext:["postId","postType","queryId"],supports:{align:["wide","full"],html:!1,__experimentalLayout:!0},editorStyle:"wp-block-post-content-editor"},{name:cp}=sp,up={icon:tp,edit:function(e){let{context:t,attributes:n}=e;const{postId:o,postType:r}=t,{layout:a={}}=n,[l,i]=(0,Fe.__experimentalUseNoRecursiveRenders)(o);return o&&r&&l?(0,Re.createElement)(ip,null):(0,Re.createElement)(i,null,o&&r?(0,Re.createElement)(ap,{context:t,layout:a}):(0,Re.createElement)(lp,null))}};function mp(e){return/(?:^|[^\\])[aAgh]/.test(e)}var dp=[{attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:Ht,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];const pp={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/post-date",title:"Post Date",category:"theme",description:"Add the date of this post.",textdomain:"default",attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1}},usesContext:["postId","postType","queryId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:gp}=pp,hp={icon:Eo,edit:function(e){let{attributes:{textAlign:t,format:n,isLink:o},context:{postId:r,postType:a,queryId:l},setAttributes:i}=e;const s=(0,Fe.useBlockProps)({className:Qe()({[`has-text-align-${t}`]:t})}),c=(0,Re.useRef)(),u=Number.isFinite(l),m=(0,Co.__experimentalGetSettings)(),[d=m.formats.date]=(0,Je.useEntityProp)("root","site","date_format"),[p=m.formats.time]=(0,Je.useEntityProp)("root","site","time_format"),[g,h]=(0,Je.useEntityProp)("postType",a,"date",r),v=(0,Ye.useSelect)((e=>a?e(Je.store).getPostType(a):null),[a]);let b=g?(0,Re.createElement)("time",{dateTime:(0,Co.dateI18n)("c",g),ref:c},(0,Co.dateI18n)(n||d,g)):(0,De.__)("Post Date");return o&&g&&(b=(0,Re.createElement)("a",{href:"#post-date-pseudo-link",onClick:e=>e.preventDefault()},b)),(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(Fe.AlignmentControl,{value:t,onChange:e=>{i({textAlign:e})}}),g&&!u&&(0,Re.createElement)(He.ToolbarGroup,null,(0,Re.createElement)(He.Dropdown,{popoverProps:{anchorRef:c.current},renderContent:()=>(0,Re.createElement)(He.DateTimePicker,{currentDate:g,onChange:h,is12Hour:mp(p)}),renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return(0,Re.createElement)(He.ToolbarButton,{"aria-expanded":t,icon:Ra,title:(0,De.__)("Change Date"),onClick:n,onKeyDown:e=>{t||e.keyCode!==Wt.DOWN||(e.preventDefault(),n())}})}}))),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Settings")},(0,Re.createElement)(Fe.__experimentalDateFormatPicker,{format:n,defaultFormat:d,onChange:e=>i({format:e})}),(0,Re.createElement)(He.ToggleControl,{label:null!=v&&v.labels.singular_name?(0,De.sprintf)((0,De.__)("Link to %s"),v.labels.singular_name.toLowerCase()):(0,De.__)("Link to post"),onChange:()=>i({isLink:!o}),checked:o}))),(0,Re.createElement)("div",s,b))},deprecated:dp};var vp=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));var bp={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,Le.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,Le.createBlock)("core/post-content")}]};const yp={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/post-excerpt",title:"Post Excerpt",category:"theme",description:"Display a post's excerpt.",textdomain:"default",attributes:{textAlign:{type:"string"},moreText:{type:"string"},showMoreOnNewLine:{type:"boolean",default:!0}},usesContext:["postId","postType","queryId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-post-excerpt-editor",style:"wp-block-post-excerpt"},{name:fp}=yp,_p={icon:vp,transforms:bp,edit:function(e){let{attributes:{textAlign:t,moreText:n,showMoreOnNewLine:o},setAttributes:r,isSelected:a,context:{postId:l,postType:i,queryId:s}}=e;const c=Number.isFinite(s),u=np("postType",i,l),m=u&&!c,[d,p,{rendered:g,protected:h}={}]=(0,Je.useEntityProp)("postType",i,"excerpt",l),v=(0,Fe.useBlockProps)({className:Qe()({[`has-text-align-${t}`]:t})}),b=(0,Re.useMemo)((()=>{if(!g)return"";const e=(new window.DOMParser).parseFromString(g,"text/html");return e.body.textContent||e.body.innerText||""}),[g]);if(!i||!l)return(0,Re.createElement)("div",v,(0,De.__)("Post Excerpt"));if(h&&!u)return(0,Re.createElement)("div",v,(0,Re.createElement)(Fe.Warning,null,(0,De.__)("There is no excerpt because this is a protected post.")));const y=(0,Re.createElement)(Fe.RichText,{className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,De.__)('"Read more" link text'),placeholder:(0,De.__)('Add "read more" link text'),value:n,onChange:e=>r({moreText:e}),withoutInteractiveFormatting:!0}),f=Qe()("wp-block-post-excerpt__excerpt",{"is-inline":!o}),_=m?(0,Re.createElement)(Fe.RichText,{className:f,"aria-label":(0,De.__)("Post excerpt text"),value:d||b||(a?"":(0,De.__)("No post excerpt found")),onChange:p,tagName:"p"}):(0,Re.createElement)("p",{className:f},b||(0,De.__)("No post excerpt found"));return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,null,(0,Re.createElement)(Fe.AlignmentToolbar,{value:t,onChange:e=>r({textAlign:e})})),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Post Excerpt Settings")},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Show link on new line"),checked:o,onChange:e=>r({showMoreOnNewLine:e})}))),(0,Re.createElement)("div",v,_,!o&&" ",o?(0,Re.createElement)("p",{className:"wp-block-post-excerpt__more-text"},y):y))}},kp=(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(He.__experimentalToggleGroupControlOption,{value:"cover",label:(0,De._x)("Cover","Scale option for Image dimension control")}),(0,Re.createElement)(He.__experimentalToggleGroupControlOption,{value:"contain",label:(0,De._x)("Contain","Scale option for Image dimension control")}),(0,Re.createElement)(He.__experimentalToggleGroupControlOption,{value:"fill",label:(0,De._x)("Fill","Scale option for Image dimension control")})),xp="cover",Ep={cover:(0,De.__)("Image is scaled and cropped to fill the entire space without being distorted."),contain:(0,De.__)("Image is scaled to fill the space without clipping nor distorting."),fill:(0,De.__)("Image will be stretched and distorted to completely fill the space.")};var Cp=e=>{let{clientId:t,attributes:{width:n,height:o,scale:r,sizeSlug:a},setAttributes:l,imageSizeOptions:i=[]}=e;const s=(0,He.__experimentalUseCustomUnits)({availableUnits:(0,Fe.useSetting)("spacing.units")||["px","%","vw","em","rem"]}),c=(e,t)=>{const n=parseFloat(t);isNaN(n)&&t||l({[e]:n<0?"0":t})},u=(0,De._x)("Scale","Image scaling options");return(0,Re.createElement)(Fe.InspectorControls,{__experimentalGroup:"dimensions"},(0,Re.createElement)(He.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!o,label:(0,De.__)("Height"),onDeselect:()=>l({height:void 0}),resetAllFilter:()=>({height:void 0}),isShownByDefault:!0,panelId:t},(0,Re.createElement)(He.__experimentalUnitControl,{label:(0,De.__)("Height"),labelPosition:"top",value:o||"",min:0,onChange:e=>c("height",e),units:s})),(0,Re.createElement)(He.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!n,label:(0,De.__)("Width"),onDeselect:()=>l({width:void 0}),resetAllFilter:()=>({width:void 0}),isShownByDefault:!0,panelId:t},(0,Re.createElement)(He.__experimentalUnitControl,{label:(0,De.__)("Width"),labelPosition:"top",value:n||"",min:0,onChange:e=>c("width",e),units:s})),!!o&&(0,Re.createElement)(He.__experimentalToolsPanelItem,{hasValue:()=>!!r&&r!==xp,label:u,onDeselect:()=>l({scale:xp}),resetAllFilter:()=>({scale:xp}),isShownByDefault:!0,panelId:t},(0,Re.createElement)(He.__experimentalToggleGroupControl,{label:u,value:r,help:Ep[r],onChange:e=>l({scale:e}),isBlock:!0},kp)),!!i.length&&(0,Re.createElement)(He.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,De.__)("Image size"),onDeselect:()=>l({sizeSlug:void 0}),resetAllFilter:()=>({sizeSlug:void 0}),isShownByDefault:!1,panelId:t},(0,Re.createElement)(He.SelectControl,{label:(0,De.__)("Image size"),value:a||"full",options:i,onChange:e=>l({sizeSlug:e}),help:(0,De.__)("Select the size of the source image.")})))};const Sp=(0,Re.createElement)(Ve.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none"},(0,Re.createElement)(Ve.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"})),Bp=["image"],Tp=(0,Re.createElement)("div",{className:"wp-block-post-featured-image__placeholder"},Sp);function Np(e){let{clientId:t,attributes:n,setAttributes:o,context:{postId:r,postType:a,queryId:l}}=e;const i=Number.isFinite(l),{isLink:s,height:c,width:u,scale:m,sizeSlug:d}=n,[p,g]=(0,Je.useEntityProp)("postType",a,"featured_media",r),h=(0,Ye.useSelect)((e=>p&&e(Je.store).getMedia(p,{context:"view"})),[p]),v=function(e,t){var n,o,r;return(null==e||null===(n=e.media_details)||void 0===n||null===(o=n.sizes)||void 0===o||null===(r=o[t])||void 0===r?void 0:r.source_url)||(null==e?void 0:e.source_url)}(h,d),b=(0,Ye.useSelect)((e=>e(Fe.store).getSettings().imageSizes),[]).filter((e=>{var t,n,o;let{slug:r}=e;return null==h||null===(t=h.media_details)||void 0===t||null===(n=t.sizes)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.source_url})).map((e=>{let{name:t,slug:n}=e;return{value:n,label:t}})),y=(0,Fe.useBlockProps)({style:{width:u,height:c}}),f=e=>(0,Re.createElement)(He.Placeholder,{className:"block-editor-media-placeholder"},Sp,e),_=e=>{null!=e&&e.id&&g(e.id)},{createErrorNotice:k}=(0,Ye.useDispatch)(wa.store),w=e=>{k(e[2],{type:"snackbar"})},x=(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Cp,{clientId:t,attributes:n,setAttributes:o,imageSizeOptions:b}),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Link settings")},(0,Re.createElement)(He.ToggleControl,{label:(0,De.sprintf)((0,De.__)("Link to %s"),a),onChange:()=>o({isLink:!s}),checked:s}))));let E;if(!p&&i)return(0,Re.createElement)(Re.Fragment,null,x,(0,Re.createElement)("div",y,Tp));const C=(0,De.__)("Add a featured image");return E=p?h?(0,Re.createElement)("img",{src:v,alt:h.alt_text?(0,De.sprintf)((0,De.__)("Featured image: %s"),h.alt_text):(0,De.__)("Featured image"),style:{height:c,objectFit:c&&m}}):Tp:(0,Re.createElement)(Fe.MediaPlaceholder,{onSelect:_,accept:"image/*",allowedTypes:Bp,onError:w,placeholder:f,mediaLibraryButton:e=>{let{open:t}=e;return(0,Re.createElement)(He.Button,{icon:Fs,variant:"primary",label:C,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{t()}})}}),(0,Re.createElement)(Re.Fragment,null,x,!!h&&!i&&(0,Re.createElement)(Fe.BlockControls,{group:"other"},(0,Re.createElement)(Fe.MediaReplaceFlow,{mediaId:p,mediaURL:v,allowedTypes:Bp,accept:"image/*",onSelect:_,onError:w},(0,Re.createElement)(He.MenuItem,{onClick:()=>g(0)},(0,De.__)("Reset")))),(0,Re.createElement)("figure",y,E))}const Pp={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/post-featured-image",title:"Post Featured Image",category:"theme",description:"Display a post's featured image.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!1},width:{type:"string"},height:{type:"string"},scale:{type:"string",default:"cover"},sizeSlug:{type:"string"}},usesContext:["postId","postType","queryId"],supports:{align:["left","right","center","wide","full"],color:{__experimentalDuotone:"img, .wp-block-post-featured-image__placeholder, .components-placeholder__illustration, .components-placeholder::before",text:!1,background:!1},html:!1,spacing:{margin:!0,padding:!0}},editorStyle:"wp-block-post-featured-image-editor",style:"wp-block-post-featured-image"},{name:zp}=Pp,Ip={icon:ka,edit:function(e){var t;const n=(0,Fe.useBlockProps)();return null!==(t=e.context)&&void 0!==t&&t.postId?(0,Re.createElement)(Np,e):(0,Re.createElement)("div",n,Tp)}};var Mp=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}));var Lp=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"}));const Rp=[{isDefault:!0,name:"post-next",title:(0,De.__)("Next post"),description:(0,De.__)("Displays the post link that follows the current post."),icon:Mp,attributes:{type:"next"},scope:["inserter","transform"]},{name:"post-previous",title:(0,De.__)("Previous post"),description:(0,De.__)("Displays the post link that precedes the current post."),icon:Lp,attributes:{type:"previous"},scope:["inserter","transform"]}];Rp.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));var Vp=Rp;const Ap={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/post-navigation-link",title:"Post Navigation Link",category:"theme",description:"Displays the next or previous post link that is adjacent to the current post.",textdomain:"default",attributes:{textAlign:{type:"string"},type:{type:"string",default:"next"},label:{type:"string"},showTitle:{type:"boolean",default:!1},linkLabel:{type:"boolean",default:!1}},supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:Hp}=Ap,Dp={edit:function(e){let{attributes:{type:t,label:n,showTitle:o,textAlign:r,linkLabel:a},setAttributes:l}=e;const i="next"===t;let s=i?(0,De.__)("Next"):(0,De.__)("Previous");o&&(s=i?(0,De.__)("Next: "):(0,De.__)("Previous: "));const c=i?(0,De.__)("Next post"):(0,De.__)("Previous post"),u=(0,Fe.useBlockProps)({className:Qe()({[`has-text-align-${r}`]:r})});return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,null,(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Display the title as a link"),help:(0,De.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!o,onChange:()=>l({showTitle:!o})}),o&&(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Include the label as part of the link"),checked:!!a,onChange:()=>l({linkLabel:!a})}))),(0,Re.createElement)(Fe.BlockControls,null,(0,Re.createElement)(Fe.AlignmentToolbar,{value:r,onChange:e=>{l({textAlign:e})}})),(0,Re.createElement)("div",u,(0,Re.createElement)(Fe.RichText,{tagName:"a","aria-label":c,placeholder:s,value:n,allowedFormats:["core/bold","core/italic"],onChange:e=>l({label:e})}),o&&(0,Re.createElement)("a",{href:"#post-navigation-pseudo-link",onClick:e=>e.preventDefault()},(0,De.__)("An example title"))))},variations:Vp},Fp=[["core/post-title"],["core/post-date"],["core/post-excerpt"]];function $p(){const e=(0,Fe.useInnerBlocksProps)({className:"wp-block-post"},{template:Fp});return(0,Re.createElement)("li",e)}const Gp=(0,Re.memo)((function(e){let{blocks:t,blockContextId:n,isHidden:o,setActiveBlockContextId:r}=e;const a=(0,Fe.__experimentalUseBlockPreview)({blocks:t,props:{className:"wp-block-post"}}),l=()=>{r(n)},i={display:o?"none":void 0};return(0,Re.createElement)("li",je({},a,{tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:i}))}));const Up={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/post-template",title:"Post Template",category:"theme",parent:["core/query"],description:"Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.",textdomain:"default",usesContext:["queryId","query","queryContext","displayLayout","templateSlug"],supports:{reusable:!1,html:!1,align:!0,__experimentalLayout:{allowEditing:!1}},style:"wp-block-post-template",editorStyle:"wp-block-post-template-editor"},{name:Op}=Up,qp={icon:Do,edit:function(e){let{clientId:t,context:{query:{perPage:n,offset:o,postType:r,order:a,orderBy:l,author:i,search:s,exclude:c,sticky:u,inherit:m,taxQuery:d}={},queryContext:p=[{page:1}],templateSlug:g,displayLayout:{type:h="flex",columns:v=1}={}}}=e;const[{page:b}]=p,[y,f]=(0,Re.useState)(),{posts:_,blocks:k}=(0,Ye.useSelect)((e=>{const{getEntityRecords:p,getTaxonomies:h}=e(Je.store),{getBlocks:v}=e(Fe.store),y=h({type:r,per_page:-1,context:"view"}),f={offset:n?n*(b-1)+o:0,order:a,orderby:l};if(d){const e=Object.entries(d).reduce(((e,t)=>{let[n,o]=t;const r=null==y?void 0:y.find((e=>{let{slug:t}=e;return t===n}));return null!=r&&r.rest_base&&(e[null==r?void 0:r.rest_base]=o),e}),{});Object.keys(e).length&&Object.assign(f,e)}return n&&(f.per_page=n),i&&(f.author=i),s&&(f.search=s),null!=c&&c.length&&(f.exclude=c),u&&(f.sticky="only"===u),m&&null!=g&&g.startsWith("archive-")&&(f.postType=g.replace("archive-",""),r=f.postType),{posts:p("postType",r,f),blocks:v(t)}}),[n,b,o,a,l,t,i,s,r,c,u,m,g,d]),w=(0,Re.useMemo)((()=>null==_?void 0:_.map((e=>({postType:e.type,postId:e.id})))),[_]),x="flex"===h&&v>1,E=(0,Fe.useBlockProps)({className:Qe()({"is-flex-container":x,[`columns-${v}`]:x})});return _?_.length?(0,Re.createElement)("ul",E,w&&w.map((e=>{var t,n;return(0,Re.createElement)(Fe.BlockContextProvider,{key:e.postId,value:e},e.postId===(y||(null===(t=w[0])||void 0===t?void 0:t.postId))?(0,Re.createElement)($p,null):null,(0,Re.createElement)(Gp,{blocks:k,blockContextId:e.postId,setActiveBlockContextId:f,isHidden:e.postId===(y||(null===(n=w[0])||void 0===n?void 0:n.postId))}))}))):(0,Re.createElement)("p",E," ",(0,De.__)("No results found.")):(0,Re.createElement)("p",E,(0,Re.createElement)(He.Spinner,null))},save:function(){return(0,Re.createElement)(Fe.InnerBlocks.Content,null)}};var Wp=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.Path,{d:"M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z",fillRule:"evenodd",clipRule:"evenodd"}));var jp=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.Path,{d:"M8.1 12.3c.1.1.3.3.5.3.2.1.4.1.6.1.2 0 .4 0 .6-.1.2-.1.4-.2.5-.3l3-3c.3-.3.5-.7.5-1.1 0-.4-.2-.8-.5-1.1L9.7 3.5c-.1-.2-.3-.3-.5-.3H5c-.4 0-.8.4-.8.8v4.2c0 .2.1.4.2.5l3.7 3.6zM5.8 4.8h3.1l3.4 3.4v.1l-3 3 .5.5-.7-.5-3.3-3.4V4.8zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"}));const Zp=[{name:"category",title:(0,De.__)("Post Categories"),description:(0,De.__)("Display a post's categories."),icon:Wp,isDefault:!0,attributes:{term:"category"},isActive:e=>"category"===e.term},{name:"post_tag",title:(0,De.__)("Post Tags"),description:(0,De.__)("Display a post's tags."),icon:jp,attributes:{term:"post_tag"},isActive:e=>"post_tag"===e.term}];var Qp=Zp;const Kp={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/post-terms",title:"Post Terms",category:"theme",description:"Post terms.",textdomain:"default",attributes:{term:{type:"string"},textAlign:{type:"string"},separator:{type:"string",default:", "}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{lineHeight:!0,fontSize:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-post-terms"},{name:Jp}=Kp,Yp={icon:jp,variations:Qp,edit:function(e){var t;let{attributes:n,clientId:o,context:r,setAttributes:a}=e;const{term:l,textAlign:i,separator:s}=n,{postId:c,postType:u}=r,m=(0,Ye.useSelect)((e=>{var t;if(!l)return{};const{getTaxonomy:n}=e(Je.store),o=n(l);return null!=o&&null!==(t=o.visibility)&&void 0!==t&&t.publicly_queryable?o:{}}),[l]),{postTerms:d,hasPostTerms:p,isLoading:g}=function(e){var t;let{postId:n,postType:o,term:r}=e;const{rest_base:a,slug:l}=r,[i]=(0,Je.useEntityProp)("postType",o,a,n);return(0,Ye.useSelect)((e=>{var t,n;if(!(null==r||null===(t=r.visibility)||void 0===t?void 0:t.publicly_queryable))return{postTerms:[],_isLoading:!1,hasPostTerms:!1};if(!i)return{isLoading:null==r||null===(n=r.postTerms)||void 0===n?void 0:n.includes(o)};if(!i.length)return{isLoading:!1};const{getEntityRecords:a,isResolving:s}=e(Je.store),c=["taxonomy",l,{include:i,context:"view"}],u=a(...c);return{postTerms:u,isLoading:s("getEntityRecords",c),hasPostTerms:!(null==u||!u.length)}}),[i,null==r||null===(t=r.visibility)||void 0===t?void 0:t.publicly_queryable])}({postId:c,postType:u,term:m}),h=c&&u,v=(0,Fe.useBlockDisplayInformation)(o),b=(0,Fe.useBlockProps)({className:Qe()({[`has-text-align-${i}`]:i,[`taxonomy-${l}`]:l})});return h&&l?(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,null,(0,Re.createElement)(Fe.AlignmentToolbar,{value:i,onChange:e=>{a({textAlign:e})}})),(0,Re.createElement)(Fe.InspectorControls,{__experimentalGroup:"advanced"},(0,Re.createElement)(He.TextControl,{autoComplete:"off",label:(0,De.__)("Separator"),value:s||"",onChange:e=>{a({separator:e})},help:(0,De.__)("Enter character(s) used to separate terms.")})),(0,Re.createElement)("div",b,g&&(0,Re.createElement)(He.Spinner,null),!g&&p&&d.map((e=>(0,Re.createElement)("a",{key:e.id,href:e.link,onClick:e=>e.preventDefault()},(0,ht.unescape)(e.name)))).reduce(((e,t)=>(0,Re.createElement)(Re.Fragment,null,e,(0,Re.createElement)("span",{className:"wp-block-post-terms__separator"},s||" "),t))),!g&&!p&&((null==m||null===(t=m.labels)||void 0===t?void 0:t.no_terms)||(0,De.__)("Term items not found.")))):(0,Re.createElement)("div",b,v.title)}};var Xp=[{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:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0}},save:()=>null,migrate:Ht,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];const eg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/post-title",title:"Post Title",category:"theme",description:"Displays the title of a post, page, or any other content-type.",textdomain:"default",usesContext:["postId","postType","queryId"],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:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}}},style:"wp-block-post-title"},{name:tg}=eg,ng={icon:Dm,edit:function(e){let{attributes:{level:t,textAlign:n,isLink:o,rel:r,linkTarget:a},setAttributes:l,context:{postType:i,postId:s,queryId:c}}=e;const u=0===t?"p":"h"+t,m=Number.isFinite(c),d=np("postType",i,s),[p="",g,h]=(0,Je.useEntityProp)("postType",i,"title",s),[v]=(0,Je.useEntityProp)("postType",i,"link",s),b=(0,Fe.useBlockProps)({className:Qe()({[`has-text-align-${n}`]:n})});let y=(0,Re.createElement)(u,b,(0,De.__)("Post Title"));return i&&s&&(y=d&&!m?(0,Re.createElement)(Fe.PlainText,je({tagName:u,placeholder:(0,De.__)("No Title"),value:p,onChange:g,__experimentalVersion:2},b)):(0,Re.createElement)(u,je({},b,{dangerouslySetInnerHTML:{__html:null==h?void 0:h.rendered}}))),o&&i&&s&&(y=d&&!m?(0,Re.createElement)(u,b,(0,Re.createElement)(Fe.PlainText,{tagName:"a",href:v,target:a,rel:r,placeholder:p.length?null:(0,De.__)("No Title"),value:p,onChange:g,__experimentalVersion:2})):(0,Re.createElement)(u,b,(0,Re.createElement)("a",{href:v,target:a,rel:r,onClick:e=>e.preventDefault(),dangerouslySetInnerHTML:{__html:null==h?void 0:h.rendered}}))),(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(gs,{selectedLevel:t,onChange:e=>l({level:e})}),(0,Re.createElement)(Fe.AlignmentControl,{value:n,onChange:e=>{l({textAlign:e})}})),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Link settings")},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Make title a link"),onChange:()=>l({isLink:!o}),checked:o}),o&&(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Open in new tab"),onChange:e=>l({linkTarget:e?"_blank":"_self"}),checked:"_blank"===a}),(0,Re.createElement)(He.TextControl,{label:(0,De.__)("Link rel"),value:r,onChange:e=>l({rel:e})})))),y)},deprecated:Xp};var og=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"}));const rg={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:e=>{let{content:t,anchor:n}=e;return(0,Le.createBlock)("core/preformatted",{content:t,anchor:n})}},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName),schema:e=>{let{phrasingContentSchema:t}=e;return{pre:{children:t}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,Le.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>(0,Le.createBlock)("core/code",e)}]};var ag=rg;const lg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/preformatted",title:"Preformatted",category:"text",description:"Add text that respects your spacing and tabs, and also allows styling.",textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"}},supports:{anchor:!0,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-preformatted"},{name:ig}=lg,sg={icon:og,example:{attributes:{content:(0,De.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\nWindow, very small in the distance, illuminated.\nAll around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:ag,edit:function(e){let{attributes:t,mergeBlocks:n,setAttributes:o,onRemove:r,style:a}=e;const{content:l}=t,i=(0,Fe.useBlockProps)({style:a});return(0,Re.createElement)(Fe.RichText,je({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:e=>{o({content:e})},onRemove:r,"aria-label":(0,De.__)("Preformatted text"),placeholder:(0,De.__)("Write preformatted text"),onMerge:n},i,{__unstablePastePlainText:!0}))},save:function(e){let{attributes:t}=e;const{content:n}=t;return(0,Re.createElement)("pre",Fe.useBlockProps.save(),(0,Re.createElement)(Fe.RichText.Content,{value:n}))},merge:(e,t)=>({content:e.content+t.content})};var cg=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"}));const ug="is-style-solid-color",mg={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 dg(e){if(!e)return;const t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}const pg=[{attributes:{...mg},save(e){let{attributes:t}=e;const{mainColor:n,customMainColor:o,customTextColor:r,textColor:a,value:l,citation:i,className:s}=t;let c,u;if((0,ht.includes)(s,ug)){const e=(0,Fe.getColorClassName)("background-color",n);c=Qe()({"has-background":e||o,[e]:e}),u={backgroundColor:e?void 0:o}}else o&&(u={borderColor:o});const m=(0,Fe.getColorClassName)("color",a),d=Qe()({"has-text-color":a||r,[m]:m}),p=m?void 0:{color:r};return(0,Re.createElement)("figure",Fe.useBlockProps.save({className:c,style:u}),(0,Re.createElement)("blockquote",{className:d,style:p},(0,Re.createElement)(Fe.RichText.Content,{value:l,multiline:!0}),!Fe.RichText.isEmpty(i)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"cite",value:i})))},migrate(e){let{className:t,mainColor:n,customMainColor:o,customTextColor:r,...a}=e;const l=(0,ht.includes)(t,ug);let i;return o&&(i=l?{color:{background:o}}:{border:{color:o}}),r&&i&&(i.color={...i.color,text:r}),{className:t,backgroundColor:l?n:void 0,borderColor:l?void 0:n,textAlign:l?"left":void 0,style:i,...a}}},{attributes:{...mg,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save(e){let{attributes:t}=e;const{mainColor:n,customMainColor:o,textColor:r,customTextColor:a,value:l,citation:i,className:s,figureStyle:c}=t;let u,m;if((0,ht.includes)(s,ug)){const e=(0,Fe.getColorClassName)("background-color",n);u=Qe()({"has-background":e||o,[e]:e}),m={backgroundColor:e?void 0:o}}else if(o)m={borderColor:o};else if(n){m={borderColor:dg(c)}}const d=(0,Fe.getColorClassName)("color",r),p=(r||a)&&Qe()("has-text-color",{[d]:d}),g=d?void 0:{color:a};return(0,Re.createElement)("figure",{className:u,style:m},(0,Re.createElement)("blockquote",{className:p,style:g},(0,Re.createElement)(Fe.RichText.Content,{value:l,multiline:!0}),!Fe.RichText.isEmpty(i)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"cite",value:i})))},migrate(e){let{className:t,figureStyle:n,mainColor:o,customMainColor:r,customTextColor:a,...l}=e;const i=(0,ht.includes)(t,ug);let s;if(r&&(s=i?{color:{background:r}}:{border:{color:r}}),a&&s&&(s.color={...s.color,text:a}),!i&&o&&n){const e=dg(n);if(e)return{...l,className:t,style:{border:{color:e}}}}return{className:t,backgroundColor:i?o:void 0,borderColor:i?void 0:o,textAlign:i?"left":void 0,style:s,...l}}},{attributes:mg,save(e){let{attributes:t}=e;const{mainColor:n,customMainColor:o,textColor:r,customTextColor:a,value:l,citation:i,className:s}=t;let c,u;if((0,ht.includes)(s,ug))c=(0,Fe.getColorClassName)("background-color",n),c||(u={backgroundColor:o});else if(o)u={borderColor:o};else if(n){const e=(0,ht.get)((0,Ye.select)(Fe.store).getSettings(),["colors"],[]);u={borderColor:(0,Fe.getColorObjectByAttributeValues)(e,n).color}}const m=(0,Fe.getColorClassName)("color",r),d=r||a?Qe()("has-text-color",{[m]:m}):void 0,p=m?void 0:{color:a};return(0,Re.createElement)("figure",{className:c,style:u},(0,Re.createElement)("blockquote",{className:d,style:p},(0,Re.createElement)(Fe.RichText.Content,{value:l,multiline:!0}),!Fe.RichText.isEmpty(i)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"cite",value:i})))},migrate(e){let{className:t,mainColor:n,customMainColor:o,customTextColor:r,...a}=e;const l=(0,ht.includes)(t,ug);let i={};return o&&(i=l?{color:{background:o}}:{border:{color:o}}),r&&i&&(i.color={...i.color,text:r}),{className:t,backgroundColor:l?n:void 0,borderColor:l?void 0:n,textAlign:l?"left":void 0,style:i,...a}}},{attributes:{...mg},save(e){let{attributes:t}=e;const{value:n,citation:o}=t;return(0,Re.createElement)("blockquote",null,(0,Re.createElement)(Fe.RichText.Content,{value:n,multiline:!0}),!Fe.RichText.isEmpty(o)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"cite",value:o}))}},{attributes:{...mg,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save(e){let{attributes:t}=e;const{value:n,citation:o,align:r}=t;return(0,Re.createElement)("blockquote",{className:`align${r}`},(0,Re.createElement)(Fe.RichText.Content,{value:n,multiline:!0}),!Fe.RichText.isEmpty(o)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"footer",value:o}))}}];var gg=pg;const hg="web"===Re.Platform.OS;var vg=function(e){let{attributes:t,setAttributes:n,isSelected:o,insertBlocksAfter:r}=e;const{textAlign:a,citation:l,value:i}=t,s=(0,Fe.useBlockProps)({className:Qe()({[`has-text-align-${a}`]:a})}),c=!Fe.RichText.isEmpty(l)||o;return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(Fe.AlignmentControl,{value:a,onChange:e=>{n({textAlign:e})}})),(0,Re.createElement)("figure",s,(0,Re.createElement)("blockquote",null,(0,Re.createElement)(Fe.RichText,{identifier:"value",multiline:!0,value:i,onChange:e=>n({value:e}),"aria-label":(0,De.__)("Pullquote text"),placeholder:(0,De.__)("Add quote"),textAlign:"center"}),c&&(0,Re.createElement)(Fe.RichText,{identifier:"citation",tagName:hg?"cite":void 0,style:{display:"block"},value:l,"aria-label":(0,De.__)("Pullquote citation text"),placeholder:(0,De.__)("Add citation"),onChange:e=>n({citation:e}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>r((0,Le.createBlock)("core/paragraph"))}))))};const bg={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,Le.createBlock)("core/pullquote",{value:(0,an.toHTMLString)({value:(0,an.join)(e.map((e=>{let{content:t}=e;return(0,an.create)({html:t})})),"\u2028"),multilineTag:"p"}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:e=>{let{content:t,anchor:n}=e;return(0,Le.createBlock)("core/pullquote",{value:`<p>${t}</p>`,anchor:n})}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{value:t,citation:n}=e;const o=[];return t&&"<p></p>"!==t&&o.push(...(0,an.split)((0,an.create)({html:t,multilineTag:"p"}),"\u2028").map((e=>(0,Le.createBlock)("core/paragraph",{content:(0,an.toHTMLString)({value:e})})))),n&&"<p></p>"!==n&&o.push((0,Le.createBlock)("core/paragraph",{content:n})),0===o.length?(0,Le.createBlock)("core/paragraph",{content:""}):o}},{type:"block",blocks:["core/heading"],transform:e=>{let{value:t,citation:n,...o}=e;if("<p></p>"===t)return(0,Le.createBlock)("core/heading",{content:n});const r=(0,an.split)((0,an.create)({html:t,multilineTag:"p"}),"\u2028"),a=(0,Le.createBlock)("core/heading",{content:(0,an.toHTMLString)({value:r[0]})});if(!n&&1===r.length)return a;const l=r.slice(1);return[a,(0,Le.createBlock)("core/pullquote",{...o,citation:n,value:(0,an.toHTMLString)({value:l.length?(0,an.join)(r.slice(1),"\u2028"):(0,an.create)(),multilineTag:"p"})})]}}]};var yg=bg;const fg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/pullquote",title:"Pullquote",category:"text",description:"Give special visual emphasis to a quote from your text.",textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],color:{gradients:!0,background:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}}},editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"},{name:_g}=fg,kg={icon:cg,example:{attributes:{value:"<p>"+(0,De.__)("One of the hardest things to do in technology is disrupt yourself.")+"</p>",citation:(0,De.__)("Matt Mullenweg")}},transforms:yg,edit:vg,save:function(e){let{attributes:t}=e;const{textAlign:n,citation:o,value:r}=t,a=!Fe.RichText.isEmpty(o);return(0,Re.createElement)("figure",Fe.useBlockProps.save({className:Qe()({[`has-text-align-${n}`]:n})}),(0,Re.createElement)("blockquote",null,(0,Re.createElement)(Fe.RichText.Content,{value:r,multiline:!0}),a&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"cite",value:o})))},deprecated:gg};var wg=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"}));var xg=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));function Eg(e){let{attributes:{query:t,displayLayout:n},setQuery:o,setDisplayLayout:r,openPatternSelectionModal:a}=e;const l=(0,Rt.useInstanceId)(Eg,"blocks-query-pagination-max-page-input"),i=[{icon:ic,title:(0,De.__)("List view"),onClick:()=>r({type:"list"}),isActive:"list"===(null==n?void 0:n.type)},{icon:sc,title:(0,De.__)("Grid view"),onClick:()=>r({type:"flex",columns:(null==n?void 0:n.columns)||3}),isActive:"flex"===(null==n?void 0:n.type)}];return(0,Re.createElement)(Re.Fragment,null,!t.inherit&&(0,Re.createElement)(He.ToolbarGroup,null,(0,Re.createElement)(He.Dropdown,{contentClassName:"block-library-query-toolbar__popover",renderToggle:e=>{let{onToggle:t}=e;return(0,Re.createElement)(He.ToolbarButton,{icon:xg,label:(0,De.__)("Display settings"),onClick:t})},renderContent:()=>(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(He.BaseControl,null,(0,Re.createElement)(He.__experimentalNumberControl,{__unstableInputWidth:"60px",label:(0,De.__)("Items per Page"),labelPosition:"edge",min:1,max:100,onChange:e=>{isNaN(e)||e<1||e>100||o({perPage:e})},step:"1",value:t.perPage,isDragEnabled:!1})),(0,Re.createElement)(He.BaseControl,null,(0,Re.createElement)(He.__experimentalNumberControl,{__unstableInputWidth:"60px",label:(0,De.__)("Offset"),labelPosition:"edge",min:0,max:100,onChange:e=>{isNaN(e)||e<0||e>100||o({offset:e})},step:"1",value:t.offset,isDragEnabled:!1})),(0,Re.createElement)(He.BaseControl,{id:l,help:(0,De.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")},(0,Re.createElement)(He.__experimentalNumberControl,{id:l,__unstableInputWidth:"60px",label:(0,De.__)("Max page to show"),labelPosition:"edge",min:0,onChange:e=>{isNaN(e)||e<0||o({pages:e})},step:"1",value:t.pages,isDragEnabled:!1})))})),(0,Re.createElement)(He.ToolbarGroup,{className:"wp-block-template-part__block-control-group"},(0,Re.createElement)(He.ToolbarButton,{onClick:a},(0,De.__)("Replace"))),(0,Re.createElement)(He.ToolbarGroup,{controls:i}))}const Cg=[{label:(0,De.__)("Newest to oldest"),value:"date/desc"},{label:(0,De.__)("Oldest to newest"),value:"date/asc"},{label:(0,De.__)("A Z"),value:"title/asc"},{label:(0,De.__)("Z A"),value:"title/desc"}];var Sg=function(e){let{order:t,orderBy:n,onChange:o}=e;return(0,Re.createElement)(He.SelectControl,{label:(0,De.__)("Order by"),value:`${n}/${t}`,options:Cg,onChange:e=>{const[t,n]=e.split("/");o({order:n,orderBy:t})}})};const Bg=e=>{const t=null==e?void 0:e.reduce(((e,t)=>{const{mapById:n,mapByName:o,names:r}=e;return n[t.id]=t,o[t.name]=t,r.push(t.name),e}),{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},Tg={who:"authors",per_page:-1,_fields:"id,name",context:"view"};var Ng=function(e){let{value:t,onChange:n}=e;const o=(0,Ye.useSelect)((e=>{const{getUsers:t}=e(Je.store);return t(Tg)}),[]);if(!o)return null;const r=Bg(o),a=(t?t.toString().split(","):[]).reduce(((e,t)=>{const n=r.mapById[t];return n&&e.push({id:t,value:n.name}),e}),[]);return(0,Re.createElement)(He.FormTokenField,{label:(0,De.__)("Authors"),value:a,suggestions:r.names,onChange:e=>{const t=Array.from(e.reduce(((e,t)=>{const n=((e,t)=>{var n;const o=(null==t?void 0:t.id)||(null===(n=e[t])||void 0===n?void 0:n.id);if(o)return o})(r.mapByName,t);return n&&e.add(n),e}),new Set));n({author:t.join(",")})}})};var Pg=function(e){let{onChange:t,query:n}=e;const o=(r=n.postType,(0,Ye.useSelect)((e=>{const{getTaxonomies:t}=e(Je.store);return t({type:r,per_page:-1,context:"view"})}),[r]));var r;const a=(0,Ye.useSelect)((e=>{const{getEntityRecords:t}=e(Je.store),n={per_page:100};return null==o?void 0:o.map((e=>{let{slug:o,name:r}=e;const a=t("taxonomy",o,n);return{slug:o,name:r,terms:Bg(a)}}))}),[o]),l=e=>{var t;const o=a.find((t=>{let{slug:n}=t;return n===e}));return o?((null===(t=n.taxQuery)||void 0===t?void 0:t[e])||[]).reduce(((e,t)=>{const n=o.terms.mapById[t];return n&&e.push({id:t,value:n.name}),e}),[]):[]};return(0,Re.createElement)(Re.Fragment,null,!(null==a||!a.length)&&a.map((e=>{var o;let{slug:r,name:i,terms:s}=e;return null!=s&&null!==(o=s.names)&&void 0!==o&&o.length?(0,Re.createElement)(He.FormTokenField,{key:r,label:i,value:l(r),suggestions:s.names,onChange:(c=r,e=>{const o=a.find((e=>{let{slug:t}=e;return t===c}));if(!o)return;const r=Array.from(e.reduce(((e,t)=>{const n=((e,t)=>{var n;const o=(null==t?void 0:t.id)||(null===(n=e[t])||void 0===n?void 0:n.id);if(o)return o;const r=t.toLocaleLowerCase();for(const t in e)if(t.toLocaleLowerCase()===r)return e[t].id})(o.terms.mapByName,t);return n&&e.add(n),e}),new Set)),l={...n.taxQuery,[c]:r};t({taxQuery:l})})}):null;var c})))};const zg=[{label:(0,De.__)("Include"),value:""},{label:(0,De.__)("Exclude"),value:"exclude"},{label:(0,De.__)("Only"),value:"only"}];function Ig(e){let{attributes:{query:t,displayLayout:n},setQuery:o,setDisplayLayout:r}=e;const{order:a,orderBy:l,author:i,postType:s,sticky:c,inherit:u,taxQuery:m}=t,[d,p]=(0,Re.useState)("post"===s),{postTypesTaxonomiesMap:g,postTypesSelectOptions:h}=(()=>{const e=(0,Ye.useSelect)((e=>{var t;const{getPostTypes:n}=e(Je.store),o=["attachment"];return null===(t=n({per_page:-1}))||void 0===t?void 0:t.filter((e=>{let{viewable:t,slug:n}=e;return t&&!o.includes(n)}))}),[]);return{postTypesTaxonomiesMap:(0,Re.useMemo)((()=>{if(null!=e&&e.length)return e.reduce(((e,t)=>(e[t.slug]=t.taxonomies,e)),{})}),[e]),postTypesSelectOptions:(0,Re.useMemo)((()=>(e||[]).map((e=>{let{labels:t,slug:n}=e;return{label:t.singular_name,value:n}}))),[e])}})();(0,Re.useEffect)((()=>{p("post"===s)}),[s]);const[v,b]=(0,Re.useState)(t.search),y=(0,Re.useCallback)((0,ht.debounce)((()=>{t.search!==v&&o({search:v})}),250),[v,t.search]);return(0,Re.useEffect)((()=>(y(),y.cancel)),[v,y]),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Settings")},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Inherit query from template"),help:(0,De.__)("Toggle to use the global query context that is set with the current template, such as an archive or search. Disable to customize the settings independently."),checked:!!u,onChange:e=>o({inherit:!!e})}),!u&&(0,Re.createElement)(He.SelectControl,{options:h,value:s,label:(0,De.__)("Post type"),onChange:e=>{const t={postType:e},n=g[e],r=Object.entries(m||{}).reduce(((e,t)=>{let[o,r]=t;return n.includes(o)&&(e[o]=r),e}),{});t.taxQuery=Object.keys(r).length?r:void 0,"post"!==e&&(t.sticky=""),o(t)},help:(0,De.__)('WordPress contains different types of content and they are divided into collections called "Post types". By default there are a few different ones such as blog posts and pages, but plugins could add more.')}),"flex"===(null==n?void 0:n.type)&&(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(He.RangeControl,{label:(0,De.__)("Columns"),value:n.columns,onChange:e=>r({columns:e}),min:2,max:Math.max(6,n.columns)}),n.columns>6&&(0,Re.createElement)(He.Notice,{status:"warning",isDismissible:!1},(0,De.__)("This column count exceeds the recommended amount and may cause visual breakage."))),!u&&(0,Re.createElement)(Sg,{order:a,orderBy:l,onChange:o}),d&&(0,Re.createElement)(He.SelectControl,{label:(0,De.__)("Sticky posts"),options:zg,value:c,onChange:e=>o({sticky:e}),help:(0,De.__)('Blog posts can be "stickied", a feature that places them at the top of the front page of posts, keeping it there until new sticky posts are published.')})),!u&&(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Filters")},(0,Re.createElement)(Pg,{onChange:o,query:t}),(0,Re.createElement)(Ng,{value:i,onChange:o}),(0,Re.createElement)(He.TextControl,{label:(0,De.__)("Keyword"),value:v,onChange:b})))}var Mg=function(e){let{clientId:t,name:n,setAttributes:o,icon:r,label:a}=e;const{defaultVariation:l,scopeVariations:i}=(0,Ye.useSelect)((e=>{const{getBlockVariations:t,getBlockType:o,getDefaultBlockVariation:r}=e(Le.store);return{blockType:o(n),defaultVariation:r(n,"block"),scopeVariations:t(n,"block")}}),[n]),{replaceInnerBlocks:s}=(0,Ye.useDispatch)(Fe.store),c=(0,Fe.useBlockProps)();return(0,Re.createElement)("div",c,(0,Re.createElement)(Fe.__experimentalBlockVariationPicker,{icon:r,label:a,variations:i,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;e.attributes&&o(e.attributes),e.innerBlocks&&s(t,(0,Le.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!1)}}))};const Lg=[["core/post-template"]];function Rg(e){let{attributes:t,setAttributes:n,openPatternSelectionModal:o}=e;const{queryId:r,query:a,displayLayout:l,tagName:i="div",layout:s={}}=t,{__unstableMarkNextChangeAsNotPersistent:c}=(0,Ye.useDispatch)(Fe.store),u=(0,Rt.useInstanceId)(Rg),{themeSupportsLayout:m}=(0,Ye.useSelect)((e=>{var t;const{getSettings:n}=e(Fe.store);return{themeSupportsLayout:null===(t=n())||void 0===t?void 0:t.supportsLayout}}),[]),d=(0,Fe.useSetting)("layout")||{},p=s&&s.inherit?d:s,g=(0,Fe.useBlockProps)(),h=(0,Fe.useInnerBlocksProps)(g,{template:Lg,__experimentalLayout:m?p:void 0}),{postsPerPage:v}=(0,Ye.useSelect)((e=>{const{getSettings:t}=e(Fe.store);return{postsPerPage:+t().postsPerPage||3}}),[]);(0,Re.useEffect)((()=>{const e={};!a.perPage&&v&&(e.perPage=v),Object.keys(e).length&&(c(),b(e))}),[a.perPage]),(0,Re.useEffect)((()=>{Number.isFinite(r)||(c(),n({queryId:u}))}),[r,u]);const b=e=>n({query:{...a,...e}}),y=e=>n({displayLayout:{...l,...e}});return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Ig,{attributes:t,setQuery:b,setDisplayLayout:y}),(0,Re.createElement)(Fe.BlockControls,null,(0,Re.createElement)(Eg,{attributes:t,setQuery:b,setDisplayLayout:y,openPatternSelectionModal:o})),(0,Re.createElement)(Fe.InspectorControls,{__experimentalGroup:"advanced"},(0,Re.createElement)(He.SelectControl,{label:(0,De.__)("HTML element"),options:[{label:(0,De.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}],value:i,onChange:e=>n({tagName:e})})),(0,Re.createElement)(i,h))}function Vg(e){var t;let{attributes:n,clientId:o,name:r,openPatternSelectionModal:a,setAttributes:l}=e;const[i,s]=(0,Re.useState)(!1),c=(0,Fe.useBlockProps)(),{blockType:u,allVariations:m,hasPatterns:d}=(0,Ye.useSelect)((e=>{const{getBlockVariations:t,getBlockType:n}=e(Le.store),{getBlockRootClientId:a,__experimentalGetPatternsByBlockTypes:l}=e(Fe.store),i=a(o);return{blockType:n(r),allVariations:t(r),hasPatterns:!!l(r,i).length}}),[r,o]),p=(0,Fe.__experimentalGetMatchingVariation)(n,m),g=(null==p?void 0:p.icon)||(null==u||null===(t=u.icon)||void 0===t?void 0:t.src),h=(null==p?void 0:p.title)||(null==u?void 0:u.title);return i?(0,Re.createElement)(Mg,{clientId:o,name:r,setAttributes:l,icon:g,label:h}):(0,Re.createElement)("div",c,(0,Re.createElement)(He.Placeholder,{icon:g,label:h,instructions:(0,De.__)("Choose a pattern for the query loop or start blank.")},!!d&&(0,Re.createElement)(He.Button,{variant:"primary",onClick:a},(0,De.__)("Choose")),(0,Re.createElement)(He.Button,{variant:"secondary",onClick:()=>{s(!0)}},(0,De.__)("Start blank"))))}var Ag=e=>{const{clientId:t,name:n}=e,[o,r]=(0,Re.useState)(!1),{replaceBlock:a,selectBlock:l}=(0,Ye.useDispatch)(Fe.store),i=(0,Ye.useSelect)((e=>!!e(Fe.store).getBlocks(t).length),[t])?Rg:Vg;return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(i,je({},e,{openPatternSelectionModal:()=>r(!0)})),o&&(0,Re.createElement)(He.Modal,{className:"block-editor-query-pattern__selection-modal",title:(0,De.__)("Choose a pattern"),closeLabel:(0,De.__)("Cancel"),onRequestClose:()=>r(!1)},(0,Re.createElement)(Fe.__experimentalBlockPatternSetup,{blockName:n,clientId:t,onBlockPatternSelect:e=>{const n=e.map((e=>(0,Le.cloneBlock)(e))),o=(e=>{const t=[...e];for(;t.length>0;){var n;const e=t.shift();if("core/query"===e.name)return e.clientId;null===(n=e.innerBlocks)||void 0===n||n.forEach((e=>{t.push(e)}))}})(n);a(t,n),o&&l(o)}})))};const Hg=(0,Re.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,Re.createElement)(He.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})),Dg=(0,Re.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,Re.createElement)(He.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})),Fg=(0,Re.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,Re.createElement)(He.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})),$g=(0,Re.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,Re.createElement)(He.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})),Gg={query:{perPage:3,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!1}};var Ug=[{name:"posts-list",title:(0,De.__)("Posts List"),description:(0,De.__)("Display a list of your most recent posts, excluding sticky posts."),icon:rc,attributes:{query:{perPage:4,pages:1,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",sticky:"exclude",inherit:!1}},scope:["inserter"]},{name:"title-date",title:(0,De.__)("Title & Date"),icon:Hg,attributes:{...Gg},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-date"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,De.__)("Title & Excerpt"),icon:Dg,attributes:{...Gg},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-date-excerpt",title:(0,De.__)("Title, Date, & Excerpt"),icon:Fg,attributes:{...Gg},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-date"],["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,De.__)("Image, Date, & Title"),icon:$g,attributes:{...Gg},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],["core/post-date"],["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}];const Og=e=>{var t,n;const{query:o}=e,r={...(0,ht.omit)(o,["categoryIds","tagIds"])};var a,l;(null!==(t=o.categoryIds)&&void 0!==t&&t.length||null!==(n=o.tagIds)&&void 0!==n&&n.length)&&(r.taxQuery={category:null!==(a=o.categoryIds)&&void 0!==a&&a.length?o.categoryIds:void 0,post_tag:null!==(l=o.tagIds)&&void 0!==l&&l.length?o.tagIds:void 0});return{...e,query:r}},qg=[{attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},__experimentalLayout:!0},isEligible:e=>{let{query:{categoryIds:t,tagIds:n}={}}=e;return t||n},migrate:Og,save(e){let{attributes:{tagName:t="div"}}=e;const n=Fe.useBlockProps.save(),o=Fe.useInnerBlocksProps.save(n);return(0,Re.createElement)(t,o)}},{attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},layout:{type:"object",default:{type:"list"}}},supports:{html:!1},migrate(e){const t=Og(e);return{...(0,ht.omit)(t,["layout"]),displayLayout:t.layout}},save:()=>(0,Re.createElement)(Fe.InnerBlocks.Content,null)}];var Wg=qg;const jg=e=>{let{attributes:{query:{postType:t}={}}={}}=e;if(!t)return null;const n=(0,Ke.addQueryArgs)("post-new.php",{post_type:t});return(0,Re.createElement)("div",{className:"wp-block-query__create-new-link"},(0,Re.createInterpolateElement)((0,De.__)("<a>Create a new post</a> for this feed."),{a:(0,Re.createElement)("a",{href:n})}))};var Zg=(0,Rt.createHigherOrderComponent)((e=>t=>{const{name:n,isSelected:o}=t;return"core/query"===n&&o?(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(jg,t)),(0,Re.createElement)(e,je({key:"edit"},t))):(0,Re.createElement)(e,je({key:"edit"},t))}),"withInspectorControls");const Qg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/query",title:"Query Loop",category:"theme",description:"An advanced block that allows displaying post types based on different query parameters and visual configurations.",textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}}},providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout"},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalLayout:!0},editorStyle:"wp-block-query-editor"},{name:Kg}=Qg,Jg={icon:wg,edit:Ag,save:function(e){let{attributes:{tagName:t="div"}}=e;const n=Fe.useBlockProps.save(),o=Fe.useInnerBlocksProps.save(n);return(0,Re.createElement)(t,o)},variations:Ug,deprecated:Wg};(0,Vi.addFilter)("editor.BlockEdit","core/query",Zg);const Yg=[["core/paragraph",{placeholder:(0,De.__)("Add a text or blocks that will display when the query returns no results.")}]];const Xg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/query-no-results",title:"No results",category:"theme",description:"Contains the block elements used to render content when no query results are found.",parent:["core/query"],textdomain:"default",usesContext:["queryId","query"],supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0}}},{name:eh}=Xg,th={icon:wg,edit:function(){const e=(0,Fe.useBlockProps)(),t=(0,Fe.useInnerBlocksProps)(e,{template:Yg});return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)("div",t))},save:function(){return(0,Re.createElement)(Fe.InnerBlocks.Content,null)}};function nh(e){let{value:t,onChange:n}=e;return(0,Re.createElement)(He.__experimentalToggleGroupControl,{label:(0,De.__)("Arrow"),value:t,onChange:n,help:(0,De.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0},(0,Re.createElement)(He.__experimentalToggleGroupControlOption,{value:"none",label:(0,De._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,Re.createElement)(He.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,De._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,Re.createElement)(He.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,De._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")}))}const oh=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]];var rh=[{save:()=>(0,Re.createElement)("div",Fe.useBlockProps.save(),(0,Re.createElement)(Fe.InnerBlocks.Content,null))}];const ah={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/query-pagination",title:"Pagination",category:"theme",parent:["core/query"],description:"Displays a paginated navigation to next/previous set of posts, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"}},usesContext:["queryId","query"],providesContext:{paginationArrow:"paginationArrow"},supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-query-pagination-editor",style:"wp-block-query-pagination"},{name:lh}=ah,ih={icon:ir,edit:function(e){let{attributes:{paginationArrow:t,layout:n},setAttributes:o,clientId:r,name:a}=e;const l=n||(e=>{const t=(0,Le.getBlockSupport)(e,"__experimentalLayout");return null==t?void 0:t.default})(a),i=(0,Ye.useSelect)((e=>{const{getBlocks:t}=e(Fe.store),n=t(r);return null==n?void 0:n.find((e=>["core/query-pagination-next","core/query-pagination-previous"].includes(e.name)))}),[]),s=(0,Fe.useBlockProps)(),c=(0,Fe.useInnerBlocksProps)(s,{template:oh,allowedBlocks:["core/query-pagination-previous","core/query-pagination-numbers","core/query-pagination-next"],__experimentalLayout:l});return(0,Re.createElement)(Re.Fragment,null,i&&(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Settings")},(0,Re.createElement)(nh,{value:t,onChange:e=>{o({paginationArrow:e})}}))),(0,Re.createElement)("nav",c))},save:function(){return(0,Re.createElement)(Fe.InnerBlocks.Content,null)},deprecated:rh},sh={none:"",arrow:"",chevron:"»"};const ch={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/query-pagination-next",title:"Next Page",category:"theme",parent:["core/query-pagination"],description:"Displays the next posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:uh}=ch,mh={icon:pr,edit:function(e){let{attributes:{label:t},setAttributes:n,context:{paginationArrow:o}}=e;const r=sh[o];return(0,Re.createElement)("a",je({href:"#pagination-next-pseudo-link",onClick:e=>e.preventDefault()},(0,Fe.useBlockProps)()),(0,Re.createElement)(Fe.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,De.__)("Next page link"),placeholder:(0,De.__)("Next Page"),value:t,onChange:e=>n({label:e})}),r&&(0,Re.createElement)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${o}`},r))}},dh=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"a",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(0,Re.createElement)(t,{className:`page-numbers ${n}`},e)};const ph={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/query-pagination-numbers",title:"Page Numbers",category:"theme",parent:["core/query-pagination"],description:"Displays a list of page numbers for pagination",textdomain:"default",usesContext:["queryId","query"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"query-pagination-numbers-editor"},{name:gh}=ph,hh={icon:yr,edit:function(){const e=(0,Re.createElement)(Re.Fragment,null,dh(1),dh(2),dh(3,"span","current"),dh(4),dh(5),dh("...","span","dots"),dh(8));return(0,Re.createElement)("div",(0,Fe.useBlockProps)(),e)}},vh={none:"",arrow:"",chevron:"«"};const bh={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/query-pagination-previous",title:"Previous Page",category:"theme",parent:["core/query-pagination"],description:"Displays the previous posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:yh}=bh,fh={icon:Ko,edit:function(e){let{attributes:{label:t},setAttributes:n,context:{paginationArrow:o}}=e;const r=vh[o];return(0,Re.createElement)("a",je({href:"#pagination-previous-pseudo-link",onClick:e=>e.preventDefault()},(0,Fe.useBlockProps)()),r&&(0,Re.createElement)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${o}`},r),(0,Re.createElement)(Fe.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,De.__)("Previous page link"),placeholder:(0,De.__)("Previous Page"),value:t,onChange:e=>n({label:e})}))}},_h=["archive"];var kh=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM20 16H4v-1.5h16V16Zm-7 4H4v-1.5h9V20Z"}));const wh=[{isDefault:!0,name:"archive-title",title:(0,De.__)("Archive Title"),description:(0,De.__)("Display the archive title based on the queried object."),icon:kh,attributes:{type:"archive"},scope:["inserter"]}];wh.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));var xh=wh;var Eh=[{attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0}},save:()=>null,migrate:Ht,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];var Ch=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm1.3-2.9c.6.3 1.3.5 2 .5.8 0 1.4-.2 2-.5.1 0 .1-.1.2-.2l.8.7.9-1-.8-.7.3-.3a5.09 5.09 0 0 0 0-4.4c-.2-.6-.7-1-1.3-1.4-.6-.3-1.3-.5-2-.5-.8 0-1.4.2-2 .5-.7.4-1.1.8-1.5 1.5-.3.6-.5 1.3-.5 2.2 0 .8.2 1.6.5 2.2.4.6.8 1.1 1.4 1.4zm-.1-5c.2-.4.5-.7.8-1s.8-.4 1.3-.4 1 .1 1.3.4.6.6.8 1c.3.4.4.8.4 1.4 0 .5-.1 1-.3 1.4v.1l-1-.9-.9 1 .9.9c-.3.2-.7.3-1.2.3s-1-.1-1.3-.4c-.4-.2-.6-.6-.8-1C5 9 4.9 8.5 4.9 8c0-.6.1-1 .3-1.4z"}));const Sh={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/query-title",title:"Query Title",category:"theme",description:"Display the query title.",textdomain:"default",attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}}},editorStyle:"wp-block-query-title-editor"},{name:Bh}=Sh,Th={icon:Ch,edit:function(e){let{attributes:{type:t,level:n,textAlign:o},setAttributes:r}=e;const a=`h${n}`,l=(0,Fe.useBlockProps)({className:Qe()({[`has-text-align-${o}`]:o,"wp-block-query-title__placeholder":"archive"===t})});if(!_h.includes(t))return(0,Re.createElement)("div",l,(0,Re.createElement)(Fe.Warning,null,(0,De.__)("Provided type is not supported.")));let i;return"archive"===t&&(i=(0,Re.createElement)(a,l,(0,De.__)("Archive title"))),(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(gs,{selectedLevel:n,onChange:e=>r({level:e})}),(0,Re.createElement)(Fe.AlignmentControl,{value:o,onChange:e=>{r({textAlign:e})}})),i)},variations:xh,deprecated:Eh};var Nh=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"}));const Ph={value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},zh=[{attributes:Ph,save(e){let{attributes:t}=e;const{align:n,value:o,citation:r}=t;return(0,Re.createElement)("blockquote",{style:{textAlign:n||null}},(0,Re.createElement)(Fe.RichText.Content,{multiline:!0,value:o}),!Fe.RichText.isEmpty(r)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"cite",value:r}))}},{attributes:{...Ph,style:{type:"number",default:1}},migrate:e=>2===e.style?{...(0,ht.omit)(e,["style"]),className:e.className?e.className+" is-style-large":"is-style-large"}:e,save(e){let{attributes:t}=e;const{align:n,value:o,citation:r,style:a}=t;return(0,Re.createElement)("blockquote",{className:2===a?"is-large":"",style:{textAlign:n||null}},(0,Re.createElement)(Fe.RichText.Content,{multiline:!0,value:o}),!Fe.RichText.isEmpty(r)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"cite",value:r}))}},{attributes:{...Ph,citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}},migrate:e=>isNaN(parseInt(e.style))?e:{...(0,ht.omit)(e,["style"])},save(e){let{attributes:t}=e;const{align:n,value:o,citation:r,style:a}=t;return(0,Re.createElement)("blockquote",{className:`blocks-quote-style-${a}`,style:{textAlign:n||null}},(0,Re.createElement)(Fe.RichText.Content,{multiline:!0,value:o}),!Fe.RichText.isEmpty(r)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"footer",value:r}))}}];var Ih=zh;const Mh="web"===Re.Platform.OS;const Lh={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,Le.createBlock)("core/quote",{value:(0,an.toHTMLString)({value:(0,an.join)(e.map((e=>{let{content:t}=e;return(0,an.create)({html:t})})),"\u2028"),multilineTag:"p"}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:e=>{let{content:t,anchor:n}=e;return(0,Le.createBlock)("core/quote",{value:`<p>${t}</p>`,anchor:n})}},{type:"block",blocks:["core/pullquote"],transform:e=>{let{value:t,citation:n,anchor:o}=e;return(0,Le.createBlock)("core/quote",{value:t,citation:n,anchor:o})}},{type:"prefix",prefix:">",transform:e=>(0,Le.createBlock)("core/quote",{value:`<p>${e}</p>`})},{type:"raw",isMatch:e=>{const t=(()=>{let e=!1;return t=>"P"===t.nodeName||(e||"CITE"!==t.nodeName?void 0:(e=!0,!0))})();return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(t)},schema:e=>{let{phrasingContentSchema:t}=e;return{blockquote:{children:{p:{children:t},cite:{children:t}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{value:t,citation:n}=e;const o=[];return t&&"<p></p>"!==t&&o.push(...(0,an.split)((0,an.create)({html:t,multilineTag:"p"}),"\u2028").map((e=>(0,Le.createBlock)("core/paragraph",{content:(0,an.toHTMLString)({value:e})})))),n&&"<p></p>"!==n&&o.push((0,Le.createBlock)("core/paragraph",{content:n})),0===o.length?(0,Le.createBlock)("core/paragraph",{content:""}):o}},{type:"block",blocks:["core/heading"],transform:e=>{let{value:t,citation:n,...o}=e;if("<p></p>"===t)return(0,Le.createBlock)("core/heading",{content:n});const r=(0,an.split)((0,an.create)({html:t,multilineTag:"p"}),"\u2028"),a=(0,Le.createBlock)("core/heading",{content:(0,an.toHTMLString)({value:r[0]})});if(!n&&1===r.length)return a;const l=r.slice(1);return[a,(0,Le.createBlock)("core/quote",{...o,citation:n,value:(0,an.toHTMLString)({value:l.length?(0,an.join)(r.slice(1),"\u2028"):(0,an.create)(),multilineTag:"p"})})]}},{type:"block",blocks:["core/pullquote"],transform:e=>{let{value:t,citation:n,anchor:o}=e;return(0,Le.createBlock)("core/pullquote",{value:t,citation:n,anchor:o})}}]};var Rh=Lh;const Vh=e=>{const{value:t}=e;return[{...(0,ht.omit)(e,["value"])},t?(0,Le.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map((e=>{let{content:t}=e;return(0,Le.createBlock)("core/paragraph",{content:t})})):(0,Le.createBlock)("core/paragraph")]},Ah={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},align:{type:"string"}},supports:{anchor:!0,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}}},save(e){let{attributes:t}=e;const{align:n,value:o,citation:r}=t,a=Qe()({[`has-text-align-${n}`]:n});return(0,Re.createElement)("blockquote",Fe.useBlockProps.save({className:a}),(0,Re.createElement)(Fe.RichText.Content,{multiline:!0,value:o}),!Fe.RichText.isEmpty(r)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"cite",value:r}))},migrate:Vh};var Hh=[Ah,...Ih];const Dh="web"===Re.Platform.OS,Fh=[["core/paragraph",{}]];var $h={from:[{type:"block",blocks:["core/pullquote"],transform:e=>{let{value:t,citation:n,anchor:o,fontSize:r,style:a}=e;return(0,Le.createBlock)("core/quote",{citation:n,anchor:o,fontSize:r,style:a},(0,Le.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map((e=>{let{content:t}=e;return(0,Le.createBlock)("core/paragraph",{content:t})})))}},{type:"block",blocks:["core/group"],transform:(e,t)=>{let{anchor:n}=e;return(0,Le.createBlock)("core/quote",{anchor:n},t)}},{type:"prefix",prefix:">",transform:e=>(0,Le.createBlock)("core/quote",{},[(0,Le.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:e=>(0,Le.createBlock)("core/quote",{},(0,Le.rawHandler)({HTML:e.innerHTML,mode:"BLOCKS"}))},{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:(e,t)=>{let{}=e;return!t.some((e=>{let{name:t}=e;return"core/quote"===t}))},__experimentalConvert:e=>(0,Le.createBlock)("core/quote",{},e.map((e=>(0,Le.createBlock)(e.name,e.attributes,e.innerBlocks))))}],to:[{type:"block",blocks:["core/pullquote"],isMatch:(e,t)=>{let{}=e;return t.innerBlocks.every((e=>{let{name:t}=e;return"core/paragraph"===t}))},transform:(e,t)=>{let{citation:n,anchor:o,fontSize:r,style:a}=e;return(0,Le.createBlock)("core/pullquote",{value:(0,Le.serialize)(t),citation:n,anchor:o,fontSize:r,style:a})}},{type:"block",blocks:["core/group"],transform:(e,t)=>{let{citation:n,anchor:o}=e;return(0,Le.createBlock)("core/group",{anchor:o},n?[...t,(0,Le.createBlock)("core/paragraph",{content:n})]:t)}},{type:"block",blocks:["*"],transform:(e,t)=>{let{citation:n}=e;return n?[...t,(0,Le.createBlock)("core/paragraph",{content:n})]:t}}]};const Gh={icon:Nh,example:{attributes:{citation:"Julio Cortázar"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,De.__)("In quoting others, we cite ourselves.")}}]},transforms:$h,edit:function(e){let{attributes:t,setAttributes:n,isSelected:o,insertBlocksAfter:r,clientId:a,className:l}=e;const{citation:i,align:s}=t;((e,t)=>{const n=(0,Ye.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:r}=(0,Ye.useDispatch)(Fe.store);(0,Re.useEffect)((()=>{if(!e.value)return;const[a,l]=Vh(e);Nc()("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),n.batch((()=>{o(t,a),r(t,l)}))}),[e.value])})(t,a);const c=(0,Ye.useSelect)((e=>e(Fe.store).hasSelectedInnerBlock(a))),u=o||c,m=(0,Fe.useBlockProps)({className:Qe()(l,{[`has-text-align-${s}`]:s})}),d=(0,Fe.useInnerBlocksProps)(m,{template:Fh,templateInsertUpdatesSelection:!0});return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(Fe.AlignmentControl,{value:s,onChange:e=>{n({align:e})}})),(0,Re.createElement)(He.BlockQuotation,d,d.children,(!Fe.RichText.isEmpty(i)||u)&&(0,Re.createElement)(Fe.RichText,{identifier:"citation",tagName:Dh?"cite":void 0,style:{display:"block"},value:i,onChange:e=>{n({citation:e})},__unstableMobileNoFocusOnMount:!0,"aria-label":(0,De.__)("Quote citation"),placeholder:(0,De.__)("Add citation"),className:"wp-block-quote__citation",__unstableOnSplitAtEnd:()=>r((0,Le.createBlock)("core/paragraph"))})))},save:function(e){let{attributes:t}=e;const{align:n,citation:o}=t,r=Fe.useBlockProps.save({className:Qe()({[`has-text-align-${n}`]:n})});return(0,Re.createElement)("blockquote",r,(0,Re.createElement)(Fe.InnerBlocks.Content,null),!Fe.RichText.isEmpty(o)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"cite",value:o}))},deprecated:Hh};var Uh,Oh=Gh;const qh={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/quote",title:"Quote",category:"text",description:'Give quoted text visual emphasis. "In quoting others, we cite ourselves." Julio Cortázar',keywords:["blockquote","cite"],textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},align:{type:"string"}},supports:{anchor:!0,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"plain",label:"Plain"}],editorStyle:"wp-block-quote-editor",style:"wp-block-quote"},{name:Wh}=qh,jh={icon:Nh,example:{attributes:{value:"<p>"+(0,De.__)("In quoting others, we cite ourselves.")+"</p>",citation:"Julio Cortázar"}},transforms:Rh,edit:function(e){let{attributes:t,setAttributes:n,isSelected:o,mergeBlocks:r,onReplace:a,className:l,insertBlocksAfter:i,style:s}=e;const{align:c,value:u,citation:m}=t,d=(0,Fe.useBlockProps)({className:Qe()(l,{[`has-text-align-${c}`]:c}),style:s});return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(Fe.AlignmentControl,{value:c,onChange:e=>{n({align:e})}})),(0,Re.createElement)(He.BlockQuotation,d,(0,Re.createElement)(Fe.RichText,{identifier:"value",multiline:!0,value:u,onChange:e=>n({value:e}),onMerge:r,onRemove:e=>{const t=!m||0===m.length;!e&&t&&a([])},"aria-label":(0,De.__)("Quote text"),placeholder:(0,De.__)("Add quote"),onReplace:a,onSplit:e=>(0,Le.createBlock)("core/quote",{...t,value:e}),__unstableOnSplitMiddle:()=>(0,Le.createBlock)("core/paragraph"),textAlign:c}),(!Fe.RichText.isEmpty(m)||o)&&(0,Re.createElement)(Fe.RichText,{identifier:"citation",tagName:Mh?"cite":void 0,style:{display:"block"},value:m,onChange:e=>n({citation:e}),__unstableMobileNoFocusOnMount:!0,"aria-label":(0,De.__)("Quote citation text"),placeholder:(0,De.__)("Add citation"),className:"wp-block-quote__citation",textAlign:c,__unstableOnSplitAtEnd:()=>i((0,Le.createBlock)("core/paragraph"))})))},save:function(e){let{attributes:t}=e;const{align:n,value:o,citation:r}=t,a=Qe()({[`has-text-align-${n}`]:n});return(0,Re.createElement)("blockquote",Fe.useBlockProps.save({className:a}),(0,Re.createElement)(Fe.RichText.Content,{multiline:!0,value:o}),!Fe.RichText.isEmpty(r)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"cite",value:r}))},merge(e,t){let{value:n,citation:o}=t;return o||(o=e.citation),n&&"<p></p>"!==n?{...e,value:e.value+n,citation:o}:{...e,citation:o}},deprecated:Ih},Zh=null!==(Uh=window)&&void 0!==Uh&&Uh.__experimentalEnableQuoteBlockV2?Oh:jh;var Qh=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})),Kh=window.wp.reusableBlocks;var Jh=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"}));const Yh={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/block",title:"Reusable block",category:"reusable",description:"Create and save content to reuse across your site. Update the block, and the changes apply everywhere its used.",textdomain:"default",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1},editorStyle:"wp-block-editor"},{name:Xh}=Yh,ev={edit:function(e){let{attributes:{ref:t},clientId:n}=e;const[o,r]=(0,Fe.__experimentalUseNoRecursiveRenders)(t),{record:a,hasResolved:l}=(0,Je.__experimentalUseEntityRecord)("postType","wp_block",t),i=l&&!a,s=(0,Ye.useSelect)((e=>e(Fe.store).canRemoveBlock(n)),[n]),{__experimentalConvertBlockToStatic:c}=(0,Ye.useDispatch)(Kh.store),[u,m,d]=(0,Je.useEntityBlockEditor)("postType","wp_block",{id:t}),[p,g]=(0,Je.useEntityProp)("postType","wp_block","title",t),h=(0,Fe.useBlockProps)(),v=(0,Fe.useInnerBlocksProps)({},{value:u,onInput:m,onChange:d,renderAppender:null!=u&&u.length?void 0:Fe.InnerBlocks.ButtonBlockAppender});return o?(0,Re.createElement)("div",h,(0,Re.createElement)(Fe.Warning,null,(0,De.__)("Block cannot be rendered inside itself."))):i?(0,Re.createElement)("div",h,(0,Re.createElement)(Fe.Warning,null,(0,De.__)("Block has been deleted or is unavailable."))):l?(0,Re.createElement)(r,null,(0,Re.createElement)("div",h,s&&(0,Re.createElement)(Fe.BlockControls,null,(0,Re.createElement)(He.ToolbarGroup,null,(0,Re.createElement)(He.ToolbarButton,{onClick:()=>c(n),label:(0,De.__)("Convert to regular blocks"),icon:Jh,showTooltip:!0}))),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,null,(0,Re.createElement)(He.TextControl,{label:(0,De.__)("Name"),value:p,onChange:g}))),(0,Re.createElement)(Fe.__experimentalBlockContentOverlay,{clientId:n,wrapperProps:v,className:"block-library-block__reusable-block-container"}))):(0,Re.createElement)("div",h,(0,Re.createElement)(He.Placeholder,null,(0,Re.createElement)(He.Spinner,null)))},icon:Qh};const tv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/read-more",title:"Read More",category:"theme",description:"Displays the link of a post, page, or any other content-type.",textdomain:"default",attributes:{content:{type:"string"},linkTarget:{type:"string",default:"_self"}},usesContext:["postId"],supports:{html:!1,color:{gradients:!0,text:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,textDecoration:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalDefaultControls:{width:!0}}},style:"wp-block-read-more"},{name:nv}=tv,ov={icon:jt,edit:function(e){let{attributes:{content:t,linkTarget:n},setAttributes:o,insertBlocksAfter:r}=e;const a=(0,Fe.useBlockProps)();return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Link settings")},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Open in new tab"),onChange:e=>o({linkTarget:e?"_blank":"_self"}),checked:"_blank"===n}))),(0,Re.createElement)(Fe.RichText,je({tagName:"a","aria-label":(0,De.__)('"Read more" link text'),placeholder:(0,De.__)("Read more"),value:t,onChange:e=>o({content:e}),__unstableOnSplitAtEnd:()=>r((0,Le.createBlock)((0,Le.getDefaultBlockName)())),withoutInteractiveFormatting:!0},a)))}};var rv=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));const av={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/rss",title:"RSS",category:"widgets",description:"Display entries from any RSS or Atom feed.",keywords:["atom","feed"],textdomain:"default",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},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"},{name:lv}=av,iv={icon:rv,example:{attributes:{feedURL:"https://wordpress.org"}},edit:function(e){let{attributes:t,setAttributes:n}=e;const[o,r]=(0,Re.useState)(!t.feedURL),{blockLayout:a,columns:l,displayAuthor:i,displayDate:s,displayExcerpt:c,excerptLength:u,feedURL:m,itemsToShow:d}=t;function p(e){return()=>{const o=t[e];n({[e]:!o})}}const g=(0,Fe.useBlockProps)();if(o)return(0,Re.createElement)("div",g,(0,Re.createElement)(He.Placeholder,{icon:rv,label:"RSS"},(0,Re.createElement)("form",{onSubmit:function(e){e.preventDefault(),m&&(n({feedURL:(0,Ke.prependHTTP)(m)}),r(!1))},className:"wp-block-rss__placeholder-form"},(0,Re.createElement)(He.TextControl,{placeholder:(0,De.__)("Enter URL here"),value:m,onChange:e=>n({feedURL:e}),className:"wp-block-rss__placeholder-input"}),(0,Re.createElement)(He.Button,{variant:"primary",type:"submit"},(0,De.__)("Use URL")))));const h=[{icon:Ra,title:(0,De.__)("Edit RSS URL"),onClick:()=>r(!0)},{icon:ic,title:(0,De.__)("List view"),onClick:()=>n({blockLayout:"list"}),isActive:"list"===a},{icon:sc,title:(0,De.__)("Grid view"),onClick:()=>n({blockLayout:"grid"}),isActive:"grid"===a}];return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,null,(0,Re.createElement)(He.ToolbarGroup,{controls:h})),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("RSS settings")},(0,Re.createElement)(He.RangeControl,{label:(0,De.__)("Number of items"),value:d,onChange:e=>n({itemsToShow:e}),min:1,max:20,required:!0}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Display author"),checked:i,onChange:p("displayAuthor")}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Display date"),checked:s,onChange:p("displayDate")}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Display excerpt"),checked:c,onChange:p("displayExcerpt")}),c&&(0,Re.createElement)(He.RangeControl,{label:(0,De.__)("Max number of words in excerpt"),value:u,onChange:e=>n({excerptLength:e}),min:10,max:100,required:!0}),"grid"===a&&(0,Re.createElement)(He.RangeControl,{label:(0,De.__)("Columns"),value:l,onChange:e=>n({columns:e}),min:2,max:6,required:!0}))),(0,Re.createElement)("div",g,(0,Re.createElement)(He.Disabled,null,(0,Re.createElement)(Ge(),{block:"core/rss",attributes:t}))))}};var sv=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));const cv=(0,Re.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(He.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),uv=(0,Re.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(He.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,Re.createElement)(He.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),mv=(0,Re.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(He.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,Re.createElement)(He.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),dv=(0,Re.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.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",strokeWidth:"1.5"})),pv=(0,Re.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(He.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),(0,Re.createElement)(He.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),gv=(0,Re.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.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",strokeWidth:"1.5"}),(0,Re.createElement)(He.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"}));var hv=[{name:"default",isDefault:!0,attributes:{buttonText:(0,De.__)("Search"),label:(0,De.__)("Search")}}];const vv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/search",title:"Search",category:"widgets",description:"Help visitors find your content.",keywords:["find"],textdomain:"default",attributes:{label:{type:"string",__experimentalRole:"content"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:"",__experimentalRole:"content"},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string",__experimentalRole:"content"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1}},supports:{align:["left","center","right"],color:{gradients:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},html:!1},editorStyle:"wp-block-search-editor",style:"wp-block-search"},{name:bv}=vv,yv={icon:sv,example:{},variations:hv,edit:function(e){var t,n,o;let{className:r,attributes:a,setAttributes:l,toggleSelection:i,isSelected:s,clientId:c}=e;const{label:u,showLabel:m,placeholder:d,width:p,widthUnit:g,align:h,buttonText:v,buttonPosition:b,buttonUseIcon:y,style:f}=a,_=(0,Ye.useSelect)((e=>{var t;const{getBlockParentsByBlockName:n,wasBlockJustInserted:o}=e(Fe.store);return!(null===(t=n(c,"core/navigation"))||void 0===t||!t.length)&&o(c)}),[c]),{__unstableMarkNextChangeAsNotPersistent:k}=(0,Ye.useDispatch)(Fe.store);(0,Re.useEffect)((()=>{_&&(k(),l({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))}),[_]);const w=null==f||null===(t=f.border)||void 0===t?void 0:t.radius,x=null==f||null===(n=f.border)||void 0===n?void 0:n.color,E=null==f||null===(o=f.border)||void 0===o?void 0:o.width,C=(0,Fe.__experimentalUseBorderProps)(a);"number"==typeof w&&(C.style.borderRadius=`${w}px`);const S=(0,Fe.__experimentalUseColorProps)(a),B=`wp-block-search__width-${(0,Rt.useInstanceId)(He.__experimentalUnitControl)}`,T="button-inside"===b,N="button-outside"===b,P="no-button"===b,z="button-only"===b,I=(0,He.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":50,px:350}}),M=[{role:"menuitemradio",title:(0,De.__)("Button outside"),isActive:"button-outside"===b,icon:uv,onClick:()=>{l({buttonPosition:"button-outside"})}},{role:"menuitemradio",title:(0,De.__)("Button inside"),isActive:"button-inside"===b,icon:mv,onClick:()=>{l({buttonPosition:"button-inside"})}},{role:"menuitemradio",title:(0,De.__)("No button"),isActive:"no-button"===b,icon:dv,onClick:()=>{l({buttonPosition:"no-button"})}}],L=()=>{const e=Qe()("wp-block-search__input",T?void 0:C.className),t=T?{borderRadius:w}:C.style;return(0,Re.createElement)("input",{className:e,style:t,"aria-label":(0,De.__)("Optional placeholder text"),placeholder:d?void 0:(0,De.__)("Optional placeholder"),value:d,onChange:e=>l({placeholder:e.target.value})})},R=()=>{const e=Qe()("wp-block-search__button",S.className,T?void 0:C.className,y?"has-icon":void 0),t={...S.style,...T?{borderRadius:w}:C.style};return(0,Re.createElement)(Re.Fragment,null,y&&(0,Re.createElement)("button",{type:"button",className:e,style:t,"aria-label":v?(0,Cu.__unstableStripHTML)(v):(0,De.__)("Search")},(0,Re.createElement)($u,{icon:sv})),!y&&(0,Re.createElement)(Fe.RichText,{className:e,style:t,"aria-label":(0,De.__)("Button text"),placeholder:(0,De.__)("Add button text"),withoutInteractiveFormatting:!0,value:v,onChange:e=>l({buttonText:e})}))},V=(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,null,(0,Re.createElement)(He.ToolbarGroup,null,(0,Re.createElement)(He.ToolbarButton,{title:(0,De.__)("Toggle search label"),icon:gv,onClick:()=>{l({showLabel:!m})},className:m?"is-pressed":void 0}),(0,Re.createElement)(He.ToolbarDropdownMenu,{icon:(()=>{switch(b){case"button-inside":return mv;case"button-outside":return uv;case"no-button":return dv;case"button-only":return cv}})(),label:(0,De.__)("Change button position"),controls:M}),!P&&(0,Re.createElement)(He.ToolbarButton,{title:(0,De.__)("Use button with icon"),icon:pv,onClick:()=>{l({buttonUseIcon:!y})},className:y?"is-pressed":void 0}))),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Display Settings")},(0,Re.createElement)(He.BaseControl,{label:(0,De.__)("Width"),id:B},(0,Re.createElement)(He.__experimentalUnitControl,{id:B,min:"220px",onChange:e=>{const t="%"===g&&parseInt(e,10)>100?100:e;l({width:parseInt(t,10)})},onUnitChange:e=>{l({width:"%"===e?50:350,widthUnit:e})},style:{maxWidth:80},value:`${p}${g}`,units:I}),(0,Re.createElement)(He.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":(0,De.__)("Percentage Width")},[25,50,75,100].map((e=>(0,Re.createElement)(He.Button,{key:e,isSmall:!0,variant:`${e}%`==`${p}${g}`?0:void 0,onClick:()=>l({width:e,widthUnit:"%"})},e,"%")))))))),A=e=>e?`calc(${e} + 4px)`:void 0,H=(0,Fe.useBlockProps)({className:Qe()(r,T?"wp-block-search__button-inside":void 0,N?"wp-block-search__button-outside":void 0,P?"wp-block-search__no-button":void 0,z?"wp-block-search__button-only":void 0,y||P?void 0:"wp-block-search__text-button",y&&!P?"wp-block-search__icon-button":void 0)});return(0,Re.createElement)("div",H,V,m&&(0,Re.createElement)(Fe.RichText,{className:"wp-block-search__label","aria-label":(0,De.__)("Label text"),placeholder:(0,De.__)("Add label"),withoutInteractiveFormatting:!0,value:u,onChange:e=>l({label:e})}),(0,Re.createElement)(He.ResizableBox,{size:{width:`${p}${g}`},className:Qe()("wp-block-search__inside-wrapper",T?C.className:void 0),style:(()=>{const e={borderColor:x,borderWidth:T?E:void 0},t=void 0!==w&&0!==parseInt(w,10);if(T&&t){if("object"==typeof w){const{topLeft:t,topRight:n,bottomLeft:o,bottomRight:r}=w;return{borderTopLeftRadius:A(t),borderTopRightRadius:A(n),borderBottomLeftRadius:A(o),borderBottomRightRadius:A(r),...e}}const t=Number.isInteger(w)?`${w}px`:w;e.borderRadius=`calc(${t} + 4px)`}return e})(),minWidth:220,enable:z?{}:{right:"right"!==h,left:"right"===h},onResizeStart:(e,t,n)=>{l({width:parseInt(n.offsetWidth,10),widthUnit:"px"}),i(!1)},onResizeStop:(e,t,n,o)=>{l({width:parseInt(p+o.width,10)}),i(!0)},showHandle:s},(T||N)&&(0,Re.createElement)(Re.Fragment,null,L(),R()),z&&R(),P&&L()))}};var fv=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.Path,{d:"M20.2 7v4H3.8V7H2.2v9h1.6v-3.5h16.4V16h1.6V7z"}));var _v={from:[{type:"enter",regExp:/^-{3,}$/,transform:()=>(0,Le.createBlock)("core/separator")},{type:"raw",selector:"hr",schema:{hr:{}}}]};const kv={attributes:{color:{type:"string"},customColor:{type:"string"}},save(e){let{attributes:t}=e;const{color:n,customColor:o}=t,r=(0,Fe.getColorClassName)("background-color",n),a=(0,Fe.getColorClassName)("color",n),l=Qe()({"has-text-color has-background":n||o,[r]:r,[a]:a}),i={backgroundColor:r?void 0:o,color:a?void 0:o};return(0,Re.createElement)("hr",Fe.useBlockProps.save({className:l,style:i}))},migrate(e){const{color:t,customColor:n}=e;return{...(0,ht.omit)(e,["color","customColor"]),backgroundColor:t||void 0,opacity:"css",style:n?{color:{background:n}}:void 0}}};var wv=[kv];const xv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/separator",title:"Separator",category:"design",description:"Create a break between ideas or sections with a horizontal separator.",keywords:["horizontal-line","hr","divider"],textdomain:"default",attributes:{opacity:{type:"string",default:"alpha-channel"}},supports:{anchor:!0,align:["center","wide","full"],color:{__experimentalSkipSerialization:!0,gradients:!0,background:!0,text:!1,__experimentalDefaultControls:{background:!0}}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"wide",label:"Wide Line"},{name:"dots",label:"Dots"}],editorStyle:"wp-block-separator-editor",style:"wp-block-separator"},{name:Ev}=xv,Cv={icon:fv,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:_v,edit:function(e){var t,n;let{attributes:o,setAttributes:r}=e;const{backgroundColor:a,opacity:l,style:i}=o,s=(0,Fe.__experimentalUseColorProps)(o),c=null==s||null===(t=s.style)||void 0===t?void 0:t.backgroundColor,u=!(null==i||null===(n=i.color)||void 0===n||!n.background);!function(e,t,n){const[o,r]=(0,Re.useState)(!1),a=(0,Rt.usePrevious)(t);(0,Re.useEffect)((()=>{"css"!==e||t||a||r(!0)}),[t,a,e]),(0,Re.useEffect)((()=>{"css"===e&&(o&&t||a&&t!==a)&&(n({opacity:"alpha-channel"}),r(!1))}),[o,t,a])}(l,c,r);const m=(0,Fe.getColorClassName)("color",a),d=Qe()({"has-text-color":a||c,[m]:m,"has-css-opacity":"css"===l,"has-alpha-channel-opacity":"alpha-channel"===l},s.classname),p={color:c,backgroundColor:c};return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(He.HorizontalRule,(0,Fe.useBlockProps)({className:d,style:u?p:void 0})))},save:function(e){var t,n;let{attributes:o}=e;const{backgroundColor:r,style:a,opacity:l}=o,i=null==a||null===(t=a.color)||void 0===t?void 0:t.background,s=(0,Fe.__experimentalGetColorClassesAndStyles)(o),c=(0,Fe.getColorClassName)("color",r),u=Qe()({"has-text-color":r||i,[c]:c,"has-css-opacity":"css"===l,"has-alpha-channel-opacity":"alpha-channel"===l},s.className),m={backgroundColor:null==s||null===(n=s.style)||void 0===n?void 0:n.backgroundColor,color:c?void 0:i};return(0,Re.createElement)("hr",Fe.useBlockProps.save({className:u,style:m}))},deprecated:wv};var Sv=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"}));var Bv=window.wp.autop;var Tv={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,t)=>{let{content:n}=t;return(0,Bv.removep)((0,Bv.autop)(n))}}},priority:20}]};const Nv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/shortcode",title:"Shortcode",category:"widgets",description:"Insert additional custom elements with a WordPress shortcode.",textdomain:"default",attributes:{text:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,html:!1},editorStyle:"wp-block-shortcode-editor"},{name:Pv}=Nv,zv={icon:Sv,transforms:Tv,edit:function e(t){let{attributes:n,setAttributes:o}=t;const r=`blocks-shortcode-input-${(0,Rt.useInstanceId)(e)}`;return(0,Re.createElement)("div",(0,Fe.useBlockProps)({className:"components-placeholder"}),(0,Re.createElement)("label",{htmlFor:r,className:"components-placeholder__label"},(0,Re.createElement)($u,{icon:Sv}),(0,De.__)("Shortcode")),(0,Re.createElement)(Fe.PlainText,{className:"blocks-shortcode__textarea",id:r,value:n.text,"aria-label":(0,De.__)("Shortcode text"),placeholder:(0,De.__)("Write shortcode here"),onChange:e=>o({text:e})}))},save:function(e){let{attributes:t}=e;return(0,Re.createElement)(Re.RawHTML,null,t.text)}};var Iv=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 1.5c4.1 0 7.5 3.4 7.5 7.5v.1c-1.4-.8-3.3-1.7-3.4-1.8-.2-.1-.5-.1-.8.1l-2.9 2.1L9 11.3c-.2-.1-.4 0-.6.1l-3.7 2.2c-.1-.5-.2-1-.2-1.5 0-4.2 3.4-7.6 7.5-7.6zm0 15c-3.1 0-5.7-1.9-6.9-4.5l3.7-2.2 3.5 1.2c.2.1.5 0 .7-.1l2.9-2.1c.8.4 2.5 1.2 3.5 1.9-.9 3.3-3.9 5.8-7.4 5.8z"}));const Mv=["image"],Lv="image/*",Rv=e=>{let{alt:t,attributes:{align:n,width:o,height:r,isLink:a,linkTarget:l,shouldSyncIcon:i},containerRef:s,isSelected:c,setAttributes:u,setLogo:m,logoUrl:d,siteUrl:p,logoId:g,iconId:h,setIcon:v,canUserEdit:b}=e;const y=Gs(s,[n]),f=(0,Rt.useViewportMatch)("medium"),_=!(0,ht.includes)(["wide","full"],n)&&f,[{naturalWidth:k,naturalHeight:w},x]=(0,Re.useState)({}),[E,C]=(0,Re.useState)(!1),{toggleSelection:S}=(0,Ye.useDispatch)(Fe.store),B=Qe()("custom-logo-link",{"is-transient":(0,dt.isBlobURL)(d)}),{imageEditing:T,maxWidth:N,title:P}=(0,Ye.useSelect)((e=>{const{getSettings:t}=e(Fe.store);return{title:e(Je.store).getEditedEntityRecord("root","site").title,...(0,ht.pick)(t(),["imageEditing","maxWidth"])}}),[]);(0,Re.useEffect)((()=>{i&&g!==h&&u({shouldSyncIcon:!1})}),[]),(0,Re.useEffect)((()=>{c||C(!1)}),[c]);const z=(0,Re.createElement)("img",{className:"custom-logo",src:d,alt:t,onLoad:e=>{x((0,ht.pick)(e.target,["naturalWidth","naturalHeight"]))}});let I,M=z;if(a&&(M=(0,Re.createElement)("a",{href:p,className:B,rel:"home",title:P,onClick:e=>e.preventDefault()},z)),y&&k&&w){I=k>y?y:k}if(!_||!I)return(0,Re.createElement)("div",{style:{width:o,height:r}},M);const L=o||120,R=k/w,V=L/R,A=k<w?Xl:Math.ceil(Xl*R),H=w<k?Xl:Math.ceil(Xl/R),D=2.5*N;let F=!1,$=!1;"center"===n?(F=!0,$=!0):(0,De.isRTL)()?"left"===n?F=!0:$=!0:"right"===n?$=!0:F=!0;const G=g&&k&&w&&T,U=G&&E?(0,Re.createElement)(Fe.__experimentalImageEditingProvider,{id:g,url:d,naturalWidth:k,naturalHeight:w,clientWidth:y,onSaveImage:e=>{m(e.id)},isEditing:E,onFinishEditing:()=>C(!1)},(0,Re.createElement)(Fe.__experimentalImageEditor,{url:d,width:L,height:V,clientWidth:y,naturalHeight:w,naturalWidth:k})):(0,Re.createElement)(He.ResizableBox,{size:{width:L,height:V},showHandle:c,minWidth:A,maxWidth:D,minHeight:H,maxHeight:D/R,lockAspectRatio:!0,enable:{top:!1,right:F,bottom:!0,left:$},onResizeStart:function(){S(!1)},onResizeStop:(e,t,n,o)=>{S(!0),u({width:parseInt(L+o.width,10),height:parseInt(V+o.height,10)})}},M),O=(0,Re.createInterpolateElement)((0,De.__)("Site Icons are what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. To use a custom icon that is different from your site logo, use the <a>Site Icon settings</a>."),{a:(0,Re.createElement)("a",{href:p+"/wp-admin/customize.php?autofocus[section]=title_tagline",target:"_blank",rel:"noopener noreferrer"})});return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Settings")},(0,Re.createElement)(He.RangeControl,{label:(0,De.__)("Image width"),onChange:e=>u({width:e}),min:A,max:D,initialPosition:Math.min(120,D),value:o||"",disabled:!_}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Link image to home"),onChange:()=>u({isLink:!a}),checked:a}),a&&(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Open in new tab"),onChange:e=>u({linkTarget:e?"_blank":"_self"}),checked:"_blank"===l})),b&&(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Use as site icon"),onChange:e=>{u({shouldSyncIcon:e}),v(e?g:void 0)},checked:!!i,help:O})))),(0,Re.createElement)(Fe.BlockControls,{group:"block"},G&&!E&&(0,Re.createElement)(He.ToolbarButton,{onClick:()=>C(!0),icon:Ds,label:(0,De.__)("Crop")})),U)};var Vv={to:[{type:"block",blocks:["core/site-title"],transform:e=>{let{isLink:t,linkTarget:n}=e;return(0,Le.createBlock)("core/site-title",{isLink:t,linkTarget:n})}}]};const Av={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/site-logo",title:"Site Logo",category:"theme",description:"Display a graphic to represent this site. Update the block, and the changes apply everywhere its used. This is different than the site icon, which is the smaller image visible in your dashboard, browser tabs, etc used to help others recognize this site.",textdomain:"default",attributes:{width:{type:"number"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"},shouldSyncIcon:{type:"boolean"}},example:{viewportWidth:500,attributes:{width:350,className:"block-editor-block-types-list__site-logo-example"}},supports:{html:!1,align:!0,alignWide:!1,color:{__experimentalDuotone:"img, .components-placeholder__illustration, .components-placeholder::before",text:!1,background:!1}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-site-logo-editor",style:"wp-block-site-logo"},{name:Hv}=Av,Dv={icon:Iv,edit:function(e){let{attributes:t,className:n,setAttributes:o,isSelected:r}=e;const{width:a,shouldSyncIcon:l}=t,[i,s]=(0,Re.useState)(),c=(0,Re.useRef)(),{siteLogoId:u,canUserEdit:m,url:d,siteIconId:p,mediaItemData:g,isRequestingMediaItem:h}=(0,Ye.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:o}=e(Je.store),r=o("root","site"),a=n("root","__unstableBase"),l=null==r?void 0:r.site_logo,i=null==a?void 0:a.site_logo,s=t("update","settings"),c=s?l:i,u=null==r?void 0:r.site_icon,m=c&&e(Je.store).getMedia(c,{context:"view"}),d=c&&!e(Je.store).hasFinishedResolution("getMedia",[c,{context:"view"}]);return{siteLogoId:c,canUserEdit:s,url:null==a?void 0:a.url,mediaItemData:m,isRequestingMediaItem:d,siteIconId:u}}),[]),{editEntityRecord:v}=(0,Ye.useDispatch)(Je.store),b=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(l||t)&&y(e),v("root","site",void 0,{site_logo:e})},y=e=>v("root","site",void 0,{site_icon:null!=e?e:null});let f=null;g&&(f=g.alt_text,i!==g.source_url&&s(g.source_url));const _=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return!e.id&&e.url?(b(void 0),void s(e.url)):void b(e.id,t)},{createErrorNotice:k}=(0,Ye.useDispatch)(wa.store),w=e=>{k(e[2],{type:"snackbar"})},x=m&&i&&(0,Re.createElement)(Fe.BlockControls,{group:"other"},(0,Re.createElement)(Fe.MediaReplaceFlow,{mediaURL:i,allowedTypes:Mv,accept:Lv,onSelect:_,onError:w},(0,Re.createElement)(He.MenuItem,{onClick:()=>{b(null),s(void 0),o({width:void 0})}},(0,De.__)("Reset"))));let E;const C=void 0===u||h;C&&(E=(0,Re.createElement)(He.Spinner,null)),i&&(E=(0,Re.createElement)(Rv,{alt:f,attributes:t,className:n,containerRef:c,isSelected:r,setAttributes:o,logoUrl:i,setLogo:b,logoId:(null==g?void 0:g.id)||u,siteUrl:d,setIcon:y,iconId:p,canUserEdit:m}));const S=Qe()(n,{"is-default-size":!a}),B=(0,Fe.useBlockProps)({ref:c,className:S}),T=(0,De.__)("Add a site logo");return(0,Re.createElement)("div",B,x,!!i&&E,!i&&!m&&(0,Re.createElement)(He.Placeholder,{className:"site-logo_placeholder"},C&&(0,Re.createElement)("span",{className:"components-placeholder__preview"},(0,Re.createElement)(He.Spinner,null))),!i&&m&&(0,Re.createElement)(Fe.MediaPlaceholder,{onSelect:e=>{if(void 0===l){const t=!p;return o({shouldSyncIcon:t}),void _(e,t)}_(e)},accept:Lv,allowedTypes:Mv,onError:w,placeholder:e=>{const t=Qe()("block-editor-media-placeholder",n);return(0,Re.createElement)(He.Placeholder,{className:t,preview:E},(0,Re.createElement)(Ve.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60"},(0,Re.createElement)(Ve.Path,{vectorEffect:"non-scaling-stroke",d:"m61 32.622-13.555-9.137-15.888 9.859a5 5 0 0 1-5.386-.073l-9.095-5.989L1 37.5"})),e)},mediaLibraryButton:e=>{let{open:t}=e;return(0,Re.createElement)(He.Button,{icon:Fs,variant:"primary",label:T,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{t()}})}}))},transforms:Vv};var Fv=(0,Re.createElement)(He.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},(0,Re.createElement)(He.Path,{fill:"none",d:"M0 0h24v24H0z"}),(0,Re.createElement)(He.Path,{d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"}));var $v=[{attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:Ht,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];const Gv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/site-tagline",title:"Site Tagline",category:"theme",description:"Describe in a few words what the site is about. The tagline can be used in search results or when sharing on social networks even if it's not displayed in the theme design.",keywords:["description"],textdomain:"default",attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-site-tagline-editor"},{name:Uv}=Gv,Ov={icon:Fv,edit:function(e){let{attributes:t,setAttributes:n,insertBlocksAfter:o}=e;const{textAlign:r}=t,[a,l]=(0,Je.useEntityProp)("root","site","description"),{canUserEdit:i,readOnlySiteTagLine:s}=(0,Ye.useSelect)((e=>{const{canUser:t,getEntityRecord:n}=e(Je.store),o=n("root","__unstableBase");return{canUserEdit:t("update","settings"),readOnlySiteTagLine:null==o?void 0:o.description}}),[]),c=(0,Fe.useBlockProps)({className:Qe()({[`has-text-align-${r}`]:r,"wp-block-site-tagline__placeholder":!i&&!s})}),u=i?(0,Re.createElement)(Fe.RichText,je({allowedFormats:[],onChange:l,"aria-label":(0,De.__)("Site tagline text"),placeholder:(0,De.__)("Write site tagline"),tagName:"p",value:a,disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,Le.createBlock)((0,Le.getDefaultBlockName)()))},c)):(0,Re.createElement)("p",c,s||(0,De.__)("Site Tagline placeholder"));return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(Fe.AlignmentControl,{onChange:e=>n({textAlign:e}),value:r})),u)},deprecated:$v};var qv=(0,Re.createElement)(Ve.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .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.1C18.5 6.8 15.6 4 12 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.4z"}));function Wv(e){let{level:t,isPressed:n=!1}=e;if(0===t)return Bd;return(0,Re.createElement)(He.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:n},(0,Re.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 jv(e){let{level:t,onChange:n}=e;const o=[1,2,3,4,5,6,0].map((e=>{const o=e===t;return{icon:(0,Re.createElement)(Wv,{level:e,isPressed:o}),title:0===e?(0,De.__)("Paragraph"):(0,De.sprintf)((0,De.__)("Heading %d"),e),isActive:o,onClick:()=>n(e)}}));return(0,Re.createElement)(He.ToolbarDropdownMenu,{label:(0,De.__)("Change heading level"),icon:(0,Re.createElement)(Wv,{level:t}),controls:o})}var Zv=[{attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:Ht,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];var Qv={to:[{type:"block",blocks:["core/site-logo"],transform:e=>{let{isLink:t,linkTarget:n}=e;return(0,Le.createBlock)("core/site-logo",{isLink:t,linkTarget:n})}}]};const Kv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/site-title",title:"Site Title",category:"theme",description:"Displays the name of this site. Update the block, and the changes apply everywhere its used. This will also appear in the browser title bar and in search results.",textdomain:"default",attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},example:{viewportWidth:500},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,lineHeight:!0,fontAppearance:!0,letterSpacing:!0,textTransform:!0}}},editorStyle:"wp-block-site-title-editor"},{name:Jv}=Kv,Yv={icon:qv,edit:function(e){let{attributes:t,setAttributes:n,insertBlocksAfter:o}=e;const{level:r,textAlign:a,isLink:l,linkTarget:i}=t,[s,c]=(0,Je.useEntityProp)("root","site","title"),{canUserEdit:u,readOnlyTitle:m}=(0,Ye.useSelect)((e=>{const{canUser:t,getEntityRecord:n}=e(Je.store),o=n("root","__unstableBase");return{canUserEdit:t("update","settings"),readOnlyTitle:(0,Uu.decodeEntities)(null==o?void 0:o.name)}}),[]),d=0===r?"p":`h${r}`,p=(0,Fe.useBlockProps)({className:Qe()({[`has-text-align-${a}`]:a,"wp-block-site-title__placeholder":!u&&!m})}),g=u?(0,Re.createElement)(d,p,(0,Re.createElement)(Fe.RichText,{tagName:l?"a":"span",href:l?"#site-title-pseudo-link":void 0,"aria-label":(0,De.__)("Site title text"),placeholder:(0,De.__)("Write site title"),value:s,onChange:c,allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,Le.createBlock)((0,Le.getDefaultBlockName)()))})):(0,Re.createElement)(d,p,l?(0,Re.createElement)("a",{href:"#site-title-pseudo-link",onClick:e=>e.preventDefault()},m||(0,De.__)("Site Title placeholder")):(0,Re.createElement)("span",null,s||m));return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(jv,{level:r,onChange:e=>n({level:e})}),(0,Re.createElement)(Fe.AlignmentControl,{value:a,onChange:e=>{n({textAlign:e})}})),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Link settings")},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Make title link to home"),onChange:()=>n({isLink:!l}),checked:l}),l&&(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Open in new tab"),onChange:e=>n({linkTarget:e?"_blank":"_self"}),checked:"_blank"===i}))),g)},transforms:Qv,deprecated:Zv};var Xv=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"}));var eb=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Re.createElement)(Ve.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"}));const tb=()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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"})),nb=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:tb},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:"patreon",attributes:{service:"patreon"},title:"Patreon",icon:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 569 546",version:"1.1"},(0,Re.createElement)(Ve.Circle,{cx:"363",cy:"205",r:"205"}),(0,Re.createElement)(Ve.Rect,{width:"100",height:"546",x:"0",y:"0"}))},{name:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:"telegram",attributes:{service:"telegram"},title:"Telegram",icon:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1"},(0,Re.createElement)(Ve.Path,{d:"M28.9700376,63.3244248 C47.6273373,55.1957357 60.0684594,49.8368063 66.2934036,47.2476366 C84.0668845,39.855031 87.7600616,38.5708563 90.1672227,38.528 C90.6966555,38.5191258 91.8804274,38.6503351 92.6472251,39.2725385 C93.294694,39.7979149 93.4728387,40.5076237 93.5580865,41.0057381 C93.6433345,41.5038525 93.7494885,42.63857 93.6651041,43.5252052 C92.7019529,53.6451182 88.5344133,78.2034783 86.4142057,89.5379542 C85.5170662,94.3339958 83.750571,95.9420841 82.0403991,96.0994568 C78.3237996,96.4414641 75.5015827,93.6432685 71.9018743,91.2836143 C66.2690414,87.5912212 63.0868492,85.2926952 57.6192095,81.6896017 C51.3004058,77.5256038 55.3966232,75.2369981 58.9976911,71.4967761 C59.9401076,70.5179421 76.3155302,55.6232293 76.6324771,54.2720454 C76.6721165,54.1030573 76.7089039,53.4731496 76.3346867,53.1405352 C75.9604695,52.8079208 75.4081573,52.921662 75.0095933,53.0121213 C74.444641,53.1403447 65.4461175,59.0880351 48.0140228,70.8551922 C45.4598218,72.6091037 43.1463059,73.4636682 41.0734751,73.4188859 C38.7883453,73.3695169 34.3926725,72.1268388 31.1249416,71.0646282 C27.1169366,69.7617838 23.931454,69.0729605 24.208838,66.8603276 C24.3533167,65.7078514 25.9403832,64.5292172 28.9700376,63.3244248 Z"}))},{name:"tiktok",attributes:{service:"tiktok"},title:"TikTok",icon:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 32 32",version:"1.1"},(0,Re.createElement)(Ve.Path,{d:"M16.708 0.027c1.745-0.027 3.48-0.011 5.213-0.027 0.105 2.041 0.839 4.12 2.333 5.563 1.491 1.479 3.6 2.156 5.652 2.385v5.369c-1.923-0.063-3.855-0.463-5.6-1.291-0.76-0.344-1.468-0.787-2.161-1.24-0.009 3.896 0.016 7.787-0.025 11.667-0.104 1.864-0.719 3.719-1.803 5.255-1.744 2.557-4.771 4.224-7.88 4.276-1.907 0.109-3.812-0.411-5.437-1.369-2.693-1.588-4.588-4.495-4.864-7.615-0.032-0.667-0.043-1.333-0.016-1.984 0.24-2.537 1.495-4.964 3.443-6.615 2.208-1.923 5.301-2.839 8.197-2.297 0.027 1.975-0.052 3.948-0.052 5.923-1.323-0.428-2.869-0.308-4.025 0.495-0.844 0.547-1.485 1.385-1.819 2.333-0.276 0.676-0.197 1.427-0.181 2.145 0.317 2.188 2.421 4.027 4.667 3.828 1.489-0.016 2.916-0.88 3.692-2.145 0.251-0.443 0.532-0.896 0.547-1.417 0.131-2.385 0.079-4.76 0.095-7.145 0.011-5.375-0.016-10.735 0.025-16.093z"}))},{name:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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:()=>(0,Re.createElement)(Ve.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,Re.createElement)(Ve.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"}))}];nb.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.service===t.service)}));var ob=nb;const rb=e=>{let{url:t,setAttributes:n,setPopover:o,anchorRef:r}=e;return(0,Re.createElement)(Fe.URLPopover,{anchorRef:null==r?void 0:r.current,onClose:()=>o(!1)},(0,Re.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:e=>{e.preventDefault(),o(!1)}},(0,Re.createElement)("div",{className:"block-editor-url-input"},(0,Re.createElement)(Fe.URLInput,{value:t,onChange:e=>n({url:e}),placeholder:(0,De.__)("Enter address"),disableSuggestions:!0})),(0,Re.createElement)(He.Button,{icon:eb,label:(0,De.__)("Apply"),type:"submit"})))};var ab=e=>{let{attributes:t,context:n,isSelected:o,setAttributes:r}=e;const{url:a,service:l,label:i}=t,{showLabels:s,iconColorValue:c,iconBackgroundColorValue:u}=n,[m,d]=(0,Re.useState)(!1),p=Qe()("wp-social-link","wp-social-link-"+l,{"wp-social-link__is-incomplete":!a}),g=(0,Re.useRef)(),h=(e=>{const t=(0,ht.find)(ob,{name:e});return t?t.icon:tb})(l),v=(e=>{const t=(0,ht.find)(ob,{name:e});return t?t.title:(0,De.__)("Social Icon")})(l),b=null!=i?i:v,y=(0,Fe.useBlockProps)({className:p,style:{color:c,backgroundColor:u}});return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.sprintf)((0,De.__)("%s label"),v),initialOpen:!1},(0,Re.createElement)(He.PanelRow,null,(0,Re.createElement)(He.TextControl,{label:(0,De.__)("Link label"),help:(0,De.__)("Briefly describe the link to help screen reader users."),value:i,onChange:e=>r({label:e})})))),(0,Re.createElement)("li",y,(0,Re.createElement)(He.Button,{className:"wp-block-social-link-anchor",ref:g,onClick:()=>d(!0)},(0,Re.createElement)(h,null),(0,Re.createElement)("span",{className:Qe()("wp-block-social-link-label",{"screen-reader-text":!s})},b),o&&m&&(0,Re.createElement)(rb,{url:a,setAttributes:r,setPopover:d,anchorRef:g}))))};const lb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/social-link",title:"Social Icon",category:"widgets",parent:["core/social-links"],description:"Display an icon linking to a social media profile or site.",textdomain:"default",attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"}},usesContext:["openInNewTab","showLabels","iconColorValue","iconBackgroundColorValue"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-social-link-editor"},{name:ib}=lb,sb={icon:Xv,edit:ab,variations:ob},cb=[{attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],anchor:!0},migrate:e=>{var t,n;if(e.layout)return e;const{className:o}=e,r="items-justified-",a=new RegExp(`\\b${r}[^ ]*[ ]?\\b`,"g"),l={...e,className:null==o?void 0:o.replace(a,"").trim()},i=null==o||null===(t=o.match(a))||void 0===t||null===(n=t[0])||void 0===n?void 0:n.trim();return i&&Object.assign(l,{layout:{type:"flex",justifyContent:i.slice(r.length)}}),l},save:e=>{const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,itemsJustification:o,size:r}}=e,a=Qe()(r,{"has-icon-color":n,"has-icon-background-color":t,[`items-justified-${o}`]:o}),l={"--wp--social-links--icon-color":n,"--wp--social-links--icon-background-color":t};return(0,Re.createElement)("ul",Fe.useBlockProps.save({className:a,style:l}),(0,Re.createElement)(Fe.InnerBlocks.Content,null))}}];var ub=cb;var mb=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));const db=["core/social-link"],pb=[{name:(0,De.__)("Small"),value:"has-small-icon-size"},{name:(0,De.__)("Normal"),value:"has-normal-icon-size"},{name:(0,De.__)("Large"),value:"has-large-icon-size"},{name:(0,De.__)("Huge"),value:"has-huge-icon-size"}];var gb=(0,Fe.withColors)({iconColor:"icon-color",iconBackgroundColor:"icon-background-color"})((function(e){var t;const{name:n,attributes:o,iconBackgroundColor:r,iconColor:a,isSelected:l,setAttributes:i,setIconBackgroundColor:s,setIconColor:c}=e,{iconBackgroundColorValue:u,customIconBackgroundColor:m,iconColorValue:d,openInNewTab:p,showLabels:g,size:h,layout:v}=o,b=v||(e=>{const t=(0,Le.getBlockSupport)(e,"__experimentalLayout");return null==t?void 0:t.default})(n),y=null===(t=o.className)||void 0===t?void 0:t.includes("is-style-logos-only"),f=(0,Re.useRef)({});(0,Re.useEffect)((()=>{y?(f.current={iconBackgroundColor:r,iconBackgroundColorValue:u,customIconBackgroundColor:m},i({iconBackgroundColor:void 0,customIconBackgroundColor:void 0,iconBackgroundColorValue:void 0})):i({...f.current})}),[y]);const _=(0,Re.createElement)("li",{className:"wp-block-social-links__social-placeholder"},(0,Re.createElement)("div",{className:"wp-block-social-links__social-placeholder-icons"},(0,Re.createElement)("div",{className:"wp-social-link wp-social-link-twitter"}),(0,Re.createElement)("div",{className:"wp-social-link wp-social-link-facebook"}),(0,Re.createElement)("div",{className:"wp-social-link wp-social-link-instagram"}))),k=(0,Re.createElement)("li",{className:"wp-block-social-links__social-prompt"},(0,De.__)("Click plus to add")),w=Qe()(h,{"has-icon-color":a.color||d,"has-icon-background-color":r.color||u}),x=(0,Fe.useBlockProps)({className:w}),E=(0,Fe.useInnerBlocksProps)(x,{allowedBlocks:db,placeholder:l?k:_,templateLock:!1,__experimentalAppenderTagName:"li",__experimentalLayout:b}),C=[{value:a.color||d,onChange:e=>{c(e),i({iconColorValue:e})},label:(0,De.__)("Icon color")}];return y||C.push({value:r.color||u,onChange:e=>{s(e),i({iconBackgroundColorValue:e})},label:(0,De.__)("Icon background")}),(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,{group:"other"},(0,Re.createElement)(He.ToolbarDropdownMenu,{label:(0,De.__)("Size"),text:(0,De.__)("Size"),icon:null,popoverProps:{position:"bottom right"}},(e=>{let{onClose:t}=e;return(0,Re.createElement)(He.MenuGroup,null,pb.map((e=>(0,Re.createElement)(He.MenuItem,{icon:(h===e.value||!h&&"has-normal-icon-size"===e.value)&&mb,isSelected:h===e.value,key:e.value,onClick:()=>{i({size:e.value})},onClose:t,role:"menuitemradio"},e.name))))}))),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Link settings")},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Open links in new tab"),checked:p,onChange:()=>i({openInNewTab:!p})}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Show labels"),checked:g,onChange:()=>i({showLabels:!g})})),(0,Re.createElement)(Fe.PanelColorSettings,{__experimentalHasMultipleOrigins:!0,__experimentalIsRenderedInSidebar:!0,title:(0,De.__)("Color"),colorSettings:C}),!y&&(0,Re.createElement)(Fe.ContrastChecker,{textColor:d,backgroundColor:u,isLargeText:!1})),(0,Re.createElement)("ul",E))}));const hb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/social-links",title:"Social Icons",category:"widgets",description:"Display icons linking to your social media profiles or sites.",keywords:["links"],textdomain:"default",attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},showLabels:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab",showLabels:"showLabels",iconColorValue:"iconColorValue",iconBackgroundColorValue:"iconBackgroundColorValue"},supports:{align:["left","center","right"],anchor:!0,__experimentalExposeControlsToChildren:!0,__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,default:{type:"flex"}},spacing:{blockGap:["horizontal","vertical"],margin:["top","bottom"],units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"logos-only",label:"Logos Only"},{name:"pill-shape",label:"Pill Shape"}],editorStyle:"wp-block-social-links-editor",style:"wp-block-social-links"},{name:vb}=hb,bb={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"}}]},icon:Xv,edit:gb,save:function(e){const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,showLabels:o,size:r}}=e,a=Qe()(r,{"has-visible-labels":o,"has-icon-color":n,"has-icon-background-color":t}),l=Fe.useBlockProps.save({className:a}),i=Fe.useInnerBlocksProps.save(l);return(0,Re.createElement)("ul",i)},deprecated:ub};var yb=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.Path,{d:"M12.5 4.2v1.6h4.7L5.8 17.2V12H4.2v7.8H12v-1.6H6.8L18.2 6.8v4.7h1.6V4.2z"}));const fb=[{attributes:{height:{type:"number",default:100},width:{type:"number"}},migrate(e){const{height:t,width:n}=e;return{...e,width:void 0!==n?`${n}px`:void 0,height:void 0!==t?`${t}px`:void 0}},save(e){let{attributes:t}=e;return(0,Re.createElement)("div",Fe.useBlockProps.save({style:{height:t.height,width:t.width},"aria-hidden":!0}))}}];var _b=fb;function kb(e){var t;let{label:n,onChange:o,isResizing:r,value:a=""}=e;const l=(0,Rt.useInstanceId)(He.__experimentalUnitControl,"block-spacer-height-input"),i=null===(t=(0,Fe.useSetting)("spacing.units")||void 0)||void 0===t?void 0:t.filter((e=>"%"!==e)),s=(0,He.__experimentalUseCustomUnits)({availableUnits:i||["px","em","rem","vw","vh"],defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),[c,u]=(0,He.__experimentalParseQuantityAndUnitFromRawValue)(a),m=[c,r?"px":u].join("");return(0,Re.createElement)(He.BaseControl,{label:n,id:l},(0,Re.createElement)(He.__experimentalUnitControl,{id:l,isResetValueOnUnitChange:!0,min:xb,onChange:e=>{o(e)},style:{maxWidth:80},value:m,units:s}))}function wb(e){let{setAttributes:t,orientation:n,height:o,width:r,isResizing:a}=e;return(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Spacer settings")},"horizontal"===n&&(0,Re.createElement)(kb,{label:(0,De.__)("Width"),value:r,onChange:e=>t({width:e}),isResizing:a}),"horizontal"!==n&&(0,Re.createElement)(kb,{label:(0,De.__)("Height"),value:o,onChange:e=>t({height:e}),isResizing:a})))}const xb=0,Eb=e=>{let{orientation:t,onResizeStart:n,onResize:o,onResizeStop:r,isSelected:a,isResizing:l,setIsResizing:i,...s}=e;const c=e=>"horizontal"===t?e.clientWidth:e.clientHeight,u=e=>`${c(e)}px`;return(0,Re.createElement)(He.ResizableBox,je({className:Qe()("block-library-spacer__resize-container",{"resize-horizontal":"horizontal"===t,"is-resizing":l,"is-selected":a}),onResizeStart:(e,t,r)=>{const a=u(r);n(a),o(a)},onResize:(e,t,n)=>{o(u(n)),l||i(!0)},onResizeStop:(e,t,n)=>{const o=c(n);r(`${o}px`),i(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"horizontal"===t?"x":"y",position:"corner",isVisible:l},showHandle:a},s))};var Cb=e=>{let{attributes:t,isSelected:n,setAttributes:o,toggleSelection:r,context:a}=e;const{orientation:l}=a,{height:i,width:s}=t,[c,u]=(0,Re.useState)(!1),[m,d]=(0,Re.useState)(null),[p,g]=(0,Re.useState)(null),h=()=>r(!1),v=()=>r(!0),b=e=>{v(),o({height:e}),d(null)},y=e=>{v(),o({width:e}),g(null)},f={height:"horizontal"===l?24:m||i||void 0,width:"horizontal"===l&&(p||s)||void 0};return(0,Re.useEffect)((()=>{"horizontal"!==l||s||o({height:"0px",width:"72px"})}),[]),(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Ve.View,(0,Fe.useBlockProps)({style:f}),"horizontal"===(_=l)?(0,Re.createElement)(Eb,{minWidth:xb,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:_,onResizeStart:h,onResize:g,onResizeStop:y,isSelected:n,isResizing:c,setIsResizing:u}):(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Eb,{minHeight:xb,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:_,onResizeStart:h,onResize:d,onResizeStop:b,isSelected:n,isResizing:c,setIsResizing:u}))),(0,Re.createElement)(wb,{setAttributes:o,height:m||i,width:p||s,orientation:l,isResizing:c}));var _};const Sb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/spacer",title:"Spacer",category:"design",description:"Add white space between blocks and customize its height.",textdomain:"default",attributes:{height:{type:"string",default:"100px"},width:{type:"string"}},usesContext:["orientation"],supports:{anchor:!0},editorStyle:"wp-block-spacer-editor",style:"wp-block-spacer"},{name:Bb}=Sb,Tb={icon:yb,edit:Cb,save:function(e){let{attributes:{height:t,width:n}}=e;return(0,Re.createElement)("div",Fe.useBlockProps.save({style:{height:t,width:n},"aria-hidden":!0}))},deprecated:_b};var Nb=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"}));const Pb={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},zb=[{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-table > table"},save:e=>{let{attributes:t}=e;const{hasFixedLayout:n,head:o,body:r,foot:a,backgroundColor:l,caption:i}=t;if(!o.length&&!r.length&&!a.length)return null;const s=(0,Fe.getColorClassName)("background-color",l),c=Qe()(s,{"has-fixed-layout":n,"has-background":!!s}),u=!Fe.RichText.isEmpty(i),m=e=>{let{type:t,rows:n}=e;if(!n.length)return null;const o=`t${t}`;return(0,Re.createElement)(o,null,n.map(((e,t)=>{let{cells:n}=e;return(0,Re.createElement)("tr",{key:t},n.map(((e,t)=>{let{content:n,tag:o,scope:r,align:a}=e;const l=Qe()({[`has-text-align-${a}`]:a});return(0,Re.createElement)(Fe.RichText.Content,{className:l||void 0,"data-align":a,tagName:o,value:n,key:t,scope:"th"===o?r:void 0})})))})))};return(0,Re.createElement)("figure",Fe.useBlockProps.save(),(0,Re.createElement)("table",{className:""===c?void 0:c},(0,Re.createElement)(m,{type:"head",rows:o}),(0,Re.createElement)(m,{type:"body",rows:r}),(0,Re.createElement)(m,{type:"foot",rows:a})),u&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",value:i}))},isEligible:e=>e.backgroundColor&&e.backgroundColor in Pb&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:Pb[e.backgroundColor]}}})},{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(e){let{attributes:t}=e;const{hasFixedLayout:n,head:o,body:r,foot:a,backgroundColor:l}=t;if(!o.length&&!r.length&&!a.length)return null;const i=(0,Fe.getColorClassName)("background-color",l),s=Qe()(i,{"has-fixed-layout":n,"has-background":!!i}),c=e=>{let{type:t,rows:n}=e;if(!n.length)return null;const o=`t${t}`;return(0,Re.createElement)(o,null,n.map(((e,t)=>{let{cells:n}=e;return(0,Re.createElement)("tr",{key:t},n.map(((e,t)=>{let{content:n,tag:o,scope:r}=e;return(0,Re.createElement)(Fe.RichText.Content,{tagName:o,value:n,key:t,scope:"th"===o?r:void 0})})))})))};return(0,Re.createElement)("table",{className:s},(0,Re.createElement)(c,{type:"head",rows:o}),(0,Re.createElement)(c,{type:"body",rows:r}),(0,Re.createElement)(c,{type:"foot",rows:a}))}}];var Ib=zb;var Mb=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));var Lb=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));var Rb=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));var Vb=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Re.createElement)(Ve.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"}));var Ab=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Re.createElement)(Ve.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"}));var Hb=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Re.createElement)(Ve.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"}));var Db=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Re.createElement)(Ve.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"}));var Fb=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Re.createElement)(Ve.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"}));var $b=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Re.createElement)(Ve.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"}));var Gb=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));const Ub=["align"];function Ob(e,t,n){if(!t)return e;const o=(0,ht.pick)(e,["head","body","foot"]),{sectionName:r,rowIndex:a}=t;return(0,ht.mapValues)(o,((e,o)=>r&&r!==o?e:e.map(((e,r)=>a&&a!==r?e:{cells:e.cells.map(((e,a)=>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:o,columnIndex:a,rowIndex:r},t)?n(e):e))}))))}function qb(e,t){let{sectionName:n,rowIndex:o,columnCount:r}=t;const a=function(e){return Zb(e.head)?Zb(e.body)?Zb(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),l=void 0===r?(0,ht.get)(a,["cells","length"]):r;return l?{[n]:[...e[n].slice(0,o),{cells:(0,ht.times)(l,(e=>{const t=(0,ht.get)(a,["cells",e],{});return{...(0,ht.pick)(t,Ub),content:"",tag:"head"===n?"th":"td"}}))},...e[n].slice(o)]}:e}function Wb(e,t){let{columnIndex:n}=t;const o=(0,ht.pick)(e,["head","body","foot"]);return(0,ht.mapValues)(o,((e,t)=>Zb(e)?e:e.map((e=>Qb(e)||e.cells.length<n?e:{cells:[...e.cells.slice(0,n),{content:"",tag:"head"===t?"th":"td"},...e.cells.slice(n)]}))))}function jb(e,t){if(!Zb(e[t]))return{[t]:[]};return qb(e,{sectionName:t,rowIndex:0,columnCount:(0,ht.get)(e,["body",0,"cells","length"],1)})}function Zb(e){return!e||!e.length||(0,ht.every)(e,Qb)}function Qb(e){return!(e.cells&&e.cells.length)}const Kb=[{icon:Mb,title:(0,De.__)("Align column left"),align:"left"},{icon:Lb,title:(0,De.__)("Align column center"),align:"center"},{icon:Rb,title:(0,De.__)("Align column right"),align:"right"}],Jb={head:(0,De.__)("Header cell text"),body:(0,De.__)("Body cell text"),foot:(0,De.__)("Footer cell text")},Yb={head:(0,De.__)("Header label"),foot:(0,De.__)("Footer label")};function Xb(e){let{name:t,...n}=e;const o=`t${t}`;return(0,Re.createElement)(o,n)}var ey=function(e){let{attributes:t,setAttributes:n,insertBlocksAfter:o,isSelected:r}=e;const{hasFixedLayout:a,caption:l,head:i,foot:s}=t,[c,u]=(0,Re.useState)(2),[m,d]=(0,Re.useState)(2),[p,g]=(0,Re.useState)(),h=(0,Fe.__experimentalUseColorProps)(t),v=(0,Fe.__experimentalUseBorderProps)(t);function b(e){p&&n(Ob(t,p,(t=>({...t,content:e}))))}function y(e){if(!p)return;const{sectionName:o,rowIndex:r}=p,a=r+e;n(qb(t,{sectionName:o,rowIndex:a})),g({sectionName:o,rowIndex:a,columnIndex:0,type:"cell"})}function f(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!p)return;const{columnIndex:o}=p,r=o+e;n(Wb(t,{columnIndex:r})),g({rowIndex:0,columnIndex:r,type:"cell"})}(0,Re.useEffect)((()=>{r||g()}),[r]);const _=["head","body","foot"].filter((e=>!Zb(t[e]))),k=[{icon:Vb,title:(0,De.__)("Insert row before"),isDisabled:!p,onClick:function(){y(0)}},{icon:Ab,title:(0,De.__)("Insert row after"),isDisabled:!p,onClick:function(){y(1)}},{icon:Hb,title:(0,De.__)("Delete row"),isDisabled:!p,onClick:function(){if(!p)return;const{sectionName:e,rowIndex:o}=p;g(),n(function(e,t){let{sectionName:n,rowIndex:o}=t;return{[n]:e[n].filter(((e,t)=>t!==o))}}(t,{sectionName:e,rowIndex:o}))}},{icon:Db,title:(0,De.__)("Insert column before"),isDisabled:!p,onClick:function(){f(0)}},{icon:Fb,title:(0,De.__)("Insert column after"),isDisabled:!p,onClick:function(){f(1)}},{icon:$b,title:(0,De.__)("Delete column"),isDisabled:!p,onClick:function(){if(!p)return;const{sectionName:e,columnIndex:o}=p;g(),n(function(e,t){let{columnIndex:n}=t;const o=(0,ht.pick)(e,["head","body","foot"]);return(0,ht.mapValues)(o,(e=>Zb(e)?e:e.map((e=>({cells:e.cells.length>=n?e.cells.filter(((e,t)=>t!==n)):e.cells}))).filter((e=>e.cells.length))))}(t,{sectionName:e,columnIndex:o}))}}],w=["head","body","foot"].map((e=>(0,Re.createElement)(Xb,{name:e,key:e},t[e].map(((t,n)=>{let{cells:o}=t;return(0,Re.createElement)("tr",{key:n},o.map(((t,o)=>{let{content:r,tag:a,scope:l,align:i}=t;return(0,Re.createElement)(Fe.RichText,{tagName:a,key:o,className:Qe()({[`has-text-align-${i}`]:i},"wp-block-table__cell-content"),scope:"th"===a?l:void 0,value:r,onChange:b,unstableOnFocus:()=>{g({sectionName:e,rowIndex:n,columnIndex:o,type:"cell"})},"aria-label":Jb[e],placeholder:Yb[e]})})))}))))),x=!_.length;return(0,Re.createElement)("figure",(0,Fe.useBlockProps)(),!x&&(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(Fe.AlignmentControl,{label:(0,De.__)("Change column alignment"),alignmentControls:Kb,value:function(){if(p)return function(e,t,n){const{sectionName:o,rowIndex:r,columnIndex:a}=t;return(0,ht.get)(e,[o,r,"cells",a,n])}(t,p,"align")}(),onChange:e=>function(e){if(!p)return;const o={type:"column",columnIndex:p.columnIndex},r=Ob(t,o,(t=>({...t,align:e})));n(r)}(e)})),(0,Re.createElement)(Fe.BlockControls,{group:"other"},(0,Re.createElement)(He.ToolbarDropdownMenu,{hasArrowIndicator:!0,icon:Gb,label:(0,De.__)("Edit table"),controls:k}))),!x&&(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Table settings"),className:"blocks-table-settings"},(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Fixed width table cells"),checked:!!a,onChange:function(){n({hasFixedLayout:!a})}}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Header section"),checked:!(!i||!i.length),onChange:function(){n(jb(t,"head"))}}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Footer section"),checked:!(!s||!s.length),onChange:function(){n(jb(t,"foot"))}}))),!x&&(0,Re.createElement)("table",{className:Qe()(h.className,v.className,{"has-fixed-layout":a}),style:{...h.style,...v.style}},w),!x&&(0,Re.createElement)(Fe.RichText,{tagName:"figcaption","aria-label":(0,De.__)("Table caption text"),placeholder:(0,De.__)("Add caption"),value:l,onChange:e=>n({caption:e}),unstableOnFocus:()=>g(),__unstableOnSplitAtEnd:()=>o((0,Le.createBlock)("core/paragraph"))}),x&&(0,Re.createElement)(He.Placeholder,{label:(0,De.__)("Table"),icon:(0,Re.createElement)(Fe.BlockIcon,{icon:Nb,showColors:!0}),instructions:(0,De.__)("Insert a table for sharing data.")},(0,Re.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:function(e){e.preventDefault(),n(function(e){let{rowCount:t,columnCount:n}=e;return{body:(0,ht.times)(t,(()=>({cells:(0,ht.times)(n,(()=>({content:"",tag:"td"})))})))}}({rowCount:parseInt(c,10)||2,columnCount:parseInt(m,10)||2}))}},(0,Re.createElement)(He.TextControl,{type:"number",label:(0,De.__)("Column count"),value:m,onChange:function(e){d(e)},min:"1",className:"blocks-table__placeholder-input"}),(0,Re.createElement)(He.TextControl,{type:"number",label:(0,De.__)("Row count"),value:c,onChange:function(e){u(e)},min:"1",className:"blocks-table__placeholder-input"}),(0,Re.createElement)(He.Button,{className:"blocks-table__placeholder-button",variant:"primary",type:"submit"},(0,De.__)("Create Table")))))};const ty=e=>{let{phrasingContentSchema:t}=e;return{tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:t,attributes:["scope"]},td:{allowEmpty:!0,children:t}}}}};var ny={from:[{type:"raw",selector:"table",schema:e=>({table:{children:{thead:{allowEmpty:!0,children:ty(e)},tfoot:{allowEmpty:!0,children:ty(e)},tbody:{allowEmpty:!0,children:ty(e)}}}})}]};const oy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/table",title:"Table",category:"text",description:"Create structured content in rows and columns to display information.",textdomain:"default",attributes:{hasFixedLayout:{type:"boolean",default:!1},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,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table"},styles:[{name:"regular",label:"Default",isDefault:!0},{name:"stripes",label:"Stripes"}],editorStyle:"wp-block-table-editor",style:"wp-block-table"},{name:ry}=oy,ay={icon:Nb,example:{attributes:{head:[{cells:[{content:(0,De.__)("Version"),tag:"th"},{content:(0,De.__)("Jazz Musician"),tag:"th"},{content:(0,De.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:(0,De.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:(0,De.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:(0,De.__)("December 6, 2018"),tag:"td"}]}]}},transforms:ny,edit:ey,save:function(e){let{attributes:t}=e;const{hasFixedLayout:n,head:o,body:r,foot:a,caption:l}=t;if(!o.length&&!r.length&&!a.length)return null;const i=(0,Fe.__experimentalGetColorClassesAndStyles)(t),s=(0,Fe.__experimentalGetBorderClassesAndStyles)(t),c=Qe()(i.className,s.className,{"has-fixed-layout":n}),u=!Fe.RichText.isEmpty(l),m=e=>{let{type:t,rows:n}=e;if(!n.length)return null;const o=`t${t}`;return(0,Re.createElement)(o,null,n.map(((e,t)=>{let{cells:n}=e;return(0,Re.createElement)("tr",{key:t},n.map(((e,t)=>{let{content:n,tag:o,scope:r,align:a}=e;const l=Qe()({[`has-text-align-${a}`]:a});return(0,Re.createElement)(Fe.RichText.Content,{className:l||void 0,"data-align":a,tagName:o,value:n,key:t,scope:"th"===o?r:void 0})})))})))};return(0,Re.createElement)("figure",Fe.useBlockProps.save(),(0,Re.createElement)("table",{className:""===c?void 0:c,style:{...i.style,...s.style}},(0,Re.createElement)(m,{type:"head",rows:o}),(0,Re.createElement)(m,{type:"body",rows:r}),(0,Re.createElement)(m,{type:"foot",rows:a})),u&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",value:l}))},deprecated:Ib};var ly={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,Le.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,Le.createBlock)("core/categories")}]};var iy=(0,Ye.withSelect)((e=>({taxonomies:e(Je.store).getTaxonomies({per_page:-1})})))((function(e){let{attributes:t,setAttributes:n,taxonomies:o}=e;const{taxonomy:r,showTagCounts:a,numberOfTags:l,smallestFontSize:i,largestFontSize:s}=t,c=(0,He.__experimentalUseCustomUnits)({availableUnits:(0,Fe.useSetting)("spacing.units")||["%","px","em","rem"]}),u=(e,t)=>{const[o,r]=(0,He.__experimentalParseQuantityAndUnitFromRawValue)(t);if(!Number.isFinite(o))return;const a={[e]:t};Object.entries({smallestFontSize:i,largestFontSize:s}).forEach((t=>{let[n,o]=t;const[l,i]=(0,He.__experimentalParseQuantityAndUnitFromRawValue)(o);n!==e&&i!==r&&(a[n]=`${l}${r}`)})),n(a)},m=(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Tag Cloud settings")},(0,Re.createElement)(He.SelectControl,{label:(0,De.__)("Taxonomy"),options:[{label:(0,De.__)("- Select -"),value:"",disabled:!0},...(0,ht.map)((0,ht.filter)(o,"show_cloud"),(e=>({value:e.slug,label:e.name})))],value:r,onChange:e=>n({taxonomy:e})}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Show post counts"),checked:a,onChange:()=>n({showTagCounts:!a})}),(0,Re.createElement)(He.RangeControl,{label:(0,De.__)("Number of tags"),value:l,onChange:e=>n({numberOfTags:e}),min:1,max:100,required:!0}),(0,Re.createElement)(He.Flex,null,(0,Re.createElement)(He.FlexItem,{isBlock:!0},(0,Re.createElement)(He.__experimentalUnitControl,{label:(0,De.__)("Smallest size"),value:i,onChange:e=>{u("smallestFontSize",e)},units:c,min:.1,max:100})),(0,Re.createElement)(He.FlexItem,{isBlock:!0},(0,Re.createElement)(He.__experimentalUnitControl,{label:(0,De.__)("Largest size"),value:s,onChange:e=>{u("largestFontSize",e)},units:c,min:.1,max:100})))));return(0,Re.createElement)(Re.Fragment,null,m,(0,Re.createElement)("div",(0,Fe.useBlockProps)(),(0,Re.createElement)(Ge(),{key:"tag-cloud",block:"core/tag-cloud",attributes:t})))}));const sy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/tag-cloud",title:"Tag Cloud",category:"widgets",description:"A cloud of your most used tags.",textdomain:"default",attributes:{numberOfTags:{type:"number",default:45,minimum:1,maximum:100},taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1},smallestFontSize:{type:"string",default:"8pt"},largestFontSize:{type:"string",default:"22pt"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"outline",label:"Outline"}],supports:{html:!1,align:!0},editorStyle:"wp-block-tag-cloud-editor"},{name:cy}=sy,uy={icon:$m,example:{},edit:iy,transforms:ly};var my=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));function dy(e,t){const{templateParts:n,isResolving:o}=(0,Ye.useSelect)((e=>{const{getEntityRecords:t,isResolving:n}=e(Je.store),o={per_page:-1};return{templateParts:t("postType","wp_template_part",o),isLoading:n("getEntityRecords",["postType","wp_template_part",o])}}),[]);return{templateParts:(0,Re.useMemo)((()=>n&&n.filter((n=>em(n.theme,n.slug)!==t&&(!e||"uncategorized"===e||n.area===e)))||[]),[n,e]),isResolving:o}}function py(e,t){return(0,Ye.useSelect)((n=>{const o=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:r,__experimentalGetPatternsByBlockTypes:a}=n(Fe.store);return a(o,r(t))}),[e,t])}function gy(e,t){const{saveEntityRecord:n}=(0,Ye.useDispatch)(Je.store);return async function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,De.__)("Untitled Template Part");const a=(0,ht.kebabCase)(r).replace(/[^\w-]+/g,"")||"wp-custom-part",l={title:r,slug:a,content:(0,Le.serialize)(o),area:e},i=await n("postType","wp_template_part",l);t({slug:i.slug,theme:i.theme,area:void 0})}}function hy(e){return(0,Ye.useSelect)((t=>{var n;const o=t("core/editor").__experimentalGetDefaultTemplatePartAreas(),r=(0,ht.find)(o,{area:e}),a=(0,ht.find)(o,{area:"uncategorized"});return{icon:(null==r?void 0:r.icon)||(null==a?void 0:a.icon),label:(null==r?void 0:r.label)||(0,De.__)("Template Part"),tagName:null!==(n=null==r?void 0:r.area_tag)&&void 0!==n?n:"div"}}),[e])}function vy(e){let{areaLabel:t,onClose:n,onSubmit:o}=e;const[r,a]=(0,Re.useState)((0,De.__)("Untitled Template Part"));return(0,Re.createElement)(He.Modal,{title:(0,De.sprintf)((0,De.__)("Name and create your new %s"),t.toLowerCase()),closeLabel:(0,De.__)("Cancel"),overlayClassName:"wp-block-template-part__placeholder-create-new__title-form",onRequestClose:n},(0,Re.createElement)("form",{onSubmit:e=>{e.preventDefault(),o(r)}},(0,Re.createElement)(He.TextControl,{label:(0,De.__)("Name"),value:r,onChange:a}),(0,Re.createElement)(He.Flex,{className:"wp-block-template-part__placeholder-create-new__title-form-actions",justify:"flex-end"},(0,Re.createElement)(He.FlexItem,null,(0,Re.createElement)(He.Button,{variant:"primary",type:"submit",disabled:!r.length,"aria-disabled":!r.length},(0,De.__)("Create"))))))}function by(e){let{area:t,clientId:n,templatePartId:o,onOpenSelectionModal:r,setAttributes:a}=e;const{templateParts:l,isResolving:i}=dy(t,o),s=py(t,n),[c,u]=(0,Re.useState)(!1),m=hy(t),d=gy(t,a);return(0,Re.createElement)(He.Placeholder,{icon:m.icon,label:m.label,instructions:(0,De.sprintf)((0,De.__)("Choose an existing %s or create a new one."),m.label.toLowerCase())},i&&(0,Re.createElement)(He.Spinner,null),!i&&!(!l.length&&!s.length)&&(0,Re.createElement)(He.Button,{variant:"primary",onClick:r},(0,De.__)("Choose")),!i&&(0,Re.createElement)(He.Button,{variant:"secondary",onClick:()=>{u(!0)}},(0,De.__)("Start blank")),c&&(0,Re.createElement)(vy,{areaLabel:m.label,onClose:()=>u(!1),onSubmit:e=>{d([],e)}}))}function yy(e){let{setAttributes:t,onClose:n,templatePartId:o=null,area:r,clientId:a}=e;const l=!!o,{templateParts:i}=dy(r,o),s=(0,Re.useMemo)((()=>i.map((e=>({name:em(e.theme,e.slug),title:e.title.rendered,blocks:(0,Le.parse)(e.content.raw),templatePart:e})))),[i]),c=(0,Rt.useAsyncList)(s),{createSuccessNotice:u}=(0,Ye.useDispatch)(wa.store),m=py(r,a),d=(0,Rt.useAsyncList)(m),{replaceInnerBlocks:p}=(0,Ye.useDispatch)(Fe.store),g=(0,Re.useCallback)((e=>{var o;t({slug:e.slug,theme:e.theme,area:void 0}),u((0,De.sprintf)((0,De.__)('Template Part "%s" inserted.'),(null===(o=e.title)||void 0===o?void 0:o.rendered)||e.slug),{type:"snackbar"}),n()}),[]),h=gy(r,t);return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)("div",{className:"block-library-template-part__selection-content"},!!s.length&&(0,Re.createElement)("div",null,(0,Re.createElement)("h2",null,(0,De.__)("Existing template parts")),(0,Re.createElement)(Fe.__experimentalBlockPatternsList,{blockPatterns:s,shownPatterns:c,onClickPattern:e=>{g(e.templatePart)}})),!!m.length&&(0,Re.createElement)("div",null,(0,Re.createElement)("h2",null,(0,De.__)("Patterns")),(0,Re.createElement)(Fe.__experimentalBlockPatternsList,{blockPatterns:m,shownPatterns:d,onClickPattern:(e,t)=>{l?p(a,t):h(t,e.title),n()}}))))}function fy(e){let{tagName:t,setAttributes:n,isEntityAvailable:o,templatePartId:r,defaultWrapper:a}=e;const[l,i]=(0,Je.useEntityProp)("postType","wp_template_part","area",r),[s,c]=(0,Je.useEntityProp)("postType","wp_template_part","title",r),{areaOptions:u}=(0,Ye.useSelect)((e=>({areaOptions:e("core/editor").__experimentalGetDefaultTemplatePartAreas().map((e=>{let{label:t,area:n}=e;return{label:t,value:n}}))})),[]);return(0,Re.createElement)(Fe.InspectorControls,{__experimentalGroup:"advanced"},o&&(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(He.TextControl,{label:(0,De.__)("Title"),value:s,onChange:e=>{c(e)},onFocus:e=>e.target.select()}),(0,Re.createElement)(He.SelectControl,{label:(0,De.__)("Area"),labelPosition:"top",options:u,value:l,onChange:i})),(0,Re.createElement)(He.SelectControl,{label:(0,De.__)("HTML element"),options:[{label:(0,De.sprintf)((0,De.__)("Default based on area (%s)"),`<${a}>`),value:""},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"},{label:"<div>",value:"div"}],value:t||"",onChange:e=>n({tagName:e})}))}function _y(e){let{postId:t,hasInnerBlocks:n,layout:o,tagName:r,blockProps:a,clientId:l}=e;const i=(0,Ye.useSelect)((e=>{var t;const{getSettings:n}=e(Fe.store);return null===(t=n())||void 0===t?void 0:t.supportsLayout}),[]),s=(0,Fe.useSetting)("layout")||{},c=o&&o.inherit?s:o,[u,m,d]=(0,Je.useEntityBlockEditor)("postType","wp_template_part",{id:t}),p=(0,Fe.useInnerBlocksProps)(a,{value:u,onInput:m,onChange:d,renderAppender:n?void 0:Fe.InnerBlocks.ButtonBlockAppender,__experimentalLayout:i?c:void 0});return(0,Re.createElement)(Fe.__experimentalBlockContentOverlay,{clientId:l,tagName:r,wrapperProps:p})}var ky=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var wy=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var xy=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));const Ey=[{name:"header",icon:ky,title:(0,De.__)("Header"),description:(0,De.__)("The Header template defines a page area that typically contains a title, logo, and main navigation."),attributes:{area:"header"},scope:["inserter"]},{name:"footer",icon:wy,title:(0,De.__)("Footer"),description:(0,De.__)("The Footer template defines a page area that typically contains site credits, social links, or any other combination of blocks."),attributes:{area:"footer"},scope:["inserter"]}];Ey.forEach((e=>{e.isActive||(e.isActive=(e,t)=>{const{area:n,theme:o,slug:r}=e;if(n)return n===t.area;if(!r)return!1;const a=(0,Ye.select)(Je.store).getEntityRecord("postType","wp_template_part",`${o}//${r}`);return(null==a?void 0:a.area)===t.area})}));var Cy=Ey;const Sy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/template-part",title:"Template Part",category:"theme",description:"Edit the different global regions of your site, like the header, footer, sidebar, or create your own.",textdomain:"default",attributes:{slug:{type:"string"},theme:{type:"string"},tagName:{type:"string"},area:{type:"string"}},supports:{align:!0,html:!1,reusable:!1},editorStyle:"wp-block-template-part-editor"},{name:By}=Sy,Ty={icon:my,__experimentalLabel:e=>{var t;let{slug:n,theme:o}=e;if(!n)return;const r=(0,Ye.select)(Je.store).getEntityRecord("postType","wp_template_part",o+"//"+n);return r?(0,Uu.decodeEntities)(null===(t=r.title)||void 0===t?void 0:t.rendered)||(0,ht.startCase)(r.slug):void 0},edit:function(e){let{attributes:t,setAttributes:n,clientId:o}=e;const{slug:r,theme:a,tagName:l,layout:i={}}=t,s=em(a,r),[c,u]=(0,Fe.__experimentalUseNoRecursiveRenders)(s),[m,d]=(0,Re.useState)(!1),{isResolved:p,innerBlocks:g,isMissing:h,area:v}=(0,Ye.useSelect)((e=>{const{getEditedEntityRecord:n,hasFinishedResolution:r}=e(Je.store),{getBlocks:a}=e(Fe.store),l=["postType","wp_template_part",s],i=s?n(...l):null,c=(null==i?void 0:i.area)||t.area,u=!!s&&r("getEditedEntityRecord",l);return{innerBlocks:a(o),isResolved:u,isMissing:u&&(0,ht.isEmpty)(i),area:c}}),[s,o]),{templateParts:b}=dy(v,s),y=py(v,o),f=!!b.length||!!y.length,_=hy(v),k=(0,Fe.useBlockProps)(),w=!r,x=!w&&!h&&p,E=l||_.tagName;return 0===g.length&&(r&&!a||r&&h)?(0,Re.createElement)(E,k,(0,Re.createElement)(Fe.Warning,null,(0,De.sprintf)((0,De.__)("Template part has been deleted or is unavailable: %s"),r))):x&&c?(0,Re.createElement)(E,k,(0,Re.createElement)(Fe.Warning,null,(0,De.__)("Block cannot be rendered inside itself."))):(0,Re.createElement)(u,null,(0,Re.createElement)(fy,{tagName:l,setAttributes:n,isEntityAvailable:x,templatePartId:s,defaultWrapper:_.tagName}),w&&(0,Re.createElement)(E,k,(0,Re.createElement)(by,{area:t.area,templatePartId:s,clientId:o,setAttributes:n,onOpenSelectionModal:()=>d(!0)})),x&&f&&(0,Re.createElement)(Fe.BlockControls,null,(0,Re.createElement)(He.ToolbarGroup,{className:"wp-block-template-part__block-control-group"},(0,Re.createElement)(He.ToolbarButton,{onClick:()=>d(!0)},(0,De.__)("Replace")))),x&&(0,Re.createElement)(_y,{clientId:o,tagName:E,blockProps:k,postId:s,hasInnerBlocks:g.length>0,layout:i}),!w&&!p&&(0,Re.createElement)(E,k,(0,Re.createElement)(He.Spinner,null)),m&&(0,Re.createElement)(He.Modal,{className:"block-editor-template-part__selection-modal",title:(0,De.sprintf)((0,De.__)("Choose a %s"),_.label.toLowerCase()),closeLabel:(0,De.__)("Cancel"),onRequestClose:()=>d(!1)},(0,Re.createElement)(yy,{templatePartId:s,clientId:o,area:v,setAttributes:n,onClose:()=>d(!1)})))}};(0,Vi.addFilter)("blocks.registerBlockType","core/template-part",(function(e,t){if("core/template-part"!==t)return e;if(!e.variations||!e.variations.length)return{...e,variations:Cy};if(e.variations){const t=(e,t)=>{const{area:n,theme:o,slug:r}=e;if(n)return n===t.area;if(!r)return!1;const a=(0,Ye.select)(Je.store).getEntityRecord("postType","wp_template_part",`${o}//${r}`);return(null==a?void 0:a.area)===t.area},n=e.variations.map((e=>{return{...e,...!e.isActive&&{isActive:t},..."string"==typeof e.icon&&{icon:(n=e.icon,"header"===n?ky:"footer"===n?wy:"sidebar"===n?xy:my)}};var n}));return{...e,variations:n}}return e}));const Ny=["core/post-template","core/post-content"];(0,Vi.addFilter)("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromPostTemplates",((e,t,n,o)=>{let{getBlock:r,getBlockParentsByBlockName:a}=o;if("core/template-part"!==t.name)return e;for(const e of Ny){var l;if((null===(l=r(n))||void 0===l?void 0:l.name)===e||a(n,e).length)return!1}return!0}));var Py=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"}));const zy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/term-description",title:"Term Description",category:"theme",description:"Display the description of categories, tags and custom taxonomies when viewing an archive.",textdomain:"default",attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-term-description-editor"},{name:Iy}=zy,My={icon:Py,edit:function(e){let{attributes:t,setAttributes:n,mergedStyle:o}=e;const{textAlign:r}=t,a=(0,Fe.useBlockProps)({className:Qe()({[`has-text-align-${r}`]:r}),style:o});return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(Fe.AlignmentControl,{value:r,onChange:e=>{n({textAlign:e})}})),(0,Re.createElement)("div",a,(0,Re.createElement)("div",{className:"wp-block-term-description__placeholder"},(0,Re.createElement)("span",null,(0,De.__)("Term Description")))))}};const Ly={to:[{type:"block",blocks:["core/columns"],transform:e=>{let{className:t,columns:n,content:o,width:r}=e;return(0,Le.createBlock)("core/columns",{align:"wide"===r||"full"===r?r:void 0,className:t,columns:n},o.map((e=>{let{children:t}=e;return(0,Le.createBlock)("core/column",{},[(0,Le.createBlock)("core/paragraph",{content:t})])})))}}]};var Ry=Ly;const Vy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/text-columns",title:"Text Columns (deprecated)",icon:"columns",category:"design",description:"This block is deprecated. Please use the Columns block instead.",textdomain:"default",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},editorStyle:"wp-block-text-columns-editor",style:"wp-block-text-columns"},{name:Ay}=Vy,Hy={transforms:Ry,getEditWrapperProps(e){const{width:t}=e;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){let{attributes:t,setAttributes:n}=e;const{width:o,content:r,columns:a}=t;return Nc()("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,null,(0,Re.createElement)(Fe.BlockAlignmentToolbar,{value:o,onChange:e=>n({width:e}),controls:["center","wide","full"]})),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,null,(0,Re.createElement)(He.RangeControl,{label:(0,De.__)("Columns"),value:a,onChange:e=>n({columns:e}),min:2,max:4,required:!0}))),(0,Re.createElement)("div",(0,Fe.useBlockProps)({className:`align${o} columns-${a}`}),(0,ht.times)(a,(e=>(0,Re.createElement)("div",{className:"wp-block-column",key:`column-${e}`},(0,Re.createElement)(Fe.RichText,{tagName:"p",value:(0,ht.get)(r,[e,"children"]),onChange:t=>{n({content:[...r.slice(0,e),{children:t},...r.slice(e+1)]})},"aria-label":(0,De.sprintf)((0,De.__)("Column %d text"),e+1),placeholder:(0,De.__)("New Column")}))))))},save:function(e){let{attributes:t}=e;const{width:n,content:o,columns:r}=t;return(0,Re.createElement)("div",Fe.useBlockProps.save({className:`align${n} columns-${r}`}),(0,ht.times)(r,(e=>(0,Re.createElement)("div",{className:"wp-block-column",key:`column-${e}`},(0,Re.createElement)(Fe.RichText.Content,{tagName:"p",value:(0,ht.get)(o,[e,"children"])})))))}};var Dy=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"}));const Fy={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save(e){let{attributes:t}=e;const{textAlign:n,content:o}=t;return(0,Re.createElement)(Fe.RichText.Content,{tagName:"pre",style:{textAlign:n},value:o})}},$y={attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},spacing:{padding:!0}},save(e){let{attributes:t}=e;const{textAlign:n,content:o}=t,r=Qe()({[`has-text-align-${n}`]:n});return(0,Re.createElement)("pre",Fe.useBlockProps.save({className:r}),(0,Re.createElement)(Fe.RichText.Content,{value:o}))},migrate:Ht,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}};var Gy=[$y,Fy];const Uy={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,Le.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,Le.createBlock)("core/paragraph",e)}]};var Oy=Uy;const qy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/verse",title:"Verse",category:"text",description:"Insert poetry. Use special spacing formats. Or quote song lyrics.",keywords:["poetry","poem"],textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},spacing:{padding:!0}},style:"wp-block-verse",editorStyle:"wp-block-verse-editor"},{name:Wy}=qy,jy={icon:Dy,example:{attributes:{content:(0,De.__)("WHAT was he doing, the great god Pan,\n\tDown in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.")}},transforms:Oy,deprecated:Gy,merge:(e,t)=>({content:e.content+t.content}),edit:function(e){let{attributes:t,setAttributes:n,mergeBlocks:o,onRemove:r,style:a}=e;const{textAlign:l,content:i}=t,s=(0,Fe.useBlockProps)({className:Qe()({[`has-text-align-${l}`]:l}),style:a});return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,null,(0,Re.createElement)(Fe.AlignmentToolbar,{value:l,onChange:e=>{n({textAlign:e})}})),(0,Re.createElement)(Fe.RichText,je({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:i,onChange:e=>{n({content:e})},"aria-label":(0,De.__)("Verse text"),placeholder:(0,De.__)("Write verse"),onRemove:r,onMerge:o,textAlign:l},s,{__unstablePastePlainText:!0})))},save:function(e){let{attributes:t}=e;const{textAlign:n,content:o}=t,r=Qe()({[`has-text-align-${n}`]:n});return(0,Re.createElement)("pre",Fe.useBlockProps.save({className:r}),(0,Re.createElement)(Fe.RichText.Content,{value:o}))}};var Zy=(0,Re.createElement)(Ve.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Re.createElement)(Ve.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"}));const Qy=[{value:"auto",label:(0,De.__)("Auto")},{value:"metadata",label:(0,De.__)("Metadata")},{value:"none",label:(0,De._x)("None","Preload value")}];var Ky=e=>{let{setAttributes:t,attributes:n}=e;const{autoplay:o,controls:r,loop:a,muted:l,playsInline:i,preload:s}=n,c=(0,De.__)("Autoplay may cause usability issues for some users."),u=Re.Platform.select({web:(0,Re.useCallback)((e=>e?c:null),[]),native:c}),m=(0,Re.useMemo)((()=>{const e=e=>n=>{t({[e]:n})};return{autoplay:e("autoplay"),loop:e("loop"),muted:e("muted"),controls:e("controls"),playsInline:e("playsInline")}}),[]),d=(0,Re.useCallback)((e=>{t({preload:e})}),[]);return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Autoplay"),onChange:m.autoplay,checked:o,help:u}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Loop"),onChange:m.loop,checked:a}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Muted"),onChange:m.muted,checked:l}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Playback controls"),onChange:m.controls,checked:r}),(0,Re.createElement)(He.ToggleControl,{label:(0,De.__)("Play inline"),onChange:m.playsInline,checked:i}),(0,Re.createElement)(He.SelectControl,{label:(0,De.__)("Preload"),value:s,onChange:d,options:Qy,hideCancelButton:!0}))};var Jy=(0,Re.createElement)(Ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Re.createElement)(Ve.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"}));const Yy=["text/vtt"],Xy="subtitles",ef=[{label:(0,De.__)("Subtitles"),value:"subtitles"},{label:(0,De.__)("Captions"),value:"captions"},{label:(0,De.__)("Descriptions"),value:"descriptions"},{label:(0,De.__)("Chapters"),value:"chapters"},{label:(0,De.__)("Metadata"),value:"metadata"}],tf=(0,Re.createElement)(He.SVG,{width:"18",height:"14",viewBox:"0 0 18 14",role:"img",fill:"none"},(0,Re.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"}),(0,Re.createElement)(He.Path,{d:"M3 7H15",stroke:"black",strokeWidth:"1.5"}),(0,Re.createElement)(He.Path,{d:"M3 10L15 10",stroke:"black",strokeWidth:"1.5"}));function nf(e){let t,{tracks:n,onEditPress:o}=e;return t=0===n.length?(0,Re.createElement)("p",{className:"block-library-video-tracks-editor__tracks-informative-message"},(0,De.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")):n.map(((e,t)=>(0,Re.createElement)("div",{key:t,className:"block-library-video-tracks-editor__track-list-track"},(0,Re.createElement)("span",null,e.label," "),(0,Re.createElement)(He.Button,{variant:"tertiary",onClick:()=>o(t),"aria-label":(0,De.sprintf)((0,De.__)("Edit %s"),e.label)},(0,De.__)("Edit"))))),(0,Re.createElement)(He.MenuGroup,{label:(0,De.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list"},t)}function of(e){let{track:t,onChange:n,onClose:o,onRemove:r}=e;const{src:a="",label:l="",srcLang:i="",kind:s=Xy}=t,c=a.startsWith("blob:")?"":(0,Ke.getFilename)(a)||"";return(0,Re.createElement)(He.NavigableMenu,null,(0,Re.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor"},(0,Re.createElement)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label"},(0,De.__)("Edit track")),(0,Re.createElement)("span",null,(0,De.__)("File"),": ",(0,Re.createElement)("b",null,c)),(0,Re.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor-label-language"},(0,Re.createElement)(He.TextControl,{autoFocus:!0,onChange:e=>n({...t,label:e}),label:(0,De.__)("Label"),value:l,help:(0,De.__)("Title of track")}),(0,Re.createElement)(He.TextControl,{onChange:e=>n({...t,srcLang:e}),label:(0,De.__)("Source language"),value:i,help:(0,De.__)("Language tag (en, fr, etc.)")})),(0,Re.createElement)(He.SelectControl,{className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:ef,value:s,label:(0,De.__)("Kind"),onChange:e=>{n({...t,kind:e})}}),(0,Re.createElement)("div",{className:"block-library-video-tracks-editor__single-track-editor-buttons-container"},(0,Re.createElement)(He.Button,{variant:"secondary",onClick:()=>{const e={};let r=!1;""===l&&(e.label=(0,De.__)("English"),r=!0),""===i&&(e.srcLang="en",r=!0),void 0===t.kind&&(e.kind=Xy,r=!0),r&&n({...t,...e}),o()}},(0,De.__)("Close")),(0,Re.createElement)(He.Button,{isDestructive:!0,variant:"link",onClick:r},(0,De.__)("Remove track")))))}function rf(e){let{tracks:t=[],onChange:n}=e;const o=(0,Ye.useSelect)((e=>e(Fe.store).getSettings().mediaUpload),[]),[r,a]=(0,Re.useState)(null);return o?(0,Re.createElement)(He.Dropdown,{contentClassName:"block-library-video-tracks-editor",renderToggle:e=>{let{isOpen:t,onToggle:n}=e;return(0,Re.createElement)(He.ToolbarButton,{label:(0,De.__)("Text tracks"),showTooltip:!0,"aria-expanded":t,"aria-haspopup":"true",onClick:n,icon:tf})},renderContent:e=>{let{}=e;return null!==r?(0,Re.createElement)(of,{track:t[r],onChange:e=>{const o=[...t];o[r]=e,n(o)},onClose:()=>a(null),onRemove:()=>{n(t.filter(((e,t)=>t!==r))),a(null)}}):(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(He.NavigableMenu,null,(0,Re.createElement)(nf,{tracks:t,onEditPress:a}),(0,Re.createElement)(He.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,De.__)("Add tracks")},(0,Re.createElement)(Fe.MediaUpload,{onSelect:e=>{let{url:o}=e;const r=t.length;n([...t,{src:o}]),a(r)},allowedTypes:Yy,render:e=>{let{open:t}=e;return(0,Re.createElement)(He.MenuItem,{icon:Jy,onClick:t},(0,De.__)("Open Media Library"))}}),(0,Re.createElement)(Fe.MediaUploadCheck,null,(0,Re.createElement)(He.FormFileUpload,{onChange:e=>{const r=e.target.files,l=t.length;o({allowedTypes:Yy,filesList:r,onFileChange:e=>{let[{url:o}]=e;const r=[...t];r[l]||(r[l]={}),r[l]={...t[l],src:o},n(r),a(l)}})},accept:".vtt,text/vtt",render:e=>{let{openFileDialog:t}=e;return(0,Re.createElement)(He.MenuItem,{icon:Fs,onClick:()=>{t()}},(0,De.__)("Upload"))}})))))}}):null}function af(e){let{tracks:t=[]}=e;return t.map((e=>(0,Re.createElement)("track",je({key:e.src},e))))}const lf=["video"],sf=["image"];var cf=(0,He.withNotices)((function e(t){let{isSelected:n,noticeUI:o,attributes:r,className:a,setAttributes:l,insertBlocksAfter:i,onReplace:s,noticeOperations:c}=t;const u=(0,Rt.useInstanceId)(e),m=(0,Re.useRef)(),d=(0,Re.useRef)(),{id:p,caption:g,controls:h,poster:v,src:b,tracks:y}=r,f=!p&&(0,dt.isBlobURL)(b),_=(0,Ye.useSelect)((e=>e(Fe.store).getSettings().mediaUpload));function k(e){var t,n;e&&e.url?l({src:e.url,id:e.id,poster:(null===(t=e.image)||void 0===t?void 0:t.src)!==e.icon?null===(n=e.image)||void 0===n?void 0:n.src:void 0}):l({src:void 0,id:void 0,poster:void 0})}function w(e){if(e!==b){const t=xt({attributes:{url:e}});if(void 0!==t)return void s(t);l({src:e,id:void 0,poster:void 0})}}function x(e){c.removeAllNotices(),c.createErrorNotice(e)}(0,Re.useEffect)((()=>{if(!p&&(0,dt.isBlobURL)(b)){const e=(0,dt.getBlobByURL)(b);e&&_({filesList:[e],onFileChange:e=>{let[{url:t}]=e;l({src:t})},onError:e=>{c.createErrorNotice(e)},allowedTypes:lf})}}),[]),(0,Re.useEffect)((()=>{m.current&&m.current.load()}),[v]);const E=Qe()(a,{"is-transient":f}),C=(0,Fe.useBlockProps)({className:E});if(!b)return(0,Re.createElement)("div",C,(0,Re.createElement)(Fe.MediaPlaceholder,{icon:(0,Re.createElement)(Fe.BlockIcon,{icon:Zy}),onSelect:k,onSelectURL:w,accept:"video/*",allowedTypes:lf,value:r,notices:o,onError:x}));const S=`video-block__poster-image-description-${u}`;return(0,Re.createElement)(Re.Fragment,null,(0,Re.createElement)(Fe.BlockControls,{group:"block"},(0,Re.createElement)(rf,{tracks:y,onChange:e=>{l({tracks:e})}})),(0,Re.createElement)(Fe.BlockControls,{group:"other"},(0,Re.createElement)(Fe.MediaReplaceFlow,{mediaId:p,mediaURL:b,allowedTypes:lf,accept:"video/*",onSelect:k,onSelectURL:w,onError:x})),(0,Re.createElement)(Fe.InspectorControls,null,(0,Re.createElement)(He.PanelBody,{title:(0,De.__)("Video settings")},(0,Re.createElement)(Ky,{setAttributes:l,attributes:r}),(0,Re.createElement)(Fe.MediaUploadCheck,null,(0,Re.createElement)(He.BaseControl,{className:"editor-video-poster-control"},(0,Re.createElement)(He.BaseControl.VisualLabel,null,(0,De.__)("Poster image")),(0,Re.createElement)(Fe.MediaUpload,{title:(0,De.__)("Select poster image"),onSelect:function(e){l({poster:e.url})},allowedTypes:sf,render:e=>{let{open:t}=e;return(0,Re.createElement)(He.Button,{variant:"primary",onClick:t,ref:d,"aria-describedby":S},v?(0,De.__)("Replace"):(0,De.__)("Select"))}}),(0,Re.createElement)("p",{id:S,hidden:!0},v?(0,De.sprintf)((0,De.__)("The current poster image url is %s"),v):(0,De.__)("There is no poster image currently selected")),!!v&&(0,Re.createElement)(He.Button,{onClick:function(){l({poster:void 0}),d.current.focus()},variant:"tertiary"},(0,De.__)("Remove")))))),(0,Re.createElement)("figure",C,(0,Re.createElement)(He.Disabled,{isDisabled:!n},(0,Re.createElement)("video",{controls:h,poster:v,src:b,ref:m},(0,Re.createElement)(af,{tracks:y}))),f&&(0,Re.createElement)(He.Spinner,null),(!Fe.RichText.isEmpty(g)||n)&&(0,Re.createElement)(Fe.RichText,{tagName:"figcaption","aria-label":(0,De.__)("Video caption text"),placeholder:(0,De.__)("Add caption"),value:g,onChange:e=>l({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>i((0,Le.createBlock)("core/paragraph"))})))}));const uf={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("video/"),transform(e){const t=e[0];return(0,Le.createBlock)("core/video",{src:(0,dt.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:e=>{let{named:{src:t,mp4:n,m4v:o,webm:r,ogv:a,flv:l}}=e;return t||n||o||r||a||l}},poster:{type:"string",shortcode:e=>{let{named:{poster:t}}=e;return t}},loop:{type:"string",shortcode:e=>{let{named:{loop:t}}=e;return t}},autoplay:{type:"string",shortcode:e=>{let{named:{autoplay:t}}=e;return t}},preload:{type:"string",shortcode:e=>{let{named:{preload:t}}=e;return t}}}}]};var mf=uf;const df={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",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},editorStyle:"wp-block-video-editor",style:"wp-block-video"},{name:pf}=df,gf={icon:Zy,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,De.__)("Wood thrush singing in Central Park, NYC.")}},transforms:mf,edit:cf,save:function(e){let{attributes:t}=e;const{autoplay:n,caption:o,controls:r,loop:a,muted:l,poster:i,preload:s,src:c,playsInline:u,tracks:m}=t;return(0,Re.createElement)("figure",Fe.useBlockProps.save(),c&&(0,Re.createElement)("video",{autoPlay:n,controls:r,loop:a,muted:l,poster:i,preload:"metadata"!==s?s:void 0,src:c,playsInline:u},(0,Re.createElement)(af,{tracks:m})),!Fe.RichText.isEmpty(o)&&(0,Re.createElement)(Fe.RichText.Content,{tagName:"figcaption",value:o}))}},hf=e=>{if(!e)return;const{metadata:t,settings:n,name:o}=e;(0,Le.registerBlockType)({name:o,...t},n)},vf=()=>[j,I,N,B,R,V,ge,e,r,a,l,i,s,window.wp&&window.wp.oldEditor?c:null,u,m,d,E,C,S,T,z,M,L,H,D,F,O,W,q,ae,le,he,be,ye,fe,_e,Ee,Ce,Se,Be,Te,ze,Ie,Me,$,G,U,ke,xe,we,ie,Ne,t,re,X,ee,J,Z,Y,oe,te,ne,ce,ue,me,de,se,ve,p,g,h,v,b,y,_,k,w,x,f,K,P,A,Pe,pe,Q],bf=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vf();e.forEach(hf),(0,Le.setDefaultBlockName)(Fd),window.wp&&window.wp.oldEditor&&(0,Le.setFreeformContentHandlerName)(Mn),(0,Le.setUnregisteredTypeHandlerName)(Nu),(0,Le.setGroupingBlockName)(ts)},yf=void 0}(),(window.wp=window.wp||{}).blockLibrary=o}();