var wp;(wp||={}).blocks=(()=>{var zu=Object.create;var ir=Object.defineProperty;var qu=Object.getOwnPropertyDescriptor;var Iu=Object.getOwnPropertyNames;var Vu=Object.getPrototypeOf,xu=Object.prototype.hasOwnProperty;var z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ie=(e,t)=>{for(var r in t)ir(e,r,{get:t[r],enumerable:!0})},fn=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Iu(t))!xu.call(e,o)&&o!==r&&ir(e,o,{get:()=>t[o],enumerable:!(a=qu(t,o))||a.enumerable});return e};var B=(e,t,r)=>(r=e!=null?zu(Vu(e)):{},fn(t||!e||!e.__esModule?ir(r,"default",{value:e,enumerable:!0}):r,e)),Hu=e=>fn(ir({},"__esModule",{value:!0}),e);var Be=z((Dd,pn)=>{pn.exports=window.wp.data});var sr=z((Gd,yn)=>{yn.exports=window.wp.i18n});var De=z((Xd,Rn)=>{Rn.exports=window.wp.element});var Z=z((Zd,Dn)=>{Dn.exports=window.wp.dom});var xe=z((Qd,Mn)=>{Mn.exports=window.wp.richText});var ee=z((Jd,jn)=>{jn.exports=window.wp.deprecated});var lt=z((rc,In)=>{In.exports=window.wp.warning});var xn=z((nc,Vn)=>{Vn.exports=window.wp.privateApis});var Ea=z((_c,yr)=>{var wa={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u1EA4:"A",\u1EAE:"A",\u1EB2:"A",\u1EB4:"A",\u1EB6:"A",\u00C6:"AE",\u1EA6:"A",\u1EB0:"A",\u0202:"A",\u1EA2:"A",\u1EA0:"A",\u1EA8:"A",\u1EAA:"A",\u1EAC:"A",\u00C7:"C",\u1E08:"C",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u1EBE:"E",\u1E16:"E",\u1EC0:"E",\u1E14:"E",\u1E1C:"E",\u0206:"E",\u1EBA:"E",\u1EBC:"E",\u1EB8:"E",\u1EC2:"E",\u1EC4:"E",\u1EC6:"E",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u1E2E:"I",\u020A:"I",\u1EC8:"I",\u1ECA:"I",\u00D0:"D",\u00D1:"N",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u1ED0:"O",\u1E4C:"O",\u1E52:"O",\u020E:"O",\u1ECE:"O",\u1ECC:"O",\u1ED4:"O",\u1ED6:"O",\u1ED8:"O",\u1EDC:"O",\u1EDE:"O",\u1EE0:"O",\u1EDA:"O",\u1EE2:"O",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u1EE6:"U",\u1EE4:"U",\u1EEC:"U",\u1EEE:"U",\u1EF0:"U",\u00DD:"Y",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u1EA5:"a",\u1EAF:"a",\u1EB3:"a",\u1EB5:"a",\u1EB7:"a",\u00E6:"ae",\u1EA7:"a",\u1EB1:"a",\u0203:"a",\u1EA3:"a",\u1EA1:"a",\u1EA9:"a",\u1EAB:"a",\u1EAD:"a",\u00E7:"c",\u1E09:"c",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u1EBF:"e",\u1E17:"e",\u1EC1:"e",\u1E15:"e",\u1E1D:"e",\u0207:"e",\u1EBB:"e",\u1EBD:"e",\u1EB9:"e",\u1EC3:"e",\u1EC5:"e",\u1EC7:"e",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u1E2F:"i",\u020B:"i",\u1EC9:"i",\u1ECB:"i",\u00F0:"d",\u00F1:"n",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u1ED1:"o",\u1E4D:"o",\u1E53:"o",\u020F:"o",\u1ECF:"o",\u1ECD:"o",\u1ED5:"o",\u1ED7:"o",\u1ED9:"o",\u1EDD:"o",\u1EDF:"o",\u1EE1:"o",\u1EDB:"o",\u1EE3:"o",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u1EE7:"u",\u1EE5:"u",\u1EED:"u",\u1EEF:"u",\u1EF1:"u",\u00FD:"y",\u00FF:"y",\u0100:"A",\u0101:"a",\u0102:"A",\u0103:"a",\u0104:"A",\u0105:"a",\u0106:"C",\u0107:"c",\u0108:"C",\u0109:"c",\u010A:"C",\u010B:"c",\u010C:"C",\u010D:"c",C\u0306:"C",c\u0306:"c",\u010E:"D",\u010F:"d",\u0110:"D",\u0111:"d",\u0112:"E",\u0113:"e",\u0114:"E",\u0115:"e",\u0116:"E",\u0117:"e",\u0118:"E",\u0119:"e",\u011A:"E",\u011B:"e",\u011C:"G",\u01F4:"G",\u011D:"g",\u01F5:"g",\u011E:"G",\u011F:"g",\u0120:"G",\u0121:"g",\u0122:"G",\u0123:"g",\u0124:"H",\u0125:"h",\u0126:"H",\u0127:"h",\u1E2A:"H",\u1E2B:"h",\u0128:"I",\u0129:"i",\u012A:"I",\u012B:"i",\u012C:"I",\u012D:"i",\u012E:"I",\u012F:"i",\u0130:"I",\u0131:"i",\u0132:"IJ",\u0133:"ij",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u1E30:"K",\u1E31:"k",K\u0306:"K",k\u0306:"k",\u0139:"L",\u013A:"l",\u013B:"L",\u013C:"l",\u013D:"L",\u013E:"l",\u013F:"L",\u0140:"l",\u0141:"l",\u0142:"l",\u1E3E:"M",\u1E3F:"m",M\u0306:"M",m\u0306:"m",\u0143:"N",\u0144:"n",\u0145:"N",\u0146:"n",\u0147:"N",\u0148:"n",\u0149:"n",N\u0306:"N",n\u0306:"n",\u014C:"O",\u014D:"o",\u014E:"O",\u014F:"o",\u0150:"O",\u0151:"o",\u0152:"OE",\u0153:"oe",P\u0306:"P",p\u0306:"p",\u0154:"R",\u0155:"r",\u0156:"R",\u0157:"r",\u0158:"R",\u0159:"r",R\u0306:"R",r\u0306:"r",\u0212:"R",\u0213:"r",\u015A:"S",\u015B:"s",\u015C:"S",\u015D:"s",\u015E:"S",\u0218:"S",\u0219:"s",\u015F:"s",\u0160:"S",\u0161:"s",\u0162:"T",\u0163:"t",\u021B:"t",\u021A:"T",\u0164:"T",\u0165:"t",\u0166:"T",\u0167:"t",T\u0306:"T",t\u0306:"t",\u0168:"U",\u0169:"u",\u016A:"U",\u016B:"u",\u016C:"U",\u016D:"u",\u016E:"U",\u016F:"u",\u0170:"U",\u0171:"u",\u0172:"U",\u0173:"u",\u0216:"U",\u0217:"u",V\u0306:"V",v\u0306:"v",\u0174:"W",\u0175:"w",\u1E82:"W",\u1E83:"w",X\u0306:"X",x\u0306:"x",\u0176:"Y",\u0177:"y",\u0178:"Y",Y\u0306:"Y",y\u0306:"y",\u0179:"Z",\u017A:"z",\u017B:"Z",\u017C:"z",\u017D:"Z",\u017E:"z",\u017F:"s",\u0192:"f",\u01A0:"O",\u01A1:"o",\u01AF:"U",\u01B0:"u",\u01CD:"A",\u01CE:"a",\u01CF:"I",\u01D0:"i",\u01D1:"O",\u01D2:"o",\u01D3:"U",\u01D4:"u",\u01D5:"U",\u01D6:"u",\u01D7:"U",\u01D8:"u",\u01D9:"U",\u01DA:"u",\u01DB:"U",\u01DC:"u",\u1EE8:"U",\u1EE9:"u",\u1E78:"U",\u1E79:"u",\u01FA:"A",\u01FB:"a",\u01FC:"AE",\u01FD:"ae",\u01FE:"O",\u01FF:"o",\u00DE:"TH",\u00FE:"th",\u1E54:"P",\u1E55:"p",\u1E64:"S",\u1E65:"s",X\u0301:"X",x\u0301:"x",\u0403:"\u0413",\u0453:"\u0433",\u040C:"\u041A",\u045C:"\u043A",A\u030B:"A",a\u030B:"a",E\u030B:"E",e\u030B:"e",I\u030B:"I",i\u030B:"i",\u01F8:"N",\u01F9:"n",\u1ED2:"O",\u1ED3:"o",\u1E50:"O",\u1E51:"o",\u1EEA:"U",\u1EEB:"u",\u1E80:"W",\u1E81:"w",\u1EF2:"Y",\u1EF3:"y",\u0200:"A",\u0201:"a",\u0204:"E",\u0205:"e",\u0208:"I",\u0209:"i",\u020C:"O",\u020D:"o",\u0210:"R",\u0211:"r",\u0214:"U",\u0215:"u",B\u030C:"B",b\u030C:"b",\u010C\u0323:"C",\u010D\u0323:"c",\u00CA\u030C:"E",\u00EA\u030C:"e",F\u030C:"F",f\u030C:"f",\u01E6:"G",\u01E7:"g",\u021E:"H",\u021F:"h",J\u030C:"J",\u01F0:"j",\u01E8:"K",\u01E9:"k",M\u030C:"M",m\u030C:"m",P\u030C:"P",p\u030C:"p",Q\u030C:"Q",q\u030C:"q",\u0158\u0329:"R",\u0159\u0329:"r",\u1E66:"S",\u1E67:"s",V\u030C:"V",v\u030C:"v",W\u030C:"W",w\u030C:"w",X\u030C:"X",x\u030C:"x",Y\u030C:"Y",y\u030C:"y",A\u0327:"A",a\u0327:"a",B\u0327:"B",b\u0327:"b",\u1E10:"D",\u1E11:"d",\u0228:"E",\u0229:"e",\u0190\u0327:"E",\u025B\u0327:"e",\u1E28:"H",\u1E29:"h",I\u0327:"I",i\u0327:"i",\u0197\u0327:"I",\u0268\u0327:"i",M\u0327:"M",m\u0327:"m",O\u0327:"O",o\u0327:"o",Q\u0327:"Q",q\u0327:"q",U\u0327:"U",u\u0327:"u",X\u0327:"X",x\u0327:"x",Z\u0327:"Z",z\u0327:"z",\u0439:"\u0438",\u0419:"\u0418",\u0451:"\u0435",\u0401:"\u0415"},ka=Object.keys(wa).join("|"),hi=new RegExp(ka,"g"),gi=new RegExp(ka,"");function bi(e){return wa[e]}var va=function(e){return e.replace(hi,bi)},_i=function(e){return!!e.match(gi)};yr.exports=va;yr.exports.has=_i;yr.exports.remove=va});var qa=z(D=>{"use strict";var St=Symbol.for("react.element"),Nt=Symbol.for("react.portal"),kr=Symbol.for("react.fragment"),vr=Symbol.for("react.strict_mode"),Er=Symbol.for("react.profiler"),Tr=Symbol.for("react.provider"),Cr=Symbol.for("react.context"),Ii=Symbol.for("react.server_context"),Br=Symbol.for("react.forward_ref"),Ar=Symbol.for("react.suspense"),Sr=Symbol.for("react.suspense_list"),Nr=Symbol.for("react.memo"),Lr=Symbol.for("react.lazy"),Vi=Symbol.for("react.offscreen"),za;za=Symbol.for("react.module.reference");function te(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case St:switch(e=e.type,e){case kr:case Er:case vr:case Ar:case Sr:return e;default:switch(e=e&&e.$$typeof,e){case Ii:case Cr:case Br:case Lr:case Nr:case Tr:return e;default:return t}}case Nt:return t}}}D.ContextConsumer=Cr;D.ContextProvider=Tr;D.Element=St;D.ForwardRef=Br;D.Fragment=kr;D.Lazy=Lr;D.Memo=Nr;D.Portal=Nt;D.Profiler=Er;D.StrictMode=vr;D.Suspense=Ar;D.SuspenseList=Sr;D.isAsyncMode=function(){return!1};D.isConcurrentMode=function(){return!1};D.isContextConsumer=function(e){return te(e)===Cr};D.isContextProvider=function(e){return te(e)===Tr};D.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===St};D.isForwardRef=function(e){return te(e)===Br};D.isFragment=function(e){return te(e)===kr};D.isLazy=function(e){return te(e)===Lr};D.isMemo=function(e){return te(e)===Nr};D.isPortal=function(e){return te(e)===Nt};D.isProfiler=function(e){return te(e)===Er};D.isStrictMode=function(e){return te(e)===vr};D.isSuspense=function(e){return te(e)===Ar};D.isSuspenseList=function(e){return te(e)===Sr};D.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===kr||e===Er||e===vr||e===Ar||e===Sr||e===Vi||typeof e=="object"&&e!==null&&(e.$$typeof===Lr||e.$$typeof===Nr||e.$$typeof===Tr||e.$$typeof===Cr||e.$$typeof===Br||e.$$typeof===za||e.getModuleId!==void 0)};D.typeOf=te});var Va=z((Ac,Ia)=>{"use strict";Ia.exports=qa()});var We=z((Sc,xa)=>{xa.exports=window.wp.hooks});var eo=z((Jc,Ja)=>{Ja.exports=window.wp.blockSerializationDefaultParser});var Vt=z((el,ro)=>{ro.exports=window.wp.autop});var no=z((rl,to)=>{to.exports=window.wp.isShallowEqual});var oo=z((al,ao)=>{ao.exports=window.ReactJSXRuntime});var yo=z((ll,_o)=>{"use strict";_o.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var a,o,s;if(Array.isArray(t)){if(a=t.length,a!=r.length)return!1;for(o=a;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(o of t.entries())if(!r.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],r.get(o[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(o of t.entries())if(!r.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(a=t.length,a!=r.length)return!1;for(o=a;o--!==0;)if(t[o]!==r[o])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),a=s.length,a!==Object.keys(r).length)return!1;for(o=a;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[o]))return!1;for(o=a;o--!==0;){var c=s[o];if(!e(t[c],r[c]))return!1}return!0}return t!==t&&r!==r}});var ko=z((fl,wo)=>{wo.exports=window.wp.htmlEntities});var Qo=z((kf,Zo)=>{Zo.exports=window.wp.shortcode});var cu=z((qf,du)=>{du.exports=window.wp.blob});var hu=z((mu,Zr)=>{(function(){function e(n){"use strict";var i={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:`Remove only spaces, ' and " from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids`,type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as
(GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:
[^\r]+?<\/pre>)/gm,function(m,f){var g=f;return g=g.replace(/^ /mg,"\xA80"),g=g.replace(/¨0/g,""),g}),r.subParser("hashBlock")(`
`+p+`
`,i,u)}),n=u.converter._dispatch("blockQuotes.after",n,i,u),n}),r.subParser("codeBlocks",function(n,i,u){"use strict";n=u.converter._dispatch("codeBlocks.before",n,i,u),n+="\xA80";var d=/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g;return n=n.replace(d,function(p,m,f){var g=m,T=f,k=`
`;return g=r.subParser("outdent")(g,i,u),g=r.subParser("encodeCode")(g,i,u),g=r.subParser("detab")(g,i,u),g=g.replace(/^\n+/g,""),g=g.replace(/\n+$/g,""),i.omitExtraWLInCodeBlocks&&(k=""),g=""+g+k+"
",r.subParser("hashBlock")(g,i,u)+T}),n=n.replace(/¨0/,""),n=u.converter._dispatch("codeBlocks.after",n,i,u),n}),r.subParser("codeSpans",function(n,i,u){"use strict";return n=u.converter._dispatch("codeSpans.before",n,i,u),typeof n>"u"&&(n=""),n=n.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(d,p,m,f){var g=f;return g=g.replace(/^([ \t]*)/g,""),g=g.replace(/[ \t]*$/g,""),g=r.subParser("encodeCode")(g,i,u),g=p+""+g+"",g=r.subParser("hashHTMLSpans")(g,i,u),g}),n=u.converter._dispatch("codeSpans.after",n,i,u),n}),r.subParser("completeHTMLDocument",function(n,i,u){"use strict";if(!i.completeHTMLDocument)return n;n=u.converter._dispatch("completeHTMLDocument.before",n,i,u);var d="html",p=`
`,m="",f=`
`,g="",T="";typeof u.metadata.parsed.doctype<"u"&&(p="
`,d=u.metadata.parsed.doctype.toString().toLowerCase(),(d==="html"||d==="html5")&&(f=''));for(var k in u.metadata.parsed)if(u.metadata.parsed.hasOwnProperty(k))switch(k.toLowerCase()){case"doctype":break;case"title":m=""+u.metadata.parsed.title+`
`;break;case"charset":d==="html"||d==="html5"?f='
`:f='
`;break;case"language":case"lang":g=' lang="'+u.metadata.parsed[k]+'"',T+='
`;break;default:T+='
`}return n=p+"
`+m+f+T+`
`+n.trim()+`
`,n=u.converter._dispatch("completeHTMLDocument.after",n,i,u),n}),r.subParser("detab",function(n,i,u){"use strict";return n=u.converter._dispatch("detab.before",n,i,u),n=n.replace(/\t(?=\t)/g," "),n=n.replace(/\t/g,"\xA8A\xA8B"),n=n.replace(/¨B(.+?)¨A/g,function(d,p){for(var m=p,f=4-m.length%4,g=0;g/g,">"),n=u.converter._dispatch("encodeAmpsAndAngles.after",n,i,u),n}),r.subParser("encodeBackslashEscapes",function(n,i,u){"use strict";return n=u.converter._dispatch("encodeBackslashEscapes.before",n,i,u),n=n.replace(/\\(\\)/g,r.helper.escapeCharactersCallback),n=n.replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,r.helper.escapeCharactersCallback),n=u.converter._dispatch("encodeBackslashEscapes.after",n,i,u),n}),r.subParser("encodeCode",function(n,i,u){"use strict";return n=u.converter._dispatch("encodeCode.before",n,i,u),n=n.replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,r.helper.escapeCharactersCallback),n=u.converter._dispatch("encodeCode.after",n,i,u),n}),r.subParser("escapeSpecialCharsWithinTagAttributes",function(n,i,u){"use strict";n=u.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",n,i,u);var d=/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,p=/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;return n=n.replace(d,function(m){return m.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,r.helper.escapeCharactersCallback)}),n=n.replace(p,function(m){return m.replace(/([\\`*_~=|])/g,r.helper.escapeCharactersCallback)}),n=u.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",n,i,u),n}),r.subParser("githubCodeBlocks",function(n,i,u){"use strict";return i.ghCodeBlocks?(n=u.converter._dispatch("githubCodeBlocks.before",n,i,u),n+="\xA80",n=n.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(d,p,m,f){var g=i.omitExtraWLInCodeBlocks?"":`
`;return f=r.subParser("encodeCode")(f,i,u),f=r.subParser("detab")(f,i,u),f=f.replace(/^\n+/g,""),f=f.replace(/\n+$/g,""),f=""+f+g+"
",f=r.subParser("hashBlock")(f,i,u),`
\xA8G`+(u.ghCodeBlocks.push({text:d,codeblock:f})-1)+`G
`}),n=n.replace(/¨0/,""),u.converter._dispatch("githubCodeBlocks.after",n,i,u)):n}),r.subParser("hashBlock",function(n,i,u){"use strict";return n=u.converter._dispatch("hashBlock.before",n,i,u),n=n.replace(/(^\n+|\n+$)/g,""),n=`
\xA8K`+(u.gHtmlBlocks.push(n)-1)+`K
`,n=u.converter._dispatch("hashBlock.after",n,i,u),n}),r.subParser("hashCodeTags",function(n,i,u){"use strict";n=u.converter._dispatch("hashCodeTags.before",n,i,u);var d=function(p,m,f,g){var T=f+r.subParser("encodeCode")(m,i,u)+g;return"\xA8C"+(u.gHtmlSpans.push(T)-1)+"C"};return n=r.helper.replaceRecursiveRegExp(n,d,"]*>","","gim"),n=u.converter._dispatch("hashCodeTags.after",n,i,u),n}),r.subParser("hashElement",function(n,i,u){"use strict";return function(d,p){var m=p;return m=m.replace(/\n\n/g,`
`),m=m.replace(/^\n/,""),m=m.replace(/\n+$/g,""),m=`
\xA8K`+(u.gHtmlBlocks.push(m)-1)+`K
`,m}}),r.subParser("hashHTMLBlocks",function(n,i,u){"use strict";n=u.converter._dispatch("hashHTMLBlocks.before",n,i,u);var d=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],p=function(l,y,C,A){var R=l;return C.search(/\bmarkdown\b/)!==-1&&(R=C+u.converter.makeHtml(y)+A),`
\xA8K`+(u.gHtmlBlocks.push(R)-1)+`K
`};i.backslashEscapesHTMLTags&&(n=n.replace(/\\<(\/?[^>]+?)>/g,function(l,y){return"<"+y+">"}));for(var m=0;m]*>)","im"),T="<"+d[m]+"\\b[^>]*>",k=""+d[m]+">";(f=r.helper.regexIndexOf(n,g))!==-1;){var w=r.helper.splitAtIndex(n,f),v=r.helper.replaceRecursiveRegExp(w[1],p,T,k,"im");if(v===w[1])break;n=w[0].concat(v)}return n=n.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,r.subParser("hashElement")(n,i,u)),n=r.helper.replaceRecursiveRegExp(n,function(l){return`
\xA8K`+(u.gHtmlBlocks.push(l)-1)+`K
`},"^ {0,3}","gm"),n=n.replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,r.subParser("hashElement")(n,i,u)),n=u.converter._dispatch("hashHTMLBlocks.after",n,i,u),n}),r.subParser("hashHTMLSpans",function(n,i,u){"use strict";n=u.converter._dispatch("hashHTMLSpans.before",n,i,u);function d(p){return"\xA8C"+(u.gHtmlSpans.push(p)-1)+"C"}return n=n.replace(/<[^>]+?\/>/gi,function(p){return d(p)}),n=n.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(p){return d(p)}),n=n.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(p){return d(p)}),n=n.replace(/<[^>]+?>/gi,function(p){return d(p)}),n=u.converter._dispatch("hashHTMLSpans.after",n,i,u),n}),r.subParser("unhashHTMLSpans",function(n,i,u){"use strict";n=u.converter._dispatch("unhashHTMLSpans.before",n,i,u);for(var d=0;d]*>\\s*]*>","^ {0,3}\\s* ","gim"),n=u.converter._dispatch("hashPreCodeTags.after",n,i,u),n}),r.subParser("headers",function(n,i,u){"use strict";n=u.converter._dispatch("headers.before",n,i,u);var d=isNaN(parseInt(i.headerLevelStart))?1:parseInt(i.headerLevelStart),p=i.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,m=i.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;n=n.replace(p,function(T,k){var w=r.subParser("spanGamut")(k,i,u),v=i.noHeaderId?"":' id="'+g(k)+'"',l=d,y=""),g+="
",p.push(g))}for(m=p.length,f=0;f]*>/.test(k)&&(w=!0)}p[f]=k}return n=p.join(`
`),n=n.replace(/^\n+/g,""),n=n.replace(/\n+$/g,""),u.converter._dispatch("paragraphs.after",n,i,u)}),r.subParser("runExtension",function(n,i,u,d){"use strict";if(n.filter)i=n.filter(i,d.converter,u);else if(n.regex){var p=n.regex;p instanceof RegExp||(p=new RegExp(p,"g")),i=i.replace(p,n.replace)}return i}),r.subParser("spanGamut",function(n,i,u){"use strict";return n=u.converter._dispatch("spanGamut.before",n,i,u),n=r.subParser("codeSpans")(n,i,u),n=r.subParser("escapeSpecialCharsWithinTagAttributes")(n,i,u),n=r.subParser("encodeBackslashEscapes")(n,i,u),n=r.subParser("images")(n,i,u),n=r.subParser("anchors")(n,i,u),n=r.subParser("autoLinks")(n,i,u),n=r.subParser("simplifiedAutoLinks")(n,i,u),n=r.subParser("emoji")(n,i,u),n=r.subParser("underline")(n,i,u),n=r.subParser("italicsAndBold")(n,i,u),n=r.subParser("strikethrough")(n,i,u),n=r.subParser("ellipsis")(n,i,u),n=r.subParser("hashHTMLSpans")(n,i,u),n=r.subParser("encodeAmpsAndAngles")(n,i,u),i.simpleLineBreaks?/\n\n¨K/.test(n)||(n=n.replace(/\n+/g,`
`)):n=n.replace(/ +\n/g,`
`),n=u.converter._dispatch("spanGamut.after",n,i,u),n}),r.subParser("strikethrough",function(n,i,u){"use strict";function d(p){return i.simplifiedAutoLink&&(p=r.subParser("simplifiedAutoLinks")(p,i,u)),""+p+""}return i.strikethrough&&(n=u.converter._dispatch("strikethrough.before",n,i,u),n=n.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(p,m){return d(m)}),n=u.converter._dispatch("strikethrough.after",n,i,u)),n}),r.subParser("stripLinkDefinitions",function(n,i,u){"use strict";var d=/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,p=/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm;n+="\xA80";var m=function(f,g,T,k,w,v,l){return g=g.toLowerCase(),T.match(/^data:.+?\/.+?;base64,/)?u.gUrls[g]=T.replace(/\s/g,""):u.gUrls[g]=r.subParser("encodeAmpsAndAngles")(T,i,u),v?v+l:(l&&(u.gTitles[g]=l.replace(/"|'/g,""")),i.parseImgDimensions&&k&&w&&(u.gDimensions[g]={width:k,height:w}),"")};return n=n.replace(p,m),n=n.replace(d,m),n=n.replace(/¨0/,""),n}),r.subParser("tables",function(n,i,u){"use strict";if(!i.tables)return n;var d=/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,p=/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;function m(w){return/^:[ \t]*--*$/.test(w)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(w)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(w)?' style="text-align:center;"':""}function f(w,v){var l="";return w=w.trim(),(i.tablesHeaderId||i.tableHeaderId)&&(l=' id="'+w.replace(/ /g,"_").toLowerCase()+'"'),w=r.subParser("spanGamut")(w,i,u),""+w+`
`}function g(w,v){var l=r.subParser("spanGamut")(w,i,u);return""+l+`
`}function T(w,v){for(var l=`
`,y=w.length,C=0;C
`,C=0;C
`;for(var A=0;A
`}return l+=`
`,l}function k(w){var v,l=w.split(`
`);for(v=0;v"+p+""}),n=n.replace(/\b__(\S[\s\S]*?)__\b/g,function(d,p){return""+p+""})):(n=n.replace(/___(\S[\s\S]*?)___/g,function(d,p){return/\S$/.test(p)?""+p+"":d}),n=n.replace(/__(\S[\s\S]*?)__/g,function(d,p){return/\S$/.test(p)?""+p+"":d})),n=n.replace(/(_)/g,r.helper.escapeCharactersCallback),n=u.converter._dispatch("underline.after",n,i,u)),n}),r.subParser("unescapeSpecialChars",function(n,i,u){"use strict";return n=u.converter._dispatch("unescapeSpecialChars.before",n,i,u),n=n.replace(/¨E(\d+)E/g,function(d,p){var m=parseInt(p);return String.fromCharCode(m)}),n=u.converter._dispatch("unescapeSpecialChars.after",n,i,u),n}),r.subParser("makeMarkdown.blockquote",function(n,i){"use strict";var u="";if(n.hasChildNodes())for(var d=n.childNodes,p=d.length,m=0;m "+u.split(`
`).join(`
> `),u}),r.subParser("makeMarkdown.codeBlock",function(n,i){"use strict";var u=n.getAttribute("language"),d=n.getAttribute("precodenum");return"```"+u+`
`+i.preList[d]+"\n```"}),r.subParser("makeMarkdown.codeSpan",function(n){"use strict";return"`"+n.innerHTML+"`"}),r.subParser("makeMarkdown.emphasis",function(n,i){"use strict";var u="";if(n.hasChildNodes()){u+="*";for(var d=n.childNodes,p=d.length,m=0;m
",n.hasAttribute("width")&&n.hasAttribute("height")&&(i+=" ="+n.getAttribute("width")+"x"+n.getAttribute("height")),n.hasAttribute("title")&&(i+=' "'+n.getAttribute("title")+'"'),i+=")"),i}),r.subParser("makeMarkdown.links",function(n,i){"use strict";var u="";if(n.hasChildNodes()&&n.hasAttribute("href")){var d=n.childNodes,p=d.length;u="[";for(var m=0;m
",n.hasAttribute("title")&&(u+=' "'+n.getAttribute("title")+'"'),u+=")"}return u}),r.subParser("makeMarkdown.list",function(n,i,u){"use strict";var d="";if(!n.hasChildNodes())return"";for(var p=n.childNodes,m=p.length,f=n.getAttribute("start")||1,g=0;g"u"||p[g].tagName.toLowerCase()!=="li")){var T="";u==="ol"?T=f.toString()+". ":T="- ",d+=T+r.subParser("makeMarkdown.listItem")(p[g],i),++f}return d+=`
`,d.trim()}),r.subParser("makeMarkdown.listItem",function(n,i){"use strict";for(var u="",d=n.childNodes,p=d.length,m=0;m
`;if(n.nodeType!==1)return"";var p=n.tagName.toLowerCase();switch(p){case"h1":u||(d=r.subParser("makeMarkdown.header")(n,i,1)+`
`);break;case"h2":u||(d=r.subParser("makeMarkdown.header")(n,i,2)+`
`);break;case"h3":u||(d=r.subParser("makeMarkdown.header")(n,i,3)+`
`);break;case"h4":u||(d=r.subParser("makeMarkdown.header")(n,i,4)+`
`);break;case"h5":u||(d=r.subParser("makeMarkdown.header")(n,i,5)+`
`);break;case"h6":u||(d=r.subParser("makeMarkdown.header")(n,i,6)+`
`);break;case"p":u||(d=r.subParser("makeMarkdown.paragraph")(n,i)+`
`);break;case"blockquote":u||(d=r.subParser("makeMarkdown.blockquote")(n,i)+`
`);break;case"hr":u||(d=r.subParser("makeMarkdown.hr")(n,i)+`
`);break;case"ol":u||(d=r.subParser("makeMarkdown.list")(n,i,"ol")+`
`);break;case"ul":u||(d=r.subParser("makeMarkdown.list")(n,i,"ul")+`
`);break;case"precode":u||(d=r.subParser("makeMarkdown.codeBlock")(n,i)+`
`);break;case"pre":u||(d=r.subParser("makeMarkdown.pre")(n,i)+`
`);break;case"table":u||(d=r.subParser("makeMarkdown.table")(n,i)+`
`);break;case"code":d=r.subParser("makeMarkdown.codeSpan")(n,i);break;case"em":case"i":d=r.subParser("makeMarkdown.emphasis")(n,i);break;case"strong":case"b":d=r.subParser("makeMarkdown.strong")(n,i);break;case"del":d=r.subParser("makeMarkdown.strikethrough")(n,i);break;case"a":d=r.subParser("makeMarkdown.links")(n,i);break;case"img":d=r.subParser("makeMarkdown.image")(n,i);break;default:d=n.outerHTML+`
`}return d}),r.subParser("makeMarkdown.paragraph",function(n,i){"use strict";var u="";if(n.hasChildNodes())for(var d=n.childNodes,p=d.length,m=0;m
"+i.preList[u]+""}),r.subParser("makeMarkdown.strikethrough",function(n,i){"use strict";var u="";if(n.hasChildNodes()){u+="~~";for(var d=n.childNodes,p=d.length,m=0;m
tr>th"),m=n.querySelectorAll("tbody>tr"),f,g;for(f=0;f
C&&(C=A)}for(f=0;f/g,"\\$1>"),i=i.replace(/^#/gm,"\\#"),i=i.replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3"),i=i.replace(/^( {0,3}\d+)\./gm,"$1\\."),i=i.replace(/^( {0,3})([+-])/gm,"$1\\$2"),i=i.replace(/]([\s]*)\(/g,"\\]$1\\("),i=i.replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:"),i});var ju=this;typeof define=="function"&&define.amd?define(function(){"use strict";return r}):typeof Zr<"u"&&Zr.exports?Zr.exports=r:ju.showdown=r}).call(mu)});var Od={};Ie(Od,{__EXPERIMENTAL_ELEMENTS:()=>zn,__EXPERIMENTAL_PATHS_WITH_OVERRIDE:()=>qn,__EXPERIMENTAL_STYLE_PROPERTY:()=>pe,__experimentalCloneSanitizedBlock:()=>zt,__experimentalGetAccessibleBlockLabel:()=>ha,__experimentalGetBlockAttributesNamesByRole:()=>ga,__experimentalGetBlockLabel:()=>bt,__experimentalSanitizeBlockAttributes:()=>Ge,__unstableGetBlockProps:()=>Ut,__unstableGetInnerBlocksProps:()=>mo,__unstableSerializeAndClean:()=>ho,children:()=>Ro,cloneBlock:()=>qt,createBlock:()=>U,createBlocksFromInnerBlocksTemplate:()=>jt,doBlocksMatchTemplate:()=>dn,findTransform:()=>he,getBlockAttributes:()=>ie,getBlockAttributesNamesByRole:()=>wt,getBlockBindingsSource:()=>mt,getBlockBindingsSources:()=>fa,getBlockContent:()=>Xe,getBlockDefaultClassName:()=>lo,getBlockFromExample:()=>It,getBlockMenuDefaultClassName:()=>fo,getBlockSupport:()=>Jn,getBlockTransforms:()=>ue,getBlockType:()=>M,getBlockTypes:()=>Ue,getBlockVariations:()=>ia,getCategories:()=>Nu,getChildBlockNames:()=>ta,getDefaultBlockName:()=>pr,getFreeformContentHandlerName:()=>re,getGroupingBlockName:()=>fr,getPhrasingContentSchema:()=>Su,getPossibleBlockTransformations:()=>Za,getSaveContent:()=>ge,getSaveElement:()=>Ft,getUnregisteredTypeHandlerName:()=>me,hasBlockSupport:()=>se,hasChildBlocks:()=>na,hasChildBlocksWithInserterSupport:()=>aa,isReusableBlock:()=>ea,isTemplatePart:()=>ra,isUnmodifiedBlock:()=>gt,isUnmodifiedDefaultBlock:()=>hr,isValidBlockContent:()=>Lo,isValidIcon:()=>$e,node:()=>Do,normalizeIconObject:()=>gr,parse:()=>Ee,parseWithAttributeSchema:()=>Le,pasteHandler:()=>Qr,privateApis:()=>Du,rawHandler:()=>sn,registerBlockBindingsSource:()=>ca,registerBlockCollection:()=>Kn,registerBlockStyle:()=>oa,registerBlockType:()=>Gn,registerBlockVariation:()=>sa,serialize:()=>Mr,serializeRawBlock:()=>we,setCategories:()=>Lu,setDefaultBlockName:()=>Zn,setFreeformContentHandlerName:()=>Yn,setGroupingBlockName:()=>Qn,setUnregisteredTypeHandlerName:()=>Xn,store:()=>P,switchToBlockType:()=>Qa,synchronizeBlocksWithTemplate:()=>Jr,unregisterBlockBindingsSource:()=>la,unregisterBlockStyle:()=>ua,unregisterBlockType:()=>Wn,unregisterBlockVariation:()=>da,unstable__bootstrapServerSideBlockDefinitions:()=>$n,updateCategory:()=>Pu,validateBlock:()=>be,withBlockContentContext:()=>Pd});var Or=B(Be());var Re=function(){return Re=Object.assign||function(t){for(var r,a=1,o=arguments.length;a0&&r>="0"&&r<="9"?"_"+r+a:""+r.toUpperCase()+a}function bn(e,t){return t===void 0&&(t={}),gn(e,Re({delimiter:"",transform:nt},t))}function $u(e,t){return t===0?e.toLowerCase():nt(e,t)}function _n(e,t){return t===void 0&&(t={}),bn(e,Re({transform:$u},t))}var _a=B(Be()),ye=B(sr());var Gu={grad:.9,turn:360,rad:360/(2*Math.PI)},fe=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},V=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},J=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e>t?e:t},An=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},wn=function(e){return{r:J(e.r,0,255),g:J(e.g,0,255),b:J(e.b,0,255),a:J(e.a)}},at=function(e){return{r:V(e.r),g:V(e.g),b:V(e.b),a:V(e.a,3)}},Ku=/^#([0-9a-f]{3,8})$/i,dr=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Sn=function(e){var t=e.r,r=e.g,a=e.b,o=e.a,s=Math.max(t,r,a),c=s-Math.min(t,r,a),h=c?s===t?(r-a)/c:s===r?2+(a-t)/c:4+(t-r)/c:0;return{h:60*(h<0?h+6:h),s:s?c/s*100:0,v:s/255*100,a:o}},Nn=function(e){var t=e.h,r=e.s,a=e.v,o=e.a;t=t/360*6,r/=100,a/=100;var s=Math.floor(t),c=a*(1-r),h=a*(1-(t-s)*r),_=a*(1-(1-t+s)*r),b=s%6;return{r:255*[a,h,c,c,_,a][b],g:255*[_,a,a,h,c,c][b],b:255*[c,c,_,a,a,h][b],a:o}},kn=function(e){return{h:An(e.h),s:J(e.s,0,100),l:J(e.l,0,100),a:J(e.a)}},vn=function(e){return{h:V(e.h),s:V(e.s),l:V(e.l),a:V(e.a,3)}},En=function(e){return Nn((r=(t=e).s,{h:t.h,s:(r*=((a=t.l)<50?a:100-a)/100)>0?2*r/(a+r)*100:0,v:a+r,a:t.a}));var t,r,a},Ve=function(e){return{h:(t=Sn(e)).h,s:(o=(200-(r=t.s))*(a=t.v)/100)>0&&o<200?r*a/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,r,a,o},Wu=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Yu=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Xu=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Zu=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,it={string:[[function(e){var t=Ku.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?V(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?V(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Xu.exec(e)||Zu.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:wn({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Wu.exec(e)||Yu.exec(e);if(!t)return null;var r,a,o=kn({h:(r=t[1],a=t[2],a===void 0&&(a="deg"),Number(r)*(Gu[a]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return En(o)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,a=e.b,o=e.a,s=o===void 0?1:o;return fe(t)&&fe(r)&&fe(a)?wn({r:Number(t),g:Number(r),b:Number(a),a:Number(s)}):null},"rgb"],[function(e){var t=e.h,r=e.s,a=e.l,o=e.a,s=o===void 0?1:o;if(!fe(t)||!fe(r)||!fe(a))return null;var c=kn({h:Number(t),s:Number(r),l:Number(a),a:Number(s)});return En(c)},"hsl"],[function(e){var t=e.h,r=e.s,a=e.v,o=e.a,s=o===void 0?1:o;if(!fe(t)||!fe(r)||!fe(a))return null;var c=(function(h){return{h:An(h.h),s:J(h.s,0,100),v:J(h.v,0,100),a:J(h.a)}})({h:Number(t),s:Number(r),v:Number(a),a:Number(s)});return Nn(c)},"hsv"]]},Tn=function(e,t){for(var r=0;r=.5},e.prototype.toHex=function(){return t=at(this.rgba),r=t.r,a=t.g,o=t.b,c=(s=t.a)<1?dr(V(255*s)):"","#"+dr(r)+dr(a)+dr(o)+c;var t,r,a,o,s,c},e.prototype.toRgb=function(){return at(this.rgba)},e.prototype.toRgbString=function(){return t=at(this.rgba),r=t.r,a=t.g,o=t.b,(s=t.a)<1?"rgba("+r+", "+a+", "+o+", "+s+")":"rgb("+r+", "+a+", "+o+")";var t,r,a,o,s},e.prototype.toHsl=function(){return vn(Ve(this.rgba))},e.prototype.toHslString=function(){return t=vn(Ve(this.rgba)),r=t.h,a=t.s,o=t.l,(s=t.a)<1?"hsla("+r+", "+a+"%, "+o+"%, "+s+")":"hsl("+r+", "+a+"%, "+o+"%)";var t,r,a,o,s},e.prototype.toHsv=function(){return t=Sn(this.rgba),{h:V(t.h),s:V(t.s),v:V(t.v),a:V(t.a,3)};var t},e.prototype.invert=function(){return ae({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),ae(ot(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),ae(ot(this.rgba,-t))},e.prototype.grayscale=function(){return ae(ot(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),ae(Cn(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),ae(Cn(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?ae({r:(r=this.rgba).r,g:r.g,b:r.b,a:t}):V(this.rgba.a,3);var r},e.prototype.hue=function(t){var r=Ve(this.rgba);return typeof t=="number"?ae({h:t,s:r.s,l:r.l,a:r.a}):V(r.h)},e.prototype.isEqual=function(t){return this.toHex()===ae(t).toHex()},e})(),ae=function(e){return e instanceof st?e:new st(e)},Bn=[],Ln=function(e){e.forEach(function(t){Bn.indexOf(t)<0&&(t(st,it),Bn.push(t))})};function Pn(e,t){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},a={};for(var o in r)a[r[o]]=o;var s={};e.prototype.toName=function(c){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var h,_,b=a[this.toHex()];if(b)return b;if(c?.closest){var E=this.toRgb(),L=1/0,N="black";if(!s.length)for(var j in r)s[j]=new e(r[j]).toRgb();for(var I in r){var G=(h=E,_=s[I],Math.pow(h.r-_.r,2)+Math.pow(h.g-_.g,2)+Math.pow(h.b-_.b,2));G_?(h+.05)/(_+.05):(_+.05)/(h+.05),(a=2)===void 0&&(a=0),o===void 0&&(o=Math.pow(10,a)),Math.floor(o*r)/o+0},e.prototype.isReadable=function(t,r){return t===void 0&&(t="#FFF"),r===void 0&&(r={}),this.contrast(t)>=(h=(c=(a=r).size)===void 0?"normal":c,(s=(o=a.level)===void 0?"AA":o)==="AAA"&&h==="normal"?7:s==="AA"&&h==="large"?3:4.5);var a,o,s,c,h}}var mr=B(De()),W=B(sr()),ma=B(Z()),Fe=B(xe()),ht=B(ee());var cr="block-default",He=["attributes","supports","save","migrate","isEligible","apiVersion"],pe={"--wp--style--color--link":{value:["color","link"],support:["color","link"]},aspectRatio:{value:["dimensions","aspectRatio"],support:["dimensions","aspectRatio"],useEngine:!0},background:{value:["color","gradient"],support:["color","gradients"],useEngine:!0},backgroundColor:{value:["color","background"],support:["color","background"],requiresOptOut:!0,useEngine:!0},backgroundImage:{value:["background","backgroundImage"],support:["background","backgroundImage"],useEngine:!0},backgroundRepeat:{value:["background","backgroundRepeat"],support:["background","backgroundRepeat"],useEngine:!0},backgroundSize:{value:["background","backgroundSize"],support:["background","backgroundSize"],useEngine:!0},backgroundPosition:{value:["background","backgroundPosition"],support:["background","backgroundPosition"],useEngine:!0},borderColor:{value:["border","color"],support:["__experimentalBorder","color"],useEngine:!0},borderRadius:{value:["border","radius"],support:["__experimentalBorder","radius"],properties:{borderTopLeftRadius:"topLeft",borderTopRightRadius:"topRight",borderBottomLeftRadius:"bottomLeft",borderBottomRightRadius:"bottomRight"},useEngine:!0},borderStyle:{value:["border","style"],support:["__experimentalBorder","style"],useEngine:!0},borderWidth:{value:["border","width"],support:["__experimentalBorder","width"],useEngine:!0},borderTopColor:{value:["border","top","color"],support:["__experimentalBorder","color"],useEngine:!0},borderTopStyle:{value:["border","top","style"],support:["__experimentalBorder","style"],useEngine:!0},borderTopWidth:{value:["border","top","width"],support:["__experimentalBorder","width"],useEngine:!0},borderRightColor:{value:["border","right","color"],support:["__experimentalBorder","color"],useEngine:!0},borderRightStyle:{value:["border","right","style"],support:["__experimentalBorder","style"],useEngine:!0},borderRightWidth:{value:["border","right","width"],support:["__experimentalBorder","width"],useEngine:!0},borderBottomColor:{value:["border","bottom","color"],support:["__experimentalBorder","color"],useEngine:!0},borderBottomStyle:{value:["border","bottom","style"],support:["__experimentalBorder","style"],useEngine:!0},borderBottomWidth:{value:["border","bottom","width"],support:["__experimentalBorder","width"],useEngine:!0},borderLeftColor:{value:["border","left","color"],support:["__experimentalBorder","color"],useEngine:!0},borderLeftStyle:{value:["border","left","style"],support:["__experimentalBorder","style"],useEngine:!0},borderLeftWidth:{value:["border","left","width"],support:["__experimentalBorder","width"],useEngine:!0},color:{value:["color","text"],support:["color","text"],requiresOptOut:!0,useEngine:!0},columnCount:{value:["typography","textColumns"],support:["typography","textColumns"],useEngine:!0},filter:{value:["filter","duotone"],support:["filter","duotone"]},linkColor:{value:["elements","link","color","text"],support:["color","link"]},captionColor:{value:["elements","caption","color","text"],support:["color","caption"]},buttonColor:{value:["elements","button","color","text"],support:["color","button"]},buttonBackgroundColor:{value:["elements","button","color","background"],support:["color","button"]},headingColor:{value:["elements","heading","color","text"],support:["color","heading"]},headingBackgroundColor:{value:["elements","heading","color","background"],support:["color","heading"]},fontFamily:{value:["typography","fontFamily"],support:["typography","__experimentalFontFamily"],useEngine:!0},fontSize:{value:["typography","fontSize"],support:["typography","fontSize"],useEngine:!0},fontStyle:{value:["typography","fontStyle"],support:["typography","__experimentalFontStyle"],useEngine:!0},fontWeight:{value:["typography","fontWeight"],support:["typography","__experimentalFontWeight"],useEngine:!0},lineHeight:{value:["typography","lineHeight"],support:["typography","lineHeight"],useEngine:!0},margin:{value:["spacing","margin"],support:["spacing","margin"],properties:{marginTop:"top",marginRight:"right",marginBottom:"bottom",marginLeft:"left"},useEngine:!0},minHeight:{value:["dimensions","minHeight"],support:["dimensions","minHeight"],useEngine:!0},height:{value:["dimensions","height"],support:["dimensions","height"],useEngine:!0},width:{value:["dimensions","width"],support:["dimensions","width"],useEngine:!0},padding:{value:["spacing","padding"],support:["spacing","padding"],properties:{paddingTop:"top",paddingRight:"right",paddingBottom:"bottom",paddingLeft:"left"},useEngine:!0},textAlign:{value:["typography","textAlign"],support:["typography","textAlign"],useEngine:!1},textDecoration:{value:["typography","textDecoration"],support:["typography","__experimentalTextDecoration"],useEngine:!0},textTransform:{value:["typography","textTransform"],support:["typography","__experimentalTextTransform"],useEngine:!0},letterSpacing:{value:["typography","letterSpacing"],support:["typography","__experimentalLetterSpacing"],useEngine:!0},writingMode:{value:["typography","writingMode"],support:["typography","__experimentalWritingMode"],useEngine:!0},"--wp--style--root--padding":{value:["spacing","padding"],support:["spacing","padding"],properties:{"--wp--style--root--padding-top":"top","--wp--style--root--padding-right":"right","--wp--style--root--padding-bottom":"bottom","--wp--style--root--padding-left":"left"},rootOnly:!0}},zn={link:"a:where(:not(.wp-element-button))",heading:"h1, h2, h3, h4, h5, h6",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",button:".wp-element-button, .wp-block-button__link",caption:".wp-element-caption, .wp-block-audio figcaption, .wp-block-embed figcaption, .wp-block-gallery figcaption, .wp-block-image figcaption, .wp-block-table figcaption, .wp-block-video figcaption",cite:"cite",select:"select",textInput:"textarea, input:where([type=email],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=url])"},qn={"color.duotone":!0,"color.gradients":!0,"color.palette":!0,"dimensions.aspectRatios":!0,"typography.fontSizes":!0,"spacing.spacingSizes":!0};var O=B(Be()),Fn=B(sr()),q=B(lt());var ft={title:"block title",description:"block description",keywords:["block keyword"],styles:[{label:"block style label"}],variations:[{title:"block variation title",description:"block variation description",keywords:["block variation keyword"]}]};var Hn=B(xn()),{lock:Un,unlock:oe}=(0,Hn.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/blocks");function lr(e){return e!==null&&typeof e=="object"}function $n(e){let{addBootstrappedBlockType:t}=oe((0,O.dispatch)(P));for(let[r,a]of Object.entries(e))t(r,a)}function ei({textdomain:e,...t}){let r=["apiVersion","title","category","parent","ancestor","icon","description","keywords","attributes","providesContext","usesContext","selectors","supports","styles","example","variations","blockHooks","allowedBlocks"],a=Object.fromEntries(Object.entries(t).filter(([o])=>r.includes(o)));return e&&Object.keys(ft).forEach(o=>{a[o]&&(a[o]=pt(ft[o],a[o],e))}),a}function Gn(e,t){let r=lr(e)?e.name:e;if(typeof r!="string"){(0,q.default)("Block names must be strings.");return}if(!/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(r)){(0,q.default)("Block names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-block");return}if((0,O.select)(P).getBlockType(r)){(0,q.default)('Block "'+r+'" is already registered.');return}let{addBootstrappedBlockType:a,addUnprocessedBlockType:o}=oe((0,O.dispatch)(P));if(lr(e)){let s=ei(e);a(r,s)}return o(r,t),(0,O.select)(P).getBlockType(r)}function pt(e,t,r){return typeof e=="string"&&typeof t=="string"?(0,Fn._x)(t,e,r):Array.isArray(e)&&e.length&&Array.isArray(t)?t.map(a=>pt(e[0],a,r)):lr(e)&&Object.entries(e).length&&lr(t)?Object.keys(t).reduce((a,o)=>e[o]?(a[o]=pt(e[o],t[o],r),a):(a[o]=t[o],a),{}):t}function Kn(e,{title:t,icon:r}){(0,O.dispatch)(P).addBlockCollection(e,t,r)}function Wn(e){let t=(0,O.select)(P).getBlockType(e);if(!t){(0,q.default)('Block "'+e+'" is not registered.');return}return(0,O.dispatch)(P).removeBlockTypes(e),t}function Yn(e){(0,O.dispatch)(P).setFreeformFallbackBlockName(e)}function re(){return(0,O.select)(P).getFreeformFallbackBlockName()}function fr(){return(0,O.select)(P).getGroupingBlockName()}function Xn(e){(0,O.dispatch)(P).setUnregisteredFallbackBlockName(e)}function me(){return(0,O.select)(P).getUnregisteredFallbackBlockName()}function Zn(e){(0,O.dispatch)(P).setDefaultBlockName(e)}function Qn(e){(0,O.dispatch)(P).setGroupingBlockName(e)}function pr(){return(0,O.select)(P).getDefaultBlockName()}function M(e){return(0,O.select)(P)?.getBlockType(e)}function Ue(){return(0,O.select)(P).getBlockTypes()}function Jn(e,t,r){return(0,O.select)(P).getBlockSupport(e,t,r)}function se(e,t,r){return(0,O.select)(P).hasBlockSupport(e,t,r)}function ea(e){return e?.name==="core/block"}function ra(e){return e?.name==="core/template-part"}var ta=e=>(0,O.select)(P).getChildBlockNames(e),na=e=>(0,O.select)(P).hasChildBlocks(e),aa=e=>(0,O.select)(P).hasChildBlocksWithInserterSupport(e),oa=(e,t)=>{(0,O.dispatch)(P).addBlockStyles(e,t)},ua=(e,t)=>{(0,O.dispatch)(P).removeBlockStyles(e,t)},ia=(e,t)=>(0,O.select)(P).getBlockVariations(e,t),sa=(e,t)=>{typeof t.name!="string"&&(0,q.default)("Variation names must be unique strings."),(0,O.dispatch)(P).addBlockVariations(e,t)},da=(e,t)=>{(0,O.dispatch)(P).removeBlockVariations(e,t)},ca=e=>{let{name:t,label:r,usesContext:a,getValues:o,setValues:s,canUserEditValue:c,getFieldsList:h}=e,_=oe((0,O.select)(P)).getBlockBindingsSource(t),b=["label","usesContext"];for(let E in _)if(!b.includes(E)&&_[E]){(0,q.default)('Block bindings source "'+t+'" is already registered.');return}if(!t){(0,q.default)("Block bindings source must contain a name.");return}if(typeof t!="string"){(0,q.default)("Block bindings source name must be a string.");return}if(/[A-Z]+/.test(t)){(0,q.default)("Block bindings source name must not contain uppercase characters.");return}if(!/^[a-z0-9/-]+$/.test(t)){(0,q.default)("Block bindings source name must contain only valid characters: lowercase characters, hyphens, or digits. Example: my-plugin/my-custom-source.");return}if(!/^[a-z0-9-]+\/[a-z0-9-]+$/.test(t)){(0,q.default)("Block bindings source name must contain a namespace and valid characters. Example: my-plugin/my-custom-source.");return}if(!r&&!_?.label){(0,q.default)("Block bindings source must contain a label.");return}if(r&&typeof r!="string"){(0,q.default)("Block bindings source label must be a string.");return}if(r&&_?.label&&r!==_?.label&&(0,q.default)('Block bindings "'+t+'" source label was overridden.'),a&&!Array.isArray(a)){(0,q.default)("Block bindings source usesContext must be an array.");return}if(o&&typeof o!="function"){(0,q.default)("Block bindings source getValues must be a function.");return}if(s&&typeof s!="function"){(0,q.default)("Block bindings source setValues must be a function.");return}if(c&&typeof c!="function"){(0,q.default)("Block bindings source canUserEditValue must be a function.");return}if(h&&typeof h!="function"){(0,q.default)("Block bindings source getFieldsList must be a function.");return}return oe((0,O.dispatch)(P)).addBlockBindingsSource(e)};function la(e){if(!mt(e)){(0,q.default)('Block bindings source "'+e+'" is not registered.');return}oe((0,O.dispatch)(P)).removeBlockBindingsSource(e)}function mt(e){return oe((0,O.select)(P)).getBlockBindingsSource(e)}function fa(){return oe((0,O.select)(P)).getAllBlockBindingsSources()}Ln([Pn,On]);var pa=["#191e23","#f8f9f9"];function gt(e,t){let r=M(e.name)?.attributes??{},a=t?Object.entries(r).filter(([s,c])=>t==="content"&&s==="metadata"?Object.keys(e.attributes[s]?.bindings??{}).length>0:c.role===t||c.__experimentalRole===t):[];return(a.length?a:Object.entries(r)).every(([s,c])=>{let h=e.attributes[s];return c.hasOwnProperty("default")?h===c.default:c.type==="rich-text"?!h?.length:h===void 0})}function hr(e,t){return e.name===pr()&>(e,t)}function $e(e){return!!e&&(typeof e=="string"||(0,mr.isValidElement)(e)||typeof e=="function"||e instanceof mr.Component)}function gr(e){if(e=e||cr,$e(e))return{src:e};if("background"in e){let t=ae(e.background),r=o=>t.contrast(o),a=Math.max(...pa.map(r));return{...e,foreground:e.foreground?e.foreground:pa.find(o=>r(o)===a),shadowColor:t.alpha(.3).toRgbString()}}return e}function de(e){return typeof e=="string"?M(e):e}function bt(e,t,r="visual"){let{__experimentalLabel:a,title:o}=e,s=a&&a(t,{context:r});return s?s.toPlainText?s.toPlainText():(0,ma.__unstableStripHTML)(s):o}function ha(e,t,r,a="vertical"){let o=e?.title,s=e?bt(e,t,"accessibility"):"",c=r!==void 0,h=s&&s!==o;return c&&a==="vertical"?h?(0,W.sprintf)((0,W.__)("%1$s Block. Row %2$d. %3$s"),o,r,s):(0,W.sprintf)((0,W.__)("%1$s Block. Row %2$d"),o,r):c&&a==="horizontal"?h?(0,W.sprintf)((0,W.__)("%1$s Block. Column %2$d. %3$s"),o,r,s):(0,W.sprintf)((0,W.__)("%1$s Block. Column %2$d"),o,r):h?(0,W.sprintf)((0,W.__)("%1$s Block. %2$s"),o,s):(0,W.sprintf)((0,W.__)("%s Block"),o)}function _t(e){if(e.default!==void 0)return e.default;if(e.type==="rich-text")return new Fe.RichTextData}function yt(e){return M(e)!==void 0}function Ge(e,t){let r=M(e);if(r===void 0)throw new Error(`Block type '${e}' is not registered.`);return Object.entries(r.attributes).reduce((a,[o,s])=>{let c=t[o];if(c!==void 0)s.type==="rich-text"?c instanceof Fe.RichTextData?a[o]=c:typeof c=="string"&&(a[o]=Fe.RichTextData.fromHTMLString(c)):s.type==="string"&&c instanceof Fe.RichTextData?a[o]=c.toHTMLString():a[o]=c;else{let h=_t(s);h!==void 0&&(a[o]=h)}return["node","children"].indexOf(s.source)!==-1&&(typeof a[o]=="string"?a[o]=[a[o]]:Array.isArray(a[o])||(a[o]=[])),a},{})}function wt(e,t){let r=M(e)?.attributes;if(!r)return[];let a=Object.keys(r);return t?a.filter(o=>{let s=r[o];return s?.role===t?!0:s?.__experimentalRole===t?((0,ht.default)("__experimentalRole attribute",{since:"6.7",version:"6.8",alternative:"role attribute",hint:`Check the block.json of the ${e} block.`}),!0):!1}):a}var ga=(...e)=>((0,ht.default)("__experimentalGetBlockAttributesNamesByRole",{since:"6.7",version:"6.8",alternative:"getBlockAttributesNamesByRole"}),wt(...e));function ba(e){let t=M(e),r=t?.attributes;return t?.supports?.contentRole?!0:r?!!Object.keys(r)?.some(o=>{let s=r[o];return s?.role==="content"||s?.__experimentalRole==="content"}):!1}function ce(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var ri=[{slug:"text",title:(0,ye.__)("Text")},{slug:"media",title:(0,ye.__)("Media")},{slug:"design",title:(0,ye.__)("Design")},{slug:"widgets",title:(0,ye.__)("Widgets")},{slug:"theme",title:(0,ye.__)("Theme")},{slug:"embed",title:(0,ye.__)("Embeds")},{slug:"reusable",title:(0,ye.__)("Reusable blocks")}];function kt(e){return e.reduce((t,r)=>({...t,[r.name]:r}),{})}function br(e){return e.reduce((t,r)=>(t.some(a=>a.name===r.name)||t.push(r),t),[])}function ti(e={},t){switch(t.type){case"ADD_BOOTSTRAPPED_BLOCK_TYPE":let{name:r,blockType:a}=t;if(e[r])return e;let s=Object.fromEntries(Object.entries(a).filter(([,c])=>c!=null).map(([c,h])=>[_n(c),h]));return s.name=r,{...e,[r]:s};case"REMOVE_BLOCK_TYPES":return ce(e,t.names)}return e}function ni(e={},t){switch(t.type){case"ADD_UNPROCESSED_BLOCK_TYPE":return{...e,[t.name]:t.blockType};case"REMOVE_BLOCK_TYPES":return ce(e,t.names)}return e}function ai(e={},t){switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...kt(t.blockTypes)};case"REMOVE_BLOCK_TYPES":return ce(e,t.names)}return e}function oi(e={},t){switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...Object.fromEntries(Object.entries(kt(t.blockTypes)).map(([a,o])=>[a,br([...(o.styles??[]).map(s=>({...s,source:"block"})),...(e[o.name]??[]).filter(({source:s})=>s!=="block")])]))};case"ADD_BLOCK_STYLES":let r={};return t.blockNames.forEach(a=>{r[a]=br([...e[a]??[],...t.styles])}),{...e,...r};case"REMOVE_BLOCK_STYLES":return{...e,[t.blockName]:(e[t.blockName]??[]).filter(a=>t.styleNames.indexOf(a.name)===-1)}}return e}function ui(e={},t){switch(t.type){case"ADD_BLOCK_TYPES":return{...e,...Object.fromEntries(Object.entries(kt(t.blockTypes)).map(([r,a])=>[r,br([...(a.variations??[]).map(o=>({...o,source:"block"})),...(e[a.name]??[]).filter(({source:o})=>o!=="block")])]))};case"ADD_BLOCK_VARIATIONS":return{...e,[t.blockName]:br([...e[t.blockName]??[],...t.variations])};case"REMOVE_BLOCK_VARIATIONS":return{...e,[t.blockName]:(e[t.blockName]??[]).filter(r=>t.variationNames.indexOf(r.name)===-1)}}return e}function _r(e){return(t=null,r)=>{switch(r.type){case"REMOVE_BLOCK_TYPES":return r.names.indexOf(t)!==-1?null:t;case e:return r.name||null}return t}}var ii=_r("SET_DEFAULT_BLOCK_NAME"),si=_r("SET_FREEFORM_FALLBACK_BLOCK_NAME"),di=_r("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),ci=_r("SET_GROUPING_BLOCK_NAME");function li(e=ri,t){switch(t.type){case"SET_CATEGORIES":let r=new Map;return(t.categories||[]).forEach(a=>{r.set(a.slug,a)}),[...r.values()];case"UPDATE_CATEGORY":{if(!t.category||!Object.keys(t.category).length)return e;if(e.find(({slug:o})=>o===t.slug))return e.map(o=>o.slug===t.slug?{...o,...t.category}:o)}}return e}function fi(e={},t){switch(t.type){case"ADD_BLOCK_COLLECTION":return{...e,[t.namespace]:{title:t.title,icon:t.icon}};case"REMOVE_BLOCK_COLLECTION":return ce(e,t.namespace)}return e}function pi(e=[],t=[]){let r=Array.from(new Set(e.concat(t)));return r.length>0?r:void 0}function mi(e={},t){switch(t.type){case"ADD_BLOCK_BINDINGS_SOURCE":return{...e,[t.name]:{label:t.label||e[t.name]?.label,usesContext:pi(e[t.name]?.usesContext,t.usesContext),getValues:t.getValues,setValues:t.setValues,canUserEditValue:t.setValues&&t.canUserEditValue,getFieldsList:t.getFieldsList}};case"REMOVE_BLOCK_BINDINGS_SOURCE":return ce(e,t.name)}return e}var ya=(0,_a.combineReducers)({bootstrappedBlockTypes:ti,unprocessedBlockTypes:ni,blockTypes:ai,blockStyles:oi,blockVariations:ui,defaultBlockName:ii,freeformFallbackBlockName:si,unregisteredFallbackBlockName:di,groupingBlockName:ci,categories:li,collections:fi,blockBindingsSources:mi});var At={};Ie(At,{__experimentalHasContentRoleAttribute:()=>qi,getActiveBlockVariation:()=>Ai,getBlockStyles:()=>Bi,getBlockSupport:()=>Ra,getBlockType:()=>Me,getBlockTypes:()=>Oa,getBlockVariations:()=>Ct,getCategories:()=>Ni,getChildBlockNames:()=>Bt,getCollections:()=>Li,getDefaultBlockName:()=>Pi,getDefaultBlockVariation:()=>Si,getFreeformFallbackBlockName:()=>Oi,getGroupingBlockName:()=>Di,getUnregisteredFallbackBlockName:()=>Ri,hasBlockSupport:()=>Da,hasChildBlocks:()=>ji,hasChildBlocksWithInserterSupport:()=>zi,isMatchingSearchTerm:()=>Mi});var Sa=B(Ea()),wr=B(Be()),Na=B(xe()),La=B(ee());var Ae=(e,t,r)=>{let a=Array.isArray(t)?t:t.split("."),o=e;return a.forEach(s=>{o=o?.[s]}),o??r};function Ta(e){return typeof e=="object"&&e.constructor===Object&&e!==null}function vt(e,t){return Ta(e)&&Ta(t)?Object.entries(t).every(([r,a])=>vt(e?.[r],a)):e===t}var Tt={};Ie(Tt,{getAllBlockBindingsSources:()=>Ei,getBlockBindingsSource:()=>Ti,getBlockBindingsSourceFieldsList:()=>Ci,getBootstrappedBlockType:()=>ki,getSupportedStyles:()=>wi,getUnprocessedBlockTypes:()=>vi,hasContentRoleAttribute:()=>Et});var Ke=B(Be()),Ba=B(ee());var yi=["background","backgroundColor","color","linkColor","captionColor","buttonColor","headingColor","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","padding","contentSize","wideSize","blockGap","textAlign","textDecoration","textTransform","letterSpacing"];function Ca(e,t,r){return e.filter(a=>!(a==="fontSize"&&r==="heading"||a==="textDecoration"&&!t&&r!=="link"||a==="textTransform"&&!t&&!(["heading","h1","h2","h3","h4","h5","h6"].includes(r)||r==="button"||r==="caption"||r==="text")||a==="letterSpacing"&&!t&&!(["heading","h1","h2","h3","h4","h5","h6"].includes(r)||r==="button"||r==="caption"||r==="text")||a==="textColumns"&&!t))}var wi=(0,Ke.createSelector)((e,t,r)=>{if(!t)return Ca(yi,t,r);let a=Me(e,t);if(!a)return[];let o=[];return a?.supports?.spacing?.blockGap&&o.push("blockGap"),a?.supports?.shadow&&o.push("shadow"),Object.keys(pe).forEach(s=>{if(pe[s].support){if(pe[s].requiresOptOut&&pe[s].support[0]in a.supports&&Ae(a.supports,pe[s].support)!==!1){o.push(s);return}Ae(a.supports,pe[s].support,!1)&&o.push(s)}}),Ca(o,t,r)},(e,t)=>[e.blockTypes[t]]);function ki(e,t){return e.bootstrappedBlockTypes[t]}function vi(e){return e.unprocessedBlockTypes}function Ei(e){return e.blockBindingsSources}function Ti(e,t){return e.blockBindingsSources[t]}var Ci=(0,Ke.createRegistrySelector)(e=>(0,Ke.createSelector)((t,r,a)=>{if(!r.getFieldsList)return[];let o={};if(r?.usesContext?.length)for(let s of r.usesContext)o[s]=a[s];return r.getFieldsList({select:e,context:o})},(t,r,a)=>[r.getFieldsList,r.usesContext,a])),Et=(e,t)=>{let r=Me(e,t);return r?Object.values(r.attributes).some(({role:a,__experimentalRole:o})=>a==="content"?!0:o==="content"?((0,Ba.default)("__experimentalRole attribute",{since:"6.7",version:"6.8",alternative:"role attribute",hint:`Check the block.json of the ${t} block.`}),!0):!1):!1};var Pa=(e,t)=>typeof t=="string"?Me(e,t):t,Oa=(0,wr.createSelector)(e=>Object.values(e.blockTypes),e=>[e.blockTypes]);function Me(e,t){return e.blockTypes[t]}function Bi(e,t){return e.blockStyles[t]}var Ct=(0,wr.createSelector)((e,t,r)=>{let a=e.blockVariations[t];return!a||!r?a:a.filter(o=>(o.scope||["block","inserter"]).includes(r))},(e,t)=>[e.blockVariations[t]]);function Ai(e,t,r,a){let o=Ct(e,t,a);if(!o)return o;let s=Me(e,t),c=Object.keys(s?.attributes||{}),h,_=0;for(let b of o)if(Array.isArray(b.isActive)){let E=b.isActive.filter(j=>{let I=j.split(".")[0];return c.includes(I)}),L=E.length;if(L===0)continue;E.every(j=>{let I=Ae(b.attributes,j);if(I===void 0)return!1;let G=Ae(r,j);return G instanceof Na.RichTextData&&(G=G.toHTMLString()),vt(G,I)})&&L>_&&(h=b,_=L)}else if(b.isActive?.(r,b.attributes))return h||b;return!h&&["block","transform"].includes(a)&&(h=o.find(b=>b?.isDefault&&!Object.hasOwn(b,"isActive"))),h}function Si(e,t,r){let a=Ct(e,t,r);return[...a].reverse().find(({isDefault:s})=>!!s)||a[0]}function Ni(e){return e.categories}function Li(e){return e.collections}function Pi(e){return e.defaultBlockName}function Oi(e){return e.freeformFallbackBlockName}function Ri(e){return e.unregisteredFallbackBlockName}function Di(e){return e.groupingBlockName}var Bt=(0,wr.createSelector)((e,t)=>Oa(e).filter(r=>r.parent?.includes(t)).map(({name:r})=>r),e=>[e.blockTypes]),Ra=(e,t,r,a)=>{let o=Pa(e,t);return o?.supports?Ae(o.supports,r,a):a};function Da(e,t,r,a){return!!Ra(e,t,r,a)}function Aa(e){return(0,Sa.default)(e??"").toLowerCase().trim()}function Mi(e,t,r=""){let a=Pa(e,t),o=Aa(r),s=c=>Aa(c).includes(o);return s(a.title)||a.keywords?.some(s)||s(a.category)||typeof a.description=="string"&&s(a.description)}var ji=(e,t)=>Bt(e,t).length>0,zi=(e,t)=>Bt(e,t).some(r=>Da(e,r,"inserter",!0)),qi=(...e)=>((0,La.default)("__experimentalHasContentRoleAttribute",{since:"6.7",version:"6.8",hint:"This is a private selector."}),Et(...e));var Pt={};Ie(Pt,{__experimentalReapplyBlockFilters:()=>Ui,addBlockCollection:()=>rs,addBlockStyles:()=>$i,addBlockTypes:()=>Hi,addBlockVariations:()=>Ki,reapplyBlockTypeFilters:()=>Ga,removeBlockCollection:()=>ts,removeBlockStyles:()=>Gi,removeBlockTypes:()=>Fi,removeBlockVariations:()=>Wi,setCategories:()=>Ji,setDefaultBlockName:()=>Yi,setFreeformFallbackBlockName:()=>Xi,setGroupingBlockName:()=>Qi,setUnregisteredFallbackBlockName:()=>Zi,updateCategory:()=>es});var $a=B(ee());function Ma(e){return Object.prototype.toString.call(e)==="[object Object]"}function ja(e){var t,r;return Ma(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(Ma(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}var Ua=B(Va()),Fa=B(ee()),Lt=B(We()),Q=B(lt());var Ha={common:"text",formatting:"text",layout:"design"};function xi(e=[],t=[]){let r=[...e];return t.forEach(a=>{let o=r.findIndex(s=>s.name===a.name);o!==-1?r[o]={...r[o],...a}:r.push(a)}),r}var Pr=(e,t)=>({select:r})=>{let a=r.getBootstrappedBlockType(e),o={apiVersion:1,name:e,icon:cr,keywords:[],attributes:{},providesContext:{},usesContext:[],selectors:{},supports:{},styles:[],blockHooks:{},save:()=>null,...a,...t,variations:xi(Array.isArray(a?.variations)?a.variations:[],Array.isArray(t?.variations)?t.variations:[])};(!o.attributes||typeof o.attributes!="object")&&((0,Q.default)('The block "'+e+'" is registering attributes as `null` or `undefined`. Use an empty object (`attributes: {}`) or exclude the `attributes` key.'),o.attributes={});let s=(0,Lt.applyFilters)("blocks.registerBlockType",o,e,null);if(s.apiVersion<=2&&(0,Q.default)(`The block "${e}" is registered with API version 2 or lower. This means that the post editor may work as a non-iframe editor.
Since all editors are planned to work as iframes in the future, set the \`apiVersion\` field to 3 and test the block inside the iframe editor.
See: https://developer.wordpress.org/block-editor/reference-guides/block-api/block-api-versions/#version-3-wordpress-6-3`),s.description&&typeof s.description!="string"&&(0,Fa.default)("Declaring non-string block descriptions",{since:"6.2"}),s.deprecated&&(s.deprecated=s.deprecated.map(c=>Object.fromEntries(Object.entries((0,Lt.applyFilters)("blocks.registerBlockType",{...ce(o,He),...c},o.name,c)).filter(([h])=>He.includes(h))))),!ja(s)){(0,Q.default)("Block settings must be a valid object.");return}if(typeof s.save!="function"){(0,Q.default)('The "save" property must be a valid function.');return}if("edit"in s&&!(0,Ua.isValidElementType)(s.edit)){(0,Q.default)('The "edit" property must be a valid component.');return}if(Ha.hasOwnProperty(s.category)&&(s.category=Ha[s.category]),"category"in s&&!r.getCategories().some(({slug:c})=>c===s.category)&&((0,Q.default)('The block "'+e+'" is registered with an invalid category "'+s.category+'".'),delete s.category),!("title"in s)||s.title===""){(0,Q.default)('The block "'+e+'" must have a title.');return}if(typeof s.title!="string"){(0,Q.default)("Block titles must be strings.");return}if(s.icon=gr(s.icon),!$e(s.icon.src)){(0,Q.default)("The icon passed is invalid. The icon should be a string, an element, a function, or an object following the specifications documented in https://developer.wordpress.org/block-editor/developers/block-api/block-registration/#icon-optional");return}if((typeof s?.parent=="string"||s?.parent instanceof String)&&(s.parent=[s.parent],(0,Q.default)("Parent must be undefined or an array of strings (block types), but it is a string.")),!Array.isArray(s?.parent)&&s?.parent!==void 0){(0,Q.default)("Parent must be undefined or an array of block types, but it is ",s.parent);return}if(s?.parent?.length===1&&e===s.parent[0]){(0,Q.default)('Block "'+e+'" cannot be a parent of itself. Please remove the block name from the parent list.');return}return s};function Hi(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Array.isArray(e)?e:[e]}}function Ga(){return({dispatch:e,select:t})=>{let r=[];for(let[a,o]of Object.entries(t.getUnprocessedBlockTypes())){let s=e(Pr(a,o));s&&r.push(s)}r.length&&e.addBlockTypes(r)}}function Ui(){return(0,$a.default)('wp.data.dispatch( "core/blocks" ).__experimentalReapplyBlockFilters',{since:"6.4",alternative:"reapplyBlockFilters"}),Ga()}function Fi(e){return{type:"REMOVE_BLOCK_TYPES",names:Array.isArray(e)?e:[e]}}function $i(e,t){return{type:"ADD_BLOCK_STYLES",styles:Array.isArray(t)?t:[t],blockNames:Array.isArray(e)?e:[e]}}function Gi(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Array.isArray(t)?t:[t],blockName:e}}function Ki(e,t){return{type:"ADD_BLOCK_VARIATIONS",variations:Array.isArray(t)?t:[t],blockName:e}}function Wi(e,t){return{type:"REMOVE_BLOCK_VARIATIONS",variationNames:Array.isArray(t)?t:[t],blockName:e}}function Yi(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function Xi(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function Zi(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function Qi(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function Ji(e){return{type:"SET_CATEGORIES",categories:e}}function es(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}function rs(e,t,r){return{type:"ADD_BLOCK_COLLECTION",namespace:e,title:t,icon:r}}function ts(e){return{type:"REMOVE_BLOCK_COLLECTION",namespace:e}}var Ot={};Ie(Ot,{addBlockBindingsSource:()=>os,addBootstrappedBlockType:()=>ns,addUnprocessedBlockType:()=>as,removeBlockBindingsSource:()=>us});function ns(e,t){return{type:"ADD_BOOTSTRAPPED_BLOCK_TYPE",name:e,blockType:t}}function as(e,t){return({dispatch:r})=>{r({type:"ADD_UNPROCESSED_BLOCK_TYPE",name:e,blockType:t});let a=r(Pr(e,t));a&&r.addBlockTypes(a)}}function os(e){return{type:"ADD_BLOCK_BINDINGS_SOURCE",name:e.name,label:e.label,usesContext:e.usesContext,getValues:e.getValues,setValues:e.setValues,canUserEditValue:e.canUserEditValue,getFieldsList:e.getFieldsList}}function us(e){return{type:"REMOVE_BLOCK_BINDINGS_SOURCE",name:e}}var Ka="core/blocks";var P=(0,Or.createReduxStore)(Ka,{reducer:ya,selectors:At,actions:Pt});(0,Or.register)(P);oe(P).registerPrivateSelectors(Tt);oe(P).registerPrivateActions(Ot);var Rr,is=new Uint8Array(16);function Rt(){if(!Rr&&(Rr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Rr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Rr(is)}var H=[];for(let e=0;e<256;++e)H.push((e+256).toString(16).slice(1));function Wa(e,t=0){return H[e[t+0]]+H[e[t+1]]+H[e[t+2]]+H[e[t+3]]+"-"+H[e[t+4]]+H[e[t+5]]+"-"+H[e[t+6]]+H[e[t+7]]+"-"+H[e[t+8]]+H[e[t+9]]+"-"+H[e[t+10]]+H[e[t+11]]+H[e[t+12]]+H[e[t+13]]+H[e[t+14]]+H[e[t+15]]}var ss=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Dt={randomUUID:ss};function ds(e,t,r){if(Dt.randomUUID&&!t&&!e)return Dt.randomUUID();e=e||{};let a=e.random||(e.rng||Rt)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,t){r=r||0;for(let o=0;o<16;++o)t[r+o]=a[o];return t}return Wa(a)}var Ye=ds;var Dr=B(We());function U(e,t={},r=[]){if(!yt(e))return U("core/missing",{originalName:e,originalContent:"",originalUndelimitedContent:""});let a=Ge(e,t);return{clientId:Ye(),name:e,isValid:!0,attributes:a,innerBlocks:r}}function jt(e=[]){return e.map(t=>{let r=Array.isArray(t)?t:[t.name,t.attributes,t.innerBlocks],[a,o,s=[]]=r;return U(a,o,jt(s))})}function zt(e,t={},r){let{name:a}=e;if(!yt(a))return U("core/missing",{originalName:a,originalContent:"",originalUndelimitedContent:""});let o=Ye(),s=Ge(a,{...e.attributes,...t});return{...e,clientId:o,attributes:s,innerBlocks:r||e.innerBlocks.map(c=>zt(c))}}function qt(e,t={},r){let a=Ye();return{...e,clientId:a,attributes:{...e.attributes,...t},innerBlocks:r||e.innerBlocks.map(o=>qt(o))}}var Xa=(e,t,r)=>{if(!r.length)return!1;let a=r.length>1,o=r[0].name;if(!(je(e)||!a||e.isMultiBlock)||!je(e)&&!r.every(b=>b.name===o)||!(e.type==="block"))return!1;let h=r[0];return!(!(t!=="from"||e.blocks.indexOf(h.name)!==-1||je(e))||!a&&t==="from"&&Ya(h.name)&&Ya(e.blockName)||!Mt(e,r))},cs=e=>e.length?Ue().filter(a=>{let o=ue("from",a.name);return!!he(o,s=>Xa(s,"from",e))}):[],ls=e=>{if(!e.length)return[];let t=e[0],r=M(t.name);return(r?ue("to",r.name):[]).filter(c=>c&&Xa(c,"to",e)).map(c=>c.blocks).flat().map(M)},je=e=>e&&e.type==="block"&&Array.isArray(e.blocks)&&e.blocks.includes("*"),Ya=e=>e===fr();function Za(e){if(!e.length)return[];let t=cs(e),r=ls(e);return[...new Set([...t,...r])]}function he(e,t){let r=(0,Dr.createHooks)();for(let a=0;as||o,o.priority)}return r.applyFilters("transform",null)}function ue(e,t){if(t===void 0)return Ue().map(({name:h})=>ue(e,h)).flat();let r=de(t),{name:a,transforms:o}=r||{};if(!o||!Array.isArray(o[e]))return[];let s=o.supportedMobileTransforms&&Array.isArray(o.supportedMobileTransforms);return(s?o[e].filter(h=>h.type==="raw"||h.type==="prefix"?!0:!h.blocks||!h.blocks.length?!1:je(h)?!0:h.blocks.every(_=>o.supportedMobileTransforms.includes(_))):o[e]).map(h=>({...h,blockName:a,usingMobileTransformations:s}))}function Mt(e,t){if(typeof e.isMatch!="function")return!0;let r=t[0],a=e.isMultiBlock?t.map(s=>s.attributes):r.attributes,o=e.isMultiBlock?t:r;return e.isMatch(a,o)}function Qa(e,t){let r=Array.isArray(e)?e:[e],a=r.length>1,o=r[0],s=o.name,c=ue("from",t),h=ue("to",s),_=he(h,N=>N.type==="block"&&(je(N)||N.blocks.indexOf(t)!==-1)&&(!a||N.isMultiBlock)&&Mt(N,r))||he(c,N=>N.type==="block"&&(je(N)||N.blocks.indexOf(s)!==-1)&&(!a||N.isMultiBlock)&&Mt(N,r));if(!_)return null;let b;return _.isMultiBlock?"__experimentalConvert"in _?b=_.__experimentalConvert(r):b=_.transform(r.map(N=>N.attributes),r.map(N=>N.innerBlocks)):"__experimentalConvert"in _?b=_.__experimentalConvert(o):b=_.transform(o.attributes,o.innerBlocks),b===null||typeof b!="object"||(b=Array.isArray(b)?b:[b],b.some(N=>!M(N.name)))||!b.some(N=>N.name===t)?null:b.map((N,j,I)=>(0,Dr.applyFilters)("blocks.switchToBlockType.transformedBlock",N,e,j,I))}var It=(e,t)=>U(e,t.attributes,(t.innerBlocks??[]).map(r=>It(r.name,r)));var Fo=B(eo()),$o=B(Vt());var ve=B(De()),ke=B(We()),uo=B(no()),io=B(Vt()),so=B(ee());function we(e,t={}){let{isCommentDelimited:r=!0}=t,{blockName:a,attrs:o={},innerBlocks:s=[],innerContent:c=[]}=e,h=0,_=c.map(b=>b!==null?b:we(s[h++],t)).join(`
`).replace(/\n+/g,`
`).trim();return r?xt(a,o,_):_}var co=B(oo());function lo(e){let t="wp-block-"+e.replace(/\//,"-").replace(/^core-/,"");return(0,ke.applyFilters)("blocks.getBlockDefaultClassName",t,e)}function fo(e){let t="editor-block-list-item-"+e.replace(/\//,"-").replace(/^core-/,"");return(0,ke.applyFilters)("blocks.getBlockMenuDefaultClassName",t,e)}var Ht={},po={};function Ut(e={}){let{blockType:t,attributes:r}=Ht;return Ut.skipFilters?e:(0,ke.applyFilters)("blocks.getSaveContent.extraProps",{...e},t,r)}function mo(e={}){let{innerBlocks:t}=po;if(!Array.isArray(t))return{...e,children:t};let r=Mr(t,{isInnerBlocks:!0});return{...e,children:(0,co.jsx)(ve.RawHTML,{children:r})}}function Ft(e,t,r=[]){let a=de(e);if(!a?.save)return null;let{save:o}=a;if(o.prototype instanceof ve.Component){let c=new o({attributes:t});o=c.render.bind(c)}Ht.blockType=a,Ht.attributes=t,po.innerBlocks=r;let s=o({attributes:t,innerBlocks:r});if(s!==null&&typeof s=="object"&&(0,ke.hasFilter)("blocks.getSaveContent.extraProps")&&!(a.apiVersion>1)){let c=(0,ke.applyFilters)("blocks.getSaveContent.extraProps",{...s.props},a,t);(0,uo.default)(c,s.props)||(s=(0,ve.cloneElement)(s,c))}return(0,ke.applyFilters)("blocks.getSaveElement",s,a,t)}function ge(e,t,r){let a=de(e);return(0,ve.renderToString)(Ft(a,t,r))}function fs(e,t){return Object.entries(e.attributes??{}).reduce((r,[a,o])=>{let s=t[a];return s===void 0||o.source!==void 0||o.role==="local"?r:o.__experimentalRole==="local"?((0,so.default)("__experimentalRole attribute",{since:"6.7",version:"6.8",alternative:"role attribute",hint:`Check the block.json of the ${e?.name} block.`}),r):("default"in o&&JSON.stringify(o.default)===JSON.stringify(s)||(r[a]=s),r)},{})}function ps(e){return JSON.stringify(e).replaceAll("\\\\","\\u005c").replaceAll("--","\\u002d\\u002d").replaceAll("<","\\u003c").replaceAll(">","\\u003e").replaceAll("&","\\u0026").replaceAll('\\"',"\\u0022")}function Xe(e){let t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=ge(e.name,e.attributes,e.innerBlocks)}catch{}return t}function xt(e,t,r){let a=t&&Object.entries(t).length?ps(t)+" ":"",o=e?.startsWith("core/")?e.slice(5):e;return r?`
`+r+`
`:``}function ms(e,{isInnerBlocks:t=!1}={}){if(!e.isValid&&e.__unstableBlockSource)return we(e.__unstableBlockSource);let r=e.name,a=Xe(e);if(r===me()||!t&&r===re())return a;let o=M(r);if(!o)return a;let s=fs(o,e.attributes);return xt(r,s,a)}function ho(e){e.length===1&&hr(e[0])&&(e=[]);let t=Mr(e);return e.length===1&&e[0].name===re()&&e[0].name==="core/freeform"&&(t=(0,io.removep)(t)),t}function Mr(e,t){return(Array.isArray(e)?e:[e]).map(a=>ms(a,t)).join(`
`)}var hs=/^#[xX]([A-Fa-f0-9]+)$/,gs=/^#([0-9]+)$/,bs=/^([A-Za-z0-9]+)$/,dl=(function(){function e(t){this.named=t}return e.prototype.parse=function(t){if(t){var r=t.match(hs);if(r)return String.fromCharCode(parseInt(r[1],16));if(r=t.match(gs),r)return String.fromCharCode(parseInt(r[1],10));if(r=t.match(bs),r)return this.named[r[1]]}},e})(),_s=/[\t\n\f ]/,ys=/[A-Za-z]/,ws=/\r\n?/g;function Se(e){return _s.test(e)}function go(e){return ys.test(e)}function ks(e){return e.replace(ws,`
`)}var vs=(function(){function e(t,r){this.delegate=t,this.entityParser=r,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var a=this.peek();if(a==="<")this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(a===`
`){var o=this.tagNameBuffer.toLowerCase();(o==="pre"||o==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var a=this.peek();a==="<"?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):a==="&"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(a))},tagOpen:function(){var a=this.consume();a==="!"?this.transitionTo("markupDeclarationOpen"):a==="/"?this.transitionTo("endTagOpen"):(a==="@"||a===":"||go(a))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(a))},markupDeclarationOpen:function(){var a=this.consume();a==="-"&&this.input.charAt(this.index)==="-"&&(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment())},commentStart:function(){var a=this.consume();a==="-"?this.transitionTo("commentStartDash"):a===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(a),this.transitionTo("comment"))},commentStartDash:function(){var a=this.consume();a==="-"?this.transitionTo("commentEnd"):a===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var a=this.consume();a==="-"?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(a)},commentEndDash:function(){var a=this.consume();a==="-"?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+a),this.transitionTo("comment"))},commentEnd:function(){var a=this.consume();a===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+a),this.transitionTo("comment"))},tagName:function(){var a=this.consume();Se(a)?this.transitionTo("beforeAttributeName"):a==="/"?this.transitionTo("selfClosingStartTag"):a===">"?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(a)},beforeAttributeName:function(){var a=this.peek();if(Se(a)){this.consume();return}else a==="/"?(this.transitionTo("selfClosingStartTag"),this.consume()):a===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):a==="="?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(a)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var a=this.peek();Se(a)?(this.transitionTo("afterAttributeName"),this.consume()):a==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):a==="="?(this.transitionTo("beforeAttributeValue"),this.consume()):a===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):a==='"'||a==="'"||a==="<"?(this.delegate.reportSyntaxError(a+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(a)):(this.consume(),this.delegate.appendToAttributeName(a))},afterAttributeName:function(){var a=this.peek();if(Se(a)){this.consume();return}else a==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):a==="="?(this.consume(),this.transitionTo("beforeAttributeValue")):a===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(a))},beforeAttributeValue:function(){var a=this.peek();Se(a)?this.consume():a==='"'?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):a==="'"?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):a===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(a))},attributeValueDoubleQuoted:function(){var a=this.consume();a==='"'?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):a==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(a)},attributeValueSingleQuoted:function(){var a=this.consume();a==="'"?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):a==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(a)},attributeValueUnquoted:function(){var a=this.peek();Se(a)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):a==="/"?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):a==="&"?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):a===">"?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(a))},afterAttributeValueQuoted:function(){var a=this.peek();Se(a)?(this.consume(),this.transitionTo("beforeAttributeName")):a==="/"?(this.consume(),this.transitionTo("selfClosingStartTag")):a===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){var a=this.peek();a===">"?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var a=this.consume();(a==="@"||a===":"||go(a))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(a))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(t){this.state=t},e.prototype.tokenize=function(t){this.reset(),this.tokenizePart(t),this.tokenizeEOF()},e.prototype.tokenizePart=function(t){for(this.input+=ks(t);this.indext("Block validation: "+r,...a)}return{error:e(console.error),warning:e(console.warn),getItems(){return[]}}}function vo(){let e=[],t=Ne();return{error(...r){e.push({log:t.error,args:r})},warning(...r){e.push({log:t.warning,args:r})},getItems(){return e}}}var Es=e=>e,Ts=/[\t\n\r\v\f ]+/g,Cs=/^[\t\n\r\v\f ]*$/,Bs=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,No=["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"],As=["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"],Ss=[...No,...As],Eo=[Es,Ds],Ns=/^[\da-z]+$/i,Ls=/^#\d+$/,Ps=/^#x[\da-f]+$/i;function Os(e){return Ns.test(e)||Ls.test(e)||Ps.test(e)}var Rs=class{parse(e){if(Os(e))return(0,So.decodeEntities)("&"+e+";")}};function $t(e){return e.trim().split(Ts)}function Ds(e){return $t(e).join(" ")}function Ms(e){return e.attributes.filter(t=>{let[r,a]=t;return a||r.indexOf("data-")===0||Ss.includes(r)})}function To(e,t,r=Ne()){let a=e.chars,o=t.chars;for(let s=0;s{let[a,...o]=r.split(":"),s=o.join(":");return[a.trim(),zs(s.trim())]});return Object.fromEntries(t)}var Is={class:(e,t)=>{let[r,a]=[e,t].map($t),o=r.filter(c=>!a.includes(c)),s=a.filter(c=>!r.includes(c));return o.length===0&&s.length===0},style:(e,t)=>(0,Bo.default)(...[e,t].map(qs)),...Object.fromEntries(No.map(e=>[e,()=>!0]))};function Vs(e,t,r=Ne()){if(e.length!==t.length)return r.warning("Expected attributes %o, instead saw %o.",t,e),!1;let a={};for(let o=0;oe.tagName!==t.tagName&&e.tagName.toLowerCase()!==t.tagName.toLowerCase()?(r.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):Vs(...[e,t].map(Ms),r),Chars:To,Comment:To};function Ze(e){let t;for(;t=e.shift();)if(t.type!=="Chars"||!Cs.test(t.chars))return t}function Hs(e,t=Ne()){try{return new bo(new Rs).tokenize(e)}catch{t.warning("Malformed HTML detected: %s",e)}return null}function Co(e,t){return e.selfClosing?!!(t&&t.tagName===e.tagName&&t.type==="EndTag"):!1}function Us(e,t,r=Ne()){if(e===t)return!0;let[a,o]=[e,t].map(h=>Hs(h,r));if(!a||!o)return!1;let s,c;for(;s=Ze(a);){if(c=Ze(o),!c)return r.warning("Expected end of content, instead saw %o.",s),!1;if(s.type!==c.type)return r.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",c.type,c,s.type,s),!1;let h=xs[s.type];if(h&&!h(s,c,r))return!1;Co(s,o[0])?Ze(o):Co(c,a[0])&&Ze(a)}return(c=Ze(o))?(r.warning("Expected %o, instead saw end of content.",c),!1):!0}function be(e,t=e.name){if(e.name===re()||e.name===me())return[!0,[]];let a=vo(),o=de(t),s;try{s=ge(o,e.attributes)}catch(h){return a.error(`Block validation failed because an error occurred while generating block content:
%s`,h.toString()),[!1,a.getItems()]}let c=Us(e.originalContent,s,a);return c||a.error(`Block validation failed for \`%s\` (%o).
Content generated by \`save\` function:
%s
Content retrieved from post body:
%s`,o.name,o,s,e.originalContent),[c,a.getItems()]}function Lo(e,t,r){(0,Ao.default)("isValidBlockContent introduces opportunity for data loss",{since:"12.6",plugin:"Gutenberg",alternative:"validateBlock"});let a=de(e),o={name:a.name,attributes:t,innerBlocks:[],originalContent:r},[s]=be(o,a);return s}function jr(e,t){let r={...t};if(e==="core/cover-image"&&(e="core/cover"),(e==="core/text"||e==="core/cover-text")&&(e="core/paragraph"),e&&e.indexOf("core/social-link-")===0&&(r.service=e.substring(17),e="core/social-link"),e&&e.indexOf("core-embed/")===0){let a=e.substring(11),o={speaker:"speaker-deck",polldaddy:"crowdsignal"};r.providerNameSlug=a in o?o[a]:a,["amazon-kindle","wordpress"].includes(a)||(r.responsive=!0),e="core/embed"}if(e==="core/post-comment-author"&&(e="core/comment-author-name"),e==="core/post-comment-content"&&(e="core/comment-content"),e==="core/post-comment-date"&&(e="core/comment-date"),e==="core/comments-query-loop"){e="core/comments";let{className:a=""}=r;a.includes("wp-block-comments-query-loop")||(r.className=["wp-block-comments-query-loop",a].join(" "))}if(e==="core/post-comments"&&(e="core/comments",r.legacy=!0),t.layout?.type==="grid"&&typeof t.layout?.columnCount=="string"&&(r.layout={...r.layout,columnCount:parseInt(t.layout.columnCount,10)}),typeof t.style?.layout?.columnSpan=="string"){let a=parseInt(t.style.layout.columnSpan,10);r.style={...r.style,layout:{...r.style.layout,columnSpan:isNaN(a)?void 0:a}}}if(typeof t.style?.layout?.rowSpan=="string"){let a=parseInt(t.style.layout.rowSpan,10);r.style={...r.style,layout:{...r.style.layout,rowSpan:isNaN(a)?void 0:a}}}return[e,r]}function Gt(e,t){for(var r=t.split("."),a;a=r.shift();){if(!(a in e))return;e=e[a]}return e}var Fs=(function(){var e;return function(){return e||(e=document.implementation.createHTMLDocument("")),e}})();function zr(e,t){if(t){if(typeof e=="string"){var r=Fs();r.body.innerHTML=e,e=r.body}if(typeof t=="function")return t(e);if(Object===t.constructor)return Object.keys(t).reduce(function(a,o){return a[o]=zr(e,t[o]),a},{})}}function Qe(e,t){return arguments.length===1&&(t=e,e=void 0),function(r){var a=r;if(e&&(a=r.querySelector(e)),a)return Gt(a,t)}}function Kt(e,t){return arguments.length===1&&(t=e,e=void 0),function(r){var a=Qe(e,"attributes")(r);if(a&&a.hasOwnProperty(t))return a[t].value}}function Wt(e){return Qe(e,"textContent")}function Yt(e,t){return function(r){var a=r.querySelectorAll(e);return[].map.call(a,function(o){return zr(o,t)})}}function Po(e,t){var r=0,a,o;t=t||{};function s(){var c=a,h=arguments.length,_,b;e:for(;c;){if(c.args.length!==arguments.length){c=c.next;continue}for(b=0;b{let r=t;return e&&(r=t.querySelector(e)),r?qr(r.childNodes):[]}}var Ro={concat:Gs,getChildrenArray:$s,fromDOM:qr,toHTML:Xt,matcher:Ir};function Ys(e,t){return(0,Je.default)("wp.blocks.node.isNodeOfType",{since:"6.1",version:"6.3",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),e&&e.type===t}function Xs(e){let t={};for(let r=0;r{let r=t;e&&(r=t.querySelector(e));try{return Vr(r)}catch{return null}}}var Do={isNodeOfType:Ys,fromDOM:Vr,toHTML:Zs,matcher:xr};function Mo(e,t){return r=>{let a=r;if(e&&(a=r.querySelector(e)),!a)return"";if(t){let o="",s=a.children.length;for(let c=0;cr=>{let a=e?r.querySelector(e):r;return a?Zt.RichTextData.fromHTMLElement(a,{preserveWhiteSpace:t}):Zt.RichTextData.empty()};var Qs=e=>t=>e(t)!==void 0;function Js(e,t){switch(t){case"rich-text":return e instanceof qo.RichTextData;case"string":return typeof e=="string";case"boolean":return typeof e=="boolean";case"object":return!!e&&e.constructor===Object;case"null":return e===null;case"array":return Array.isArray(e);case"integer":case"number":return typeof e=="number"}return!0}function ed(e,t){return t.some(r=>Js(e,r))}function rd(e,t,r,a,o){let s;switch(t.source){case void 0:s=a?a[e]:void 0;break;case"raw":s=o;break;case"attribute":case"property":case"html":case"text":case"rich-text":case"children":case"node":case"query":case"tag":s=Le(r,t);break}return(!td(s,t.type)||!nd(s,t.enum))&&(s=void 0),s===void 0&&(s=_t(t)),s}function td(e,t){return t===void 0||ed(e,Array.isArray(t)?t:[t])}function nd(e,t){return!Array.isArray(t)||t.includes(e)}var Io=Po(e=>{switch(e.source){case"attribute":{let r=Kt(e.selector,e.attribute);return e.type==="boolean"&&(r=Qs(r)),r}case"html":return Mo(e.selector,e.multiline);case"text":return Wt(e.selector);case"rich-text":return jo(e.selector,e.__unstablePreserveWhiteSpace);case"children":return Ir(e.selector);case"node":return xr(e.selector);case"query":let t=Object.fromEntries(Object.entries(e.query).map(([r,a])=>[r,Io(a)]));return Yt(e.selector,t);case"tag":{let r=Qe(e.selector,"nodeName");return a=>r(a)?.toLowerCase()}default:console.error(`Unknown source type "${e.source}"`)}});function Vo(e){return zr(e,t=>t)}function Le(e,t){return Io(t)(Vo(e))}function ie(e,t,r={}){let a=Vo(t),o=de(e),s=Object.fromEntries(Object.entries(o.attributes??{}).map(([c,h])=>[c,rd(c,h,a,r,t)]));return(0,zo.applyFilters)("blocks.getBlockAttributes",s,o,t,r)}var ad={type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"};function xo(e){let t=Le(`${e}`,ad);return t?t.trim().split(/\s+/):[]}function Ho(e,t,r){if(!se(t,"customClassName",!0))return e;let a={...e},{className:o,...s}=a,c=ge(t,s),h=xo(c),b=xo(r).filter(E=>!h.includes(E));return b.length?a.className=b.join(" "):c&&delete a.className,a}function od(e,t,r){return Le(`${e}`,r)}function Qt(e,t,r,a,o,s){if(!se(t,a,!1))return e;let c={...e},h=od(r,o,s);return h&&(c[a]=h),c}var ud={type:"string",source:"attribute",selector:"[data-aria-label] > *",attribute:"aria-label"},id={type:"string",source:"attribute",selector:"[data-anchor] > *",attribute:"id"};function Pe(e,t){let{attributes:r,originalContent:a}=e,o=r;return o=Ho(r,t,a),o=Qt(o,t,a,"ariaLabel","data-aria-label",ud),o=Qt(o,t,a,"anchor","data-anchor",id),{...e,attributes:o}}function sd(){return!1}function Uo(e,t,r){let a=t.attrs,{deprecated:o}=r;if(!o||!o.length)return e;for(let s=0;sGo(E,t)).filter(E=>!!E),c=U(r.blockName,ie(a,r.innerHTML,r.attrs),s);c.originalContent=r.innerHTML;let h=fd(c,a),{validationIssues:_}=h,b=Uo(h,r,a);return b.isValid||(b.__unstableBlockSource=e),!h.isValid&&b.isValid&&!t?.__unstableSkipMigrationLogs?(console.groupCollapsed("Updated Block: %s",a.name),console.info(`Block successfully updated for \`%s\` (%o).
New content generated by \`save\` function:
%s
Content retrieved from post body:
%s`,a.name,a,ge(a,b.attributes),b.originalContent),console.groupEnd()):!h.isValid&&!b.isValid&&_.forEach(({log:E,args:L})=>E(...L)),b}function Ee(e,t){return(0,Fo.parse)(e).reduce((r,a)=>{let o=Go(a,t);return o&&r.push(o),r},[])}var Bu=B(ee()),Au=B(Z());var Ko=B(De());function Hr(){return ue("from").filter(({type:e})=>e==="raw").map(e=>e.isMatch?e:{...e,isMatch:t=>e.selector&&t.matches(e.selector)})}function Ur(e,t){let r=document.implementation.createHTMLDocument("");return r.body.innerHTML=e,Array.from(r.body.children).flatMap(a=>{let o=he(Hr(),({isMatch:h})=>h(a));if(!o)return Ko.Platform.isNative?Ee(`${a.outerHTML}`):U("core/html",ie("core/html",a.outerHTML));let{transform:s,blockName:c}=o;if(s){let h=s(a,t);return a.hasAttribute("class")&&(h.attributes.className=a.getAttribute("class")),h}return U(c,ie(c,a.outerHTML))})}var er=B(Z());function Te(e,t={}){let r=document.implementation.createHTMLDocument(""),a=document.implementation.createHTMLDocument(""),o=r.body,s=a.body;for(o.innerHTML=e;o.firstChild;){let c=o.firstChild;c.nodeType===c.TEXT_NODE?(0,er.isEmpty)(c)?o.removeChild(c):((!s.lastChild||s.lastChild.nodeName!=="P")&&s.appendChild(a.createElement("P")),s.lastChild.appendChild(c)):c.nodeType===c.ELEMENT_NODE?c.nodeName==="BR"?(c.nextSibling&&c.nextSibling.nodeName==="BR"&&(s.appendChild(a.createElement("P")),o.removeChild(c.nextSibling)),s.lastChild&&s.lastChild.nodeName==="P"&&s.lastChild.hasChildNodes()?s.lastChild.appendChild(c):o.removeChild(c)):c.nodeName==="P"?(0,er.isEmpty)(c)&&!t.raw?o.removeChild(c):s.appendChild(c):(0,er.isPhrasingContent)(c)?((!s.lastChild||s.lastChild.nodeName!=="P")&&s.appendChild(a.createElement("P")),s.lastChild.appendChild(c)):s.appendChild(c):o.removeChild(c)}return s.innerHTML}var rr=B(Z());function Fr(e,t){if(e.nodeType!==e.COMMENT_NODE||e.nodeValue!=="nextpage"&&e.nodeValue.indexOf("more")!==0)return;let r=pd(e,t);if(!e.parentNode||e.parentNode.nodeName!=="P")(0,rr.replace)(e,r);else{let a=Array.from(e.parentNode.childNodes),o=a.indexOf(e),s=e.parentNode.parentNode||t.body,c=(h,_)=>(h||(h=t.createElement("p")),h.appendChild(_),h);[a.slice(0,o).reduce(c,null),r,a.slice(o+1).reduce(c,null)].forEach(h=>h&&s.insertBefore(h,e.parentNode)),(0,rr.remove)(e.parentNode)}}function pd(e,t){if(e.nodeValue==="nextpage")return hd(t);let r=e.nodeValue.slice(4).trim(),a=e,o=!1;for(;a=a.nextSibling;)if(a.nodeType===a.COMMENT_NODE&&a.nodeValue==="noteaser"){o=!0,(0,rr.remove)(a);break}return md(r,o,t)}function md(e,t,r){let a=r.createElement("wp-block");return a.dataset.block="core/more",e&&(a.dataset.customText=e),t&&(a.dataset.noTeaser=""),a}function hd(e){let t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}var Yo=B(Z());function Wo(e){return e.nodeName==="OL"||e.nodeName==="UL"}function gd(e){return Array.from(e.childNodes).map(({nodeValue:t=""})=>t).join("")}function $r(e){if(!Wo(e))return;let t=e,r=e.previousElementSibling;if(r&&r.nodeName===e.nodeName&&t.children.length===1){for(;t.firstChild;)r.appendChild(t.firstChild);t.parentNode.removeChild(t)}let a=e.parentNode;if(a&&a.nodeName==="LI"&&a.children.length===1&&!/\S/.test(gd(a))){let o=a,s=o.previousElementSibling,c=o.parentNode;s&&(s.appendChild(t),c.removeChild(o))}if(a&&Wo(a)){let o=e.previousElementSibling;o?o.appendChild(e):(0,Yo.unwrap)(e)}}function Gr(e){return t=>{t.nodeName==="BLOCKQUOTE"&&(t.innerHTML=Te(t.innerHTML,e))}}var Xo=B(Z());function bd(e,t){let r=e.nodeName.toLowerCase();return r==="figcaption"||(0,Xo.isTextContent)(e)?!1:r in(t?.figure?.children??{})}function _d(e,t){return e.nodeName.toLowerCase()in(t?.figure?.children?.a?.children??{})}function Jt(e,t=e){let r=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(r,t),r.appendChild(e)}function Kr(e,t,r){if(!bd(e,r))return;let a=e,o=e.parentNode;_d(e,r)&&o.nodeName==="A"&&o.childNodes.length===1&&(a=e.parentNode);let s=a.closest("p,div");s?e.classList?(e.classList.contains("alignright")||e.classList.contains("alignleft")||e.classList.contains("aligncenter")||!s.textContent.trim())&&Jt(a,s):Jt(a,s):Jt(a)}var nr=B(Qo());var Jo=e=>Array.isArray(e)?e:[e],eu=/(\n|)\s*$/,ru=/^\s*(\n|<\/p>)/;function tr(e,t=0,r=[]){let a=ue("from"),o=he(a,b=>r.indexOf(b.blockName)===-1&&b.type==="shortcode"&&Jo(b.tag).some(E=>(0,nr.regexp)(E).test(e)));if(!o)return[e];let c=Jo(o.tag).find(b=>(0,nr.regexp)(b).test(e)),h,_=t;if(h=(0,nr.next)(c,e,t)){t=h.index+h.content.length;let b=e.substr(0,h.index),E=e.substr(t);if(!h.shortcode.content?.includes("<")&&!(eu.test(b)&&ru.test(E)))return tr(e,t);if(o.isMatch&&!o.isMatch(h.shortcode.attrs))return tr(e,_,[...r,o.blockName]);let L=[];if(typeof o.transform=="function")L=[].concat(o.transform(h.shortcode.attrs,h)),L=L.map(N=>(N.originalContent=h.shortcode.content,Pe(N,M(N.name))));else{let N=Object.fromEntries(Object.entries(o.attributes).filter(([,Ce])=>Ce.shortcode).map(([Ce,ur])=>[Ce,ur.shortcode(h.shortcode.attrs,h)])),j=M(o.blockName);if(!j)return[e];let I={...j,attributes:o.attributes},G=U(o.blockName,ie(I,h.shortcode.content,N));G.originalContent=h.shortcode.content,G=Pe(G,I),L=[G]}return[...tr(b.replace(eu,"")),...L,...tr(E.replace(ru,""))]}return[e]}var Wr=tr;var ar=B(Z());function yd(e,t){let a={phrasingContentSchema:(0,ar.getPhrasingContentSchema)(t),isPaste:t==="paste"},o=e.map(({isMatch:_,blockName:b,schema:E})=>{let L=se(b,"anchor");return E=typeof E=="function"?E(a):E,!L&&!_?E:E?Object.fromEntries(Object.entries(E).map(([N,j])=>{let I=j.attributes||[];return L&&(I=[...I,"id"]),[N,{...j,attributes:I,isMatch:_||void 0}]})):{}});function s(_,b,E){switch(E){case"children":return _==="*"||b==="*"?"*":{..._,...b};case"attributes":case"require":return[..._||[],...b||[]];case"isMatch":return!_||!b?void 0:(...L)=>_(...L)||b(...L)}}function c(_,b){for(let E in b)_[E]=_[E]?s(_[E],b[E],E):{...b[E]};return _}function h(_,b){for(let E in b)_[E]=_[E]?c(_[E],b[E]):{...b[E]};return _}return o.reduce(h,{})}function Yr(e){return yd(Hr(),e)}function tu(e){if(!/<(?!br[ />])/i.test(e))return!0;let t=document.implementation.createHTMLDocument("");if(t.body.innerHTML=e,t.body.children.length!==1)return!1;let r=t.body.children.item(0),a=r.getElementsByTagName("*");for(let o=0;o{nu(o.childNodes,t,r,a),t.forEach(s=>{r.contains(o)&&s(o,r,a)})})}function le(e,t=[],r){let a=document.implementation.createHTMLDocument("");return a.body.innerHTML=e,nu(a.body.childNodes,t,a,r),a.body.innerHTML}function qe(e,t){let r=e[`${t}Sibling`];if(r&&(0,ar.isPhrasingContent)(r))return r;let{parentNode:a}=e;if(!(!a||!(0,ar.isPhrasingContent)(a)))return qe(a,t)}var Oe=B(Z());var au=B(Z());function en(e){e.nodeType===e.COMMENT_NODE&&(0,au.remove)(e)}var ou=B(Z());function wd(e,t){if((0,ou.isTextContent)(e))return!0;if(!t)return!1;let r=e.nodeName.toLowerCase();return[["ul","li","ol"],["h1","h2","h3","h4","h5","h6"]].some(o=>[r,t].filter(s=>!o.includes(s)).length===0)}function uu(e,t){return e.every(r=>wd(r,t)&&uu(Array.from(r.children),t))}function kd(e){return e.nodeName==="BR"&&e.previousSibling&&e.previousSibling.nodeName==="BR"}function iu(e,t){let r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;let a=Array.from(r.body.children);return!a.some(kd)&&uu(a,t)}var _e=B(Z());function rn(e,t){if(e.nodeName==="SPAN"&&e.style){let{fontWeight:r,fontStyle:a,textDecorationLine:o,textDecoration:s,verticalAlign:c}=e.style;(r==="bold"||r==="700")&&(0,_e.wrap)(t.createElement("strong"),e),a==="italic"&&(0,_e.wrap)(t.createElement("em"),e),(o==="line-through"||s.includes("line-through"))&&(0,_e.wrap)(t.createElement("s"),e),c==="super"?(0,_e.wrap)(t.createElement("sup"),e):c==="sub"&&(0,_e.wrap)(t.createElement("sub"),e)}else e.nodeName==="B"?e=(0,_e.replaceTag)(e,"strong"):e.nodeName==="I"?e=(0,_e.replaceTag)(e,"em"):e.nodeName==="A"&&(e.target&&e.target.toLowerCase()==="_blank"?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")),e.name&&!e.id&&(e.id=e.name),e.id&&!e.ownerDocument.querySelector(`[href="#${e.id}"]`)&&e.removeAttribute("id"))}function tn(e){e.nodeName!=="SCRIPT"&&e.nodeName!=="NOSCRIPT"&&e.nodeName!=="TEMPLATE"&&e.nodeName!=="STYLE"||e.parentNode.removeChild(e)}function Xr(e){if(e.nodeType!==e.ELEMENT_NODE)return;let t=e.getAttribute("style");if(!t||!t.includes("mso-list"))return;t.split(";").reduce((a,o)=>{let[s,c]=o.split(":");return s&&c&&(a[s.trim().toLowerCase()]=c.trim().toLowerCase()),a},{})["mso-list"]==="ignore"&&e.remove()}function nn(e){return e.nodeName==="OL"||e.nodeName==="UL"}function su(e,t){if(e.nodeName!=="P")return;let r=e.getAttribute("style");if(!r||!r.includes("mso-list"))return;let a=e.previousElementSibling;if(!a||!nn(a)){let E=e.textContent.trim().slice(0,1),L=/[1iIaA]/.test(E),N=t.createElement(L?"ol":"ul");L&&N.setAttribute("type",E),e.parentNode.insertBefore(N,e)}let o=e.previousElementSibling,s=o.nodeName,c=t.createElement("li"),h=o;c.innerHTML=le(e.innerHTML,[Xr]);let _=/mso-list\s*:[^;]+level([0-9]+)/i.exec(r),b=_&&parseInt(_[1],10)-1||0;for(;b--;)h=h.lastChild||h,nn(h)&&(h=h.lastChild||h);nn(h)||(h=h.appendChild(t.createElement(s))),h.appendChild(c),e.parentNode.removeChild(e)}var lu=B(cu());function fu(e){if(e.nodeName==="IMG"){if(e.src.indexOf("file:")===0&&(e.src=""),e.src.indexOf("data:")===0){let[t,r]=e.src.split(","),[a]=t.slice(5).split(";");if(!r||!a){e.src="";return}let o;try{o=atob(r)}catch{e.src="";return}let s=new Uint8Array(o.length);for(let _=0;_`${r}
${a}
${o}`)}function Td(e){return e.replace(/(^|\n)•( +)/g,"$1*$2")}function bu(e){return vd.makeHtml(Ed(Td(e)))}function _u(e){if(e.nodeName==="IFRAME"){let t=e.ownerDocument.createTextNode(e.src);e.parentNode.replaceChild(t,e)}}var yu=B(Z());function an(e){!e.id||e.id.indexOf("docs-internal-guid-")!==0||(e.tagName==="B"?(0,yu.unwrap)(e):e.removeAttribute("id"))}function Cd(e){return e===" "||e==="\r"||e===`
`||e===" "}function on(e){if(e.nodeType!==e.TEXT_NODE)return;let t=e;for(;t=t.parentNode;)if(t.nodeType===t.ELEMENT_NODE&&t.nodeName==="PRE")return;let r=e.data.replace(/[ \r\n\t]+/g," ");if(r[0]===" "){let a=qe(e,"previous");(!a||a.nodeName==="BR"||a.textContent.slice(-1)===" ")&&(r=r.slice(1))}if(r[r.length-1]===" "){let a=qe(e,"next");(!a||a.nodeName==="BR"||a.nodeType===a.TEXT_NODE&&Cd(a.textContent[0]))&&(r=r.slice(0,-1))}r?e.data=r:e.parentNode.removeChild(e)}function un(e){e.nodeName==="BR"&&(qe(e,"next")||e.parentNode.removeChild(e))}function wu(e){e.nodeName==="P"&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function ku(e){if(e.nodeName!=="SPAN"||e.getAttribute("data-stringify-type")!=="paragraph-break")return;let{parentNode:t}=e;t.insertBefore(e.ownerDocument.createElement("br"),e),t.insertBefore(e.ownerDocument.createElement("br"),e),t.removeChild(e)}function vu(e){let t=/[\p{L}\s]+/gu,r;for(;r=t.exec(e);){if(e[r.index-1]==="{")continue;let o=r[0];if(e[r.index-1]==="\\"&&(o=o.replace(/^[a-zA-Z]+/,"")),!(o.length<6))return!1}return!!(/\\[a-zA-Z]+\s*\{/g.test(e)||[o=>o.includes("^")&&!o.startsWith("^"),o=>["=","+","-","/","*"].some(s=>o.includes(s)),o=>/\\[a-zA-Z]+/g.test(o)].filter(o=>o(e)).length>=2)}function Eu(e){if(e.nodeType===e.ELEMENT_NODE&&e.tagName==="P"&&e.getAttribute("role")==="heading"&&e.hasAttribute("aria-level")){let t=parseInt(e.getAttribute("aria-level"),10);if(t>=1&&t<=6){let r=`H${t}`,a=e.ownerDocument.createElement(r);for(Array.from(e.attributes).forEach(o=>{o.name!=="role"&&o.name!=="aria-level"&&a.setAttribute(o.name,o.value)});e.firstChild;)a.appendChild(e.firstChild);e.parentNode.replaceChild(a,e)}}}var Cu=(...e)=>window?.console?.log?.(...e);function Tu(e){return e=le(e,[tn,an,Xr,rn,en]),e=(0,Oe.removeInvalidHTML)(e,(0,Oe.getPhrasingContentSchema)("paste"),{inline:!0}),e=le(e,[on,un]),Cu(`Processed inline HTML:
`,e),e}function Qr({HTML:e="",plainText:t="",mode:r="AUTO",tagName:a}){if(e=e.replace(/]+>/g,""),e=e.replace(/^\s*]*>\s*]*>(?:\s*)?/i,""),e=e.replace(/(?:\s*)?<\/body>\s*<\/html>\s*$/i,""),r!=="INLINE"){let E=e||t;if(E.indexOf("