/*! This file is auto-generated */ (()=>{var e={2321:e=>{e.exports=function(e){return e&&"__experimental"in e&&!1!==e.__experimental}},7734:e=>{"use strict";e.exports=function e(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var n,r,a;if(Array.isArray(t)){if((n=t.length)!=o.length)return!1;for(r=n;0!=r--;)if(!e(t[r],o[r]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],o.get(r[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(o)){if((n=t.length)!=o.length)return!1;for(r=n;0!=r--;)if(t[r]!==o[r])return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(o,a[r]))return!1;for(r=n;0!=r--;){var i=a[r];if(!e(t[i],o[i]))return!1}return!0}return t!=t&&o!=o}},9681:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},o=Object.keys(t).join("|"),n=new RegExp(o,"g"),r=new RegExp(o,"");function a(e){return t[e]}var i=function(e){return e.replace(n,a)};e.exports=i,e.exports.has=function(e){return!!e.match(r)},e.exports.remove=i}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{__experimentalGetCoreBlocks:()=>jB,__experimentalRegisterExperimentalCoreBlocks:()=>BB,privateApis:()=>CB,registerCoreBlocks:()=>SB});var e={};o.r(e),o.d(e,{init:()=>lt,metadata:()=>at,name:()=>it,settings:()=>st});var t={};o.r(t),o.d(t,{init:()=>Bt,metadata:()=>Ct,name:()=>jt,settings:()=>St});var r={};o.r(r),o.d(r,{init:()=>ro,metadata:()=>to,name:()=>oo,settings:()=>no});var a={};o.r(a),o.d(a,{init:()=>Io,metadata:()=>Bo,name:()=>To,settings:()=>No});var i={};o.r(i),o.d(i,{init:()=>Go,metadata:()=>Eo,name:()=>Oo,settings:()=>$o});var s={};o.r(s),o.d(s,{init:()=>Yo,metadata:()=>Zo,name:()=>Qo,settings:()=>Ko});var l={};o.r(l),o.d(l,{init:()=>sn,metadata:()=>nn,name:()=>rn,settings:()=>an});var c={};o.r(c),o.d(c,{init:()=>yn,metadata:()=>xn,name:()=>_n,settings:()=>bn});var u={};o.r(u),o.d(u,{init:()=>Tn,metadata:()=>jn,name:()=>Sn,settings:()=>Bn});var d={};o.r(d),o.d(d,{init:()=>Hn,metadata:()=>Dn,name:()=>An,settings:()=>Rn});var p={};o.r(p),o.d(p,{init:()=>or,metadata:()=>Xn,name:()=>er,settings:()=>tr});var m={};o.r(m),o.d(m,{init:()=>gr,metadata:()=>dr,name:()=>pr,settings:()=>mr});var g={};o.r(g),o.d(g,{init:()=>br,metadata:()=>hr,name:()=>xr,settings:()=>_r});var h={};o.r(h),o.d(h,{init:()=>jr,metadata:()=>kr,name:()=>wr,settings:()=>Cr});var x={};o.r(x),o.d(x,{init:()=>Ir,metadata:()=>Br,name:()=>Tr,settings:()=>Nr});var _={};o.r(_),o.d(_,{init:()=>Lr,metadata:()=>Ar,name:()=>Rr,settings:()=>Hr});var b={};o.r(b),o.d(b,{init:()=>$r,metadata:()=>Vr,name:()=>Er,settings:()=>Or});var y={};o.r(y),o.d(y,{init:()=>Qr,metadata:()=>qr,name:()=>Wr,settings:()=>Zr});var f={};o.r(f),o.d(f,{init:()=>sa,metadata:()=>ra,name:()=>aa,settings:()=>ia});var v={};o.r(v),o.d(v,{init:()=>ma,metadata:()=>ua,name:()=>da,settings:()=>pa});var k={};o.r(k),o.d(k,{init:()=>fa,metadata:()=>_a,name:()=>ba,settings:()=>ya});var w={};o.r(w),o.d(w,{init:()=>Sa,metadata:()=>wa,name:()=>Ca,settings:()=>ja});var C={};o.r(C),o.d(C,{init:()=>Ma,metadata:()=>Na,name:()=>Ia,settings:()=>Pa});var j={};o.r(j),o.d(j,{init:()=>Va,metadata:()=>Ha,name:()=>La,settings:()=>Fa});var S={};o.r(S),o.d(S,{init:()=>Rs,metadata:()=>zs,name:()=>Ds,settings:()=>As});var B={};o.r(B),o.d(B,{init:()=>Gs,metadata:()=>Es,name:()=>Os,settings:()=>$s});var T={};o.r(T),o.d(T,{init:()=>Dl,metadata:()=>Pl,name:()=>Ml,settings:()=>zl});var N={};o.r(N),o.d(N,{init:()=>Yl,metadata:()=>Zl,name:()=>Ql,settings:()=>Kl});var I={};o.r(I),o.d(I,{init:()=>sc,metadata:()=>rc,name:()=>ac,settings:()=>ic});var P={};o.r(P),o.d(P,{init:()=>vc,metadata:()=>bc,name:()=>yc,settings:()=>fc});var M={};o.r(M),o.d(M,{init:()=>Bc,metadata:()=>Cc,name:()=>jc,settings:()=>Sc});var z={};o.r(z),o.d(z,{init:()=>Rc,metadata:()=>zc,name:()=>Dc,settings:()=>Ac});var D={};o.r(D),o.d(D,{init:()=>Mu,metadata:()=>Nu,name:()=>Iu,settings:()=>Pu});var A={};o.r(A),o.d(A,{init:()=>Ku,metadata:()=>Wu,name:()=>Zu,settings:()=>Qu});var R={};o.r(R),o.d(R,{init:()=>yd,metadata:()=>xd,name:()=>_d,settings:()=>bd});var H={};o.r(H),o.d(H,{init:()=>jd,metadata:()=>kd,name:()=>wd,settings:()=>Cd});var L={};o.r(L),o.d(L,{init:()=>Dd,metadata:()=>Pd,name:()=>Md,settings:()=>zd});var F={};o.r(F),o.d(F,{init:()=>cp,metadata:()=>ip,name:()=>sp,settings:()=>lp});var V={};o.r(V),o.d(V,{init:()=>gp,metadata:()=>dp,name:()=>pp,settings:()=>mp});var E={};o.r(E),o.d(E,{init:()=>Tp,metadata:()=>jp,name:()=>Sp,settings:()=>Bp});var O={};o.r(O),o.d(O,{init:()=>om,metadata:()=>Xp,name:()=>em,settings:()=>tm});var $={};o.r($),o.d($,{init:()=>hm,metadata:()=>pm,name:()=>mm,settings:()=>gm});var G={};o.r(G),o.d(G,{init:()=>fm,metadata:()=>_m,name:()=>bm,settings:()=>ym});var U={};o.r(U),o.d(U,{init:()=>pg,metadata:()=>cg,name:()=>ug,settings:()=>dg});var q={};o.r(q),o.d(q,{init:()=>xg,metadata:()=>mg,name:()=>gg,settings:()=>hg});var W={};o.r(W),o.d(W,{init:()=>wg,metadata:()=>fg,name:()=>vg,settings:()=>kg});var Z={};o.r(Z),o.d(Z,{init:()=>tx,metadata:()=>Jh,name:()=>Xh,settings:()=>ex});var Q={};o.r(Q),o.d(Q,{init:()=>gx,metadata:()=>dx,name:()=>px,settings:()=>mx});var K={};o.r(K),o.d(K,{init:()=>Cx,metadata:()=>vx,name:()=>kx,settings:()=>wx});var Y={};o.r(Y),o.d(Y,{init:()=>Ix,metadata:()=>Bx,name:()=>Tx,settings:()=>Nx});var J={};o.r(J),o.d(J,{init:()=>Vx,metadata:()=>Hx,name:()=>Lx,settings:()=>Fx});var X={};o.r(X),o.d(X,{init:()=>Jx,metadata:()=>Qx,name:()=>Kx,settings:()=>Yx});var ee={};o.r(ee),o.d(ee,{init:()=>n_,metadata:()=>e_,name:()=>t_,settings:()=>o_});var te={};o.r(te),o.d(te,{init:()=>C_,metadata:()=>v_,name:()=>k_,settings:()=>w_});var oe={};o.r(oe),o.d(oe,{init:()=>P_,metadata:()=>T_,name:()=>N_,settings:()=>I_});var ne={};o.r(ne),o.d(ne,{init:()=>H_,metadata:()=>D_,name:()=>A_,settings:()=>R_});var re={};o.r(re),o.d(re,{init:()=>O_,metadata:()=>F_,name:()=>V_,settings:()=>E_});var ae={};o.r(ae),o.d(ae,{init:()=>Z_,metadata:()=>U_,name:()=>q_,settings:()=>W_});var ie={};o.r(ie),o.d(ie,{init:()=>X_,metadata:()=>K_,name:()=>Y_,settings:()=>J_});var se={};o.r(se),o.d(se,{init:()=>rb,metadata:()=>tb,name:()=>ob,settings:()=>nb});var le={};o.r(le),o.d(le,{init:()=>cb,metadata:()=>ib,name:()=>sb,settings:()=>lb});var ce={};o.r(ce),o.d(ce,{init:()=>yb,metadata:()=>xb,name:()=>_b,settings:()=>bb});var ue={};o.r(ue),o.d(ue,{init:()=>Tb,metadata:()=>jb,name:()=>Sb,settings:()=>Bb});var de={};o.r(de),o.d(de,{init:()=>Db,metadata:()=>Pb,name:()=>Mb,settings:()=>zb});var pe={};o.r(pe),o.d(pe,{init:()=>Wb,metadata:()=>Gb,name:()=>Ub,settings:()=>qb});var me={};o.r(me),o.d(me,{init:()=>ty,metadata:()=>Jb,name:()=>Xb,settings:()=>ey});var ge={};o.r(ge),o.d(ge,{init:()=>ly,metadata:()=>ay,name:()=>iy,settings:()=>sy});var he={};o.r(he),o.d(he,{init:()=>by,metadata:()=>hy,name:()=>xy,settings:()=>_y});var xe={};o.r(xe),o.d(xe,{init:()=>jy,metadata:()=>ky,name:()=>wy,settings:()=>Cy});var _e={};o.r(_e),o.d(_e,{init:()=>Py,metadata:()=>Ty,name:()=>Ny,settings:()=>Iy});var be={};o.r(be),o.d(be,{init:()=>Ly,metadata:()=>Ay,name:()=>Ry,settings:()=>Hy});var ye={};o.r(ye),o.d(ye,{init:()=>rf,metadata:()=>tf,name:()=>of,settings:()=>nf});var fe={};o.r(fe),o.d(fe,{init:()=>yv,metadata:()=>xv,name:()=>_v,settings:()=>bv});var ve={};o.r(ve),o.d(ve,{init:()=>Cv,metadata:()=>vv,name:()=>kv,settings:()=>wv});var ke={};o.r(ke),o.d(ke,{init:()=>Mv,metadata:()=>Nv,name:()=>Iv,settings:()=>Pv});var we={};o.r(we),o.d(we,{init:()=>Hv,metadata:()=>Dv,name:()=>Av,settings:()=>Rv});var Ce={};o.r(Ce),o.d(Ce,{init:()=>Ov,metadata:()=>Fv,name:()=>Vv,settings:()=>Ev});var je={};o.r(je),o.d(je,{init:()=>Wv,metadata:()=>Gv,name:()=>Uv,settings:()=>qv});var Se={};o.r(Se),o.d(Se,{init:()=>ok,metadata:()=>Xv,name:()=>ek,settings:()=>tk});var Be={};o.r(Be),o.d(Be,{init:()=>vk,metadata:()=>bk,name:()=>yk,settings:()=>fk});var Te={};o.r(Te),o.d(Te,{init:()=>Vk,metadata:()=>Hk,name:()=>Lk,settings:()=>Fk});var Ne={};o.r(Ne),o.d(Ne,{init:()=>Gk,metadata:()=>Ek,name:()=>Ok,settings:()=>$k});var Ie={};o.r(Ie),o.d(Ie,{init:()=>Qk,metadata:()=>qk,name:()=>Wk,settings:()=>Zk});var Pe={};o.r(Pe),o.d(Pe,{init:()=>cw,metadata:()=>iw,name:()=>sw,settings:()=>lw});var Me={};o.r(Me),o.d(Me,{init:()=>_w,metadata:()=>gw,name:()=>hw,settings:()=>xw});var ze={};o.r(ze),o.d(ze,{init:()=>Cw,metadata:()=>vw,name:()=>kw,settings:()=>ww});var De={};o.r(De),o.d(De,{init:()=>Aw,metadata:()=>Mw,name:()=>zw,settings:()=>Dw});var Ae={};o.r(Ae),o.d(Ae,{init:()=>Ow,metadata:()=>Fw,name:()=>Vw,settings:()=>Ew});var Re={};o.r(Re),o.d(Re,{init:()=>Kw,metadata:()=>Ww,name:()=>Zw,settings:()=>Qw});var He={};o.r(He),o.d(He,{init:()=>sC,metadata:()=>rC,name:()=>aC,settings:()=>iC});var Le={};o.r(Le),o.d(Le,{init:()=>xC,metadata:()=>mC,name:()=>gC,settings:()=>hC});var Fe={};o.r(Fe),o.d(Fe,{init:()=>IC,metadata:()=>BC,name:()=>TC,settings:()=>NC});var Ve={};o.r(Ve),o.d(Ve,{init:()=>xj,metadata:()=>mj,name:()=>gj,settings:()=>hj});var Ee={};o.r(Ee),o.d(Ee,{init:()=>Bj,metadata:()=>Cj,name:()=>jj,settings:()=>Sj});var Oe={};o.r(Oe),o.d(Oe,{init:()=>zj,metadata:()=>Ij,name:()=>Pj,settings:()=>Mj});var $e={};o.r($e),o.d($e,{init:()=>xS,metadata:()=>mS,name:()=>gS,settings:()=>hS});var Ge={};o.r(Ge),o.d(Ge,{init:()=>vS,metadata:()=>bS,name:()=>yS,settings:()=>fS});var Ue={};o.r(Ue),o.d(Ue,{init:()=>BS,metadata:()=>CS,name:()=>jS,settings:()=>SS});var qe={};o.r(qe),o.d(qe,{init:()=>RS,metadata:()=>zS,name:()=>DS,settings:()=>AS});var We={};o.r(We),o.d(We,{init:()=>rB,metadata:()=>tB,name:()=>oB,settings:()=>nB});var Ze={};o.r(Ze),o.d(Ze,{init:()=>yB,metadata:()=>xB,name:()=>_B,settings:()=>bB});const Qe=window.wp.blocks,Ke=window.wp.primitives,Ye=window.ReactJSXRuntime,Je=(0,Ye.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ye.jsx)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"})});function Xe(e){if(!e)return;const{metadata:t,settings:o,name:n}=e;return(0,Qe.registerBlockType)({name:n,...t},o)}const et=window.wp.components,tt=window.wp.i18n,ot=window.wp.blockEditor,nt=window.wp.serverSideRender;var rt=o.n(nt);const at={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/archives",title:"Archives",category:"widgets",description:"Display a date archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showLabel:{type:"boolean",default:!0},showPostCounts:{type:"boolean",default:!1},type:{type:"string",default:"monthly"}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-archives-editor"},{name:it}=at,st={icon:Je,example:{},edit:function({attributes:e,setAttributes:t}){const{showLabel:o,showPostCounts:n,displayAsDropdown:r,type:a}=e;return(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)(ot.InspectorControls,{children:(0,Ye.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Ye.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display as dropdown"),checked:r,onChange:()=>t({displayAsDropdown:!r})}),r&&(0,Ye.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show label"),checked:o,onChange:()=>t({showLabel:!o})}),(0,Ye.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show post counts"),checked:n,onChange:()=>t({showPostCounts:!n})}),(0,Ye.jsx)(et.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,tt.__)("Group by"),options:[{label:(0,tt.__)("Year"),value:"yearly"},{label:(0,tt.__)("Month"),value:"monthly"},{label:(0,tt.__)("Week"),value:"weekly"},{label:(0,tt.__)("Day"),value:"daily"}],value:a,onChange:e=>t({type:e})})]})}),(0,Ye.jsx)("div",{...(0,ot.useBlockProps)(),children:(0,Ye.jsx)(et.Disabled,{children:(0,Ye.jsx)(rt(),{block:"core/archives",skipBlockSupportAttributes:!0,attributes:e})})})]})}},lt=()=>Xe({name:it,metadata:at,settings:st}),ct=(0,Ye.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ye.jsx)(Ke.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})});function ut(e){var t,o,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t{const{getSettings:t}=e(ot.store),{__experimentalDiscussionSettings:o}=t();return o}));return e}const _t=window.wp.element,bt={who:"authors",per_page:-1,_fields:"id,name",context:"view"};const yt=function({value:e,onChange:t}){const[o,n]=(0,_t.useState)(),r=(0,gt.useSelect)((e=>{const{getUsers:t}=e(mt.store);return t(bt)}),[]);if(!r)return null;const a=r.map((e=>({label:e.name,value:e.id})));return(0,Ye.jsx)(et.ComboboxControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,tt.__)("User"),help:(0,tt.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:o||a,onFilterValueChange:e=>n(a.filter((t=>t.label.toLowerCase().startsWith(e.toLowerCase()))))})},ft=({setAttributes:e,avatar:t,attributes:o,selectUser:n})=>(0,Ye.jsx)(ot.InspectorControls,{children:(0,Ye.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Ye.jsx)(et.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Image size"),onChange:t=>e({size:t}),min:t.minSize,max:t.maxSize,initialPosition:o?.size,value:o?.size}),(0,Ye.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link to user profile"),onChange:()=>e({isLink:!o.isLink}),checked:o.isLink}),o.isLink&&(0,Ye.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Open in new tab"),onChange:t=>e({linkTarget:t?"_blank":"_self"}),checked:"_blank"===o.linkTarget}),n&&(0,Ye.jsx)(yt,{value:o?.userId,onChange:t=>{e({userId:t})}})]})}),vt=({setAttributes:e,attributes:t,avatar:o,blockProps:n,isSelected:r})=>{const a=(0,ot.__experimentalUseBorderProps)(t),i=(0,pt.addQueryArgs)((0,pt.removeQueryArgs)(o?.src,["s"]),{s:2*t?.size});return(0,Ye.jsx)("div",{...n,children:(0,Ye.jsx)(et.ResizableBox,{size:{width:t.size,height:t.size},showHandle:r,onResizeStop:(o,n,r,a)=>{e({size:parseInt(t.size+(a.height||a.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,tt.isRTL)(),bottom:!0,left:(0,tt.isRTL)()},minWidth:o.minSize,maxWidth:o.maxSize,children:(0,Ye.jsx)("img",{src:i,alt:o.alt,className:dt("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",a.className),style:a.style})})})},kt=({attributes:e,context:t,setAttributes:o,isSelected:n})=>{const{commentId:r}=t,a=(0,ot.useBlockProps)(),i=function({commentId:e}){const[t]=(0,mt.useEntityProp)("root","comment","author_avatar_urls",e),[o]=(0,mt.useEntityProp)("root","comment","author_name",e),n=t?Object.values(t):null,r=t?Object.keys(t):null,{minSize:a,maxSize:i}=ht(r),s=xt();return{src:n?n[n.length-1]:s,minSize:a,maxSize:i,alt:o?(0,tt.sprintf)((0,tt.__)("%s Avatar"),o):(0,tt.__)("Default Avatar")}}({commentId:r});return(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)(ft,{avatar:i,setAttributes:o,attributes:e,selectUser:!1}),e.isLink?(0,Ye.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault(),children:(0,Ye.jsx)(vt,{attributes:e,avatar:i,blockProps:a,isSelected:n,setAttributes:o})}):(0,Ye.jsx)(vt,{attributes:e,avatar:i,blockProps:a,isSelected:n,setAttributes:o})]})},wt=({attributes:e,context:t,setAttributes:o,isSelected:n})=>{const{postId:r,postType:a}=t,i=function({userId:e,postId:t,postType:o}){const{authorDetails:n}=(0,gt.useSelect)((n=>{const{getEditedEntityRecord:r,getUser:a}=n(mt.store);if(e)return{authorDetails:a(e)};const i=r("postType",o,t)?.author;return{authorDetails:i?a(i):null}}),[o,t,e]),r=n?.avatar_urls?Object.values(n.avatar_urls):null,a=n?.avatar_urls?Object.keys(n.avatar_urls):null,{minSize:i,maxSize:s}=ht(a),l=xt();return{src:r?r[r.length-1]:l,minSize:i,maxSize:s,alt:n?(0,tt.sprintf)((0,tt.__)("%s Avatar"),n?.name):(0,tt.__)("Default Avatar")}}({userId:e?.userId,postId:r,postType:a}),s=(0,ot.useBlockProps)();return(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)(ft,{selectUser:!0,attributes:e,avatar:i,setAttributes:o}),e.isLink?(0,Ye.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault(),children:(0,Ye.jsx)(vt,{attributes:e,avatar:i,blockProps:s,isSelected:n,setAttributes:o})}):(0,Ye.jsx)(vt,{attributes:e,avatar:i,blockProps:s,isSelected:n,setAttributes:o})]})};const Ct={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/avatar",title:"Avatar",category:"theme",description:"Add a user’s avatar.",textdomain:"default",attributes:{userId:{type:"number"},size:{type:"number",default:96},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","commentId"],supports:{html:!1,align:!0,alignWide:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{__experimentalSkipSerialization:!0,radius:!0,width:!0,color:!0,style:!0,__experimentalDefaultControls:{radius:!0}},color:{text:!1,background:!1,__experimentalDuotone:"img"},interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-avatar img"},editorStyle:"wp-block-avatar-editor",style:"wp-block-avatar"},{name:jt}=Ct,St={icon:ct,edit:function(e){return e?.context?.commentId||null===e?.context?.commentId?(0,Ye.jsx)(kt,{...e}):(0,Ye.jsx)(wt,{...e})}},Bt=()=>Xe({name:jt,metadata:Ct,settings:St}),Tt=(0,Ye.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ye.jsx)(Ke.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"})}),Nt=[{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:o,loop:n,preload:r,src:a}=e;return(0,Ye.jsxs)("figure",{children:[(0,Ye.jsx)("audio",{controls:"controls",src:a,autoPlay:t,loop:n,preload:r}),!ot.RichText.isEmpty(o)&&(0,Ye.jsx)(ot.RichText.Content,{tagName:"figcaption",value:o})]})}}],It=window.wp.blob,Pt=window.wp.notices;function Mt(e,t){var o,n,r=0;function a(){var a,i,s=o,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;ie&&e.includes('class="wp-embedded-content"'),Et=(e,t={})=>{const{preview:o,attributes:n={}}=e,{url:r,providerNameSlug:a,type:i,...s}=n;if(!r||!(0,Qe.getBlockType)(Lt))return;const l=(e=>(0,Qe.getBlockVariations)(Lt)?.find((({patterns:t})=>((e,t=[])=>t.some((t=>e.match(t))))(e,t))))(r),c="wordpress"===a||i===Dt;if(!c&&l&&(l.attributes.providerNameSlug!==a||!a))return(0,Qe.createBlock)(Lt,{url:r,...s,...l.attributes});const u=(0,Qe.getBlockVariations)(Lt)?.find((({name:e})=>"wordpress"===e));return u&&o&&Vt(o.html)&&!c?(0,Qe.createBlock)(Lt,{url:r,...u.attributes,...t}):void 0},Ot=e=>{if(!e)return e;const t=zt.reduce(((e,{className:t})=>(e.push(t),e)),["wp-has-aspect-ratio"]);let o=e;for(const e of t)o=o.replace(e,"");return o.trim()};function $t(e,t,o=!0){if(!o)return Ot(t);const n=document.implementation.createHTMLDocument("");n.body.innerHTML=e;const r=n.body.querySelector("iframe");if(r&&r.height&&r.width){const e=(r.width/r.height).toFixed(2);for(let o=0;o=n.ratio){return e-n.ratio>.1?Ot(t):dt(Ot(t),n.className,"wp-has-aspect-ratio")}}}return t}const Gt=Mt(((e,t,o,n,r=!0)=>{if(!e)return{};const a={};let{type:i="rich"}=e;const{html:s,provider_name:l}=e,c=Ft((l||t).toLowerCase());return Vt(s)&&(i=Dt),(s||"photo"===i)&&(a.type=i,a.providerNameSlug=c),(u=o)&&zt.some((({className:e})=>u.includes(e)))||(a.className=$t(s,o,n&&r)),a;var u})),Ut=window.wp.compose;function qt(e,t,o){return(0,gt.useSelect)((n=>n(mt.store).canUser("update",{kind:e,name:t,id:o})),[e,t,o])}function Wt(e={}){const t=(0,_t.useRef)(e),o=(0,_t.useRef)(!1),{getSettings:n}=(0,gt.useSelect)(ot.store);(0,_t.useLayoutEffect)((()=>{t.current=e})),(0,_t.useEffect)((()=>{if(o.current)return;if(!t.current.url||!(0,It.isBlobURL)(t.current.url))return;const e=(0,It.getBlobByURL)(t.current.url);if(!e)return;const{url:r,allowedTypes:a,onChange:i,onError:s}=t.current,{mediaUpload:l}=n();o.current=!0,l({filesList:[e],allowedTypes:a,onFileChange:([e])=>{(0,It.isBlobURL)(e?.url)||((0,It.revokeBlobURL)(r),i(e),o.current=!1)},onError:e=>{(0,It.revokeBlobURL)(r),s(e),o.current=!1}})}),[n])}function Zt(){return(0,Ut.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}const Qt=(0,Ye.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ye.jsx)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})});function Kt({attributeKey:e="caption",attributes:t,setAttributes:o,isSelected:n,insertBlocksAfter:r,placeholder:a=(0,tt.__)("Add caption"),label:i=(0,tt.__)("Caption text"),showToolbarButton:s=!0,excludeElementClassName:l,className:c,readOnly:u,tagName:d="figcaption",addLabel:p=(0,tt.__)("Add caption"),removeLabel:m=(0,tt.__)("Remove caption"),icon:g=Qt,...h}){const x=t[e],_=(0,Ut.usePrevious)(x),{PrivateRichText:b}=Ht(ot.privateApis),y=b.isEmpty(x),f=b.isEmpty(_),[v,k]=(0,_t.useState)(!y);(0,_t.useEffect)((()=>{!y&&f&&k(!0)}),[y,f]),(0,_t.useEffect)((()=>{!n&&y&&k(!1)}),[n,y]);const w=(0,_t.useCallback)((e=>{e&&y&&e.focus()}),[y]);return(0,Ye.jsxs)(Ye.Fragment,{children:[s&&(0,Ye.jsx)(ot.BlockControls,{group:"block",children:(0,Ye.jsx)(et.ToolbarButton,{onClick:()=>{k(!v),v&&x&&o({[e]:void 0})},icon:g,isPressed:v,label:v?m:p})}),v&&(!b.isEmpty(x)||n)&&(0,Ye.jsx)(b,{identifier:e,tagName:d,className:dt(c,l?"":(0,ot.__experimentalGetElementClassName)("caption")),ref:w,"aria-label":i,placeholder:a,value:x,onChange:t=>o({[e]:t}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>r((0,Qe.createBlock)((0,Qe.getDefaultBlockName)())),readOnly:u,...h})]})}const Yt=["audio"];const Jt=function({attributes:e,className:t,setAttributes:o,onReplace:n,isSelected:r,insertBlocksAfter:a}){const{id:i,autoplay:s,loop:l,preload:c,src:u}=e,[d,p]=(0,_t.useState)(e.blob);function m(e){return t=>{o({[e]:t})}}function g(e){if(e!==u){const t=Et({attributes:{url:e}});if(void 0!==t&&n)return void n(t);o({src:e,id:void 0,blob:void 0}),p()}}Wt({url:d,allowedTypes:Yt,onChange:_,onError:x});const{createErrorNotice:h}=(0,gt.useDispatch)(Pt.store);function x(e){h(e,{type:"snackbar"})}function _(e){if(!e||!e.url)return o({src:void 0,id:void 0,caption:void 0,blob:void 0}),void p();(0,It.isBlobURL)(e.url)?p(e.url):(o({blob:void 0,src:e.url,id:e.id,caption:e.caption}),p())}const b=dt(t,{"is-transient":!!d}),y=(0,ot.useBlockProps)({className:b});return u||d?(0,Ye.jsxs)(Ye.Fragment,{children:[r&&(0,Ye.jsx)(ot.BlockControls,{group:"other",children:(0,Ye.jsx)(ot.MediaReplaceFlow,{mediaId:i,mediaURL:u,allowedTypes:Yt,accept:"audio/*",onSelect:_,onSelectURL:g,onError:x,onReset:()=>_(void 0)})}),(0,Ye.jsx)(ot.InspectorControls,{children:(0,Ye.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[(0,Ye.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Autoplay"),onChange:m("autoplay"),checked:s,help:function(e){return e?(0,tt.__)("Autoplay may cause usability issues for some users."):null}}),(0,Ye.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Loop"),onChange:m("loop"),checked:l}),(0,Ye.jsx)(et.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,tt._x)("Preload","noun; Audio block parameter"),value:c||"",onChange:e=>o({preload:e||void 0}),options:[{value:"",label:(0,tt.__)("Browser default")},{value:"auto",label:(0,tt.__)("Auto")},{value:"metadata",label:(0,tt.__)("Metadata")},{value:"none",label:(0,tt._x)("None","Preload value")}]})]})}),(0,Ye.jsxs)("figure",{...y,children:[(0,Ye.jsx)(et.Disabled,{isDisabled:!r,children:(0,Ye.jsx)("audio",{controls:"controls",src:null!=u?u:d})}),!!d&&(0,Ye.jsx)(et.Spinner,{}),(0,Ye.jsx)(Kt,{attributes:e,setAttributes:o,isSelected:r,insertBlocksAfter:a,label:(0,tt.__)("Audio caption text"),showToolbarButton:r})]})]}):(0,Ye.jsx)("div",{...y,children:(0,Ye.jsx)(ot.MediaPlaceholder,{icon:(0,Ye.jsx)(ot.BlockIcon,{icon:Tt}),onSelect:_,onSelectURL:g,accept:"audio/*",allowedTypes:Yt,value:e,onError:x})})};const Xt={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("audio/"),transform(e){const t=e[0];return(0,Qe.createBlock)("core/audio",{blob:(0,It.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:o,ogg:n,wav:r,wma:a}})=>e||t||o||n||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}}}]},eo=Xt,to={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",attributes:{blob:{type:"string",role:"local"},src:{type:"string",source:"attribute",selector:"audio",attribute:"src",role:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},id:{type:"number",role:"content"},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,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:oo}=to,no={icon:Tt,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:eo,deprecated:Nt,edit:Jt,save:function({attributes:e}){const{autoplay:t,caption:o,loop:n,preload:r,src:a}=e;return a&&(0,Ye.jsxs)("figure",{...ot.useBlockProps.save(),children:[(0,Ye.jsx)("audio",{controls:"controls",src:a,autoPlay:t,loop:n,preload:r}),!ot.RichText.isEmpty(o)&&(0,Ye.jsx)(ot.RichText.Content,{tagName:"figcaption",value:o,className:(0,ot.__experimentalGetElementClassName)("caption")})]})}},ro=()=>Xe({name:oo,metadata:to,settings:no}),ao=(0,Ye.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ye.jsx)(Ke.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})}),{cleanEmptyObject:io}=Ht(ot.privateApis);function so(e){if(!e?.style?.typography?.fontFamily)return e;const{fontFamily:t,...o}=e.style.typography;return{...e,style:io({...e.style,typography:o}),fontFamily:t.split("|").pop()}}const lo=e=>{const{borderRadius:t,...o}=e,n=[t,o.style?.border?.radius].find((e=>"number"==typeof e&&0!==e));return n?{...o,style:{...o.style,border:{...o.style?.border,radius:`${n}px`}}}:o};const co=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient);const{customTextColor:o,customBackgroundColor:n,customGradient:r,...a}=e;return{...a,style:t}},uo=e=>{const{color:t,textColor:o,...n}={...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0};return co(n)},po={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"}},mo={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:o,linkTarget:n,rel:r,style:a,text:i,title:s,url:l,width:c}=e;if(!i)return null;const u=(0,ot.__experimentalGetBorderClassesAndStyles)(e),d=(0,ot.__experimentalGetColorClassesAndStyles)(e),p=(0,ot.__experimentalGetSpacingClassesAndStyles)(e),m=dt("wp-block-button__link",d.className,u.className,{"no-border-radius":0===a?.border?.radius}),g={...u.style,...d.style,...p.style},h=dt(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":o||a?.typography?.fontSize});return(0,Ye.jsx)("div",{...ot.useBlockProps.save({className:h}),children:(0,Ye.jsx)(ot.RichText.Content,{tagName:"a",className:m,href:l,title:s,style:g,value:i,target:n,rel:r})})}},go={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:o,linkTarget:n,rel:r,style:a,text:i,title:s,url:l,width:c}=e;if(!i)return null;const u=(0,ot.__experimentalGetBorderClassesAndStyles)(e),d=(0,ot.__experimentalGetColorClassesAndStyles)(e),p=(0,ot.__experimentalGetSpacingClassesAndStyles)(e),m=dt("wp-block-button__link",d.className,u.className,{"no-border-radius":0===a?.border?.radius}),g={...u.style,...d.style,...p.style},h=dt(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":o||a?.typography?.fontSize});return(0,Ye.jsx)("div",{...ot.useBlockProps.save({className:h}),children:(0,Ye.jsx)(ot.RichText.Content,{tagName:"a",className:m,href:l,title:s,style:g,value:i,target:n,rel:r})})},migrate:so,isEligible:({style:e})=>e?.typography?.fontFamily},ho=[mo,go,{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...po,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible:({style:e})=>"number"==typeof e?.border?.radius,save({attributes:e,className:t}){const{fontSize:o,linkTarget:n,rel:r,style:a,text:i,title:s,url:l,width:c}=e;if(!i)return null;const u=a?.border?.radius,d=(0,ot.__experimentalGetColorClassesAndStyles)(e),p=dt("wp-block-button__link",d.className,{"no-border-radius":0===a?.border?.radius}),m={borderRadius:u||void 0,...d.style},g=dt(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":o||a?.typography?.fontSize});return(0,Ye.jsx)("div",{...ot.useBlockProps.save({className:g}),children:(0,Ye.jsx)(ot.RichText.Content,{tagName:"a",className:p,href:l,title:s,style:m,value:i,target:n,rel:r})})},migrate:(0,Ut.compose)(so,lo)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...po,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:o,linkTarget:n,rel:r,text:a,title:i,url:s,width:l}=e,c=(0,ot.__experimentalGetColorClassesAndStyles)(e),u=dt("wp-block-button__link",c.className,{"no-border-radius":0===o}),d={borderRadius:o?o+"px":void 0,...c.style},p=dt(t,{[`has-custom-width wp-block-button__width-${l}`]:l});return(0,Ye.jsx)("div",{...ot.useBlockProps.save({className:p}),children:(0,Ye.jsx)(ot.RichText.Content,{tagName:"a",className:u,href:s,title:i,style:d,value:a,target:n,rel:r})})},migrate:(0,Ut.compose)(so,lo)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...po,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:o,linkTarget:n,rel:r,text:a,title:i,url:s,width:l}=e,c=(0,ot.__experimentalGetColorClassesAndStyles)(e),u=dt("wp-block-button__link",c.className,{"no-border-radius":0===o}),d={borderRadius:o?o+"px":void 0,...c.style},p=dt(t,{[`has-custom-width wp-block-button__width-${l}`]:l});return(0,Ye.jsx)("div",{...ot.useBlockProps.save({className:p}),children:(0,Ye.jsx)(ot.RichText.Content,{tagName:"a",className:u,href:s,title:i,style:d,value:a,target:n,rel:r})})},migrate:(0,Ut.compose)(so,lo)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...po,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:o,rel:n,text:r,title:a,url:i}=e,s=dt("wp-block-button__link",{"no-border-radius":0===t}),l={borderRadius:t?t+"px":void 0};return(0,Ye.jsx)(ot.RichText.Content,{tagName:"a",className:s,href:i,title:a,style:l,value:r,target:o,rel:n})},migrate:lo},{supports:{align:!0,alignWide:!1},attributes:{...po,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||e.align),migrate:(0,Ut.compose)(lo,co,(function(e){if(!e.align)return e;const{align:t,...o}=e;return{...o,className:dt(o.className,`align${e.align}`)}})),save({attributes:e}){const{backgroundColor:t,borderRadius:o,customBackgroundColor:n,customTextColor:r,customGradient:a,linkTarget:i,gradient:s,rel:l,text:c,textColor:u,title:d,url:p}=e,m=(0,ot.getColorClassName)("color",u),g=!a&&(0,ot.getColorClassName)("background-color",t),h=(0,ot.__experimentalGetGradientClass)(s),x=dt("wp-block-button__link",{"has-text-color":u||r,[m]:m,"has-background":t||n||a||s,[g]:g,"no-border-radius":0===o,[h]:h}),_={background:a||void 0,backgroundColor:g||a||s?void 0:n,color:m?void 0:r,borderRadius:o?o+"px":void 0};return(0,Ye.jsx)("div",{children:(0,Ye.jsx)(ot.RichText.Content,{tagName:"a",className:x,href:p,title:d,style:_,value:c,target:i,rel:l})})}},{attributes:{...po,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()),lo(co({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:o,customTextColor:n,linkTarget:r,rel:a,text:i,textColor:s,title:l,url:c}=e,u=(0,ot.getColorClassName)("color",s),d=(0,ot.getColorClassName)("background-color",t),p=dt("wp-block-button__link",{"has-text-color":s||n,[u]:u,"has-background":t||o,[d]:d}),m={backgroundColor:d?void 0:o,color:u?void 0:n};return(0,Ye.jsx)("div",{children:(0,Ye.jsx)(ot.RichText.Content,{tagName:"a",className:p,href:c,title:l,style:m,value:i,target:r,rel:a})})}},{attributes:{...po,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:uo,save({attributes:e}){const{url:t,text:o,title:n,backgroundColor:r,textColor:a,customBackgroundColor:i,customTextColor:s}=e,l=(0,ot.getColorClassName)("color",a),c=(0,ot.getColorClassName)("background-color",r),u=dt("wp-block-button__link",{"has-text-color":a||s,[l]:l,"has-background":r||i,[c]:c}),d={backgroundColor:c?void 0:i,color:l?void 0:s};return(0,Ye.jsx)("div",{children:(0,Ye.jsx)(ot.RichText.Content,{tagName:"a",className:u,href:t,title:n,style:d,value:o})})}},{attributes:{...po,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:o,title:n,align:r,color:a,textColor:i}=e,s={backgroundColor:a,color:i};return(0,Ye.jsx)("div",{className:`align${r}`,children:(0,Ye.jsx)(ot.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:n,style:s,value:o})})},migrate:uo},{attributes:{...po,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:o,title:n,align:r,color:a,textColor:i}=e;return(0,Ye.jsx)("div",{className:`align${r}`,style:{backgroundColor:a},children:(0,Ye.jsx)(ot.RichText.Content,{tagName:"a",href:t,title:n,style:{color:i},value:o})})},migrate:uo}],xo=ho,_o="noreferrer noopener",bo="_blank",yo="nofollow";function fo(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}const vo=window.wp.keycodes,ko=(0,Ye.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ye.jsx)(Ke.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})}),wo=(0,Ye.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ye.jsx)(Ke.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})}),Co=[...ot.__experimentalLinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,tt.__)("Mark as nofollow")}];function jo({selectedWidth:e,setAttributes:t}){return(0,Ye.jsx)(et.PanelBody,{title:(0,tt.__)("Settings"),children:(0,Ye.jsx)(et.ButtonGroup,{"aria-label":(0,tt.__)("Button width"),children:[25,50,75,100].map((o=>(0,Ye.jsxs)(et.Button,{size:"small",variant:o===e?"primary":void 0,onClick:()=>{var n;t({width:e===(n=o)?void 0:n})},children:[o,"%"]},o)))})})}const So=function(e){const{attributes:t,setAttributes:o,className:n,isSelected:r,onReplace:a,mergeBlocks:i,clientId:s,context:l}=e,{tagName:c,textAlign:u,linkTarget:d,placeholder:p,rel:m,style:g,text:h,url:x,width:_,metadata:b}=t,y=c||"a",[f,v]=(0,_t.useState)(null),k=(0,ot.__experimentalUseBorderProps)(t),w=(0,ot.__experimentalUseColorProps)(t),C=(0,ot.__experimentalGetSpacingClassesAndStyles)(t),j=(0,ot.__experimentalGetShadowClassesAndStyles)(t),S=(0,_t.useRef)(),B=(0,_t.useRef)(),T=(0,ot.useBlockProps)({ref:(0,Ut.useMergeRefs)([v,S]),onKeyDown:function(e){vo.isKeyboardEvent.primary(e,"k")?R(e):vo.isKeyboardEvent.primaryShift(e,"k")&&(H(),B.current?.focus())}}),N=(0,ot.useBlockEditingMode)(),[I,P]=(0,_t.useState)(!1),M=!!x,z=d===bo,D=!!m?.includes(yo),A="a"===y;function R(e){e.preventDefault(),P(!0)}function H(){o({url:void 0,linkTarget:void 0,rel:void 0}),P(!1)}(0,_t.useEffect)((()=>{r||P(!1)}),[r]);const L=(0,_t.useMemo)((()=>({url:x,opensInNewTab:z,nofollow:D})),[x,z,D]),F=function(e){const{replaceBlocks:t,selectionChange:o}=(0,gt.useDispatch)(ot.store),{getBlock:n,getBlockRootClientId:r,getBlockIndex:a}=(0,gt.useSelect)(ot.store),i=(0,_t.useRef)(e);return i.current=e,(0,Ut.useRefEffect)((e=>{function s(e){if(e.defaultPrevented||e.keyCode!==vo.ENTER)return;const{content:s,clientId:l}=i.current;if(s.length)return;e.preventDefault();const c=n(r(l)),u=a(l),d=(0,Qe.cloneBlock)({...c,innerBlocks:c.innerBlocks.slice(0,u)}),p=(0,Qe.createBlock)((0,Qe.getDefaultBlockName)()),m=c.innerBlocks.slice(u+1),g=m.length?[(0,Qe.cloneBlock)({...c,innerBlocks:m})]:[];t(c.clientId,[d,p,...g],1),o(p.clientId)}return e.addEventListener("keydown",s),()=>{e.removeEventListener("keydown",s)}}),[])}({content:h,clientId:s}),V=(0,Ut.useMergeRefs)([F,B]),{lockUrlControls:E=!1}=(0,gt.useSelect)((e=>{if(!r)return{};const t=(0,Qe.getBlockBindingsSource)(b?.bindings?.url?.source);return{lockUrlControls:!!b?.bindings?.url&&!t?.canUserEditValue?.({select:e,context:l,args:b?.bindings?.url?.args})}}),[l,r,b?.bindings?.url]);return(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)("div",{...T,className:dt(T.className,{[`has-custom-width wp-block-button__width-${_}`]:_,"has-custom-font-size":T.style.fontSize}),children:(0,Ye.jsx)(ot.RichText,{ref:V,"aria-label":(0,tt.__)("Button text"),placeholder:p||(0,tt.__)("Add text…"),value:h,onChange:e=>o({text:fo(e)}),withoutInteractiveFormatting:!0,className:dt(n,"wp-block-button__link",w.className,k.className,{[`has-text-align-${u}`]:u,"no-border-radius":0===g?.border?.radius},(0,ot.__experimentalGetElementClassName)("button")),style:{...k.style,...w.style,...C.style,...j.style},onReplace:a,onMerge:i,identifier:"text"})}),(0,Ye.jsxs)(ot.BlockControls,{group:"block",children:["default"===N&&(0,Ye.jsx)(ot.AlignmentControl,{value:u,onChange:e=>{o({textAlign:e})}}),!M&&A&&!E&&(0,Ye.jsx)(et.ToolbarButton,{name:"link",icon:ko,title:(0,tt.__)("Link"),shortcut:vo.displayShortcut.primary("k"),onClick:R}),M&&A&&!E&&(0,Ye.jsx)(et.ToolbarButton,{name:"link",icon:wo,title:(0,tt.__)("Unlink"),shortcut:vo.displayShortcut.primaryShift("k"),onClick:H,isActive:!0})]}),A&&r&&(I||M)&&!E&&(0,Ye.jsx)(et.Popover,{placement:"bottom",onClose:()=>{P(!1),B.current?.focus()},anchor:f,focusOnMount:!!I&&"firstElement",__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:(0,Ye.jsx)(ot.__experimentalLinkControl,{value:L,onChange:({url:e,opensInNewTab:t,nofollow:n})=>o(function({rel:e="",url:t="",opensInNewTab:o,nofollow:n}){let r,a=e;if(o)r=bo,a=a?.includes(_o)?a:a+` ${_o}`;else{const e=new RegExp(`\\b${_o}\\s*`,"g");a=a?.replace(e,"").trim()}if(n)a=a?.includes(yo)?a:a+` ${yo}`;else{const e=new RegExp(`\\b${yo}\\s*`,"g");a=a?.replace(e,"").trim()}return{url:(0,pt.prependHTTP)(t),linkTarget:r,rel:a||void 0}}({rel:m,url:e,opensInNewTab:t,nofollow:n})),onRemove:()=>{H(),B.current?.focus()},forceIsEditingLink:I,settings:Co})}),(0,Ye.jsx)(ot.InspectorControls,{children:(0,Ye.jsx)(jo,{selectedWidth:_,setAttributes:o})}),(0,Ye.jsx)(ot.InspectorControls,{group:"advanced",children:A&&(0,Ye.jsx)(et.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,tt.__)("Link rel"),value:m||"",onChange:e=>o({rel:e})})})]})};const Bo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,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:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",role:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,splitting:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-button .wp-block-button__link",interactivity:{clientNavigation:!0}},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button"},{name:To}=Bo,No={icon:ao,example:{attributes:{className:"is-style-fill",text:(0,tt.__)("Call to Action")}},edit:So,save:function({attributes:e,className:t}){const{tagName:o,type:n,textAlign:r,fontSize:a,linkTarget:i,rel:s,style:l,text:c,title:u,url:d,width:p}=e,m=o||"a",g="button"===m,h=n||"button",x=(0,ot.__experimentalGetBorderClassesAndStyles)(e),_=(0,ot.__experimentalGetColorClassesAndStyles)(e),b=(0,ot.__experimentalGetSpacingClassesAndStyles)(e),y=(0,ot.__experimentalGetShadowClassesAndStyles)(e),f=dt("wp-block-button__link",_.className,x.className,{[`has-text-align-${r}`]:r,"no-border-radius":0===l?.border?.radius},(0,ot.__experimentalGetElementClassName)("button")),v={...x.style,..._.style,...b.style,...y.style},k=dt(t,{[`has-custom-width wp-block-button__width-${p}`]:p,"has-custom-font-size":a||l?.typography?.fontSize});return(0,Ye.jsx)("div",{...ot.useBlockProps.save({className:k}),children:(0,Ye.jsx)(ot.RichText.Content,{tagName:m,type:g?h:null,className:f,href:g?null:d,title:u,style:v,value:c,target:g?null:i,rel:g?null:s})})},deprecated:xo,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},Io=()=>Xe({name:To,metadata:Bo,settings:No}),Po=(0,Ye.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ye.jsx)(Ke.Path,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"})}),Mo=e=>{if(e.layout)return e;const{contentJustification:t,orientation:o,...n}=e;return(t||o)&&Object.assign(n,{layout:{type:"flex",...t&&{justifyContent:t},...o&&{orientation:o}}}),n},zo=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification:e,orientation:t})=>!!e||!!t,migrate:Mo,save:({attributes:{contentJustification:e,orientation:t}})=>(0,Ye.jsx)("div",{...ot.useBlockProps.save({className:dt({[`is-content-justification-${e}`]:e,"is-vertical":"vertical"===t})}),children:(0,Ye.jsx)(ot.InnerBlocks.Content,{})})},{supports:{align:["center","left","right"],anchor:!0},save:()=>(0,Ye.jsx)("div",{children:(0,Ye.jsx)(ot.InnerBlocks.Content,{})}),isEligible:({align:e})=>e&&["center","left","right"].includes(e),migrate:e=>Mo({...e,align:void 0,contentJustification:e.align})}],Do=zo,Ao=window.wp.richText;function Ro(e,t,o){if(!e)return;const{supports:n}=(0,Qe.getBlockType)(t),r=[];if(["core/paragraph","core/heading","core/image","core/button"].includes(t)&&o&&r.push("id","bindings"),!1!==n.renaming&&r.push("name"),!r.length)return;const a=Object.entries(e).reduce(((e,[t,n])=>r.includes(t)?(e[t]="bindings"===t?o(n):n,e):e),{});return Object.keys(a).length?a:void 0}const Ho={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,Qe.createBlock)("core/buttons",{},e.map((e=>(0,Qe.createBlock)("core/button",e))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,Qe.createBlock)("core/buttons",{},e.map((e=>{const{content:t,metadata:o}=e,n=(0,Ao.__unstableCreateElement)(document,t),r=n.innerText||"",a=n.querySelector("a"),i=a?.getAttribute("href");return(0,Qe.createBlock)("core/button",{text:r,url:i,metadata:Ro(o,"core/button",(({content:e})=>({text:e})))})}))),isMatch:e=>e.every((e=>{const t=(0,Ao.__unstableCreateElement)(document,e.content),o=t.innerText||"",n=t.querySelectorAll("a");return o.length<=30&&n.length<=1}))}]},Lo=Ho,Fo={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};const Vo=function({attributes:e,className:t}){var o;const{fontSize:n,layout:r,style:a}=e,i=(0,ot.useBlockProps)({className:dt(t,{"has-custom-font-size":n||a?.typography?.fontSize})}),{hasButtonVariations:s}=(0,gt.useSelect)((e=>({hasButtonVariations:e(Qe.store).getBlockVariations("core/button","inserter").length>0})),[]),l=(0,ot.useInnerBlocksProps)(i,{defaultBlock:Fo,directInsert:!s,template:[["core/button"]],templateInsertUpdatesSelection:!0,orientation:null!==(o=r?.orientation)&&void 0!==o?o:"horizontal"});return(0,Ye.jsx)("div",{...l})};const Eo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",allowedBlocks:["core/button"],description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{blockGap:["horizontal","vertical"],padding:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:Oo}=Eo,$o={icon:Po,example:{attributes:{layout:{type:"flex",justifyContent:"center"}},innerBlocks:[{name:"core/button",attributes:{text:(0,tt.__)("Find out more")}},{name:"core/button",attributes:{text:(0,tt.__)("Contact us")}}]},deprecated:Do,transforms:Lo,edit:Vo,save:function({attributes:e,className:t}){const{fontSize:o,style:n}=e,r=ot.useBlockProps.save({className:dt(t,{"has-custom-font-size":o||n?.typography?.fontSize})}),a=ot.useInnerBlocksProps.save(r);return(0,Ye.jsx)("div",{...a})}},Go=()=>Xe({name:Oo,metadata:Eo,settings:$o}),Uo=(0,Ye.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ye.jsx)(Ke.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"})}),qo=Mt((e=>{if(!e)return{};const t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}}));const Wo={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,Qe.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,Qe.createBlock)("core/archives")}]},Zo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,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,color:{link:!0,__experimentalSkipSerialization:["text","background"],__experimentalDefaultControls:{background:!0,text:!0},__experimentalSelector:"table, th"},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-calendar"},{name:Qo}=Zo,Ko={icon:Uo,example:{},edit:function({attributes:e}){const t=(0,ot.useBlockProps)(),{date:o,hasPosts:n,hasPostsResolved:r}=(0,gt.useSelect)((e=>{const{getEntityRecords:t,hasFinishedResolution:o}=e(mt.store),n={status:"publish",per_page:1},r=t("postType","post",n),a=o("getEntityRecords",["postType","post",n]);let i;const s=e("core/editor");if(s){"post"===s.getEditedPostAttribute("type")&&(i=s.getEditedPostAttribute("date"))}return{date:i,hasPostsResolved:a,hasPosts:a&&1===r?.length}}),[]);return n?(0,Ye.jsx)("div",{...t,children:(0,Ye.jsx)(et.Disabled,{children:(0,Ye.jsx)(rt(),{block:"core/calendar",attributes:{...e,...qo(o)}})})}):(0,Ye.jsx)("div",{...t,children:(0,Ye.jsx)(et.Placeholder,{icon:Uo,label:(0,tt.__)("Calendar"),children:r?(0,tt.__)("No published posts found."):(0,Ye.jsx)(et.Spinner,{})})})},transforms:Wo},Yo=()=>Xe({name:Qo,metadata:Zo,settings:Ko}),Jo=(0,Ye.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ye.jsx)(Ke.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"})}),Xo=window.wp.htmlEntities,en=(0,Ye.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ye.jsx)(Ke.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"})});const tn=[{name:"terms",title:(0,tt.__)("Terms List"),icon:Jo,attributes:{taxonomy:"post_tag"},isActive:e=>"category"!==e.taxonomy},{name:"categories",title:(0,tt.__)("Categories List"),description:(0,tt.__)("Display a list of all categories."),icon:Jo,attributes:{taxonomy:"category"},isActive:["taxonomy"],isDefault:!0}],on=tn,nn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/categories",title:"Terms List",category:"widgets",description:"Display a list of all terms of a given taxonomy.",keywords:["categories"],textdomain:"default",attributes:{taxonomy:{type:"string",default:"category"},displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},showOnlyTopLevel:{type:"boolean",default:!1},showEmpty:{type:"boolean",default:!1},label:{type:"string",role:"content"},showLabel:{type:"boolean",default:!0}},usesContext:["enhancedPagination"],supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:rn}=nn,an={icon:Jo,example:{},edit:function e({attributes:{displayAsDropdown:t,showHierarchy:o,showPostCounts:n,showOnlyTopLevel:r,showEmpty:a,label:i,showLabel:s,taxonomy:l},setAttributes:c,className:u}){const d=(0,Ut.useInstanceId)(e,"blocks-category-select"),{records:p,isResolvingTaxonomies:m}=(0,mt.useEntityRecords)("root","taxonomy"),g=p?.filter((e=>e.visibility.public)),h=g?.find((e=>e.slug===l)),x=!m&&h?.hierarchical,_={per_page:-1,hide_empty:!a,context:"view"};x&&r&&(_.parent=0);const{records:b,isResolving:y}=(0,mt.useEntityRecords)("taxonomy",l,_),f=e=>b?.length?null===e?b:b.filter((({parent:t})=>t===e)):[],v=e=>t=>c({[e]:t}),k=e=>e?(0,Xo.decodeEntities)(e).trim():(0,tt.__)("(Untitled)"),w=e=>{const t=f(e.id),{id:r,link:a,count:i,name:s}=e;return(0,Ye.jsxs)("li",{className:`cat-item cat-item-${r}`,children:[(0,Ye.jsx)("a",{href:a,target:"_blank",rel:"noreferrer noopener",children:k(s)}),n&&` (${i})`,x&&o&&!!t.length&&(0,Ye.jsx)("ul",{className:"children",children:t.map((e=>w(e)))})]},r)},C=(e,t)=>{const{id:r,count:a,name:i}=e,s=f(r);return[(0,Ye.jsxs)("option",{className:`level-${t}`,children:[Array.from({length:3*t}).map((()=>" ")),k(i),n&&` (${a})`]},r),x&&o&&!!s.length&&s.map((e=>C(e,t+1)))]},j=!b?.length||t||y?"div":"ul",S=dt(u,{"wp-block-categories-list":!!b?.length&&!t&&!y,"wp-block-categories-dropdown":!!b?.length&&t&&!y}),B=(0,ot.useBlockProps)({className:S});return(0,Ye.jsxs)(j,{...B,children:[(0,Ye.jsx)(ot.InspectorControls,{children:(0,Ye.jsxs)(et.PanelBody,{title:(0,tt.__)("Settings"),children:[Array.isArray(g)&&(0,Ye.jsx)(et.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,tt.__)("Taxonomy"),options:g.map((e=>({label:e.name,value:e.slug}))),value:l,onChange:e=>c({taxonomy:e})}),(0,Ye.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Display as dropdown"),checked:t,onChange:v("displayAsDropdown")}),t&&(0,Ye.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,className:"wp-block-categories__indentation",label:(0,tt.__)("Show label"),checked:s,onChange:v("showLabel")}),(0,Ye.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show post counts"),checked:n,onChange:v("showPostCounts")}),x&&(0,Ye.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show only top level terms"),checked:r,onChange:v("showOnlyTopLevel")}),(0,Ye.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show empty terms"),checked:a,onChange:v("showEmpty")}),x&&!r&&(0,Ye.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Show hierarchy"),checked:o,onChange:v("showHierarchy")})]})}),y&&(0,Ye.jsx)(et.Placeholder,{icon:en,label:(0,tt.__)("Terms"),children:(0,Ye.jsx)(et.Spinner,{})}),!y&&0===b?.length&&(0,Ye.jsx)("p",{children:h.labels.no_terms}),!y&&b?.length>0&&(t?(()=>{const e=f(x&&o?0:null);return(0,Ye.jsxs)(Ye.Fragment,{children:[s?(0,Ye.jsx)(ot.RichText,{className:"wp-block-categories__label","aria-label":(0,tt.__)("Label text"),placeholder:h.name,withoutInteractiveFormatting:!0,value:i,onChange:e=>c({label:e})}):(0,Ye.jsx)(et.VisuallyHidden,{as:"label",htmlFor:d,children:i||h.name}),(0,Ye.jsxs)("select",{id:d,children:[(0,Ye.jsx)("option",{children:(0,tt.sprintf)((0,tt.__)("Select %s"),h.labels.singular_name)}),e.map((e=>C(e,0)))]})]})})():f(x&&o?0:null).map((e=>w(e))))]})},variations:on},sn=()=>Xe({name:rn,metadata:nn,settings:an}),ln=(0,Ye.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ye.jsx)(Ke.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"})}),cn=({clientId:e})=>{const{replaceBlocks:t}=(0,gt.useDispatch)(ot.store),o=(0,gt.useSelect)((t=>t(ot.store).getBlock(e)),[e]);return(0,Ye.jsx)(et.ToolbarButton,{onClick:()=>t(o.clientId,(0,Qe.rawHandler)({HTML:(0,Qe.serialize)(o)})),children:(0,tt.__)("Convert to blocks")})},un=(0,Ye.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ye.jsx)(Ke.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})});function dn({onClick:e,isModalFullScreen:t}){return(0,Ut.useViewportMatch)("small","<")?null:(0,Ye.jsx)(et.Button,{size:"small",onClick:e,icon:un,isPressed:t,label:t?(0,tt.__)("Exit fullscreen"):(0,tt.__)("Enter fullscreen")})}function pn(e){const t=(0,gt.useSelect)((e=>e(ot.store).getSettings().styles));return(0,_t.useEffect)((()=>{const{baseURL:o,suffix:n,settings:r}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:o,suffix:n}),window.wp.oldEditor.initialize(e.id,{tinymce:{...r,setup(e){e.on("init",(()=>{const o=e.getDoc();t.forEach((({css:e})=>{const t=o.createElement("style");t.innerHTML=e,o.head.appendChild(t)}))}))}}}),()=>{window.wp.oldEditor.remove(e.id)}}),[]),(0,Ye.jsx)("textarea",{...e})}function mn(e){const{clientId:t,attributes:{content:o},setAttributes:n,onReplace:r}=e,[a,i]=(0,_t.useState)(!1),[s,l]=(0,_t.useState)(!1),c=`editor-${t}`,u=()=>o?i(!1):r([]);return(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)(ot.BlockControls,{children:(0,Ye.jsx)(et.ToolbarGroup,{children:(0,Ye.jsx)(et.ToolbarButton,{onClick:()=>i(!0),children:(0,tt.__)("Edit")})})}),o&&(0,Ye.jsx)(_t.RawHTML,{children:o}),(a||!o)&&(0,Ye.jsxs)(et.Modal,{title:(0,tt.__)("Classic Editor"),onRequestClose:u,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:s,className:"block-editor-freeform-modal__content",headerActions:(0,Ye.jsx)(dn,{onClick:()=>l(!s),isModalFullScreen:s}),children:[(0,Ye.jsx)(pn,{id:c,defaultValue:o}),(0,Ye.jsxs)(et.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Ye.jsx)(et.FlexItem,{children:(0,Ye.jsx)(et.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:u,children:(0,tt.__)("Cancel")})}),(0,Ye.jsx)(et.FlexItem,{children:(0,Ye.jsx)(et.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{n({content:window.wp.oldEditor.getContent(c)}),i(!1)},children:(0,tt.__)("Save")})})]})]})]})}const{wp:gn}=window;function hn({clientId:e,attributes:{content:t},setAttributes:o,onReplace:n}){const{getMultiSelectedBlockClientIds:r}=(0,gt.useSelect)(ot.store),a=(0,_t.useRef)(!1);return(0,_t.useEffect)((()=>{if(!a.current)return;const o=window.tinymce.get(`editor-${e}`);if(!o)return;o.getContent()!==t&&o.setContent(t||"")}),[e,t]),(0,_t.useEffect)((()=>{const{baseURL:i,suffix:s}=window.wpEditorL10n.tinymce;function l(e){let a;t&&e.on("loadContent",(()=>e.setContent(t))),e.on("blur",(()=>{a=e.selection.getBookmark(2,!0);const t=document.querySelector(".interface-interface-skeleton__content"),n=t.scrollTop;return r()?.length||o({content:e.getContent()}),e.once("focus",(()=>{a&&(e.selection.moveToBookmark(a),t.scrollTop!==n&&(t.scrollTop=n))})),!1})),e.on("mousedown touchstart",(()=>{a=null}));const i=(0,Ut.debounce)((()=>{const t=e.getContent();t!==e._lastChange&&(e._lastChange=t,o({content:t}))}),250);e.on("Paste Change input Undo Redo",i),e.on("remove",i.cancel),e.on("keydown",(t=>{vo.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==vo.BACKSPACE&&t.keyCode!==vo.DELETE||!function(e){const t=e.getBody();return!(t.childNodes.length>1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(n([]),t.preventDefault(),t.stopImmediatePropagation());const{altKey:o}=t;o&&t.keyCode===vo.F10&&t.stopPropagation()})),e.on("init",(()=>{const t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())}))}function c(){const{settings:t}=window.wpEditorL10n.tinymce;gn.oldEditor.initialize(`editor-${e}`,{tinymce:{...t,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${e}`,setup:l}})}function u(){"complete"===document.readyState&&c()}return a.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:i,suffix:s}),"complete"===document.readyState?c():document.addEventListener("readystatechange",u),()=>{document.removeEventListener("readystatechange",u),gn.oldEditor.remove(`editor-${e}`),a.current=!1}}),[]),(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)("div",{id:`toolbar-${e}`,className:"block-library-classic__toolbar",onClick:function(){const t=window.tinymce.get(`editor-${e}`);t&&t.focus()},"data-placeholder":(0,tt.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},"toolbar"),(0,Ye.jsx)("div",{id:`editor-${e}`,className:"wp-block-freeform block-library-rich-text__tinymce"},"editor")]})}const xn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-freeform-editor"},{name:_n}=xn,bn={icon:ln,edit:function(e){const{clientId:t}=e,o=(0,gt.useSelect)((e=>e(ot.store).canRemoveBlock(t)),[t]),[n,r]=(0,_t.useState)(!1),a=(0,Ut.useRefEffect)((e=>{r(e.ownerDocument!==document)}),[]);return(0,Ye.jsxs)(Ye.Fragment,{children:[o&&(0,Ye.jsx)(ot.BlockControls,{children:(0,Ye.jsx)(et.ToolbarGroup,{children:(0,Ye.jsx)(cn,{clientId:t})})}),(0,Ye.jsx)("div",{...(0,ot.useBlockProps)({ref:a}),children:n?(0,Ye.jsx)(mn,{...e}):(0,Ye.jsx)(hn,{...e})})]})},save:function({attributes:e}){const{content:t}=e;return(0,Ye.jsx)(_t.RawHTML,{children:t})}},yn=()=>Xe({name:_n,metadata:xn,settings:bn}),fn=(0,Ye.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ye.jsx)(Ke.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})});function vn(e){return e.replace(/\[/g,"[")}function kn(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}const wn={from:[{type:"enter",regExp:/^```$/,transform:()=>(0,Qe.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:({content:e,metadata:t})=>(0,Qe.createBlock)("core/code",{content:e,metadata:Ro(t,"core/code")})},{type:"block",blocks:["core/html"],transform:({content:e,metadata:t})=>(0,Qe.createBlock)("core/code",{content:(0,Ao.toHTMLString)({value:(0,Ao.create)({text:e})}),metadata:Ro(t,"core/code")})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:({content:e,metadata:t})=>(0,Qe.createBlock)("core/paragraph",{content:e,metadata:Ro(t,"core/paragraph")})}]},Cn=wn,jn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"code",__unstablePreserveWhiteSpace:!0}},supports:{align:["wide"],anchor:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{width:!0,color:!0}},color:{text:!0,background:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-code"},{name:Sn}=jn,Bn={icon:fn,example:{attributes:{content:(0,tt.__)("// 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 );")}},merge:(e,t)=>({content:e.content+"\n\n"+t.content}),transforms:Cn,edit:function({attributes:e,setAttributes:t,onRemove:o,insertBlocksAfter:n,mergeBlocks:r}){const a=(0,ot.useBlockProps)();return(0,Ye.jsx)("pre",{...a,children:(0,Ye.jsx)(ot.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:e=>t({content:e}),onRemove:o,onMerge:r,placeholder:(0,tt.__)("Write code…"),"aria-label":(0,tt.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>n((0,Qe.createBlock)((0,Qe.getDefaultBlockName)()))})})},save:function({attributes:e}){return(0,Ye.jsx)("pre",{...ot.useBlockProps.save(),children:(0,Ye.jsx)(ot.RichText.Content,{tagName:"code",value:(t="string"==typeof e.content?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}),(0,Ut.pipe)(vn,kn)(t||""))})});var t}},Tn=()=>Xe({name:Sn,metadata:jn,settings:Bn}),Nn=(0,Ye.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ye.jsx)(Ke.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"})}),In=[{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:o}=e,n=dt({[`is-vertically-aligned-${t}`]:t}),r={flexBasis:o+"%"};return(0,Ye.jsx)("div",{className:n,style:r,children:(0,Ye.jsx)(ot.InnerBlocks.Content,{})})}}],Pn=In;function Mn({width:e,setAttributes:t}){const[o]=(0,ot.useSettings)("spacing.units"),n=(0,et.__experimentalUseCustomUnits)({availableUnits:o||["%","px","em","rem","vw"]});return(0,Ye.jsx)(et.PanelBody,{title:(0,tt.__)("Settings"),children:(0,Ye.jsx)(et.__experimentalUnitControl,{label:(0,tt.__)("Width"),__unstableInputWidth:"calc(50% - 8px)",__next40pxDefaultSize:!0,value:e||"",onChange:e=>{e=0>parseFloat(e)?"0":e,t({width:e})},units:n})})}const zn=function({attributes:{verticalAlignment:e,width:t,templateLock:o,allowedBlocks:n},setAttributes:r,clientId:a}){const i=dt("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),{columnsIds:s,hasChildBlocks:l,rootClientId:c}=(0,gt.useSelect)((e=>{const{getBlockOrder:t,getBlockRootClientId:o}=e(ot.store),n=o(a);return{hasChildBlocks:t(a).length>0,rootClientId:n,columnsIds:t(n)}}),[a]),{updateBlockAttributes:u}=(0,gt.useDispatch)(ot.store),d=Number.isFinite(t)?t+"%":t,p=(0,ot.useBlockProps)({className:i,style:d?{flexBasis:d}:void 0}),m=s.length,g=s.indexOf(a)+1,h=(0,tt.sprintf)((0,tt.__)("%1$s (%2$d of %3$d)"),p["aria-label"],g,m),x=(0,ot.useInnerBlocksProps)({...p,"aria-label":h},{templateLock:o,allowedBlocks:n,renderAppender:l?void 0:ot.InnerBlocks.ButtonBlockAppender});return(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)(ot.BlockControls,{children:(0,Ye.jsx)(ot.BlockVerticalAlignmentToolbar,{onChange:e=>{r({verticalAlignment:e}),u(c,{verticalAlignment:null})},value:e,controls:["top","center","bottom","stretch"]})}),(0,Ye.jsx)(ot.InspectorControls,{children:(0,Ye.jsx)(Mn,{width:t,setAttributes:r})}),(0,Ye.jsx)("div",{...x})]})};const Dn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/column",title:"Column",category:"design",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{__experimentalOnEnter:!0,anchor:!0,reusable:!1,html:!1,color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{blockGap:!0,padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0,interactivity:{clientNavigation:!0}}},{name:An}=Dn,Rn={icon:Nn,edit:zn,save:function({attributes:e}){const{verticalAlignment:t,width:o}=e,n=dt({[`is-vertically-aligned-${t}`]:t});let r;if(o&&/\d/.test(o)){let e=Number.isFinite(o)?o+"%":o;if(!Number.isFinite(o)&&o?.endsWith("%")){const t=1e12;e=Math.round(Number.parseFloat(o)*t)/t+"%"}r={flexBasis:e}}const a=ot.useBlockProps.save({className:n,style:r}),i=ot.useInnerBlocksProps.save(a);return(0,Ye.jsx)("div",{...i})},deprecated:Pn},Hn=()=>Xe({name:An,metadata:Dn,settings:Rn}),Ln=(0,Ye.jsx)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ye.jsx)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"})});function Fn(e){let t,{doc:o}=Fn;o||(o=document.implementation.createHTMLDocument(""),Fn.doc=o),o.body.innerHTML=e;for(const e of o.body.firstChild.classList)if(t=e.match(/^layout-column-(\d+)$/))return Number(t[1])-1}const Vn=[{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:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:o,customBackgroundColor:n,...r}=e;return{...r,style:t,isStackedOnMobile:!0}},save({attributes:e}){const{verticalAlignment:t,backgroundColor:o,customBackgroundColor:n,textColor:r,customTextColor:a}=e,i=(0,ot.getColorClassName)("background-color",o),s=(0,ot.getColorClassName)("color",r),l=dt({"has-background":o||n,"has-text-color":r||a,[i]:i,[s]:s,[`are-vertically-aligned-${t}`]:t}),c={backgroundColor:i?void 0:n,color:s?void 0:a};return(0,Ye.jsx)("div",{className:l||void 0,style:c,children:(0,Ye.jsx)(ot.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},isEligible:(e,t)=>!!t.some((e=>/layout-column-\d+/.test(e.originalContent)))&&t.some((e=>void 0!==Fn(e.originalContent))),migrate(e,t){const o=t.reduce(((e,t)=>{const{originalContent:o}=t;let n=Fn(o);return void 0===n&&(n=0),e[n]||(e[n]=[]),e[n].push(t),e}),[]).map((e=>(0,Qe.createBlock)("core/column",{},e))),{columns:n,...r}=e;return[{...r,isStackedOnMobile:!0},o]},save({attributes:e}){const{columns:t}=e;return(0,Ye.jsx)("div",{className:`has-${t}-columns`,children:(0,Ye.jsx)(ot.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){const{columns:o,...n}=e;return[e={...n,isStackedOnMobile:!0},t]},save({attributes:e}){const{verticalAlignment:t,columns:o}=e,n=dt(`has-${o}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,Ye.jsx)("div",{className:n,children:(0,Ye.jsx)(ot.InnerBlocks.Content,{})})}}],En=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function On(e,t){const{width:o=100/t}=e.attributes;return En(o)}function $n(e,t,o=e.length){const n=function(e,t=e.length){return e.reduce(((e,o)=>e+On(o,t)),0)}(e,o);return Object.fromEntries(Object.entries(function(e,t=e.length){return e.reduce(((e,o)=>{const n=On(o,t);return Object.assign(e,{[o.clientId]:n})}),{})}(e,o)).map((([e,o])=>[e,En(t*o/n)])))}function Gn(e,t){return e.map((e=>({...e,attributes:{...e.attributes,width:`${t[e.clientId]}%`}})))}const Un={name:"core/column"};function qn({clientId:e,setAttributes:t,isStackedOnMobile:o}){const{count:n,canInsertColumnBlock:r,minCount:a}=(0,gt.useSelect)((t=>{const{canInsertBlockType:o,canRemoveBlock:n,getBlocks:r,getBlockCount:a}=t(ot.store),i=r(e).reduce(((e,t,o)=>(n(t.clientId)||e.push(o),e)),[]);return{count:a(e),canInsertColumnBlock:o("core/column",e),minCount:Math.max(...i)+1}}),[e]),{getBlocks:i}=(0,gt.useSelect)(ot.store),{replaceInnerBlocks:s}=(0,gt.useDispatch)(ot.store);function l(t,o){let n=i(e);const r=n.every((e=>{const t=e.attributes.width;return Number.isFinite(t?.endsWith?.("%")?parseFloat(t):t)}));const a=o>t;if(a&&r){const e=En(100/o),r=o-t;n=[...Gn(n,$n(n,100-e*r)),...Array.from({length:r}).map((()=>(0,Qe.createBlock)("core/column",{width:`${e}%`})))]}else if(a)n=[...n,...Array.from({length:o-t}).map((()=>(0,Qe.createBlock)("core/column")))];else if(ol(n,Math.max(a,e)),min:Math.max(1,a),max:Math.max(6,n)}),n>6&&(0,Ye.jsx)(et.Notice,{status:"warning",isDismissible:!1,children:(0,tt.__)("This column count exceeds the recommended amount and may cause visual breakage.")})]}),(0,Ye.jsx)(et.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,tt.__)("Stack on mobile"),checked:o,onChange:()=>t({isStackedOnMobile:!o})})]})}function Wn({attributes:e,setAttributes:t,clientId:o}){const{isStackedOnMobile:n,verticalAlignment:r,templateLock:a}=e,i=(0,gt.useRegistry)(),{getBlockOrder:s}=(0,gt.useSelect)(ot.store),{updateBlockAttributes:l}=(0,gt.useDispatch)(ot.store),c=dt({[`are-vertically-aligned-${r}`]:r,"is-not-stacked-on-mobile":!n}),u=(0,ot.useBlockProps)({className:c}),d=(0,ot.useInnerBlocksProps)(u,{defaultBlock:Un,directInsert:!0,orientation:"horizontal",renderAppender:!1,templateLock:a});return(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)(ot.BlockControls,{children:(0,Ye.jsx)(ot.BlockVerticalAlignmentToolbar,{onChange:function(e){const n=s(o);i.batch((()=>{t({verticalAlignment:e}),l(n,{verticalAlignment:e})}))},value:r})}),(0,Ye.jsx)(ot.InspectorControls,{children:(0,Ye.jsx)(qn,{clientId:o,setAttributes:t,isStackedOnMobile:n})}),(0,Ye.jsx)("div",{...d})]})}function Zn({clientId:e,name:t,setAttributes:o}){const{blockType:n,defaultVariation:r,variations:a}=(0,gt.useSelect)((e=>{const{getBlockVariations:o,getBlockType:n,getDefaultBlockVariation:r}=e(Qe.store);return{blockType:n(t),defaultVariation:r(t,"block"),variations:o(t,"block")}}),[t]),{replaceInnerBlocks:i}=(0,gt.useDispatch)(ot.store),s=(0,ot.useBlockProps)();return(0,Ye.jsx)("div",{...s,children:(0,Ye.jsx)(ot.__experimentalBlockVariationPicker,{icon:n?.icon?.src,label:n?.title,variations:a,instructions:(0,tt.__)("Divide into columns. Select a layout:"),onSelect:(t=r)=>{t.attributes&&o(t.attributes),t.innerBlocks&&i(e,(0,Qe.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!0)},allowSkip:!0})})}const Qn=e=>{const{clientId:t}=e,o=(0,gt.useSelect)((e=>e(ot.store).getBlocks(t).length>0),[t])?Wn:Zn;return(0,Ye.jsx)(o,{...e})};const Kn=[{name:"one-column-full",title:(0,tt.__)("100"),description:(0,tt.__)("One column"),icon:(0,Ye.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ye.jsx)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,tt.__)("50 / 50"),description:(0,tt.__)("Two columns; equal split"),icon:(0,Ye.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ye.jsx)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,tt.__)("33 / 66"),description:(0,tt.__)("Two columns; one-third, two-thirds split"),icon:(0,Ye.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ye.jsx)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm17 0a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H19a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,tt.__)("66 / 33"),description:(0,tt.__)("Two columns; two-thirds, one-third split"),icon:(0,Ye.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ye.jsx)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm33 0a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:(0,tt.__)("33 / 33 / 33"),description:(0,tt.__)("Three columns; equal split"),icon:(0,Ye.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ye.jsx)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h10.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm16.5 0c0-1.105.864-2 1.969-2H29.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H18.47c-1.105 0-1.969-.895-1.969-2V10Zm17 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35.469c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:(0,tt.__)("25 / 50 / 25"),description:(0,tt.__)("Three columns; wide center column"),icon:(0,Ye.jsx)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ye.jsx)(et.Path,{d:"M0 10a2 2 0 0 1 2-2h7.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm13.5 0c0-1.105.864-2 1.969-2H32.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H15.47c-1.105 0-1.969-.895-1.969-2V10Zm23 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2h-7.531c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}],Yn={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),o=e.map((({name:e,attributes:o,innerBlocks:n})=>["core/column",{width:`${t}%`},[[e,{...o},n]]]));return(0,Qe.createBlock)("core/columns",{},(0,Qe.createBlocksFromInnerBlocksTemplate)(o))},isMatch:({length:e},t)=>(1!==t.length||"core/columns"!==t[0].name)&&(e&&e<=6)},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:o,backgroundColor:n,textColor:r,style:a,mediaAlt:i,mediaId:s,mediaPosition:l,mediaSizeSlug:c,mediaType:u,mediaUrl:d,mediaWidth:p,verticalAlignment:m}=e;let g;if("image"!==u&&u)g=["core/video",{id:s,src:d}];else{g=["core/image",{...{id:s,alt:i,url:d,sizeSlug:c},...{href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel}}]}const h=[["core/column",{width:`${p}%`},[g]],["core/column",{width:100-p+"%"},t]];return"right"===l&&h.reverse(),(0,Qe.createBlock)("core/columns",{align:o,backgroundColor:n,textColor:r,style:a,verticalAlignment:m},(0,Qe.createBlocksFromInnerBlocksTemplate)(h))}}],ungroup:(e,t)=>t.flatMap((e=>e.innerBlocks))},Jn=Yn,Xn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/columns",title:"Columns",category:"design",allowedBlocks:["core/column"],description:"Display content in multiple columns, with blocks added to each column.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,heading:!0,button:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:{__experimentalDefault:"2em",sides:["horizontal","vertical"]},margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex",flexWrap:"nowrap"}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},shadow:!0},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:er}=Xn,tr={icon:Ln,variations:Kn,example:{viewportWidth:782,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:(0,tt.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,tt.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:(0,tt.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:Vn,edit:Qn,save:function({attributes:e}){const{isStackedOnMobile:t,verticalAlignment:o}=e,n=dt({[`are-vertically-aligned-${o}`]:o,"is-not-stacked-on-mobile":!t}),r=ot.useBlockProps.save({className:n}),a=ot.useInnerBlocksProps.save(r);return(0,Ye.jsx)("div",{...a})},transforms:Jn},or=()=>Xe({name:er,metadata:Xn,settings:tr}),nr=(0,Ye.jsx)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ye.jsx)(Ke.Path,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"})}),rr=[{attributes:{tagName:{type:"string",default:"div"}},apiVersion:3,supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}}},save({attributes:{tagName:e}}){const t=ot.useBlockProps.save(),{className:o}=t,n=o?.split(" ")||[],r=n?.filter((e=>"wp-block-comments"!==e)),a={...t,className:r.join(" ")};return(0,Ye.jsx)(e,{...a,children:(0,Ye.jsx)(ot.InnerBlocks.Content,{})})}}];function ar({attributes:{tagName:e},setAttributes:t}){const o={section:(0,tt.__)("The
element should represent a standalone portion of the document that can't be better represented by another element."),aside:(0,tt.__)("The