/*! This file is auto-generated */ this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="K51g")}({"1K8p":function(e,t,n){"use strict";var o=n("jrfk"),r=n("ez49");function a(e){var t=0,n=0,o=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||r)&&e.deltaMode&&(1==e.deltaMode?(o*=40,r*=40):(o*=800,r*=800)),o&&!t&&(t=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:r}}a.getEventType=function(){return o.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=a},"1Yn1":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));t.a=a},"1ZqX":function(e,t){e.exports=window.wp.data},"1iEr":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=a},"2gm7":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const a=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=a},"4eJC":function(e,t,n){e.exports=function(e,t){var n,o,r=0;function a(){var a,c,l=n,i=arguments.length;e:for(;l;){if(l.args.length===arguments.length){for(c=0;cc?(n=a/c,l=100,i=Math.round(l/n)):(n=c/a,i=100,l=Math.round(i/n)),(l>a||i>c||l<10||i<10)&&(l=a,i=c)),{srcLeft:o,srcTop:r,srcWidth:a,srcHeight:c,destWidth:l,destHeight:i}}},{key:"_simpleAlgorithm",value:function(e,t,n){for(var o=0,r=0,a=0,c=0,l=0,i=0;io?-1:n===o?0:1}))[0],5),m=d[0],b=d[1],p=d[2],g=d[3],h=d[4];return g?[Math.round(m/g),Math.round(b/g),Math.round(p/g),Math.round(g/h)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,n){var o=this,r=(n=n||{})&&n.data,a=this._getDefaultColor(n),c=function(){s(),t.call(e,o.getColor(e,n),r)},l=function(){s(),t.call(e,o._prepareResult(a,new Error("Image error")),r)},i=function(){s(),t.call(e,o._prepareResult(a,new Error("Image abort")),r)},s=function(){e.removeEventListener("load",c),e.removeEventListener("error",l),e.removeEventListener("abort",i)};e.addEventListener("load",c),e.addEventListener("error",l),e.addEventListener("abort",i)}},{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")}}])&&e(o.prototype,r),a&&e(o,a),n}()}()},FqII:function(e,t){e.exports=window.wp.date},GRId:function(e,t){e.exports=window.wp.element},HSyU:function(e,t){e.exports=window.wp.blocks},JREk:function(e,t){e.exports=window.wp.serverSideRender},K51g:function(e,t,n){"use strict";n.r(t),n.d(t,"__experimentalGetCoreBlocks",(function(){return mm})),n.d(t,"registerCoreBlocks",(function(){return bm})),n.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return pm}));var o={};n.r(o),n.d(o,"metadata",(function(){return ze})),n.d(o,"name",(function(){return Pe})),n.d(o,"settings",(function(){return Me}));var r={};n.r(r),n.d(r,"metadata",(function(){return Qt})),n.d(r,"name",(function(){return Jt})),n.d(r,"settings",(function(){return Yt}));var a={};n.r(a),n.d(a,"metadata",(function(){return pn})),n.d(a,"name",(function(){return gn})),n.d(a,"settings",(function(){return hn}));var c={};n.r(c),n.d(c,"metadata",(function(){return _n})),n.d(c,"name",(function(){return kn})),n.d(c,"settings",(function(){return En}));var l={};n.r(l),n.d(l,"metadata",(function(){return $n})),n.d(l,"name",(function(){return Zn})),n.d(l,"settings",(function(){return Qn}));var i={};n.r(i),n.d(i,"metadata",(function(){return Xn})),n.d(i,"name",(function(){return eo})),n.d(i,"settings",(function(){return to}));var s={};n.r(s),n.d(s,"metadata",(function(){return lo})),n.d(s,"name",(function(){return io})),n.d(s,"settings",(function(){return so}));var u={};n.r(u),n.d(u,"metadata",(function(){return Co})),n.d(u,"name",(function(){return xo})),n.d(u,"settings",(function(){return So}));var d={};n.r(d),n.d(d,"metadata",(function(){return Mo})),n.d(d,"name",(function(){return No})),n.d(d,"settings",(function(){return Ro}));var m={};n.r(m),n.d(m,"metadata",(function(){return Do})),n.d(m,"name",(function(){return Fo})),n.d(m,"settings",(function(){return Go}));var b={};n.r(b),n.d(b,"metadata",(function(){return Wo})),n.d(b,"name",(function(){return $o})),n.d(b,"settings",(function(){return Zo}));var p={};n.r(p),n.d(p,"metadata",(function(){return Xo})),n.d(p,"name",(function(){return er})),n.d(p,"settings",(function(){return tr}));var g={};n.r(g),n.d(g,"metadata",(function(){return gr})),n.d(g,"name",(function(){return hr})),n.d(g,"settings",(function(){return vr}));var h={};n.r(h),n.d(h,"metadata",(function(){return yr})),n.d(h,"name",(function(){return wr})),n.d(h,"settings",(function(){return _r}));var v={};n.r(v),n.d(v,"metadata",(function(){return $r})),n.d(v,"name",(function(){return Zr})),n.d(v,"settings",(function(){return Qr}));var O={};n.r(O),n.d(O,"metadata",(function(){return xa})),n.d(O,"name",(function(){return Sa})),n.d(O,"settings",(function(){return Ba}));var j={};n.r(j),n.d(j,"metadata",(function(){return Ia})),n.d(j,"name",(function(){return Aa})),n.d(j,"settings",(function(){return Da}));var f={};n.r(f),n.d(f,"metadata",(function(){return qa})),n.d(f,"name",(function(){return Ua})),n.d(f,"settings",(function(){return Wa}));var y={};n.r(y),n.d(y,"metadata",(function(){return dc})),n.d(y,"name",(function(){return mc})),n.d(y,"settings",(function(){return bc}));var w={};n.r(w),n.d(w,"metadata",(function(){return gc})),n.d(w,"name",(function(){return hc})),n.d(w,"settings",(function(){return vc}));var _={};n.r(_),n.d(_,"metadata",(function(){return Cc})),n.d(_,"name",(function(){return xc})),n.d(_,"settings",(function(){return Sc}));var k={};n.r(k),n.d(k,"metadata",(function(){return Zc})),n.d(k,"name",(function(){return Qc})),n.d(k,"settings",(function(){return Jc}));var E={};n.r(E),n.d(E,"metadata",(function(){return Kc})),n.d(E,"name",(function(){return Xc})),n.d(E,"settings",(function(){return el}));var C={};n.r(C),n.d(C,"metadata",(function(){return ml})),n.d(C,"name",(function(){return bl})),n.d(C,"settings",(function(){return pl}));var x={};n.r(x),n.d(x,"metadata",(function(){return hl})),n.d(x,"name",(function(){return vl})),n.d(x,"settings",(function(){return Ol}));var S={};n.r(S),n.d(S,"metadata",(function(){return wl})),n.d(S,"name",(function(){return _l})),n.d(S,"settings",(function(){return kl}));var B={};n.r(B),n.d(B,"metadata",(function(){return xl})),n.d(B,"name",(function(){return Sl})),n.d(B,"settings",(function(){return Bl}));var T={};n.r(T),n.d(T,"metadata",(function(){return Nl})),n.d(T,"name",(function(){return Rl})),n.d(T,"settings",(function(){return Vl}));var z={};n.r(z),n.d(z,"metadata",(function(){return Il})),n.d(z,"name",(function(){return Al})),n.d(z,"settings",(function(){return Dl}));var P={};n.r(P),n.d(P,"metadata",(function(){return Zl})),n.d(P,"name",(function(){return Ql})),n.d(P,"settings",(function(){return Jl}));var M={};n.r(M),n.d(M,"metadata",(function(){return Xl})),n.d(M,"name",(function(){return ei})),n.d(M,"settings",(function(){return ti}));var N={};n.r(N),n.d(N,"metadata",(function(){return oi})),n.d(N,"name",(function(){return ri})),n.d(N,"settings",(function(){return ai}));var R={};n.r(R),n.d(R,"metadata",(function(){return bi})),n.d(R,"name",(function(){return pi})),n.d(R,"settings",(function(){return gi}));var V={};n.r(V),n.d(V,"metadata",(function(){return fi})),n.d(V,"name",(function(){return yi})),n.d(V,"settings",(function(){return wi}));var H={};n.r(H),n.d(H,"metadata",(function(){return xi})),n.d(H,"name",(function(){return Si})),n.d(H,"settings",(function(){return Bi}));var L={};n.r(L),n.d(L,"metadata",(function(){return Ni})),n.d(L,"name",(function(){return Ri})),n.d(L,"settings",(function(){return Vi}));var I={};n.r(I),n.d(I,"metadata",(function(){return Ii})),n.d(I,"name",(function(){return Ai})),n.d(I,"settings",(function(){return Di}));var A={};n.r(A),n.d(A,"metadata",(function(){return ps})),n.d(A,"name",(function(){return gs})),n.d(A,"settings",(function(){return hs}));var D={};n.r(D),n.d(D,"metadata",(function(){return fs})),n.d(D,"name",(function(){return ys})),n.d(D,"settings",(function(){return ws}));var F={};n.r(F),n.d(F,"metadata",(function(){return Cs})),n.d(F,"name",(function(){return xs})),n.d(F,"settings",(function(){return Ss}));var G={};n.r(G),n.d(G,"metadata",(function(){return Us})),n.d(G,"name",(function(){return Ws})),n.d(G,"settings",(function(){return $s}));var q={};n.r(q),n.d(q,"metadata",(function(){return Js})),n.d(q,"name",(function(){return Ys})),n.d(q,"settings",(function(){return Ks}));var U={};n.r(U),n.d(U,"metadata",(function(){return nu})),n.d(U,"name",(function(){return ou})),n.d(U,"settings",(function(){return ru}));var W={};n.r(W),n.d(W,"metadata",(function(){return uu})),n.d(W,"name",(function(){return du})),n.d(W,"settings",(function(){return mu}));var $={};n.r($),n.d($,"metadata",(function(){return Ou})),n.d($,"name",(function(){return ju})),n.d($,"settings",(function(){return fu}));var Z={};n.r(Z),n.d(Z,"metadata",(function(){return ku})),n.d(Z,"name",(function(){return Eu})),n.d(Z,"settings",(function(){return Cu}));var Q={};n.r(Q),n.d(Q,"metadata",(function(){return Su})),n.d(Q,"name",(function(){return Bu})),n.d(Q,"settings",(function(){return Tu}));var J={};n.r(J),n.d(J,"metadata",(function(){return Nu})),n.d(J,"name",(function(){return Ru})),n.d(J,"settings",(function(){return Vu}));var Y={};n.r(Y),n.d(Y,"metadata",(function(){return nd})),n.d(Y,"name",(function(){return od})),n.d(Y,"settings",(function(){return rd}));var K={};n.r(K),n.d(K,"metadata",(function(){return cd})),n.d(K,"name",(function(){return ld})),n.d(K,"settings",(function(){return id}));var X={};n.r(X),n.d(X,"metadata",(function(){return bd})),n.d(X,"name",(function(){return pd})),n.d(X,"settings",(function(){return gd}));var ee={};n.r(ee),n.d(ee,"metadata",(function(){return Od})),n.d(ee,"name",(function(){return jd})),n.d(ee,"settings",(function(){return fd}));var te={};n.r(te),n.d(te,"metadata",(function(){return wd})),n.d(te,"name",(function(){return _d})),n.d(te,"settings",(function(){return kd}));var ne={};n.r(ne),n.d(ne,"metadata",(function(){return xd})),n.d(ne,"name",(function(){return Sd})),n.d(ne,"settings",(function(){return Bd}));var oe={};n.r(oe),n.d(oe,"metadata",(function(){return zd})),n.d(oe,"name",(function(){return Pd})),n.d(oe,"settings",(function(){return Md}));var re={};n.r(re),n.d(re,"metadata",(function(){return Rd})),n.d(re,"name",(function(){return Vd})),n.d(re,"settings",(function(){return Hd}));var ae={};n.r(ae),n.d(ae,"metadata",(function(){return Fd})),n.d(ae,"name",(function(){return Gd})),n.d(ae,"settings",(function(){return qd}));var ce={};n.r(ce),n.d(ce,"metadata",(function(){return Wd})),n.d(ce,"name",(function(){return $d})),n.d(ce,"settings",(function(){return Zd}));var le={};n.r(le),n.d(le,"metadata",(function(){return Jd})),n.d(le,"name",(function(){return Yd})),n.d(le,"settings",(function(){return Kd}));var ie={};n.r(ie),n.d(ie,"metadata",(function(){return om})),n.d(ie,"name",(function(){return rm})),n.d(ie,"settings",(function(){return am}));var se={};n.r(se),n.d(se,"metadata",(function(){return im})),n.d(se,"name",(function(){return sm})),n.d(se,"settings",(function(){return um}));var ue=n("jZUy"),de=n("axFQ"),me=n("HSyU"),be=n("YLtl"),pe=n("l3Sj"),ge=n("GRId"),he=n("Tqx9");var ve=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.Path,{d:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"})),Oe=n("TSYQ"),je=n.n(Oe);const fe={className:!1},ye={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"}},we=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}),{...Object(be.omit)(e,["customTextColor","customBackgroundColor","customFontSize"]),style:t}};var _e=[{supports:fe,attributes:{...Object(be.omit)(ye,["style"]),customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:we,save({attributes:e}){const{align:t,content:n,dropCap:o,backgroundColor:r,textColor:a,customBackgroundColor:c,customTextColor:l,fontSize:i,customFontSize:s,direction:u}=e,d=Object(de.getColorClassName)("color",a),m=Object(de.getColorClassName)("background-color",r),b=Object(de.getFontSizeClass)(i),p=je()({"has-text-color":a||l,"has-background":r||c,"has-drop-cap":o,["has-text-align-"+t]:t,[b]:b,[d]:d,[m]:m}),g={backgroundColor:m?void 0:c,color:d?void 0:l,fontSize:b?void 0:s};return Object(ge.createElement)(de.RichText.Content,{tagName:"p",style:g,className:p||void 0,value:n,dir:u})}},{supports:fe,attributes:{...Object(be.omit)(ye,["style"]),customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:we,save({attributes:e}){const{align:t,content:n,dropCap:o,backgroundColor:r,textColor:a,customBackgroundColor:c,customTextColor:l,fontSize:i,customFontSize:s,direction:u}=e,d=Object(de.getColorClassName)("color",a),m=Object(de.getColorClassName)("background-color",r),b=Object(de.getFontSizeClass)(i),p=je()({"has-text-color":a||l,"has-background":r||c,"has-drop-cap":o,[b]:b,[d]:d,[m]:m}),g={backgroundColor:m?void 0:c,color:d?void 0:l,fontSize:b?void 0:s,textAlign:t};return Object(ge.createElement)(de.RichText.Content,{tagName:"p",style:g,className:p||void 0,value:n,dir:u})}},{supports:fe,attributes:{...Object(be.omit)(ye,["style"]),customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate:we,save({attributes:e}){const{width:t,align:n,content:o,dropCap:r,backgroundColor:a,textColor:c,customBackgroundColor:l,customTextColor:i,fontSize:s,customFontSize:u}=e,d=Object(de.getColorClassName)("color",c),m=Object(de.getColorClassName)("background-color",a),b=s&&`is-${s}-text`,p=je()({["align"+t]:t,"has-background":a||l,"has-drop-cap":r,[b]:b,[d]:d,[m]:m}),g={backgroundColor:m?void 0:l,color:d?void 0:i,fontSize:b?void 0:u,textAlign:n};return Object(ge.createElement)(de.RichText.Content,{tagName:"p",style:g,className:p||void 0,value:o})}},{supports:fe,attributes:Object(be.omit)({...ye,fontSize:{type:"number"}},["style"]),save({attributes:e}){const{width:t,align:n,content:o,dropCap:r,backgroundColor:a,textColor:c,fontSize:l}=e,i=je()({["align"+t]:t,"has-background":a,"has-drop-cap":r}),s={backgroundColor:a,color:c,fontSize:l,textAlign:n};return Object(ge.createElement)("p",{style:s,className:i||void 0},o)},migrate:e=>we(Object(be.omit)({...e,customFontSize:Object(be.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:fe,attributes:{...ye,content:{type:"string",source:"html",default:""}},save:({attributes:e})=>Object(ge.createElement)(ge.RawHTML,null,e.content),migrate:e=>e}],ke=n("wx14"),Ee=n("tI+e");var Ce=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(ge.createElement)(he.Path,{d:"M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z"}));function xe({direction:e,setDirection:t}){return Object(pe.isRTL)()&&Object(ge.createElement)(Ee.ToolbarDropdownMenu,{controls:[{icon:Ce,title:Object(pe._x)("Left to right","editor button"),isActive:"ltr"===e,onClick(){t("ltr"===e?void 0:"ltr")}}]})}var Se=function({attributes:e,mergeBlocks:t,onReplace:n,onRemove:o,setAttributes:r,clientId:a}){const{align:c,content:l,direction:i,dropCap:s,placeholder:u}=e,d=Object(de.useSetting)("typography.dropCap"),m=Object(de.useBlockProps)({className:je()({"has-drop-cap":s,["has-text-align-"+c]:c}),style:{direction:i}});return Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.BlockControls,{group:"block"},Object(ge.createElement)(de.AlignmentControl,{value:c,onChange:e=>r({align:e})}),Object(ge.createElement)(xe,{direction:i,setDirection:e=>r({direction:e})})),d&&Object(ge.createElement)(de.InspectorControls,null,Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Text settings")},Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Drop cap"),checked:!!s,onChange:()=>r({dropCap:!s}),help:s?Object(pe.__)("Showing large initial letter."):Object(pe.__)("Toggle to show a large initial letter.")}))),Object(ge.createElement)(de.RichText,Object(ke.a)({identifier:"content",tagName:"p"},m,{value:l,onChange:e=>r({content:e}),onSplit:(t,n)=>{let o;(n||t)&&(o={...e,content:t});const r=Object(me.createBlock)("core/paragraph",o);return n&&(r.clientId=a),r},onMerge:t,onReplace:n,onRemove:o,"aria-label":l?Object(pe.__)("Paragraph block"):Object(pe.__)("Empty block; start writing or type forward slash to choose a block"),"data-empty":!l,placeholder:u||Object(pe.__)("Type / to choose a block"),__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})))};const{name:Be}={apiVersion:2,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the 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},fontSize:!0,lineHeight:!0,__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"};var Te={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){const t=Object(me.getBlockAttributes)(Be,e.outerHTML),{textAlign:n}=e.style||{};return"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),Object(me.createBlock)(Be,t)}}]};const ze={apiVersion:2,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the 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},fontSize:!0,lineHeight:!0,__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"},{name:Pe}=ze,Me={icon:ve,example:{attributes:{content:Object(pe.__)("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,{context:t}){if("accessibility"===t){const{content:t}=e;return Object(be.isEmpty)(t)?Object(pe.__)("Empty"):t}},transforms:Te,deprecated:_e,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:Se,save:function({attributes:e}){const{align:t,content:n,dropCap:o,direction:r}=e,a=je()({"has-drop-cap":o,["has-text-align-"+t]:t});return Object(ge.createElement)("p",de.useBlockProps.save({className:a,dir:r}),Object(ge.createElement)(de.RichText.Content,{value:n}))}};var Ne=Object(ge.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(he.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"}));const Re={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"}};var Ve=[{attributes:Re,save({attributes:e}){const{url:t,alt:n,caption:o,align:r,href:a,width:c,height:l,id:i}=e,s=je()({["align"+r]:r,"is-resized":c||l}),u=Object(ge.createElement)("img",{src:t,alt:n,className:i?"wp-image-"+i:null,width:c,height:l});return Object(ge.createElement)("figure",{className:s},a?Object(ge.createElement)("a",{href:a},u):u,!de.RichText.isEmpty(o)&&Object(ge.createElement)(de.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:Re,save({attributes:e}){const{url:t,alt:n,caption:o,align:r,href:a,width:c,height:l,id:i}=e,s=Object(ge.createElement)("img",{src:t,alt:n,className:i?"wp-image-"+i:null,width:c,height:l});return Object(ge.createElement)("figure",{className:r?"align"+r:null},a?Object(ge.createElement)("a",{href:a},s):s,!de.RichText.isEmpty(o)&&Object(ge.createElement)(de.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:Re,save({attributes:e}){const{url:t,alt:n,caption:o,align:r,href:a,width:c,height:l}=e,i=c||l?{width:c,height:l}:{},s=Object(ge.createElement)("img",Object(ke.a)({src:t,alt:n},i));let u={};return c?u={width:c}:"left"!==r&&"right"!==r||(u={maxWidth:"50%"}),Object(ge.createElement)("figure",{className:r?"align"+r:null,style:u},a?Object(ge.createElement)("a",{href:a},s):s,!de.RichText.isEmpty(o)&&Object(ge.createElement)(de.RichText.Content,{tagName:"figcaption",value:o}))}}],He=n("xTGt"),Le=n("1ZqX"),Ie=n("K9lf"),Ae=n("Mmq9");var De=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.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"})),Fe=n("NTP4");var Ge=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.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"})),qe=n("onLe");const Ue=[{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"}];var We=n("A/WM"),$e=n.n(We),Ze=n("4eJC"),Qe=n.n(Ze);const{name:Je}={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter, Instagram 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"},Ye=e=>e&&e.includes('class="wp-embedded-content"'),Ke=(e,t={})=>{var n;const{preview:o,attributes:{url:r,providerNameSlug:a,type:c}={}}=e;if(!r||!Object(me.getBlockType)(Je))return;const l=(e=>{var t;return null===(t=Object(me.getBlockVariations)(Je))||void 0===t?void 0:t.find(({patterns:t})=>((e,t=[])=>t.some(t=>e.match(t)))(e,t))})(r),i="wordpress"===a||"wp-embed"===c;if(!i&&l&&(l.attributes.providerNameSlug!==a||!a))return Object(me.createBlock)(Je,{url:r,...l.attributes});const s=null===(n=Object(me.getBlockVariations)(Je))||void 0===n?void 0:n.find(({name:e})=>"wordpress"===e);return s&&o&&Ye(o.html)&&!i?Object(me.createBlock)(Je,{url:r,...s.attributes,...t}):void 0},Xe=e=>{if(!e)return e;const t=Ue.reduce((e,{className:t})=>(e[t]=!1,e),{"wp-has-aspect-ratio":!1});return $e()(e,t)};function et(e,t,n=!0){if(!n)return Xe(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=o.ratio){return e-o.ratio>.1?Xe(t):$e()(Xe(t),o.className,"wp-has-aspect-ratio")}}}return t}const tt=Qe()((e,t,n,o,r=!0)=>{if(!e)return{};const a={};let{type:c="rich"}=e;const{html:l,provider_name:i}=e,s=Object(be.kebabCase)((i||t).toLowerCase());return Ye(l)&&(c="wp-embed"),(l||"photo"===c)&&(a.type=c,a.providerNameSlug=s),a.className=et(l,n,o&&r),a});function nt(e,t){const[n,o]=Object(ge.useState)();function r(){o(e.current.clientWidth)}return Object(ge.useEffect)(r,t),Object(ge.useEffect)(()=>{const{defaultView:t}=e.current.ownerDocument;return t.addEventListener("resize",r),()=>{t.removeEventListener("resize",r)}},[]),n} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var ot=function(e,t){return(ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};var rt=function(){return(rt=Object.assign||function(e){for(var t,n=1,o=arguments.length;nu*r?{width:u*r,height:u}:{width:s,height:s/r}}function ut(e,t,n,o,r){void 0===r&&(r=0);var a=ft(t.width,t.height,r),c=a.width,l=a.height;return{x:dt(e.x,c,n.width,o),y:dt(e.y,l,n.height,o)}}function dt(e,t,n,o){var r=t*o/2-n/2;return Math.min(r,Math.max(e,-r))}function mt(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function bt(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function pt(e,t,n,o,r,a,c){void 0===a&&(a=0),void 0===c&&(c=!0);var l=c&&0===a?gt:ht,i={x:l(100,((t.width-n.width/r)/2-e.x/r)/t.width*100),y:l(100,((t.height-n.height/r)/2-e.y/r)/t.height*100),width:l(100,n.width/t.width*100/r),height:l(100,n.height/t.height*100/r)},s=Math.round(l(t.naturalWidth,i.width*t.naturalWidth/100)),u=Math.round(l(t.naturalHeight,i.height*t.naturalHeight/100)),d=t.naturalWidth>=t.naturalHeight*o?{width:Math.round(u*o),height:u}:{width:s,height:Math.round(s/o)};return{croppedAreaPercentages:i,croppedAreaPixels:rt(rt({},d),{x:Math.round(l(t.naturalWidth-d.width,i.x*t.naturalWidth/100)),y:Math.round(l(t.naturalHeight-d.height,i.y*t.naturalHeight/100))})}}function gt(e,t){return Math.min(e,Math.max(0,t))}function ht(e,t){return t}function vt(e,t,n){var o=t.width/t.naturalWidth,r=function(e,t,n){var o=t.width/t.naturalWidth;if(n)return n.height>n.width?n.height/o/e.height:n.width/o/e.width;var r=e.width/e.height;return t.naturalWidth>=t.naturalHeight*r?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,n),a=o*r;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*a,y:((t.naturalHeight-e.height)/2-e.y)*a},zoom:r}}function Ot(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function jt(e,t,n,o,r){var a=Math.cos,c=Math.sin,l=r*Math.PI/180;return[(e-n)*a(l)-(t-o)*c(l)+n,(e-n)*c(l)+(t-o)*a(l)+o]}function ft(e,t,n){var o=e/2,r=t/2,a=[jt(0,0,o,r,n),jt(e,0,o,r,n),jt(e,t,o,r,n),jt(0,t,o,r,n)],c=Math.min.apply(Math,a.map((function(e){return e[0]}))),l=Math.max.apply(Math,a.map((function(e){return e[0]}))),i=Math.min.apply(Math,a.map((function(e){return e[1]})));return{width:l-c,height:Math.max.apply(Math,a.map((function(e){return e[1]})))-i}}function yt(){for(var e=[],t=0;t0})).join(" ").trim()}var wt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.imageRef=null,n.videoRef=null,n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.state={cropSize:null,hasWheelJustStarted:!1},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){document.removeEventListener("mousemove",n.onMouseMove),document.removeEventListener("mouseup",n.onDragStopped),document.removeEventListener("touchmove",n.onTouchMove),document.removeEventListener("touchend",n.onDragStopped)},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){n.computeSizes(),n.emitCropData(),n.setInitialCrop(),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(){var e=n.props,t=e.initialCroppedAreaPixels,o=e.cropSize;if(t){var r=vt(t,n.mediaSize,o),a=r.crop,c=r.zoom;n.props.onCropChange(a),n.props.onZoomChange&&n.props.onZoomChange(c)}},n.computeSizes=function(){var e,t,o,r,a,c,l=n.imageRef||n.videoRef;if(l&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect(),n.mediaSize={width:l.offsetWidth,height:l.offsetHeight,naturalWidth:(null===(e=n.imageRef)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef)||void 0===t?void 0:t.videoWidth)||0,naturalHeight:(null===(o=n.imageRef)||void 0===o?void 0:o.naturalHeight)||(null===(r=n.videoRef)||void 0===r?void 0:r.videoHeight)||0};var i=n.props.cropSize?n.props.cropSize:st(l.offsetWidth,l.offsetHeight,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);(null===(a=n.state.cropSize)||void 0===a?void 0:a.height)===i.height&&(null===(c=n.state.cropSize)||void 0===c?void 0:c.width)===i.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(i),n.setState({cropSize:i},n.recomputeCropPosition)}},n.onMouseDown=function(e){e.preventDefault(),document.addEventListener("mousemove",n.onMouseMove),document.addEventListener("mouseup",n.onDragStopped),n.onDragStart(t.getMousePoint(e))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onTouchStart=function(e){e.preventDefault(),document.addEventListener("touchmove",n.onTouchMove,{passive:!1}),document.addEventListener("touchend",n.onDragStopped),2===e.touches.length?n.onPinchStart(e):1===e.touches.length&&n.onDragStart(t.getTouchPoint(e.touches[0]))},n.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?n.onPinchMove(e):1===e.touches.length&&n.onDrag(t.getTouchPoint(e.touches[0]))},n.onDragStart=function(e){var t,o,r=e.x,a=e.y;n.dragStartPosition={x:r,y:a},n.dragStartCrop=rt({},n.props.crop),null===(o=(t=n.props).onInteractionStart)||void 0===o||o.call(t)},n.onDrag=function(e){var t=e.x,o=e.y;n.rafDragTimeout&&window.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=window.requestAnimationFrame((function(){if(n.state.cropSize&&void 0!==t&&void 0!==o){var e=t-n.dragStartPosition.x,r=o-n.dragStartPosition.y,a={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+r},c=n.props.restrictPosition?ut(a,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):a;n.props.onCropChange(c)}}))},n.onDragStopped=function(){var e,t;n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){e.preventDefault();var o=t.getMousePoint(e),r=it()(e).pixelY,a=n.props.zoom-r*n.props.zoomSpeed/200;n.setNewZoom(a,o),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=n.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=window.setTimeout((function(){return n.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=n.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)},n.getPointOnContainer=function(e){var t=e.x,o=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(t-n.containerRect.left),y:n.containerRect.height/2-(o-n.containerRect.top)}},n.getPointOnMedia=function(e){var t=e.x,o=e.y,r=n.props,a=r.crop,c=r.zoom;return{x:(t+a.x)/c,y:(o+a.y)/c}},n.setNewZoom=function(e,t){if(n.state.cropSize&&n.props.onZoomChange){var o=n.getPointOnContainer(t),r=n.getPointOnMedia(o),a=Math.min(n.props.maxZoom,Math.max(e,n.props.minZoom)),c={x:r.x*a-o.x,y:r.y*a-o.y},l=n.props.restrictPosition?ut(c,n.mediaSize,n.state.cropSize,a,n.props.rotation):c;n.props.onCropChange(l),n.props.onZoomChange(a)}},n.getCropData=function(){return n.state.cropSize?pt(n.props.restrictPosition?ut(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(t,o),n.props.onCropAreaChange&&n.props.onCropAreaChange(t,o)}},n.emitCropAreaChange=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(t,o)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var e=n.props.restrictPosition?ut(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(e),n.emitCropData()}},n}return function(e,t){function n(){this.constructor=e}ot(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.computeSizes),this.containerRef&&(this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.preventZoomSafari),this.containerRef.addEventListener("gesturechange",this.preventZoomSafari)),this.props.disableAutomaticStylesInjection||(this.styleRef=document.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",document.head.appendChild(this.styleRef)),this.imageRef&&this.imageRef.complete&&this.onMediaLoad()},t.prototype.componentWillUnmount=function(){var e;window.removeEventListener("resize",this.computeSizes),this.containerRef&&(this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.containerRef.removeEventListener("gesturechange",this.preventZoomSafari)),this.styleRef&&(null===(e=this.styleRef.parentNode)||void 0===e||e.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()},t.prototype.componentDidUpdate=function(e){var t,n,o,r,a,c,l,i;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(o=e.cropSize)||void 0===o?void 0:o.width)!==(null===(r=this.props.cropSize)||void 0===r?void 0:r.width)?this.computeSizes():(null===(a=e.crop)||void 0===a?void 0:a.x)===(null===(c=this.props.crop)||void 0===c?void 0:c.x)&&(null===(l=e.crop)||void 0===l?void 0:l.y)===(null===(i=this.props.crop)||void 0===i?void 0:i.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=mt(n,o),this.lastPinchRotation=bt(n,o),this.onDragStart(Ot(n,o))},t.prototype.onPinchMove=function(e){var n=this,o=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]),a=Ot(o,r);this.onDrag(a),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=mt(o,r),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,a),n.lastPinchDistance=e;var c=bt(o,r),l=n.props.rotation+(c-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(l),n.lastPinchRotation=c}))},t.prototype.render=function(){var e=this,t=this.props,n=t.image,o=t.video,r=t.mediaProps,a=t.transform,c=t.crop,l=c.x,i=c.y,s=t.rotation,u=t.zoom,d=t.cropShape,m=t.showGrid,b=t.style,p=b.containerStyle,g=b.cropAreaStyle,h=b.mediaStyle,v=t.classes,O=v.containerClassName,j=v.cropAreaClassName,f=v.mediaClassName,y=t.objectFit;return ct.a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:p,className:yt("reactEasyCrop_Container",O)},n?ct.a.createElement("img",rt({alt:"",className:yt("reactEasyCrop_Image","contain"===y&&"reactEasyCrop_Contain","horizontal-cover"===y&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===y&&"reactEasyCrop_Cover_Vertical",f)},r,{src:n,ref:function(t){return e.imageRef=t},style:rt(rt({},h),{transform:a||"translate("+l+"px, "+i+"px) rotate("+s+"deg) scale("+u+")"}),onLoad:this.onMediaLoad})):o&&ct.a.createElement("video",rt({autoPlay:!0,loop:!0,muted:!0,className:yt("reactEasyCrop_Video","contain"===y&&"reactEasyCrop_Contain","horizontal-cover"===y&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===y&&"reactEasyCrop_Cover_Vertical",f)},r,{src:o,ref:function(t){return e.videoRef=t},onLoadedMetadata:this.onMediaLoad,style:rt(rt({},h),{transform:a||"translate("+l+"px, "+i+"px) rotate("+s+"deg) scale("+u+")"}),controls:!1})),this.state.cropSize&&ct.a.createElement("div",{style:rt(rt({},g),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:yt("reactEasyCrop_CropArea","round"===d&&"reactEasyCrop_CropAreaRound",m&&"reactEasyCrop_CropAreaGrid",j)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(ct.a.Component);const _t={position:"bottom right",isAlternate:!0};var kt=n("ywyh"),Et=n.n(kt);var Ct=n("g56x");function xt(e,t){const n=function({url:e,naturalWidth:t,naturalHeight:n}){const[o,r]=Object(ge.useState)(),[a,c]=Object(ge.useState)(),[l,i]=Object(ge.useState)({x:0,y:0}),[s,u]=Object(ge.useState)(),[d,m]=Object(ge.useState)(),[b,p]=Object(ge.useState)(),[g,h]=Object(ge.useState)(),v=Object(ge.useCallback)(()=>{i({x:0,y:0}),u(100),m(0),p(t/n),h(t/n)},[t,n,i,u,m,p,h]),O=Object(ge.useCallback)(()=>{const o=(d+90)%360;let a=t/n;if(d%180==90&&(a=n/t),0===o)return r(),m(o),p(1/b),void i({x:-l.y*a,y:l.x*a});const c=new window.Image;c.src=e,c.onload=function(e){const t=document.createElement("canvas");let n=0,c=0;o%180?(t.width=e.target.height,t.height=e.target.width):(t.width=e.target.width,t.height=e.target.height),90!==o&&180!==o||(n=t.width),270!==o&&180!==o||(c=t.height);const s=t.getContext("2d");s.translate(n,c),s.rotate(o*Math.PI/180),s.drawImage(e.target,0,0),t.toBlob(e=>{r(URL.createObjectURL(e)),m(o),p(1/b),i({x:-l.y*a,y:l.x*a})})};const s=Object(Ct.applyFilters)("media.crossOrigin",void 0,e);"string"==typeof s&&(c.crossOrigin=s)},[d,t,n,r,m,p,i]);return Object(ge.useMemo)(()=>({editedUrl:o,setEditedUrl:r,crop:a,setCrop:c,position:l,setPosition:i,zoom:s,setZoom:u,rotation:d,setRotation:m,rotateClockwise:O,aspect:b,setAspect:p,defaultAspect:g,initializeTransformValues:v}),[o,r,a,c,l,i,s,u,d,m,O,b,p,g,v])}(e),{initializeTransformValues:o}=n;return Object(ge.useEffect)(()=>{t&&o()},[t,o]),n}const St=Object(ge.createContext)({}),Bt=()=>Object(ge.useContext)(St);function Tt({id:e,url:t,naturalWidth:n,naturalHeight:o,isEditing:r,onFinishEditing:a,onSaveImage:c,children:l}){const i=xt({url:t,naturalWidth:n,naturalHeight:o},r),s=function({crop:e,rotation:t,height:n,width:o,aspect:r,url:a,id:c,onSaveImage:l,onFinishEditing:i}){const{createErrorNotice:s}=Object(Le.useDispatch)(qe.store),[u,d]=Object(ge.useState)(!1),m=Object(ge.useCallback)(()=>{d(!1),i()},[d,i]),b=Object(ge.useCallback)(()=>{d(!0);let u={};(e.width<99.9||e.height<99.9)&&(u=e),t>0&&(u.rotation=t),u.src=a,Et()({path:`/wp/v2/media/${c}/edit`,method:"POST",data:u}).then(e=>{l({id:e.id,url:e.source_url,height:n&&o?o/r:void 0})}).catch(e=>{s(Object(pe.sprintf)(Object(pe.__)("Could not edit image. %s"),e.message),{id:"image-editing-error",type:"snackbar"})}).finally(()=>{d(!1),i()})},[d,e,t,n,o,r,a,l,s,d,i]);return Object(ge.useMemo)(()=>({isInProgress:u,apply:b,cancel:m}),[u,b,m])}({id:e,url:t,onSaveImage:c,onFinishEditing:a,...i}),u=Object(ge.useMemo)(()=>({...i,...s}),[i,s]);return Object(ge.createElement)(St.Provider,{value:u},l)}function zt({url:e,width:t,height:n,clientWidth:o,naturalHeight:r,naturalWidth:a}){const{isInProgress:c,editedUrl:l,position:i,zoom:s,aspect:u,setPosition:d,setCrop:m,setZoom:b,rotation:p}=Bt();let g=n||o*r/a;return p%180==90&&(g=o*a/r),Object(ge.createElement)("div",{className:je()("wp-block-image__crop-area",{"is-applying":c}),style:{width:t||o,height:g}},Object(ge.createElement)(wt,{image:l||e,disabled:c,minZoom:1,maxZoom:3,crop:i,zoom:s/100,aspect:u,onCropChange:d,onCropComplete:e=>{m(e)},onZoomChange:e=>{b(100*e)}}),c&&Object(ge.createElement)(Ee.Spinner,null))}var Pt=n("cGtP");function Mt(){const{isInProgress:e,zoom:t,setZoom:n}=Bt();return Object(ge.createElement)(Ee.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:_t,renderToggle:({isOpen:t,onToggle:n})=>Object(ge.createElement)(Ee.ToolbarButton,{icon:Pt.a,label:Object(pe.__)("Zoom"),onClick:n,"aria-expanded":t,disabled:e}),renderContent:()=>Object(ge.createElement)(Ee.RangeControl,{label:Object(pe.__)("Zoom"),min:100,max:300,value:Math.round(t),onChange:n})})}var Nt=n("RMJe");var Rt=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"}));function Vt({aspectRatios:e,isDisabled:t,label:n,onClick:o,value:r}){return Object(ge.createElement)(Ee.MenuGroup,{label:n},e.map(({title:e,aspect:n})=>Object(ge.createElement)(Ee.MenuItem,{key:n,disabled:t,onClick:()=>{o(n)},role:"menuitemradio",isSelected:n===r,icon:n===r?Nt.a:void 0},e)))}function Ht({toggleProps:e}){const{isInProgress:t,aspect:n,setAspect:o,defaultAspect:r}=Bt();return Object(ge.createElement)(Ee.DropdownMenu,{icon:Rt,label:Object(pe.__)("Aspect Ratio"),popoverProps:_t,toggleProps:e,className:"wp-block-image__aspect-ratio"},({onClose:e})=>Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(Vt,{isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{title:Object(pe.__)("Original"),aspect:r},{title:Object(pe.__)("Square"),aspect:1}]}),Object(ge.createElement)(Vt,{label:Object(pe.__)("Landscape"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{title:Object(pe.__)("16:10"),aspect:1.6},{title:Object(pe.__)("16:9"),aspect:16/9},{title:Object(pe.__)("4:3"),aspect:4/3},{title:Object(pe.__)("3:2"),aspect:1.5}]}),Object(ge.createElement)(Vt,{label:Object(pe.__)("Portrait"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{title:Object(pe.__)("10:16"),aspect:.625},{title:Object(pe.__)("9:16"),aspect:9/16},{title:Object(pe.__)("3:4"),aspect:3/4},{title:Object(pe.__)("2:3"),aspect:2/3}]})))}var Lt=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"}));function It(){const{isInProgress:e,rotateClockwise:t}=Bt();return Object(ge.createElement)(Ee.ToolbarButton,{icon:Lt,label:Object(pe.__)("Rotate"),onClick:t,disabled:e})}function At(){const{isInProgress:e,apply:t,cancel:n}=Bt();return Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(Ee.ToolbarButton,{onClick:t,disabled:e},Object(pe.__)("Apply")),Object(ge.createElement)(Ee.ToolbarButton,{onClick:n},Object(pe.__)("Cancel")))}function Dt({url:e,width:t,height:n,clientWidth:o,naturalHeight:r,naturalWidth:a}){return Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(zt,{url:e,width:t,height:n,clientWidth:o,naturalHeight:r,naturalWidth:a}),Object(ge.createElement)(de.BlockControls,null,Object(ge.createElement)(Ee.ToolbarGroup,null,Object(ge.createElement)(Mt,null),Object(ge.createElement)(Ee.ToolbarItem,null,e=>Object(ge.createElement)(Ht,{toggleProps:e})),Object(ge.createElement)(It,null)),Object(ge.createElement)(Ee.ToolbarGroup,null,Object(ge.createElement)(At,null))))}const Ft=["image"];function Gt({temporaryURL:e,attributes:{url:t="",alt:n,caption:o,align:r,id:a,href:c,rel:l,linkClass:i,linkDestination:s,title:u,width:d,height:m,linkTarget:b,sizeSlug:p},setAttributes:g,isSelected:h,insertBlocksAfter:v,onReplace:O,onSelectImage:j,onSelectURL:f,onUploadError:y,containerRef:w,clientId:_}){const k=Object(ge.useRef)(),E=Object(Ie.usePrevious)(t),{getBlock:C}=Object(Le.useSelect)(de.store),{image:x,multiImageSelection:S}=Object(Le.useSelect)(e=>{const{getMedia:t}=e(ue.store),{getMultiSelectedBlockClientIds:n,getBlockName:o}=e(de.store),r=n();return{image:a&&h?t(a):null,multiImageSelection:r.length&&r.every(e=>"core/image"===o(e))}},[a,h]),{imageEditing:B,imageSizes:T,maxWidth:z,mediaUpload:P}=Object(Le.useSelect)(e=>{const{getSettings:t}=e(de.store);return Object(be.pick)(t(),["imageEditing","imageSizes","maxWidth","mediaUpload"])}),{replaceBlocks:M,toggleSelection:N}=Object(Le.useDispatch)(de.store),{createErrorNotice:R,createSuccessNotice:V}=Object(Le.useDispatch)(qe.store),H=Object(Ie.useViewportMatch)("medium"),L=Object(be.includes)(["wide","full"],r),[{naturalWidth:I,naturalHeight:A},D]=Object(ge.useState)({}),[F,G]=Object(ge.useState)(!1),[q,U]=Object(ge.useState)(),W=nt(w,[r]),$=!L&&H,Z=Object(be.map)(Object(be.filter)(T,({slug:e})=>Object(be.get)(x,["media_details","sizes",e,"source_url"])),({name:e,slug:t})=>({value:t,label:e})),Q=!!Object(me.getBlockType)("core/cover");Object(ge.useEffect)(()=>{qt(a,t)&&h&&!q&&window.fetch(t).then(e=>e.blob()).then(e=>U(e))},[a,t,h,q]),Object(ge.useEffect)(()=>{t&&!E&&h&&k.current.focus()},[t,E]),Object(ge.useEffect)(()=>{h||G(!1)},[h]);const J=a&&I&&A&&B,Y=!S&&J&&!F;const K=Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.BlockControls,{group:"block"},Object(ge.createElement)(de.BlockAlignmentControl,{value:r,onChange:function(e){const t=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};g({...t,align:e})}}),!S&&!F&&Object(ge.createElement)(de.__experimentalImageURLInputUI,{url:c||"",onChangeUrl:function(e){g(e)},linkDestination:s,mediaUrl:x&&x.source_url||t,mediaLink:x&&x.link,linkTarget:b,linkClass:i,rel:l}),Y&&Object(ge.createElement)(Ee.ToolbarButton,{onClick:()=>G(!0),icon:De,label:Object(pe.__)("Crop")}),q&&Object(ge.createElement)(Ee.ToolbarButton,{onClick:function(){P({filesList:[q],onFileChange([e]){j(e),Object(He.isBlobURL)(e.url)||(U(),V(Object(pe.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:Ft,onError(e){R(e,{type:"snackbar"})}})},icon:Fe.a,label:Object(pe.__)("Upload external image")}),!S&&Q&&Object(ge.createElement)(Ee.ToolbarButton,{icon:Ge,label:Object(pe.__)("Add text over image"),onClick:function(){M(_,Object(me.switchToBlockType)(C(_),"core/cover"))}})),!S&&!F&&Object(ge.createElement)(de.BlockControls,{group:"other"},Object(ge.createElement)(de.MediaReplaceFlow,{mediaId:a,mediaURL:t,allowedTypes:Ft,accept:"image/*",onSelect:j,onSelectURL:f,onError:y})),Object(ge.createElement)(de.InspectorControls,null,Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Image settings")},!S&&Object(ge.createElement)(Ee.TextareaControl,{label:Object(pe.__)("Alt text (alternative text)"),value:n,onChange:function(e){g({alt:e})},help:Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(Ee.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(pe.__)("Describe the purpose of the image")),Object(pe.__)("Leave empty if the image is purely decorative."))}),Object(ge.createElement)(de.__experimentalImageSizeControl,{onChangeImage:function(e){const t=Object(be.get)(x,["media_details","sizes",e,"source_url"]);if(!t)return null;g({url:t,width:void 0,height:void 0,sizeSlug:e})},onChange:e=>g(e),slug:p,width:d,height:m,imageSizeOptions:Z,isResizable:$,imageWidth:I,imageHeight:A}))),Object(ge.createElement)(de.InspectorAdvancedControls,null,Object(ge.createElement)(Ee.TextControl,{label:Object(pe.__)("Title attribute"),value:u||"",onChange:function(e){g({title:e})},help:Object(ge.createElement)(ge.Fragment,null,Object(pe.__)("Describe the role of this image on the page."),Object(ge.createElement)(Ee.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},Object(pe.__)("(Note: many devices and browsers do not display this text.)")))}))),X=function(e){const t=Object(Ae.getPath)(e);if(t)return Object(be.last)(t.split("/"))}(t);let ee;ee=n||(X?Object(pe.sprintf)(Object(pe.__)("This image has an empty alt attribute; its file name is %s"),X):Object(pe.__)("This image has an empty alt attribute"));let te,ne,oe=Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)("img",{src:e||t,alt:ee,onError:()=>function(){const e=Ke({attributes:{url:t}});void 0!==e&&O(e)}(),onLoad:e=>{D(Object(be.pick)(e.target,["naturalWidth","naturalHeight"]))}}),e&&Object(ge.createElement)(Ee.Spinner,null));if(W&&I&&A){const e=I>W,t=A/I;te=e?W:I,ne=e?W*t:A}if(J&&F)oe=Object(ge.createElement)(Dt,{url:t,width:d,height:m,clientWidth:W,naturalHeight:A,naturalWidth:I});else if($&&te){const e=d||te,t=m||ne,n=I/A,o=I{N(!0),g({width:parseInt(e+a.width,10),height:parseInt(t+a.height,10)})}},oe)}else oe=Object(ge.createElement)("div",{style:{width:d,height:m}},oe);return Object(ge.createElement)(Tt,{id:a,url:t,naturalWidth:I,naturalHeight:A,clientWidth:W,onSaveImage:e=>g(e),isEditing:F,onFinishEditing:()=>G(!1)},!e&&K,oe,(!de.RichText.isEmpty(o)||h)&&Object(ge.createElement)(de.RichText,{ref:k,tagName:"figcaption","aria-label":Object(pe.__)("Image caption text"),placeholder:Object(pe.__)("Add caption"),value:o,onChange:e=>g({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>v(Object(me.createBlock)("core/paragraph"))}))}const qt=(e,t)=>t&&!e&&!Object(He.isBlobURL)(t);var Ut=Object(Ee.withNotices)((function({attributes:e,setAttributes:t,isSelected:n,className:o,noticeUI:r,insertBlocksAfter:a,noticeOperations:c,onReplace:l,clientId:i}){const{url:s="",alt:u,caption:d,align:m,id:b,width:p,height:g,sizeSlug:h}=e,[v,O]=Object(ge.useState)(),j=Object(ge.useRef)();Object(ge.useEffect)(()=>{j.current=u},[u]);const f=Object(ge.useRef)();Object(ge.useEffect)(()=>{f.current=d},[d]);const y=Object(ge.useRef)(),{imageDefaultSize:w,mediaUpload:_}=Object(Le.useSelect)(e=>{const{getSettings:t}=e(de.store);return Object(be.pick)(t(),["imageDefaultSize","mediaUpload"])},[]);function k(e){c.removeAllNotices(),c.createErrorNotice(e)}function E(n){var o,r,a,c,l;if(!n||!n.url)return void t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0});if(Object(He.isBlobURL)(n.url))return void O(n.url);O();let i,u=((e,t)=>{const n=Object(be.pick)(e,["alt","id","link","caption"]);return n.url=Object(be.get)(e,["sizes",t,"url"])||Object(be.get)(e,["media_details","sizes",t,"source_url"])||e.url,n})(n,w);f.current&&!Object(be.get)(u,["caption"])&&(u=Object(be.omit)(u,["caption"])),i=n.id&&n.id===b?{url:s}:{width:void 0,height:void 0,sizeSlug:w};let d,m=e.linkDestination;if(!m)switch((null===(o=wp)||void 0===o||null===(r=o.media)||void 0===r||null===(a=r.view)||void 0===a||null===(c=a.settings)||void 0===c||null===(l=c.defaultProps)||void 0===l?void 0:l.link)||"none"){case"file":case"media":m="media";break;case"post":case"attachment":m="attachment";break;case"custom":m="custom";break;case"none":m="none"}switch(m){case"media":d=n.url;break;case"attachment":d=n.link}u.href=d,t({...u,...i,linkDestination:m})}function C(e){e!==s&&t({url:e,id:void 0,width:void 0,height:void 0,sizeSlug:w})}const x=((e,t)=>!e&&Object(He.isBlobURL)(t))(b,s);Object(ge.useEffect)(()=>{if(!x)return;const e=Object(He.getBlobByURL)(s);e&&_({filesList:[e],onFileChange:([e])=>{E(e)},allowedTypes:Ft,onError:e=>{c.createErrorNotice(e),t({src:void 0,id:void 0,url:void 0})}})},[]),Object(ge.useEffect)(()=>{if(v)return()=>{Object(He.revokeBlobURL)(v)}},[v]);const S=qt(b,s)?s:void 0,B=!!s&&Object(ge.createElement)("img",{alt:Object(pe.__)("Edit image"),title:Object(pe.__)("Edit image"),className:"edit-image-preview",src:s}),T=je()(o,{"is-transient":v,"is-resized":!!p||!!g,["size-"+h]:h}),z=Object(de.useBlockProps)({ref:y,className:T});return Object(ge.createElement)("figure",z,(v||s)&&Object(ge.createElement)(Gt,{temporaryURL:v,attributes:e,setAttributes:t,isSelected:n,insertBlocksAfter:a,onReplace:l,onSelectImage:E,onSelectURL:C,onUploadError:k,containerRef:y,clientId:i}),!s&&Object(ge.createElement)(de.BlockControls,{group:"block"},Object(ge.createElement)(de.BlockAlignmentControl,{value:m,onChange:function(e){const n=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};t({...n,align:e})}})),Object(ge.createElement)(de.MediaPlaceholder,{icon:Object(ge.createElement)(de.BlockIcon,{icon:Ne}),onSelect:E,onSelectURL:C,notices:r,onError:k,accept:"image/*",allowedTypes:Ft,value:{id:b,src:S},mediaPreview:B,disableMediaButtons:v||s}))}));function Wt(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 $t={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}};var Zt={from:[{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&!!e.querySelector("img"),schema:({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...$t,a:{attributes:["href","rel","target"],children:$t},figcaption:{children:e}}}}),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),c=a?Number(a[1]):void 0,l=e.querySelector("a"),i=l&&l.href?"custom":void 0,s=l&&l.href?l.href:void 0,u=l&&l.rel?l.rel:void 0,d=l&&l.className?l.className:void 0,m=Object(me.getBlockAttributes)("core/image",e.outerHTML,{align:r,id:c,linkDestination:i,href:s,rel:u,linkClass:d,anchor:o});return Object(me.createBlock)("core/image",m)}},{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("image/"),transform(e){const t=e[0];return Object(me.createBlock)("core/image",{url:Object(He.createBlobURL)(t)})}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:function(e,{shortcode:t}){const{body:n}=document.implementation.createHTMLDocument("");n.innerHTML=t.content;let o=n.querySelector("img");for(;o&&o.parentNode&&o.parentNode!==n;)o=o.parentNode;return o&&o.parentNode.removeChild(o),n.innerHTML.trim()}},href:{shortcode:(e,{shortcode:t})=>Wt(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>Wt(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>Wt(t.content,"class")},id:{type:"number",shortcode:({named:{id:e}})=>{if(e)return parseInt(e.replace("attachment_",""),10)}},align:{type:"string",shortcode:({named:{align:e="alignnone"}})=>e.replace("align","")}}}]};const Qt={apiVersion:2,name:"core/image",title:"Image",category:"media",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}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-image-editor",style:"wp-block-image"},{name:Jt}=Qt,Yt={icon:Ne,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(pe.__)("Mont Blanc appears—still, snowy, and serene.")}},__experimentalLabel(e,{context:t}){if("accessibility"===t){const{caption:t,alt:n,url:o}=e;return o?n?n+(t?". "+t:""):t||"":Object(pe.__)("Empty")}},getEditWrapperProps:e=>({"data-align":e.align}),transforms:Zt,edit:Ut,save:function({attributes:e}){const{url:t,alt:n,caption:o,align:r,href:a,rel:c,linkClass:l,width:i,height:s,id:u,linkTarget:d,sizeSlug:m,title:b}=e,p=Object(be.isEmpty)(c)?void 0:c,g=je()({["align"+r]:r,["size-"+m]:m,"is-resized":i||s}),h=Object(ge.createElement)("img",{src:t,alt:n,className:u?"wp-image-"+u:null,width:i,height:s,title:b}),v=Object(ge.createElement)(ge.Fragment,null,a?Object(ge.createElement)("a",{className:l,href:a,target:d,rel:p},h):h,!de.RichText.isEmpty(o)&&Object(ge.createElement)(de.RichText.Content,{tagName:"figcaption",value:o}));return"left"===r||"right"===r||"center"===r?Object(ge.createElement)("div",de.useBlockProps.save(),Object(ge.createElement)("figure",{className:g},v)):Object(ge.createElement)("figure",de.useBlockProps.save({className:g}),v)},deprecated:Ve};var Kt=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"}));const Xt={className:!1,anchor:!0},en={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},tn=e=>{if(!e.customTextColor)return e;const t={color:{text:e.customTextColor}};return{...Object(be.omit)(e,["customTextColor"]),style:t}},nn=["left","right","center"],on=e=>{const{align:t,...n}=e;return nn.includes(t)?{...n,textAlign:t}:e};var rn=[{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:en,isEligible:({align:e})=>nn.includes(e),migrate:on,save({attributes:e}){const{align:t,content:n,level:o}=e,r="h"+o,a=je()({["has-text-align-"+t]:t});return Object(ge.createElement)(r,de.useBlockProps.save({className:a}),Object(ge.createElement)(de.RichText.Content,{value:n}))}},{supports:Xt,attributes:{...en,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>tn(on(e)),save({attributes:e}){const{align:t,content:n,customTextColor:o,level:r,textColor:a}=e,c="h"+r,l=Object(de.getColorClassName)("color",a),i=je()({[l]:l,"has-text-color":a||o,["has-text-align-"+t]:t});return Object(ge.createElement)(de.RichText.Content,{className:i||void 0,tagName:c,style:{color:l?void 0:o},value:n})}},{attributes:{...en,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>tn(on(e)),save({attributes:e}){const{align:t,content:n,customTextColor:o,level:r,textColor:a}=e,c="h"+r,l=Object(de.getColorClassName)("color",a),i=je()({[l]:l,["has-text-align-"+t]:t});return Object(ge.createElement)(de.RichText.Content,{className:i||void 0,tagName:c,style:{color:l?void 0:o},value:n})},supports:Xt},{supports:Xt,attributes:{...en,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>tn(on(e)),save({attributes:e}){const{align:t,level:n,content:o,textColor:r,customTextColor:a}=e,c="h"+n,l=Object(de.getColorClassName)("color",r),i=je()({[l]:l});return Object(ge.createElement)(de.RichText.Content,{className:i||void 0,tagName:c,style:{textAlign:t,color:l?void 0:a},value:o})}}],an=n("RxS6");function cn({level:e,isPressed:t=!1}){const n={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 n.hasOwnProperty(e)?Object(ge.createElement)(Ee.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:t},Object(ge.createElement)(Ee.Path,{d:n[e]})):null}const ln=[1,2,3,4,5,6],sn={className:"block-library-heading-level-dropdown",isAlternate:!0};function un({selectedLevel:e,onChange:t}){return Object(ge.createElement)(Ee.Dropdown,{popoverProps:sn,renderToggle:({onToggle:t,isOpen:n})=>Object(ge.createElement)(Ee.ToolbarButton,{"aria-expanded":n,"aria-haspopup":"true",icon:Object(ge.createElement)(cn,{level:e}),label:Object(pe.__)("Change heading level"),onClick:t,onKeyDown:e=>{n||e.keyCode!==an.DOWN||(e.preventDefault(),e.stopPropagation(),t())},showTooltip:!0}),renderContent:()=>Object(ge.createElement)(Ee.Toolbar,{className:"block-library-heading-level-toolbar",label:Object(pe.__)("Change heading level")},Object(ge.createElement)(Ee.ToolbarGroup,{isCollapsed:!1,controls:ln.map(n=>{const o=n===e;return{icon:Object(ge.createElement)(cn,{level:n,isPressed:o}),title:Object(pe.sprintf)(Object(pe.__)("Heading %d"),n),isActive:o,onClick(){t(n)}}})}))})}var dn=function({attributes:e,setAttributes:t,mergeBlocks:n,onReplace:o,mergedStyle:r,clientId:a}){const{textAlign:c,content:l,level:i,placeholder:s}=e,u="h"+i,d=Object(de.useBlockProps)({className:je()({["has-text-align-"+c]:c}),style:r});return Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.BlockControls,{group:"block"},Object(ge.createElement)(un,{selectedLevel:i,onChange:e=>t({level:e})}),Object(ge.createElement)(de.AlignmentControl,{value:c,onChange:e=>{t({textAlign:e})}})),Object(ge.createElement)(de.RichText,Object(ke.a)({identifier:"content",tagName:u,value:l,onChange:e=>t({content:e}),onMerge:n,onSplit:(t,n)=>{let o;return o=n||t?Object(me.createBlock)("core/heading",{...e,content:t}):Object(me.createBlock)("core/paragraph"),n&&(o.clientId=a),o},onReplace:o,onRemove:()=>o([]),"aria-label":Object(pe.__)("Heading text"),placeholder:s||Object(pe.__)("Heading"),textAlign:c},d)))};const{name:mn}={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},fontSize:!0,lineHeight:!0,__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"};var bn={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(({content:e,anchor:t})=>Object(me.createBlock)(mn,{content:e,anchor:t}))},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:({phrasingContentSchema:e,isPaste:t})=>{const n={children:e,attributes:t?[]:["style","id"]};return{h1:n,h2:n,h3:n,h4:n,h5:n,h6:n}},transform(e){const t=Object(me.getBlockAttributes)(mn,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),Object(me.createBlock)(mn,t)}},...[1,2,3,4,5,6].map(e=>({type:"prefix",prefix:Array(e+1).join("#"),transform:t=>Object(me.createBlock)(mn,{level:e,content:t})})),...[1,2,3,4,5,6].map(e=>({type:"enter",regExp:new RegExp(`^/(h|H)${e}$`),transform:t=>Object(me.createBlock)(mn,{level:e,content:t})}))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(({content:e,anchor:t})=>Object(me.createBlock)("core/paragraph",{content:e,anchor:t}))}]};const pn={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},fontSize:!0,lineHeight:!0,__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"},{name:gn}=pn,hn={icon:Kt,example:{attributes:{content:Object(pe.__)("Code is Poetry"),level:2}},__experimentalLabel(e,{context:t}){if("accessibility"===t){const{content:t,level:n}=e;return Object(be.isEmpty)(t)?Object(pe.sprintf)(Object(pe.__)("Level %s. Empty."),n):Object(pe.sprintf)(Object(pe.__)("Level %1$s. %2$s"),n,t)}},transforms:bn,deprecated:rn,merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:dn,save:function({attributes:e}){const{textAlign:t,content:n,level:o}=e,r="h"+o,a=je()({["has-text-align-"+t]:t});return Object(ge.createElement)(r,de.useBlockProps.save({className:a}),Object(ge.createElement)(de.RichText.Content,{value:n}))}};var vn=Object(ge.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(he.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"}));const On={value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}};var jn=[{attributes:On,save({attributes:e}){const{align:t,value:n,citation:o}=e;return Object(ge.createElement)("blockquote",{style:{textAlign:t||null}},Object(ge.createElement)(de.RichText.Content,{multiline:!0,value:n}),!de.RichText.isEmpty(o)&&Object(ge.createElement)(de.RichText.Content,{tagName:"cite",value:o}))}},{attributes:{...On,style:{type:"number",default:1}},migrate:e=>2===e.style?{...Object(be.omit)(e,["style"]),className:e.className?e.className+" is-style-large":"is-style-large"}:e,save({attributes:e}){const{align:t,value:n,citation:o,style:r}=e;return Object(ge.createElement)("blockquote",{className:2===r?"is-large":"",style:{textAlign:t||null}},Object(ge.createElement)(de.RichText.Content,{multiline:!0,value:n}),!de.RichText.isEmpty(o)&&Object(ge.createElement)(de.RichText.Content,{tagName:"cite",value:o}))}},{attributes:{...On,citation:{type:"string",source:"html",selector:"footer",default:""},style:{type:"number",default:1}},save({attributes:e}){const{align:t,value:n,citation:o,style:r}=e;return Object(ge.createElement)("blockquote",{className:"blocks-quote-style-"+r,style:{textAlign:t||null}},Object(ge.createElement)(de.RichText.Content,{multiline:!0,value:n}),!de.RichText.isEmpty(o)&&Object(ge.createElement)(de.RichText.Content,{tagName:"footer",value:o}))}}];const fn="web"===ge.Platform.OS;var yn=n("qRz9");var wn={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>Object(me.createBlock)("core/quote",{value:Object(yn.toHTMLString)({value:Object(yn.join)(e.map(({content:e})=>Object(yn.create)({html:e})),"\u2028"),multilineTag:"p"}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>Object(me.createBlock)("core/quote",{value:`

${e}

`,anchor:t})},{type:"block",blocks:["core/pullquote"],transform:({value:e,citation:t,anchor:n})=>Object(me.createBlock)("core/quote",{value:e,citation:t,anchor:n})},{type:"prefix",prefix:">",transform:e=>Object(me.createBlock)("core/quote",{value:`

${e}

`})},{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:({phrasingContentSchema:e})=>({blockquote:{children:{p:{children:e},cite:{children:e}}}})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{const n=[];return e&&"

"!==e&&n.push(...Object(yn.split)(Object(yn.create)({html:e,multilineTag:"p"}),"\u2028").map(e=>Object(me.createBlock)("core/paragraph",{content:Object(yn.toHTMLString)({value:e})}))),t&&"

"!==t&&n.push(Object(me.createBlock)("core/paragraph",{content:t})),0===n.length?Object(me.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t,...n})=>{if("

"===e)return Object(me.createBlock)("core/heading",{content:t});const o=Object(yn.split)(Object(yn.create)({html:e,multilineTag:"p"}),"\u2028"),r=Object(me.createBlock)("core/heading",{content:Object(yn.toHTMLString)({value:o[0]})});if(!t&&1===o.length)return r;const a=o.slice(1);return[r,Object(me.createBlock)("core/quote",{...n,citation:t,value:Object(yn.toHTMLString)({value:a.length?Object(yn.join)(o.slice(1),"\u2028"):Object(yn.create)(),multilineTag:"p"})})]}},{type:"block",blocks:["core/pullquote"],transform:({value:e,citation:t,anchor:n})=>Object(me.createBlock)("core/pullquote",{value:e,citation:t,anchor:n})}]};const _n={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},styles:[{name:"default",label:"Default",isDefault:!0},{name:"large",label:"Large"}],editorStyle:"wp-block-quote-editor",style:"wp-block-quote"},{name:kn}=_n,En={icon:vn,example:{attributes:{value:"

"+Object(pe.__)("In quoting others, we cite ourselves.")+"

",citation:"Julio Cortázar",className:"is-style-large"}},transforms:wn,edit:function({attributes:e,setAttributes:t,isSelected:n,mergeBlocks:o,onReplace:r,className:a,insertBlocksAfter:c,mergedStyle:l}){const{align:i,value:s,citation:u}=e,d=Object(de.useBlockProps)({className:je()(a,{["has-text-align-"+i]:i}),style:l});return Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.BlockControls,{group:"block"},Object(ge.createElement)(de.AlignmentControl,{value:i,onChange:e=>{t({align:e})}})),Object(ge.createElement)(Ee.BlockQuotation,d,Object(ge.createElement)(de.RichText,{identifier:"value",multiline:!0,value:s,onChange:e=>t({value:e}),onMerge:o,onRemove:e=>{const t=!u||0===u.length;!e&&t&&r([])},"aria-label":Object(pe.__)("Quote text"),placeholder:Object(pe.__)("Add quote"),onReplace:r,onSplit:t=>Object(me.createBlock)("core/quote",{...e,value:t}),__unstableOnSplitMiddle:()=>Object(me.createBlock)("core/paragraph"),textAlign:i}),(!de.RichText.isEmpty(u)||n)&&Object(ge.createElement)(de.RichText,{identifier:"citation",tagName:fn?"cite":void 0,style:{display:"block"},value:u,onChange:e=>t({citation:e}),__unstableMobileNoFocusOnMount:!0,"aria-label":Object(pe.__)("Quote citation text"),placeholder:Object(pe.__)("Add citation"),className:"wp-block-quote__citation",textAlign:i,__unstableOnSplitAtEnd:()=>c(Object(me.createBlock)("core/paragraph"))})))},save:function({attributes:e}){const{align:t,value:n,citation:o}=e,r=je()({["has-text-align-"+t]:t});return Object(ge.createElement)("blockquote",de.useBlockProps.save({className:r}),Object(ge.createElement)(de.RichText.Content,{multiline:!0,value:n}),!de.RichText.isEmpty(o)&&Object(ge.createElement)(de.RichText.Content,{tagName:"cite",value:o}))},merge:(e,{value:t,citation:n})=>(n||(n=e.citation),t&&"

"!==t?{...e,value:e.value+t,citation:n}:{...e,citation:n}),deprecated:jn};var Cn=Object(ge.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(he.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"}));function xn(e){return Math.min(3,e.images.length)}const Sn=(e,t="large")=>{const n=Object(be.pick)(e,["alt","id","link","caption"]);n.url=Object(be.get)(e,["sizes",t,"url"])||Object(be.get)(e,["media_details","sizes",t,"source_url"])||e.url;const o=Object(be.get)(e,["sizes","full","url"])||Object(be.get)(e,["media_details","sizes","full","source_url"]);return o&&(n.fullUrl=o),n};var Bn=[{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:({linkTo:e})=>!e||"attachment"===e||"media"===e,migrate(e){let t=e.linkTo;return e.linkTo?"attachment"===e.linkTo?t="post":"media"===e.linkTo&&(t="file"):t="none",{...e,linkTo:t}},save({attributes:e}){const{images:t,columns:n=xn(e),imageCrop:o,caption:r,linkTo:a}=e;return Object(ge.createElement)("figure",{className:`columns-${n} ${o?"is-cropped":""}`},Object(ge.createElement)("ul",{className:"blocks-gallery-grid"},t.map(e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=Object(ge.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 Object(ge.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(ge.createElement)("figure",null,t?Object(ge.createElement)("a",{href:t},n):n,!de.RichText.isEmpty(e.caption)&&Object(ge.createElement)(de.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))})),!de.RichText.isEmpty(r)&&Object(ge.createElement)(de.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r}))}},{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:({ids:e})=>e&&e.some(e=>"string"==typeof e),migrate:e=>({...e,ids:Object(be.map)(e.ids,e=>{const t=parseInt(e,10);return Number.isInteger(t)?t:null})}),save({attributes:e}){const{images:t,columns:n=xn(e),imageCrop:o,caption:r,linkTo:a}=e;return Object(ge.createElement)("figure",{className:`columns-${n} ${o?"is-cropped":""}`},Object(ge.createElement)("ul",{className:"blocks-gallery-grid"},t.map(e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=Object(ge.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 Object(ge.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(ge.createElement)("figure",null,t?Object(ge.createElement)("a",{href:t},n):n,!de.RichText.isEmpty(e.caption)&&Object(ge.createElement)(de.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))})),!de.RichText.isEmpty(r)&&Object(ge.createElement)(de.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r}))}},{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({attributes:e}){const{images:t,columns:n=xn(e),imageCrop:o,linkTo:r}=e;return Object(ge.createElement)("ul",{className:`columns-${n} ${o?"is-cropped":""}`},t.map(e=>{let t;switch(r){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=Object(ge.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 Object(ge.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(ge.createElement)("figure",null,t?Object(ge.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(ge.createElement)(de.RichText.Content,{tagName:"figcaption",value:e.caption})))}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:({images:e,ids:t})=>e&&e.length>0&&(!t&&e||t&&e&&t.length!==e.length||Object(be.some)(e,(e,n)=>!e&&null!==t[n]||parseInt(e,10)!==t[n])),migrate:e=>({...e,ids:Object(be.map)(e.images,({id:e})=>e?parseInt(e,10):null)}),supports:{align:!0},save({attributes:e}){const{images:t,columns:n=xn(e),imageCrop:o,linkTo:r}=e;return Object(ge.createElement)("ul",{className:`columns-${n} ${o?"is-cropped":""}`},t.map(e=>{let t;switch(r){case"media":t=e.url;break;case"attachment":t=e.link}const n=Object(ge.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 Object(ge.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(ge.createElement)("figure",null,t?Object(ge.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&Object(ge.createElement)(de.RichText.Content,{tagName:"figcaption",value:e.caption})))}))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){const{images:t,columns:n=xn(e),align:o,imageCrop:r,linkTo:a}=e,c=je()("columns-"+n,{alignnone:"none"===o,"is-cropped":r});return Object(ge.createElement)("div",{className:c},t.map(e=>{let t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}const n=Object(ge.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(ge.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(ge.createElement)("a",{href:t},n):n)}))}}],Tn=n("KEfo");const zn=Object(ge.createElement)(de.BlockIcon,{icon:Cn});var Pn=n("2gm7"),Mn=n("1iEr"),Nn=n("B9Az"),Rn=n("bWcr");class Vn extends ge.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!==[an.BACKSPACE,an.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),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:c}=this.props;if(!e||!e.url)return;let l=Sn(e,c);((e,t)=>!e&&Object(He.isBlobURL)(t))(n,o)&&r&&(l=Object(be.omit)(l,["alt"])),a&&!Object(be.get)(l,["caption"])&&(l=Object(be.omit)(l,["caption"])),t(l),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:c,isSelected:l,caption:i,onRemove:s,onMoveForward:u,onMoveBackward:d,setAttributes:m,"aria-label":b}=this.props,{isEditing:p}=this.state;let g;switch(o){case"file":g=e;break;case"post":g=r}const h=Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)("img",{src:e,alt:t,"data-id":n,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":b,ref:this.bindContainer}),Object(He.isBlobURL)(e)&&Object(ge.createElement)(Ee.Spinner,null)),v=je()({"is-selected":l,"is-transient":Object(He.isBlobURL)(e)});return Object(ge.createElement)("figure",{className:v,onClick:this.onSelectImage,onFocus:this.onSelectImage},!p&&(g?Object(ge.createElement)("a",{href:g},h):h),p&&Object(ge.createElement)(de.MediaPlaceholder,{labels:{title:Object(pe.__)("Edit gallery image")},icon:Ne,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:n,src:e}}),Object(ge.createElement)(Ee.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},Object(ge.createElement)(Ee.Button,{icon:Pn.a,onClick:a?void 0:d,label:Object(pe.__)("Move image backward"),"aria-disabled":a,disabled:!l}),Object(ge.createElement)(Ee.Button,{icon:Mn.a,onClick:c?void 0:u,label:Object(pe.__)("Move image forward"),"aria-disabled":c,disabled:!l})),Object(ge.createElement)(Ee.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},Object(ge.createElement)(Ee.Button,{icon:Nn.a,onClick:this.onEdit,label:Object(pe.__)("Replace image"),disabled:!l}),Object(ge.createElement)(Ee.Button,{icon:Rn.a,onClick:s,label:Object(pe.__)("Remove image"),disabled:!l})),!p&&(l||i)&&Object(ge.createElement)(de.RichText,{tagName:"figcaption","aria-label":Object(pe.__)("Image caption text"),placeholder:l?Object(pe.__)("Add caption"):null,value:i,onChange:e=>m({caption:e}),inlineToolbar:!0}))}}var Hn=Object(Ie.compose)([Object(Le.withSelect)((e,t)=>{const{getMedia:n}=e(ue.store),{id:o}=t;return{image:o?n(parseInt(o,10)):null}}),Object(Le.withDispatch)(e=>{const{__unstableMarkNextChangeAsNotPersistent:t}=e(de.store);return{__unstableMarkNextChangeAsNotPersistent:t}})])(Vn);function Ln({isHidden:e,...t}){return e?Object(ge.createElement)(Ee.VisuallyHidden,Object(ke.a)({as:de.RichText},t)):Object(ge.createElement)(de.RichText,t)}var In=e=>{const{attributes:t,isSelected:n,setAttributes:o,selectedImage:r,mediaPlaceholder:a,onMoveBackward:c,onMoveForward:l,onRemoveImage:i,onSelectImage:s,onDeselectImage:u,onSetImageAttributes:d,insertBlocksAfter:m,blockProps:b}=e,{align:p,columns:g=xn(t),caption:h,imageCrop:v,images:O}=t;return Object(ge.createElement)("figure",Object(ke.a)({},b,{className:je()(b.className,{["align"+p]:p,["columns-"+g]:g,"is-cropped":v})}),Object(ge.createElement)("ul",{className:"blocks-gallery-grid"},O.map((e,o)=>{const a=Object(pe.sprintf)(Object(pe.__)("image %1$d of %2$d in gallery"),o+1,O.length);return Object(ge.createElement)("li",{className:"blocks-gallery-item",key:e.id?`${e.id}-${o}`:e.url},Object(ge.createElement)(Hn,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===o,isLastItem:o+1===O.length,isSelected:n&&r===o,onMoveBackward:c(o),onMoveForward:l(o),onRemove:i(o),onSelect:s(o),onDeselect:u(o),setAttributes:e=>d(o,e),caption:e.caption,"aria-label":a,sizeSlug:t.sizeSlug}))})),a,Object(ge.createElement)(Ln,{isHidden:!n&&de.RichText.isEmpty(h),tagName:"figcaption",className:"blocks-gallery-caption","aria-label":Object(pe.__)("Gallery caption text"),placeholder:Object(pe.__)("Write gallery caption…"),value:h,onChange:e=>o({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>m(Object(me.createBlock)("core/paragraph"))}))};const An=[{value:"post",label:Object(pe.__)("Attachment Page")},{value:"file",label:Object(pe.__)("Media File")},{value:"none",label:Object(pe.__)("None")}],Dn=["image"],Fn=ge.Platform.select({web:Object(pe.__)("Drag images, upload new ones or select files from your library."),native:Object(pe.__)("ADD MEDIA")}),Gn=ge.Platform.select({web:{},native:{type:"stepper"}});var qn=Object(Ie.compose)([Ee.withNotices,Object(Tn.withViewportMatch)({isNarrow:"< small"})])((function(e){const{attributes:t,clientId:n,isSelected:o,noticeUI:r,noticeOperations:a,onFocus:c}=e,{columns:l=xn(t),imageCrop:i,images:s,linkTo:u,sizeSlug:d}=t,[m,b]=Object(ge.useState)(),[p,g]=Object(ge.useState)(),{__unstableMarkNextChangeAsNotPersistent:h}=Object(Le.useDispatch)(de.store),{imageSizes:v,mediaUpload:O,getMedia:j,wasBlockJustInserted:f}=Object(Le.useSelect)(e=>{const t=e(de.store).getSettings();return{imageSizes:t.imageSizes,mediaUpload:t.mediaUpload,getMedia:e(ue.store).getMedia,wasBlockJustInserted:e(de.store).wasBlockJustInserted(n,"inserter_menu")}}),y=Object(ge.useMemo)(()=>o?Object(be.reduce)(t.ids,(e,t)=>{if(!t)return e;const n=j(t),o=Object(be.reduce)(v,(e,t)=>{const o=Object(be.get)(n,["sizes",t.slug,"url"]),r=Object(be.get)(n,["media_details","sizes",t.slug,"source_url"]);return{...e,[t.slug]:o||r}},{});return{...e,[parseInt(t,10)]:o}},{}):{},[o,t.ids,v]);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:Object(be.map)(t.images,({id:e})=>parseInt(e,10))}),e.setAttributes(t)}function _(e,t){const n=[...s];n.splice(t,1,s[e]),n.splice(e,1,s[t]),b(t),w({images:n})}function k(e){const t=Object(be.toString)(e.id),n=Object(be.find)(s,{id:t}),o=n?n.caption:e.caption;if(!p)return o;const r=Object(be.find)(p,{id:t});return r&&r.caption!==e.caption?e.caption:o}function E(e){g(e.map(e=>({id:Object(be.toString)(e.id),caption:e.caption}))),w({images:e.map(e=>({...Sn(e,d),caption:k(e),id:Object(be.toString)(e.id)})),columns:t.columns?Math.min(e.length,t.columns):t.columns})}Object(ge.useEffect)(()=>{if("web"===ge.Platform.OS&&s&&s.length>0&&Object(be.every)(s,({url:e})=>Object(He.isBlobURL)(e))){const e=Object(be.map)(s,({url:e})=>Object(He.getBlobByURL)(e));Object(be.forEach)(s,({url:e})=>Object(He.revokeBlobURL)(e)),O({filesList:e,onFileChange:E,allowedTypes:["image"]})}},[]),Object(ge.useEffect)(()=>{o||b()},[o]),Object(ge.useEffect)(()=>{var e,t,n,o,r,a;u||(h(),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)||"none"}))},[u]);const C=!!s.length,x=C&&s.some(e=>!!e.id),S=Object(ge.createElement)(de.MediaPlaceholder,{addToGallery:x,isAppender:C,disableMediaButtons:C&&!o,icon:!C&&zn,labels:{title:!C&&Object(pe.__)("Gallery"),instructions:!C&&Fn},onSelect:E,accept:"image/*",allowedTypes:Dn,multiple:!0,value:x?s:{},onError:function(e){a.removeAllNotices(),a.createErrorNotice(e)},notices:C?void 0:r,onFocus:c,autoOpenMediaUpload:!C&&o&&f}),B=Object(de.useBlockProps)();if(!C)return Object(ge.createElement)(he.View,B,S);const T=Object(be.map)(Object(be.filter)(v,({slug:e})=>Object(be.some)(y,t=>t[e])),({name:e,slug:t})=>({value:t,label:e})),z=C&&!Object(be.isEmpty)(T);return Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.InspectorControls,null,Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Gallery settings")},s.length>1&&Object(ge.createElement)(Ee.RangeControl,Object(ke.a)({label:Object(pe.__)("Columns"),value:l,onChange:function(e){w({columns:e})},min:1,max:Math.min(8,s.length)},Gn,{required:!0})),Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Crop images"),checked:!!i,onChange:function(){w({imageCrop:!i})},help:function(e){return e?Object(pe.__)("Thumbnails are cropped to align."):Object(pe.__)("Thumbnails are not cropped.")}}),Object(ge.createElement)(Ee.SelectControl,{label:Object(pe.__)("Link to"),value:u,onChange:function(e){w({linkTo:e})},options:An,hideCancelButton:!0}),z&&Object(ge.createElement)(Ee.SelectControl,{label:Object(pe.__)("Image size"),value:d,options:T,onChange:function(e){w({images:Object(be.map)(s,t=>{if(!t.id)return t;const n=Object(be.get)(y,[parseInt(t.id,10),e]);return{...t,...n&&{url:n}}}),sizeSlug:e})},hideCancelButton:!0}))),r,Object(ge.createElement)(In,Object(ke.a)({},e,{selectedImage:m,mediaPlaceholder:S,onMoveBackward:function(e){return()=>{0!==e&&_(e,e-1)}},onMoveForward:function(e){return()=>{e!==s.length-1&&_(e,e+1)}},onRemoveImage:function(e){return()=>{const n=Object(be.filter)(s,(t,n)=>e!==n);b(),w({images:n,columns:t.columns?Math.min(n.length,t.columns):t.columns})}},onSelectImage:function(e){return()=>{b(e)}},onDeselectImage:function(){return()=>{b()}},onSetImageAttributes:function(e,t){s[e]&&w({images:[...s.slice(0,e),{...s[e],...t},...s.slice(e+1)]})},blockProps:B,onFocusGalleryCaption:function(){b()}})))}));const Un=e=>e?e.split(",").map(e=>parseInt(e,10)):[];var Wn={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:n}=e[0];t=Object(be.every)(e,["align",t])?t:void 0,n=Object(be.every)(e,["sizeSlug",n])?n:void 0;const o=Object(be.filter)(e,({url:e})=>e);return Object(me.createBlock)("core/gallery",{images:o.map(({id:e,url:t,alt:n,caption:o})=>({id:Object(be.toString)(e),url:t,alt:n,caption:o})),ids:o.map(({id:e})=>parseInt(e,10)),align:t,sizeSlug:n})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:({named:{ids:e}})=>Un(e).map(e=>({id:Object(be.toString)(e)}))},ids:{type:"array",shortcode:({named:{ids:e}})=>Un(e)},columns:{type:"number",shortcode:({named:{columns:e="3"}})=>parseInt(e,10)},linkTo:{type:"string",shortcode:({named:{link:e="post"}})=>e}},isMatch:({named:e})=>void 0!==e.ids},{type:"files",isMatch:e=>1!==e.length&&Object(be.every)(e,e=>0===e.type.indexOf("image/")),transform:e=>Object(me.createBlock)("core/gallery",{images:e.map(e=>Sn({url:Object(He.createBlobURL)(e)}))})}],to:[{type:"block",blocks:["core/image"],transform:({images:e,align:t,sizeSlug:n,ids:o})=>e.length>0?e.map(({url:e,alt:r,caption:a},c)=>Object(me.createBlock)("core/image",{id:o[c],url:e,alt:r,caption:a,align:t,sizeSlug:n})):Object(me.createBlock)("core/image",{align:t})}]};const $n={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:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"},{name:Zn}=$n,Qn={icon:Cn,example:{attributes:{columns:2,images:[{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},transforms:Wn,edit:qn,save:function({attributes:e}){const{images:t,columns:n=xn(e),imageCrop:o,caption:r,linkTo:a}=e,c=`columns-${n} ${o?"is-cropped":""}`;return Object(ge.createElement)("figure",de.useBlockProps.save({className:c}),Object(ge.createElement)("ul",{className:"blocks-gallery-grid"},t.map(e=>{let t;switch(a){case"file":t=e.fullUrl||e.url;break;case"post":t=e.link}const n=Object(ge.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 Object(ge.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(ge.createElement)("figure",null,t?Object(ge.createElement)("a",{href:t},n):n,!de.RichText.isEmpty(e.caption)&&Object(ge.createElement)(de.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))})),!de.RichText.isEmpty(r)&&Object(ge.createElement)(de.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:r}))},deprecated:Bn};var Jn=Object(ge.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(he.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"})),Yn=n("JREk"),Kn=n.n(Yn);const Xn={apiVersion:2,name:"core/archives",title:"Archives",category:"widgets",description:"Display a monthly archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-archives-editor"},{name:eo}=Xn,to={icon:Jn,example:{},edit:function({attributes:e,setAttributes:t}){const{showPostCounts:n,displayAsDropdown:o}=e;return Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.InspectorControls,null,Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Archives settings")},Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Display as dropdown"),checked:o,onChange:()=>t({displayAsDropdown:!o})}),Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Show post counts"),checked:n,onChange:()=>t({showPostCounts:!n})}))),Object(ge.createElement)("div",Object(de.useBlockProps)(),Object(ge.createElement)(Ee.Disabled,null,Object(ge.createElement)(Kn.a,{block:"core/archives",attributes:e}))))}};var no=Object(ge.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(he.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),oo=[{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({attributes:e}){const{autoplay:t,caption:n,loop:o,preload:r,src:a}=e;return Object(ge.createElement)("figure",null,Object(ge.createElement)("audio",{controls:"controls",src:a,autoPlay:t,loop:o,preload:r}),!de.RichText.isEmpty(n)&&Object(ge.createElement)(de.RichText.Content,{tagName:"figcaption",value:n}))}}];const ro=["audio"];var ao=Object(Ee.withNotices)((function({attributes:e,noticeOperations:t,setAttributes:n,onReplace:o,isSelected:r,noticeUI:a,insertBlocksAfter:c}){const{id:l,autoplay:i,caption:s,loop:u,preload:d,src:m}=e,b=Object(de.useBlockProps)(),p=Object(Le.useSelect)(e=>{const{getSettings:t}=e(de.store);return t().mediaUpload},[]);function g(e){return t=>{n({[e]:t})}}function h(e){if(e!==m){const t=Ke({attributes:{url:e}});if(void 0!==t)return void o(t);n({src:e,id:void 0})}}function v(e){t.removeAllNotices(),t.createErrorNotice(e)}function O(e){e&&e.url?n({src:e.url,id:e.id}):n({src:void 0,id:void 0})}return Object(ge.useEffect)(()=>{if(!l&&Object(He.isBlobURL)(m)){const e=Object(He.getBlobByURL)(m);e&&p({filesList:[e],onFileChange:([{id:e,url:t}])=>{n({id:e,src:t})},onError:e=>{n({src:void 0,id:void 0}),t.createErrorNotice(e)},allowedTypes:ro})}},[]),m?Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.BlockControls,{group:"other"},Object(ge.createElement)(de.MediaReplaceFlow,{mediaId:l,mediaURL:m,allowedTypes:ro,accept:"audio/*",onSelect:O,onSelectURL:h,onError:v})),Object(ge.createElement)(de.InspectorControls,null,Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Audio settings")},Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Autoplay"),onChange:g("autoplay"),checked:i,help:function(e){return e?Object(pe.__)("Autoplay may cause usability issues for some users."):null}}),Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Loop"),onChange:g("loop"),checked:u}),Object(ge.createElement)(Ee.SelectControl,{label:Object(pe.__)("Preload"),value:d||"",onChange:e=>n({preload:e||void 0}),options:[{value:"",label:Object(pe.__)("Browser default")},{value:"auto",label:Object(pe.__)("Auto")},{value:"metadata",label:Object(pe.__)("Metadata")},{value:"none",label:Object(pe.__)("None")}]}))),Object(ge.createElement)("figure",b,Object(ge.createElement)(Ee.Disabled,{isDisabled:!r},Object(ge.createElement)("audio",{controls:"controls",src:m})),(!de.RichText.isEmpty(s)||r)&&Object(ge.createElement)(de.RichText,{tagName:"figcaption","aria-label":Object(pe.__)("Audio caption text"),placeholder:Object(pe.__)("Add caption"),value:s,onChange:e=>n({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>c(Object(me.createBlock)("core/paragraph"))}))):Object(ge.createElement)("div",b,Object(ge.createElement)(de.MediaPlaceholder,{icon:Object(ge.createElement)(de.BlockIcon,{icon:no}),onSelect:O,onSelectURL:h,accept:"audio/*",allowedTypes:ro,value:e,notices:a,onError:v}))}));var co={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("audio/"),transform(e){const t=e[0];return Object(me.createBlock)("core/audio",{src:Object(He.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:n,ogg:o,wav:r,wma:a}})=>e||t||n||o||r||a},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]};const lo={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:io}=lo,so={icon:no,transforms:co,deprecated:oo,edit:ao,save:function({attributes:e}){const{autoplay:t,caption:n,loop:o,preload:r,src:a}=e;return a&&Object(ge.createElement)("figure",de.useBlockProps.save(),Object(ge.createElement)("audio",{controls:"controls",src:a,autoPlay:t,loop:o,preload:r}),!de.RichText.isEmpty(n)&&Object(ge.createElement)(de.RichText.Content,{tagName:"figcaption",value:n}))}};var uo=Object(ge.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(he.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"}));var mo=[{supports:{align:["center","left","right"],anchor:!0},save:()=>Object(ge.createElement)("div",null,Object(ge.createElement)(de.InnerBlocks.Content,null)),isEligible:({align:e})=>e&&["center","left","right"].includes(e),migrate:e=>({...e,align:void 0,contentJustification:e.align})}];const{name:bo}={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",attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"]},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"};var po={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>Object(me.createBlock)(bo,{},e.map(e=>Object(me.createBlock)("core/button",e)))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>Object(me.createBlock)(bo,{},e.map(e=>{const t=document.createElement("div");t.innerHTML=e.content;const n=t.innerText||"",o=t.querySelector("a"),r=null==o?void 0:o.getAttribute("href");return Object(me.createBlock)("core/button",{text:n,url:r})})),isMatch:e=>e.every(e=>{const t=document.createElement("div");t.innerHTML=e.content;const n=t.innerText||"",o=t.querySelectorAll("a");return n.length<=30&&o.length<=1})}]},go=n("oMoS");const ho=e=>{const{borderRadius:t,...n}=e;return t||0===t?{...n,style:{...n.style,border:{radius:t}}}:n},vo=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),{...Object(be.omit)(e,["customTextColor","customBackgroundColor","customGradient"]),style:t}},Oo=e=>vo(Object(be.omit)({...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0},["color","textColor"])),jo={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"}};var fo=[{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...jo,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({attributes:e,className:t}){const{borderRadius:n,linkTarget:o,rel:r,text:a,title:c,url:l,width:i}=e,s=Object(de.__experimentalGetColorClassesAndStyles)(e),u=je()("wp-block-button__link",s.className,{"no-border-radius":0===n}),d={borderRadius:n?n+"px":void 0,...s.style},m=je()(t,{["has-custom-width wp-block-button__width-"+i]:i});return Object(ge.createElement)("div",de.useBlockProps.save({className:m}),Object(ge.createElement)(de.RichText.Content,{tagName:"a",className:u,href:l,title:c,style:d,value:a,target:o,rel:r}))},migrate:ho},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...jo,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({attributes:e,className:t}){const{borderRadius:n,linkTarget:o,rel:r,text:a,title:c,url:l,width:i}=e,s=Object(de.__experimentalGetColorClassesAndStyles)(e),u=je()("wp-block-button__link",s.className,{"no-border-radius":0===n}),d={borderRadius:n?n+"px":void 0,...s.style},m=je()(t,{["has-custom-width wp-block-button__width-"+i]:i});return Object(ge.createElement)("div",de.useBlockProps.save({className:m}),Object(ge.createElement)(de.RichText.Content,{tagName:"a",className:u,href:l,title:c,style:d,value:a,target:o,rel:r}))},migrate:ho},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...jo,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({attributes:e}){const{borderRadius:t,linkTarget:n,rel:o,text:r,title:a,url:c}=e,l=je()("wp-block-button__link",{"no-border-radius":0===t}),i={borderRadius:t?t+"px":void 0};return Object(ge.createElement)(de.RichText.Content,{tagName:"a",className:l,href:c,title:a,style:i,value:r,target:n,rel:o})},migrate:ho},{supports:{align:!0,alignWide:!1},attributes:{...jo,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:Object(Ie.compose)(ho,vo),save({attributes:e}){const{backgroundColor:t,borderRadius:n,customBackgroundColor:o,customTextColor:r,customGradient:a,linkTarget:c,gradient:l,rel:i,text:s,textColor:u,title:d,url:m}=e,b=Object(de.getColorClassName)("color",u),p=!a&&Object(de.getColorClassName)("background-color",t),g=Object(de.__experimentalGetGradientClass)(l),h=je()("wp-block-button__link",{"has-text-color":u||r,[b]:b,"has-background":t||o||a||l,[p]:p,"no-border-radius":0===n,[g]:g}),v={background:a||void 0,backgroundColor:p||a||l?void 0:o,color:b?void 0:r,borderRadius:n?n+"px":void 0};return Object(ge.createElement)("div",null,Object(ge.createElement)(de.RichText.Content,{tagName:"a",className:h,href:m,title:d,style:v,value:s,target:c,rel:i}))}},{attributes:{...jo,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()),ho(vo({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,customTextColor:o,linkTarget:r,rel:a,text:c,textColor:l,title:i,url:s}=e,u=Object(de.getColorClassName)("color",l),d=Object(de.getColorClassName)("background-color",t),m=je()("wp-block-button__link",{"has-text-color":l||o,[u]:u,"has-background":t||n,[d]:d}),b={backgroundColor:d?void 0:n,color:u?void 0:o};return Object(ge.createElement)("div",null,Object(ge.createElement)(de.RichText.Content,{tagName:"a",className:m,href:s,title:i,style:b,value:c,target:r,rel:a}))}},{attributes:{...jo,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:Oo,save({attributes:e}){const{url:t,text:n,title:o,backgroundColor:r,textColor:a,customBackgroundColor:c,customTextColor:l}=e,i=Object(de.getColorClassName)("color",a),s=Object(de.getColorClassName)("background-color",r),u=je()("wp-block-button__link",{"has-text-color":a||l,[i]:i,"has-background":r||c,[s]:s}),d={backgroundColor:s?void 0:c,color:i?void 0:l};return Object(ge.createElement)("div",null,Object(ge.createElement)(de.RichText.Content,{tagName:"a",className:u,href:t,title:o,style:d,value:n}))}},{attributes:{...jo,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:o,align:r,color:a,textColor:c}=e,l={backgroundColor:a,color:c};return Object(ge.createElement)("div",{className:"align"+r},Object(ge.createElement)(de.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:o,style:l,value:n}))},migrate:Oo},{attributes:{...jo,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:o,align:r,color:a,textColor:c}=e;return Object(ge.createElement)("div",{className:"align"+r,style:{backgroundColor:a}},Object(ge.createElement)(de.RichText.Content,{tagName:"a",href:t,title:o,style:{color:c},value:n}))},migrate:Oo}],yo=n("Bpkj"),wo=n("Mp0b");function _o({selectedWidth:e,setAttributes:t}){return Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Width settings")},Object(ge.createElement)(Ee.ButtonGroup,{"aria-label":Object(pe.__)("Button width")},[25,50,75,100].map(n=>Object(ge.createElement)(Ee.Button,{key:n,isSmall:!0,isPrimary:n===e,onClick:()=>{var o;t({width:e===(o=n)?void 0:o})}},n,"%"))))}function ko({isSelected:e,url:t,setAttributes:n,opensInNewTab:o,onToggleOpenInNewTab:r,anchorRef:a}){const[c,l]=Object(ge.useState)(!1),i=!!t,s=i&&e,u=()=>(l(!0),!1),d=()=>{n({url:void 0,linkTarget:void 0,rel:void 0}),l(!1)},m=(c||s)&&Object(ge.createElement)(Ee.Popover,{position:"bottom center",onClose:()=>l(!1),anchorRef:null==a?void 0:a.current},Object(ge.createElement)(de.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:t,opensInNewTab:o},onChange:({url:e="",opensInNewTab:t})=>{n({url:e}),o!==t&&r(t)}}));return Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.BlockControls,{group:"block"},!i&&Object(ge.createElement)(Ee.ToolbarButton,{name:"link",icon:yo.a,title:Object(pe.__)("Link"),shortcut:an.displayShortcut.primary("k"),onClick:u}),s&&Object(ge.createElement)(Ee.ToolbarButton,{name:"link",icon:wo.a,title:Object(pe.__)("Unlink"),shortcut:an.displayShortcut.primaryShift("k"),onClick:d,isActive:!0})),e&&Object(ge.createElement)(Ee.KeyboardShortcuts,{bindGlobal:!0,shortcuts:{[an.rawShortcut.primary("k")]:u,[an.rawShortcut.primaryShift("k")]:d}}),m)}var Eo=function(e){var t;const{attributes:n,setAttributes:o,className:r,isSelected:a,onReplace:c,mergeBlocks:l}=e,{linkTarget:i,placeholder:s,rel:u,style:d,text:m,url:b,width:p}=n,g=Object(ge.useCallback)(e=>{o({rel:e})},[o]),h=Object(ge.useCallback)(e=>{const t=e?"_blank":void 0;let n=u;t&&!u?n="noreferrer noopener":t||"noreferrer noopener"!==u||(n=void 0),o({linkTarget:t,rel:n})},[u,o]),v=null==d||null===(t=d.border)||void 0===t?void 0:t.radius,O=Object(de.__experimentalUseColorProps)(n),j=Object(ge.useRef)(),f=Object(de.useBlockProps)({ref:j});return Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)("div",Object(ke.a)({},f,{className:je()(f.className,{["has-custom-width wp-block-button__width-"+p]:p,"has-custom-font-size":f.style.fontSize})}),Object(ge.createElement)(de.RichText,{"aria-label":Object(pe.__)("Button text"),placeholder:s||Object(pe.__)("Add text…"),value:m,onChange:e=>{o({text:e.replace(/<\/?a[^>]*>/g,"")})},withoutInteractiveFormatting:!0,className:je()(r,"wp-block-button__link",O.className,{"no-border-radius":0===v}),style:{borderRadius:v?v+"px":void 0,...O.style},onSplit:e=>Object(me.createBlock)("core/button",{...n,text:e}),onReplace:c,onMerge:l,identifier:"text"})),Object(ge.createElement)(ko,{url:b,setAttributes:o,isSelected:a,opensInNewTab:"_blank"===i,onToggleOpenInNewTab:h,anchorRef:j}),Object(ge.createElement)(de.InspectorControls,null,Object(ge.createElement)(_o,{selectedWidth:p,setAttributes:o})),Object(ge.createElement)(de.InspectorAdvancedControls,null,Object(ge.createElement)(Ee.TextControl,{label:Object(pe.__)("Link rel"),value:u||"",onChange:g})))};const Co={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},fontSize:!0,reusable:!1,__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalFontFamily:!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:xo}=Co,So={icon:go.a,example:{attributes:{className:"is-style-fill",backgroundColor:"vivid-green-cyan",text:Object(pe.__)("Call to Action")}},edit:Eo,save:function({attributes:e,className:t}){var n,o;const{fontSize:r,linkTarget:a,rel:c,style:l,text:i,title:s,url:u,width:d}=e;if(!i)return null;const m=null==l||null===(n=l.border)||void 0===n?void 0:n.radius,b=Object(de.__experimentalGetColorClassesAndStyles)(e),p=je()("wp-block-button__link",b.className,{"no-border-radius":0===m}),g={borderRadius:m?m+"px":void 0,...b.style},h=je()(t,{["has-custom-width wp-block-button__width-"+d]:d,"has-custom-font-size":r||(null==l||null===(o=l.typography)||void 0===o?void 0:o.fontSize)});return Object(ge.createElement)("div",de.useBlockProps.save({className:h}),Object(ge.createElement)(de.RichText.Content,{tagName:"a",className:p,href:u,title:s,style:g,value:i,target:a,rel:c}))},deprecated:fo,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},Bo=[xo],To=[["core/button"]];var zo=function({attributes:{contentJustification:e,orientation:t},setAttributes:n}){const o=Object(de.useBlockProps)({className:je()({["is-content-justification-"+e]:e,"is-vertical":"vertical"===t})}),r=Object(de.__experimentalUseInnerBlocksProps)(o,{allowedBlocks:Bo,template:To,orientation:t,__experimentalLayout:{type:"default",alignments:[]},templateInsertUpdatesSelection:!0}),a="vertical"===t?["left","center","right"]:["left","center","right","space-between"];return Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.BlockControls,{group:"block"},Object(ge.createElement)(de.JustifyContentControl,{allowedControls:a,value:e,onChange:e=>n({contentJustification:e}),popoverProps:{position:"bottom right",isAlternate:!0}})),Object(ge.createElement)("div",r))};var Po=[{name:"buttons-horizontal",isDefault:!0,title:Object(pe.__)("Horizontal"),description:Object(pe.__)("Buttons shown in a row."),attributes:{orientation:"horizontal"},scope:["transform"]},{name:"buttons-vertical",title:Object(pe.__)("Vertical"),description:Object(pe.__)("Buttons shown in a column."),attributes:{orientation:"vertical"},scope:["transform"]}];const Mo={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",attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"]},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:No}=Mo,Ro={icon:uo,example:{innerBlocks:[{name:"core/button",attributes:{text:Object(pe.__)("Find out more")}},{name:"core/button",attributes:{text:Object(pe.__)("Contact us")}}]},deprecated:mo,transforms:po,edit:zo,save:function({attributes:{contentJustification:e,orientation:t}}){return Object(ge.createElement)("div",de.useBlockProps.save({className:je()({["is-content-justification-"+e]:e,"is-vertical":"vertical"===t})}),Object(ge.createElement)(de.InnerBlocks.Content,null))},variations:Po};var Vo=Object(ge.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(he.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})),Ho=n("wy2R"),Lo=n.n(Ho),Io=n("jSdM");const Ao=Qe()(e=>{if(!e)return{};const t=Lo()(e);return{year:t.year(),month:t.month()+1}});const Do={apiVersion:2,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your site’s posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0},style:"wp-block-calendar"},{name:Fo}=Do,Go={icon:Vo,example:{},edit:function({attributes:e}){const t=Object(Le.useSelect)(e=>{const{getEditedPostAttribute:t}=e(Io.store);return"post"===t("type")?t("date"):void 0},[]);return Object(ge.createElement)("div",Object(de.useBlockProps)(),Object(ge.createElement)(Ee.Disabled,null,Object(ge.createElement)(Kn.a,{block:"core/calendar",attributes:{...e,...Ao(t)}})))}};var qo=Object(ge.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(he.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 Uo=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(ge.createElement)(he.Path,{d:"M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z"}));const Wo={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}},supports:{align:!0,html:!1},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:$o}=Wo,Zo={icon:qo,example:{},edit:function e({attributes:{displayAsDropdown:t,showHierarchy:n,showPostCounts:o},setAttributes:r}){const a=Object(Ie.useInstanceId)(e,"blocks-category-select"),{categories:c,isRequesting:l}=Object(Le.useSelect)(e=>{const{getEntityRecords:t}=e(ue.store),{isResolving:n}=e("core/data"),o={per_page:-1,hide_empty:!0};return{categories:t("taxonomy","category",o),isRequesting:n("core","getEntityRecords",["taxonomy","category",o])}},[]),i=e=>null!=c&&c.length?null===e?c:c.filter(({parent:t})=>t===e):[],s=e=>"wp-block-categories__list wp-block-categories__list-level-"+e,u=e=>t=>r({[e]:t}),d=e=>e?Object(be.unescape)(e).trim():Object(pe.__)("(Untitled)"),m=(e,t)=>{const r=i(e.id),{id:a,link:c,count:l,name:u}=e;return Object(ge.createElement)("li",{key:a},Object(ge.createElement)("a",{href:c,target:"_blank",rel:"noreferrer noopener"},d(u)),o&&Object(ge.createElement)("span",{className:"wp-block-categories__post-count"},` (${l})`),n&&!!r.length&&Object(ge.createElement)("ul",{className:s(t+1)},r.map(e=>m(e,t+1))))},b=(e,t)=>{const{id:r,count:a,name:c}=e,l=i(r);return[Object(ge.createElement)("option",{key:r},Object(be.times)(3*t,()=>" "),d(c),o&&` (${a})`),n&&!!l.length&&l.map(e=>b(e,t+1))]};return Object(ge.createElement)("div",Object(de.useBlockProps)(),Object(ge.createElement)(de.InspectorControls,null,Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Categories settings")},Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Display as dropdown"),checked:t,onChange:u("displayAsDropdown")}),Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Show hierarchy"),checked:n,onChange:u("showHierarchy")}),Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Show post counts"),checked:o,onChange:u("showPostCounts")}))),l&&Object(ge.createElement)(Ee.Placeholder,{icon:Uo,label:Object(pe.__)("Categories")},Object(ge.createElement)(Ee.Spinner,null)),!l&&0===c.length&&Object(ge.createElement)("p",null,Object(pe.__)("Your site does not have any posts, so there is nothing to display here at the moment.")),!l&&c.length>0&&(t?(()=>{const e=i(n?0:null);return Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(Ee.VisuallyHidden,{as:"label",htmlFor:a},Object(pe.__)("Categories")),Object(ge.createElement)("select",{id:a,className:"wp-block-categories__dropdown"},e.map(e=>b(e,0))))})():(()=>{const e=i(n?0:null);return Object(ge.createElement)("ul",{className:s(0)},e.map(e=>m(e,0)))})()))}};var Qo=n("1Yn1");function Jo(e){return e.replace(/\[/g,"[")}function Yo(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var Ko={from:[{type:"enter",regExp:/^```$/,transform:()=>Object(me.createBlock)("core/code")},{type:"block",blocks:["core/html"],transform:({content:e})=>Object(me.createBlock)("core/code",{content:e})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]};const Xo={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,fontSize:!0},style:"wp-block-code"},{name:er}=Xo,tr={icon:Qo.a,example:{attributes:{content:Object(pe.__)('// 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:Ko,edit:function({attributes:e,setAttributes:t,onRemove:n}){const o=Object(de.useBlockProps)();return Object(ge.createElement)("pre",o,Object(ge.createElement)(de.RichText,{tagName:"code",value:e.content,onChange:e=>t({content:e}),onRemove:n,placeholder:Object(pe.__)("Write code…"),"aria-label":Object(pe.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0}))},save:function({attributes:e}){return Object(ge.createElement)("pre",de.useBlockProps.save(),Object(ge.createElement)(de.RichText.Content,{tagName:"code",value:(t=e.content,Object(be.flow)(Jo,Yo)(t||""))}));var t}};var nr=Object(ge.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(he.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"}));function or(e){let t,{doc:n}=or;n||(n=document.implementation.createHTMLDocument(""),or.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 rr=[{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),{...Object(be.omit)(e,["customTextColor","customBackgroundColor"]),style:t}},save({attributes:e}){const{verticalAlignment:t,backgroundColor:n,customBackgroundColor:o,textColor:r,customTextColor:a}=e,c=Object(de.getColorClassName)("background-color",n),l=Object(de.getColorClassName)("color",r),i=je()({"has-background":n||o,"has-text-color":r||a,[c]:c,[l]:l,["are-vertically-aligned-"+t]:t}),s={backgroundColor:c?void 0:o,color:l?void 0:a};return Object(ge.createElement)("div",{className:i||void 0,style:s},Object(ge.createElement)(de.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!==or(e.originalContent)),migrate(e,t){const n=t.reduce((e,t)=>{const{originalContent:n}=t;let o=or(n);return void 0===o&&(o=0),e[o]||(e[o]=[]),e[o].push(t),e},[]).map(e=>Object(me.createBlock)("core/column",{},e));return[Object(be.omit)(e,["columns"]),n]},save({attributes:e}){const{columns:t}=e;return Object(ge.createElement)("div",{className:`has-${t}-columns`},Object(ge.createElement)(de.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:(e,t)=>[e=Object(be.omit)(e,["columns"]),t],save({attributes:e}){const{verticalAlignment:t,columns:n}=e,o=je()(`has-${n}-columns`,{["are-vertically-aligned-"+t]:t});return Object(ge.createElement)("div",{className:o},Object(ge.createElement)(de.InnerBlocks.Content,null))}}];const ar=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function cr(e,t){const{width:n=100/t}=e.attributes;return ar(n)}function lr(e,t,n=e.length){const o=function(e,t=e.length){return Object(be.sumBy)(e,e=>cr(e,t))}(e,n);return Object(be.mapValues)(function(e,t=e.length){return e.reduce((e,n)=>{const o=cr(n,t);return Object.assign(e,{[n.clientId]:o})},{})}(e,n),e=>ar(t*e/o))}function ir(e,t){return e.map(e=>Object(be.merge)({},e,{attributes:{width:t[e.clientId]}}))}const sr=["core/column"];const ur=Object(Le.withDispatch)((e,t,n)=>({updateAlignment(o){const{clientId:r,setAttributes:a}=t,{updateBlockAttributes:c}=e(de.store),{getBlockOrder:l}=n.select(de.store);a({verticalAlignment:o});l(r).forEach(e=>{c(e,{verticalAlignment:o})})},updateColumns(o,r){const{clientId:a}=t,{replaceInnerBlocks:c}=e(de.store),{getBlocks:l}=n.select(de.store);let i=l(a);const s=i.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&&s){const e=ar(100/r);i=[...ir(i,lr(i,100-e)),...Object(be.times)(r-o,()=>Object(me.createBlock)("core/column",{width:e}))]}else if(u)i=[...i,...Object(be.times)(r-o,()=>Object(me.createBlock)("core/column"))];else if(i=Object(be.dropRight)(i,o-r),s){i=ir(i,lr(i,100))}c(a,i)}}))((function({attributes:e,updateAlignment:t,updateColumns:n,clientId:o}){const{verticalAlignment:r}=e,{count:a}=Object(Le.useSelect)(e=>({count:e(de.store).getBlockCount(o)}),[o]),c=je()({["are-vertically-aligned-"+r]:r}),l=Object(de.useBlockProps)({className:c}),i=Object(de.__experimentalUseInnerBlocksProps)(l,{allowedBlocks:sr,orientation:"horizontal",renderAppender:!1});return Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.BlockControls,null,Object(ge.createElement)(de.BlockVerticalAlignmentToolbar,{onChange:t,value:r})),Object(ge.createElement)(de.InspectorControls,null,Object(ge.createElement)(Ee.PanelBody,null,Object(ge.createElement)(Ee.RangeControl,{label:Object(pe.__)("Columns"),value:a,onChange:e=>n(a,e),min:1,max:Math.max(6,a)}),a>6&&Object(ge.createElement)(Ee.Notice,{status:"warning",isDismissible:!1},Object(pe.__)("This column count exceeds the recommended amount and may cause visual breakage.")))),Object(ge.createElement)("div",i))}));function dr({clientId:e,name:t,setAttributes:n}){const{blockType:o,defaultVariation:r,variations:a}=Object(Le.useSelect)(e=>{const{getBlockVariations:n,getBlockType:o,getDefaultBlockVariation:r}=e(me.store);return{blockType:o(t),defaultVariation:r(t,"block"),variations:n(t,"block")}},[t]),{replaceInnerBlocks:c}=Object(Le.useDispatch)(de.store),l=Object(de.useBlockProps)();return Object(ge.createElement)("div",l,Object(ge.createElement)(de.__experimentalBlockVariationPicker,{icon:Object(be.get)(o,["icon","src"]),label:Object(be.get)(o,["title"]),variations:a,onSelect:(t=r)=>{t.attributes&&n(t.attributes),t.innerBlocks&&c(e,Object(me.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!0)},allowSkip:!0}))}var mr=e=>{const{clientId:t}=e,n=Object(Le.useSelect)(e=>e(de.store).getBlocks(t).length>0,[t])?ur:dr;return Object(ge.createElement)(n,e)};var br=[{name:"one-column-full",title:Object(pe.__)("100"),description:Object(pe.__)("One column"),icon:Object(ge.createElement)(Ee.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(Ee.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:Object(pe.__)("50 / 50"),description:Object(pe.__)("Two columns; equal split"),icon:Object(ge.createElement)(Ee.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(Ee.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:Object(pe.__)("30 / 70"),description:Object(pe.__)("Two columns; one-third, two-thirds split"),icon:Object(ge.createElement)(Ee.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(Ee.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:Object(pe.__)("70 / 30"),description:Object(pe.__)("Two columns; two-thirds, one-third split"),icon:Object(ge.createElement)(Ee.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(Ee.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:Object(pe.__)("33 / 33 / 33"),description:Object(pe.__)("Three columns; equal split"),icon:Object(ge.createElement)(Ee.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(Ee.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:Object(pe.__)("25 / 50 / 25"),description:Object(pe.__)("Three columns; wide center column"),icon:Object(ge.createElement)(Ee.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(Ee.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"]}];var pr={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),n=e.map(({name:e,attributes:n,innerBlocks:o})=>["core/column",{width:t+"%"},[[e,{...n},o]]]);return Object(me.createBlock)("core/columns",{},Object(me.createBlocksFromInnerBlocksTemplate)(n))},isMatch:({length:e})=>e&&e<=6},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:n,backgroundColor:o,textColor:r,style:a,mediaAlt:c,mediaId:l,mediaPosition:i,mediaSizeSlug:s,mediaType:u,mediaUrl:d,mediaWidth:m,verticalAlignment:b}=e;let p;if("image"!==u&&u)p=["core/video",{id:l,src:d}];else{p=["core/image",{...{id:l,alt:c,url:d,sizeSlug:s},...{href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel}}]}const g=[["core/column",{width:m+"%"},[p]],["core/column",{width:100-m+"%"},t]];return"right"===i&&g.reverse(),Object(me.createBlock)("core/columns",{align:n,backgroundColor:o,textColor:r,style:a,verticalAlignment:b},Object(me.createBlocksFromInnerBlocksTemplate)(g))}}]};const gr={apiVersion:2,name:"core/columns",title:"Columns",category:"design",description:"Add a block that displays content in multiple columns, then add whatever content blocks you’d like.",textdomain:"default",attributes:{verticalAlignment:{type:"string"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:hr}=gr,vr={icon:nr,variations:br,example:{innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(pe.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:Object(pe.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:Object(pe.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:Object(pe.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:rr,edit:mr,save:function({attributes:e}){const{verticalAlignment:t}=e,n=je()({["are-vertically-aligned-"+t]:t});return Object(ge.createElement)("div",de.useBlockProps.save({className:n}),Object(ge.createElement)(de.InnerBlocks.Content,null))},transforms:pr};var Or=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"}));var jr=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible:({width:e})=>isFinite(e),migrate:e=>({...e,width:e.width+"%"}),save({attributes:e}){const{verticalAlignment:t,width:n}=e,o=je()({["is-vertically-aligned-"+t]:t}),r={flexBasis:n+"%"};return Object(ge.createElement)("div",{className:o,style:r},Object(ge.createElement)(de.InnerBlocks.Content,null))}}];var fr=function({attributes:{verticalAlignment:e,width:t,templateLock:n=!1},setAttributes:o,clientId:r}){const a=je()("block-core-columns",{["is-vertically-aligned-"+e]:e}),c=Object(Ee.__experimentalUseCustomUnits)({availableUnits:Object(de.useSetting)("layout.units")||["%","px","em","rem","vw"]}),{columnsIds:l,hasChildBlocks:i,rootClientId:s}=Object(Le.useSelect)(e=>{const{getBlockOrder:t,getBlockRootClientId:n}=e(de.store),o=n(r);return{hasChildBlocks:t(r).length>0,rootClientId:o,columnsIds:t(o)}},[r]),{updateBlockAttributes:u}=Object(Le.useDispatch)(de.store),d=Number.isFinite(t)?t+"%":t,m=Object(de.useBlockProps)({className:a,style:d?{flexBasis:d}:void 0}),b=l.length,p=l.indexOf(r)+1,g=Object(pe.sprintf)(Object(pe.__)("%1$s (%2$d of %3$d)"),m["aria-label"],p,b),h=Object(de.__experimentalUseInnerBlocksProps)({...m,"aria-label":g},{templateLock:n,renderAppender:i?void 0:de.InnerBlocks.ButtonBlockAppender});return Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.BlockControls,null,Object(ge.createElement)(de.BlockVerticalAlignmentToolbar,{onChange:e=>{o({verticalAlignment:e}),u(s,{verticalAlignment:null})},value:e})),Object(ge.createElement)(de.InspectorControls,null,Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Column settings")},Object(ge.createElement)(Ee.__experimentalUnitControl,{label:Object(pe.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:t||"",onChange:e=>{e=0>parseFloat(e)?"0":e,o({width:e})},units:c}))),Object(ge.createElement)("div",h))};const yr={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"},templateLock:{enum:["all","insert",!1]}},supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0}}},{name:wr}=yr,_r={icon:Or,edit:fr,save:function({attributes:e}){const{verticalAlignment:t,width:n}=e,o=je()({["is-vertically-aligned-"+t]:t});let r;return n&&(r={flexBasis:Number.isFinite(n)?n+"%":n}),Object(ge.createElement)("div",de.useBlockProps.save({className:o,style:r}),Object(ge.createElement)(de.InnerBlocks.Content,null))},deprecated:jr};var kr=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"}));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"};function Cr(e){return e?{backgroundImage:`url(${e})`}:{}}const xr=["image","video"];function Sr(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function Br(e){return!e||"center center"===e||"center"===e}function Tr(e){return Br(e)?"":Er[e]}const zr={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"}};var Pr=[{attributes:{...zr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:r,customOverlayColor:a,dimRatio:c,focalPoint:l,hasParallax:i,isRepeated:s,overlayColor:u,url:d,minHeight:m,minHeightUnit:b}=e,p=Object(de.getColorClassName)("background-color",u),g=Object(de.__experimentalGetGradientClass)(n),h=b?`${m}${b}`:m,v="image"===t,O="video"===t,j=v?Cr(d):{},f={};let y;p||(j.backgroundColor=a),r&&!d&&(j.background=r),j.minHeight=h||void 0,l&&(y=`${Math.round(100*l.x)}% ${Math.round(100*l.y)}%`,v&&!i&&(j.backgroundPosition=y),O&&(f.objectPosition=y));const w=je()(Sr(c),p,{"has-background-dim":0!==c,"has-parallax":i,"is-repeated":s,"has-background-gradient":n||r,[g]:!d&&g,"has-custom-content-position":!Br(o)},Tr(o));return Object(ge.createElement)("div",de.useBlockProps.save({className:w,style:j}),d&&(n||r)&&0!==c&&Object(ge.createElement)("span",{"aria-hidden":"true",className:je()("wp-block-cover__gradient-background",g),style:r?{background:r}:void 0}),O&&d&&Object(ge.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:f}),Object(ge.createElement)("div",{className:"wp-block-cover__inner-container"},Object(ge.createElement)(de.InnerBlocks.Content,null)))}},{attributes:{...zr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,customGradient:o,customOverlayColor:r,dimRatio:a,focalPoint:c,hasParallax:l,overlayColor:i,url:s,minHeight:u}=e,d=Object(de.getColorClassName)("background-color",i),m=Object(de.__experimentalGetGradientClass)(n),b="image"===t?Cr(s):{};d||(b.backgroundColor=r),c&&!l&&(b.backgroundPosition=`${Math.round(100*c.x)}% ${Math.round(100*c.y)}%`),o&&!s&&(b.background=o),b.minHeight=u||void 0;const p=je()(Sr(a),d,{"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":o,[m]:!s&&m});return Object(ge.createElement)("div",{className:p,style:b},s&&(n||o)&&0!==a&&Object(ge.createElement)("span",{"aria-hidden":"true",className:je()("wp-block-cover__gradient-background",m),style:o?{background:o}:void 0}),"video"===t&&s&&Object(ge.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:s}),Object(ge.createElement)("div",{className:"wp-block-cover__inner-container"},Object(ge.createElement)(de.InnerBlocks.Content,null)))}},{attributes:{...zr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,customGradient:o,customOverlayColor:r,dimRatio:a,focalPoint:c,hasParallax:l,overlayColor:i,url:s,minHeight:u}=e,d=Object(de.getColorClassName)("background-color",i),m=Object(de.__experimentalGetGradientClass)(n),b="image"===t?Cr(s):{};d||(b.backgroundColor=r),c&&!l&&(b.backgroundPosition=`${100*c.x}% ${100*c.y}%`),o&&!s&&(b.background=o),b.minHeight=u||void 0;const p=je()(Sr(a),d,{"has-background-dim":0!==a,"has-parallax":l,"has-background-gradient":o,[m]:!s&&m});return Object(ge.createElement)("div",{className:p,style:b},s&&(n||o)&&0!==a&&Object(ge.createElement)("span",{"aria-hidden":"true",className:je()("wp-block-cover__gradient-background",m),style:o?{background:o}:void 0}),"video"===t&&s&&Object(ge.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:s}),Object(ge.createElement)("div",{className:"wp-block-cover__inner-container"},Object(ge.createElement)(de.InnerBlocks.Content,null)))}},{attributes:{...zr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,contentAlign:n,customOverlayColor:o,dimRatio:r,focalPoint:a,hasParallax:c,overlayColor:l,title:i,url:s}=e,u=Object(de.getColorClassName)("background-color",l),d="image"===t?Cr(s):{};u||(d.backgroundColor=o),a&&!c&&(d.backgroundPosition=`${100*a.x}% ${100*a.y}%`);const m=je()(Sr(r),u,{"has-background-dim":0!==r,"has-parallax":c,[`has-${n}-content`]:"center"!==n});return Object(ge.createElement)("div",{className:m,style:d},"video"===t&&s&&Object(ge.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:s}),!de.RichText.isEmpty(i)&&Object(ge.createElement)(de.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:i}))},migrate:e=>[Object(be.omit)(e,["title","contentAlign"]),[Object(me.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(pe.__)("Write title…")})]]},{attributes:{...zr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save({attributes:e}){const{url:t,title:n,hasParallax:o,dimRatio:r,align:a,contentAlign:c,overlayColor:l,customOverlayColor:i}=e,s=Object(de.getColorClassName)("background-color",l),u=Cr(t);s||(u.backgroundColor=i);const d=je()("wp-block-cover-image",Sr(r),s,{"has-background-dim":0!==r,"has-parallax":o,[`has-${c}-content`]:"center"!==c},a?"align"+a:null);return Object(ge.createElement)("div",{className:d,style:u},!de.RichText.isEmpty(n)&&Object(ge.createElement)(de.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:n}))},migrate:e=>[Object(be.omit)(e,["title","contentAlign","align"]),[Object(me.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(pe.__)("Write title…")})]]},{attributes:{...zr,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save({attributes:e}){const{url:t,title:n,hasParallax:o,dimRatio:r,align:a}=e,c=Cr(t),l=je()("wp-block-cover-image",Sr(r),{"has-background-dim":0!==r,"has-parallax":o},a?"align"+a:null);return Object(ge.createElement)("section",{className:l,style:c},Object(ge.createElement)(de.RichText.Content,{tagName:"h2",value:n}))},migrate:e=>[Object(be.omit)(e,["title","contentAlign","align"]),[Object(me.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:Object(pe.__)("Write title…")})]]}],Mr=n("FEKF"),Nr=n.n(Mr),Rr=n("Zss7"),Vr=n.n(Rr);const Hr=[["core/paragraph",{align:"center",fontSize:"large",placeholder:Object(pe.__)("Write title…")}]],{__Visualizer:Lr}=Ee.__experimentalBoxControl;function Ir(){return Ir.fastAverageColor||(Ir.fastAverageColor=new Nr.a),Ir.fastAverageColor}function Ar({onChange:e,onUnitChange:t,unit:n="px",value:o=""}){const[r,a]=Object(ge.useState)(null),c="block-cover-height-input-"+Object(Ie.useInstanceId)(de.__experimentalUnitControl),l="px"===n,i=Object(Ee.__experimentalUseCustomUnits)({availableUnits:Object(de.useSetting)("spacing.units")||["px","em","rem","vw","vh"],defaultValues:{px:"430",em:"20",rem:"20",vw:"20",vh:"50"}}),s=null!==r?r:o,u=l?50:0;return Object(ge.createElement)(Ee.BaseControl,{label:Object(pe.__)("Minimum height of cover"),id:c},Object(ge.createElement)(de.__experimentalUnitControl,{id:c,isResetValueOnUnitChange:!0,min:u,onBlur:()=>{null!==r&&a(null)},onChange:n=>{const o=""!==n?parseInt(n,10):void 0;isNaN(o)&&void 0!==o?a(n):(a(null),e(o),void 0===o&&t())},onUnitChange:t,step:"1",style:{maxWidth:80},unit:n,units:i,value:s}))}const Dr={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};function Fr({className:e,onResizeStart:t,onResize:n,onResizeStop:o,...r}){const[a,c]=Object(ge.useState)(!1);return Object(ge.createElement)(Ee.ResizableBox,Object(ke.a)({className:je()(e,{"is-resizing":a}),enable:Dr,onResizeStart:(e,o,r)=>{t(r.clientHeight),n(r.clientHeight)},onResize:(e,t,o)=>{n(o.clientHeight),a||c(!0)},onResizeStop:(e,t,n)=>{o(n.clientHeight),c(!1)},minHeight:50},r))}function Gr({x:e,y:t}){return`${Math.round(100*e)}% ${Math.round(100*t)}%`}function qr({disableMediaButtons:e=!1,children:t,noticeUI:n,noticeOperations:o,onSelectMedia:r}){const{removeAllNotices:a,createErrorNotice:c}=o;return Object(ge.createElement)(de.MediaPlaceholder,{icon:Object(ge.createElement)(de.BlockIcon,{icon:kr}),labels:{title:Object(pe.__)("Cover"),instructions:Object(pe.__)("Upload an image or video file, or pick one from your media library.")},onSelect:r,accept:"image/*,video/*",allowedTypes:xr,notices:n,disableMediaButtons:e,onError:e=>{a(),c(e)}},t)}var Ur=Object(Ie.compose)([Object(Le.withDispatch)(e=>{const{toggleSelection:t}=e(de.store);return{toggleSelection:t}}),Object(de.withColors)({overlayColor:"background-color"}),Ee.withNotices,Ie.withInstanceId])((function({attributes:e,clientId:t,isSelected:n,noticeUI:o,noticeOperations:r,overlayColor:a,setAttributes:c,setOverlayColor:l,toggleSelection:i}){var s,u;const{contentPosition:d,id:m,backgroundType:b,dimRatio:p,focalPoint:g,hasParallax:h,isRepeated:v,minHeight:O,minHeightUnit:j,style:f,url:y}=e,{gradientClass:w,gradientValue:_,setGradient:k}=Object(de.__experimentalUseGradient)(),E=function(e){return t=>{if(!t||!t.url)return void e({url:void 0,id:void 0});let n;if(Object(He.isBlobURL)(t.url)&&(t.type=Object(He.getBlobTypeByURL)(t.url)),t.media_type)n="image"===t.media_type?"image":"video";else{if("image"!==t.type&&"video"!==t.type)return;n=t.type}e({url:t.url,id:t.id,backgroundType:n,..."video"===n?{focalPoint:void 0,hasParallax:void 0}:{}})}}(c),C=((e,t)=>!e&&Object(He.isBlobURL)(t))(m,y),[x,S]=Object(ge.useState)(O),[B,T]=Object(ge.useState)(j),z="vh"===j&&100===O,P=Object(ge.useRef)(),M=function(e,t=50,n,o){const[r,a]=Object(ge.useState)(!1);return Object(ge.useEffect)(()=>{e&&t<=50&&o.current&&Ir().getColorAsync(o.current,e=>{a(e.isDark)})},[e,e&&t<=50&&o.current,a]),Object(ge.useEffect)(()=>{if(t>50||!e){if(!n)return void a(!0);a(Vr()(n).isDark())}},[n,t>50||!e,a]),Object(ge.useEffect)(()=>{e||n||a(!1)},[!e&&!n,a]),r}(y,p,a.color,P),N="image"===b,R="video"===b,[V,H]=Object(ge.useState)(null),L=j?`${O}${j}`:O,I=!(h||v),A={...N&&!I?Cr(y):{backgroundImage:_||void 0},backgroundColor:a.color,minHeight:V||L||void 0},D={objectPosition:g&&I?Gr(g):void 0},F=!!(y||a.color||_),G=R||N&&(!h||v),q=e=>{const[t,n]=P.current?[P.current.style,"objectPosition"]:[$.current.style,"backgroundPosition"];t[n]=Gr(e)},U=Object(Le.useSelect)(e=>e(de.store).getBlock(t).innerBlocks.length>0,[t]),W=Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.BlockControls,{group:"block"},Object(ge.createElement)(de.__experimentalBlockAlignmentMatrixControl,{label:Object(pe.__)("Change content position"),value:d,onChange:e=>c({contentPosition:e}),isDisabled:!U}),Object(ge.createElement)(de.__experimentalBlockFullHeightAligmentControl,{isActive:z,onToggle:()=>z?c("vh"===B&&100===x?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:x,minHeightUnit:B}):(S(O),T(j),c({minHeight:100,minHeightUnit:"vh"})),isDisabled:!U})),Object(ge.createElement)(de.BlockControls,{group:"other"},Object(ge.createElement)(de.MediaReplaceFlow,{mediaId:m,mediaURL:y,allowedTypes:xr,accept:"image/*,video/*",onSelect:E,name:y?Object(pe.__)("Replace"):Object(pe.__)("Add Media")})),Object(ge.createElement)(de.InspectorControls,null,!!y&&Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Media settings")},N&&Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Fixed background"),checked:h,onChange:()=>{c({hasParallax:!h,...h?{}:{focalPoint:void 0}})}}),Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Repeated background"),checked:v,onChange:()=>{c({isRepeated:!v})}})),G&&Object(ge.createElement)(Ee.FocalPointPicker,{label:Object(pe.__)("Focal point picker"),url:y,value:g,onDragStart:q,onDrag:q,onChange:e=>c({focalPoint:e})}),Object(ge.createElement)(Ee.PanelRow,null,Object(ge.createElement)(Ee.Button,{isSecondary:!0,isSmall:!0,className:"block-library-cover__reset-button",onClick:()=>c({url:void 0,id:void 0,backgroundType:void 0,dimRatio:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0})},Object(pe.__)("Clear Media")))),Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Dimensions")},Object(ge.createElement)(Ar,{value:V||O,unit:j,onChange:e=>c({minHeight:e}),onUnitChange:e=>c({minHeightUnit:e})})),Object(ge.createElement)(de.__experimentalPanelColorGradientSettings,{title:Object(pe.__)("Overlay"),initialOpen:!0,settings:[{colorValue:a.color,gradientValue:_,onColorChange:l,onGradientChange:k,label:Object(pe.__)("Color")}]},!!y&&Object(ge.createElement)(Ee.RangeControl,{label:Object(pe.__)("Opacity"),value:p,onChange:e=>c({dimRatio:e}),min:0,max:100,step:10,required:!0})))),$=Object(ge.useRef)(),Z=Object(de.useBlockProps)({ref:$}),Q=Object(de.__experimentalUseInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:Hr,templateInsertUpdatesSelection:!0});if(!U&&!F)return Object(ge.createElement)(ge.Fragment,null,W,Object(ge.createElement)("div",Object(ke.a)({},Z,{className:je()("is-placeholder",Z.className)}),Object(ge.createElement)(qr,{noticeUI:o,onSelectMedia:E,noticeOperations:r},Object(ge.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(ge.createElement)(de.ColorPalette,{disableCustomColors:!0,value:a.color,onChange:l,clearable:!1})))));const J=je()(Sr(p),{"is-dark-theme":M,"has-background-dim":0!==p,"is-transient":C,"has-parallax":h,"is-repeated":v,[a.class]:a.class,"has-background-gradient":_,[w]:!y&&w,"has-custom-content-position":!Br(d)},Tr(d));return Object(ge.createElement)(ge.Fragment,null,W,Object(ge.createElement)("div",Object(ke.a)({},Z,{className:je()(J,Z.className),style:{...A,...Z.style},"data-url":y}),Object(ge.createElement)(Lr,{values:null==f||null===(s=f.spacing)||void 0===s?void 0:s.padding,showValues:null==f||null===(u=f.visualizers)||void 0===u?void 0:u.padding}),Object(ge.createElement)(Fr,{className:"block-library-cover__resize-container",onResizeStart:()=>{c({minHeightUnit:"px"}),i(!1)},onResize:H,onResizeStop:e=>{i(!0),c({minHeight:e}),H(null)},showHandle:n}),y&&_&&0!==p&&Object(ge.createElement)("span",{"aria-hidden":"true",className:je()("wp-block-cover__gradient-background",w),style:{backgroundImage:_}}),y&&N&&I&&Object(ge.createElement)("img",{ref:P,className:"wp-block-cover__image-background",alt:"",src:y,style:D}),y&&R&&Object(ge.createElement)("video",{ref:P,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:y,style:D}),C&&Object(ge.createElement)(Ee.Spinner,null),Object(ge.createElement)(qr,{disableMediaButtons:!0,noticeUI:o,onSelectMedia:E,noticeOperations:r}),Object(ge.createElement)("div",Q)))}));var Wr={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,align:n,id:o,anchor:r,style:a})=>{var c;return Object(me.createBlock)("core/cover",{url:t,align:n,id:o,anchor:r,style:{color:{duotone:null==a||null===(c=a.color)||void 0===c?void 0:c.duotone}}},[Object(me.createBlock)("core/paragraph",{content:e,fontSize:"large"})])}},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:n,id:o,anchor:r})=>Object(me.createBlock)("core/cover",{url:t,align:n,id:o,backgroundType:"video",anchor:r},[Object(me.createBlock)("core/paragraph",{content:e,fontSize:"large"})])},{type:"block",blocks:["core/group"],isMatch:({backgroundColor:e,gradient:t,style:n})=>{var o,r;return e||(null==n||null===(o=n.color)||void 0===o?void 0:o.background)||(null==n||null===(r=n.color)||void 0===r?void 0:r.gradient)||t},transform:({align:e,anchor:t,backgroundColor:n,gradient:o,style:r},a)=>{var c,l;return Object(me.createBlock)("core/cover",{align:e,anchor:t,overlayColor:n,customOverlayColor:null==r||null===(c=r.color)||void 0===c?void 0:c.background,gradient:o,customGradient:null==r||null===(l=r.color)||void 0===l?void 0:l.gradient},a)}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:n,customOverlayColor:o,gradient:r,customGradient:a})=>t?"image"===e:!(n||o||r||a),transform:({title:e,url:t,align:n,id:o,anchor:r,style:a})=>{var c;return Object(me.createBlock)("core/image",{caption:e,url:t,align:n,id:o,anchor:r,style:{color:{duotone:null==a||null===(c=a.color)||void 0===c?void 0:c.duotone}}})}},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:n,customOverlayColor:o,gradient:r,customGradient:a})=>t?"video"===e:!(n||o||r||a),transform:({title:e,url:t,align:n,id:o,anchor:r})=>Object(me.createBlock)("core/video",{caption:e,src:t,id:o,align:n,anchor:r})}]};const $r={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"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0},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:Zr}=$r,Qr={icon:kr,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(pe.__)("Snow Patrol"),align:"center"}}]},transforms:Wr,save:function({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:r,customOverlayColor:a,dimRatio:c,focalPoint:l,hasParallax:i,isRepeated:s,overlayColor:u,url:d,id:m,minHeight:b,minHeightUnit:p}=e,g=Object(de.getColorClassName)("background-color",u),h=Object(de.__experimentalGetGradientClass)(n),v=p?`${b}${p}`:b,O="image"===t,j="video"===t,f=!(i||s),y={...O&&!f?Cr(d):{},backgroundColor:g?void 0:a,background:r&&!d?r:void 0,minHeight:v||void 0},w=l&&f?`${Math.round(100*l.x)}% ${Math.round(100*l.y)}%`:void 0,_=je()(Sr(c),g,{"has-background-dim":0!==c,"has-parallax":i,"is-repeated":s,"has-background-gradient":n||r,[h]:!d&&h,"has-custom-content-position":!Br(o)},Tr(o));return Object(ge.createElement)("div",de.useBlockProps.save({className:_,style:y}),d&&(n||r)&&0!==c&&Object(ge.createElement)("span",{"aria-hidden":"true",className:je()("wp-block-cover__gradient-background",h),style:r?{background:r}:void 0}),O&&f&&d&&Object(ge.createElement)("img",{className:je()("wp-block-cover__image-background",m?"wp-image-"+m:null),alt:"",src:d,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),j&&d&&Object(ge.createElement)("video",{className:je()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),Object(ge.createElement)("div",{className:"wp-block-cover__inner-container"},Object(ge.createElement)(de.InnerBlocks.Content,null)))},edit:Ur,deprecated:Pr};var Jr=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:n,allowResponsive:o,getResponsiveHelp:r,toggleResponsive:a,switchBackToURLInput:c})=>Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.BlockControls,null,Object(ge.createElement)(Ee.ToolbarGroup,null,t&&Object(ge.createElement)(Ee.ToolbarButton,{className:"components-toolbar__control",label:Object(pe.__)("Edit URL"),icon:Nn.a,onClick:c}))),n&&e&&Object(ge.createElement)(de.InspectorControls,null,Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Media settings"),className:"blocks-responsive"},Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Resize for smaller devices"),checked:o,help:r,onChange:a}))));const Yr=Object(ge.createElement)(Ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(Ee.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"})),Kr=Object(ge.createElement)(Ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(Ee.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"})),Xr=Object(ge.createElement)(Ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(Ee.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"})),ea=Object(ge.createElement)(Ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(Ee.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"})),ta={foreground:"#1da1f2",src:Object(ge.createElement)(Ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(Ee.G,null,Object(ge.createElement)(Ee.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"})))},na={foreground:"#ff0000",src:Object(ge.createElement)(Ee.SVG,{viewBox:"0 0 24 24"},Object(ge.createElement)(Ee.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:Object(ge.createElement)(Ee.SVG,{viewBox:"0 0 24 24"},Object(ge.createElement)(Ee.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"}))},ra=Object(ge.createElement)(Ee.SVG,{viewBox:"0 0 24 24"},Object(ge.createElement)(Ee.G,null,Object(ge.createElement)(Ee.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"}))),aa={foreground:"#0073AA",src:Object(ge.createElement)(Ee.SVG,{viewBox:"0 0 24 24"},Object(ge.createElement)(Ee.G,null,Object(ge.createElement)(Ee.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"})))},ca={foreground:"#1db954",src:Object(ge.createElement)(Ee.SVG,{viewBox:"0 0 24 24"},Object(ge.createElement)(Ee.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"}))},la=Object(ge.createElement)(Ee.SVG,{viewBox:"0 0 24 24"},Object(ge.createElement)(Ee.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"})),ia={foreground:"#1ab7ea",src:Object(ge.createElement)(Ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(Ee.G,null,Object(ge.createElement)(Ee.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"})))},sa=Object(ge.createElement)(Ee.SVG,{viewBox:"0 0 24 24"},Object(ge.createElement)(Ee.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"})),ua={foreground:"#35465c",src:Object(ge.createElement)(Ee.SVG,{viewBox:"0 0 24 24"},Object(ge.createElement)(Ee.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"}))},da=Object(ge.createElement)(Ee.SVG,{viewBox:"0 0 24 24"},Object(ge.createElement)(Ee.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),Object(ge.createElement)(Ee.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),Object(ge.createElement)(Ee.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"})),ma=Object(ge.createElement)(Ee.SVG,{viewBox:"0 0 24 24"},Object(ge.createElement)(Ee.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),Object(ge.createElement)(Ee.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),Object(ge.createElement)(Ee.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),Object(ge.createElement)(Ee.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),Object(ge.createElement)(Ee.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),Object(ge.createElement)(Ee.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),ba=Object(ge.createElement)(Ee.SVG,{viewBox:"0 0 24 24"},Object(ge.createElement)(Ee.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"}));var pa=()=>Object(ge.createElement)("div",{className:"wp-block-embed is-loading"},Object(ge.createElement)(Ee.Spinner,null),Object(ge.createElement)("p",null,Object(pe.__)("Embedding…")));var ga=({icon:e,label:t,value:n,onSubmit:o,onChange:r,cannotEmbed:a,fallback:c,tryAgain:l})=>Object(ge.createElement)(Ee.Placeholder,{icon:Object(ge.createElement)(de.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:Object(pe.__)("Paste a link to the content you want to display on your site.")},Object(ge.createElement)("form",{onSubmit:o},Object(ge.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":t,placeholder:Object(pe.__)("Enter URL to embed here…"),onChange:r}),Object(ge.createElement)(Ee.Button,{isPrimary:!0,type:"submit"},Object(pe._x)("Embed","button label"))),Object(ge.createElement)("div",{className:"components-placeholder__learn-more"},Object(ge.createElement)(Ee.ExternalLink,{href:Object(pe.__)("https://wordpress.org/support/article/embeds/")},Object(pe.__)("Learn more about embeds"))),a&&Object(ge.createElement)("div",{className:"components-placeholder__error"},Object(ge.createElement)("div",{className:"components-placeholder__instructions"},Object(pe.__)("Sorry, this content could not be embedded.")),Object(ge.createElement)(Ee.Button,{isSecondary:!0,onClick:l},Object(pe._x)("Try again","button label"))," ",Object(ge.createElement)(Ee.Button,{isSecondary:!0,onClick:c},Object(pe._x)("Convert to link","button label"))));function ha({html:e}){const t=Object(ge.useRef)();Object(ge.useEffect)(()=>{const{ownerDocument:e}=t.current,{defaultView:n}=e;function o({data:{secret:t,message:n,value:o}={}}){[t,n,o].some(e=>!e)||"height"!==n||e.querySelectorAll(`iframe[data-secret="${t}"`).forEach(e=>{+e.height!==o&&(e.height=o)})}function r(){const{activeElement:n}=e;"IFRAME"===n.tagName&&n.parentNode===t.current&&n.focus()}return n.addEventListener("message",o),n.addEventListener("blur",r),()=>{n.removeEventListener("message",o),n.removeEventListener("blur",r)}},[]);const n=Object(ge.useMemo)(()=>{const t=(new window.DOMParser).parseFromString(e,"text/html"),n=t.querySelector("iframe");n&&n.removeAttribute("style");const o=t.querySelector("blockquote");return o&&(o.style.display="none"),t.body.innerHTML},[e]);return Object(ge.createElement)("div",{ref:t,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:n}})}class va extends ge.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:c,className:l,icon:i,label:s,insertBlocksAfter:u}=this.props,{scripts:d}=e,{interactive:m}=this.state,b="photo"===o?(e=>{const t=e.thumbnail_url||e.url,n=Object(ge.createElement)("p",null,Object(ge.createElement)("img",{src:t,alt:e.title,width:"100%"}));return Object(ge.renderToString)(n)})(e):e.html,p=new URL(n).host.split("."),g=p.splice(p.length-2,p.length-1).join("."),h=Object(pe.sprintf)(Object(pe.__)("Embedded content from %s"),g),v=$e()(o,l,"wp-block-embed__wrapper"),O="wp-embed"===o?Object(ge.createElement)(ha,{html:b}):Object(ge.createElement)("div",{className:"wp-block-embed__wrapper"},Object(ge.createElement)(Ee.SandBox,{html:b,scripts:d,title:h,type:v,onFocus:this.hideOverlay}),!m&&Object(ge.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(ge.createElement)("figure",{className:$e()(l,"wp-block-embed",{"is-type-video":"video"===o})},t?O:Object(ge.createElement)(Ee.Placeholder,{icon:Object(ge.createElement)(de.BlockIcon,{icon:i,showColors:!0}),label:s},Object(ge.createElement)("p",{className:"components-placeholder__error"},Object(ge.createElement)("a",{href:n},n)),Object(ge.createElement)("p",{className:"components-placeholder__error"},Object(pe.sprintf)(Object(pe.__)("Embedded content from %s can't be previewed in the editor."),g))),(!de.RichText.isEmpty(r)||c)&&Object(ge.createElement)(de.RichText,{tagName:"figcaption",placeholder:Object(pe.__)("Add caption"),value:r,onChange:a,inlineToolbar:!0,__unstableOnSplitAtEnd:()=>u(Object(me.createBlock)("core/paragraph"))}))}}var Oa=va;function ja(e){return e?Object(pe.__)("This embed will preserve its aspect ratio when the browser is resized."):Object(pe.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var fa=e=>{const{attributes:{providerNameSlug:t,previewable:n,responsive:o,url:r},attributes:a,isSelected:c,onReplace:l,setAttributes:i,insertBlocksAfter:s,onFocus:u}=e,d={title:Object(pe._x)("Embed","block title"),icon:Yr},{icon:m,title:b}=(p=t,(null===(g=Object(me.getBlockVariations)(Je))||void 0===g?void 0:g.find(({name:e})=>e===p))||d);var p,g;const[h,v]=Object(ge.useState)(r),[O,j]=Object(ge.useState)(!1),{invalidateResolution:f}=Object(Le.useDispatch)("core/data"),{preview:y,fetching:w,themeSupportsResponsive:_,cannotEmbed:k}=Object(Le.useSelect)(e=>{var t;const{getEmbedPreview:n,isPreviewEmbedFallback:o,isRequestingEmbedPreview:a,getThemeSupports:c}=e(ue.store);if(!r)return{fetching:!1,cannotEmbed:!1};const l=n(r),i=o(r),s=!1===(null==l?void 0:l.html)&&void 0===(null==l?void 0:l.type),u=404===(null==l||null===(t=l.data)||void 0===t?void 0:t.status),d=!!l&&!s&&!u;return{preview:d?l:void 0,fetching:a(r),themeSupportsResponsive:c()["responsive-embeds"],cannotEmbed:!d||i}},[r]),E=()=>{const{allowResponsive:e,className:t}=a;return{...a,...tt(y,b,t,o,e)}};Object(ge.useEffect)(()=>{if(null==y||!y.html||!k||w)return;const e=r.replace(/\/$/,"");v(e),j(!1),i({url:e})},[null==y?void 0:y.html,r]),Object(ge.useEffect)(()=>{if(y&&!O&&(i(E()),l)){const t=Ke(e,E());t&&l(t)}},[y,O]);const C=Object(de.useBlockProps)();if(w)return Object(ge.createElement)(he.View,C,Object(ge.createElement)(pa,null));const x=ge.Platform.select({web:Object(pe.sprintf)(Object(pe.__)("%s URL"),b),native:b});if(!y||k||O)return Object(ge.createElement)(he.View,C,Object(ge.createElement)(ga,{icon:m,label:x,onFocus:u,onSubmit:e=>{e&&e.preventDefault(),j(!1),i({url:h})},value:h,cannotEmbed:k,onChange:e=>v(e.target.value),fallback:()=>function(e,t){const n=Object(ge.createElement)("a",{href:e},e);t(Object(me.createBlock)("core/paragraph",{content:Object(ge.renderToString)(n)}))}(h,l),tryAgain:()=>{f("core","getEmbedPreview",[h])}}));const{caption:S,type:B,allowResponsive:T,className:z}=E(),P=je()(z,e.className);return Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(Jr,{showEditButton:y&&!k,themeSupportsResponsive:_,blockSupportsResponsive:o,allowResponsive:T,getResponsiveHelp:ja,toggleResponsive:()=>{const{allowResponsive:e,className:t}=a,{html:n}=y,r=!e;i({allowResponsive:r,className:et(n,t,o&&r)})},switchBackToURLInput:()=>j(!0)}),Object(ge.createElement)(he.View,C,Object(ge.createElement)(Oa,{preview:y,previewable:n,className:P,url:h,type:B,caption:S,onCaptionChange:e=>i({caption:e}),isSelected:c,icon:m,label:x,insertBlocksAfter:s})))};const{name:ya}={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter, Instagram 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 wa={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=>Object(me.createBlock)(ya,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],transform:({url:e,caption:t})=>{const n=Object(ge.createElement)("a",{href:e},t||e);return Object(me.createBlock)("core/paragraph",{content:Object(ge.renderToString)(n)})}}]};const _a=[{name:"twitter",title:"Twitter",icon:ta,keywords:["tweet",Object(pe.__)("social")],description:Object(pe.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:"YouTube",icon:na,keywords:[Object(pe.__)("music"),Object(pe.__)("video")],description:Object(pe.__)("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:[Object(pe.__)("social")],description:Object(pe.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:"Instagram",icon:ra,keywords:[Object(pe.__)("image"),Object(pe.__)("social")],description:Object(pe.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:"WordPress",icon:aa,keywords:[Object(pe.__)("post"),Object(pe.__)("blog")],description:Object(pe.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:"SoundCloud",icon:Kr,keywords:[Object(pe.__)("music"),Object(pe.__)("audio")],description:Object(pe.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:"Spotify",icon:ca,keywords:[Object(pe.__)("music"),Object(pe.__)("audio")],description:Object(pe.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:"Flickr",icon:la,keywords:[Object(pe.__)("image")],description:Object(pe.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:"Vimeo",icon:ia,keywords:[Object(pe.__)("video")],description:Object(pe.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:"Animoto",icon:ma,description:Object(pe.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:"Cloudup",icon:Yr,description:Object(pe.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:"CollegeHumor",icon:ea,description:Object(pe.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:"Crowdsignal",icon:Yr,keywords:["polldaddy",Object(pe.__)("survey")],description:Object(pe.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:"Dailymotion",icon:ba,keywords:[Object(pe.__)("video")],description:Object(pe.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:"Imgur",icon:Xr,description:Object(pe.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:"Issuu",icon:Yr,description:Object(pe.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:"Kickstarter",icon:Yr,description:Object(pe.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"meetup-com",title:"Meetup.com",icon:Yr,description:Object(pe.__)("Embed Meetup.com content."),patterns:[/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i],attributes:{providerNameSlug:"meetup-com",responsive:!0}},{name:"mixcloud",title:"Mixcloud",icon:Kr,keywords:[Object(pe.__)("music"),Object(pe.__)("audio")],description:Object(pe.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"reddit",title:"Reddit",icon:sa,description:Object(pe.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:"ReverbNation",icon:Kr,description:Object(pe.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"screencast",title:"Screencast",icon:ea,description:Object(pe.__)("Embed Screencast content."),patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i],attributes:{providerNameSlug:"screencast",responsive:!0}},{name:"scribd",title:"Scribd",icon:Yr,description:Object(pe.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"slideshare",title:"Slideshare",icon:Yr,description:Object(pe.__)("Embed Slideshare content."),patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i],attributes:{providerNameSlug:"slideshare",responsive:!0}},{name:"smugmug",title:"SmugMug",icon:Xr,description:Object(pe.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:"Speaker Deck",icon:Yr,description:Object(pe.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:"TikTok",icon:ea,keywords:[Object(pe.__)("video")],description:Object(pe.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:"TED",icon:ea,description:Object(pe.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:"Tumblr",icon:ua,keywords:[Object(pe.__)("social")],description:Object(pe.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(www\.)?tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:"VideoPress",icon:ea,keywords:[Object(pe.__)("video")],description:Object(pe.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:"WordPress.tv",icon:ea,description:Object(pe.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:"Amazon Kindle",icon:da,keywords:[Object(pe.__)("ebook")],description:Object(pe.__)("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"}}];_a.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.providerNameSlug===t.providerNameSlug)});var ka=_a;const{attributes:Ea}={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter, Instagram 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 Ca=[{attributes:Ea,save({attributes:{url:e,caption:t,type:n,providerNameSlug:o}}){if(!e)return null;const r=je()("wp-block-embed",{["is-type-"+n]:n,["is-provider-"+o]:o});return Object(ge.createElement)("figure",{className:r},`\n${e}\n`,!de.RichText.isEmpty(t)&&Object(ge.createElement)(de.RichText.Content,{tagName:"figcaption",value:t}))}}];const xa={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter, Instagram 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:Sa}=xa,Ba={icon:Yr,edit:fa,save:function({attributes:e}){const{url:t,caption:n,type:o,providerNameSlug:r}=e;if(!t)return null;const a=$e()("wp-block-embed",{["is-type-"+o]:o,["is-provider-"+r]:r,["wp-block-embed-"+r]:r});return Object(ge.createElement)("figure",de.useBlockProps.save({className:a}),Object(ge.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${t}\n`),!de.RichText.isEmpty(n)&&Object(ge.createElement)(de.RichText.Content,{tagName:"figcaption",value:n}))},transforms:wa,variations:ka,deprecated:Ca};var Ta=Object(ge.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(he.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));function za({hrefs:e,openInNewWindow:t,showDownloadButton:n,changeLinkDestinationOption:o,changeOpenInNewWindow:r,changeShowDownloadButton:a,displayPreview:c,changeDisplayPreview:l,previewHeight:i,changePreviewHeight:s}){const{href:u,textLinkHref:d,attachmentPage:m}=e;let b=[{value:u,label:Object(pe.__)("URL")}];return m&&(b=[{value:u,label:Object(pe.__)("Media file")},{value:m,label:Object(pe.__)("Attachment page")}]),Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.InspectorControls,null,u.endsWith(".pdf")&&Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("PDF settings")},Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Show inline embed"),help:c?Object(pe.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!c,onChange:l}),Object(ge.createElement)(Ee.RangeControl,{label:Object(pe.__)("Height in pixels"),min:Na,max:Math.max(Ra,i),value:i,onChange:s})),Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Text link settings")},Object(ge.createElement)(Ee.SelectControl,{label:Object(pe.__)("Link to"),value:d,options:b,onChange:o}),Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Open in new tab"),checked:t,onChange:r})),Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Download button settings")},Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Show download button"),checked:n,onChange:a}))))}const Pa=()=>!(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)&&!Ma("AcroPDF.PDF")&&!Ma("PDF.PdfCtrl")))),Ma=e=>{let t;try{t=new window.ActiveXObject(e)}catch(e){t=void 0}return t},Na=200,Ra=2e3;function Va({text:e,disabled:t}){const{createNotice:n}=Object(Le.useDispatch)(qe.store),o=Object(Ie.useCopyToClipboard)(e,()=>{n("info",Object(pe.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})});return Object(ge.createElement)(Ee.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:o,disabled:t},Object(pe.__)("Copy URL"))}var Ha=Object(Ee.withNotices)((function({attributes:e,isSelected:t,setAttributes:n,noticeUI:o,noticeOperations:r}){const{id:a,fileName:c,href:l,textLinkHref:i,textLinkTarget:s,showDownloadButton:u,downloadButtonText:d,displayPreview:m,previewHeight:b}=e,[p,g]=Object(ge.useState)(!1),{media:h,mediaUpload:v}=Object(Le.useSelect)(e=>({media:void 0===a?void 0:e(ue.store).getMedia(a),mediaUpload:e(de.store).getSettings().mediaUpload}),[a]),{toggleSelection:O}=Object(Le.useDispatch)(de.store);function j(e){if(e&&e.url){g(!1);const t=e.url.endsWith(".pdf");n({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id,displayPreview:!!t||void 0,previewHeight:t?600:void 0})}}function f(e){g(!0),r.removeAllNotices(),r.createErrorNotice(e)}function y(e){n({downloadButtonText:e.replace(/<\/?a[^>]*>/g,"")})}Object(ge.useEffect)(()=>{if(Object(He.isBlobURL)(l)){const e=Object(He.getBlobByURL)(l);v({filesList:[e],onFileChange:([e])=>j(e),onError:e=>{g(!0),r.createErrorNotice(e)}}),Object(He.revokeBlobURL)(l)}void 0===d&&y(Object(pe._x)("Download","button label"))},[]);const w=h&&h.link,_=Object(de.useBlockProps)({className:je()(Object(He.isBlobURL)(l)&&Object(Ee.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":Object(He.isBlobURL)(l)})}),k=Pa()&&m;return!l||p?Object(ge.createElement)("div",_,Object(ge.createElement)(de.MediaPlaceholder,{icon:Object(ge.createElement)(de.BlockIcon,{icon:Ta}),labels:{title:Object(pe.__)("File"),instructions:Object(pe.__)("Upload a file or pick one from your media library.")},onSelect:j,notices:o,onError:f,accept:"*"})):Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(za,{hrefs:{href:l,textLinkHref:i,attachmentPage:w},openInNewWindow:!!s,showDownloadButton:u,changeLinkDestinationOption:function(e){n({textLinkHref:e})},changeOpenInNewWindow:function(e){n({textLinkTarget:!!e&&"_blank"})},changeShowDownloadButton:function(e){n({showDownloadButton:e})},displayPreview:m,changeDisplayPreview:function(e){n({displayPreview:e})},previewHeight:b,changePreviewHeight:function(e){const t=Math.max(parseInt(e,10),Na);n({previewHeight:t})}}),Object(ge.createElement)(de.BlockControls,{group:"other"},Object(ge.createElement)(de.MediaReplaceFlow,{mediaId:a,mediaURL:l,accept:"*",onSelect:j,onError:f}),Object(ge.createElement)(Va,{text:l,disabled:Object(He.isBlobURL)(l)})),Object(ge.createElement)("div",_,k&&Object(ge.createElement)(Ee.ResizableBox,{size:{height:b},minHeight:Na,maxHeight:Ra,minWidth:"100%",grid:[10,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>O(!1),onResizeStop:function(e,t,o,r){O(!0);const a=parseInt(b+r.height,10);n({previewHeight:a})},showHandle:t},Object(ge.createElement)("object",{className:"wp-block-file__preview",data:l,type:"application/pdf","aria-label":Object(pe.__)("Embed of the selected PDF file.")}),!t&&Object(ge.createElement)("div",{className:"wp-block-file__preview-overlay"})),Object(ge.createElement)("div",{className:"wp-block-file__content-wrapper"},Object(ge.createElement)(de.RichText,{style:{display:"inline-block"},tagName:"a",value:c,placeholder:Object(pe.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:e=>n({fileName:e}),href:i}),u&&Object(ge.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},Object(ge.createElement)(de.RichText,{tagName:"div","aria-label":Object(pe.__)("Download button text"),className:"wp-block-file__button",value:d,withoutInteractiveFormatting:!0,placeholder:Object(pe.__)("Add text…"),onChange:e=>y(e)})))))}));var La={from:[{type:"files",isMatch:e=>e.length>0,priority:15,transform:e=>{const t=[];return e.forEach(e=>{const n=Object(He.createBlobURL)(e);t.push(Object(me.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))}),t}},{type:"block",blocks:["core/audio"],transform:e=>Object(me.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=>Object(me.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=>Object(me.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id,anchor:e.anchor})}],to:[{type:"block",blocks:["core/audio"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=Object(Le.select)(ue.store),n=t(e);return!!n&&Object(be.includes)(n.mime_type,"audio")},transform:e=>Object(me.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=Object(Le.select)(ue.store),n=t(e);return!!n&&Object(be.includes)(n.mime_type,"video")},transform:e=>Object(me.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=Object(Le.select)(ue.store),n=t(e);return!!n&&Object(be.includes)(n.mime_type,"image")},transform:e=>Object(me.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]};const Ia={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"},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},editorStyle:"wp-block-file-editor",style:"wp-block-file"},{name:Aa}=Ia,Da={icon:Ta,transforms:La,edit:Ha,save:function({attributes:e}){const{href:t,fileName:n,textLinkHref:o,textLinkTarget:r,showDownloadButton:a,downloadButtonText:c,displayPreview:l,previewHeight:i}=e,s=de.RichText.isEmpty(n)?Object(pe.__)("PDF embed"):Object(pe.sprintf)(Object(pe.__)("Embed of %s."),n);return t&&Object(ge.createElement)("div",de.useBlockProps.save(),l&&Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:i+"px"},"aria-label":s})),!de.RichText.isEmpty(n)&&Object(ge.createElement)("a",{href:o,target:r,rel:r?"noreferrer noopener":void 0},Object(ge.createElement)(de.RichText.Content,{value:n})),a&&Object(ge.createElement)("a",{href:t,className:"wp-block-file__button",download:!0},Object(ge.createElement)(de.RichText.Content,{value:c})))}};var Fa=Object(ge.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(he.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 Ga={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>Object(me.createBlock)("core/html",{content:e})}]};const qa={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:Ua}=qa,Wa={icon:Fa,example:{attributes:{content:""+Object(pe.__)("Welcome to the wonderful world of blocks…")+""}},edit:function({attributes:e,setAttributes:t,isSelected:n}){const[o,r]=Object(ge.useState)(),a=Object(Le.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",...Object(de.transformStyles)(e(de.store).getSettings().styles)],[]);return Object(ge.createElement)("div",Object(de.useBlockProps)({className:"block-library-html__edit"}),Object(ge.createElement)(de.BlockControls,null,Object(ge.createElement)(Ee.ToolbarGroup,null,Object(ge.createElement)(Ee.ToolbarButton,{className:"components-tab-button",isPressed:!o,onClick:function(){r(!1)}},Object(ge.createElement)("span",null,"HTML")),Object(ge.createElement)(Ee.ToolbarButton,{className:"components-tab-button",isPressed:o,onClick:function(){r(!0)}},Object(ge.createElement)("span",null,Object(pe.__)("Preview"))))),Object(ge.createElement)(Ee.Disabled.Consumer,null,r=>o||r?Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(Ee.SandBox,{html:e.content,styles:a}),!n&&Object(ge.createElement)("div",{className:"block-library-html__preview-overlay"})):Object(ge.createElement)(de.PlainText,{value:e.content,onChange:e=>t({content:e}),placeholder:Object(pe.__)("Write HTML…"),"aria-label":Object(pe.__)("HTML")})))},save:function({attributes:e}){return Object(ge.createElement)(ge.RawHTML,null,e.content)},transforms:Ga};var $a=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.Path,{d:"M3 18h8V6H3v12zM14 7.5V9h7V7.5h-7zm0 5.3h7v-1.5h-7v1.5zm0 3.7h7V15h-7v1.5z"})),Za=Object(ge.createElement)(Ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(Ee.Path,{d:"M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z"}),Object(ge.createElement)(Ee.Path,{d:"M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z"}),Object(ge.createElement)(Ee.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"}));const Qa=["image","video"];function Ja(e,t){return e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${100*t.x}% ${100*t.y}%`:"50% 50%"}:{}}const Ya=Object(ge.forwardRef)(({isSelected:e,isStackedOnMobile:t,...n},o)=>{const r=Object(Ie.useViewportMatch)("small","<");return Object(ge.createElement)(Ee.ResizableBox,Object(ke.a)({ref:o,showHandle:e&&(!r||!t)},n))});function Ka({mediaId:e,mediaUrl:t,onSelectMedia:n}){return Object(ge.createElement)(de.BlockControls,{group:"other"},Object(ge.createElement)(de.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:Qa,accept:"image/*,video/*",onSelect:n}))}function Xa({className:e,noticeOperations:t,noticeUI:n,onSelectMedia:o}){return Object(ge.createElement)(de.MediaPlaceholder,{icon:Object(ge.createElement)(de.BlockIcon,{icon:Za}),labels:{title:Object(pe.__)("Media area")},className:e,onSelect:o,accept:"image/*,video/*",allowedTypes:Qa,notices:n,onError:e=>{t.removeAllNotices(),t.createErrorNotice(e)}})}var ec=Object(Ee.withNotices)(Object(ge.forwardRef)((function(e,t){const{className:n,commitWidthChange:o,focalPoint:r,imageFill:a,isSelected:c,isStackedOnMobile:l,mediaAlt:i,mediaId:s,mediaPosition:u,mediaType:d,mediaUrl:m,mediaWidth:b,onSelectMedia:p,onWidthChange:g}=e,{toggleSelection:h}=Object(Le.useDispatch)(de.store);if(d&&m){const e=()=>{h(!1)},v=(e,t,n)=>{g(parseInt(n.style.width))},O=(e,t,n)=>{h(!0),o(parseInt(n.style.width))},j={right:"left"===u,left:"right"===u},f="image"===d&&a?Ja(m,r):{},y={image:()=>Object(ge.createElement)("img",{src:m,alt:i}),video:()=>Object(ge.createElement)("video",{controls:!0,src:m})};return Object(ge.createElement)(Ya,{as:"figure",className:je()(n,"editor-media-container__resizer"),style:f,size:{width:b+"%"},minWidth:"10%",maxWidth:"100%",enable:j,onResizeStart:e,onResize:v,onResizeStop:O,axis:"x",isSelected:c,isStackedOnMobile:l,ref:t},Object(ge.createElement)(Ka,{onSelectMedia:p,mediaUrl:m,mediaId:s}),(y[d]||be.noop)())}return Object(ge.createElement)(Xa,e)})));const tc=e=>{if(!e.customBackgroundColor)return e;const t={color:{background:e.customBackgroundColor}};return{...Object(be.omit)(e,["customBackgroundColor"]),style:t}},nc={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 oc=[{attributes:{...nc,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:tc,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:o,mediaAlt:r,mediaPosition:a,mediaType:c,mediaUrl:l,mediaWidth:i,mediaId:s,verticalAlignment:u,imageFill:d,focalPoint:m,linkClass:b,href:p,linkTarget:g,rel:h}=e,v=Object(be.isEmpty)(h)?void 0:h;let O=Object(ge.createElement)("img",{src:l,alt:r,className:s&&"image"===c?"wp-image-"+s:null});p&&(O=Object(ge.createElement)("a",{className:b,href:p,target:g,rel:v},O));const j={image:()=>O,video:()=>Object(ge.createElement)("video",{controls:!0,src:l})},f=Object(de.getColorClassName)("background-color",t),y=je()({"has-media-on-the-right":"right"===a,"has-background":f||n,[f]:f,"is-stacked-on-mobile":o,["is-vertically-aligned-"+u]:u,"is-image-fill":d}),w=d?Ja(l,m):{};let _;50!==i&&(_="right"===a?`auto ${i}%`:i+"% auto");const k={backgroundColor:f?void 0:n,gridTemplateColumns:_};return Object(ge.createElement)("div",{className:y,style:k},Object(ge.createElement)("figure",{className:"wp-block-media-text__media",style:w},(j[c]||be.noop)()),Object(ge.createElement)("div",{className:"wp-block-media-text__content"},Object(ge.createElement)(de.InnerBlocks.Content,null)))}},{attributes:{...nc,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:tc,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:o,mediaAlt:r,mediaPosition:a,mediaType:c,mediaUrl:l,mediaWidth:i,mediaId:s,verticalAlignment:u,imageFill:d,focalPoint:m}=e,b={image:()=>Object(ge.createElement)("img",{src:l,alt:r,className:s&&"image"===c?"wp-image-"+s:null}),video:()=>Object(ge.createElement)("video",{controls:!0,src:l})},p=Object(de.getColorClassName)("background-color",t),g=je()({"has-media-on-the-right":"right"===a,[p]:p,"is-stacked-on-mobile":o,["is-vertically-aligned-"+u]:u,"is-image-fill":d}),h=d?Ja(l,m):{};let v;50!==i&&(v="right"===a?`auto ${i}%`:i+"% auto");const O={backgroundColor:p?void 0:n,gridTemplateColumns:v};return Object(ge.createElement)("div",{className:g,style:O},Object(ge.createElement)("figure",{className:"wp-block-media-text__media",style:h},(b[c]||be.noop)()),Object(ge.createElement)("div",{className:"wp-block-media-text__content"},Object(ge.createElement)(de.InnerBlocks.Content,null)))}},{attributes:{...nc,customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:o,mediaAlt:r,mediaPosition:a,mediaType:c,mediaUrl:l,mediaWidth:i}=e,s={image:()=>Object(ge.createElement)("img",{src:l,alt:r}),video:()=>Object(ge.createElement)("video",{controls:!0,src:l})},u=Object(de.getColorClassName)("background-color",t),d=je()({"has-media-on-the-right":"right"===a,[u]:u,"is-stacked-on-mobile":o});let m;50!==i&&(m="right"===a?`auto ${i}%`:i+"% auto");const b={backgroundColor:u?void 0:n,gridTemplateColumns:m};return Object(ge.createElement)("div",{className:d,style:b},Object(ge.createElement)("figure",{className:"wp-block-media-text__media"},(s[c]||be.noop)()),Object(ge.createElement)("div",{className:"wp-block-media-text__content"},Object(ge.createElement)(de.InnerBlocks.Content,null)))}}];var rc=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"}));var ac=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"}));const cc=[["core/paragraph",{fontSize:"large",placeholder:Object(pe._x)("Content…","content placeholder")}]],lc=e=>Math.max(15,Math.min(e,85));function ic(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 sc=function({attributes:e,isSelected:t,setAttributes:n}){const{focalPoint:o,href:r,imageFill:a,isStackedOnMobile:c,linkClass:l,linkDestination:i,linkTarget:s,mediaAlt:u,mediaId:d,mediaPosition:m,mediaType:b,mediaUrl:p,mediaWidth:g,rel:h,verticalAlignment:v}=e,O=e.mediaSizeSlug||"full",j=Object(Le.useSelect)(e=>d&&t?e(ue.store).getMedia(d):null,[t,d]),f=Object(ge.useRef)(),y=e=>{const{style:t}=f.current.resizable,{x:n,y:o}=e;t.backgroundPosition=`${100*n}% ${100*o}%`},[w,_]=Object(ge.useState)(null),k=function({attributes:{linkDestination:e,href:t},setAttributes:n}){return o=>{let r,a;var c,l,i,s,u;(r=o.media_type?"image"===o.media_type?"image":"video":o.type,"image"===r)&&(a=(null===(c=o.sizes)||void 0===c||null===(l=c.large)||void 0===l?void 0:l.url)||(null===(i=o.media_details)||void 0===i||null===(s=i.sizes)||void 0===s||null===(u=s.large)||void 0===u?void 0:u.source_url));let d=t;"media"===e&&(d=o.url),"attachment"===e&&(d=o.link),n({mediaAlt:o.alt,mediaId:o.id,mediaType:r,mediaUrl:a||o.url,mediaLink:o.link||void 0,href:d,focalPoint:void 0})}}({attributes:e,setAttributes:n}),E=e=>{n({mediaWidth:lc(e)}),_(lc(e))},C=je()({"has-media-on-the-right":"right"===m,"is-selected":t,"is-stacked-on-mobile":c,["is-vertically-aligned-"+v]:v,"is-image-fill":a}),x=(w||g)+"%",S="right"===m?"1fr "+x:x+" 1fr",B={gridTemplateColumns:S,msGridColumns:S},T=Object(Le.useSelect)(e=>{const t=e(de.store).getSettings();return null==t?void 0:t.imageSizes}),z=Object(be.map)(Object(be.filter)(T,({slug:e})=>ic(j,e)),({name:e,slug:t})=>({value:t,label:e})),P=Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Media & Text settings")},Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Stack on mobile"),checked:c,onChange:()=>n({isStackedOnMobile:!c})}),"image"===b&&Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Crop image to fill entire column"),checked:a,onChange:()=>n({imageFill:!a})}),a&&p&&"image"===b&&Object(ge.createElement)(Ee.FocalPointPicker,{label:Object(pe.__)("Focal point picker"),url:p,value:o,onChange:e=>n({focalPoint:e}),onDragStart:y,onDrag:y}),"image"===b&&Object(ge.createElement)(Ee.TextareaControl,{label:Object(pe.__)("Alt text (alternative text)"),value:u,onChange:e=>{n({mediaAlt:e})},help:Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(Ee.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(pe.__)("Describe the purpose of the image")),Object(pe.__)("Leave empty if the image is purely decorative."))}),"image"===b&&Object(ge.createElement)(de.__experimentalImageSizeControl,{onChangeImage:e=>{const t=ic(j,e);if(!t)return null;n({mediaUrl:t,mediaSizeSlug:e})},slug:O,imageSizeOptions:z,isResizable:!1}),p&&Object(ge.createElement)(Ee.RangeControl,{label:Object(pe.__)("Media width"),value:w||g,onChange:E,min:15,max:85})),M=Object(de.useBlockProps)({className:C,style:B}),N=Object(de.__experimentalUseInnerBlocksProps)({className:"wp-block-media-text__content"},{template:cc});return Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.InspectorControls,null,P),Object(ge.createElement)(de.BlockControls,{group:"block"},Object(ge.createElement)(de.BlockVerticalAlignmentControl,{onChange:e=>{n({verticalAlignment:e})},value:v}),Object(ge.createElement)(Ee.ToolbarButton,{icon:rc,title:Object(pe.__)("Show media on left"),isActive:"left"===m,onClick:()=>n({mediaPosition:"left"})}),Object(ge.createElement)(Ee.ToolbarButton,{icon:ac,title:Object(pe.__)("Show media on right"),isActive:"right"===m,onClick:()=>n({mediaPosition:"right"})}),"image"===b&&Object(ge.createElement)(de.__experimentalImageURLInputUI,{url:r||"",onChangeUrl:e=>{n(e)},linkDestination:i,mediaType:b,mediaUrl:j&&j.source_url,mediaLink:j&&j.link,linkTarget:s,linkClass:l,rel:h})),Object(ge.createElement)("div",M,Object(ge.createElement)(ec,{className:"wp-block-media-text__media",onSelectMedia:k,onWidthChange:e=>{_(lc(e))},commitWidthChange:E,ref:f,focalPoint:o,imageFill:a,isSelected:t,isStackedOnMobile:c,mediaAlt:u,mediaId:d,mediaPosition:m,mediaType:b,mediaUrl:p,mediaWidth:g}),Object(ge.createElement)("div",N)))};var uc={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:n,anchor:o})=>Object(me.createBlock)("core/media-text",{mediaAlt:e,mediaId:n,mediaUrl:t,mediaType:"image",anchor:o})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:n})=>Object(me.createBlock)("core/media-text",{mediaId:t,mediaUrl:e,mediaType:"video",anchor:n})}],to:[{type:"block",blocks:["core/image"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"image"===e,transform:({mediaAlt:e,mediaId:t,mediaUrl:n,anchor:o})=>Object(me.createBlock)("core/image",{alt:e,id:t,url:n,anchor:o})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"video"===e,transform:({mediaId:e,mediaUrl:t,anchor:n})=>Object(me.createBlock)("core/video",{id:e,src:t,anchor:n})}]};const dc={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}},editorStyle:"wp-block-media-text-editor",style:"wp-block-media-text"},{name:mc}=dc,bc={icon:$a,example:{attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:Object(pe.__)("The wren
Earns his living
Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(pe.__)("— Kobayashi Issa (一茶)")}}]},transforms:uc,edit:sc,save:function({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:o,mediaType:r,mediaUrl:a,mediaWidth:c,mediaId:l,verticalAlignment:i,imageFill:s,focalPoint:u,linkClass:d,href:m,linkTarget:b,rel:p}=e,g=e.mediaSizeSlug||"full",h=Object(be.isEmpty)(p)?void 0:p,v=je()({["wp-image-"+l]:l&&"image"===r,["size-"+g]:l&&"image"===r});let O=Object(ge.createElement)("img",{src:a,alt:n,className:v||null});m&&(O=Object(ge.createElement)("a",{className:d,href:m,target:b,rel:h},O));const j={image:()=>O,video:()=>Object(ge.createElement)("video",{controls:!0,src:a})},f=je()({"has-media-on-the-right":"right"===o,"is-stacked-on-mobile":t,["is-vertically-aligned-"+i]:i,"is-image-fill":s}),y=s?Ja(a,u):{};let w;50!==c&&(w="right"===o?`auto ${c}%`:c+"% auto");const _={gridTemplateColumns:w};return Object(ge.createElement)("div",de.useBlockProps.save({className:f,style:_}),Object(ge.createElement)("figure",{className:"wp-block-media-text__media",style:y},(j[r]||be.noop)()),Object(ge.createElement)("div",{className:"wp-block-media-text__content"},Object(ge.createElement)(de.InnerBlocks.Content,null)))},deprecated:oc};var pc=Object(ge.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(he.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"}));const gc={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:hc}=gc,vc={icon:pc,example:{},edit:function({attributes:e,setAttributes:t}){const{commentsToShow:n,displayAvatar:o,displayDate:r,displayExcerpt:a}=e;return Object(ge.createElement)("div",Object(de.useBlockProps)(),Object(ge.createElement)(de.InspectorControls,null,Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Latest comments settings")},Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Display avatar"),checked:o,onChange:()=>t({displayAvatar:!o})}),Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Display date"),checked:r,onChange:()=>t({displayDate:!r})}),Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Display excerpt"),checked:a,onChange:()=>t({displayExcerpt:!a})}),Object(ge.createElement)(Ee.RangeControl,{label:Object(pe.__)("Number of comments"),value:n,onChange:e=>t({commentsToShow:e}),min:1,max:100,required:!0}))),Object(ge.createElement)(Ee.Disabled,null,Object(ge.createElement)(Kn.a,{block:"core/latest-comments",attributes:e})))}};var Oc=Object(ge.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(he.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));const{attributes:jc}={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 fc=[{attributes:{...jc,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:({categories:e})=>e&&"string"==typeof e,save:()=>null}],yc=n("FqII");var wc=Object(ge.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(he.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})),_c=n("b2RC");const kc={per_page:-1},Ec={per_page:-1};const Cc={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:xc}=Cc,Sc={icon:Oc,example:{},edit:function({attributes:e,setAttributes:t}){const{postsToShow:n,order:o,orderBy:r,categories:a,selectedAuthor:c,displayFeaturedImage:l,displayPostContentRadio:i,displayPostContent:s,displayPostDate:u,displayAuthor:d,postLayout:m,columns:b,excerptLength:p,featuredImageAlign:g,featuredImageSizeSlug:h,featuredImageSizeWidth:v,featuredImageSizeHeight:O,addLinkToFeaturedImage:j}=e,{imageSizeOptions:f,latestPosts:y,defaultImageWidth:w,defaultImageHeight:_}=Object(Le.useSelect)(e=>{const{getEntityRecords:t,getMedia:l}=e(ue.store),{getSettings:i}=e(de.store),{imageSizes:s,imageDimensions:u}=i(),d=a&&a.length>0?a.map(e=>e.id):[],m=t("postType","post",Object(be.pickBy)({categories:d,author:c,order:o,orderby:r,per_page:n},e=>!Object(be.isUndefined)(e)));return{defaultImageWidth:Object(be.get)(u,[h,"width"],0),defaultImageHeight:Object(be.get)(u,[h,"height"],0),imageSizeOptions:s.filter(({slug:e})=>"full"!==e).map(({name:e,slug:t})=>({value:t,label:e})),latestPosts:Array.isArray(m)?m.map(e=>{if(!e.featured_media)return e;const t=l(e.featured_media);let n=Object(be.get)(t,["media_details","sizes",h,"source_url"],null);n||(n=Object(be.get)(t,"source_url",null));const o={url:n,alt:null==t?void 0:t.alt_text};return{...e,featuredImageInfo:o}}):m}},[h,n,o,r,a,c]),[k,E]=Object(ge.useState)([]),[C,x]=Object(ge.useState)([]),S=k.reduce((e,t)=>({...e,[t.name]:t}),{}),B=Object(ge.useRef)();Object(ge.useEffect)(()=>(B.current=!0,Et()({path:Object(Ae.addQueryArgs)("/wp/v2/categories",kc)}).then(e=>{B.current&&E(e)}).catch(()=>{B.current&&E([])}),Et()({path:Object(Ae.addQueryArgs)("/wp/v2/users",Ec)}).then(e=>{B.current&&x(e)}).catch(()=>{B.current&&x([])}),()=>{B.current=!1}),[]);const T=!(null==y||!y.length),z=Object(ge.createElement)(de.InspectorControls,null,Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Post content settings")},Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Post content"),checked:s,onChange:e=>t({displayPostContent:e})}),s&&Object(ge.createElement)(Ee.RadioControl,{label:Object(pe.__)("Show:"),selected:i,options:[{label:Object(pe.__)("Excerpt"),value:"excerpt"},{label:Object(pe.__)("Full post"),value:"full_post"}],onChange:e=>t({displayPostContentRadio:e})}),s&&"excerpt"===i&&Object(ge.createElement)(Ee.RangeControl,{label:Object(pe.__)("Max number of words in excerpt"),value:p,onChange:e=>t({excerptLength:e}),min:10,max:100})),Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Post meta settings")},Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Display author name"),checked:d,onChange:e=>t({displayAuthor:e})}),Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Display post date"),checked:u,onChange:e=>t({displayPostDate:e})})),Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Featured image settings")},Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Display featured image"),checked:l,onChange:e=>t({displayFeaturedImage:e})}),l&&Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.__experimentalImageSizeControl,{onChange:e=>{const n={};e.hasOwnProperty("width")&&(n.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(n.featuredImageSizeHeight=e.height),t(n)},slug:h,width:v,height:O,imageWidth:w,imageHeight:_,imageSizeOptions:f,onChangeImage:e=>t({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}),Object(ge.createElement)(Ee.BaseControl,{className:"block-editor-image-alignment-control__row"},Object(ge.createElement)(Ee.BaseControl.VisualLabel,null,Object(pe.__)("Image alignment")),Object(ge.createElement)(de.BlockAlignmentToolbar,{value:g,onChange:e=>t({featuredImageAlign:e}),controls:["left","center","right"],isCollapsed:!1})),Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Add link to featured image"),checked:j,onChange:e=>t({addLinkToFeaturedImage:e})}))),Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Sorting and filtering")},Object(ge.createElement)(Ee.QueryControls,{order:o,orderBy:r,numberOfItems:n,onOrderChange:e=>t({order:e}),onOrderByChange:e=>t({orderBy:e}),onNumberOfItemsChange:e=>t({postsToShow:e}),categorySuggestions:S,onCategoryChange:e=>{if(e.some(e=>"string"==typeof e&&!S[e]))return;const n=e.map(e=>"string"==typeof e?S[e]:e);if(Object(be.includes)(n,null))return!1;t({categories:n})},selectedCategories:a,onAuthorChange:e=>t({selectedAuthor:""!==e?Number(e):void 0}),authorList:C,selectedAuthorId:c}),"grid"===m&&Object(ge.createElement)(Ee.RangeControl,{label:Object(pe.__)("Columns"),value:b,onChange:e=>t({columns:e}),min:2,max:T?Math.min(6,y.length):6,required:!0}))),P=Object(de.useBlockProps)({className:je()({"wp-block-latest-posts__list":!0,"is-grid":"grid"===m,"has-dates":u,"has-author":d,["columns-"+b]:"grid"===m})});if(!T)return Object(ge.createElement)("div",P,z,Object(ge.createElement)(Ee.Placeholder,{icon:Uo,label:Object(pe.__)("Latest Posts")},Array.isArray(y)?Object(pe.__)("No posts found."):Object(ge.createElement)(Ee.Spinner,null)));const M=y.length>n?y.slice(0,n):y,N=[{icon:wc,title:Object(pe.__)("List view"),onClick:()=>t({postLayout:"list"}),isActive:"list"===m},{icon:_c.a,title:Object(pe.__)("Grid view"),onClick:()=>t({postLayout:"grid"}),isActive:"grid"===m}],R=Object(yc.__experimentalGetSettings)().formats.date;return Object(ge.createElement)("div",null,z,Object(ge.createElement)(de.BlockControls,null,Object(ge.createElement)(Ee.ToolbarGroup,{controls:N})),Object(ge.createElement)("ul",P,M.map((e,t)=>{const n=Object(be.invoke)(e,["title","rendered","trim"]);let o=e.excerpt.rendered;const r=C.find(t=>t.id===e.author),a=document.createElement("div");a.innerHTML=o,o=a.textContent||a.innerText||"";const{featuredImageInfo:{url:c,alt:m}={}}=e,b=je()({"wp-block-latest-posts__featured-image":!0,["align"+g]:!!g}),h=l&&c,f=h&&Object(ge.createElement)("img",{src:c,alt:m,style:{maxWidth:v,maxHeight:O}}),y=p{var t,n,o;const r=null!==(t=null===(n=e(de.store).getSettings())||void 0===n?void 0:n.widgetTypesToHideFromLegacyWidgetBlock)&&void 0!==t?t:[];return null===(o=e(ue.store).getWidgetTypes({per_page:-1}))||void 0===o?void 0:o.filter(e=>!r.includes(e.id))},[]);return n?0===n.length?Object(pe.__)("There are no widgets available."):Object(ge.createElement)(Ee.SelectControl,{label:Object(pe.__)("Select a legacy widget to display:"),value:null!=e?e:"",options:[{value:"",label:Object(pe.__)("Select widget")},...n.map(e=>({value:e.id,label:e.name}))],onChange:e=>{if(e){const o=n.find(t=>t.id===e);t({selectedId:o.id,isMulti:o.is_multi})}else t({selectedId:null})}}):Object(ge.createElement)(Ee.Spinner,null)}function Mc({name:e,description:t}){return Object(ge.createElement)("div",{className:"wp-block-legacy-widget-inspector-card"},Object(ge.createElement)("h3",{className:"wp-block-legacy-widget-inspector-card__name"},e),Object(ge.createElement)("span",null,t))}class Nc{constructor({id:e,idBase:t,instance:n,onChangeInstance:o,onChangeHasPreview:r,onError:a}){this.id=e,this.idBase=t,this._instance=n,this._hasPreview=null,this.onChangeInstance=o,this.onChangeHasPreview=r,this.onError=a,this.number=++Rc,this.handleFormChange=Object(be.debounce)(this.saveForm.bind(this),200),this.handleFormSubmit=this.handleFormSubmit.bind(this),this.initDOM(),this.bindEvents(),this.loadContent()}destroy(){this.unbindEvents(),this.element.remove()}initDOM(){var e,t;this.element=Vc("div",{class:"widget open"},[Vc("div",{class:"widget-inside"},[this.form=Vc("form",{class:"form",method:"post"},[Vc("input",{class:"widget-id",type:"hidden",name:"widget-id",value:null!==(e=this.id)&&void 0!==e?e:`${this.idBase}-${this.number}`}),Vc("input",{class:"id_base",type:"hidden",name:"id_base",value:null!==(t=this.idBase)&&void 0!==t?t:this.id}),Vc("input",{class:"widget-width",type:"hidden",name:"widget-width",value:"250"}),Vc("input",{class:"widget-height",type:"hidden",name:"widget-height",value:"200"}),Vc("input",{class:"widget_number",type:"hidden",name:"widget_number",value:this.idBase?this.number.toString():""}),this.content=Vc("div",{class:"widget-content"}),this.id&&Vc("button",{class:"button is-primary",type:"submit"},Object(pe.__)("Save"))])])])}bindEvents(){if(window.jQuery){const{jQuery:e}=window;e(this.form).on("change",null,this.handleFormChange),e(this.form).on("input",null,this.handleFormChange),e(this.form).on("submit",this.handleFormSubmit)}else this.form.addEventListener("change",this.handleFormChange),this.form.addEventListener("input",this.handleFormChange),this.form.addEventListener("submit",this.handleFormSubmit)}unbindEvents(){if(window.jQuery){const{jQuery:e}=window;e(this.form).off("change",null,this.handleFormChange),e(this.form).off("input",null,this.handleFormChange),e(this.form).off("submit",this.handleFormSubmit)}else this.form.removeEventListener("change",this.handleFormChange),this.form.removeEventListener("input",this.handleFormChange),this.form.removeEventListener("submit",this.handleFormSubmit)}async loadContent(){try{if(this.id){const{form:e}=await Hc(this.id);this.content.innerHTML=e}else if(this.idBase){const{form:e,preview:t}=await Lc({idBase:this.idBase,instance:this.instance,number:this.number});if(this.content.innerHTML=e,this.hasPreview=!Ic(t),!this.instance.hash){const{instance:e}=await Lc({idBase:this.idBase,instance:this.instance,number:this.number,formData:Ac(this.form)});this.instance=e}}if(window.jQuery){const{jQuery:e}=window;e(document).trigger("widget-added",[e(this.element)])}}catch(e){this.onError(e)}}handleFormSubmit(e){e.preventDefault(),this.saveForm()}async saveForm(){const e=Ac(this.form);try{if(this.id){const{form:t}=await Hc(this.id,e);if(this.content.innerHTML=t,window.jQuery){const{jQuery:e}=window;e(document).trigger("widget-updated",[e(this.element)])}}else if(this.idBase){const{instance:t,preview:n}=await Lc({idBase:this.idBase,instance:this.instance,number:this.number,formData:e});this.instance=t,this.hasPreview=!Ic(n)}}catch(e){this.onError(e)}}get instance(){return this._instance}set instance(e){this._instance!==e&&(this._instance=e,this.onChangeInstance(e))}get hasPreview(){return this._hasPreview}set hasPreview(e){this._hasPreview!==e&&(this._hasPreview=e,this.onChangeHasPreview(e))}}let Rc=0;function Vc(e,t={},n=null){const o=document.createElement(e);for(const[e,n]of Object.entries(t))o.setAttribute(e,n);if(Array.isArray(n))for(const e of n)e&&o.appendChild(e);else"string"==typeof n&&(o.innerText=n);return o}async function Hc(e,t=null){let n;return n=t?await Et()({path:`/wp/v2/widgets/${e}?context=edit`,method:"PUT",data:{form_data:t}}):await Et()({path:`/wp/v2/widgets/${e}?context=edit`,method:"GET"}),{form:n.rendered_form}}async function Lc({idBase:e,instance:t,number:n,formData:o=null}){const r=await Et()({path:`/wp/v2/widget-types/${e}/encode`,method:"POST",data:{instance:t,number:n,form_data:o}});return{instance:r.instance,form:r.form,preview:r.preview}}function Ic(e){const t=document.createElement("div");return t.innerHTML=e,""===t.innerText.trim()}function Ac(e){return new window.URLSearchParams(Array.from(new window.FormData(e))).toString()}function Dc({title:e,isVisible:t,id:n,idBase:o,instance:r,onChangeInstance:a,onChangeHasPreview:c}){const l=Object(ge.useRef)(),i=Object(ge.useRef)(new Set),s=Object(ge.useRef)(new Set),{createNotice:u}=Object(Le.useDispatch)(qe.store);return Object(ge.useEffect)(()=>{if(s.current.has(r))return void s.current.delete(r);const e=new Nc({id:n,idBase:o,instance:r,onChangeInstance(e){i.current.add(r),s.current.add(e),a(e)},onChangeHasPreview:c,onError(e){var t;u("error",null!==(t=null==e?void 0:e.message)&&void 0!==t?t:Object(pe.__)("An error occured while fetching or updating the widget."))}});return l.current.appendChild(e.element),()=>{i.current.has(r)?i.current.delete(r):e.destroy()}},[n,o,r,a,c]),Object(ge.createElement)("div",{ref:l,className:"wp-block-legacy-widget__edit-form",hidden:!t},Object(ge.createElement)("h3",{className:"wp-block-legacy-widget__edit-form-title"},e))}function Fc({idBase:e,instance:t,isVisible:n}){const[o,r]=Object(ge.useState)(),a=Object(Ie.useRefEffect)(e=>{function t(){var t,n;const o=null==e||null===(t=e.contentDocument)||void 0===t||null===(n=t.body)||void 0===n?void 0:n.getBoundingClientRect();o&&r(o.top+o.height)}const{IntersectionObserver:n}=e.ownerDocument.defaultView;return new n(t,{threshold:1}).observe(e),e.addEventListener("load",t),()=>{e.removeEventListener("load",t)}},[]);return Object(ge.createElement)(ge.Fragment,null,n&&null===o&&Object(ge.createElement)(Ee.Placeholder,null,Object(ge.createElement)(Ee.Spinner,null)),Object(ge.createElement)("div",{className:je()("wp-block-legacy-widget__edit-preview",{"is-offscreen":!n||null===o})},Object(ge.createElement)(Ee.Disabled,null,Object(ge.createElement)("iframe",{ref:a,className:"wp-block-legacy-widget__edit-preview-iframe",title:Object(pe.__)("Legacy Widget Preview"),src:Object(Ae.addQueryArgs)("themes.php",{page:"gutenberg-widgets","legacy-widget-preview":{idBase:e,instance:t}}),height:o||100}))))}function Gc({name:e}){return Object(ge.createElement)("div",{className:"wp-block-legacy-widget__edit-no-preview"},e&&Object(ge.createElement)("h3",null,e),Object(ge.createElement)("p",null,Object(pe.__)("No preview available.")))}function qc({clientId:e,rawInstance:t}){const{replaceBlocks:n}=Object(Le.useDispatch)(de.store);return Object(ge.createElement)(Ee.ToolbarButton,{onClick:()=>{t.title?n(e,[Object(me.createBlock)("core/heading",{content:t.title}),...Object(me.rawHandler)({HTML:t.text})]):n(e,Object(me.rawHandler)({HTML:t.text}))}},Object(pe.__)("Convert to blocks"))}function Uc({attributes:{id:e,idBase:t},setAttributes:n}){return Object(ge.createElement)(Ee.Placeholder,{icon:Object(ge.createElement)(de.BlockIcon,{icon:Tc}),label:Object(pe.__)("Legacy Widget")},Object(ge.createElement)(Pc,{selectedId:null!=e?e:t,onSelect:({selectedId:e,isMulti:t})=>{n(e?t?{id:null,idBase:e,instance:{}}:{id:e,idBase:null,instance:null}:{id:null,idBase:null,instance:null})}}))}function Wc({attributes:{id:e,idBase:t,instance:n},setAttributes:o,clientId:r,isSelected:a}){const[c,l]=Object(ge.useState)(null),{widgetType:i,hasResolvedWidgetType:s,isWidgetTypeHidden:u,isNavigationMode:d}=Object(Le.useSelect)(n=>{var o,r;const a=null!=e?e:t,c=null!==(o=null===(r=n(de.store).getSettings())||void 0===r?void 0:r.widgetTypesToHideFromLegacyWidgetBlock)&&void 0!==o?o:[];return{widgetType:n(ue.store).getWidgetType(a),hasResolvedWidgetType:n(ue.store).hasFinishedResolution("getWidgetType",[a]),isWidgetTypeHidden:c.includes(a),isNavigationMode:n(de.store).isNavigationMode()}},[e,t]),m=Object(ge.useCallback)(e=>{o({instance:e})},[]);if(!i&&s)return Object(ge.createElement)(Ee.Placeholder,{icon:Object(ge.createElement)(de.BlockIcon,{icon:Tc}),label:Object(pe.__)("Legacy Widget")},Object(pe.__)("Widget is missing."));if(!s)return Object(ge.createElement)(Ee.Placeholder,null,Object(ge.createElement)(Ee.Spinner,null));const b=d||!a?"preview":"edit";return Object(ge.createElement)(ge.Fragment,null,!u&&Object(ge.createElement)(de.BlockControls,{group:"block"},Object(ge.createElement)(Ee.ToolbarButton,{label:Object(pe.__)("Change widget"),icon:zc,onClick:()=>o({id:null,idBase:null,instance:null})})),"text"===t&&Object(ge.createElement)(de.BlockControls,{group:"other"},Object(ge.createElement)(qc,{clientId:r,rawInstance:n.raw})),Object(ge.createElement)(de.InspectorControls,null,Object(ge.createElement)(Mc,{name:i.name,description:i.description})),Object(ge.createElement)(Dc,{title:i.name,isVisible:"edit"===b,id:e,idBase:t,instance:n,onChangeInstance:m,onChangeHasPreview:l}),t&&Object(ge.createElement)(ge.Fragment,null,null===c&&"preview"===b&&Object(ge.createElement)(Ee.Placeholder,null,Object(ge.createElement)(Ee.Spinner,null)),!0===c&&Object(ge.createElement)(Fc,{idBase:t,instance:n,isVisible:"preview"===b}),!1===c&&"preview"===b&&Object(ge.createElement)(Gc,{name:i.name})))}var $c={to:[{block:"core/calendar",widget:"calendar"},{block:"core/search",widget:"search"},{block:"core/html",widget:"html",transform:({content:e})=>({content:e})},{block:"core/archives",widget:"archives",transform:({count:e,dropdown:t})=>({displayAsDropdown:!!t,showPostCounts:!!e})},{block:"core/latest-posts",widget:"recent-posts",transform:({show_date:e,number:t})=>({displayPostDate:!!e,postsToShow:t})},{block:"core/latest-comments",widget:"recent-comments",transform:({number:e})=>({commentsToShow:e})},{block:"core/tag-cloud",widget:"tag_cloud",transform:({taxonomy:e,count:t})=>({showTagCounts:!!t,taxonomy:e})},{block:"core/categories",widget:"categories",transform:({count:e,dropdown:t,hierarchical:n})=>({displayAsDropdown:!!t,showPostCounts:!!e,showHierarchy:!!n})},{block:"core/audio",widget:"media_audio",transform:({url:e,preload:t,loop:n,attachment_id:o})=>({src:e,id:o,preload:t,loop:n})},{block:"core/video",widget:"media_video",transform:({url:e,preload:t,loop:n,attachment_id:o})=>({src:e,id:o,preload:t,loop:n})},{block:"core/image",widget:"media_image",transform:({alt:e,attachment_id:t,caption:n,height:o,link_classes:r,link_rel:a,link_target_blank:c,link_type:l,link_url:i,size:s,url:u,width:d})=>({alt:e,caption:n,height:o,id:t,link:i,linkClass:r,linkDestination:l,linkTarget:c?"_blank":void 0,rel:a,sizeSlug:s,url:u,width:d})},{block:"core/gallery",widget:"media_gallery",transform:({ids:e,link_type:t,size:n,number:o})=>({ids:e,columns:o,linkTo:t,sizeSlug:n,images:e.map(e=>({id:e}))})},{block:"core/rss",widget:"rss",transform:({url:e,show_author:t,show_date:n,show_summary:o,items:r})=>({feedURL:e,displayAuthor:!!t,displayDate:!!n,displayExcerpt:!!o,itemsToShow:r})}].map(({block:e,widget:t,transform:n})=>({type:"block",blocks:[e],isMatch:({idBase:e,instance:n})=>e===t&&!(null==n||!n.raw),transform:({instance:t})=>{var o;const r=Object(me.createBlock)(e,n?n(t.raw):void 0);return null!==(o=t.raw)&&void 0!==o&&o.title?[Object(me.createBlock)("core/heading",{content:t.raw.title}),r]:r}}))};const Zc={apiVersion:2,name:"core/legacy-widget",title:"Legacy Widget",category:"widgets",description:"Display a legacy widget.",textdomain:"default",attributes:{id:{type:"string",default:null},idBase:{type:"string",default:null},instance:{type:"object",default:null}},supports:{html:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-legacy-widget-editor"},{name:Qc}=Zc,Jc={icon:Bc,edit:function(e){const{id:t,idBase:n}=e.attributes;return Object(ge.createElement)("div",Object(de.useBlockProps)(),t||n?Object(ge.createElement)(Wc,e):Object(ge.createElement)(Uc,e))},transforms:$c};var Yc=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.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 Kc={apiVersion:2,name:"core/loginout",title:"Login/out",category:"design",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,fontSize:!1}},{name:Xc}=Kc,el={icon:Yc,edit:function({attributes:e,setAttributes:t}){const{displayLoginAsForm:n,redirectToCurrent:o}=e;return Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.InspectorControls,null,Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Login/out settings")},Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Display login as form"),checked:n,onChange:()=>t({displayLoginAsForm:!n})}),Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Redirect to current URL"),checked:o,onChange:()=>t({redirectToCurrent:!o})}))),Object(ge.createElement)("div",Object(de.useBlockProps)({className:"logged-in"}),Object(ge.createElement)("a",{href:"#login-pseudo-link"},Object(pe.__)("Log out"))))}};var tl=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.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 nl=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.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 ol=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.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 rl=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.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 al=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.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 cl=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.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 ll=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.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 il=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.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 sl=({setAttributes:e,reversed:t,start:n})=>Object(ge.createElement)(de.InspectorControls,null,Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Ordered list settings")},Object(ge.createElement)(Ee.TextControl,{label:Object(pe.__)("Start value"),type:"number",onChange:t=>{const n=parseInt(t,10);e({start:isNaN(n)?void 0:n})},value:Number.isInteger(n)?n.toString(10):"",step:"1"}),Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Reverse list numbering"),checked:t||!1,onChange:t=>{e({reversed:t||void 0})}})));function ul({phrasingContentSchema:e}){const t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach(e=>{t[e].children={li:{children:t}}}),t}var dl={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>Object(me.createBlock)("core/list",{values:Object(yn.toHTMLString)({value:Object(yn.join)(e.map(({content:t})=>{const n=Object(yn.create)({html:t});return e.length>1?n:Object(yn.replace)(n,/\n/g,yn.__UNSTABLE_LINE_SEPARATOR)}),yn.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"}),anchor:e.anchor})},{type:"block",blocks:["core/quote","core/pullquote"],transform:({value:e,anchor:t})=>Object(me.createBlock)("core/list",{values:Object(yn.toHTMLString)({value:Object(yn.create)({html:e,multilineTag:"p"}),multilineTag:"li"}),anchor:t})},{type:"raw",selector:"ol,ul",schema:e=>({ol:ul(e).ol,ul:ul(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 Object(me.createBlock)("core/list",{...Object(me.getBlockAttributes)("core/list",e.outerHTML),...t})}},...["*","-"].map(e=>({type:"prefix",prefix:e,transform:e=>Object(me.createBlock)("core/list",{values:`
  • ${e}
  • `})})),...["1.","1)"].map(e=>({type:"prefix",prefix:e,transform:e=>Object(me.createBlock)("core/list",{ordered:!0,values:`
  • ${e}
  • `})}))],to:[{type:"block",blocks:["core/paragraph"],transform:({values:e})=>Object(yn.split)(Object(yn.create)({html:e,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),yn.__UNSTABLE_LINE_SEPARATOR).map(e=>Object(me.createBlock)("core/paragraph",{content:Object(yn.toHTMLString)({value:e})}))},{type:"block",blocks:["core/heading"],transform:({values:e})=>Object(yn.split)(Object(yn.create)({html:e,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),yn.__UNSTABLE_LINE_SEPARATOR).map(e=>Object(me.createBlock)("core/heading",{content:Object(yn.toHTMLString)({value:e})}))},{type:"block",blocks:["core/quote"],transform:({values:e,anchor:t})=>Object(me.createBlock)("core/quote",{value:Object(yn.toHTMLString)({value:Object(yn.create)({html:e,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:t})},{type:"block",blocks:["core/pullquote"],transform:({values:e,anchor:t})=>Object(me.createBlock)("core/pullquote",{value:Object(yn.toHTMLString)({value:Object(yn.create)({html:e,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:t})}]};const ml={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,fontSize:!0,color:{gradients:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul"},editorStyle:"wp-block-list-editor",style:"wp-block-list"},{name:bl}=ml,pl={icon:wc,example:{attributes:{values:"
  • Alice.
  • The White Rabbit.
  • The Cheshire Cat.
  • The Mad Hatter.
  • The Queen of Hearts.
  • "}},transforms:dl,merge(e,t){const{values:n}=t;return n&&"
  • "!==n?{...e,values:e.values+n}:e},edit:function({attributes:e,setAttributes:t,mergeBlocks:n,onReplace:o}){const{ordered:r,values:a,type:c,reversed:l,start:i,placeholder:s}=e,u=r?"ol":"ul",d=Object(de.useBlockProps)();return Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.RichText,Object(ke.a)({identifier:"values",multiline:"li",tagName:u,onChange:e=>t({values:e}),value:a,"aria-label":Object(pe.__)("List text"),placeholder:s||Object(pe.__)("List"),onMerge:n,onSplit:t=>Object(me.createBlock)(bl,{...e,values:t}),__unstableOnSplitMiddle:()=>Object(me.createBlock)("core/paragraph"),onReplace:o,onRemove:()=>o([]),start:i,reversed:l,type:c},d),({value:e,onChange:n,onFocus:o})=>Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.RichTextShortcut,{type:"primary",character:"[",onUse:()=>{n(Object(yn.__unstableOutdentListItems)(e))}}),Object(ge.createElement)(de.RichTextShortcut,{type:"primary",character:"]",onUse:()=>{n(Object(yn.__unstableIndentListItems)(e,{type:u}))}}),Object(ge.createElement)(de.RichTextShortcut,{type:"primary",character:"m",onUse:()=>{n(Object(yn.__unstableIndentListItems)(e,{type:u}))}}),Object(ge.createElement)(de.RichTextShortcut,{type:"primaryShift",character:"m",onUse:()=>{n(Object(yn.__unstableOutdentListItems)(e))}}),Object(ge.createElement)(de.BlockControls,{group:"block"},Object(ge.createElement)(Ee.ToolbarButton,{icon:Object(pe.isRTL)()?tl:nl,title:Object(pe.__)("Unordered"),describedBy:Object(pe.__)("Convert to unordered list"),isActive:Object(yn.__unstableIsActiveListType)(e,"ul",u),onClick:()=>{n(Object(yn.__unstableChangeListType)(e,{type:"ul"})),o(),Object(yn.__unstableIsListRootSelected)(e)&&t({ordered:!1})}}),Object(ge.createElement)(Ee.ToolbarButton,{icon:Object(pe.isRTL)()?ol:rl,title:Object(pe.__)("Ordered"),describedBy:Object(pe.__)("Convert to ordered list"),isActive:Object(yn.__unstableIsActiveListType)(e,"ol",u),onClick:()=>{n(Object(yn.__unstableChangeListType)(e,{type:"ol"})),o(),Object(yn.__unstableIsListRootSelected)(e)&&t({ordered:!0})}}),Object(ge.createElement)(Ee.ToolbarButton,{icon:Object(pe.isRTL)()?al:cl,title:Object(pe.__)("Outdent"),describedBy:Object(pe.__)("Outdent list item"),shortcut:Object(pe._x)("Backspace","keyboard key"),isDisabled:!Object(yn.__unstableCanOutdentListItems)(e),onClick:()=>{n(Object(yn.__unstableOutdentListItems)(e)),o()}}),Object(ge.createElement)(Ee.ToolbarButton,{icon:Object(pe.isRTL)()?ll:il,title:Object(pe.__)("Indent"),describedBy:Object(pe.__)("Indent list item"),shortcut:Object(pe._x)("Space","keyboard key"),isDisabled:!Object(yn.__unstableCanIndentListItems)(e),onClick:()=>{n(Object(yn.__unstableIndentListItems)(e,{type:u})),o()}})))),r&&Object(ge.createElement)(sl,{setAttributes:t,ordered:r,reversed:l,start:i,placeholder:s}))},save:function({attributes:e}){const{ordered:t,values:n,type:o,reversed:r,start:a}=e,c=t?"ol":"ul";return Object(ge.createElement)(c,de.useBlockProps.save({type:o,reversed:r,start:a}),Object(ge.createElement)(de.RichText.Content,{value:n,multiline:"li"}))}};var gl=Object(Le.withDispatch)((e,{clientId:t,attributes:n})=>{const{replaceBlock:o}=e(de.store);return{convertToHTML(){o(t,Object(me.createBlock)("core/html",{content:n.originalUndelimitedContent}))}}})((function({attributes:e,convertToHTML:t}){const{originalName:n,originalUndelimitedContent:o}=e,r=!!o,a=Object(me.getBlockType)("core/html"),c=[];let l;return r&&a?(l=Object(pe.sprintf)(Object(pe.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),n),c.push(Object(ge.createElement)(Ee.Button,{key:"convert",onClick:t,isPrimary:!0},Object(pe.__)("Keep as HTML")))):l=Object(pe.sprintf)(Object(pe.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),n),Object(ge.createElement)("div",Object(de.useBlockProps)({className:"has-warning"}),Object(ge.createElement)(de.Warning,{actions:c},l),Object(ge.createElement)(ge.RawHTML,null,o))}));const hl={apiVersion:2,name:"core/missing",title:"Unsupported",category:"text",description:"Your site doesn’t 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:vl}=hl,Ol={name:vl,__experimentalLabel(e,{context:t}){if("accessibility"===t){const{originalName:t}=e,n=t?Object(me.getBlockType)(t):void 0;return n?n.settings.title||t:""}},edit:gl,save:function({attributes:e}){return Object(ge.createElement)(ge.RawHTML,null,e.originalContent)}};var jl=Object(ge.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(he.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"}));const fl=Object(pe.__)("Read more");var yl={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),Object(me.createBlock)("core/more",o)}}]};const wl={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:_l}=wl,kl={icon:jl,example:{},__experimentalLabel(e,{context:t}){if("accessibility"===t)return e.customText},transforms:yl,edit:function({attributes:{customText:e,noTeaser:t},insertBlocksAfter:n,setAttributes:o}){const r={width:(e||fl).length+1.2+"em"};return Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.InspectorControls,null,Object(ge.createElement)(Ee.PanelBody,null,Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>o({noTeaser:!t}),help:e=>e?Object(pe.__)("The excerpt is hidden."):Object(pe.__)("The excerpt is visible.")}))),Object(ge.createElement)("div",Object(de.useBlockProps)(),Object(ge.createElement)("div",{className:"wp-block-more"},Object(ge.createElement)("input",{"aria-label":Object(pe.__)("Read more link text"),type:"text",value:e,placeholder:fl,onChange:e=>{o({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:({keyCode:e})=>{e===an.ENTER&&n([Object(me.createBlock)(Object(me.getDefaultBlockName)())])},style:r}))))},save:function({attributes:{customText:e,noTeaser:t}}){const n=e?`\x3c!--more ${e}--\x3e`:"\x3c!--more--\x3e",o=t?"\x3c!--noteaser--\x3e":"";return Object(ge.createElement)(ge.RawHTML,null,Object(be.compact)([n,o]).join("\n"))}};var El=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.Path,{d:"M7.8 6c0-.7.6-1.2 1.2-1.2h6c.7 0 1.2.6 1.2 1.2v3h1.5V6c0-1.5-1.2-2.8-2.8-2.8H9C7.5 3.2 6.2 4.5 6.2 6v3h1.5V6zm8.4 11c0 .7-.6 1.2-1.2 1.2H9c-.7 0-1.2-.6-1.2-1.2v-3H6.2v3c0 1.5 1.2 2.8 2.8 2.8h6c1.5 0 2.8-1.2 2.8-2.8v-3h-1.5v3zM4 11v1h16v-1H4z"}));var Cl={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/nextpage"===e.dataset.block,transform:()=>Object(me.createBlock)("core/nextpage",{})}]};const xl={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:Sl}=xl,Bl={icon:El,example:{},transforms:Cl,edit:function(){return Object(ge.createElement)("div",Object(de.useBlockProps)(),Object(ge.createElement)("div",{className:"wp-block-nextpage"},Object(ge.createElement)("span",null,Object(pe.__)("Page break"))))},save:function(){return Object(ge.createElement)(ge.RawHTML,null,"\x3c!--nextpage--\x3e")}};var Tl=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.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 zl=["id","title","link","type","parent"],Pl=({pages:e,clientId:t,replaceBlock:n,createBlock:o})=>()=>{if(!e)return;const r={},a=[];e.forEach(({id:e,title:t,link:n,type:c,parent:l})=>{var i,s;const u=null!==(i=null===(s=r[e])||void 0===s?void 0:s.innerBlocks)&&void 0!==i?i:[];if(r[e]=o("core/navigation-link",{id:e,label:t.rendered,url:n,type:c,kind:"post-type"},u),l){r[l]||(r[l]={innerBlocks:[]});r[l].innerBlocks.push(r[e])}else a.push(r[e])}),n(t,a)};function Ml({onClose:e,clientId:t}){const{pages:n,pagesFinished:o}=Object(Le.useSelect)(e=>{const{getEntityRecords:t,hasFinishedResolution:n}=e(ue.store),o=["postType","page",{per_page:100,_fields:zl,orderby:"menu_order",order:"asc"}];return{pages:t(...o),pagesFinished:n("getEntityRecords",o)}},[t]),{replaceBlock:r}=Object(Le.useDispatch)(de.store);return Object(ge.createElement)(Ee.Modal,{closeLabel:Object(pe.__)("Close"),onRequestClose:e,title:Object(pe.__)("Convert to links"),className:"wp-block-page-list-modal",aria:{describedby:"wp-block-page-list-modal__description"}},Object(ge.createElement)("p",{id:"wp-block-page-list-modal__description"},Object(pe.__)("To edit this navigation menu, convert it to single page links. This allows you to add, re-order, remove items, or edit their labels.")),Object(ge.createElement)("p",null,Object(pe.__)("Note: if you add new pages to your site, you'll need to add them to your navigation menu.")),Object(ge.createElement)("div",{className:"wp-block-page-list-modal-buttons"},Object(ge.createElement)(Ee.Button,{isTertiary:!0,onClick:e},Object(pe.__)("Cancel")),Object(ge.createElement)(Ee.Button,{isPrimary:!0,disabled:!o,onClick:Pl({pages:n,replaceBlock:r,clientId:t,createBlock:me.createBlock})},Object(pe.__)("Convert"))))}const Nl={apiVersion:2,name:"core/page-list",title:"Page List",category:"widgets",description:"Display a list of all pages.",keywords:["menu","navigation"],textdomain:"default",usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"},{name:Rl}=Nl,Vl={icon:Tl,example:{},edit:function({context:e,clientId:t}){const{textColor:n,backgroundColor:o,showSubmenuIcon:r,style:a}=e||{},[c,l]=Object(ge.useState)(!1),i=Object(de.useBlockProps)({className:je()({"has-text-color":!!n,[`has-${n}-color`]:!!n,"has-background":!!o,[`has-${o}-background-color`]:!!o,"show-submenu-icons":!!r}),style:{...null==a?void 0:a.color}}),s=Object(Le.useSelect)(e=>{const{getBlockParentsByBlockName:n}=e(de.store);return n(t,"core/navigation").length>0},[t]);Object(ge.useEffect)(()=>{s?Et()({path:Object(Ae.addQueryArgs)("/wp/v2/pages",{per_page:1,_fields:["id"]}),parse:!1}).then(e=>{l(e.headers.get("X-WP-Total")<=100)}):l(!1)},[s]);const[u,d]=Object(ge.useState)(!1);return Object(ge.createElement)(ge.Fragment,null,c&&Object(ge.createElement)(de.BlockControls,{group:"other"},Object(ge.createElement)(Ee.ToolbarButton,{title:Object(pe.__)("Edit"),onClick:()=>d(!0)},Object(pe.__)("Edit"))),c&&u&&Object(ge.createElement)(Ml,{onClose:()=>d(!1),clientId:t}),Object(ge.createElement)("div",i,Object(ge.createElement)(Kn.a,{block:"core/page-list"})))}};var Hl=Object(ge.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(he.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"}));var Ll={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:({content:e,anchor:t})=>Object(me.createBlock)("core/preformatted",{content:e,anchor:t})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName),schema:({phrasingContentSchema:e})=>({pre:{children:e}})}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>Object(me.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>Object(me.createBlock)("core/code",e)}]};const Il={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},fontSize:!0},style:"wp-block-preformatted"},{name:Al}=Il,Dl={icon:Hl,example:{attributes:{content:Object(pe.__)("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:Ll,edit:function({attributes:e,mergeBlocks:t,setAttributes:n,onRemove:o}){const{content:r}=e,a=Object(de.useBlockProps)();return Object(ge.createElement)(de.RichText,Object(ke.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:r,onChange:e=>{n({content:e})},onRemove:o,"aria-label":Object(pe.__)("Preformatted text"),placeholder:Object(pe.__)("Write preformatted text…"),onMerge:t},a,{__unstablePastePlainText:!0}))},save:function({attributes:e}){const{content:t}=e;return Object(ge.createElement)("pre",de.useBlockProps.save(),Object(ge.createElement)(de.RichText.Content,{value:t}))},merge:(e,t)=>({content:e.content+t.content})};var Fl=Object(ge.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(he.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"}));const Gl={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 ql(e){if(!e)return;const t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}var Ul=[{attributes:{...Gl,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){const{mainColor:t,customMainColor:n,textColor:o,customTextColor:r,value:a,citation:c,className:l,figureStyle:i}=e;let s,u;if(Object(be.includes)(l,"is-style-solid-color")){const e=Object(de.getColorClassName)("background-color",t);s=je()({"has-background":e||n,[e]:e}),u={backgroundColor:e?void 0:n}}else if(n)u={borderColor:n};else if(t){u={borderColor:ql(i)}}const d=Object(de.getColorClassName)("color",o),m=(o||r)&&je()("has-text-color",{[d]:d}),b=d?void 0:{color:r};return Object(ge.createElement)("figure",{className:s,style:u},Object(ge.createElement)("blockquote",{className:m,style:b},Object(ge.createElement)(de.RichText.Content,{value:a,multiline:!0}),!de.RichText.isEmpty(c)&&Object(ge.createElement)(de.RichText.Content,{tagName:"cite",value:c})))},migrate({className:e,figureStyle:t,mainColor:n,...o}){if(!Object(be.includes)(e,"is-style-solid-color")&&n&&t){const n=ql(t);if(n)return{...o,className:e,customMainColor:n}}return{className:e,mainColor:n,...o}}},{attributes:Gl,save({attributes:e}){const{mainColor:t,customMainColor:n,textColor:o,customTextColor:r,value:a,citation:c,className:l}=e;let i,s;if(Object(be.includes)(l,"is-style-solid-color"))i=Object(de.getColorClassName)("background-color",t),i||(s={backgroundColor:n});else if(n)s={borderColor:n};else if(t){const e=Object(be.get)(Object(Le.select)(de.store).getSettings(),["colors"],[]);s={borderColor:Object(de.getColorObjectByAttributeValues)(e,t).color}}const u=Object(de.getColorClassName)("color",o),d=o||r?je()("has-text-color",{[u]:u}):void 0,m=u?void 0:{color:r};return Object(ge.createElement)("figure",{className:i,style:s},Object(ge.createElement)("blockquote",{className:d,style:m},Object(ge.createElement)(de.RichText.Content,{value:a,multiline:!0}),!de.RichText.isEmpty(c)&&Object(ge.createElement)(de.RichText.Content,{tagName:"cite",value:c})))}},{attributes:{...Gl},save({attributes:e}){const{value:t,citation:n}=e;return Object(ge.createElement)("blockquote",null,Object(ge.createElement)(de.RichText.Content,{value:t,multiline:!0}),!de.RichText.isEmpty(n)&&Object(ge.createElement)(de.RichText.Content,{tagName:"cite",value:n}))}},{attributes:{...Gl,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save({attributes:e}){const{value:t,citation:n,align:o}=e;return Object(ge.createElement)("blockquote",{className:"align"+o},Object(ge.createElement)(de.RichText.Content,{value:t,multiline:!0}),!de.RichText.isEmpty(n)&&Object(ge.createElement)(de.RichText.Content,{tagName:"footer",value:n}))}}];var Wl=Object(de.withColors)({mainColor:"background-color",textColor:"color"})((function({colorUtils:e,textColor:t,attributes:{value:n,citation:o},setAttributes:r,setTextColor:a,setMainColor:c,mainColor:l,isSelected:i,insertBlocksAfter:s}){const u=Object(ge.useRef)(!1),d=Object(de.useBlockProps)(),{style:m={},className:b}=d,p=Object(be.includes)(b,"is-style-solid-color"),g={...d,className:je()(b,{"has-background":p&&l.color,[l.class]:p&&l.class}),style:p?{...m,backgroundColor:l.color}:{...m,borderColor:l.color}};return Object(ge.useEffect)(()=>{l&&!p&&r({mainColor:void 0,customMainColor:l.color})},[p,l]),Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)("figure",g,Object(ge.createElement)("blockquote",{style:{color:t.color},className:t.color&&je()("has-text-color",{[t.class]:t.class})},Object(ge.createElement)(de.RichText,{identifier:"value",multiline:!0,value:n,onChange:e=>r({value:e}),"aria-label":Object(pe.__)("Pullquote text"),placeholder:Object(pe.__)("Add quote"),textAlign:"center"}),(!de.RichText.isEmpty(o)||i)&&Object(ge.createElement)(de.RichText,{identifier:"citation",value:o,"aria-label":Object(pe.__)("Pullquote citation text"),placeholder:Object(pe.__)("Add citation"),onChange:e=>r({citation:e}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>s(Object(me.createBlock)("core/paragraph"))}))),"web"===ge.Platform.OS&&Object(ge.createElement)(de.InspectorControls,null,Object(ge.createElement)(de.PanelColorSettings,{title:Object(pe.__)("Color"),colorSettings:[{value:l.color,onChange:function(n){const o=!t.color||u.current,l=p&&o;p?c(n):r({customMainColor:n}),l&&(n?(u.current=!0,a(e.getMostReadableColor(n))):u.current&&(u.current=!1,a()))},label:Object(pe.__)("Main color")},{value:t.color,onChange:function(e){a(e),u.current=!1},label:Object(pe.__)("Text color")}]},p&&Object(ge.createElement)(de.ContrastChecker,{textColor:t.color,backgroundColor:l.color,isLargeText:!1}))))}));var $l={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>Object(me.createBlock)("core/pullquote",{value:Object(yn.toHTMLString)({value:Object(yn.join)(e.map(({content:e})=>Object(yn.create)({html:e})),"\u2028"),multilineTag:"p"}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>Object(me.createBlock)("core/pullquote",{value:`

    ${e}

    `,anchor:t})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{const n=[];return e&&"

    "!==e&&n.push(...Object(yn.split)(Object(yn.create)({html:e,multilineTag:"p"}),"\u2028").map(e=>Object(me.createBlock)("core/paragraph",{content:Object(yn.toHTMLString)({value:e})}))),t&&"

    "!==t&&n.push(Object(me.createBlock)("core/paragraph",{content:t})),0===n.length?Object(me.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t,...n})=>{if("

    "===e)return Object(me.createBlock)("core/heading",{content:t});const o=Object(yn.split)(Object(yn.create)({html:e,multilineTag:"p"}),"\u2028"),r=Object(me.createBlock)("core/heading",{content:Object(yn.toHTMLString)({value:o[0]})});if(!t&&1===o.length)return r;const a=o.slice(1);return[r,Object(me.createBlock)("core/pullquote",{...n,citation:t,value:Object(yn.toHTMLString)({value:a.length?Object(yn.join)(o.slice(1),"\u2028"):Object(yn.create)(),multilineTag:"p"})})]}}]};const Zl={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"},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"]},styles:[{name:"default",label:"Default",isDefault:!0},{name:"solid-color",label:"Solid color"}],editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"},{name:Ql}=Zl,Jl={icon:Fl,example:{attributes:{value:"

    "+Object(pe.__)("One of the hardest things to do in technology is disrupt yourself.")+"

    ",citation:Object(pe.__)("Matt Mullenweg")}},transforms:$l,edit:Wl,save:function({attributes:e}){const{mainColor:t,customMainColor:n,textColor:o,customTextColor:r,value:a,citation:c,className:l}=e;let i,s;if(Object(be.includes)(l,"is-style-solid-color")){const e=Object(de.getColorClassName)("background-color",t);i=je()({"has-background":e||n,[e]:e}),s={backgroundColor:e?void 0:n}}else n&&(s={borderColor:n});const u=Object(de.getColorClassName)("color",o),d=(o||r)&&je()("has-text-color",{[u]:u}),m=u?void 0:{color:r};return Object(ge.createElement)("figure",de.useBlockProps.save({className:i,style:s}),Object(ge.createElement)("blockquote",{className:d,style:m},Object(ge.createElement)(de.RichText.Content,{value:a,multiline:!0}),!de.RichText.isEmpty(c)&&Object(ge.createElement)(de.RichText.Content,{tagName:"cite",value:c})))},deprecated:Ul};var Yl=n("diJD");var Kl=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.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 Xl={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 it’s used.",textdomain:"default",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1},editorStyle:"wp-block-editor"},{name:ei}=Xl,ti={edit:function({attributes:{ref:e},clientId:t}){const[n,o]=Object(de.__experimentalUseNoRecursiveRenders)(e),{isMissing:r,hasResolved:a}=Object(Le.useSelect)(t=>{const n=t(ue.store).getEntityRecord("postType","wp_block",e),o=t(ue.store).hasFinishedResolution("getEntityRecord",["postType","wp_block",e]);return{hasResolved:o,isMissing:o&&!n}},[e,t]),{__experimentalConvertBlockToStatic:c}=Object(Le.useDispatch)(Yl.store),[l,i,s]=Object(ue.useEntityBlockEditor)("postType","wp_block",{id:e}),[u,d]=Object(ue.useEntityProp)("postType","wp_block","title",e),m=Object(de.__experimentalUseInnerBlocksProps)({},{value:l,onInput:i,onChange:s,renderAppender:null!=l&&l.length?void 0:de.InnerBlocks.ButtonBlockAppender}),b=Object(de.useBlockProps)();return n?Object(ge.createElement)("div",b,Object(ge.createElement)(de.Warning,null,Object(pe.__)("Block cannot be rendered inside itself."))):r?Object(ge.createElement)("div",b,Object(ge.createElement)(de.Warning,null,Object(pe.__)("Block has been deleted or is unavailable."))):a?Object(ge.createElement)(o,null,Object(ge.createElement)("div",b,Object(ge.createElement)(de.BlockControls,null,Object(ge.createElement)(Ee.ToolbarGroup,null,Object(ge.createElement)(Ee.ToolbarButton,{onClick:()=>c(t),label:Object(pe.__)("Convert to regular blocks"),icon:Kl,showTooltip:!0}))),Object(ge.createElement)(de.InspectorControls,null,Object(ge.createElement)(Ee.PanelBody,null,Object(ge.createElement)(Ee.TextControl,{label:Object(pe.__)("Name"),value:u,onChange:d}))),Object(ge.createElement)("div",{className:"block-library-block__reusable-block-container"},Object(ge.createElement)("div",m)))):Object(ge.createElement)("div",b,Object(ge.createElement)(Ee.Placeholder,null,Object(ge.createElement)(Ee.Spinner,null)))}};var ni=Object(ge.createElement)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(he.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"}));const oi={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:ri}=oi,ai={icon:ni,example:{attributes:{feedURL:"https://wordpress.org"}},edit:function({attributes:e,setAttributes:t}){const[n,o]=Object(ge.useState)(!e.feedURL),{blockLayout:r,columns:a,displayAuthor:c,displayDate:l,displayExcerpt:i,excerptLength:s,feedURL:u,itemsToShow:d}=e;function m(n){return()=>{const o=e[n];t({[n]:!o})}}const b=Object(de.useBlockProps)();if(n)return Object(ge.createElement)("div",b,Object(ge.createElement)(Ee.Placeholder,{icon:ni,label:"RSS"},Object(ge.createElement)("form",{onSubmit:function(e){e.preventDefault(),u&&o(!1)},className:"wp-block-rss__placeholder-form"},Object(ge.createElement)(Ee.TextControl,{placeholder:Object(pe.__)("Enter URL here…"),value:u,onChange:e=>t({feedURL:e}),className:"wp-block-rss__placeholder-input"}),Object(ge.createElement)(Ee.Button,{isPrimary:!0,type:"submit"},Object(pe.__)("Use URL")))));const p=[{icon:Nn.a,title:Object(pe.__)("Edit RSS URL"),onClick:()=>o(!0)},{icon:wc,title:Object(pe.__)("List view"),onClick:()=>t({blockLayout:"list"}),isActive:"list"===r},{icon:_c.a,title:Object(pe.__)("Grid view"),onClick:()=>t({blockLayout:"grid"}),isActive:"grid"===r}];return Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.BlockControls,null,Object(ge.createElement)(Ee.ToolbarGroup,{controls:p})),Object(ge.createElement)(de.InspectorControls,null,Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("RSS settings")},Object(ge.createElement)(Ee.RangeControl,{label:Object(pe.__)("Number of items"),value:d,onChange:e=>t({itemsToShow:e}),min:1,max:10,required:!0}),Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Display author"),checked:c,onChange:m("displayAuthor")}),Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Display date"),checked:l,onChange:m("displayDate")}),Object(ge.createElement)(Ee.ToggleControl,{label:Object(pe.__)("Display excerpt"),checked:i,onChange:m("displayExcerpt")}),i&&Object(ge.createElement)(Ee.RangeControl,{label:Object(pe.__)("Max number of words in excerpt"),value:s,onChange:e=>t({excerptLength:e}),min:10,max:100,required:!0}),"grid"===r&&Object(ge.createElement)(Ee.RangeControl,{label:Object(pe.__)("Columns"),value:a,onChange:e=>t({columns:e}),min:2,max:6,required:!0}))),Object(ge.createElement)("div",b,Object(ge.createElement)(Ee.Disabled,null,Object(ge.createElement)(Kn.a,{block:"core/rss",attributes:e}))))}},ci=Object(ge.createElement)(Ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(Ee.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),li=Object(ge.createElement)(Ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(Ee.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"}),Object(ge.createElement)(Ee.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),ii=Object(ge.createElement)(Ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(Ee.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"}),Object(ge.createElement)(Ee.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),si=Object(ge.createElement)(Ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(Ee.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"})),ui=Object(ge.createElement)(Ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(Ee.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),Object(ge.createElement)(Ee.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),di=Object(ge.createElement)(Ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(ge.createElement)(Ee.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"}),Object(ge.createElement)(Ee.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"}));var mi=[{name:"default",isDefault:!0,attributes:{buttonText:Object(pe.__)("Search"),label:Object(pe.__)("Search")}}];const bi={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"],__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},html:!1},editorStyle:"wp-block-search-editor",style:"wp-block-search"},{name:pi}=bi,gi={icon:Pt.a,example:{},variations:mi,edit:function({className:e,attributes:t,setAttributes:n,toggleSelection:o,isSelected:r}){var a;const{label:c,showLabel:l,placeholder:i,width:s,widthUnit:u,align:d,buttonText:m,buttonPosition:b,buttonUseIcon:p,style:g}=t,h=null==g||null===(a=g.border)||void 0===a?void 0:a.radius,v="wp-block-search__width-"+Object(Ie.useInstanceId)(de.__experimentalUnitControl),O=Object(Ee.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":50,px:350}}),j=()=>Object(ge.createElement)("input",{className:"wp-block-search__input",style:{borderRadius:h},"aria-label":Object(pe.__)("Optional placeholder text"),placeholder:i?void 0:Object(pe.__)("Optional placeholder…"),value:i,onChange:e=>n({placeholder:e.target.value})}),f=()=>Object(ge.createElement)(ge.Fragment,null,p&&Object(ge.createElement)(Ee.Button,{icon:Pt.a,className:"wp-block-search__button",style:{borderRadius:h}}),!p&&Object(ge.createElement)(de.RichText,{className:"wp-block-search__button",style:{borderRadius:h},"aria-label":Object(pe.__)("Button text"),placeholder:Object(pe.__)("Add button text…"),withoutInteractiveFormatting:!0,value:m,onChange:e=>n({buttonText:e})})),y=Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.BlockControls,null,Object(ge.createElement)(Ee.ToolbarGroup,null,Object(ge.createElement)(Ee.ToolbarButton,{title:Object(pe.__)("Toggle search label"),icon:di,onClick:()=>{n({showLabel:!l})},className:l?"is-pressed":void 0}),Object(ge.createElement)(Ee.DropdownMenu,{icon:(()=>{switch(b){case"button-inside":return ii;case"button-outside":return li;case"no-button":return si;case"button-only":return ci}})(),label:Object(pe.__)("Change button position")},({onClose:e})=>Object(ge.createElement)(Ee.MenuGroup,{className:"wp-block-search__button-position-menu"},Object(ge.createElement)(Ee.MenuItem,{icon:si,onClick:()=>{n({buttonPosition:"no-button"}),e()}},Object(pe.__)("No Button")),Object(ge.createElement)(Ee.MenuItem,{icon:li,onClick:()=>{n({buttonPosition:"button-outside"}),e()}},Object(pe.__)("Button Outside")),Object(ge.createElement)(Ee.MenuItem,{icon:ii,onClick:()=>{n({buttonPosition:"button-inside"}),e()}},Object(pe.__)("Button Inside")))),"no-button"!==b&&Object(ge.createElement)(Ee.ToolbarButton,{title:Object(pe.__)("Use button with icon"),icon:ui,onClick:()=>{n({buttonUseIcon:!p})},className:p?"is-pressed":void 0}))),Object(ge.createElement)(de.InspectorControls,null,Object(ge.createElement)(Ee.PanelBody,{title:Object(pe.__)("Display Settings")},Object(ge.createElement)(Ee.BaseControl,{label:Object(pe.__)("Width"),id:v},Object(ge.createElement)(de.__experimentalUnitControl,{id:v,min:"220px",onChange:e=>{const t="%"===u&&parseInt(e,10)>100?100:e;n({width:parseInt(t,10)})},onUnitChange:e=>{n({width:"%"===e?50:350,widthUnit:e})},style:{maxWidth:80},value:`${s}${u}`,unit:u,units:O}),Object(ge.createElement)(Ee.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":Object(pe.__)("Percentage Width")},[25,50,75,100].map(e=>Object(ge.createElement)(Ee.Button,{key:e,isSmall:!0,isPrimary:e+"%"==`${s}${u}`,onClick:()=>n({width:e,widthUnit:"%"})},e,"%"))))))),w=Object(de.useBlockProps)({className:je()(e,"button-inside"===b?"wp-block-search__button-inside":void 0,"button-outside"===b?"wp-block-search__button-outside":void 0,"no-button"===b?"wp-block-search__no-button":void 0,"button-only"===b?"wp-block-search__button-only":void 0,p||"no-button"===b?void 0:"wp-block-search__text-button",p&&"no-button"!==b?"wp-block-search__icon-button":void 0)});return Object(ge.createElement)("div",w,y,l&&Object(ge.createElement)(de.RichText,{className:"wp-block-search__label","aria-label":Object(pe.__)("Label text"),placeholder:Object(pe.__)("Add label…"),withoutInteractiveFormatting:!0,value:c,onChange:e=>n({label:e})}),Object(ge.createElement)(Ee.ResizableBox,{size:{width:`${s}${u}`},className:"wp-block-search__inside-wrapper",style:(()=>{var e;if("button-inside"===b&&null!=g&&null!==(e=g.border)&&void 0!==e&&e.radius){var t;return{borderRadius:parseInt(null==g||null===(t=g.border)||void 0===t?void 0:t.radius,10)+4+"px"}}})(),minWidth:220,enable:"button-only"===b?{}:{right:"right"!==d,left:"right"===d},onResizeStart:(e,t,r)=>{n({width:parseInt(r.offsetWidth,10),widthUnit:"px"}),o(!1)},onResizeStop:(e,t,r,a)=>{n({width:parseInt(s+a.width,10)}),o(!0)},showHandle:r},("button-inside"===b||"button-outside"===b)&&Object(ge.createElement)(ge.Fragment,null,j(),f()),"button-only"===b&&f(),"no-button"===b&&j()))}};var hi=Object(ge.createElement)(he.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(ge.createElement)(he.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));const vi=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),{...Object(be.omit)(e,["customTextColor","customBackgroundColor"]),style:t}};var Oi=[{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({attributes:e}){const{tagName:t}=e;return Object(ge.createElement)(t,de.useBlockProps.save(),Object(ge.createElement)("div",{className:"wp-block-group__inner-container"},Object(ge.createElement)(de.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:vi,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,textColor:o,customTextColor:r}=e,a=Object(de.getColorClassName)("background-color",t),c=Object(de.getColorClassName)("color",o),l=je()(a,c,{"has-text-color":o||r,"has-background":t||n}),i={backgroundColor:a?void 0:n,color:c?void 0:r};return Object(ge.createElement)("div",{className:l,style:i},Object(ge.createElement)("div",{className:"wp-block-group__inner-container"},Object(ge.createElement)(de.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:vi,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,textColor:o,customTextColor:r}=e,a=Object(de.getColorClassName)("background-color",t),c=Object(de.getColorClassName)("color",o),l=je()(a,{"has-text-color":o||r,"has-background":t||n}),i={backgroundColor:a?void 0:n,color:c?void 0:r};return Object(ge.createElement)("div",{className:l,style:i},Object(ge.createElement)("div",{className:"wp-block-group__inner-container"},Object(ge.createElement)(de.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:vi,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n}=e,o=Object(de.getColorClassName)("background-color",t),r=je()(o,{"has-background":t||n}),a={backgroundColor:o?void 0:n};return Object(ge.createElement)("div",{className:r,style:a},Object(ge.createElement)(de.InnerBlocks.Content,null))}}];var ji=function({attributes:e,setAttributes:t,clientId:n}){const{hasInnerBlocks:o,themeSupportsLayout:r}=Object(Le.useSelect)(e=>{var t;const{getBlock:o,getSettings:r}=e(de.store),a=o(n);return{hasInnerBlocks:!(!a||!a.innerBlocks.length),themeSupportsLayout:null===(t=r())||void 0===t?void 0:t.supportsLayout}},[n]),a=Object(de.useSetting)("layout")||{},{tagName:c="div",templateLock:l,layout:i={}}=e,s=i&&i.inherit?a:i,{contentSize:u,wideSize:d}=s,m=u||d?["wide","full"]:["left","center","right"],b=Object(de.useBlockProps)(),p=Object(de.__experimentalUseInnerBlocksProps)(r?b:{className:"wp-block-group__inner-container"},{templateLock:l,renderAppender:o?void 0:de.InnerBlocks.ButtonBlockAppender,__experimentalLayout:{type:"default",alignments:r?m:void 0}});return Object(ge.createElement)(ge.Fragment,null,Object(ge.createElement)(de.InspectorAdvancedControls,null,Object(ge.createElement)(Ee.SelectControl,{label:Object(pe.__)("HTML element"),options:[{label:Object(pe.__)("Default (
    )"),value:"div"},{label:"
    ",value:"header"},{label:"
    ",value:"main"},{label:"
    ",value:"section"},{label:"
    ",value:"article"},{label:"