| 1 |
"use strict";var wp;(wp||={}).blockLibrary=(()=>{var Cfe=Object.create;var Dy=Object.defineProperty;var Sfe=Object.getOwnPropertyDescriptor;var Tfe=Object.getOwnPropertyNames;var Pfe=Object.getPrototypeOf,Bfe=Object.prototype.hasOwnProperty;var Efe=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Ce=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),q=(e,t)=>{for(var r in t)Dy(e,r,{get:t[r],enumerable:!0})},cz=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Tfe(t))!Bfe.call(e,n)&&n!==r&&Dy(e,n,{get:()=>t[n],enumerable:!(o=Sfe(t,n))||o.enumerable});return e};var a=(e,t,r)=>(r=e!=null?Cfe(Pfe(e)):{},cz(t||!e||!e.__esModule?Dy(r,"default",{value:e,enumerable:!0}):r,e)),Ife=e=>cz(Dy({},"__esModule",{value:!0}),e);var G=Ce((u8e,uz)=>{uz.exports=window.wp.blocks});var pe=Ce((m8e,mz)=>{mz.exports=window.wp.compose});var z=Ce((p8e,pz)=>{pz.exports=window.wp.data});var T=Ce((d8e,dz)=>{dz.exports=window.wp.blockEditor});var Mu=Ce((f8e,fz)=>{fz.exports=window.wp.serverSideRender});var P=Ce((h8e,hz)=>{hz.exports=window.wp.i18n});var i7=Ce(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.Doctype=ar.CDATA=ar.Tag=ar.Style=ar.Script=ar.Comment=ar.Directive=ar.Text=ar.Root=ar.isTag=ar.ElementType=void 0;var Qn;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(Qn=ar.ElementType||(ar.ElementType={}));function Dfe(e){return e.type===Qn.Tag||e.type===Qn.Script||e.type===Qn.Style}ar.isTag=Dfe;ar.Root=Qn.Root;ar.Text=Qn.Text;ar.Directive=Qn.Directive;ar.Comment=Qn.Comment;ar.Script=Qn.Script;ar.Style=Qn.Style;ar.Tag=Qn.Tag;ar.CDATA=Qn.CDATA;ar.Doctype=Qn.Doctype});var u7=Ce(Ge=>{"use strict";var Au=Ge&&Ge.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})(),f0=Ge&&Ge.__assign||function(){return f0=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},f0.apply(this,arguments)};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.cloneNode=Ge.hasChildren=Ge.isDocument=Ge.isDirective=Ge.isComment=Ge.isText=Ge.isCDATA=Ge.isTag=Ge.Element=Ge.Document=Ge.CDATA=Ge.NodeWithChildren=Ge.ProcessingInstruction=Ge.Comment=Ge.Text=Ge.DataNode=Ge.Node=void 0;var yn=i7(),s7=(function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),c7(this,t)},e})();Ge.Node=s7;var Ly=(function(e){Au(t,e);function t(r){var o=e.call(this)||this;return o.data=r,o}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t})(s7);Ge.DataNode=Ly;var vz=(function(e){Au(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=yn.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t})(Ly);Ge.Text=vz;var bz=(function(e){Au(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=yn.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t})(Ly);Ge.Comment=bz;var yz=(function(e){Au(t,e);function t(r,o){var n=e.call(this,o)||this;return n.name=r,n.type=yn.ElementType.Directive,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t})(Ly);Ge.ProcessingInstruction=yz;var My=(function(e){Au(t,e);function t(r){var o=e.call(this)||this;return o.children=r,o}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t})(s7);Ge.NodeWithChildren=My;var _z=(function(e){Au(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=yn.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t})(My);Ge.CDATA=_z;var xz=(function(e){Au(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=yn.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t})(My);Ge.Document=xz;var kz=(function(e){Au(t,e);function t(r,o,n,i){n===void 0&&(n=[]),i===void 0&&(i=r==="script"?yn.ElementType.Script:r==="style"?yn.ElementType.Style:yn.ElementType.Tag);var l=e.call(this,n)||this;return l.name=r,l.attribs=o,l.type=i,l}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(o){var n,i;return{name:o,value:r.attribs[o],namespace:(n=r["x-attribsNamespace"])===null||n===void 0?void 0:n[o],prefix:(i=r["x-attribsPrefix"])===null||i===void 0?void 0:i[o]}})},enumerable:!1,configurable:!0}),t})(My);Ge.Element=kz;function wz(e){return(0,yn.isTag)(e)}Ge.isTag=wz;function Cz(e){return e.type===yn.ElementType.CDATA}Ge.isCDATA=Cz;function Sz(e){return e.type===yn.ElementType.Text}Ge.isText=Sz;function Tz(e){return e.type===yn.ElementType.Comment}Ge.isComment=Tz;function Pz(e){return e.type===yn.ElementType.Directive}Ge.isDirective=Pz;function Bz(e){return e.type===yn.ElementType.Root}Ge.isDocument=Bz;function Lfe(e){return Object.prototype.hasOwnProperty.call(e,"children")}Ge.hasChildren=Lfe;function c7(e,t){t===void 0&&(t=!1);var r;if(Sz(e))r=new vz(e.data);else if(Tz(e))r=new bz(e.data);else if(wz(e)){var o=t?l7(e.children):[],n=new kz(e.name,f0({},e.attribs),o);o.forEach(function(c){return c.parent=n}),e.namespace!=null&&(n.namespace=e.namespace),e["x-attribsNamespace"]&&(n["x-attribsNamespace"]=f0({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(n["x-attribsPrefix"]=f0({},e["x-attribsPrefix"])),r=n}else if(Cz(e)){var o=t?l7(e.children):[],i=new _z(o);o.forEach(function(u){return u.parent=i}),r=i}else if(Bz(e)){var o=t?l7(e.children):[],l=new xz(o);o.forEach(function(u){return u.parent=l}),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else if(Pz(e)){var s=new yz(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),r=s}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}Ge.cloneNode=c7;function l7(e){for(var t=e.map(function(o){return c7(o,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}});var Nz=Ce(Ps=>{"use strict";var Mfe=Ps&&Ps.__createBinding||(Object.create?(function(e,t,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}):(function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]})),Afe=Ps&&Ps.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Mfe(t,e,r)};Object.defineProperty(Ps,"__esModule",{value:!0});Ps.DomHandler=void 0;var m7=i7(),Ru=u7();Afe(u7(),Ps);var Ez={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},Iz=(function(){function e(t,r,o){this.dom=[],this.root=new Ru.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(o=r,r=Ez),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??Ez,this.elementCB=o??null}return e.prototype.onparserinit=function(t){this.parser=t},e.prototype.onreset=function(){this.dom=[],this.root=new Ru.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(t){this.handleCallback(t)},e.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},e.prototype.onopentag=function(t,r){var o=this.options.xmlMode?m7.ElementType.Tag:void 0,n=new Ru.Element(t,r,void 0,o);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(t){var r=this.lastNode;if(r&&r.type===m7.ElementType.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{var o=new Ru.Text(t);this.addNode(o),this.lastNode=o}},e.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===m7.ElementType.Comment){this.lastNode.data+=t;return}var r=new Ru.Comment(t);this.addNode(r),this.lastNode=r},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var t=new Ru.Text(""),r=new Ru.CDATA([t]);this.addNode(r),t.parent=r,this.lastNode=t},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(t,r){var o=new Ru.ProcessingInstruction(t,r);this.addNode(o)},e.prototype.handleCallback=function(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t},e.prototype.addNode=function(t){var r=this.tagStack[this.tagStack.length-1],o=r.children[r.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),r.children.push(t),o&&(t.prev=o,o.next=t),t.parent=r,this.lastNode=null},e})();Ps.DomHandler=Iz;Ps.default=Iz});var Dz=Ce(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.CARRIAGE_RETURN_PLACEHOLDER_REGEX=Fo.CARRIAGE_RETURN_PLACEHOLDER=Fo.CARRIAGE_RETURN_REGEX=Fo.CARRIAGE_RETURN=Fo.CASE_SENSITIVE_TAG_NAMES_MAP=Fo.CASE_SENSITIVE_TAG_NAMES=void 0;Fo.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];Fo.CASE_SENSITIVE_TAG_NAMES_MAP=Fo.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{});Fo.CARRIAGE_RETURN="\r";Fo.CARRIAGE_RETURN_REGEX=new RegExp(Fo.CARRIAGE_RETURN,"g");Fo.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__");Fo.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(Fo.CARRIAGE_RETURN_PLACEHOLDER,"g")});var p7=Ce(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.formatAttributes=Lz;xf.escapeSpecialCharacters=Vfe;xf.revertEscapedCharacters=Mz;xf.formatDOM=Az;var Ay=Nz(),h0=Dz();function Rfe(e){return h0.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function Lz(e){for(var t={},r=0,o=e.length;r<o;r++){var n=e[r];t[n.name]=n.value}return t}function zfe(e){e=e.toLowerCase();var t=Rfe(e);return t||e}function Vfe(e){return e.replace(h0.CARRIAGE_RETURN_REGEX,h0.CARRIAGE_RETURN_PLACEHOLDER)}function Mz(e){return e.replace(h0.CARRIAGE_RETURN_PLACEHOLDER_REGEX,h0.CARRIAGE_RETURN)}function Az(e,t,r){t===void 0&&(t=null);for(var o=[],n,i=0,l=e.length;i<l;i++){var s=e[i];switch(s.nodeType){case 1:{var c=zfe(s.nodeName);n=new Ay.Element(c,Lz(s.attributes)),n.children=Az(c==="template"?s.content.childNodes:s.childNodes,n);break}case 3:n=new Ay.Text(Mz(s.nodeValue));break;case 8:n=new Ay.Comment(s.nodeValue);break;default:continue}var u=o[i-1]||null;u&&(u.next=n),n.parent=t,n.prev=u,n.next=null,o.push(n)}return r&&(n=new Ay.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r),n.next=o[0]||null,n.parent=t,o.unshift(n),o[1]&&(o[1].prev=o[0])),o}});var Uz=Ce(h7=>{"use strict";Object.defineProperty(h7,"__esModule",{value:!0});h7.default=Hfe;var Ffe=p7(),Rz="html",zz="head",Ry="body",Ofe=/<([a-zA-Z]+[0-9]?)/,Vz=/<head[^]*>/i,Fz=/<body[^]*>/i,Vy=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},d7=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},Oz=typeof window=="object"&&window.DOMParser;typeof Oz=="function"&&(Hz=new Oz,jz="text/html",d7=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),Hz.parseFromString(e,jz)},Vy=d7);var Hz,jz;typeof document=="object"&&document.implementation&&(g0=document.implementation.createHTMLDocument(),Vy=function(e,t){if(t){var r=g0.documentElement.querySelector(t);return r&&(r.innerHTML=e),g0}return g0.documentElement.innerHTML=e,g0});var g0,zy=typeof document=="object"&&document.createElement("template"),f7;zy&&zy.content&&(f7=function(e){return zy.innerHTML=e,zy.content.childNodes});function Hfe(e){var t,r;e=(0,Ffe.escapeSpecialCharacters)(e);var o=e.match(Ofe),n=o&&o[1]?o[1].toLowerCase():"";switch(n){case Rz:{var i=d7(e);if(!Vz.test(e)){var l=i.querySelector(zz);(t=l?.parentNode)===null||t===void 0||t.removeChild(l)}if(!Fz.test(e)){var l=i.querySelector(Ry);(r=l?.parentNode)===null||r===void 0||r.removeChild(l)}return i.querySelectorAll(Rz)}case zz:case Ry:{var s=Vy(e).querySelectorAll(n);return Fz.test(e)&&Vz.test(e)?s[0].parentNode.childNodes:s}default:{if(f7)return f7(e);var l=Vy(e,Ry).querySelector(Ry);return l.childNodes}}}});var Gz=Ce(v0=>{"use strict";var jfe=v0&&v0.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(v0,"__esModule",{value:!0});v0.default=$fe;var Ufe=jfe(Uz()),Gfe=p7(),Wfe=/<(![a-zA-Z\s]+)>/;function $fe(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(Wfe),r=t?t[1]:void 0;return(0,Gfe.formatDOM)((0,Ufe.default)(e),null,r)}});var Wz=Ce(Fy=>{var qfe=0;Fy.SAME=qfe;var Zfe=1;Fy.CAMELCASE=Zfe;Fy.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}});var qz=Ce(El=>{"use strict";function Kfe(e){return Oo.hasOwnProperty(e)?Oo[e]:null}function Ha(e,t,r,o,n,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Oo={},Yfe=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Yfe.forEach(e=>{Oo[e]=new Ha(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{Oo[e]=new Ha(e,1,!1,t,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(e=>{Oo[e]=new Ha(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{Oo[e]=new Ha(e,2,!1,e,null,!1,!1)});["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{Oo[e]=new Ha(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(e=>{Oo[e]=new Ha(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(e=>{Oo[e]=new Ha(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(e=>{Oo[e]=new Ha(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(e=>{Oo[e]=new Ha(e,5,!1,e.toLowerCase(),null,!1,!1)});var g7=/[\-\:]([a-z])/g,v7=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{let t=e.replace(g7,v7);Oo[t]=new Ha(t,1,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{let t=e.replace(g7,v7);Oo[t]=new Ha(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(e=>{let t=e.replace(g7,v7);Oo[t]=new Ha(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(e=>{Oo[e]=new Ha(e,1,!1,e.toLowerCase(),null,!1,!1)});var Qfe="xlinkHref";Oo[Qfe]=new Ha("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(e=>{Oo[e]=new Ha(e,1,!1,e.toLowerCase(),null,!0,!0)});var{CAMELCASE:Xfe,SAME:Jfe,possibleStandardNames:$z}=Wz(),ehe=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",the=ehe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",rhe=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+the+"]*$")),ohe=Object.keys($z).reduce((e,t)=>{let r=$z[t];return r===Jfe?e[t]=t:r===Xfe?e[t.toLowerCase()]=t:e[t]=r,e},{});El.BOOLEAN=3;El.BOOLEANISH_STRING=2;El.NUMERIC=5;El.OVERLOADED_BOOLEAN=4;El.POSITIVE_NUMERIC=6;El.RESERVED=0;El.STRING=1;El.getPropertyInfo=Kfe;El.isCustomAttribute=rhe;El.possibleStandardNames=ohe});var zu=Ce((T8e,Zz)=>{Zz.exports=window.React});var eV=Ce((P8e,Jz)=>{"use strict";var Kz=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ahe=/\n/g,nhe=/^\s*/,ihe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,lhe=/^:\s*/,she=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,che=/^[;\s]*/,uhe=/^\s+|\s+$/g,mhe=` |
| 2 |
`,Yz="/",Qz="*",cp="",phe="comment",dhe="declaration";function fhe(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,o=1;function n(h){var g=h.match(ahe);g&&(r+=g.length);var b=h.lastIndexOf(mhe);o=~b?h.length-b:o+h.length}function i(){var h={line:r,column:o};return function(g){return g.position=new l(h),u(),g}}function l(h){this.start=h,this.end={line:r,column:o},this.source=t.source}l.prototype.content=e;function s(h){var g=new Error(t.source+":"+r+":"+o+": "+h);if(g.reason=h,g.filename=t.source,g.line=r,g.column=o,g.source=e,!t.silent)throw g}function c(h){var g=h.exec(e);if(g){var b=g[0];return n(b),e=e.slice(b.length),g}}function u(){c(nhe)}function m(h){var g;for(h=h||[];g=p();)g!==!1&&h.push(g);return h}function p(){var h=i();if(!(Yz!=e.charAt(0)||Qz!=e.charAt(1))){for(var g=2;cp!=e.charAt(g)&&(Qz!=e.charAt(g)||Yz!=e.charAt(g+1));)++g;if(g+=2,cp===e.charAt(g-1))return s("End of comment missing");var b=e.slice(2,g-2);return o+=2,n(b),e=e.slice(g),o+=2,h({type:phe,comment:b})}}function d(){var h=i(),g=c(ihe);if(g){if(p(),!c(lhe))return s("property missing ':'");var b=c(she),v=h({type:dhe,property:Xz(g[0].replace(Kz,cp)),value:b?Xz(b[0].replace(Kz,cp)):cp});return c(che),v}}function f(){var h=[];m(h);for(var g;g=d();)g!==!1&&(h.push(g),m(h));return h}return u(),f()}function Xz(e){return e?e.replace(uhe,cp):cp}Jz.exports=fhe});var tV=Ce(b0=>{"use strict";var hhe=b0&&b0.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(b0,"__esModule",{value:!0});b0.default=vhe;var ghe=hhe(eV());function vhe(e,t){let r=null;if(!e||typeof e!="string")return r;let o=(0,ghe.default)(e),n=typeof t=="function";return o.forEach(i=>{if(i.type!=="declaration")return;let{property:l,value:s}=i;n?t(l,s,i):s&&(r=r||{},r[l]=s)}),r}});var oV=Ce(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});Oy.camelCase=void 0;var bhe=/^--[a-zA-Z0-9_-]+$/,yhe=/-([a-z])/g,_he=/^[^-]+$/,xhe=/^-(webkit|moz|ms|o|khtml)-/,khe=/^-(ms)-/,whe=function(e){return!e||_he.test(e)||bhe.test(e)},Che=function(e,t){return t.toUpperCase()},rV=function(e,t){return"".concat(t,"-")},She=function(e,t){return t===void 0&&(t={}),whe(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(khe,rV):e=e.replace(xhe,rV),e.replace(yhe,Che))};Oy.camelCase=She});var nV=Ce((y7,aV)=>{"use strict";var The=y7&&y7.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Phe=The(tV()),Bhe=oV();function b7(e,t){var r={};return!e||typeof e!="string"||(0,Phe.default)(e,function(o,n){o&&n&&(r[(0,Bhe.camelCase)(o,t)]=n)}),r}b7.default=b7;aV.exports=b7});var _7=Ce(ja=>{"use strict";var Ehe=ja&&ja.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ja,"__esModule",{value:!0});ja.returnFirstArg=ja.canTextBeChildOfNode=ja.ELEMENTS_WITH_NO_TEXT_CHILDREN=ja.PRESERVE_CUSTOM_ATTRIBUTES=void 0;ja.isCustomComponent=Lhe;ja.setStyleProp=Ahe;var Ihe=zu(),Nhe=Ehe(nV()),Dhe=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function Lhe(e,t){return e.includes("-")?!Dhe.has(e):!!(t&&typeof t.is=="string")}var Mhe={reactCompat:!0};function Ahe(e,t){if(typeof e=="string"){if(!e.trim()){t.style={};return}try{t.style=(0,Nhe.default)(e,Mhe)}catch{t.style={}}}}ja.PRESERVE_CUSTOM_ATTRIBUTES=Number(Ihe.version.split(".")[0])>=16;ja.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var Rhe=function(e){return!ja.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)};ja.canTextBeChildOfNode=Rhe;var zhe=function(e){return e};ja.returnFirstArg=zhe});var k7=Ce(x7=>{"use strict";Object.defineProperty(x7,"__esModule",{value:!0});x7.default=Hhe;var y0=qz(),iV=_7(),Vhe=["checked","value"],Fhe=["input","select","textarea"],Ohe={reset:!0,submit:!0};function Hhe(e,t){e===void 0&&(e={});var r={},o=!!(e.type&&Ohe[e.type]);for(var n in e){var i=e[n];if((0,y0.isCustomAttribute)(n)){r[n]=i;continue}var l=n.toLowerCase(),s=lV(l);if(s){var c=(0,y0.getPropertyInfo)(s);switch(Vhe.includes(s)&&Fhe.includes(t)&&!o&&(s=lV("default"+l)),r[s]=i,c&&c.type){case y0.BOOLEAN:r[s]=!0;break;case y0.OVERLOADED_BOOLEAN:i===""&&(r[s]=!0);break}continue}iV.PRESERVE_CUSTOM_ATTRIBUTES&&(r[n]=i)}return(0,iV.setStyleProp)(e.style,r),r}function lV(e){return y0.possibleStandardNames[e]}});var cV=Ce(x0=>{"use strict";var jhe=x0&&x0.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(x0,"__esModule",{value:!0});x0.default=sV;var w7=zu(),Uhe=jhe(k7()),_0=_7(),Ghe={cloneElement:w7.cloneElement,createElement:w7.createElement,isValidElement:w7.isValidElement};function sV(e,t){t===void 0&&(t={});for(var r=[],o=typeof t.replace=="function",n=t.transform||_0.returnFirstArg,i=t.library||Ghe,l=i.cloneElement,s=i.createElement,c=i.isValidElement,u=e.length,m=0;m<u;m++){var p=e[m];if(o){var d=t.replace(p,m);if(c(d)){u>1&&(d=l(d,{key:d.key||m})),r.push(n(d,p,m));continue}}if(p.type==="text"){var f=!p.data.trim().length;if(f&&p.parent&&!(0,_0.canTextBeChildOfNode)(p.parent)||t.trim&&f)continue;r.push(n(p.data,p,m));continue}var h=p,g={};Whe(h)?((0,_0.setStyleProp)(h.attribs.style,h.attribs),g=h.attribs):h.attribs&&(g=(0,Uhe.default)(h.attribs,h.name));var b=void 0;switch(p.type){case"script":case"style":p.children[0]&&(g.dangerouslySetInnerHTML={__html:p.children[0].data});break;case"tag":p.name==="textarea"&&p.children[0]?g.defaultValue=p.children[0].data:p.children&&p.children.length&&(b=sV(p.children,t));break;default:continue}u>1&&(g.key=m),r.push(n(s(p.name,g,b),p,m))}return r.length===1?r[0]:r}function Whe(e){return _0.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,_0.isCustomComponent)(e.name,e.attribs)}});var C7=Ce(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.Doctype=nr.CDATA=nr.Tag=nr.Style=nr.Script=nr.Comment=nr.Directive=nr.Text=nr.Root=nr.isTag=nr.ElementType=void 0;var Xn;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(Xn=nr.ElementType||(nr.ElementType={}));function $he(e){return e.type===Xn.Tag||e.type===Xn.Script||e.type===Xn.Style}nr.isTag=$he;nr.Root=Xn.Root;nr.Text=Xn.Text;nr.Directive=Xn.Directive;nr.Comment=Xn.Comment;nr.Script=Xn.Script;nr.Style=Xn.Style;nr.Tag=Xn.Tag;nr.CDATA=Xn.CDATA;nr.Doctype=Xn.Doctype});var B7=Ce(We=>{"use strict";var Vu=We&&We.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})(),k0=We&&We.__assign||function(){return k0=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},k0.apply(this,arguments)};Object.defineProperty(We,"__esModule",{value:!0});We.cloneNode=We.hasChildren=We.isDocument=We.isDirective=We.isComment=We.isText=We.isCDATA=We.isTag=We.Element=We.Document=We.CDATA=We.NodeWithChildren=We.ProcessingInstruction=We.Comment=We.Text=We.DataNode=We.Node=void 0;var _n=C7(),T7=(function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),P7(this,t)},e})();We.Node=T7;var Hy=(function(e){Vu(t,e);function t(r){var o=e.call(this)||this;return o.data=r,o}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t})(T7);We.DataNode=Hy;var uV=(function(e){Vu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=_n.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t})(Hy);We.Text=uV;var mV=(function(e){Vu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=_n.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t})(Hy);We.Comment=mV;var pV=(function(e){Vu(t,e);function t(r,o){var n=e.call(this,o)||this;return n.name=r,n.type=_n.ElementType.Directive,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t})(Hy);We.ProcessingInstruction=pV;var jy=(function(e){Vu(t,e);function t(r){var o=e.call(this)||this;return o.children=r,o}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t})(T7);We.NodeWithChildren=jy;var dV=(function(e){Vu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=_n.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t})(jy);We.CDATA=dV;var fV=(function(e){Vu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=_n.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t})(jy);We.Document=fV;var hV=(function(e){Vu(t,e);function t(r,o,n,i){n===void 0&&(n=[]),i===void 0&&(i=r==="script"?_n.ElementType.Script:r==="style"?_n.ElementType.Style:_n.ElementType.Tag);var l=e.call(this,n)||this;return l.name=r,l.attribs=o,l.type=i,l}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(o){var n,i;return{name:o,value:r.attribs[o],namespace:(n=r["x-attribsNamespace"])===null||n===void 0?void 0:n[o],prefix:(i=r["x-attribsPrefix"])===null||i===void 0?void 0:i[o]}})},enumerable:!1,configurable:!0}),t})(jy);We.Element=hV;function gV(e){return(0,_n.isTag)(e)}We.isTag=gV;function vV(e){return e.type===_n.ElementType.CDATA}We.isCDATA=vV;function bV(e){return e.type===_n.ElementType.Text}We.isText=bV;function yV(e){return e.type===_n.ElementType.Comment}We.isComment=yV;function _V(e){return e.type===_n.ElementType.Directive}We.isDirective=_V;function xV(e){return e.type===_n.ElementType.Root}We.isDocument=xV;function qhe(e){return Object.prototype.hasOwnProperty.call(e,"children")}We.hasChildren=qhe;function P7(e,t){t===void 0&&(t=!1);var r;if(bV(e))r=new uV(e.data);else if(yV(e))r=new mV(e.data);else if(gV(e)){var o=t?S7(e.children):[],n=new hV(e.name,k0({},e.attribs),o);o.forEach(function(c){return c.parent=n}),e.namespace!=null&&(n.namespace=e.namespace),e["x-attribsNamespace"]&&(n["x-attribsNamespace"]=k0({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(n["x-attribsPrefix"]=k0({},e["x-attribsPrefix"])),r=n}else if(vV(e)){var o=t?S7(e.children):[],i=new dV(o);o.forEach(function(u){return u.parent=i}),r=i}else if(xV(e)){var o=t?S7(e.children):[],l=new fV(o);o.forEach(function(u){return u.parent=l}),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else if(_V(e)){var s=new pV(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),r=s}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}We.cloneNode=P7;function S7(e){for(var t=e.map(function(o){return P7(o,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}});var CV=Ce(Bs=>{"use strict";var Zhe=Bs&&Bs.__createBinding||(Object.create?(function(e,t,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}):(function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]})),Khe=Bs&&Bs.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Zhe(t,e,r)};Object.defineProperty(Bs,"__esModule",{value:!0});Bs.DomHandler=void 0;var E7=C7(),Fu=B7();Khe(B7(),Bs);var kV={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},wV=(function(){function e(t,r,o){this.dom=[],this.root=new Fu.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(o=r,r=kV),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??kV,this.elementCB=o??null}return e.prototype.onparserinit=function(t){this.parser=t},e.prototype.onreset=function(){this.dom=[],this.root=new Fu.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(t){this.handleCallback(t)},e.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},e.prototype.onopentag=function(t,r){var o=this.options.xmlMode?E7.ElementType.Tag:void 0,n=new Fu.Element(t,r,void 0,o);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(t){var r=this.lastNode;if(r&&r.type===E7.ElementType.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{var o=new Fu.Text(t);this.addNode(o),this.lastNode=o}},e.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===E7.ElementType.Comment){this.lastNode.data+=t;return}var r=new Fu.Comment(t);this.addNode(r),this.lastNode=r},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var t=new Fu.Text(""),r=new Fu.CDATA([t]);this.addNode(r),t.parent=r,this.lastNode=t},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(t,r){var o=new Fu.ProcessingInstruction(t,r);this.addNode(o)},e.prototype.handleCallback=function(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t},e.prototype.addNode=function(t){var r=this.tagStack[this.tagStack.length-1],o=r.children[r.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),r.children.push(t),o&&(t.prev=o,o.next=t),t.parent=r,this.lastNode=null},e})();Bs.DomHandler=wV;Bs.default=wV});var N7=Ce(ao=>{"use strict";var I7=ao&&ao.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ao,"__esModule",{value:!0});ao.htmlToDOM=ao.domToReact=ao.attributesToProps=ao.Text=ao.ProcessingInstruction=ao.Element=ao.Comment=void 0;ao.default=Xhe;var SV=I7(Gz());ao.htmlToDOM=SV.default;var Yhe=I7(k7());ao.attributesToProps=Yhe.default;var TV=I7(cV());ao.domToReact=TV.default;var Uy=CV();Object.defineProperty(ao,"Comment",{enumerable:!0,get:function(){return Uy.Comment}});Object.defineProperty(ao,"Element",{enumerable:!0,get:function(){return Uy.Element}});Object.defineProperty(ao,"ProcessingInstruction",{enumerable:!0,get:function(){return Uy.ProcessingInstruction}});Object.defineProperty(ao,"Text",{enumerable:!0,get:function(){return Uy.Text}});var Qhe={lowerCaseAttributeNames:!1};function Xhe(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e?(0,TV.default)((0,SV.default)(e,t?.htmlparser2||Qhe),t):[]}});var Jn=Ce((V8e,BV)=>{BV.exports=window.wp.dom});var y=Ce((F8e,EV)=>{EV.exports=window.ReactJSXRuntime});var H=Ce((U8e,DV)=>{DV.exports=window.wp.element});var L=Ce((W8e,LV)=>{LV.exports=window.wp.primitives});var A=Ce((MEe,MV)=>{MV.exports=window.wp.components});var Br=Ce((AEe,AV)=>{AV.exports=window.wp.blob});var Y=Ce((REe,RV)=>{RV.exports=window.wp.coreData});var ir=Ce((DIe,vF)=>{vF.exports=window.wp.url});var jo=Ce((AIe,kF)=>{kF.exports=window.wp.htmlEntities});var yr=Ce((qIe,RF)=>{RF.exports=window.wp.notices});var VF=Ce((QIe,zF)=>{zF.exports=window.wp.privateApis});var Ls=Ce((ONe,hO)=>{hO.exports=window.wp.keycodes});var Rf=Ce((WNe,bO)=>{bO.exports=window.wp.deprecated});var Qu=Ce((hDe,IO)=>{IO.exports=window.wp.richText});var j1=Ce((gLe,dH)=>{dH.exports=window.wp.a11y});var Rk=Ce((HAe,Zj)=>{Zj.exports=window.wp.date});var K1=Ce((yRe,cU)=>{cU.exports=window.wp.apiFetch});var qc=Ce(($ze,jG)=>{jG.exports=window.wp.hooks});var sv=Ce((mOe,z5)=>{var d$={\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"},f$=Object.keys(d$).join("|"),Gbe=new RegExp(f$,"g"),Wbe=new RegExp(f$,"");function $be(e){return d$[e]}var h$=function(e){return e.replace(Gbe,$be)},qbe=function(e){return!!e.match(Wbe)};z5.exports=h$;z5.exports.has=qbe;z5.exports.remove=h$});var MZ=Ce((SUe,LZ)=>{LZ.exports=window.wp.uploadMedia});var WX=Ce((NZe,GX)=>{GX.exports=window.wp.escapeHtml});var qoe=Ce((Crt,$oe)=>{$oe.exports=window.wp.wordcount});var tle=Ce((vit,ele)=>{ele.exports=window.wp.patterns});var $le=Ce((wlt,Wle)=>{Wle.exports=window.wp.autop});var Zle=Ce((Clt,qle)=>{qle.exports=window.wp.shortcode});var Eue=Ce((ymt,Bue)=>{"use strict";Bue.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 o,n,i;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!e(t[n],r[n]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;for(n of t.entries())if(!e(n[1],r.get(n[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(o=t.length,o!=r.length)return!1;for(n=o;n--!==0;)if(t[n]!==r[n])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(i=Object.keys(t),o=i.length,o!==Object.keys(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[n]))return!1;for(n=o;n--!==0;){var l=i[n];if(!e(t[l],r[l]))return!1}return!0}return t!==t&&r!==r}});var ife=Ce((Fht,nfe)=>{nfe.exports=window.wp.keyboardShortcuts});var l8e={};q(l8e,{__experimentalGetCoreBlocks:()=>hfe,__experimentalRegisterExperimentalCoreBlocks:()=>i8e,privateApis:()=>oz,registerCoreBlocks:()=>n8e});var wl=a(G(),1),ufe=a(pe(),1),mfe=a(z(),1),pfe=a(T(),1),dfe=a(Mu(),1),wy=a(P(),1);function gz(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=gz(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Nfe(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=gz(e))&&(o&&(o+=" "),o+=t);return o}var w=Nfe;var D7=a(N7(),1),Il=a(N7(),1),PV=D7.default.default||D7.default;var IV=a(Jn(),1),NV=a(y(),1),Jhe=({wrapperProps:e={},html:t=""})=>{let r={replace:({name:i,type:l,attribs:s,parent:c,children:u})=>{if(l==="tag"&&i){let m=(0,Il.attributesToProps)(s||{}),p=i;if(!c){let d={...m,...e,className:w(m.className,e.className),style:{...m.style||{},...e.style||{}}};return(0,NV.jsx)(p,{...d,children:(0,Il.domToReact)(u,r)})}}}},o=(0,IV.safeHTML)(t);return PV(o,r)},no=Jhe;var rE={};q(rE,{init:()=>oge,metadata:()=>Ex,name:()=>UV,settings:()=>GV});var tE=a(P(),1);var Gy=a(H(),1),Ua=(0,Gy.forwardRef)(({icon:e,size:t=24,...r},o)=>(0,Gy.cloneElement)(e,{width:t,height:t,...r,ref:o}));var w0=a(L(),1),C0=a(y(),1),L7=(0,C0.jsxs)(w0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,C0.jsx)(w0.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 12.75L9.5 12.75L9.5 11.25L19.5 11.25L19.5 12.75Z"}),(0,C0.jsx)(w0.Path,{d:"M4.5 9.5L8.5 12L4.5 14.5L4.5 9.5Z"})]});var up=a(L(),1),mp=a(y(),1),M7=(0,mp.jsxs)(up.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,mp.jsx)(up.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.5L9.5 9.5L9.5 8L19.5 8L19.5 9.5Z"}),(0,mp.jsx)(up.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 13L9.5 13L9.5 11.5L19.5 11.5L19.5 13Z"}),(0,mp.jsx)(up.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.3999L9.5 16.3999L9.5 14.8999L19.5 14.8999L19.5 16.3999Z"}),(0,mp.jsx)(up.Path,{d:"M4.5 6.25L8.5 8.75L4.5 11.25L4.5 6.25Z"})]});var pp=a(L(),1),dp=a(y(),1),A7=(0,dp.jsxs)(pp.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,dp.jsx)(pp.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.25L9.5 9.25L9.5 7.75L19.5 7.75L19.5 9.25Z"}),(0,dp.jsx)(pp.Path,{d:"M4.5 6L8.5 8.5L4.5 11L4.5 6Z"}),(0,dp.jsx)(pp.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.25L9.5 16.25L9.5 14.75L19.5 14.75L19.5 16.25Z"}),(0,dp.jsx)(pp.Path,{d:"M4.5 13L8.5 15.5L4.5 18L4.5 13Z"})]});var Wy=a(L(),1),R7=a(y(),1),fp=(0,R7.jsx)(Wy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,R7.jsx)(Wy.Path,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"})});var $y=a(L(),1),z7=a(y(),1),V7=(0,z7.jsx)($y.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,z7.jsx)($y.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})});var qy=a(L(),1),F7=a(y(),1),O7=(0,F7.jsx)(qy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,F7.jsx)(qy.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})});var Zy=a(L(),1),H7=a(y(),1),j7=(0,H7.jsx)(Zy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,H7.jsx)(Zy.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})});var Ky=a(L(),1),U7=a(y(),1),G7=(0,U7.jsx)(Ky.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U7.jsx)(Ky.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})});var Yy=a(L(),1),W7=a(y(),1),$7=(0,W7.jsx)(Yy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,W7.jsx)(Yy.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"})});var Qy=a(L(),1),q7=a(y(),1),ei=(0,q7.jsx)(Qy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,q7.jsx)(Qy.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})});var Xy=a(L(),1),Z7=a(y(),1),K7=(0,Z7.jsx)(Xy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Z7.jsx)(Xy.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})});var Jy=a(L(),1),Y7=a(y(),1),S0=(0,Y7.jsx)(Jy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Y7.jsx)(Jy.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})});var e2=a(L(),1),Q7=a(y(),1),X7=(0,Q7.jsx)(e2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Q7.jsx)(e2.Path,{d:"M4 13.5h3v-3H4v3Zm6-3.5 2 2-2 2 1 1 3-3-3-3-1 1Zm7 .5v3h3v-3h-3Z"})});var t2=a(L(),1),J7=a(y(),1),e9=(0,J7.jsx)(t2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,J7.jsx)(t2.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})});var r2=a(L(),1),t9=a(y(),1),r9=(0,t9.jsx)(r2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,t9.jsx)(r2.Path,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"})});var o2=a(L(),1),o9=a(y(),1),T0=(0,o9.jsx)(o2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o9.jsx)(o2.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})});var a2=a(L(),1),a9=a(y(),1),n9=(0,a9.jsx)(a2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a9.jsx)(a2.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})});var n2=a(L(),1),i9=a(y(),1),Ou=(0,i9.jsx)(n2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i9.jsx)(n2.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z"})});var i2=a(L(),1),l9=a(y(),1),P0=(0,l9.jsx)(i2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,l9.jsx)(i2.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})});var l2=a(L(),1),s9=a(y(),1),c9=(0,s9.jsx)(l2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s9.jsx)(l2.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})});var s2=a(L(),1),u9=a(y(),1),m9=(0,u9.jsx)(s2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,u9.jsx)(s2.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})});var c2=a(L(),1),p9=a(y(),1),d9=(0,p9.jsx)(c2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,p9.jsx)(c2.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})});var u2=a(L(),1),f9=a(y(),1),B0=(0,f9.jsx)(u2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,f9.jsx)(u2.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"})});var m2=a(L(),1),h9=a(y(),1),hp=(0,h9.jsx)(m2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,h9.jsx)(m2.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})});var p2=a(L(),1),g9=a(y(),1),E0=(0,g9.jsx)(p2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,g9.jsx)(p2.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})});var d2=a(L(),1),v9=a(y(),1),b9=(0,v9.jsx)(d2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,v9.jsx)(d2.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"})});var f2=a(L(),1),y9=a(y(),1),_9=(0,y9.jsx)(f2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,y9.jsx)(f2.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"})});var h2=a(L(),1),x9=a(y(),1),I0=(0,x9.jsx)(h2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,x9.jsx)(h2.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})});var gp=a(L(),1),kf=a(y(),1),k9=(0,kf.jsxs)(gp.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,kf.jsx)(gp.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"}),(0,kf.jsx)(gp.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15"}),(0,kf.jsx)(gp.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"})]});var g2=a(L(),1),w9=a(y(),1),C9=(0,w9.jsx)(g2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,w9.jsx)(g2.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"})});var v2=a(L(),1),S9=a(y(),1),T9=(0,S9.jsx)(v2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,S9.jsx)(v2.Path,{d:"m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z"})});var b2=a(L(),1),P9=a(y(),1),B9=(0,P9.jsx)(b2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,P9.jsx)(b2.Path,{d:"M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"})});var y2=a(L(),1),E9=a(y(),1),N0=(0,E9.jsx)(y2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,E9.jsx)(y2.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"})});var _2=a(L(),1),I9=a(y(),1),D0=(0,I9.jsx)(_2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,I9.jsx)(_2.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8.10417 6.00024H6.5C5.39543 6.00024 4.5 6.89567 4.5 8.00024V10.3336H6V8.00024C6 7.7241 6.22386 7.50024 6.5 7.50024H8.10417V6.00024ZM4.5 13.6669V16.0002C4.5 17.1048 5.39543 18.0002 6.5 18.0002H8.10417V16.5002H6.5C6.22386 16.5002 6 16.2764 6 16.0002V13.6669H4.5ZM10.3958 6.00024V7.50024H13.6042V6.00024H10.3958ZM15.8958 6.00024V7.50024H17.5C17.7761 7.50024 18 7.7241 18 8.00024V10.3336H19.5V8.00024C19.5 6.89567 18.6046 6.00024 17.5 6.00024H15.8958ZM19.5 13.6669H18V16.0002C18 16.2764 17.7761 16.5002 17.5 16.5002H15.8958V18.0002H17.5C18.6046 18.0002 19.5 17.1048 19.5 16.0002V13.6669ZM13.6042 18.0002V16.5002H10.3958V18.0002H13.6042Z"})});var x2=a(L(),1),N9=a(y(),1),vp=(0,N9.jsx)(x2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,N9.jsx)(x2.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"})});var k2=a(L(),1),D9=a(y(),1),L0=(0,D9.jsx)(k2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,D9.jsx)(k2.Path,{d:"M18 20v-2h2v-1.5H7.75a.25.25 0 0 1-.25-.25V4H6v2H4v1.5h2v8.75c0 .966.784 1.75 1.75 1.75h8.75v2H18ZM9.273 7.5h6.977a.25.25 0 0 1 .25.25v6.977H18V7.75A1.75 1.75 0 0 0 16.25 6H9.273v1.5Z"})});var w2=a(L(),1),L9=a(y(),1),M0=(0,L9.jsx)(w2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,L9.jsx)(w2.Path,{d:"M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"})});var C2=a(L(),1),M9=a(y(),1),A9=(0,M9.jsx)(C2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,M9.jsx)(C2.Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"})});var A0=a(L(),1),R0=a(y(),1),R9=(0,R0.jsxs)(A0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,R0.jsx)(A0.Path,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),(0,R0.jsx)(A0.Path,{d:"m4 5.25 4 2.5-4 2.5v-5Z"})]});var S2=a(L(),1),z9=a(y(),1),V9=(0,z9.jsx)(S2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,z9.jsx)(S2.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})});var T2=a(L(),1),F9=a(y(),1),z0=(0,F9.jsx)(T2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,F9.jsx)(T2.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})});var P2=a(L(),1),O9=a(y(),1),H9=(0,O9.jsx)(P2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,O9.jsx)(P2.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var B2=a(L(),1),j9=a(y(),1),U9=(0,j9.jsx)(B2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,j9.jsx)(B2.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"})});var E2=a(L(),1),G9=a(y(),1),W9=(0,G9.jsx)(E2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,G9.jsx)(E2.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"})});var I2=a(L(),1),$9=a(y(),1),V0=(0,$9.jsx)(I2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,$9.jsx)(I2.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})});var N2=a(L(),1),q9=a(y(),1),F0=(0,q9.jsx)(N2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,q9.jsx)(N2.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})});var D2=a(L(),1),Z9=a(y(),1),O0=(0,Z9.jsx)(D2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Z9.jsx)(D2.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"})});var L2=a(L(),1),K9=a(y(),1),ji=(0,K9.jsx)(L2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,K9.jsx)(L2.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})});var M2=a(L(),1),Y9=a(y(),1),Q9=(0,Y9.jsx)(M2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Y9.jsx)(M2.Path,{d:"M3 9c0 2.8 2.2 5 5 5v-.2V20h1.5V5.5H12V20h1.5V5.5h3V4H8C5.2 4 3 6.2 3 9Zm15.9-1-1.1 1 2.6 3-2.6 3 1.1 1 3.4-4-3.4-4Z"})});var A2=a(L(),1),X9=a(y(),1),H0=(0,X9.jsx)(A2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,X9.jsx)(A2.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"})});var R2=a(L(),1),J9=a(y(),1),j0=(0,J9.jsx)(R2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,J9.jsx)(R2.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})});var z2=a(L(),1),eT=a(y(),1),bp=(0,eT.jsx)(z2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,eT.jsx)(z2.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})});var V2=a(L(),1),tT=a(y(),1),U0=(0,tT.jsx)(V2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,tT.jsx)(V2.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M16.375 4.5H4.625a.125.125 0 0 0-.125.125v8.254l2.859-1.54a.75.75 0 0 1 .68-.016l2.384 1.142 2.89-2.074a.75.75 0 0 1 .874 0l2.313 1.66V4.625a.125.125 0 0 0-.125-.125Zm.125 9.398-2.75-1.975-2.813 2.02a.75.75 0 0 1-.76.067l-2.444-1.17L4.5 14.583v1.792c0 .069.056.125.125.125h11.75a.125.125 0 0 0 .125-.125v-2.477ZM4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.273 3.728 18 4.625 18h11.75c.898 0 1.625-.727 1.625-1.625V4.625C18 3.728 17.273 3 16.375 3H4.625ZM20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})});var F2=a(L(),1),rT=a(y(),1),Nl=(0,rT.jsx)(F2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,rT.jsx)(F2.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z"})});var O2=a(L(),1),oT=a(y(),1),yp=(0,oT.jsx)(O2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oT.jsx)(O2.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"})});var H2=a(L(),1),aT=a(y(),1),nT=(0,aT.jsx)(H2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,aT.jsx)(H2.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var j2=a(L(),1),iT=a(y(),1),lT=(0,iT.jsx)(j2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,iT.jsx)(j2.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})});var U2=a(L(),1),sT=a(y(),1),cT=(0,sT.jsx)(U2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,sT.jsx)(U2.Path,{d:"M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6v1.5h8v-2H17z"})});var G2=a(L(),1),uT=a(y(),1),mT=(0,uT.jsx)(G2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,uT.jsx)(G2.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"})});var W2=a(L(),1),pT=a(y(),1),dT=(0,pT.jsx)(W2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,pT.jsx)(W2.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})});var $2=a(L(),1),fT=a(y(),1),hT=(0,fT.jsx)($2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,fT.jsx)($2.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"})});var q2=a(L(),1),gT=a(y(),1),vT=(0,gT.jsx)(q2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,gT.jsx)(q2.Path,{d:"M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"})});var Z2=a(L(),1),bT=a(y(),1),yT=(0,bT.jsx)(Z2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,bT.jsx)(Z2.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})});var K2=a(L(),1),_T=a(y(),1),xT=(0,_T.jsx)(K2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,_T.jsx)(K2.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})});var Y2=a(L(),1),kT=a(y(),1),wT=(0,kT.jsx)(Y2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,kT.jsx)(Y2.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"})});var Q2=a(L(),1),CT=a(y(),1),Hu=(0,CT.jsx)(Q2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,CT.jsx)(Q2.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})});var X2=a(L(),1),ST=a(y(),1),TT=(0,ST.jsx)(X2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ST.jsx)(X2.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})});var J2=a(L(),1),PT=a(y(),1),_p=(0,PT.jsx)(J2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,PT.jsx)(J2.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var e_=a(L(),1),BT=a(y(),1),G0=(0,BT.jsx)(e_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,BT.jsx)(e_.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})});var t_=a(L(),1),ET=a(y(),1),ti=(0,ET.jsx)(t_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ET.jsx)(t_.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})});var r_=a(L(),1),IT=a(y(),1),NT=(0,IT.jsx)(r_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,IT.jsx)(r_.Path,{d:"M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})});var o_=a(L(),1),DT=a(y(),1),Dl=(0,DT.jsx)(o_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,DT.jsx)(o_.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})});var a_=a(L(),1),LT=a(y(),1),MT=(0,LT.jsx)(a_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,LT.jsx)(a_.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"})});var n_=a(L(),1),AT=a(y(),1),xp=(0,AT.jsx)(n_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,AT.jsx)(n_.Path,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"})});var i_=a(L(),1),RT=a(y(),1),zT=(0,RT.jsx)(i_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,RT.jsx)(i_.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})});var l_=a(L(),1),VT=a(y(),1),FT=(0,VT.jsx)(l_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,VT.jsx)(l_.Path,{d:"M11.2 6.8c-.7 0-1.4.5-1.6 1.1l-2.8 7.5-1.2-1.8c-.1-.2-.4-.3-.6-.3H3v1.5h1.6l1.2 1.8c.6.9 1.9.7 2.2-.3l2.9-7.9s.1-.2.2-.2h7.8V6.7h-7.8Zm5.3 3.4-1.9 1.9-1.9-1.9-1.1 1.1 1.9 1.9-1.9 1.9 1.1 1.1 1.9-1.9 1.9 1.9 1.1-1.1-1.9-1.9 1.9-1.9-1.1-1.1Z"})});var s_=a(L(),1),OT=a(y(),1),HT=(0,OT.jsx)(s_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,OT.jsx)(s_.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"})});var W0=a(L(),1),$0=a(y(),1),q0=(0,$0.jsxs)(W0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,$0.jsx)(W0.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,$0.jsx)(W0.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})]});var c_=a(L(),1),jT=a(y(),1),UT=(0,jT.jsx)(c_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,jT.jsx)(c_.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})});var u_=a(L(),1),GT=a(y(),1),Z0=(0,GT.jsx)(u_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,GT.jsx)(u_.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var m_=a(L(),1),WT=a(y(),1),$T=(0,WT.jsx)(m_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,WT.jsx)(m_.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})});var p_=a(L(),1),qT=a(y(),1),ZT=(0,qT.jsx)(p_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,qT.jsx)(p_.Path,{d:"M18.5 10a1.5 1.5 0 0 1 1.5 1.5v7a1.5 1.5 0 0 1-1.5 1.5h-7a1.5 1.5 0 0 1-1.5-1.5v-7a1.5 1.5 0 0 1 1.5-1.5zM16 4a2 2 0 0 1 2 2v2h-1.5V6a.5.5 0 0 0-.5-.5H6a.5.5 0 0 0-.5.5v3H8v1.5H5.5V16a.5.5 0 0 0 .5.5h2V18H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z"})});var d_=a(L(),1),KT=a(y(),1),kp=(0,KT.jsx)(d_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,KT.jsx)(d_.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})});var f_=a(L(),1),YT=a(y(),1),QT=(0,YT.jsx)(f_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,YT.jsx)(f_.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})});var h_=a(L(),1),XT=a(y(),1),JT=(0,XT.jsx)(h_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,XT.jsx)(h_.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"})});var g_=a(L(),1),eP=a(y(),1),tP=(0,eP.jsx)(g_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,eP.jsx)(g_.Path,{d:"M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"})});var K0=a(L(),1),Y0=a(y(),1),zc=(0,Y0.jsxs)(K0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Y0.jsx)(K0.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,Y0.jsx)(K0.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]});var wf=a(L(),1),Cf=a(y(),1),rP=(0,Cf.jsxs)(wf.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Cf.jsx)(wf.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,Cf.jsx)(wf.Path,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),(0,Cf.jsx)(wf.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})]});var v_=a(L(),1),oP=a(y(),1),aP=(0,oP.jsx)(v_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oP.jsx)(v_.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})});var b_=a(L(),1),nP=a(y(),1),wp=(0,nP.jsx)(b_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,nP.jsx)(b_.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})});var y_=a(L(),1),iP=a(y(),1),Q0=(0,iP.jsx)(y_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,iP.jsx)(y_.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"})});var __=a(L(),1),lP=a(y(),1),sP=(0,lP.jsx)(__.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,lP.jsx)(__.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"})});var x_=a(L(),1),cP=a(y(),1),Sf=(0,cP.jsx)(x_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,cP.jsx)(x_.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});var k_=a(L(),1),uP=a(y(),1),mP=(0,uP.jsx)(k_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,uP.jsx)(k_.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})});var w_=a(L(),1),pP=a(y(),1),dP=(0,pP.jsx)(w_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,pP.jsx)(w_.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})});var C_=a(L(),1),fP=a(y(),1),hP=(0,fP.jsx)(C_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,fP.jsx)(C_.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})});var S_=a(L(),1),gP=a(y(),1),Cp=(0,gP.jsx)(S_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,gP.jsx)(S_.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z"})});var T_=a(L(),1),vP=a(y(),1),Tf=(0,vP.jsx)(T_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,vP.jsx)(T_.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z"})});var P_=a(L(),1),bP=a(y(),1),X0=(0,bP.jsx)(P_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,bP.jsx)(P_.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-2.2 6.6H7l1.6-2.2c.3-.4.5-.7.6-.9.1-.2.2-.4.2-.5 0-.2-.1-.3-.1-.4-.1-.1-.2-.1-.4-.1s-.4 0-.6.1c-.3.1-.5.3-.7.4l-.2.2-.2-1.2.1-.1c.3-.2.5-.3.8-.4.3-.1.6-.1.9-.1.3 0 .6.1.9.2.2.1.4.3.6.5.1.2.2.5.2.7 0 .3-.1.6-.2.9-.1.3-.4.7-.7 1.1l-.5.6h1.6v1.2z"})});var B_=a(L(),1),yP=a(y(),1),_P=(0,yP.jsx)(B_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,yP.jsx)(B_.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-.5 6.6H6.7l-1.2 1.2v-6.3h7v5.1z"})});var E_=a(L(),1),xP=a(y(),1),kP=(0,xP.jsx)(E_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xP.jsx)(E_.Path,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"})});var I_=a(L(),1),wP=a(y(),1),CP=(0,wP.jsx)(I_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wP.jsx)(I_.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})});var J0=a(L(),1),e1=a(y(),1),t1=(0,e1.jsxs)(J0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,e1.jsx)(J0.Path,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),(0,e1.jsx)(J0.Path,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"})]});var N_=a(L(),1),SP=a(y(),1),TP=(0,SP.jsx)(N_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,SP.jsx)(N_.Path,{d:"M8.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H4v-3h4.001ZM4 20h9v-1.5H4V20Zm16-4H4v-1.5h16V16ZM13.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H9v-3h4.001Z"})});var D_=a(L(),1),PP=a(y(),1),BP=(0,PP.jsx)(D_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,PP.jsx)(D_.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})});var L_=a(L(),1),EP=a(y(),1),r1=(0,EP.jsx)(L_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,EP.jsx)(L_.Path,{d:"M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"})});var M_=a(L(),1),IP=a(y(),1),NP=(0,IP.jsx)(M_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,IP.jsx)(M_.Path,{d:"M8.1 12.3c.1.1.3.3.5.3.2.1.4.1.6.1.2 0 .4 0 .6-.1.2-.1.4-.2.5-.3l3-3c.3-.3.5-.7.5-1.1 0-.4-.2-.8-.5-1.1L9.7 3.5c-.1-.2-.3-.3-.5-.3H5c-.4 0-.8.4-.8.8v4.2c0 .2.1.4.2.5l3.7 3.6zM5.8 4.8h3.1l3.4 3.4v.1l-3 3 .5.5-.7-.5-3.3-3.4V4.8zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})});var A_=a(L(),1),DP=a(y(),1),LP=(0,DP.jsx)(A_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,DP.jsx)(A_.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"})});var R_=a(L(),1),MP=a(y(),1),AP=(0,MP.jsx)(R_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,MP.jsx)(R_.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})});var z_=a(L(),1),RP=a(y(),1),zP=(0,RP.jsx)(z_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,RP.jsx)(z_.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"})});var V_=a(L(),1),VP=a(y(),1),FP=(0,VP.jsx)(V_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,VP.jsx)(V_.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"})});var F_=a(L(),1),OP=a(y(),1),HP=(0,OP.jsx)(F_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,OP.jsx)(F_.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})});var O_=a(L(),1),jP=a(y(),1),o1=(0,jP.jsx)(O_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,jP.jsx)(O_.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})});var H_=a(L(),1),UP=a(y(),1),a1=(0,UP.jsx)(H_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,UP.jsx)(H_.Path,{d:"M4 13.5h6v-3H4v3zm8.2-2.5.8-.3V14h1V9.3l-2.2.7.4 1zm7.1-1.2c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3-.1-.8-.3-1.1z"})});var j_=a(L(),1),GP=a(y(),1),n1=(0,GP.jsx)(j_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,GP.jsx)(j_.Path,{d:"M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"})});var U_=a(L(),1),WP=a(y(),1),i1=(0,WP.jsx)(U_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,WP.jsx)(U_.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"})});var G_=a(L(),1),$P=a(y(),1),qP=(0,$P.jsx)(G_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,$P.jsx)(G_.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"})});var W_=a(L(),1),ZP=a(y(),1),KP=(0,ZP.jsx)(W_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ZP.jsx)(W_.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m13.955 20.748 8-17.5-.91-.416L19.597 6H13.5v1.5h5.411l-1.6 3.5H13.5v1.5h3.126l-1.6 3.5H13.5l.028 1.5h.812l-1.295 2.832.91.416ZM17.675 16l-.686 1.5h4.539L21.5 16h-3.825Zm2.286-5-.686 1.5H21.5V11h-1.54ZM2 12c0 3.58 2.42 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.48 0-4.5-1.52-4.5-4S5.52 7.5 8 7.5h3.5V6H8c-3.58 0-6 2.42-6 6Z"})});var $_=a(L(),1),YP=a(y(),1),QP=(0,YP.jsx)($_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,YP.jsx)($_.Path,{d:"M7 11.5h10V13H7z"})});var q_=a(L(),1),XP=a(y(),1),JP=(0,XP.jsx)(q_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,XP.jsx)(q_.Path,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"})});var Z_=a(L(),1),eB=a(y(),1),tB=(0,eB.jsx)(Z_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,eB.jsx)(Z_.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})});var K_=a(L(),1),rB=a(y(),1),l1=(0,rB.jsx)(K_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,rB.jsx)(K_.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"})});var Y_=a(L(),1),oB=a(y(),1),s1=(0,oB.jsx)(Y_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,oB.jsx)(Y_.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})});var Q_=a(L(),1),aB=a(y(),1),nB=(0,aB.jsx)(Q_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,aB.jsx)(Q_.Path,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"})});var X_=a(L(),1),iB=a(y(),1),c1=(0,iB.jsx)(X_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,iB.jsx)(X_.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})});var J_=a(L(),1),lB=a(y(),1),u1=(0,lB.jsx)(J_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,lB.jsx)(J_.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"})});var ex=a(L(),1),sB=a(y(),1),cB=(0,sB.jsx)(ex.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,sB.jsx)(ex.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var tx=a(L(),1),uB=a(y(),1),mB=(0,uB.jsx)(tx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,uB.jsx)(tx.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm0 1.5c3.4 0 6.2 2.7 6.5 6l-1.2-.6-.8-.4c-.1 0-.2 0-.3-.1H16c-.1-.2-.4-.2-.7 0l-2.9 2.1L9 11.3h-.7L5.5 13v-1.1c0-3.6 2.9-6.5 6.5-6.5Zm0 13c-2.7 0-5-1.7-6-4l2.8-1.7 3.5 1.2h.4s.2 0 .4-.2l2.9-2.1.4.2c.6.3 1.4.7 2.1 1.1-.5 3.1-3.2 5.4-6.4 5.4Z"})});var rx=a(L(),1),pB=a(y(),1),dB=(0,pB.jsx)(rx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,pB.jsx)(rx.Path,{fill:"none",d:"M5.75 12.75V18.25H11.25M12.75 5.75H18.25V11.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"square"})});var ox=a(L(),1),fB=a(y(),1),hB=(0,fB.jsx)(ox.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,fB.jsx)(ox.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"})});var ax=a(L(),1),gB=a(y(),1),m1=(0,gB.jsx)(ax.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,gB.jsx)(ax.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})});var nx=a(L(),1),vB=a(y(),1),bB=(0,vB.jsx)(nx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,vB.jsx)(nx.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})});var ix=a(L(),1),yB=a(y(),1),_B=(0,yB.jsx)(ix.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,yB.jsx)(ix.Path,{d:"M18.2 9.5h-3.5c-1 0-1.8.8-1.8 1.8v2.5h1.5v-2.5c0-.1.1-.2.2-.2h3.5c.1 0 .2.1.2.2v2.5h1.5v-2.5c0-1-.8-1.8-1.8-1.8Zm-9 0H5.7c-1 0-1.8.8-1.8 1.8v2.5h7v-2.5c0-1-.8-1.8-1.8-1.8Z"})});var lx=a(L(),1),xB=a(y(),1),kB=(0,xB.jsx)(lx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xB.jsx)(lx.Path,{d:"M4 16.5h13V15H4v1.5ZM4 12v1.5h16V12H4Zm1.5-4.2c0-.1.1-.2.2-.2h3.5c.1 0 .2.1.2.2v2.5h1.5V7.8c0-1-.8-1.8-1.8-1.8H5.6c-1 0-1.8.8-1.8 1.8v2.5h1.5V7.8Z"})});var sx=a(L(),1),wB=a(y(),1),CB=(0,wB.jsx)(sx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wB.jsx)(sx.Path,{d:"M14 11.25a.25.25 0 0 0-.25-.25h-3.5a.25.25 0 0 0-.25.25v2.5H8.5v-2.5c0-.966.784-1.75 1.75-1.75h3.5c.966 0 1.75.784 1.75 1.75v2.5H14v-2.5Z"})});var cx=a(L(),1),SB=a(y(),1),TB=(0,SB.jsx)(cx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,SB.jsx)(cx.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14.2c.1.9.9 1.7 1.8 1.8H19.2c1-.1 1.8-1 1.8-2V5c0-1.1-.9-2-2-2ZM8.5 19.5H5c-.3 0-.5-.2-.5-.5v-3.5h4v4Zm0-5.5h-4v-4h4v4Zm0-5.5h-4V5c0-.3.2-.5.5-.5h3.5v4Zm11 10.5c0 .3-.2.5-.5.5h-9v-15h9c.3 0 .5.2.5.5v14Zm-4-10.8H14v3h-3v1.5h3v3h1.5v-3h3v-1.5h-3v-3Z"})});var ux=a(L(),1),PB=a(y(),1),BB=(0,PB.jsx)(ux.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,PB.jsx)(ux.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1 .8 1.9 1.8 2H19.2c.9-.1 1.7-.9 1.8-1.8V5c0-1.1-.9-2-2-2Zm-5 16.5H5c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h9v15Zm5.5-.5c0 .3-.2.5-.5.5h-3.5v-4h4V19Zm0-5h-4v-4h4v4Zm0-5.5h-4v-4H19c.3 0 .5.2.5.5v3.5Zm-11 7.3H10v-3h3v-1.5h-3v-3H8.5v3h-3v1.5h3v3Z"})});var mx=a(L(),1),EB=a(y(),1),IB=(0,EB.jsx)(mx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,EB.jsx)(mx.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14.2c.1.9.9 1.7 1.8 1.8H19.2c1-.1 1.8-1 1.8-2V5c0-1.1-.9-2-2-2ZM8.5 19.5H5c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h3.5v15Zm11-.5c0 .3-.2.5-.5.5h-9v-15h9c.3 0 .5.2.5.5v14ZM16.9 8.8l-2.1 2.1-2.1-2.1-1.1 1.1 2.1 2.1-2.1 2.1 1.1 1.1 2.1-2.1 2.1 2.1 1.1-1.1-2.1-2.1L18 9.9l-1.1-1.1Z"})});var p1=a(L(),1),d1=a(y(),1),f1=(0,d1.jsxs)(p1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,d1.jsx)(p1.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 9.484h-8.889v-1.5H20v1.5Zm0 7h-4.889v-1.5H20v1.5Zm-14 .032a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),(0,d1.jsx)(p1.Path,{d:"M13 15.516a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 8.484a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})]});var px=a(L(),1),NB=a(y(),1),DB=(0,NB.jsx)(px.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,NB.jsx)(px.Path,{d:"M19 3H4.8c-.9.1-1.7.9-1.8 1.8V19.2c.1 1 1 1.8 2 1.8h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm-9 1.5h4v4h-4v-4ZM4.5 5c0-.3.2-.5.5-.5h3.5v4h-4V5Zm15 14c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-9h15v9Zm0-10.5h-4v-4H19c.3 0 .5.2.5.5v3.5Zm-8.3 10h1.5v-3h3V14h-3v-3h-1.5v3h-3v1.5h3v3Z"})});var dx=a(L(),1),LB=a(y(),1),MB=(0,LB.jsx)(dx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,LB.jsx)(dx.Path,{d:"M21 5c0-1.1-.9-2-2-2H5c-1 0-1.9.8-2 1.8V19.2c.1.9.9 1.7 1.8 1.8H19c1.1 0 2-.9 2-2V5ZM4.5 14V5c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v9h-15Zm4 5.5H5c-.3 0-.5-.2-.5-.5v-3.5h4v4Zm5.5 0h-4v-4h4v4Zm5.5-.5c0 .3-.2.5-.5.5h-3.5v-4h4V19ZM11.2 10h-3V8.5h3v-3h1.5v3h3V10h-3v3h-1.5v-3Z"})});var fx=a(L(),1),AB=a(y(),1),RB=(0,AB.jsx)(fx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,AB.jsx)(fx.Path,{d:"M19 3H4.8c-.9.1-1.7.9-1.8 1.8V19.2c.1 1 1 1.8 2 1.8h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-9h15v9Zm0-10.5h-15V5c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v3.5Zm-9.6 9.4 2.1-2.1 2.1 2.1 1.1-1.1-2.1-2.1 2.1-2.1-1.1-1.1-2.1 2.1-2.1-2.1-1.1 1.1 2.1 2.1-2.1 2.1 1.1 1.1Z"})});var hx=a(L(),1),zB=a(y(),1),VB=(0,zB.jsx)(hx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,zB.jsx)(hx.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm.5 2v6.2h-6.8V4.4h6.2c.3 0 .5.2.5.5ZM5 4.5h6.2v6.8H4.4V5.1c0-.3.2-.5.5-.5ZM4.5 19v-6.2h6.8v6.8H5.1c-.3 0-.5-.2-.5-.5Zm14.5.5h-6.2v-6.8h6.8v6.2c0 .3-.2.5-.5.5Z"})});var gx=a(L(),1),FB=a(y(),1),OB=(0,FB.jsx)(gx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,FB.jsx)(gx.Path,{d:"M4 16.5h13V15H4v1.5Zm0-3h16V12H4v1.5ZM18.2 6h-3.5c-1 0-1.8.8-1.8 1.8v2.5h1.5V7.8c0-.1.1-.2.2-.2h3.5c.1 0 .2.1.2.2v2.5h1.5V7.8c0-1-.8-1.8-1.8-1.8ZM11 7.8c0-1-.8-1.8-1.8-1.8H5.7c-1 0-1.8.8-1.8 1.8v2.5h7V7.8Z"})});var vx=a(L(),1),HB=a(y(),1),h1=(0,HB.jsx)(vx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,HB.jsx)(vx.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})});var g1=a(L(),1),v1=a(y(),1),jB=(0,v1.jsxs)(g1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,v1.jsx)(g1.Path,{d:"M 12.841306,16.677917 12.001264,12.71529 Q 11.835801,11.930402 11.695793,11.417042 11.560029,10.89944 11.398809,10.568514 11.237588,10.237588 11,10 10.635133,9.6351329 10.219354,9.6351329 9.8078183,9.6308902 9.4387086,10 8.9932313,10.445477 8.8574668,11.022476 8.7259449,11.595233 8.7259449,12.155262 L 7.4955791,11.196425 Q 7.5719467,10.509117 7.8307477,9.9109045 8.0937915,9.3084495 8.6410921,8.7611489 9.1799075,8.2223335 9.7569066,8.086569 q 0.5812414,-0.1400071 1.1242994,0.046669 0.543058,0.1866762 0.975808,0.6194255 0.335168,0.3351686 0.581242,0.767918 0.24183,0.4285067 0.436992,1.0564174 0.195161,0.619426 0.381837,1.527351 l 0.364867,1.756453 1.883733,-1.883732 1.018234,1.018233 z"}),(0,v1.jsx)(g1.Path,{d:"M12.574 4a.75.75 0 0 1 .53.22l6.723 6.724a2.315 2.315 0 0 1 0 3.264l-.532-.528.531.53-5.61 5.611a2.31 2.31 0 0 1-3.276.001l-6.72-6.716a.75.75 0 0 1-.22-.53V4.75A.75.75 0 0 1 4.75 4h7.824ZM5.5 5.5v6.764l6.501 6.497a.817.817 0 0 0 .889.178.816.816 0 0 0 .264-.178l5.61-5.61a.816.816 0 0 0-.001-1.149l-6.5-6.502H5.5Z"})]});var bx=a(L(),1),UB=a(y(),1),GB=(0,UB.jsx)(bx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,UB.jsx)(bx.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"})});var b1=a(L(),1),y1=a(y(),1),WB=(0,y1.jsxs)(b1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,y1.jsx)(b1.Path,{d:"m14.95 13.889-1.061 1.061-5.552-5.553 1.06-1.06 5.552 5.552Z"}),(0,y1.jsx)(b1.Path,{d:"M12.574 4a.75.75 0 0 1 .53.22l6.723 6.724a2.315 2.315 0 0 1 0 3.264l-.532-.528.531.53-5.61 5.611a2.31 2.31 0 0 1-3.276.001l-6.72-6.716a.75.75 0 0 1-.22-.53V4.75A.75.75 0 0 1 4.75 4h7.824ZM5.5 5.5v6.764l6.501 6.497a.817.817 0 0 0 .889.178.816.816 0 0 0 .264-.178l5.61-5.61a.816.816 0 0 0-.001-1.149l-6.5-6.502H5.5Z"})]});var yx=a(L(),1),$B=a(y(),1),_1=(0,$B.jsx)(yx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,$B.jsx)(yx.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16.5c-4.1 0-7.5-3.4-7.5-7.5S7.9 4.5 12 4.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5zM12 7l-1 5c0 .3.2.6.4.8l4.2 2.8-2.7-4.1L12 7z"})});var _x=a(L(),1),qB=a(y(),1),Ll=(0,qB.jsx)(_x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,qB.jsx)(_x.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})});var xx=a(L(),1),ZB=a(y(),1),Vc=(0,ZB.jsx)(xx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ZB.jsx)(xx.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})});var kx=a(L(),1),KB=a(y(),1),x1=(0,KB.jsx)(kx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,KB.jsx)(kx.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})});var wx=a(L(),1),YB=a(y(),1),Pf=(0,YB.jsx)(wx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,YB.jsx)(wx.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})});var Cx=a(L(),1),QB=a(y(),1),XB=(0,QB.jsx)(Cx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,QB.jsx)(Cx.Path,{d:"M19 5c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2zM5 6.5c-.3 0-.5.2-.5.5v10c0 .3.2.5.5.5h14c.3 0 .5-.2.5-.5V7c0-.3-.2-.5-.5-.5zM14.734 9q.714 0 1.15.253.437.247.639.84.2.591.2 1.61v1.15q0 .402.036.667.04.258.172.39.138.127.437.127h.104l-.162.828h-.08q-.5 0-.776-.097a.9.9 0 0 1-.414-.283 2 2 0 0 1-.259-.448q-.316.367-.748.598-.43.23-.977.23-.524 0-.914-.213a1.56 1.56 0 0 1-.61-.58 1.65 1.65 0 0 1-.213-.84q0-.477.207-.817.213-.345.564-.568.357-.23.794-.363.437-.139.902-.196.471-.062.902-.068 0-.805-.315-1.053-.316-.247-.915-.247-.316 0-.678.098-.356.097-.805.408l-.15-.84a2.8 2.8 0 0 1 .846-.419A3.4 3.4 0 0 1 14.734 9m-5.877 1.669H9.86l.59-1.531h.689l-.585 1.53h.898l-.249.727h-.922l-.337.866h1.019l-.354.773h-.962l-.681 1.804h-.701l.69-1.804h-.999l-.693 1.804h-.69l.685-1.804H6.3l.34-.773h.915l.333-.866h-.994l.244-.726H8.16l.594-1.531h.693zm6.832 1.264q-.823.029-1.335.16-.506.133-.74.397-.236.265-.236.685 0 .454.241.66.248.202.632.202.414 0 .8-.207.39-.207.637-.552zm-7.441.328h1l.34-.866h-1z"})});var ha=a(T(),1),ri=a(P(),1),xo=a(A(),1),Bf=a(z(),1),Px=a(G(),1);var Sx=a(z(),1),Sp=a(H(),1),ju=a(Br(),1),JB=a(T(),1),zV=a(Y(),1),VV=a(pe(),1);function Tx(e,t,r){return(0,Sx.useSelect)(o=>o(zV.store).canUser("update",{kind:e,name:t,id:r}),[e,t,r])}function Es(e={}){let t=(0,Sp.useRef)(e),r=(0,Sp.useRef)(!1),{getSettings:o}=(0,Sx.useSelect)(JB.store);(0,Sp.useLayoutEffect)(()=>{t.current=e}),(0,Sp.useEffect)(()=>{if(r.current||!t.current.url||!(0,ju.isBlobURL)(t.current.url))return;let n=(0,ju.getBlobByURL)(t.current.url);if(!n)return;let{url:i,allowedTypes:l,onChange:s,onError:c}=t.current,{mediaUpload:u}=o();u&&(r.current=!0,u({filesList:[n],allowedTypes:l,onFileChange:([m])=>{(0,ju.isBlobURL)(m?.url)||((0,ju.revokeBlobURL)(i),s(m),r.current=!1)},onError:m=>{(0,ju.revokeBlobURL)(i),c(m),r.current=!1}}))},[o])}function k1(){return(0,Sx.useSelect)(t=>{let{getSettings:r}=t(JB.store),{__experimentalDiscussionSettings:o}=r();return o?.avatarURL??""},[])}function $(){return(0,VV.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}var br=a(y(),1),eE="core/accordion-item",ege="core/accordion-heading",tge={name:eE};function FV({attributes:{autoclose:e,iconPosition:t,showIcon:r,headingLevel:o,levelOptions:n},clientId:i,setAttributes:l,isSelected:s}){let c=(0,Bf.useRegistry)(),{getBlockOrder:u}=(0,Bf.useSelect)(ha.store),m=(0,ha.useBlockProps)({role:"group"}),p=$(),{updateBlockAttributes:d,insertBlock:f}=(0,Bf.useDispatch)(ha.store),g=(0,ha.useBlockEditingMode)()==="contentOnly",b=(0,ha.useInnerBlocksProps)(m,{template:[[eE]],defaultBlock:tge,directInsert:!0,templateInsertUpdatesSelection:!0});return(0,br.jsxs)(br.Fragment,{children:[s&&!g&&(0,br.jsxs)(br.Fragment,{children:[(0,br.jsx)(ha.BlockControls,{children:(0,br.jsx)(xo.ToolbarGroup,{children:(0,br.jsx)(ha.HeadingLevelDropdown,{value:o,options:n,onChange:_=>{let k=u(i),S=[];k.forEach(C=>{let E=u(C);S.push(...E)}),c.batch(()=>{l({headingLevel:_}),d(S,{level:_})})}})})}),(0,br.jsx)(ha.BlockControls,{group:"other",children:(0,br.jsx)(xo.ToolbarButton,{onClick:()=>{let _=(0,Px.createBlock)(eE,{},[(0,Px.createBlock)(ege,{level:o}),(0,Px.createBlock)("core/accordion-panel",{})]);f(_,void 0,i)},children:(0,ri.__)("Add item")})})]}),(0,br.jsx)(ha.InspectorControls,{children:(0,br.jsxs)(xo.__experimentalToolsPanel,{label:(0,ri.__)("Settings"),resetAll:()=>{l({autoclose:!1,showIcon:!0,iconPosition:"right"})},dropdownMenuProps:p,children:[(0,br.jsx)(xo.__experimentalToolsPanelItem,{label:(0,ri.__)("Auto-close"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>l({autoclose:!1}),children:(0,br.jsx)(xo.ToggleControl,{label:(0,ri.__)("Auto-close"),onChange:_=>{l({autoclose:_})},checked:e,help:(0,ri.__)("Automatically close accordions when a new one is opened.")})}),(0,br.jsx)(xo.__experimentalToolsPanelItem,{label:(0,ri.__)("Show icon"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>l({showIcon:!0}),children:(0,br.jsx)(xo.ToggleControl,{label:(0,ri.__)("Show icon"),onChange:_=>{l({showIcon:_,iconPosition:_?t:"right"})},checked:r,help:(0,ri.__)("Display a plus icon next to the accordion header.")})}),r&&(0,br.jsx)(xo.__experimentalToolsPanelItem,{label:(0,ri.__)("Icon Position"),isShownByDefault:!0,hasValue:()=>t!=="right",onDeselect:()=>l({iconPosition:"right"}),children:(0,br.jsxs)(xo.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,isBlock:!0,label:(0,ri.__)("Icon Position"),value:t,onChange:_=>{l({iconPosition:_})},children:[(0,br.jsx)(xo.__experimentalToggleGroupControlOption,{label:(0,ri.__)("Left"),value:"left"}),(0,br.jsx)(xo.__experimentalToggleGroupControlOption,{label:(0,ri.__)("Right"),value:"right"})]})})]})},"setting"),(0,br.jsx)("div",{...b})]})}var Bx=a(T(),1),OV=a(y(),1);function HV(){let e=Bx.useBlockProps.save({role:"group"});return(0,OV.jsx)("div",{...Bx.useInnerBlocksProps.save(e)})}var Ex={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion",title:"Accordion",category:"design",description:"Displays a foldable layout that groups content in collapsible sections.",example:{},supports:{anchor:!0,html:!1,align:["wide","full"],background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{background:!0,gradients:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},spacing:{padding:!0,margin:["top","bottom"],blockGap:!0},shadow:!0,layout:!0,ariaLabel:!0,interactivity:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},contentRole:!0,listView:!0},attributes:{iconPosition:{type:"string",default:"right"},showIcon:{type:"boolean",default:!0},autoclose:{type:"boolean",default:!1},headingLevel:{type:"number",default:3},levelOptions:{type:"array"}},providesContext:{"core/accordion-icon-position":"iconPosition","core/accordion-show-icon":"showIcon","core/accordion-heading-level":"headingLevel"},allowedBlocks:["core/accordion-item"],textdomain:"default",viewScriptModule:"@wordpress/block-library/accordion/view"};var jV=a(G(),1);function N(e){if(!e)return;let{metadata:t,settings:r,name:o}=e;return(0,jV.registerBlockType)({name:o,...t},r)}var{name:UV}=Ex,GV={icon:A7,example:{innerBlocks:[{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,tE.__)("Lorem ipsum dolor sit amet, consectetur.")}}]},{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,tE.__)("Suspendisse commodo lacus, interdum et.")}}]}]},edit:FV,save:HV},oge=()=>N({name:UV,metadata:Ex,settings:GV});var oE={};q(oE,{init:()=>ige,metadata:()=>Nx,name:()=>KV,settings:()=>YV});var w1=a(P(),1),Uu=a(T(),1),WV=a(z(),1),Ef=a(A(),1);var Is=a(y(),1),age=[["core/accordion-heading"],["core/accordion-panel"]];function $V({attributes:e,clientId:t,setAttributes:r,isSelected:o}){let{openByDefault:n}=e,i=$(),{isSelected:l}=(0,WV.useSelect)(u=>o||n?{isSelected:!0}:{isSelected:u(Uu.store).hasSelectedInnerBlock(t,!0)},[t,o,n]),s=(0,Uu.useBlockProps)({className:w({"is-open":n||l})}),c=(0,Uu.useInnerBlocksProps)(s,{template:age,templateLock:"all",directInsert:!0,templateInsertUpdatesSelection:!0});return(0,Is.jsxs)(Is.Fragment,{children:[(0,Is.jsx)(Uu.InspectorControls,{children:(0,Is.jsx)(Ef.__experimentalToolsPanel,{label:(0,w1.__)("Settings"),resetAll:()=>{r({openByDefault:!1})},dropdownMenuProps:i,children:(0,Is.jsx)(Ef.__experimentalToolsPanelItem,{label:(0,w1.__)("Open by default"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{r({openByDefault:!1})},children:(0,Is.jsx)(Ef.ToggleControl,{label:(0,w1.__)("Open by default"),onChange:u=>{r({openByDefault:u})},checked:n,help:(0,w1.__)("Accordion content will be displayed by default.")})})})},"setting"),(0,Is.jsx)("div",{...c})]})}var Ix=a(T(),1);var qV=a(y(),1);function ZV({attributes:e}){let{openByDefault:t}=e,r=Ix.useBlockProps.save({className:w({"is-open":t})}),o=Ix.useInnerBlocksProps.save(r);return(0,qV.jsx)("div",{...o})}var Nx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion-item",title:"Accordion Item",category:"design",description:"Wraps the heading and panel in one unit.",parent:["core/accordion"],allowedBlocks:["core/accordion-heading","core/accordion-panel"],supports:{html:!1,color:{background:!0,gradients:!0},interactivity:!0,spacing:{margin:["top","bottom"],padding:!0,blockGap:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},shadow:!0,layout:{allowEditing:!1},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},contentRole:!0},attributes:{openByDefault:{type:"boolean",default:!1}},providesContext:{"core/accordion-open-by-default":"openByDefault"},textdomain:"default",style:"wp-block-accordion-item"};var{name:KV}=Nx,YV={icon:M7,edit:$V,save:ZV},ige=()=>N({name:KV,metadata:Nx,settings:YV});var aE={};q(aE,{init:()=>uge,metadata:()=>Dx,name:()=>oF,settings:()=>aF});var QV=a(P(),1),XV=a(H(),1),Ui=a(T(),1),JV=a(z(),1),Tp=a(y(),1);function eF({attributes:e,setAttributes:t,context:r}){let{title:o}=e,{"core/accordion-icon-position":n,"core/accordion-show-icon":i,"core/accordion-heading-level":l}=r,s="h"+l,{__unstableMarkNextChangeAsNotPersistent:c}=(0,JV.useDispatch)(Ui.store);(0,XV.useEffect)(()=>{n!==void 0&&i!==void 0&&(c(),t({iconPosition:n,showIcon:i}))},[n,i,t,c]);let[u,m]=(0,Ui.useSettings)("typography.fluid","layout"),p=(0,Ui.getTypographyClassesAndStyles)(e,{typography:{fluid:u},layout:{wideSize:m?.wideSize}}),d=(0,Ui.useBlockProps)(),f=(0,Ui.__experimentalGetSpacingClassesAndStyles)(e);return(0,Tp.jsx)(s,{...d,children:(0,Tp.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:f.style,tabIndex:"-1",children:[i&&n==="left"&&(0,Tp.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Tp.jsx)(Ui.RichText,{withoutInteractiveFormatting:!0,disableLineBreaks:!0,tagName:"span",value:o,onChange:h=>t({title:h}),placeholder:(0,QV.__)("Accordion title"),className:"wp-block-accordion-heading__toggle-title",style:{letterSpacing:p.style.letterSpacing,textDecoration:p.style.textDecoration}}),i&&n==="right"&&(0,Tp.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var Gu=a(T(),1),Pp=a(y(),1);function tF({attributes:e}){let{level:t,title:r,iconPosition:o,showIcon:n}=e,i="h"+(t||3),l=(0,Gu.getTypographyClassesAndStyles)(e),s=Gu.useBlockProps.save(),c=(0,Gu.__experimentalGetSpacingClassesAndStyles)(e);return(0,Pp.jsx)(i,{...s,children:(0,Pp.jsxs)("button",{type:"button",className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&o==="left"&&(0,Pp.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Pp.jsx)(Gu.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:l.style.letterSpacing,textDecoration:l.style.textDecoration}}),n&&o==="right"&&(0,Pp.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var Dx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion-heading",title:"Accordion Heading",category:"design",description:"Displays a heading that toggles the accordion panel.",parent:["core/accordion-item"],usesContext:["core/accordion-icon-position","core/accordion-show-icon","core/accordion-heading-level"],supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{__experimentalSkipSerialization:["textDecoration","letterSpacing"],fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,visibility:!1,lock:!1},selectors:{typography:{letterSpacing:".wp-block-accordion-heading .wp-block-accordion-heading__toggle-title",textDecoration:".wp-block-accordion-heading .wp-block-accordion-heading__toggle-title"}},attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},textdomain:"default"};var Ml=a(T(),1),Gi=a(y(),1),sge={attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,visibility:!1},save({attributes:e}){let{level:t,title:r,iconPosition:o,showIcon:n}=e,i="h"+(t||3),l=Ml.useBlockProps.save(),s=(0,Ml.__experimentalGetSpacingClassesAndStyles)(e);return(0,Gi.jsx)(i,{...l,children:(0,Gi.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:s.style,children:[n&&o==="left"&&(0,Gi.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Gi.jsx)(Ml.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r}),n&&o==="right"&&(0,Gi.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},cge={attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{__experimentalSkipSerialization:["textDecoration","letterSpacing"],fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,visibility:!1,lock:!1},save({attributes:e}){let{level:t,title:r,iconPosition:o,showIcon:n}=e,i="h"+(t||3),l=(0,Ml.getTypographyClassesAndStyles)(e),s=Ml.useBlockProps.save(),c=(0,Ml.__experimentalGetSpacingClassesAndStyles)(e);return(0,Gi.jsx)(i,{...s,children:(0,Gi.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&o==="left"&&(0,Gi.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Gi.jsx)(Ml.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:l.style.letterSpacing,textDecoration:l.style.textDecoration}}),n&&o==="right"&&(0,Gi.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},rF=[sge,cge];var{name:oF}=Dx,aF={icon:L7,edit:eF,save:tF,deprecated:rF},uge=()=>N({name:oF,metadata:Dx,settings:aF});var nE={};q(nE,{init:()=>pge,metadata:()=>Mx,name:()=>uF,settings:()=>mF});var If=a(T(),1),nF=a(z(),1),iF=a(y(),1);function lF({attributes:e,context:t,clientId:r,isSelected:o}){let{allowedBlocks:n,templateLock:i}=e,l=t["core/accordion-open-by-default"],{hasSelection:s}=(0,nF.useSelect)(m=>{if(o||l)return{hasSelection:!0};let{getBlockRootClientId:p,isBlockSelected:d,hasSelectedInnerBlock:f}=m(If.store),h=p(r);return{hasSelection:d(h)||f(h,!0)}},[r,o,l]),c=(0,If.useBlockProps)({"aria-hidden":!s,role:"region"}),u=(0,If.useInnerBlocksProps)(c,{allowedBlocks:n,template:[["core/paragraph",{}]],templateLock:i});return(0,iF.jsx)("div",{...u})}var Lx=a(T(),1),sF=a(y(),1);function cF(){let e=Lx.useBlockProps.save({role:"region"}),t=Lx.useInnerBlocksProps.save(e);return(0,sF.jsx)("div",{...t})}var Mx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion-panel",title:"Accordion Panel",category:"design",description:"Contains the hidden or revealed content beneath the heading.",parent:["core/accordion-item"],usesContext:["core/accordion-open-by-default"],supports:{html:!1,color:{background:!0,gradients:!0},interactivity:!0,spacing:{padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},shadow:!0,layout:{allowEditing:!1},visibility:!1,contentRole:!0,allowedBlocks:!0,lock:!1},attributes:{templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1],default:!1}},textdomain:"default",style:"wp-block-accordion-panel"};var{name:uF}=Mx,mF={icon:D0,edit:lF,save:cF},pge=()=>N({name:uF,metadata:Mx,settings:mF});var iE={};q(iE,{init:()=>fge,metadata:()=>Ax,name:()=>hF,settings:()=>gF});var Ax={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/archives",title:"Archives",category:"widgets",description:"Display a date archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showLabel:{type:"boolean",default:!0},showPostCounts:{type:"boolean",default:!1},type:{type:"string",default:"monthly"}},supports:{anchor:!0,align:!0,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},interactivity:{clientNavigation:!0}}};var Ga=a(A(),1),Ho=a(P(),1),Rx=a(T(),1),pF=a(Mu(),1),dF=a(pe(),1);var Wr=a(y(),1);function fF({attributes:e,setAttributes:t,name:r}){let{showLabel:o,showPostCounts:n,displayAsDropdown:i,type:l}=e,s=$(),{content:c,status:u,error:m}=(0,pF.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),p=(0,dF.useDisabled)(),d=(0,Rx.useBlockProps)({ref:p});return(0,Wr.jsxs)(Wr.Fragment,{children:[(0,Wr.jsx)(Rx.InspectorControls,{children:(0,Wr.jsxs)(Ga.__experimentalToolsPanel,{label:(0,Ho.__)("Settings"),resetAll:()=>{t({displayAsDropdown:!1,showLabel:!0,showPostCounts:!1,type:"monthly"})},dropdownMenuProps:s,children:[(0,Wr.jsx)(Ga.__experimentalToolsPanelItem,{label:(0,Ho.__)("Display as dropdown"),isShownByDefault:!0,hasValue:()=>i,onDeselect:()=>t({displayAsDropdown:!1}),children:(0,Wr.jsx)(Ga.ToggleControl,{label:(0,Ho.__)("Display as dropdown"),checked:i,onChange:()=>t({displayAsDropdown:!i})})}),i&&(0,Wr.jsx)(Ga.__experimentalToolsPanelItem,{label:(0,Ho.__)("Show label"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({showLabel:!0}),children:(0,Wr.jsx)(Ga.ToggleControl,{label:(0,Ho.__)("Show label"),checked:o,onChange:()=>t({showLabel:!o})})}),(0,Wr.jsx)(Ga.__experimentalToolsPanelItem,{label:(0,Ho.__)("Show post counts"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>t({showPostCounts:!1}),children:(0,Wr.jsx)(Ga.ToggleControl,{label:(0,Ho.__)("Show post counts"),checked:n,onChange:()=>t({showPostCounts:!n})})}),(0,Wr.jsx)(Ga.__experimentalToolsPanelItem,{label:(0,Ho.__)("Group by"),isShownByDefault:!0,hasValue:()=>l!=="monthly",onDeselect:()=>t({type:"monthly"}),children:(0,Wr.jsx)(Ga.SelectControl,{__next40pxDefaultSize:!0,label:(0,Ho.__)("Group by"),options:[{label:(0,Ho.__)("Year"),value:"yearly"},{label:(0,Ho.__)("Month"),value:"monthly"},{label:(0,Ho.__)("Week"),value:"weekly"},{label:(0,Ho.__)("Day"),value:"daily"}],value:l,onChange:f=>t({type:f})})})]})}),u==="loading"&&(0,Wr.jsx)("div",{...d,children:(0,Wr.jsx)(Ga.Spinner,{})}),u==="error"&&(0,Wr.jsx)("div",{...d,children:(0,Wr.jsx)("p",{children:(0,Ho.sprintf)((0,Ho.__)("Error: %s"),m)})}),u==="success"&&(0,Wr.jsx)(no,{wrapperProps:d,html:c})]})}var{name:hF}=Ax,gF={icon:$7,example:{},edit:fF},fge=()=>N({name:hF,metadata:Ax,settings:gF});var sE={};q(sE,{init:()=>_ge,metadata:()=>zx,name:()=>LF,settings:()=>MF});var zx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/avatar",title:"Avatar",category:"theme",description:"Add a user\u2019s avatar.",textdomain:"default",attributes:{userId:{type:"number"},size:{type:"number",default:96},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","commentId"],supports:{anchor:!0,html:!1,align:!0,alignWide:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{__experimentalSkipSerialization:!0,radius:!0,width:!0,color:!0,style:!0,__experimentalDefaultControls:{radius:!0}},color:{text:!1,background:!1},filter:{duotone:!0},interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-avatar img",filter:{duotone:".wp-block-avatar img"}},editorStyle:"wp-block-avatar-editor",style:"wp-block-avatar"};var Bp=a(T(),1),xn=a(A(),1),Wi=a(P(),1),Fx=a(ir(),1);var C1=a(Y(),1),Wu=a(P(),1),bF=a(z(),1);function yF(e){let t=e?e[0]:24,r=e?e[e.length-1]:96,o=Math.floor(r*2.5);return{minSize:t,maxSize:o}}function _F({commentId:e}){let[t]=(0,C1.useEntityProp)("root","comment","author_avatar_urls",e),[r]=(0,C1.useEntityProp)("root","comment","author_name",e),o=t?Object.values(t):null,n=t?Object.keys(t):null,{minSize:i,maxSize:l}=yF(n),s=k1();return{src:o?o[o.length-1]:s,minSize:i,maxSize:l,alt:r?(0,Wu.sprintf)((0,Wu.__)("%s Avatar"),r):(0,Wu.__)("Default Avatar")}}function xF({userId:e,postId:t,postType:r}){let{authorDetails:o}=(0,bF.useSelect)(u=>{let{getEditedEntityRecord:m,getUser:p}=u(C1.store);if(e)return{authorDetails:p(e)};let d=m("postType",r,t)?.author;return{authorDetails:d?p(d):null}},[r,t,e]),n=o?.avatar_urls?Object.values(o.avatar_urls):null,i=o?.avatar_urls?Object.keys(o.avatar_urls):null,{minSize:l,maxSize:s}=yF(i),c=k1();return{src:n?n[n.length-1]:c,minSize:l,maxSize:s,alt:o?(0,Wu.sprintf)((0,Wu.__)("%s Avatar"),o?.name):(0,Wu.__)("Default Avatar")}}var lE=a(P(),1),wF=a(A(),1),CF=a(z(),1),SF=a(Y(),1),Vx=a(H(),1),TF=a(pe(),1),PF=a(jo(),1),BF=a(y(),1),gge={who:"authors",per_page:100,_fields:"id,name",context:"view"};function EF({value:e,onChange:t}){let[r,o]=(0,Vx.useState)(""),{authors:n,isLoading:i}=(0,CF.useSelect)(s=>{let{getUsers:c,isResolving:u}=s(SF.store),m={...gge};return r&&(m.search=r,m.search_columns=["name"]),{authors:c(m),isLoading:u("getUsers",[m])}},[r]),l=(0,Vx.useMemo)(()=>(n??[]).map(s=>({value:s.id,label:(0,PF.decodeEntities)(s.name)})),[n]);return(0,BF.jsx)(wF.ComboboxControl,{__next40pxDefaultSize:!0,label:(0,lE.__)("User"),help:(0,lE.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:l,onFilterValueChange:(0,TF.debounce)(o,300),isLoading:i})}var zt=a(y(),1),IF=({setAttributes:e,avatar:t,attributes:r,selectUser:o})=>{let n=$();return(0,zt.jsx)(Bp.InspectorControls,{children:(0,zt.jsxs)(xn.__experimentalToolsPanel,{label:(0,Wi.__)("Settings"),resetAll:()=>{e({size:96,isLink:!1,linkTarget:"_self",userId:void 0})},dropdownMenuProps:n,children:[(0,zt.jsx)(xn.__experimentalToolsPanelItem,{label:(0,Wi.__)("Image size"),isShownByDefault:!0,hasValue:()=>r?.size!==96,onDeselect:()=>e({size:96}),children:(0,zt.jsx)(xn.RangeControl,{__next40pxDefaultSize:!0,label:(0,Wi.__)("Image size"),onChange:i=>e({size:i}),min:t.minSize,max:t.maxSize,initialPosition:r?.size,value:r?.size})}),(0,zt.jsx)(xn.__experimentalToolsPanelItem,{label:(0,Wi.__)("Link to user profile"),isShownByDefault:!0,hasValue:()=>r?.isLink,onDeselect:()=>e({isLink:!1}),children:(0,zt.jsx)(xn.ToggleControl,{label:(0,Wi.__)("Link to user profile"),onChange:()=>e({isLink:!r.isLink}),checked:r.isLink})}),r.isLink&&(0,zt.jsx)(xn.__experimentalToolsPanelItem,{label:(0,Wi.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r?.linkTarget!=="_self",onDeselect:()=>e({linkTarget:"_self"}),children:(0,zt.jsx)(xn.ToggleControl,{label:(0,Wi.__)("Open in new tab"),onChange:i=>e({linkTarget:i?"_blank":"_self"}),checked:r.linkTarget==="_blank"})}),o&&(0,zt.jsx)(xn.__experimentalToolsPanelItem,{label:(0,Wi.__)("User"),isShownByDefault:!0,hasValue:()=>!!r?.userId,onDeselect:()=>e({userId:void 0}),children:(0,zt.jsx)(EF,{value:r?.userId,onChange:i=>{e({userId:i})}})})]})})},vge=({children:e,isLink:t})=>t?(0,zt.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:r=>r.preventDefault(),children:e}):e,NF=({setAttributes:e,attributes:t,avatar:r,blockProps:o,isSelected:n})=>{let i=(0,Bp.__experimentalUseBorderProps)(t),l=(0,Fx.addQueryArgs)((0,Fx.removeQueryArgs)(r?.src,["s"]),{s:t?.size*2});return(0,zt.jsx)("div",{...o,children:(0,zt.jsx)(vge,{isLink:t.isLink,children:(0,zt.jsx)(xn.ResizableBox,{size:{width:t.size,height:t.size},showHandle:n,onResizeStop:(s,c,u,m)=>{e({size:parseInt(t.size+(m.height||m.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Wi.isRTL)(),bottom:!0,left:(0,Wi.isRTL)()},minWidth:r.minSize,maxWidth:r.maxSize,children:(0,zt.jsx)("img",{src:l,alt:r.alt,className:w("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",i.className),style:i.style})})})})},bge=({attributes:e,context:t,setAttributes:r,isSelected:o})=>{let{commentId:n}=t,i=(0,Bp.useBlockProps)(),l=_F({commentId:n});return(0,zt.jsxs)(zt.Fragment,{children:[(0,zt.jsx)(IF,{avatar:l,setAttributes:r,attributes:e,selectUser:!1}),(0,zt.jsx)(NF,{attributes:e,avatar:l,blockProps:i,isSelected:o,setAttributes:r})]})},yge=({attributes:e,context:t,setAttributes:r,isSelected:o})=>{let{postId:n,postType:i}=t,l=xF({userId:e?.userId,postId:n,postType:i}),s=(0,Bp.useBlockProps)();return(0,zt.jsxs)(zt.Fragment,{children:[(0,zt.jsx)(IF,{selectUser:!0,attributes:e,avatar:l,setAttributes:r}),(0,zt.jsx)(NF,{attributes:e,avatar:l,blockProps:s,isSelected:o,setAttributes:r})]})};function DF(e){return e?.context?.commentId||e?.context?.commentId===null?(0,zt.jsx)(bge,{...e}):(0,zt.jsx)(yge,{...e})}var{name:LF}=zx,MF={icon:I0,edit:DF,example:{}},_ge=()=>N({name:LF,metadata:zx,settings:MF});var gE={};q(gE,{init:()=>Nge,metadata:()=>jx,name:()=>iO,settings:()=>Ux});var hE=a(P(),1);var nO=a(G(),1);var cE=a(T(),1),S1=a(y(),1),AF=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save({attributes:e}){let{autoplay:t,caption:r,loop:o,preload:n,src:i}=e;return(0,S1.jsxs)("figure",{children:[(0,S1.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:o,preload:n}),!cE.RichText.isEmpty(r)&&(0,S1.jsx)(cE.RichText.Content,{tagName:"figcaption",value:r})]})}}];var YF=a(Br(),1),$a=a(A(),1),kn=a(T(),1),Wa=a(P(),1),QF=a(z(),1);var XF=a(yr(),1),JF=a(H(),1);function Nf(e,t){var r=0,o,n;t=t||{};function i(){var l=o,s=arguments.length,c,u;e:for(;l;){if(l.args.length!==arguments.length){l=l.next;continue}for(u=0;u<s;u++)if(l.args[u]!==arguments[u]){l=l.next;continue e}return l!==o&&(l===n&&(n=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=o,l.prev=null,o.prev=l,o=l),l.val}for(c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return l={args:c,val:e.apply(null,c)},o?(o.prev=l,l.next=o):n=l,r===t.maxSize?(n=n.prev,n.next=null):r++,o=l,l.val}return i.clear=function(){o=null,n=null,r=0},i}var HF=a(A(),1),mE=a(H(),1),Ds=a(G(),1),jF=a(ir(),1);var Ns={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",role:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},type:{type:"string",role:"content"},providerNameSlug:{type:"string",role:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,role:"content"},previewable:{type:"boolean",default:!0,role:"content"}},supports:{anchor:!0,align:!0,spacing:{margin:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"};var T1=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],uE="wp-embed";var FF=a(VF(),1),{lock:OF,unlock:Z}=(0,FF.__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/block-library");var Ox=a(y(),1),{name:Df}=Ns,{kebabCase:kge}=Z(HF.privateApis),UF=e=>(0,Ds.getBlockVariations)(Df)?.find(({name:t})=>t===e),pE=(e,t=[])=>t.some(r=>e.match(r)),Lf=e=>(0,Ds.getBlockVariations)(Df)?.find(({patterns:t})=>pE(e,t));function P1(e){if(!e||(0,jF.getAuthority)(e)!=="x.com")return e;let t=new URL(e);return t.host="twitter.com",t.toString()}var GF=e=>e&&e.includes('class="wp-embedded-content"'),WF=e=>{let t=e.url||e.thumbnail_url,r=(0,Ox.jsx)("p",{children:(0,Ox.jsx)("img",{src:t,alt:e.title,width:"100%"})});return(0,mE.renderToString)(r)},qu=(e,t={})=>{let{preview:r,attributes:o={}}=e,{url:n,providerNameSlug:i,type:l,...s}=o;if(!n||!(0,Ds.getBlockType)(Df))return;let c=Lf(n),u=i==="wordpress"||l===uE;if(!u&&c&&(c.attributes.providerNameSlug!==i||!i))return(0,Ds.createBlock)(Df,{url:n,...s,...c.attributes});let p=(0,Ds.getBlockVariations)(Df)?.find(({name:d})=>d==="wordpress");if(!(!p||!r||!GF(r.html)||u))return(0,Ds.createBlock)(Df,{url:n,...p.attributes,...t})},wge=e=>e?T1.some(({className:t})=>e.includes(t)):!1,$u=e=>{if(!e)return e;let t=T1.reduce((o,{className:n})=>(o.push(n),o),["wp-has-aspect-ratio"]),r=e;for(let o of t)r=r.replace(o,"");return r.trim()};function Cge(e){return/padding-(top|bottom)\s*:\s*[\d.]+%/i.test(e)}function dE(e,t,r=!0){if(!r||Cge(e))return $u(t);let o=document.implementation.createHTMLDocument("");o.body.innerHTML=e;let n=o.body.querySelector("iframe");if(n&&n.height&&n.width){let i=(n.width/n.height).toFixed(2);for(let l=0;l<T1.length;l++){let s=T1[l];if(i>=s.ratio)return i-s.ratio>.1?$u(t):w($u(t),s.className,"wp-has-aspect-ratio")}}return t}function $F(e,t){t((0,Ds.createBlock)("core/paragraph",{content:(0,mE.renderToString)((0,Ox.jsx)("a",{href:e,children:e}))}))}var Sge=Nf((e,t,r,o,n=!0)=>{if(!e)return{};let i={},{type:l="rich"}=e,{html:s,provider_name:c}=e,u=kge((c||t).toLowerCase());return GF(s)&&(l=uE),(s||l==="photo")&&(i.type=l,i.providerNameSlug=u),wge(r)||(i.className=dE(s,r,o&&n)),i}),qF=(e,t,r,o)=>{let{allowResponsive:n,className:i}=e;return{...e,...Sge(t,r,i,o,n)}};var Ep=a(H(),1),ZF=a(pe(),1),B1=a(P(),1),Fc=a(T(),1),KF=a(A(),1);var Hx=a(G(),1),Zu=a(y(),1);function ga({attributeKey:e="caption",attributes:t,setAttributes:r,isSelected:o,insertBlocksAfter:n,placeholder:i=(0,B1.__)("Add caption"),label:l=(0,B1.__)("Caption text"),showToolbarButton:s=!0,excludeElementClassName:c,className:u,readOnly:m,tagName:p="figcaption",addLabel:d=(0,B1.__)("Add caption"),removeLabel:f=(0,B1.__)("Remove caption"),icon:h=n9,...g}){let b=t[e],v=(0,ZF.usePrevious)(b),x=Fc.RichText.isEmpty(b),_=Fc.RichText.isEmpty(v),[k,S]=(0,Ep.useState)(!x);(0,Ep.useEffect)(()=>{!x&&_&&S(!0)},[x,_]),(0,Ep.useEffect)(()=>{!o&&x&&S(!1)},[o,x]);let C=(0,Ep.useCallback)(E=>{E&&x&&E.focus()},[x]);return(0,Zu.jsxs)(Zu.Fragment,{children:[s&&(0,Zu.jsx)(Fc.BlockControls,{group:"block",children:(0,Zu.jsx)(KF.ToolbarButton,{onClick:()=>{S(!k),k&&b&&r({[e]:void 0})},icon:h,isPressed:k,label:k?f:d})}),k&&(!Fc.RichText.isEmpty(b)||o)&&(0,Zu.jsx)(Fc.RichText,{identifier:e,tagName:p,className:w(u,c?"":(0,Fc.__experimentalGetElementClassName)("caption")),ref:C,"aria-label":l,placeholder:i,value:b,onChange:E=>r({[e]:E}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>n((0,Hx.createBlock)((0,Hx.getDefaultBlockName)())),readOnly:m,...g})]})}var _r=a(y(),1),fE=["audio"];function Tge({attributes:e,className:t,setAttributes:r,onReplace:o,isSelected:n,insertBlocksAfter:i}){let{id:l,autoplay:s,loop:c,preload:u,src:m}=e,[p,d]=(0,JF.useState)(e.blob),h=(0,kn.useBlockEditingMode)()==="default";Es({url:p,allowedTypes:fE,onChange:k,onError:x});function g(I){return D=>{r({[I]:D})}}function b(I){if(I!==m){let D=qu({attributes:{url:I}});if(D!==void 0&&o){o(D);return}r({src:I,id:void 0,blob:void 0}),d()}}let{createErrorNotice:v}=(0,QF.useDispatch)(XF.store);function x(I){v(I,{type:"snackbar"})}function _(I){return I?(0,Wa.__)("Autoplay may cause usability issues for some users."):null}function k(I){if(!I||!I.url){r({src:void 0,id:void 0,caption:void 0,blob:void 0}),d();return}if((0,YF.isBlobURL)(I.url)){d(I.url);return}r({blob:void 0,src:I.url,id:I.id,caption:I.caption}),d()}let S=w(t,{"is-transient":!!p}),C=(0,kn.useBlockProps)({className:S}),E=$();return!m&&!p?(0,_r.jsx)("div",{...C,children:(0,_r.jsx)(kn.MediaPlaceholder,{icon:(0,_r.jsx)(kn.BlockIcon,{icon:ei}),onSelect:k,onSelectURL:b,accept:"audio/*",allowedTypes:fE,value:e,onError:x})}):(0,_r.jsxs)(_r.Fragment,{children:[n&&(0,_r.jsx)(kn.BlockControls,{group:"other",children:(0,_r.jsx)(kn.MediaReplaceFlow,{mediaId:l,mediaURL:m,allowedTypes:fE,accept:"audio/*",onSelect:k,onSelectURL:b,onError:x,onReset:()=>k(void 0),variant:"toolbar"})}),(0,_r.jsx)(kn.InspectorControls,{children:(0,_r.jsxs)($a.__experimentalToolsPanel,{label:(0,Wa.__)("Settings"),resetAll:()=>{r({autoplay:!1,loop:!1,preload:void 0})},dropdownMenuProps:E,children:[(0,_r.jsx)($a.__experimentalToolsPanelItem,{label:(0,Wa.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({autoplay:!1}),children:(0,_r.jsx)($a.ToggleControl,{label:(0,Wa.__)("Autoplay"),onChange:g("autoplay"),checked:!!s,help:_})}),(0,_r.jsx)($a.__experimentalToolsPanelItem,{label:(0,Wa.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!c,onDeselect:()=>r({loop:!1}),children:(0,_r.jsx)($a.ToggleControl,{label:(0,Wa.__)("Loop"),onChange:g("loop"),checked:!!c})}),(0,_r.jsx)($a.__experimentalToolsPanelItem,{label:(0,Wa.__)("Preload"),isShownByDefault:!0,hasValue:()=>!!u,onDeselect:()=>r({preload:void 0}),children:(0,_r.jsx)($a.SelectControl,{__next40pxDefaultSize:!0,label:(0,Wa._x)("Preload","noun; Audio block parameter"),value:u||"",onChange:I=>r({preload:I||void 0}),options:[{value:"",label:(0,Wa.__)("Browser default")},{value:"auto",label:(0,Wa.__)("Auto")},{value:"metadata",label:(0,Wa.__)("Metadata")},{value:"none",label:(0,Wa._x)("None","Preload value")}]})})]})}),(0,_r.jsxs)("figure",{...C,children:[(0,_r.jsx)($a.Disabled,{isDisabled:!n,children:(0,_r.jsx)("audio",{controls:"controls",src:m??p})}),!!p&&(0,_r.jsx)($a.Spinner,{}),(0,_r.jsx)(ga,{attributes:e,setAttributes:r,isSelected:n,insertBlocksAfter:i,label:(0,Wa.__)("Audio caption text"),showToolbarButton:n&&h})]})]})}var eO=Tge;var jx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",attributes:{blob:{type:"string",role:"local"},src:{type:"string",source:"attribute",selector:"audio",attribute:"src",role:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},id:{type:"number",role:"content"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"};var Ip=a(T(),1),E1=a(y(),1);function tO({attributes:e}){let{autoplay:t,caption:r,loop:o,preload:n,src:i}=e;return i&&(0,E1.jsxs)("figure",{...Ip.useBlockProps.save(),children:[(0,E1.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:o,preload:n}),!Ip.RichText.isEmpty(r)&&(0,E1.jsx)(Ip.RichText.Content,{tagName:"figcaption",value:r,className:(0,Ip.__experimentalGetElementClassName)("caption")})]})}var rO=a(Br(),1),oO=a(G(),1),Bge={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("audio/")===0},transform(e){let t=e[0];return(0,oO.createBlock)("core/audio",{blob:(0,rO.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:r,ogg:o,wav:n,wma:i}})=>e||t||r||o||n||i},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]},aO=Bge;var{fieldsKey:Ege,formKey:Ige}=Z(nO.privateApis),{name:iO}=jx,Ux={icon:ei,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:aO,deprecated:AF,edit:eO,save:tO};window.__experimentalContentOnlyInspectorFields&&(Ux[Ege]=[{id:"audio",label:(0,hE.__)("Audio"),type:"media",Edit:{control:"media",allowedTypes:["audio"],multiple:!1},getValue:({item:e})=>({id:e.id,url:e.src}),setValue:({value:e})=>({id:e.id,src:e.url})},{id:"caption",label:(0,hE.__)("Caption"),type:"text",Edit:"rich-text"}],Ux[Ige]={fields:["audio","caption"]});var Nge=()=>N({name:iO,metadata:jx,settings:Ux});var vE={};q(vE,{init:()=>Lge,metadata:()=>Gx,name:()=>mO,settings:()=>pO});var Gx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/breadcrumbs",title:"Breadcrumbs",category:"theme",description:"Display a breadcrumb trail showing the path to the current page.",textdomain:"default",attributes:{prefersTaxonomy:{type:"boolean",default:!1},separator:{type:"string",default:"/"},showHomeItem:{type:"boolean",default:!0},showCurrentItem:{type:"boolean",default:!0},showOnHomePage:{type:"boolean",default:!1}},usesContext:["postId","postType","templateSlug"],supports:{anchor:!0,html:!1,align:["wide","full"],spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!1,color:!0,width:!0,style:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-breadcrumbs"};var zr=a(P(),1),I1=a(T(),1),Uo=a(A(),1),lO=a(z(),1),$x=a(Y(),1),Oc=a(H(),1),sO=a(Mu(),1),cO=a(pe(),1);var St=a(y(),1),Wx="/";function uO({attributes:e,setAttributes:t,name:r,context:{postId:o,postType:n,templateSlug:i}}){let{separator:l,showHomeItem:s,showCurrentItem:c,prefersTaxonomy:u,showOnHomePage:m}=e,{post:p,isPostTypeHierarchical:d,postTypeHasTaxonomies:f,hasTermsAssigned:h,isLoading:g}=(0,lO.useSelect)(B=>{if(!n)return{};let j=B($x.store).getEntityRecord("postType",n,o),U=B($x.store).getPostType(n),O=U&&U.taxonomies.length,K;return O&&(K=B($x.store).getTaxonomies({type:n,per_page:-1})),{post:j,isPostTypeHierarchical:U?.hierarchical,postTypeHasTaxonomies:O,hasTermsAssigned:j&&(K||[]).filter(({visibility:W})=>W?.publicly_queryable).some(W=>!!j[W.rest_base]?.length),isLoading:o&&!j||!U||O&&!K}},[n,o]),[b,v]=(0,Oc.useState)(0);(0,Oc.useEffect)(()=>{v(B=>B+1)},[p]);let x=$(),{content:_,status:k,error:S}=(0,sO.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r,urlQueryArgs:{post_id:o,invalidationKey:b}}),C=(0,Oc.useRef)("");(0,Oc.useEffect)(()=>{k==="success"&&(C.current=_)},[_,k]);let[E,I]=(0,Oc.useState)(!1);(0,Oc.useEffect)(()=>{if(k!=="loading")return;let B=setTimeout(()=>{I(!0)},400);return()=>{clearTimeout(B),I(!1)}},[k]);let D=(0,cO.useDisabled)(),M=(0,I1.useBlockProps)({ref:D});if(g)return(0,St.jsx)("div",{...M,children:(0,St.jsx)(Uo.Spinner,{})});let F;!d&&!p?.parent?F=!0:f?F=u:F=!1;let R=null,V=!o||!n||i&&!n||!F&&!d||F&&!h;if(V){let B=[];s&&B.push((0,zr.__)("Home")),i&&!o?B.push((0,zr.__)("Page")):F?B.push((0,zr.__)("Category")):B.push((0,zr.__)("Ancestor"),(0,zr.__)("Parent")),R=(0,St.jsx)("nav",{...M,style:{"--separator":`"${l.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,...M.style},children:(0,St.jsxs)("ol",{children:[B.map((j,U)=>(0,St.jsx)("li",{children:(0,St.jsx)("a",{href:`#breadcrumbs-pseudo-link-${U}`,children:j})},U)),c&&(0,St.jsx)("li",{children:(0,St.jsx)("span",{"aria-current":"page",children:(0,zr.__)("Current")})})]})})}return(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)(I1.InspectorControls,{children:(0,St.jsxs)(Uo.__experimentalToolsPanel,{label:(0,zr.__)("Settings"),resetAll:()=>{t({separator:Wx,showHomeItem:!0,showCurrentItem:!0})},dropdownMenuProps:x,children:[(0,St.jsx)(Uo.__experimentalToolsPanelItem,{label:(0,zr.__)("Show home breadcrumb"),isShownByDefault:!0,hasValue:()=>!s,onDeselect:()=>t({showHomeItem:!0}),children:(0,St.jsx)(Uo.ToggleControl,{label:(0,zr.__)("Show home breadcrumb"),onChange:B=>t({showHomeItem:B}),checked:s})}),(0,St.jsx)(Uo.__experimentalToolsPanelItem,{label:(0,zr.__)("Show current breadcrumb"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>t({showCurrentItem:!0}),children:(0,St.jsx)(Uo.ToggleControl,{label:(0,zr.__)("Show current breadcrumb"),onChange:B=>t({showCurrentItem:B}),checked:c})}),(0,St.jsx)(Uo.__experimentalToolsPanelItem,{label:(0,zr.__)("Separator"),isShownByDefault:!0,hasValue:()=>l!==Wx,onDeselect:()=>t({separator:Wx}),children:(0,St.jsx)(Uo.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,zr.__)("Separator"),value:l,onChange:B=>t({separator:B}),onBlur:()=>{l||t({separator:Wx})}})})]})}),(0,St.jsxs)(I1.InspectorControls,{group:"advanced",children:[(0,St.jsx)(Uo.CheckboxControl,{label:(0,zr.__)("Show on homepage"),checked:m,onChange:B=>t({showOnHomePage:B}),help:(0,zr.__)("If this Breadcrumbs block appears in a template or template part that\u2019s shown on the homepage, enable this option to display the breadcrumb trail. Otherwise, this setting has no effect.")}),(0,St.jsx)(Uo.CheckboxControl,{label:(0,zr.__)("Prefer taxonomy terms"),checked:u,onChange:B=>t({prefersTaxonomy:B}),help:(0,zr.__)("The exact type of breadcrumbs shown will vary automatically depending on the page in which this block is displayed. In the specific case of a hierarchical post type with taxonomies, the breadcrumbs can either reflect its post hierarchy (default) or the hierarchy of its assigned taxonomy terms.")})]}),k==="loading"&&!V&&(C.current?(0,St.jsx)(no,{wrapperProps:{...M,style:{...M.style,opacity:E?.3:1}},html:C.current}):(0,St.jsx)("div",{...M,children:(0,St.jsx)(Uo.Spinner,{})})),k==="error"&&(0,St.jsx)("div",{...M,children:(0,St.jsx)("p",{children:(0,zr.sprintf)((0,zr.__)("Error: %s"),S)})}),V&&R,!V&&k==="success"&&(0,St.jsx)(no,{wrapperProps:M,html:_})]})}var{name:mO}=Gx,pO={icon:X7,example:{},edit:uO},Lge=()=>N({name:mO,metadata:Gx,settings:pO});var kE={};q(kE,{init:()=>Kge,metadata:()=>Yx,name:()=>PO,settings:()=>Xx});var Qx=a(P(),1);var TO=a(G(),1);var me=a(T(),1),Al=a(pe(),1);var dO=a(T(),1);var{cleanEmptyObject:Mge}=Z(dO.privateApis);function Ut(e){if(!e?.style?.typography?.fontFamily)return e;let{fontFamily:t,...r}=e.style.typography;return{...e,style:Mge({...e.style,typography:r}),fontFamily:t.split("|").pop()}}function ve(e){let{textAlign:t,...r}=e;return t?{...r,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e}var Vt=a(y(),1),$i=e=>{let{width:t,...r}=e;return t?{...r,style:{...r.style,dimensions:{...r.style?.dimensions,width:`${t}%`}}}:r},Mf=e=>{let{borderRadius:t,...r}=e,o=[t,r.style?.border?.radius].find(n=>typeof n=="number"&&n!==0);return o?{...r,style:{...r.style,border:{...r.style?.border,radius:`${o}px`}}}:r};function Age(e){if(!e.align)return e;let{align:t,...r}=e;return{...r,className:w(r.className,`align${e.align}`)}}var yE=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;let t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient);let{customTextColor:r,customBackgroundColor:o,customGradient:n,...i}=e;return{...i,style:t}},bE=e=>{let{color:t,textColor:r,...o}={...e,customTextColor:e.textColor&&e.textColor[0]==="#"?e.textColor:void 0,customBackgroundColor:e.color&&e.color[0]==="#"?e.color:void 0};return yE(o)},Hc={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},Rge={attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",role:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,splitting:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{__experimentalSkipSerialization:["fontSize","lineHeight","textAlign","fontFamily","fontWeight","fontStyle","textTransform","textDecoration","letterSpacing"],fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},interactivity:{clientNavigation:!0}},selectors:{root:".wp-block-button .wp-block-button__link",typography:{writingMode:".wp-block-button"}},save({attributes:e,className:t}){let{tagName:r,type:o,fontSize:n,linkTarget:i,rel:l,style:s,text:c,title:u,url:m,width:p}=e,d=r||"a",f=d==="button",h=o||"button",g=(0,me.__experimentalGetBorderClassesAndStyles)(e),b=(0,me.__experimentalGetColorClassesAndStyles)(e),v=(0,me.__experimentalGetSpacingClassesAndStyles)(e),x=(0,me.__experimentalGetShadowClassesAndStyles)(e),_=(0,me.getTypographyClassesAndStyles)(e),k=w("wp-block-button__link",b.className,g.className,_.className,{"no-border-radius":s?.border?.radius===0,"has-custom-font-size":n||s?.typography?.fontSize},(0,me.__experimentalGetElementClassName)("button")),S={...g.style,...b.style,...v.style,...x.style,..._.style,writingMode:void 0},C=w(t,{[`has-custom-width wp-block-button__width-${p}`]:p});return(0,Vt.jsx)("div",{...me.useBlockProps.save({className:C}),children:(0,Vt.jsx)(me.RichText.Content,{tagName:d,type:f?h:null,className:k,href:f?null:m,title:u,style:S,value:c,target:f?null:i,rel:f?null:l})})},isEligible(e){return typeof e.width=="number"},migrate:$i},zge={attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",role:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{__experimentalSkipSerialization:["fontSize","lineHeight","fontFamily","fontWeight","fontStyle","textTransform","textDecoration","letterSpacing"],fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},interactivity:{clientNavigation:!0}},selectors:{root:".wp-block-button .wp-block-button__link",typography:{writingMode:".wp-block-button"}},save({attributes:e,className:t}){let{tagName:r,type:o,textAlign:n,fontSize:i,linkTarget:l,rel:s,style:c,text:u,title:m,url:p,width:d}=e,f=r||"a",h=f==="button",g=o||"button",b=(0,me.__experimentalGetBorderClassesAndStyles)(e),v=(0,me.__experimentalGetColorClassesAndStyles)(e),x=(0,me.__experimentalGetSpacingClassesAndStyles)(e),_=(0,me.__experimentalGetShadowClassesAndStyles)(e),k=(0,me.getTypographyClassesAndStyles)(e),S=w("wp-block-button__link",v.className,b.className,k.className,{[`has-text-align-${n}`]:n,"no-border-radius":c?.border?.radius===0,"has-custom-font-size":i||c?.typography?.fontSize},(0,me.__experimentalGetElementClassName)("button")),C={...b.style,...v.style,...x.style,..._.style,...k.style,writingMode:void 0},E=w(t,{[`has-custom-width wp-block-button__width-${d}`]:d});return(0,Vt.jsx)("div",{...me.useBlockProps.save({className:E}),children:(0,Vt.jsx)(me.RichText.Content,{tagName:f,type:h?g:null,className:S,href:h?null:p,title:m,style:C,value:u,target:h?null:l,rel:h?null:s})})},isEligible(e){return!!e.textAlign||typeof e.width=="number"},migrate:(0,Al.compose)($i,ve)},Vge={attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-button__link",interactivity:{clientNavigation:!0}},save({attributes:e,className:t}){let{tagName:r,type:o,textAlign:n,fontSize:i,linkTarget:l,rel:s,style:c,text:u,title:m,url:p,width:d}=e,f=r||"a",h=f==="button",g=o||"button",b=(0,me.__experimentalGetBorderClassesAndStyles)(e),v=(0,me.__experimentalGetColorClassesAndStyles)(e),x=(0,me.__experimentalGetSpacingClassesAndStyles)(e),_=(0,me.__experimentalGetShadowClassesAndStyles)(e),k=w("wp-block-button__link",v.className,b.className,{[`has-text-align-${n}`]:n,"no-border-radius":c?.border?.radius===0},(0,me.__experimentalGetElementClassName)("button")),S={...b.style,...v.style,...x.style,..._.style},C=w(t,{[`has-custom-width wp-block-button__width-${d}`]:d,"has-custom-font-size":i||c?.typography?.fontSize});return(0,Vt.jsx)("div",{...me.useBlockProps.save({className:C}),children:(0,Vt.jsx)(me.RichText.Content,{tagName:f,type:h?g:null,className:k,href:h?null:p,title:m,style:S,value:u,target:h?null:l,rel:h?null:s})})},isEligible(e){return typeof e.width=="number"},migrate:$i},Fge={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){let{fontSize:r,linkTarget:o,rel:n,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let m=(0,me.__experimentalGetBorderClassesAndStyles)(e),p=(0,me.__experimentalGetColorClassesAndStyles)(e),d=(0,me.__experimentalGetSpacingClassesAndStyles)(e),f=w("wp-block-button__link",p.className,m.className,{"no-border-radius":i?.border?.radius===0}),h={...m.style,...p.style,...d.style},g=w(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Vt.jsx)("div",{...me.useBlockProps.save({className:g}),children:(0,Vt.jsx)(me.RichText.Content,{tagName:"a",className:f,href:c,title:s,style:h,value:l,target:o,rel:n})})}},Oge={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){let{fontSize:r,linkTarget:o,rel:n,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let m=(0,me.__experimentalGetBorderClassesAndStyles)(e),p=(0,me.__experimentalGetColorClassesAndStyles)(e),d=(0,me.__experimentalGetSpacingClassesAndStyles)(e),f=w("wp-block-button__link",p.className,m.className,{"no-border-radius":i?.border?.radius===0}),h={...m.style,...p.style,...d.style},g=w(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Vt.jsx)("div",{...me.useBlockProps.save({className:g}),children:(0,Vt.jsx)(me.RichText.Content,{tagName:"a",className:f,href:c,title:s,style:h,value:l,target:o,rel:n})})},migrate:(0,Al.compose)($i,Ut),isEligible({style:e,width:t}){return e?.typography?.fontFamily||typeof t=="number"}},Hge=[Rge,zge,Vge,Fge,Oge,{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...Hc,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible({style:e}){return typeof e?.border?.radius=="number"},save({attributes:e,className:t}){let{fontSize:r,linkTarget:o,rel:n,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let m=i?.border?.radius,p=(0,me.__experimentalGetColorClassesAndStyles)(e),d=w("wp-block-button__link",p.className,{"no-border-radius":i?.border?.radius===0}),f={borderRadius:m||void 0,...p.style},h=w(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Vt.jsx)("div",{...me.useBlockProps.save({className:h}),children:(0,Vt.jsx)(me.RichText.Content,{tagName:"a",className:d,href:c,title:s,style:f,value:l,target:o,rel:n})})},migrate:(0,Al.compose)($i,Ut,Mf)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...Hc,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){let{borderRadius:r,linkTarget:o,rel:n,text:i,title:l,url:s,width:c}=e,u=(0,me.__experimentalGetColorClassesAndStyles)(e),m=w("wp-block-button__link",u.className,{"no-border-radius":r===0}),p={borderRadius:r?r+"px":void 0,...u.style},d=w(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,Vt.jsx)("div",{...me.useBlockProps.save({className:d}),children:(0,Vt.jsx)(me.RichText.Content,{tagName:"a",className:m,href:s,title:l,style:p,value:i,target:o,rel:n})})},migrate:(0,Al.compose)($i,Ut,Mf)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...Hc,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){let{borderRadius:r,linkTarget:o,rel:n,text:i,title:l,url:s,width:c}=e,u=(0,me.__experimentalGetColorClassesAndStyles)(e),m=w("wp-block-button__link",u.className,{"no-border-radius":r===0}),p={borderRadius:r?r+"px":void 0,...u.style},d=w(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,Vt.jsx)("div",{...me.useBlockProps.save({className:d}),children:(0,Vt.jsx)(me.RichText.Content,{tagName:"a",className:m,href:s,title:l,style:p,value:i,target:o,rel:n})})},migrate:(0,Al.compose)($i,Ut,Mf)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...Hc,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){let{borderRadius:t,linkTarget:r,rel:o,text:n,title:i,url:l}=e,s=w("wp-block-button__link",{"no-border-radius":t===0}),c={borderRadius:t?t+"px":void 0};return(0,Vt.jsx)(me.RichText.Content,{tagName:"a",className:s,href:l,title:i,style:c,value:n,target:r,rel:o})},migrate:(0,Al.compose)($i,Mf)},{supports:{align:!0,alignWide:!1},attributes:{...Hc,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:e=>!!e.customTextColor||!!e.customBackgroundColor||!!e.customGradient||!!e.align,migrate:(0,Al.compose)($i,Mf,yE,Age),save({attributes:e}){let{backgroundColor:t,borderRadius:r,customBackgroundColor:o,customTextColor:n,customGradient:i,linkTarget:l,gradient:s,rel:c,text:u,textColor:m,title:p,url:d}=e,f=(0,me.getColorClassName)("color",m),h=!i&&(0,me.getColorClassName)("background-color",t),g=(0,me.__experimentalGetGradientClass)(s),b=w("wp-block-button__link",{"has-text-color":m||n,[f]:f,"has-background":t||o||i||s,[h]:h,"no-border-radius":r===0,[g]:g}),v={background:i||void 0,backgroundColor:h||i||s?void 0:o,color:f?void 0:n,borderRadius:r?r+"px":void 0};return(0,Vt.jsx)("div",{children:(0,Vt.jsx)(me.RichText.Content,{tagName:"a",className:b,href:d,title:p,style:v,value:u,target:l,rel:c})})}},{attributes:{...Hc,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}},isEligible(e){return e.className&&e.className.includes("is-style-squared")},migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),Mf(yE({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,customTextColor:o,linkTarget:n,rel:i,text:l,textColor:s,title:c,url:u}=e,m=(0,me.getColorClassName)("color",s),p=(0,me.getColorClassName)("background-color",t),d=w("wp-block-button__link",{"has-text-color":s||o,[m]:m,"has-background":t||r,[p]:p}),f={backgroundColor:p?void 0:r,color:m?void 0:o};return(0,Vt.jsx)("div",{children:(0,Vt.jsx)(me.RichText.Content,{tagName:"a",className:d,href:u,title:c,style:f,value:l,target:n,rel:i})})}},{attributes:{...Hc,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:(0,Al.compose)($i,bE),save({attributes:e}){let{url:t,text:r,title:o,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s}=e,c=(0,me.getColorClassName)("color",i),u=(0,me.getColorClassName)("background-color",n),m=w("wp-block-button__link",{"has-text-color":i||s,[c]:c,"has-background":n||l,[u]:u}),p={backgroundColor:u?void 0:l,color:c?void 0:s};return(0,Vt.jsx)("div",{children:(0,Vt.jsx)(me.RichText.Content,{tagName:"a",className:m,href:t,title:o,style:p,value:r})})}},{attributes:{...Hc,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){let{url:t,text:r,title:o,align:n,color:i,textColor:l}=e,s={backgroundColor:i,color:l};return(0,Vt.jsx)("div",{className:`align${n}`,children:(0,Vt.jsx)(me.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:o,style:s,value:r})})},migrate:(0,Al.compose)($i,bE)},{attributes:{...Hc,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){let{url:t,text:r,title:o,align:n,color:i,textColor:l}=e;return(0,Vt.jsx)("div",{className:`align${n}`,style:{backgroundColor:i},children:(0,Vt.jsx)(me.RichText.Content,{tagName:"a",href:t,title:o,style:{color:l},value:r})})},migrate:(0,Al.compose)($i,bE)}],fO=Hge;var qi=a(P(),1),Go=a(H(),1),Yu=a(A(),1),it=a(T(),1),Ku=a(Ls(),1);var jc=a(G(),1),D1=a(pe(),1),L1=a(z(),1);var qx="noopener",Zx="_blank",Af="nofollow";var gO=a(ir(),1);function vO({rel:e="",url:t="",opensInNewTab:r,nofollow:o}){let n,i=e;if(r)n=Zx,i=i?.includes(qx)?i:i+` ${qx}`;else{let l=new RegExp(`\\b${qx}\\s*`,"g");i=i?.replace(l,"").trim()}if(o)i=i?.includes(Af)?i:(i+` ${Af}`).trim();else{let l=new RegExp(`\\b${Af}\\s*`,"g");i=i?.replace(l,"").trim()}return{url:(0,gO.prependHTTPS)(t),linkTarget:n,rel:i||void 0}}function N1(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}var yO=a(pe(),1),Kx=a(H(),1),_O=a(Rf(),1),xO=a(z(),1),kO=a(T(),1);function Tt(e){let{name:t,attributes:r,setAttributes:o}=e,{textAlign:n}=r,{__unstableMarkNextChangeAsNotPersistent:i}=(0,xO.useDispatch)(kO.store),l=(0,yO.useEvent)(()=>{(0,_O.default)(`textAlign attribute in ${t}`,{alternative:"style.typography.textAlign",since:"7.0"}),i(),o(c=>({style:{...c.style,typography:{...c.style?.typography,textAlign:n}}}))}),s=(0,Kx.useRef)();(0,Kx.useEffect)(()=>{n!==s.current&&(s.current=n,l())},[n,l])}function _E(e){return typeof e=="string"&&e.endsWith("%")}function wO(e){if(!e)return{};if(_E(e)){let t={"25%":"wp-block-button__width-25","50%":"wp-block-button__width-50","75%":"wp-block-button__width-75","100%":"wp-block-button__width-100"};return{"has-custom-width":!0,"wp-block-button__width":!0,...t[e]&&{[t[e]]:!0}}}return{"has-custom-width":!0}}var va=a(y(),1),{HTMLElementControl:jge}=Z(it.privateApis),Uge=[...it.LinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,qi.__)("Mark as nofollow")}];function Gge(e){let{replaceBlocks:t,selectionChange:r}=(0,L1.useDispatch)(it.store),{getBlock:o,getBlockRootClientId:n,getBlockIndex:i}=(0,L1.useSelect)(it.store),l=(0,Go.useRef)(e);return l.current=e,(0,D1.useRefEffect)(s=>{function c(u){if(u.defaultPrevented||u.keyCode!==Ku.ENTER)return;let{content:m,clientId:p}=l.current;if(m.length)return;u.preventDefault();let d=o(n(p)),f=i(p),h=(0,jc.cloneBlock)({...d,innerBlocks:d.innerBlocks.slice(0,f)}),g=(0,jc.createBlock)((0,jc.getDefaultBlockName)()),b=d.innerBlocks.slice(f+1),v=b.length?[(0,jc.cloneBlock)({...d,innerBlocks:b})]:[];t(d.clientId,[h,g,...v],1),r(g.clientId)}return s.addEventListener("keydown",c),()=>{s.removeEventListener("keydown",c)}},[])}function Wge(e){let{attributes:t,setAttributes:r,className:o,isSelected:n,onReplace:i,mergeBlocks:l,clientId:s,context:c}=e,{tagName:u,linkTarget:m,placeholder:p,rel:d,style:f,text:h,url:g,metadata:b}=t,v=f?.dimensions?.width;Tt(e);let x=u||"a";function _(we){Ku.isKeyboardEvent.primary(we,"k")?ue(we):Ku.isKeyboardEvent.primaryShift(we,"k")&&(fe(),R.current?.focus())}let[k,S]=(0,Go.useState)(null),C=(0,it.__experimentalUseBorderProps)(t),E=(0,it.__experimentalUseColorProps)(t),I=(0,it.__experimentalGetSpacingClassesAndStyles)(t),D=(0,it.__experimentalGetShadowClassesAndStyles)(t),M=(0,it.__experimentalGetDimensionsClassesAndStyles)(t),F=(0,Go.useRef)(),R=(0,Go.useRef)(),V=(0,it.useBlockProps)({ref:(0,D1.useMergeRefs)([S,F]),onKeyDown:_}),B=(0,it.useBlockEditingMode)(),[j,U]=(0,Go.useState)(!1),O=!!g,K=m===Zx,W=!!d?.includes(Af),ee=x==="a",{createPageEntity:oe,userCanCreatePages:X,lockUrlControls:J=!1}=(0,L1.useSelect)(we=>{if(!n)return{};let rt=we(it.store).getSettings(),Ue=(0,jc.getBlockBindingsSource)(b?.bindings?.url?.source);return{createPageEntity:rt.__experimentalCreatePageEntity,userCanCreatePages:rt.__experimentalUserCanCreatePages,lockUrlControls:!!b?.bindings?.url&&!Ue?.canUserEditValue?.({select:we,context:c,args:b?.bindings?.url?.args})}},[c,n,b?.bindings?.url]);async function ne(we){let rt=await oe({title:we,status:"draft"});return{id:rt.id,type:rt.type,title:rt.title.rendered,url:rt.link,kind:"post-type"}}function ie(we){return(0,Go.createInterpolateElement)((0,qi.sprintf)((0,qi.__)("Create page: <mark>%s</mark>"),we),{mark:(0,va.jsx)("mark",{})})}function ue(we){we.preventDefault(),U(!0)}function fe(){r({url:void 0,linkTarget:void 0,rel:void 0}),U(!1)}(0,Go.useEffect)(()=>{n||U(!1)},[n]);let Oe=(0,Go.useMemo)(()=>({url:g,opensInNewTab:K,nofollow:W}),[g,K,W]),ke=Gge({content:h,clientId:s}),ae=(0,D1.useMergeRefs)([ke,R]),[Te,Le,te]=(0,it.useSettings)("typography.fluid","layout","dimensions.dimensionSizes"),He=(0,Go.useMemo)(()=>te?[...te?.custom??[],...te?.theme??[],...te?.default??[]]:[],[te]),st=(0,it.getTypographyClassesAndStyles)(t,{typography:{fluid:Te},layout:{wideSize:Le?.wideSize}}),ct=(0,Go.useMemo)(()=>{if(!v)return;let we="var:preset|dimension|";if(v.startsWith(we)){let rt=v.slice(we.length);return He?.find(et=>et.slug===rt)?.size??v}return v},[v,He]),se=B==="default"||ee&&!J,_t=w(V.className,wO(ct)),Ve=(0,Go.useMemo)(()=>v?_E(ct)?{"--wp--block-button--width":parseFloat(ct)}:M.style:{},[v,ct,M.style]);return(0,va.jsxs)(va.Fragment,{children:[(0,va.jsx)("div",{...V,className:_t,style:{...V.style,...Ve},children:(0,va.jsx)(it.RichText,{ref:ae,"aria-label":(0,qi.__)("Button text"),placeholder:p||(0,qi.__)("Add text\u2026"),value:h,onChange:we=>r({text:N1(we)}),withoutInteractiveFormatting:!0,className:w(o,"wp-block-button__link",E.className,C.className,st.className,{"no-border-radius":f?.border?.radius===0,"has-custom-font-size":V.style.fontSize},(0,it.__experimentalGetElementClassName)("button")),style:{...C.style,...E.style,...I.style,...D.style,...st.style,writingMode:void 0},onReplace:i,onMerge:l,identifier:"text"})}),se&&(0,va.jsx)(it.BlockControls,{group:"block",children:ee&&!J&&(0,va.jsx)(Yu.ToolbarButton,{name:"link",icon:O?G0:ti,title:O?(0,qi.__)("Unlink"):(0,qi.__)("Link"),shortcut:O?Ku.displayShortcut.primaryShift("k"):Ku.displayShortcut.primary("k"),onClick:O?fe:ue,isActive:O})}),ee&&n&&(j||O)&&!J&&(0,va.jsx)(Yu.Popover,{placement:"bottom",onClose:()=>{U(!1),R.current?.focus()},anchor:k,focusOnMount:j?"firstElement":!1,__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:(0,va.jsx)(it.LinkControl,{value:Oe,onChange:({url:we,opensInNewTab:rt,nofollow:Ue})=>r(vO({rel:d,url:we,opensInNewTab:rt,nofollow:Ue})),onRemove:()=>{fe(),R.current?.focus()},forceIsEditingLink:j,settings:Uge,createSuggestion:oe&&ne,withCreateSuggestion:X,createSuggestionButtonText:ie})}),(0,va.jsxs)(it.InspectorControls,{group:"advanced",children:[(0,va.jsx)(jge,{tagName:u,onChange:we=>r({tagName:we}),options:[{label:(0,qi.__)("Default (<a>)"),value:"a"},{label:"<button>",value:"button"}]}),ee&&(0,va.jsx)(Yu.TextControl,{__next40pxDefaultSize:!0,label:(0,qi.__)("Link relation"),help:(0,Go.createInterpolateElement)((0,qi.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,va.jsx)(Yu.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:d||"",onChange:we=>r({rel:we})})]})]})}var CO=Wge;var Yx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/button",title:"Button",category:"design",parent:["core/buttons"],description:"Prompt visitors to take action with a button-style link.",keywords:["link"],textdomain:"default",attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",role:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"}},supports:{anchor:!0,splitting:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},dimensions:{width:!0,__experimentalSkipSerialization:["width"],__experimentalDefaultControls:{width:!0}},typography:{__experimentalSkipSerialization:["fontSize","lineHeight","textAlign","fontFamily","fontWeight","fontStyle","textTransform","textDecoration","letterSpacing"],fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},interactivity:{clientNavigation:!0}},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button",selectors:{root:".wp-block-button .wp-block-button__link",typography:{writingMode:".wp-block-button"},dimensions:{root:".wp-block-button",width:".wp-block-button"}}};var ba=a(T(),1),xE=a(y(),1);function SO({attributes:e}){let{tagName:t,type:r,fontSize:o,linkTarget:n,rel:i,style:l,text:s,title:c,url:u}=e,m=t||"a",p=m==="button",d=r||"button",f=(0,ba.__experimentalGetBorderClassesAndStyles)(e),h=(0,ba.__experimentalGetColorClassesAndStyles)(e),g=(0,ba.__experimentalGetSpacingClassesAndStyles)(e),b=(0,ba.__experimentalGetShadowClassesAndStyles)(e),v=(0,ba.getTypographyClassesAndStyles)(e),x=w("wp-block-button__link",h.className,f.className,v.className,{"no-border-radius":l?.border?.radius===0,"has-custom-font-size":o||l?.typography?.fontSize},(0,ba.__experimentalGetElementClassName)("button")),_={...f.style,...h.style,...g.style,...b.style,...v.style,writingMode:void 0};return(0,xE.jsx)("div",{...ba.useBlockProps.save(),children:(0,xE.jsx)(ba.RichText.Content,{tagName:m,type:p?d:null,className:x,href:p?null:u,title:c,style:_,value:s,target:p?null:n,rel:p?null:i})})}var{fieldsKey:qge,formKey:Zge}=Z(TO.privateApis),{name:PO}=Yx,Xx={icon:e9,example:{attributes:{className:"is-style-fill",text:(0,Qx.__)("Call to action")}},edit:CO,save:SO,deprecated:fO,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t}),__experimentalLabel(e,{context:t}){let{text:r}=e,o=e?.metadata?.name,n=r?.trim().length>0;if(t==="list-view"&&(o||n))return o||r;if(t==="breadcrumb"&&o)return o}};window.__experimentalContentOnlyInspectorFields&&(Xx[qge]=[{id:"text",label:(0,Qx.__)("Content"),type:"text",Edit:"rich-text"},{id:"link",label:(0,Qx.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel,linkTarget:e.linkTarget}),setValue:({value:e})=>({url:e.url,rel:e.rel,linkTarget:e.linkTarget})}],Xx[Zge]={fields:["text","link"]});var Kge=()=>N({name:PO,metadata:Yx,settings:Xx});var SE={};q(SE,{init:()=>t0e,metadata:()=>ek,name:()=>RO,settings:()=>zO});var CE=a(P(),1);var A1=a(T(),1),M1=a(y(),1),BO=e=>{if(e.layout)return e;let{contentJustification:t,orientation:r,...o}=e;return(t||r)&&Object.assign(o,{layout:{type:"flex",...t&&{justifyContent:t},...r&&{orientation:r}}}),o},Yge=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification:e,orientation:t})=>!!e||!!t,migrate:BO,save({attributes:{contentJustification:e,orientation:t}}){return(0,M1.jsx)("div",{...A1.useBlockProps.save({className:w({[`is-content-justification-${e}`]:e,"is-vertical":t==="vertical"})}),children:(0,M1.jsx)(A1.InnerBlocks.Content,{})})}},{supports:{align:["center","left","right"],anchor:!0},save(){return(0,M1.jsx)("div",{children:(0,M1.jsx)(A1.InnerBlocks.Content,{})})},isEligible({align:e}){return e&&["center","left","right"].includes(e)},migrate(e){return BO({...e,align:void 0,contentJustification:e.align})}}],EO=Yge;var z1=a(G(),1),wE=a(Qu(),1);var R1=a(G(),1);function Uc(e,t,r=null){if(!e)return;let o=(0,R1.getBlockType)(t);if(!o)return;let n={};if((0,R1.hasBlockSupport)(o,"anchor")&&e.anchor&&(n.anchor=e.anchor),(0,R1.hasBlockSupport)(o,"ariaLabel")&&e.ariaLabel&&(n.ariaLabel=e.ariaLabel),e.metadata){let i=[];if(r&&i.push("id","bindings"),i.length>0){let l=Object.entries(e.metadata).reduce((s,[c,u])=>(i.includes(c)&&(s[c]=c==="bindings"?r(u):u),s),{});Object.keys(l).length>0&&(n.metadata=l)}}if(Object.keys(n).length!==0)return n}var Qge={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,z1.createBlock)("core/buttons",{},e.map(t=>(0,z1.createBlock)("core/button",t)))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,z1.createBlock)("core/buttons",{},e.map(t=>{let{content:r}=t,o=(0,wE.__unstableCreateElement)(document,r),n=o.innerText||"",l=o.querySelector("a")?.getAttribute("href");return(0,z1.createBlock)("core/button",{...t,...Uc(t,"core/button",({content:s})=>({text:s})),text:n,url:l})})),isMatch:e=>e.every(t=>{let r=(0,wE.__unstableCreateElement)(document,t.content),o=r.innerText||"",n=r.querySelectorAll("a");return o.length<=30&&n.length<=1})}]},NO=Qge;var Jx=a(T(),1),DO=a(y(),1),Xge={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};function Jge({attributes:e,className:t}){let{fontSize:r,layout:o,style:n}=e,i=(0,Jx.useBlockProps)({className:w(t,{"has-custom-font-size":r||n?.typography?.fontSize})}),l=(0,Jx.useInnerBlocksProps)(i,{defaultBlock:Xge,template:[["core/button"]],templateInsertUpdatesSelection:!0,orientation:o?.orientation??"horizontal"});return(0,DO.jsx)("div",{...l})}var LO=Jge;var ek={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",allowedBlocks:["core/button"],description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{blockGap:["horizontal","vertical"],padding:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0},listView:!0,contentRole:!0},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"};var tk=a(T(),1),MO=a(y(),1);function AO({attributes:e,className:t}){let{fontSize:r,style:o}=e,n=tk.useBlockProps.save({className:w(t,{"has-custom-font-size":r||o?.typography?.fontSize})}),i=tk.useInnerBlocksProps.save(n);return(0,MO.jsx)("div",{...i})}var{name:RO}=ek,zO={icon:r9,example:{attributes:{layout:{type:"flex",justifyContent:"center"}},innerBlocks:[{name:"core/button",attributes:{text:(0,CE.__)("Find out more")}},{name:"core/button",attributes:{text:(0,CE.__)("Contact us")}}]},deprecated:EO,transforms:NO,edit:LO,save:AO},t0e=()=>N({name:RO,metadata:ek,settings:zO});var PE={};q(PE,{init:()=>n0e,metadata:()=>rk,name:()=>WO,settings:()=>$O});var rk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your site\u2019s posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{anchor:!0,align:!0,html:!1,color:{link:!0,__experimentalSkipSerialization:["text","background"],__experimentalDefaultControls:{background:!0,text:!0},__experimentalSelector:"table, th"},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-calendar"};var V1=a(A(),1),VO=a(z(),1),FO=a(Mu(),1),OO=a(T(),1),HO=a(Y(),1),zf=a(P(),1),jO=a(pe(),1);var oi=a(y(),1),o0e=Nf(e=>{if(!e)return{};let t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}});function UO({attributes:e,name:t}){let{date:r,hasPosts:o,hasPostsResolved:n}=(0,VO.useSelect)(m=>{let{getEntityRecords:p,hasFinishedResolution:d}=m(HO.store),f={status:"publish",per_page:1},h=p("postType","post",f),g=d("getEntityRecords",["postType","post",f]),b,v=m("core/editor");return v&&v.getEditedPostAttribute("type")==="post"&&(b=v.getEditedPostAttribute("date")),{date:b,hasPostsResolved:g,hasPosts:g&&h?.length===1}},[]),{content:i,status:l,error:s}=(0,FO.useServerSideRender)({attributes:{...e,...o0e(r)},block:t}),c=(0,jO.useDisabled)(),u=(0,OO.useBlockProps)({ref:c});return o?(0,oi.jsxs)(oi.Fragment,{children:[l==="loading"&&(0,oi.jsx)("div",{...u,children:(0,oi.jsx)(V1.Spinner,{})}),l==="error"&&(0,oi.jsx)("div",{...u,children:(0,oi.jsx)("p",{children:(0,zf.sprintf)((0,zf.__)("Error: %s"),s)})}),l==="success"&&(0,oi.jsx)(no,{wrapperProps:u,html:i})]}):(0,oi.jsx)("div",{...u,children:(0,oi.jsx)(V1.Placeholder,{icon:T0,label:(0,zf.__)("Calendar"),children:n?(0,zf.__)("No published posts found."):(0,oi.jsx)(V1.Spinner,{})})})}var TE=a(G(),1),a0e={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,TE.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,TE.createBlock)("core/archives")}]},GO=a0e;var{name:WO}=rk,$O={icon:T0,example:{},edit:UO,transforms:GO},n0e=()=>N({name:WO,metadata:rk,settings:$O});var FE={};q(FE,{init:()=>S0e,metadata:()=>ok,name:()=>xH,settings:()=>kH});var ok={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/categories",title:"Terms List",category:"widgets",description:"Display a list of all terms of a given taxonomy.",keywords:["categories"],textdomain:"default",attributes:{taxonomy:{type:"string",default:"category"},displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},showOnlyTopLevel:{type:"boolean",default:!1},showEmpty:{type:"boolean",default:!1},label:{type:"string",role:"content"},showLabel:{type:"boolean",default:!0}},usesContext:["enhancedPagination"],supports:{anchor:!0,align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"};var kr=a(A(),1),gH=a(pe(),1),Ff=a(T(),1),vH=a(jo(),1),xr=a(P(),1);var zE=a(Y(),1),bH=a(z(),1);var ZO=a(zu(),1),qO={};function BE(e,t){let r=ZO.useRef(qO);return r.current===qO&&(r.current=e(t)),r}function l0e(e,t){return function(o,...n){let i=new URL(e);return i.searchParams.set("code",o.toString()),n.forEach(l=>i.searchParams.append("args[]",l)),`${t} error #${o}; visit ${i} for the full message.`}}var s0e=l0e("https://base-ui.com/production-error","Base UI"),KO=s0e;var Np=a(zu(),1);function EE(e,t,r,o){let n=BE(QO).current;return c0e(n,e,t,r,o)&&XO(n,[e,t,r,o]),n.callback}function YO(e){let t=BE(QO).current;return u0e(t,e)&&XO(t,e),t.callback}function QO(){return{callback:null,cleanup:null,refs:[]}}function c0e(e,t,r,o,n){return e.refs[0]!==t||e.refs[1]!==r||e.refs[2]!==o||e.refs[3]!==n}function u0e(e,t){return e.refs.length!==t.length||e.refs.some((r,o)=>r!==t[o])}function XO(e,t){if(e.refs=t,t.every(r=>r==null)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),r!=null){let o=Array(t.length).fill(null);for(let n=0;n<t.length;n+=1){let i=t[n];if(i!=null)switch(typeof i){case"function":{let l=i(r);typeof l=="function"&&(o[n]=l);break}case"object":{i.current=r;break}default:}}e.cleanup=()=>{for(let n=0;n<t.length;n+=1){let i=t[n];if(i!=null)switch(typeof i){case"function":{let l=o[n];typeof l=="function"?l():i(null);break}case"object":{i.current=null;break}default:}}}}}}var tH=a(zu(),1);var JO=a(zu(),1),m0e=parseInt(JO.version,10);function eH(e){return m0e>=e}function IE(e){if(!tH.isValidElement(e))return null;let t=e,r=t.props;return(eH(19)?r?.ref:t.ref)??null}function F1(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var QDe=Object.freeze([]),Vf=Object.freeze({});function rH(e,t){let r={};for(let o in e){let n=e[o];if(t?.hasOwnProperty(o)){let i=t[o](n);i!=null&&Object.assign(r,i);continue}n===!0?r[`data-${o.toLowerCase()}`]="":n&&(r[`data-${o.toLowerCase()}`]=n.toString())}return r}function oH(e,t){return typeof e=="function"?e(t):e}function aH(e,t){return typeof e=="function"?e(t):e}var NE={};function H1(e,t,r,o,n){if(!r&&!o&&!n&&!e)return ak(t);let i=ak(e);return t&&(i=O1(i,t)),r&&(i=O1(i,r)),o&&(i=O1(i,o)),n&&(i=O1(i,n)),i}function nH(e){if(e.length===0)return NE;if(e.length===1)return ak(e[0]);let t=ak(e[0]);for(let r=1;r<e.length;r+=1)t=O1(t,e[r]);return t}function ak(e){return DE(e)?{...lH(e,NE)}:p0e(e)}function O1(e,t){return DE(t)?lH(t,e):d0e(e,t)}function p0e(e){let t={...e};for(let r in t){let o=t[r];iH(r,o)&&(t[r]=sH(o))}return t}function d0e(e,t){if(!t)return e;for(let r in t){let o=t[r];switch(r){case"style":{e[r]=F1(e.style,o);break}case"className":{e[r]=LE(e.className,o);break}default:iH(r,o)?e[r]=f0e(e[r],o):e[r]=o}}return e}function iH(e,t){let r=e.charCodeAt(0),o=e.charCodeAt(1),n=e.charCodeAt(2);return r===111&&o===110&&n>=65&&n<=90&&(typeof t=="function"||typeof t>"u")}function DE(e){return typeof e=="function"}function lH(e,t){return DE(e)?e(t):e??NE}function f0e(e,t){return t?e?(...r)=>{let o=r[0];if(uH(o)){let i=o;cH(i);let l=t(...r);return i.baseUIHandlerPrevented||e?.(...r),l}let n=t(...r);return e?.(...r),n}:sH(t):e}function sH(e){return e&&((...t)=>{let r=t[0];return uH(r)&&cH(r),e(...t)})}function cH(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function LE(e,t){return t?e?t+" "+e:t:e}function uH(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var ME=a(zu(),1);function mH(e,t,r={}){let o=t.render,n=h0e(t,r);if(r.enabled===!1)return null;let i=r.state??Vf;return b0e(e,o,n,i)}function h0e(e,t={}){let{className:r,style:o,render:n}=e,{state:i=Vf,ref:l,props:s,stateAttributesMapping:c,enabled:u=!0}=t,m=u?oH(r,i):void 0,p=u?aH(o,i):void 0,d=u?rH(i,c):Vf,f=u&&s?g0e(s):void 0,h=u?F1(d,f)??{}:Vf;return typeof document<"u"&&(u?Array.isArray(l)?h.ref=YO([h.ref,IE(n),...l]):h.ref=EE(h.ref,IE(n),l):EE(null,null)),u?(m!==void 0&&(h.className=LE(h.className,m)),p!==void 0&&(h.style=F1(h.style,p)),h):Vf}function g0e(e){return Array.isArray(e)?nH(e):H1(void 0,e)}var v0e=Symbol.for("react.lazy");function b0e(e,t,r,o){if(t){if(typeof t=="function")return t(r,o);let n=H1(r,t.props);n.ref=r.ref;let i=t;return i?.$$typeof===v0e&&(i=Np.Children.toArray(t)[0]),Np.cloneElement(i,n)}if(e&&typeof e=="string")return y0e(e,r);throw new Error(KO(8))}function y0e(e,t){return e==="button"?(0,ME.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,ME.createElement)("img",{alt:"",...t,key:t.key}):Np.createElement(e,t)}function pH(e){return mH(e.defaultTagName??"div",e,e)}var fH=a(H(),1),AE="data-wp-hash";function RE(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&x0e(document)),e.__wpStyleRuntime}function _0e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${AE}]`))if(r.getAttribute(AE)===t)return!0;return!1}function hH(e,t,r){if(!e.head)return;let o=RE(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(_0e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(AE,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function x0e(e){let t=RE();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)hH(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function k0e(e,t){let r=RE();r.styles.set(e,t);for(let o of r.documents.keys())hH(o,e,t)}typeof process>"u",k0e("c46e8cb841","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}");var w0e={"visually-hidden":"f37b9e2e191ebd66__visually-hidden"},ai=(0,fH.forwardRef)(function({render:t,...r},o){return pH({render:t,ref:o,props:H1({className:w0e["visually-hidden"]},r,{"data-visually-hidden":""})})});var yH=a(yr(),1);var mt=a(y(),1);function VE({attributes:{displayAsDropdown:e,showHierarchy:t,showPostCounts:r,showOnlyTopLevel:o,showEmpty:n,label:i,showLabel:l,taxonomy:s},setAttributes:c,className:u,clientId:m}){let p=(0,gH.useInstanceId)(VE,"blocks-category-select"),{records:d,isResolvingTaxonomies:f}=(0,zE.useEntityRecords)("root","taxonomy",{per_page:-1}),h=d?.filter(O=>O.visibility.public),g=h?.find(O=>O.slug===s),b=!f&&g?.hierarchical,v={per_page:-1,hide_empty:!n,context:"view"};b&&o&&(v.parent=0);let{records:x,isResolving:_}=(0,zE.useEntityRecords)("taxonomy",s,v),{createWarningNotice:k}=(0,bH.useDispatch)(yH.store),S=O=>{O.preventDefault(),k((0,xr.__)("Links are disabled in the editor."),{id:`block-library/core/categories/redirection-prevented/${m}`,type:"snackbar"})},C=O=>x?.length?O===null?x:x.filter(({parent:K})=>K===O):[],E=O=>K=>c({[O]:K}),I=O=>O?(0,vH.decodeEntities)(O).trim():(0,xr.__)("(Untitled)"),D=()=>C(b&&t?0:null).map(W=>M(W)),M=O=>{let K=C(O.id),{id:W,link:ee,count:oe,name:X}=O;return(0,mt.jsxs)("li",{className:`cat-item cat-item-${W}`,children:[(0,mt.jsx)("a",{href:ee,onClick:S,children:I(X)}),r&&` (${oe})`,b&&t&&!!K.length&&(0,mt.jsx)("ul",{className:"children",children:K.map(J=>M(J))})]},W)},F=()=>{let K=C(b&&t?0:null);return(0,mt.jsxs)(mt.Fragment,{children:[l?(0,mt.jsx)(Ff.RichText,{className:"wp-block-categories__label","aria-label":(0,xr.__)("Label text"),placeholder:g?.name,withoutInteractiveFormatting:!0,value:i,onChange:W=>c({label:W})}):(0,mt.jsx)(ai,{render:(0,mt.jsx)("label",{htmlFor:p}),children:i||g?.name}),(0,mt.jsxs)("select",{id:p,children:[(0,mt.jsx)("option",{children:(0,xr.sprintf)((0,xr.__)("Select %s"),g?.labels?.singular_name)}),K.map(W=>R(W,0))]})]})},R=(O,K)=>{let{id:W,count:ee,name:oe}=O,X=C(W);return[(0,mt.jsxs)("option",{className:`level-${K}`,children:[Array.from({length:K*3}).map(()=>"\xA0"),I(oe),r&&` (${ee})`]},W),b&&t&&!!X.length&&X.map(J=>R(J,K+1))]},V=x?.length&&!e&&!_?"ul":"div",B=w(u,`wp-block-categories-taxonomy-${s}`,{"wp-block-categories-list":!!x?.length&&!e&&!_,"wp-block-categories-dropdown":!!x?.length&&e&&!_}),j=(0,Ff.useBlockProps)({className:B}),U=$();return(0,mt.jsxs)(V,{...j,children:[(0,mt.jsx)(Ff.InspectorControls,{children:(0,mt.jsxs)(kr.__experimentalToolsPanel,{label:(0,xr.__)("Settings"),resetAll:()=>{c({taxonomy:"category",displayAsDropdown:!1,showHierarchy:!1,showPostCounts:!1,showOnlyTopLevel:!1,showEmpty:!1,showLabel:!0})},dropdownMenuProps:U,children:[Array.isArray(h)&&(0,mt.jsx)(kr.__experimentalToolsPanelItem,{hasValue:()=>s!=="category",label:(0,xr.__)("Taxonomy"),onDeselect:()=>{c({taxonomy:"category"})},isShownByDefault:!0,children:(0,mt.jsx)(kr.SelectControl,{__next40pxDefaultSize:!0,label:(0,xr.__)("Taxonomy"),options:h.map(O=>({label:O.name,value:O.slug})),value:s,onChange:O=>c({taxonomy:O})})}),(0,mt.jsx)(kr.__experimentalToolsPanelItem,{hasValue:()=>!!e,label:(0,xr.__)("Display as dropdown"),onDeselect:()=>c({displayAsDropdown:!1}),isShownByDefault:!0,children:(0,mt.jsx)(kr.ToggleControl,{label:(0,xr.__)("Display as dropdown"),checked:e,onChange:E("displayAsDropdown")})}),e&&(0,mt.jsx)(kr.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,xr.__)("Show label"),onDeselect:()=>c({showLabel:!0}),isShownByDefault:!0,children:(0,mt.jsx)(kr.ToggleControl,{className:"wp-block-categories__indentation",label:(0,xr.__)("Show label"),checked:l,onChange:E("showLabel")})}),(0,mt.jsx)(kr.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,xr.__)("Show post counts"),onDeselect:()=>c({showPostCounts:!1}),isShownByDefault:!0,children:(0,mt.jsx)(kr.ToggleControl,{label:(0,xr.__)("Show post counts"),checked:r,onChange:E("showPostCounts")})}),b&&(0,mt.jsx)(kr.__experimentalToolsPanelItem,{hasValue:()=>!!o,label:(0,xr.__)("Show only top level terms"),onDeselect:()=>c({showOnlyTopLevel:!1}),isShownByDefault:!0,children:(0,mt.jsx)(kr.ToggleControl,{label:(0,xr.__)("Show only top level terms"),checked:o,onChange:E("showOnlyTopLevel")})}),(0,mt.jsx)(kr.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,xr.__)("Show empty terms"),onDeselect:()=>c({showEmpty:!1}),isShownByDefault:!0,children:(0,mt.jsx)(kr.ToggleControl,{label:(0,xr.__)("Show empty terms"),checked:n,onChange:E("showEmpty")})}),b&&!o&&(0,mt.jsx)(kr.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,xr.__)("Show hierarchy"),onDeselect:()=>c({showHierarchy:!1}),isShownByDefault:!0,children:(0,mt.jsx)(kr.ToggleControl,{label:(0,xr.__)("Show hierarchy"),checked:t,onChange:E("showHierarchy")})})]})}),_&&(0,mt.jsx)(kr.Placeholder,{icon:Q0,label:(0,xr.__)("Terms"),children:(0,mt.jsx)(kr.Spinner,{})}),!_&&x?.length===0&&(0,mt.jsx)("p",{children:g.labels.no_terms}),!_&&x?.length>0&&(e?F():D())]})}var nk=a(P(),1);var C0e=[{name:"terms",title:(0,nk.__)("Terms List"),icon:Ou,attributes:{taxonomy:"post_tag"},isActive:e=>e.taxonomy!=="category"},{name:"categories",title:(0,nk.__)("Categories List"),description:(0,nk.__)("Display a list of all categories."),icon:Ou,attributes:{taxonomy:"category"},isActive:["taxonomy"],isDefault:!0}],_H=C0e;var{name:xH}=ok,kH={icon:Ou,example:{},edit:VE,variations:_H},S0e=()=>N({name:xH,metadata:ok,settings:kH});var HE={};q(HE,{init:()=>I0e,metadata:()=>U1,name:()=>G1,settings:()=>VH});var Ms=a(T(),1),uk=a(z(),1),As=a(A(),1),Hf=a(H(),1),Dp=a(P(),1);var wH=a(P(),1),CH=a(A(),1),SH=a(G(),1),TH=a(y(),1),T0e=({content:e,onReplace:t})=>(0,TH.jsx)(CH.ToolbarButton,{onClick:()=>t((0,SH.rawHandler)({HTML:e})),children:(0,wH.__)("Convert to blocks")}),PH=T0e;var BH=a(T(),1),OE=a(A(),1),sk=a(G(),1),ik=a(P(),1),lk=a(y(),1);function EH({content:e,onReplace:t}){let r=[(0,lk.jsx)(OE.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>t((0,sk.rawHandler)({HTML:e})),children:(0,ik.__)("Convert to blocks")},"convert-to-blocks"),(0,lk.jsx)(OE.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>t((0,sk.createBlock)("core/html",{content:e})),children:(0,ik.__)("Convert to HTML")},"convert-to-html")];return(0,lk.jsx)(BH.Warning,{actions:r,children:(0,ik.__)("The Classic block is being phased out. Convert this content to blocks for the best editing experience, or move it to a Custom HTML block to preserve the markup as-is.")})}var IH=a(T(),1),Rl=a(A(),1),ck=a(H(),1),Of=a(P(),1),NH=a(z(),1);var DH=a(pe(),1),Zi=a(y(),1);function P0e({onClick:e,isModalFullScreen:t}){return(0,DH.useViewportMatch)("small","<")?null:(0,Zi.jsx)(Rl.Button,{size:"compact",onClick:e,icon:bp,isPressed:t,label:t?(0,Of.__)("Exit fullscreen"):(0,Of.__)("Enter fullscreen")})}function B0e(e){let t=(0,NH.useSelect)(r=>r(IH.store).getSettings().styles);return(0,ck.useEffect)(()=>{let{baseURL:r,suffix:o,settings:n}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:r,suffix:o}),window.wp.oldEditor.initialize(e.id,{tinymce:{...n,setup(i){i.on("init",()=>{let l=i.getDoc();t.forEach(({css:s})=>{let c=l.createElement("style");c.innerHTML=s,l.head.appendChild(c)})})}}}),()=>{window.wp.oldEditor.remove(e.id)}},[]),(0,Zi.jsx)("textarea",{...e})}function LH({clientId:e,content:t,onClose:r,onChange:o}){let[n,i]=(0,ck.useState)(!1),l=`editor-${e}`;return(0,Zi.jsxs)(Rl.Modal,{title:(0,Of.__)("Classic Editor"),onRequestClose:r,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:n,className:"block-editor-freeform-modal__content",headerActions:(0,Zi.jsx)(P0e,{onClick:()=>i(!n),isModalFullScreen:n}),children:[(0,Zi.jsx)(B0e,{id:l,defaultValue:t}),(0,Zi.jsxs)(Rl.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Zi.jsx)(Rl.FlexItem,{children:(0,Zi.jsx)(Rl.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:r,children:(0,Of.__)("Cancel")})}),(0,Zi.jsx)(Rl.FlexItem,{children:(0,Zi.jsx)(Rl.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{o(window.wp.oldEditor.getContent(l)),r()},children:(0,Of.__)("Save")})})]})]})}var io=a(y(),1);function MH({attributes:e,setAttributes:t,clientId:r,onReplace:o}){let{content:n}=e,[i,l]=(0,Hf.useState)(!1),s=(0,Hf.useRef)(null),c=(0,uk.useSelect)(p=>p(Ms.store).canRemoveBlock(r),[r]),{removeBlock:u}=(0,uk.useDispatch)(Ms.store),m=window.__experimentalClassicBlockDeprecation;return(0,io.jsxs)(io.Fragment,{children:[c&&!m&&(0,io.jsx)(Ms.BlockControls,{children:(0,io.jsx)(As.ToolbarGroup,{children:(0,io.jsx)(PH,{content:n,onReplace:o})})}),(0,io.jsx)(Ms.BlockControls,{children:(0,io.jsx)(As.ToolbarGroup,{children:(0,io.jsx)(As.ToolbarButton,{ref:s,onClick:()=>l(!0),children:(0,Dp.__)("Edit")})})}),(0,io.jsxs)("div",{...(0,Ms.useBlockProps)(),children:[m&&c&&n&&(0,io.jsx)(EH,{content:n,onReplace:o}),n?(0,io.jsx)(Hf.RawHTML,{children:n}):(0,io.jsxs)(As.Placeholder,{icon:(0,io.jsx)(Ms.BlockIcon,{icon:B0}),label:(0,Dp.__)("Classic"),instructions:m?(0,Dp.__)("The Classic block is being phased out. It\u2019s recommended to use other blocks for the best editing experience."):(0,Dp.__)("Use the classic editor to add content."),children:[m&&c&&(0,io.jsx)(As.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>u(r),children:(0,Dp.__)("Remove block")}),(0,io.jsx)(As.Button,{__next40pxDefaultSize:!0,variant:m&&c?"secondary":"primary",onClick:()=>l(!0),children:(0,Dp.__)("Edit contents")})]}),i&&(0,io.jsx)(LH,{clientId:r,content:n,onClose:()=>{l(!1),s.current&&s.current.focus()},onChange:p=>t({content:p})})]})]})}var U1={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,lock:!1,reusable:!1,renaming:!1,visibility:!1,customCSS:!1},editorStyle:"wp-block-freeform-editor"};var AH=a(H(),1),RH=a(y(),1);function zH({attributes:e}){let{content:t}=e;return(0,RH.jsx)(AH.RawHTML,{children:t})}var{name:G1}=U1,VH={icon:B0,edit:MH,save:zH},I0e=()=>{let e={...U1.supports,inserter:!!window?.__needsClassicBlock};return N({name:G1,metadata:U1,settings:{...VH,supports:e}})};var $E={};q($E,{init:()=>z0e,metadata:()=>dk,name:()=>WH,settings:()=>gk});var WE=a(P(),1);var GH=a(G(),1);var jE=a(P(),1),mk=a(T(),1),pk=a(G(),1),UE=a(y(),1);function FH({attributes:e,setAttributes:t,onRemove:r,insertBlocksAfter:o,mergeBlocks:n}){let i=(0,mk.useBlockProps)();return(0,UE.jsx)("pre",{...i,children:(0,UE.jsx)(mk.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:l=>t({content:l}),onRemove:r,onMerge:n,placeholder:(0,jE.__)("Write code\u2026"),"aria-label":(0,jE.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>o((0,pk.createBlock)((0,pk.getDefaultBlockName)())),style:{whiteSpace:"break-spaces"}})})}var dk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"code",__unstablePreserveWhiteSpace:!0,role:"content"}},supports:{align:["wide"],anchor:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{width:!0,color:!0}},color:{text:!0,background:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-code"};var fk=a(T(),1);var OH=a(pe(),1);function HH(e){return(0,OH.pipe)(D0e,L0e)(e||"")}function D0e(e){return e.replace(/\[/g,"[")}function L0e(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var GE=a(y(),1);function jH({attributes:e}){return(0,GE.jsx)("pre",{...fk.useBlockProps.save(),children:(0,GE.jsx)(fk.RichText.Content,{tagName:"code",value:HH(typeof e.content=="string"?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}))})})}var W1=a(G(),1),hk=a(Qu(),1);var M0e={from:[{type:"input",regExp:/^```$/,transform:()=>(0,W1.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,W1.createBlock)("core/code",{...e,...Uc(e,"core/code"),content:t})}},{type:"block",blocks:["core/html"],transform:e=>{let{content:t}=e;return(0,W1.createBlock)("core/code",{...e,...Uc(e,"core/code"),content:(0,hk.toHTMLString)({value:(0,hk.create)({text:t})})})}},{type:"raw",isMatch:e=>e.nodeName==="PRE"&&e.children.length===1&&e.firstChild.nodeName==="CODE",schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,W1.createBlock)("core/paragraph",{...Uc(e,"core/paragraph"),content:t})}}]},UH=M0e;var{fieldsKey:A0e,formKey:R0e}=Z(GH.privateApis),{name:WH}=dk,gk={icon:E0,example:{attributes:{content:(0,WE.__)(`// A \u201Cblock\u201D is the abstract term used |
| 3 |
// to describe units of markup that |
| 4 |
// when composed together, form the |
| 5 |
// content or layout of a page. |
| 6 |
registerBlockType( name, settings );`)}},merge(e,t){return{content:e.content+` |
| 7 |
|
| 8 |
`+t.content}},transforms:UH,edit:FH,save:jH};window.__experimentalContentOnlyInspectorFields&&(gk[A0e]=[{id:"content",label:(0,WE.__)("Code"),type:"text",Edit:"rich-text"}],gk[R0e]={fields:["content"]});var z0e=()=>N({name:WH,metadata:dk,settings:gk});var ZE={};q(ZE,{init:()=>j0e,metadata:()=>bk,name:()=>QH,settings:()=>XH});var $H=a(T(),1),qE=a(y(),1),V0e=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible({width:e}){return isFinite(e)},migrate(e){return{...e,width:`${e.width}%`}},save({attributes:e}){let{verticalAlignment:t,width:r}=e,o=w({[`is-vertically-aligned-${t}`]:t}),n={flexBasis:r+"%"};return(0,qE.jsx)("div",{className:o,style:n,children:(0,qE.jsx)($H.InnerBlocks.Content,{})})}}],qH=V0e;var Wo=a(T(),1),Xu=a(A(),1),vk=a(z(),1),Lp=a(P(),1);var ni=a(y(),1);function F0e({width:e,setAttributes:t}){let[r]=(0,Wo.useSettings)("spacing.units"),o=(0,Xu.__experimentalUseCustomUnits)({availableUnits:r||["%","px","em","rem","vw"]}),n=$();return(0,ni.jsx)(Xu.__experimentalToolsPanel,{label:(0,Lp.__)("Settings"),resetAll:()=>{t({width:void 0})},dropdownMenuProps:n,children:(0,ni.jsx)(Xu.__experimentalToolsPanelItem,{hasValue:()=>e!==void 0,label:(0,Lp.__)("Width"),onDeselect:()=>t({width:void 0}),isShownByDefault:!0,children:(0,ni.jsx)(Xu.__experimentalUnitControl,{label:(0,Lp.__)("Width"),__unstableInputWidth:"calc(50% - 8px)",__next40pxDefaultSize:!0,value:e||"",onChange:i=>{i=0>parseFloat(i)?"0":i,t({width:i})},units:o})})})}function O0e({attributes:{verticalAlignment:e,width:t,templateLock:r,allowedBlocks:o},setAttributes:n,clientId:i}){let l=w("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),{columnsIds:s,hasChildBlocks:c,rootClientId:u}=(0,vk.useSelect)(x=>{let{getBlockOrder:_,getBlockRootClientId:k}=x(Wo.store),S=k(i);return{hasChildBlocks:_(i).length>0,rootClientId:S,columnsIds:_(S)}},[i]),{updateBlockAttributes:m}=(0,vk.useDispatch)(Wo.store),p=x=>{n({verticalAlignment:x}),m(u,{verticalAlignment:null})},d=Number.isFinite(t)?t+"%":t,f=(0,Wo.useBlockProps)({className:l,style:d?{flexBasis:d}:void 0}),h=s.length,g=s.indexOf(i)+1,b=(0,Lp.sprintf)((0,Lp.__)("%1$s (%2$d of %3$d)"),f["aria-label"],g,h),v=(0,Wo.useInnerBlocksProps)({...f,"aria-label":b},{templateLock:r,allowedBlocks:o,renderAppender:c?void 0:Wo.InnerBlocks.ButtonBlockAppender});return(0,ni.jsxs)(ni.Fragment,{children:[(0,ni.jsx)(Wo.BlockControls,{children:(0,ni.jsx)(Wo.BlockVerticalAlignmentToolbar,{onChange:p,value:e,controls:["top","center","bottom","stretch"]})}),(0,ni.jsx)(Wo.InspectorControls,{children:(0,ni.jsx)(F0e,{width:t,setAttributes:n})}),(0,ni.jsx)("div",{...v})]})}var ZH=O0e;var bk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/column",title:"Column",category:"design",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{__experimentalOnEnter:!0,anchor:!0,reusable:!1,html:!1,color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{blockGap:!0,padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0,interactivity:{clientNavigation:!0},allowedBlocks:!0}};var yk=a(T(),1),KH=a(y(),1);function YH({attributes:e}){let{verticalAlignment:t,width:r}=e,o=w({[`is-vertically-aligned-${t}`]:t}),n;if(r&&/\d/.test(r)){let s=Number.isFinite(r)?r+"%":r;!Number.isFinite(r)&&r?.endsWith("%")&&(s=Math.round(Number.parseFloat(r)*1e12)/1e12+"%"),n={flexBasis:s}}let i=yk.useBlockProps.save({className:o,style:n}),l=yk.useInnerBlocksProps.save(i);return(0,KH.jsx)("div",{...l})}var{name:QH}=bk,XH={icon:b9,edit:ZH,save:YH,deprecated:qH},j0e=()=>N({name:QH,metadata:bk,settings:XH});var QE={};q(QE,{init:()=>t1e,metadata:()=>kk,name:()=>sj,settings:()=>cj});var $1=a(P(),1);var JH=a(G(),1),Ap=a(T(),1),Mp=a(y(),1);function _k(e){let{doc:t}=_k;t||(t=document.implementation.createHTMLDocument(""),_k.doc=t);let r;t.body.innerHTML=e;for(let o of t.body.firstChild.classList)if(r=o.match(/^layout-column-(\d+)$/))return Number(r[1])-1}var U0e=e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;let t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);let{customTextColor:r,customBackgroundColor:o,...n}=e;return{...n,style:t,isStackedOnMobile:!0}},ej=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:U0e,save({attributes:e}){let{verticalAlignment:t,backgroundColor:r,customBackgroundColor:o,textColor:n,customTextColor:i}=e,l=(0,Ap.getColorClassName)("background-color",r),s=(0,Ap.getColorClassName)("color",n),c=w({"has-background":r||o,"has-text-color":n||i,[l]:l,[s]:s,[`are-vertically-aligned-${t}`]:t});return(0,Mp.jsx)("div",{className:c||void 0,style:{backgroundColor:l?void 0:o,color:s?void 0:i},children:(0,Mp.jsx)(Ap.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},isEligible(e,t){return t.some(o=>/layout-column-\d+/.test(o.originalContent))?t.some(o=>_k(o.originalContent)!==void 0):!1},migrate(e,t){let o=t.reduce((l,s)=>{let{originalContent:c}=s,u=_k(c);return u===void 0&&(u=0),l[u]||(l[u]=[]),l[u].push(s),l},[]).map(l=>(0,JH.createBlock)("core/column",{},l)),{columns:n,...i}=e;return[{...i,isStackedOnMobile:!0},o]},save({attributes:e}){let{columns:t}=e;return(0,Mp.jsx)("div",{className:`has-${t}-columns`,children:(0,Mp.jsx)(Ap.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){let{columns:r,...o}=e;return e={...o,isStackedOnMobile:!0},[e,t]},save({attributes:e}){let{verticalAlignment:t,columns:r}=e,o=w(`has-${r}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,Mp.jsx)("div",{className:o,children:(0,Mp.jsx)(Ap.InnerBlocks.Content,{})})}}];var Rp=a(P(),1),Yi=a(A(),1),Vr=a(T(),1),Ki=a(z(),1),zp=a(G(),1);var xk=e=>{let t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function tj(e,t){let{width:r=100/t}=e.attributes;return xk(r)}function G0e(e,t=e.length){return e.reduce((r,o)=>r+tj(o,t),0)}function W0e(e,t=e.length){return e.reduce((r,o)=>{let n=tj(o,t);return Object.assign(r,{[o.clientId]:n})},{})}function KE(e,t,r=e.length){let o=G0e(e,r);return Object.fromEntries(Object.entries(W0e(e,r)).map(([n,i])=>{let l=t*i/o;return[n,xk(l)]}))}function rj(e){return e.every(t=>{let r=t.attributes.width;return Number.isFinite(r?.endsWith?.("%")?parseFloat(r):r)})}function YE(e,t){return e.map(r=>({...r,attributes:{...r.attributes,width:`${t[r.clientId]}%`}}))}var lo=a(y(),1),$0e={name:"core/column"};function q0e({clientId:e,setAttributes:t,isStackedOnMobile:r}){let{count:o,canInsertColumnBlock:n,minCount:i}=(0,Ki.useSelect)(m=>{let{canInsertBlockType:p,canRemoveBlock:d,getBlockOrder:f}=m(Vr.store),h=f(e),g=h.reduce((b,v,x)=>(d(v)||b.push(x),b),[]);return{count:h.length,canInsertColumnBlock:p("core/column",e),minCount:Math.max(...g)+1}},[e]),{getBlocks:l}=(0,Ki.useSelect)(Vr.store),{replaceInnerBlocks:s}=(0,Ki.useDispatch)(Vr.store);function c(m,p){let d=l(e),f=rj(d),h=p>m;if(h&&f){let g=xk(100/p),b=p-m,v=KE(d,100-g*b);d=[...YE(d,v),...Array.from({length:b}).map(()=>(0,zp.createBlock)("core/column",{width:`${g}%`}))]}else if(h)d=[...d,...Array.from({length:p-m}).map(()=>(0,zp.createBlock)("core/column"))];else if(p<m&&(d=d.slice(0,-(m-p)),f)){let g=KE(d,100);d=YE(d,g)}s(e,d)}let u=$();return(0,lo.jsxs)(Yi.__experimentalToolsPanel,{label:(0,Rp.__)("Settings"),resetAll:()=>{t({isStackedOnMobile:!0})},dropdownMenuProps:u,children:[n&&(0,lo.jsxs)(Yi.__experimentalVStack,{spacing:4,style:{gridColumn:"1 / -1"},children:[(0,lo.jsx)(Yi.RangeControl,{__next40pxDefaultSize:!0,label:(0,Rp.__)("Columns"),value:o,onChange:m=>c(o,Math.max(i,m)),min:Math.max(1,i),max:Math.max(6,o)}),o>6&&(0,lo.jsx)(Yi.Notice,{status:"warning",isDismissible:!1,children:(0,Rp.__)("This column count exceeds the recommended amount and may cause visual breakage.")})]}),(0,lo.jsx)(Yi.__experimentalToolsPanelItem,{label:(0,Rp.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>r!==!0,onDeselect:()=>t({isStackedOnMobile:!0}),children:(0,lo.jsx)(Yi.ToggleControl,{label:(0,Rp.__)("Stack on mobile"),checked:r,onChange:()=>t({isStackedOnMobile:!r})})})]})}function Z0e({attributes:e,setAttributes:t,clientId:r}){let{isStackedOnMobile:o,verticalAlignment:n,templateLock:i}=e,l=(0,Ki.useRegistry)(),{getBlockOrder:s}=(0,Ki.useSelect)(Vr.store),{updateBlockAttributes:c}=(0,Ki.useDispatch)(Vr.store),u=w({[`are-vertically-aligned-${n}`]:n,"is-not-stacked-on-mobile":!o}),m=(0,Vr.useBlockProps)({className:u}),p=(0,Vr.useInnerBlocksProps)(m,{defaultBlock:$0e,directInsert:!0,orientation:"horizontal",renderAppender:!1,templateLock:i});function d(f){let h=s(r);l.batch(()=>{t({verticalAlignment:f}),c(h,{verticalAlignment:f})})}return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Vr.BlockControls,{children:(0,lo.jsx)(Vr.BlockVerticalAlignmentToolbar,{onChange:d,value:n})}),(0,lo.jsx)(Vr.InspectorControls,{children:(0,lo.jsx)(q0e,{clientId:r,setAttributes:t,isStackedOnMobile:o})}),(0,lo.jsx)("div",{...p})]})}function K0e({clientId:e,name:t,setAttributes:r}){let{blockType:o,defaultVariation:n,variations:i}=(0,Ki.useSelect)(c=>{let{getBlockVariations:u,getBlockType:m,getDefaultBlockVariation:p}=c(zp.store);return{blockType:m(t),defaultVariation:p(t,"block"),variations:u(t,"block")}},[t]),{replaceInnerBlocks:l}=(0,Ki.useDispatch)(Vr.store),s=(0,Vr.useBlockProps)();return(0,lo.jsx)("div",{...s,children:(0,lo.jsx)(Vr.__experimentalBlockVariationPicker,{icon:o?.icon?.src,label:o?.title,variations:i,instructions:(0,Rp.__)("Divide into columns. Select a layout:"),onSelect:(c=n)=>{c.attributes&&r(c.attributes),c.innerBlocks&&l(e,(0,zp.createBlocksFromInnerBlocksTemplate)(c.innerBlocks),!0)},allowSkip:!0})})}var Y0e=e=>{let{clientId:t}=e,o=(0,Ki.useSelect)(n=>n(Vr.store).getBlocks(t).length>0,[t])?Z0e:K0e;return(0,lo.jsx)(o,{...e})},oj=Y0e;var kk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/columns",title:"Columns",category:"design",allowedBlocks:["core/column"],description:"Display content in multiple columns, with blocks added to each column.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,heading:!0,button:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:{__experimentalDefault:"2em",sides:["horizontal","vertical"]},margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex",flexWrap:"nowrap"}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},shadow:!0},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"};var wk=a(T(),1),aj=a(y(),1);function nj({attributes:e}){let{isStackedOnMobile:t,verticalAlignment:r}=e,o=w({[`are-vertically-aligned-${r}`]:r,"is-not-stacked-on-mobile":!t}),n=wk.useBlockProps.save({className:o}),i=wk.useInnerBlocksProps.save(n);return(0,aj.jsx)("div",{...i})}var wn=a(A(),1),ii=a(P(),1),li=a(y(),1),X0e=[{name:"one-column-full",title:(0,ii.__)("100"),description:(0,ii.__)("One column"),icon:(0,li.jsx)(wn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,li.jsx)(wn.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,ii.__)("50 / 50"),description:(0,ii.__)("Two columns; equal split"),icon:(0,li.jsx)(wn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,li.jsx)(wn.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,ii.__)("33 / 66"),description:(0,ii.__)("Two columns; one-third, two-thirds split"),icon:(0,li.jsx)(wn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,li.jsx)(wn.Path,{d:"M0 10a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm17 0a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H19a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,ii.__)("66 / 33"),description:(0,ii.__)("Two columns; two-thirds, one-third split"),icon:(0,li.jsx)(wn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,li.jsx)(wn.Path,{d:"M0 10a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm33 0a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:(0,ii.__)("33 / 33 / 33"),description:(0,ii.__)("Three columns; equal split"),icon:(0,li.jsx)(wn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,li.jsx)(wn.Path,{d:"M0 10a2 2 0 0 1 2-2h10.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm16.5 0c0-1.105.864-2 1.969-2H29.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H18.47c-1.105 0-1.969-.895-1.969-2V10Zm17 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35.469c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:(0,ii.__)("25 / 50 / 25"),description:(0,ii.__)("Three columns; wide center column"),icon:(0,li.jsx)(wn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,li.jsx)(wn.Path,{d:"M0 10a2 2 0 0 1 2-2h7.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm13.5 0c0-1.105.864-2 1.969-2H32.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H15.47c-1.105 0-1.969-.895-1.969-2V10Zm23 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2h-7.531c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}],ij=X0e;var jf=a(G(),1),J0e=6,e1e={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{let t=+(100/e.length).toFixed(2),r=e.map(({name:o,attributes:n,innerBlocks:i})=>["core/column",{width:`${t}%`},[[o,{...n},i]]]);return(0,jf.createBlock)("core/columns",{},(0,jf.createBlocksFromInnerBlocksTemplate)(r))},isMatch:({length:e},t)=>t.length===1&&t[0].name==="core/columns"?!1:e&&e<=J0e},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{let{align:r,backgroundColor:o,textColor:n,style:i,mediaAlt:l,mediaId:s,mediaPosition:c,mediaSizeSlug:u,mediaType:m,mediaUrl:p,mediaWidth:d,verticalAlignment:f}=e,h;if(m==="image"||!m){let b={id:s,alt:l,url:p,sizeSlug:u},v={href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel};h=["core/image",{...b,...v}]}else h=["core/video",{id:s,src:p}];let g=[["core/column",{width:`${d}%`},[h]],["core/column",{width:`${100-d}%`},t]];return c==="right"&&g.reverse(),(0,jf.createBlock)("core/columns",{align:r,backgroundColor:o,textColor:n,style:i,verticalAlignment:f},(0,jf.createBlocksFromInnerBlocksTemplate)(g))}}],ungroup:(e,t)=>t.flatMap(r=>r.innerBlocks)},lj=e1e;var{name:sj}=kk,cj={icon:_9,variations:ij,example:{viewportWidth:782,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,$1.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:(0,$1.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,$1.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:(0,$1.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:ej,edit:oj,save:nj,transforms:lj},t1e=()=>N({name:sj,metadata:kk,settings:cj});var tI={};q(tI,{init:()=>l1e,metadata:()=>Ck,name:()=>Pj,settings:()=>Bj});var Ck={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments",title:"Comments",category:"theme",description:"An advanced block that allows displaying post comments using different visual configurations.",textdomain:"default",attributes:{tagName:{type:"string",default:"div"},legacy:{type:"boolean",default:!1}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-comments-editor",usesContext:["postId","postType"]};var Sk=a(T(),1),XE=a(y(),1),o1e={attributes:{tagName:{type:"string",default:"div"}},apiVersion:3,supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}}},save({attributes:{tagName:e}}){let t=Sk.useBlockProps.save(),{className:r}=t,n=(r?.split(" ")||[])?.filter(l=>l!=="wp-block-comments"),i={...t,className:n.join(" ")};return(0,XE.jsx)(e,{...i,children:(0,XE.jsx)(Sk.InnerBlocks.Content,{})})}},uj=[o1e];var Ek=a(T(),1);var mj=a(P(),1),q1=a(T(),1);var Tk=a(y(),1),{HTMLElementControl:a1e}=Z(q1.privateApis);function pj({attributes:{tagName:e},setAttributes:t}){return(0,Tk.jsx)(q1.InspectorControls,{children:(0,Tk.jsx)(q1.InspectorControls,{group:"advanced",children:(0,Tk.jsx)(a1e,{tagName:e,onChange:r=>t({tagName:r}),options:[{label:(0,mj.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})})}var em=a(T(),1),eI=a(P(),1),xj=a(A(),1);var gj=a(T(),1),$r=a(P(),1),vj=a(z(),1),bj=a(Y(),1),yj=a(H(),1);var Qi=a(P(),1),Ju=a(T(),1),dj=a(A(),1),fj=a(pe(),1),Pk=a(Y(),1),JE=a(z(),1),qa=a(y(),1),hj=()=>{let e=(0,fj.useInstanceId)(hj);return(0,qa.jsxs)("div",{className:"comment-respond",children:[(0,qa.jsx)("h3",{className:"comment-reply-title",children:(0,Qi.__)("Leave a Reply")}),(0,qa.jsxs)("form",{noValidate:!0,className:"comment-form",onSubmit:t=>t.preventDefault(),children:[(0,qa.jsxs)("p",{children:[(0,qa.jsx)("label",{htmlFor:`comment-${e}`,children:(0,Qi.__)("Comment")}),(0,qa.jsx)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8",readOnly:!0})]}),(0,qa.jsx)("p",{className:"form-submit wp-block-button",children:(0,qa.jsx)("input",{name:"submit",type:"submit",className:w("wp-block-button__link",(0,Ju.__experimentalGetElementClassName)("button")),label:(0,Qi.__)("Post Comment"),value:(0,Qi.__)("Post Comment"),"aria-disabled":"true"})})]})]})},n1e=({postId:e,postType:t})=>{let[r,o]=(0,Pk.useEntityProp)("postType",t,"comment_status",e),n=t===void 0||e===void 0,i=(0,JE.useSelect)(s=>s(Ju.store).getSettings().__experimentalDiscussionSettings?.defaultCommentStatus,[]),l=(0,JE.useSelect)(s=>t?!!s(Pk.store).getPostType(t)?.supports.comments:!1);if(!n&&r!=="open")if(r==="closed"){let s=[(0,qa.jsx)(dj.Button,{__next40pxDefaultSize:!0,onClick:()=>o("open"),variant:"primary",children:(0,Qi._x)("Enable comments","action that affects the current post")},"enableComments")];return(0,qa.jsx)(Ju.Warning,{actions:s,children:(0,Qi.__)("Post Comments Form block: Comments are not enabled for this item.")})}else if(l){if(i!=="open")return(0,qa.jsx)(Ju.Warning,{children:(0,Qi.__)("Post Comments Form block: Comments are not enabled.")})}else return(0,qa.jsx)(Ju.Warning,{children:(0,Qi.sprintf)((0,Qi.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t)});return(0,qa.jsx)(hj,{})},Bk=n1e;var ot=a(y(),1);function _j({postType:e,postId:t}){let[r]=(0,bj.useEntityProp)("postType",e,"title",t);r=r||(0,$r.__)("Post Title");let o=(0,vj.useSelect)(n=>n(gj.store).getSettings().__experimentalDiscussionSettings?.avatarURL,[]);return(0,ot.jsxs)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true",children:[(0,ot.jsx)("h3",{children:(0,$r.sprintf)((0,$r.__)("One response to %s"),r)}),(0,ot.jsxs)("div",{className:"navigation",children:[(0,ot.jsx)("div",{className:"alignleft",children:(0,ot.jsxs)("a",{href:"#top",children:["\xAB ",(0,$r.__)("Older Comments")]})}),(0,ot.jsx)("div",{className:"alignright",children:(0,ot.jsxs)("a",{href:"#top",children:[(0,$r.__)("Newer Comments")," \xBB"]})})]}),(0,ot.jsx)("ol",{className:"commentlist",children:(0,ot.jsx)("li",{className:"comment even thread-even depth-1",children:(0,ot.jsxs)("article",{className:"comment-body",children:[(0,ot.jsxs)("footer",{className:"comment-meta",children:[(0,ot.jsxs)("div",{className:"comment-author vcard",children:[(0,ot.jsx)("img",{alt:(0,$r.__)("Commenter Avatar"),src:o,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,ot.jsx)("b",{className:"fn",children:(0,ot.jsx)("a",{href:"#top",className:"url",children:(0,$r.__)("A WordPress Commenter")})})," ",(0,ot.jsxs)("span",{className:"says",children:[(0,$r.__)("says"),":"]})]}),(0,ot.jsxs)("div",{className:"comment-metadata",children:[(0,ot.jsx)("a",{href:"#top",children:(0,ot.jsx)("time",{dateTime:"2000-01-01T00:00:00+00:00",children:(0,$r.__)("January 1, 2000 at 00:00 am")})})," ",(0,ot.jsx)("span",{className:"edit-link",children:(0,ot.jsx)("a",{className:"comment-edit-link",href:"#top",children:(0,$r.__)("Edit")})})]})]}),(0,ot.jsx)("div",{className:"comment-content",children:(0,ot.jsxs)("p",{children:[(0,$r.__)("Hi, this is a comment."),(0,ot.jsx)("br",{}),(0,$r.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,ot.jsx)("br",{}),(0,yj.createInterpolateElement)((0,$r.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,ot.jsx)("a",{href:"https://gravatar.com/"})})]})}),(0,ot.jsx)("div",{className:"reply",children:(0,ot.jsx)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,$r.__)("Reply to A WordPress Commenter"),children:(0,$r._x)("Reply","verb")})})]})})}),(0,ot.jsxs)("div",{className:"navigation",children:[(0,ot.jsx)("div",{className:"alignleft",children:(0,ot.jsxs)("a",{href:"#top",children:["\xAB ",(0,$r.__)("Older Comments")]})}),(0,ot.jsx)("div",{className:"alignright",children:(0,ot.jsxs)("a",{href:"#top",children:[(0,$r.__)("Newer Comments")," \xBB"]})})]}),(0,ot.jsx)(Bk,{postId:t,postType:e})]})}var zl=a(y(),1);function kj({attributes:e,setAttributes:t,context:{postType:r,postId:o}}){let{textAlign:n}=e,i=[(0,zl.jsx)(xj.Button,{__next40pxDefaultSize:!0,onClick:()=>{t({legacy:!1})},variant:"primary",children:(0,eI.__)("Switch to editable mode")},"convert")],l=(0,em.useBlockProps)({className:w({[`has-text-align-${n}`]:n})});return(0,zl.jsxs)(zl.Fragment,{children:[(0,zl.jsx)(em.BlockControls,{group:"block",children:(0,zl.jsx)(em.AlignmentControl,{value:n,onChange:s=>{t({textAlign:s})}})}),(0,zl.jsxs)("div",{...l,children:[(0,zl.jsx)(em.Warning,{actions:i,children:(0,eI.__)("Comments block: You\u2019re currently using the legacy version of the block. The following is just a placeholder - the final styling will likely look different. For a better representation and more customization options, switch the block to its editable mode.")}),(0,zl.jsx)(_j,{postId:o,postType:r})]})]})}var i1e=[["core/comments-title"],["core/comment-template",{},[["core/columns",{},[["core/column",{width:"40px"},[["core/avatar",{size:40,style:{border:{radius:"20px"}}}]]],["core/column",{},[["core/comment-author-name",{fontSize:"small"}],["core/group",{layout:{type:"flex"},style:{spacing:{margin:{top:"0px",bottom:"0px"}}}},[["core/comment-date",{fontSize:"small"}],["core/comment-edit-link",{fontSize:"small"}]]],["core/comment-content"],["core/comment-reply-link",{fontSize:"small"}]]]]]]],["core/comments-pagination"],["core/post-comments-form"]],wj=i1e;var tm=a(y(),1);function Cj(e){let{attributes:t,setAttributes:r,clientId:o}=e,{tagName:n,legacy:i}=t,l=(0,Ek.useBlockProps)(),s=(0,Ek.useInnerBlocksProps)(l,{template:wj});return i?(0,tm.jsx)(kj,{...e}):(0,tm.jsxs)(tm.Fragment,{children:[(0,tm.jsx)(pj,{attributes:t,setAttributes:r,clientId:o}),(0,tm.jsx)(n,{...s})]})}var Ik=a(T(),1),Sj=a(y(),1);function Tj({attributes:{tagName:e,legacy:t}}){let r=Ik.useBlockProps.save(),o=Ik.useInnerBlocksProps.save(r);return t?null:(0,Sj.jsx)(e,{...o})}var{name:Pj}=Ck,Bj={icon:kP,example:{},edit:Cj,save:Tj,deprecated:uj},l1e=()=>N({name:Pj,metadata:Ck,settings:Bj});var oI={};q(oI,{init:()=>c1e,metadata:()=>Nk,name:()=>Nj,settings:()=>Dj});var Nk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/comment-author-avatar",title:"Comment Author Avatar (deprecated)",category:"theme",ancestor:["core/comment-template"],description:"This block is deprecated. Please use the Avatar block instead.",textdomain:"default",attributes:{width:{type:"number",default:96},height:{type:"number",default:96}},usesContext:["commentId"],supports:{html:!1,inserter:!1,__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},color:{background:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{__experimentalSkipSerialization:!0,margin:!0,padding:!0},interactivity:{clientNavigation:!0}}};var rm=a(T(),1),Uf=a(A(),1),rI=a(Y(),1),Ej=a(z(),1),Vp=a(P(),1),Vl=a(y(),1);function Ij({attributes:e,context:{commentId:t},setAttributes:r,isSelected:o}){let{height:n,width:i}=e,[l]=(0,rI.useEntityProp)("root","comment","author_avatar_urls",t),[s]=(0,rI.useEntityProp)("root","comment","author_name",t),c=l?Object.values(l):null,u=l?Object.keys(l):null,m=u?u[0]:24,p=u?u[u.length-1]:96,d=(0,rm.useBlockProps)(),f=(0,rm.__experimentalGetSpacingClassesAndStyles)(e),h=Math.floor(p*2.5),g=(0,Ej.useSelect)(x=>{let{__experimentalDiscussionSettings:_}=x(rm.store).getSettings();return _?.avatarURL},[]),b=(0,Vl.jsx)(rm.InspectorControls,{children:(0,Vl.jsx)(Uf.PanelBody,{title:(0,Vp.__)("Settings"),children:(0,Vl.jsx)(Uf.RangeControl,{__next40pxDefaultSize:!0,label:(0,Vp.__)("Image size"),onChange:x=>r({width:x,height:x}),min:m,max:h,initialPosition:i,value:i})})}),v=(0,Vl.jsx)(Uf.ResizableBox,{size:{width:i,height:n},showHandle:o,onResizeStop:(x,_,k,S)=>{r({height:parseInt(n+S.height,10),width:parseInt(i+S.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Vp.isRTL)(),bottom:!0,left:(0,Vp.isRTL)()},minWidth:m,maxWidth:h,children:(0,Vl.jsx)("img",{src:c?c[c.length-1]:g,alt:`${s} ${(0,Vp.__)("Avatar")}`,...d})});return(0,Vl.jsxs)(Vl.Fragment,{children:[b,(0,Vl.jsx)("div",{...f,children:v})]})}var{name:Nj}=Nk,Dj={icon:I0,edit:Ij},c1e=()=>N({name:Nj,metadata:Nk,settings:Dj});var aI={};q(aI,{init:()=>d1e,metadata:()=>Dk,name:()=>zj,settings:()=>Vj});var Dk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-author-name",title:"Comment Author Name",category:"theme",ancestor:["core/comment-template"],description:"Displays the name of the author of the comment.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},usesContext:["commentId"],supports:{anchor:!0,html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-comment-author-name"};var Gc=a(P(),1),Lj=a(z(),1),Lk=a(T(),1),Mj=a(Y(),1),om=a(A(),1);var si=a(y(),1);function Aj(e){let{attributes:{isLink:t,linkTarget:r},context:{commentId:o},setAttributes:n}=e;Tt(e);let i=$(),l=(0,Lk.useBlockProps)(),s=(0,Lj.useSelect)(m=>{let{getEntityRecord:p}=m(Mj.store),d=p("root","comment",o),f=d?.author_name;return d&&!f?p("root","user",d.author)?.name??(0,Gc.__)("Anonymous"):f??""},[o]),c=(0,si.jsx)(Lk.InspectorControls,{children:(0,si.jsxs)(om.__experimentalToolsPanel,{label:(0,Gc.__)("Settings"),resetAll:()=>{n({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:i,children:[(0,si.jsx)(om.__experimentalToolsPanelItem,{label:(0,Gc.__)("Link to authors URL"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>n({isLink:!0}),children:(0,si.jsx)(om.ToggleControl,{label:(0,Gc.__)("Link to authors URL"),onChange:()=>n({isLink:!t}),checked:t})}),t&&(0,si.jsx)(om.__experimentalToolsPanelItem,{label:(0,Gc.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r!=="_self",onDeselect:()=>n({linkTarget:"_self"}),children:(0,si.jsx)(om.ToggleControl,{label:(0,Gc.__)("Open in new tab"),onChange:m=>n({linkTarget:m?"_blank":"_self"}),checked:r==="_blank"})})]})});return(!o||!s)&&(s=(0,Gc._x)("Comment Author","block title")),(0,si.jsxs)(si.Fragment,{children:[c,(0,si.jsx)("div",{...l,children:t?(0,si.jsx)("a",{href:"#comment-author-pseudo-link",onClick:m=>m.preventDefault(),children:s}):s})]})}var m1e={attributes:{isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},usesContext:["commentId"],supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},save(){return null},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},p1e={attributes:{isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:Ut,isEligible({style:e}){return e?.typography?.fontFamily}},Rj=[m1e,p1e];var{name:zj}=Dk,Vj={icon:k9,edit:Aj,deprecated:Rj,example:{}},d1e=()=>N({name:zj,metadata:Dk,settings:Vj});var nI={};q(nI,{init:()=>g1e,metadata:()=>Mk,name:()=>$j,settings:()=>qj});var Mk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-content",title:"Comment Content",category:"theme",ancestor:["core/comment-template"],description:"Displays the contents of a comment.",textdomain:"default",usesContext:["commentId"],supports:{anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},spacing:{padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},html:!1},style:"wp-block-comment-content"};var Fj=a(P(),1),Oj=a(H(),1),Hj=a(A(),1),jj=a(Y(),1),Uj=a(T(),1);var Fl=a(y(),1);function Gj(e){let{context:{commentId:t}}=e;Tt(e);let r=(0,Uj.useBlockProps)(),[o]=(0,jj.useEntityProp)("root","comment","content",t);return!t||!o?(0,Fl.jsx)(Fl.Fragment,{children:(0,Fl.jsx)("div",{...r,children:(0,Fl.jsx)("p",{children:(0,Fj._x)("Comment Content","block title")})})}):(0,Fl.jsx)(Fl.Fragment,{children:(0,Fl.jsx)("div",{...r,children:(0,Fl.jsx)(Hj.Disabled,{children:(0,Fl.jsx)(Oj.RawHTML,{children:o.rendered},"html")})})})}var h1e={attributes:{textAlign:{type:"string"}},usesContext:["commentId"],supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},spacing:{padding:["horizontal","vertical"]},html:!1},save(){return null},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},Wj=[h1e];var{name:$j}=Mk,qj={icon:C9,edit:Gj,deprecated:Wj,example:{}},g1e=()=>N({name:$j,metadata:Mk,settings:qj});var lI={};q(lI,{init:()=>y1e,metadata:()=>Ak,name:()=>Qj,settings:()=>Xj});var Ak={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-date",title:"Comment Date",category:"theme",ancestor:["core/comment-template"],description:"Displays the date on which the comment was posted.",textdomain:"default",attributes:{format:{type:"string"},isLink:{type:"boolean",default:!0}},usesContext:["commentId"],supports:{anchor:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-comment-date"};var iI=a(Y(),1),Op=a(Rk(),1),Gf=a(T(),1),Hp=a(A(),1),Fp=a(P(),1);var Za=a(y(),1);function Kj({attributes:{format:e,isLink:t},context:{commentId:r},setAttributes:o}){let n=(0,Gf.useBlockProps)(),i=$(),[l]=(0,iI.useEntityProp)("root","comment","date",r),[s=(0,Op.getSettings)().formats.date]=(0,iI.useEntityProp)("root","site","date_format"),c=(0,Za.jsx)(Gf.InspectorControls,{children:(0,Za.jsxs)(Hp.__experimentalToolsPanel,{label:(0,Fp.__)("Settings"),resetAll:()=>{o({format:void 0,isLink:!0})},dropdownMenuProps:i,children:[(0,Za.jsx)(Hp.__experimentalToolsPanelItem,{label:(0,Fp.__)("Date format"),hasValue:()=>e!==void 0,onDeselect:()=>o({format:void 0}),isShownByDefault:!0,children:(0,Za.jsx)(Gf.__experimentalDateFormatPicker,{format:e,defaultFormat:s,onChange:m=>o({format:m})})}),(0,Za.jsx)(Hp.__experimentalToolsPanelItem,{label:(0,Fp.__)("Link to comment"),hasValue:()=>!t,onDeselect:()=>o({isLink:!0}),isShownByDefault:!0,children:(0,Za.jsx)(Hp.ToggleControl,{label:(0,Fp.__)("Link to comment"),onChange:()=>o({isLink:!t}),checked:t})})]})});(!r||!l)&&(l=(0,Fp._x)("Comment Date","block title"));let u=l instanceof Date?(0,Za.jsx)("time",{dateTime:(0,Op.dateI18n)("c",l),children:e==="human-diff"?(0,Op.humanTimeDiff)(l):(0,Op.dateI18n)(e||s,l)}):(0,Za.jsx)("time",{children:l});return t&&(u=(0,Za.jsx)("a",{href:"#comment-date-pseudo-link",onClick:m=>m.preventDefault(),children:u})),(0,Za.jsxs)(Za.Fragment,{children:[c,(0,Za.jsx)("div",{...n,children:u})]})}var b1e={attributes:{format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:Ut,isEligible({style:e}){return e?.typography?.fontFamily}},Yj=[b1e];var{name:Qj}=Ak,Xj={icon:t1,edit:Kj,deprecated:Yj,example:{}},y1e=()=>N({name:Qj,metadata:Ak,settings:Xj});var sI={};q(sI,{init:()=>k1e,metadata:()=>zk,name:()=>tU,settings:()=>rU});var zk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-edit-link",title:"Comment Edit Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to edit the comment in the WordPress Dashboard. This link is only visible to users with the edit comment capability.",textdomain:"default",usesContext:["commentId"],attributes:{linkTarget:{type:"string",default:"_self"}},supports:{anchor:!0,html:!1,color:{link:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},style:"wp-block-comment-edit-link"};var Vk=a(T(),1),Wf=a(A(),1),Z1=a(P(),1);var Ol=a(y(),1);function Jj(e){let{attributes:t,setAttributes:r}=e,{linkTarget:o}=t;Tt(e);let n=(0,Vk.useBlockProps)(),i=$(),l=(0,Ol.jsx)(Vk.InspectorControls,{children:(0,Ol.jsx)(Wf.__experimentalToolsPanel,{label:(0,Z1.__)("Settings"),resetAll:()=>{r({linkTarget:"_self"})},dropdownMenuProps:i,children:(0,Ol.jsx)(Wf.__experimentalToolsPanelItem,{label:(0,Z1.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>o==="_blank",onDeselect:()=>r({linkTarget:"_self"}),children:(0,Ol.jsx)(Wf.ToggleControl,{label:(0,Z1.__)("Open in new tab"),onChange:s=>r({linkTarget:s?"_blank":"_self"}),checked:o==="_blank"})})})});return(0,Ol.jsxs)(Ol.Fragment,{children:[l,(0,Ol.jsx)("div",{...n,children:(0,Ol.jsx)("a",{href:"#edit-comment-pseudo-link",onClick:s=>s.preventDefault(),children:(0,Z1.__)("Edit")})})]})}var x1e={attributes:{linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},usesContext:["commentId"],supports:{anchor:!0,html:!1,color:{link:!0,gradients:!0,text:!1},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},save(){return null},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},eU=[x1e];var{name:tU}=zk,rU={icon:T9,edit:Jj,deprecated:eU,example:{}},k1e=()=>N({name:tU,metadata:zk,settings:rU});var cI={};q(cI,{init:()=>T1e,metadata:()=>Fk,name:()=>lU,settings:()=>sU});var Fk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-reply-link",title:"Comment Reply Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to reply to a comment.",textdomain:"default",usesContext:["commentId"],supports:{anchor:!0,color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},html:!1},style:"wp-block-comment-reply-link"};var oU=a(P(),1),aU=a(T(),1);var $f=a(y(),1);function C1e(e){Tt(e);let t=(0,aU.useBlockProps)();return(0,$f.jsx)($f.Fragment,{children:(0,$f.jsx)("div",{...t,children:(0,$f.jsx)("a",{href:"#comment-reply-pseudo-link",onClick:r=>r.preventDefault(),children:(0,oU._x)("Reply","verb")})})})}var nU=C1e;var S1e={attributes:{textAlign:{type:"string"}},usesContext:["commentId"],supports:{anchor:!0,color:{gradients:!0,link:!0,text:!1},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},html:!1},save(){return null},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},iU=[S1e];var{name:lU}=Fk,sU={edit:nU,icon:B9,deprecated:iU,example:{}},T1e=()=>N({name:lU,metadata:Fk,settings:sU});var mI={};q(mI,{init:()=>M1e,metadata:()=>Ok,name:()=>SU,settings:()=>TU});var Ok={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-template",title:"Comment Template",category:"design",parent:["core/comments"],description:"Contains the block elements used to display a comment, like the title, date, author, avatar and more.",textdomain:"default",usesContext:["postId"],supports:{anchor:!0,align:!0,html:!1,reusable:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-comment-template"};var Hk=a(H(),1),uI=a(z(),1),vU=a(P(),1),Hl=a(T(),1),bU=a(A(),1),yU=a(Y(),1);var jp=a(H(),1),mU=a(z(),1),pU=a(T(),1),dU=a(ir(),1),fU=a(K1(),1),uU=100,hU=({postId:e})=>{let t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:r,commentsPerPage:o,defaultCommentsPage:n}=(0,mU.useSelect)(s=>{let{getSettings:c}=s(pU.store),{__experimentalDiscussionSettings:u}=c();return u??{}},[]),i=r?Math.min(o,uU):uU,l=B1e({defaultPage:n,postId:e,perPage:i,queryArgs:t});return(0,jp.useMemo)(()=>l?{...t,post:e,per_page:i,page:l}:null,[e,i,l])},B1e=({defaultPage:e,postId:t,perPage:r,queryArgs:o})=>{let[n,i]=(0,jp.useState)({}),l=`${t}_${r}`,s=n[l]||0;return(0,jp.useEffect)(()=>{s||e!=="newest"||(0,fU.default)({path:(0,dU.addQueryArgs)("/wp/v2/comments",{...o,post:t,per_page:r,_fields:"id"}),method:"HEAD",parse:!1}).then(c=>{let u=parseInt(c.headers.get("X-WP-TotalPages"));i({...n,[l]:u<=1?1:u})}).catch(()=>{i({...n,[l]:1})})},[e,t,r,i]),e==="newest"?s:1},gU=e=>(0,jp.useMemo)(()=>e?.map(({id:r,_embedded:o})=>{let[n]=o?.children||[[]];return{commentId:r,children:n.map(i=>({commentId:i.id}))}}),[e]);var ci=a(y(),1),E1e=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]],I1e=({perPage:e,pageComments:t,threadComments:r,threadCommentsDepth:o})=>{let n=r?Math.min(o,3):1,i=s=>{if(s<n){let c=s+1;return[{commentId:-(s+3),children:i(c)}]}return[]},l=[{commentId:-1,children:i(1)}];return(!t||e>=2)&&n<3&&l.push({commentId:-2,children:[]}),(!t||e>=3)&&n<2&&l.push({commentId:-3,children:[]}),l};function N1e({comment:e,activeCommentId:t,setActiveCommentId:r,firstCommentId:o,blocks:n}){let{children:i,...l}=(0,Hl.useInnerBlocksProps)({},{template:E1e});return(0,ci.jsxs)("li",{...l,children:[e.commentId===(t||o)?i:null,(0,ci.jsx)(L1e,{blocks:n,commentId:e.commentId,setActiveCommentId:r,isHidden:e.commentId===(t||o)}),e?.children?.length>0?(0,ci.jsx)(_U,{comments:e.children,activeCommentId:t,setActiveCommentId:r,blocks:n,firstCommentId:o}):null]})}var D1e=({blocks:e,commentId:t,setActiveCommentId:r,isHidden:o})=>{let n=(0,Hl.__experimentalUseBlockPreview)({blocks:e}),i=()=>{r(t)};return(0,ci.jsx)("div",{...n,tabIndex:0,role:"button",style:{display:o?"none":void 0},onClick:i,onKeyPress:i})},L1e=(0,Hk.memo)(D1e),_U=({comments:e,blockProps:t,activeCommentId:r,setActiveCommentId:o,blocks:n,firstCommentId:i})=>(0,ci.jsx)("ol",{...t,children:e&&e.map(({commentId:l,...s},c)=>(0,ci.jsx)(Hl.BlockContextProvider,{value:{commentId:l<0?null:l},children:(0,ci.jsx)(N1e,{comment:{commentId:l,...s},activeCommentId:r,setActiveCommentId:o,blocks:n,firstCommentId:i})},s.commentId||c))});function xU({clientId:e,context:{postId:t}}){let r=(0,Hl.useBlockProps)(),[o,n]=(0,Hk.useState)(),{commentOrder:i,threadCommentsDepth:l,threadComments:s,commentsPerPage:c,pageComments:u}=(0,uI.useSelect)(h=>{let{getSettings:g}=h(Hl.store);return g().__experimentalDiscussionSettings??{}},[]),m=hU({postId:t}),{topLevelComments:p,blocks:d}=(0,uI.useSelect)(h=>{let{getEntityRecords:g}=h(yU.store),{getBlocks:b}=h(Hl.store);return{topLevelComments:m?g("root","comment",m):null,blocks:b(e)}},[e,m]),f=gU(i==="desc"&&p?[...p].reverse():p);return p?(t||(f=I1e({perPage:c,pageComments:u,threadComments:s,threadCommentsDepth:l})),f.length?(0,ci.jsx)(_U,{comments:f,blockProps:r,blocks:d,activeCommentId:o,setActiveCommentId:n,firstCommentId:f[0]?.commentId}):(0,ci.jsx)("p",{...r,children:(0,vU.__)("No results found.")})):(0,ci.jsx)("p",{...r,children:(0,ci.jsx)(bU.Spinner,{})})}var kU=a(T(),1),wU=a(y(),1);function CU(){return(0,wU.jsx)(kU.InnerBlocks.Content,{})}var{name:SU}=Ok,TU={icon:_p,edit:xU,save:CU},M1e=()=>N({name:SU,metadata:Ok,settings:TU});var dI={};q(dI,{init:()=>z1e,metadata:()=>jk,name:()=>EU,settings:()=>IU});var BU=a(P(),1);var jk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-previous",title:"Comments Previous Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the previous comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var pI=a(P(),1),Uk=a(T(),1),Y1=a(y(),1),R1e={none:"",arrow:"\u2190",chevron:"\xAB"};function PU({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":r}}){let o=R1e[r];return(0,Y1.jsxs)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:n=>n.preventDefault(),...(0,Uk.useBlockProps)(),children:[o&&(0,Y1.jsx)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${r}`,children:o}),(0,Y1.jsx)(Uk.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,pI.__)("Older comments page link"),placeholder:(0,pI.__)("Older Comments"),value:e,onChange:n=>t({label:n})})]})}var{name:EU}=jk,IU={icon:n1,edit:PU,example:{attributes:{label:(0,BU.__)("Older Comments")}}},z1e=()=>N({name:EU,metadata:jk,settings:IU});var hI={};q(hI,{init:()=>O1e,metadata:()=>Gk,name:()=>RU,settings:()=>zU});var Gk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination",title:"Comments Pagination",category:"theme",parent:["core/comments"],allowedBlocks:["core/comments-pagination-previous","core/comments-pagination-numbers","core/comments-pagination-next"],description:"Displays a paginated navigation to next/previous set of comments, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"}},example:{attributes:{paginationArrow:"none"}},providesContext:{"comments/paginationArrow":"paginationArrow"},supports:{anchor:!0,align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-comments-pagination-editor",style:"wp-block-comments-pagination"};var Wk=a(P(),1),Ul=a(T(),1),fI=a(z(),1),$k=a(A(),1);var Up=a(P(),1),qf=a(A(),1),Zf=a(y(),1);function NU({value:e,onChange:t}){return(0,Zf.jsxs)(qf.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,Up.__)("Arrow"),value:e,onChange:t,help:(0,Up.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0,children:[(0,Zf.jsx)(qf.__experimentalToggleGroupControlOption,{value:"none",label:(0,Up._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Zf.jsx)(qf.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Up._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Zf.jsx)(qf.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Up._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")})]})}var jl=a(y(),1),F1e=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]];function DU({attributes:{paginationArrow:e},setAttributes:t,clientId:r}){let o=(0,fI.useSelect)(c=>{let{getBlocks:u}=c(Ul.store);return u(r)?.find(p=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(p.name))},[]),n=(0,Ul.useBlockProps)(),i=$(),l=(0,Ul.useInnerBlocksProps)(n,{template:F1e});return(0,fI.useSelect)(c=>{let{getSettings:u}=c(Ul.store),{__experimentalDiscussionSettings:m}=u();return m?.pageComments},[])?(0,jl.jsxs)(jl.Fragment,{children:[o&&(0,jl.jsx)(Ul.InspectorControls,{children:(0,jl.jsx)($k.__experimentalToolsPanel,{label:(0,Wk.__)("Settings"),dropdownMenuProps:i,resetAll:()=>t({paginationArrow:"none"}),children:(0,jl.jsx)($k.__experimentalToolsPanelItem,{label:(0,Wk.__)("Arrow"),hasValue:()=>e!=="none",onDeselect:()=>t({paginationArrow:"none"}),isShownByDefault:!0,children:(0,jl.jsx)(NU,{value:e,onChange:c=>{t({paginationArrow:c})}})})})}),(0,jl.jsx)("div",{...l})]}):(0,jl.jsx)(Ul.Warning,{children:(0,Wk.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings")})}var LU=a(T(),1),MU=a(y(),1);function AU(){return(0,MU.jsx)(LU.InnerBlocks.Content,{})}var{name:RU}=Gk,zU={icon:i1,edit:DU,save:AU},O1e=()=>N({name:RU,metadata:Gk,settings:zU});var vI={};q(vI,{init:()=>U1e,metadata:()=>qk,name:()=>OU,settings:()=>HU});var FU=a(P(),1);var qk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-next",title:"Comments Next Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the next comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var gI=a(P(),1),Zk=a(T(),1),Q1=a(y(),1),j1e={none:"",arrow:"\u2192",chevron:"\xBB"};function VU({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":r}}){let o=j1e[r];return(0,Q1.jsxs)("a",{href:"#comments-pagination-next-pseudo-link",onClick:n=>n.preventDefault(),...(0,Zk.useBlockProps)(),children:[(0,Q1.jsx)(Zk.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,gI.__)("Newer comments page link"),placeholder:(0,gI.__)("Newer Comments"),value:e,onChange:n=>t({label:n})}),o&&(0,Q1.jsx)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${r}`,children:o})]})}var{name:OU}=qk,HU={icon:o1,edit:VU,example:{attributes:{label:(0,FU.__)("Newer Comments")}}},U1e=()=>N({name:OU,metadata:qk,settings:HU});var bI={};q(bI,{init:()=>W1e,metadata:()=>Kk,name:()=>GU,settings:()=>WU});var Kk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-numbers",title:"Comments Page Numbers",category:"theme",parent:["core/comments-pagination"],description:"Displays a list of page numbers for comments pagination.",textdomain:"default",usesContext:["postId"],supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{padding:!0}}}};var jU=a(T(),1),Xi=a(y(),1),Gp=({content:e,tag:t="a",extraClass:r=""})=>t==="a"?(0,Xi.jsx)(t,{className:`page-numbers ${r}`,href:"#comments-pagination-numbers-pseudo-link",onClick:o=>o.preventDefault(),children:e}):(0,Xi.jsx)(t,{className:`page-numbers ${r}`,children:e});function UU(){return(0,Xi.jsxs)("div",{...(0,jU.useBlockProps)(),children:[(0,Xi.jsx)(Gp,{content:"1"}),(0,Xi.jsx)(Gp,{content:"2"}),(0,Xi.jsx)(Gp,{content:"3",tag:"span",extraClass:"current"}),(0,Xi.jsx)(Gp,{content:"4"}),(0,Xi.jsx)(Gp,{content:"5"}),(0,Xi.jsx)(Gp,{content:"...",tag:"span",extraClass:"dots"}),(0,Xi.jsx)(Gp,{content:"8"})]})}var{name:GU}=Kk,WU={icon:a1,edit:UU,example:{}},W1e=()=>N({name:GU,metadata:Kk,settings:WU});var yI={};q(yI,{init:()=>K1e,metadata:()=>Yk,name:()=>XU,settings:()=>JU});var Yk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-title",title:"Comments Title",category:"theme",ancestor:["core/comments"],description:"Displays a title with the number of comments.",textdomain:"default",usesContext:["postId","postType"],attributes:{showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2},levelOptions:{type:"array"}},supports:{anchor:!0,align:!0,html:!1,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0}},interactivity:{clientNavigation:!0}}};var Rs=a(T(),1),Er=a(P(),1),$U=a(Y(),1),am=a(A(),1),Qk=a(H(),1),qU=a(z(),1),ZU=a(K1(),1),KU=a(ir(),1);var Cn=a(y(),1);function YU(e){Tt(e);let{attributes:t,setAttributes:r,context:o}=e,{showPostTitle:n,showCommentsCount:i,level:l=2,levelOptions:s}=t,{postId:c,postType:u}=o,m="h"+l,[p,d]=(0,Qk.useState)(),[f]=(0,$U.useEntityProp)("postType",u,"title",c),h=typeof c>"u",g=(0,Rs.useBlockProps)(),{threadCommentsDepth:b,threadComments:v,commentsPerPage:x,pageComments:_}=(0,qU.useSelect)(D=>{let{getSettings:M}=D(Rs.store);return M().__experimentalDiscussionSettings??{}},[]),k=$();(0,Qk.useEffect)(()=>{if(h){let M=v?Math.min(b,3)-1:0,F=_?x:3,R=parseInt(M)+parseInt(F);d(Math.min(R,3));return}let D=c;(0,ZU.default)({path:(0,KU.addQueryArgs)("/wp/v2/comments",{post:c,_fields:"id"}),method:"HEAD",parse:!1}).then(M=>{D===c&&d(parseInt(M.headers.get("X-WP-Total")))}).catch(()=>{d(0)})},[c]);let S=(0,Cn.jsx)(Rs.BlockControls,{group:"block",children:(0,Cn.jsx)(Rs.HeadingLevelDropdown,{value:l,options:s,onChange:D=>r({level:D})})}),C=(0,Cn.jsx)(Rs.InspectorControls,{children:(0,Cn.jsxs)(am.__experimentalToolsPanel,{label:(0,Er.__)("Settings"),resetAll:()=>{r({showPostTitle:!0,showCommentsCount:!0})},dropdownMenuProps:k,children:[(0,Cn.jsx)(am.__experimentalToolsPanelItem,{label:(0,Er.__)("Show post title"),isShownByDefault:!0,hasValue:()=>!n,onDeselect:()=>r({showPostTitle:!0}),children:(0,Cn.jsx)(am.ToggleControl,{label:(0,Er.__)("Show post title"),checked:n,onChange:D=>r({showPostTitle:D})})}),(0,Cn.jsx)(am.__experimentalToolsPanelItem,{label:(0,Er.__)("Show comments count"),isShownByDefault:!0,hasValue:()=>!i,onDeselect:()=>r({showCommentsCount:!0}),children:(0,Cn.jsx)(am.ToggleControl,{label:(0,Er.__)("Show comments count"),checked:i,onChange:D=>r({showCommentsCount:D})})})]})}),E=h?(0,Er.__)("Post Title"):f,I;return i&&p!==void 0?n?p===1?I=(0,Er.sprintf)((0,Er.__)('One response to "%s"'),E):I=(0,Er.sprintf)((0,Er._n)('%1$s response to "%2$s"','%1$s responses to "%2$s"',p),p,E):p===1?I=(0,Er.__)("One response"):I=(0,Er.sprintf)((0,Er._n)("%s response","%s responses",p),p):n?p===1?I=(0,Er.sprintf)((0,Er.__)('Response to "%s"'),E):I=(0,Er.sprintf)((0,Er.__)('Responses to "%s"'),E):p===1?I=(0,Er.__)("Response"):I=(0,Er.__)("Responses"),(0,Cn.jsxs)(Cn.Fragment,{children:[S,C,(0,Cn.jsx)(m,{...g,children:I})]})}var q1e={attributes:{textAlign:{type:"string"},showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2},levelOptions:{type:"array"}},supports:{anchor:!0,align:!0,html:!1,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0}},interactivity:{clientNavigation:!0}},migrate:e=>{let{singleCommentLabel:t,multipleCommentsLabel:r,...o}=e;return ve(o)},isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Z1e={attributes:{textAlign:{type:"string"},showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2},levelOptions:{type:"array"},singleCommentLabel:{type:"string"},multipleCommentsLabel:{type:"string"}},supports:{anchor:!0,align:!0,html:!1,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0}},interactivity:{clientNavigation:!0}},migrate:e=>{let{singleCommentLabel:t,multipleCommentsLabel:r,...o}=e;return ve(o)},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null},QU=[q1e,Z1e];var{name:XU}=Yk,JU={icon:Ll,edit:YU,deprecated:QU,example:{}},K1e=()=>N({name:XU,metadata:Yk,settings:JU});var zI={};q(zI,{init:()=>sbe,metadata:()=>d5,name:()=>JG,settings:()=>h5});var RI=a(P(),1);var XG=a(G(),1);var e5=a(G(),1),_e=a(T(),1),t5=a(P(),1),X1=a(pe(),1);var Xk=a(Br(),1),Y1e={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"},er="image",wr="video",Wc="embed-video",eG=50;var Q1e={x:.5,y:.5},Jk=["image","video"];function $o({x:e,y:t}=Q1e){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}function Ji(e){return e===50||e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}function tG(e){if(!e||!e.url&&!e.src)return{url:void 0,id:void 0};(0,Xk.isBlobURL)(e.url)&&(e.type=(0,Xk.getBlobTypeByURL)(e.url));let t;if(e.media_type)e.media_type===er?t=er:t=wr;else if(e.type&&(e.type===er||e.type===wr))t=e.type;else return;return{url:e.url||e.src,id:e.id,alt:e?.alt,backgroundType:t,...t===wr?{hasParallax:void 0}:{}}}function Ka(e){return!e||e==="center center"||e==="center"}function Sn(e){return Ka(e)?"":Y1e[e]}var le=a(y(),1);function zs(e){return e?{backgroundImage:`url(${e})`}:{}}function Wp(e){return e===0||e===50||!e?null:"has-background-dim-"+10*Math.round(e/10)}function r5(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function nm(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}var $p={url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"}},J1={url:{type:"string"},id:{type:"number"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},_I={...J1,useFeaturedImage:{type:"boolean",default:!1},tagName:{type:"string",default:"div"}},X1e={..._I,isUserOverlayColor:{type:"boolean"},sizeSlug:{type:"string"},alt:{type:"string",default:""}},Kf={anchor:!0,align:!0,html:!1,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},xI={...Kf,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",heading:!0,text:!0,background:!1,__experimentalSkipSerialization:["gradients"],enableContrastChecker:!1},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1}},J1e={...xI,shadow:!0,dimensions:{aspectRatio:!0},interactivity:{clientNavigation:!0}},eve={attributes:X1e,supports:J1e,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:g,minHeight:b,minHeightUnit:v,tagName:x,sizeSlug:_}=e,k=(0,_e.getColorClassName)("background-color",d),S=(0,_e.__experimentalGetGradientClass)(r),C=b&&v?`${b}${v}`:b,E=er===t,I=wr===t,D=!(u||p),M={minHeight:C||void 0},F={backgroundColor:k?void 0:i,background:n||void 0},R=s&&D?$o(s):void 0,V=f?`url(${f})`:void 0,B=$o(s),j=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Ka(o)},Sn(o)),U=w("wp-block-cover__image-background",g?`wp-image-${g}`:null,{[`size-${_}`]:_,"has-parallax":u,"is-repeated":p}),O=r||n;return(0,le.jsxs)(x,{..._e.useBlockProps.save({className:j,style:M}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",k,Ji(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&O&&l!==0,"has-background-gradient":O,[S]:S}),style:F}),!c&&E&&f&&(D?(0,le.jsx)("img",{className:U,alt:h,src:f,style:{objectPosition:R},"data-object-fit":"cover","data-object-position":R}):(0,le.jsx)("div",{role:h?"img":void 0,"aria-label":h||void 0,className:U,style:{backgroundPosition:B,backgroundImage:V}})),I&&f&&(0,le.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:R},"data-object-fit":"cover","data-object-position":R}),(0,le.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},tve={attributes:_I,supports:xI,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:g,minHeight:b,minHeightUnit:v,tagName:x}=e,_=(0,_e.getColorClassName)("background-color",d),k=(0,_e.__experimentalGetGradientClass)(r),S=b&&v?`${b}${v}`:b,C=er===t,E=wr===t,I=!(u||p),D={minHeight:S||void 0},M={backgroundColor:_?void 0:i,background:n||void 0},F=s&&I?$o(s):void 0,R=f?`url(${f})`:void 0,V=$o(s),B=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Ka(o)},Sn(o)),j=w("wp-block-cover__image-background",g?`wp-image-${g}`:null,{"has-parallax":u,"is-repeated":p}),U=r||n;return(0,le.jsxs)(x,{..._e.useBlockProps.save({className:B,style:D}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",_,Ji(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&U&&l!==0,"has-background-gradient":U,[k]:k}),style:M}),!c&&C&&f&&(I?(0,le.jsx)("img",{className:j,alt:h,src:f,style:{objectPosition:F},"data-object-fit":"cover","data-object-position":F}):(0,le.jsx)("div",{role:"img",className:j,style:{backgroundPosition:V,backgroundImage:R}})),E&&f&&(0,le.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:F},"data-object-fit":"cover","data-object-position":F}),(0,le.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},rve={attributes:_I,supports:xI,isEligible(e){return(e.customOverlayColor!==void 0||e.overlayColor!==void 0)&&e.isUserOverlayColor===void 0},migrate(e){return{...e,isUserOverlayColor:!0}},save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:g,minHeight:b,minHeightUnit:v,tagName:x}=e,_=(0,_e.getColorClassName)("background-color",d),k=(0,_e.__experimentalGetGradientClass)(r),S=b&&v?`${b}${v}`:b,C=er===t,E=wr===t,I=!(u||p),D={minHeight:S||void 0},M={backgroundColor:_?void 0:i,background:n||void 0},F=s&&I?$o(s):void 0,R=f?`url(${f})`:void 0,V=$o(s),B=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Ka(o)},Sn(o)),j=w("wp-block-cover__image-background",g?`wp-image-${g}`:null,{"has-parallax":u,"is-repeated":p}),U=r||n;return(0,le.jsxs)(x,{..._e.useBlockProps.save({className:B,style:D}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",_,Ji(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&U&&l!==0,"has-background-gradient":U,[k]:k}),style:M}),!c&&C&&f&&(I?(0,le.jsx)("img",{className:j,alt:h,src:f,style:{objectPosition:F},"data-object-fit":"cover","data-object-position":F}):(0,le.jsx)("div",{role:"img",className:j,style:{backgroundPosition:V,backgroundImage:R}})),E&&f&&(0,le.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:F},"data-object-fit":"cover","data-object-position":F}),(0,le.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},ove={attributes:J1,supports:Kf,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:g,minHeight:b,minHeightUnit:v}=e,x=(0,_e.getColorClassName)("background-color",d),_=(0,_e.__experimentalGetGradientClass)(r),k=b&&v?`${b}${v}`:b,S=er===t,C=wr===t,E=!(u||p),I={minHeight:k||void 0},D={backgroundColor:x?void 0:i,background:n||void 0},M=s&&E?$o(s):void 0,F=f?`url(${f})`:void 0,R=$o(s),V=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Ka(o)},Sn(o)),B=w("wp-block-cover__image-background",g?`wp-image-${g}`:null,{"has-parallax":u,"is-repeated":p}),j=r||n;return(0,le.jsxs)("div",{..._e.useBlockProps.save({className:V,style:I}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",x,Ji(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&j&&l!==0,"has-background-gradient":j,[_]:_}),style:D}),!c&&S&&f&&(E?(0,le.jsx)("img",{className:B,alt:h,src:f,style:{objectPosition:M},"data-object-fit":"cover","data-object-position":M}):(0,le.jsx)("div",{role:"img",className:B,style:{backgroundPosition:R,backgroundImage:F}})),C&&f&&(0,le.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:M},"data-object-fit":"cover","data-object-position":M}),(0,le.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:nm},ave={attributes:J1,supports:Kf,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:g,minHeight:b,minHeightUnit:v}=e,x=(0,_e.getColorClassName)("background-color",d),_=(0,_e.__experimentalGetGradientClass)(r),k=b&&v?`${b}${v}`:b,S=er===t,C=wr===t,E=!(u||p),I={...S&&!E&&!c?zs(f):{},minHeight:k||void 0},D={backgroundColor:x?void 0:i,background:n||void 0},M=s&&E?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,F=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Ka(o)},Sn(o)),R=r||n;return(0,le.jsxs)("div",{..._e.useBlockProps.save({className:F,style:I}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",x,Ji(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&R&&l!==0,"has-background-gradient":R,[_]:_}),style:D}),!c&&S&&E&&f&&(0,le.jsx)("img",{className:w("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:h,src:f,style:{objectPosition:M},"data-object-fit":"cover","data-object-position":M}),C&&f&&(0,le.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:M},"data-object-fit":"cover","data-object-position":M}),(0,le.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:nm},nve={attributes:J1,supports:Kf,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:f,id:h,minHeight:g,minHeightUnit:b}=e,v=(0,_e.getColorClassName)("background-color",p),x=(0,_e.__experimentalGetGradientClass)(r),_=b?`${g}${b}`:g,k=er===t,S=wr===t,C=!(c||m),E={...k&&!C?zs(d):{},minHeight:_||void 0},I={backgroundColor:v?void 0:i,background:n||void 0},D=s&&C?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,M=w({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!Ka(o)},Sn(o)),F=r||n;return(0,le.jsxs)("div",{..._e.useBlockProps.save({className:M,style:E}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",v,Ji(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":d&&F&&l!==0,"has-background-gradient":F,[x]:x}),style:I}),k&&C&&d&&(0,le.jsx)("img",{className:w("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:f,src:d,style:{objectPosition:D},"data-object-fit":"cover","data-object-position":D}),S&&d&&(0,le.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:D},"data-object-fit":"cover","data-object-position":D}),(0,le.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:nm},ive={attributes:J1,supports:Kf,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:f,id:h,minHeight:g,minHeightUnit:b}=e,v=(0,_e.getColorClassName)("background-color",p),x=(0,_e.__experimentalGetGradientClass)(r),_=b?`${g}${b}`:g,k=er===t,S=wr===t,C=!(c||m),E={...k&&!C?zs(d):{},minHeight:_||void 0},I={backgroundColor:v?void 0:i,background:n||void 0},D=s&&C?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,M=w({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!Ka(o)},Sn(o));return(0,le.jsxs)("div",{..._e.useBlockProps.save({className:M,style:E}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:w(v,Ji(l),"wp-block-cover__gradient-background",x,{"has-background-dim":l!==void 0,"has-background-gradient":r||n,[x]:!d&&x}),style:I}),k&&C&&d&&(0,le.jsx)("img",{className:w("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:f,src:d,style:{objectPosition:D},"data-object-fit":"cover","data-object-position":D}),S&&d&&(0,le.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:D},"data-object-fit":"cover","data-object-position":D}),(0,le.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:nm},lve={attributes:{...$p,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""}},supports:Kf,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isRepeated:u,overlayColor:m,url:p,alt:d,id:f,minHeight:h,minHeightUnit:g}=e,b=(0,_e.getColorClassName)("background-color",m),v=(0,_e.__experimentalGetGradientClass)(r),x=g?`${h}${g}`:h,_=er===t,k=wr===t,S=!(c||u),C={..._&&!S?zs(p):{},backgroundColor:b?void 0:i,background:n&&!p?n:void 0,minHeight:x||void 0},E=s&&S?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,I=w(Wp(l),b,{"has-background-dim":l!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":r||n,[v]:!p&&v,"has-custom-content-position":!Ka(o)},Sn(o));return(0,le.jsxs)("div",{..._e.useBlockProps.save({className:I,style:C}),children:[p&&(r||n)&&l!==0&&(0,le.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__gradient-background",v),style:n?{background:n}:void 0}),_&&S&&p&&(0,le.jsx)("img",{className:w("wp-block-cover__image-background",f?`wp-image-${f}`:null),alt:d,src:p,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),k&&p&&(0,le.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),(0,le.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,le.jsx)(_e.InnerBlocks.Content,{})})]})},migrate:(0,X1.compose)(r5,nm)},sve={attributes:{...$p,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isRepeated:u,overlayColor:m,url:p,minHeight:d,minHeightUnit:f}=e,h=(0,_e.getColorClassName)("background-color",m),g=(0,_e.__experimentalGetGradientClass)(r),b=f?`${d}${f}`:d,v=er===t,x=wr===t,_=v?zs(p):{},k={};h||(_.backgroundColor=i),n&&!p&&(_.background=n),_.minHeight=b||void 0;let S;s&&(S=`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`,v&&!c&&(_.backgroundPosition=S),x&&(k.objectPosition=S));let C=w(Wp(l),h,{"has-background-dim":l!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":r||n,[g]:!p&&g,"has-custom-content-position":!Ka(o)},Sn(o));return(0,le.jsxs)("div",{..._e.useBlockProps.save({className:C,style:_}),children:[p&&(r||n)&&l!==0&&(0,le.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__gradient-background",g),style:n?{background:n}:void 0}),x&&p&&(0,le.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:k}),(0,le.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,le.jsx)(_e.InnerBlocks.Content,{})})]})},migrate:(0,X1.compose)(r5,nm)},cve={attributes:{...$p,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,customGradient:o,customOverlayColor:n,dimRatio:i,focalPoint:l,hasParallax:s,overlayColor:c,url:u,minHeight:m}=e,p=(0,_e.getColorClassName)("background-color",c),d=(0,_e.__experimentalGetGradientClass)(r),f=t===er?zs(u):{};p||(f.backgroundColor=n),l&&!s&&(f.backgroundPosition=`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`),o&&!u&&(f.background=o),f.minHeight=m||void 0;let h=w(Wp(i),p,{"has-background-dim":i!==0,"has-parallax":s,"has-background-gradient":o,[d]:!u&&d});return(0,le.jsxs)("div",{className:h,style:f,children:[u&&(r||o)&&i!==0&&(0,le.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),wr===t&&u&&(0,le.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,le.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,le.jsx)(_e.InnerBlocks.Content,{})})]})},migrate:(0,X1.compose)(r5,nm)},uve={attributes:{...$p,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,customGradient:o,customOverlayColor:n,dimRatio:i,focalPoint:l,hasParallax:s,overlayColor:c,url:u,minHeight:m}=e,p=(0,_e.getColorClassName)("background-color",c),d=(0,_e.__experimentalGetGradientClass)(r),f=t===er?zs(u):{};p||(f.backgroundColor=n),l&&!s&&(f.backgroundPosition=`${l.x*100}% ${l.y*100}%`),o&&!u&&(f.background=o),f.minHeight=m||void 0;let h=w(Wp(i),p,{"has-background-dim":i!==0,"has-parallax":s,"has-background-gradient":o,[d]:!u&&d});return(0,le.jsxs)("div",{className:h,style:f,children:[u&&(r||o)&&i!==0&&(0,le.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),wr===t&&u&&(0,le.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,le.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,le.jsx)(_e.InnerBlocks.Content,{})})]})},migrate:(0,X1.compose)(r5,nm)},mve={attributes:{...$p,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,contentAlign:r,customOverlayColor:o,dimRatio:n,focalPoint:i,hasParallax:l,overlayColor:s,title:c,url:u}=e,m=(0,_e.getColorClassName)("background-color",s),p=t===er?zs(u):{};m||(p.backgroundColor=o),i&&!l&&(p.backgroundPosition=`${i.x*100}% ${i.y*100}%`);let d=w(Wp(n),m,{"has-background-dim":n!==0,"has-parallax":l,[`has-${r}-content`]:r!=="center"});return(0,le.jsxs)("div",{className:d,style:p,children:[wr===t&&u&&(0,le.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!_e.RichText.isEmpty(c)&&(0,le.jsx)(_e.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:c})]})},migrate(e){let t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:r,contentAlign:o,...n}=t;return[n,[(0,e5.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,t5.__)("Write title\u2026")})]]}},pve={attributes:{...$p,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save({attributes:e}){let{url:t,title:r,hasParallax:o,dimRatio:n,align:i,contentAlign:l,overlayColor:s,customOverlayColor:c}=e,u=(0,_e.getColorClassName)("background-color",s),m=zs(t);u||(m.backgroundColor=c);let p=w("wp-block-cover-image",Wp(n),u,{"has-background-dim":n!==0,"has-parallax":o,[`has-${l}-content`]:l!=="center"},i?`align${i}`:null);return(0,le.jsx)("div",{className:p,style:m,children:!_e.RichText.isEmpty(r)&&(0,le.jsx)(_e.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:r})})},migrate(e){let t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:r,contentAlign:o,align:n,...i}=t;return[i,[(0,e5.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,t5.__)("Write title\u2026")})]]}},dve={attributes:{...$p,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save({attributes:e}){let{url:t,title:r,hasParallax:o,dimRatio:n,align:i}=e,l=zs(t),s=w("wp-block-cover-image",Wp(n),{"has-background-dim":n!==0,"has-parallax":o},i?`align${i}`:null);return(0,le.jsx)("section",{className:s,style:l,children:(0,le.jsx)(_e.RichText.Content,{tagName:"h2",value:r})})},migrate(e){let t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:r,contentAlign:o,align:n,...i}=t;return[i,[(0,e5.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,t5.__)("Write title\u2026")})]]}},rG=[eve,tve,rve,ove,ave,nve,ive,lve,sve,cve,uve,mve,pve,dve];var av=a(Y(),1),Wl=a(H(),1),Kp=a(A(),1),p5=a(pe(),1),wo=a(T(),1),MI=a(P(),1),lm=a(z(),1),WG=a(Br(),1),$G=a(yr(),1);var sG=a(H(),1),Gt=a(A(),1),cG=a(pe(),1),qo=a(T(),1),so=a(P(),1),kI=a(z(),1),uG=a(Y(),1);var Yf="full";var Qf=a(T(),1),aG=a(yr(),1),Ya=a(A(),1),nG=a(Br(),1),ui=a(P(),1),o5=a(H(),1),iG=a(pe(),1),a5=a(z(),1),ya=a(y(),1),oG=["image"];function lG({poster:e,onChange:t}){let r=(0,o5.useRef)(),[o,n]=(0,o5.useState)(!1),i=(0,iG.useInstanceId)(lG,"block-library-poster-image-description"),{getSettings:l}=(0,a5.useSelect)(Qf.store),{createErrorNotice:s}=(0,a5.useDispatch)(aG.store),c=m=>{l().mediaUpload({allowedTypes:oG,filesList:m,onFileChange:([p])=>{if((0,nG.isBlobURL)(p?.url)){n(!0);return}p&&t(p),n(!1)},onError:p=>{s(p,{id:"poster-image-upload-notice",type:"snackbar"}),n(!1)},multiple:!1})},u=()=>!e&&o?(0,ya.jsx)(Ya.Spinner,{}):e?(0,ui.__)("Replace"):(0,ui.__)("Set poster image");return(0,ya.jsx)(Qf.MediaUploadCheck,{children:(0,ya.jsxs)(Ya.__experimentalToolsPanelItem,{label:(0,ui.__)("Poster image"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>t(void 0),children:[(0,ya.jsx)(Ya.BaseControl.VisualLabel,{children:(0,ui.__)("Poster image")}),(0,ya.jsx)(Qf.MediaUpload,{title:(0,ui.__)("Select poster image"),onSelect:t,allowedTypes:oG,render:({open:m})=>(0,ya.jsxs)("div",{className:"block-library-poster-image__container",children:[e&&(0,ya.jsxs)(Ya.Button,{__next40pxDefaultSize:!0,onClick:m,"aria-haspopup":"dialog","aria-label":(0,ui.__)("Edit or replace the poster image."),className:"block-library-poster-image__preview",disabled:o,accessibleWhenDisabled:!0,children:[(0,ya.jsx)("img",{src:e,alt:(0,ui.__)("Poster image preview"),className:"block-library-poster-image__preview-image"}),o&&(0,ya.jsx)(Ya.Spinner,{})]}),(0,ya.jsxs)(Ya.__experimentalHStack,{className:w("block-library-poster-image__actions",{"block-library-poster-image__actions-select":!e}),children:[(0,ya.jsx)(Ya.Button,{__next40pxDefaultSize:!0,onClick:m,ref:r,className:"block-library-poster-image__action","aria-describedby":i,"aria-haspopup":"dialog",variant:e?void 0:"secondary",disabled:o,accessibleWhenDisabled:!0,children:u()}),(0,ya.jsx)("p",{id:i,hidden:!0,children:e?(0,ui.sprintf)((0,ui.__)("The current poster image url is %s."),e):(0,ui.__)("There is no poster image currently selected.")}),!!e&&(0,ya.jsx)(Ya.Button,{__next40pxDefaultSize:!0,onClick:()=>{t(void 0),r.current.focus()},className:"block-library-poster-image__action",disabled:o,accessibleWhenDisabled:!0,children:(0,ui.__)("Remove")})]}),(0,ya.jsx)(Ya.DropZone,{onFilesDrop:c})]})})]})})}var n5=lG;var ft=a(y(),1),{cleanEmptyObject:fve,ResolutionTool:hve,HTMLElementControl:gve}=Z(qo.privateApis);function vve({onChange:e,onUnitChange:t,unit:r="px",value:o=""}){let i=`block-cover-height-input-${(0,cG.useInstanceId)(Gt.__experimentalUnitControl)}`,l=r==="px",[s]=(0,qo.useSettings)("spacing.units"),c=(0,Gt.__experimentalUseCustomUnits)({availableUnits:s||["px","em","rem","vw","vh"],defaultValues:{px:430,"%":20,em:20,rem:20,vw:20,vh:50}}),u=d=>{let f=d!==""?parseFloat(d):void 0;isNaN(f)&&f!==void 0||e(f)},m=(0,sG.useMemo)(()=>{let[d]=(0,Gt.__experimentalParseQuantityAndUnitFromRawValue)(o);return[d,r].join("")},[r,o]),p=l?eG:0;return(0,ft.jsx)(Gt.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,so.__)("Minimum height"),id:i,isResetValueOnUnitChange:!0,min:p,onChange:u,onUnitChange:t,units:c,value:m})}function mG({attributes:e,setAttributes:t,clientId:r,setOverlayColor:o,coverRef:n,currentSettings:i,updateDimRatio:l,featuredImage:s}){let{useFeaturedImage:c,id:u,dimRatio:m,focalPoint:p,hasParallax:d,isRepeated:f,minHeight:h,minHeightUnit:g,alt:b,tagName:v,poster:x}=e,{isVideoBackground:_,isImageBackground:k,mediaElement:S,url:C,overlayColor:E}=i,I=e.sizeSlug||Yf,{gradientValue:D,setGradient:M}=(0,qo.__experimentalUseGradient)(),{getSettings:F}=(0,kI.useSelect)(qo.store),R=F()?.imageSizes,V=(0,kI.useSelect)(J=>u&&k?J(uG.store).getEntityRecord("postType","attachment",u,{context:"view"}):null,[u,k]),B=c?s:V;function j(J){let ne=B?.media_details?.sizes?.[J]?.source_url;if(!ne)return null;t({url:ne,sizeSlug:J})}let U=R?.filter(({slug:J})=>B?.media_details?.sizes?.[J]?.source_url)?.map(({name:J,slug:ne})=>({value:ne,label:J})),O=()=>{t({hasParallax:!d,...d?{}:{focalPoint:void 0}})},K=()=>{t({isRepeated:!f})},W=_||k,ee=J=>{let[ne,ie]=S.current?[S.current.style,"objectPosition"]:[n.current.style,"backgroundPosition"];ne[ie]=$o(J)},oe=(0,qo.__experimentalUseMultipleOriginColorsAndGradients)(),X=$();return(0,ft.jsxs)(ft.Fragment,{children:[(0,ft.jsx)(qo.InspectorControls,{children:(!!C||c)&&(0,ft.jsxs)(Gt.__experimentalToolsPanel,{label:(0,so.__)("Settings"),resetAll:()=>{t({hasParallax:!1,focalPoint:void 0,isRepeated:!1,alt:"",poster:void 0}),j(Yf)},dropdownMenuProps:X,children:[k&&(0,ft.jsxs)(ft.Fragment,{children:[(0,ft.jsx)(Gt.__experimentalToolsPanelItem,{label:(0,so.__)("Fixed background"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>t({hasParallax:!1,focalPoint:void 0}),children:(0,ft.jsx)(Gt.ToggleControl,{label:(0,so.__)("Fixed background"),checked:!!d,onChange:O})}),(0,ft.jsx)(Gt.__experimentalToolsPanelItem,{label:(0,so.__)("Repeated background"),isShownByDefault:!0,hasValue:()=>f,onDeselect:()=>t({isRepeated:!1}),children:(0,ft.jsx)(Gt.ToggleControl,{label:(0,so.__)("Repeated background"),checked:f,onChange:K})})]}),W&&(0,ft.jsx)(Gt.__experimentalToolsPanelItem,{label:(0,so.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!p,onDeselect:()=>t({focalPoint:void 0}),children:(0,ft.jsx)(Gt.FocalPointPicker,{label:(0,so.__)("Focal point"),url:C,value:p,onDragStart:ee,onDrag:ee,onChange:J=>t({focalPoint:J})})}),_&&(0,ft.jsx)(n5,{poster:x,onChange:J=>t({poster:J?.url})}),!c&&C&&!_&&(0,ft.jsx)(Gt.__experimentalToolsPanelItem,{label:(0,so.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!b,onDeselect:()=>t({alt:""}),children:(0,ft.jsx)(Gt.TextareaControl,{label:(0,so.__)("Alternative text"),value:b,onChange:J=>t({alt:J}),help:(0,ft.jsxs)(ft.Fragment,{children:[(0,ft.jsx)(Gt.ExternalLink,{href:(0,so.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,so.__)("Describe the purpose of the image.")}),(0,ft.jsx)("br",{}),(0,so.__)("Leave empty if decorative.")]})})}),!!U?.length&&(0,ft.jsx)(hve,{value:I,onChange:j,options:U,defaultValue:Yf})]})}),oe.hasColorsOrGradients&&(0,ft.jsxs)(qo.InspectorControls,{group:"color",children:[(0,ft.jsx)(qo.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:E.color,gradientValue:D,label:(0,so.__)("Overlay"),onColorChange:o,onGradientChange:M,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:r,...oe}),(0,ft.jsx)(Gt.__experimentalToolsPanelItem,{hasValue:()=>m===void 0?!1:m!==(C?50:100),label:(0,so.__)("Overlay opacity"),onDeselect:()=>l(C?50:100),resetAllFilter:()=>({dimRatio:C?50:100}),isShownByDefault:!0,panelId:r,children:(0,ft.jsx)(Gt.RangeControl,{label:(0,so.__)("Overlay opacity"),value:m,onChange:J=>l(J),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})})]}),(0,ft.jsx)(qo.InspectorControls,{group:"dimensions",children:(0,ft.jsx)(Gt.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!h,label:(0,so.__)("Minimum height"),onDeselect:()=>t({minHeight:void 0,minHeightUnit:void 0}),resetAllFilter:()=>({minHeight:void 0,minHeightUnit:void 0}),isShownByDefault:!0,panelId:r,children:(0,ft.jsx)(vve,{value:e?.style?.dimensions?.aspectRatio?"":h,unit:g,onChange:J=>t({minHeight:J,style:fve({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}),onUnitChange:J=>t({minHeightUnit:J})})})}),(0,ft.jsx)(qo.InspectorControls,{group:"advanced",children:(0,ft.jsx)(gve,{tagName:v,onChange:J=>t({tagName:J}),clientId:r,options:[{label:(0,so.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}]})})]})}var i5=a(H(),1),Gl=a(T(),1),ev=a(P(),1),gG=a(A(),1);var wI=a(H(),1),im=a(A(),1),qp=a(P(),1);var pG=a(G(),1);var bve="core/embed",yve=["youtube","vimeo","videopress","animoto","tiktok","wordpress-tv"];function dG(e){return e?_ve(e)!==null:!1}function _ve(e){let t=(0,pG.getBlockVariations)(bve);if(!t)return null;let r=t.find(({patterns:o})=>pE(e,o));return!r||!yve.includes(r.name)?null:r}function fG(e){let t=e?.match(/src=["']([^"']+)["']/);if(!t)return null;let r=t[1],o=kve(r);return e.replace(r,o)}function xve(e){if(!e)return null;let t=e.toLowerCase();return t.includes("youtube.com")||t.includes("youtu.be")?"youtube":t.includes("vimeo.com")?"vimeo":t.includes("videopress.com")?"videopress":t.includes("animoto.com")?"animoto":t.includes("tiktok.com")?"tiktok":t.includes("wordpress.tv")?"wordpress-tv":null}function kve(e){if(!e)return e;try{let t=new URL(e);switch(xve(e)){case"youtube":t.searchParams.set("autoplay","1"),t.searchParams.set("mute","1"),t.searchParams.set("loop","1"),t.searchParams.set("controls","0"),t.searchParams.set("showinfo","0"),t.searchParams.set("modestbranding","1"),t.searchParams.set("playsinline","1"),t.searchParams.set("rel","0");let o=t.pathname.split("/").pop();o&&t.searchParams.set("playlist",o);break;case"vimeo":t.searchParams.set("autoplay","1"),t.searchParams.set("muted","1"),t.searchParams.set("loop","1"),t.searchParams.set("background","1"),t.searchParams.set("controls","0");break;case"videopress":case"wordpress-tv":t.searchParams.set("autoplay","1"),t.searchParams.set("loop","1"),t.searchParams.set("muted","1");break;default:t.searchParams.set("autoplay","1"),t.searchParams.set("muted","1"),t.searchParams.set("loop","1");break}return t.toString()}catch{return e}}var Xf=a(y(),1);function hG({onSubmit:e,onClose:t,initialUrl:r=""}){let[o,n]=(0,wI.useState)(r),[i,l]=(0,wI.useState)("");return(0,Xf.jsx)(im.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{if(!o){l((0,qp.__)("Please enter a URL."));return}if(!dG(o)){l((0,qp.__)("This URL is not supported. Please enter a valid video link from a supported provider."));return}e(o),t()},onCancel:t,confirmButtonText:(0,qp.__)("Add video"),size:"medium",children:(0,Xf.jsxs)(im.__experimentalVStack,{spacing:4,children:[i&&(0,Xf.jsx)(im.Notice,{status:"error",isDismissible:!1,children:i}),(0,Xf.jsx)(im.TextControl,{type:"url",__next40pxDefaultSize:!0,label:(0,qp.__)("Video URL"),value:o,onChange:c=>{n(c),l("")},placeholder:(0,qp.__)("Enter YouTube, Vimeo, or other video URL"),help:(0,qp.__)("Add a background video to the cover block that will autoplay in a loop.")})]})})}var el=a(y(),1),{cleanEmptyObject:wve}=Z(Gl.privateApis);function vG({attributes:e,setAttributes:t,onSelectMedia:r,currentSettings:o,toggleUseFeaturedImage:n,onClearMedia:i,onSelectEmbedUrl:l,blockEditingMode:s}){let{contentPosition:c,id:u,useFeaturedImage:m,minHeight:p,minHeightUnit:d,backgroundType:f}=e,{hasInnerBlocks:h,url:g}=o,[b,v]=(0,i5.useState)(p),[x,_]=(0,i5.useState)(d),[k,S]=(0,i5.useState)(!1),C=d==="vh"&&p===100&&!e?.style?.dimensions?.aspectRatio,E=s==="contentOnly",I=()=>C?t(x==="vh"&&b===100?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:b,minHeightUnit:x}):(v(p),_(d),t({minHeight:100,minHeightUnit:"vh",style:wve({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}));return(0,el.jsxs)(el.Fragment,{children:[!E&&(0,el.jsxs)(Gl.BlockControls,{group:"block",children:[(0,el.jsx)(Gl.__experimentalBlockAlignmentMatrixControl,{label:(0,ev.__)("Change content position"),value:c,onChange:D=>t({contentPosition:D}),isDisabled:!h}),(0,el.jsx)(Gl.__experimentalBlockFullHeightAligmentControl,{isActive:C,onToggle:I,isDisabled:!h})]}),(0,el.jsx)(Gl.BlockControls,{group:"other",children:(0,el.jsx)(Gl.MediaReplaceFlow,{mediaId:u,mediaURL:g,allowedTypes:Jk,onSelect:r,onToggleFeaturedImage:n,useFeaturedImage:m,name:g?(0,ev.__)("Replace"):(0,ev.__)("Add media"),onReset:i,variant:"toolbar",children:({onClose:D})=>(0,el.jsx)(gG.MenuItem,{icon:ti,onClick:()=>{S(!0),D()},children:(0,ev.__)("Embed video from URL")})})}),k&&(0,el.jsx)(hG,{onSubmit:D=>{l(D)},onClose:()=>S(!1),initialUrl:f===Wc?g:""})]})}var l5=a(T(),1),bG=a(P(),1);var yG=a(Br(),1);var CI=a(y(),1);function SI({disableMediaButtons:e=!1,children:t,onSelectMedia:r,onError:o,style:n,toggleUseFeaturedImage:i}){let l=s=>{s.length===1&&r({url:(0,yG.createBlobURL)(s[0])})};return(0,CI.jsx)(l5.MediaPlaceholder,{icon:(0,CI.jsx)(l5.BlockIcon,{icon:vp}),labels:{title:(0,bG.__)("Cover")},onSelect:r,allowedTypes:Jk,disableMediaButtons:e,onToggleFeaturedImage:i,onFilesPreUpload:l,onError:o,style:n,children:t})}var _G=a(H(),1),xG=a(T(),1);var kG=a(y(),1),Cve={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:Sve}=Z(xG.privateApis);function TI({className:e,height:t,minHeight:r,onResize:o,onResizeStart:n,onResizeStop:i,showHandle:l,size:s,width:c,...u}){let[m,p]=(0,_G.useState)(!1),d={className:w(e,{"is-resizing":m}),enable:Cve,onResizeStart:(f,h,g)=>{n(g.clientHeight),o(g.clientHeight)},onResize:(f,h,g)=>{o(g.clientHeight),m||p(!0)},onResizeStop:(f,h,g)=>{i(g.clientHeight),p(!1)},showHandle:l,size:s,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:m}};return(0,kG.jsx)(Sve,{className:"block-library-cover__resizable-box-popover",resizableBoxProps:d,...u})}var Tve={grad:.9,turn:360,rad:360/(2*Math.PI)},$c=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},ko=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},tl=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e>t?e:t},IG=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},wG=function(e){return{r:tl(e.r,0,255),g:tl(e.g,0,255),b:tl(e.b,0,255),a:tl(e.a)}},PI=function(e){return{r:ko(e.r),g:ko(e.g),b:ko(e.b),a:ko(e.a,3)}},Pve=/^#([0-9a-f]{3,8})$/i,s5=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},NG=function(e){var t=e.r,r=e.g,o=e.b,n=e.a,i=Math.max(t,r,o),l=i-Math.min(t,r,o),s=l?i===t?(r-o)/l:i===r?2+(o-t)/l:4+(t-r)/l:0;return{h:60*(s<0?s+6:s),s:i?l/i*100:0,v:i/255*100,a:n}},DG=function(e){var t=e.h,r=e.s,o=e.v,n=e.a;t=t/360*6,r/=100,o/=100;var i=Math.floor(t),l=o*(1-r),s=o*(1-(t-i)*r),c=o*(1-(1-t+i)*r),u=i%6;return{r:255*[o,s,l,l,c,o][u],g:255*[c,o,o,s,l,l][u],b:255*[l,l,c,o,o,s][u],a:n}},CG=function(e){return{h:IG(e.h),s:tl(e.s,0,100),l:tl(e.l,0,100),a:tl(e.a)}},SG=function(e){return{h:ko(e.h),s:ko(e.s),l:ko(e.l),a:ko(e.a,3)}},TG=function(e){return DG((r=(t=e).s,{h:t.h,s:(r*=((o=t.l)<50?o:100-o)/100)>0?2*r/(o+r)*100:0,v:o+r,a:t.a}));var t,r,o},tv=function(e){return{h:(t=NG(e)).h,s:(n=(200-(r=t.s))*(o=t.v)/100)>0&&n<200?r*o/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,r,o,n},Bve=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Eve=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ive=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Nve=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,II={string:[[function(e){var t=Pve.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?ko(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?ko(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Ive.exec(e)||Nve.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:wG({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=Bve.exec(e)||Eve.exec(e);if(!t)return null;var r,o,n=CG({h:(r=t[1],o=t[2],o===void 0&&(o="deg"),Number(r)*(Tve[o]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return TG(n)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,o=e.b,n=e.a,i=n===void 0?1:n;return $c(t)&&$c(r)&&$c(o)?wG({r:Number(t),g:Number(r),b:Number(o),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,r=e.s,o=e.l,n=e.a,i=n===void 0?1:n;if(!$c(t)||!$c(r)||!$c(o))return null;var l=CG({h:Number(t),s:Number(r),l:Number(o),a:Number(i)});return TG(l)},"hsl"],[function(e){var t=e.h,r=e.s,o=e.v,n=e.a,i=n===void 0?1:n;if(!$c(t)||!$c(r)||!$c(o))return null;var l=(function(s){return{h:IG(s.h),s:tl(s.s,0,100),v:tl(s.v,0,100),a:tl(s.a)}})({h:Number(t),s:Number(r),v:Number(o),a:Number(i)});return DG(l)},"hsv"]]},PG=function(e,t){for(var r=0;r<t.length;r++){var o=t[r][0](e);if(o)return[o,t[r][1]]}return[null,void 0]},Dve=function(e){return typeof e=="string"?PG(e.trim(),II.string):typeof e=="object"&&e!==null?PG(e,II.object):[null,void 0]};var BI=function(e,t){var r=tv(e);return{h:r.h,s:tl(r.s+100*t,0,100),l:r.l,a:r.a}},EI=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},BG=function(e,t){var r=tv(e);return{h:r.h,s:r.s,l:tl(r.l+100*t,0,100),a:r.a}},NI=(function(){function e(t){this.parsed=Dve(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return this.parsed!==null},e.prototype.brightness=function(){return ko(EI(this.rgba),2)},e.prototype.isDark=function(){return EI(this.rgba)<.5},e.prototype.isLight=function(){return EI(this.rgba)>=.5},e.prototype.toHex=function(){return t=PI(this.rgba),r=t.r,o=t.g,n=t.b,l=(i=t.a)<1?s5(ko(255*i)):"","#"+s5(r)+s5(o)+s5(n)+l;var t,r,o,n,i,l},e.prototype.toRgb=function(){return PI(this.rgba)},e.prototype.toRgbString=function(){return t=PI(this.rgba),r=t.r,o=t.g,n=t.b,(i=t.a)<1?"rgba("+r+", "+o+", "+n+", "+i+")":"rgb("+r+", "+o+", "+n+")";var t,r,o,n,i},e.prototype.toHsl=function(){return SG(tv(this.rgba))},e.prototype.toHslString=function(){return t=SG(tv(this.rgba)),r=t.h,o=t.s,n=t.l,(i=t.a)<1?"hsla("+r+", "+o+"%, "+n+"%, "+i+")":"hsl("+r+", "+o+"%, "+n+"%)";var t,r,o,n,i},e.prototype.toHsv=function(){return t=NG(this.rgba),{h:ko(t.h),s:ko(t.s),v:ko(t.v),a:ko(t.a,3)};var t},e.prototype.invert=function(){return co({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),co(BI(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),co(BI(this.rgba,-t))},e.prototype.grayscale=function(){return co(BI(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),co(BG(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),co(BG(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"?co({r:(r=this.rgba).r,g:r.g,b:r.b,a:t}):ko(this.rgba.a,3);var r},e.prototype.hue=function(t){var r=tv(this.rgba);return typeof t=="number"?co({h:t,s:r.s,l:r.l,a:r.a}):ko(r.h)},e.prototype.isEqual=function(t){return this.toHex()===co(t).toHex()},e})(),co=function(e){return e instanceof NI?e:new NI(e)},EG=[],LG=function(e){e.forEach(function(t){EG.indexOf(t)<0&&(t(NI,II),EG.push(t))})};function MG(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"},o={};for(var n in r)o[r[n]]=n;var i={};e.prototype.toName=function(l){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var s,c,u=o[this.toHex()];if(u)return u;if(l?.closest){var m=this.toRgb(),p=1/0,d="black";if(!i.length)for(var f in r)i[f]=new e(r[f]).toRgb();for(var h in r){var g=(s=m,c=i[h],Math.pow(s.r-c.r,2)+Math.pow(s.g-c.g,2)+Math.pow(s.b-c.b,2));g<p&&(p=g,d=h)}return d}},t.string.push([function(l){var s=l.toLowerCase(),c=s==="transparent"?"#0000":r[s];return c?new e(c).toRgb():null},"name"])}function Lve(e){var t=e.toString(16);return t.length===1?"0"+t:t}function AG(e){return"#"+e.map(Lve).join("")}function Mve(e){var t=(e[0]*299+e[1]*587+e[2]*114)/1e3;return t<128}function Ave(e){return e?Rve(e)?e:[e]:[]}function Rve(e){return Array.isArray(e[0])}function LI(e,t,r){for(var o=0;o<r.length;o++)if(zve(e,t,r[o]))return!0;return!1}function zve(e,t,r){switch(r.length){case 3:if(Vve(e,t,r))return!0;break;case 4:if(Fve(e,t,r))return!0;break;case 5:if(Ove(e,t,r))return!0;break;default:return!1}}function Vve(e,t,r){return e[t+3]!==255||e[t]===r[0]&&e[t+1]===r[1]&&e[t+2]===r[2]}function Fve(e,t,r){return e[t+3]&&r[3]?e[t]===r[0]&&e[t+1]===r[1]&&e[t+2]===r[2]&&e[t+3]===r[3]:e[t+3]===r[3]}function c5(e,t,r){return e>=t-r&&e<=t+r}function Ove(e,t,r){var o=r[0],n=r[1],i=r[2],l=r[3],s=r[4],c=e[t+3],u=c5(c,l,s);return l?!!(!c&&u||c5(e[t],o,s)&&c5(e[t+1],n,s)&&c5(e[t+2],i,s)&&u):u}function Hve(e,t,r){for(var o={},n=24,i=r.ignoredColor,l=r.step,s=[0,0,0,0,0],c=0;c<t;c+=l){var u=e[c],m=e[c+1],p=e[c+2],d=e[c+3];if(!(i&&LI(e,c,i))){var f=Math.round(u/n)+","+Math.round(m/n)+","+Math.round(p/n);o[f]?o[f]=[o[f][0]+u*d,o[f][1]+m*d,o[f][2]+p*d,o[f][3]+d,o[f][4]+1]:o[f]=[u*d,m*d,p*d,d,1],s[4]<o[f][4]&&(s=o[f])}}var h=s[0],g=s[1],b=s[2],v=s[3],x=s[4];return v?[Math.round(h/v),Math.round(g/v),Math.round(b/v),Math.round(v/x)]:r.defaultColor}function jve(e,t,r){for(var o=0,n=0,i=0,l=0,s=0,c=r.ignoredColor,u=r.step,m=0;m<t;m+=u){var p=e[m+3],d=e[m]*p,f=e[m+1]*p,h=e[m+2]*p;c&&LI(e,m,c)||(o+=d,n+=f,i+=h,l+=p,s++)}return l?[Math.round(o/l),Math.round(n/l),Math.round(i/l),Math.round(l/s)]:r.defaultColor}function Uve(e,t,r){for(var o=0,n=0,i=0,l=0,s=0,c=r.ignoredColor,u=r.step,m=0;m<t;m+=u){var p=e[m],d=e[m+1],f=e[m+2],h=e[m+3];c&&LI(e,m,c)||(o+=p*p*h,n+=d*d*h,i+=f*f*h,l+=h,s++)}return l?[Math.round(Math.sqrt(o/l)),Math.round(Math.sqrt(n/l)),Math.round(Math.sqrt(i/l)),Math.round(l/s)]:r.defaultColor}function RG(e){return ov(e,"defaultColor",[0,0,0,0])}function ov(e,t,r){return e[t]===void 0?r:e[t]}var zG=10,DI=100;function Gve(e){return e.search(/\.svg(\?|$)/i)!==-1}function Wve(e){if(FG(e)){var t=e.naturalWidth,r=e.naturalHeight;return!e.naturalWidth&&Gve(e.src)&&(t=r=DI),{width:t,height:r}}return qve(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function VG(e){return Zve(e)?"canvas":$ve(e)?"offscreencanvas":Kve(e)?"imagebitmap":e.src}function FG(e){return typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement}function $ve(e){return typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas}function qve(e){return typeof HTMLVideoElement<"u"&&e instanceof HTMLVideoElement}function Zve(e){return typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement}function Kve(e){return typeof ImageBitmap<"u"&&e instanceof ImageBitmap}function Yve(e,t){var r=ov(t,"left",0),o=ov(t,"top",0),n=ov(t,"width",e.width),i=ov(t,"height",e.height),l=n,s=i;if(t.mode==="precision")return{srcLeft:r,srcTop:o,srcWidth:n,srcHeight:i,destWidth:l,destHeight:s};var c;return n>i?(c=n/i,l=DI,s=Math.round(l/c)):(c=i/n,s=DI,l=Math.round(s/c)),(l>n||s>i||l<zG||s<zG)&&(l=n,s=i),{srcLeft:r,srcTop:o,srcWidth:n,srcHeight:i,destWidth:l,destHeight:s}}var Qve=typeof window>"u";function Xve(){return Qve?new OffscreenCanvas(1,1):document.createElement("canvas")}var OG="FastAverageColor: ";function u5(e,t,r){t||(console.error(OG+e),r&&console.error(r))}function rv(e){return Error(OG+e)}var HG=(function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(t,r){if(!t)return Promise.reject(rv("call .getColorAsync() without resource."));if(typeof t=="string"){if(typeof Image>"u")return Promise.reject(rv("resource as string is not supported in this environment"));var o=new Image;return o.crossOrigin=r&&r.crossOrigin||"",o.src=t,this.bindImageEvents(o,r)}else{if(FG(t)&&!t.complete)return this.bindImageEvents(t,r);var n=this.getColor(t,r);return n.error?Promise.reject(n.error):Promise.resolve(n)}},e.prototype.getColor=function(t,r){r=r||{};var o=RG(r);if(!t)return u5("call .getColor(null) without resource",r.silent),this.prepareResult(o);var n=Wve(t),i=Yve(n,r);if(!i.srcWidth||!i.srcHeight||!i.destWidth||!i.destHeight)return u5('incorrect sizes for resource "'.concat(VG(t),'"'),r.silent),this.prepareResult(o);if(this.canvas||(this.canvas=Xve()),!this.ctx&&(this.ctx=this.canvas.getContext&&this.canvas.getContext("2d"),!this.ctx))return u5("Canvas Context 2D is not supported in this browser",r.silent),this.prepareResult(o);this.canvas.width=i.destWidth,this.canvas.height=i.destHeight;var l=o;try{this.ctx.clearRect(0,0,i.destWidth,i.destHeight),this.ctx.drawImage(t,i.srcLeft,i.srcTop,i.srcWidth,i.srcHeight,0,0,i.destWidth,i.destHeight);var s=this.ctx.getImageData(0,0,i.destWidth,i.destHeight).data;l=this.getColorFromArray4(s,r)}catch(c){u5("security error (CORS) for resource ".concat(VG(t),`. |
| 9 |
Details: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image`),r.silent,c)}return this.prepareResult(l)},e.prototype.getColorFromArray4=function(t,r){r=r||{};var o=4,n=t.length,i=RG(r);if(n<o)return i;var l=n-n%o,s=(r.step||1)*o,c;switch(r.algorithm||"sqrt"){case"simple":c=jve;break;case"sqrt":c=Uve;break;case"dominant":c=Hve;break;default:throw rv("".concat(r.algorithm," is unknown algorithm"))}return c(t,l,{defaultColor:i,ignoredColor:Ave(r.ignoredColor),step:s})},e.prototype.prepareResult=function(t){var r=t.slice(0,3),o=[t[0],t[1],t[2],t[3]/255],n=Mve(t);return{value:[t[0],t[1],t[2],t[3]],rgb:"rgb("+r.join(",")+")",rgba:"rgba("+o.join(",")+")",hex:AG(r),hexa:AG(t),isDark:n,isLight:!n}},e.prototype.destroy=function(){this.canvas&&(this.canvas.width=1,this.canvas.height=1,this.canvas=null),this.ctx=null},e.prototype.bindImageEvents=function(t,r){var o=this;return new Promise(function(n,i){var l=function(){u();var m=o.getColor(t,r);m.error?i(m.error):n(m)},s=function(){u(),i(rv('Error loading image "'.concat(t.src,'".')))},c=function(){u(),i(rv('Image "'.concat(t.src,'" loading aborted')))},u=function(){t.removeEventListener("load",l),t.removeEventListener("error",s),t.removeEventListener("abort",c)};t.addEventListener("load",l),t.addEventListener("error",s),t.addEventListener("abort",c)})},e})();var UG=a(qc(),1);LG([MG]);var Jf="#FFF",GG="#000";function Jve(e,t){return{r:e.r*e.a+t.r*t.a*(1-e.a),g:e.g*e.a+t.g*t.a*(1-e.a),b:e.b*e.a+t.b*t.a*(1-e.a),a:e.a+t.a*(1-e.a)}}function m5(){return m5.fastAverageColor||(m5.fastAverageColor=new HG),m5.fastAverageColor}var eh=Nf(async e=>{if(!e)return Jf;let{r:t,g:r,b:o,a:n}=co(Jf).toRgb();try{let i=(0,UG.applyFilters)("media.crossOrigin",void 0,e);return(await m5().getColorAsync(e,{defaultColor:[t,r,o,n*255],silent:!0,crossOrigin:i})).hex}catch{return Jf}});function Zp(e,t,r){if(t===r||e===100)return co(t).isDark();let o=co(t).alpha(e/100).toRgb(),n=co(r).toRgb(),i=Jve(o,n);return co(i).isDark()}var Wt=a(y(),1);function ebe(e){return[["core/paragraph",{style:{typography:{textAlign:"center"}},placeholder:(0,MI.__)("Write title\u2026"),...e}]]}var tbe=(e,t)=>!e&&(0,WG.isBlobURL)(t);function rbe({attributes:e,clientId:t,isSelected:r,overlayColor:o,setAttributes:n,setOverlayColor:i,toggleSelection:l,context:{postId:s,postType:c}}){let{contentPosition:u,id:m,url:p,backgroundType:d,useFeaturedImage:f,dimRatio:h,focalPoint:g,hasParallax:b,isDark:v,isRepeated:x,minHeight:_,minHeightUnit:k,alt:S,allowedBlocks:C,templateLock:E,tagName:I="div",isUserOverlayColor:D,sizeSlug:M,poster:F}=e,[R]=(0,av.useEntityProp)("postType",c,"featured_media",s),{getSettings:V}=(0,lm.useSelect)(wo.store),{__unstableMarkNextChangeAsNotPersistent:B}=(0,lm.useDispatch)(wo.store),j=(0,Wl.useRef)({attributes:e,overlayColor:o});(0,Wl.useLayoutEffect)(()=>{j.current={attributes:e,overlayColor:o}});let{media:U}=(0,lm.useSelect)(Pe=>({media:R&&f?Pe(av.store).getEntityRecord("postType","attachment",R,{context:"view"}):void 0}),[R,f]),O=U?.media_details?.sizes?.[M]?.source_url??U?.source_url;(0,Wl.useEffect)(()=>{(async()=>{if(!f)return;let Pe=await eh(O),{attributes:Ct,overlayColor:yo}=j.current,_o=yo.color;Ct.isUserOverlayColor||(_o=Pe,B(),i(_o));let Oa=Zp(Ct.dimRatio,_o,Pe);B(),n({isDark:Oa,isUserOverlayColor:Ct.isUserOverlayColor||!1})})()},[O,B,n,i,f]);let K=f?O:p?.replaceAll("&","&"),W=f?er:d,{createErrorNotice:ee}=(0,lm.useDispatch)($G.store),{gradientClass:oe,gradientValue:X}=(0,wo.__experimentalUseGradient)(),J=async Pe=>{let Ct=tG(Pe),yo=[Pe?.type,Pe?.media_type].includes(er),_o=await eh(yo?Pe?.url:void 0),{attributes:Oa,overlayColor:Sl}=j.current,Kn=Sl.color;Oa.isUserOverlayColor||(Kn=_o,i(Kn),B());let Rc=Oa.url===void 0&&Oa.dimRatio===100?50:Oa.dimRatio,Ts=Zp(Rc,Kn,_o);if(W===er&&Ct?.id){let{imageDefaultSize:Tl}=V();M&&(Pe?.sizes?.[M]||Pe?.media_details?.sizes?.[M])?(Ct.sizeSlug=M,Ct.url=Pe?.sizes?.[M]?.url||Pe?.media_details?.sizes?.[M]?.source_url):Pe?.sizes?.[Tl]||Pe?.media_details?.sizes?.[Tl]?(Ct.sizeSlug=Tl,Ct.url=Pe?.sizes?.[Tl]?.url||Pe?.media_details?.sizes?.[Tl]?.source_url):Ct.sizeSlug=Yf}n({...Ct,focalPoint:void 0,useFeaturedImage:void 0,dimRatio:Rc,isDark:Ts,isUserOverlayColor:Oa.isUserOverlayColor||!1})},ne=()=>{let Pe=o.color;D||(Pe=GG,i(void 0),B());let Ct=Zp(h,Pe,Jf);n({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0,isDark:Ct})},ie=async Pe=>{let Ct=await eh(K),{attributes:yo}=j.current,_o=Zp(yo.dimRatio,Pe,Ct);i(Pe),B(),n({isUserOverlayColor:!0,isDark:_o})},ue=async Pe=>{let Ct=await eh(K),{overlayColor:yo}=j.current,_o=Zp(Pe,yo.color,Ct);n({dimRatio:Pe,isDark:_o})},fe=Pe=>{ee(Pe,{type:"snackbar"})},Oe=Pe=>{n({url:Pe,backgroundType:Wc,dimRatio:p===void 0&&h===100?50:h,id:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0})},{embedPreview:ke,isFetchingEmbed:ae}=(0,lm.useSelect)(Pe=>{if(W!==Wc||!K)return{embedPreview:void 0,isFetchingEmbed:!1};let{getEmbedPreview:Ct,isRequestingEmbedPreview:yo}=Pe(av.store);return{embedPreview:Ct(K),isFetchingEmbed:yo(K)}},[K,W]),Te=(0,Wl.useMemo)(()=>W!==Wc||!ke?.html?null:fG(ke.html),[ke,W]),Le=tbe(m,K),te=er===W,He=wr===W,st=Wc===W,ct=(0,wo.useBlockEditingMode)(),Me=ct==="default",[se,{height:_t,width:Ve}]=(0,p5.useResizeObserver)(),we=(0,Wl.useMemo)(()=>({height:k==="px"&&_?_:"auto",width:"auto"}),[_,k]),rt=_&&k?`${_}${k}`:_,Ue=!(b||x),et={minHeight:rt||void 0},fa=K?`url(${K})`:void 0,Q=$o(g),Ie={backgroundColor:o.color},tt={objectPosition:g&&Ue?$o(g):void 0},Ke=!!(K||o.color||X),Ne=(0,lm.useSelect)(Pe=>Pe(wo.store).getBlock(t).innerBlocks.length>0,[t]),xt=(0,Wl.useRef)(),jt=(0,wo.useBlockProps)({ref:xt}),[zo]=(0,wo.useSettings)("typography.fontSizes"),ut=zo?.length>0,vn=ebe({fontSize:ut?"large":void 0}),Oi=(0,wo.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:Ne?void 0:vn,templateInsertUpdatesSelection:!0,allowedBlocks:C,templateLock:E,dropZoneElement:xt.current}),qn=(0,Wl.useRef)(),np={isVideoBackground:He,isImageBackground:te,mediaElement:qn,hasInnerBlocks:Ne,url:K,isImgElement:Ue,overlayColor:o},Mc=async()=>{let Pe=!f,Ct=Pe?await eh(O):Jf,{attributes:yo,overlayColor:_o}=j.current,Oa=yo.isUserOverlayColor?_o.color:Ct;yo.isUserOverlayColor||(i(Pe?Oa:void 0),B());let Sl=yo.dimRatio===100?50:yo.dimRatio,Kn=Zp(Sl,Oa,Ct);n({id:void 0,url:void 0,useFeaturedImage:Pe,dimRatio:Sl,backgroundType:f?er:void 0,isDark:Kn})},Iu=(0,Wt.jsx)(vG,{attributes:e,setAttributes:n,onSelectMedia:J,onSelectEmbedUrl:Oe,currentSettings:np,toggleUseFeaturedImage:Mc,onClearMedia:ne,blockEditingMode:ct}),Cl=(0,Wt.jsx)(mG,{attributes:e,setAttributes:n,clientId:t,setOverlayColor:ie,coverRef:xt,currentSettings:np,toggleUseFeaturedImage:Mc,updateDimRatio:ue,onClearMedia:ne,featuredImage:U}),Hi={className:"block-library-cover__resize-container",clientId:t,height:_t,minHeight:rt,onResizeStart:()=>{n({minHeightUnit:"px"}),l(!1)},onResize:Pe=>{n({minHeight:Pe})},onResizeStop:Pe=>{l(!0),n({minHeight:Pe})},showHandle:!e.style?.dimensions?.aspectRatio,size:we,width:Ve};if(!f&&!Ne&&!Ke)return(0,Wt.jsxs)(Wt.Fragment,{children:[Iu,Cl,Me&&r&&(0,Wt.jsx)(TI,{...Hi}),(0,Wt.jsxs)(I,{...jt,className:w("is-placeholder",jt.className),style:{...jt.style,minHeight:rt||void 0},children:[se,(0,Wt.jsx)(SI,{onSelectMedia:J,onError:fe,toggleUseFeaturedImage:Mc,children:(0,Wt.jsx)("div",{className:"wp-block-cover__placeholder-background-options",children:(0,Wt.jsx)(wo.ColorPalette,{disableCustomColors:!0,value:o.color,onChange:ie,clearable:!1,asButtons:!0,"aria-label":(0,MI.__)("Overlay color")})})})]})]});let Zn=w({"is-dark-theme":v,"is-light":!v,"is-transient":Le,"has-parallax":b,"is-repeated":x,"has-custom-content-position":!Ka(u)},Sn(u)),Ac=K||!f||f&&!K;return(0,Wt.jsxs)(Wt.Fragment,{children:[Iu,Cl,(0,Wt.jsxs)(I,{...jt,className:w(Zn,jt.className),style:{...et,...jt.style},"data-url":K,children:[se,!K&&f&&(0,Wt.jsx)(Kp.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),K&&te&&(Ue?(0,Wt.jsx)("img",{ref:qn,className:"wp-block-cover__image-background",alt:S,src:K,style:tt}):(0,Wt.jsx)("div",{ref:qn,role:S?"img":void 0,"aria-label":S||void 0,className:w(Zn,"wp-block-cover__image-background"),style:{backgroundImage:fa,backgroundPosition:Q}})),K&&He&&(0,Wt.jsx)("video",{ref:qn,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:K,poster:F,style:tt}),st&&Te&&(0,Wt.jsx)("div",{ref:qn,className:"wp-block-cover__video-background wp-block-cover__embed-background",style:tt,children:(0,Wt.jsx)(Kp.SandBox,{allowSameOrigin:!0,html:Te,title:"Background video",styles:["iframe{position:fixed;top:0;left:0;width:100%;height:100%;}"]})}),st&&!Te&&ae&&(0,Wt.jsx)(Kp.Spinner,{}),Ac&&(0,Wt.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",Ji(h),{[o.class]:o.class,"has-background-dim":h!==void 0,"wp-block-cover__gradient-background":K&&X&&h!==0,"has-background-gradient":X,[oe]:oe}),style:{backgroundImage:X,...Ie}}),Le&&(0,Wt.jsx)(Kp.Spinner,{}),(0,Wt.jsx)(SI,{disableMediaButtons:!0,onSelectMedia:J,onError:fe,toggleUseFeaturedImage:Mc}),(0,Wt.jsx)("div",{...Oi})]}),Me&&r&&(0,Wt.jsx)(TI,{...Hi})]})}var qG=(0,p5.compose)([(0,wo.withColors)({overlayColor:"background-color"})])(rbe);var d5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/cover",title:"Cover",category:"media",description:"Add an image or video with a text overlay.",textdomain:"default",attributes:{url:{type:"string",role:"content"},useFeaturedImage:{type:"boolean",default:!1},id:{type:"number"},alt:{type:"string",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},isUserOverlayColor:{type:"boolean"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},tagName:{type:"string",default:"div"},sizeSlug:{type:"string"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"}},usesContext:["postId","postType"],supports:{anchor:!0,align:!0,html:!1,shadow:!0,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{heading:!0,text:!0,background:!1,__experimentalSkipSerialization:["gradients"],enableContrastChecker:!1},dimensions:{aspectRatio:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1},interactivity:{clientNavigation:!0},filter:{duotone:!0},allowedBlocks:!0},selectors:{filter:{duotone:".wp-block-cover > .wp-block-cover__image-background, .wp-block-cover > .wp-block-cover__video-background"}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"};var sm=a(T(),1);var Vs=a(y(),1);function ZG({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:g,minHeight:b,minHeightUnit:v,tagName:x,sizeSlug:_,poster:k}=e,S=(0,sm.getColorClassName)("background-color",d),C=(0,sm.__experimentalGetGradientClass)(r),E=b&&v?`${b}${v}`:b,I=er===t,D=wr===t,M=Wc===t,F=!(u||p),R={minHeight:E||void 0},V={backgroundColor:S?void 0:i,background:n||void 0},B=s&&F?$o(s):void 0,j=f?`url(${f})`:void 0,U=$o(s),O=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Ka(o)},Sn(o)),K=w("wp-block-cover__image-background",g?`wp-image-${g}`:null,{[`size-${_}`]:_,"has-parallax":u,"is-repeated":p}),W=r||n;return(0,Vs.jsxs)(x,{...sm.useBlockProps.save({className:O,style:R}),children:[!c&&I&&f&&(F?(0,Vs.jsx)("img",{className:K,alt:h,src:f,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}):(0,Vs.jsx)("div",{role:h?"img":void 0,"aria-label":h||void 0,className:K,style:{backgroundPosition:U,backgroundImage:j}})),D&&f&&(0,Vs.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,poster:k,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}),M&&f&&(0,Vs.jsx)("figure",{className:w("wp-block-cover__video-background","wp-block-cover__embed-background","wp-block-embed"),children:(0,Vs.jsx)("div",{className:"wp-block-embed__wrapper",children:f})}),(0,Vs.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",S,Ji(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&W&&l!==0,"has-background-gradient":W,[C]:C}),style:V}),(0,Vs.jsx)("div",{...sm.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}var mi=a(G(),1),KG=a(T(),1);var{cleanEmptyObject:f5}=Z(KG.privateApis),abe={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:r,align:o,id:n,anchor:i,style:l})=>(0,mi.createBlock)("core/cover",{dimRatio:50,url:t,alt:r,align:o,id:n,anchor:i,style:{color:{duotone:l?.color?.duotone}}},[(0,mi.createBlock)("core/paragraph",{content:e,fontSize:"large",style:{typography:{textAlign:"center"}}})])},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:r,id:o,anchor:n})=>(0,mi.createBlock)("core/cover",{dimRatio:50,url:t,align:r,id:o,backgroundType:wr,anchor:n},[(0,mi.createBlock)("core/paragraph",{content:e,fontSize:"large",style:{typography:{textAlign:"center"}}})])},{type:"block",blocks:["core/group"],transform:(e,t)=>{let{align:r,anchor:o,backgroundColor:n,gradient:i,style:l}=e;if(t?.length===1&&t[0]?.name==="core/cover")return(0,mi.createBlock)("core/cover",t[0].attributes,t[0].innerBlocks);let s=n||i||l?.color?.background||l?.color?.gradient?void 0:50,c={align:r,anchor:o,dimRatio:s,overlayColor:n,customOverlayColor:l?.color?.background,gradient:i,customGradient:l?.color?.gradient},u={...e,backgroundColor:void 0,gradient:void 0,style:f5({...e?.style,color:l?.color?{...l?.color,background:void 0,gradient:void 0}:void 0})};return(0,mi.createBlock)("core/cover",c,[(0,mi.createBlock)("core/group",u,t)])}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:r,customOverlayColor:o,gradient:n,customGradient:i})=>t?e===er:!r&&!o&&!n&&!i,transform:({title:e,url:t,alt:r,align:o,id:n,anchor:i,style:l})=>(0,mi.createBlock)("core/image",{caption:e,url:t,alt:r,align:o,id:n,anchor:i,style:{color:{duotone:l?.color?.duotone}}})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:r,customOverlayColor:o,gradient:n,customGradient:i})=>t?e===wr:!r&&!o&&!n&&!i,transform:({title:e,url:t,align:r,id:o,anchor:n})=>(0,mi.createBlock)("core/video",{caption:e,src:t,id:o,align:r,anchor:n})},{type:"block",blocks:["core/group"],isMatch:({url:e,useFeaturedImage:t})=>!(e||t),transform:(e,t)=>{let r={backgroundColor:e?.overlayColor,gradient:e?.gradient,style:f5({...e?.style,color:e?.customOverlayColor||e?.customGradient||e?.style?.color?{background:e?.customOverlayColor,gradient:e?.customGradient,...e?.style?.color}:void 0})};if(t?.length===1&&t[0]?.name==="core/group"){let o=f5(t[0].attributes||{});return o?.backgroundColor||o?.gradient||o?.style?.color?.background||o?.style?.color?.gradient?(0,mi.createBlock)("core/group",o,t[0]?.innerBlocks):(0,mi.createBlock)("core/group",{...r,...o,style:f5({...o?.style,color:r?.style?.color||o?.style?.color?{...r?.style?.color,...o?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,mi.createBlock)("core/group",{...e,...r},t)}}]},YG=abe;var AI=a(P(),1);var nbe=[{name:"cover",title:(0,AI.__)("Cover"),description:(0,AI.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:vp}],QG=nbe;var{fieldsKey:ibe,formKey:lbe}=Z(XG.privateApis),{name:JG}=d5,h5={icon:vp,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg",style:{typography:{fontSize:48},color:{text:"white"}}},innerBlocks:[{name:"core/paragraph",attributes:{content:`<strong>${(0,RI.__)("Snow Patrol")}</strong>`,style:{typography:{textAlign:"center"}}}}]},transforms:YG,save:ZG,edit:qG,deprecated:rG,variations:QG};window.__experimentalContentOnlyInspectorFields&&(h5[ibe]=[{id:"background",label:(0,RI.__)("Background"),type:"media",Edit:{control:"media",allowedTypes:["image","video"],multiple:!1,useFeaturedImage:!0},getValue:({item:e})=>({id:e.id,url:e.url,alt:e.alt,mediaType:e.backgroundType,featuredImage:e.useFeaturedImage}),setValue:({value:e})=>({id:e.id,url:e.url,alt:e.alt,mediaType:e.backgroundType,useFeaturedImage:e.featuredImage})}],h5[lbe]={fields:["background"]});var sbe=()=>N({name:JG,metadata:d5,settings:h5});var VI={};q(VI,{init:()=>hbe,metadata:()=>g5,name:()=>iW,settings:()=>b5});var cm=a(P(),1),nW=a(G(),1);var g5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/details",title:"Details",category:"text",description:"Hide and show additional content.",keywords:["summary","toggle","disclosure"],textdomain:"default",attributes:{showContent:{type:"boolean",default:!1},summary:{type:"rich-text",source:"rich-text",selector:"summary",role:"content"},name:{type:"string",source:"attribute",attribute:"name",selector:".wp-block-details"},placeholder:{type:"string"}},supports:{__experimentalOnEnter:!0,align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{color:!0,width:!0,style:!0},html:!1,spacing:{margin:!0,padding:!0,blockGap:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowEditing:!1},interactivity:{clientNavigation:!0},allowedBlocks:!0},editorStyle:"wp-block-details-editor",style:"wp-block-details"};var $l=a(T(),1),Fs=a(A(),1),Zc=a(P(),1),eW=a(H(),1),tW=a(z(),1);var Tn=a(y(),1),{withIgnoreIMEEvents:ube}=Z(Fs.privateApis),mbe=[["core/paragraph",{placeholder:(0,Zc.__)("Type / to add a hidden block")}]];function pbe({attributes:e,setAttributes:t,clientId:r}){let{name:o,showContent:n,summary:i,allowedBlocks:l,placeholder:s}=e,c=(0,$l.useBlockProps)(),u=(0,$l.useInnerBlocksProps)(c,{template:mbe,__experimentalCaptureToolbars:!0,allowedBlocks:l}),[m,p]=(0,eW.useState)(n),d=$(),f=(0,tW.useSelect)(b=>b($l.store).hasSelectedInnerBlock(r,!0),[r]),h=b=>{b.key==="Enter"&&!b.shiftKey&&(p(v=>!v),b.preventDefault())},g=b=>{b.key===" "&&b.preventDefault()};return(0,Tn.jsxs)(Tn.Fragment,{children:[(0,Tn.jsx)($l.InspectorControls,{children:(0,Tn.jsx)(Fs.__experimentalToolsPanel,{label:(0,Zc.__)("Settings"),resetAll:()=>{t({showContent:!1})},dropdownMenuProps:d,children:(0,Tn.jsx)(Fs.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Zc.__)("Open by default"),hasValue:()=>n,onDeselect:()=>{t({showContent:!1})},children:(0,Tn.jsx)(Fs.ToggleControl,{label:(0,Zc.__)("Open by default"),checked:n,onChange:()=>t({showContent:!n})})})})}),(0,Tn.jsx)($l.InspectorControls,{group:"advanced",children:(0,Tn.jsx)(Fs.TextControl,{__next40pxDefaultSize:!0,label:(0,Zc.__)("Name attribute"),value:o||"",onChange:b=>t({name:b}),help:(0,Zc.__)("Enables multiple Details blocks with the same name attribute to be connected, with only one open at a time.")})}),(0,Tn.jsxs)("details",{...u,open:m||f,onToggle:b=>p(b.target.open),name:o||"",children:[(0,Tn.jsx)("summary",{onKeyDown:ube(h),onKeyUp:g,children:(0,Tn.jsx)($l.RichText,{identifier:"summary","aria-label":(0,Zc.__)("Write summary. Press Enter to expand or collapse the details."),placeholder:s||(0,Zc.__)("Write summary\u2026"),withoutInteractiveFormatting:!0,value:i,onChange:b=>t({summary:b})})}),u.children]})]})}var rW=pbe;var rh=a(T(),1),th=a(y(),1);function oW({attributes:e}){let{name:t,showContent:r}=e,o=e.summary?e.summary:"Details",n=rh.useBlockProps.save();return(0,th.jsxs)("details",{...n,name:t||void 0,open:r,children:[(0,th.jsx)("summary",{children:(0,th.jsx)(rh.RichText.Content,{value:o})}),(0,th.jsx)(rh.InnerBlocks.Content,{})]})}var v5=a(G(),1),aW={from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch({},e){return!(e.length===1&&e[0].name==="core/details")},__experimentalConvert(e){return(0,v5.createBlock)("core/details",{},e.map(t=>(0,v5.cloneBlock)(t)))}}]};var{fieldsKey:dbe,formKey:fbe}=Z(nW.privateApis),{name:iW}=g5,b5={icon:R9,example:{attributes:{summary:(0,cm.__)("La Mancha"),showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,cm.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}}]},__experimentalLabel(e,{context:t}){let{summary:r}=e,o=e?.metadata?.name,n=r?.trim().length>0;if(t==="list-view"&&(o||n))return o||r;if(t==="breadcrumb"&&o)return o;if(t==="accessibility")return n?(0,cm.sprintf)((0,cm.__)("Details. %s"),r):(0,cm.__)("Details. Empty.")},save:oW,edit:rW,transforms:aW};window.__experimentalContentOnlyInspectorFields&&(b5[dbe]=[{id:"summary",label:(0,cm.__)("Summary"),type:"text",Edit:"rich-text"}],b5[fbe]={fields:["summary"]});var hbe=()=>N({name:iW,metadata:g5,settings:b5});var GI={};q(GI,{init:()=>Tbe,metadata:()=>Ns,name:()=>jW,settings:()=>UW});var Qp=a(P(),1),ih=a(H(),1),nv=a(z(),1),w5=a(T(),1),jI=a(Y(),1),UI=a(L(),1);var Yp=a(P(),1),Os=a(A(),1),y5=a(T(),1);var rl=a(y(),1);function gbe(e){return e?(0,Yp.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,Yp.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var vbe=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:r,allowResponsive:o,toggleResponsive:n,switchBackToURLInput:i})=>{let l=$();return(0,rl.jsxs)(rl.Fragment,{children:[(0,rl.jsx)(y5.BlockControls,{children:(0,rl.jsx)(Os.ToolbarGroup,{children:t&&(0,rl.jsx)(Os.ToolbarButton,{className:"components-toolbar__control",label:(0,Yp.__)("Edit URL"),icon:wp,onClick:i})})}),r&&e&&(0,rl.jsx)(y5.InspectorControls,{children:(0,rl.jsx)(Os.__experimentalToolsPanel,{label:(0,Yp.__)("Media settings"),resetAll:()=>{n(!0)},dropdownMenuProps:l,children:(0,rl.jsx)(Os.__experimentalToolsPanelItem,{label:(0,Yp.__)("Media settings"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>{n(!o)},children:(0,rl.jsx)(Os.ToggleControl,{label:(0,Yp.__)("Resize for smaller devices"),checked:o,help:gbe,onChange:n})})})})]})},lW=vbe;var ye=a(A(),1),xe=a(y(),1),ql=(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,xe.jsx)(ye.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})}),_5=(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,xe.jsx)(ye.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})}),FI=(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,xe.jsx)(ye.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})}),oh=(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,xe.jsx)(ye.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})}),sW={foreground:"#000000",src:(0,xe.jsx)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.Path,{d:"M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z"})})},cW={foreground:"#ff0000",src:(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"})})},uW={foreground:"#3b5998",src:(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"})})},mW=(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.G,{children:(0,xe.jsx)(ye.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"})})}),pW={foreground:"#0073AA",src:(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.G,{children:(0,xe.jsx)(ye.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})})})},dW={foreground:"#1db954",src:(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"})})},fW=(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})}),hW={foreground:"#1ab7ea",src:(0,xe.jsx)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.G,{children:(0,xe.jsx)(ye.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})})})},gW=(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.Path,{d:"M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z"})}),vW={foreground:"#35465c",src:(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"})})},bW=(0,xe.jsxs)(ye.SVG,{viewBox:"0 0 24 24",children:[(0,xe.jsx)(ye.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),(0,xe.jsx)(ye.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),(0,xe.jsx)(ye.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})]}),yW=(0,xe.jsxs)(ye.SVG,{viewBox:"0 0 24 24",children:[(0,xe.jsx)(ye.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,xe.jsx)(ye.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),(0,xe.jsx)(ye.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,xe.jsx)(ye.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),(0,xe.jsx)(ye.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,xe.jsx)(ye.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})]}),_W=(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.Path,{d:"M11.903 16.568c-1.82 0-3.124-1.281-3.124-2.967a2.987 2.987 0 0 1 2.989-2.989c1.663 0 2.944 1.304 2.944 3.034 0 1.663-1.281 2.922-2.81 2.922ZM17.997 3l-3.308.73v5.107c-.809-1.034-2.045-1.37-3.505-1.37-1.529 0-2.9.561-4.023 1.662-1.259 1.214-1.933 2.764-1.933 4.495 0 1.888.72 3.506 2.113 4.742 1.056.944 2.314 1.415 3.775 1.415 1.438 0 2.517-.382 3.573-1.415v1.415h3.308V3Z",fill:"#333436"})}),xW=(0,xe.jsx)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,xe.jsx)(ye.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"})}),kW=(0,xe.jsx)(ye.SVG,{viewBox:"0 0 44 44",children:(0,xe.jsx)(ye.Path,{d:"M32.59521,22.001l4.31885-4.84473-6.34131-1.38379.646-6.459-5.94336,2.61035L22,6.31934l-3.27344,5.60351L12.78418,9.3125l.645,6.458L7.08643,17.15234,11.40479,21.999,7.08594,26.84375l6.34131,1.38379-.64551,6.458,5.94287-2.60938L22,37.68066l3.27344-5.60351,5.94287,2.61035-.64551-6.458,6.34277-1.38183Zm.44385,2.75244L30.772,23.97827l-1.59558-2.07391,1.97888.735Zm-8.82147,6.1579L22.75,33.424V30.88977l1.52228-2.22168ZM18.56226,13.48816,19.819,15.09534l-2.49219-.88642L15.94037,12.337Zm6.87719.00116,2.62043-1.15027-1.38654,1.86981L24.183,15.0946Zm3.59357,2.6029-1.22546,1.7381.07525-2.73486,1.44507-1.94867ZM22,29.33008l-2.16406-3.15686L22,23.23688l2.16406,2.93634Zm-4.25458-9.582-.10528-3.836,3.60986,1.284v3.73242Zm5.00458-2.552,3.60986-1.284-.10528,3.836L22.75,20.92853Zm-7.78174-1.10559-.29352-2.94263,1.44245,1.94739.07519,2.73321Zm2.30982,5.08319,3.50817,1.18164-2.16247,2.9342-3.678-1.08447Zm2.4486,7.49285L21.25,30.88977v2.53485L19.78052,30.91Zm3.48707-6.31121,3.50817-1.18164,2.33228,3.03137-3.678,1.08447Zm10.87219-4.28113-2.714,3.04529L28.16418,19.928l1.92176-2.72565ZM24.06036,12.81769l-2.06012,2.6322-2.059-2.63318L22,9.292ZM9.91455,18.07227l4.00079-.87195,1.921,2.72735-3.20794,1.19019Zm2.93024,4.565,1.9801-.73462L13.228,23.97827l-2.26838.77429Zm-1.55591,3.58819L13.701,25.4021l2.64935.78058-2.14447.67853Zm3.64868,1.977L18.19,27.17334l.08313,3.46332L14.52979,32.2793Zm10.7876,2.43549.08447-3.464,3.25165,1.03052.407,4.07684Zm4.06824-3.77478-2.14545-.68,2.65063-.781,2.41266.825Z"})}),wW={foreground:"#f43e37",src:(0,xe.jsxs)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,xe.jsx)(ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,xe.jsx)(ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2.67,12a9.33,9.33,0,0,1,18.66,0H19a7,7,0,1,0-7,7v2.33A9.33,9.33,0,0,1,2.67,12ZM12,17.6A5.6,5.6,0,1,1,17.6,12h-2A3.56,3.56,0,1,0,12,15.56Z",fill:"#fff"})]})},CW=(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.Path,{fill:"#0a7aff",d:"M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"})});var SW=a(A(),1),OI=a(y(),1),bbe=()=>(0,OI.jsx)("div",{className:"wp-block-embed is-loading",children:(0,OI.jsx)(SW.Spinner,{})}),TW=bbe;var Hs=a(P(),1),Bn=a(A(),1),PW=a(T(),1),Pn=a(y(),1),ybe=({icon:e,label:t,value:r,onSubmit:o,onChange:n,cannotEmbed:i,fallback:l,tryAgain:s})=>(0,Pn.jsxs)(Bn.Placeholder,{icon:(0,Pn.jsx)(PW.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,Hs.__)("Paste a link to the content you want to display on your site."),children:[(0,Pn.jsxs)("form",{onSubmit:o,children:[(0,Pn.jsx)(Bn.__experimentalInputControl,{__next40pxDefaultSize:!0,type:"url",value:r||"",className:"wp-block-embed__placeholder-input",label:t,hideLabelFromVision:!0,placeholder:(0,Hs.__)("Enter URL to embed here\u2026"),onChange:n}),(0,Pn.jsx)(Bn.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,Hs._x)("Embed","button label")})]}),(0,Pn.jsx)("div",{className:"wp-block-embed__learn-more",children:(0,Pn.jsx)(Bn.ExternalLink,{href:(0,Hs.__)("https://wordpress.org/documentation/article/embeds/"),children:(0,Hs.__)("Learn more about embeds")})}),i&&(0,Pn.jsxs)(Bn.__experimentalVStack,{spacing:3,className:"components-placeholder__error",children:[(0,Pn.jsx)("div",{className:"components-placeholder__instructions",children:(0,Hs.__)("Sorry, this content could not be embedded.")}),(0,Pn.jsxs)(Bn.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",children:[(0,Pn.jsx)(Bn.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:s,children:(0,Hs._x)("Try again","button label")})," ",(0,Pn.jsx)(Bn.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:l,children:(0,Hs._x)("Convert to link","button label")})]})]})]}),BW=ybe;var nh=a(P(),1),k5=a(A(),1),IW=a(T(),1),NW=a(H(),1),DW=a(ir(),1);var x5=a(pe(),1),ah=a(H(),1),HI=a(y(),1),_be={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function EW({html:e}){let t=(0,ah.useRef)(),r=(0,ah.useMemo)(()=>{let n=new window.DOMParser().parseFromString(e,"text/html").querySelector("iframe"),i={};return n&&Array.from(n.attributes).forEach(({name:l,value:s})=>{l!=="style"&&(i[_be[l]||l]=s)}),i},[e]);return(0,ah.useEffect)(()=>{let{ownerDocument:o}=t.current,{defaultView:n}=o;function i({data:{secret:l,message:s,value:c}={}}){s!=="height"||l!==r["data-secret"]||(t.current.height=c)}return n.addEventListener("message",i),()=>{n.removeEventListener("message",i)}},[]),(0,HI.jsx)("div",{className:"wp-block-embed__wrapper",children:(0,HI.jsx)("iframe",{ref:(0,x5.useMergeRefs)([t,(0,x5.useFocusableIframe)()]),title:r.title,...r})})}var En=a(y(),1);function LW({preview:e,previewable:t,url:r,type:o,isSelected:n,className:i,icon:l,label:s}){let[c,u]=(0,NW.useState)(!1);!n&&c&&u(!1);let m=()=>{u(!0)},{scripts:p}=e,d=o==="photo"?WF(e):e.html,f=(0,DW.getAuthority)(r),h=(0,nh.sprintf)((0,nh.__)("Embedded content from %s"),f),g=w(o,i,"wp-block-embed__wrapper");return(0,En.jsx)(En.Fragment,{children:t?o==="wp-embed"?(0,En.jsx)(EW,{html:d}):(0,En.jsxs)("div",{className:"wp-block-embed__wrapper",children:[(0,En.jsx)(k5.SandBox,{allowSameOrigin:!0,html:d,scripts:p,title:h,type:g,onFocus:m}),!c&&(0,En.jsx)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:m})]}):(0,En.jsxs)(k5.Placeholder,{icon:(0,En.jsx)(IW.BlockIcon,{icon:l,showColors:!0}),label:s,children:[(0,En.jsx)("p",{className:"components-placeholder__error",children:(0,En.jsx)("a",{href:r,children:r})}),(0,En.jsx)("p",{className:"components-placeholder__error",children:(0,nh.sprintf)((0,nh.__)("Embedded content from %s can't be previewed in the editor."),f)})]})})}var pi=a(y(),1),xbe=e=>{let{attributes:{providerNameSlug:t,previewable:r,responsive:o,url:n},attributes:i,isSelected:l,onReplace:s,setAttributes:c,insertBlocksAfter:u,onFocus:m}=e,p={title:(0,Qp._x)("Embed","block title"),icon:ql},{icon:d,title:f}=UF(t)||p,[h,g]=(0,ih.useState)(n),[b,v]=(0,ih.useState)(!1),{invalidateResolution:x}=(0,nv.useDispatch)(jI.store),{__unstableMarkNextChangeAsNotPersistent:_}=(0,nv.useDispatch)(w5.store),{preview:k,fetching:S,themeSupportsResponsive:C,cannotEmbed:E,hasResolved:I}=(0,nv.useSelect)(W=>{let{getEmbedPreview:ee,isPreviewEmbedFallback:oe,isRequestingEmbedPreview:X,getThemeSupports:J,hasFinishedResolution:ne}=W(jI.store);if(!n)return{fetching:!1,cannotEmbed:!1};let ie=ee(n),ue=oe(n),fe=ie?.html===!1&&ie?.type===void 0,Oe=ie?.data?.status===404,ke=!!ie&&!fe&&!Oe;return{preview:ke?ie:void 0,fetching:X(n),themeSupportsResponsive:J()["responsive-embeds"],cannotEmbed:!ke||ue,hasResolved:ne("getEmbedPreview",[n])}},[n]),D=()=>qF(i,k,f,o);function M(W){let{className:ee}=i,{html:oe}=k;c({allowResponsive:W,className:dE(oe,ee,o&&W)})}(0,ih.useEffect)(()=>{if(!E||!I||!n)return;let W=n.replace(/\/$/,"");W!==n&&(g(W),v(!1),_(),c({url:W}))},[n,E,I,c,_]),(0,ih.useEffect)(()=>{if(!k||b)return;let W=D();if(s){let oe=qu(e,W);if(oe){_(),c(oe.attributes);return}}Object.keys(W).some(oe=>W[oe]!==i[oe])&&(_(),c(W))},[k,b]);let F=(0,w5.useBlockProps)();if(S)return(0,pi.jsx)(UI.View,{...F,children:(0,pi.jsx)(TW,{})});let R=(0,Qp.sprintf)((0,Qp.__)("%s URL"),f);if(!k||E||b)return(0,pi.jsx)(UI.View,{...F,children:(0,pi.jsx)(BW,{icon:d,label:R,onFocus:m,onSubmit:W=>{W&&W.preventDefault();let ee=P1(h),oe=$u(i.className);g(ee),c({url:ee,...Lf(ee)?.attributes,className:oe}),v(!1)},value:h,cannotEmbed:E,onChange:W=>g(W),fallback:()=>$F(h,s),tryAgain:()=>{x("getEmbedPreview",[h])}})});let{caption:B,type:j,allowResponsive:U,className:O}=D(),K=w(O,e.className);return(0,pi.jsxs)(pi.Fragment,{children:[(0,pi.jsx)(lW,{showEditButton:k&&!E,themeSupportsResponsive:C,blockSupportsResponsive:o,allowResponsive:U,toggleResponsive:M,switchBackToURLInput:()=>v(!0)}),(0,pi.jsxs)("figure",{...F,className:w(F.className,K,{[`is-type-${j}`]:j,[`is-provider-${t}`]:t,[`wp-block-embed-${t}`]:t}),children:[(0,pi.jsx)(LW,{preview:k,previewable:r,className:K,url:h,type:j,caption:B,onCaptionChange:W=>c({caption:W}),isSelected:l,icon:d,label:R,insertBlocksAfter:u,attributes:i,setAttributes:c}),(0,pi.jsx)(ga,{attributes:i,setAttributes:c,isSelected:l,insertBlocksAfter:u,label:(0,Qp.__)("Embed caption text"),showToolbarButton:l})]})]})},MW=xbe;var Xp=a(T(),1),iv=a(y(),1);function AW({attributes:e}){let{url:t,caption:r,type:o,providerNameSlug:n}=e;if(!t)return null;let i=w("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${n}`]:n,[`wp-block-embed-${n}`]:n});return(0,iv.jsxs)("figure",{...Xp.useBlockProps.save({className:i}),children:[(0,iv.jsx)("div",{className:"wp-block-embed__wrapper",children:` |
| 10 |
${t} |
| 11 |
`}),!Xp.RichText.isEmpty(r)&&(0,iv.jsx)(Xp.RichText.Content,{className:(0,Xp.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var C5=a(G(),1),S5=a(ir(),1);var{name:RW}=Ns,kbe={from:[{type:"raw",isMatch:e=>{if(e.nodeName!=="P")return!1;let t=e.textContent.trim();return!(0,S5.isURL)(t)||!/^https:\/\//i.test(t)||t.match(/https:\/\//gi)?.length!==1?!1:!/\.(?!(html?|php)$)[a-z0-9]+$/i.test((0,S5.getFilename)(t)||"")},transform:e=>{let t=P1(e.textContent.trim());return(0,C5.createBlock)(RW,{url:t,...Lf(t)?.attributes})}},{type:"shortcode",tag:"embed",transform:(e,{shortcode:t})=>{let r=P1(t.content?.trim());return(0,C5.createBlock)(RW,{url:r,...Lf(r)?.attributes})}}],to:[{type:"block",blocks:["core/paragraph"],isMatch:({url:e})=>!!e,transform:({url:e,caption:t,className:r})=>{let o=`<a href="${e}">${e}</a>`;return t?.trim()&&(o+=`<br />${t}`),(0,C5.createBlock)("core/paragraph",{content:o,className:$u(r)})}}]},zW=kbe;var de=a(P(),1);function ht(e){return(0,de.sprintf)((0,de.__)("%s Embed"),e)}var VW=[{name:"twitter",title:ht("X"),icon:sW,keywords:["x","twitter","tweet",(0,de.__)("social")],description:(0,de.__)("Embed an X post."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:ht("YouTube"),icon:cW,keywords:[(0,de.__)("music"),(0,de.__)("video")],description:(0,de.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:ht("Facebook"),icon:uW,keywords:[(0,de.__)("social")],description:(0,de.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:ht("Instagram"),icon:mW,keywords:[(0,de.__)("image"),(0,de.__)("social")],description:(0,de.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:ht("WordPress"),icon:pW,keywords:[(0,de.__)("post"),(0,de.__)("blog")],description:(0,de.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:ht("SoundCloud"),icon:_5,keywords:[(0,de.__)("music"),(0,de.__)("audio")],description:(0,de.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:ht("Spotify"),icon:dW,keywords:[(0,de.__)("music"),(0,de.__)("audio")],description:(0,de.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:ht("Flickr"),icon:fW,keywords:[(0,de.__)("image")],description:(0,de.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:ht("Vimeo"),icon:hW,keywords:[(0,de.__)("video")],description:(0,de.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:ht("Animoto"),icon:yW,description:(0,de.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:ht("Cloudup"),icon:ql,description:(0,de.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:ht("CollegeHumor"),icon:oh,description:(0,de.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:ht("Crowdsignal"),icon:ql,keywords:["polldaddy",(0,de.__)("survey")],description:(0,de.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.crowdsignal\.net|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:ht("Dailymotion"),icon:_W,keywords:[(0,de.__)("video")],description:(0,de.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:ht("Imgur"),icon:FI,description:(0,de.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:ht("Issuu"),icon:ql,description:(0,de.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:ht("Kickstarter"),icon:ql,description:(0,de.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:ht("Mixcloud"),icon:_5,keywords:[(0,de.__)("music"),(0,de.__)("audio")],description:(0,de.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:ht("Pocket Casts"),icon:wW,keywords:[(0,de.__)("podcast"),(0,de.__)("audio")],description:(0,de.__)("Embed a podcast player from Pocket Casts."),patterns:[/^https:\/\/pca.st\/\w+/i],attributes:{providerNameSlug:"pocket-casts",responsive:!0}},{name:"reddit",title:ht("Reddit"),icon:gW,description:(0,de.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:ht("ReverbNation"),icon:_5,description:(0,de.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"scribd",title:ht("Scribd"),icon:ql,description:(0,de.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"smugmug",title:ht("SmugMug"),icon:FI,description:(0,de.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:ht("Speaker Deck"),icon:ql,description:(0,de.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:ht("TikTok"),icon:oh,keywords:[(0,de.__)("video")],description:(0,de.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:ht("TED"),icon:oh,description:(0,de.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:ht("Tumblr"),icon:vW,keywords:[(0,de.__)("social")],description:(0,de.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:ht("VideoPress"),icon:oh,keywords:[(0,de.__)("video")],description:(0,de.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:ht("WordPress.tv"),icon:oh,description:(0,de.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:ht("Amazon Kindle"),icon:bW,keywords:[(0,de.__)("ebook")],description:(0,de.__)("Embed Amazon Kindle content."),patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i],attributes:{providerNameSlug:"amazon-kindle"}},{name:"pinterest",title:ht("Pinterest"),icon:xW,keywords:[(0,de.__)("social"),(0,de.__)("bookmark")],description:(0,de.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:ht("Wolfram"),icon:kW,description:(0,de.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}},{name:"bluesky",title:ht("Bluesky"),icon:CW,description:(0,de.__)("Embed a Bluesky post."),patterns:[/^https?:\/\/bsky\.app\/profile\/.+\/post\/.+/i],attributes:{providerNameSlug:"bluesky"}}];VW.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.providerNameSlug===r.providerNameSlug)});var FW=VW;var Jp=a(T(),1),ed=a(y(),1),{attributes:OW}=Ns,wbe={attributes:OW,save({attributes:e}){let{url:t,caption:r,type:o,providerNameSlug:n}=e;if(!t)return null;let i=w("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${n}`]:n,[`wp-block-embed-${n}`]:n});return(0,ed.jsxs)("figure",{...Jp.useBlockProps.save({className:i}),children:[(0,ed.jsx)("div",{className:"wp-block-embed__wrapper",children:` |
| 12 |
${t} |
| 13 |
`}),!Jp.RichText.isEmpty(r)&&(0,ed.jsx)(Jp.RichText.Content,{tagName:"figcaption",value:r})]})}},Cbe={attributes:OW,save({attributes:{url:e,caption:t,type:r,providerNameSlug:o}}){if(!e)return null;let n=w("wp-block-embed",{[`is-type-${r}`]:r,[`is-provider-${o}`]:o});return(0,ed.jsxs)("figure",{className:n,children:[` |
| 14 |
${e} |
| 15 |
`,!Jp.RichText.isEmpty(t)&&(0,ed.jsx)(Jp.RichText.Content,{tagName:"figcaption",value:t})]})}},Sbe=[wbe,Cbe],HW=Sbe;var{name:jW}=Ns,UW={icon:ql,edit:MW,save:AW,transforms:zW,variations:FW,deprecated:HW},Tbe=()=>N({name:jW,metadata:Ns,settings:UW});var ZI={};q(ZI,{init:()=>zbe,metadata:()=>B5,name:()=>o$,settings:()=>N5});var ch=a(P(),1);var r$=a(G(),1);var uo=a(T(),1),Zl=a(P(),1),$t=a(y(),1),Pbe={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileId:r,fileName:o,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,m=uo.RichText.isEmpty(o)?(0,Zl.__)("PDF embed"):(0,Zl.sprintf)((0,Zl.__)("Embed of %s."),o),p=!uo.RichText.isEmpty(o),d=p?r:void 0;return t&&(0,$t.jsxs)("div",{...uo.useBlockProps.save(),children:[c&&(0,$t.jsx)($t.Fragment,{children:(0,$t.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":m})}),p&&(0,$t.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,$t.jsx)(uo.RichText.Content,{value:o})}),l&&(0,$t.jsx)("a",{href:t,className:w("wp-block-file__button",(0,uo.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":d,children:(0,$t.jsx)(uo.RichText.Content,{value:s})})]})}},Bbe={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileId:r,fileName:o,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,m=uo.RichText.isEmpty(o)?(0,Zl.__)("PDF embed"):(0,Zl.sprintf)((0,Zl.__)("Embed of %s."),o),p=!uo.RichText.isEmpty(o),d=p?r:void 0;return t&&(0,$t.jsxs)("div",{...uo.useBlockProps.save(),children:[c&&(0,$t.jsx)($t.Fragment,{children:(0,$t.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":m})}),p&&(0,$t.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,$t.jsx)(uo.RichText.Content,{value:o})}),l&&(0,$t.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":d,children:(0,$t.jsx)(uo.RichText.Content,{value:s})})]})}},Ebe={attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileName:r,textLinkHref:o,textLinkTarget:n,showDownloadButton:i,downloadButtonText:l,displayPreview:s,previewHeight:c}=e,u=uo.RichText.isEmpty(r)?(0,Zl.__)("PDF embed"):(0,Zl.sprintf)((0,Zl.__)("Embed of %s."),r);return t&&(0,$t.jsxs)("div",{...uo.useBlockProps.save(),children:[s&&(0,$t.jsx)($t.Fragment,{children:(0,$t.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),!uo.RichText.isEmpty(r)&&(0,$t.jsx)("a",{href:o,target:n,rel:n?"noreferrer noopener":void 0,children:(0,$t.jsx)(uo.RichText.Content,{value:r})}),i&&(0,$t.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,children:(0,$t.jsx)(uo.RichText.Content,{value:l})})]})}},Ibe=[Pbe,Bbe,Ebe],GW=Ibe;var $I=a(Br(),1),sh=a(A(),1),lh=a(z(),1),So=a(T(),1),P5=a(H(),1),KW=a(pe(),1),Kl=a(P(),1);var YW=a(Y(),1),qI=a(yr(),1),QW=a(ir(),1);var Zo=a(P(),1),Ko=a(A(),1),WW=a(T(),1);var Co=a(y(),1);function $W({hrefs:e,openInNewWindow:t,showDownloadButton:r,changeLinkDestinationOption:o,changeOpenInNewWindow:n,changeShowDownloadButton:i,displayPreview:l,changeDisplayPreview:s,previewHeight:c,changePreviewHeight:u}){let{href:m,textLinkHref:p,attachmentPage:d}=e,f=$(),h=[{value:m,label:(0,Zo.__)("URL")}];return d&&(h=[{value:m,label:(0,Zo.__)("Media file")},{value:d,label:(0,Zo.__)("Attachment page")}]),(0,Co.jsx)(Co.Fragment,{children:(0,Co.jsxs)(WW.InspectorControls,{children:[m.endsWith(".pdf")&&(0,Co.jsxs)(Ko.__experimentalToolsPanel,{label:(0,Zo.__)("PDF settings"),resetAll:()=>{s(!0),u(600)},dropdownMenuProps:f,children:[(0,Co.jsx)(Ko.__experimentalToolsPanelItem,{label:(0,Zo.__)("Show inline embed"),isShownByDefault:!0,hasValue:()=>!l,onDeselect:()=>s(!0),children:(0,Co.jsx)(Ko.ToggleControl,{label:(0,Zo.__)("Show inline embed"),help:l?(0,Zo.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!l,onChange:s})}),l&&(0,Co.jsx)(Ko.__experimentalToolsPanelItem,{label:(0,Zo.__)("Height in pixels"),isShownByDefault:!0,hasValue:()=>c!==600,onDeselect:()=>u(600),children:(0,Co.jsx)(Ko.RangeControl,{__next40pxDefaultSize:!0,label:(0,Zo.__)("Height in pixels"),min:T5,max:Math.max(WI,c),value:c,onChange:u})})]}),(0,Co.jsxs)(Ko.__experimentalToolsPanel,{label:(0,Zo.__)("Settings"),resetAll:()=>{o(m),n(!1),i(!0)},dropdownMenuProps:f,children:[(0,Co.jsx)(Ko.__experimentalToolsPanelItem,{label:(0,Zo.__)("Link to"),isShownByDefault:!0,hasValue:()=>p!==m,onDeselect:()=>o(m),children:(0,Co.jsx)(Ko.SelectControl,{__next40pxDefaultSize:!0,label:(0,Zo.__)("Link to"),value:p,options:h,onChange:o})}),(0,Co.jsx)(Ko.__experimentalToolsPanelItem,{label:(0,Zo.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>n(!1),children:(0,Co.jsx)(Ko.ToggleControl,{label:(0,Zo.__)("Open in new tab"),checked:t,onChange:n})}),(0,Co.jsx)(Ko.__experimentalToolsPanelItem,{label:(0,Zo.__)("Show download button"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>i(!0),children:(0,Co.jsx)(Ko.ToggleControl,{label:(0,Zo.__)("Show download button"),checked:r,onChange:i})})]})]})})}var ZW=()=>window.navigator.pdfViewerEnabled?!0:!(window.navigator.userAgent.indexOf("Mobi")>-1||window.navigator.userAgent.indexOf("Android")>-1||window.navigator.userAgent.indexOf("Macintosh")>-1&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2||(window.ActiveXObject||"ActiveXObject"in window)&&!(qW("AcroPDF.PDF")||qW("PDF.PdfCtrl"))),qW=e=>{let t;try{t=new window.ActiveXObject(e)}catch{t=void 0}return t};var Fr=a(y(),1),T5=200,WI=2e3;function Nbe({text:e,disabled:t}){let{createNotice:r}=(0,lh.useDispatch)(qI.store),o=(0,KW.useCopyToClipboard)(e,()=>{r("info",(0,Kl.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})});return(0,Fr.jsx)(sh.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:o,disabled:t,children:(0,Kl.__)("Copy URL")})}function Dbe({attributes:e,isSelected:t,setAttributes:r,clientId:o}){let{id:n,fileName:i,href:l,textLinkHref:s,textLinkTarget:c,showDownloadButton:u,downloadButtonText:m,displayPreview:p,previewHeight:d}=e,[f,h]=(0,P5.useState)(e.blob),{media:g}=(0,lh.useSelect)(B=>({media:n===void 0?void 0:B(YW.store).getEntityRecord("postType","attachment",n)}),[n]),{createErrorNotice:b}=(0,lh.useDispatch)(qI.store),{toggleSelection:v,__unstableMarkNextChangeAsNotPersistent:x}=(0,lh.useDispatch)(So.store);Es({url:f,onChange:_,onError:k}),(0,P5.useEffect)(()=>{So.RichText.isEmpty(m)&&(x(),r({downloadButtonText:(0,Kl._x)("Download","button label")}))},[]);function _(B){if(!B||!B.url){r({href:void 0,fileName:void 0,textLinkHref:void 0,id:void 0,fileId:void 0,displayPreview:void 0,previewHeight:void 0}),h();return}if((0,$I.isBlobURL)(B.url)){h(B.url);return}let j=(B.mime||B.mime_type)==="application/pdf"||(0,QW.getFilename)(B.url).toLowerCase().endsWith(".pdf"),U={displayPreview:j?e.displayPreview??!0:void 0,previewHeight:j?e.previewHeight??600:void 0};r({href:B.url,fileName:B.title,textLinkHref:B.url,id:B.id,fileId:`wp-block-file--media-${o}`,blob:void 0,...U}),h()}function k(B){r({href:void 0}),b(B,{type:"snackbar"})}function S(B){r({textLinkHref:B})}function C(B){r({textLinkTarget:B?"_blank":!1})}function E(B){r({showDownloadButton:B})}function I(B){r({displayPreview:B})}function D(B,j,U,O){v(!0);let K=parseInt(d+O.height,10);r({previewHeight:K})}function M(B){let j=Math.max(parseInt(B,10),T5);r({previewHeight:j})}let F=g&&g.link,R=(0,So.useBlockProps)({className:w(!!f&&(0,sh.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":!!f})}),V=ZW()&&p;return!l&&!f?(0,Fr.jsx)("div",{...R,children:(0,Fr.jsx)(So.MediaPlaceholder,{icon:(0,Fr.jsx)(So.BlockIcon,{icon:z0}),labels:{title:(0,Kl.__)("File"),instructions:(0,Kl.__)("Drag and drop a file, upload, or choose from your library.")},onSelect:_,onError:k,accept:"*"})}):(0,Fr.jsxs)(Fr.Fragment,{children:[(0,Fr.jsx)($W,{hrefs:{href:l||f,textLinkHref:s,attachmentPage:F},openInNewWindow:!!c,showDownloadButton:u,changeLinkDestinationOption:S,changeOpenInNewWindow:C,changeShowDownloadButton:E,displayPreview:p,changeDisplayPreview:I,previewHeight:d,changePreviewHeight:M}),(0,Fr.jsxs)(So.BlockControls,{group:"other",children:[(0,Fr.jsx)(So.MediaReplaceFlow,{mediaId:n,mediaURL:l,accept:"*",onSelect:_,onError:k,onReset:()=>_(void 0)}),(0,Fr.jsx)(Nbe,{text:l,disabled:(0,$I.isBlobURL)(l)})]}),(0,Fr.jsxs)("div",{...R,children:[V&&(0,Fr.jsxs)(sh.ResizableBox,{size:{height:d,width:"100%"},minHeight:T5,maxHeight:WI,grid:[1,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>v(!1),onResizeStop:D,showHandle:t,children:[(0,Fr.jsx)("object",{className:"wp-block-file__preview",data:l,type:"application/pdf","aria-label":(0,Kl.__)("Embed of the selected PDF file.")}),!t&&(0,Fr.jsx)("div",{className:"wp-block-file__preview-overlay"})]}),(0,Fr.jsxs)("div",{className:"wp-block-file__content-wrapper",children:[(0,Fr.jsx)(So.RichText,{identifier:"fileName",tagName:"a",value:i,placeholder:(0,Kl.__)("Write file name\u2026"),withoutInteractiveFormatting:!0,onChange:B=>r({fileName:N1(B)}),href:s}),u&&(0,Fr.jsx)("div",{className:"wp-block-file__button-richtext-wrapper",children:(0,Fr.jsx)(So.RichText,{identifier:"downloadButtonText",tagName:"div","aria-label":(0,Kl.__)("Download button text"),className:w("wp-block-file__button",(0,So.__experimentalGetElementClassName)("button")),value:m,withoutInteractiveFormatting:!0,placeholder:(0,Kl.__)("Add text\u2026"),onChange:B=>r({downloadButtonText:N1(B)})})})]})]})]})}var XW=Dbe;var B5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/file",title:"File",category:"media",description:"Add a link to a downloadable file.",keywords:["document","pdf","download"],textdomain:"default",attributes:{id:{type:"number"},blob:{type:"string",role:"local"},href:{type:"string",role:"content"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"rich-text",source:"rich-text",selector:"a:not([download])",role:"content"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href",role:"content"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"rich-text",source:"rich-text",selector:"a[download]",role:"content"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},interactivity:!0},editorStyle:"wp-block-file-editor",style:"wp-block-file"};var Kc=a(T(),1),Yl=a(y(),1);function JW({attributes:e}){let{href:t,fileId:r,fileName:o,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,m=Kc.RichText.isEmpty(o)?"PDF embed":o.toString(),p=!Kc.RichText.isEmpty(o),d=p?r:void 0;return t&&(0,Yl.jsxs)("div",{...Kc.useBlockProps.save(),children:[c&&(0,Yl.jsx)(Yl.Fragment,{children:(0,Yl.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":m})}),p&&(0,Yl.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Yl.jsx)(Kc.RichText.Content,{value:o})}),l&&(0,Yl.jsx)("a",{href:t,className:w("wp-block-file__button",(0,Kc.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":d,children:(0,Yl.jsx)(Kc.RichText.Content,{value:s})})]})}var lv=a(Br(),1),Ql=a(G(),1),E5=a(z(),1),I5=a(Y(),1),e$=a(ir(),1),Mbe={from:[{type:"files",isMatch(e){return e.length>0},priority:15,transform:e=>{let t=[];return e.forEach(r=>{let o=(0,lv.createBlobURL)(r);r.type.startsWith("video/")?t.push((0,Ql.createBlock)("core/video",{blob:(0,lv.createBlobURL)(r)})):r.type.startsWith("image/")?t.push((0,Ql.createBlock)("core/image",{blob:(0,lv.createBlobURL)(r)})):r.type.startsWith("audio/")?t.push((0,Ql.createBlock)("core/audio",{blob:(0,lv.createBlobURL)(r)})):t.push((0,Ql.createBlock)("core/file",{blob:o,fileName:r.name}))}),t}},{type:"block",blocks:["core/audio"],transform:e=>(0,Ql.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],transform:e=>(0,Ql.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],transform:e=>(0,Ql.createBlock)("core/file",{href:e.url,fileName:e.caption||(0,e$.getFilename)(e.url),textLinkHref:e.url,id:e.id,anchor:e.anchor})}],to:[{type:"block",blocks:["core/audio"],isMatch:({id:e})=>{if(!e)return!1;let{getEntityRecord:t}=(0,E5.select)(I5.store),r=t("postType","attachment",e);return!!r&&r.mime_type.includes("audio")},transform:e=>(0,Ql.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:({id:e})=>{if(!e)return!1;let{getEntityRecord:t}=(0,E5.select)(I5.store),r=t("postType","attachment",e);return!!r&&r.mime_type.includes("video")},transform:e=>(0,Ql.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:({id:e})=>{if(!e)return!1;let{getEntityRecord:t}=(0,E5.select)(I5.store),r=t("postType","attachment",e);return!!r&&r.mime_type.includes("image")},transform:e=>(0,Ql.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]},t$=Mbe;var{fieldsKey:Abe,formKey:Rbe}=Z(r$.privateApis),{name:o$}=B5,N5={icon:z0,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,ch._x)("Armstrong_Small_Step","Name of the file")}},transforms:t$,deprecated:GW,edit:XW,save:JW};window.__experimentalContentOnlyInspectorFields&&(N5[Abe]=[{id:"file",label:(0,ch.__)("File"),type:"media",Edit:{control:"media",allowedTypes:[],multiple:!1},getValue:({item:e})=>({id:e.id,url:e.href}),setValue:({value:e})=>({id:e.id,href:e.url})},{id:"fileName",label:(0,ch.__)("Filename"),type:"text",Edit:"rich-text"},{id:"downloadButtonText",label:(0,ch.__)("Button Text"),type:"text",Edit:"rich-text"}],N5[Rbe]={fields:["file","fileName","downloadButtonText"]});var zbe=()=>N({name:o$,metadata:B5,settings:N5});var JI={};q(JI,{init:()=>Ube,metadata:()=>M5,name:()=>m$,settings:()=>p$});var u$=a(qc(),1);var To=a(P(),1),Xl=a(T(),1),Jl=a(A(),1),a$=a(z(),1);var KI=a(P(),1),D5=["core/form-submission-notification",{type:"success"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#345C00" class="has-inline-color">'+(0,KI.__)("Your form has been submitted successfully")+"</mark>"}]]],L5=["core/form-submission-notification",{type:"error"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#CF2E2E" class="has-inline-color">'+(0,KI.__)("There was an error submitting your form.")+"</mark>"}]]];var Qa=a(y(),1),Vbe=[D5,L5,["core/form-input",{type:"text",label:(0,To.__)("Name"),required:!0}],["core/form-input",{type:"email",label:(0,To.__)("Email"),required:!0}],["core/form-input",{type:"textarea",label:(0,To.__)("Comment"),required:!0}],["core/form-submit-button",{}]],Fbe=({attributes:e,setAttributes:t,clientId:r})=>{let o=$(),n=()=>{t({submissionMethod:"email",email:void 0,action:void 0,method:"post"})},{action:i,method:l,email:s,submissionMethod:c}=e,u=(0,Xl.useBlockProps)(),{hasInnerBlocks:m}=(0,a$.useSelect)(d=>{let{getBlock:f}=d(Xl.store),h=f(r);return{hasInnerBlocks:!!(h&&h.innerBlocks.length)}},[r]),p=(0,Xl.useInnerBlocksProps)(u,{template:Vbe,renderAppender:m?void 0:Xl.InnerBlocks.ButtonBlockAppender});return(0,Qa.jsxs)(Qa.Fragment,{children:[(0,Qa.jsx)(Xl.InspectorControls,{children:(0,Qa.jsxs)(Jl.__experimentalToolsPanel,{dropdownMenuProps:o,label:(0,To.__)("Settings"),resetAll:n,children:[(0,Qa.jsx)(Jl.__experimentalToolsPanelItem,{hasValue:()=>c!=="email",label:(0,To.__)("Submissions method"),onDeselect:()=>t({submissionMethod:"email"}),isShownByDefault:!0,children:(0,Qa.jsx)(Jl.SelectControl,{__next40pxDefaultSize:!0,label:(0,To.__)("Submissions method"),options:[{label:(0,To.__)("Send email"),value:"email"},{label:(0,To.__)("- Custom -"),value:"custom"}],value:c,onChange:d=>t({submissionMethod:d}),help:c==="custom"?(0,To.__)('Select the method to use for form submissions. Additional options for the "custom" mode can be found in the "Advanced" section.'):(0,To.__)("Select the method to use for form submissions.")})}),c==="email"&&(0,Qa.jsx)(Jl.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,To.__)("Email for form submissions"),onDeselect:()=>t({email:void 0,action:void 0,method:"post"}),isShownByDefault:!0,children:(0,Qa.jsx)(Jl.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,To.__)("Email for form submissions"),value:s||"",required:!0,onChange:d=>{t({email:d}),t({action:`mailto:${d}`}),t({method:"post"})},help:(0,To.__)("The email address where form submissions will be sent. Separate multiple email addresses with a comma."),type:"email"})})]})}),c!=="email"&&(0,Qa.jsxs)(Xl.InspectorControls,{group:"advanced",children:[(0,Qa.jsx)(Jl.SelectControl,{__next40pxDefaultSize:!0,label:(0,To.__)("Method"),options:[{label:"Get",value:"get"},{label:"Post",value:"post"}],value:l,onChange:d=>t({method:d}),help:(0,To.__)("Select the method to use for form submissions.")}),(0,Qa.jsx)(Jl.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,To.__)("Form action"),value:i,onChange:d=>{t({action:d})},help:(0,To.__)("The URL where the form should be submitted."),type:"url"})]}),(0,Qa.jsx)("form",{...p,encType:c==="email"?"text/plain":null})]})},n$=Fbe;var M5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form",title:"Form",category:"widgets",allowedBlocks:["core/paragraph","core/heading","core/form-input","core/form-submit-button","core/form-submission-notification","core/group","core/columns"],description:"A form.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{submissionMethod:{type:"string",default:"email"},method:{type:"string",default:"post"},action:{type:"string"},email:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}};var A5=a(T(),1),YI=a(y(),1);function i$({attributes:e}){let t=A5.useBlockProps.save(),{submissionMethod:r}=e;return(0,YI.jsx)("form",{...t,encType:r==="email"?"text/plain":null,children:(0,YI.jsx)(A5.InnerBlocks.Content,{})})}var ol=a(P(),1);var Hbe=[{name:"comment-form",title:(0,ol.__)("Experimental Comment form"),description:(0,ol.__)("A comment form for posts and pages."),attributes:{submissionMethod:"custom",action:"{SITE_URL}/wp-comments-post.php",method:"post",anchor:"comment-form"},isDefault:!1,innerBlocks:[["core/form-input",{type:"text",name:"author",label:(0,ol.__)("Name"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"email",name:"email",label:(0,ol.__)("Email"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"textarea",name:"comment",label:(0,ol.__)("Comment"),required:!0,visibilityPermissions:"all"}],["core/form-submit-button",{}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"},{name:"wp-privacy-form",title:(0,ol.__)("Experimental Privacy Request Form"),keywords:["GDPR"],description:(0,ol.__)("A form to request data exports and/or deletion."),attributes:{submissionMethod:"custom",action:"",method:"post",anchor:"gdpr-form"},isDefault:!1,innerBlocks:[D5,L5,["core/paragraph",{content:(0,ol.__)("To request an export or deletion of your personal data on this site, please fill-in the form below. You can define the type of request you wish to perform, and your email address. Once the form is submitted, you will receive a confirmation email with instructions on the next steps.")}],["core/form-input",{type:"email",name:"email",label:(0,ol.__)("Enter your email address."),required:!0,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"export_personal_data",label:(0,ol.__)("Request data export"),required:!1,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"remove_personal_data",label:(0,ol.__)("Request data deletion"),required:!1,visibilityPermissions:"all"}],["core/form-submit-button",{}],["core/form-input",{type:"hidden",name:"wp-action",value:"wp_privacy_send_request"}],["core/form-input",{type:"hidden",name:"wp-privacy-request",value:"1"}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"}],l$=Hbe;var js=a(T(),1),QI=a(y(),1),jbe={supports:{},attributes:{submissionMethod:{type:"string",default:"email"},method:{type:"string",default:"post"},action:{type:"string"},email:{type:"string"},anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},fontFamily:{type:"string"},fontSize:{type:"string"}},save({attributes:e}){let{submissionMethod:t}=e,r=(0,js.__experimentalGetColorClassesAndStyles)(e),o=(0,js.getTypographyClassesAndStyles)(e),n=(0,js.__experimentalGetSpacingClassesAndStyles)(e),i=js.useBlockProps.save({style:{...r.style,...o.style,...n.style},id:e.anchor});return(0,QI.jsx)("form",{...i,className:"wp-block-form",encType:t==="email"?"text/plain":null,children:(0,QI.jsx)(js.InnerBlocks.Content,{})})}},s$=[jbe];var R5=a(L(),1),XI=a(y(),1),c$=(0,XI.jsx)(R5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,XI.jsx)(R5.Path,{d:"M18 16H6c-1.1 0-2 .9-2 2s.9 2 2 2h12c1.1 0 2-.9 2-2s-.9-2-2-2Zm0 2.5H6c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h12c.3 0 .5.2.5.5s-.2.5-.5.5ZM13 13H4v1.5h9V13Zm-7-2h12c1.1 0 2-.9 2-2s-.9-2-2-2H6c-1.1 0-2 .9-2 2s.9 2 2 2Zm0-2.5h12c.3 0 .5.2.5.5s-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5s.2-.5.5-.5ZM13 4H4v1.5h9V4Z"})});var{name:m$}=M5,p$={icon:c$,edit:n$,save:i$,deprecated:s$,variations:l$,example:{}},Ube=()=>{let e=["core/form"];return(0,u$.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/preventInsertingFormIntoAnotherForm",(t,r,o,{getBlock:n,getBlockParentsByBlockName:i})=>{if(r.name!=="core/form")return t;for(let l of e)if(n(o)?.name===l||i(o,l).length)return!1;return!0}),N({name:m$,metadata:M5,settings:p$})};var tN={};q(tN,{init:()=>tye,metadata:()=>V5,name:()=>P$,settings:()=>B$});var g$=a(sv(),1),es=a(T(),1),v$=a(Jn(),1),di=a(y(),1),b$=e=>(0,g$.default)((0,v$.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),Zbe={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){let{type:t,name:r,label:o,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,es.__experimentalGetBorderClassesAndStyles)(e),u=(0,es.__experimentalGetColorClassesAndStyles)(e),m={...c.style,...u.style},p=w("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input",f=es.useBlockProps.save();return t==="hidden"?(0,di.jsx)("input",{type:t,name:r,value:s}):(0,di.jsx)("div",{...f,children:(0,di.jsxs)("label",{className:w("wp-block-form-input__label",{"is-label-inline":n}),children:[(0,di.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,di.jsx)(es.RichText.Content,{value:o})}),(0,di.jsx)(d,{className:p,type:t==="textarea"?void 0:t,name:r||b$(o),required:i,"aria-required":i,placeholder:l||void 0,style:m})]})})}},Kbe={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{className:!1,anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){let{type:t,name:r,label:o,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,es.__experimentalGetBorderClassesAndStyles)(e),u=(0,es.__experimentalGetColorClassesAndStyles)(e),m={...c.style,...u.style},p=w("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input";return t==="hidden"?(0,di.jsx)("input",{type:t,name:r,value:s}):(0,di.jsxs)("label",{className:w("wp-block-form-input__label",{"is-label-inline":n}),children:[(0,di.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,di.jsx)(es.RichText.Content,{value:o})}),(0,di.jsx)(d,{className:p,type:t==="textarea"?void 0:t,name:r||b$(o),required:i,"aria-required":i,placeholder:l||void 0,style:m})]})}},Ybe=[Zbe,Kbe],y$=Ybe;var _a=a(P(),1),ts=a(T(),1),rs=a(A(),1),_$=a(H(),1);var qr=a(y(),1);function Qbe({attributes:e,setAttributes:t,className:r}){let{type:o,name:n,label:i,inlineLabel:l,required:s,placeholder:c,value:u}=e,m=(0,ts.useBlockProps)(),p=$(),d=(0,_$.useRef)(),f=o==="textarea"?"textarea":"input",h=(0,ts.__experimentalUseBorderProps)(e),g=(0,ts.__experimentalUseColorProps)(e);d.current&&d.current.focus();let b=o==="checkbox"||o==="radio",v=(0,qr.jsxs)(qr.Fragment,{children:[o!=="hidden"&&(0,qr.jsx)(ts.InspectorControls,{children:(0,qr.jsxs)(rs.__experimentalToolsPanel,{label:(0,_a.__)("Settings"),resetAll:()=>{t({inlineLabel:!1,required:!1})},dropdownMenuProps:p,children:[o!=="checkbox"&&(0,qr.jsx)(rs.__experimentalToolsPanelItem,{label:(0,_a.__)("Inline label"),hasValue:()=>!!l,onDeselect:()=>t({inlineLabel:!1}),isShownByDefault:!0,children:(0,qr.jsx)(rs.CheckboxControl,{label:(0,_a.__)("Inline label"),checked:l,onChange:_=>{t({inlineLabel:_})}})}),(0,qr.jsx)(rs.__experimentalToolsPanelItem,{label:(0,_a.__)("Required"),hasValue:()=>!!s,onDeselect:()=>t({required:!1}),isShownByDefault:!0,children:(0,qr.jsx)(rs.CheckboxControl,{label:(0,_a.__)("Required"),checked:s,onChange:_=>{t({required:_})}})})]})}),(0,qr.jsxs)(ts.InspectorControls,{group:"advanced",children:[(0,qr.jsx)(rs.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,_a.__)("Name"),value:n,onChange:_=>{t({name:_})},help:(0,_a.__)('Affects the "name" attribute of the input element, and is used as a name for the form submission results.')}),o==="hidden"&&(0,qr.jsx)(rs.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,_a.__)("Value"),value:u,onChange:_=>t({value:_}),help:(0,_a.__)("Sets the stored value for this hidden field.")})]})]}),x=(0,qr.jsx)(ts.RichText,{tagName:"span",className:"wp-block-form-input__label-content",value:i,onChange:_=>t({label:_}),"aria-label":i?(0,_a.__)("Label"):(0,_a.__)("Empty label"),"data-empty":!i,placeholder:(0,_a.__)("Type the label for this input")});return o==="hidden"?(0,qr.jsxs)("div",{...m,children:[v,(0,qr.jsx)("span",{className:"wp-block-form-input__label is-input-hidden","data-message":(0,_a.__)("Hidden field")})]}):(0,qr.jsxs)("div",{...m,children:[v,(0,qr.jsxs)("span",{className:w("wp-block-form-input__label",{"is-label-inline":l||o==="checkbox"}),children:[!b&&x,(0,qr.jsx)(f,{type:o==="textarea"?void 0:o,className:w(r,"wp-block-form-input__input",g.className,h.className),"aria-label":(0,_a.__)("Optional placeholder text"),placeholder:c?void 0:(0,_a.__)("Optional placeholder\u2026"),value:c,onChange:_=>t({placeholder:_.target.value}),"aria-required":s,style:{...h.style,...g.style}}),b&&x]})]})}var x$=Qbe;var V5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-input",title:"Input Field",category:"widgets",ancestor:["core/form"],description:"The basic building block for forms.",keywords:["input","form"],textdomain:"default",attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"rich-text",default:"Label",selector:".wp-block-form-input__label-content",source:"rich-text",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},style:["wp-block-form-input"]};var k$=a(sv(),1),Yc=a(T(),1),w$=a(Jn(),1),Us=a(y(),1),Jbe=e=>(0,k$.default)((0,w$.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,"");function C$({attributes:e}){let{type:t,name:r,label:o,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,Yc.__experimentalGetBorderClassesAndStyles)(e),u=(0,Yc.__experimentalGetColorClassesAndStyles)(e),m={...c.style,...u.style},p=w("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input",f=Yc.useBlockProps.save(),h=t==="checkbox"||t==="radio";return t==="hidden"?(0,Us.jsx)("input",{type:t,name:r,value:s}):(0,Us.jsx)("div",{...f,children:(0,Us.jsxs)("label",{className:w("wp-block-form-input__label",{"is-label-inline":n}),children:[!h&&(0,Us.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Us.jsx)(Yc.RichText.Content,{value:o})}),(0,Us.jsx)(d,{className:p,type:t==="textarea"?void 0:t,name:r||Jbe(o),required:i,"aria-required":i,placeholder:l||void 0,style:m}),h&&(0,Us.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Us.jsx)(Yc.RichText.Content,{value:o})})]})})}var Yo=a(P(),1),eye=[{name:"text",title:(0,Yo.__)("Text Input"),description:(0,Yo.__)("A generic text input."),attributes:{type:"text"},isDefault:!0,scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"},{name:"textarea",title:(0,Yo.__)("Textarea Input"),description:(0,Yo.__)("A textarea input to allow entering multiple lines of text."),attributes:{type:"textarea"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="textarea"},{name:"checkbox",title:(0,Yo.__)("Checkbox Input"),description:(0,Yo.__)("A simple checkbox input."),attributes:{type:"checkbox",inlineLabel:!0},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="checkbox"},{name:"email",title:(0,Yo.__)("Email Input"),description:(0,Yo.__)("Used for email addresses."),attributes:{type:"email"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="email"},{name:"url",title:(0,Yo.__)("URL Input"),description:(0,Yo.__)("Used for URLs."),attributes:{type:"url"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="url"},{name:"tel",title:(0,Yo.__)("Telephone Input"),description:(0,Yo.__)("Used for phone numbers."),attributes:{type:"tel"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="tel"},{name:"number",title:(0,Yo.__)("Number Input"),description:(0,Yo.__)("A numeric input."),attributes:{type:"number"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="number"},{name:"hidden",title:(0,Yo.__)("Hidden Input"),icon:"visibility",description:(0,Yo.__)("A hidden input field."),attributes:{type:"hidden"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="hidden"}],S$=eye;var F5=a(L(),1),eN=a(y(),1),T$=(0,eN.jsx)(F5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,eN.jsx)(F5.Path,{d:"M5.547 18.892A.99.99 0 0 0 6 19h.72v1H6a1.99 1.99 0 0 1-.908-.22l.455-.888ZM9.12 20H7.68v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1Zm2.587-.22c-.272.14-.58.22-.907.22h-.72v-1H18a.99.99 0 0 0 .453-.108l.454.888ZM5.108 17.547a.99.99 0 0 0 0 .906l-.89.454a1.99 1.99 0 0 1 0-1.815l.89.455Zm14.672-.455a1.99 1.99 0 0 1 0 1.815l-.888-.454a.99.99 0 0 0 0-.906l.888-.455ZM6.72 17H6a.99.99 0 0 0-.453.108l-.455-.89A1.99 1.99 0 0 1 6 16h.72v1ZM18 16c.327 0 .635.08.907.219l-.454.89A.99.99 0 0 0 18 17h-.72v-1H18Zm-8.88 1H7.68v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1ZM5.5 14.28H4.25v-1H5.5v1Zm2.5 0H6.5v-1H8v1Zm2.5 0H9v-1h1.5v1Zm2.25 0H11.5v-1h1.25v1ZM18 7a2 2 0 1 1 0 4H6a2 2 0 1 1 0-4h12ZM6 8.5a.5.5 0 0 0 0 1h12a.5.5 0 0 0 0-1H6Zm7-3H4V4h9v1.5Z"})});var{name:P$}=V5,B$={icon:T$,deprecated:y$,edit:x$,save:C$,variations:S$,example:{}},tye=()=>N({name:P$,metadata:V5,settings:B$});var oN={};q(oN,{init:()=>nye,metadata:()=>H5,name:()=>L$,settings:()=>M$});var E$=a(P(),1),O5=a(T(),1),I$=a(y(),1),rye=[["core/buttons",{},[["core/button",{text:(0,E$.__)("Submit"),tagName:"button",type:"submit"}]]]],oye=()=>{let e=(0,O5.useBlockProps)(),t=(0,O5.useInnerBlocksProps)(e,{template:rye,templateLock:"all"});return(0,I$.jsx)("div",{className:"wp-block-form-submit-wrapper",...t})},N$=oye;var H5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submit-button",title:"Form Submit Button",category:"widgets",icon:"button",ancestor:["core/form"],allowedBlocks:["core/buttons","core/button"],description:"A submission button for forms.",keywords:["submit","button","form"],textdomain:"default",style:["wp-block-form-submit-button"]};var j5=a(T(),1),rN=a(y(),1);function D$(){let e=j5.useBlockProps.save();return(0,rN.jsx)("div",{className:"wp-block-form-submit-wrapper",...e,children:(0,rN.jsx)(j5.InnerBlocks.Content,{})})}var{name:L$}=H5,M$={edit:N$,save:D$,example:{}},nye=()=>N({name:L$,metadata:H5,settings:M$});var aN={};q(aN,{init:()=>uye,metadata:()=>G5,name:()=>H$,settings:()=>j$});var U5=a(P(),1),um=a(T(),1),A$=a(z(),1);var R$=a(y(),1),iye=[["core/paragraph",{content:(0,U5.__)("Enter the message you wish displayed for form submission error/success, and select the type of the message (success/error) from the block's options.")}]],lye=({attributes:e,clientId:t})=>{let{type:r}=e,o=(0,um.useBlockProps)({className:w("wp-block-form-submission-notification",{[`form-notification-type-${r}`]:r})}),{hasInnerBlocks:n}=(0,A$.useSelect)(l=>{let{getBlock:s}=l(um.store),c=s(t);return{hasInnerBlocks:!!(c&&c.innerBlocks.length)}},[t]),i=(0,um.useInnerBlocksProps)(o,{template:iye,renderAppender:n?void 0:um.InnerBlocks.ButtonBlockAppender});return(0,R$.jsx)("div",{...i,"data-message-success":(0,U5.__)("Submission success notification"),"data-message-error":(0,U5.__)("Submission error notification")})},z$=lye;var G5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submission-notification",title:"Form Submission Notification",category:"widgets",ancestor:["core/form"],description:"Provide a notification message after the form has been submitted.",keywords:["form","feedback","notification","message"],textdomain:"default",icon:"feedback",attributes:{type:{type:"string",default:"success"}}};var W5=a(T(),1);var V$=a(y(),1);function F$({attributes:e}){let{type:t}=e;return(0,V$.jsx)("div",{...W5.useInnerBlocksProps.save(W5.useBlockProps.save({className:w("wp-block-form-submission-notification",{[`form-notification-type-${t}`]:t})}))})}var td=a(P(),1),cye=[{name:"form-submission-success",title:(0,td.__)("Form Submission Success"),description:(0,td.__)("Success message for form submissions."),attributes:{type:"success"},isDefault:!0,innerBlocks:[["core/paragraph",{content:(0,td.__)("Your form has been submitted successfully."),backgroundColor:"#00D084",textColor:"#000000",style:{elements:{link:{color:{text:"#000000"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="success"},{name:"form-submission-error",title:(0,td.__)("Form Submission Error"),description:(0,td.__)("Error/failure message for form submissions."),attributes:{type:"error"},isDefault:!1,innerBlocks:[["core/paragraph",{content:(0,td.__)("There was an error submitting your form."),backgroundColor:"#CF2E2E",textColor:"#FFFFFF",style:{elements:{link:{color:{text:"#FFFFFF"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="error"}],O$=cye;var{name:H$}=G5,j$={icon:yp,edit:z$,save:F$,variations:O$,example:{}},uye=()=>N({name:H$,metadata:G5,settings:j$});var hN={};q(hN,{init:()=>Nye,metadata:()=>q5,name:()=>xq,settings:()=>kq});var Ir=a(T(),1),W$=a(G(),1);var Gs="none",Ws="media",cv="lightbox",$s="attachment",U$="file",G$="post",uv="large";var Fe=a(y(),1),$$="file",q$="post";function uh(e){return Math.min(3,e?.images?.length)}function mye(e,t){switch(t){case $$:return{href:e?.source_url||e?.url,linkDestination:Ws};case q$:return{href:e?.link,linkDestination:$s};case Ws:return{href:e?.source_url||e?.url,linkDestination:Ws};case $s:return{href:e?.link,linkDestination:$s};case Gs:return{href:void 0,linkDestination:Gs}}return{}}function mh(e){let t=e.linkTo?e.linkTo:"none";t==="post"?t="attachment":t==="file"&&(t="media");let r=e.images.map(l=>pye(l,e.sizeSlug,t)),{images:o,ids:n,...i}=e;return[{...i,linkTo:t,allowResize:!1},r]}function pye(e,t,r){return(0,W$.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...mye(e,r)})}var dye={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},shortCodeTransforms:{type:"array",default:[],items:{type:"object"}},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},save({attributes:e}){let{caption:t,columns:r,imageCrop:o}=e,n=w("has-nested-images",{[`columns-${r}`]:r!==void 0,"columns-default":r===void 0,"is-cropped":o}),i=Ir.useBlockProps.save({className:n}),l=Ir.useInnerBlocksProps.save(i);return(0,Fe.jsxs)("figure",{...l,children:[l.children,!Ir.RichText.isEmpty(t)&&(0,Fe.jsx)(Ir.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t})]})}},fye={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0},save({attributes:e}){let{images:t,columns:r=uh(e),imageCrop:o,caption:n,linkTo:i}=e,l=`columns-${r} ${o?"is-cropped":""}`;return(0,Fe.jsxs)("figure",{...Ir.useBlockProps.save({className:l}),children:[(0,Fe.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(s=>{let c;switch(i){case $$:c=s.fullUrl||s.url;break;case q$:c=s.link;break}let u=(0,Fe.jsx)("img",{src:s.url,alt:s.alt,"data-id":s.id,"data-full-url":s.fullUrl,"data-link":s.link,className:s.id?`wp-image-${s.id}`:null});return(0,Fe.jsx)("li",{className:"blocks-gallery-item",children:(0,Fe.jsxs)("figure",{children:[c?(0,Fe.jsx)("a",{href:c,children:u}):u,!Ir.RichText.isEmpty(s.caption)&&(0,Fe.jsx)(Ir.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:s.caption})]})},s.id||s.url)})}),!Ir.RichText.isEmpty(n)&&(0,Fe.jsx)(Ir.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})},migrate(e){return mh(e)}},hye={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}},supports:{align:!0},isEligible({linkTo:e}){return!e||e==="attachment"||e==="media"},migrate(e){return mh(e)},save({attributes:e}){let{images:t,columns:r=uh(e),imageCrop:o,caption:n,linkTo:i}=e;return(0,Fe.jsxs)("figure",{className:`columns-${r} ${o?"is-cropped":""}`,children:[(0,Fe.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(l=>{let s;switch(i){case"media":s=l.fullUrl||l.url;break;case"attachment":s=l.link;break}let c=(0,Fe.jsx)("img",{src:l.url,alt:l.alt,"data-id":l.id,"data-full-url":l.fullUrl,"data-link":l.link,className:l.id?`wp-image-${l.id}`:null});return(0,Fe.jsx)("li",{className:"blocks-gallery-item",children:(0,Fe.jsxs)("figure",{children:[s?(0,Fe.jsx)("a",{href:s,children:c}):c,!Ir.RichText.isEmpty(l.caption)&&(0,Fe.jsx)(Ir.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!Ir.RichText.isEmpty(n)&&(0,Fe.jsx)(Ir.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})}},gye={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},isEligible({ids:e}){return e&&e.some(t=>typeof t=="string")},migrate(e){return mh(e)},save({attributes:e}){let{images:t,columns:r=uh(e),imageCrop:o,caption:n,linkTo:i}=e;return(0,Fe.jsxs)("figure",{className:`columns-${r} ${o?"is-cropped":""}`,children:[(0,Fe.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(l=>{let s;switch(i){case"media":s=l.fullUrl||l.url;break;case"attachment":s=l.link;break}let c=(0,Fe.jsx)("img",{src:l.url,alt:l.alt,"data-id":l.id,"data-full-url":l.fullUrl,"data-link":l.link,className:l.id?`wp-image-${l.id}`:null});return(0,Fe.jsx)("li",{className:"blocks-gallery-item",children:(0,Fe.jsxs)("figure",{children:[s?(0,Fe.jsx)("a",{href:s,children:c}):c,!Ir.RichText.isEmpty(l.caption)&&(0,Fe.jsx)(Ir.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!Ir.RichText.isEmpty(n)&&(0,Fe.jsx)(Ir.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})}},vye={attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){let{images:t,columns:r=uh(e),imageCrop:o,linkTo:n}=e;return(0,Fe.jsx)("ul",{className:`columns-${r} ${o?"is-cropped":""}`,children:t.map(i=>{let l;switch(n){case"media":l=i.fullUrl||i.url;break;case"attachment":l=i.link;break}let s=(0,Fe.jsx)("img",{src:i.url,alt:i.alt,"data-id":i.id,"data-full-url":i.fullUrl,"data-link":i.link,className:i.id?`wp-image-${i.id}`:null});return(0,Fe.jsx)("li",{className:"blocks-gallery-item",children:(0,Fe.jsxs)("figure",{children:[l?(0,Fe.jsx)("a",{href:l,children:s}):s,i.caption&&i.caption.length>0&&(0,Fe.jsx)(Ir.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})},migrate(e){return mh(e)}},bye={attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"string",source:"html",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible({images:e,ids:t}){return e&&e.length>0&&(!t&&e||t&&e&&t.length!==e.length||e.some((r,o)=>!r&&t[o]!==null?!0:parseInt(r,10)!==t[o]))},migrate(e){return mh(e)},supports:{align:!0},save({attributes:e}){let{images:t,columns:r=uh(e),imageCrop:o,linkTo:n}=e;return(0,Fe.jsx)("ul",{className:`columns-${r} ${o?"is-cropped":""}`,children:t.map(i=>{let l;switch(n){case"media":l=i.url;break;case"attachment":l=i.link;break}let s=(0,Fe.jsx)("img",{src:i.url,alt:i.alt,"data-id":i.id,"data-link":i.link,className:i.id?`wp-image-${i.id}`:null});return(0,Fe.jsx)("li",{className:"blocks-gallery-item",children:(0,Fe.jsxs)("figure",{children:[l?(0,Fe.jsx)("a",{href:l,children:s}):s,i.caption&&i.caption.length>0&&(0,Fe.jsx)(Ir.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})}},yye={attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){let{images:t,columns:r=uh(e),align:o,imageCrop:n,linkTo:i}=e,l=w(`columns-${r}`,{alignnone:o==="none","is-cropped":n});return(0,Fe.jsx)("div",{className:l,children:t.map(s=>{let c;switch(i){case"media":c=s.url;break;case"attachment":c=s.link;break}let u=(0,Fe.jsx)("img",{src:s.url,alt:s.alt,"data-id":s.id});return(0,Fe.jsx)("figure",{className:"blocks-gallery-image",children:c?(0,Fe.jsx)("a",{href:c,children:u}):u},s.id||s.url)})})},migrate(e){return mh(e)}},Z$=[dye,fye,hye,gye,vye,bye,yye];var Ye=a(A(),1),Po=a(T(),1),Qo=a(H(),1),he=a(P(),1),fv=a(z(),1),fq=a(L(),1),hq=a(G(),1),dN=a(Br(),1),gq=a(yr(),1);var K$=a(T(),1);var Y$=a(y(),1),Q$=(0,Y$.jsx)(K$.BlockIcon,{icon:U0});function nN(e){return e?Math.min(3,e):3}var X$=(e,t="large")=>{let r=Object.fromEntries(Object.entries(e??{}).filter(([n])=>["alt","id","link"].includes(n)));r.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url||e?.source_url;let o=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return o&&(r.fullUrl=o),r};var qs=20,rd="none",ph="media",dh="attachment",iN="custom",J$=["noopener"],Qc=["image"];var lN=["flex","grid"],mv="full";function sN(e,t,r,o,n){switch(r||t){case U$:case Ws:return{href:e?.source_url||e?.url,linkDestination:ph,lightbox:n?.enabled?{...o?.lightbox,enabled:!1}:void 0};case G$:case $s:return{href:e?.link,linkDestination:dh,lightbox:n?.enabled?{...o?.lightbox,enabled:!1}:void 0};case cv:return{href:void 0,lightbox:n?.enabled?void 0:{...o?.lightbox,enabled:!0},linkDestination:rd};case Gs:return{href:void 0,linkDestination:rd,lightbox:void 0}}return{}}function eq(e){let[t,r=1]=e.split("/").map(Number),o=t/r;return o===1/0||o===0?NaN:o}function _ye(e){let t=e;return e!==void 0&&t&&(J$.forEach(r=>{let o=new RegExp("\\b"+r+"\\b","gi");t=t.replace(o,"")}),t!==e&&(t=t.trim()),t||(t=void 0)),t}function cN(e,{rel:t}){let r=e?"_blank":void 0,o;return!r&&!t?o=void 0:o=_ye(t),{linkTarget:r,rel:o}}function tq(e,t){let r=e?.media_details?.sizes?.[t]?.source_url;return r?{url:r,width:void 0,height:void 0,sizeSlug:t}:{}}function uN(e){return Qc.some(t=>e.type.indexOf(t)===0)}function pv({x:e,y:t}={x:.5,y:.5}){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}var mN=a(P(),1),rq=a(L(),1);var dv=a(y(),1);function oq(e){let{attributes:t,isSelected:r,setAttributes:o,mediaPlaceholder:n,insertBlocksAfter:i,blockProps:l,__unstableLayoutClassNames:s,isContentLocked:c,multiGallerySelection:u}=e,{align:m,columns:p,imageCrop:d}=t;return(0,dv.jsxs)("figure",{...l,className:w(l.className,s,"blocks-gallery-grid",{[`align${m}`]:m,[`columns-${p}`]:p!==void 0,"columns-default":p===void 0,"is-cropped":d}),children:[l.children,r&&!l.children&&(0,dv.jsx)(rq.View,{className:"blocks-gallery-media-placeholder-wrapper",children:n}),(0,dv.jsx)(ga,{attributes:t,setAttributes:o,isSelected:r,insertBlocksAfter:i,showToolbarButton:!u&&!c,className:"blocks-gallery-caption",label:(0,mN.__)("Gallery caption text"),placeholder:(0,mN.__)("Add gallery caption")})]})}var aq=a(H(),1);function nq(e,t,r){return(0,aq.useMemo)(()=>o(),[e,t]);function o(){if(!e||e.length===0)return;let{imageSizes:n}=r(),i={};t&&(i=e.reduce((s,c)=>{if(!c.id)return s;let u=n.reduce((m,p)=>{let d=c.sizes?.[p.slug]?.url,f=c.media_details?.sizes?.[p.slug]?.source_url;return{...m,[p.slug]:d||f}},{});return{...s,[parseInt(c.id,10)]:u}},{}));let l=Object.values(i);return n.filter(({slug:s})=>l.some(c=>c[s])).map(({name:s,slug:c})=>({value:c,label:s}))}}var $5=a(H(),1);function iq(e,t){let[r,o]=(0,$5.useState)([]);return(0,$5.useMemo)(()=>n(),[e,t]);function n(){let i=!1,l=r.filter(c=>e.find(u=>c.clientId===u.clientId));l.length<r.length&&(i=!0),e.forEach(c=>{c.fromSavedContent&&!l.find(u=>u.id===c.id)&&(i=!0,l.push(c))});let s=e.filter(c=>!l.find(u=>c.clientId&&u.clientId===c.clientId)&&t?.find(u=>u.id===c.id)&&!c.fromSavedContent);return(i||s?.length>0)&&o([...l,...s]),s.length>0?s:null}}var sq=a(z(),1),cq=a(Y(),1),lq=[];function uq(e){return(0,sq.useSelect)(t=>{let r=e.map(o=>o.attributes.id).filter(o=>o!==void 0);return r.length===0?lq:t(cq.store).getEntityRecords("postType","attachment",{include:r.join(","),per_page:-1,orderby:"include"})??lq},[e])}var od=a(T(),1);function mq({blockGap:e,clientId:t}){let r="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )",o=r,n=r,i;e&&(i=typeof e=="string"?(0,od.__experimentalGetGapCSSValue)(e):(0,od.__experimentalGetGapCSSValue)(e?.top)||r,n=typeof e=="string"?(0,od.__experimentalGetGapCSSValue)(e):(0,od.__experimentalGetGapCSSValue)(e?.left)||r,o=i===n?i:`${i} ${n}`);let l=`#block-${t} { |
| 16 |
--wp--style--unstable-gallery-gap: ${n==="0"?"0px":n}; |
| 17 |
gap: ${o} |
| 18 |
}`;return(0,od.useStyleOverride)({css:l}),null}var je=a(y(),1),pq=8,dq=[{icon:M0,label:(0,he.__)("Link images to attachment pages"),value:$s,noticeText:(0,he.__)("Attachment Pages")},{icon:Hu,label:(0,he.__)("Link images to media files"),value:Ws,noticeText:(0,he.__)("Media Files")},{icon:bp,label:(0,he.__)("Enlarge on click"),value:cv,noticeText:(0,he.__)("Lightbox effect"),infoText:(0,he.__)("Scale images with a lightbox effect")},{icon:G0,label:(0,he._x)("None","Media item link option"),value:Gs,noticeText:(0,he.__)("None")}],xye=[{label:(0,he.__)("Icon"),value:"icon"},{label:(0,he.__)("Text"),value:"text"},{label:(0,he.__)("Both"),value:"both"}],pN=["image"],kye=Qo.Platform.isNative?(0,he.__)("Add media"):(0,he.__)("Drag and drop images, upload, or choose from your library."),wye=Qo.Platform.isNative?{type:"stepper"}:{},Cye={name:"core/image"},Sye=[];function vq(e){let{setAttributes:t,attributes:r,className:o,clientId:n,isSelected:i,insertBlocksAfter:l,isContentLocked:s,onFocus:c}=e,[u,m,p,d]=(0,Po.useSettings)("blocks.core/image.lightbox","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),f=u?.allowEditing?dq:dq.filter(Q=>Q.value!==cv),{navigationButtonType:h,columns:g,imageCrop:b,randomOrder:v,linkTarget:x,linkTo:_,sizeSlug:k,aspectRatio:S}=r,{__unstableMarkNextChangeAsNotPersistent:C,replaceInnerBlocks:E,updateBlockAttributes:I,selectBlock:D}=(0,fv.useDispatch)(Po.store),{createSuccessNotice:M,createErrorNotice:F}=(0,fv.useDispatch)(gq.store),{getBlock:R,getSettings:V,innerBlockImages:B,blockWasJustInserted:j,multiGallerySelection:U}=(0,fv.useSelect)(Q=>{let{getBlockName:Ie,getMultiSelectedBlockClientIds:tt,getSettings:Ke,getBlock:Ne,wasBlockJustInserted:xt}=Q(Po.store),jt=tt();return{getBlock:Ne,getSettings:Ke,innerBlockImages:Ne(n)?.innerBlocks??Sye,blockWasJustInserted:xt(n,"inserter_menu"),multiGallerySelection:jt.length&&jt.every(zo=>Ie(zo)==="core/gallery")}},[n]),O=(0,Qo.useMemo)(()=>B?.map(Q=>({clientId:Q.clientId,id:Q.attributes.id,url:Q.attributes.url,attributes:Q.attributes,fromSavedContent:!!Q.originalContent})),[B]),K=uq(B),W=iq(O,K),ee=u?.enabled?O.filter(Q=>Q.attributes?.lightbox?.enabled===void 0||Q.attributes?.lightbox?.enabled===!0).length>0:O.filter(Q=>Q.attributes.lightbox?.enabled).length>0,oe=p?.map(({name:Q,ratio:Ie})=>({label:Q,value:Ie})),X=m?.map(({name:Q,ratio:Ie})=>({label:Q,value:Ie})),J=[{label:(0,he._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...d?X||[]:[],...oe||[]];(0,Qo.useEffect)(()=>{W?.forEach(Q=>{C(),I(Q.clientId,{...ie(Q.attributes),id:Q.id,align:void 0})})},[W]);let ne=nq(K,i,V);function ie(Q){let Ie=Q.id?K.find(({id:Ne})=>Ne===Q.id):null,tt;Q.className&&Q.className!==""&&(tt=Q.className);let Ke;return Q.linkTarget||Q.rel?Ke={linkTarget:Q.linkTarget,rel:Q.rel}:Ke=cN(x,r),{...X$(Ie,k),...sN(Ie,_,Q?.linkDestination),...Ke,className:tt,sizeSlug:k,caption:Q.caption.length>0?Q.caption:Ie.caption?.raw,alt:Q.alt||Ie.alt_text,aspectRatio:S==="auto"?void 0:S}}function ue(Q){let Ie=Qo.Platform.isNative&&Q.id?K.find(({id:Ke})=>Ke===Q.id):null,tt=Ie?Ie?.media_type:Q.type;return pN.some(Ke=>tt?.indexOf(Ke)===0)||Q.blob}function fe(Q){let Ie=Object.prototype.toString.call(Q)==="[object FileList]",tt=Ie?Array.from(Q).map(ut=>ut.url?ut:{blob:(0,dN.createBlobURL)(ut)}):Q;tt.every(ue)||F((0,he.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let Ke=tt.filter(ut=>ut.url||ue(ut)).map(ut=>ut.url?ut:{blob:ut.blob||(0,dN.createBlobURL)(ut)}),Ne=Ke.reduce((ut,vn,Oi)=>(ut[vn.id]=Oi,ut),{}),xt=Ie?B:B.filter(ut=>Ke.find(vn=>vn.id===ut.attributes.id)),zo=Ke.filter(ut=>!xt.find(vn=>ut.id===vn.attributes.id)).map(ut=>(0,hq.createBlock)("core/image",{id:ut.id,blob:ut.blob,url:ut.url,caption:ut.caption,alt:ut.alt}));E(n,xt.concat(zo).sort((ut,vn)=>Ne[ut.attributes.id]-Ne[vn.attributes.id])),zo?.length>0&&D(zo[0].clientId)}function Oe(Q){F(Q,{type:"snackbar"})}function ke(Q){t({linkTo:Q});let Ie={},tt=[];R(n).innerBlocks.forEach(Ne=>{tt.push(Ne.clientId);let xt=Ne.attributes.id?K.find(({id:jt})=>jt===Ne.attributes.id):null;Ie[Ne.clientId]=sN(xt,Q,!1,Ne.attributes,u)}),I(tt,Ie,{uniqueByBlock:!0});let Ke=[...f].find(Ne=>Ne.value===Q);M((0,he.sprintf)((0,he.__)("All gallery image links updated to: %s"),Ke.noticeText),{id:"gallery-attributes-linkTo",type:"snackbar"})}function ae(Q){t({columns:Q})}function Te(){t({imageCrop:!b})}function Le(){t({randomOrder:!v})}function te(Q){let Ie=Q?"_blank":void 0;t({linkTarget:Ie});let tt={},Ke=[];R(n).innerBlocks.forEach(xt=>{Ke.push(xt.clientId),tt[xt.clientId]=cN(Ie,xt.attributes)}),I(Ke,tt,{uniqueByBlock:!0});let Ne=Q?(0,he.__)("All gallery images updated to open in new tab"):(0,he.__)("All gallery images updated to not open in new tab");M(Ne,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}function He(Q){t({sizeSlug:Q});let Ie={},tt=[];R(n).innerBlocks.forEach(Ne=>{tt.push(Ne.clientId);let xt=Ne.attributes.id?K.find(({id:jt})=>jt===Ne.attributes.id):null;Ie[Ne.clientId]=tq(xt,Q)}),I(tt,Ie,{uniqueByBlock:!0});let Ke=ne.find(Ne=>Ne.value===Q);M((0,he.sprintf)((0,he.__)("All gallery image sizes updated to: %s"),Ke?.label??Q),{id:"gallery-attributes-sizeSlug",type:"snackbar"})}function st(Q){t({aspectRatio:Q});let Ie={},tt=[];R(n).innerBlocks.forEach(Ne=>{tt.push(Ne.clientId),Ie[Ne.clientId]={aspectRatio:Q==="auto"?void 0:Q}}),I(tt,Ie,!0);let Ke=J.find(Ne=>Ne.value===Q);M((0,he.sprintf)((0,he.__)("All gallery images updated to aspect ratio: %s"),Ke?.label||Q),{id:"gallery-attributes-aspectRatio",type:"snackbar"})}(0,Qo.useEffect)(()=>{_||(C(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||Gs}))},[_]);let ct=!!O.length,Me=ct&&O.some(Q=>!!Q.id),se=O.some(Q=>Qo.Platform.isNative?Q.url?.indexOf("file:")===0:!Q.id&&Q.url?.indexOf("blob:")===0),_t=Qo.Platform.select({web:{addToGallery:!1,disableMediaButtons:se,value:{}},native:{addToGallery:Me,isAppender:ct,disableMediaButtons:ct&&!i||se,value:Me?O:{},autoOpenMediaUpload:!ct&&i&&j,onFocus:c}}),Ve=(0,je.jsx)(Po.MediaPlaceholder,{handleUpload:!1,icon:Q$,labels:{title:(0,he.__)("Gallery"),instructions:kye},onSelect:fe,allowedTypes:pN,multiple:!0,onError:Oe,..._t}),we=(0,Po.useBlockProps)({className:w(o,"has-nested-images")}),rt=Qo.Platform.isNative&&{marginHorizontal:0,marginVertical:0},Ue=(0,Po.useInnerBlocksProps)(we,{defaultBlock:Cye,directInsert:!0,orientation:"horizontal",renderAppender:!1,...rt}),et=$();if(!ct)return(0,je.jsxs)(fq.View,{...Ue,children:[Ue.children,Ve]});let fa=_&&_!=="none";return(0,je.jsxs)(je.Fragment,{children:[(0,je.jsxs)(Po.InspectorControls,{children:[Qo.Platform.isWeb&&(0,je.jsxs)(Ye.__experimentalToolsPanel,{label:(0,he.__)("Settings"),resetAll:()=>{t({navigationButtonType:"icon",columns:void 0,imageCrop:!0,randomOrder:!1}),st("auto"),k!==uv&&He(uv),x&&te(!1)},dropdownMenuProps:et,children:[O.length>1&&(0,je.jsx)(Ye.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,he.__)("Columns"),hasValue:()=>!!g&&g!==O.length,onDeselect:()=>ae(void 0),children:(0,je.jsx)(Ye.RangeControl,{label:(0,he.__)("Columns"),value:g||nN(O.length),onChange:ae,min:1,max:Math.min(pq,O.length),required:!0,__next40pxDefaultSize:!0})}),ne?.length>0&&(0,je.jsx)(Ye.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,he.__)("Resolution"),hasValue:()=>k!==uv,onDeselect:()=>He(uv),children:(0,je.jsx)(Ye.SelectControl,{label:(0,he.__)("Resolution"),help:(0,he.__)("Select the size of the source images."),value:k,options:ne,onChange:He,hideCancelButton:!0,size:"__unstable-large"})}),(0,je.jsx)(Ye.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,he.__)("Crop images to fit"),hasValue:()=>!b,onDeselect:()=>t({imageCrop:!0}),children:(0,je.jsx)(Ye.ToggleControl,{label:(0,he.__)("Crop images to fit"),checked:!!b,onChange:Te})}),(0,je.jsx)(Ye.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,he.__)("Randomize order"),hasValue:()=>!!v,onDeselect:()=>t({randomOrder:!1}),children:(0,je.jsx)(Ye.ToggleControl,{label:(0,he.__)("Randomize order"),checked:!!v,onChange:Le})}),fa&&(0,je.jsx)(Ye.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,he.__)("Open images in new tab"),hasValue:()=>!!x,onDeselect:()=>te(!1),children:(0,je.jsx)(Ye.ToggleControl,{label:(0,he.__)("Open images in new tab"),checked:x==="_blank",onChange:te})}),J.length>1&&(0,je.jsx)(Ye.__experimentalToolsPanelItem,{hasValue:()=>!!S&&S!=="auto",label:(0,he.__)("Aspect ratio"),onDeselect:()=>st("auto"),isShownByDefault:!0,children:(0,je.jsx)(Ye.SelectControl,{__next40pxDefaultSize:!0,label:(0,he.__)("Aspect ratio"),help:(0,he.__)("Set a consistent aspect ratio for all images in the gallery."),value:S,options:J,onChange:st})}),(0,je.jsx)(Ye.__experimentalToolsPanelItem,{label:(0,he.__)("Navigation button type"),isShownByDefault:!0,hasValue:()=>h!=="icon",onDeselect:()=>t({navigationButtonType:"icon"}),children:ee&&(0,je.jsx)(Ye.__experimentalToggleGroupControl,{label:(0,he.__)("Navigation button type"),value:h,onChange:Q=>t({navigationButtonType:Q}),isBlock:!0,__next40pxDefaultSize:!0,help:(0,he.__)("Adjust the appearance of buttons in the lightbox."),children:xye.map(Q=>(0,je.jsx)(Ye.__experimentalToggleGroupControlOption,{value:Q.value,label:Q.label},Q.value))})})]}),Qo.Platform.isNative&&(0,je.jsxs)(Ye.PanelBody,{title:(0,he.__)("Settings"),children:[O.length>1&&(0,je.jsx)(Ye.RangeControl,{label:(0,he.__)("Columns"),value:g||nN(O.length),onChange:ae,min:1,max:Math.min(pq,O.length),...wye,required:!0,__next40pxDefaultSize:!0}),ne?.length>0&&(0,je.jsx)(Ye.SelectControl,{label:(0,he.__)("Resolution"),help:(0,he.__)("Select the size of the source images."),value:k,options:ne,onChange:He,hideCancelButton:!0,size:"__unstable-large"}),(0,je.jsx)(Ye.SelectControl,{label:(0,he.__)("Link"),value:_,onChange:ke,options:f,hideCancelButton:!0,size:"__unstable-large"}),(0,je.jsx)(Ye.ToggleControl,{label:(0,he.__)("Crop images to fit"),checked:!!b,onChange:Te}),(0,je.jsx)(Ye.ToggleControl,{label:(0,he.__)("Randomize order"),checked:!!v,onChange:Le}),fa&&(0,je.jsx)(Ye.ToggleControl,{label:(0,he.__)("Open images in new tab"),checked:x==="_blank",onChange:te}),J.length>1&&(0,je.jsx)(Ye.SelectControl,{label:(0,he.__)("Aspect Ratio"),help:(0,he.__)("Set a consistent aspect ratio for all images in the gallery."),value:S,options:J,onChange:st,hideCancelButton:!0,size:"__unstable-large"})]})]}),Qo.Platform.isWeb?(0,je.jsx)(Po.BlockControls,{group:"block",children:(0,je.jsx)(Ye.ToolbarDropdownMenu,{icon:ti,label:(0,he.__)("Link"),children:({onClose:Q})=>(0,je.jsx)(Ye.MenuGroup,{children:f.map(Ie=>{let tt=_===Ie.value;return(0,je.jsx)(Ye.MenuItem,{isSelected:tt,className:w("components-dropdown-menu__menu-item",{"is-active":tt}),iconPosition:"left",icon:Ie.icon,onClick:()=>{ke(Ie.value),Q()},role:"menuitemradio",info:Ie.infoText,children:Ie.label},Ie.value)})})})}):null,Qo.Platform.isWeb&&(0,je.jsxs)(je.Fragment,{children:[!U&&(0,je.jsx)(Po.BlockControls,{group:"other",children:(0,je.jsx)(Po.MediaReplaceFlow,{allowedTypes:pN,handleUpload:!1,onSelect:fe,name:(0,he.__)("Add"),multiple:!0,mediaIds:O.filter(Q=>Q.id).map(Q=>Q.id),addToGallery:Me,variant:"toolbar"})}),(0,je.jsx)(mq,{blockGap:r.style?.spacing?.blockGap,clientId:n})]}),(0,je.jsx)(oq,{...e,isContentLocked:s,images:O,mediaPlaceholder:!ct||Qo.Platform.isNative?Ve:void 0,blockProps:Ue,insertBlocksAfter:l,multiGallerySelection:U})]})}var q5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/gallery",title:"Gallery",category:"media",usesContext:["galleryId"],allowedBlocks:["core/image"],description:"Display multiple images in a rich gallery.",keywords:["images","photos"],textdomain:"default",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"rich-text",source:"rich-text",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},navigationButtonType:{type:"string",default:"icon",enum:["icon","text","both"]},shortCodeTransforms:{type:"array",items:{type:"object"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"rich-text",source:"rich-text",selector:".blocks-gallery-caption",role:"content"},imageCrop:{type:"boolean",default:!0},randomOrder:{type:"boolean",default:!1},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1},aspectRatio:{type:"string",default:"auto"}},providesContext:{allowResize:"allowResize",imageCrop:"imageCrop",fixedHeight:"fixedHeight",navigationButtonType:"navigationButtonType"},supports:{anchor:!0,align:!0,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{color:!0,radius:!0}},html:!1,units:["px","em","rem","vh","vw"],spacing:{margin:!0,padding:!0,blockGap:["horizontal","vertical"],__experimentalSkipSerialization:["blockGap"],__experimentalDefaultControls:{blockGap:!0,margin:!1,padding:!1}},color:{text:!1,background:!0,gradients:!0},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0},listView:!0},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"};var Xc=a(T(),1),Z5=a(y(),1);function bq({attributes:e}){let{caption:t,columns:r,imageCrop:o}=e,n=w("has-nested-images",{[`columns-${r}`]:r!==void 0,"columns-default":r===void 0,"is-cropped":o}),i=Xc.useBlockProps.save({className:n}),l=Xc.useInnerBlocksProps.save(i);return(0,Z5.jsxs)("figure",{...l,children:[l.children,!Xc.RichText.isEmpty(t)&&(0,Z5.jsx)(Xc.RichText.Content,{tagName:"figcaption",className:w("blocks-gallery-caption",(0,Xc.__experimentalGetElementClassName)("caption")),value:t})]})}var Zs=a(G(),1),yq=a(Br(),1),fN=a(qc(),1);var Pye=e=>e?e.split(",").map(t=>parseInt(t,10)):[];function Bye(e){if(e.name==="core/gallery"&&e.attributes?.images.length>0){let t=e.attributes.images.map(({url:r,id:o,alt:n})=>(0,Zs.createBlock)("core/image",{url:r,id:o?parseInt(o,10):null,alt:n,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination}));delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e}(0,fN.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",Bye);function Eye(e,t){let o=(Array.isArray(t)?t:[t]).find(n=>n.name==="core/gallery"&&n.innerBlocks.length>0&&!n.attributes.images?.length>0&&!e.name.includes("core/"));if(o){let n=o.innerBlocks.map(({attributes:{url:l,id:s,alt:c}})=>({url:l,id:s?parseInt(s,10):null,alt:c})),i=n.map(({id:l})=>l);o.attributes.images=n,o.attributes.ids=i}return e}(0,fN.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",Eye);var Iye={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:r}=e[0];t=e.every(i=>i.align===t)?t:void 0,r=e.every(i=>i.sizeSlug===r)?r:void 0;let n=e.filter(({url:i})=>i).map(i=>(i.width=void 0,i.height=void 0,(0,Zs.createBlock)("core/image",i)));return(0,Zs.createBlock)("core/gallery",{align:t,sizeSlug:r},n)}},{type:"shortcode",tag:"gallery",transform({named:{ids:e,columns:t=3,link:r,orderby:o,size:n}}){let i=Pye(e).map(c=>parseInt(c,10)),l=Gs;return r==="post"?l=$s:r==="file"&&(l=Ws),(0,Zs.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:l,randomOrder:o==="rand",...n&&{sizeSlug:n}},i.map(c=>(0,Zs.createBlock)("core/image",{id:c,...n&&{sizeSlug:n}})))},isMatch({named:e}){return e.ids!==void 0}},{type:"files",priority:1,isMatch(e){return e.length!==1&&e.every(t=>t.type.indexOf("image/")===0)},transform(e){let t=e.map(r=>(0,Zs.createBlock)("core/image",{blob:(0,yq.createBlobURL)(r)}));return(0,Zs.createBlock)("core/gallery",{},t)}}],to:[{type:"block",blocks:["core/image"],transform:({align:e},t)=>t.length>0?t.map(({attributes:{url:r,alt:o,caption:n,title:i,href:l,rel:s,linkClass:c,id:u,sizeSlug:m,linkDestination:p,linkTarget:d,anchor:f,className:h}})=>(0,Zs.createBlock)("core/image",{align:e,url:r,alt:o,caption:n,title:i,href:l,rel:s,linkClass:c,id:u,sizeSlug:m,linkDestination:p,linkTarget:d,anchor:f,className:h})):(0,Zs.createBlock)("core/image",{align:e})}]},_q=Iye;var{name:xq}=q5,kq={icon:U0,example:{attributes:{columns:2},innerBlocks:[{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}}]},transforms:_q,edit:vq,save:bq,deprecated:Z$},Nye=()=>N({name:xq,metadata:q5,settings:kq});var _N={};q(_N,{init:()=>Hye,metadata:()=>Y5,name:()=>J5,settings:()=>zq});var X5=a(P(),1);var xa=a(T(),1),fi=a(y(),1),gN=e=>{if(e.tagName||(e={...e,tagName:"div"}),!e.customTextColor&&!e.customBackgroundColor)return e;let t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);let{customTextColor:r,customBackgroundColor:o,...n}=e;return{...n,style:t}},Dye=[{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{__experimentalOnEnter:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0},save({attributes:{tagName:e}}){return(0,fi.jsx)(e,{...xa.useInnerBlocksProps.save(xa.useBlockProps.save())})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&e?.type!=="constrained",migrate:e=>{let{layout:t=null}=e;if(t?.inherit||t?.contentSize)return{...e,layout:{...t,type:"constrained"}}}},{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{radius:!0}},save({attributes:e}){let{tagName:t}=e;return(0,fi.jsx)(t,{...xa.useBlockProps.save(),children:(0,fi.jsx)("div",{className:"wp-block-group__inner-container",children:(0,fi.jsx)(xa.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:gN,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,textColor:o,customTextColor:n}=e,i=(0,xa.getColorClassName)("background-color",t),l=(0,xa.getColorClassName)("color",o),s=w(i,l,{"has-text-color":o||n,"has-background":t||r});return(0,fi.jsx)("div",{className:s,style:{backgroundColor:i?void 0:r,color:l?void 0:n},children:(0,fi.jsx)("div",{className:"wp-block-group__inner-container",children:(0,fi.jsx)(xa.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:gN,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,textColor:o,customTextColor:n}=e,i=(0,xa.getColorClassName)("background-color",t),l=(0,xa.getColorClassName)("color",o),s=w(i,{"has-text-color":o||n,"has-background":t||r});return(0,fi.jsx)("div",{className:s,style:{backgroundColor:i?void 0:r,color:l?void 0:n},children:(0,fi.jsx)("div",{className:"wp-block-group__inner-container",children:(0,fi.jsx)(xa.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:gN,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r}=e,o=(0,xa.getColorClassName)("background-color",t),n=w(o,{"has-background":t||r});return(0,fi.jsx)("div",{className:n,style:{backgroundColor:o?void 0:r},children:(0,fi.jsx)(xa.InnerBlocks.Content,{})})}}],wq=Dye;var K5=a(z(),1),gi=a(T(),1),Eq=a(H(),1),Iq=a(P(),1),Nq=a(L(),1);var Cq=a(z(),1),Sq=a(T(),1),vN=a(P(),1),Tq=a(G(),1),Nn=a(A(),1),hv=a(H(),1),In=a(y(),1),Lye=(e="group")=>({group:(0,In.jsx)(Nn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,In.jsx)(Nn.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),"group-row":(0,In.jsx)(Nn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,In.jsx)(Nn.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),"group-stack":(0,In.jsx)(Nn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,In.jsx)(Nn.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm0 17a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Z"})}),"group-grid":(0,In.jsx)(Nn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,In.jsx)(Nn.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10ZM0 27a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V27Z"})})})?.[e];function Pq({attributes:e={style:void 0,backgroundColor:void 0,textColor:void 0,fontSize:void 0},usedLayoutType:t="",hasInnerBlocks:r=!1}){let{style:o,backgroundColor:n,textColor:i,fontSize:l}=e,[s,c]=(0,hv.useState)(!r&&!n&&!l&&!i&&!o&&t!=="flex"&&t!=="grid");return(0,hv.useEffect)(()=>{(r||n||l||i||o||t==="flex")&&c(!1)},[n,l,i,o,t,r]),[s,c]}function Mye({name:e,onSelect:t}){let r=(0,Cq.useSelect)(n=>n(Tq.store).getBlockVariations(e,"block"),[e]),o=(0,Sq.useBlockProps)({className:"wp-block-group__placeholder"});return(0,hv.useEffect)(()=>{r&&r.length===1&&t(r[0])},[t,r]),(0,In.jsx)("div",{...o,children:(0,In.jsx)(Nn.Placeholder,{instructions:(0,vN.__)("Group blocks together. Select a layout:"),children:(0,In.jsx)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,vN.__)("Block variations"),children:r.map(n=>(0,In.jsx)("li",{children:(0,In.jsx)(Nn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:Lye(n.name),iconSize:48,onClick:()=>t(n),className:"wp-block-group-placeholder__variation-button",label:`${n.title}: ${n.description}`})},n.name))})})})}var Bq=Mye;var hi=a(y(),1),{HTMLElementControl:Aye}=Z(gi.privateApis);function Rye({tagName:e,onSelectTagName:t,clientId:r}){return(0,hi.jsx)(gi.InspectorControls,{group:"advanced",children:(0,hi.jsx)(Aye,{tagName:e,onChange:t,clientId:r,options:[{label:(0,Iq.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}]})})}function zye({attributes:e,name:t,setAttributes:r,clientId:o}){let{hasInnerBlocks:n,themeSupportsLayout:i}=(0,K5.useSelect)(k=>{let{getBlock:S,getSettings:C}=k(gi.store),E=S(o);return{hasInnerBlocks:!!(E&&E.innerBlocks.length),themeSupportsLayout:C()?.supportsLayout}},[o]),{tagName:l="div",templateLock:s,allowedBlocks:c,layout:u={}}=e,{type:m="default"}=u,p=i||m==="flex"||m==="grid",d=(0,Eq.useRef)(),f=(0,gi.useBlockProps)({ref:d}),[h,g]=Pq({attributes:e,usedLayoutType:m,hasInnerBlocks:n}),b;h?b=!1:n||(b=gi.InnerBlocks.ButtonBlockAppender);let v=(0,gi.useInnerBlocksProps)(p?f:{className:"wp-block-group__inner-container"},{dropZoneElement:d.current,templateLock:s,allowedBlocks:c,renderAppender:b}),{selectBlock:x}=(0,K5.useDispatch)(gi.store),_=k=>{r(k.attributes),x(o,-1),g(!1)};return(0,hi.jsxs)(hi.Fragment,{children:[(0,hi.jsx)(Rye,{tagName:l,onSelectTagName:k=>r({tagName:k}),clientId:o}),h&&(0,hi.jsxs)(Nq.View,{children:[v.children,(0,hi.jsx)(Bq,{name:t,onSelect:_})]}),p&&!h&&(0,hi.jsx)(l,{...v}),!p&&!h&&(0,hi.jsx)(l,{...f,children:(0,hi.jsx)("div",{...v})})]})}var Dq=zye;var Y5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/group",title:"Group",category:"design",description:"Gather blocks in a layout container.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{__experimentalOnEnter:!0,__experimentalOnMerge:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},dimensions:{minHeight:!0,minWidth:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},position:{sticky:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSizingOnChildren:!0},interactivity:{clientNavigation:!0},allowedBlocks:!0},editorStyle:"wp-block-group-editor",style:"wp-block-group"};var Q5=a(T(),1),Lq=a(y(),1);function Mq({attributes:{tagName:e}}){return(0,Lq.jsx)(e,{...Q5.useInnerBlocksProps.save(Q5.useBlockProps.save())})}var bN=a(G(),1),Fye={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){let t=["wide","full"],r=e.reduce((n,i)=>{let{align:l}=i.attributes;return t.indexOf(l)>t.indexOf(n)?l:n},void 0),o=e.map(n=>(0,bN.createBlock)(n.name,n.attributes,n.innerBlocks));return(0,bN.createBlock)("core/group",{align:r,layout:{type:"constrained"}},o)}}]},Aq=Fye;var ka=a(P(),1);var yN={innerBlocks:[{name:"core/paragraph",attributes:{content:(0,ka.__)("One.")}},{name:"core/paragraph",attributes:{content:(0,ka.__)("Two.")}},{name:"core/paragraph",attributes:{content:(0,ka.__)("Three.")}},{name:"core/paragraph",attributes:{content:(0,ka.__)("Four.")}},{name:"core/paragraph",attributes:{content:(0,ka.__)("Five.")}},{name:"core/paragraph",attributes:{content:(0,ka.__)("Six.")}}]},Oye=[{name:"group",title:(0,ka.__)("Group"),description:(0,ka.__)("Gather blocks in a container."),attributes:{layout:{type:"constrained"}},isDefault:!0,scope:["block","inserter","transform"],icon:yp},{name:"group-row",title:(0,ka._x)("Row","single horizontal line"),description:(0,ka.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:tB,example:yN},{name:"group-stack",title:(0,ka.__)("Stack"),description:(0,ka.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["block","inserter","transform"],isActive:["layout.type","layout.orientation"],icon:hB,example:yN},{name:"group-grid",title:(0,ka.__)("Grid"),description:(0,ka.__)("Arrange blocks in a grid."),attributes:{layout:{type:"grid"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:Nl,example:yN}],Rq=Oye;var{name:J5}=Y5,zq={icon:yp,example:{attributes:{layout:{type:"constrained",justifyContent:"center"},style:{spacing:{padding:{top:"4em",right:"3em",bottom:"4em",left:"3em"}}}},innerBlocks:[{name:"core/heading",attributes:{content:(0,X5.__)("La Mancha"),style:{typography:{textAlign:"center"}}}},{name:"core/paragraph",attributes:{style:{typography:{textAlign:"center"}},content:(0,X5.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}},{name:"core/spacer",attributes:{height:"10px"}},{name:"core/button",attributes:{text:(0,X5.__)("Read more")}}],viewportWidth:600},transforms:Aq,edit:Dq,save:Mq,deprecated:wq,variations:Rq},Hye=()=>N({name:J5,metadata:Y5,settings:zq});var SN={};q(SN,{init:()=>a2e,metadata:()=>a4,name:()=>i4,settings:()=>l4});var pm=a(P(),1),gh=a(G(),1);var Xa=a(T(),1);var Ks=a(y(),1),xN={className:!1,anchor:!0},e4={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},fh=e=>{if(!e.customTextColor)return e;let t={color:{text:e.customTextColor}},{customTextColor:r,...o}=e;return{...o,style:t}},Vq=["left","right","center"],hh=e=>{let{align:t,...r}=e;return Vq.includes(t)?{...r,textAlign:t}:e},jye={supports:xN,attributes:{...e4,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>ve(fh(hh(e))),save({attributes:e}){let{align:t,level:r,content:o,textColor:n,customTextColor:i}=e,l="h"+r,s=(0,Xa.getColorClassName)("color",n),c=w({[s]:s});return(0,Ks.jsx)(Xa.RichText.Content,{className:c||void 0,tagName:l,style:{textAlign:t,color:s?void 0:i},value:o})}},Uye={attributes:{...e4,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>ve(fh(hh(e))),save({attributes:e}){let{align:t,content:r,customTextColor:o,level:n,textColor:i}=e,l="h"+n,s=(0,Xa.getColorClassName)("color",i),c=w({[s]:s,[`has-text-align-${t}`]:t});return(0,Ks.jsx)(Xa.RichText.Content,{className:c||void 0,tagName:l,style:{color:s?void 0:o},value:r})},supports:xN},Gye={supports:xN,attributes:{...e4,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>ve(fh(hh(e))),save({attributes:e}){let{align:t,content:r,customTextColor:o,level:n,textColor:i}=e,l="h"+n,s=(0,Xa.getColorClassName)("color",i),c=w({[s]:s,"has-text-color":i||o,[`has-text-align-${t}`]:t});return(0,Ks.jsx)(Xa.RichText.Content,{className:c||void 0,tagName:l,style:{color:s?void 0:o},value:r})}},Wye={supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:{"core/heading/h1":"h1","core/heading/h2":"h2","core/heading/h3":"h3","core/heading/h4":"h4","core/heading/h5":"h5","core/heading/h6":"h6"},__unstablePasteTextInline:!0},attributes:e4,isEligible:({align:e})=>Vq.includes(e),migrate:e=>ve(fh(hh(e))),save({attributes:e}){let{align:t,content:r,level:o}=e,n="h"+o,i=w({[`has-text-align-${t}`]:t});return(0,Ks.jsx)(n,{...Xa.useBlockProps.save({className:i}),children:(0,Ks.jsx)(Xa.RichText.Content,{value:r})})}},$ye={supports:{align:["wide","full"],anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",role:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},save({attributes:e}){let{textAlign:t,content:r,level:o}=e,n="h"+o,i=w({[`has-text-align-${t}`]:t});return(0,Ks.jsx)(n,{...Xa.useBlockProps.save({className:i}),children:(0,Ks.jsx)(Xa.RichText.Content,{value:r})})},migrate:e=>ve(fh(hh(e)))},qye={supports:{align:["wide","full"],anchor:!0,className:!0,splitting:!0,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0,fitText:!0,__experimentalDefaultControls:{fontSize:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0}},attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",role:"content"},level:{type:"number",default:2},levelOptions:{type:"array"},placeholder:{type:"string"}},save({attributes:e}){let{textAlign:t,content:r,level:o}=e,n="h"+o,i=w({[`has-text-align-${t}`]:t});return(0,Ks.jsx)(n,{...Xa.useBlockProps.save({className:i}),children:(0,Ks.jsx)(Xa.RichText.Content,{value:r})})},migrate:e=>ve(fh(hh(e))),isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},Zye=[qye,$ye,Wye,Gye,Uye,jye],Fq=Zye;var Hq=a(P(),1),r4=a(H(),1),o4=a(z(),1),ad=a(T(),1);var Oq=a(sv(),1),kN={},Kye=e=>{let t=document.createElement("div");return t.innerHTML=e,t.innerText},Yye=e=>(0,Oq.default)(Kye(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),t4=(e,t)=>{let r=Yye(t);if(r==="")return null;delete kN[e];let o=r,n=0;for(;Object.values(kN).includes(o);)n+=1,o=r+"-"+n;return o},wN=(e,t)=>{kN[e]=t};var gv=a(y(),1);function Qye(e){let{attributes:t,setAttributes:r,mergeBlocks:o,onReplace:n,style:i,clientId:l}=e;Tt(e);let{content:s,level:c,placeholder:u,anchor:m}=t,p="h"+c,d=(0,ad.useBlockProps)({style:i}),{canGenerateAnchors:f}=(0,o4.useSelect)(b=>{let{getGlobalBlockCount:v,getSettings:x}=b(ad.store);return{canGenerateAnchors:!!x().generateAnchors||v("core/table-of-contents")>0}},[]),{__unstableMarkNextChangeAsNotPersistent:h}=(0,o4.useDispatch)(ad.store);return(0,r4.useEffect)(()=>{if(f)return!m&&s&&(h(),r({anchor:t4(l,s)})),wN(l,m),()=>wN(l,null)},[m,s,l,f]),(0,gv.jsx)(gv.Fragment,{children:(0,gv.jsx)(ad.RichText,{identifier:"content",tagName:p,value:s,onChange:b=>{let v={content:b};f&&(!m||!b||t4(l,s)===m)&&(v.anchor=t4(l,b)),r(v)},onMerge:o,onReplace:n,onRemove:()=>n([]),placeholder:u||(0,Hq.__)("Heading"),...r4.Platform.isNative&&{deleteEnter:!0},...d})})}var jq=Qye;var a4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"h1,h2,h3,h4,h5,h6",role:"content"},level:{type:"number",default:2},levelOptions:{type:"array"},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!0,splitting:!0,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0,fitText:!0,__experimentalDefaultControls:{fontSize:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"};var n4=a(T(),1),CN=a(y(),1);function Uq({attributes:e}){let{content:t,level:r}=e,o="h"+r;return(0,CN.jsx)(o,{...n4.useBlockProps.save(),children:(0,CN.jsx)(n4.RichText.Content,{value:t})})}var mm=a(G(),1);function Gq(e){return Number(e.substr(1))}var Jye={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(t=>{let{content:r,anchor:o,style:n}=t,i=n?.typography?.textAlign;return(0,mm.createBlock)("core/heading",{...Uc(t,"core/heading",({content:l})=>({content:l})),content:r,anchor:o,...i&&{style:{typography:{textAlign:i}}}})})},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:({phrasingContentSchema:e,isPaste:t})=>{let r={children:e,attributes:t?[]:["style","id"]};return{h1:r,h2:r,h3:r,h4:r,h5:r,h6:r}},transform(e){let t=(0,mm.getBlockAttributes)("core/heading",e.outerHTML),{textAlign:r}=e.style||{};return t.level=Gq(e.nodeName),(r==="left"||r==="center"||r==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:r}}),(0,mm.createBlock)("core/heading",t)}},...[1,2,3,4,5,6].map(e=>({type:"prefix",prefix:Array(e+1).join("#"),transform(t){return(0,mm.createBlock)("core/heading",{level:e,content:t})}})),...[1,2,3,4,5,6].map(e=>({type:"enter",regExp:new RegExp(`^/(h|H)${e}$`),transform:()=>(0,mm.createBlock)("core/heading",{level:e})}))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(t=>{let{content:r,style:o}=t,n=o?.typography?.textAlign;return(0,mm.createBlock)("core/paragraph",{...Uc(t,"core/paragraph",({content:i})=>({content:i})),content:r,...n&&{style:{typography:{textAlign:n}}}})})}]},Wq=Jye;var vv=a(P(),1);var e2e=[lT,cT,mT,dT,hT,vT],t2e=[...[1,2,3,4,5,6].map(e=>({name:`h${e}`,title:(0,vv.sprintf)((0,vv.__)("Heading %d"),e),description:(0,vv.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:e2e[e-1],attributes:{level:e},scope:["block","transform"],keywords:[`h${e}`],isActive:t=>t.level===e}))],$q=t2e;var{fieldsKey:r2e,formKey:o2e}=Z(gh.privateApis),{name:i4}=a4,l4={icon:yT,example:{attributes:{content:(0,pm.__)("Code is Poetry"),level:2,style:{typography:{textAlign:"center"}}}},__experimentalLabel(e,{context:t}){let{content:r,level:o}=e,n=e?.metadata?.name,i=r?.trim().length>0;if(t==="list-view"&&(n||i))return n||r;if(t==="breadcrumb"&&n)return n;if(t==="accessibility")return i?(0,pm.sprintf)((0,pm.__)("Level %1$s. %2$s"),o,r):(0,pm.sprintf)((0,pm.__)("Level %s. Empty."),o)},transforms:Wq,deprecated:Fq,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:jq,save:Uq,variations:$q};window.__experimentalContentOnlyInspectorFields&&(l4[r2e]=[{id:"content",label:(0,pm.__)("Content"),type:"text",Edit:"rich-text"}],l4[o2e]={fields:["content"]});var a2e=()=>{let e=N({name:i4,metadata:a4,settings:l4}),t=(0,gh.getBlockType)(i4)?.attributes?.levelOptions?.default;return t&&[1,2,3,4,5,6].forEach(r=>{t.includes(r)||(0,gh.unregisterBlockVariation)(i4,`h${r}`)}),e};var TN={};q(TN,{init:()=>l2e,metadata:()=>s4,name:()=>eZ,settings:()=>tZ});var Jq=a(P(),1);var s4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/home-link",category:"design",parent:["core/navigation"],title:"Home Link",description:"Create a link that always points to the homepage of the site. Usually not necessary if there is already a site title link present in the header.",textdomain:"default",attributes:{label:{type:"string",role:"content"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","fontSize","customFontSize","style"],supports:{anchor:!0,reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-home-link-editor",style:"wp-block-home-link"};var m4=a(T(),1),c4=a(P(),1),qq=a(z(),1),Zq=a(Y(),1),u4=a(y(),1),i2e=e=>e.preventDefault();function Kq({attributes:e,setAttributes:t,context:r}){let o=(0,qq.useSelect)(c=>c(Zq.store).getEntityRecord("root","__unstableBase")?.home,[]),{textColor:n,backgroundColor:i,style:l}=r,s=(0,m4.useBlockProps)({className:w("wp-block-navigation-item",{"has-text-color":!!n||!!l?.color?.text,[`has-${n}-color`]:!!n,"has-background":!!i||!!l?.color?.background,[`has-${i}-background-color`]:!!i}),style:{color:l?.color?.text,backgroundColor:l?.color?.background}});return(0,u4.jsx)("div",{...s,children:(0,u4.jsx)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:o,onClick:i2e,children:(0,u4.jsx)(m4.RichText,{identifier:"label",className:"wp-block-home-link__label",value:e.label??(0,c4.__)("Home"),onChange:c=>{t({label:c})},"aria-label":(0,c4.__)("Home link text"),placeholder:(0,c4.__)("Add home link"),withoutInteractiveFormatting:!0})})})}var Yq=a(T(),1),Qq=a(y(),1);function Xq(){return(0,Qq.jsx)(Yq.InnerBlocks.Content,{})}var{name:eZ}=s4,tZ={icon:xT,edit:Kq,save:Xq,example:{attributes:{label:(0,Jq._x)("Home Link","block example")}}},l2e=()=>N({name:eZ,metadata:s4,settings:tZ});var EN={};q(EN,{init:()=>m2e,metadata:()=>f4,name:()=>bZ,settings:()=>yZ});var vZ=a(P(),1);var bh=a(P(),1),cZ=a(H(),1),fm=a(T(),1),os=a(A(),1);var rZ=a(H(),1),p4=a(T(),1),oZ=a(A(),1),aZ=a(z(),1),nZ=a(P(),1),nd=a(y(),1),s2e=` |
| 19 |
html,body,:root { |
| 20 |
margin: 0 !important; |
| 21 |
padding: 0 !important; |
| 22 |
overflow: visible !important; |
| 23 |
min-height: auto !important; |
| 24 |
} |
| 25 |
`;function d4({content:e,isSelected:t}){let r=(0,aZ.useSelect)(n=>n(p4.store).getSettings().styles,[]),o=(0,rZ.useMemo)(()=>[s2e,...(0,p4.transformStyles)((r??[]).filter(n=>n.css))],[r]);return(0,nd.jsxs)(nd.Fragment,{children:[(0,nd.jsx)(oZ.SandBox,{html:e,styles:o,title:(0,nZ.__)("Custom HTML Preview"),tabIndex:-1}),!t&&(0,nd.jsx)("div",{className:"block-library-html__preview-overlay"})]})}var vi=a(P(),1),bv=a(H(),1),lZ=a(z(),1),Xo=a(A(),1),vh=a(T(),1);var sZ=a(pe(),1);function iZ(e=""){if(!e||!e.trim())return{html:"",css:"",js:""};let t=document.implementation.createHTMLDocument("");t.body.innerHTML=e;let r=t.body.querySelector('style[data-wp-block-html="css"]'),o=r?r.textContent.trim():"";r&&r.remove();let n=t.body.querySelector('script[data-wp-block-html="js"]'),i=n?n.textContent.trim():"";return n&&n.remove(),{html:t.body.innerHTML.trim(),css:o,js:i}}function PN({html:e="",css:t="",js:r=""}){let o=[];return t.trim()&&o.push(`<style data-wp-block-html="css"> |
| 26 |
${t} |
| 27 |
</style>`),r.trim()&&o.push(`<script data-wp-block-html="js"> |
| 28 |
${r} |
| 29 |
<\/script>`),e.trim()&&o.push(e),o.join(` |
| 30 |
|
| 31 |
`)}var Pt=a(y(),1),{Tabs:dm}=Z(Xo.privateApis);function BN({isOpen:e,onRequestClose:t,content:r,setAttributes:o}){let{html:n,css:i,js:l}=iZ(r),[s,c]=(0,bv.useState)(n),[u,m]=(0,bv.useState)(i),[p,d]=(0,bv.useState)(l),[f,h]=(0,bv.useState)(!1),g=(0,sZ.useViewportMatch)("small","<"),{canUserUseUnfilteredHTML:b}=(0,lZ.useSelect)(S=>({canUserUseUnfilteredHTML:S(vh.store).getSettings().__experimentalCanUserUseUnfilteredHTML}),[]),v=!b&&(i.trim()||l.trim());if(!e)return null;let x=()=>{o({content:PN({html:s,css:b?u:"",js:b?p:""})})},_=()=>{x(),t()},k=()=>{h(S=>!S)};return(0,Pt.jsx)(Pt.Fragment,{children:(0,Pt.jsx)(Xo.Modal,{title:(0,vi.__)("Edit HTML"),onRequestClose:t,className:"block-library-html__modal",size:"large",isDismissible:!1,shouldCloseOnClickOutside:!1,isFullScreen:f,__experimentalHideHeader:!0,children:(0,Pt.jsx)(dm,{orientation:"horizontal",defaultTabId:"html",children:(0,Pt.jsxs)(Xo.__experimentalVStack,{expanded:!0,children:[(0,Pt.jsxs)(Xo.__experimentalHStack,{justify:"space-between",className:"block-library-html__modal-header",children:[(0,Pt.jsx)("div",{children:(0,Pt.jsxs)(dm.TabList,{children:[(0,Pt.jsx)(dm.Tab,{tabId:"html",children:"HTML"}),b&&(0,Pt.jsx)(dm.Tab,{tabId:"css",children:"CSS"}),b&&(0,Pt.jsx)(dm.Tab,{tabId:"js",children:(0,vi.__)("JavaScript")})]})}),!g&&(0,Pt.jsx)("div",{children:(0,Pt.jsx)(Xo.Button,{__next40pxDefaultSize:!0,icon:f?dB:bp,label:(0,vi.__)("Enable/disable fullscreen"),onClick:k,variant:"tertiary"})})]}),v&&(0,Pt.jsx)(Xo.Notice,{status:"warning",isDismissible:!1,className:"block-library-html__modal-notice",children:(0,vi.__)("This block contains CSS or JavaScript that will be removed when you save because you do not have permission to use unfiltered HTML.")}),(0,Pt.jsxs)(Xo.Flex,{direction:g?"column":"row",className:"block-library-html__modal-tabs",align:"stretch",gap:8,children:[(0,Pt.jsxs)("div",{className:"block-library-html__modal-content",children:[(0,Pt.jsx)(dm.TabPanel,{tabId:"html",focusable:!1,className:"block-library-html__modal-tab",children:(0,Pt.jsx)(vh.PlainText,{value:s,onChange:c,placeholder:(0,vi.__)("Write HTML\u2026"),"aria-label":(0,vi.__)("HTML"),className:"block-library-html__modal-editor"})}),b&&(0,Pt.jsx)(dm.TabPanel,{tabId:"css",focusable:!1,className:"block-library-html__modal-tab",children:(0,Pt.jsx)(vh.PlainText,{value:u,onChange:m,placeholder:(0,vi.__)("Write CSS\u2026"),"aria-label":(0,vi.__)("CSS"),className:"block-library-html__modal-editor"})}),b&&(0,Pt.jsx)(dm.TabPanel,{tabId:"js",focusable:!1,className:"block-library-html__modal-tab",children:(0,Pt.jsx)(vh.PlainText,{value:p,onChange:d,placeholder:(0,vi.__)("Write JavaScript\u2026"),"aria-label":(0,vi.__)("JavaScript"),className:"block-library-html__modal-editor"})})]}),(0,Pt.jsx)("div",{className:"block-library-html__preview",children:(0,Pt.jsx)(d4,{content:PN({html:s,css:u,js:p})})})]}),(0,Pt.jsxs)(Xo.__experimentalHStack,{alignment:"center",justify:"flex-end",spacing:4,className:"block-library-html__modal-footer",children:[(0,Pt.jsx)(Xo.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,vi.__)("Cancel")}),(0,Pt.jsx)(Xo.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:_,children:(0,vi.__)("Update")})]})]})})})})}var wa=a(y(),1);function uZ({attributes:e,setAttributes:t,isSelected:r}){let[o,n]=(0,cZ.useState)(!1),i=(0,fm.useBlockProps)({className:"block-library-html__edit"});return e.content?.trim()?(0,wa.jsxs)("div",{...i,children:[(0,wa.jsx)(fm.BlockControls,{children:(0,wa.jsx)(os.ToolbarGroup,{children:(0,wa.jsx)(os.ToolbarButton,{onClick:()=>n(!0),children:(0,bh.__)("Edit code")})})}),(0,wa.jsx)(fm.InspectorControls,{children:(0,wa.jsx)(os.__experimentalVStack,{className:"block-editor-block-inspector-edit-contents",expanded:!0,children:(0,wa.jsx)(os.Button,{className:"block-editor-block-inspector-edit-contents__button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>n(!0),children:(0,bh.__)("Edit code")})})}),(0,wa.jsx)(d4,{content:e.content,isSelected:r}),(0,wa.jsx)(BN,{isOpen:o,onRequestClose:()=>n(!1),content:e.content,setAttributes:t})]}):(0,wa.jsxs)("div",{...i,children:[(0,wa.jsx)(os.Placeholder,{icon:(0,wa.jsx)(fm.BlockIcon,{icon:E0}),label:(0,bh.__)("Custom HTML"),instructions:(0,bh.__)("Add custom HTML code and preview how it looks."),children:(0,wa.jsx)(os.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>n(!0),children:(0,bh.__)("Edit HTML")})}),(0,wa.jsx)(BN,{isOpen:o,onRequestClose:()=>n(!1),content:e.content,setAttributes:t})]})}var f4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/html",title:"Custom HTML",category:"widgets",description:"Add custom HTML code and preview it as you edit.",keywords:["embed"],textdomain:"default",attributes:{content:{type:"string",source:"raw",role:"content"}},supports:{customClassName:!1,className:!1,html:!1,interactivity:{clientNavigation:!0},customCSS:!1,visibility:!1},editorStyle:"wp-block-html-editor"};var mZ=a(H(),1),pZ=a(y(),1);function dZ({attributes:e}){return(0,pZ.jsx)(mZ.RawHTML,{children:e.content})}var fZ=a(G(),1),hZ=a(Qu(),1),u2e={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>(0,fZ.createBlock)("core/html",{content:(0,hZ.create)({html:e}).text})}]},gZ=u2e;var{name:bZ}=f4,yZ={icon:wT,example:{attributes:{content:"<marquee>"+(0,vZ.__)("Welcome to the wonderful world of blocks\u2026")+"</marquee>"}},edit:uZ,save:dZ,transforms:gZ},m2e=()=>N({name:bZ,metadata:f4,settings:yZ});var LN={};q(LN,{init:()=>v2e,metadata:()=>g4,name:()=>IZ,settings:()=>NZ});var Qs=a(P(),1),bi=a(A(),1),Jo=a(T(),1),SZ=a(H(),1),xh=a(L(),1),TZ=a(z(),1),PZ=a(Y(),1);var wZ=a(P(),1),h4=a(A(),1),_h=a(H(),1),CZ=a(pe(),1);var IN=a(P(),1),_Z=a(A(),1);var Ys=a(y(),1);function xZ({icons:e,onChange:t,attributes:r}){return(0,Ys.jsx)("div",{className:"wp-block-icon__inserter-grid",children:e?.length?(0,Ys.jsx)("div",{className:"wp-block-icon__inserter-grid-icons-list","aria-label":(0,IN.__)("Icon library"),children:e.map(o=>(0,Ys.jsxs)(_Z.Button,{className:"wp-block-icon__inserter-grid-icons-list-item",onClick:()=>t(o.name),variant:o.name===r?.icon?"primary":void 0,__next40pxDefaultSize:!0,children:[(0,Ys.jsx)("span",{className:"wp-block-icon__inserter-grid-icons-list-item-icon",children:(0,Ys.jsx)(no,{html:o.content,wrapperProps:{style:{width:"24px"}}})}),(0,Ys.jsx)("span",{className:"wp-block-icon__inserter-grid-icons-list-item-title",children:o.label})]},o.name))}):(0,Ys.jsx)("div",{className:"wp-block-icon__inserter-grid-no-results",children:(0,Ys.jsx)("p",{children:(0,IN.__)("No results found.")})})})}var kZ=a(sv(),1);function yh(e=""){return e=(0,kZ.default)(e),e=e.trim().toLowerCase(),e}function p2e(e,t){let r=yh(t),o=yh(e.title),n=0;return r===o?n+=30:o.startsWith(r)?n+=20:r.split(" ").every(s=>o.includes(s))&&(n+=10),n}function yv(e=[],t=""){if(!t)return e;let r=e.map(o=>[o,p2e(o,t)]).filter(([,o])=>o>0);return r.sort(([,o],[,n])=>n-o),r.map(([o])=>o)}var id=a(y(),1);function NN({icons:e=[],setInserterOpen:t,attributes:r,setAttributes:o}){let[n,i]=(0,_h.useState)(""),l=(0,CZ.useDebounce)(i,300),s=(0,_h.useCallback)(u=>{o({icon:u}),t(!1)},[o,t]),c=(0,_h.useMemo)(()=>{if(n){let u=yh(n);return e.filter(m=>{let p=yh(m.name),d=yh(m.label);return p.includes(u)||d.includes(u)})}return e},[n,e]);return(0,id.jsx)(h4.Modal,{className:"wp-block-icon__inserter-modal",title:(0,wZ.__)("Icon library"),onRequestClose:()=>t(!1),isFullScreen:!0,children:(0,id.jsxs)("div",{className:"wp-block-icon__inserter",children:[(0,id.jsx)("div",{className:"wp-block-icon__inserter-header",children:(0,id.jsx)(h4.SearchControl,{value:n,onChange:l})}),(0,id.jsx)(xZ,{icons:c,onChange:s,attributes:r})]})})}var tr=a(y(),1),d2e=({className:e,style:t})=>(0,tr.jsxs)(xh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none",fill:"none","aria-hidden":"true",className:w("wp-block-icon__placeholder",e),style:t,children:[(0,tr.jsx)(xh.Rect,{width:"60",height:"60",fill:"currentColor",fillOpacity:.1}),(0,tr.jsx)(xh.Path,{vectorEffect:"non-scaling-stroke",stroke:"currentColor",strokeOpacity:.25,d:"M60 60 0 0"})]});function f2e({attributes:e,setAttributes:t}){let{icon:r,ariaLabel:o}=e,[n,i]=(0,SZ.useState)(!1),l=(0,Jo.useBlockEditingMode)()==="contentOnly",s=(0,Jo.__experimentalUseColorProps)(e),c=(0,Jo.__experimentalGetSpacingClassesAndStyles)(e),u=(0,Jo.__experimentalUseBorderProps)(e),m=(0,Jo.getDimensionsClassesAndStyles)(e),{selectedIcon:p,allIcons:d=[]}=(0,TZ.useSelect)(v=>{let{getEntityRecord:x,getEntityRecords:_}=v(PZ.store);return{selectedIcon:r?x("root","icon",r):null,allIcons:n?_("root","icon"):void 0}},[n,r]),f=p?.content||"",h=(0,tr.jsxs)(tr.Fragment,{children:[(0,tr.jsx)(Jo.BlockControls,{group:l?"inline":"other",children:(0,tr.jsx)(bi.ToolbarButton,{onClick:()=>{i(!0)},children:r?(0,Qs.__)("Replace"):(0,Qs.__)("Choose icon")})}),l&&r&&(0,tr.jsx)(Jo.BlockControls,{group:"other",children:(0,tr.jsx)(bi.ToolbarGroup,{className:"components-toolbar-group",children:(0,tr.jsx)(bi.DropdownMenu,{icon:"",popoverProps:{className:"is-alternate"},text:(0,Qs.__)("Label"),children:()=>(0,tr.jsx)(bi.TextControl,{className:"wp-block-icon__toolbar-content",label:(0,Qs.__)("Label"),value:o||"",onChange:v=>t({ariaLabel:v}),help:(0,Qs.__)("Briefly describe the icon to help screen reader users. Leave blank for decorative icons."),__next40pxDefaultSize:!0})})})})]}),g=$(),b=r&&(0,tr.jsx)(tr.Fragment,{children:(0,tr.jsx)(Jo.InspectorControls,{group:"settings",children:(0,tr.jsx)(bi.__experimentalToolsPanel,{label:(0,Qs.__)("Settings"),resetAll:()=>t({ariaLabel:void 0}),dropdownMenuProps:g,children:(0,tr.jsx)(bi.__experimentalToolsPanelItem,{label:(0,Qs.__)("Label"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>t({ariaLabel:void 0}),children:(0,tr.jsx)(bi.TextControl,{label:(0,Qs.__)("Label"),help:(0,Qs.__)("Briefly describe the icon to help screen reader users. Leave blank for decorative icons."),value:o||"",onChange:v=>t({ariaLabel:v}),__next40pxDefaultSize:!0})})})})});return(0,tr.jsxs)(tr.Fragment,{children:[h,b,(0,tr.jsx)("div",{...(0,Jo.useBlockProps)(),children:r?(0,tr.jsx)(no,{html:f,wrapperProps:{className:w(s.className,u.className,c.className,m.className),style:{...s.style,...u.style,...c.style,...m.style}}}):(0,tr.jsx)(d2e,{className:w(u.className,c.className,m.className),style:{...u.style,...c.style,...m.style,height:"auto"}})}),n&&(0,tr.jsx)(NN,{icons:d,setInserterOpen:i,attributes:e,setAttributes:t})]})}var BZ=f2e;var g4={apiVersion:3,$schema:"https://schemas.wp.org/trunk/block.json",name:"core/icon",title:"Icon",category:"media",description:"Insert an SVG icon.",keywords:["icon","svg"],textdomain:"default",attributes:{icon:{type:"string",role:"content"}},supports:{anchor:!0,ariaLabel:{__experimentalSkipSerialization:!0},align:["left","center","right"],html:!1,color:{background:!0,text:!0,__experimentalSkipSerialization:!0},interactivity:{clientNavigation:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!1,radius:!1,style:!1,width:!1}},spacing:{padding:!0,margin:!0,__experimentalSkipSerialization:["padding"],__experimentalDefaultControls:{margin:!1,padding:!1}},dimensions:{width:!0,__experimentalSkipSerialization:["width"],__experimentalDefaultControls:{width:!0}}},selectors:{root:".wp-block-icon svg",css:".wp-block-icon",spacing:{margin:".wp-block-icon"}},style:"wp-block-icon",editorStyle:"wp-block-icon-editor"};var v4=a(A(),1),DN=a(y(),1),g2e=(0,DN.jsx)(v4.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:(0,DN.jsx)(v4.Path,{d:"M6 9.5h3.5V6H6v3.5Zm5 .5a1 1 0 0 1-.898.995L10 11H5.5l-.103-.005a1 1 0 0 1-.892-.893L4.5 10V5.5a1 1 0 0 1 1-1H10a1 1 0 0 1 1 1V10ZM18.25 7.75a2 2 0 1 0-4 0 2 2 0 0 0 4 0Zm1.5 0a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM6.88 13.535a1 1 0 0 1 1.74 0l2.534 4.472a1 1 0 0 1-.87 1.493H5.216a1 1 0 0 1-.87-1.493l2.534-4.472ZM6.074 18h3.352L7.75 15.041l-1.676 2.96ZM14.952 13h2.596a1 1 0 0 1 .866.5l1.298 2.25a1 1 0 0 1 0 1L18.414 19l-.074.11a1 1 0 0 1-.792.39h-2.596a1 1 0 0 1-.792-.39l-.074-.11-1.298-2.25a1.001 1.001 0 0 1 0-1l1.298-2.25a1 1 0 0 1 .866-.5Zm-.72 3.25 1.01 1.75h2.017l1.009-1.75-1.01-1.75h-2.017l-1.01 1.75Z"})}),EZ=g2e;var{name:IZ}=g4,NZ={icon:EZ,example:{attributes:{icon:"core/audio",style:{dimensions:{width:"48px"}}}},edit:BZ},v2e=()=>N({name:IZ,metadata:g4,settings:NZ});var HN={};q(HN,{init:()=>G2e,metadata:()=>S4,name:()=>cK,settings:()=>P4});var sd=a(P(),1);var sK=a(G(),1);var bt=a(T(),1),De=a(y(),1),b2e={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,width:l,height:s}=e,u=(0,De.jsx)("img",{src:t,alt:r,...l||s?{width:l,height:s}:{}}),m={};return l?m={width:l}:(n==="left"||n==="right")&&(m={maxWidth:"50%"}),(0,De.jsxs)("figure",{className:n?`align${n}`:null,style:m,children:[i?(0,De.jsx)("a",{href:i,children:u}):u,!bt.RichText.isEmpty(o)&&(0,De.jsx)(bt.RichText.Content,{tagName:"figcaption",value:o})]})}},y2e={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,width:l,height:s,id:c}=e,u=(0,De.jsx)("img",{src:t,alt:r,className:c?`wp-image-${c}`:null,width:l,height:s});return(0,De.jsxs)("figure",{className:n?`align${n}`:null,children:[i?(0,De.jsx)("a",{href:i,children:u}):u,!bt.RichText.isEmpty(o)&&(0,De.jsx)(bt.RichText.Content,{tagName:"figcaption",value:o})]})}},_2e={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"}},save({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,width:l,height:s,id:c}=e,u=w({[`align${n}`]:n,"is-resized":l||s}),m=(0,De.jsx)("img",{src:t,alt:r,className:c?`wp-image-${c}`:null,width:l,height:s});return(0,De.jsxs)("figure",{className:u,children:[i?(0,De.jsx)("a",{href:i,children:m}):m,!bt.RichText.isEmpty(o)&&(0,De.jsx)(bt.RichText.Content,{tagName:"figcaption",value:o})]})}},x2e={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0},save({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,rel:l,linkClass:s,width:c,height:u,id:m,linkTarget:p,sizeSlug:d,title:f}=e,h=l||void 0,g=w({[`align${n}`]:n,[`size-${d}`]:d,"is-resized":c||u}),b=(0,De.jsx)("img",{src:t,alt:r,className:m?`wp-image-${m}`:null,width:c,height:u,title:f}),v=(0,De.jsxs)(De.Fragment,{children:[i?(0,De.jsx)("a",{className:s,href:i,target:p,rel:h,children:b}):b,!bt.RichText.isEmpty(o)&&(0,De.jsx)(bt.RichText.Content,{tagName:"figcaption",value:o})]});return n==="left"||n==="right"||n==="center"?(0,De.jsx)("div",{...bt.useBlockProps.save(),children:(0,De.jsx)("figure",{className:g,children:v})}):(0,De.jsx)("figure",{...bt.useBlockProps.save({className:g}),children:v})}},k2e={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{__experimentalDuotone:"img",text:!1,background:!1},__experimentalBorder:{radius:!0,__experimentalDefaultControls:{radius:!0}},__experimentalStyle:{spacing:{margin:"0 0 1em 0"}}},save({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,rel:l,linkClass:s,width:c,height:u,id:m,linkTarget:p,sizeSlug:d,title:f}=e,h=l||void 0,g=w({[`align${n}`]:n,[`size-${d}`]:d,"is-resized":c||u}),b=(0,De.jsx)("img",{src:t,alt:r,className:m?`wp-image-${m}`:null,width:c,height:u,title:f}),v=(0,De.jsxs)(De.Fragment,{children:[i?(0,De.jsx)("a",{className:s,href:i,target:p,rel:h,children:b}):b,!bt.RichText.isEmpty(o)&&(0,De.jsx)(bt.RichText.Content,{tagName:"figcaption",value:o})]});return(0,De.jsx)("figure",{...bt.useBlockProps.save({className:g}),children:v})}},w2e={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate(e){let{height:t,width:r}=e;return{...e,width:typeof r=="number"?`${r}px`:r,height:typeof t=="number"?`${t}px`:t}},save({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,id:d,linkTarget:f,sizeSlug:h,title:g}=e,b=l||void 0,v=(0,bt.__experimentalGetBorderClassesAndStyles)(e),x=w({[`align${n}`]:n,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!v.className||v.style&&Object.keys(v.style).length>0}),_=w(v.className,{[`wp-image-${d}`]:!!d}),k=(0,De.jsx)("img",{src:t,alt:r,className:_||void 0,style:{...v.style,aspectRatio:m,objectFit:p},width:c,height:u,title:g}),S=(0,De.jsxs)(De.Fragment,{children:[i?(0,De.jsx)("a",{className:s,href:i,target:f,rel:b,children:k}):k,!bt.RichText.isEmpty(o)&&(0,De.jsx)(bt.RichText.Content,{className:(0,bt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,De.jsx)("figure",{...bt.useBlockProps.save({className:x}),children:S})}},C2e={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate({width:e,height:t,...r}){return{...r,width:`${e}px`,height:`${t}px`}},save({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,id:d,linkTarget:f,sizeSlug:h,title:g}=e,b=l||void 0,v=(0,bt.__experimentalGetBorderClassesAndStyles)(e),x=w({[`align${n}`]:n,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!v.className||v.style&&Object.keys(v.style).length>0}),_=w(v.className,{[`wp-image-${d}`]:!!d}),k=(0,De.jsx)("img",{src:t,alt:r,className:_||void 0,style:{...v.style,aspectRatio:m,objectFit:p,width:c,height:u},width:c,height:u,title:g}),S=(0,De.jsxs)(De.Fragment,{children:[i?(0,De.jsx)("a",{className:s,href:i,target:f,rel:b,children:k}):k,!bt.RichText.isEmpty(o)&&(0,De.jsx)(bt.RichText.Content,{className:(0,bt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,De.jsx)("figure",{...bt.useBlockProps.save({className:x}),children:S})}},S2e={attributes:{align:{type:"string"},behaviors:{type:"object"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate({width:e,height:t,...r}){if(!r.behaviors?.lightbox)return r;let{behaviors:{lightbox:{enabled:o}}}=r,n={...r,lightbox:{enabled:o}};return delete n.behaviors,n},isEligible(e){return!!e.behaviors},save({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,id:d,linkTarget:f,sizeSlug:h,title:g}=e,b=l||void 0,v=(0,bt.__experimentalGetBorderClassesAndStyles)(e),x=w({[`align${n}`]:n,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!v.className||v.style&&Object.keys(v.style).length>0}),_=w(v.className,{[`wp-image-${d}`]:!!d}),k=(0,De.jsx)("img",{src:t,alt:r,className:_||void 0,style:{...v.style,aspectRatio:m,objectFit:p,width:c,height:u},title:g}),S=(0,De.jsxs)(De.Fragment,{children:[i?(0,De.jsx)("a",{className:s,href:i,target:f,rel:b,children:k}):k,!bt.RichText.isEmpty(o)&&(0,De.jsx)(bt.RichText.Content,{className:(0,bt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,De.jsx)("figure",{...bt.useBlockProps.save({className:x}),children:S})}},DZ=[S2e,C2e,w2e,k2e,x2e,_2e,y2e,b2e];var Ch=a(Br(),1),_v=a(G(),1),eK=a(A(),1),ld=a(z(),1),en=a(T(),1),hm=a(H(),1),Xs=a(P(),1);var tK=a(yr(),1),rK=a(pe(),1),C4=a(ir(),1),oK=a(MZ(),1);var $Z=a(Br(),1),Ae=a(A(),1),wh=a(pe(),1),Jc=a(z(),1),Bt=a(T(),1),Cr=a(H(),1),Be=a(P(),1),VN=a(ir(),1),kh=a(G(),1);var qZ=a(yr(),1),w4=a(Y(),1);var Ja=a(A(),1),b4=a(T(),1),AZ=a(Jn(),1),RZ=a(H(),1),MN=a(P(),1),zZ=a(z(),1);var VZ=a(ir(),1),Dn=a(y(),1),T2e=e=>{window.requestAnimationFrame(()=>{let[t]=AZ.focus.tabbable.find(e?.current);t&&t.focus()})};function AN({url:e,filename:t,itemGroupProps:r,className:o,label:n}){return(0,Dn.jsx)(Ja.__experimentalItemGroup,{...r,as:"span",children:(0,Dn.jsxs)(Ja.__experimentalHStack,{justify:"flex-start",children:[(0,Dn.jsx)("span",{className:"block-library-utils__media-control__inspector-image-indicator",style:{backgroundImage:e?`url(${e})`:void 0}}),(0,Dn.jsx)(Ja.FlexBlock,{children:(0,Dn.jsx)(Ja.__experimentalTruncate,{numberOfLines:1,className:o,children:t??n})})]})})}function y4({mediaId:e,mediaUrl:t,filename:r,allowedTypes:o,onSelect:n,onSelectURL:i,onError:l,onReset:s,isUploading:c=!1,emptyLabel:u=(0,MN.__)("Media")}){let{getSettings:m}=(0,zZ.useSelect)(b4.store),p=f=>{let{mediaUpload:h}=m();h&&h({allowedTypes:o,filesList:f,onFileChange([g]){n(g)},onError:l,multiple:!1})},d=(0,RZ.useRef)();return(0,Dn.jsxs)("div",{ref:d,className:"block-library-utils__media-control",children:[(0,Dn.jsx)(b4.MediaReplaceFlow,{className:"block-library-utils__media-control__replace-flow",mediaId:e,mediaURL:t,allowedTypes:o,onSelect:n,onSelectURL:i,onError:l,name:(0,Dn.jsx)(AN,{url:t,filename:r,className:"block-library-utils__media-control__inspector-media-replace-title",label:t&&(0,VZ.getFilename)(r)||u}),renderToggle:f=>(0,Dn.jsx)(Ja.Button,{...f,__next40pxDefaultSize:!0,children:c?(0,Dn.jsx)(Ja.Spinner,{}):f.children}),onReset:s}),t&&s&&(0,Dn.jsx)(Ja.Button,{label:(0,MN.__)("Reset"),className:"block-library-utils__media-control__reset",size:"small",icon:QP,onClick:()=>{s(),T2e(d)}}),(0,Dn.jsx)(Ja.DropZone,{onFilesDrop:p})]})}var _4=a(Y(),1),x4=a(T(),1),jZ=a(Jn(),1),k4=a(z(),1),al=a(H(),1);function FZ(e){return typeof e!="string"||!(0,jZ.__unstableStripHTML)(e).trim()?"":e.replace(/\n/g,"<br>")}function P2e(e){let t=e?.caption;if(typeof t=="string")return FZ(t);if(t&&typeof t=="object"&&Object.hasOwn(t,"raw"))return FZ(t.raw)}function zN(e){return{alt:typeof e?.alt_text=="string"?e.alt_text:e?.alt||"",caption:P2e(e)}}function OZ(e){return e||""}function B2e(e,t,r){if(!t||!r)return{};let o=zN(t),n=zN(r),i={},l=OZ(e.alt);o.alt!==n.alt&&(l===o.alt||!l)&&(i.alt=n.alt);let s=OZ(e.caption);return o.caption!==void 0&&n.caption!==void 0&&o.caption!==n.caption&&(s===o.caption||!s)&&(i.caption=n.caption||void 0),i}var{openMediaEditorModalKey:E2e}=Z(x4.privateApis),RN={context:"edit"};function I2e({alt:e,caption:t}){let r={};return e||(r.alt_text=""),t?.toString()||(r.caption=""),Object.keys(r).length?r:void 0}function HZ(e){if(!e)return!1;let t=typeof e.alt_text=="string"||typeof e.alt=="string",r=zN(e).caption!==void 0;return t&&r}function UZ({attributes:e,setAttributes:t}){let{id:r,url:o,alt:n,caption:i}=e,l=(0,k4.useRegistry)(),s=(0,k4.useSelect)(b=>b(x4.store).getSettings()[E2e],[]),c=(0,al.useRef)({alt:n,caption:i?.toString()}),u=(0,al.useRef)(),m=(0,al.useRef)(0);(0,al.useEffect)(()=>{c.current={alt:n,caption:i?.toString()}},[n,i]);let p=(0,al.useCallback)(b=>{let{getEditedEntityRecord:v,getEntityRecord:x}=l.select(_4.store);return v("postType","attachment",b)||x("postType","attachment",b,RN)||x("postType","attachment",b)},[l]),d=(0,al.useCallback)(async b=>{let v=l.resolveSelect(_4.store);try{return await v.getEntityRecord("postType","attachment",b,RN)||await v.getEntityRecord("postType","attachment",b)}catch{return}},[l]),f=(0,al.useCallback)(async b=>{let{invalidateResolution:v}=l.dispatch(_4.store);return v("getEntityRecord",["postType","attachment",b]),v("getEntityRecord",["postType","attachment",b,RN]),d(b)},[l,d]),h=(0,al.useCallback)(async({id:b,url:v})=>{if(typeof b!="number")return;let x=u.current;u.current=void 0;let _=++m.current,k={};if(b!==r&&(k.id=b,k.url=v??o),x){let S=await f(b);if(_!==m.current)return;let C=B2e(c.current,x,S);Object.keys(C).length&&(Object.assign(k,C),c.current={...c.current,...C})}Object.keys(k).length&&t(k)},[r,f,t,o]),g=(0,al.useCallback)(async()=>{if(!r||!s)return;let b=p(r),v=I2e(c.current),x=HZ(b)?void 0:await d(r);u.current=x||(HZ(b)?b:v)||b,s({id:r,onUpdate:h})},[p,h,r,s,d]);return r&&s?g:void 0}var re=a(y(),1),{DimensionsTool:GZ,ResolutionTool:N2e,mediaEditKey:D2e}=Z(Bt.privateApis),L2e=[{value:"cover",label:(0,Be._x)("Cover","Scale option for dimensions control"),help:(0,Be.__)("Image covers the space evenly.")},{value:"contain",label:(0,Be._x)("Contain","Scale option for dimensions control"),help:(0,Be.__)("Image is contained without distortion.")}],M2e={placement:"bottom-start"},WZ=({href:e,children:t})=>e?(0,re.jsx)("a",{href:e,onClick:r=>r.preventDefault(),"aria-disabled":!0,style:{pointerEvents:"none",cursor:"default",display:"inline"},children:t}):t;function A2e({attributes:e,setAttributes:t,lockAltControls:r,lockAltControlsMessage:o,lockTitleControls:n,lockTitleControlsMessage:i}){let[l,s]=(0,Cr.useState)(null),[c,u]=(0,Cr.useState)(!1),[m,p]=(0,Cr.useState)(!1);return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(Ae.ToolbarItem,{ref:s,children:d=>(0,re.jsx)(Ae.DropdownMenu,{icon:P0,label:(0,Be.__)("More"),toggleProps:{...d,description:(0,Be.__)("Displays more controls.")},popoverProps:M2e,children:({onClose:f})=>(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(Ae.MenuItem,{onClick:()=>{u(!0),f()},"aria-haspopup":"dialog",children:(0,Be._x)("Alternative text","Alternative text for an image. Block toolbar label, a low character count is preferred.")}),(0,re.jsx)(Ae.MenuItem,{onClick:()=>{p(!0),f()},"aria-haspopup":"dialog",children:(0,Be.__)("Title text")})]})})}),c&&(0,re.jsx)(Ae.Popover,{placement:"bottom-start",anchor:l,onClose:()=>u(!1),offset:13,variant:"toolbar",children:(0,re.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,re.jsx)(Ae.TextareaControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,Be.__)("Alternative text"),value:e.alt||"",onChange:d=>t({alt:d}),disabled:r,help:r?(0,re.jsx)(re.Fragment,{children:o}):(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(Ae.ExternalLink,{href:(0,Be.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Be.__)("Describe the purpose of the image.")}),(0,re.jsx)("br",{}),(0,Be.__)("Leave empty if decorative.")]})})})}),m&&(0,re.jsx)(Ae.Popover,{placement:"bottom-start",anchor:l,onClose:()=>p(!1),offset:13,variant:"toolbar",children:(0,re.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,re.jsx)(Ae.TextControl,{__next40pxDefaultSize:!0,className:"wp-block-image__toolbar_content_textarea",label:(0,Be.__)("Title attribute"),value:e.title||"",onChange:d=>t({title:d}),disabled:n,help:n?(0,re.jsx)(re.Fragment,{children:i}):(0,Cr.createInterpolateElement)((0,Be.__)("Describe the role of this image on the page. <a>(Note: many devices and browsers do not display this text.)</a>"),{a:(0,re.jsx)(Ae.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"})})})})})]})}function ZZ({temporaryURL:e,isSideloading:t,attributes:r,setAttributes:o,isSingleSelected:n,insertBlocksAfter:i,onReplace:l,onSelectImage:s,onSelectURL:c,onUploadError:u,context:m,clientId:p,blockEditingMode:d,parentLayoutType:f,maxContentWidth:h}){let{url:g="",alt:b,align:v,id:x,href:_,rel:k,linkClass:S,linkDestination:C,title:E,width:I,height:D,aspectRatio:M,scale:F,focalPoint:R,linkTarget:V,sizeSlug:B,lightbox:j,metadata:U}=r,[O,K]=(0,Cr.useState)(),[W,ee]=(0,Cr.useState)(null),[oe,X]=(0,Cr.useState)({}),[J,ne]=(0,Cr.useState)(0),ie=(0,wh.useResizeObserver)(([ge])=>{if(!W){let[Jt]=ge.borderBoxSize;X({width:Jt.inlineSize,height:Jt.blockSize})}ne(ge.target.offsetTop)}),ue=(0,Cr.useCallback)(()=>{ne(O?.offsetTop??0)},[O]),fe=(0,wh.useMergeRefs)([K,ie]),{allowResize:Oe=!0}=m,{image:ke,attachmentResolutionError:ae}=(0,Jc.useSelect)(ge=>{let Jt=x&&n?ge(w4.store).getEntityRecord("postType","attachment",x,{context:"view"}):null,Vo=x&&n?ge(w4.store).getResolutionError("getEntityRecord",["postType","attachment",x,{context:"view"}]):null;return{image:Jt,attachmentResolutionError:Vo}},[x,n]),{canInsertCover:Te,imageEditing:Le,imageSizes:te,maxWidth:He,editMediaEntity:st}=(0,Jc.useSelect)(ge=>{let{getBlockRootClientId:Jt,canInsertBlockType:Vo,getSettings:bn}=ge(Bt.store),d0=Jt(p),Du=bn();return{imageEditing:Du.imageEditing,imageSizes:Du.imageSizes,maxWidth:Du.maxWidth,editMediaEntity:Du?.[D2e],canInsertCover:Vo("core/cover",d0)}},[p]),{getBlock:ct,getSettings:Me}=(0,Jc.useSelect)(Bt.store),se=UZ({attributes:r,setAttributes:o}),{replaceBlocks:_t,toggleSelection:Ve,__unstableMarkNextChangeAsNotPersistent:we}=(0,Jc.useDispatch)(Bt.store),{createErrorNotice:rt,createSuccessNotice:Ue}=(0,Jc.useDispatch)(qZ.store),{editEntityRecord:et}=(0,Jc.useDispatch)(w4.store),fa=(0,wh.useViewportMatch)("medium"),Q=["wide","full"].includes(v),[{loadedNaturalWidth:Ie,loadedNaturalHeight:tt},Ke]=(0,Cr.useState)({}),[Ne,xt]=(0,Cr.useState)(!1),[jt,zo]=(0,Cr.useState)(),[ut,vn]=(0,Cr.useState)(!1),Oi=d==="default",qn=d==="contentOnly",np=Oe&&Oi,Mc=Oe&&Oi&&!Q&&fa,Iu=!!e||t,Cl=te.filter(({slug:ge})=>ke?.media_details?.sizes?.[ge]?.source_url).map(({name:ge,slug:Jt})=>({value:Jt,label:ge}));(0,Cr.useEffect)(()=>{!x||!n||ae?.status===404&&(we(),o({id:void 0}))},[x,n,ae,o,we]),(0,Cr.useEffect)(()=>{if(!FN(x,g)||!n||!Me().mediaUpload){zo();return}jt||window.fetch(g.includes("?")?g:g+"?").then(ge=>ge.blob()).then(ge=>zo(ge)).catch(()=>{})},[x,g,n,jt,Me]);let{naturalWidth:Hi,naturalHeight:Zn}=(0,Cr.useMemo)(()=>({naturalWidth:O?.naturalWidth||Ie||void 0,naturalHeight:O?.naturalHeight||tt||void 0}),[Ie,tt,O?.complete]);function Ac(){vn(!0);let ge=qu({attributes:{url:g}});ge!==void 0&&l(ge)}function Pe(ge){vn(!1),Ke({loadedNaturalWidth:ge.target?.naturalWidth,loadedNaturalHeight:ge.target?.naturalHeight})}function Ct(ge){o(ge)}function yo(ge){ge&&!Yn?.enabled?o({lightbox:{enabled:!0}}):!ge&&Yn?.enabled?o({lightbox:{enabled:!1}}):o({lightbox:void 0})}function _o(){Yn?.enabled&&Yn?.allowEditing?o({lightbox:{enabled:!1}}):o({lightbox:void 0})}function Oa(ge){o({title:ge})}function Sl(ge){o({alt:ge})}let Kn=ge=>{O&&O.style.setProperty("object-position",pv(ge))};function Rc(ge){let Jt=ke?.media_details?.sizes?.[ge]?.source_url;if(!Jt)return null;o({url:Jt,sizeSlug:ge})}function Ts(){let{mediaUpload:ge}=Me();if(!ge)return;let Jt=!1;ge({filesList:[jt],onFileChange([Vo]){s(Vo),!(0,$Z.isBlobURL)(Vo.url)&&(Jt||(Jt=!0,zo(),Ue((0,Be.__)("Image uploaded."),{type:"snackbar"})))},allowedTypes:Qc,onError(Vo){rt(Vo,{type:"snackbar"})}})}(0,Cr.useEffect)(()=>{n||xt(!1)},[n]);let Tl=x&&Hi&&Zn&&Le&&!!st,Cy=n&&Tl&&!Ne&&!qn;function Sy(){_t(p,(0,kh.switchToBlockType)(ct(p),"core/cover"))}let hf=(0,Ae.__experimentalUseCustomUnits)({availableUnits:["px"]}),[Yn]=(0,Bt.useSettings)("lightbox"),gf=!!j&&j?.enabled!==Yn?.enabled||Yn?.allowEditing,vf=!!j?.enabled||!j&&!!Yn?.enabled,Ty=$(),e7=np&&(lN.includes(f)?(0,re.jsx)(GZ,{panelId:p,value:{aspectRatio:M},onChange:({aspectRatio:ge})=>{o({aspectRatio:ge,scale:"cover"})},defaultAspectRatio:"auto",tools:["aspectRatio"]}):(0,re.jsx)(GZ,{panelId:p,value:{width:I,height:D,scale:F,aspectRatio:M},onChange:({width:ge,height:Jt,scale:Vo,aspectRatio:bn})=>{o({width:!ge&&Jt?"auto":ge,height:Jt,scale:Vo,aspectRatio:bn})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:L2e,unitsOptions:hf,tools:Q?["aspectRatio","scale"]:["aspectRatio","widthHeight","scale"]})),ip=()=>{o({lightbox:void 0}),Rc(mv)},m0=U?.bindings?.__default?.source==="core/pattern-overrides",{lockUrlControls:p0=!1,lockHrefControls:t7=!1,lockAltControls:bf=!1,lockAltControlsMessage:lp,lockTitleControls:Nu=!1,lockTitleControlsMessage:sp,hideCaptionControls:r7=!1}=(0,Jc.useSelect)(ge=>{if(!n)return{};let{url:Jt,alt:Vo,title:bn,caption:d0}=U?.bindings||{},Du=!!m["pattern/overrides"],a7=(0,kh.getBlockBindingsSource)(Jt?.source),_f=(0,kh.getBlockBindingsSource)(Vo?.source),Lu=(0,kh.getBlockBindingsSource)(bn?.source);return{lockUrlControls:!!Jt&&!a7?.canUserEditValue?.({select:ge,context:m,args:Jt?.args}),lockHrefControls:Du||m0,hideCaptionControls:!!d0,lockAltControls:!!Vo&&!_f?.canUserEditValue?.({select:ge,context:m,args:Vo?.args}),lockAltControlsMessage:_f?.label?(0,Be.sprintf)((0,Be.__)("Connected to %s"),_f.label):(0,Be.__)("Connected to dynamic data"),lockTitleControls:!!bn&&!Lu?.canUserEditValue?.({select:ge,context:m,args:bn?.args}),lockTitleControlsMessage:Lu?.label?(0,Be.sprintf)((0,Be.__)("Connected to %s"),Lu.label):(0,Be.__)("Connected to dynamic data")}},[m0,m,n,U?.bindings]),Xt=n&&!Ne&&!t7&&!p0,Pl=n&&Te&&!qn,Bl=Xt||Cy||Pl,Py=n&&!Ne&&!p0&&(0,re.jsx)(Bt.BlockControls,{group:qn?"inline":"other",children:(0,re.jsx)(Bt.MediaReplaceFlow,{mediaId:x,mediaURL:g,allowedTypes:Qc,onSelect:s,onSelectURL:c,onError:u,name:g?(0,Be.__)("Replace"):(0,Be.__)("Add image"),onReset:()=>s(void 0),variant:"toolbar"})}),az=window?.__experimentalContentOnlyInspectorFields,yf=(0,re.jsxs)(re.Fragment,{children:[Bl&&(0,re.jsxs)(Bt.BlockControls,{group:"block",children:[Xt&&(0,re.jsx)(Bt.__experimentalImageURLInputUI,{url:_||"",onChangeUrl:Ct,linkDestination:C,mediaUrl:ke&&ke.source_url||g,mediaLink:ke&&ke.link,linkTarget:V,linkClass:S,rel:k,showLightboxSetting:gf,lightboxEnabled:vf,onSetLightbox:yo,resetLightbox:_o}),Cy&&(0,re.jsx)(Ae.ToolbarButton,{onClick:se||(()=>xt(!0)),"aria-haspopup":se?"dialog":void 0,icon:L0,label:(0,Be.__)("Crop")}),Pl&&(0,re.jsx)(Ae.ToolbarButton,{icon:JT,label:(0,Be.__)("Add text over image"),onClick:Sy})]}),n&&jt&&(0,re.jsx)(Bt.BlockControls,{children:(0,re.jsx)(Ae.ToolbarGroup,{children:(0,re.jsx)(Ae.ToolbarButton,{onClick:Ts,icon:Vc,label:(0,Be.__)("Upload to Media Library")})})}),qn&&(0,re.jsx)(Bt.BlockControls,{group:"block",children:(0,re.jsx)(A2e,{attributes:r,setAttributes:o,lockAltControls:bf,lockAltControlsMessage:lp,lockTitleControls:Nu,lockTitleControlsMessage:sp})}),!az&&n&&(0,re.jsx)(Bt.InspectorControls,{group:"content",children:(0,re.jsxs)(Ae.__experimentalToolsPanel,{label:(0,Be.__)("Media"),resetAll:()=>s(void 0),dropdownMenuProps:Ty,children:[!p0&&(0,re.jsx)(Ae.__experimentalToolsPanelItem,{label:(0,Be.__)("Image"),hasValue:()=>!!g,onDeselect:()=>s(void 0),isShownByDefault:!0,children:(0,re.jsx)(y4,{mediaId:x,mediaUrl:g,alt:b,filename:ke?.media_details?.sizes?.full?.file||ke?.slug||(0,VN.getFilename)(g),allowedTypes:Qc,onSelect:s,onSelectURL:c,onError:u,onReset:()=>s(void 0),isUploading:Iu,emptyLabel:(0,Be.__)("Add image")})}),(0,re.jsx)(Ae.__experimentalToolsPanelItem,{label:(0,Be.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!b,onDeselect:()=>o({alt:void 0}),children:(0,re.jsx)(Ae.TextareaControl,{label:(0,Be.__)("Alternative text"),value:b||"",onChange:Sl,readOnly:bf,help:bf?(0,re.jsx)(re.Fragment,{children:lp}):(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(Ae.ExternalLink,{href:(0,Be.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Be.__)("Describe the purpose of the image.")}),(0,re.jsx)("br",{}),(0,Be.__)("Leave empty if decorative.")]})})})]})}),(0,re.jsxs)(Bt.InspectorControls,{group:"dimensions",resetAllFilter:ge=>({...ge,aspectRatio:void 0,width:void 0,height:void 0,scale:void 0,focalPoint:void 0}),children:[e7,g&&F&&(0,re.jsx)(Ae.__experimentalToolsPanelItem,{label:(0,Be.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!R,onDeselect:()=>o({focalPoint:void 0}),panelId:p,children:(0,re.jsx)(Ae.FocalPointPicker,{label:(0,Be.__)("Focal point"),url:g,value:R,onDragStart:Kn,onDrag:Kn,onChange:ge=>o({focalPoint:ge})})})]}),!!Cl.length&&(0,re.jsx)(Bt.InspectorControls,{children:(0,re.jsx)(Ae.__experimentalToolsPanel,{label:(0,Be.__)("Settings"),resetAll:ip,dropdownMenuProps:Ty,children:(0,re.jsx)(N2e,{value:B,defaultValue:mv,onChange:Rc,options:Cl})})}),(0,re.jsx)(Bt.InspectorControls,{group:"advanced",children:(0,re.jsx)(Ae.TextControl,{__next40pxDefaultSize:!0,label:(0,Be.__)("Title attribute"),value:E||"",onChange:Oa,readOnly:Nu,help:Nu?(0,re.jsx)(re.Fragment,{children:sp}):(0,Cr.createInterpolateElement)((0,Be.__)("Describe the role of this image on the page. <a>(Note: many devices and browsers do not display this text.)</a>"),{a:(0,re.jsx)(Ae.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"})})})})]}),nz=(0,VN.getFilename)(g),By;b?By=b:nz?By=(0,Be.sprintf)((0,Be.__)("This image has an empty alt attribute; its file name is %s"),nz):By=(0,Be.__)("This image has an empty alt attribute");let o7=(0,Bt.__experimentalUseBorderProps)(r),gfe=(0,Bt.__experimentalGetShadowClassesAndStyles)(r),vfe=r.className?.includes("is-style-rounded"),{postType:bfe,postId:iz,queryId:yfe}=m,_fe=Number.isFinite(yfe),Ey=e&&ut?(0,re.jsx)(Ae.Placeholder,{className:"wp-block-image__placeholder",withIllustration:!0,children:(0,re.jsx)(Ae.Spinner,{})}):(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)("img",{src:e||g,alt:By,onError:Ac,onLoad:Pe,ref:fe,className:o7.className,width:Hi,height:Zn,style:{aspectRatio:M,...W?{width:oe.width+W.width,height:oe.height+W.height}:{width:I,height:D},objectFit:F,objectPosition:R&&F?pv(R):void 0,...o7.style,...gfe.style}}),Iu&&(0,re.jsx)(Ae.Spinner,{})]});Tl&&Ne?Ey=(0,re.jsx)(WZ,{href:_,children:(0,re.jsx)(Bt.__experimentalImageEditor,{id:x,url:g,...oe,naturalHeight:Zn,naturalWidth:Hi,onSaveImage:ge=>o(ge),onFinishEditing:()=>{xt(!1)},borderProps:vfe?void 0:o7})}):Ey=(0,re.jsx)(WZ,{href:_,children:Ey});let lz;if(Mc&&n&&!Ne&&!Iu&&!lN.includes(f)){let ge=M&&eq(M),Jt=oe.width/oe.height,Vo=Hi/Zn,bn=ge||Jt||Vo||1,d0=Hi<Zn?qs:qs*bn,Du=Zn<Hi?qs:qs/bn,a7=He*2.5,_f=h||a7,Lu=!1,Iy=!1;v==="center"?(Lu=!0,Iy=!0):(0,Be.isRTL)()?v==="left"?Lu=!0:Iy=!0:v==="right"?Iy=!0:Lu=!0,lz=(0,re.jsx)(Ae.ResizableBox,{ref:ue,style:{position:"absolute",inset:`${J}px 0 0 0`},size:oe,minWidth:d0,maxWidth:_f,minHeight:Du,maxHeight:_f/bn,lockAspectRatio:bn,enable:{top:!1,right:Lu,bottom:!0,left:Iy},onResizeStart:()=>{Ve(!1)},onResize:(kfe,wfe,n7,Ny)=>{ee(Ny)},onResizeStop:(kfe,wfe,n7,Ny)=>{if(Ve(!0),ee(null),X(sz=>({width:sz.width+Ny.width,height:sz.height+Ny.height})),h&&Hi>=h&&Math.abs(n7.offsetWidth-h)<10){o({width:void 0,height:void 0});return}o({width:`${n7.offsetWidth}px`,height:"auto",aspectRatio:bn===Vo?void 0:String(bn)})},resizeRatio:v==="center"?2:1})}if(!g&&!e)return(0,re.jsxs)(re.Fragment,{children:[Py,yf]});let xfe=()=>{et("postType",bfe,iz,{featured_media:x}),Ue((0,Be.__)("Post featured image updated."),{type:"snackbar"})};return(0,re.jsxs)(re.Fragment,{children:[Py,yf,!_fe&&iz&&x?(0,re.jsx)(Bt.BlockSettingsMenuControls,{children:({canEdit:ge,selectedClientIds:Jt})=>ge&&Jt.length===1&&p===Jt[0]&&(0,re.jsx)(Ae.MenuItem,{onClick:xfe,children:(0,Be.__)("Set as featured image")})}):null,Ey,lz,(0,re.jsx)(ga,{attributes:r,setAttributes:o,isSelected:n,insertBlocksAfter:i,label:(0,Be.__)("Image caption text"),showToolbarButton:n&&(Oi||qn)&&!r7})]})}var KZ=a(H(),1),YZ=a(pe(),1),QZ=a(y(),1);function XZ(){let[e,{width:t}]=(0,YZ.useResizeObserver)(),r=(0,KZ.useRef)();return[(0,QZ.jsx)("div",{className:"wp-block","aria-hidden":"true",style:{position:"absolute",inset:0,width:"100%",height:0,margin:0},ref:r,children:e}),t]}var as=a(y(),1),R2e=(e,t)=>{let r=Object.fromEntries(Object.entries(e??{}).filter(([o])=>["alt","id","link","caption"].includes(o)));return r.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e.url,r},FN=(e,t)=>t&&!e&&!(0,Ch.isBlobURL)(t);function JZ(e,t){return"url"in(e?.sizes?.[t]??{})||"source_url"in(e?.media_details?.sizes?.[t]??{})}function z2e({attributes:e,setAttributes:t,isSelected:r,className:o,insertBlocksAfter:n,onReplace:i,context:l,clientId:s,__unstableParentLayout:c}){let{url:u="",caption:m,id:p,width:d,height:f,sizeSlug:h,aspectRatio:g,scale:b,align:v,metadata:x}=e,[_,k]=(0,hm.useState)(e.blob),S=(0,hm.useRef)(),C=c?.type||c?.default?.type,E=!C||C!=="flex"&&C!=="grid",[I,D]=XZ(),[M,{width:F}]=(0,rK.useResizeObserver)(),R=F&&F<160,V=(0,hm.useRef)();(0,hm.useEffect)(()=>{V.current=m},[m]);let{__unstableMarkNextChangeAsNotPersistent:B,replaceBlock:j}=(0,ld.useDispatch)(en.store);(0,hm.useEffect)(()=>{["wide","full"].includes(v)&&(B(),t({width:void 0,height:void 0}))},[B,v,t]);let{getSettings:U,getBlockRootClientId:O,getBlockName:K,canInsertBlockType:W}=(0,ld.useSelect)(en.store),ee=(0,en.useBlockEditingMode)(),{createErrorNotice:oe}=(0,ld.useDispatch)(tK.store);function X(se){oe(se,{type:"snackbar"}),k(),t({src:void 0,id:void 0,url:void 0,blob:void 0})}function J(se){se.length===1&&k((0,Ch.createBlobURL)(se[0]))}function ne(se){let _t=S.current?.ownerDocument.defaultView;if(se.every(Ve=>Ve instanceof _t.File)){let Ve=se,we=O(s);Ve.some(Ue=>!uN(Ue))&&oe((0,Xs.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let rt=Ve.filter(Ue=>uN(Ue)).map(Ue=>(0,_v.createBlock)("core/image",{blob:(0,Ch.createBlobURL)(Ue)}));if(K(we)==="core/gallery")j(s,rt);else if(W("core/gallery",we)){let Ue=(0,_v.createBlock)("core/gallery",{},rt);j(s,Ue)}}}function ie(se){if(Array.isArray(se)){ne(se);return}if(!se||!se.url){t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0,blob:void 0}),k();return}if((0,Ch.isBlobURL)(se.url)){k(se.url);return}let{imageDefaultSize:_t}=U(),Ve=mv;h&&JZ(se,h)?Ve=h:JZ(se,_t)&&(Ve=_t);let we=R2e(se,Ve);if(typeof we.caption=="string"&&we.caption.includes(` |
| 32 |
`)&&(we.caption=we.caption.replace(/\n/g,"<br>")),V.current&&!we.caption){let{caption:fa,...Q}=we;we=Q}let rt;(!se.id||se.id!==p)&&(rt={sizeSlug:Ve});let Ue=e.linkDestination;if(!Ue)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||rd){case"file":case ph:Ue=ph;break;case"post":case dh:Ue=dh;break;case iN:Ue=iN;break;case rd:Ue=rd;break}let et;switch(Ue){case ph:et=se.url;break;case dh:et=se.link;break}we.href=et,t({blob:void 0,...we,...rt,linkDestination:Ue}),k()}function ue(se){let _t=(0,C4.getProtocol)(se)?se:(0,C4.prependHTTPS)(se);_t!==u&&(t({blob:void 0,url:_t,id:void 0,sizeSlug:U().imageDefaultSize}),k())}Es({url:_,allowedTypes:Qc,onChange:ie,onError:X});let Oe=FN(p,u)?u:void 0,ke=(0,ld.useSelect)(se=>!window.__clientSideMediaProcessing&&!window.__heicUploadSupport||!p?!1:se(oK.store).isUploadingById(p),[p]),ae=!!u&&(0,as.jsx)("img",{alt:(0,Xs.__)("Edit image"),title:(0,Xs.__)("Edit image"),className:"edit-image-preview",src:u}),Te=(0,en.__experimentalUseBorderProps)(e),Le=(0,en.__experimentalGetShadowClassesAndStyles)(e),te=w(o,{"is-transient":!!_||ke,"is-resized":!!d||!!f,[`size-${h}`]:h,"has-custom-border":!!Te.className||Te.style&&Object.keys(Te.style).length>0}),He=(0,en.useBlockProps)({ref:S,className:te}),{lockUrlControls:st=!1,lockUrlControlsMessage:ct}=(0,ld.useSelect)(se=>{if(!r)return{};let _t=(0,_v.getBlockBindingsSource)(x?.bindings?.url?.source);return{lockUrlControls:!!x?.bindings?.url&&!_t?.canUserEditValue?.({select:se,context:l,args:x?.bindings?.url?.args}),lockUrlControlsMessage:_t?.label?(0,Xs.sprintf)((0,Xs.__)("Connected to %s"),_t.label):(0,Xs.__)("Connected to dynamic data")}},[l,r,x?.bindings?.url]);return(0,as.jsxs)(as.Fragment,{children:[(0,as.jsxs)("figure",{...He,children:[(0,as.jsx)(ZZ,{temporaryURL:_,isSideloading:ke,attributes:e,setAttributes:t,isSingleSelected:r,insertBlocksAfter:n,onReplace:i,onSelectImage:ie,onSelectURL:ue,onUploadError:X,context:l,clientId:s,blockEditingMode:ee,parentLayoutType:C,maxContentWidth:D}),(0,as.jsx)(en.MediaPlaceholder,{icon:(0,as.jsx)(en.BlockIcon,{icon:Hu}),onSelect:ie,onSelectURL:ue,onFilesPreUpload:J,onError:X,placeholder:se=>(0,as.jsxs)(eK.Placeholder,{className:w("block-editor-media-placeholder",{[Te.className]:!!Te.className&&!r}),icon:!R&&(st?sP:Hu),withIllustration:!r||R,label:!R&&(0,Xs.__)("Image"),instructions:!st&&!R&&(0,Xs.__)("Drag and drop an image, upload, or choose from your library."),style:{aspectRatio:!(d&&f)&&g?g:void 0,width:f&&g?"100%":d,height:d&&g?"100%":f,objectFit:b,...Te.style,...Le.style},children:[st&&!R&&ct,!st&&!R&&se,M]}),allowedTypes:Qc,handleUpload:se=>se.length===1,value:{id:p,src:Oe},mediaPreview:ae,disableMediaButtons:_||u})]}),r&&E&&I]})}var aK=z2e;var S4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/image",title:"Image",category:"media",usesContext:["allowResize","imageCrop","fixedHeight","navigationButtonType","postId","postType","queryId","galleryId"],description:"Insert an image to make a visual statement.",keywords:["img","photo","picture"],textdomain:"default",attributes:{blob:{type:"string",role:"local"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},lightbox:{type:"object",enabled:{type:"boolean"}},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},focalPoint:{type:"object"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{interactivity:!0,align:["left","center","right","wide","full"],anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},spacing:{margin:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},shadow:{__experimentalSkipSerialization:!0}},selectors:{border:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",shadow:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",filter:{duotone:".wp-block-image img, .wp-block-image .components-placeholder"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-image-editor",style:"wp-block-image"};var ns=a(T(),1);var eu=a(y(),1);function nK({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,focalPoint:d,id:f,linkTarget:h,sizeSlug:g,title:b,metadata:{bindings:v={}}={}}=e,x=l||void 0,_=(0,ns.__experimentalGetBorderClassesAndStyles)(e),k=(0,ns.__experimentalGetShadowClassesAndStyles)(e),S=w({alignnone:n==="none",[`size-${g}`]:g,"is-resized":c||u,"has-custom-border":!!_.className||_.style&&Object.keys(_.style).length>0}),C=w(_.className,{[`wp-image-${f}`]:!!f}),E=(0,eu.jsx)("img",{src:t,alt:r,className:C||void 0,style:{..._.style,...k.style,aspectRatio:m,objectFit:p,objectPosition:d&&p?pv(d):void 0,width:c,height:u},title:b}),I=!ns.RichText.isEmpty(o)||v.caption||v?.__default?.source==="core/pattern-overrides",D=(0,eu.jsxs)(eu.Fragment,{children:[i?(0,eu.jsx)("a",{className:s,href:i,target:h,rel:x,children:E}):E,I&&(0,eu.jsx)(ns.RichText.Content,{className:(0,ns.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,eu.jsx)("figure",{...ns.useBlockProps.save({className:S}),children:D})}var T4=a(Br(),1),xv=a(G(),1);function F2e(e,{shortcode:t}){let{body:r}=document.implementation.createHTMLDocument("");r.innerHTML=t.content;let o=r.querySelector("img");for(;o&&o.parentNode&&o.parentNode!==r;)o=o.parentNode;return o&&o.parentNode.removeChild(o),r.innerHTML.trim()}function ON(e,t){let{body:r}=document.implementation.createHTMLDocument("");r.innerHTML=e;let{firstElementChild:o}=r;if(o&&o.nodeName==="A")return o.getAttribute(t)||void 0}var iK={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},O2e=({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...iK,a:{attributes:["href","rel","target"],classes:["*"],children:iK},figcaption:{children:e}}}}),H2e={from:[{type:"raw",isMatch:e=>e.nodeName==="FIGURE"&&!!e.querySelector("img"),schema:O2e,transform:e=>{let t=e.className+" "+e.querySelector("img").className,r=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),o=e.id===""?void 0:e.id,n=r?r[1]:void 0,i=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),l=i?Number(i[1]):void 0,s=e.querySelector("a"),c=s&&s.href?"custom":void 0,u=s&&s.href?s.href:void 0,m=s&&s.rel?s.rel:void 0,p=s&&s.className?s.className:void 0,d=(0,xv.getBlockAttributes)("core/image",e.outerHTML,{align:n,id:l,linkDestination:c,href:u,rel:m,linkClass:p,anchor:o});return(0,T4.isBlobURL)(d.url)&&(d.blob=d.url,delete d.url),(0,xv.createBlock)("core/image",d)}},{type:"files",isMatch(e){return e.every(t=>t.type.indexOf("image/")===0)},transform(e){return e.map(r=>(0,xv.createBlock)("core/image",{blob:(0,T4.createBlobURL)(r)}))}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:F2e},href:{shortcode:(e,{shortcode:t})=>ON(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>ON(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>ON(t.content,"class")},id:{type:"number",shortcode:({named:{id:e}})=>{if(e)return parseInt(e.replace("attachment_",""),10)}},align:{type:"string",shortcode:({named:{align:e="alignnone"}})=>e.replace("align","")}}}]},lK=H2e;var{fieldsKey:j2e,formKey:U2e}=Z(sK.privateApis),{name:cK}=S4,P4={icon:Hu,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,sd.__)("Mont Blanc appears\u2014still, snowy, and serene.")}},__experimentalLabel(e,{context:t}){let r=e?.metadata?.name;if((t==="list-view"||t==="breadcrumb")&&r)return r;if(t==="accessibility"){let{caption:o,alt:n,url:i}=e;return i?n?n+(o?". "+o:""):o||"":(0,sd.__)("Empty")}},getEditWrapperProps(e){return{"data-align":e.align}},transforms:lK,edit:aK,save:nK,deprecated:DZ};window.__experimentalContentOnlyInspectorFields&&(P4[j2e]=[{id:"image",label:(0,sd.__)("Image"),type:"media",Edit:{control:"media",allowedTypes:["image"],multiple:!1},getValue:({item:e})=>({id:e.id,url:e.url,alt:e.alt,caption:e.caption}),setValue:({value:e})=>({id:e.id,url:e.url,alt:e.alt,caption:e.caption})},{id:"link",label:(0,sd.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.href,rel:e.rel,linkTarget:e.linkTarget}),setValue:({value:e})=>({href:e.url,rel:e.rel,linkTarget:e.linkTarget})},{id:"caption",label:(0,sd.__)("Caption"),type:"text",Edit:"rich-text"},{id:"alt",label:(0,sd.__)("Alt text"),type:"text"}],P4[U2e]={fields:["image","link","caption","alt"]});var G2e=()=>N({name:cK,metadata:S4,settings:P4});var jN={};q(jN,{init:()=>K2e,metadata:()=>B4,name:()=>fK,settings:()=>hK});var B4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-comments",title:"Latest Comments",category:"widgets",description:"Display a list of your most recent comments.",keywords:["recent comments"],textdomain:"default",attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayContent:{type:"string",default:"excerpt",enum:["none","excerpt","full"]}},supports:{anchor:!0,align:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-latest-comments"};var E4=a(T(),1),Sa=a(A(),1),Ca=a(P(),1),uK=a(Mu(),1),mK=a(pe(),1);var Zr=a(y(),1),$2e=1,q2e=100;function pK({attributes:e,setAttributes:t,name:r}){let{commentsToShow:o,displayAvatar:n,displayDate:i,displayContent:l}=e,s=$(),{content:c,status:u,error:m}=(0,uK.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r,urlQueryArgs:{_locale:"site"}}),p=(0,mK.useDisabled)(),d=(0,E4.useBlockProps)({ref:p});return(0,Zr.jsxs)(Zr.Fragment,{children:[(0,Zr.jsx)(E4.InspectorControls,{children:(0,Zr.jsxs)(Sa.__experimentalToolsPanel,{label:(0,Ca.__)("Settings"),resetAll:()=>{t({commentsToShow:5,displayAvatar:!0,displayDate:!0,displayContent:"excerpt"})},dropdownMenuProps:s,children:[(0,Zr.jsx)(Sa.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,Ca.__)("Display avatar"),onDeselect:()=>t({displayAvatar:!0}),isShownByDefault:!0,children:(0,Zr.jsx)(Sa.ToggleControl,{label:(0,Ca.__)("Display avatar"),checked:n,onChange:()=>t({displayAvatar:!n})})}),(0,Zr.jsx)(Sa.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,Ca.__)("Display date"),onDeselect:()=>t({displayDate:!0}),isShownByDefault:!0,children:(0,Zr.jsx)(Sa.ToggleControl,{label:(0,Ca.__)("Display date"),checked:i,onChange:()=>t({displayDate:!i})})}),(0,Zr.jsx)(Sa.__experimentalToolsPanelItem,{hasValue:()=>l!=="excerpt",label:(0,Ca.__)("Display content"),onDeselect:()=>t({displayContent:"excerpt"}),isShownByDefault:!0,children:(0,Zr.jsx)(Sa.SelectControl,{__next40pxDefaultSize:!0,label:(0,Ca.__)("Display content"),value:l,options:[{label:(0,Ca.__)("No content"),value:"none"},{label:(0,Ca.__)("Excerpt"),value:"excerpt"},{label:(0,Ca.__)("Full content"),value:"full"}],onChange:f=>t({displayContent:f})})}),(0,Zr.jsx)(Sa.__experimentalToolsPanelItem,{hasValue:()=>o!==5,label:(0,Ca.__)("Number of comments"),onDeselect:()=>t({commentsToShow:5}),isShownByDefault:!0,children:(0,Zr.jsx)(Sa.RangeControl,{__next40pxDefaultSize:!0,label:(0,Ca.__)("Number of comments"),value:o,onChange:f=>t({commentsToShow:f}),min:$2e,max:q2e,required:!0})})]})}),u==="loading"&&(0,Zr.jsx)("div",{...d,children:(0,Zr.jsx)(Sa.Spinner,{})}),u==="error"&&(0,Zr.jsx)("div",{...d,children:(0,Zr.jsx)("p",{children:(0,Ca.sprintf)((0,Ca.__)("Error: %s"),m)})}),u==="success"&&(0,Zr.jsx)(no,{wrapperProps:d,html:c})]})}var Z2e={attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},supports:{align:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},isEligible(e){return e?.displayExcerpt===!1},migrate(e){return{...e,displayContent:e.displayExcerpt?"excerpt":"none"}}},dK=[Z2e];var{name:fK}=B4,hK={icon:N0,example:{},edit:pK,deprecated:dK},K2e=()=>N({name:fK,metadata:B4,settings:hK});var $N={};q($N,{init:()=>a_e,metadata:()=>Sh,name:()=>kK,settings:()=>wK});var Sh={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{anchor:!0,align:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"};var{attributes:Q2e}=Sh,gK=[{attributes:{...Q2e,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:({categories:e})=>e&&typeof e=="string",save:()=>null}];var $e=a(A(),1),ze=a(P(),1),Th=a(Rk(),1),Js=a(T(),1),kv=a(z(),1);var GN=a(Y(),1),yK=a(yr(),1),_K=a(pe(),1),xK=a(H(),1);var vK=10,bK=100,UN=6,I4=55;var be=a(y(),1),X2e={per_page:-1,_fields:"id,name",context:"view"},J2e={per_page:-1,has_published_posts:["post"],context:"view"},e_e=[{value:"none",icon:j7,label:(0,ze.__)("None")},{value:"left",icon:dP,label:(0,ze.__)("Left")},{value:"center",icon:mP,label:(0,ze.__)("Center")},{value:"right",icon:hP,label:(0,ze.__)("Right")}];function t_e(e,t){let r=e._embedded?.["wp:featuredmedia"]?.["0"];return{url:r?.media_details?.sizes?.[t]?.source_url??r?.source_url,alt:r?.alt_text}}function r_e(e){return e._embedded?.author?.[0]}function o_e({attributes:e,setAttributes:t,postCount:r}){let{postsToShow:o,order:n,orderBy:i,categories:l,selectedAuthor:s,displayFeaturedImage:c,displayPostContentRadio:u,displayPostContent:m,displayPostDate:p,displayAuthor:d,postLayout:f,columns:h,excerptLength:g,featuredImageAlign:b,featuredImageSizeSlug:v,featuredImageSizeWidth:x,featuredImageSizeHeight:_,addLinkToFeaturedImage:k}=e,{imageSizes:S,defaultImageWidth:C,defaultImageHeight:E,categoriesList:I,authorList:D}=(0,kv.useSelect)(B=>{let{getEntityRecords:j,getUsers:U}=B(GN.store),O=B(Js.store).getSettings();return{defaultImageWidth:O.imageDimensions?.[v]?.width??0,defaultImageHeight:O.imageDimensions?.[v]?.height??0,imageSizes:O.imageSizes,categoriesList:j("taxonomy","category",X2e),authorList:U(J2e)}},[v]),M=$(),F=S.filter(({slug:B})=>B!=="full").map(({name:B,slug:j})=>({value:j,label:B})),R=I?.reduce((B,j)=>({...B,[j.name]:j}),{})??{},V=B=>{if(B.some(O=>typeof O=="string"&&!R[O]))return;let U=B.map(O=>typeof O=="string"?R[O]:O);if(U.includes(null))return!1;t({categories:U})};return(0,be.jsxs)(be.Fragment,{children:[(0,be.jsxs)($e.__experimentalToolsPanel,{label:(0,ze.__)("Post content"),resetAll:()=>t({displayPostContent:!1,displayPostContentRadio:"excerpt",excerptLength:I4}),dropdownMenuProps:M,children:[(0,be.jsx)($e.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,ze.__)("Display post content"),onDeselect:()=>t({displayPostContent:!1}),isShownByDefault:!0,children:(0,be.jsx)($e.ToggleControl,{label:(0,ze.__)("Display post content"),checked:m,onChange:B=>t({displayPostContent:B})})}),m&&(0,be.jsx)($e.__experimentalToolsPanelItem,{hasValue:()=>u!=="excerpt",label:(0,ze.__)("Content length"),onDeselect:()=>t({displayPostContentRadio:"excerpt"}),isShownByDefault:!0,children:(0,be.jsx)($e.RadioControl,{label:(0,ze.__)("Content length"),selected:u,options:[{label:(0,ze.__)("Excerpt"),value:"excerpt"},{label:(0,ze.__)("Full post"),value:"full_post"}],onChange:B=>t({displayPostContentRadio:B})})}),m&&u==="excerpt"&&(0,be.jsx)($e.__experimentalToolsPanelItem,{hasValue:()=>g!==I4,label:(0,ze.__)("Max number of words"),onDeselect:()=>t({excerptLength:I4}),isShownByDefault:!0,children:(0,be.jsx)($e.RangeControl,{__next40pxDefaultSize:!0,label:(0,ze.__)("Max number of words"),value:g,onChange:B=>t({excerptLength:B}),min:vK,max:bK})})]}),(0,be.jsxs)($e.__experimentalToolsPanel,{label:(0,ze.__)("Post meta"),resetAll:()=>t({displayAuthor:!1,displayPostDate:!1}),dropdownMenuProps:M,children:[(0,be.jsx)($e.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,ze.__)("Display author name"),onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,be.jsx)($e.ToggleControl,{label:(0,ze.__)("Display author name"),checked:d,onChange:B=>t({displayAuthor:B})})}),(0,be.jsx)($e.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,ze.__)("Display post date"),onDeselect:()=>t({displayPostDate:!1}),isShownByDefault:!0,children:(0,be.jsx)($e.ToggleControl,{label:(0,ze.__)("Display post date"),checked:p,onChange:B=>t({displayPostDate:B})})})]}),(0,be.jsxs)($e.__experimentalToolsPanel,{label:(0,ze.__)("Featured image"),resetAll:()=>t({displayFeaturedImage:!1,featuredImageAlign:void 0,featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null,addLinkToFeaturedImage:!1}),dropdownMenuProps:M,children:[(0,be.jsx)($e.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,ze.__)("Display featured image"),onDeselect:()=>t({displayFeaturedImage:!1}),isShownByDefault:!0,children:(0,be.jsx)($e.ToggleControl,{label:(0,ze.__)("Display featured image"),checked:c,onChange:B=>t({displayFeaturedImage:B})})}),c&&(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)($e.__experimentalToolsPanelItem,{hasValue:()=>v!=="thumbnail"||x!==null||_!==null,label:(0,ze.__)("Image size"),onDeselect:()=>t({featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null}),isShownByDefault:!0,children:(0,be.jsx)(Js.__experimentalImageSizeControl,{onChange:B=>{let j={};B.hasOwnProperty("width")&&(j.featuredImageSizeWidth=B.width),B.hasOwnProperty("height")&&(j.featuredImageSizeHeight=B.height),t(j)},slug:v,width:x,height:_,imageWidth:C,imageHeight:E,imageSizeOptions:F,imageSizeHelp:(0,ze.__)("Select the size of the source image."),onChangeImage:B=>t({featuredImageSizeSlug:B,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})})}),(0,be.jsx)($e.__experimentalToolsPanelItem,{hasValue:()=>!!b,label:(0,ze.__)("Image alignment"),onDeselect:()=>t({featuredImageAlign:void 0}),isShownByDefault:!0,children:(0,be.jsx)($e.__experimentalToggleGroupControl,{className:"editor-latest-posts-image-alignment-control",__next40pxDefaultSize:!0,label:(0,ze.__)("Image alignment"),value:b||"none",onChange:B=>t({featuredImageAlign:B!=="none"?B:void 0}),children:e_e.map(({value:B,icon:j,label:U})=>(0,be.jsx)($e.__experimentalToggleGroupControlOptionIcon,{value:B,icon:j,label:U},B))})}),(0,be.jsx)($e.__experimentalToolsPanelItem,{hasValue:()=>!!k,label:(0,ze.__)("Add link to featured image"),onDeselect:()=>t({addLinkToFeaturedImage:!1}),isShownByDefault:!0,children:(0,be.jsx)($e.ToggleControl,{label:(0,ze.__)("Add link to featured image"),checked:k,onChange:B=>t({addLinkToFeaturedImage:B})})})]})]}),(0,be.jsxs)($e.__experimentalToolsPanel,{label:(0,ze.__)("Sorting and filtering"),resetAll:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0,columns:3}),dropdownMenuProps:M,children:[(0,be.jsx)($e.__experimentalToolsPanelItem,{hasValue:()=>n!=="desc"||i!=="date"||o!==5||l?.length>0||!!s,label:(0,ze.__)("Sort and filter"),onDeselect:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),isShownByDefault:!0,children:(0,be.jsx)($e.QueryControls,{order:n,orderBy:i,numberOfItems:o,onOrderChange:B=>t({order:B}),onOrderByChange:B=>t({orderBy:B}),onNumberOfItemsChange:B=>t({postsToShow:B}),categorySuggestions:R,onCategoryChange:V,selectedCategories:l,onAuthorChange:B=>t({selectedAuthor:B!==""?Number(B):void 0}),authorList:D??[],selectedAuthorId:s})}),f==="grid"&&(0,be.jsx)($e.__experimentalToolsPanelItem,{hasValue:()=>h!==3,label:(0,ze.__)("Columns"),onDeselect:()=>t({columns:3}),isShownByDefault:!0,children:(0,be.jsx)($e.RangeControl,{__next40pxDefaultSize:!0,label:(0,ze.__)("Columns"),value:h,onChange:B=>t({columns:B}),min:2,max:r?Math.min(UN,r):UN,required:!0})})]})]})}function WN({attributes:e,setAttributes:t}){let r=(0,_K.useInstanceId)(WN),{postsToShow:o,order:n,orderBy:i,categories:l,selectedAuthor:s,displayFeaturedImage:c,displayPostContentRadio:u,displayPostContent:m,displayPostDate:p,displayAuthor:d,postLayout:f,columns:h,excerptLength:g,featuredImageAlign:b,featuredImageSizeSlug:v,featuredImageSizeWidth:x,featuredImageSizeHeight:_,addLinkToFeaturedImage:k}=e,{latestPosts:S}=(0,kv.useSelect)(B=>{let{getEntityRecords:j}=B(GN.store),U=l&&l.length>0?l.map(K=>K.id):[],O=Object.fromEntries(Object.entries({categories:U,author:s,order:n,orderby:i,per_page:o,_embed:"author,wp:featuredmedia",ignore_sticky:!0}).filter(([,K])=>typeof K<"u"));return{latestPosts:j("postType","post",O)}},[o,n,i,l,s]),{createWarningNotice:C}=(0,kv.useDispatch)(yK.store),E=B=>{B.preventDefault(),C((0,ze.__)("Links are disabled in the editor."),{id:`block-library/core/latest-posts/redirection-prevented/${r}`,type:"snackbar"})},I=!!S?.length,D=(0,be.jsx)(Js.InspectorControls,{children:(0,be.jsx)(o_e,{attributes:e,setAttributes:t,postCount:S?.length??0})}),M=(0,Js.useBlockProps)({className:w({"wp-block-latest-posts__list":!0,"is-grid":f==="grid","has-dates":p,"has-author":d,[`columns-${h}`]:f==="grid"})});if(!I)return(0,be.jsxs)("div",{...M,children:[D,(0,be.jsx)($e.Placeholder,{icon:Q0,label:(0,ze.__)("Latest Posts"),children:Array.isArray(S)?(0,ze.__)("No posts found."):(0,be.jsx)($e.Spinner,{})})]});let F=S.length>o?S.slice(0,o):S,R=[{icon:Dl,title:(0,ze._x)("List view","Latest posts block display setting"),onClick:()=>t({postLayout:"list"}),isActive:f==="list"},{icon:Nl,title:(0,ze._x)("Grid view","Latest posts block display setting"),onClick:()=>t({postLayout:"grid"}),isActive:f==="grid"}],V=(0,Th.getSettings)().formats.date;return(0,be.jsxs)(be.Fragment,{children:[D,(0,be.jsx)(Js.BlockControls,{children:(0,be.jsx)($e.ToolbarGroup,{controls:R})}),(0,be.jsx)("ul",{...M,children:F.map(B=>{let j=B.title.rendered.trim(),U=B.excerpt.rendered,O=r_e(B),K=document.createElement("div");K.innerHTML=U,U=K.textContent||K.innerText||"";let{url:W,alt:ee}=t_e(B,v),oe=w({"wp-block-latest-posts__featured-image":!0,[`align${b}`]:!!b}),X=c&&W,J=X&&(0,be.jsx)("img",{src:W,alt:ee,style:{maxWidth:x,maxHeight:_}}),ie=g<U.trim().split(" ").length&&B.excerpt.raw===""?(0,be.jsxs)(be.Fragment,{children:[U.trim().split(" ",g).join(" "),(0,xK.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("\u2026 <a>Read more<span>: %1$s</span></a>"),j||(0,ze.__)("(no title)")),{a:(0,be.jsx)("a",{className:"wp-block-latest-posts__read-more",href:B.link,rel:"noopener",onClick:E}),span:(0,be.jsx)("span",{className:"screen-reader-text"})})]}):U;return(0,be.jsxs)("li",{children:[X&&(0,be.jsx)("div",{className:oe,children:k?(0,be.jsx)("a",{href:B.link,onClick:E,children:J}):J}),(0,be.jsx)("a",{className:"wp-block-latest-posts__post-title",href:B.link,dangerouslySetInnerHTML:j?{__html:j}:void 0,onClick:E,children:j?null:(0,ze.__)("(no title)")}),d&&O&&(0,be.jsx)("div",{className:"wp-block-latest-posts__post-author",children:(0,ze.sprintf)((0,ze.__)("by %s"),O.name)}),p&&B.date_gmt&&(0,be.jsx)("time",{dateTime:(0,Th.format)("c",B.date_gmt),className:"wp-block-latest-posts__post-date",children:(0,Th.dateI18n)(V,B.date_gmt)}),m&&u==="excerpt"&&(0,be.jsx)("div",{className:"wp-block-latest-posts__post-excerpt",children:ie}),m&&u==="full_post"&&(0,be.jsx)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:B.content.raw.trim()}})]},B.id)})})]})}var{name:kK}=Sh,wK={icon:r1,example:{},edit:WN,deprecated:gK},a_e=()=>N({name:kK,metadata:Sh,settings:wK});var YN={};q(YN,{init:()=>b_e,metadata:()=>M4,name:()=>OK,settings:()=>HK});var Eh=a(P(),1);var is=a(T(),1);var Ph=a(G(),1),N4={A:"upper-alpha",a:"lower-alpha",I:"upper-roman",i:"lower-roman"};function qN(e){let t=e.getAttribute("type"),r={ordered:e.tagName==="OL",anchor:e.id?e.id:void 0,start:e.getAttribute("start")?parseInt(e.getAttribute("start"),10):void 0,reversed:e.hasAttribute("reversed")?!0:void 0,type:t&&N4[t]?N4[t]:void 0},o=Array.from(e.children).map(n=>{let i=Array.from(n.childNodes).filter(d=>d.nodeType!==d.TEXT_NODE||d.textContent.trim().length!==0);i.reverse();let[l,...s]=i;if(!(l?.tagName==="UL"||l?.tagName==="OL"))return(0,Ph.createBlock)("core/list-item",{content:n.innerHTML});let u=s.map(d=>d.nodeType===d.TEXT_NODE?d.textContent:d.outerHTML);u.reverse();let m={content:u.join("").trim()},p=[qN(l)];return(0,Ph.createBlock)("core/list-item",m,p)});return(0,Ph.createBlock)("core/list",r,o)}function D4(e){let{values:t,start:r,reversed:o,ordered:n,type:i,...l}=e,s=document.createElement(n?"ol":"ul");s.innerHTML=t,r&&s.setAttribute("start",r),o&&s.setAttribute("reversed",!0),i&&s.setAttribute("type",i);let[c]=(0,Ph.rawHandler)({HTML:s.outerHTML});return[{...l,...c.attributes},c.innerBlocks]}function CK(e){let{type:t}=e;return t&&N4[t]?{...e,type:N4[t]}:e}var tu=a(y(),1),n_e={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0},color:{gradients:!0,link:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){let{ordered:t,values:r,type:o,reversed:n,start:i}=e;return(0,tu.jsx)(t?"ol":"ul",{...is.useBlockProps.save({type:o,reversed:n,start:i}),children:(0,tu.jsx)(is.RichText.Content,{value:r,multiline:"li"})})},migrate:Ut,isEligible({style:e}){return e?.typography?.fontFamily}},i_e={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){let{ordered:t,values:r,type:o,reversed:n,start:i}=e;return(0,tu.jsx)(t?"ol":"ul",{...is.useBlockProps.save({type:o,reversed:n,start:i}),children:(0,tu.jsx)(is.RichText.Content,{value:r,multiline:"li"})})},migrate:D4},l_e={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},isEligible({type:e}){return!!e},save({attributes:e}){let{ordered:t,type:r,reversed:o,start:n}=e;return(0,tu.jsx)(t?"ol":"ul",{...is.useBlockProps.save({type:r,reversed:o,start:n}),children:(0,tu.jsx)(is.InnerBlocks.Content,{})})},migrate:CK},s_e={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalOnMerge:"true",__experimentalSlashInserter:!0},save({attributes:e}){let{ordered:t,type:r,reversed:o,start:n}=e;return(0,tu.jsx)(t?"ol":"ul",{...is.useBlockProps.save({reversed:o,start:n,style:{listStyleType:t&&r!=="decimal"?r:void 0}}),children:(0,tu.jsx)(is.InnerBlocks.Content,{})})}},SK=[s_e,l_e,i_e,n_e];var ss=a(T(),1),L4=a(A(),1),gm=a(z(),1),ls=a(P(),1);var MK=a(G(),1),cd=a(H(),1),AK=a(Rf(),1);var ea=a(P(),1),PK=a(T(),1),ta=a(A(),1),BK=a(H(),1);var Ln=a(y(),1),TK=[{label:(0,ea.__)("Numbers"),value:"decimal"},{label:(0,ea.__)("Uppercase letters"),value:"upper-alpha"},{label:(0,ea.__)("Lowercase letters"),value:"lower-alpha"},{label:(0,ea.__)("Uppercase Roman numerals"),value:"upper-roman"},{label:(0,ea.__)("Lowercase Roman numerals"),value:"lower-roman"}],c_e=({setAttributes:e,reversed:t,start:r,type:o})=>{let n=$();return(0,Ln.jsx)(PK.InspectorControls,{children:BK.Platform.isNative?(0,Ln.jsxs)(ta.PanelBody,{title:(0,ea.__)("Settings"),children:[(0,Ln.jsx)(ta.SelectControl,{__next40pxDefaultSize:!0,label:(0,ea.__)("List style"),options:TK,value:o,onChange:i=>e({type:i})}),(0,Ln.jsx)(ta.TextControl,{__next40pxDefaultSize:!0,label:(0,ea.__)("Start value"),type:"number",onChange:i=>{let l=parseInt(i,10);e({start:isNaN(l)?void 0:l})},value:Number.isInteger(r)?r.toString(10):"",step:"1"}),(0,Ln.jsx)(ta.ToggleControl,{label:(0,ea.__)("Reverse order"),checked:t||!1,onChange:i=>{e({reversed:i||void 0})}})]}):(0,Ln.jsxs)(ta.__experimentalToolsPanel,{label:(0,ea.__)("Settings"),resetAll:()=>{e({type:void 0,start:void 0,reversed:void 0})},dropdownMenuProps:n,children:[(0,Ln.jsx)(ta.__experimentalToolsPanelItem,{label:(0,ea.__)("List style"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>e({type:void 0}),children:(0,Ln.jsx)(ta.SelectControl,{__next40pxDefaultSize:!0,label:(0,ea.__)("List style"),options:TK,value:o||"decimal",onChange:i=>e({type:i})})}),(0,Ln.jsx)(ta.__experimentalToolsPanelItem,{label:(0,ea.__)("Start value"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>e({start:void 0}),children:(0,Ln.jsx)(ta.TextControl,{__next40pxDefaultSize:!0,label:(0,ea.__)("Start value"),type:"number",onChange:i=>{let l=parseInt(i,10);e({start:isNaN(l)?void 0:l})},value:Number.isInteger(r)?r.toString(10):"",step:"1"})}),(0,Ln.jsx)(ta.__experimentalToolsPanelItem,{label:(0,ea.__)("Reverse order"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>e({reversed:void 0}),children:(0,Ln.jsx)(ta.ToggleControl,{label:(0,ea.__)("Reverse order"),checked:t||!1,onChange:i=>{e({reversed:i||void 0})}})})]})})},EK=c_e;var IK=a(H(),1),NK=a(y(),1);function u_e(e,t){let{ordered:r,...o}=e;return(0,NK.jsx)(r?"ol":"ul",{ref:t,...o})}var DK=(0,IK.forwardRef)(u_e);var Mn=a(y(),1),m_e={name:"core/list-item"},p_e=[["core/list-item"]],LK=8;function d_e(e,t){let r=(0,gm.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:n}=(0,gm.useDispatch)(ss.store);(0,cd.useEffect)(()=>{if(!e.values)return;let[i,l]=D4(e);(0,AK.default)("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),r.batch(()=>{o(t,i),n(t,l)})},[e.values])}function f_e(e){let{replaceBlocks:t,selectionChange:r}=(0,gm.useDispatch)(ss.store),{getBlockRootClientId:o,getBlockAttributes:n,getBlock:i}=(0,gm.useSelect)(ss.store);return(0,cd.useCallback)(()=>{let l=o(e),s=n(l),c=(0,MK.createBlock)("core/list-item",s),{innerBlocks:u}=i(e);t([l],[c,...u]),r(u[u.length-1].clientId)},[e])}function h_e({clientId:e}){let t=f_e(e),r=(0,gm.useSelect)(o=>{let{getBlockRootClientId:n,getBlockName:i}=o(ss.store);return i(n(e))==="core/list-item"},[e]);return(0,Mn.jsx)(Mn.Fragment,{children:(0,Mn.jsx)(L4.ToolbarButton,{icon:(0,ls.isRTL)()?H0:j0,title:(0,ls.__)("Outdent"),description:(0,ls.__)("Outdent list item"),disabled:!r,onClick:t})})}function RK({attributes:e,setAttributes:t,clientId:r,style:o}){let{ordered:n,type:i,reversed:l,start:s}=e,c=(0,ss.useBlockProps)({style:{...cd.Platform.isNative&&o,listStyleType:n&&i!=="decimal"?i:void 0}}),u=(0,ss.useInnerBlocksProps)(c,{defaultBlock:m_e,directInsert:!0,template:p_e,templateLock:!1,templateInsertUpdatesSelection:!0,...cd.Platform.isNative&&{marginVertical:LK,marginHorizontal:LK,renderAppender:!1},__experimentalCaptureToolbars:!0});d_e(e,r);let m=(0,Mn.jsxs)(ss.BlockControls,{group:"block",children:[(0,Mn.jsx)(L4.ToolbarButton,{icon:(0,ls.isRTL)()?V0:F0,title:(0,ls.__)("Unordered"),description:(0,ls.__)("Convert to unordered list"),isActive:n===!1,onClick:()=>{t({ordered:!1})}}),(0,Mn.jsx)(L4.ToolbarButton,{icon:(0,ls.isRTL)()?O0:ji,title:(0,ls.__)("Ordered"),description:(0,ls.__)("Convert to ordered list"),isActive:n===!0,onClick:()=>{t({ordered:!0})}}),(0,Mn.jsx)(h_e,{clientId:r})]});return(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)(DK,{ordered:n,reversed:l,start:s,...u}),m,n&&(0,Mn.jsx)(EK,{setAttributes:t,reversed:l,start:s,type:i})]})}var M4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list",title:"List",category:"text",allowedBlocks:["core/list-item"],description:"An organized collection of items displayed in a specific order.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalOnMerge:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0},listView:!0},selectors:{border:".wp-block-list:not(.wp-block-list .wp-block-list)"},editorStyle:"wp-block-list-editor",style:"wp-block-list"};var A4=a(T(),1),ZN=a(y(),1);function zK({attributes:e}){let{ordered:t,type:r,reversed:o,start:n}=e;return(0,ZN.jsx)(t?"ol":"ul",{...A4.useBlockProps.save({reversed:o,start:n,style:{listStyleType:t&&r!=="decimal"?r:void 0}}),children:(0,ZN.jsx)(A4.InnerBlocks.Content,{})})}var ru=a(G(),1),Bh=a(Qu(),1);function VK({phrasingContentSchema:e}){let t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach(r=>{t[r].children={li:{children:t}}}),t}function KN(e){return e.flatMap(({name:t,attributes:r,innerBlocks:o=[]})=>t==="core/list-item"?[r.content,...KN(o)]:KN(o))}var v_e={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map(({content:r})=>(0,ru.createBlock)("core/list-item",{content:r}));else if(e.length===1){let r=(0,Bh.create)({html:e[0].content});t=(0,Bh.split)(r,` |
| 33 |
`).map(o=>(0,ru.createBlock)("core/list-item",{content:(0,Bh.toHTMLString)({value:o})}))}return(0,ru.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:VK(e).ol,ul:VK(e).ul}),transform:qN},...["*","-"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,ru.createBlock)("core/list",{},[(0,ru.createBlock)("core/list-item",{content:t})])}})),...["1.","1)"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,ru.createBlock)("core/list",{ordered:!0},[(0,ru.createBlock)("core/list-item",{content:t})])}}))],to:[...["core/paragraph","core/heading"].map(e=>({type:"block",blocks:[e],transform:(t,r)=>KN(r).map(o=>(0,ru.createBlock)(e,{content:o}))}))]},FK=v_e;var{name:OK}=M4,HK={icon:Dl,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,Eh.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,Eh.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,Eh.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,Eh.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,Eh.__)("The Queen of Hearts.")}}]},transforms:FK,edit:RK,save:zK,deprecated:SK},b_e=()=>N({name:OK,metadata:M4,settings:HK});var XN={};q(XN,{init:()=>k_e,metadata:()=>z4,name:()=>YK,settings:()=>QK});var vm=a(P(),1),R4=a(T(),1),ym=a(A(),1),bm=a(H(),1),jK=a(z(),1),UK=a(j1(),1);var yi=a(y(),1),{Badge:y_e}=Z(ym.privateApis);function GK({attributes:e,setAttributes:t,isSelected:r}){let{latex:o,mathML:n}=e,[i,l]=(0,bm.useState)(),[s,c]=(0,bm.useState)(null),[u,m]=(0,bm.useState)(),p=(0,bm.useRef)(o),{__unstableMarkNextChangeAsNotPersistent:d}=(0,jK.useDispatch)(R4.store);(0,bm.useEffect)(()=>{import("@wordpress/latex-to-mathml").then(h=>{m(()=>h.default),p.current&&(d(),t({mathML:h.default(p.current,{displayMode:!0})}))})},[p,t,d]);let f=(0,R4.useBlockProps)({ref:l,position:"relative"});return(0,yi.jsxs)("div",{...f,children:[n?(0,yi.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:n}}):"\u200B",r&&(0,yi.jsx)(ym.Popover,{placement:"bottom-start",offset:8,anchor:i,focusOnMount:!1,__unstableSlotName:"__unstable-block-tools-after",children:(0,yi.jsx)("div",{style:{padding:"4px",minWidth:"300px"},children:(0,yi.jsxs)(ym.__experimentalVStack,{spacing:1,children:[(0,yi.jsx)(ym.TextareaControl,{__next40pxDefaultSize:!0,label:(0,vm.__)("LaTeX math syntax"),hideLabelFromVision:!0,value:o,className:"wp-block-math__textarea-control",onChange:h=>{if(!u){t({latex:h});return}let g="";try{g=u(h,{displayMode:!0}),c(null)}catch(b){c(b.message),(0,UK.speak)((0,vm.sprintf)((0,vm.__)("Error parsing mathematical expression: %s"),b.message))}t({mathML:g,latex:h})},placeholder:(0,vm.__)("e.g., x^2, \\frac{a}{b}")}),s&&(0,yi.jsxs)(yi.Fragment,{children:[(0,yi.jsx)(y_e,{intent:"error",className:"wp-block-math__error",children:(0,vm.sprintf)((0,vm.__)("Error: %s"),s)}),(0,yi.jsx)("style",{children:".wp-block-math__error .components-badge__content{white-space:normal}"})]})]})})})]})}var z4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/math",title:"Math",category:"text",description:"Display mathematical notation using LaTeX.",keywords:["equation","formula","latex","mathematics"],textdomain:"default",supports:{anchor:!0,html:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}}},attributes:{latex:{type:"string",role:"content"},mathML:{type:"string",source:"html",selector:"math"}}};var WK=a(T(),1),QN=a(y(),1);function $K({attributes:e}){let{latex:t,mathML:r}=e;return t?(0,QN.jsx)("div",{...WK.useBlockProps.save(),children:(0,QN.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:r}})}):null}var qK=a(T(),1),ZK=a(y(),1),x_e={attributes:{latex:{type:"string",role:"content"},mathML:{type:"string",source:"html",selector:"math"}},save({attributes:e}){let{latex:t,mathML:r}=e;return t?(0,ZK.jsx)("math",{...qK.useBlockProps.save(),display:"block",dangerouslySetInnerHTML:{__html:r}}):null}},KK=[x_e];var{name:YK}=z4,QK={icon:FT,example:{attributes:{latex:"x = \\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}",mathML:'<semantics><mrow><mi>x</mi><mo>=</mo><mfrac><mrow><mo lspace="0em" rspace="0em">\u2212</mo><mi>b</mi><mo>\xB1</mo><msqrt><mrow><msup><mi>b</mi><mn>2</mn></msup><mo>\u2212</mo><mn>4</mn><mi>a</mi><mi>c</mi></mrow></msqrt></mrow><mrow><mn>2</mn><mi>a</mi></mrow></mfrac></mrow><annotation encoding="application/x-tex">x = \\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}</annotation></semantics>'},viewportWidth:300},edit:GK,save:$K,deprecated:KK},k_e=()=>N({name:YK,metadata:z4,settings:QK});var lD={};q(lD,{init:()=>B_e,metadata:()=>V4,name:()=>vY,settings:()=>j4});var fY=a(P(),1);var hY=a(T(),1),gY=a(G(),1);var V4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list-item",title:"List Item",category:"text",parent:["core/list"],allowedBlocks:["core/list"],description:"An individual item within a list.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"rich-text",source:"rich-text",selector:"li",role:"content"}},supports:{anchor:!0,html:!1,className:!1,splitting:!0,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,background:!0,__experimentalDefaultControls:{text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},selectors:{root:".wp-block-list > li",border:".wp-block-list:not(.wp-block-list .wp-block-list) > li"}};var tc=a(T(),1),ec=a(P(),1),iD=a(A(),1);var sY=a(pe(),1),cY=a(z(),1),uY=a(Ls(),1);var XK=a(H(),1),Ih=a(z(),1),JN=a(T(),1),JK=a(G(),1);function ou(){let e=(0,Ih.useRegistry)(),{moveBlocksToPosition:t,removeBlock:r,insertBlock:o,updateBlockListSettings:n}=(0,Ih.useDispatch)(JN.store),{getBlockRootClientId:i,getBlockName:l,getBlockOrder:s,getBlockIndex:c,getSelectedBlockClientIds:u,getBlock:m,getBlockListSettings:p}=(0,Ih.useSelect)(JN.store);function d(f){let h=i(f),g=i(h);if(g&&l(g)==="core/list-item")return g}return(0,XK.useCallback)((f=u())=>{if(Array.isArray(f)||(f=[f]),!f.length)return;let h=f[0];if(l(h)!=="core/list-item")return;let g=d(h);if(!g)return;let b=i(h),v=f[f.length-1],_=s(b).slice(c(v)+1);return e.batch(()=>{if(_.length){let k=s(h)[0];if(!k){let S=(0,JK.cloneBlock)(m(b),{},[]);k=S.clientId,o(S,0,h,!1),n(k,p(b))}t(_,b,k)}t(f,b,i(g),c(g)+1),s(b).length||r(b,!1)}),!0},[])}var eY=a(H(),1),F4=a(z(),1),eD=a(T(),1),wv=a(G(),1);function Cv(e){let{replaceBlocks:t,selectionChange:r,multiSelect:o}=(0,F4.useDispatch)(eD.store),{getBlock:n,getPreviousBlockClientId:i,getSelectionStart:l,getSelectionEnd:s,hasMultiSelection:c,getMultiSelectedBlockClientIds:u}=(0,F4.useSelect)(eD.store);return(0,eY.useCallback)(()=>{let m=c(),p=m?u():[e],d=p.map(v=>(0,wv.cloneBlock)(n(v))),f=i(e),h=(0,wv.cloneBlock)(n(f));h.innerBlocks?.length||(h.innerBlocks=[(0,wv.createBlock)("core/list")]),h.innerBlocks[h.innerBlocks.length-1].innerBlocks.push(...d);let g=l(),b=s();return t([f,...p],[h]),m?o(d[0].clientId,d[d.length-1].clientId):r(d[0].clientId,b.attributeKey,b.clientId===g.clientId?g.offset:b.offset,b.offset),!0},[e])}var ud=a(G(),1),tY=a(H(),1),rY=a(pe(),1),oY=a(Ls(),1),O4=a(z(),1),tD=a(T(),1);function rD(e){let{replaceBlocks:t,selectionChange:r}=(0,O4.useDispatch)(tD.store),{getBlock:o,getBlockRootClientId:n,getBlockIndex:i,getBlockName:l}=(0,O4.useSelect)(tD.store),s=(0,tY.useRef)(e);s.current=e;let c=ou();return(0,rY.useRefEffect)(u=>{function m(p){if(p.defaultPrevented||p.keyCode!==oY.ENTER)return;let{content:d,clientId:f}=s.current;if(d.length)return;if(p.preventDefault(),l(n(n(s.current.clientId)))==="core/list-item"){c();return}let g=o(n(f)),b=i(f),v=(0,ud.cloneBlock)({...g,innerBlocks:g.innerBlocks.slice(0,b)}),x=(0,ud.createBlock)((0,ud.getDefaultBlockName)()),_=[...g.innerBlocks[b].innerBlocks[0]?.innerBlocks||[],...g.innerBlocks.slice(b+1)],k=_.length?[(0,ud.cloneBlock)({...g,innerBlocks:_})]:[];t(g.clientId,[v,x,...k],1),r(x.clientId)}return u.addEventListener("keydown",m),()=>{u.removeEventListener("keydown",m)}},[])}var aY=a(pe(),1),Sv=a(Ls(),1),nY=a(T(),1),iY=a(z(),1);function oD(e){let{getSelectionStart:t,getSelectionEnd:r,getBlockIndex:o}=(0,iY.useSelect)(nY.store),n=Cv(e),i=ou();return(0,aY.useRefEffect)(l=>{function s(c){let{keyCode:u,shiftKey:m,altKey:p,metaKey:d,ctrlKey:f}=c;if(c.defaultPrevented||u!==Sv.SPACE&&u!==Sv.TAB||p||d||f)return;let h=t(),g=r();h.offset===0&&g.offset===0&&(m?u===Sv.TAB&&i()&&c.preventDefault():o(e)!==0&&n()&&c.preventDefault())}return l.addEventListener("keydown",s),()=>{l.removeEventListener("keydown",s)}},[e,n])}var Nh=a(z(),1),aD=a(T(),1),lY=a(G(),1);function nD(e,t){let r=(0,Nh.useRegistry)(),{getPreviousBlockClientId:o,getNextBlockClientId:n,getBlockOrder:i,getBlockRootClientId:l,getBlockName:s,getBlock:c}=(0,Nh.useSelect)(aD.store),{mergeBlocks:u,moveBlocksToPosition:m,removeBlock:p}=(0,Nh.useDispatch)(aD.store),d=ou();function f(v){let x=i(v);return x.length?f(x[x.length-1]):v}function h(v){let x=l(v),_=l(x);if(_&&s(_)==="core/list-item")return _}function g(v){let x=n(v);if(x)return x;let _=h(v);if(_)return g(_)}function b(v){let x=i(v);return x.length?i(x[0])[0]:g(v)}return v=>{function x(_,k){r.batch(()=>{let[S]=i(k);S&&(o(k)===_&&!i(_).length?m([S],k,_):m(i(S),S,l(_))),u(_,k)})}if(v){let _=b(e);if(!_){t(v);return}h(_)?d(_):x(e,_)}else{if(h(e)){d(e);return}let _=o(e);if(_){let S=f(_);x(S,e);return}let k=i(e);(0,lY.isUnmodifiedBlock)(c(e),"content")&&k.length>0?r.batch(()=>{d(i(k[0])),p(e,!0)}):t(v)}}}var _i=a(y(),1);function C_e({clientId:e}){let t=Cv(e),r=ou(),{canIndent:o,canOutdent:n}=(0,cY.useSelect)(i=>{let{getBlockIndex:l,getBlockRootClientId:s,getBlockName:c}=i(tc.store);return{canIndent:l(e)>0,canOutdent:c(s(s(e)))==="core/list-item"}},[e]);return(0,_i.jsxs)(_i.Fragment,{children:[(0,_i.jsx)(iD.ToolbarButton,{icon:(0,ec.isRTL)()?H0:j0,title:(0,ec.__)("Outdent"),shortcut:uY.displayShortcut.shift("Tab"),description:(0,ec.__)("Outdent list item"),disabled:!n,onClick:()=>r()}),(0,_i.jsx)(iD.ToolbarButton,{icon:(0,ec.isRTL)()?U9:W9,title:(0,ec.__)("Indent"),shortcut:"Tab",description:(0,ec.__)("Indent list item"),disabled:!o,onClick:()=>t()})]})}function mY({attributes:e,setAttributes:t,clientId:r,mergeBlocks:o}){let{placeholder:n,content:i}=e,l=(0,tc.useBlockProps)(),s=(0,tc.useInnerBlocksProps)(l,{renderAppender:!1,__unstableDisableDropZone:!0}),c=rD({content:i,clientId:r}),u=oD(r),m=nD(r,o);return(0,_i.jsxs)(_i.Fragment,{children:[(0,_i.jsxs)("li",{...s,children:[(0,_i.jsx)(tc.RichText,{ref:(0,sY.useMergeRefs)([c,u]),identifier:"content",tagName:"div",onChange:p=>t({content:p}),value:i,"aria-label":(0,ec.__)("List text"),placeholder:n||(0,ec.__)("List"),onMerge:m}),s.children]}),(0,_i.jsx)(tc.BlockControls,{group:"block",children:(0,_i.jsx)(C_e,{clientId:r})})]})}var Dh=a(T(),1),Tv=a(y(),1);function pY({attributes:e}){return(0,Tv.jsxs)("li",{...Dh.useBlockProps.save(),children:[(0,Tv.jsx)(Dh.RichText.Content,{value:e.content}),(0,Tv.jsx)(Dh.InnerBlocks.Content,{})]})}var H4=a(G(),1),S_e={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,H4.createBlock)("core/paragraph",e),...t.map(r=>(0,H4.cloneBlock)(r))]}]},dY=S_e;var{fieldsKey:T_e,formKey:P_e}=Z(gY.privateApis),{name:vY}=V4,j4={icon:NT,edit:mY,save:pY,merge(e,t){return{...e,content:e.content+t.content}},transforms:dY,[Z(hY.privateApis).requiresWrapperOnCopy]:!0,__experimentalLabel(e,{context:t}){let{content:r}=e,o=e?.metadata?.name,n=r?.trim().length>0;if(t==="list-view"&&(o||n))return o||r;if(t==="breadcrumb"&&o)return o}};window.__experimentalContentOnlyInspectorFields&&(j4[T_e]=[{id:"content",label:(0,fY.__)("Content"),type:"text",Edit:"rich-text"}],j4[P_e]={fields:["content"]});var B_e=()=>N({name:vY,metadata:V4,settings:j4});var sD={};q(sD,{init:()=>I_e,metadata:()=>G4,name:()=>yY,settings:()=>_Y});var U4=a(T(),1),_m=a(A(),1),md=a(P(),1);var xi=a(y(),1);function bY({attributes:e,setAttributes:t}){let{displayLoginAsForm:r,redirectToCurrent:o}=e,n=$();return(0,xi.jsxs)(xi.Fragment,{children:[(0,xi.jsx)(U4.InspectorControls,{children:(0,xi.jsxs)(_m.__experimentalToolsPanel,{label:(0,md.__)("Settings"),resetAll:()=>{t({displayLoginAsForm:!1,redirectToCurrent:!0})},dropdownMenuProps:n,children:[(0,xi.jsx)(_m.__experimentalToolsPanelItem,{label:(0,md.__)("Display login as form"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>t({displayLoginAsForm:!1}),children:(0,xi.jsx)(_m.ToggleControl,{label:(0,md.__)("Display login as form"),checked:r,onChange:()=>t({displayLoginAsForm:!r})})}),(0,xi.jsx)(_m.__experimentalToolsPanelItem,{label:(0,md.__)("Redirect to current URL"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({redirectToCurrent:!0}),children:(0,xi.jsx)(_m.ToggleControl,{label:(0,md.__)("Redirect to current URL"),checked:o,onChange:()=>t({redirectToCurrent:!o})})})]})}),(0,xi.jsx)("div",{...(0,U4.useBlockProps)({className:"logged-in"}),children:(0,xi.jsx)("a",{href:"#login-pseudo-link",children:(0,md.__)("Log out")})})]})}var G4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/loginout",title:"Login/out",category:"theme",description:"Show login & logout links.",keywords:["login","logout","form"],textdomain:"default",attributes:{displayLoginAsForm:{type:"boolean",default:!1},redirectToCurrent:{type:"boolean",default:!0}},example:{viewportWidth:350},supports:{anchor:!0,className:!0,color:{background:!0,text:!1,gradients:!0,link:!0},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},interactivity:{clientNavigation:!0}},style:"wp-block-loginout"};var{name:yY}=G4,_Y={icon:MT,edit:bY},I_e=()=>N({name:yY,metadata:G4,settings:_Y});var fD={};q(fD,{init:()=>J_e,metadata:()=>tw,name:()=>HY,settings:()=>rw});var Ev=a(P(),1);var OY=a(G(),1);var pr=a(T(),1),cD=a(pe(),1);var xY=a(P(),1),rc="full",Pv=15,W4="none",$4="media",q4="attachment",kY=[["core/paragraph",{placeholder:(0,xY._x)("Content\u2026","content placeholder")}]];var Se=a(y(),1),Z4=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${t.x*100}% ${t.y*100}%`:"50% 50%"}:{},wY=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(t.x*100)}% ${Math.round(t.y*100)}%`:"50% 50%"}:{},pd=50,oc=()=>{},CY=e=>{if(!e.customBackgroundColor)return e;let t={color:{background:e.customBackgroundColor}},{customBackgroundColor:r,...o}=e;return{...o,style:t}},Lh=e=>e.align?e:{...e,align:"wide"},K4={align:{type:"string",default:"wide"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1}},uD={...K4,isStackedOnMobile:{type:"boolean",default:!0},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaSizeSlug:{type:"string"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},SY={...uD,mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",role:"content"},mediaId:{type:"number",role:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",role:"content"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",role:"content"},mediaType:{type:"string",role:"content"}},N_e={...SY,align:{type:"string",default:"none"},useFeaturedImage:{type:"boolean",default:!1}},mD={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},TY={...mD,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},D_e={...TY,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},L_e={attributes:N_e,supports:D_e,usesContext:["postId","postType"],save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||rc,b=h||void 0,v=w({[`wp-image-${s}`]:s&&n==="image",[`size-${g}`]:s&&n==="image"}),x=i?(0,Se.jsx)("img",{src:i,alt:r,className:v||null}):null;d&&(x=(0,Se.jsx)("a",{className:p,href:d,target:f,rel:b,children:x}));let _={image:()=>x,video:()=>(0,Se.jsx)("video",{controls:!0,src:i})},k=w({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),S=u?wY(i,m):{},C;l!==pd&&(C=o==="right"?`auto ${l}%`:`${l}% auto`);let E={gridTemplateColumns:C};return o==="right"?(0,Se.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Se.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Se.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(_[n]||oc)()})]}):(0,Se.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Se.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(_[n]||oc)()}),(0,Se.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}},M_e={attributes:SY,supports:TY,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||rc,b=h||void 0,v=w({[`wp-image-${s}`]:s&&n==="image",[`size-${g}`]:s&&n==="image"}),x=(0,Se.jsx)("img",{src:i,alt:r,className:v||null});d&&(x=(0,Se.jsx)("a",{className:p,href:d,target:f,rel:b,children:x}));let _={image:()=>x,video:()=>(0,Se.jsx)("video",{controls:!0,src:i})},k=w({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),S=u?wY(i,m):{},C;l!==pd&&(C=o==="right"?`auto ${l}%`:`${l}% auto`);let E={gridTemplateColumns:C};return o==="right"?(0,Se.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Se.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Se.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(_[n]||oc)()})]}):(0,Se.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Se.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(_[n]||oc)()}),(0,Se.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Lh,isEligible(e,t,{block:r}){let{attributes:o}=r;return e.align===void 0&&!!o.className?.includes("alignwide")}},A_e={attributes:uD,supports:mD,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||rc,b=h||void 0,v=w({[`wp-image-${s}`]:s&&n==="image",[`size-${g}`]:s&&n==="image"}),x=(0,Se.jsx)("img",{src:i,alt:r,className:v||null});d&&(x=(0,Se.jsx)("a",{className:p,href:d,target:f,rel:b,children:x}));let _={image:()=>x,video:()=>(0,Se.jsx)("video",{controls:!0,src:i})},k=w({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),S=u?Z4(i,m):{},C;l!==pd&&(C=o==="right"?`auto ${l}%`:`${l}% auto`);let E={gridTemplateColumns:C};return o==="right"?(0,Se.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Se.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Se.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(_[n]||oc)()})]}):(0,Se.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Se.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(_[n]||oc)()}),(0,Se.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Lh},R_e={attributes:uD,supports:mD,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||rc,b=h||void 0,v=w({[`wp-image-${s}`]:s&&n==="image",[`size-${g}`]:s&&n==="image"}),x=(0,Se.jsx)("img",{src:i,alt:r,className:v||null});d&&(x=(0,Se.jsx)("a",{className:p,href:d,target:f,rel:b,children:x}));let _={image:()=>x,video:()=>(0,Se.jsx)("video",{controls:!0,src:i})},k=w({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),S=u?Z4(i,m):{},C;l!==pd&&(C=o==="right"?`auto ${l}%`:`${l}% auto`);let E={gridTemplateColumns:C};return(0,Se.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Se.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(_[n]||oc)()}),(0,Se.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Lh},z_e={attributes:{...K4,isStackedOnMobile:{type:"boolean",default:!0},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:(0,cD.compose)(CY,Lh),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c,mediaId:u,verticalAlignment:m,imageFill:p,focalPoint:d,linkClass:f,href:h,linkTarget:g,rel:b}=e,v=b||void 0,x=(0,Se.jsx)("img",{src:s,alt:n,className:u&&l==="image"?`wp-image-${u}`:null});h&&(x=(0,Se.jsx)("a",{className:f,href:h,target:g,rel:v,children:x}));let _={image:()=>x,video:()=>(0,Se.jsx)("video",{controls:!0,src:s})},k=(0,pr.getColorClassName)("background-color",t),S=w({"has-media-on-the-right":i==="right","has-background":k||r,[k]:k,"is-stacked-on-mobile":o,[`is-vertically-aligned-${m}`]:m,"is-image-fill":p}),C=p?Z4(s,d):{},E;return c!==pd&&(E=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Se.jsxs)("div",{className:S,style:{backgroundColor:k?void 0:r,gridTemplateColumns:E},children:[(0,Se.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(_[l]||oc)()}),(0,Se.jsx)("div",{className:"wp-block-media-text__content",children:(0,Se.jsx)(pr.InnerBlocks.Content,{})})]})}},V_e={attributes:{...K4,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:(0,cD.compose)(CY,Lh),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c,mediaId:u,verticalAlignment:m,imageFill:p,focalPoint:d}=e,f={image:()=>(0,Se.jsx)("img",{src:s,alt:n,className:u&&l==="image"?`wp-image-${u}`:null}),video:()=>(0,Se.jsx)("video",{controls:!0,src:s})},h=(0,pr.getColorClassName)("background-color",t),g=w({"has-media-on-the-right":i==="right",[h]:h,"is-stacked-on-mobile":o,[`is-vertically-aligned-${m}`]:m,"is-image-fill":p}),b=p?Z4(s,d):{},v;return c!==pd&&(v=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Se.jsxs)("div",{className:g,style:{backgroundColor:h?void 0:r,gridTemplateColumns:v},children:[(0,Se.jsx)("figure",{className:"wp-block-media-text__media",style:b,children:(f[l]||oc)()}),(0,Se.jsx)("div",{className:"wp-block-media-text__content",children:(0,Se.jsx)(pr.InnerBlocks.Content,{})})]})}},F_e={attributes:{...K4,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:Lh,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c}=e,u={image:()=>(0,Se.jsx)("img",{src:s,alt:n}),video:()=>(0,Se.jsx)("video",{controls:!0,src:s})},m=(0,pr.getColorClassName)("background-color",t),p=w({"has-media-on-the-right":i==="right",[m]:m,"is-stacked-on-mobile":o}),d;return c!==pd&&(d=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Se.jsxs)("div",{className:p,style:{backgroundColor:m?void 0:r,gridTemplateColumns:d},children:[(0,Se.jsx)("figure",{className:"wp-block-media-text__media",children:(u[l]||oc)()}),(0,Se.jsx)("div",{className:"wp-block-media-text__content",children:(0,Se.jsx)(pr.InnerBlocks.Content,{})})]})}},PY=[L_e,M_e,A_e,R_e,z_e,V_e,F_e];var ra=a(P(),1),X4=a(z(),1),J4=a(H(),1),Bo=a(T(),1),Nr=a(A(),1),ew=a(Br(),1);var Bv=a(Y(),1);var Mh=a(A(),1),ac=a(T(),1),EY=a(P(),1),IY=a(pe(),1),pD=a(z(),1),dD=a(H(),1),Q4=a(Br(),1),NY=a(yr(),1);function Y4(e,t){return e?{objectPosition:t?`${Math.round(t.x*100)}% ${Math.round(t.y*100)}%`:"50% 50%"}:{}}var Ta=a(y(),1),DY=["image","video"],O_e=()=>{},H_e=(0,dD.forwardRef)(({isSelected:e,isStackedOnMobile:t,...r},o)=>{let n=(0,IY.useViewportMatch)("small","<");return(0,Ta.jsx)(Mh.ResizableBox,{ref:o,showHandle:e&&(!n||!t),...r})});function j_e({mediaId:e,mediaUrl:t,onSelectMedia:r,toggleUseFeaturedImage:o,useFeaturedImage:n}){return(0,Ta.jsx)(ac.BlockControls,{group:"other",children:(0,Ta.jsx)(ac.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:DY,onSelect:r,onToggleFeaturedImage:o,useFeaturedImage:n,onReset:()=>r(void 0)})})}function BY({className:e,mediaUrl:t,onSelectMedia:r,toggleUseFeaturedImage:o}){let{createErrorNotice:n}=(0,pD.useDispatch)(NY.store),i=s=>{n(s,{type:"snackbar"})},l=s=>{s.length===1&&r({url:(0,Q4.createBlobURL)(s[0])})};return(0,Ta.jsx)(ac.MediaPlaceholder,{icon:(0,Ta.jsx)(ac.BlockIcon,{icon:q0}),labels:{title:(0,EY.__)("Media area")},className:e,onSelect:r,onToggleFeaturedImage:o,allowedTypes:DY,onFilesPreUpload:l,onError:i,disableMediaButtons:t})}function U_e(e,t){let{className:r,commitWidthChange:o,focalPoint:n,imageFill:i,isSelected:l,isStackedOnMobile:s,mediaAlt:c,mediaId:u,mediaPosition:m,mediaType:p,mediaUrl:d,mediaWidth:f,onSelectMedia:h,onWidthChange:g,enableResize:b,toggleUseFeaturedImage:v,useFeaturedImage:x,featuredImageURL:_,featuredImageAlt:k,refMedia:S}=e,C=!u&&(0,Q4.isBlobURL)(d),{toggleSelection:E}=(0,pD.useDispatch)(ac.store);if(d||_||x){let I=()=>{E(!1)},D=(B,j,U)=>{g(parseInt(U.style.width))},M=(B,j,U)=>{E(!0),o(parseInt(U.style.width))},F={right:b&&m==="left",left:b&&m==="right"},R=p==="image"&&i?Y4(d||_,n):{},V={image:()=>x&&_?(0,Ta.jsx)("img",{ref:S,src:_,alt:k,style:R}):d&&(0,Ta.jsx)("img",{ref:S,src:d,alt:c,style:R}),video:()=>(0,Ta.jsx)("video",{controls:!0,ref:S,src:d})};return(0,Ta.jsxs)(H_e,{as:"figure",className:w(r,"editor-media-container__resizer",{"is-transient":C}),size:{width:f+"%"},minWidth:"10%",maxWidth:"100%",enable:F,onResizeStart:I,onResize:D,onResizeStop:M,axis:"x",isSelected:l,isStackedOnMobile:s,ref:t,children:[(0,Ta.jsx)(j_e,{onSelectMedia:h,mediaUrl:x&&_?_:d,mediaId:u,toggleUseFeaturedImage:v,useFeaturedImage:x}),(V[p]||O_e)(),C&&(0,Ta.jsx)(Mh.Spinner,{}),!x&&(0,Ta.jsx)(BY,{...e}),!_&&x&&(0,Ta.jsx)(Mh.Placeholder,{className:"wp-block-media-text--placeholder-image",style:R,withIllustration:!0})]})}return(0,Ta.jsx)(BY,{...e})}var LY=(0,dD.forwardRef)(U_e);var pt=a(y(),1),{ResolutionTool:G_e}=Z(Bo.privateApis),MY=e=>Math.max(Pv,Math.min(e,100-Pv));function AY(e,t){return e?.media_details?.sizes?.[t]?.source_url}function W_e({attributes:{linkDestination:e,href:t},setAttributes:r}){return o=>{if(!o||!o.url){r({mediaAlt:void 0,mediaId:void 0,mediaType:void 0,mediaUrl:void 0,mediaLink:void 0,href:void 0,focalPoint:void 0,useFeaturedImage:!1});return}(0,ew.isBlobURL)(o.url)&&(o.type=(0,ew.getBlobTypeByURL)(o.url));let n,i;o.media_type?o.media_type==="image"?n="image":n="video":n=o.type,n==="image"&&(i=o.sizes?.large?.url||o.media_details?.sizes?.large?.source_url);let l=e,s=t;if(n==="image"){if(!l)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||W4){case"file":case $4:l=$4;break;case"post":case q4:l=q4;break;case W4:default:l=W4;break}switch(l){case $4:s=o.url;break;case q4:s=o.link;break}}r({mediaAlt:o.alt,mediaId:o.id,mediaType:n,mediaUrl:i||o.url,mediaLink:o.link||void 0,href:s,linkDestination:l,focalPoint:void 0,useFeaturedImage:!1})}}function $_e({image:e,value:t,onChange:r}){let{imageSizes:o}=(0,X4.useSelect)(i=>{let{getSettings:l}=i(Bo.store);return{imageSizes:l().imageSizes}},[]);if(!o?.length)return null;let n=o.filter(({slug:i})=>AY(e,i)).map(({name:i,slug:l})=>({value:l,label:i}));return(0,pt.jsx)(G_e,{value:t,defaultValue:rc,options:n,onChange:r})}function q_e({attributes:e,isSelected:t,setAttributes:r,context:{postId:o,postType:n}}){let{focalPoint:i,href:l,imageFill:s,isStackedOnMobile:c,linkClass:u,linkDestination:m,linkTarget:p,mediaAlt:d,mediaId:f,mediaPosition:h,mediaType:g,mediaUrl:b,mediaWidth:v,mediaSizeSlug:x,rel:_,verticalAlignment:k,allowedBlocks:S,useFeaturedImage:C}=e,[E]=(0,Bv.useEntityProp)("postType",n,"featured_media",o),{featuredImageMedia:I}=(0,X4.useSelect)(te=>({featuredImageMedia:E&&C?te(Bv.store).getEntityRecord("postType","attachment",E,{context:"view"}):void 0}),[E,C]),{image:D}=(0,X4.useSelect)(te=>({image:f&&t?te(Bv.store).getEntityRecord("postType","attachment",f,{context:"view"}):null}),[t,f]),M=C?I?.source_url:"",F=C?I?.alt_text:"",R=()=>{r({imageFill:!1,mediaType:"image",mediaId:void 0,mediaUrl:void 0,mediaAlt:void 0,mediaLink:void 0,linkDestination:void 0,linkTarget:void 0,linkClass:void 0,rel:void 0,href:void 0,useFeaturedImage:!C})},V=(0,J4.useRef)(),B=te=>{let{style:He}=V.current,{x:st,y:ct}=te;He.objectPosition=`${st*100}% ${ct*100}%`},[j,U]=(0,J4.useState)(null),O=W_e({attributes:e,setAttributes:r}),K=te=>{r(te)},W=te=>{U(MY(te))},ee=te=>{r({mediaWidth:MY(te)}),U(null)},oe=w({"has-media-on-the-right":h==="right","is-selected":t,"is-stacked-on-mobile":c,[`is-vertically-aligned-${k}`]:k,"is-image-fill-element":s}),X=`${j||v}%`,J=h==="right"?`1fr ${X}`:`${X} 1fr`,ne={gridTemplateColumns:J,msGridColumns:J},ie=te=>{r({mediaAlt:te})},ue=te=>{r({verticalAlignment:te})},fe=te=>{let He=AY(D,te);if(!He)return null;r({mediaUrl:He,mediaSizeSlug:te})},Oe=$(),ke=(0,pt.jsxs)(Nr.__experimentalToolsPanel,{label:(0,ra.__)("Settings"),resetAll:()=>{r({isStackedOnMobile:!0,imageFill:!1,mediaAlt:"",focalPoint:void 0,mediaWidth:50}),fe(rc)},dropdownMenuProps:Oe,children:[(0,pt.jsx)(Nr.__experimentalToolsPanelItem,{label:(0,ra.__)("Media width"),isShownByDefault:!0,hasValue:()=>v!==50,onDeselect:()=>r({mediaWidth:50}),children:(0,pt.jsx)(Nr.RangeControl,{__next40pxDefaultSize:!0,label:(0,ra.__)("Media width"),value:j||v,onChange:ee,min:Pv,max:100-Pv})}),(0,pt.jsx)(Nr.__experimentalToolsPanelItem,{label:(0,ra.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>r({isStackedOnMobile:!0}),children:(0,pt.jsx)(Nr.ToggleControl,{label:(0,ra.__)("Stack on mobile"),checked:c,onChange:()=>r({isStackedOnMobile:!c})})}),g==="image"&&(0,pt.jsx)(Nr.__experimentalToolsPanelItem,{label:(0,ra.__)("Crop image to fill"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({imageFill:!1}),children:(0,pt.jsx)(Nr.ToggleControl,{label:(0,ra.__)("Crop image to fill"),checked:!!s,onChange:()=>r({imageFill:!s})})}),s&&(b||M)&&g==="image"&&(0,pt.jsx)(Nr.__experimentalToolsPanelItem,{label:(0,ra.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>r({focalPoint:void 0}),children:(0,pt.jsx)(Nr.FocalPointPicker,{label:(0,ra.__)("Focal point"),url:C&&M?M:b,value:i,onChange:te=>r({focalPoint:te}),onDragStart:B,onDrag:B})}),g==="image"&&b&&!C&&(0,pt.jsx)(Nr.__experimentalToolsPanelItem,{label:(0,ra.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>r({mediaAlt:""}),children:(0,pt.jsx)(Nr.TextareaControl,{label:(0,ra.__)("Alternative text"),value:d,onChange:ie,help:(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsx)(Nr.ExternalLink,{href:(0,ra.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,ra.__)("Describe the purpose of the image.")}),(0,pt.jsx)("br",{}),(0,ra.__)("Leave empty if decorative.")]})})}),g==="image"&&!C&&(0,pt.jsx)($_e,{image:D,value:x,onChange:fe})]}),ae=(0,Bo.useBlockProps)({className:oe,style:ne}),Te=(0,Bo.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:kY,allowedBlocks:S}),Le=(0,Bo.useBlockEditingMode)();return(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsx)(Bo.InspectorControls,{children:ke}),(0,pt.jsxs)(Bo.BlockControls,{group:"block",children:[Le==="default"&&(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsx)(Bo.BlockVerticalAlignmentControl,{onChange:ue,value:k}),(0,pt.jsx)(Nr.ToolbarButton,{icon:zP,title:(0,ra.__)("Show media on left"),isActive:h==="left",onClick:()=>r({mediaPosition:"left"})}),(0,pt.jsx)(Nr.ToolbarButton,{icon:FP,title:(0,ra.__)("Show media on right"),isActive:h==="right",onClick:()=>r({mediaPosition:"right"})})]}),g==="image"&&!C&&(0,pt.jsx)(Bo.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:K,linkDestination:m,mediaType:g,mediaUrl:D&&D.source_url,mediaLink:D&&D.link,linkTarget:p,linkClass:u,rel:_})]}),(0,pt.jsxs)("div",{...ae,children:[h==="right"&&(0,pt.jsx)("div",{...Te}),(0,pt.jsx)(LY,{className:"wp-block-media-text__media",onSelectMedia:O,onWidthChange:W,commitWidthChange:ee,refMedia:V,enableResize:Le==="default",toggleUseFeaturedImage:R,focalPoint:i,imageFill:s,isSelected:t,isStackedOnMobile:c,mediaAlt:d,mediaId:f,mediaPosition:h,mediaType:g,mediaUrl:b,mediaWidth:v,useFeaturedImage:C,featuredImageURL:M,featuredImageAlt:F}),h!=="right"&&(0,pt.jsx)("div",{...Te})]})]})}var RY=q_e;var tw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/media-text",title:"Media & Text",category:"media",description:"Set media and words side-by-side for a richer layout.",keywords:["image","video"],textdomain:"default",attributes:{align:{type:"string",default:"none"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",role:"content"},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number",role:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",role:"content"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaType:{type:"string",role:"content"},mediaWidth:{type:"number",default:50},mediaSizeSlug:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"},useFeaturedImage:{type:"boolean",default:!1}},usesContext:["postId","postType"],supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},allowedBlocks:!0},editorStyle:"wp-block-media-text-editor",style:"wp-block-media-text"};var Ah=a(T(),1);var cs=a(y(),1),K_e=50,zY=()=>{};function VY({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||rc,b=h||void 0,v=w({[`wp-image-${s}`]:s&&n==="image",[`size-${g}`]:s&&n==="image"}),x=u?Y4(i,m):{},_=i?(0,cs.jsx)("img",{src:i,alt:r,className:v||null,style:x}):null;d&&(_=(0,cs.jsx)("a",{className:p,href:d,target:f,rel:b,children:_}));let k={image:()=>_,video:()=>(0,cs.jsx)("video",{controls:!0,src:i})},S=w({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill-element":u}),C;l!==K_e&&(C=o==="right"?`auto ${l}%`:`${l}% auto`);let E={gridTemplateColumns:C};return o==="right"?(0,cs.jsxs)("div",{...Ah.useBlockProps.save({className:S,style:E}),children:[(0,cs.jsx)("div",{...Ah.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,cs.jsx)("figure",{className:"wp-block-media-text__media",children:(k[n]||zY)()})]}):(0,cs.jsxs)("div",{...Ah.useBlockProps.save({className:S,style:E}),children:[(0,cs.jsx)("figure",{className:"wp-block-media-text__media",children:(k[n]||zY)()}),(0,cs.jsx)("div",{...Ah.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}var dd=a(G(),1),Y_e={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:r,anchor:o})=>(0,dd.createBlock)("core/media-text",{mediaAlt:e,mediaId:r,mediaUrl:t,mediaType:"image",anchor:o})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:r})=>(0,dd.createBlock)("core/media-text",{mediaId:t,mediaUrl:e,mediaType:"video",anchor:r})},{type:"block",blocks:["core/cover"],transform:({align:e,alt:t,anchor:r,backgroundType:o,customGradient:n,customOverlayColor:i,gradient:l,id:s,overlayColor:c,style:u,textColor:m,url:p,useFeaturedImage:d},f)=>{let h={};return n?h={style:{color:{gradient:n}}}:i&&(h={style:{color:{background:i}}}),u?.color?.text&&(h.style={color:{...h.style?.color,text:u.color.text}}),(0,dd.createBlock)("core/media-text",{align:e,anchor:r,backgroundColor:c,gradient:l,mediaAlt:t,mediaId:s,mediaType:o,mediaUrl:p,textColor:m,useFeaturedImage:d,...h},f)}}],to:[{type:"block",blocks:["core/image"],isMatch:({mediaType:e,mediaUrl:t})=>!t||e==="image",transform:({mediaAlt:e,mediaId:t,mediaUrl:r,anchor:o})=>(0,dd.createBlock)("core/image",{alt:e,id:t,url:r,anchor:o})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||e==="video",transform:({mediaId:e,mediaUrl:t,anchor:r})=>(0,dd.createBlock)("core/video",{id:e,src:t,anchor:r})},{type:"block",blocks:["core/cover"],transform:({align:e,anchor:t,backgroundColor:r,focalPoint:o,gradient:n,mediaAlt:i,mediaId:l,mediaType:s,mediaUrl:c,style:u,textColor:m,useFeaturedImage:p},d)=>{let f={};u?.color?.gradient?f.customGradient=u.color.gradient:u?.color?.background&&(f.customOverlayColor=u.color.background),u?.color?.text&&(f.style={color:{text:u.color.text}});let h={align:e,alt:i,anchor:t,backgroundType:s,dimRatio:c||p?50:100,focalPoint:o,gradient:n,id:l,overlayColor:r,textColor:m,url:c,useFeaturedImage:p,...f};return(0,dd.createBlock)("core/cover",h,d)}}]},FY=Y_e;var{fieldsKey:Q_e,formKey:X_e}=Z(OY.privateApis),{name:HY}=tw,rw={icon:HT,example:{viewportWidth:601,attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Ev.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,Ev.__)("\u2014 Kobayashi Issa (\u4E00\u8336)")}}]},transforms:FY,edit:RY,save:VY,deprecated:PY};window.__experimentalContentOnlyInspectorFields&&(rw[Q_e]=[{id:"media",label:(0,Ev.__)("Media"),type:"media",Edit:{control:"media",allowedTypes:["image","video"],multiple:!1},getValue:({item:e})=>({id:e.mediaId,url:e.mediaUrl,mediaType:e.mediaType,link:e.mediaLink}),setValue:({value:e})=>({mediaId:e.id,mediaUrl:e.url,mediaType:e.mediaType,mediaLink:e.link})},{id:"link",label:(0,Ev.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.href,rel:e.rel,linkTarget:e.linkTarget}),setValue:({value:e})=>({href:e.url,rel:e.rel,linkTarget:e.linkTarget})}],rw[X_e]={fields:["media","link"]});var J_e=()=>N({name:HY,metadata:tw,settings:rw});var hD={};q(hD,{init:()=>txe,metadata:()=>aw,name:()=>Iv,settings:()=>QY});var YY=a(G(),1);var au=a(P(),1),jY=a(H(),1),UY=a(A(),1),GY=a(G(),1),ow=a(z(),1),fd=a(T(),1),WY=a(Jn(),1),Rh=a(y(),1);function $Y({attributes:e,clientId:t}){let{originalName:r,originalUndelimitedContent:o}=e,n=!!o,{hasFreeformBlock:i,hasHTMLBlock:l}=(0,ow.useSelect)(d=>{let{canInsertBlockType:f,getBlockRootClientId:h}=d(fd.store);return{hasFreeformBlock:f("core/freeform",h(t)),hasHTMLBlock:f("core/html",h(t))}},[t]),{replaceBlock:s}=(0,ow.useDispatch)(fd.store);function c(){s(t,(0,GY.createBlock)("core/html",{content:o}))}let u=[],m,p=(0,Rh.jsx)(UY.Button,{__next40pxDefaultSize:!0,onClick:c,variant:"primary",children:(0,au.__)("Keep as HTML")},"convert");return n&&!i&&(!r||r==="core/freeform")?l?(m=(0,au.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely. Alternatively, if you have unsaved changes, you can save them and refresh to use the Classic block."),u.push(p)):m=(0,au.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, or remove it entirely. Alternatively, if you have unsaved changes, you can save them and refresh to use the Classic block."):n&&l?(m=(0,au.sprintf)((0,au.__)('Your site doesn\u2019t include support for the "%s" block. You can leave it as-is, convert it to custom HTML, or remove it.'),r),u.push(p)):m=(0,au.sprintf)((0,au.__)('Your site doesn\u2019t include support for the "%s" block. You can leave it as-is or remove it.'),r),(0,Rh.jsxs)("div",{...(0,fd.useBlockProps)({className:"has-warning"}),children:[(0,Rh.jsx)(fd.Warning,{actions:u,children:m}),(0,Rh.jsx)(jY.RawHTML,{children:(0,WY.safeHTML)(o)})]})}var aw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/missing",title:"Unsupported",category:"text",description:"Your site doesn\u2019t include support for this block.",textdomain:"default",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,lock:!1,reusable:!1,renaming:!1,visibility:!1,interactivity:{clientNavigation:!0},customCSS:!1}};var qY=a(H(),1),ZY=a(y(),1);function KY({attributes:e}){return(0,ZY.jsx)(qY.RawHTML,{children:e.originalContent})}var{name:Iv}=aw,QY={name:Iv,__experimentalLabel(e,{context:t}){if(t==="accessibility"){let{originalName:r}=e,o=r?(0,YY.getBlockType)(r):void 0;return o?o.settings.title||r:""}},edit:$Y,save:KY},txe=()=>N({name:Iv,metadata:aw,settings:QY});var gD={};q(gD,{init:()=>lxe,metadata:()=>iw,name:()=>iQ,settings:()=>lw});var aQ=a(P(),1),nQ=a(G(),1);var xm=a(P(),1),zh=a(A(),1),Vh=a(T(),1),nw=a(G(),1);var us=a(y(),1),rxe=(0,xm.__)("Read more");function XY({attributes:{customText:e,noTeaser:t},insertBlocksAfter:r,setAttributes:o}){let n=$();return(0,us.jsxs)(us.Fragment,{children:[(0,us.jsx)(Vh.InspectorControls,{children:(0,us.jsx)(zh.__experimentalToolsPanel,{label:(0,xm.__)("Settings"),resetAll:()=>{o({noTeaser:!1})},dropdownMenuProps:n,children:(0,us.jsx)(zh.__experimentalToolsPanelItem,{label:(0,xm.__)("Hide excerpt"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>o({noTeaser:!1}),children:(0,us.jsx)(zh.ToggleControl,{label:(0,xm.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>o({noTeaser:!t}),help:i=>i?(0,xm.__)("The excerpt is hidden."):(0,xm.__)("The excerpt is visible.")})})})}),(0,us.jsx)("div",{...(0,Vh.useBlockProps)(),children:(0,us.jsx)(Vh.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,xm.__)('"Read more" text'),value:e,placeholder:rxe,onChange:i=>o({customText:i}),disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>r((0,nw.createBlock)((0,nw.getDefaultBlockName)()))})})]})}var iw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/more",title:"More",category:"design",description:"Content before this block will be shown in the excerpt on your archives page.",keywords:["read more"],textdomain:"default",attributes:{customText:{type:"string",default:"",role:"content"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1,visibility:!1,interactivity:{clientNavigation:!0},customCSS:!1},editorStyle:"wp-block-more-editor"};var JY=a(H(),1),eQ=a(y(),1);function tQ({attributes:{customText:e,noTeaser:t}}){let r=e?`<!--more ${e}-->`:"<!--more-->";return(0,eQ.jsx)(JY.RawHTML,{children:[r,t?"<!--noteaser-->":""].filter(Boolean).join(` |
| 34 |
`)})}var rQ=a(G(),1),axe={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&e.dataset.block==="core/more",transform(e){let{customText:t,noTeaser:r}=e.dataset,o={};return t&&(o.customText=t),r===""&&(o.noTeaser=!0),(0,rQ.createBlock)("core/more",o)}}]},oQ=axe;var{fieldsKey:nxe,formKey:ixe}=Z(nQ.privateApis),{name:iQ}=iw,lw={icon:$T,example:{},__experimentalLabel(e,{context:t}){let r=e?.metadata?.name;if((t==="list-view"||t==="breadcrumb")&&r)return r;if(t==="accessibility")return e.customText},transforms:oQ,edit:XY,save:tQ};window.__experimentalContentOnlyInspectorFields&&(lw[nxe]=[{id:"customText",label:(0,aQ.__)("Content"),type:"text",Edit:"rich-text"}],lw[ixe]={fields:["customText"]});var lxe=()=>N({name:iQ,metadata:iw,settings:lw});var KD={};q(KD,{init:()=>fke,metadata:()=>sw,name:()=>MJ,settings:()=>AJ});var r3=a(P(),1);var NJ=a(z(),1),DJ=a(Y(),1),LJ=a(jo(),1);var sw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation",title:"Navigation",category:"theme",allowedBlocks:["core/navigation-link","core/search","core/social-links","core/page-list","core/spacer","core/home-link","core/icon","core/site-title","core/site-logo","core/navigation-submenu","core/loginout","core/buttons"],description:"A collection of blocks that allow visitors to get around your site.",keywords:["menu","navigation","links"],textdomain:"default",attributes:{ref:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},submenuVisibility:{type:"string",enum:["hover","click","always"],default:"hover"},overlayMenu:{type:"string",default:"mobile"},overlay:{type:"string"},icon:{type:"string",default:"handle"},hasIcon:{type:"boolean",default:!0},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"},maxNestingLevel:{type:"number",default:5},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},providesContext:{textColor:"textColor",customTextColor:"customTextColor",backgroundColor:"backgroundColor",customBackgroundColor:"customBackgroundColor",overlayTextColor:"overlayTextColor",customOverlayTextColor:"customOverlayTextColor",overlayBackgroundColor:"overlayBackgroundColor",customOverlayBackgroundColor:"customOverlayBackgroundColor",fontSize:"fontSize",customFontSize:"customFontSize",showSubmenuIcon:"showSubmenuIcon",submenuVisibility:"submenuVisibility",openSubmenusOnClick:"openSubmenusOnClick",style:"style",maxNestingLevel:"maxNestingLevel"},supports:{anchor:!0,align:["wide","full"],ariaLabel:!0,contentRole:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalSkipSerialization:["textDecoration"],__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,allowSizingOnChildren:!0,default:{type:"flex"}},interactivity:!0,renaming:!1},editorStyle:"wp-block-navigation-editor",style:"wp-block-navigation"};var Zt=a(H(),1),Qe=a(T(),1),Bm=a(Y(),1),ds=a(z(),1),Or=a(A(),1),Dt=a(P(),1),Jw=a(j1(),1);var CJ=a(G(),1),SJ=a(pe(),1);var Fh=a(Y(),1),cQ=a(z(),1);var ki={name:"core/navigation-link",attributes:{kind:"post-type",type:"page"}},lQ=["core/navigation-link/page","core/navigation-link"],vD={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},sQ=["postType","wp_navigation",vD],nc="navigation-overlay";function Oh(e){let t=(0,Fh.useResourcePermissions)({kind:"postType",name:"wp_navigation",id:e}),{navigationMenu:r,isNavigationMenuResolved:o,isNavigationMenuMissing:n}=(0,cQ.useSelect)(h=>cxe(h,e),[e]),{canCreate:i,canUpdate:l,canDelete:s,isResolving:c,hasResolved:u}=t,{records:m,isResolving:p,hasResolved:d}=(0,Fh.useEntityRecords)("postType","wp_navigation",vD),f=e?m?.length>1:m?.length>0;return{navigationMenu:r,isNavigationMenuResolved:o,isNavigationMenuMissing:n,navigationMenus:m,isResolvingNavigationMenus:p,hasResolvedNavigationMenus:d,canSwitchNavigationMenu:f,canUserCreateNavigationMenus:i,isResolvingCanUserCreateNavigationMenus:c,hasResolvedCanUserCreateNavigationMenus:u,canUserUpdateNavigationMenu:l,hasResolvedCanUserUpdateNavigationMenu:e?u:void 0,canUserDeleteNavigationMenu:s,hasResolvedCanUserDeleteNavigationMenu:e?u:void 0}}function cxe(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};let{getEntityRecord:r,getEditedEntityRecord:o,hasFinishedResolution:n}=e(Fh.store),i=["postType","wp_navigation",t],l=r(...i),s=o(...i),c=n("getEditedEntityRecord",i),u=s.status==="publish"||s.status==="draft";return{isNavigationMenuResolved:c,isNavigationMenuMissing:c&&(!l||!u),navigationMenu:u?s:null}}var Uh=a(A(),1),Dv=a(P(),1);var bD=a(j1(),1),mQ=a(H(),1),pQ=a(Y(),1);var uQ=a(P(),1),Nv=a(y(),1),uxe=({isVisible:e=!0})=>(0,Nv.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__preview",children:(0,Nv.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,Nv.jsx)(Ua,{icon:kp}),(0,uQ.__)("Navigation")]})}),cw=uxe;var ms=a(A(),1);var tn=a(P(),1),uw=a(jo(),1),Hh=a(H(),1),mw=a(Y(),1);var nl=a(y(),1);function mxe(e,t,r){return e?r==="publish"?(0,uw.decodeEntities)(e):(0,tn.sprintf)((0,tn.__)("%1$s (%2$s)"),(0,uw.decodeEntities)(e),r):(0,tn.sprintf)((0,tn.__)("(no title %s)"),t)}function pxe({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:r,onCreateNew:o,actionLabel:n,createNavigationMenuIsSuccess:i,createNavigationMenuIsError:l}){let s=(0,tn.__)("Create from '%s'"),[c,u]=(0,Hh.useState)(!1);n=n||s;let{records:m}=(0,mw.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{navigationMenus:p,isResolvingNavigationMenus:d,hasResolvedNavigationMenus:f,canUserCreateNavigationMenus:h,canSwitchNavigationMenu:g,isNavigationMenuMissing:b}=Oh(e),[v]=(0,mw.useEntityProp)("postType","wp_navigation","title",e),x=(0,Hh.useMemo)(()=>p?.map(({id:V,title:B,status:j},U)=>{let O=mxe(B?.rendered,U+1,j);return{value:V,label:O,ariaLabel:(0,tn.sprintf)(n,O),disabled:c||d||!f}})||[],[p,n,d,f,c]),_=!!p?.length,k=!!m?.length,S=!!g,C=!!h,E=_&&!e,I=!_&&f,D=f&&e===null,M=e&&b,F="";return d?F=(0,tn.__)("Loading\u2026"):E||I||D||M?F=(0,tn.__)("Choose or create a Navigation Menu"):F=v,(0,Hh.useEffect)(()=>{c&&(i||l)&&u(!1)},[f,i,h,l,c,D,I,E]),(0,nl.jsx)(ms.DropdownMenu,{label:F,icon:Z0,toggleProps:{size:"small"},children:({onClose:V})=>(0,nl.jsxs)(nl.Fragment,{children:[S&&_&&(0,nl.jsx)(ms.MenuGroup,{label:(0,tn.__)("Menus"),children:(0,nl.jsx)(ms.MenuItemsChoice,{value:e,onSelect:B=>{t(B),V()},choices:x})}),C&&k&&(0,nl.jsx)(ms.MenuGroup,{label:(0,tn.__)("Import Classic Menus"),children:m?.map(B=>{let j=(0,uw.decodeEntities)(B.name);return(0,nl.jsx)(ms.MenuItem,{onClick:async()=>{u(!0),await r(B),u(!1),V()},"aria-label":(0,tn.sprintf)(s,j),disabled:c||d||!f,children:j},B.id)})}),h&&(0,nl.jsx)(ms.MenuGroup,{label:(0,tn.__)("Tools"),children:(0,nl.jsx)(ms.MenuItem,{onClick:async()=>{u(!0),await o(),u(!1),V()},disabled:c||d||!f,children:(0,tn.__)("Create new Menu")})})]})})}var jh=pxe;var Pa=a(y(),1);function dQ({isSelected:e,currentMenuId:t,clientId:r,canUserCreateNavigationMenus:o=!1,isResolvingCanUserCreateNavigationMenus:n,onSelectNavigationMenu:i,onSelectClassicMenu:l,onCreateEmpty:s}){let{isResolving:c,hasResolved:u}=(0,pQ.useEntityRecords)("root","menu",{per_page:-1,context:"view"});(0,mQ.useEffect)(()=>{e&&(c&&(0,bD.speak)((0,Dv.__)("Loading navigation block setup options\u2026")),u&&(0,bD.speak)((0,Dv.__)("Navigation block setup options ready.")))},[u,c,e]);let m=c&&n;return(0,Pa.jsx)(Pa.Fragment,{children:(0,Pa.jsxs)(Uh.Placeholder,{className:"wp-block-navigation-placeholder",children:[(0,Pa.jsx)(cw,{isVisible:!e}),(0,Pa.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__controls",children:(0,Pa.jsxs)("div",{className:"wp-block-navigation-placeholder__actions",children:[(0,Pa.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,Pa.jsx)(Ua,{icon:kp})," ",(0,Dv.__)("Navigation")]}),(0,Pa.jsx)("hr",{}),m&&(0,Pa.jsx)(Uh.Spinner,{}),(0,Pa.jsx)(jh,{currentMenuId:t,clientId:r,onSelectNavigationMenu:i,onSelectClassicMenu:l}),(0,Pa.jsx)("hr",{}),o&&(0,Pa.jsx)(Uh.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:s,children:(0,Dv.__)("Start empty")})]})})]})})}var yD=a(A(),1),Wh=a(P(),1),_D=a(T(),1),fQ=a(z(),1),hQ=a(Y(),1);var Lv=a(L(),1);var Gh=a(y(),1);function ic({icon:e}){return e==="menu"?(0,Gh.jsx)(Ua,{icon:UT}):(0,Gh.jsxs)(Lv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,Gh.jsx)(Lv.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,Gh.jsx)(Lv.Rect,{x:"4",y:"15",width:"16",height:"1.5"})]})}function rn(e,t){return e&&t?e+"//"+t:null}var wi=a(y(),1);function xD({children:e,id:t,isOpen:r,isResponsive:o,onToggle:n,isHiddenByDefault:i,overlayBackgroundColor:l,overlayTextColor:s,hasIcon:c,icon:u,overlay:m,onNavigateToEntityRecord:p}){let d=(0,fQ.useSelect)(k=>k(hQ.store).getCurrentTheme()?.stylesheet,[]);if(!o)return e;let f=!!m,h=w("wp-block-navigation__responsive-container",!f&&{"has-text-color":!!s.color||!!s?.class,[(0,_D.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!l.color||l?.class,[(0,_D.getColorClassName)("background-color",l?.slug)]:!!l?.slug},{"is-menu-open":r,"hidden-by-default":i}),g=f?{}:{color:!s?.slug&&s?.color,backgroundColor:!l?.slug&&l?.color&&l.color},b=w("wp-block-navigation__responsive-container-open",{"always-shown":i}),v=`${t}-modal`,x={className:"wp-block-navigation__responsive-dialog",...r&&{role:"dialog","aria-modal":!0,"aria-label":(0,Wh.__)("Menu")}},_=()=>{if(m&&p){let k=rn(d,m);p({postId:k,postType:"wp_template_part"});return}n(!0)};return(0,wi.jsxs)(wi.Fragment,{children:[!r&&(0,wi.jsxs)(yD.Button,{__next40pxDefaultSize:!0,"aria-haspopup":"true","aria-label":c&&(0,Wh.__)("Open menu"),className:b,onClick:_,children:[c&&(0,wi.jsx)(ic,{icon:u}),!c&&(0,Wh.__)("Menu")]}),(0,wi.jsx)("div",{className:h,style:g,id:v,children:(0,wi.jsx)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1",children:(0,wi.jsxs)("div",{...x,children:[(0,wi.jsxs)(yD.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation__responsive-container-close","aria-label":c&&(0,Wh.__)("Close menu"),onClick:()=>n(!1),children:[c&&(0,wi.jsx)(Ua,{icon:hp}),!c&&(0,Wh.__)("Close")]}),(0,wi.jsx)("div",{className:"wp-block-navigation__responsive-container-content",id:`${v}-content`,children:e})]})})})]})}var gQ=a(Y(),1),$h=a(T(),1),vQ=a(z(),1),bQ=a(H(),1);var kD=a(y(),1);function yQ({clientId:e,hasCustomPlaceholder:t,orientation:r,templateLock:o}){let{isImmediateParentOfSelectedBlock:n,selectedBlockHasChildren:i,isSelected:l,hasSelectedDescendant:s}=(0,vQ.useSelect)(b=>{let{getBlockCount:v,hasSelectedInnerBlock:x,getSelectedBlockClientId:_}=b($h.store),k=_();return{isImmediateParentOfSelectedBlock:x(e,!1),selectedBlockHasChildren:!!v(k),hasSelectedDescendant:x(e,!0),isSelected:k===e}},[e]),[c,u,m]=(0,gQ.useEntityBlockEditor)("postType","wp_navigation"),p=l||n&&!i,d=(0,bQ.useMemo)(()=>(0,kD.jsx)(cw,{}),[]),f=!!c?.length,h=!t&&!f&&!l,g=(0,$h.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:c,onInput:u,onChange:m,prioritizedInserterBlocks:lQ,defaultBlock:ki,directInsert:!0,orientation:r,templateLock:o,renderAppender:l||n&&!i||s||p?$h.InnerBlocks.ButtonBlockAppender:!1,placeholder:h?d:void 0,__experimentalCaptureToolbars:!0,__unstableDisableLayoutClassNames:!0});return(0,kD.jsx)("div",{...g})}var _Q=a(A(),1),xQ=a(Y(),1),kQ=a(P(),1),wQ=a(y(),1);function CQ(){let[e,t]=(0,xQ.useEntityProp)("postType","wp_navigation","title");return(0,wQ.jsx)(_Q.TextControl,{__next40pxDefaultSize:!0,label:(0,kQ.__)("Menu name"),value:e,onChange:t})}var PQ=a(T(),1),wD=a(A(),1),BQ=a(Y(),1),EQ=a(z(),1),hd=a(H(),1);function SQ(e,t){return!TQ(e,t,(r,o)=>{if(o?.name==="core/page-list"&&r==="innerBlocks")return!0})}var TQ=(e,t,r)=>{if(e===t)return!0;if(typeof e=="object"&&e!==null&&e!==void 0&&typeof t=="object"&&t!==null&&t!==void 0){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let o in e)if(t.hasOwnProperty(o)){if(r&&r(o,e))return!0;if(!TQ(e[o],t[o],r))return!1}else return!1;return!0}return!1};var IQ=a(y(),1),dxe={};function NQ({blocks:e,createNavigationMenu:t,hasSelection:r}){let o=(0,hd.useRef)();(0,hd.useEffect)(()=>{o?.current||(o.current=e)},[e]);let n=SQ(o?.current,e),i=(0,hd.useContext)(wD.Disabled.Context),l=(0,PQ.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:r?void 0:!1,defaultBlock:ki,directInsert:!0}),{isSaving:s,hasResolvedAllNavigationMenus:c}=(0,EQ.useSelect)(m=>{if(i)return dxe;let{hasFinishedResolution:p,isSavingEntityRecord:d}=m(BQ.store);return{isSaving:d("postType","wp_navigation"),hasResolvedAllNavigationMenus:p("getEntityRecords",sQ)}},[i]);return(0,hd.useEffect)(()=>{i||s||!c||!r||!n||t(null,e)},[e,t,i,s,c,n,r]),(0,IQ.jsx)(s?wD.Disabled:"div",{...l})}var dw=a(A(),1),fw=a(Y(),1),DQ=a(z(),1),LQ=a(H(),1),pw=a(P(),1),gd=a(y(),1);function MQ({onDelete:e}){let[t,r]=(0,LQ.useState)(!1),o=(0,fw.useEntityId)("postType","wp_navigation"),{deleteEntityRecord:n}=(0,DQ.useDispatch)(fw.store);return(0,gd.jsxs)(gd.Fragment,{children:[(0,gd.jsx)(dw.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{r(!0)},children:(0,pw.__)("Delete menu")}),t&&(0,gd.jsx)(dw.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{n("postType","wp_navigation",o,{force:!0}),e()},onCancel:()=>{r(!1)},confirmButtonText:(0,pw.__)("Delete"),size:"medium",children:(0,pw.__)("Are you sure you want to delete this Navigation Menu?")})]})}var Mv=a(H(),1),AQ=a(z(),1),RQ=a(yr(),1);function fxe({name:e,message:t=""}={}){let r=(0,Mv.useRef)(),{createWarningNotice:o,removeNotice:n}=(0,AQ.useDispatch)(RQ.store),i=(0,Mv.useCallback)(s=>{r.current||(r.current=e,o(s||t,{id:r.current,type:"snackbar"}))},[r,o,t,e]),l=(0,Mv.useCallback)(()=>{r.current&&(n(r.current),r.current=null)},[r,n]);return[i,l]}var hw=fxe;var lc=a(A(),1),km=a(P(),1);var Ci=a(y(),1);function zQ({setAttributes:e,hasIcon:t,icon:r}){return(0,Ci.jsxs)(Ci.Fragment,{children:[(0,Ci.jsx)(lc.__experimentalToolsPanelItem,{label:(0,km.__)("Show icon button"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>e({hasIcon:!0}),children:(0,Ci.jsx)(lc.ToggleControl,{label:(0,km.__)("Show icon button"),help:(0,km.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:o=>e({hasIcon:o}),checked:t})}),(0,Ci.jsx)(lc.__experimentalToolsPanelItem,{label:(0,km.__)("Icon"),isShownByDefault:!0,hasValue:()=>r!=="handle",onDeselect:()=>e({icon:"handle"}),children:(0,Ci.jsxs)(lc.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,km.__)("Icon"),value:r,onChange:o=>e({icon:o}),isBlock:!0,children:[(0,Ci.jsx)(lc.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,km.__)("handle"),label:(0,Ci.jsx)(ic,{icon:"handle"})}),(0,Ci.jsx)(lc.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,km.__)("menu"),label:(0,Ci.jsx)(ic,{icon:"menu"})})]})})]})}var Sw=a(A(),1),uX=a(P(),1),mX=a(H(),1);var il=a(H(),1),JQ=a(pe(),1),xw=a(Y(),1),kw=a(z(),1),on=a(A(),1),oa=a(P(),1),TD=a(jo(),1),eX=a(yr(),1);var WQ=a(H(),1),yw=a(z(),1),$Q=a(Y(),1),qQ=a(T(),1),ZQ=a(P(),1),bd=a(G(),1);var wm=function(){return wm=Object.assign||function(t){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},wm.apply(this,arguments)};function VQ(e){return e.toLowerCase()}var hxe=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],gxe=/[^A-Z0-9]+/gi;function gw(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,o=r===void 0?hxe:r,n=t.stripRegexp,i=n===void 0?gxe:n,l=t.transform,s=l===void 0?VQ:l,c=t.delimiter,u=c===void 0?" ":c,m=FQ(FQ(e,o,"$1\0$2"),i,"\0"),p=0,d=m.length;m.charAt(p)==="\0";)p++;for(;m.charAt(d-1)==="\0";)d--;return m.slice(p,d).split("\0").map(s).join(u)}function FQ(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(o,n){return o.replace(n,r)},e)}function OQ(e){return e.charAt(0).toUpperCase()+e.substr(1)}function vxe(e){return OQ(e.toLowerCase())}function HQ(e,t){return t===void 0&&(t={}),gw(e,wm({delimiter:" ",transform:vxe},t))}function jQ(e,t){return t===void 0&&(t={}),gw(e,wm({delimiter:"."},t))}function vw(e,t){return t===void 0&&(t={}),jQ(e,wm({delimiter:"-"},t))}function CD(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function SD(e,t,r){if(!e)return;t(CD(e).color);let o=e,n=CD(o).backgroundColor;for(;n==="rgba(0, 0, 0, 0)"&&o.parentNode&&o.parentNode.nodeType===o.parentNode.ELEMENT_NODE;)o=o.parentNode,n=CD(o).backgroundColor;r(n)}function vd(e,t){let{textColor:r,customTextColor:o,backgroundColor:n,customBackgroundColor:i,overlayTextColor:l,customOverlayTextColor:s,overlayBackgroundColor:c,customOverlayBackgroundColor:u,style:m}=e,p={};return t&&s?p.customTextColor=s:t&&l?p.textColor=l:o?p.customTextColor=o:r?p.textColor=r:m?.color?.text&&(p.customTextColor=m.color.text),t&&u?p.customBackgroundColor=u:t&&c?p.backgroundColor=c:i?p.customBackgroundColor=i:n?p.backgroundColor=n:m?.color?.background&&(p.customTextColor=m.color.background),p}function bw(e){return{className:w("wp-block-navigation__submenu-container",{"has-text-color":!!(e.textColor||e.customTextColor),[`has-${e.textColor}-color`]:!!e.textColor,"has-background":!!(e.backgroundColor||e.customBackgroundColor),[`has-${e.backgroundColor}-background-color`]:!!e.backgroundColor}),style:{color:e.customTextColor,backgroundColor:e.customBackgroundColor}}}var UQ=(e,t)=>{let r=e.toLowerCase(),o=t.map(i=>i.title.rendered.toLowerCase());if(!o.includes(r))return e;let n=2;for(;o.includes(`${r} ${n}`);)n++;return`${e} ${n}`},GQ=e=>vw(e).replace(/[^\w-]+/g,"")||"wp-custom-part";function KQ(e){let{saveEntityRecord:t}=(0,yw.useDispatch)($Q.store),r=(0,yw.useSelect)(n=>Z(n(qQ.store)).getPatternBySlug("core/navigation-overlay"),[]);return(0,WQ.useCallback)(async()=>{let n=e.filter(u=>u.title?.rendered),i=UQ((0,ZQ.__)("Navigation Overlay"),n),l=GQ(i),s="";if(r?.content){let u=(0,bd.parse)(r.content,{__unstableSkipMigrationLogs:!0});s=(0,bd.serialize)(u)}else s=(0,bd.serialize)([(0,bd.createBlock)("core/paragraph")]);return await t("postType","wp_template_part",{slug:l,title:i,content:s,area:nc},{throwOnError:!0})},[e,t,r])}var Av=a(A(),1),YQ=a(P(),1),QQ=a(H(),1),_w=a(y(),1);function bxe({onClear:e,onCreate:t,isCreating:r=!1}){let o=(0,QQ.createInterpolateElement)((0,YQ.__)("The selected overlay template part is missing or has been deleted. <clearButton>Reset to default overlay</clearButton> or <createButton>create a new overlay</createButton>."),{clearButton:(0,_w.jsx)(Av.Button,{__next40pxDefaultSize:!0,onClick:e,variant:"link",disabled:r,accessibleWhenDisabled:!0}),createButton:(0,_w.jsx)(Av.Button,{__next40pxDefaultSize:!0,onClick:t,variant:"link",disabled:r,accessibleWhenDisabled:!0,isBusy:r})});return(0,_w.jsx)(Av.Notice,{status:"warning",isDismissible:!1,className:"wp-block-navigation__deleted-overlay-warning",children:o})}var XQ=bxe;var mo=a(y(),1);function PD({overlay:e,overlayMenu:t,setAttributes:r,onNavigateToEntityRecord:o,isCreatingOverlay:n,setIsCreatingOverlay:i}){let l=(0,JQ.useInstanceId)(PD,"wp-block-navigation__overlay-selector-heading"),{records:s,isResolving:c,hasResolved:u}=(0,xw.useEntityRecords)("postType","wp_template_part",{per_page:-1}),{createErrorNotice:m}=(0,kw.useDispatch)(eX.store),p=(0,kw.useSelect)(R=>R(xw.store).getCurrentTheme()?.stylesheet,[]),[d,f]=(0,il.useState)(!1),h=n!==void 0?n:d,g=i!==void 0?i:f,b=(0,il.useMemo)(()=>s?s.filter(R=>R.area===nc):[],[s]),v=KQ(b),x=(0,il.useMemo)(()=>!e||!b?null:b.find(R=>R.slug===e),[e,b]),_=(0,il.useMemo)(()=>{let R=[{label:(0,oa.__)("Default"),value:""}];if(!u||c)return R;let V=b.map(B=>({label:B.title?.rendered?(0,TD.decodeEntities)(B.title.rendered):B.slug,value:B.slug}));return e&&!x&&V.unshift({label:(0,oa.sprintf)((0,oa.__)("%s (missing)"),e),value:e}),[...R,...V]},[b,u,c,e,x]),k=R=>{r({overlay:R||void 0})},S=()=>{if(!e||!x||!o)return;let R=x.theme||p,B={postId:rn(R,e),postType:"wp_template_part"};t==="mobile"&&(B.viewport="mobile"),o(B)},C=(0,il.useCallback)(async()=>{try{g(!0);let R=await v();if(r({overlay:R.slug}),o){let V=R.theme||p,j={postId:rn(V,R.slug),postType:"wp_template_part"};t==="mobile"&&(j.viewport="mobile"),o(j)}else g(!1)}catch(R){let V=R instanceof Error&&"code"in R&&R.message&&R.code!=="unknown_error"?R.message:(0,oa.__)("An error occurred while creating the overlay.");m(V,{type:"snackbar"}),g(!1)}},[v,r,o,m,p,g,t]),E=(0,il.useCallback)(()=>{r({overlay:void 0})},[r]),I=c||h,D=(0,il.useMemo)(()=>e&&u&&!c&&!x,[e,u,c,x]),M=(0,il.useMemo)(()=>b.length===0&&u?(0,oa.__)("No overlays found."):(0,oa.__)("Select an overlay for navigation."),[b.length,u]),F=(0,il.useMemo)(()=>x?(0,oa.sprintf)((0,oa.__)("Edit overlay: %s"),x.title?.rendered?(0,TD.decodeEntities)(x.title.rendered):x.slug):(0,oa.__)("Edit overlay"),[x]);return(0,mo.jsxs)("div",{className:"wp-block-navigation__overlay-selector",children:[(0,mo.jsx)("h3",{id:l,className:"wp-block-navigation__overlay-selector-header",children:(0,oa.__)("Overlay template")}),u&&(b.length===0||h&&b.length===1)?(0,mo.jsx)(mo.Fragment,{children:(0,mo.jsx)(on.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:C,disabled:I,accessibleWhenDisabled:!0,isBusy:h,className:"wp-block-navigation__overlay-create-button-prominent",children:(0,oa.__)("Create overlay")})}):(0,mo.jsxs)(mo.Fragment,{children:[(0,mo.jsx)(on.Button,{size:"small",icon:Sf,onClick:C,disabled:I,accessibleWhenDisabled:!0,isBusy:h,label:(0,oa.__)("Create new overlay template"),showTooltip:!0,className:"wp-block-navigation__overlay-create-button"}),(0,mo.jsxs)(on.__experimentalHStack,{alignment:"flex-start",className:"wp-block-navigation__overlay-selector-controls",children:[(0,mo.jsx)(on.FlexBlock,{children:(0,mo.jsx)(on.SelectControl,{__next40pxDefaultSize:!0,label:(0,oa.__)("Overlay template"),hideLabelFromVision:!0,"aria-labelledby":l,value:e||"",options:_,onChange:k,disabled:c,accessibleWhenDisabled:!0,help:M})}),e&&u&&x&&(0,mo.jsx)(on.FlexItem,{children:(0,mo.jsx)(on.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:S,disabled:!o,accessibleWhenDisabled:!0,label:F,showTooltip:!0,className:"wp-block-navigation__overlay-edit-button",children:(0,oa.__)("Edit")})})]}),D&&(0,mo.jsx)(XQ,{onClear:E,onCreate:C,isCreating:h})]}),(0,mo.jsx)(on.__experimentalHStack,{alignment:"flex-start",className:"wp-block-navigation__overlay-help-text-wrapper",children:(0,mo.jsx)(on.__experimentalText,{variant:"muted",isBlock:!0,className:"wp-block-navigation__overlay-help-text",children:(0,oa.__)("An overlay template allows you to customize the appearance of the dialog that opens when the menu button is pressed.")})})]})}var qh=a(A(),1),yd=a(P(),1),Zh=a(y(),1);function tX({overlayMenu:e,setAttributes:t}){return(0,Zh.jsxs)(qh.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,yd.__)("Overlay Visibility"),"aria-label":(0,yd.__)("Configure overlay visibility"),value:e,help:(0,yd.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:r=>t({overlayMenu:r}),isBlock:!0,children:[(0,Zh.jsx)(qh.__experimentalToggleGroupControlOption,{value:"never",label:(0,yd.__)("Off")}),(0,Zh.jsx)(qh.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,yd.__)("Mobile")}),(0,Zh.jsx)(qh.__experimentalToggleGroupControlOption,{value:"always",label:(0,yd.__)("Always")})]})}var Cw=a(A(),1),ww=a(P(),1);var iu=a(A(),1),Kh=a(P(),1);var nu=a(y(),1);function rX({hasIcon:e,icon:t,setAttributes:r}){return(0,nu.jsxs)(iu.__experimentalVStack,{spacing:4,children:[(0,nu.jsx)(iu.ToggleControl,{label:(0,Kh.__)("Show icon button"),help:(0,Kh.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:o=>r({hasIcon:o}),checked:e}),(0,nu.jsxs)(iu.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,Kh.__)("Icon"),value:t,onChange:o=>r({icon:o}),isBlock:!0,children:[(0,nu.jsx)(iu.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,Kh.__)("handle"),label:(0,nu.jsx)(ic,{icon:"handle"})}),(0,nu.jsx)(iu.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,Kh.__)("menu"),label:(0,nu.jsx)(ic,{icon:"menu"})})]})]})}var Ba=a(y(),1);function oX({isResponsive:e,overlayMenuPreview:t,setOverlayMenuPreview:r,hasIcon:o,icon:n,setAttributes:i,overlayMenuPreviewClasses:l,overlayMenuPreviewId:s,containerStyle:c}){return e?(0,Ba.jsxs)(Ba.Fragment,{children:[(0,Ba.jsxs)(Cw.Button,{__next40pxDefaultSize:!0,className:l,onClick:()=>r(!t),"aria-label":(0,ww.__)("Overlay menu controls"),"aria-controls":s,"aria-expanded":t,children:[o&&(0,Ba.jsxs)(Ba.Fragment,{children:[(0,Ba.jsx)(ic,{icon:n}),(0,Ba.jsx)(Ua,{icon:hp})]}),!o&&(0,Ba.jsxs)(Ba.Fragment,{children:[(0,Ba.jsx)("span",{children:(0,ww.__)("Menu")}),(0,Ba.jsx)("span",{children:(0,ww.__)("Close")})]})]}),t&&(0,Ba.jsx)(Cw.__experimentalVStack,{id:s,spacing:4,style:c,children:(0,Ba.jsx)(rX,{hasIcon:o,icon:n,setAttributes:i})})]}):null}var aX=a(z(),1),nX=a(Y(),1),BD=a(H(),1),iX=a(G(),1),lX=a(A(),1),sX=a(P(),1),ED=a(T(),1);var _d=a(y(),1);function cX({overlay:e,currentTheme:t}){let r=(0,BD.useMemo)(()=>!e||!t?null:rn(t,e),[t,e]),{content:o,editedBlocks:n,hasResolved:i}=(0,aX.useSelect)(s=>{if(!r)return{content:null,editedBlocks:null,hasResolved:!0};let{getEditedEntityRecord:c,hasFinishedResolution:u}=s(nX.store),m=c("postType","wp_template_part",r,{context:"view"});return{content:m?.content,editedBlocks:m?.blocks,hasResolved:u("getEditedEntityRecord",["postType","wp_template_part",r,{context:"view"}])}},[r]),l=(0,BD.useMemo)(()=>r?n&&n.length>0?n:o&&typeof o=="string"?(0,iX.parse)(o):[]:null,[r,n,o]);return e?i?(0,_d.jsx)("div",{className:"wp-block-navigation__overlay-preview","aria-label":(0,sX.__)("Navigation Overlay template part preview"),role:"region",children:(0,_d.jsx)(ED.BlockPreview.Async,{placeholder:(0,_d.jsx)("div",{className:"wp-block-navigation__overlay-preview-placeholder"}),children:(0,_d.jsx)(ED.BlockPreview,{blocks:l,viewportWidth:400,minHeight:200})})}):(0,_d.jsx)("div",{className:"wp-block-navigation__overlay-preview-loading",children:(0,_d.jsx)(lX.Spinner,{})}):null}var Cm=a(y(),1);function pX({overlayMenu:e,overlay:t,setAttributes:r,onNavigateToEntityRecord:o,overlayMenuPreview:n,setOverlayMenuPreview:i,hasIcon:l,icon:s,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u,isResponsive:m,currentTheme:p,hasOverlays:d}){let[f,h]=(0,mX.useState)(!1);return(0,Cm.jsx)(Sw.PanelBody,{title:(0,uX.__)("Overlay"),initialOpen:!0,children:(0,Cm.jsxs)(Sw.__experimentalVStack,{spacing:4,children:[(0,Cm.jsx)(tX,{overlayMenu:e,setAttributes:r}),e!=="never"&&(0,Cm.jsx)(oX,{isResponsive:m,overlayMenuPreview:n,setOverlayMenuPreview:i,hasIcon:l,icon:s,setAttributes:r,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u}),e!=="never"&&(0,Cm.jsx)(PD,{overlay:t,overlayMenu:e,setAttributes:r,onNavigateToEntityRecord:o,isCreatingOverlay:f,setIsCreatingOverlay:h}),e!=="never"&&t&&d&&!f&&(0,Cm.jsx)(cX,{overlay:t,currentTheme:p})]})})}var Ew=a(z(),1),ND=a(Y(),1),Qh=a(H(),1),sc=a(P(),1);var Rv=a(G(),1),hX=a(qc(),1);var ID=a(H(),1),Tw=a(T(),1),dX=a(z(),1),fX=a(Y(),1);function Yh(e){if(e===void 0)throw new Error('buildNavigationLinkEntityBinding requires a kind parameter. Only "post-type" and "taxonomy" are supported.');if(e!=="post-type"&&e!=="taxonomy")throw new Error(`Invalid kind "${e}" provided to buildNavigationLinkEntityBinding. Only 'post-type' and 'taxonomy' are supported.`);return{url:{source:e==="taxonomy"?"core/term-data":"core/post-data",args:{field:"link"}}}}function Si({clientId:e,attributes:t}){let{updateBlockBindings:r}=(0,Tw.useBlockBindingsUtils)(e),{metadata:o,id:n,kind:i,type:l}=t,s=(0,Tw.useBlockEditingMode)(),c=!!o?.bindings?.url&&!!n,u=i==="post-type"?"core/post-data":"core/term-data",m=c&&o?.bindings?.url?.source===u,{isBoundEntityAvailable:p,entityRecord:d}=(0,dX.useSelect)(g=>{if(!m||!n)return{isBoundEntityAvailable:!1,entityRecord:null};let b=i==="post-type",v=i==="taxonomy";if(!b&&!v)return{isBoundEntityAvailable:!1,entityRecord:null};if(s==="disabled")return{isBoundEntityAvailable:!0,entityRecord:null};let{getEntityRecord:x,hasFinishedResolution:_}=g(fX.store),k=v?"taxonomy":"postType",S=l==="tag"?"post_tag":l,C=x(k,S,n);return{isBoundEntityAvailable:_("getEntityRecord",[k,S,n])?C!==void 0:!0,entityRecord:C||null}},[i,l,n,m,s]),f=(0,ID.useCallback)(()=>{c&&r({url:void 0})},[r,c]),h=(0,ID.useCallback)(g=>{let b=g?.kind??i;if(b)try{let v=Yh(b);r(v)}catch(v){console.warn("Failed to create entity binding:",v.message)}},[r,i]);return{hasUrlBinding:m,isBoundEntityAvailable:p,entityRecord:d,clearBinding:f,createBinding:h}}function gX(e){if(!e)return null;let t=_xe(e),r=vX(t);return(0,hX.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",r,e)}function vX(e,t=0){let r={};return{innerBlocks:[...e].sort((i,l)=>i.menu_order-l.menu_order).map(i=>{if(i.type==="block"){let[p]=(0,Rv.parse)(i.content.raw);return p||(0,Rv.createBlock)("core/freeform",{content:i.content})}let l=i.children?.length?"core/navigation-submenu":"core/navigation-link",s=yxe(i,l,t),{innerBlocks:c=[],mapping:u={}}=i.children?.length?vX(i.children,t+1):{};r={...r,...u};let m=(0,Rv.createBlock)(l,s,c);return r[i.id]=m.clientId,m}),mapping:r}}function yxe({title:e,xfn:t,classes:r,attr_title:o,object:n,object_id:i,description:l,url:s,type:c,target:u},m,p){n&&n==="post_tag"&&(n="tag");let d=c?.replace("_","-")||"custom";return{label:e?.rendered||"",...n?.length&&{type:n},kind:d,url:s||"",...t?.length&&t.join(" ").trim()&&{rel:t.join(" ").trim()},...r?.length&&r.join(" ").trim()&&{className:r.join(" ").trim()},...o?.length&&{title:o},...i&&(d==="post-type"||d==="taxonomy")&&{id:i,metadata:{bindings:Yh(d)}},...l?.length&&{description:l},...u==="_blank"&&{opensInNewTab:!0},...m==="core/navigation-submenu"&&{isTopLevelItem:p===0},...m==="core/navigation-link"&&{isTopLevelLink:p===0}}}function _xe(e,t="id",r="parent"){let o=Object.create(null),n=[];for(let i of e)o[i[t]]={...i,children:[]},i[r]?(o[i[r]]=o[i[r]]||{},o[i[r]].children=o[i[r]].children||[],o[i[r]].children.push(o[i[t]])):n.push(o[i[t]]);return n}var DD="success",Bw="error",Iw="pending",xxe="idle",Pw=null;function kxe(e,{throwOnError:t=!1}={}){let r=(0,Ew.useRegistry)(),{editEntityRecord:o}=(0,Ew.useDispatch)(ND.store),[n,i]=(0,Qh.useState)(xxe),[l,s]=(0,Qh.useState)(null),c=(0,Qh.useCallback)(async(m,p,d="publish")=>{let f,h;try{h=await r.resolveSelect(ND.store).getMenuItems({menus:m,per_page:-1,context:"view"})}catch(b){throw new Error((0,sc.sprintf)((0,sc.__)('Unable to fetch classic menu "%s" from API.'),p),{cause:b})}if(h===null)throw new Error((0,sc.sprintf)((0,sc.__)('Unable to fetch classic menu "%s" from API.'),p));let{innerBlocks:g}=gX(h);try{f=await e(p,g,d),await o("postType","wp_navigation",f.id,{status:"publish"},{throwOnError:!0})}catch(b){throw new Error((0,sc.sprintf)((0,sc.__)('Unable to create Navigation Menu "%s".'),p),{cause:b})}return f},[e,o,r]);return{convert:(0,Qh.useCallback)(async(m,p,d)=>{if(Pw!==m){if(Pw=m,!m||!p){s("Unable to convert menu. Missing menu details."),i(Bw);return}return i(Iw),s(null),await c(m,p,d).then(f=>(i(DD),Pw=null,f)).catch(f=>{if(s(f?.message),i(Bw),Pw=null,t)throw new Error((0,sc.sprintf)((0,sc.__)('Unable to create Navigation Menu "%s".'),p),{cause:f})})}},[c,t]),status:n,error:l}}var bX=kxe;var IX=a(G(),1),NX=a(Y(),1),DX=a(z(),1),Jh=a(H(),1);var wX=a(A(),1),CX=a(Y(),1),SX=a(z(),1),Nw=a(H(),1),zv=a(P(),1);var yX=a(T(),1),_X=a(Y(),1),xX=a(z(),1);var Xh=e=>e==="header"?nT:e==="footer"?H9:e==="sidebar"?cB:e==="navigation-overlay"?ZT:m1;function kX(e){return(0,xX.useSelect)(t=>{if(!e)return;let{getBlock:r,getBlockParentsByBlockName:o}=t(yX.store),i=o(e,"core/template-part",!0);if(!i?.length)return;let{getCurrentTheme:l,getEditedEntityRecord:s}=t(_X.store),c=l(),m=(c?.default_template_part_areas||[]).map(p=>({...p,icon:Xh(p.icon)}));for(let p of i){let d=r(p),{theme:f=c?.stylesheet,slug:h}=d.attributes,g=rn(f,h),b=s("postType","wp_template_part",g);if(b?.area)return m.find(v=>v.area!=="uncategorized"&&v.area===b.area)?.label}},[e])}var wxe=["postType","wp_navigation",{status:"draft",per_page:-1}],Cxe=["postType","wp_navigation",{per_page:-1,status:"publish"}];function TX(e){let t=(0,Nw.useContext)(wX.Disabled.Context),r=kX(t?void 0:e),o=(0,SX.useRegistry)();return(0,Nw.useCallback)(async()=>{if(t)return"";let{getEntityRecords:n}=o.resolveSelect(CX.store),[i,l]=await Promise.all([n(...wxe),n(...Cxe)]),s=r?(0,zv.sprintf)((0,zv.__)("%s menu"),r):(0,zv.__)("Menu"),c=[...i,...l].reduce((m,p)=>p?.title?.raw?.startsWith(s)?m+1:m,0);return(c>0?`${s} ${c+1}`:s)||""},[t,r,o])}var PX="success",Dw="error",BX="pending",EX="idle";function LX(e){let[t,r]=(0,Jh.useState)(EX),[o,n]=(0,Jh.useState)(null),[i,l]=(0,Jh.useState)(null),{saveEntityRecord:s,editEntityRecord:c}=(0,DX.useDispatch)(NX.store),u=TX(e);return{create:(0,Jh.useCallback)(async(p=null,d=[],f)=>{if(p&&typeof p!="string")throw l("Invalid title supplied when creating Navigation Menu."),r(Dw),new Error("Value of supplied title argument was not a string.");r(BX),n(null),l(null),p||(p=await u().catch(g=>{throw l(g?.message),r(Dw),new Error("Failed to create title when saving new Navigation Menu.",{cause:g})}));let h={title:p,content:(0,IX.serialize)(d),status:f};return s("postType","wp_navigation",h).then(g=>(n(g),r(PX),f!=="publish"&&c("postType","wp_navigation",g.id,{status:"publish"}),g)).catch(g=>{throw l(g?.message),r(Dw),new Error("Unable to save new Navigation Menu",{cause:g})})},[s,c,u]),status:t,value:o,error:i,isIdle:t===EX,isPending:t===BX,isSuccess:t===PX,isError:t===Dw}}var MX=a(z(),1),AX=a(T(),1),Sxe=[];function RX(e){return(0,MX.useSelect)(t=>{let{getBlock:r,getBlocks:o,hasSelectedInnerBlock:n}=t(AX.store),i=r(e).innerBlocks,l=!!i?.length,s=l?Sxe:o(e);return{innerBlocks:l?i:s,hasUncontrolledInnerBlocks:l,uncontrolledInnerBlocks:i,controlledInnerBlocks:s,isInnerBlockSelected:n(e,!0)}},[e])}var zX=a(ir(),1),Lw=a(A(),1),VX=a(P(),1),FX=a(y(),1),Txe=({className:e="",disabled:t,isMenuItem:r=!1})=>{let o=Lw.Button;return r&&(o=Lw.MenuItem),(0,FX.jsx)(o,{variant:"link",disabled:t,className:e,href:(0,zX.addQueryArgs)("edit.php",{post_type:"wp_navigation"}),children:(0,VX.__)("Manage menus")})},OX=Txe;var Pm=a(T(),1),Xv=a(A(),1),Kw=a(z(),1),Tm=a(P(),1),yJ=a(H(),1);var HX=a(T(),1),Aw=a(A(),1),jX=a(P(),1),Rw=a(H(),1),Mw=a(y(),1);function Pxe({onCreateNew:e,isNotice:t=!1}){let[r,o]=(0,Rw.useState)(!1),n=()=>{o(!0),e()},i=(0,Rw.createInterpolateElement)((0,jX.__)("Navigation Menu has been deleted or is unavailable. <button>Create a new Menu?</button>"),{button:(0,Mw.jsx)(Aw.Button,{__next40pxDefaultSize:!0,onClick:n,variant:"link",disabled:r,accessibleWhenDisabled:!0})});return t?(0,Mw.jsx)(Aw.Notice,{status:"warning",isDismissible:!1,children:i}):(0,Mw.jsx)(HX.Warning,{children:i})}var zw=Pxe;var xd=a(G(),1);var Ti=a(A(),1),Vv=a(z(),1),ps=a(P(),1),eg=a(T(),1);var Eo=a(y(),1),Bxe={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},Exe=["core/navigation-link","core/navigation-submenu"];function Ixe({block:e,onClose:t,expandedState:r,expand:o,setInsertedBlock:n}){let{insertBlock:i,replaceBlock:l,replaceInnerBlocks:s}=(0,Vv.useDispatch)(eg.store),c=e.clientId,u=!Exe.includes(e.name);return(0,Eo.jsx)(Ti.MenuItem,{icon:fp,disabled:u,onClick:()=>{let p=(0,xd.createBlock)(ki.name,ki.attributes);if(e.name==="core/navigation-submenu")i(p,e.innerBlocks.length,c,!1);else{let d=(0,xd.createBlock)("core/navigation-submenu",e.attributes,e.innerBlocks);l(c,d),s(d.clientId,[p],!1)}n(p),r[e.clientId]||o(e.clientId),t()},children:(0,ps.__)("Add submenu link")})}function UX(e){let{block:t}=e,{clientId:r}=t,{moveBlocksDown:o,moveBlocksUp:n,removeBlocks:i,duplicateBlocks:l,insertBeforeBlock:s,insertAfterBlock:c}=(0,Vv.useDispatch)(eg.store),u=(0,ps.sprintf)((0,ps.__)("Remove %s"),(0,eg.BlockTitle)({clientId:r,maximumLength:25})),{rootClientId:m,canDuplicate:p,canInsertBlock:d,isFirst:f,isLast:h}=(0,Vv.useSelect)(g=>{let{getBlockRootClientId:b,canInsertBlockType:v,getDirectInsertBlock:x,getBlockIndex:_,getBlockCount:k}=g(eg.store),{getDefaultBlockName:S}=g(xd.store),C=b(r),E=v(S(),C),I=C?x(C):null;return{rootClientId:C,canDuplicate:!!t&&(0,xd.hasBlockSupport)(t.name,"multiple",!0)&&v(t.name,C),canInsertBlock:(E||!!I)&&!!t&&v(t.name,C),isFirst:_(r)===0,isLast:_(r)===k(C)-1}},[r,t]);return(0,Eo.jsx)(Ti.DropdownMenu,{icon:Z0,label:(0,ps.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:Bxe,noIcons:!0,...e,children:({onClose:g})=>(0,Eo.jsxs)(Eo.Fragment,{children:[(0,Eo.jsxs)(Ti.MenuGroup,{children:[(0,Eo.jsx)(Ti.MenuItem,{icon:d9,disabled:f,accessibleWhenDisabled:!0,onClick:()=>{n([r],m),g()},children:(0,ps.__)("Move up")}),(0,Eo.jsx)(Ti.MenuItem,{icon:P0,disabled:h,accessibleWhenDisabled:!0,onClick:()=>{o([r],m),g()},children:(0,ps.__)("Move down")}),(0,Eo.jsx)(Ixe,{block:t,onClose:g,expandedState:e.expandedState,expand:e.expand,setInsertedBlock:e.setInsertedBlock}),p&&(0,Eo.jsx)(Ti.MenuItem,{onClick:()=>{l([r]),g()},children:(0,ps.__)("Duplicate")}),d&&(0,Eo.jsxs)(Eo.Fragment,{children:[(0,Eo.jsx)(Ti.MenuItem,{onClick:()=>{s(r),g()},children:(0,ps.__)("Add before")}),(0,Eo.jsx)(Ti.MenuItem,{onClick:()=>{c(r),g()},children:(0,ps.__)("Add after")})]})]}),(0,Eo.jsx)(Ti.MenuGroup,{children:(0,Eo.jsx)(Ti.MenuItem,{onClick:()=>{i([r],!1),g()},children:u})})]})})}var pJ=a(T(),1),dJ=a(z(),1);var No=a(A(),1),qt=a(P(),1),lJ=a(Jn(),1),Wv=a(T(),1),Gw=a(z(),1),sJ=a(Y(),1);var $X=a(H(),1),qX=a(z(),1),ZX=a(T(),1);var LD=a(WX(),1),Fv=a(ir(),1),Nxe=(e,t)=>{if(!e||!t)return!1;let r=h=>h?h.replace(/\/+$/,""):"",o=(h,g=null)=>{try{let b=g||(typeof window<"u"?window.location.origin:"https://wordpress.org");return new URL(h,b)}catch{return null}},n=o(e);if(!n)return!0;let i=o(t,e);if(!i)return!0;let l=n.hostname,s=i.hostname,c=r((0,Fv.getPath)(n.toString())),u=r((0,Fv.getPath)(i.toString()));if(l!==s||c!==u)return!0;let m=n.searchParams.get("p"),p=i.searchParams.get("p");if(m&&p&&m!==p)return!0;let d=n.searchParams.get("page_id"),f=i.searchParams.get("page_id");return!!(d&&f&&d!==f||m&&f||d&&p)},kd=(e={},t,r={})=>{let{label:o="",kind:n="",type:i=""}=r,{title:l="",label:s="",url:c,opensInNewTab:u,id:m,kind:p=n,type:d=i}=e,f=l||s,h=f.replace(/http(s?):\/\//gi,""),g=c?.replace(/http(s?):\/\//gi,"")??"",v=f&&f!==o&&h!==g?(0,LD.escapeHTML)(f):o||(0,LD.escapeHTML)(g),x=d==="post_tag"?"tag":d.replace("-","_"),_=["post","page","tag","category"].indexOf(x)>-1,S=!p&&!_||p==="custom"?"custom":p,C={...c!==void 0?{url:c&&encodeURI((0,Fv.safeDecodeURI)(c))}:{},...v&&{label:v},...u!==void 0&&{opensInNewTab:u},...S&&{kind:S},...x&&x!=="URL"&&{type:x}};c&&!m&&r.id?Nxe(r.url,c)&&(C.id=void 0,C.kind="custom",C.type="custom"):m&&Number.isInteger(m)?C.id=m:r.id&&(C.kind=S,C.type=x),t(C);let E="id"in C?C.id:r.id,I="kind"in C?C.kind:r.kind;return{isEntityLink:!!E&&I!=="custom",attributes:C}};function Ov({clientId:e,attributes:t,setAttributes:r}){let{updateBlockAttributes:o}=(0,qX.useDispatch)(ZX.store),{hasUrlBinding:n,createBinding:i,clearBinding:l}=Si({clientId:e,attributes:t});return(0,$X.useCallback)(s=>{if(!s)return;let c={url:s.url,kind:s.kind,type:s.type,id:s.id};if((!t.label||t.label==="")&&(c.title=s.title),!s.id&&n)l(),o(e,{url:s.url,kind:"custom",type:"custom",id:void 0});else{let{isEntityLink:m,attributes:p}=kd(c,r,t);m?i(p):l()}},[t,e,n,i,l,r,o])}var jw=a(Jn(),1),wd=a(A(),1),Uv=a(P(),1),Uw=a(T(),1),Ea=a(H(),1),eJ=a(Y(),1);var FD=a(pe(),1);var tJ=a(ir(),1);var An=a(A(),1),Pi=a(P(),1),jv=a(z(),1),Ow=a(Y(),1),YX=a(yr(),1),AD=a(jo(),1),RD=a(H(),1);var KX=a(A(),1),Vw=a(P(),1);var Hv=a(pe(),1);var Sm=a(y(),1);function Dxe({className:e,onBack:t}){return(0,Sm.jsx)(KX.Button,{className:e,icon:(0,Vw.isRTL)()?m9:c9,onClick:r=>{r.preventDefault(),t()},size:"small",children:(0,Vw.__)("Back")})}function MD({className:e,title:t,description:r,onBack:o,children:n}){let i=(0,Hv.useInstanceId)(MD,"link-ui-dialog-title"),l=(0,Hv.useInstanceId)(MD,"link-ui-dialog-description"),s=(0,Hv.useFocusOnMount)("firstElement"),c=`${e}__back`;return(0,Sm.jsxs)("div",{className:e,role:"dialog","aria-labelledby":i,"aria-describedby":l,ref:s,children:[(0,Sm.jsxs)(ai,{children:[(0,Sm.jsx)("h2",{id:i,children:t}),(0,Sm.jsx)("p",{id:l,children:r})]}),(0,Sm.jsx)(Dxe,{className:c,onBack:o}),n]})}var Fw=MD;var ll=a(y(),1);function QX({postType:e,onBack:t,onPageCreated:r,initialTitle:o=""}){let[n,i]=(0,RD.useState)(o),[l,s]=(0,RD.useState)(!0),c=n.trim().length>0,{lastError:u,isSaving:m}=(0,jv.useSelect)(b=>({lastError:b(Ow.store).getLastEntitySaveError("postType",e),isSaving:b(Ow.store).isSavingEntityRecord("postType",e)}),[e]),{saveEntityRecord:p}=(0,jv.useDispatch)(Ow.store),{createSuccessNotice:d,createErrorNotice:f}=(0,jv.useDispatch)(YX.store);async function h(b){if(b.preventDefault(),!(m||!c))try{let v=await p("postType",e,{title:n,status:l?"publish":"draft"},{throwOnError:!0});if(v){let x={id:v.id,type:e,title:(0,AD.decodeEntities)(v.title.rendered),url:v.link,kind:"post-type"};d((0,Pi.sprintf)((0,Pi.__)("%s page created successfully."),(0,AD.decodeEntities)(v.title.rendered)),{type:"snackbar",id:"page-created-success"}),r(x)}}catch{f((0,Pi.__)("Failed to create page. Please try again."),{type:"snackbar",id:"page-created-error"})}}let g=m||!c;return(0,ll.jsx)(Fw,{className:"link-ui-page-creator",title:(0,Pi.__)("Create page"),description:(0,Pi.__)("Create a new page to add to your Navigation."),onBack:t,children:(0,ll.jsx)(An.__experimentalVStack,{className:"link-ui-page-creator__inner",spacing:4,children:(0,ll.jsx)("form",{onSubmit:h,children:(0,ll.jsxs)(An.__experimentalVStack,{spacing:4,children:[(0,ll.jsx)(An.TextControl,{__next40pxDefaultSize:!0,label:(0,Pi.__)("Title"),onChange:i,placeholder:(0,Pi.__)("No title"),value:n}),(0,ll.jsx)(An.CheckboxControl,{label:(0,Pi.__)("Publish"),help:(0,Pi.__)("Turn off to save as a draft. Drafts won't appear on your site until published."),checked:l,onChange:s}),u&&(0,ll.jsx)(An.Notice,{status:"error",isDismissible:!1,children:u.message}),(0,ll.jsxs)(An.__experimentalHStack,{spacing:2,justify:"flex-end",children:[(0,ll.jsx)(An.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,disabled:m,accessibleWhenDisabled:!0,children:(0,Pi.__)("Cancel")}),(0,ll.jsx)(An.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:m,"aria-disabled":g,children:(0,Pi.__)("Create page")})]})]})})})})}var zD=a(P(),1),XX=a(z(),1),Hw=a(T(),1);var VD=a(y(),1),{PrivateQuickInserter:Lxe}=Z(Hw.privateApis);function Mxe({clientId:e,onBack:t,onBlockInsert:r}){let{rootBlockClientId:o}=(0,XX.useSelect)(n=>{let{getBlockRootClientId:i}=n(Hw.store);return{rootBlockClientId:i(e)}},[e]);return e?(0,VD.jsx)(Fw,{className:"link-ui-block-inserter",title:(0,zD.__)("Add block"),description:(0,zD.__)("Choose a block to add to your Navigation."),onBack:t,children:(0,VD.jsx)(Lxe,{rootClientId:o,clientId:e,isAppender:!1,prioritizePatterns:!1,selectBlockOnInsert:!r,onSelect:r||void 0,hasSearch:!1})}):null}var JX=Mxe;var Rn=a(y(),1);function OD(e,t){switch(e){case"post":case"page":return{type:"post",subtype:e,perPage:20};case"category":return{type:"term",subtype:"category",perPage:20};case"tag":return{type:"term",subtype:"post_tag",perPage:20};case"post_format":return{type:"post-format",perPage:20};default:return t==="taxonomy"?{type:"term",subtype:e,perPage:20}:t==="post-type"?{type:"post",subtype:e,perPage:20}:{initialSuggestionsSearchOptions:{type:"post",subtype:"page",perPage:20}}}}function Axe(e,t){let{label:r,url:o,opensInNewTab:n,type:i,kind:l,id:s}=e.link,{entityRecord:c,hasBinding:u,isEntityAvailable:m}=e.entity||{},{image:p,badges:d}=Gv({url:o,entityRecord:c,type:i,hasBinding:u,isEntityAvailable:m}),{clientId:f}=e,h=i||"page",[g,b]=(0,Ea.useState)(!1),[v,x]=(0,Ea.useState)(!1),[_,k]=(0,Ea.useState)(null),[S,C]=(0,Ea.useState)(""),E=(0,Ea.useRef)(""),I=W=>{E.current=W,C(W)},D=(0,Ea.useRef)(),M=(0,Ea.useRef)(),F=(0,Ea.useRef)(),R=(0,eJ.useResourcePermissions)({kind:"postType",name:h}),{isBoundEntityAvailable:V}=Si({clientId:f,attributes:e.link}),B=(0,Ea.useMemo)(()=>({url:o,opensInNewTab:n,title:r&&(0,jw.__unstableStripHTML)(r),entityTitle:c?.title?.rendered||c?.name,kind:l,type:i,id:s,image:p,badges:d}),[r,n,o,l,i,s,p,d,c]),j=W=>{e.onChange(W),x(!1),k(!0),I("")},U=(0,FD.useInstanceId)(lu,"link-ui-link-control__title"),O=(0,FD.useInstanceId)(lu,"link-ui-link-control__description");(0,Ea.useEffect)(()=>{_&&D.current&&(_?.current?_.current.focus():(jw.focus.tabbable.find(D.current)[0]||D.current).focus(),k(!1))},[_]);let K=(0,Uw.useBlockEditingMode)();return(0,Rn.jsxs)(wd.Popover,{ref:t,placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0,children:[!g&&!v&&(0,Rn.jsxs)("div",{ref:D,role:"dialog","aria-labelledby":U,"aria-describedby":O,children:[(0,Rn.jsxs)(ai,{children:[(0,Rn.jsx)("h2",{id:U,children:(0,Uv.__)("Add link")}),(0,Rn.jsx)("p",{id:O,children:(0,Uv.__)("Search for and add a link to your Navigation.")})]}),(0,Rn.jsx)(Uw.LinkControl,{hasTextControl:!0,hasRichPreviews:!0,value:B,showInitialSuggestions:!0,withCreateSuggestion:!1,noDirectEntry:!!i,noURLSuggestion:!!i,suggestionsQuery:OD(i,l),onChange:e.onChange,onInputChange:W=>{E.current=W},inputValue:S,onRemove:e.onRemove,onCancel:e.onCancel,handleEntities:V,forceIsEditingLink:B?.url?!1:void 0,renderControlBottom:()=>B?.url?.length?null:(0,Rn.jsx)(Rxe,{addPageButtonRef:M,addBlockButtonRef:F,setAddingBlock:()=>{b(!0)},setAddingPage:()=>{x(!0)},canAddPage:R?.canCreate&&i==="page",canAddBlock:K==="default"})})]}),g&&(0,Rn.jsx)(JX,{clientId:e.clientId,onBack:()=>{b(!1),k(F),I(E.current)},onBlockInsert:e?.onBlockInsert}),v&&(0,Rn.jsx)(QX,{postType:h,onBack:()=>{x(!1),k(M),I(E.current)},onPageCreated:j,initialTitle:E.current&&!(0,tJ.isURL)(E.current)?E.current:""})]})}var lu=(0,Ea.forwardRef)(Axe),Rxe=({addPageButtonRef:e,addBlockButtonRef:t,setAddingBlock:r,setAddingPage:o,canAddPage:n,canAddBlock:i})=>{let l="listbox";return!n&&!i?null:(0,Rn.jsxs)(wd.__experimentalVStack,{spacing:0,className:"link-ui-tools",children:[n&&(0,Rn.jsx)(wd.Button,{__next40pxDefaultSize:!0,ref:e,icon:Sf,onClick:s=>{s.preventDefault(),o(!0)},"aria-haspopup":l,children:(0,Uv.__)("Create page")}),i&&(0,Rn.jsx)(wd.Button,{__next40pxDefaultSize:!0,ref:t,icon:Sf,onClick:s=>{s.preventDefault(),r(!0)},"aria-haspopup":l,children:(0,Uv.__)("Add block")})]})};var Ia=a(P(),1),UD=a(ir(),1),rJ=a(T(),1),HD=a(z(),1),jD=a(Y(),1);var{useRemoteUrlData:zxe,isHashLink:oJ,isRelativePath:Vxe}=Z(rJ.privateApis);function Fxe(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Oxe(e,t){if(e==="/")return!0;if(!e||!t)return!1;try{let r=new URL(e,t),o=new URL(t);if(r.hostname!==o.hostname)return!1;let n=r.pathname.replace(/\/$/,""),i=o.pathname.replace(/\/$/,"");return n===i}catch{return!1}}function Hxe({linkUrl:e,homeUrl:t}={}){if(!e)return{displayUrl:"",isExternal:!1};let r=(0,UD.safeDecodeURI)(e),o=!1;if(Vxe(e)||oJ(e))return{displayUrl:r,isExternal:!1};try{let n=new URL(e),i=new URL(t).host;if(n.host===i){let l=n.pathname+n.search+n.hash;l.endsWith("/")&&l.length>1&&(l=l.slice(0,-1)),r=l}else o=!0}catch{o=!0}return{displayUrl:r,isExternal:o}}function jxe({url:e,homeUrl:t,type:r,isExternal:o,entityStatus:n,hasBinding:i,isEntityAvailable:l}){let s=[];if(e&&(o?s.push({label:(0,Ia.__)("External link"),intent:"default"}):oJ(e)?s.push({label:(0,Ia.__)("Internal link"),intent:"default"}):Oxe(e,t)?s.push({label:(0,Ia.__)("Homepage"),intent:"default"}):r&&r!=="custom"?s.push({label:Fxe(r),intent:"default"}):s.push({label:(0,Ia.__)("Page"),intent:"default"})),i&&!l)s.push({label:(0,Ia.sprintf)((0,Ia.__)("Missing %s"),r),intent:"error"});else if(!e)s.push({label:(0,Ia.__)("No link selected"),intent:"error"});else if(n){let u={publish:{label:(0,Ia.__)("Published"),intent:"success"},future:{label:(0,Ia.__)("Scheduled"),intent:"warning"},draft:{label:(0,Ia.__)("Draft"),intent:"warning"},pending:{label:(0,Ia.__)("Pending"),intent:"warning"},private:{label:(0,Ia.__)("Private"),intent:"default"},trash:{label:(0,Ia.__)("Trash"),intent:"error"}}[n];u&&s.push(u)}return s}function Gv({url:e,entityRecord:t,type:r,hasBinding:o,isEntityAvailable:n}){let i=(0,HD.useSelect)(f=>f(jD.store).getEntityRecord("root","__unstableBase")?.home,[]),l=t?.title?.rendered||t?.title||t?.name,{richData:s}=zxe(l?null:e),{displayUrl:c,isExternal:u}=Hxe({linkUrl:e,homeUrl:i}),m=(0,HD.useSelect)(f=>{if(!t?.featured_media)return null;let{getEntityRecord:h}=f(jD.store),g=h("postType","attachment",t.featured_media);return g?.media_details?.sizes?.thumbnail?.source_url||g?.media_details?.sizes?.medium?.source_url||g?.source_url||null},[t?.featured_media]),p=jxe({url:e,homeUrl:i,type:r,isExternal:u,entityStatus:t?.status,hasBinding:o,isEntityAvailable:n});return{title:e?l||s?.title||(0,UD.safeDecodeURI)(e):(0,Ia.__)("Add link"),url:c,image:m,badges:p}}var aJ=a(z(),1),nJ=a(Y(),1),iJ=a(T(),1),Cd=(e,t,r,o)=>{let n=e==="post-type"||t==="post"||t==="page",i=Number.isInteger(r),l=(0,iJ.useBlockEditingMode)(),{postStatus:s,isDeleted:c}=(0,aJ.useSelect)(p=>{if(!n)return{postStatus:null,isDeleted:!1};if(l==="disabled"||!o)return{postStatus:null,isDeleted:!1};let{getEntityRecord:d,hasFinishedResolution:f}=p(nJ.store),h=d("postType",t,r),b=f("getEntityRecord",["postType",t,r])&&h===void 0;return{postStatus:h?.status,isDeleted:b}},[n,l,o,t,r]);return[n&&i&&(c||s&&s==="trash"),s==="draft"]};var Io=a(y(),1),{LinkPicker:Uxe,isHashLink:Gxe,isRelativePath:Wxe}=Z(Wv.privateApis);function $xe(e,t){if(t==="post-type")switch(e){case"post":return(0,qt.__)("post");case"page":return(0,qt.__)("page");default:return e||(0,qt.__)("post")}if(t==="taxonomy")switch(e){case"category":return(0,qt.__)("category");case"tag":return(0,qt.__)("tag");default:return e||(0,qt.__)("term")}return e||(0,qt.__)("item")}function $v({attributes:e,setAttributes:t,clientId:r,isLinkEditable:o=!0}){let{label:n,url:i,description:l,rel:s,opensInNewTab:c}=e,u=$(),{hasUrlBinding:m,isBoundEntityAvailable:p,entityRecord:d}=Si({clientId:r,attributes:e}),[f,h]=Cd(e.kind,e.type,d?.id,m),g="";f||m&&!p?g=Ww():h&&(g=qxe({type:e.type,kind:e.kind}));let b=Ov({clientId:r,attributes:e,setAttributes:t}),v=(0,Gw.useSelect)(I=>I(Wv.store).getSettings().onNavigateToEntityRecord,[]),x=(0,Gw.useSelect)(I=>I(sJ.store).getEntityRecord("root","__unstableBase")?.home,[]),k=(0,Gw.useSelect)(I=>I(Wv.store).getBlockEditingMode(r),[r])==="contentOnly",S=Gv({url:i,entityRecord:d,type:e.type,hasBinding:m,isEntityAvailable:p}),C=!!i&&(!Gxe(i)||Wxe(i)&&!i.startsWith("/")),E=C&&i.startsWith("/")&&x?x+i:i;return(0,Io.jsxs)(No.__experimentalToolsPanel,{label:(0,qt.__)("Settings"),resetAll:()=>{t({label:"",url:"",description:"",rel:"",opensInNewTab:!1})},dropdownMenuProps:u,children:[(0,Io.jsx)(No.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,qt.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,Io.jsx)(No.TextControl,{__next40pxDefaultSize:!0,label:(0,qt.__)("Text"),value:n?(0,lJ.__unstableStripHTML)(n):"",onChange:I=>{t({label:I})},autoComplete:"off"})}),o&&(0,Io.jsxs)(Io.Fragment,{children:[(0,Io.jsx)(No.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,qt.__)("Link to"),onDeselect:()=>t({url:void 0,id:void 0,kind:void 0,type:void 0}),isShownByDefault:!0,children:(0,Io.jsx)(Uxe,{preview:S,onSelect:b,suggestionsQuery:OD(e.type,e.kind),label:(0,qt.__)("Link to"),help:g||void 0})}),(0,Io.jsx)(No.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,qt.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,Io.jsx)(No.CheckboxControl,{label:(0,qt.__)("Open in new tab"),checked:c,onChange:I=>t({opensInNewTab:I})})}),!!i&&m&&p&&d?.id&&e.kind==="post-type"&&v&&(0,Io.jsx)(No.Button,{variant:"secondary",onClick:()=>{v({postId:d.id,postType:e.type})},__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,qt.__)("Edit")}),C&&(0,Io.jsx)(No.Button,{variant:"secondary",href:E,target:"_blank",icon:V9,iconPosition:"right",__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,qt.__)("View")})]}),(0,Io.jsx)(No.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,qt.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!k,children:(0,Io.jsx)(No.TextareaControl,{label:(0,qt.__)("Description"),value:l||"",onChange:I=>{t({description:I})},help:(0,qt.__)("The description will be displayed in the menu if the current theme supports it.")})}),(0,Io.jsx)(No.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,qt.__)("Rel attribute"),onDeselect:()=>t({rel:""}),isShownByDefault:!k,children:(0,Io.jsx)(No.TextControl,{__next40pxDefaultSize:!0,label:(0,qt.__)("Rel attribute"),value:s||"",onChange:I=>{t({rel:I})},autoComplete:"off",help:(0,qt.__)("The relationship of the linked URL as space-separated link types.")})})]})}function Ww(){return(0,qt.__)("This link is invalid and will not appear on your site. Please update the link.")}function qxe({type:e,kind:t}){let r=$xe(e,t);return(0,qt.sprintf)((0,qt.__)("This link is to a draft %1$s and will not appear on your site until the %1$s is published."),r)}var GD=a(P(),1),cJ=a(jo(),1),WD=a(y(),1);function qv({label:e,isInvalid:t,isDraft:r,className:o="wp-block-navigation-link__label"}){if(!t&&!r)return null;let n=t?(0,GD.__)("Invalid"):(0,GD.__)("Draft");return(0,WD.jsx)("div",{className:w("wp-block-navigation-link__placeholder-text",o,{"is-invalid":t,"is-draft":r}),children:(0,WD.jsx)("span",{children:`${(0,cJ.decodeEntities)(e)} (${n})`.trim()})})}var uJ=a(z(),1),mJ=a(T(),1);function Zv(e){return(0,uJ.useSelect)(t=>{let{getSelectedBlockClientId:r,hasSelectedInnerBlock:o,getBlockParentsByBlockName:n}=t(mJ.store),i=r(),l=n(e,"core/navigation")[0];return i===l||o(l,!0)},[e])}var $w=a(H(),1),Kv=e=>{let[t,r]=(0,$w.useState)(!1);return(0,$w.useEffect)(()=>{let{ownerDocument:o}=e.current;function n(s){l(s)}function i(){r(!1)}function l(s){e.current.contains(s.target)?r(!0):r(!1)}return o.addEventListener("dragstart",n),o.addEventListener("dragend",i),o.addEventListener("dragenter",l),()=>{o.removeEventListener("dragstart",n),o.removeEventListener("dragend",i),o.removeEventListener("dragenter",l)}},[e]),t};function Yv(e){e.current.focus();let{ownerDocument:t}=e.current,{defaultView:r}=t,o=r.getSelection(),n=t.createRange();n.selectNodeContents(e.current),o.removeAllRanges(),o.addRange(n)}var fJ=a(y(),1),Zxe=["core/navigation-link","core/navigation-submenu"];function qw({block:e,insertedBlock:t,setInsertedBlock:r}){let{updateBlockAttributes:o,removeBlock:n}=(0,dJ.useDispatch)(pJ.store),i=Zxe?.includes(t?.name),l=t?.clientId===e.clientId,s=i&&l,{createBinding:c,clearBinding:u}=Si({clientId:t?.clientId,attributes:t?.attributes||{}});if(!s)return null;let m=()=>{!t?.attributes?.url&&t?.clientId&&n(t.clientId,!1),r(null)},p=f=>h=>{f&&o(f,h)},d=f=>{t?.clientId&&f&&n(t.clientId,!1),r(f)};return(0,fJ.jsx)(lu,{clientId:t?.clientId,link:t?.attributes,onBlockInsert:d,onClose:()=>{m()},onChange:f=>{let{isEntityLink:h,attributes:g}=kd(f,p(t?.clientId),t?.attributes);h?c(g):u(),r(null)}})}var Zw=a(A(),1),hJ=a(P(),1),gJ=a(T(),1);var Qv=a(y(),1),{useBlockDisplayTitle:Kxe}=Z(gJ.privateApis),Yxe=(0,hJ.__)("Switch to '%s'");function vJ({clientId:e,blockEditingMode:t,currentMenuId:r,onSelectClassicMenu:o,onSelectNavigationMenu:n,onCreateNew:i,createNavigationMenuIsSuccess:l,createNavigationMenuIsError:s,isManageMenusButtonDisabled:c}){let u=Kxe({clientId:e,context:"list-view"});return(0,Qv.jsxs)(Zw.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header",children:[(0,Qv.jsx)(Zw.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2,children:u}),t==="default"&&(0,Qv.jsx)(jh,{currentMenuId:r,onSelectClassicMenu:o,onSelectNavigationMenu:n,onCreateNew:i,createNavigationMenuIsSuccess:l,createNavigationMenuIsError:s,actionLabel:Yxe,isManageMenusButtonDisabled:c})]})}var an=a(y(),1),Qxe=(0,Tm.__)("Switch to '%s'"),{PrivateListView:Xxe,PrivateBlockContext:Jxe,useListViewPanelState:eke,useBlockDisplayTitle:tke}=Z(Pm.privateApis),bJ=({clientId:e,currentMenuId:t,isLoading:r,isNavigationMenuMissing:o,onCreateNew:n,expandRevision:i})=>{let l=(0,Kw.useSelect)(m=>!!m(Pm.store).getBlockCount(e),[e]),{openListViewContentPanel:s}=Z((0,Kw.useDispatch)(Pm.store)),{navigationMenu:c}=Oh(t);if(t&&o)return(0,an.jsx)(zw,{onCreateNew:n,isNotice:!0});if(r)return(0,an.jsx)(Xv.Spinner,{});let u=c?(0,Tm.sprintf)((0,Tm.__)("Structure for Navigation Menu: %s"),c?.title||(0,Tm.__)("Untitled menu")):(0,Tm.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,an.jsxs)("div",{className:"wp-block-navigation__menu-inspector-controls",children:[!l&&(0,an.jsx)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message",children:(0,Tm.__)("This Navigation Menu is empty.")}),(0,an.jsx)(Xxe,{rootClientId:e,isExpanded:!0,description:u,showAppender:!0,blockSettingsMenu:UX,additionalBlockContent:qw,onSelect:s},`${e}-${i}`)]})},rke=e=>{let{clientId:t,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,currentMenuId:n=null,onCreateNew:i,onSelectClassicMenu:l,onSelectNavigationMenu:s,isManageMenusButtonDisabled:c,blockEditingMode:u}=e,{isSelectionWithinCurrentSection:m}=(0,yJ.useContext)(Jxe),p=tke({clientId:t,context:"list-view"}),d=m,{isOpened:f,expandRevision:h,handleToggle:g}=eke(t);return d?(0,an.jsx)(Pm.InspectorControls,{group:"list",children:(0,an.jsxs)(Xv.PanelBody,{title:p,opened:f,onToggle:g,children:[u==="default"&&(0,an.jsx)(jh,{currentMenuId:n,onSelectClassicMenu:l,onSelectNavigationMenu:s,onCreateNew:i,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,actionLabel:Qxe,isManageMenusButtonDisabled:c}),(0,an.jsx)(bJ,{...e,expandRevision:h})]})}):(0,an.jsx)(Pm.InspectorControls,{group:"list",children:(0,an.jsxs)(Xv.PanelBody,{title:null,children:[(0,an.jsx)(vJ,{clientId:t,blockEditingMode:u,currentMenuId:n,onSelectClassicMenu:l,onSelectNavigationMenu:s,onCreateNew:i,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,isManageMenusButtonDisabled:c}),(0,an.jsx)(bJ,{...e,expandRevision:h})]})})},Yw=rke;var $D=a(y(),1);function Qw({id:e,children:t}){return(0,$D.jsx)(ai,{children:(0,$D.jsx)("div",{id:e,className:"wp-block-navigation__description",children:t})})}var _J=a(Y(),1),Xw=a(P(),1);var xJ=a(y(),1);function kJ({id:e}){let[t]=(0,_J.useEntityProp)("postType","wp_navigation","title"),r=(0,Xw.sprintf)((0,Xw.__)('Navigation Menu: "%s"'),t);return(0,xJ.jsx)(Qw,{id:e,children:r})}var qD=a(z(),1),wJ=a(Y(),1);function Jv(){let e=(0,qD.select)("core/editor");if(!e)return!1;let{getCurrentPostType:t,getCurrentPostId:r}=e,{getEditedEntityRecord:o}=(0,qD.select)(wJ.store),n=t?.(),i=r?.();return n==="wp_template_part"&&i?o("postType","wp_template_part",i)?.area===nc:!1}var ce=a(y(),1),{isNavigationPostEditorKey:oke}=Z(Qe.privateApis);function ake({clientId:e}){let{insertBlock:t}=(0,ds.useDispatch)(Qe.store),{getBlockCount:r}=(0,ds.useSelect)(Qe.store),o=(0,Zt.useCallback)(()=>{let n=r(e),i=(0,CJ.createBlock)(ki.name,{kind:ki.attributes.kind,type:ki.attributes.type});t(i,n,e)},[e,t,r]);return(0,ce.jsx)(Qe.BlockControls,{children:(0,ce.jsx)(Or.ToolbarGroup,{children:(0,ce.jsx)(Or.ToolbarButton,{name:"add-page",icon:zc,onClick:o,children:(0,Dt.__)("Add page")})})})}function nke({textColor:e,setTextColor:t,backgroundColor:r,setBackgroundColor:o,overlayTextColor:n,setOverlayTextColor:i,overlayBackgroundColor:l,setOverlayBackgroundColor:s,clientId:c,navRef:u,hasCustomOverlay:m}){let[p,d]=(0,Zt.useState)(),[f,h]=(0,Zt.useState)(),[g,b]=(0,Zt.useState)(),[v,x]=(0,Zt.useState)(),_=(0,ds.useSelect)(()=>Jv(),[]),k=Zt.Platform.OS==="web";(0,Zt.useEffect)(()=>{if(!k)return;SD(u.current,h,d);let E=u.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');E&&(n.color||l.color)&&SD(E,x,b)},[k,n.color,l.color,u]);let S=(0,Qe.__experimentalUseMultipleOriginColorsAndGradients)();if(!S.hasColorsOrGradients)return null;let C=[{colorValue:e.color,label:(0,Dt.__)("Text"),onColorChange:t,resetAllFilter:()=>t(),clearable:!0,enableAlpha:!0},{colorValue:r.color,label:(0,Dt.__)("Background"),onColorChange:o,resetAllFilter:()=>o(),clearable:!0,enableAlpha:!0}];return C.push({colorValue:n.color,label:m||_?(0,Dt.__)("Submenu text"):(0,Dt.__)("Submenu & overlay text"),onColorChange:i,resetAllFilter:()=>i(),clearable:!0,enableAlpha:!0},{colorValue:l.color,label:m||_?(0,Dt.__)("Submenu background"):(0,Dt.__)("Submenu & overlay background"),onColorChange:s,resetAllFilter:()=>s(),clearable:!0,enableAlpha:!0}),(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(Qe.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:C,panelId:c,...S,gradients:[],disableCustomGradients:!0}),k&&(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(Qe.ContrastChecker,{backgroundColor:p,textColor:f}),(0,ce.jsx)(Qe.ContrastChecker,{backgroundColor:g,textColor:v})]})]})}function ike({attributes:e,setAttributes:t,clientId:r,isSelected:o,className:n,backgroundColor:i,setBackgroundColor:l,textColor:s,setTextColor:c,overlayBackgroundColor:u,setOverlayBackgroundColor:m,overlayTextColor:p,setOverlayTextColor:d,customPlaceholder:f=null,__unstableLayoutClassNames:h}){let{submenuVisibility:g,overlayMenu:b,overlay:v,showSubmenuIcon:x,templateLock:_,layout:{justifyContent:k,orientation:S="horizontal",flexWrap:C="wrap"}={},hasIcon:E,icon:I="handle"}=e,D=e.ref,M=(0,Zt.useCallback)(Xt=>{t({ref:Xt})},[t]);(0,Zt.useEffect)(()=>{S==="horizontal"&&g==="always"&&t({submenuVisibility:"hover",showSubmenuIcon:!0})},[S,g,t]);let F=`navigationMenu/${D}`,R=(0,Qe.useHasRecursion)(F),{isPreviewMode:V,onNavigateToEntityRecord:B,currentTheme:j,editorDisabledResponsive:U}=(0,ds.useSelect)(Xt=>{let{getSettings:Pl}=Xt(Qe.store),Bl=Pl();return{isPreviewMode:Bl.isPreviewMode,onNavigateToEntityRecord:Bl?.onNavigateToEntityRecord,currentTheme:Xt(Bm.store).getCurrentTheme()?.stylesheet,editorDisabledResponsive:!!Bl?.[oke]}},[]),O=V?!1:R,K=(0,Qe.useBlockEditingMode)(),{records:W}=(0,Bm.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),[ee,oe]=hw({name:"block-library/core/navigation/status"}),[X,J]=hw({name:"block-library/core/navigation/classic-menu-conversion"}),[ne,ie]=hw({name:"block-library/core/navigation/permissions/update"}),{create:ue,status:fe,error:Oe,value:ke,isPending:ae,isSuccess:Te,isError:Le}=LX(r),te=async()=>{await ue("")},{hasUncontrolledInnerBlocks:He,uncontrolledInnerBlocks:st,isInnerBlockSelected:ct,innerBlocks:Me}=RX(r),se=(0,Zt.useRef)(!1),_t=(0,ds.useSelect)(Xt=>{if(Me.some(yf=>yf.name==="core/navigation-submenu"))return!0;let Bl=Me.find(yf=>yf.name==="core/page-list");if(!Bl)return se.current=!1,!1;if(se.current)return!0;let{getBlocks:Py}=Xt(Qe.store);return Py(Bl.clientId).length>0?(se.current=!0,!0):!1},[Me]),{records:Ve}=(0,Bm.useEntityRecords)("postType","wp_template_part",{per_page:-1}),we=Ve?.some(Xt=>Xt.area===nc)??!1,{replaceInnerBlocks:rt,selectBlock:Ue,__unstableMarkNextChangeAsNotPersistent:et}=(0,ds.useDispatch)(Qe.store),[fa,Q]=(0,Zt.useState)(!1),[Ie,tt]=(0,Zt.useState)(!1),{hasResolvedNavigationMenus:Ke,isNavigationMenuResolved:Ne,isNavigationMenuMissing:xt,canUserUpdateNavigationMenu:jt,hasResolvedCanUserUpdateNavigationMenu:zo,canUserDeleteNavigationMenu:ut,hasResolvedCanUserDeleteNavigationMenu:vn,canUserCreateNavigationMenus:Oi,isResolvingCanUserCreateNavigationMenus:qn,hasResolvedCanUserCreateNavigationMenus:np}=Oh(D),Mc=Ke&&xt,{convert:Iu,status:Cl,error:Hi}=bX(ue),Zn=Cl===Iw,Ac=(0,Zt.useCallback)((Xt,Pl={focusNavigationBlock:!1})=>{let{focusNavigationBlock:Bl}=Pl;M(Xt),Bl&&Ue(r)},[Ue,r,M]),Pe=!xt&&Ne,Ct=He&&!Pe,{getNavigationFallbackId:yo}=Z((0,ds.useSelect)(Bm.store)),_o=D||Ct?null:yo();(0,Zt.useEffect)(()=>{D||Ct||!_o||(et(),M(_o))},[D,M,Ct,_o,et]);let Oa=(0,Zt.useRef)(),Sl=(0,ds.useSelect)(()=>Jv(),[]),Kn=Sl?"div":"nav",Rc=!D&&!ae&&!Zn&&Ke&&W?.length===0&&!He,Ts=!Ke||ae||Zn||!!(D&&!Pe&&!Zn),Tl=e.style?.typography?.textDecoration,Cy=(0,ds.useSelect)(Xt=>Xt(Qe.store).__unstableHasActiveBlockOverlayActive(r),[r]),Sy=(0,Zt.useRef)(!1);(0,Zt.useEffect)(()=>{Sl&&(b!=="never"&&t({overlayMenu:"never"}),!Sy.current&&!D&&(Sy.current=!0,t({submenuVisibility:"always",layout:{...e.layout,orientation:"vertical"},showSubmenuIcon:!1})))},[e.layout,Sl,b,D,t]);let hf=b!=="never"&&!U,Yn=(0,Qe.useBlockProps)({ref:Oa,className:w(n,{"items-justified-right":k==="right","items-justified-space-between":k==="space-between","items-justified-left":k==="left","items-justified-center":k==="center","is-vertical":S==="vertical","no-wrap":C==="nowrap","is-responsive":hf,"has-text-color":!!s.color||!!s?.class,[(0,Qe.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!i.color||i.class,[(0,Qe.getColorClassName)("background-color",i?.slug)]:!!i?.slug,[`has-text-decoration-${Tl}`]:Tl,"block-editor-block-content-overlay":Cy},h),style:{color:!s?.slug&&s?.color,backgroundColor:!i?.slug&&i?.color}}),gf=async Xt=>Iu(Xt.id,Xt.name,"draft"),vf=Xt=>{Ac(Xt)};(0,Zt.useEffect)(()=>{oe(),ae&&(0,Jw.speak)((0,Dt.__)("Creating Navigation Menu.")),Te&&(Ac(ke?.id,{focusNavigationBlock:!0}),ee((0,Dt.__)("Navigation Menu successfully created."))),Le&&ee((0,Dt.__)("Failed to create Navigation Menu."))},[fe,Oe,ke?.id,Le,Te,ae,Ac,oe,ee]),(0,Zt.useEffect)(()=>{J(),Cl===Iw&&(0,Jw.speak)((0,Dt.__)("Classic menu importing.")),Cl===DD&&(X((0,Dt.__)("Classic menu imported successfully.")),Ac(ke?.id,{focusNavigationBlock:!0})),Cl===Bw&&X((0,Dt.__)("Classic menu import failed."))},[Cl,Hi,J,X,ke?.id,Ac]),(0,Zt.useEffect)(()=>{!o&&!ct&&ie(),(o||ct)&&(D&&!Mc&&zo&&!jt&&ne((0,Dt.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),!D&&np&&!Oi&&ne((0,Dt.__)("You do not have permission to create Navigation Menus.")))},[o,ct,jt,zo,Oi,np,D,ie,ne,Mc]);let Ty=Oi||jt,e7=w("wp-block-navigation__overlay-menu-preview",{open:Ie}),ip=!x&&g!=="click"&&g!=="always"?(0,Dt.__)('The current menu options offer reduced accessibility for users and are not recommended. Enabling either "Open on Click" or "Show arrow" offers enhanced accessibility by allowing keyboard users to browse submenus selectively.'):"",m0=(0,Zt.useRef)(!0);(0,Zt.useEffect)(()=>{!m0.current&&ip&&(0,Jw.speak)(ip),m0.current=!1},[ip]);let p0=(0,SJ.useInstanceId)(zQ,"overlay-menu-preview"),t7=$(),bf=(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(Qe.InspectorControls,{children:_t&&(0,ce.jsx)(Or.__experimentalToolsPanel,{label:(0,Dt.__)("Display"),resetAll:()=>{t({showSubmenuIcon:!0,submenuVisibility:"hover",overlayMenu:"mobile",hasIcon:!0,icon:"handle"})},dropdownMenuProps:t7,children:_t&&(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)("h3",{className:"wp-block-navigation__submenu-header",children:(0,Dt.__)("Submenus")}),(0,ce.jsx)(Or.__experimentalToolsPanelItem,{hasValue:()=>g!=="hover",label:(0,Dt.__)("Submenu Visibility"),onDeselect:()=>t({submenuVisibility:"hover"}),isShownByDefault:!0,children:(0,ce.jsxs)(Or.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,Dt.__)("Submenu Visibility"),value:g,onChange:Xt=>{let Pl={submenuVisibility:Xt};Xt==="always"?Pl.showSubmenuIcon=!1:(Xt==="click"||g==="always")&&(Pl.showSubmenuIcon=!0),t(Pl)},isBlock:!0,children:[(0,ce.jsx)(Or.__experimentalToggleGroupControlOption,{value:"hover",label:(0,Dt.__)("Hover")}),(0,ce.jsx)(Or.__experimentalToggleGroupControlOption,{value:"click",label:(0,Dt.__)("Click")}),S==="vertical"&&(0,ce.jsx)(Or.__experimentalToggleGroupControlOption,{value:"always",label:(0,Dt.__)("Always")})]})}),(0,ce.jsx)(Or.__experimentalToolsPanelItem,{hasValue:()=>!x,label:(0,Dt.__)("Show arrow"),onDeselect:()=>t({showSubmenuIcon:!0}),isDisabled:g==="click"||g==="always",isShownByDefault:!0,children:(0,ce.jsx)(Or.ToggleControl,{checked:x,onChange:Xt=>{t({showSubmenuIcon:Xt})},disabled:g==="click"||g==="always",label:(0,Dt.__)("Show arrow")})}),ip&&(0,ce.jsx)(Or.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,className:"wp-block-navigation__submenu-accessibility-notice",children:ip})]})})}),!Sl&&(0,ce.jsx)(Qe.InspectorControls,{children:(0,ce.jsx)(pX,{overlayMenu:b,overlay:v,setAttributes:t,onNavigateToEntityRecord:B,overlayMenuPreview:Ie,setOverlayMenuPreview:tt,hasIcon:E,icon:I,overlayMenuPreviewClasses:e7,overlayMenuPreviewId:p0,isResponsive:hf,currentTheme:j,hasOverlays:we})}),(0,ce.jsx)(Qe.InspectorControls,{group:"color",children:(0,ce.jsx)(nke,{textColor:s,setTextColor:c,backgroundColor:i,setBackgroundColor:l,overlayTextColor:p,setOverlayTextColor:d,overlayBackgroundColor:u,setOverlayBackgroundColor:m,clientId:r,navRef:Oa,hasCustomOverlay:!!v})})]}),lp=`${r}-desc`,Nu=b==="always",sp=!Ty||!Ke;if(Ct&&!ae)return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(Yw,{clientId:r,createNavigationMenuIsSuccess:Te,createNavigationMenuIsError:Le,currentMenuId:D,isNavigationMenuMissing:xt,isManageMenusButtonDisabled:sp,onCreateNew:te,onSelectClassicMenu:gf,onSelectNavigationMenu:vf,isLoading:Ts,blockEditingMode:K}),K==="default"&&bf,(0,ce.jsxs)(Kn,{...Yn,"aria-describedby":Rc?void 0:lp,children:[(0,ce.jsx)(Qw,{id:lp,children:(0,Dt.__)("Unsaved Navigation Menu.")}),(0,ce.jsx)(xD,{id:r,onToggle:Q,isOpen:fa,hasIcon:E,icon:I,isResponsive:hf,isHiddenByDefault:Nu,overlayBackgroundColor:u,overlayTextColor:p,overlay:v,onNavigateToEntityRecord:B,children:(0,ce.jsx)(NQ,{createNavigationMenu:ue,blocks:st,hasSelection:o||ct})})]})]});if(D&&xt)return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(Yw,{clientId:r,createNavigationMenuIsSuccess:Te,createNavigationMenuIsError:Le,currentMenuId:D,isNavigationMenuMissing:xt,isManageMenusButtonDisabled:sp,onCreateNew:te,onSelectClassicMenu:gf,onSelectNavigationMenu:vf,isLoading:Ts,blockEditingMode:K}),(0,ce.jsx)(Kn,{...Yn,children:(0,ce.jsx)(zw,{onCreateNew:te})})]});if(Pe&&O)return(0,ce.jsx)("div",{...Yn,children:(0,ce.jsx)(Qe.Warning,{children:(0,Dt.__)("Block cannot be rendered inside itself.")})});let r7=f||dQ;return Rc&&f?(0,ce.jsx)(Kn,{...Yn,children:(0,ce.jsx)(r7,{isSelected:o,currentMenuId:D,clientId:r,canUserCreateNavigationMenus:Oi,isResolvingCanUserCreateNavigationMenus:qn,onSelectNavigationMenu:vf,onSelectClassicMenu:gf,onCreateEmpty:te})}):(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(Yw,{clientId:r,createNavigationMenuIsSuccess:Te,createNavigationMenuIsError:Le,currentMenuId:D,isNavigationMenuMissing:xt,isManageMenusButtonDisabled:sp,onCreateNew:te,onSelectClassicMenu:gf,onSelectNavigationMenu:vf,isLoading:Ts,blockEditingMode:K}),K==="default"&&bf,(0,ce.jsx)(Bm.EntityProvider,{kind:"postType",type:"wp_navigation",id:D,children:(0,ce.jsxs)(Qe.RecursionProvider,{uniqueId:F,children:[K==="contentOnly"&&Pe&&(0,ce.jsx)(ake,{clientId:r}),K==="default"&&Pe&&(0,ce.jsxs)(Qe.InspectorControls,{group:"advanced",children:[zo&&jt&&(0,ce.jsx)(CQ,{}),vn&&ut&&(0,ce.jsx)(MQ,{onDelete:()=>{rt(r,[]),ee((0,Dt.__)("Navigation Menu successfully deleted."))}}),(0,ce.jsx)(OX,{disabled:sp,className:"wp-block-navigation-manage-menus-button"})]}),(0,ce.jsxs)(Kn,{...Yn,"aria-describedby":!Rc&&!Ts?lp:void 0,children:[Ts&&!Nu&&(0,ce.jsx)("div",{className:"wp-block-navigation__loading-indicator-container",children:(0,ce.jsx)(Or.Spinner,{className:"wp-block-navigation__loading-indicator"})}),(!Ts||Nu)&&(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(kJ,{id:lp}),(0,ce.jsx)(xD,{id:r,onToggle:Q,hasIcon:E,icon:I,isOpen:fa,isResponsive:hf,isHiddenByDefault:Nu,overlayBackgroundColor:u,overlayTextColor:p,overlay:v,onNavigateToEntityRecord:B,children:Pe&&(0,ce.jsx)(yQ,{clientId:r,hasCustomPlaceholder:!!f,templateLock:_,orientation:S})})]})]})]})})]})}var TJ=(0,Qe.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})(ike);var PJ=a(T(),1),BJ=a(y(),1);function EJ({attributes:e}){if(!e.ref)return(0,BJ.jsx)(PJ.InnerBlocks.Content,{})}var Em=a(T(),1),tg=a(pe(),1);var Im=a(y(),1),ZD={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},rg=({navigationMenuId:e,...t})=>({...t,ref:e}),e3=e=>{if(e.layout)return e;let{itemsJustification:t,orientation:r,...o}=e;return(t||r)&&Object.assign(o,{layout:{type:"flex",...t&&{justifyContent:t},...r&&{orientation:r}}}),o},t3=e=>{let{openSubmenusOnClick:t,...r}=e;return t==null?e:{...r,submenuVisibility:r.submenuVisibility??(t?"click":"hover")}},lke={attributes:{ref:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},icon:{type:"string",default:"handle"},hasIcon:{type:"boolean",default:!0},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"},maxNestingLevel:{type:"number",default:5},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalSkipSerialization:["textDecoration"],__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,allowSizingOnChildren:!0,default:{type:"flex"}},interactivity:!0,renaming:!1},save(){return(0,Im.jsx)(Em.InnerBlocks.Content,{})},isEligible:({openSubmenusOnClick:e})=>e!=null,migrate:t3},ske={attributes:{navigationMenuId:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},overlayMenu:{type:"string",default:"mobile"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},save(){return(0,Im.jsx)(Em.InnerBlocks.Content,{})},isEligible:({navigationMenuId:e})=>!!e,migrate:rg},cke={attributes:{navigationMenuId:{type:"number"},orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save(){return(0,Im.jsx)(Em.InnerBlocks.Content,{})},isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,tg.compose)(rg,e3,t3)},uke={attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save(){return(0,Im.jsx)(Em.InnerBlocks.Content,{})},migrate:(0,tg.compose)(rg,e3,Ut,t3),isEligible({style:e}){return e?.typography?.fontFamily}},mke=function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}},pke=function(e){return{...e,style:{...e.style,typography:Object.fromEntries(Object.entries(e.style.typography??{}).map(([t,r])=>{let o=ZD[t];if(o&&r.startsWith(o)){let n=r.slice(o.length);return t==="textDecoration"&&n==="strikethrough"?[t,"line-through"]:[t,n]}return[t,r]}))}}},dke=[lke,ske,cke,uke,{attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},isResponsive:{type:"boolean",default:"false"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0}},isEligible(e){return e.isResponsive},migrate:(0,tg.compose)(rg,e3,Ut,mke,t3),save(){return(0,Im.jsx)(Em.InnerBlocks.Content,{})}},{attributes:{orientation:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,fontSize:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,color:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},save(){return(0,Im.jsx)(Em.InnerBlocks.Content,{})},isEligible(e){if(!e.style||!e.style.typography)return!1;for(let t in ZD){let r=e.style.typography[t];if(r&&r.startsWith(ZD[t]))return!0}return!1},migrate:(0,tg.compose)(rg,e3,Ut,pke)},{attributes:{className:{type:"string"},textColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean"}},isEligible(e){return e.rgbTextColor||e.rgbBackgroundColor},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},migrate:(0,tg.compose)(rg,e=>{let{rgbTextColor:t,rgbBackgroundColor:r,...o}=e;return{...o,customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor}}),save(){return(0,Im.jsx)(Em.InnerBlocks.Content,{})}}],IJ=dke;var{name:MJ}=sw,AJ={icon:kp,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,r3.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,r3.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,r3.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:TJ,save:EJ,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,NJ.select)(DJ.store).getEditedEntityRecord("postType","wp_navigation",e);if(t?.title)return(0,LJ.decodeEntities)(t.title)},deprecated:IJ},fke=()=>N({name:MJ,metadata:sw,settings:AJ});var QD={};q(QD,{init:()=>wke,metadata:()=>o3,name:()=>WJ,settings:()=>s3});var Nm=a(P(),1);var HJ=a(T(),1),jJ=a(qc(),1),UJ=a(G(),1);var o3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],allowedBlocks:["core/navigation-link","core/navigation-submenu","core/page-list"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string",role:"content"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string",role:"content"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","style"],supports:{anchor:!0,reusable:!1,html:!1,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},renaming:!1,interactivity:{clientNavigation:!0}},selectors:{states:{"@current":".wp-block-navigation .current-menu-item"}},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"};var a3=a(G(),1),eb=a(z(),1),tb=a(A(),1),n3=a(Ls(),1),sl=a(P(),1),aa=a(T(),1),i3=a(ir(),1),nn=a(H(),1);var l3=a(pe(),1);var lr=a(y(),1),gke={name:"core/navigation-link"},vke=["core/navigation-link","core/navigation-submenu"];function bke(e){let t="";switch(e){case"post":t=(0,sl.__)("Select post");break;case"page":t=(0,sl.__)("Select page");break;case"category":t=(0,sl.__)("Select category");break;case"tag":t=(0,sl.__)("Select tag");break;default:t=(0,sl.__)("Add link")}return t}function YD({attributes:e,isSelected:t,setAttributes:r,insertBlocksAfter:o,mergeBlocks:n,onReplace:i,context:l,clientId:s}){let{id:c,label:u,type:m,url:p,description:d,kind:f,metadata:h}=e,{maxNestingLevel:g}=l,{replaceBlock:b,__unstableMarkNextChangeAsNotPersistent:v,selectBlock:x}=(0,eb.useDispatch)(aa.store),[_,k]=(0,nn.useState)(t&&!p),[S,C]=(0,nn.useState)(null),E=(0,nn.useRef)(null),I=Kv(E),D=(0,sl.__)("Add label\u2026"),M=(0,nn.useRef)(),F=(0,nn.useRef)(),R=(0,nn.useRef)(u===void 0),V=(0,nn.useRef)(!1),{isAtMaxNesting:B,isTopLevelLink:j,isParentOfSelectedBlock:U,hasChildren:O,parentBlockClientId:K,isSubmenu:W}=(0,eb.useSelect)(et=>{let{getBlockCount:fa,getBlockName:Q,getBlockRootClientId:Ie,hasSelectedInnerBlock:tt,getBlockParentsByBlockName:Ke}=et(aa.store),Ne=Ie(s),xt=Q(Ne),jt=xt==="core/navigation",zo=jt?Ne:Ke(s,"core/navigation")[0],ut=xt==="core/navigation-submenu"?Ne:zo;return{isAtMaxNesting:Ke(s,vke).length>=g,isTopLevelLink:jt,isParentOfSelectedBlock:tt(s,!0),hasChildren:!!fa(s),parentBlockClientId:ut,isSubmenu:xt==="core/navigation-submenu"}},[s,g]),ee=Zv(s),{getBlocks:oe}=(0,eb.useSelect)(aa.store),{hasUrlBinding:X,isBoundEntityAvailable:J,entityRecord:ne}=Si({clientId:s,attributes:e}),ie=Ov({clientId:s,attributes:e,setAttributes:r}),[ue,fe]=Cd(f,m,c,ee),Oe=(0,nn.useCallback)(()=>{let et=oe(s);et.length===0&&(et=[(0,a3.createBlock)("core/navigation-link")],x(et[0].clientId));let fa=(0,a3.createBlock)("core/navigation-submenu",e,et);b(s,fa)},[oe,s,x,b,e]);(0,nn.useEffect)(()=>{R.current&&t&&x(K)},[]),(0,nn.useEffect)(()=>{O&&(v(),Oe())},[O,v,Oe]),(0,nn.useEffect)(()=>{if(!(!R.current||!p||!_)){if(R.current=!1,(0,i3.isURL)((0,i3.prependHTTP)(u))&&/^.+\.[a-z]+/.test(u))Yv(M);else if(x(s,null),W){let et=oe(K);et.length===1&&et[0].clientId===s&&(V.current=!0)}}},[p,_,R,u]);function ke(){r({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),k(!1)}let{textColor:ae,customTextColor:Te,backgroundColor:Le,customBackgroundColor:te}=vd(l,!j);function He(et){n3.isKeyboardEvent.primary(et,"k")&&(et.preventDefault(),et.stopPropagation(),k(!0))}let st=(0,l3.useInstanceId)(YD),ct=X&&!J,Me=ct?(0,sl.sprintf)("navigation-link-edit-%d-desc",st):void 0,se=(0,aa.useBlockProps)({ref:(0,l3.useMergeRefs)([C,E]),className:w("wp-block-navigation-item",{"is-editing":t||U,"is-dragging-within":I,"has-link":!!p,"has-child":O,"has-text-color":!!ae||!!Te,[(0,aa.getColorClassName)("color",ae)]:!!ae,"has-background":!!Le||te,[(0,aa.getColorClassName)("background-color",Le)]:!!Le}),"aria-describedby":Me,"aria-invalid":ct,style:{color:!ae&&Te,backgroundColor:!Le&&te},onKeyDown:He}),_t=(0,aa.useInnerBlocksProps)({...se,className:"remove-outline"},{defaultBlock:gke,directInsert:!0,renderAppender:!1}),Ve=!p&&!(X&&J)||ue||fe||X&&!J;Ve&&(se.onClick=()=>{k(!0)});let we=w("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":Ve}),rt=bke(m),Ue=Ww();return(0,lr.jsxs)(lr.Fragment,{children:[(0,lr.jsx)(aa.BlockControls,{children:(0,lr.jsxs)(tb.ToolbarGroup,{children:[(0,lr.jsx)(tb.ToolbarButton,{name:"link",icon:ti,title:(0,sl.__)("Link"),shortcut:n3.displayShortcut.primary("k"),onClick:()=>{k(!0)}}),!B&&(0,lr.jsx)(tb.ToolbarButton,{name:"submenu",icon:fp,title:(0,sl.__)("Add submenu"),onClick:Oe})]})}),(0,lr.jsx)(aa.InspectorControls,{group:"content",children:(0,lr.jsx)($v,{attributes:e,setAttributes:r,clientId:s})}),(0,lr.jsxs)("div",{...se,children:[ct&&(0,lr.jsx)(ai,{id:Me,children:Ue}),(0,lr.jsxs)("a",{className:we,children:[!p&&!h?.bindings?.url?(0,lr.jsx)("div",{className:"wp-block-navigation-link__placeholder-text",children:(0,lr.jsx)("span",{children:rt})}):(0,lr.jsxs)(lr.Fragment,{children:[!ue&&!fe&&(0,lr.jsxs)(lr.Fragment,{children:[(0,lr.jsx)(aa.RichText,{ref:M,identifier:"label",className:"wp-block-navigation-item__label",value:u,onChange:et=>r({label:et}),onMerge:n,onReplace:i,__unstableOnSplitAtEnd:()=>o((0,a3.createBlock)("core/navigation-link")),"aria-label":(0,sl.__)("Navigation link text"),placeholder:D,withoutInteractiveFormatting:!0}),d&&(0,lr.jsx)("span",{className:"wp-block-navigation-item__description",children:d})]}),(ue||fe)&&(0,lr.jsx)(qv,{label:u,isInvalid:ue,isDraft:fe,className:"wp-block-navigation-link__label"})]}),_&&(0,lr.jsx)(lu,{ref:F,clientId:s,link:e,entity:{entityRecord:ne,hasBinding:X,isEntityAvailable:J},onClose:()=>{if(k(!1),!p&&!X){i([]);return}if(V.current&&(V.current=!1,E.current?.nextElementSibling)){let et=E.current.nextElementSibling.querySelector(".block-editor-button-block-appender");et&&et.focus()}},anchor:S,onRemove:ke,onChange:ie})]}),(0,lr.jsx)("div",{..._t})]})]})}var RJ=a(T(),1),zJ=a(y(),1);function VJ(){return(0,zJ.jsx)(RJ.InnerBlocks.Content,{})}function yke(e){switch(e){case"post":return r1;case"page":return zc;case"tag":return h1;case"category":return Ou;default:return A9}}function FJ(e,t){if(t!=="core/navigation-link")return e;if(e.variations){let r=(n,i)=>n.type===i.type,o=e.variations.map(n=>({...n,...!n.icon&&{icon:yke(n.name)},...!n.isActive&&{isActive:r}}));return{...e,variations:o}}return e}var na=a(G(),1),_ke={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,na.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,na.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,na.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,na.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,na.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,na.createBlock)("core/navigation-link")},{type:"block",blocks:["core/buttons"],transform:()=>(0,na.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,na.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,na.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,na.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,na.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,na.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,na.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,na.createBlock)("core/page-list")},{type:"block",blocks:["core/buttons"],transform:({label:e,url:t,rel:r,title:o,opensInNewTab:n})=>(0,na.createBlock)("core/buttons",{},[(0,na.createBlock)("core/button",{text:e,url:t,rel:r,title:o,linkTarget:n?"_blank":void 0})])}]},OJ=_ke;var GJ=a(y(),1),{fieldsKey:xke,formKey:kke}=Z(UJ.privateApis),{name:WJ}=o3,s3={icon:M0,__experimentalLabel(e,{context:t}){if(t==="list-view")return e?.label;if(t==="appender"){let r=e?.type||"link";return(0,Nm.sprintf)((0,Nm._x)("Add %s","add default block type"),r)}return e?.label},merge(e,{label:t=""}){return{...e,label:e.label+t}},edit:YD,save:VJ,example:{attributes:{label:(0,Nm._x)("Example Link","navigation link preview example"),url:"https://example.com"}},deprecated:[{isEligible(e){return e.nofollow},attributes:{label:{type:"string"},type:{type:"string"},nofollow:{type:"boolean"},description:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"}},migrate({nofollow:e,...t}){return{rel:e?"nofollow":"",...t}},save(){return(0,GJ.jsx)(HJ.InnerBlocks.Content,{})}}],transforms:OJ};window.__experimentalContentOnlyInspectorFields&&(s3[xke]=[{id:"label",label:(0,Nm.__)("Label"),type:"text",Edit:"rich-text"},{id:"link",label:(0,Nm.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel}),setValue:({value:e})=>({url:e.url,rel:e.rel})}],s3[kke]={fields:["label","link"]});var wke=()=>((0,jJ.addFilter)("blocks.registerBlockType","core/navigation-link",FJ),N({name:WJ,metadata:o3,settings:s3}));var JD={};q(JD,{init:()=>Bke,metadata:()=>c3,name:()=>ree,settings:()=>h3});var ob=a(P(),1),tee=a(G(),1);var c3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string",role:"content"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string",role:"content"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","openSubmenusOnClick","submenuVisibility","style"],supports:{anchor:!0,reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"};var m3=a(z(),1),rb=a(A(),1),p3=a(Ls(),1),og=a(P(),1),Kr=a(T(),1),d3=a(ir(),1),fs=a(H(),1);var ZJ=a(j1(),1),KJ=a(G(),1),f3=a(pe(),1);var u3=a(A(),1),XD=a(y(),1),$J=()=>(0,XD.jsx)(u3.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,XD.jsx)(u3.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var Dr=a(y(),1),qJ=["core/navigation-link","core/navigation-submenu","core/page-list"];function YJ({attributes:e,isSelected:t,setAttributes:r,mergeBlocks:o,onReplace:n,context:i,clientId:l}){let{label:s,url:c,description:u,kind:m,type:p,id:d}=e,{showSubmenuIcon:f,maxNestingLevel:h,submenuVisibility:g}=i,v=(0,Kr.useBlockEditingMode)()!=="default"?!0:g==="click",{clearBinding:x,createBinding:_,hasUrlBinding:k,isBoundEntityAvailable:S,entityRecord:C}=Si({clientId:l,attributes:e}),{__unstableMarkNextChangeAsNotPersistent:E,replaceBlock:I}=(0,m3.useDispatch)(Kr.store),[D,M]=(0,fs.useState)(!1),[F,R]=(0,fs.useState)(null),V=(0,fs.useRef)(null),B=Kv(V),j=(0,og.__)("Add text\u2026"),U=(0,fs.useRef)(),{parentCount:O,isParentOfSelectedBlock:K,isImmediateParentOfSelectedBlock:W,hasChildren:ee,selectedBlockHasChildren:oe,onlyDescendantIsEmptyLink:X}=(0,m3.useSelect)(Ve=>{let{hasSelectedInnerBlock:we,getSelectedBlockClientId:rt,getBlockParentsByBlockName:Ue,getBlock:et,getBlockCount:fa,getBlockOrder:Q}=Ve(Kr.store),Ie,tt=rt(),Ke=Q(tt);if(Ke?.length===1){let Ne=et(Ke[0]);Ie=Ne?.name==="core/navigation-link"&&!Ne?.attributes?.label}return{parentCount:Ue(l,"core/navigation-submenu").length,isParentOfSelectedBlock:we(l,!0),isImmediateParentOfSelectedBlock:we(l,!1),hasChildren:!!fa(l),selectedBlockHasChildren:!!Ke?.length,onlyDescendantIsEmptyLink:Ie}},[l]),J=Zv(l),ne=(0,f3.usePrevious)(ee),[ie,ue]=Cd(m,p,d,J);(0,fs.useEffect)(()=>{!v&&!c&&M(!0)},[]),(0,fs.useEffect)(()=>{t||M(!1)},[t]),(0,fs.useEffect)(()=>{D&&c&&(0,d3.isURL)((0,d3.prependHTTP)(s))&&/^.+\.[a-z]+/.test(s)&&Yv(U)},[c]);let{textColor:fe,customTextColor:Oe,backgroundColor:ke,customBackgroundColor:ae}=vd(i,O>0);function Te(Ve){p3.isKeyboardEvent.primary(Ve,"k")&&(Ve.preventDefault(),Ve.stopPropagation(),M(!0))}let Le=(0,Kr.useBlockProps)({ref:(0,f3.useMergeRefs)([R,V]),className:w("wp-block-navigation-item",{"is-editing":t||K,"is-dragging-within":B,"has-link":!!c,"has-child":ee,"has-text-color":!!fe||!!Oe,[(0,Kr.getColorClassName)("color",fe)]:!!fe,"has-background":!!ke||ae,[(0,Kr.getColorClassName)("background-color",ke)]:!!ke,"open-on-click":v,"open-always":g==="always"}),style:{color:!fe&&Oe,backgroundColor:!ke&&ae},onKeyDown:Te}),te=vd(i,!0),He=O>=h?qJ.filter(Ve=>Ve!=="core/navigation-submenu"):qJ,st=bw(te),ct=(0,Kr.useInnerBlocksProps)(st,{allowedBlocks:He,defaultBlock:ki,directInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:t||W&&!oe||ee?Kr.InnerBlocks.ButtonBlockAppender:!1}),Me=v?"button":"a";function se(){let Ve=(0,KJ.createBlock)("core/navigation-link",e);I(l,Ve)}(0,fs.useEffect)(()=>{!ee&&ne&&(E(),se())},[ee,ne]);let _t=!oe||X;return(0,Dr.jsxs)(Dr.Fragment,{children:[(0,Dr.jsx)(Kr.BlockControls,{children:(0,Dr.jsxs)(rb.ToolbarGroup,{children:[!v&&(0,Dr.jsx)(rb.ToolbarButton,{name:"link",icon:ti,title:(0,og.__)("Link"),shortcut:p3.displayShortcut.primary("k"),onClick:()=>{M(!0)}}),(0,Dr.jsx)(rb.ToolbarButton,{name:"revert",icon:KP,title:(0,og.__)("Convert to Link"),onClick:se,className:"wp-block-navigation__submenu__revert",disabled:!_t})]})}),(0,Dr.jsx)(Kr.InspectorControls,{group:"content",children:(0,Dr.jsx)($v,{attributes:e,setAttributes:r,clientId:l,isLinkEditable:!v})}),(0,Dr.jsxs)("div",{...Le,children:[(0,Dr.jsxs)(Me,{className:"wp-block-navigation-item__content",children:[!ie&&!ue&&(0,Dr.jsxs)(Dr.Fragment,{children:[(0,Dr.jsx)(Kr.RichText,{ref:U,identifier:"label",className:"wp-block-navigation-item__label",value:s,onChange:Ve=>r({label:Ve}),onMerge:o,onReplace:n,"aria-label":(0,og.__)("Navigation link text"),placeholder:j,withoutInteractiveFormatting:!0,onClick:()=>{!v&&!c&&M(!0)}}),u&&(0,Dr.jsx)("span",{className:"wp-block-navigation-item__description",children:u})]}),(ie||ue)&&(0,Dr.jsx)(qv,{label:s,isInvalid:ie,isDraft:ue,className:"wp-block-navigation-item__label"}),!v&&D&&(0,Dr.jsx)(lu,{clientId:l,link:e,entity:{entityRecord:C,hasBinding:k,isEntityAvailable:S},onClose:()=>{M(!1)},anchor:F,onRemove:()=>{r({url:""}),(0,ZJ.speak)((0,og.__)("Link removed."),"assertive")},onChange:Ve=>{let{isEntityLink:we,attributes:rt}=kd(Ve,r,e);we?_(rt):x()}})]}),(f||v)&&(0,Dr.jsx)("span",{className:"wp-block-navigation__submenu-icon",children:(0,Dr.jsx)($J,{})}),(0,Dr.jsx)("div",{...ct})]})]})}var QJ=a(T(),1),XJ=a(y(),1);function JJ(){return(0,XJ.jsx)(QJ.InnerBlocks.Content,{})}var Sd=a(G(),1),Ske={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:e=>(0,Sd.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Sd.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Sd.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Sd.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Sd.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Sd.createBlock)("core/search")}]},eee=Ske;var{fieldsKey:Tke,formKey:Pke}=Z(tee.privateApis),{name:ree}=c3,h3={icon:({context:e})=>e==="list-view"?zc:fp,__experimentalLabel(e,{context:t}){let{label:r}=e,o=e?.metadata?.name;return(t==="list-view"||t==="breadcrumb")&&o?o:r},edit:YJ,example:{attributes:{label:(0,ob._x)("About","Example link text for Navigation Submenu"),type:"page"}},save:JJ,transforms:eee};window.__experimentalContentOnlyInspectorFields&&(h3[Tke]=[{id:"label",label:(0,ob.__)("Label"),type:"text",Edit:"rich-text"},{id:"link",label:(0,ob.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel}),setValue:({value:e})=>({url:e.url,rel:e.rel})}],h3[Pke]={fields:["label","link"]});var Bke=()=>N({name:ree,metadata:c3,settings:h3});var tL={};q(tL,{init:()=>Nke,metadata:()=>g3,name:()=>mee,settings:()=>pee});var oee=a(P(),1),aee=a(T(),1),eL=a(y(),1);function nee(){return(0,eL.jsx)("div",{...(0,aee.useBlockProps)(),children:(0,eL.jsx)("span",{children:(0,oee.__)("Page break")})})}var g3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/nextpage",title:"Page Break",category:"design",description:"Separate your content into a multi-page experience.",keywords:["next page","pagination"],parent:["core/post-content"],textdomain:"default",supports:{customClassName:!1,className:!1,html:!1,visibility:!1,interactivity:{clientNavigation:!0},customCSS:!1},editorStyle:"wp-block-nextpage-editor"};var iee=a(H(),1),lee=a(y(),1);function see(){return(0,lee.jsx)(iee.RawHTML,{children:"<!--nextpage-->"})}var cee=a(G(),1),Ike={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&e.dataset.block==="core/nextpage",transform(){return(0,cee.createBlock)("core/nextpage",{})}}]},uee=Ike;var{name:mee}=g3,pee={icon:tP,example:{},transforms:uee,edit:nee,save:see},Nke=()=>N({name:mee,metadata:g3,settings:pee});var oL={};q(oL,{init:()=>Lke,metadata:()=>v3,name:()=>gee,settings:()=>vee});var hee=a(qc(),1);var ag=a(T(),1),cc=a(A(),1),su=a(P(),1);var ln=a(y(),1);function dee({attributes:e,setAttributes:t}){let{displayMode:r,text:o}=e,n=r==="icon"||r==="both",i=r==="text"||r==="both",l=o||(0,su.__)("Close"),s=(0,ag.useBlockProps)({className:"wp-block-navigation-overlay-close"}),c=$();return(0,ln.jsxs)(ln.Fragment,{children:[(0,ln.jsx)(ag.InspectorControls,{children:(0,ln.jsx)(cc.__experimentalToolsPanel,{label:(0,su.__)("Settings"),resetAll:()=>t({displayMode:"icon"}),dropdownMenuProps:c,children:(0,ln.jsx)(cc.__experimentalToolsPanelItem,{label:(0,su.__)("Display Mode"),isShownByDefault:!0,hasValue:()=>r!=="icon",onDeselect:()=>t({displayMode:"icon"}),children:(0,ln.jsxs)(cc.__experimentalToggleGroupControl,{label:(0,su.__)("Display Mode"),value:r,onChange:u=>t({displayMode:u}),isBlock:!0,__next40pxDefaultSize:!0,children:[(0,ln.jsx)(cc.__experimentalToggleGroupControlOption,{value:"icon",label:(0,su.__)("Icon")}),(0,ln.jsx)(cc.__experimentalToggleGroupControlOption,{value:"text",label:(0,su.__)("Text")}),(0,ln.jsx)(cc.__experimentalToggleGroupControlOption,{value:"both",label:(0,su.__)("Both")})]})})})}),(0,ln.jsxs)("button",{...s,type:"button","aria-label":i?void 0:(0,su.__)("Close"),children:[n&&(0,ln.jsx)(Ua,{icon:hp}),i&&(0,ln.jsx)(ag.RichText,{identifier:"text",value:l,onChange:u=>t({text:u}),tagName:"span",className:"wp-block-navigation-overlay-close__text",allowedFormats:["core/bold","core/italic"]})]})]})}var v3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-overlay-close",title:"Navigation Overlay Close",category:"design",description:"A customizable button to close overlays.",keywords:["close","overlay","navigation","menu"],textdomain:"default",attributes:{displayMode:{type:"string",enum:["icon","text","both"],default:"icon"},text:{type:"string"}},supports:{color:{gradients:!1,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-navigation-overlay-close"};var b3=a(L(),1),rL=a(y(),1),fee=(0,rL.jsx)(b3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,rL.jsx)(b3.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2Zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12ZM15 8l-3 3-3-3-1.1 1.1 3 3-3 3L9 16.2l3-3 3 3 1.1-1.1-3-3 3-3L15 8Z"})});var{name:gee}=v3,vee={icon:fee,edit:dee},Lke=()=>((0,hee.addFilter)("blockEditor.__unstableCanInsertBlockType","core/navigation-overlay-close/restrict-to-overlay-template-parts",(e,t)=>t.name!=="core/navigation-overlay-close"||!e?e:Jv()),N({name:gee,metadata:v3,settings:vee}));var nL={};q(nL,{init:()=>Vke,metadata:()=>y3,name:()=>Cee,settings:()=>See});var y3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pattern",title:"Pattern Placeholder",category:"theme",description:"Show a block pattern.",supports:{html:!1,inserter:!1,renaming:!1,visibility:!1,interactivity:{clientNavigation:!0}},textdomain:"default",attributes:{slug:{type:"string"}}};var xee=a(G(),1),Dm=a(z(),1),x3=a(H(),1),Lm=a(T(),1),kee=a(Y(),1),k3=a(P(),1);var bee=a(z(),1),aL=new WeakMap;function yee(){let e=(0,bee.useRegistry)();if(!aL.has(e)){let t=new Map;aL.set(e,Ake.bind(null,t))}return aL.get(e)}function Ake(e,{name:t,blocks:r}){let o=[...r];for(;o.length;){let n=o.shift();for(let i of n.innerBlocks??[])o.unshift(i);n.name==="core/pattern"&&Rke(e,t,n.attributes.slug)}}function Rke(e,t,r){if(e.has(t)||e.set(t,new Set),e.get(t).add(r),_ee(e,t))throw new TypeError(`Pattern ${t} has a circular dependency and cannot be rendered.`)}function _ee(e,t,r=new Set,o=new Set){r.add(t),o.add(t);let n=e.get(t)??new Set;for(let i of n)if(r.has(i)){if(o.has(i))return!0}else if(_ee(e,i,r,o))return!0;return o.delete(t),!1}var _3=a(y(),1),zke=({attributes:e,clientId:t})=>{let r=(0,Dm.useRegistry)(),o=(0,Dm.useSelect)(g=>g(Lm.store).__experimentalGetParsedPattern(e.slug),[e.slug]),n=(0,Dm.useSelect)(g=>g(kee.store).getCurrentTheme()?.stylesheet,[]),{replaceBlocks:i,setBlockEditingMode:l,__unstableMarkNextChangeAsNotPersistent:s}=(0,Dm.useDispatch)(Lm.store),{getBlockRootClientId:c,getBlockEditingMode:u}=(0,Dm.useSelect)(Lm.store),[m,p]=(0,x3.useState)(!1),d=yee();function f(g){return g.innerBlocks.find(b=>b.name==="core/template-part")&&(g.innerBlocks=g.innerBlocks.map(b=>(b.name==="core/template-part"&&b.attributes.theme===void 0&&(b.attributes.theme=n),b))),g.name==="core/template-part"&&g.attributes.theme===void 0&&(g.attributes.theme=n),g}(0,x3.useEffect)(()=>{if(!m&&o?.blocks){try{d(o)}catch{p(!0);return}window.queueMicrotask(()=>{let g=c(t),b=o.blocks.map(x=>(0,xee.cloneBlock)(f(x)));b.length===1&&o.categories?.length>0&&(b[0].attributes={...b[0].attributes,metadata:{...b[0].attributes.metadata,categories:o.categories,patternName:o.name,name:b[0].attributes.metadata.name||o.title}});let v=u(g);r.batch(()=>{s(),l(g,"default"),s(),i(t,b),s(),l(g,v)})})}},[t,m,o,s,i,u,l,c]);let h=(0,Lm.useBlockProps)();return m?(0,_3.jsx)("div",{...h,children:(0,_3.jsx)(Lm.Warning,{children:(0,k3.sprintf)((0,k3.__)('Pattern "%s" cannot be rendered inside itself.'),o?.name)})}):(0,_3.jsx)("div",{...h})},wee=zke;var{name:Cee}=y3,See={edit:wee},Vke=()=>N({name:Cee,metadata:y3,settings:See});var cL={};q(cL,{init:()=>Uke,metadata:()=>w3,name:()=>Aee,settings:()=>Ree});var w3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list",title:"Page List",category:"widgets",allowedBlocks:["core/page-list-item"],description:"Display a list of all pages.",keywords:["menu","navigation"],textdomain:"default",attributes:{parentPageID:{type:"integer",default:0},isNested:{type:"boolean",default:!1}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick","submenuVisibility"],supports:{anchor:!0,reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},color:{text:!0,background:!0,link:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},spacing:{padding:!0,margin:!0,__experimentalDefaultControls:{padding:!1,margin:!1}},contentRole:!0},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"};var Dee=a(G(),1),La=a(T(),1),Da=a(A(),1),Na=a(P(),1),hs=a(H(),1),Lee=a(Y(),1),S3=a(z(),1);var iL=a(G(),1),Tee=a(z(),1),Pee=a(T(),1);function Oke(e=[]){let t="post-type",r={},o=[];return e.forEach(({id:n,title:i,link:l,type:s,parent:c})=>{let u=r[n]?.innerBlocks??[];r[n]=(0,iL.createBlock)("core/navigation-link",{id:n,label:i.rendered,url:l,type:s,kind:t,metadata:{bindings:Yh(t)}},u),c?(r[c]||(r[c]={innerBlocks:[]}),r[c].innerBlocks.push(r[n])):o.push(r[n])}),o}function Bee(e,t){for(let r of e){if(r.attributes.id===t)return r;if(r.innerBlocks&&r.innerBlocks.length){let o=Bee(r.innerBlocks,t);if(o)return o}}return null}function Hke(e=[],t=null){let r=Oke(e);if(t){let n=Bee(r,t);n&&n.innerBlocks&&(r=n.innerBlocks)}let o=n=>{n.forEach((i,l,s)=>{let{attributes:c,innerBlocks:u}=i;if(u.length!==0){o(u);let m=(0,iL.createBlock)("core/navigation-submenu",c,u);s[l]=m}})};return o(r),r}function Eee({clientId:e,pages:t,parentClientId:r,parentPageID:o}){let{replaceBlock:n,selectBlock:i}=(0,Tee.useDispatch)(Pee.store);return()=>{let l=Hke(t,o);n(e,l),i(r)}}var nb=a(A(),1),lL=a(pe(),1),ab=a(P(),1),Td=a(y(),1),sL=(0,ab.__)("This Navigation Menu displays your website's pages. Editing it will enable you to add, delete, or reorder pages. However, new pages will no longer be added automatically.");function C3({onClick:e,onClose:t,disabled:r}){return(0,Td.jsxs)(nb.Modal,{onRequestClose:t,title:(0,ab.__)("Edit Page List"),className:"wp-block-page-list-modal",aria:{describedby:(0,lL.useInstanceId)(C3,"wp-block-page-list-modal__description")},children:[(0,Td.jsx)("p",{id:(0,lL.useInstanceId)(C3,"wp-block-page-list-modal__description"),children:sL}),(0,Td.jsxs)("div",{className:"wp-block-page-list-modal-buttons",children:[(0,Td.jsx)(nb.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,ab.__)("Cancel")}),(0,Td.jsx)(nb.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:r,onClick:e,children:(0,ab.__)("Edit")})]})]})}var Et=a(y(),1),Iee=100,Nee=()=>{};function jke({blockProps:e,innerBlocksProps:t,hasResolvedPages:r,blockList:o,pages:n,parentPageID:i}){if(!r)return(0,Et.jsx)("div",{...e,children:(0,Et.jsx)("div",{className:"wp-block-page-list__loading-indicator-container",children:(0,Et.jsx)(Da.Spinner,{className:"wp-block-page-list__loading-indicator"})})});if(n===null)return(0,Et.jsx)("div",{...e,children:(0,Et.jsx)(Da.Notice,{status:"warning",isDismissible:!1,children:(0,Na.__)("Page List: Cannot retrieve Pages.")})});if(n.length===0)return(0,Et.jsx)("div",{...e,children:(0,Et.jsx)(Da.Notice,{status:"info",isDismissible:!1,children:(0,Na.__)("Page List: Cannot retrieve Pages.")})});if(o.length===0){let l=n.find(s=>s.id===i);return l?.title?.rendered?(0,Et.jsx)("div",{...e,children:(0,Et.jsx)(La.Warning,{children:(0,Na.sprintf)((0,Na.__)('Page List: "%s" page has no children.'),l.title.rendered)})}):(0,Et.jsx)("div",{...e,children:(0,Et.jsx)(Da.Notice,{status:"warning",isDismissible:!1,children:(0,Na.__)("Page List: Cannot retrieve Pages.")})})}if(n.length>0)return(0,Et.jsx)("ul",{...t})}function Mee({context:e,clientId:t,attributes:r,setAttributes:o}){let{parentPageID:n}=r,[i,l]=(0,hs.useState)(!1),s=(0,hs.useCallback)(()=>l(!0),[]),c=()=>l(!1),u=$(),{records:m,hasResolved:p}=(0,Lee.useEntityRecords)("postType","page",{per_page:Iee,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),d="showSubmenuIcon"in e&&m?.length>0&&m?.length<=Iee,f=(0,hs.useMemo)(()=>m===null?new Map:m.sort((M,F)=>M.menu_order===F.menu_order?M.title.rendered.localeCompare(F.title.rendered):M.menu_order-F.menu_order).reduce((M,F)=>{let{parent:R}=F;return M.has(R)?M.get(R).push(F):M.set(R,[F]),M},new Map),[m]),h=(0,La.useBlockProps)({className:w("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,La.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,La.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor,"open-on-click":e.submenuVisibility==="click","open-always":e.submenuVisibility==="always"}),style:{...e.style?.color}}),g=(0,hs.useMemo)(function D(M=0,F=0){let R=f.get(M);return R?.length?R.reduce((V,B)=>{let j=f.has(B.id),U={value:B.id,label:"\u2014 ".repeat(F)+B.title.rendered,rawName:B.title.rendered};return V.push(U),j&&V.push(...D(B.id,F+1)),V},[]):[]},[f]),b=(0,hs.useMemo)(function D(M=n){let F=f.get(M);return F?.length?F.reduce((R,V)=>{let B=f.has(V.id),j={id:V.id,label:V.title?.rendered?.trim()!==""?V.title?.rendered:(0,Na.__)("(no title)"),title:V.title?.rendered?.trim()!==""?V.title?.rendered:(0,Na.__)("(no title)"),link:V.url,hasChildren:B},U=null,O=D(V.id);return U=(0,Dee.createBlock)("core/page-list-item",j,O),R.push(U),R},[]):[]},[f,n]),{isNested:v,hasSelectedChild:x,parentClientId:_,hasDraggedChild:k,isChildOfNavigation:S}=(0,S3.useSelect)(D=>{let{getBlockParentsByBlockName:M,hasSelectedInnerBlock:F,hasDraggedInnerBlock:R}=D(La.store),V=M(t,"core/navigation-submenu",!0),B=M(t,"core/navigation",!0);return{isNested:V.length>0,isChildOfNavigation:B.length>0,hasSelectedChild:F(t,!0),hasDraggedChild:R(t,!0),parentClientId:B[0]}},[t]),C=Eee({clientId:t,pages:m,parentClientId:_,parentPageID:n}),E=(0,La.useInnerBlocksProps)(h,{renderAppender:!1,__unstableDisableDropZone:!0,templateLock:S?!1:"all",onInput:Nee,onChange:Nee,value:b}),{selectBlock:I}=(0,S3.useDispatch)(La.store);return(0,hs.useEffect)(()=>{(x||k)&&(s(),I(_))},[x,k,_,I,s]),(0,hs.useEffect)(()=>{o({isNested:v})},[v,o]),(0,Et.jsxs)(Et.Fragment,{children:[(g.length>0||d)&&(0,Et.jsx)(La.InspectorControls,{children:(0,Et.jsxs)(Da.__experimentalToolsPanel,{label:(0,Na.__)("Settings"),resetAll:()=>{o({parentPageID:0})},dropdownMenuProps:u,children:[g.length>0&&(0,Et.jsx)(Da.__experimentalToolsPanelItem,{label:(0,Na.__)("Parent Page"),hasValue:()=>n!==0,onDeselect:()=>o({parentPageID:0}),isShownByDefault:!0,children:(0,Et.jsx)(Da.ComboboxControl,{__next40pxDefaultSize:!0,className:"editor-page-attributes__parent",label:(0,Na.__)("Parent"),value:n,options:g,onChange:D=>o({parentPageID:D??0}),help:(0,Na.__)("Choose a page to show only its subpages.")})}),d&&(0,Et.jsxs)("div",{style:{gridColumn:"1 / -1"},children:[(0,Et.jsx)("p",{children:sL}),(0,Et.jsx)(Da.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:!p,onClick:C,children:(0,Na.__)("Edit")})]})]})}),d&&(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsx)(La.BlockControls,{group:"other",children:(0,Et.jsx)(Da.ToolbarButton,{title:(0,Na.__)("Edit"),onClick:s,children:(0,Na.__)("Edit")})}),i&&(0,Et.jsx)(C3,{onClick:C,onClose:c,disabled:!p})]}),(0,Et.jsx)(jke,{blockProps:h,innerBlocksProps:E,hasResolvedPages:p,blockList:b,pages:m,parentPageID:n})]})}var{name:Aee}=w3,Ree={icon:rP,example:{},edit:Mee},Uke=()=>N({name:Aee,metadata:w3,settings:Ree});var fL={};q(fL,{init:()=>$ke,metadata:()=>T3,name:()=>Fee,settings:()=>Oee});var T3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list-item",title:"Page List Item",category:"widgets",parent:["core/page-list"],description:"Displays a page inside a list of all pages.",keywords:["page","menu","navigation"],textdomain:"default",attributes:{id:{type:"number"},label:{type:"string"},title:{type:"string"},link:{type:"string"},hasChildren:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick","submenuVisibility"],supports:{anchor:!0,reusable:!1,html:!1,lock:!1,inserter:!1,__experimentalToolbar:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"};var B3=a(T(),1),zee=a(z(),1),pL=a(Y(),1),dL=a(Jn(),1);var P3=a(A(),1),uL=a(y(),1),mL=()=>(0,uL.jsx)(P3.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,uL.jsx)(P3.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var sn=a(y(),1);function Wke(){return(0,zee.useSelect)(e=>{if(!e(pL.store).canUser("read",{kind:"root",name:"site"}))return;let r=e(pL.store).getEntityRecord("root","site");return r?.show_on_front==="page"&&r?.page_on_front},[])}function Vee({context:e,attributes:t}){let{id:r,label:o,link:n,hasChildren:i,title:l}=t,s="showSubmenuIcon"in e,c=Wke(),u=e.submenuVisibility,m=u==="click",p=vd(e,!0),d=bw(p),f=(0,B3.useBlockProps)(d,{className:"wp-block-pages-list__item"}),h=(0,B3.useInnerBlocksProps)(f);return(0,sn.jsxs)("li",{className:w("wp-block-pages-list__item",{"has-child":i,"wp-block-navigation-item":s,"open-on-click":m,"open-always":u==="always","open-on-hover-click":u==="hover"&&e.showSubmenuIcon,"menu-item-home":r===c}),children:[i&&m?(0,sn.jsxs)(sn.Fragment,{children:[(0,sn.jsx)("button",{type:"button",className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false",dangerouslySetInnerHTML:{__html:(0,dL.safeHTML)(o)}}),(0,sn.jsx)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon",children:(0,sn.jsx)(mL,{})})]}):(0,sn.jsx)("a",{className:w("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":s}),href:n,dangerouslySetInnerHTML:{__html:(0,dL.safeHTML)(l)}}),i&&(0,sn.jsxs)(sn.Fragment,{children:[!m&&e.showSubmenuIcon&&(0,sn.jsx)("button",{className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon","aria-expanded":"false",type:"button",children:(0,sn.jsx)(mL,{})}),(0,sn.jsx)("ul",{...h})]})]},r)}var{name:Fee}=T3,Oee={__experimentalLabel:({label:e})=>e,icon:zc,example:{},edit:Vee},$ke=()=>N({name:Fee,metadata:T3,settings:Oee});var _L={};q(_L,{init:()=>t5e,metadata:()=>cg,name:()=>A3,settings:()=>M3});var L3=a(P(),1);var ate=a(G(),1);var Hee=a(H(),1),po=a(T(),1),hL=a(P(),1),uc=a(y(),1),ng={className:!1},gL={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},fontSize:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]},style:{type:"object"}},E3=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;let t={};(e.customTextColor||e.customBackgroundColor)&&(t.color={}),e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customFontSize&&(t.typography={fontSize:e.customFontSize});let{customTextColor:r,customBackgroundColor:o,customFontSize:n,...i}=e;return{...i,style:t}},ig=e=>{let{align:t,...r}=e;return t?{...r,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e},{style:nXe,...ib}=gL,qke=[{supports:{className:!1,typography:{fontSize:!0}},attributes:gL,isEligible(e){return!!e.align||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save({attributes:e}){let{align:t,content:r,dropCap:o,direction:n}=e,i=w({"has-drop-cap":t===((0,hL.isRTL)()?"left":"right")||t==="center"?!1:o,[`has-text-align-${t}`]:t});return(0,uc.jsx)("p",{...po.useBlockProps.save({className:i,dir:n}),children:(0,uc.jsx)(po.RichText.Content,{value:r})})},migrate:ig},{supports:ng,attributes:{...ib,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:ig,save({attributes:e}){let{align:t,content:r,dropCap:o,direction:n}=e,i=w({"has-drop-cap":t===((0,hL.isRTL)()?"left":"right")||t==="center"?!1:o,[`has-text-align-${t}`]:t});return(0,uc.jsx)("p",{...po.useBlockProps.save({className:i,dir:n}),children:(0,uc.jsx)(po.RichText.Content,{value:r})})}},{supports:ng,attributes:{...ib,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return E3(ig(e))},save({attributes:e}){let{align:t,content:r,dropCap:o,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s,fontSize:c,customFontSize:u,direction:m}=e,p=(0,po.getColorClassName)("color",i),d=(0,po.getColorClassName)("background-color",n),f=(0,po.getFontSizeClass)(c),h=w({"has-text-color":i||s,"has-background":n||l,"has-drop-cap":o,[`has-text-align-${t}`]:t,[f]:f,[p]:p,[d]:d}),g={backgroundColor:d?void 0:l,color:p?void 0:s,fontSize:f?void 0:u};return(0,uc.jsx)(po.RichText.Content,{tagName:"p",style:g,className:h||void 0,value:r,dir:m})}},{supports:ng,attributes:{...ib,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return E3(ig(e))},save({attributes:e}){let{align:t,content:r,dropCap:o,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s,fontSize:c,customFontSize:u,direction:m}=e,p=(0,po.getColorClassName)("color",i),d=(0,po.getColorClassName)("background-color",n),f=(0,po.getFontSizeClass)(c),h=w({"has-text-color":i||s,"has-background":n||l,"has-drop-cap":o,[f]:f,[p]:p,[d]:d}),g={backgroundColor:d?void 0:l,color:p?void 0:s,fontSize:f?void 0:u,textAlign:t};return(0,uc.jsx)(po.RichText.Content,{tagName:"p",style:g,className:h||void 0,value:r,dir:m})}},{supports:ng,attributes:{...ib,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate(e){return E3(ig(e))},save({attributes:e}){let{width:t,align:r,content:o,dropCap:n,backgroundColor:i,textColor:l,customBackgroundColor:s,customTextColor:c,fontSize:u,customFontSize:m}=e,p=(0,po.getColorClassName)("color",l),d=(0,po.getColorClassName)("background-color",i),f=u&&`is-${u}-text`,h=w({[`align${t}`]:t,"has-background":i||s,"has-drop-cap":n,[f]:f,[p]:p,[d]:d}),g={backgroundColor:d?void 0:s,color:p?void 0:c,fontSize:f?void 0:m,textAlign:r};return(0,uc.jsx)(po.RichText.Content,{tagName:"p",style:g,className:h||void 0,value:o})}},{supports:ng,attributes:{...ib,fontSize:{type:"number"}},save({attributes:e}){let{width:t,align:r,content:o,dropCap:n,backgroundColor:i,textColor:l,fontSize:s}=e,c=w({[`align${t}`]:t,"has-background":i,"has-drop-cap":n});return(0,uc.jsx)("p",{style:{backgroundColor:i,color:l,fontSize:s,textAlign:r},className:c||void 0,children:o})},migrate(e){return E3(ig({...e,customFontSize:Number.isFinite(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&e.textColor[0]==="#"?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&e.backgroundColor[0]==="#"?e.backgroundColor:void 0}))}},{supports:ng,attributes:{...gL,content:{type:"string",source:"html",default:""}},save({attributes:e}){return(0,uc.jsx)(Hee.RawHTML,{children:e.content})},migrate:e=>e}],jee=qke;var zn=a(P(),1),sg=a(A(),1),Vn=a(T(),1),Xee=a(G(),1);var Uee=a(H(),1),Gee=a(pe(),1),Wee=a(Ls(),1),lg=a(z(),1),vL=a(T(),1),cu=a(G(),1);function $ee(e){let{batch:t}=(0,lg.useRegistry)(),{moveBlocksToPosition:r,replaceBlocks:o,selectionChange:n}=(0,lg.useDispatch)(vL.store),{getBlockRootClientId:i,getBlockIndex:l,getBlockOrder:s,getBlockName:c,getBlock:u,canInsertBlockType:m}=(0,lg.useSelect)(vL.store),p=(0,Uee.useRef)(e);return p.current=e,(0,Gee.useRefEffect)(d=>{function f(h){if(h.defaultPrevented||h.keyCode!==Wee.ENTER)return;let{content:g,clientId:b}=p.current;if(g.length)return;let v=i(b);if(!(0,cu.hasBlockSupport)(c(v),"__experimentalOnEnter",!1))return;let x=s(v),_=x.indexOf(b);if(_===x.length-1){let F=v;for(;!m(c(b),i(F));)F=i(F);typeof F=="string"&&(h.preventDefault(),r([b],v,i(F),l(F)+1));return}let k=(0,cu.getDefaultBlockName)(),S=c(v),C=i(v);if(!m(k,C)||!m(S,C))return;h.preventDefault();let E=u(v),I=(0,cu.cloneBlock)({...E,innerBlocks:E.innerBlocks.slice(0,_)}),D=(0,cu.createBlock)(k),M=(0,cu.cloneBlock)({...E,innerBlocks:E.innerBlocks.slice(_+1)});t(()=>{o(v,[I,D,M]),n(D.clientId)})}return d.addEventListener("keydown",f),()=>{d.removeEventListener("keydown",f)}},[])}var qee=a(pe(),1),I3=a(H(),1),Zee=a(Rf(),1),Kee=a(z(),1),Yee=a(T(),1);function Qee(e,t,r){let{__unstableMarkNextChangeAsNotPersistent:o}=(0,Kee.useDispatch)(Yee.store),n=(0,qee.useEvent)(()=>{(0,Zee.default)("align attribute in paragraph block",{alternative:"style.typography.textAlign",since:"7.0"}),o(),r({style:{...t,typography:{...t?.typography,textAlign:e}}})}),i=(0,I3.useRef)();(0,I3.useEffect)(()=>{e==="full"||e==="wide"||e===i.current||(i.current=e,n())},[e,n])}var Bi=a(y(),1);function Zke({direction:e,setDirection:t}){return(0,zn.isRTL)()&&(0,Bi.jsx)(sg.ToolbarButton,{icon:Q9,title:(0,zn._x)("Left to right","editor button"),isActive:e==="ltr",onClick:()=>{t(e==="ltr"?void 0:"ltr")}})}function bL(e){return e===((0,zn.isRTL)()?"left":"right")||e==="center"}function Kke({clientId:e,attributes:t,setAttributes:r,name:o}){let[n]=(0,Vn.useSettings)("typography.dropCap");if(!n)return null;let{style:i,dropCap:l}=t,s=i?.typography?.textAlign,c;bL(s)?c=(0,zn.__)("Not available for aligned text."):l?c=(0,zn.__)("Showing large initial letter."):c=(0,zn.__)("Show a large initial letter.");let u=(0,Xee.getBlockSupport)(o,"typography.defaultControls.dropCap",!1);return(0,Bi.jsx)(Vn.InspectorControls,{group:"typography",children:(0,Bi.jsx)(sg.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,zn.__)("Drop cap"),isShownByDefault:u,onDeselect:()=>r({dropCap:!1}),resetAllFilter:()=>({dropCap:!1}),panelId:e,children:(0,Bi.jsx)(sg.ToggleControl,{label:(0,zn.__)("Drop cap"),checked:!!l,onChange:()=>r({dropCap:!l}),help:c,disabled:bL(s)})})})}function Yke({attributes:e,mergeBlocks:t,onReplace:r,onRemove:o,setAttributes:n,clientId:i,isSelected:l,name:s}){let{content:c,direction:u,dropCap:m,placeholder:p,style:d}=e,f=d?.typography?.textAlign;Qee(e.align,d,n);let h=(0,Vn.useBlockProps)({ref:$ee({clientId:i,content:c}),className:w({"has-drop-cap":bL(f)?!1:m}),style:{direction:u}}),g=(0,Vn.useBlockEditingMode)();return(0,Bi.jsxs)(Bi.Fragment,{children:[g==="default"&&(0,Bi.jsx)(Vn.BlockControls,{group:"block",children:(0,Bi.jsx)(Zke,{direction:u,setDirection:b=>n({direction:b})})}),l&&(0,Bi.jsx)(Kke,{name:s,clientId:i,attributes:e,setAttributes:n}),(0,Bi.jsx)(Vn.RichText,{identifier:"content",tagName:"p",...h,value:c,onChange:b=>n({content:b}),onMerge:t,onReplace:r,onRemove:o,"aria-label":Vn.RichText.isEmpty(c)?(0,zn.__)("Empty block; start writing or type forward slash to choose a block"):(0,zn.__)("Block: Paragraph"),"data-empty":Vn.RichText.isEmpty(c),placeholder:p||(0,zn.__)("Type / to choose a block"),"data-custom-placeholder":p?!0:void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})]})}var Jee=Yke;var cg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"p",role:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{align:["wide","full"],splitting:!0,anchor:!0,className:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,textColumns:!0,textIndent:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalWritingMode:!0,fitText:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0,interactivity:{clientNavigation:!0}},selectors:{root:"p",typography:{textIndent:".wp-block-paragraph + .wp-block-paragraph"}},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"};var N3=a(T(),1),ete=a(P(),1),yL=a(y(),1);function tte({attributes:e}){let{content:t,dropCap:r,direction:o,style:n}=e,i=n?.typography?.textAlign,l=w({"has-drop-cap":i===((0,ete.isRTL)()?"left":"right")||i==="center"?!1:r});return(0,yL.jsx)("p",{...N3.useBlockProps.save({className:l,dir:o}),children:(0,yL.jsx)(N3.RichText.Content,{value:t})})}var D3=a(G(),1);var{name:rte}=cg,Xke={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){let t=(0,D3.getBlockAttributes)(rte,e.outerHTML),{textAlign:r}=e.style||{};return(r==="left"||r==="center"||r==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:r}}),(0,D3.createBlock)(rte,t)}}]},ote=Xke;var{fieldsKey:Jke,formKey:e5e}=Z(ate.privateApis),{name:A3}=cg,M3={icon:aP,example:{attributes:{content:(0,L3.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}},__experimentalLabel(e,{context:t}){let r=e?.metadata?.name;if((t==="list-view"||t==="breadcrumb")&&r)return r;if(t==="accessibility"){if(r)return r;let{content:o}=e;return!o||o.length===0?(0,L3.__)("Empty"):o}},transforms:ote,deprecated:jee,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:Jee,save:tte};window.__experimentalContentOnlyInspectorFields&&(M3[Jke]=[{id:"content",label:(0,L3.__)("Content"),type:"text",Edit:"rich-text"}],M3[e5e]={fields:["content"]});var t5e=()=>N({name:A3,metadata:cg,settings:M3});var SL={};q(SL,{init:()=>M5e,metadata:()=>R3,name:()=>kte,settings:()=>wte});var R3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/playlist",title:"Playlist",category:"media",description:"Embed a simple playlist.",keywords:["music","sound"],textdomain:"default",allowedBlocks:["core/playlist-track"],attributes:{currentTrack:{type:"string"},type:{type:"string",default:"audio"},order:{type:"string",default:"asc"},showTracklist:{type:"boolean",default:!0},showImages:{type:"boolean",default:!0},showArtists:{type:"boolean",default:!0},showNumbers:{type:"boolean",default:!0},caption:{type:"string"}},providesContext:{showArtists:"showArtists",currentTrack:"currentTrack"},supports:{anchor:!0,align:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},interactivity:!0,spacing:{margin:!0,padding:!0}},editorStyle:"wp-block-playlist-editor",style:"wp-block-playlist"};var ia=[];for(let e=0;e<256;++e)ia.push((e+256).toString(16).slice(1));function nte(e,t=0){return(ia[e[t+0]]+ia[e[t+1]]+ia[e[t+2]]+ia[e[t+3]]+"-"+ia[e[t+4]]+ia[e[t+5]]+"-"+ia[e[t+6]]+ia[e[t+7]]+"-"+ia[e[t+8]]+ia[e[t+9]]+"-"+ia[e[t+10]]+ia[e[t+11]]+ia[e[t+12]]+ia[e[t+13]]+ia[e[t+14]]+ia[e[t+15]]).toLowerCase()}var o5e=new Uint8Array(16);function xL(){return crypto.getRandomValues(o5e)}function a5e(e,t,r){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():n5e(e,t,r)}function n5e(e,t,r){e=e||{};let o=e.random??e.rng?.()??xL();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t){if(r=r||0,r<0||r+16>t.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let n=0;n<16;++n)t[r+n]=o[n];return t}return nte(o)}var uu=a5e;var Pd=a(H(),1),Hr=a(T(),1),la=a(A(),1),Bd=a(z(),1),bte=a(yr(),1),Do=a(P(),1);var yte=a(G(),1);var pte=a(H(),1),dte=a(pe(),1);function i5e(e){let t={};if(e.dataset.url&&(t.url=e.dataset.url),e.dataset.height&&(t.height=parseInt(e.dataset.height)),e.dataset.samples&&(t.samples=parseInt(e.dataset.samples)),e.dataset.preload&&(t.preload=e.dataset.preload),e.dataset.waveformStyle&&(t.waveformStyle=e.dataset.waveformStyle),e.dataset.barWidth&&(t.barWidth=parseInt(e.dataset.barWidth)),e.dataset.barSpacing&&(t.barSpacing=parseInt(e.dataset.barSpacing)),e.dataset.buttonAlign&&(t.buttonAlign=e.dataset.buttonAlign),e.dataset.colorPreset&&(t.colorPreset=e.dataset.colorPreset),e.dataset.waveformColor&&(t.waveformColor=e.dataset.waveformColor),e.dataset.progressColor&&(t.progressColor=e.dataset.progressColor),e.dataset.buttonColor&&(t.buttonColor=e.dataset.buttonColor),e.dataset.buttonHoverColor&&(t.buttonHoverColor=e.dataset.buttonHoverColor),e.dataset.textColor&&(t.textColor=e.dataset.textColor),e.dataset.textSecondaryColor&&(t.textSecondaryColor=e.dataset.textSecondaryColor),e.dataset.backgroundColor&&(t.backgroundColor=e.dataset.backgroundColor),e.dataset.borderColor&&(t.borderColor=e.dataset.borderColor),e.dataset.color&&(t.waveformColor=e.dataset.color),e.dataset.theme&&(t.colorPreset=e.dataset.theme),e.dataset.autoplay&&(t.autoplay=e.dataset.autoplay==="true"),e.dataset.showTime&&(t.showTime=e.dataset.showTime==="true"),e.dataset.showHoverTime&&(t.showHoverTime=e.dataset.showHoverTime==="true"),e.dataset.showBpm&&(t.showBPM=e.dataset.showBpm==="true"),e.dataset.singlePlay&&(t.singlePlay=e.dataset.singlePlay==="true"),e.dataset.playOnSeek&&(t.playOnSeek=e.dataset.playOnSeek==="true"),e.dataset.title&&(t.title=e.dataset.title),e.dataset.subtitle&&(t.subtitle=e.dataset.subtitle),e.dataset.album&&(t.album=e.dataset.album),e.dataset.artwork&&(t.artwork=e.dataset.artwork),e.dataset.waveform&&(t.waveform=e.dataset.waveform),e.dataset.markers)try{t.markers=JSON.parse(e.dataset.markers)}catch(r){console.warn("Invalid markers JSON:",r)}if(e.dataset.playbackRate&&(t.playbackRate=parseFloat(e.dataset.playbackRate)),e.dataset.showPlaybackSpeed!==void 0&&(t.showPlaybackSpeed=e.dataset.showPlaybackSpeed==="true"),e.dataset.playbackRates)try{t.playbackRates=JSON.parse(e.dataset.playbackRates)}catch(r){console.warn("Invalid playbackRates JSON:",r)}return e.dataset.enableMediaSession!==void 0&&(t.enableMediaSession=e.dataset.enableMediaSession==="true"),t}function ite(e){if(!e||isNaN(e))return"0:00";let t=Math.floor(e/60),r=Math.floor(e%60);return`${t}:${r.toString().padStart(2,"0")}`}function l5e(e){let t=e||Math.random().toString();return btoa(t.substring(0,10)).replace(/[^a-zA-Z0-9]/g,"")}function s5e(e){if(!e)return"Audio";let t=e.split("/");return t[t.length-1].split(".")[0].replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function lte(...e){let t={};for(let r of e)for(let o in r)r[o]!==null&&r[o]!==void 0&&(t[o]=r[o]);return t}function c5e(e,t){let r;return function(...o){let n=()=>{clearTimeout(r),e(...o)};clearTimeout(r),r=setTimeout(n,t)}}function z3(e,t){if(e.length===t)return e;if(e.length===0||t===0)return[];let r=[];if(t>e.length){let o=(e.length-1)/(t-1);for(let n=0;n<t;n++){let i=n*o,l=Math.floor(i),s=Math.ceil(i),c=i-l;if(s>=e.length)r.push(e[e.length-1]);else if(l===s)r.push(e[l]);else{let u=e[l]*(1-c)+e[s]*c;r.push(u)}}}else{let o=e.length/t;for(let n=0;n<t;n++){let i=Math.floor(n*o),l=Math.floor((n+1)*o),s=0,c=0;for(let u=i;u<=l&&u<e.length;u++)e[u]>s&&(s=e[u]),c++;if(c===0){let u=Math.min(Math.round(n*o),e.length-1);s=e[u]}r.push(s)}}return r}function cte(e,t,r,o,n){let i=window.devicePixelRatio||1,l=n.barWidth*i,s=n.barSpacing*i,c=Math.floor(t.width/(l+s)),u=z3(r,c),m=t.height,p=o*t.width;e.clearRect(0,0,t.width,t.height);for(let d=0;d<u.length;d++){let f=d*(l+s);if(f+l>t.width)break;let h=u[d]*m*.9,g=m-h;e.fillStyle=n.color,e.fillRect(f,g,l,h)}e.save(),e.beginPath(),e.rect(0,0,p,m),e.clip();for(let d=0;d<u.length;d++){let f=d*(l+s);if(f>p)break;let h=u[d]*m*.9,g=m-h;e.fillStyle=n.progressColor,e.fillRect(f,g,l,h)}e.restore()}function u5e(e,t,r,o,n){let i=window.devicePixelRatio||1,l=n.barWidth*i,s=n.barSpacing*i,c=Math.floor(t.width/(l+s)),u=z3(r,c),m=t.height,p=m/2,d=o*t.width;e.clearRect(0,0,t.width,t.height);for(let f=0;f<u.length;f++){let h=f*(l+s);if(h+l>t.width)break;let g=u[f]*m*.45;e.fillStyle=n.color,e.fillRect(h,p-g,l,g),e.fillRect(h,p,l,g)}e.save(),e.beginPath(),e.rect(0,0,d,m),e.clip();for(let f=0;f<u.length;f++){let h=f*(l+s);if(h>d)break;let g=u[f]*m*.45;e.fillStyle=n.progressColor,e.fillRect(h,p-g,l,g),e.fillRect(h,p,l,g)}e.restore()}function m5e(e,t,r,o,n){let i=t.width,l=t.height,s=l/2,c=l*.35;e.clearRect(0,0,i,l);let u=(m,p,d=1,f=!1)=>{f&&(e.shadowBlur=12,e.shadowColor=m),e.strokeStyle=m,e.lineWidth=p,e.lineCap="round",e.lineJoin="round",e.beginPath(),e.moveTo(0,s);let h=[],g=Math.floor(r.length*d);for(let b=0;b<g;b++){let v=b/(r.length-1)*i,x=r[b],_=Math.sin(b*.1)*x,k=s+_*c;h.push({x:v,y:k})}for(let b=0;b<h.length-1;b++){let v=h[b].x+(h[b+1].x-h[b].x)*.5,x=h[b].y,_=h[b+1].x-(h[b+1].x-h[b].x)*.5,k=h[b+1].y;e.bezierCurveTo(v,x,_,k,h[b+1].x,h[b+1].y)}e.stroke(),f&&(e.shadowBlur=0)};e.strokeStyle="rgba(255, 255, 255, 0.03)",e.lineWidth=.5,e.beginPath(),e.moveTo(0,s),e.lineTo(i,s),e.stroke();for(let m=0;m<=10;m++){let p=i/10*m;e.beginPath(),e.moveTo(p,0),e.lineTo(p,l),e.stroke()}u(n.color,2,1,!1),o>0&&u(n.progressColor,3,o,!0)}function p5e(e,t,r,o,n){let i=window.devicePixelRatio||1,l=(n.barWidth||3)*i,s=(n.barSpacing||1)*i,c=Math.floor(t.width/(l+s)),u=z3(r,c),m=t.height,p=4*i,d=2*i,f=o*t.width,h=m/2;e.clearRect(0,0,t.width,t.height);for(let g=0;g<u.length;g++){let b=g*(l+s);if(b+l>t.width)break;let v=u[g]*m*.9,x=Math.floor(v/(p+d));e.fillStyle=b<f?n.progressColor:n.color;for(let _=0;_<x;_++){let k=_*(p+d);e.fillRect(b,h-k-p,l,p),_>0&&e.fillRect(b,h+k,l,p)}}}function d5e(e,t,r,o,n){let i=window.devicePixelRatio||1,l=(n.barWidth||2)*i,s=(n.barSpacing||3)*i,c=Math.floor(t.width/(l+s)),u=z3(r,c),m=t.height,p=Math.max(1.5*i,l/2),d=o*t.width,f=m/2;e.clearRect(0,0,t.width,t.height);for(let h=0;h<u.length;h++){let g=h*(l+s)+l/2;if(g>t.width)break;let b=u[h]*m*.9;e.fillStyle=g<d?n.progressColor:n.color,e.beginPath(),e.arc(g,f-b/2,p,0,Math.PI*2),e.fill(),e.beginPath(),e.arc(g,f+b/2,p,0,Math.PI*2),e.fill()}}function f5e(e,t,r,o,n){let i=t.width,l=t.height,s=l/2,c=4,u=c/2;if(e.clearRect(0,0,i,l),e.fillStyle=n.color||"rgba(255, 255, 255, 0.2)",e.beginPath(),e.moveTo(u,s-c/2),e.lineTo(i-u,s-c/2),e.arc(i-u,s,c/2,-Math.PI/2,Math.PI/2),e.lineTo(u,s+c/2),e.arc(u,s,c/2,Math.PI/2,-Math.PI/2),e.closePath(),e.fill(),o>0){let m=Math.max(u*2,o*i);e.shadowBlur=8,e.shadowColor=n.progressColor,e.fillStyle=n.progressColor||"rgba(255, 255, 255, 0.9)",e.beginPath(),e.moveTo(u,s-c/2),e.lineTo(m-u,s-c/2),e.arc(m-u,s,c/2,-Math.PI/2,Math.PI/2),e.lineTo(u,s+c/2),e.arc(u,s,c/2,Math.PI/2,-Math.PI/2),e.closePath(),e.fill(),e.shadowBlur=0;let p=8,d=m;e.shadowBlur=4,e.shadowColor="rgba(0, 0, 0, 0.3)",e.shadowOffsetY=2,e.fillStyle="#ffffff",e.beginPath(),e.arc(d,s,p,0,Math.PI*2),e.fill(),e.shadowBlur=0,e.shadowOffsetY=0,e.fillStyle=n.progressColor||"rgba(255, 255, 255, 0.9)",e.beginPath(),e.arc(d,s,p*.4,0,Math.PI*2),e.fill()}}var h5e={bars:cte,mirror:u5e,line:m5e,blocks:p5e,dots:d5e,seekbar:f5e};function g5e(e,t,r,o,n){(h5e[n.waveformStyle]||cte)(e,t,r,o,n)}function v5e(e){try{let t=e.getChannelData(0),r=e.sampleRate,o=b5e(t,r);if(o.length<2)return 120;let n=[];for(let c=1;c<o.length;c++)n.push((o[c]-o[c-1])/r);let i={};n.forEach(c=>{let u=60/c,m=Math.round(u/3)*3;m>60&&m<200&&(i[m]=(i[m]||0)+1)});let l=0,s=120;for(let[c,u]of Object.entries(i))u>l&&(l=u,s=parseInt(c));return s<70&&i[s*2]?s*=2:s>160&&i[Math.round(s/2)]&&(s=Math.round(s/2)),s-1}catch(t){return console.warn("BPM detection failed:",t),null}}function b5e(e,t){let r=[],o=0;for(let n=0;n<e.length-2048;n+=1024){let i=0;for(let c=n;c<n+2048;c++)i+=e[c]*e[c];i=i/2048;let l=i-o,s=o*1.8+.01;if(l>s&&i>.01){let c=r[r.length-1]||0,u=t*.15;n-c>u&&r.push(n)}o=i*.8+o*.2}return r}function y5e(e,t=200){let r=e.length/t,o=~~(r/10)||1,n=e.numberOfChannels,i=[];for(let s=0;s<n;s++){let c=e.getChannelData(s);for(let u=0;u<t;u++){let m=~~(u*r),p=~~(m+r),d=0,f=0;for(let g=m;g<p;g+=o){let b=c[g];b>f&&(f=b),b<d&&(d=b)}let h=Math.max(Math.abs(f),Math.abs(d));(s===0||h>i[u])&&(i[u]=h)}}let l=Math.max(...i);return l>0?i.map(s=>s/l):i}async function ste(e,t=200,r=!1){try{let o=new(window.AudioContext||window.webkitAudioContext),n=await(await fetch(e)).arrayBuffer(),i=await o.decodeAudioData(n),l=y5e(i,t);l=x5e(l);let s=null;return r&&(s=await v5e(i)),o.close(),{peaks:l,bpm:s}}catch(o){throw console.error("Failed to generate waveform:",o),o}}function _5e(e=200){let t=[];for(let r=0;r<e;r++){let o=Math.random()*.5+.3,n=Math.sin(r/e*Math.PI*4)*.2;t.push(Math.max(.1,Math.min(1,o+n)))}return t}function x5e(e,t=.95){let r=Math.max(...e);if(r===0||r>t)return e;let o=t/r;return e.map(n=>n*o)}function k5e(){let e=document.documentElement,t=document.body;if(e.classList.contains("dark")||e.classList.contains("dark-mode")||e.classList.contains("theme-dark")||e.getAttribute("data-theme")==="dark"||e.getAttribute("data-color-scheme")==="dark"||t.classList.contains("dark")||t.classList.contains("dark-mode")||t.getAttribute("data-theme")==="dark")return"dark";if(e.classList.contains("light")||e.classList.contains("light-mode")||e.classList.contains("theme-light")||e.getAttribute("data-theme")==="light"||e.getAttribute("data-color-scheme")==="light"||t.classList.contains("light")||t.classList.contains("light-mode")||t.getAttribute("data-theme")==="light")return"light";try{let r=getComputedStyle(document.body).backgroundColor.match(/\d+/g);if(r&&r.length>=3){let[o,n,i]=r.map(Number),l=(o*299+n*587+i*114)/1e3;if(l>128)return"light";if(l<128)return"dark"}}catch{}if(window.matchMedia){if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return"dark"}var kL={dark:{waveformColor:"rgba(255, 255, 255, 0.3)",progressColor:"rgba(255, 255, 255, 0.9)",buttonColor:"rgba(255, 255, 255, 0.9)",buttonHoverColor:"rgba(255, 255, 255, 1)",textColor:"#ffffff",textSecondaryColor:"rgba(255, 255, 255, 0.6)",backgroundColor:"rgba(255, 255, 255, 0.03)",borderColor:"rgba(255, 255, 255, 0.1)"},light:{waveformColor:"rgba(0, 0, 0, 0.2)",progressColor:"rgba(0, 0, 0, 0.8)",buttonColor:"rgba(0, 0, 0, 0.8)",buttonHoverColor:"rgba(0, 0, 0, 0.9)",textColor:"#333333",textSecondaryColor:"rgba(0, 0, 0, 0.6)",backgroundColor:"rgba(0, 0, 0, 0.02)",borderColor:"rgba(0, 0, 0, 0.1)"}};function w5e(e){if(e&&kL[e])return kL[e];let t=k5e();return kL[t]}var C5e={url:"",height:60,samples:200,preload:"metadata",playbackRate:1,showPlaybackSpeed:!1,playbackRates:[.5,.75,1,1.25,1.5,1.75,2],buttonAlign:"auto",waveformStyle:"mirror",barWidth:2,barSpacing:0,colorPreset:null,waveformColor:null,progressColor:null,buttonColor:null,buttonHoverColor:null,textColor:null,textSecondaryColor:null,backgroundColor:null,borderColor:null,autoplay:!1,showTime:!0,showHoverTime:!1,showBPM:!1,singlePlay:!0,playOnSeek:!0,enableMediaSession:!0,markers:[],showMarkers:!0,title:null,subtitle:null,artwork:null,album:"",playIcon:'<svg viewBox="0 0 24 24" width="16" height="16"><path d="M8 5v14l11-7z"/></svg>',pauseIcon:'<svg viewBox="0 0 24 24" width="16" height="16"><path d="M6 4h4v16H6zM14 4h4v16h-4z"/></svg>',onLoad:null,onPlay:null,onPause:null,onEnd:null,onError:null,onTimeUpdate:null},S5e={bars:{barWidth:3,barSpacing:1},mirror:{barWidth:2,barSpacing:0},line:{barWidth:2,barSpacing:0},blocks:{barWidth:4,barSpacing:2},dots:{barWidth:3,barSpacing:3},seekbar:{barWidth:1,barSpacing:0}},V3=class cl{static instances=new Map;static currentlyPlaying=null;constructor(t,r={}){if(this.container=typeof t=="string"?document.querySelector(t):t,!this.container)throw new Error("WaveformPlayer: Container element not found");let o=i5e(this.container);this.options=lte(C5e,o,r);let n=w5e(this.options.colorPreset);for(let[l,s]of Object.entries(n))(this.options[l]===null||this.options[l]===void 0)&&(this.options[l]=s);let i=S5e[this.options.waveformStyle];i&&(o.barWidth===void 0&&r.barWidth===void 0&&(this.options.barWidth=i.barWidth),o.barSpacing===void 0&&r.barSpacing===void 0&&(this.options.barSpacing=i.barSpacing)),this.audio=null,this.canvas=null,this.ctx=null,this.waveformData=[],this.progress=0,this.isPlaying=!1,this.isLoading=!1,this.hasError=!1,this.updateTimer=null,this.resizeObserver=null,this.id=this.container.id||l5e(this.options.url),cl.instances.set(this.id,this),this.init(),setTimeout(()=>{this.container.dispatchEvent(new CustomEvent("waveformplayer:ready",{bubbles:!0,detail:{player:this,url:this.options.url}}))},100)}init(){this.createDOM(),this.createAudio(),this.initPlaybackSpeed(),this.initKeyboardControls(),this.bindEvents(),this.setupResizeObserver(),requestAnimationFrame(()=>{this.resizeCanvas(),this.options.url&&this.load(this.options.url).then(()=>{this.options.autoplay&&this.play()}).catch(t=>{console.error("Failed to load audio:",t)})})}createDOM(){this.container.innerHTML="",this.container.className="waveform-player";let t=this.options.buttonAlign;t==="auto"&&(this.options.waveformStyle==="bars"?t="bottom":t="center"),this.container.innerHTML=` |
| 35 |
<div class="waveform-player-inner"> |
| 36 |
<div class="waveform-body"> |
| 37 |
<div class="waveform-track waveform-align-${t}"> |
| 38 |
<button class="waveform-btn" aria-label="Play/Pause" style=" |
| 39 |
border-color: ${this.options.buttonColor}; |
| 40 |
color: ${this.options.buttonColor}; |
| 41 |
"> |
| 42 |
<span class="waveform-icon-play">${this.options.playIcon}</span> |
| 43 |
<span class="waveform-icon-pause" style="display:none;">${this.options.pauseIcon}</span> |
| 44 |
</button> |
| 45 |
|
| 46 |
<div class="waveform-container"> |
| 47 |
<canvas></canvas> |
| 48 |
<div class="waveform-markers"></div> |
| 49 |
<div class="waveform-loading" style="display:none;"></div> |
| 50 |
<div class="waveform-error" style="display:none;"> |
| 51 |
<span class="waveform-error-text">Unable to load audio</span> |
| 52 |
</div> |
| 53 |
</div> |
| 54 |
</div> |
| 55 |
|
| 56 |
<div class="waveform-info"> |
| 57 |
${this.options.artwork?` |
| 58 |
<img class="waveform-artwork" src="${this.options.artwork}" alt="Album artwork" style=" |
| 59 |
width: 40px; |
| 60 |
height: 40px; |
| 61 |
border-radius: 4px; |
| 62 |
object-fit: cover; |
| 63 |
flex-shrink: 0; |
| 64 |
"> |
| 65 |
`:""} |
| 66 |
<div class="waveform-text"> |
| 67 |
<span class="waveform-title" style="color: ${this.options.textColor};"></span> |
| 68 |
${this.options.subtitle?`<span class="waveform-subtitle" style="color: ${this.options.textSecondaryColor};">${this.options.subtitle}</span>`:""} |
| 69 |
</div> |
| 70 |
<div style="display: flex; align-items: center; gap: 1rem;"> |
| 71 |
${this.options.showBPM?` |
| 72 |
<span class="waveform-bpm" style="color: ${this.options.textSecondaryColor}; display: none;"> |
| 73 |
<span class="bpm-value">--</span> BPM |
| 74 |
</span> |
| 75 |
`:""} |
| 76 |
${this.options.showPlaybackSpeed?` |
| 77 |
<div class="waveform-speed"> |
| 78 |
<button class="speed-btn" aria-label="Playback speed"> |
| 79 |
<span class="speed-value">1x</span> |
| 80 |
</button> |
| 81 |
<div class="speed-menu" style="display: none;"> |
| 82 |
${this.options.playbackRates.map(r=>`<button class="speed-option" data-rate="${r}">${r}x</button>`).join("")} |
| 83 |
</div> |
| 84 |
</div> |
| 85 |
`:""} |
| 86 |
${this.options.showTime?` |
| 87 |
<span class="waveform-time" style="color: ${this.options.textSecondaryColor};"> |
| 88 |
<span class="time-current">0:00</span> / <span class="time-total">0:00</span> |
| 89 |
</span> |
| 90 |
`:""} |
| 91 |
</div> |
| 92 |
</div> |
| 93 |
</div> |
| 94 |
</div> |
| 95 |
`,this.playBtn=this.container.querySelector(".waveform-btn"),this.canvas=this.container.querySelector("canvas"),this.ctx=this.canvas.getContext("2d"),this.titleEl=this.container.querySelector(".waveform-title"),this.subtitleEl=this.container.querySelector(".waveform-subtitle"),this.artworkEl=this.container.querySelector(".waveform-artwork"),this.currentTimeEl=this.container.querySelector(".time-current"),this.totalTimeEl=this.container.querySelector(".time-total"),this.bpmEl=this.container.querySelector(".waveform-bpm"),this.bpmValueEl=this.container.querySelector(".bpm-value"),this.loadingEl=this.container.querySelector(".waveform-loading"),this.errorEl=this.container.querySelector(".waveform-error"),this.markersContainer=this.container.querySelector(".waveform-markers"),this.speedBtn=this.container.querySelector(".speed-btn"),this.speedMenu=this.container.querySelector(".speed-menu"),this.resizeCanvas()}createAudio(){this.audio=new Audio,this.audio.preload=this.options.preload||"metadata",this.audio.crossOrigin="anonymous"}initPlaybackSpeed(){this.options.playbackRate&&this.options.playbackRate!==1&&(this.audio.playbackRate=this.options.playbackRate),this.options.showPlaybackSpeed&&this.initSpeedControls()}initSpeedControls(){let t=this.container.querySelector(".speed-btn"),r=this.container.querySelector(".speed-menu");!t||!r||(t.addEventListener("click",o=>{o.stopPropagation(),r.style.display=r.style.display==="none"?"block":"none"}),document.addEventListener("click",()=>{r.style.display="none"}),r.addEventListener("click",o=>{if(o.stopPropagation(),o.target.classList.contains("speed-option")){let n=parseFloat(o.target.dataset.rate);this.setPlaybackRate(n),r.style.display="none"}}),this.updateSpeedUI())}initKeyboardControls(){this.container.setAttribute("tabindex","-1"),this.container.addEventListener("click",()=>{cl.getAllInstances().forEach(t=>{t!==this&&t.container.setAttribute("tabindex","-1")}),this.container.setAttribute("tabindex","0"),this.container.focus()}),this.container.addEventListener("keydown",t=>{if(document.activeElement!==this.container)return;let r=t.key,o=this.audio.currentTime;if(r>="0"&&r<="9"){t.preventDefault(),this.seekToPercent(parseInt(r)/10);return}let n={" ":()=>this.togglePlay(),ArrowLeft:()=>this.seekTo(Math.max(0,o-5)),ArrowRight:()=>this.seekTo(Math.min(this.audio.duration,o+5)),ArrowUp:()=>this.setVolume(Math.min(1,this.audio.volume+.1)),ArrowDown:()=>this.setVolume(Math.max(0,this.audio.volume-.1)),m:()=>this.audio.muted=!this.audio.muted,M:()=>this.audio.muted=!this.audio.muted};n[r]&&(t.preventDefault(),n[r]())})}initMediaSession(){!("mediaSession"in navigator)||!this.options.enableMediaSession||(navigator.mediaSession.metadata=new MediaMetadata({title:this.options.title||"Unknown Track",artist:this.options.subtitle||"",album:this.options.album||"",artwork:this.options.artwork?[{src:this.options.artwork,sizes:"512x512",type:"image/jpeg"}]:[]}),navigator.mediaSession.setActionHandler("play",()=>this.play()),navigator.mediaSession.setActionHandler("pause",()=>this.pause()),navigator.mediaSession.setActionHandler("seekbackward",()=>{this.seekTo(Math.max(0,this.audio.currentTime-10))}),navigator.mediaSession.setActionHandler("seekforward",()=>{this.seekTo(Math.min(this.audio.duration,this.audio.currentTime+10))}),navigator.mediaSession.setActionHandler("seekto",t=>{t.seekTime!==null&&this.seekTo(t.seekTime)}))}bindEvents(){this.playBtn.addEventListener("click",()=>this.togglePlay()),this.audio.addEventListener("loadstart",()=>this.setLoading(!0)),this.audio.addEventListener("loadedmetadata",()=>this.onMetadataLoaded()),this.audio.addEventListener("canplay",()=>this.setLoading(!1)),this.audio.addEventListener("play",()=>this.onPlay()),this.audio.addEventListener("pause",()=>this.onPause()),this.audio.addEventListener("ended",()=>this.onEnded()),this.audio.addEventListener("error",t=>this.onError(t)),this.canvas.addEventListener("click",t=>this.handleCanvasClick(t)),this.resizeHandler=c5e(()=>this.resizeCanvas(),100),window.addEventListener("resize",this.resizeHandler)}setupResizeObserver(){"ResizeObserver"in window&&(this.resizeObserver=new ResizeObserver(()=>{this.resizeCanvas()}),this.canvas?.parentElement&&this.resizeObserver.observe(this.canvas.parentElement))}async load(t){try{this.setLoading(!0),this.progress=0,this.hasError=!1,this.audio.src=t,await new Promise((o,n)=>{let i=()=>{this.audio.removeEventListener("loadedmetadata",i),this.audio.removeEventListener("error",l),o()},l=s=>{this.audio.removeEventListener("loadedmetadata",i),this.audio.removeEventListener("error",l),n(s)};this.audio.addEventListener("loadedmetadata",i),this.audio.addEventListener("error",l)});let r=this.options.title||s5e(t);if(this.titleEl&&(this.titleEl.textContent=r),this.options.waveform)this.setWaveformData(this.options.waveform);else try{let o=await ste(t,this.options.samples,this.options.showBPM);this.waveformData=o.peaks,o.bpm&&(this.detectedBPM=o.bpm,this.updateBPMDisplay())}catch(o){console.warn("Using placeholder waveform:",o),this.waveformData=_5e(this.options.samples)}this.drawWaveform(),this.renderMarkers(),this.initMediaSession(),this.options.onLoad&&this.options.onLoad(this)}catch(r){console.error("Failed to load audio:",r),this.onError(r)}finally{this.setLoading(!1)}}async loadTrack(t,r=null,o=null,n={}){this.isPlaying&&this.pause(),this.audio.src="",this.audio.load(),this.hasError=!1,this.errorEl&&(this.errorEl.style.display="none"),this.canvas&&(this.canvas.style.opacity="1"),this.playBtn&&(this.playBtn.disabled=!1),this.progress=0,this.waveformData=[],this.options=lte(this.options,{url:t,title:r||this.options.title,subtitle:o||this.options.subtitle,...n}),n.preload&&(this.audio.preload=n.preload),this.subtitleEl&&(o?(this.subtitleEl.textContent=o,this.subtitleEl.style.display=""):o===""&&(this.subtitleEl.style.display="none")),n.artwork&&this.artworkEl&&(this.artworkEl.src=n.artwork),n.markers&&(this.options.markers=n.markers),await this.load(t),this.play()}setWaveformData(t){if(typeof t=="string")try{let r=JSON.parse(t);this.waveformData=Array.isArray(r)?r:[]}catch{this.waveformData=t.split(",").map(Number)}else this.waveformData=Array.isArray(t)?t:[];this.drawWaveform()}drawWaveform(){!this.ctx||this.waveformData.length===0||g5e(this.ctx,this.canvas,this.waveformData,this.progress,{...this.options,waveformStyle:this.options.waveformStyle||"bars",color:this.options.waveformColor,progressColor:this.options.progressColor})}resizeCanvas(){if(!this.canvas||this.isDestroying)return;let t=window.devicePixelRatio||1,r=this.canvas.getBoundingClientRect();this.canvas.width=r.width*t,this.canvas.height=this.options.height*t,this.canvas.style.height=this.options.height+"px",this.canvas.parentElement.style.height=this.options.height+"px",this.drawWaveform()}renderMarkers(){!this.options.showMarkers||!this.options.markers?.length||!this.markersContainer||(this.markersContainer.innerHTML="",!(!this.audio||!this.audio.duration||this.audio.duration===0)&&this.options.markers.forEach((t,r)=>{if(t.time>this.audio.duration){console.warn(`Marker "${t.label}" at ${t.time}s exceeds audio duration of ${this.audio.duration}s`);return}let o=t.time/this.audio.duration*100,n=document.createElement("button");n.className="waveform-marker",n.style.left=`${o}%`,n.style.backgroundColor=t.color||"rgba(255, 255, 255, 0.5)",n.setAttribute("aria-label",t.label),n.setAttribute("data-time",t.time);let i=document.createElement("span");i.className="waveform-marker-tooltip",i.textContent=t.label,n.appendChild(i),n.addEventListener("click",l=>{l.stopPropagation(),this.seekTo(t.time),this.options.playOnSeek&&!this.isPlaying&&this.play()}),this.markersContainer.appendChild(n)}))}handleCanvasClick(t){if(!this.audio.duration)return;let r=this.canvas.getBoundingClientRect(),o=t.clientX-r.left,n=Math.max(0,Math.min(1,o/r.width));this.seekToPercent(n)}setLoading(t){this.isLoading=t,this.loadingEl&&(this.loadingEl.style.display=t?"block":"none")}onMetadataLoaded(){this.isDestroying||(this.totalTimeEl&&(this.totalTimeEl.textContent=ite(this.audio.duration)),this.renderMarkers())}onPlay(){if(this.isDestroying)return;this.isPlaying=!0,this.playBtn.classList.add("playing");let t=this.playBtn.querySelector(".waveform-icon-play"),r=this.playBtn.querySelector(".waveform-icon-pause");t&&(t.style.display="none"),r&&(r.style.display="flex"),this.startSmoothUpdate(),this.container.dispatchEvent(new CustomEvent("waveformplayer:play",{bubbles:!0,detail:{player:this,url:this.options.url}})),this.options.onPlay&&this.options.onPlay(this)}onPause(){if(this.isDestroying)return;this.isPlaying=!1,this.playBtn.classList.remove("playing");let t=this.playBtn.querySelector(".waveform-icon-play"),r=this.playBtn.querySelector(".waveform-icon-pause");t&&(t.style.display="flex"),r&&(r.style.display="none"),this.stopSmoothUpdate(),this.container.dispatchEvent(new CustomEvent("waveformplayer:pause",{bubbles:!0,detail:{player:this,url:this.options.url}})),this.options.onPause&&this.options.onPause(this)}onEnded(){this.isDestroying||(this.progress=0,this.audio.currentTime=0,this.drawWaveform(),this.currentTimeEl&&(this.currentTimeEl.textContent="0:00"),this.container.dispatchEvent(new CustomEvent("waveformplayer:ended",{bubbles:!0,detail:{player:this,url:this.options.url}})),this.onPause(),this.options.onEnd&&this.options.onEnd(this))}onError(t){this.isDestroying||(console.error("Audio error:",t),this.hasError=!0,this.setLoading(!1),this.errorEl&&(this.errorEl.style.display="flex"),this.canvas&&(this.canvas.style.opacity="0.2"),this.playBtn&&(this.playBtn.disabled=!0),this.options.onError&&this.options.onError(t,this))}startSmoothUpdate(){this.stopSmoothUpdate();let t=()=>{this.isPlaying&&this.audio.duration&&(this.updateProgress(),this.updateTimer=requestAnimationFrame(t))};this.updateTimer=requestAnimationFrame(t)}stopSmoothUpdate(){this.updateTimer&&(cancelAnimationFrame(this.updateTimer),this.updateTimer=null)}updateProgress(){if(!this.audio.duration)return;let t=this.audio.currentTime/this.audio.duration;Math.abs(t-this.progress)>.001&&(this.progress=t,this.drawWaveform()),this.currentTimeEl&&(this.currentTimeEl.textContent=ite(this.audio.currentTime)),this.container.dispatchEvent(new CustomEvent("waveformplayer:timeupdate",{bubbles:!0,detail:{player:this,currentTime:this.audio.currentTime,duration:this.audio.duration,url:this.options.url}})),this.options.onTimeUpdate&&this.options.onTimeUpdate(this.audio.currentTime,this.audio.duration,this)}updateBPMDisplay(){this.bpmEl&&this.bpmValueEl&&this.detectedBPM&&(this.bpmValueEl.textContent=Math.round(this.detectedBPM),this.bpmEl.style.display="inline-flex")}updateSpeedUI(){let t=this.container.querySelector(".speed-value");if(t){let r=this.audio.playbackRate;t.textContent=r===1?"1x":`${r}x`}this.container.querySelectorAll(".speed-option").forEach(r=>{r.classList.toggle("active",parseFloat(r.dataset.rate)===this.audio.playbackRate)})}play(){this.options.singlePlay&&cl.currentlyPlaying&&cl.currentlyPlaying!==this&&cl.currentlyPlaying.pause(),cl.currentlyPlaying=this,this.audio.play()}pause(){cl.currentlyPlaying===this&&(cl.currentlyPlaying=null),this.audio.pause()}togglePlay(){this.isPlaying?this.pause():this.play()}seekTo(t){this.audio&&this.audio.duration&&(this.audio.currentTime=Math.max(0,Math.min(t,this.audio.duration)),this.updateProgress())}seekToPercent(t){this.audio&&this.audio.duration&&(this.audio.currentTime=this.audio.duration*Math.max(0,Math.min(1,t)),this.updateProgress())}setVolume(t){this.audio&&(this.audio.volume=Math.max(0,Math.min(1,t)))}setPlaybackRate(t){if(!this.audio)return;let r=Math.max(.5,Math.min(2,t));this.audio.playbackRate=r,this.options.playbackRate=r,this.updateSpeedUI()}destroy(){this.isDestroying=!0,this.pause(),this.stopSmoothUpdate(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),cl.instances.delete(this.id),cl.currentlyPlaying===this&&(cl.currentlyPlaying=null),this.audio&&(this.audio.pause(),this.audio.src="",this.audio.load(),this.audio=null),this.container.innerHTML="",this.canvas=null,this.ctx=null,this.playBtn=null,this.waveformData=[]}static getInstance(t){if(typeof t=="string"){let r=this.instances.get(t);if(r)return r;let o=document.getElementById(t);if(o)return Array.from(this.instances.values()).find(n=>n.container===o)}if(t instanceof HTMLElement)return Array.from(this.instances.values()).find(r=>r.container===t)}static getAllInstances(){return Array.from(this.instances.values())}static destroyAll(){this.instances.forEach(t=>t.destroy()),this.instances.clear()}static async generateWaveformData(t,r=200){try{return(await ste(t,r)).peaks}catch(o){throw console.error("Failed to generate waveform:",o),o}}};function wL(){typeof document>"u"||document.querySelectorAll("[data-waveform-player]").forEach(e=>{if(e.dataset.waveformInitialized!=="true")try{new V3(e),e.dataset.waveformInitialized="true"}catch(t){console.error("Failed to initialize WaveformPlayer:",t,e)}})}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",wL):wL());V3.init=wL;typeof window<"u"&&(window.WaveformPlayer=V3);var ute=V3;var T5e=100;function P5e(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function B5e(e){let t=P5e(e).color,r=co(t).alpha(.3).toRgbString(),o=co(t).alpha(.6).toRgbString();return{textColor:t,waveformColor:r,progressColor:o}}function E5e({url:e,title:t,artist:r,artwork:o,waveformColor:n,progressColor:i,buttonColor:l,height:s=T5e}){let c=document.createElement("div");return c.setAttribute("data-waveform-player",""),c.setAttribute("data-url",e),c.setAttribute("data-height",String(s)),c.setAttribute("data-waveform-style","bars"),c.setAttribute("data-waveform-color",n),c.setAttribute("data-progress-color",i),c.setAttribute("data-button-color",l),c.setAttribute("data-text-color",l),c.setAttribute("data-text-secondary-color",l),t&&c.setAttribute("data-title",t),r&&c.setAttribute("data-subtitle",r),o&&c.setAttribute("data-artwork",o),c}function I5e(e,t){let o=co(t).isDark()?"#ffffff":"#000000";e.querySelectorAll("svg path").forEach(i=>{i.style.fill=o})}function N5e(e,{play:t="Play",pause:r="Pause"}={}){let o=e.querySelector(".waveform-btn");if(!o)return;o.setAttribute("aria-label",t);let n=()=>o.setAttribute("aria-label",r),i=()=>o.setAttribute("aria-label",t);return e.addEventListener("waveformplayer:play",n),e.addEventListener("waveformplayer:pause",i),e.addEventListener("waveformplayer:ended",i),()=>{e.removeEventListener("waveformplayer:play",n),e.removeEventListener("waveformplayer:pause",i),e.removeEventListener("waveformplayer:ended",i)}}function D5e(e){e.name!=="AbortError"&&console.error("Playlist play error:",e)}function mte(e,{src:t,title:r,artist:o,image:n,autoPlay:i,onEnded:l,labels:s}){let{textColor:c,waveformColor:u,progressColor:m}=B5e(e),p=E5e({url:t,title:r,artist:o,artwork:n,waveformColor:u,progressColor:m,buttonColor:c});e.appendChild(p);let d=new ute(p),f,h={ready:()=>{I5e(p,c),f=N5e(p,s),i&&d.play()?.catch(D5e)},ended:()=>l?.()};return p.addEventListener("waveformplayer:ready",h.ready),p.addEventListener("waveformplayer:ended",h.ended),{instance:d,container:p,destroy:()=>{f?.(),p.removeEventListener("waveformplayer:ready",h.ready),p.removeEventListener("waveformplayer:ended",h.ended),d.destroy(),p.remove()}}}var fte=a(y(),1);function hte({src:e,title:t,artist:r,image:o,onEnded:n}){let i=(0,pte.useRef)(n);i.current=n;let l=(0,dte.useRefEffect)(s=>{if(!e)return;let c=!1,u;function m(){if(c)return;let{destroy:d}=mte(s,{src:e,title:t,artist:r,image:o,onEnded:()=>i.current?.()});u=d}let p=setTimeout(m,100);return()=>{c=!0,clearTimeout(p),u?.()}},[e,t,r,o]);return(0,fte.jsx)("div",{ref:l,className:"wp-block-playlist__waveform-player"})}var CL=a(P(),1);function gte(e){return{id:e.id||e.url,uniqueId:uu(),src:e.url,title:e.title,artist:e.artist||e?.meta?.artist||e?.media_details?.artist||(0,CL.__)("Unknown artist"),album:e.album||e?.meta?.album||e?.media_details?.album||(0,CL.__)("Unknown album"),length:e?.fileLength||e?.media_details?.length_formatted,image:e?.image?.src&&e?.image?.src.endsWith("/images/media/audio.svg")?"":e?.image?.src}}var Lt=a(y(),1),vte=["audio"],L5e=({attributes:e,setAttributes:t,isSelected:r,insertBlocksAfter:o,clientId:n})=>{let{order:i,showTracklist:l,showNumbers:s,showImages:c,showArtists:u,currentTrack:m}=e,p=(0,Hr.useBlockProps)(),{replaceInnerBlocks:d,__unstableMarkNextChangeAsNotPersistent:f}=(0,Bd.useDispatch)(Hr.store),{createErrorNotice:h}=(0,Bd.useDispatch)(bte.store),g=$();function b(B){h(B,{type:"snackbar"})}let{updateBlockAttributes:v}=(0,Bd.useDispatch)(Hr.store),{innerBlockTracks:x}=(0,Bd.useSelect)(B=>{let{getBlock:j}=B(Hr.store);return{innerBlockTracks:j(n)?.innerBlocks??[]}},[n]);(0,Pd.useEffect)(()=>{let B=new Set,j=!1,U=x.map(O=>B.has(O.attributes.uniqueId)?(j=!0,{...O,attributes:{...O.attributes,uniqueId:uu()}}):(B.add(O.attributes.uniqueId),O));j&&d(n,U)},[x,n,d]);let _=x.filter(B=>!!B.attributes.uniqueId),k=_.map(B=>B.attributes),S=_[0]?.attributes?.uniqueId;(0,Pd.useEffect)(()=>{k.length===0?m!==null&&v(n,{currentTrack:null}):S&&S!==m&&v(n,{currentTrack:S})},[k,m,S,n,v]);let C=(0,Pd.useCallback)(B=>{if(!B)return;Array.isArray(B)||(B=[B]);let j=B.map(gte);f(),t({currentTrack:j.length>0?j[0].uniqueId:null});let U=j.map(O=>(0,yte.createBlock)("core/playlist-track",O));d(n,U)},[f,t,d,n]),E=k.find(B=>B.uniqueId===m),I=(0,Pd.useCallback)(()=>{let B=k.findIndex(U=>U.uniqueId===m),j=k[B+1]||k[0];j?.uniqueId&&t({currentTrack:j.uniqueId})},[m,k,t]),D=(0,Pd.useCallback)(B=>{let j=[...x].sort((O,K)=>{let W=O.attributes.title||"",ee=K.attributes.title||"";return B==="asc"?W.localeCompare(ee):ee.localeCompare(W)}),U=j[0]?.attributes?.uniqueId;d(n,j),t({order:B,currentTrack:U&&U!==m?U:m})},[n,m,x,d,t]);function M(B){return j=>{t({[B]:j})}}let F=(0,Bd.useSelect)(B=>B(Hr.store).hasSelectedInnerBlock(n),[n]),V=(0,Hr.useInnerBlocksProps)(p,{__experimentalAppenderTagName:"li",renderAppender:(r||F)&&Hr.InnerBlocks.ButtonBlockAppender});return k.length===0?(0,Lt.jsx)("div",{...p,className:w("is-placeholder",p.className),children:(0,Lt.jsx)(Hr.MediaPlaceholder,{icon:(0,Lt.jsx)(Hr.BlockIcon,{icon:ei}),labels:{title:(0,Do.__)("Playlist"),instructions:(0,Do.__)("Upload an audio file or pick one from your media library.")},onSelect:C,accept:"audio/*",multiple:!0,allowedTypes:vte,onError:b})}):(0,Lt.jsxs)(Lt.Fragment,{children:[(0,Lt.jsx)(Hr.BlockControls,{group:"other",children:(0,Lt.jsx)(Hr.MediaReplaceFlow,{name:(0,Do.__)("Edit"),onSelect:C,accept:"audio/*",multiple:!0,mediaIds:k.filter(B=>B.id).map(B=>B.id),allowedTypes:vte,onError:b})}),(0,Lt.jsx)(Hr.InspectorControls,{children:(0,Lt.jsxs)(la.__experimentalToolsPanel,{label:(0,Do.__)("Settings"),resetAll:()=>{t({showTracklist:!0,showArtists:!0,showNumbers:!0,showImages:!0,order:"asc"})},dropdownMenuProps:g,children:[(0,Lt.jsx)(la.__experimentalToolsPanelItem,{label:(0,Do.__)("Show Tracklist"),isShownByDefault:!0,hasValue:()=>l!==!0,onDeselect:()=>t({showTracklist:!0}),children:(0,Lt.jsx)(la.ToggleControl,{label:(0,Do.__)("Show Tracklist"),onChange:M("showTracklist"),checked:l})}),l&&(0,Lt.jsxs)(Lt.Fragment,{children:[(0,Lt.jsx)(la.__experimentalToolsPanelItem,{label:(0,Do.__)("Show artist name in Tracklist"),isShownByDefault:!0,hasValue:()=>u!==!0,onDeselect:()=>t({showArtists:!0}),children:(0,Lt.jsx)(la.ToggleControl,{label:(0,Do.__)("Show artist name in Tracklist"),onChange:M("showArtists"),checked:u})}),(0,Lt.jsx)(la.__experimentalToolsPanelItem,{label:(0,Do.__)("Show number in Tracklist"),isShownByDefault:!0,hasValue:()=>s!==!0,onDeselect:()=>t({showNumbers:!0}),children:(0,Lt.jsx)(la.ToggleControl,{label:(0,Do.__)("Show number in Tracklist"),onChange:M("showNumbers"),checked:s})})]}),(0,Lt.jsx)(la.__experimentalToolsPanelItem,{label:(0,Do.__)("Show images"),isShownByDefault:!0,hasValue:()=>c!==!0,onDeselect:()=>t({showImages:!0}),children:(0,Lt.jsx)(la.ToggleControl,{label:(0,Do.__)("Show images"),onChange:M("showImages"),checked:c})}),(0,Lt.jsx)(la.__experimentalToolsPanelItem,{label:(0,Do.__)("Order"),isShownByDefault:!0,hasValue:()=>i!=="asc",onDeselect:()=>t({order:"asc"}),children:(0,Lt.jsx)(la.SelectControl,{__next40pxDefaultSize:!0,label:(0,Do.__)("Order"),value:i,options:[{label:(0,Do.__)("Descending"),value:"desc"},{label:(0,Do.__)("Ascending"),value:"asc"}],onChange:B=>D(B)})})]})}),(0,Lt.jsxs)("figure",{...p,children:[(0,Lt.jsx)(la.Disabled,{isDisabled:!r,children:(0,Lt.jsx)(hte,{src:E?.src,title:E?.title,artist:E?.artist,image:E?.image,onEnded:I})}),l&&(0,Lt.jsx)("ol",{className:w("wp-block-playlist__tracklist",{"wp-block-playlist__tracklist-show-numbers":s}),children:V.children}),(0,Lt.jsx)(ga,{attributes:e,setAttributes:t,isSelected:r,insertBlocksAfter:o,label:(0,Do.__)("Playlist caption text"),showToolbarButton:r,style:{marginTop:16}})]})]})},_te=L5e;var mu=a(T(),1),lb=a(y(),1);function xte({attributes:e}){let{caption:t,showNumbers:r,showTracklist:o,showArtists:n}=e,i=mu.useBlockProps.save(),l=mu.useInnerBlocksProps.save(i);return(0,lb.jsxs)("figure",{...l,children:[(0,lb.jsx)("ol",{className:w("wp-block-playlist__tracklist",{"wp-block-playlist__tracklist-is-hidden":!o,"wp-block-playlist__tracklist-artist-is-hidden":!n,"wp-block-playlist__tracklist-show-numbers":r}),children:l.children}),!mu.RichText.isEmpty(t)&&(0,lb.jsx)(mu.RichText.Content,{tagName:"figcaption",className:(0,mu.__experimentalGetElementClassName)("caption"),value:t})]})}var{name:kte}=R3,wte={icon:ei,edit:_te,save:xte},M5e=()=>N({name:kte,metadata:R3,settings:wte});var PL={};q(PL,{init:()=>V5e,metadata:()=>F3,name:()=>Bte,settings:()=>Ete});var F3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/playlist-track",title:"Playlist track",category:"media",parent:["core/playlist"],description:"Playlist track.",keywords:["music","sound"],textdomain:"default",usesContext:["showArtists","currentTrack"],attributes:{blob:{type:"string",role:"local"},id:{type:"number"},uniqueId:{type:"string"},src:{type:"string"},type:{type:"string",default:"audio"},album:{type:"string"},artist:{type:"string"},image:{type:"string"},length:{type:"string"},title:{type:"string"}},supports:{html:!1,interactivity:{clientNavigation:!0},reusable:!1},style:"wp-block-playlist-track"};var Cte=a(Br(),1),H3=a(H(),1),fo=a(T(),1),Ei=a(A(),1),Ste=a(z(),1),Tte=a(yr(),1),Yr=a(P(),1);var O3=a(Jn(),1);var kt=a(y(),1),TL=["audio"],R5e=["image"],z5e=({attributes:e,setAttributes:t,context:r})=>{let{id:o,uniqueId:n,src:i,album:l,artist:s,image:c,length:u,title:m}=e,[p,d]=(0,H3.useState)(e.blob),f=r?.showArtists,h=r?.currentTrack,g=(0,H3.useRef)(),b=(0,fo.useBlockProps)(),{createErrorNotice:v}=(0,Ste.useDispatch)(Tte.store);function x(C){v(C,{type:"snackbar"})}Es({src:p,allowedTypes:TL,onChange:_,onError:x});function _(C){if(!C||!C.url){t({blob:void 0,id:void 0,uniqueId:void 0,artist:void 0,album:void 0,image:void 0,length:void 0,title:void 0,url:void 0}),d();return}if((0,Cte.isBlobURL)(C.url)){d(C.url);return}t({blob:void 0,id:C.id,uniqueId:uu(),src:C.url,artist:C.artist||C?.meta?.artist||C?.media_details?.artist||(0,Yr.__)("Unknown artist"),album:C.album||C?.meta?.album||C?.media_details?.album||(0,Yr.__)("Unknown album"),image:C?.image?.src&&C?.image?.src.endsWith("/images/media/audio.svg")?"":C?.image?.src,length:C?.fileLength||C?.media_details?.length_formatted,title:C.title}),d()}function k(C){t({image:C.url})}function S(){t({image:void 0}),g.current.focus()}return!i&&!p?(0,kt.jsx)("div",{...b,children:(0,kt.jsx)(fo.MediaPlaceholder,{icon:(0,kt.jsx)(fo.BlockIcon,{icon:ei}),labels:{title:(0,Yr.__)("Track"),instructions:(0,Yr.__)("Upload an audio file or pick one from your media library.")},onSelect:_,accept:"audio/*",allowedTypes:TL,value:e,onError:x})}):(0,kt.jsxs)(kt.Fragment,{children:[(0,kt.jsx)(fo.BlockControls,{group:"other",children:(0,kt.jsx)(fo.MediaReplaceFlow,{name:(0,Yr.__)("Replace"),onSelect:_,accept:"audio/*",mediaId:o,mediaURL:i,allowedTypes:TL,onError:x})}),(0,kt.jsx)(fo.InspectorControls,{children:(0,kt.jsxs)(Ei.PanelBody,{title:(0,Yr.__)("Settings"),children:[(0,kt.jsx)(Ei.TextControl,{__next40pxDefaultSize:!0,label:(0,Yr.__)("Artist"),value:s?(0,O3.__unstableStripHTML)(s):"",onChange:C=>{t({artist:C})}}),(0,kt.jsx)(Ei.TextControl,{__next40pxDefaultSize:!0,label:(0,Yr.__)("Album"),value:l?(0,O3.__unstableStripHTML)(l):"",onChange:C=>{t({album:C})}}),(0,kt.jsx)(Ei.TextControl,{__next40pxDefaultSize:!0,label:(0,Yr.__)("Title"),value:m?(0,O3.__unstableStripHTML)(m):"",onChange:C=>{t({title:C})}}),(0,kt.jsx)(fo.MediaUploadCheck,{children:(0,kt.jsxs)("div",{className:"editor-video-poster-control",children:[(0,kt.jsx)(Ei.BaseControl.VisualLabel,{children:(0,Yr.__)("Album cover image")}),!!c&&(0,kt.jsx)("img",{src:c,alt:(0,Yr.__)("Preview of the album cover image")}),(0,kt.jsx)(fo.MediaUpload,{title:(0,Yr.__)("Select image"),onSelect:k,allowedTypes:R5e,render:({open:C})=>(0,kt.jsx)(Ei.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:C,ref:g,children:c?(0,Yr.__)("Replace"):(0,Yr.__)("Select")})}),!!c&&(0,kt.jsx)(Ei.Button,{__next40pxDefaultSize:!0,onClick:S,variant:"tertiary",children:(0,Yr.__)("Remove")})]})})]})}),(0,kt.jsxs)("li",{...b,children:[!!p&&(0,kt.jsx)(Ei.Spinner,{}),(0,kt.jsxs)("button",{className:"wp-block-playlist-track__button","data-wp-context":JSON.stringify({uniqueId:n}),"aria-current":h===n?"true":"false",children:[(0,kt.jsxs)("span",{className:"wp-block-playlist-track__content",children:[(0,kt.jsx)(fo.RichText,{tagName:"span",className:"wp-block-playlist-track__title",value:m,placeholder:(0,Yr.__)("Add title"),onChange:C=>{t({title:C})},allowedFormats:[],withoutInteractiveFormatting:!0}),f&&(0,kt.jsx)(fo.RichText,{tagName:"span",className:"wp-block-playlist-track__artist",value:s,placeholder:(0,Yr.__)("Add artist"),onChange:C=>t({artist:C}),allowedFormats:[],withoutInteractiveFormatting:!0})]}),(0,kt.jsxs)("span",{className:"wp-block-playlist-track__length",children:[u&&(0,kt.jsx)("span",{className:"screen-reader-text",children:(0,Yr.__)("Length:")}),u]}),(0,kt.jsx)("span",{className:"screen-reader-text",children:(0,Yr.__)("Select to play this track")})]})]})]})},Pte=z5e;var{name:Bte}=F3,Ete={icon:ei,edit:Pte},V5e=()=>N({name:Bte,metadata:F3,settings:Ete});var EL={};q(EL,{init:()=>G5e,metadata:()=>j3,name:()=>Vte,settings:()=>Fte});var zte=a(P(),1);var j3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author",title:"Author (deprecated)",category:"theme",description:"This block is deprecated. Please use the Avatar block, the Author Name block, and the Author Biography block instead.",textdomain:"default",attributes:{textAlign:{type:"string"},avatarSize:{type:"number",default:48},showAvatar:{type:"boolean",default:!0},showBio:{type:"boolean"},byline:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"}},usesContext:["postType","postId","queryId"],supports:{inserter:!1,anchor:!0,html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},filter:{duotone:!0}},selectors:{filter:{duotone:".wp-block-post-author .wp-block-post-author__avatar img"}},editorStyle:"wp-block-post-author-editor",style:"wp-block-post-author"};var cn=a(T(),1),Tr=a(A(),1),Mte=a(pe(),1),U3=a(Y(),1),Id=a(z(),1),G3=a(H(),1),BL=a(jo(),1),Sr=a(P(),1),Ate=a(G(),1);var Ed=a(G(),1),Nte=a(P(),1),Dte=a(T(),1);var{cleanEmptyObject:Ite}=Z(Dte.privateApis);function Lte(e,t){let{avatarSize:r,byline:o,showAvatar:n,showBio:i,isLink:l,linkTarget:s,textAlign:c,style:u,...m}=e,p=n&&t.some(g=>g.name==="core/avatar"),d=o&&t.some(g=>g.name==="core/paragraph"),f=t.some(g=>g.name==="core/post-author-name"),h=i&&t.some(g=>g.name==="core/post-author-biography");return(0,Ed.createBlock)("core/group",{...m,style:Ite({...u,spacing:{...u?.spacing,blockGap:"1em"},color:{...u?.color,duotone:void 0}}),layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"top"}},[p&&(0,Ed.createBlock)("core/avatar",{size:r,style:Ite({border:{radius:"0px"},color:{duotone:u?.color?.duotone}})}),(0,Ed.createBlock)("core/group",{style:{layout:{selfStretch:"fill",flexSize:null},spacing:{blockGap:"0"}},layout:{type:"flex",orientation:"vertical",justifyContent:"stretch"}},[d&&(0,Ed.createBlock)("core/paragraph",{content:o,placeholder:(0,Nte.__)("Write byline\u2026"),style:{typography:{fontSize:"0.5em",textAlign:c}}}),f&&(0,Ed.createBlock)("core/post-author-name",{isLink:l,linkTarget:s,style:{typography:{fontSize:"1em",textAlign:c}}}),h&&(0,Ed.createBlock)("core/post-author-biography",{style:{typography:{fontSize:"0.7em",textAlign:c}}})].filter(Boolean))].filter(Boolean))}var lt=a(y(),1),{InspectorControlsLastItem:O5e}=Z(cn.privateApis),H5e={who:"authors",per_page:100,_fields:"id,name",context:"view"};function j5e({value:e,onChange:t}){let[r,o]=(0,G3.useState)(""),{authors:n,isLoading:i}=(0,Id.useSelect)(s=>{let{getUsers:c,isResolving:u}=s(U3.store),m={...H5e};return r&&(m.search=r,m.search_columns=["name"]),{authors:c(m),isLoading:u("getUsers",[m])}},[r]),l=(0,G3.useMemo)(()=>{let s=(n??[]).map(m=>({value:m.id,label:(0,BL.decodeEntities)(m.name)})),c=s.findIndex(m=>e?.id===m.value),u=[];return c<0&&e?u=[{value:e.id,label:(0,BL.decodeEntities)(e.name)}]:c<0&&!e&&(u=[{value:0,label:(0,Sr.__)("(No author)")}]),[...u,...s]},[n,e]);return(0,lt.jsx)(Tr.ComboboxControl,{__next40pxDefaultSize:!0,label:(0,Sr.__)("Author"),options:l,value:e?.id,onFilterValueChange:(0,Mte.debounce)(o,300),onChange:t,allowReset:!1,isLoading:i})}function U5e({isSelected:e,context:{postType:t,postId:r,queryId:o},attributes:n,setAttributes:i,clientId:l}){let s=Number.isFinite(o),c=$(),u=k1(),{authorDetails:m,canAssignAuthor:p,supportsAuthor:d}=(0,Id.useSelect)(V=>{let{getEditedEntityRecord:B,getUser:j,getPostType:U}=V(U3.store),O=B("postType",t,r),K=O?.author;return{authorDetails:K?j(K,{context:"view"}):null,supportsAuthor:U(t)?.supports?.author??!1,canAssignAuthor:!!O?._links?.["wp:action-assign-author"]}},[t,r]),f=(0,Id.useSelect)(V=>V(Ate.store).getBlockTypes(),[]),{editEntityRecord:h}=(0,Id.useDispatch)(U3.store),{replaceBlock:g}=(0,Id.useDispatch)(cn.store),{textAlign:b,showAvatar:v,showBio:x,byline:_,isLink:k,linkTarget:S,avatarSize:C}=n,E=[],I=m?.name||(0,Sr.__)("Post Author");m?.avatar_urls&&Object.keys(m.avatar_urls).forEach(V=>{E.push({value:V,label:`${V} x ${V}`})});let D=(0,cn.useBlockProps)({className:w({[`has-text-align-${b}`]:b})}),M=V=>{h("postType",t,r,{author:V})},F=!!r&&!s&&p;if(!d&&t!==void 0)return(0,lt.jsx)("div",{...D,children:(0,Sr.sprintf)((0,Sr.__)("This post type (%s) does not support the author."),t)});function R(){g(l,Lte(n,f))}return(0,lt.jsxs)(lt.Fragment,{children:[(0,lt.jsx)(cn.InspectorControls,{children:(0,lt.jsxs)(Tr.__experimentalToolsPanel,{label:(0,Sr.__)("Settings"),resetAll:()=>{i({avatarSize:48,showAvatar:!0,isLink:!1,linkTarget:"_self"})},dropdownMenuProps:c,children:[F&&(0,lt.jsx)("div",{style:{gridColumn:"1 / -1"},children:(0,lt.jsx)(j5e,{value:m,onChange:M})}),(0,lt.jsx)(Tr.__experimentalToolsPanelItem,{label:(0,Sr.__)("Show avatar"),isShownByDefault:!0,hasValue:()=>!v,onDeselect:()=>i({showAvatar:!0}),children:(0,lt.jsx)(Tr.ToggleControl,{label:(0,Sr.__)("Show avatar"),checked:v,onChange:()=>i({showAvatar:!v})})}),v&&(0,lt.jsx)(Tr.__experimentalToolsPanelItem,{label:(0,Sr.__)("Avatar size"),isShownByDefault:!0,hasValue:()=>C!==48,onDeselect:()=>i({avatarSize:48}),children:(0,lt.jsx)(Tr.SelectControl,{__next40pxDefaultSize:!0,label:(0,Sr.__)("Avatar size"),value:C,options:E,onChange:V=>{i({avatarSize:Number(V)})}})}),(0,lt.jsx)(Tr.__experimentalToolsPanelItem,{label:(0,Sr.__)("Show bio"),isShownByDefault:!0,hasValue:()=>!!x,onDeselect:()=>i({showBio:void 0}),children:(0,lt.jsx)(Tr.ToggleControl,{label:(0,Sr.__)("Show bio"),checked:!!x,onChange:()=>i({showBio:!x})})}),(0,lt.jsx)(Tr.__experimentalToolsPanelItem,{label:(0,Sr.__)("Link author name to author page"),isShownByDefault:!0,hasValue:()=>!!k,onDeselect:()=>i({isLink:!1}),children:(0,lt.jsx)(Tr.ToggleControl,{label:(0,Sr.__)("Link author name to author page"),checked:k,onChange:()=>i({isLink:!k})})}),k&&(0,lt.jsx)(Tr.__experimentalToolsPanelItem,{label:(0,Sr.__)("Link target"),isShownByDefault:!0,hasValue:()=>S!=="_self",onDeselect:()=>i({linkTarget:"_self"}),children:(0,lt.jsx)(Tr.ToggleControl,{label:(0,Sr.__)("Open in new tab"),onChange:V=>i({linkTarget:V?"_blank":"_self"}),checked:S==="_blank"})})]})}),f.some(V=>V.name==="core/group")&&(0,lt.jsx)(O5e,{children:(0,lt.jsxs)(Tr.__experimentalVStack,{className:"wp-block-post-author__transform",alignment:"left",spacing:4,children:[(0,lt.jsx)(Tr.__experimentalText,{as:"p",children:(0,Sr.__)("This block is no longer supported. Recreate its design with the Avatar, Author Name and Author Biography blocks.")}),(0,lt.jsx)(Tr.Button,{variant:"primary",onClick:R,__next40pxDefaultSize:!0,children:(0,Sr.__)("Recreate")})]})}),(0,lt.jsx)(cn.BlockControls,{group:"block",children:(0,lt.jsx)(cn.AlignmentControl,{value:b,onChange:V=>{i({textAlign:V})}})}),(0,lt.jsxs)("div",{...D,children:[v&&(0,lt.jsx)("div",{className:"wp-block-post-author__avatar",children:(0,lt.jsx)("img",{width:C,src:m?.avatar_urls?.[C]||u,alt:m?.name||(0,Sr.__)("Default Avatar")})}),(0,lt.jsxs)("div",{className:"wp-block-post-author__content",children:[(!cn.RichText.isEmpty(_)||e)&&(0,lt.jsx)(cn.RichText,{identifier:"byline",className:"wp-block-post-author__byline","aria-label":(0,Sr.__)("Post author byline text"),placeholder:(0,Sr.__)("Write byline\u2026"),value:_,onChange:V=>i({byline:V})}),(0,lt.jsx)("p",{className:"wp-block-post-author__name",children:k?(0,lt.jsx)("a",{href:"#post-author-pseudo-link",onClick:V=>V.preventDefault(),children:I}):I}),x&&(0,lt.jsx)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:m?.description}})]})]})]})}var Rte=U5e;var{name:Vte}=j3,Fte={icon:Cp,example:{viewportWidth:350,attributes:{showBio:!0,byline:(0,zte.__)("Posted by")}},edit:Rte},G5e=()=>N({name:Vte,metadata:j3,settings:Fte});var IL={};q(IL,{init:()=>K5e,metadata:()=>W3,name:()=>$te,settings:()=>qte});var W3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author-name",title:"Author Name",category:"theme",description:"The author name.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!1,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"}},usesContext:["postType","postId"],example:{viewportWidth:350},supports:{anchor:!0,html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-author-name"};var $3=a(T(),1),Ote=a(z(),1),mc=a(P(),1),Hte=a(Y(),1),Mm=a(A(),1);var Ii=a(y(),1);function $5e(e){Tt(e);let{attributes:{isLink:t,linkTarget:r},setAttributes:o,context:{postType:n,postId:i}}=e,{authorName:l,supportsAuthor:s}=(0,Ote.useSelect)(d=>{let{getEditedEntityRecord:f,getUser:h,getPostType:g}=d(Hte.store),b=f("postType",n,i)?.author;return{authorName:b?h(b):null,supportsAuthor:g(n)?.supports?.author??!1}},[n,i]),c=(0,$3.useBlockProps)(),u=l?.name||(0,mc.__)("Author Name"),m=t?(0,Ii.jsx)("a",{href:"#author-pseudo-link",onClick:d=>d.preventDefault(),className:"wp-block-post-author-name__link",children:u}):u,p=$();return(0,Ii.jsxs)(Ii.Fragment,{children:[(0,Ii.jsx)($3.InspectorControls,{children:(0,Ii.jsxs)(Mm.__experimentalToolsPanel,{label:(0,mc.__)("Settings"),resetAll:()=>{o({isLink:!1,linkTarget:"_self"})},dropdownMenuProps:p,children:[(0,Ii.jsx)(Mm.__experimentalToolsPanelItem,{label:(0,mc.__)("Link to author archive"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>o({isLink:!1}),children:(0,Ii.jsx)(Mm.ToggleControl,{label:(0,mc.__)("Link to author archive"),onChange:()=>o({isLink:!t}),checked:t})}),t&&(0,Ii.jsx)(Mm.__experimentalToolsPanelItem,{label:(0,mc.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r!=="_self",onDeselect:()=>o({linkTarget:"_self"}),children:(0,Ii.jsx)(Mm.ToggleControl,{label:(0,mc.__)("Open in new tab"),onChange:d=>o({linkTarget:d?"_blank":"_self"}),checked:r==="_blank"})})]})}),(0,Ii.jsx)("div",{...c,children:!s&&n!==void 0?(0,mc.sprintf)((0,mc.__)("This post type (%s) does not support the author."),n):m})]})}var jte=$5e;var q5e={attributes:{isLink:{type:"boolean",default:!1,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Ute=[q5e];var Gte=a(G(),1),Z5e={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,Gte.createBlock)("core/post-author-name",{style:{typography:{textAlign:e}}})}]},Wte=Z5e;var{name:$te}=W3,qte={icon:Cp,transforms:Wte,edit:jte,deprecated:Ute},K5e=()=>N({name:$te,metadata:W3,settings:qte});var NL={};q(NL,{init:()=>J5e,metadata:()=>q3,name:()=>ere,settings:()=>tre});var q3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author-biography",title:"Author Biography",category:"theme",description:"The author biography.",textdomain:"default",usesContext:["postType","postId"],example:{viewportWidth:350},supports:{anchor:!0,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-author-biography"};var Zte=a(T(),1),Kte=a(z(),1),Yte=a(P(),1),Qte=a(Y(),1);var sb=a(y(),1);function Q5e(e){Tt(e);let{context:{postType:t,postId:r}}=e,{authorDetails:o}=(0,Kte.useSelect)(l=>{let{getEditedEntityRecord:s,getUser:c}=l(Qte.store),u=s("postType",t,r)?.author;return{authorDetails:u?c(u):null}},[t,r]),n=(0,Zte.useBlockProps)(),i=o?.description||(0,Yte.__)("Author Biography");return(0,sb.jsx)(sb.Fragment,{children:(0,sb.jsx)("div",{...n,dangerouslySetInnerHTML:{__html:i}})})}var Xte=Q5e;var X5e={attributes:{textAlign:{type:"string"}},supports:{anchor:!0,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Jte=[X5e];var{name:ere}=q3,tre={icon:Cp,edit:Xte,deprecated:Jte},J5e=()=>N({name:ere,metadata:q3,settings:tre});var DL={};q(DL,{init:()=>r4e,metadata:()=>Z3,name:()=>ire,settings:()=>lre});var Z3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comment",title:"Comment (deprecated)",category:"theme",allowedBlocks:["core/avatar","core/comment-author-name","core/comment-content","core/comment-date","core/comment-edit-link","core/comment-reply-link"],description:"This block is deprecated. Please use the Comments block instead.",textdomain:"default",attributes:{commentId:{type:"number"}},providesContext:{commentId:"commentId"},supports:{html:!1,inserter:!1,interactivity:{clientNavigation:!0}}};var cb=a(P(),1),ug=a(A(),1),rre=a(H(),1);var K3=a(T(),1),Nd=a(y(),1),t4e=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function ore({attributes:{commentId:e},setAttributes:t}){let[r,o]=(0,rre.useState)(e),n=(0,K3.useBlockProps)(),i=(0,K3.useInnerBlocksProps)(n,{template:t4e});return e?(0,Nd.jsx)("div",{...i}):(0,Nd.jsx)("div",{...n,children:(0,Nd.jsxs)(ug.Placeholder,{icon:K7,label:(0,cb._x)("Post Comment","block title"),instructions:(0,cb.__)("To show a comment, input the comment ID."),children:[(0,Nd.jsx)(ug.TextControl,{__next40pxDefaultSize:!0,value:e,onChange:l=>o(parseInt(l))}),(0,Nd.jsx)(ug.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t({commentId:r})},children:(0,cb.__)("Save")})]})})}var Y3=a(T(),1),are=a(y(),1);function nre(){let e=Y3.useBlockProps.save(),t=Y3.useInnerBlocksProps.save(e);return(0,are.jsx)("div",{...t})}var{name:ire}=Z3,lre={icon:N0,edit:ore,save:nre},r4e=()=>N({name:ire,metadata:Z3,settings:lre});var LL={};q(LL,{init:()=>i4e,metadata:()=>Q3,name:()=>gre,settings:()=>vre});var Q3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-comments-count",title:"Comments Count",category:"theme",description:"Display a post's comments count.",textdomain:"default",usesContext:["postId"],example:{viewportWidth:350},supports:{anchor:!0,html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},interactivity:{clientNavigation:!0}},style:"wp-block-post-comments-count"};var sre=a(T(),1),X3=a(H(),1),cre=a(K1(),1),ure=a(ir(),1),mre=a(y(),1);function pre({context:e}){let{postId:t}=e,[r,o]=(0,X3.useState)(),n=(0,sre.useBlockProps)();(0,X3.useEffect)(()=>{if(!t)return;let s=t;(0,cre.default)({path:(0,ure.addQueryArgs)("/wp/v2/comments",{post:t}),parse:!1}).then(c=>{s===t&&o(c.headers.get("X-WP-Total"))})},[t]);let i=t&&r!==void 0,l={...n.style,textDecoration:i?n.style?.textDecoration:void 0};return(0,mre.jsx)("div",{...n,style:l,children:i?r:"0"})}var dre=a(G(),1),a4e={to:[{type:"block",blocks:["core/post-comments-link"],transform:({style:e})=>{let t=e?.typography?.textAlign;return(0,dre.createBlock)("core/post-comments-link",{...t&&{style:{typography:{textAlign:t}}}})}}]},fre=a4e;var n4e={attributes:{textAlign:{type:"string"}},supports:{anchor:!0,html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},hre=[n4e];var{name:gre}=Q3,vre={icon:X0,edit:pre,transforms:fre,deprecated:hre},i4e=()=>N({name:gre,metadata:Q3,settings:vre});var AL={};q(AL,{init:()=>c4e,metadata:()=>J3,name:()=>xre,settings:()=>kre});var J3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-comments-form",title:"Comments Form",category:"theme",description:"Display a post's comments form.",textdomain:"default",usesContext:["postId","postType"],supports:{anchor:!0,html:!1,color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-post-comments-form-editor",style:["wp-block-post-comments-form","wp-block-buttons","wp-block-button"],example:{attributes:{style:{typography:{textAlign:"center"}}}}};var bre=a(T(),1),yre=a(pe(),1),eC=a(P(),1);var ub=a(y(),1);function ML({context:e}){let{postId:t,postType:r}=e,o=(0,yre.useInstanceId)(ML),n=(0,eC.sprintf)("comments-form-edit-%d-desc",o),i=(0,bre.useBlockProps)({"aria-describedby":n});return(0,ub.jsxs)("div",{...i,children:[(0,ub.jsx)(Bk,{postId:t,postType:r}),(0,ub.jsx)(ai,{id:n,children:(0,eC.__)("Comments form disabled in editor.")})]})}var s4e={attributes:{textAlign:{type:"string"}},supports:{anchor:!0,html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},_re=[s4e];var{name:xre}=J3,kre={icon:_P,edit:ML,deprecated:_re},c4e=()=>N({name:xre,metadata:J3,settings:kre});var RL={};q(RL,{init:()=>f4e,metadata:()=>tC,name:()=>Dre,settings:()=>Lre});var tC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-comments-link",title:"Comments Link",category:"theme",description:"Displays the link to the current post comments.",textdomain:"default",usesContext:["postType","postId"],example:{viewportWidth:350},supports:{anchor:!0,html:!1,color:{link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-comments-link"};var wre=a(T(),1),oC=a(H(),1),Cre=a(z(),1),Sre=a(K1(),1),Tre=a(ir(),1),Dd=a(P(),1),Pre=a(Y(),1),rC=a(y(),1);function m4e({context:e}){let{postType:t,postId:r}=e,[o,n]=(0,oC.useState)(),i=(0,wre.useBlockProps)();(0,oC.useEffect)(()=>{if(!r)return;let c=r;(0,Sre.default)({path:(0,Tre.addQueryArgs)("/wp/v2/comments",{post:r}),parse:!1}).then(u=>{c===r&&n(u.headers.get("X-WP-Total"))})},[r]);let l=(0,Cre.useSelect)(c=>c(Pre.store).getEditedEntityRecord("postType",t,r),[t,r]),s;if(o!==void 0){let c=parseInt(o);c===0?s=(0,Dd.__)("No comments"):s=(0,Dd.sprintf)((0,Dd._n)("%s comment","%s comments",c),c.toLocaleString())}return(0,rC.jsx)("div",{...i,children:l?.link&&s!==void 0?(0,rC.jsx)("a",{href:l?.link+"#comments",onClick:c=>c.preventDefault(),children:s}):(0,rC.jsx)("a",{href:"#post-comments-link-pseudo-link",onClick:c=>c.preventDefault(),children:(0,Dd.__)("No comments")})})}var Bre=m4e;var Ere=a(G(),1),p4e={to:[{type:"block",blocks:["core/post-comments-count"],transform:({style:e})=>{let t=e?.typography?.textAlign;return(0,Ere.createBlock)("core/post-comments-count",{...t&&{style:{typography:{textAlign:t}}}})}}]},Ire=p4e;var d4e={attributes:{textAlign:{type:"string"}},supports:{anchor:!0,html:!1,spacing:{margin:!0,padding:!0},color:{link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Nre=[d4e];var{name:Dre}=tC,Lre={edit:Bre,icon:X0,transforms:Ire,deprecated:Nre},f4e=()=>N({name:Dre,metadata:tC,settings:Lre});var zL={};q(zL,{init:()=>w4e,metadata:()=>aC,name:()=>Vre,settings:()=>Fre});var aC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-content",title:"Content",category:"theme",description:"Displays the contents of a post or page.",textdomain:"default",usesContext:["postId","postType","queryId"],attributes:{tagName:{type:"string",default:"div"}},example:{viewportWidth:350},supports:{anchor:!0,align:["wide","full"],html:!1,layout:!0,background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},dimensions:{minHeight:!0},spacing:{blockGap:!0,padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!1,text:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-content",editorStyle:"wp-block-post-content-editor"};var Ld=a(P(),1),Qr=a(T(),1),Mre=a(G(),1),mg=a(Y(),1),Are=a(z(),1),Rre=a(H(),1);var sr=a(y(),1),{HTMLElementControl:g4e}=Z(Qr.privateApis);function v4e({parentLayout:e,layoutClassNames:t,userCanEdit:r,postType:o,postId:n,tagName:i="div"}){let[,,l]=(0,mg.useEntityProp)("postType",o,"content",n),s=(0,Qr.useBlockProps)({className:t}),c=(0,Rre.useMemo)(()=>l?.raw?(0,Mre.parse)(l.raw):[],[l?.raw]),u=(0,Qr.__experimentalUseBlockPreview)({blocks:c,props:s,layout:e});return r?(0,sr.jsx)("div",{...u}):l?.protected?(0,sr.jsx)(i,{...s,children:(0,sr.jsx)(Qr.Warning,{children:(0,Ld.__)("This content is password protected.")})}):(0,sr.jsx)(i,{...s,dangerouslySetInnerHTML:{__html:l?.rendered}})}function b4e({context:e={},tagName:t="div"}){let{postType:r,postId:o}=e,[n,i,l]=(0,mg.useEntityBlockEditor)("postType",r,{id:o}),c=!!(0,Are.useSelect)(p=>p(mg.store).getEntityRecord("postType",r,o),[r,o])?.content?.raw||n?.length,u=[["core/paragraph"]],m=(0,Qr.useInnerBlocksProps)((0,Qr.useBlockProps)({className:"entry-content"}),{value:n,onInput:i,onChange:l,template:c?void 0:u});return(0,sr.jsx)(t,{...m})}function y4e(e){let{context:{queryId:t,postType:r,postId:o}={},layoutClassNames:n,tagName:i}=e,l=Tx("postType",r,o);if(l===void 0)return null;let s=Number.isFinite(t);return l&&!s?(0,sr.jsx)(b4e,{...e}):(0,sr.jsx)(v4e,{parentLayout:e.parentLayout,layoutClassNames:n,userCanEdit:l,postType:r,postId:o,tagName:i})}function _4e({layoutClassNames:e}){let t=(0,Qr.useBlockProps)({className:e});return(0,sr.jsxs)("div",{...t,children:[(0,sr.jsx)("p",{children:(0,Ld.__)("This is the Content block, it will display all the blocks in any single post or page.")}),(0,sr.jsx)("p",{children:(0,Ld.__)("That might be a simple arrangement like consecutive paragraphs in a blog post, or a more elaborate composition that includes image galleries, videos, tables, columns, and any other block types.")}),(0,sr.jsx)("p",{children:(0,Ld.__)("If there are any Custom Post Types registered at your site, the Content block can display the contents of those entries as well.")})]})}function x4e(){let e=(0,Qr.useBlockProps)();return(0,sr.jsx)("div",{...e,children:(0,sr.jsx)(Qr.Warning,{children:(0,Ld.__)("Block cannot be rendered inside itself.")})})}function k4e({tagName:e,onSelectTagName:t,clientId:r}){return(0,sr.jsx)(Qr.InspectorControls,{group:"advanced",children:(0,sr.jsx)(g4e,{tagName:e,onChange:t,clientId:r,options:[{label:(0,Ld.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"}]})})}function zre({context:e,attributes:{tagName:t="div"},setAttributes:r,clientId:o,__unstableLayoutClassNames:n,__unstableParentLayout:i}){let{postId:l,postType:s}=e,c=(0,Qr.useHasRecursion)(l);return l&&s&&c?(0,sr.jsx)(x4e,{}):(0,sr.jsxs)(sr.Fragment,{children:[(0,sr.jsx)(k4e,{tagName:t,onSelectTagName:m=>{r({tagName:m})},clientId:o}),(0,sr.jsx)(Qr.RecursionProvider,{uniqueId:l,children:l&&s?(0,sr.jsx)(y4e,{context:e,parentLayout:i,layoutClassNames:n}):(0,sr.jsx)(_4e,{layoutClassNames:n})})]})}var{name:Vre}=aC,Fre={icon:CP,edit:zre},w4e=()=>N({name:Vre,metadata:aC,settings:Fre});var VL={};q(VL,{init:()=>N4e,metadata:()=>nC,name:()=>$re,settings:()=>qre});var nC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-date",title:"Date",category:"theme",description:"Display a custom date.",textdomain:"default",attributes:{datetime:{type:"string",role:"content"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"}},usesContext:["postId","postType","queryId"],example:{viewportWidth:350},supports:{anchor:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}}};var Ore=a(Y(),1),pg=a(H(),1),Md=a(Rk(),1),Fn=a(T(),1),Ni=a(A(),1),un=a(P(),1);var Hre=a(Ls(),1),mb=a(z(),1),jre=a(G(),1);var ho=a(y(),1);function Ure(e){let{attributes:t,context:{postType:r,queryId:o},setAttributes:n,name:i}=e;Tt(e);let{datetime:l,format:s,isLink:c}=t,u=(0,Fn.useBlockProps)(),m=$(),[p,d]=(0,pg.useState)(null),f=(0,pg.useMemo)(()=>({anchor:p}),[p]),{__unstableMarkNextChangeAsNotPersistent:h}=(0,mb.useDispatch)(Fn.store);(0,pg.useEffect)(()=>{l===void 0&&(h(),n({datetime:new Date}))},[l]);let g=Number.isFinite(o),b=(0,Md.getSettings)(),{postType:v,siteFormat:x=b.formats.date,siteTimeFormat:_=b.formats.time}=(0,mb.useSelect)(E=>{let{getPostType:I,getEntityRecord:D}=E(Ore.store),M=D("root","site");return{siteFormat:M?.date_format,siteTimeFormat:M?.time_format,postType:r?I(r):null}},[r]),k=(0,mb.useSelect)(E=>E(jre.store).getActiveBlockVariation(i,t)?.name,[i,t]),S=(0,Fn.useBlockEditingMode)(),C=(0,ho.jsx)("time",{dateTime:(0,Md.dateI18n)("c",l),ref:d,children:s==="human-diff"?(0,Md.humanTimeDiff)(l):(0,Md.dateI18n)(s||x,l)});return c&&l&&(C=(0,ho.jsx)("a",{href:"#post-date-pseudo-link",onClick:E=>E.preventDefault(),children:C})),(0,ho.jsxs)(ho.Fragment,{children:[(S==="default"||!g)&&k!=="post-date-modified"&&(!g||!k)&&(0,ho.jsx)(Fn.BlockControls,{group:"block",children:(0,ho.jsx)(Ni.ToolbarGroup,{children:(0,ho.jsx)(Ni.Dropdown,{popoverProps:f,renderContent:({onClose:E})=>(0,ho.jsx)(Fn.__experimentalPublishDateTimePicker,{title:k==="post-date"?(0,un.__)("Publish Date"):(0,un.__)("Date"),currentDate:l,onChange:I=>n({datetime:I}),is12Hour:S4e(_),onClose:E,dateOrder:(0,un._x)("dmy","date order")}),renderToggle:({isOpen:E,onToggle:I})=>{let D=M=>{!E&&M.keyCode===Hre.DOWN&&(M.preventDefault(),I())};return(0,ho.jsx)(Ni.ToolbarButton,{"aria-expanded":E,icon:wp,title:(0,un.__)("Change Date"),onClick:I,onKeyDown:D})}})})}),(0,ho.jsx)(Fn.InspectorControls,{children:(0,ho.jsxs)(Ni.__experimentalToolsPanel,{label:(0,un.__)("Settings"),resetAll:()=>{n({datetime:void 0,format:void 0,isLink:!1})},dropdownMenuProps:m,children:[(0,ho.jsx)(Ni.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,un.__)("Date Format"),onDeselect:()=>n({format:void 0}),isShownByDefault:!0,children:(0,ho.jsx)(Fn.__experimentalDateFormatPicker,{format:s,defaultFormat:x,onChange:E=>n({format:E})})}),(0,ho.jsx)(Ni.__experimentalToolsPanelItem,{hasValue:()=>c!==!1,label:v?.labels.singular_name?(0,un.sprintf)((0,un.__)("Link to %s"),v.labels.singular_name.toLowerCase()):(0,un.__)("Link to post"),onDeselect:()=>n({isLink:!1}),isShownByDefault:!0,children:(0,ho.jsx)(Ni.ToggleControl,{label:v?.labels.singular_name?(0,un.sprintf)((0,un.__)("Link to %s"),v.labels.singular_name.toLowerCase()):(0,un.__)("Link to post"),onChange:()=>n({isLink:!c}),checked:c})})]})}),(0,ho.jsx)("div",{...u,children:C})]})}function S4e(e){return/(?:^|[^\\])[aAgh]/.test(e)}var T4e={attributes:{datetime:{type:"string",role:"content"},textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"}},supports:{anchor:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save(){return null},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},P4e={attributes:{datetime:{type:"string",role:"content"},textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"}},supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save(){return null},migrate({metadata:{bindings:{datetime:{source:e,args:{key:t,...r}},...o},...n},...i}){return ve({metadata:{bindings:{datetime:{source:e,args:{field:t,...r}},...o},...n},...i})},isEligible(e){return e?.metadata?.bindings?.datetime?.source==="core/post-data"&&!!e?.metadata?.bindings?.datetime?.args?.key}},B4e={attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"},displayType:{type:"string",default:"date"}},supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save(){return null},migrate({className:e,displayType:t,metadata:r,...o}){if(t==="date"||t==="modified")return t==="modified"&&(e=w(e,"wp-block-post-date__modified-date")),ve({...o,className:e,metadata:{...r,bindings:{datetime:{source:"core/post-data",args:{field:t}}}}})},isEligible(e){return!e.datetime&&!e?.metadata?.bindings?.datetime}},E4e={attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate(e){return ve(Ut(e))},isEligible({style:e}){return e?.typography?.fontFamily}},Gre=[T4e,P4e,B4e,E4e];var pb=a(P(),1),I4e=[{name:"post-date",title:(0,pb.__)("Post Date"),description:(0,pb.__)("Display a post's publish date."),attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}},scope:["inserter","transform"],isActive:e=>e?.metadata?.bindings?.datetime?.source==="core/post-data"&&e?.metadata?.bindings?.datetime?.args?.field==="date"},{name:"post-date-modified",title:(0,pb.__)("Modified Date"),description:(0,pb.__)("Display a post's last updated date."),attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"modified"}}}},className:"wp-block-post-date__modified-date"},scope:["inserter","transform"],isActive:e=>e?.metadata?.bindings?.datetime?.source==="core/post-data"&&e?.metadata?.bindings?.datetime?.args?.field==="modified"}],Wre=I4e;var{name:$re}=nC,qre={icon:t1,edit:Ure,deprecated:Gre,variations:Wre},N4e=()=>N({name:$re,metadata:nC,settings:qre});var OL={};q(OL,{init:()=>A4e,metadata:()=>iC,name:()=>eoe,settings:()=>toe});var iC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-excerpt",title:"Excerpt",category:"theme",description:"Display the excerpt.",textdomain:"default",attributes:{moreText:{type:"string",role:"content"},showMoreOnNewLine:{type:"boolean",default:!0},excerptLength:{type:"number",default:55}},usesContext:["postId","postType","queryId"],example:{viewportWidth:350},supports:{anchor:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,textColumns:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-post-excerpt-editor",style:"wp-block-post-excerpt"};var lC=a(Y(),1),Kre=a(H(),1),pu=a(T(),1),du=a(A(),1),mn=a(P(),1),Yre=a(z(),1);var Xr=a(y(),1),Zre="\u2026";function Qre(e){let{attributes:{moreText:t,showMoreOnNewLine:r,excerptLength:o},setAttributes:n,isSelected:i,context:{postId:l,postType:s,queryId:c}}=e;Tt(e);let u=Number.isFinite(c),m=Tx("postType",s,l),[p,d,{rendered:f,protected:h}={}]=(0,lC.useEntityProp)("postType",s,"excerpt",l),g=$(),b=(0,Yre.useSelect)(F=>s==="page"?!0:!!F(lC.store).getPostType(s)?.supports?.excerpt,[s]),v=m&&!u&&b,x=(0,pu.useBlockProps)(),_=(0,mn._x)("words","Word count type. Do not translate!"),k=(0,Kre.useMemo)(()=>{if(!f)return"";let F=new window.DOMParser().parseFromString(f,"text/html");return F.body.textContent||F.body.innerText||""},[f]);if(!s||!l)return(0,Xr.jsx)("div",{...x,children:(0,Xr.jsx)("p",{children:(0,mn.__)("This block will display the excerpt.")})});if(h&&!m)return(0,Xr.jsx)("div",{...x,children:(0,Xr.jsx)(pu.Warning,{children:(0,mn.__)("The content is currently protected and does not have the available excerpt.")})});let S=(0,Xr.jsx)(pu.RichText,{identifier:"moreText",className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,mn.__)("\u201CRead more\u201D link text"),placeholder:(0,mn.__)('Add "read more" link text'),value:t,onChange:F=>n({moreText:F}),withoutInteractiveFormatting:!0}),C=w("wp-block-post-excerpt__excerpt",{"is-inline":!r}),E=(p||k).trim(),I="";if(_==="words")I=E.split(/\s+/,o).join(" ");else if(_==="characters_excluding_spaces"){let F=E.split("",o).join(""),R=F.length-F.replaceAll(" ","").length;I=E.split("",o+R).join("")}else _==="characters_including_spaces"&&(I=E.split("",o).join(""));let D=I!==E,M=v?(0,Xr.jsx)(pu.RichText,{className:C,"aria-label":(0,mn.__)("Excerpt text"),value:i?E:(D?I+Zre:E)||(0,mn.__)("No excerpt found"),onChange:d,tagName:"p",allowedFormats:[],preserveWhiteSpace:!0}):(0,Xr.jsx)("p",{className:C,children:D?I+Zre:E||(0,mn.__)("No excerpt found")});return(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsx)(pu.InspectorControls,{children:(0,Xr.jsxs)(du.__experimentalToolsPanel,{label:(0,mn.__)("Settings"),resetAll:()=>{n({showMoreOnNewLine:!0,excerptLength:55})},dropdownMenuProps:g,children:[(0,Xr.jsx)(du.__experimentalToolsPanelItem,{hasValue:()=>r!==!0,label:(0,mn.__)("Show link on new line"),onDeselect:()=>n({showMoreOnNewLine:!0}),isShownByDefault:!0,children:(0,Xr.jsx)(du.ToggleControl,{label:(0,mn.__)("Show link on new line"),checked:r,onChange:F=>n({showMoreOnNewLine:F})})}),(0,Xr.jsx)(du.__experimentalToolsPanelItem,{hasValue:()=>o!==55,label:(0,mn.__)("Max number of words"),onDeselect:()=>n({excerptLength:55}),isShownByDefault:!0,children:(0,Xr.jsx)(du.RangeControl,{__next40pxDefaultSize:!0,label:(0,mn.__)("Max number of words"),value:o,onChange:F=>{n({excerptLength:F})},min:"10",max:"100"})})]})}),(0,Xr.jsxs)("div",{...x,children:[M,!r&&" ",r?(0,Xr.jsx)("p",{className:"wp-block-post-excerpt__more-text",children:S}):S]})]})}var FL=a(G(),1),L4e={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,FL.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,FL.createBlock)("core/post-content")}]},Xre=L4e;var M4e={attributes:{textAlign:{type:"string"},moreText:{type:"string",role:"content"},showMoreOnNewLine:{type:"boolean",default:!0},excerptLength:{type:"number",default:55}},supports:{anchor:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textColumns:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save(){return null},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},Jre=[M4e];var{name:eoe}=iC,toe={icon:TP,transforms:Xre,edit:Qre,deprecated:Jre},A4e=()=>N({name:eoe,metadata:iC,settings:toe});var UL={};q(UL,{init:()=>G4e,metadata:()=>sC,name:()=>foe,settings:()=>hoe});var sC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-featured-image",title:"Featured Image",category:"theme",description:"Display a post's featured image.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!1,role:"content"},aspectRatio:{type:"string"},width:{type:"string"},height:{type:"string"},scale:{type:"string",default:"cover"},sizeSlug:{type:"string"},rel:{type:"string",attribute:"rel",default:"",role:"content"},linkTarget:{type:"string",default:"_self",role:"content"},overlayColor:{type:"string"},customOverlayColor:{type:"string"},dimRatio:{type:"number",default:0},gradient:{type:"string"},customGradient:{type:"string"},useFirstImageFromPost:{type:"boolean",default:!1}},usesContext:["postId","postType","queryId"],example:{viewportWidth:350},supports:{anchor:!0,align:["left","right","center","wide","full"],color:{text:!1,background:!1},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},filter:{duotone:!0},shadow:{__experimentalSkipSerialization:!0},html:!1,spacing:{margin:!0,padding:!0},interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-post-featured-image img, .wp-block-post-featured-image .block-editor-media-placeholder, .wp-block-post-featured-image .wp-block-post-featured-image__overlay",shadow:".wp-block-post-featured-image img, .wp-block-post-featured-image .components-placeholder",filter:{duotone:".wp-block-post-featured-image img, .wp-block-post-featured-image .wp-block-post-featured-image__placeholder, .wp-block-post-featured-image .components-placeholder__illustration, .wp-block-post-featured-image .components-placeholder::before"}},editorStyle:"wp-block-post-featured-image-editor",style:"wp-block-post-featured-image"};var uoe=a(Br(),1),db=a(Y(),1),fb=a(z(),1),go=a(A(),1),Lr=a(T(),1),Vm=a(H(),1),Aa=a(P(),1);var moe=a(yr(),1);var Ma=a(P(),1),Mo=a(A(),1),roe=a(T(),1),Lo=a(y(),1),z4e=(0,Lo.jsxs)(Lo.Fragment,{children:[(0,Lo.jsx)(Mo.__experimentalToggleGroupControlOption,{value:"cover",label:(0,Ma._x)("Cover","Scale option for Image dimension control")}),(0,Lo.jsx)(Mo.__experimentalToggleGroupControlOption,{value:"contain",label:(0,Ma._x)("Contain","Scale option for Image dimension control")}),(0,Lo.jsx)(Mo.__experimentalToggleGroupControlOption,{value:"fill",label:(0,Ma._x)("Fill","Scale option for Image dimension control")})]}),HL="cover",V4e={cover:(0,Ma.__)("Image is scaled and cropped to fill the entire space without being distorted."),contain:(0,Ma.__)("Image is scaled to fill the space without clipping nor distorting."),fill:(0,Ma.__)("Image will be stretched and distorted to completely fill the space.")},F4e=({clientId:e,attributes:{aspectRatio:t,width:r,height:o,scale:n},setAttributes:i})=>{let[l,s,c,u]=(0,roe.useSettings)("spacing.units","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),m=(0,Mo.__experimentalUseCustomUnits)({availableUnits:l||["px","%","vw","em","rem"]}),p=(v,x)=>{let _=parseFloat(x);isNaN(_)&&x||i({[v]:_<0?"0":x})},d=(0,Ma._x)("Scale","Image scaling options"),f=o||t&&t!=="auto",h=c?.map(({name:v,ratio:x})=>({label:v,value:x})),g=s?.map(({name:v,ratio:x})=>({label:v,value:x})),b=[{label:(0,Ma._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...u?g:[],...h||[]];return(0,Lo.jsxs)(Lo.Fragment,{children:[(0,Lo.jsx)(Mo.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Ma.__)("Aspect ratio"),onDeselect:()=>i({aspectRatio:void 0}),resetAllFilter:()=>({aspectRatio:void 0}),isShownByDefault:!0,panelId:e,children:(0,Lo.jsx)(Mo.SelectControl,{__next40pxDefaultSize:!0,label:(0,Ma.__)("Aspect ratio"),value:t||"auto",options:b,onChange:v=>i({aspectRatio:v})})}),(0,Lo.jsx)(Mo.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!o,label:(0,Ma.__)("Height"),onDeselect:()=>i({height:void 0}),resetAllFilter:()=>({height:void 0}),isShownByDefault:!0,panelId:e,children:(0,Lo.jsx)(Mo.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,Ma.__)("Height"),labelPosition:"top",value:o||"",min:0,onChange:v=>p("height",v),units:m})}),(0,Lo.jsx)(Mo.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!r,label:(0,Ma.__)("Width"),onDeselect:()=>i({width:void 0}),resetAllFilter:()=>({width:void 0}),isShownByDefault:!0,panelId:e,children:(0,Lo.jsx)(Mo.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,Ma.__)("Width"),labelPosition:"top",value:r||"",min:0,onChange:v=>p("width",v),units:m})}),f&&(0,Lo.jsx)(Mo.__experimentalToolsPanelItem,{hasValue:()=>!!n&&n!==HL,label:d,onDeselect:()=>i({scale:HL}),resetAllFilter:()=>({scale:HL}),isShownByDefault:!0,panelId:e,children:(0,Lo.jsx)(Mo.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:d,value:n,help:V4e[n],onChange:v=>i({scale:v}),isBlock:!0,children:z4e})})]})},ooe=F4e;var uC=a(A(),1),Rm=a(T(),1),aoe=a(pe(),1),cC=a(P(),1),Am=a(y(),1),O4e=({clientId:e,attributes:t,setAttributes:r,overlayColor:o,setOverlayColor:n})=>{let{dimRatio:i}=t,{gradientValue:l,setGradient:s}=(0,Rm.__experimentalUseGradient)(),c=(0,Rm.__experimentalUseMultipleOriginColorsAndGradients)();return c.hasColorsOrGradients?(0,Am.jsxs)(Am.Fragment,{children:[(0,Am.jsx)(Rm.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:o.color,gradientValue:l,label:(0,cC.__)("Overlay"),onColorChange:n,onGradientChange:s,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:e,...c}),(0,Am.jsx)(uC.__experimentalToolsPanelItem,{hasValue:()=>i!==void 0,label:(0,cC.__)("Overlay opacity"),onDeselect:()=>r({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e,children:(0,Am.jsx)(uC.RangeControl,{label:(0,cC.__)("Overlay opacity"),value:i,onChange:u=>r({dimRatio:u}),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})})]}):null},noe=(0,aoe.compose)([(0,Rm.withColors)({overlayColor:"background-color"})])(O4e);var zm=a(T(),1),loe=a(pe(),1);function ioe(e){return e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}var soe=a(y(),1),H4e=({attributes:e,overlayColor:t})=>{let{dimRatio:r}=e,{gradientClass:o,gradientValue:n}=(0,zm.__experimentalUseGradient)(),i=(0,zm.__experimentalUseMultipleOriginColorsAndGradients)(),l=(0,zm.__experimentalUseBorderProps)(e),s={backgroundColor:t.color,backgroundImage:n,...l.style};return!i.hasColorsOrGradients||!r?null:(0,soe.jsx)("span",{"aria-hidden":"true",className:w("wp-block-post-featured-image__overlay",ioe(r),{[t.class]:t.class,"has-background-dim":r!==void 0,"has-background-gradient":n,[o]:o},l.className),style:s})},jL=(0,loe.compose)([(0,zm.withColors)({overlayColor:"background-color"})])(H4e);var qe=a(y(),1),coe=["image"],{ResolutionTool:j4e}=Z(Lr.privateApis),poe="full";function U4e({image:e,value:t,onChange:r}){let{imageSizes:o}=(0,fb.useSelect)(i=>{let{getSettings:l}=i(Lr.store);return{imageSizes:l().imageSizes}},[]);if(!o?.length)return null;let n=o.filter(({slug:i})=>e?.media_details?.sizes?.[i]?.source_url).map(({name:i,slug:l})=>({value:l,label:i}));return(0,qe.jsx)(j4e,{value:t,defaultValue:poe,options:n,onChange:r})}function doe({clientId:e,attributes:t,setAttributes:r,context:{postId:o,postType:n,queryId:i}}){let l=Number.isFinite(i),{isLink:s,aspectRatio:c,height:u,width:m,scale:p,sizeSlug:d,rel:f,linkTarget:h,useFirstImageFromPost:g}=t,[b,v]=(0,Vm.useState)(),[x,_]=(0,db.useEntityProp)("postType",n,"featured_media",o),[k]=(0,db.useEntityProp)("postType",n,"content",o),S=(0,Vm.useMemo)(()=>{if(x)return x;if(!g)return;let ne=/<!--\s+wp:(?:core\/)?image\s+(?<attrs>{(?:(?:[^}]+|}+(?=})|(?!}\s+\/?-->).)*)?}\s+)?-->/.exec(k);return ne?.groups?.attrs&&JSON.parse(ne.groups.attrs)?.id},[x,g,k]),{media:C,postType:E,postPermalink:I}=(0,fb.useSelect)(ne=>{let{getEntityRecord:ie,getPostType:ue,getEditedEntityRecord:fe}=ne(db.store);return{media:S&&ie("postType","attachment",S,{context:"view"}),postType:n&&ue(n),postPermalink:fe("postType",n,o)?.link}},[S,n,o]),D=C?.media_details?.sizes?.[d]?.source_url||C?.source_url,M=(0,Lr.useBlockProps)({style:{width:m,height:u,aspectRatio:c},className:w({"is-transient":b})}),F=(0,Lr.__experimentalUseBorderProps)(t),R=(0,Lr.__experimentalGetShadowClassesAndStyles)(t),V=(0,Lr.useBlockEditingMode)(),B=ne=>(0,qe.jsx)(go.Placeholder,{className:w("block-editor-media-placeholder",F.className),withIllustration:!0,style:{height:!!c&&"100%",width:!!c&&"100%",...F.style,...R.style},children:ne}),j=ne=>{ne?.id&&_(ne.id),ne?.url&&(0,uoe.isBlobURL)(ne.url)&&v(ne.url)},U=()=>{r({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:void 0}),_(0)};(0,Vm.useEffect)(()=>{D&&b&&v()},[D,b]);let{createErrorNotice:O}=(0,fb.useDispatch)(moe.store),K=ne=>{O(ne,{type:"snackbar"}),v()},W=$(),ee=V==="default"&&(0,qe.jsxs)(qe.Fragment,{children:[(0,qe.jsx)(Lr.InspectorControls,{group:"color",children:(0,qe.jsx)(noe,{attributes:t,setAttributes:r,clientId:e})}),(0,qe.jsx)(Lr.InspectorControls,{group:"dimensions",children:(0,qe.jsx)(ooe,{clientId:e,attributes:t,setAttributes:r,media:C})}),(S||l||!o)&&(0,qe.jsx)(Lr.InspectorControls,{children:(0,qe.jsxs)(go.__experimentalToolsPanel,{label:(0,Aa.__)("Settings"),resetAll:()=>{r({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:poe})},dropdownMenuProps:W,children:[(0,qe.jsx)(go.__experimentalToolsPanelItem,{label:E?.labels.singular_name?(0,Aa.sprintf)((0,Aa.__)("Link to %s"),E.labels.singular_name):(0,Aa.__)("Link to post"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({isLink:!1}),children:(0,qe.jsx)(go.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Aa.__)("Make image a link"),onChange:()=>r({isLink:!s}),checked:s})}),s&&(0,qe.jsx)(go.__experimentalToolsPanelItem,{label:(0,Aa.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>h!=="_self",onDeselect:()=>r({linkTarget:"_self"}),children:(0,qe.jsx)(go.ToggleControl,{label:(0,Aa.__)("Open in new tab"),onChange:ne=>r({linkTarget:ne?"_blank":"_self"}),checked:h==="_blank"})}),s&&(0,qe.jsx)(go.__experimentalToolsPanelItem,{label:(0,Aa.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!f,onDeselect:()=>r({rel:""}),children:(0,qe.jsx)(go.TextControl,{__next40pxDefaultSize:!0,label:(0,Aa.__)("Link relation"),help:(0,Vm.createInterpolateElement)((0,Aa.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,qe.jsx)(go.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:f,onChange:ne=>r({rel:ne})})}),!!C&&(0,qe.jsx)(U4e,{image:C,value:d,onChange:ne=>r({sizeSlug:ne})})]})})]}),oe;if(!S&&(l||!o))return(0,qe.jsxs)(qe.Fragment,{children:[ee,(0,qe.jsxs)("div",{...M,children:[s?(0,qe.jsx)("a",{href:I,target:h,children:B()}):B(),(0,qe.jsx)(jL,{attributes:t,setAttributes:r,clientId:e})]})]});let X=(0,Aa.__)("Add a featured image"),J={...F.style,...R.style,height:c?"100%":u,width:!!c&&"100%",objectFit:!!(u||c)&&p};return!S&&!b?oe=(0,qe.jsx)(Lr.MediaPlaceholder,{onSelect:j,accept:"image/*",allowedTypes:coe,onError:K,placeholder:B,mediaLibraryButton:({open:ne})=>(0,qe.jsx)(go.Button,{__next40pxDefaultSize:!0,icon:Vc,variant:"primary",label:X,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{ne()}})}):oe=!C&&!b?B():(0,qe.jsxs)(qe.Fragment,{children:[(0,qe.jsx)("img",{className:F.className,src:b||D,alt:C&&C?.alt_text?(0,Aa.sprintf)((0,Aa.__)("Featured image: %s"),C.alt_text):(0,Aa.__)("Featured image"),style:J}),b&&(0,qe.jsx)(go.Spinner,{})]}),(0,qe.jsxs)(qe.Fragment,{children:[!b&&ee,!!C&&!l&&(0,qe.jsx)(Lr.BlockControls,{group:"other",children:(0,qe.jsx)(Lr.MediaReplaceFlow,{mediaId:S,mediaURL:D,allowedTypes:coe,accept:"image/*",onSelect:j,onError:K,onReset:U})}),(0,qe.jsxs)("figure",{...M,children:[s?(0,qe.jsx)("a",{href:I,target:h,children:oe}):oe,(0,qe.jsx)(jL,{attributes:t,setAttributes:r,clientId:e})]})]})}var{name:foe}=sC,hoe={icon:BP,edit:doe},G4e=()=>N({name:foe,metadata:sC,settings:hoe});var GL={};q(GL,{init:()=>q4e,metadata:()=>mC,name:()=>woe,settings:()=>Coe});var koe=a(P(),1);var mC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-navigation-link",title:"Post Navigation Link",category:"theme",description:"Displays the next or previous post link that is adjacent to the current post.",textdomain:"default",attributes:{type:{type:"string",default:"next"},label:{type:"string",role:"content"},showTitle:{type:"boolean",default:!1},linkLabel:{type:"boolean",default:!1},arrow:{type:"string",default:"none"},taxonomy:{type:"string",default:""}},usesContext:["postType"],supports:{anchor:!0,reusable:!1,html:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-post-navigation-link"};var sa=a(A(),1),Ad=a(T(),1),dr=a(P(),1),goe=a(z(),1),voe=a(Y(),1);var Pr=a(y(),1);function boe({context:{postType:e},attributes:{type:t,label:r,showTitle:o,linkLabel:n,arrow:i,taxonomy:l},setAttributes:s}){let c=t==="next",u=c?(0,dr.__)("Next"):(0,dr.__)("Previous"),p={none:"",arrow:c?"\u2192":"\u2190",chevron:c?"\xBB":"\xAB"}[i];o&&(u=c?(0,dr.__)("Next: "):(0,dr.__)("Previous: "));let d=c?(0,dr.__)("Next post"):(0,dr.__)("Previous post"),f=(0,Ad.useBlockProps)(),h=(0,goe.useSelect)(v=>{let{getTaxonomies:x}=v(voe.store);return x({type:e,per_page:-1})},[e]),g=()=>{let v={label:(0,dr.__)("Unfiltered"),value:""},x=(h??[]).filter(({visibility:_})=>!!_?.publicly_queryable).map(_=>({value:_.slug,label:_.name}));return[v,...x]},b=$();return(0,Pr.jsxs)(Pr.Fragment,{children:[(0,Pr.jsx)(Ad.InspectorControls,{children:(0,Pr.jsxs)(sa.__experimentalToolsPanel,{label:(0,dr.__)("Settings"),resetAll:()=>{s({showTitle:!1,linkLabel:!1,arrow:"none"})},dropdownMenuProps:b,children:[(0,Pr.jsx)(sa.__experimentalToolsPanelItem,{label:(0,dr.__)("Display the title as a link"),isShownByDefault:!0,hasValue:()=>o,onDeselect:()=>s({showTitle:!1}),children:(0,Pr.jsx)(sa.ToggleControl,{label:(0,dr.__)("Display the title as a link"),help:(0,dr.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!o,onChange:()=>s({showTitle:!o})})}),o&&(0,Pr.jsx)(sa.__experimentalToolsPanelItem,{label:(0,dr.__)("Include the label as part of the link"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>s({linkLabel:!1}),children:(0,Pr.jsx)(sa.ToggleControl,{label:(0,dr.__)("Include the label as part of the link"),checked:!!n,onChange:()=>s({linkLabel:!n})})}),(0,Pr.jsx)(sa.__experimentalToolsPanelItem,{label:(0,dr.__)("Arrow"),isShownByDefault:!0,hasValue:()=>i!=="none",onDeselect:()=>s({arrow:"none"}),children:(0,Pr.jsxs)(sa.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,dr.__)("Arrow"),value:i,onChange:v=>{s({arrow:v})},help:(0,dr.__)("A decorative arrow for the next and previous link."),isBlock:!0,children:[(0,Pr.jsx)(sa.__experimentalToggleGroupControlOption,{value:"none",label:(0,dr._x)("None","Arrow option for Next/Previous link")}),(0,Pr.jsx)(sa.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,dr._x)("Arrow","Arrow option for Next/Previous link")}),(0,Pr.jsx)(sa.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,dr._x)("Chevron","Arrow option for Next/Previous link")})]})})]})}),(0,Pr.jsx)(Ad.InspectorControls,{group:"advanced",children:(0,Pr.jsx)(sa.SelectControl,{__next40pxDefaultSize:!0,label:(0,dr.__)("Filter by taxonomy"),value:l,options:g(),onChange:v=>s({taxonomy:v}),help:(0,dr.__)("Only link to posts that have the same taxonomy terms as the current post. For example the same tags or categories.")})}),(0,Pr.jsxs)("div",{...f,children:[!c&&p&&(0,Pr.jsx)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${i}`,children:p}),(0,Pr.jsx)(Ad.RichText,{tagName:"a",identifier:"label","aria-label":d,placeholder:u,value:r,withoutInteractiveFormatting:!0,onChange:v=>s({label:v})}),o&&(0,Pr.jsx)("a",{href:"#post-navigation-pseudo-link",onClick:v=>v.preventDefault(),children:(0,dr.__)("An example title")}),c&&p&&(0,Pr.jsx)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${i}`,"aria-hidden":!0,children:p})]})]})}var Rd=a(P(),1);var yoe=[{name:"post-previous",title:(0,Rd.__)("Previous Post"),description:(0,Rd.__)("Displays the post link that precedes the current post."),icon:AP,attributes:{type:"previous"},scope:["inserter","transform"],example:{attributes:{label:(0,Rd.__)("Previous post"),arrow:"arrow"}}},{isDefault:!0,name:"post-next",title:(0,Rd.__)("Next Post"),description:(0,Rd.__)("Displays the post link that follows the current post."),icon:QT,attributes:{type:"next"},scope:["inserter","transform"],example:{attributes:{label:(0,Rd.__)("Next post"),arrow:"arrow"}}}];yoe.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.type===r.type)});var _oe=yoe;var $4e={attributes:{textAlign:{type:"string"},type:{type:"string",default:"next"},label:{type:"string",role:"content"},showTitle:{type:"boolean",default:!1},linkLabel:{type:"boolean",default:!1},arrow:{type:"string",default:"none"},taxonomy:{type:"string",default:""}},supports:{anchor:!0,reusable:!1,html:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},xoe=[$4e];var{name:woe}=mC,Coe={edit:boe,variations:_oe,deprecated:xoe,example:{attributes:{label:(0,koe.__)("Next post"),arrow:"arrow"}}},q4e=()=>N({name:woe,metadata:mC,settings:Coe});var WL={};q(WL,{init:()=>J4e,metadata:()=>pC,name:()=>Noe,settings:()=>Doe});var pC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-template",title:"Post Template",category:"theme",ancestor:["core/query"],description:"Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.",textdomain:"default",usesContext:["queryId","query","displayLayout","templateSlug","previewPostType","enhancedPagination","postType"],supports:{anchor:!0,reusable:!1,html:!1,align:["wide","full"],layout:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:!0,padding:!0,blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!0,padding:!1,margin:!1}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},style:"wp-block-post-template",editorStyle:"wp-block-post-template-editor"};var dg=a(H(),1),Soe=a(z(),1),hb=a(P(),1),ul=a(T(),1),dC=a(A(),1),Toe=a(Y(),1);var Ra=a(y(),1),K4e=[["core/post-title"],["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],["core/post-excerpt"]];function Y4e({classList:e}){let t=(0,ul.useInnerBlocksProps)({className:w("wp-block-post",e)},{template:K4e,__unstableDisableLayoutClassNames:!0});return(0,Ra.jsx)("li",{...t})}function Q4e({blocks:e,blockContextId:t,classList:r,isHidden:o,setActiveBlockContextId:n}){let i=(0,ul.__experimentalUseBlockPreview)({blocks:e,props:{className:w("wp-block-post",r)}}),l=()=>{n(t)};return(0,Ra.jsx)("li",{...i,tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:{display:o?"none":void 0}})}var X4e=(0,dg.memo)(Q4e);function Poe({setAttributes:e,clientId:t,context:{query:{perPage:r,offset:o=0,postType:n,order:i,orderBy:l,author:s,search:c,exclude:u,sticky:m,inherit:p,taxQuery:d,parents:f,pages:h,format:g,...b}={},templateSlug:v,previewPostType:x},attributes:{layout:_},__unstableLayoutClassNames:k}){let{type:S,columnCount:C=3,minimumColumnWidth:E}=_||{},[I,D]=(0,dg.useState)(),{posts:M,blocks:F}=(0,Soe.useSelect)(U=>{let{getEntityRecords:O,getTaxonomies:K}=U(Toe.store),{getBlocks:W}=U(ul.store),ee=p&&v?.startsWith("category-")&&O("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:v.replace("category-","")}),oe=p&&v?.startsWith("tag-")&&O("taxonomy","post_tag",{context:"view",per_page:1,_fields:["id"],slug:v.replace("tag-","")}),X={offset:o||0,order:i,orderby:l};if(d&&!p){let ie=K({type:n,per_page:-1,context:"view"}),ue=(Oe,ke="")=>Object.entries(Oe||{}).reduce((ae,[Te,Le])=>{let te=ie?.find(({slug:He})=>He===Te);return te?.rest_base&&Le?.length&&(ae[te.rest_base+ke]=Le),ae},{}),fe=ue(d.include);d.exclude&&Object.assign(fe,ue(d.exclude,"_exclude")),Object.keys(fe).length&&Object.assign(X,fe)}r&&(X.per_page=r),s&&(X.author=s),c&&(X.search=c),u?.length&&(X.exclude=u),f?.length&&(X.parent=f),g?.length&&(X.format=g),["exclude","only"].includes(m)&&(X.sticky=m==="only"),["","ignore"].includes(m)&&(delete X.sticky,X.ignore_sticky=m==="ignore");let J=n;return p&&(v?.startsWith("archive-")?(X.postType=v.replace("archive-",""),J=X.postType):ee?X.categories=ee[0]?.id:oe?X.tags=oe[0]?.id:v?.startsWith("taxonomy-post_format")&&(X.format=v.replace("taxonomy-post_format-post-format-",""))),{posts:O("postType",x||J,{...X,...b}),blocks:W(t)}},[r,o,i,l,t,s,c,n,u,m,p,v,d,f,g,b,x]),R=(0,dg.useMemo)(()=>M?.map(U=>({postType:U.type,postId:U.id,classList:U.class_list??""})),[M]),V=(0,ul.useBlockProps)({className:w(k,{[`columns-${C}`]:S==="grid"&&C,"has-native-responsive-grid":S==="grid"&&C&&E})});if(!M)return(0,Ra.jsx)("p",{...V,children:(0,Ra.jsx)(dC.Spinner,{})});if(!M.length)return(0,Ra.jsxs)("p",{...V,children:[" ",(0,hb.__)("No results found.")]});let B=U=>e({layout:{..._,...U}}),j=[{icon:Dl,title:(0,hb._x)("List view","Post template block display setting"),onClick:()=>B({type:"default"}),isActive:S==="default"||S==="constrained"},{icon:Nl,title:(0,hb._x)("Grid view","Post template block display setting"),onClick:()=>B({type:"grid",columnCount:C}),isActive:S==="grid"}];return(0,Ra.jsxs)(Ra.Fragment,{children:[(0,Ra.jsx)(ul.BlockControls,{children:(0,Ra.jsx)(dC.ToolbarGroup,{controls:j})}),(0,Ra.jsx)("ul",{...V,children:R&&R.map(U=>(0,Ra.jsxs)(ul.BlockContextProvider,{value:U,children:[U.postId===(I||R[0]?.postId)?(0,Ra.jsx)(Y4e,{classList:U.classList}):null,(0,Ra.jsx)(X4e,{blocks:F,blockContextId:U.postId,classList:U.classList,setActiveBlockContextId:D,isHidden:U.postId===(I||R[0]?.postId)})]},U.postId))})]})}var Boe=a(T(),1),Eoe=a(y(),1);function Ioe(){return(0,Eoe.jsx)(Boe.InnerBlocks.Content,{})}var{name:Noe}=pC,Doe={icon:_p,edit:Poe,save:Ioe},J4e=()=>N({name:Noe,metadata:pC,settings:Doe});var $L={};q($L,{init:()=>awe,metadata:()=>fC,name:()=>Goe,settings:()=>Woe});var Uoe=a(qc(),1);var fC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-terms",title:"Post Terms",category:"theme",description:"Post terms.",textdomain:"default",attributes:{term:{type:"string"},separator:{type:"string",default:", "},prefix:{type:"string",default:"",role:"content"},suffix:{type:"string",default:"",role:"content"}},usesContext:["postId","postType"],example:{viewportWidth:350},supports:{anchor:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-terms"};var fu=a(T(),1),hC=a(G(),1),gC=a(A(),1),zoe=a(z(),1),Voe=a(jo(),1),Fm=a(P(),1),Foe=a(Y(),1);var Loe=a(Y(),1),Moe=a(z(),1),twe=[];function Aoe({postId:e,term:t}){let{slug:r}=t;return(0,Moe.useSelect)(o=>{if(!t?.visibility?.publicly_queryable||!e)return{postTerms:twe,isLoading:!1,hasPostTerms:!1};let{getEntityRecords:i,isResolving:l}=o(Loe.store),s=["taxonomy",r,{post:e,per_page:-1,context:"view"}],c=i(...s);return{postTerms:c,isLoading:l("getEntityRecords",s),hasPostTerms:!!c?.length}},[e,t?.visibility?.publicly_queryable,r])}var za=a(y(),1),Roe=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];function Ooe({attributes:e,clientId:t,context:r,isSelected:o,setAttributes:n,insertBlocksAfter:i}){let{term:l,separator:s,prefix:c,suffix:u}=e,{postId:m,postType:p}=r,d=(0,zoe.useSelect)(_=>{if(!l)return{};let{getTaxonomy:k}=_(Foe.store),S=k(l);return S?.visibility?.publicly_queryable?S:{}},[l]),{postTerms:f,hasPostTerms:h,isLoading:g}=Aoe({postId:m,term:d}),b=m&&p,v=(0,fu.useBlockDisplayInformation)(t),x=(0,fu.useBlockProps)({className:l&&`taxonomy-${l}`});return(0,za.jsxs)(za.Fragment,{children:[(0,za.jsx)(fu.InspectorControls,{group:"advanced",children:(0,za.jsx)(gC.TextControl,{__next40pxDefaultSize:!0,autoComplete:"off",label:(0,Fm.__)("Separator"),value:s||"",onChange:_=>{n({separator:_})},help:(0,Fm.__)("Enter character(s) used to separate terms.")})}),(0,za.jsxs)("div",{...x,children:[g&&b&&(0,za.jsx)(gC.Spinner,{}),!g&&(o||c)&&(0,za.jsx)(fu.RichText,{identifier:"prefix",allowedFormats:Roe,className:"wp-block-post-terms__prefix","aria-label":(0,Fm.__)("Prefix"),placeholder:(0,Fm.__)("Prefix")+" ",value:c,onChange:_=>n({prefix:_}),tagName:"span"}),(!b||!l)&&(0,za.jsx)("span",{children:v.title}),b&&!g&&h&&f.map(_=>(0,za.jsx)("a",{href:_.link,onClick:k=>k.preventDefault(),rel:"tag",children:(0,Voe.decodeEntities)(_.name)},_.id)).reduce((_,k)=>(0,za.jsxs)(za.Fragment,{children:[_,(0,za.jsx)("span",{className:"wp-block-post-terms__separator",children:s||" "}),k]})),b&&!g&&!h&&(d?.labels?.no_terms||(0,Fm.__)("Term items not found.")),!g&&(o||u)&&(0,za.jsx)(fu.RichText,{identifier:"suffix",allowedFormats:Roe,className:"wp-block-post-terms__suffix","aria-label":(0,Fm.__)("Suffix"),placeholder:" "+(0,Fm.__)("Suffix"),value:u,onChange:_=>n({suffix:_}),tagName:"span",__unstableOnSplitAtEnd:()=>i((0,hC.createBlock)((0,hC.getDefaultBlockName)()))})]})]})}var rwe={category:Tf,post_tag:NP};function Hoe(e,t){if(t!=="core/post-terms")return e;let r=e.variations.map(o=>({...o,icon:rwe[o.name]??Tf}));return{...e,variations:r}}var owe={attributes:{textAlign:{type:"string"},term:{type:"string"},separator:{type:"string",default:", "},prefix:{type:"string",default:"",role:"content"},suffix:{type:"string",default:"",role:"content"}},supports:{anchor:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},joe=[owe];var{name:Goe}=fC,Woe={icon:Tf,edit:Ooe,deprecated:joe},awe=()=>((0,Uoe.addFilter)("blocks.registerBlockType","core/template-part",Hoe),N({name:Goe,metadata:fC,settings:Woe}));var qL={};q(qL,{init:()=>cwe,metadata:()=>vC,name:()=>eae,settings:()=>tae});var vC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-time-to-read",title:"Time to Read",category:"theme",description:"Show minutes required to finish reading the post. Can also show a word count.",textdomain:"default",usesContext:["postId","postType"],attributes:{displayAsRange:{type:"boolean",default:!0},displayMode:{type:"string",default:"time"},averageReadingSpeed:{type:"number",default:189}},supports:{anchor:!0,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}}};var Va=a(P(),1),Zoe=a(H(),1),bC=a(T(),1),fg=a(A(),1),Koe=a(G(),1),yC=a(Y(),1),Yoe=a(qoe(),1);var pc=a(y(),1);function iwe({attributes:e,setAttributes:t,context:r}){let{displayAsRange:o,displayMode:n,averageReadingSpeed:i}=e,{postId:l,postType:s}=r,c=$(),[u]=(0,yC.useEntityProp)("postType",s,"content",l),[m]=(0,yC.useEntityBlockEditor)("postType",s,{id:l}),p=(0,Zoe.useMemo)(()=>{let f;u instanceof Function?f=u({blocks:m}):m?f=(0,Koe.__unstableSerializeAndClean)(m):f=u;let h=(0,Va._x)("words","Word count type. Do not translate!"),g=(0,Yoe.count)(f||"",h);if(n==="time"){if(o){let v=Math.max(1,Math.round(g/i*1.2)),x=Math.max(1,Math.round(g/i*.8));x===v&&(v=v+1);let _=(0,Va._x)("%1$s\u2013%2$s minutes","Range of minutes to read");return(0,Va.sprintf)(_,x,v)}let b=Math.max(1,Math.round(g/i));return(0,Va.sprintf)((0,Va._n)("%s minute","%s minutes",b),b)}if(n==="words")return h==="words"?(0,Va.sprintf)((0,Va._n)("%s word","%s words",g),g.toLocaleString()):(0,Va.sprintf)((0,Va._n)("%s character","%s characters",g),g.toLocaleString())},[u,m,o,n,i]),d=(0,bC.useBlockProps)();return(0,pc.jsxs)(pc.Fragment,{children:[n==="time"&&(0,pc.jsx)(bC.InspectorControls,{children:(0,pc.jsx)(fg.__experimentalToolsPanel,{label:(0,Va.__)("Settings"),resetAll:()=>{t({displayAsRange:!0})},dropdownMenuProps:c,children:(0,pc.jsx)(fg.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Va._x)("Display as range","Turns reading time range display on or off"),hasValue:()=>!o,onDeselect:()=>{t({displayAsRange:!0})},children:(0,pc.jsx)(fg.ToggleControl,{label:(0,Va.__)("Display as range"),checked:!!o,onChange:()=>t({displayAsRange:!o})})})})}),(0,pc.jsx)("div",{...d,children:p})]})}var Qoe=iwe;var gb=a(P(),1);var lwe=[{name:"time-to-read",title:(0,gb.__)("Time to Read"),description:(0,gb.__)("Show minutes required to finish reading the post."),attributes:{displayMode:"time"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="time",icon:_1,isDefault:!0},{name:"word-count",title:(0,gb.__)("Word Count"),description:(0,gb.__)("Show the number of words in the post."),attributes:{displayMode:"words"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="words",icon:XB}],Xoe=lwe;var swe={attributes:{textAlign:{type:"string"},displayAsRange:{type:"boolean",default:!0},displayMode:{type:"string",default:"time"},averageReadingSpeed:{type:"number",default:189}},supports:{anchor:!0,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Joe=[swe];var{name:eae}=vC,tae={icon:_1,edit:Qoe,variations:Xoe,example:{},deprecated:Joe},cwe=()=>N({name:eae,metadata:vC,settings:tae});var ZL={};q(ZL,{init:()=>dwe,metadata:()=>_C,name:()=>iae,settings:()=>lae});var _C={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-title",title:"Title",category:"theme",description:"Displays the title of a post, page, or any other content-type.",textdomain:"default",usesContext:["postId","postType","queryId"],attributes:{level:{type:"number",default:2},levelOptions:{type:"array"},isLink:{type:"boolean",default:!1,role:"content"},rel:{type:"string",attribute:"rel",default:"",role:"content"},linkTarget:{type:"string",default:"_self",role:"content"},placeholder:{type:"string"}},example:{viewportWidth:350},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-title"};var Li=a(T(),1),Di=a(A(),1),On=a(P(),1),xC=a(G(),1),vb=a(Y(),1),rae=a(z(),1),oae=a(H(),1);var Kt=a(y(),1);function aae({attributes:{level:e,levelOptions:t,isLink:r,rel:o,linkTarget:n,placeholder:i},setAttributes:l,context:{postType:s,postId:c,queryId:u},insertBlocksAfter:m}){let p=e===0?"p":`h${e}`,d=Number.isFinite(u),f=(0,rae.useSelect)(E=>d?!1:E(vb.store).canUser("update",{kind:"postType",name:s,id:c}),[d,s,c]),[h="",g,b]=(0,vb.useEntityProp)("postType",s,"title",c),[v]=(0,vb.useEntityProp)("postType",s,"link",c),x=()=>{m((0,xC.createBlock)((0,xC.getDefaultBlockName)()))},_=(0,Li.useBlockProps)(),k=(0,Li.useBlockEditingMode)(),S=$(),C=(0,Kt.jsx)(p,{..._,children:i||(0,On.__)("Title")});return s&&c&&(C=f?(0,Kt.jsx)(Li.PlainText,{tagName:p,placeholder:(0,On.__)("(no title)"),value:h,onChange:g,__experimentalVersion:2,__unstableOnSplitAtEnd:x,..._}):(0,Kt.jsx)(p,{..._,dangerouslySetInnerHTML:{__html:b?.rendered||(0,On.__)("(no title)")}})),r&&s&&c&&(C=f?(0,Kt.jsx)(p,{..._,children:(0,Kt.jsx)(Li.PlainText,{tagName:"a",href:v,target:n,rel:o,placeholder:h.length?null:(0,On.__)("(no title)"),value:h,onChange:g,__experimentalVersion:2,__unstableOnSplitAtEnd:x})}):(0,Kt.jsx)(p,{..._,children:(0,Kt.jsx)("a",{href:v,target:n,rel:o,onClick:E=>E.preventDefault(),dangerouslySetInnerHTML:{__html:b?.rendered||(0,On.__)("(no title)")}})})),(0,Kt.jsxs)(Kt.Fragment,{children:[k==="default"&&(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.jsx)(Li.BlockControls,{group:"block",children:(0,Kt.jsx)(Li.HeadingLevelDropdown,{value:e,options:t,onChange:E=>l({level:E})})}),(0,Kt.jsx)(Li.InspectorControls,{children:(0,Kt.jsxs)(Di.__experimentalToolsPanel,{label:(0,On.__)("Settings"),resetAll:()=>{l({rel:"",linkTarget:"_self",isLink:!1})},dropdownMenuProps:S,children:[(0,Kt.jsx)(Di.__experimentalToolsPanelItem,{label:(0,On.__)("Make title a link"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>l({isLink:!1}),children:(0,Kt.jsx)(Di.ToggleControl,{label:(0,On.__)("Make title a link"),onChange:()=>l({isLink:!r}),checked:r})}),r&&(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.jsx)(Di.__experimentalToolsPanelItem,{label:(0,On.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>n==="_blank",onDeselect:()=>l({linkTarget:"_self"}),children:(0,Kt.jsx)(Di.ToggleControl,{label:(0,On.__)("Open in new tab"),onChange:E=>l({linkTarget:E?"_blank":"_self"}),checked:n==="_blank"})}),(0,Kt.jsx)(Di.__experimentalToolsPanelItem,{label:(0,On.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>l({rel:""}),children:(0,Kt.jsx)(Di.TextControl,{__next40pxDefaultSize:!0,label:(0,On.__)("Link relation"),help:(0,oae.createInterpolateElement)((0,On.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Kt.jsx)(Di.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:o,onChange:E=>l({rel:E})})})]})]})})]}),C]})}var mwe={attributes:{textAlign:{type:"string"},level:{type:"number",default:2},levelOptions:{type:"array"},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},pwe={attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0}},save(){return null},migrate:Ut,isEligible({style:e}){return e?.typography?.fontFamily}},nae=[mwe,pwe];var{name:iae}=_C,lae={icon:Ll,edit:aae,deprecated:nae},dwe=()=>N({name:iae,metadata:_C,settings:lae});var XL={};q(XL,{init:()=>bwe,metadata:()=>CC,name:()=>dae,settings:()=>TC});var QL=a(P(),1);var pae=a(G(),1);var KL=a(P(),1),kC=a(T(),1),wC=a(G(),1),sae=a(y(),1);function cae({attributes:e,mergeBlocks:t,setAttributes:r,onRemove:o,insertBlocksAfter:n,style:i}){let{content:l}=e,s=(0,kC.useBlockProps)({style:i});return(0,sae.jsx)(kC.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:c=>{r({content:c})},onRemove:o,"aria-label":(0,KL.__)("Preformatted text"),placeholder:(0,KL.__)("Write preformatted text\u2026"),onMerge:t,...s,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>n((0,wC.createBlock)((0,wC.getDefaultBlockName)()))})}var CC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/preformatted",title:"Preformatted",category:"text",description:"Add text that respects your spacing and tabs, and also allows styling.",textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"pre",__unstablePreserveWhiteSpace:!0,role:"content"}},supports:{anchor:!0,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-preformatted"};var SC=a(T(),1),YL=a(y(),1);function uae({attributes:e}){let{content:t}=e;return(0,YL.jsx)("pre",{...SC.useBlockProps.save(),children:(0,YL.jsx)(SC.RichText.Content,{value:t})})}var bb=a(G(),1),hwe={from:[{type:"block",blocks:["core/code","core/paragraph","core/verse"],transform:({content:e,anchor:t})=>(0,bb.createBlock)("core/preformatted",{content:e,anchor:t})},{type:"raw",isMatch:e=>e.nodeName==="PRE"&&!(e.children.length===1&&e.firstChild.nodeName==="CODE"),schema:({phrasingContentSchema:e})=>({pre:{children:e}})}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,bb.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>(0,bb.createBlock)("core/code",e)},{type:"block",blocks:["core/verse"],transform:e=>(0,bb.createBlock)("core/verse",e)}]},mae=hwe;var{fieldsKey:gwe,formKey:vwe}=Z(pae.privateApis),{name:dae}=CC,TC={icon:LP,example:{attributes:{content:(0,QL.__)(`EXT. XANADU - FAINT DAWN - 1940 (MINIATURE) |
| 96 |
Window, very small in the distance, illuminated. |
| 97 |
All around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;`)}},transforms:mae,edit:cae,save:uae,merge(e,t){return{content:e.content+` |
| 98 |
|
| 99 |
`+t.content}}};window.__experimentalContentOnlyInspectorFields&&(TC[gwe]=[{id:"content",label:(0,QL.__)("Content"),type:"text",Edit:"rich-text"}],TC[vwe]={fields:["content"]});var bwe=()=>N({name:dae,metadata:CC,settings:TC});var JL={};q(JL,{init:()=>Nwe,metadata:()=>BC,name:()=>Cae,settings:()=>EC});var xb=a(P(),1);var wae=a(G(),1);var gt=a(T(),1),hae=a(z(),1);var zd="is-style-solid-color";var fr=a(y(),1),yb={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}};function fae(e){if(!e)return;let t=e.match(/border-color:([^;]+)[;]?/);if(t&&t[1])return t[1]}function Vd(e){e=e||"<p></p>";let r=`</p>${e}<p>`.split("</p><p>");return r.shift(),r.pop(),r.join("<br>")}var ywe={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],color:{gradients:!0,background:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalStyle:{typography:{fontSize:"1.5em",lineHeight:"1.6"}}},save({attributes:e}){let{textAlign:t,citation:r,value:o}=e,n=!gt.RichText.isEmpty(r);return(0,fr.jsx)("figure",{...gt.useBlockProps.save({className:w({[`has-text-align-${t}`]:t})}),children:(0,fr.jsxs)("blockquote",{children:[(0,fr.jsx)(gt.RichText.Content,{value:o,multiline:!0}),n&&(0,fr.jsx)(gt.RichText.Content,{tagName:"cite",value:r})]})})},migrate({value:e,...t}){return{value:Vd(e),...t}}},_we={attributes:{...yb},supports:{anchor:!0,align:["left","right","wide","full"],color:{gradients:!0,background:!0,link:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0}},save({attributes:e}){let{mainColor:t,customMainColor:r,customTextColor:o,textColor:n,value:i,citation:l,className:s}=e,c=s?.includes(zd),u,m;if(c){let h=(0,gt.getColorClassName)("background-color",t);u=w({"has-background":h||r,[h]:h}),m={backgroundColor:h?void 0:r}}else r&&(m={borderColor:r});let p=(0,gt.getColorClassName)("color",n),d=w({"has-text-color":n||o,[p]:p}),f=p?void 0:{color:o};return(0,fr.jsx)("figure",{...gt.useBlockProps.save({className:u,style:m}),children:(0,fr.jsxs)("blockquote",{className:d,style:f,children:[(0,fr.jsx)(gt.RichText.Content,{value:i,multiline:!0}),!gt.RichText.isEmpty(l)&&(0,fr.jsx)(gt.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:o,customTextColor:n,...i}){let l=t?.includes(zd),s;return o&&(l?s={color:{background:o}}:s={border:{color:o}}),n&&s&&(s.color={...s.color,text:n}),{value:Vd(e),className:t,backgroundColor:l?r:void 0,borderColor:l?void 0:r,textAlign:l?"left":void 0,...i,style:s}}},xwe={attributes:{...yb,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){let{mainColor:t,customMainColor:r,textColor:o,customTextColor:n,value:i,citation:l,className:s,figureStyle:c}=e,u=s?.includes(zd),m,p;if(u){let g=(0,gt.getColorClassName)("background-color",t);m=w({"has-background":g||r,[g]:g}),p={backgroundColor:g?void 0:r}}else r?p={borderColor:r}:t&&(p={borderColor:fae(c)});let d=(0,gt.getColorClassName)("color",o),f=(o||n)&&w("has-text-color",{[d]:d});return(0,fr.jsx)("figure",{className:m,style:p,children:(0,fr.jsxs)("blockquote",{className:f,style:d?void 0:{color:n},children:[(0,fr.jsx)(gt.RichText.Content,{value:i,multiline:!0}),!gt.RichText.isEmpty(l)&&(0,fr.jsx)(gt.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,figureStyle:r,mainColor:o,customMainColor:n,customTextColor:i,...l}){let s=t?.includes(zd),c;if(n&&(s?c={color:{background:n}}:c={border:{color:n}}),i&&c&&(c.color={...c.color,text:i}),!s&&o&&r){let u=fae(r);if(u)return{value:Vd(e),...l,className:t,style:{border:{color:u}}}}return{value:Vd(e),className:t,backgroundColor:s?o:void 0,borderColor:s?void 0:o,textAlign:s?"left":void 0,...l,style:c}}},kwe={attributes:yb,save({attributes:e}){let{mainColor:t,customMainColor:r,textColor:o,customTextColor:n,value:i,citation:l,className:s}=e,c=s?.includes(zd),u,m;if(c)u=(0,gt.getColorClassName)("background-color",t),u||(m={backgroundColor:r});else if(r)m={borderColor:r};else if(t){let h=(0,hae.select)(gt.store).getSettings().colors??[];m={borderColor:(0,gt.getColorObjectByAttributeValues)(h,t).color}}let p=(0,gt.getColorClassName)("color",o),d=o||n?w("has-text-color",{[p]:p}):void 0;return(0,fr.jsx)("figure",{className:u,style:m,children:(0,fr.jsxs)("blockquote",{className:d,style:p?void 0:{color:n},children:[(0,fr.jsx)(gt.RichText.Content,{value:i,multiline:!0}),!gt.RichText.isEmpty(l)&&(0,fr.jsx)(gt.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:o,customTextColor:n,...i}){let l=t?.includes(zd),s={};return o&&(l?s={color:{background:o}}:s={border:{color:o}}),n&&s&&(s.color={...s.color,text:n}),{value:Vd(e),className:t,backgroundColor:l?r:void 0,borderColor:l?void 0:r,textAlign:l?"left":void 0,...i,style:s}}},wwe={attributes:{...yb},save({attributes:e}){let{value:t,citation:r}=e;return(0,fr.jsxs)("blockquote",{children:[(0,fr.jsx)(gt.RichText.Content,{value:t,multiline:!0}),!gt.RichText.isEmpty(r)&&(0,fr.jsx)(gt.RichText.Content,{tagName:"cite",value:r})]})},migrate({value:e,...t}){return{value:Vd(e),...t}}},Cwe={attributes:{...yb,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save({attributes:e}){let{value:t,citation:r,align:o}=e;return(0,fr.jsxs)("blockquote",{className:`align${o}`,children:[(0,fr.jsx)(gt.RichText.Content,{value:t,multiline:!0}),!gt.RichText.isEmpty(r)&&(0,fr.jsx)(gt.RichText.Content,{tagName:"footer",value:r})]})},migrate({value:e,...t}){return{value:Vd(e),...t}}},gae=[ywe,_we,xwe,kwe,wwe,Cwe];var _b=a(P(),1),dc=a(T(),1),PC=a(G(),1),yae=a(H(),1);var vae="figure";var bae="blockquote";var gs=a(y(),1),Swe=yae.Platform.OS==="web";function Twe({attributes:e,setAttributes:t,isSelected:r,insertBlocksAfter:o}){let{textAlign:n,citation:i,value:l}=e,s=(0,dc.useBlockProps)({className:w({[`has-text-align-${n}`]:n})}),c=!dc.RichText.isEmpty(i)||r;return(0,gs.jsxs)(gs.Fragment,{children:[(0,gs.jsx)(dc.BlockControls,{group:"block",children:(0,gs.jsx)(dc.AlignmentControl,{value:n,onChange:u=>{t({textAlign:u})}})}),(0,gs.jsx)(vae,{...s,children:(0,gs.jsxs)(bae,{children:[(0,gs.jsx)(dc.RichText,{identifier:"value",tagName:"p",value:l,onChange:u=>t({value:u}),"aria-label":(0,_b.__)("Pullquote text"),placeholder:(0,_b.__)("Add quote"),textAlign:"center"}),c&&(0,gs.jsx)(dc.RichText,{identifier:"citation",tagName:Swe?"cite":void 0,style:{display:"block"},value:i,"aria-label":(0,_b.__)("Pullquote citation text"),placeholder:(0,_b.__)("Add citation"),onChange:u=>t({citation:u}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>o((0,PC.createBlock)((0,PC.getDefaultBlockName)()))})]})})]})}var _ae=Twe;var BC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pullquote",title:"Pullquote",category:"text",description:"Give special visual emphasis to a quote from your text.",textdomain:"default",attributes:{value:{type:"rich-text",source:"rich-text",selector:"p",role:"content"},citation:{type:"rich-text",source:"rich-text",selector:"cite",role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{gradients:!0,background:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},dimensions:{minHeight:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalStyle:{typography:{fontSize:"1.5em",lineHeight:"1.6"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"};var hg=a(T(),1),gg=a(y(),1);function xae({attributes:e}){let{textAlign:t,citation:r,value:o}=e,n=!hg.RichText.isEmpty(r);return(0,gg.jsx)("figure",{...hg.useBlockProps.save({className:w({[`has-text-align-${t}`]:t})}),children:(0,gg.jsxs)("blockquote",{children:[(0,gg.jsx)(hg.RichText.Content,{tagName:"p",value:o}),n&&(0,gg.jsx)(hg.RichText.Content,{tagName:"cite",value:r})]})})}var hu=a(G(),1),vg=a(Qu(),1),Bwe={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,hu.createBlock)("core/pullquote",{value:(0,vg.toHTMLString)({value:(0,vg.join)(e.map(({content:t})=>(0,vg.create)({html:t})),` |
| 100 |
`)}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>(0,hu.createBlock)("core/pullquote",{value:e,anchor:t})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{let r=[];return e&&r.push((0,hu.createBlock)("core/paragraph",{content:e})),t&&r.push((0,hu.createBlock)("core/paragraph",{content:t})),r.length===0?(0,hu.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,hu.createBlock)("core/heading",{content:t});let r=(0,hu.createBlock)("core/heading",{content:e});return t?[r,(0,hu.createBlock)("core/heading",{content:t})]:r}}]},kae=Bwe;var{fieldsKey:Ewe,formKey:Iwe}=Z(wae.privateApis),{name:Cae}=BC,EC={icon:HP,example:{attributes:{value:(0,xb.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,xb.__)("Matt Mullenweg")}},transforms:kae,edit:_ae,save:xae,deprecated:gae};window.__experimentalContentOnlyInspectorFields&&(EC[Ewe]=[{id:"value",label:(0,xb.__)("Content"),type:"text",Edit:"rich-text"},{id:"citation",label:(0,xb.__)("Citation"),type:"text",Edit:"rich-text"}],EC[Iwe]={fields:["value","citation"]});var Nwe=()=>N({name:Cae,metadata:BC,settings:EC});var fM={};q(fM,{init:()=>s3e,metadata:()=>IC,name:()=>eie,settings:()=>tie});var IC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query",title:"Query Loop",category:"theme",description:"An advanced block that allows displaying post types based on different query parameters and visual configurations.",keywords:["posts","list","blog","blogs","custom post types"],textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[],format:[]}},tagName:{type:"string",default:"div"},namespace:{type:"string"},enhancedPagination:{type:"boolean",default:!1}},usesContext:["templateSlug"],providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout",enhancedPagination:"enhancedPagination"},supports:{anchor:!0,align:["wide","full"],html:!1,layout:!0,interactivity:!0},editorStyle:"wp-block-query-editor"};var Fne=a(z(),1),One=a(H(),1),Hne=a(T(),1);var UC=a(z(),1),Mne=a(pe(),1),Pb=a(H(),1),pl=a(T(),1),Ane=a(P(),1),Rne=a(Y(),1);var Aae=a(A(),1),MC=a(P(),1);var fc=a(z(),1),Od=a(H(),1),kb=a(Y(),1),NC=a(T(),1),Sae=a(jo(),1),Fd=a(P(),1),gu=a(G(),1),wb=e=>{let t=e?.reduce((r,o)=>{let{mapById:n,mapByName:i,names:l}=r;return n[o.id]=o,i[o.name]=o,l.push(o.name),r},{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},Lwe=(e,t)=>{let r=t.split("."),o=e;return r.forEach(n=>{o=o?.[n]}),o},eM=(e,t)=>(e||[]).map(r=>({...r,name:(0,Sae.decodeEntities)(Lwe(r,t))})),Tae=()=>{let e=(0,fc.useSelect)(n=>{let{getPostTypes:i}=n(kb.store),l=["attachment"];return i({per_page:-1})?.filter(({viewable:c,slug:u})=>c&&!l.includes(u))},[]),t=(0,Od.useMemo)(()=>{if(e?.length)return e.reduce((n,i)=>(n[i.slug]=i.taxonomies,n),{})},[e]),r=(0,Od.useMemo)(()=>(e||[]).map(({labels:n,slug:i})=>({label:n.singular_name,value:i})),[e]),o=(0,Od.useMemo)(()=>e?.length?e.reduce((n,i)=>(n[i.slug]=i.supports?.["post-formats"]||!1,n),{}):{},[e]);return{postTypesTaxonomiesMap:t,postTypesSelectOptions:r,postTypeFormatSupportMap:o}},DC=e=>{let t=(0,fc.useSelect)(r=>{let{getTaxonomies:o,getPostType:n}=r(kb.store);return n(e)?.taxonomies?.length>0?o({type:e,per_page:-1}):[]},[e]);return(0,Od.useMemo)(()=>t?.filter(({visibility:r})=>!!r?.publicly_queryable),[t])};function Pae(e){return(0,fc.useSelect)(t=>{let r=t(kb.store).getPostType(e);return r?.viewable&&r?.hierarchical},[e])}function Bae(e){let t=(0,fc.useSelect)(r=>!!r(kb.store).getPostType(e)?.supports?.["page-attributes"],[e]);return(0,Od.useMemo)(()=>{let r=[{label:(0,Fd.__)("Newest to oldest"),value:"date/desc"},{label:(0,Fd.__)("Oldest to newest"),value:"date/asc"},{label:(0,Fd.__)("A \u2192 Z"),value:"title/asc"},{label:(0,Fd.__)("Z \u2192 A"),value:"title/desc"}];return t&&r.push({label:(0,Fd.__)("Ascending by order"),value:"menu_order/asc"},{label:(0,Fd.__)("Descending by order"),value:"menu_order/desc"}),r},[t])}function Eae(e){return(0,fc.useSelect)(t=>t(gu.store).getActiveBlockVariation("core/query",e)?.allowedControls,[e])}function Mi(e,t){return e?e.includes(t):!0}var Iae=(e,t)=>{let{query:{postType:r,inherit:o},namespace:n}=t,i=e.map(c=>(0,gu.cloneBlock)(c)),l=[],s=[...i];for(;s.length>0;){let c=s.shift();c.name==="core/query"&&(c.attributes.query={...c.attributes.query,postType:r,inherit:o},n&&(c.attributes.namespace=n),l.push(c.clientId)),c.innerBlocks?.forEach(u=>{s.push(u)})}return{newBlocks:i,queryClientIds:l}};function Nae(e,t){return(0,fc.useSelect)(r=>{let o=r(gu.store).getActiveBlockVariation("core/query",t)?.name;if(!o)return"core/query";let{getBlockRootClientId:n,getPatternsByBlockTypes:i}=r(NC.store),l=n(e);return i(`core/query/${o}`,l).length>0?`core/query/${o}`:"core/query"},[e,t])}function Dae(e){let{activeVariationName:t,blockVariations:r}=(0,fc.useSelect)(n=>{let{getActiveBlockVariation:i,getBlockVariations:l}=n(gu.store);return{activeVariationName:i("core/query",e)?.name,blockVariations:l("core/query","block")}},[e]);return(0,Od.useMemo)(()=>{let n=l=>!l.attributes?.namespace;if(!t)return r.filter(n);let i=r.filter(l=>l.attributes?.namespace?.includes(t));return i.length?i:r.filter(n)},[t,r])}var Lae=(e,t)=>(0,fc.useSelect)(r=>{let{getBlockRootClientId:o,getPatternsByBlockTypes:n}=r(NC.store),i=o(e);return n(t,i)},[t,e]),LC=e=>(0,fc.useSelect)(t=>{let{getClientIdsOfDescendants:r,getBlockName:o}=t(NC.store);return r(e).some(n=>{let i=o(n),l=Object.is((0,gu.getBlockSupport)(i,"interactivity"),!0),s=(0,gu.getBlockSupport)(i,"interactivity.clientNavigation");return!l&&!s})},[e]);function Mae(e){if(!e)return{isSingular:!0};let t=!1,r=e==="wp"?"custom":e,o=["404","blank","single","page","custom"],n=e.includes("-")?e.split("-",1)[0]:e;return e.includes("-")&&e.split("-").slice(1).join("-")&&(r=n),t=o.includes(r),{isSingular:t,templateType:r}}var Cb=a(y(),1);function Rae({enhancedPagination:e,setAttributes:t,clientId:r}){let o=LC(r),n=(0,MC.__)("Reload the full page\u2014instead of just the posts list\u2014when visitors navigate between pages.");return o&&(n=(0,MC.__)("Enhancement disabled because there are non-compatible blocks inside the Query block.")),(0,Cb.jsx)(Cb.Fragment,{children:(0,Cb.jsx)(Aae.ToggleControl,{label:(0,MC.__)("Reload full page"),help:n,checked:!e,disabled:o,onChange:i=>{t({enhancedPagination:!i})}})})}var yt=a(A(),1),Sne=a(z(),1),Tne=a(Y(),1),hr=a(P(),1),Pne=a(pe(),1),zC=a(H(),1);var zae=a(A(),1),bg=a(P(),1),Vae=a(y(),1),Mwe=[{label:(0,bg.__)("Newest to oldest"),value:"date/desc"},{label:(0,bg.__)("Oldest to newest"),value:"date/asc"},{label:(0,bg.__)("A \u2192 Z"),value:"title/asc"},{label:(0,bg.__)("Z \u2192 A"),value:"title/desc"}];function Awe({order:e,orderBy:t,orderByOptions:r=Mwe,onChange:o}){return(0,Vae.jsx)(zae.SelectControl,{__next40pxDefaultSize:!0,label:(0,bg.__)("Order by"),value:`${t}/${e}`,options:r,onChange:n=>{let[i,l]=n.split("/");o({order:l,orderBy:i})}})}var Fae=Awe;var Oae=a(P(),1),Hae=a(A(),1),jae=a(z(),1),Uae=a(Y(),1);var Gae=a(y(),1),Rwe={who:"authors",per_page:-1,_fields:"id,name",context:"view"};function zwe({value:e,onChange:t}){let r=(0,jae.useSelect)(c=>{let{getUsers:u}=c(Uae.store);return u(Rwe)},[]);if(!r)return null;let o=wb(r),i=(e?e.toString().split(","):[]).reduce((c,u)=>{let m=o.mapById[u];return m&&c.push({id:u,value:m.name}),c},[]),l=(c,u)=>{let m=u?.id||c[u]?.id;if(m)return m},s=c=>{let u=Array.from(c.reduce((m,p)=>{let d=l(o.mapByName,p);return d&&m.add(d),m},new Set));t({author:u.join(",")})};return(0,Gae.jsx)(Hae.FormTokenField,{label:(0,Oae.__)("Authors"),value:i,suggestions:o.names,onChange:s,help:"",__next40pxDefaultSize:!0})}var Wae=zwe;var qae=a(P(),1),Zae=a(A(),1),tM=a(z(),1),rM=a(Y(),1),vu=a(H(),1),Kae=a(pe(),1);var Yae=a(y(),1),Hd=[],$ae={order:"asc",_fields:"id,title",context:"view"};function Vwe({parents:e,postType:t,onChange:r}){let[o,n]=(0,vu.useState)(""),[i,l]=(0,vu.useState)(Hd),[s,c]=(0,vu.useState)(Hd),u=(0,Kae.useDebounce)(n,250),{searchResults:m,searchHasResolved:p}=(0,tM.useSelect)(b=>{if(!o)return{searchResults:Hd,searchHasResolved:!0};let{getEntityRecords:v,hasFinishedResolution:x}=b(rM.store),_=["postType",t,{...$ae,search:o,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:v(..._),searchHasResolved:x("getEntityRecords",_)}},[o,t,e]),d=(0,tM.useSelect)(b=>{if(!e?.length)return Hd;let{getEntityRecords:v}=b(rM.store);return v("postType",t,{...$ae,include:e,per_page:e.length})},[e,t]);(0,vu.useEffect)(()=>{if(e?.length||l(Hd),!d?.length)return;let b=wb(eM(d,"title.rendered")),v=e.reduce((x,_)=>{let k=b.mapById[_];return k&&x.push({id:_,value:k.name}),x},[]);l(v)},[e,d]);let f=(0,vu.useMemo)(()=>m?.length?wb(eM(m,"title.rendered")):Hd,[m]);(0,vu.useEffect)(()=>{p&&c(f.names)},[f.names,p]);let h=(b,v)=>{let x=v?.id||b?.[v]?.id;if(x)return x},g=b=>{let v=Array.from(b.reduce((x,_)=>{let k=h(f.mapByName,_);return k&&x.add(k),x},new Set));c(Hd),r({parents:v})};return(0,Yae.jsx)(Zae.FormTokenField,{__next40pxDefaultSize:!0,label:(0,qae.__)("Parents"),value:i,onInputChange:u,suggestions:s,onChange:g,help:""})}var Qae=Vwe;var AC=a(A(),1),oM=a(z(),1),aM=a(Y(),1),bu=a(H(),1),ene=a(pe(),1),tne=a(jo(),1),RC=a(P(),1);var Om=a(y(),1),yg=[],Xae={order:"asc",_fields:"id,name",context:"view"},Fwe=(e,t)=>{let r=t?.id||e?.find(n=>n.name===t)?.id;if(r)return r;let o=t.toLocaleLowerCase();return e?.find(n=>n.name.toLocaleLowerCase()===o)?.id};function rne({onChange:e,query:t}){let{postType:r,taxQuery:o}=t,n=DC(r);return n?.length?(0,Om.jsx)(AC.__experimentalVStack,{spacing:4,children:n.map(i=>{let l=o?.include?.[i.slug]||[],s=o?.exclude?.[i.slug]||[],c=(u,m)=>{let p={...o?.[m],[i.slug]:u};u.length||delete p[i.slug];let d={...o,[m]:Object.keys(p).length?p:void 0};e({taxQuery:Object.values(d).every(f=>!f)?void 0:d})};return(0,Om.jsxs)(bu.Fragment,{children:[(0,Om.jsx)(Jae,{taxonomy:i,termIds:l,oppositeTermIds:s,onChange:u=>c(u,"include"),label:i.name}),(0,Om.jsx)(Jae,{taxonomy:i,termIds:s,oppositeTermIds:l,onChange:u=>c(u,"exclude"),label:(0,RC.sprintf)((0,RC.__)("Exclude: %s"),i.name)})]},i.slug)})}):null}function Jae({taxonomy:e,termIds:t,oppositeTermIds:r,onChange:o,label:n}){let[i,l]=(0,bu.useState)(""),[s,c]=(0,bu.useState)(yg),[u,m]=(0,bu.useState)(yg),p=(0,ene.useDebounce)(l,250),{searchResults:d,searchHasResolved:f}=(0,oM.useSelect)(b=>{if(!i)return{searchResults:yg,searchHasResolved:!0};let{getEntityRecords:v,hasFinishedResolution:x}=b(aM.store),_=[...t,...r],k=["taxonomy",e.slug,{...Xae,search:i,orderby:"name",exclude:_,per_page:20}];return{searchResults:v(...k),searchHasResolved:x("getEntityRecords",k)}},[i,e.slug,t,r]),h=(0,oM.useSelect)(b=>{if(!t?.length)return yg;let{getEntityRecords:v}=b(aM.store);return v("taxonomy",e.slug,{...Xae,include:t,per_page:t.length})},[e.slug,t]);return(0,bu.useEffect)(()=>{if(t?.length||c(yg),!h?.length)return;let b=t.reduce((v,x)=>{let _=h.find(k=>k.id===x);return _&&v.push({id:x,value:_.name}),v},[]);c(b)},[t,h]),(0,bu.useEffect)(()=>{f&&m(d.map(b=>b.name))},[d,f]),(0,Om.jsx)("div",{className:"block-library-query-inspector__taxonomy-control",children:(0,Om.jsx)(AC.FormTokenField,{label:n,value:s,onInputChange:p,suggestions:u,displayTransform:tne.decodeEntities,onChange:b=>{let v=new Set;for(let x of b){let _=Fwe(d,x);_&&v.add(_)}m(yg),o(Array.from(v))},help:"",__next40pxDefaultSize:!0})})}var one=a(A(),1),ane=a(z(),1),nne=a(Y(),1),ml=a(P(),1),ine=a(y(),1),Owe=[{value:"aside",label:(0,ml.__)("Aside")},{value:"audio",label:(0,ml.__)("Audio")},{value:"chat",label:(0,ml.__)("Chat")},{value:"gallery",label:(0,ml.__)("Gallery")},{value:"image",label:(0,ml.__)("Image")},{value:"link",label:(0,ml.__)("Link")},{value:"quote",label:(0,ml.__)("Quote")},{value:"standard",label:(0,ml.__)("Standard")},{value:"status",label:(0,ml.__)("Status")},{value:"video",label:(0,ml.__)("Video")}].sort((e,t)=>{let r=e.label.toUpperCase(),o=t.label.toUpperCase();return r<o?-1:r>o?1:0});function Hwe(e,t){return e.map(r=>t.find(o=>o.label.toLocaleLowerCase()===r.toLocaleLowerCase())?.value).filter(Boolean)}function lne({onChange:e,query:{format:t}}){let r=Array.isArray(t)?t:[t],{supportedFormats:o}=(0,ane.useSelect)(s=>({supportedFormats:s(nne.store).getThemeSupports().formats}),[]),n=Owe.filter(s=>o.includes(s.value)),i=r.map(s=>n.find(c=>c.value===s)?.label).filter(Boolean),l=n.filter(s=>!r.includes(s.value)).map(s=>s.label);return(0,ine.jsx)(one.FormTokenField,{label:(0,ml.__)("Formats"),value:i,suggestions:l,onChange:s=>{e({format:Hwe(s,n)})},help:"",__experimentalExpandOnFocus:!0,__next40pxDefaultSize:!0})}var sne=a(A(),1),jd=a(P(),1),cne=a(y(),1),jwe=[{label:(0,jd.__)("Include"),value:""},{label:(0,jd.__)("Ignore"),value:"ignore"},{label:(0,jd.__)("Exclude"),value:"exclude"},{label:(0,jd.__)("Only"),value:"only"}];function une({value:e,onChange:t}){return(0,cne.jsx)(sne.SelectControl,{__next40pxDefaultSize:!0,label:(0,jd.__)("Sticky posts"),options:jwe,value:e,onChange:t,help:(0,jd.__)("Sticky posts always appear first, regardless of their publish date.")})}var dne=a(A(),1),fne=a(P(),1),hne=a(y(),1),mne=1,pne=100,Uwe=({perPage:e,offset:t=0,onChange:r})=>(0,hne.jsx)(dne.RangeControl,{__next40pxDefaultSize:!0,label:(0,fne.__)("Items per page"),min:mne,max:pne,onChange:o=>{isNaN(o)||o<mne||o>pne||r({perPage:o,offset:t})},value:parseInt(e,10)}),gne=Uwe;var bne=a(A(),1),yne=a(P(),1),_ne=a(y(),1),vne=0,Gwe=100,Wwe=({offset:e=0,onChange:t})=>(0,_ne.jsx)(bne.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,yne.__)("Offset"),value:e,min:vne,onChange:r=>{isNaN(r)||r<vne||r>Gwe||t({offset:r})}}),xne=Wwe;var kne=a(A(),1),nM=a(P(),1),wne=a(y(),1),$we=({pages:e,onChange:t})=>(0,wne.jsx)(kne.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,nM.__)("Max pages to show"),value:e,min:0,onChange:r=>{isNaN(r)||r<0||t({pages:r})},help:(0,nM.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")}),Cne=$we;var Xe=a(y(),1);function Bne(e){let{attributes:t,setQuery:r,isSingular:o}=e,{query:n}=t,{order:i,orderBy:l,author:s,pages:c,postType:u,perPage:m,offset:p,sticky:d,inherit:f,taxQuery:h,parents:g,format:b}=n,v=Eae(t),x=u==="post",{postTypesTaxonomiesMap:_,postTypesSelectOptions:k,postTypeFormatSupportMap:S}=Tae(),C=DC(u),E=Pae(u),I=te=>{let He={postType:te},st=_[te];if(st?.length&&h){let Me=we=>Object.entries(we||{}).reduce((rt,[Ue,et])=>(st.includes(Ue)&&(rt[Ue]=et),rt),{}),se={},_t=Me(h.include);Object.keys(_t).length&&(se.include=_t);let Ve=Me(h.exclude);Object.keys(Ve).length&&(se.exclude=Ve),He.taxQuery=Object.keys(se).length?se:void 0}te!=="post"&&(He.sticky=""),He.parents=[],S[te]||(He.format=[]),r(He)},[D,M]=(0,zC.useState)(n.search),F=(0,zC.useMemo)(()=>(0,Pne.debounce)(te=>{r({search:te})},250),[r]),R=Bae(u),V=Mi(v,"inherit"),B=!f&&Mi(v,"postType"),j=(0,hr.__)("Post type"),U=(0,hr.__)("Select the type of content to display: posts, pages, or custom post types."),O=!f&&Mi(v,"order"),K=!f&&x&&Mi(v,"sticky"),W=V||B||O||K,ee=!!C?.length&&Mi(v,"taxQuery"),oe=Mi(v,"author"),X=Mi(v,"search"),J=Mi(v,"parents")&&E,ne=S[u],ie=(0,Sne.useSelect)(te=>{if(!ne||!Mi(v,"format"))return!1;let He=te(Tne.store).getThemeSupports();return He.formats&&He.formats.length>0&&He.formats.some(st=>st!=="standard")},[v,ne]),ue=ee||oe||X||J||ie,fe=$(),Oe=Mi(v,"postCount"),ke=Mi(v,"offset"),ae=Mi(v,"pages"),Te=Oe||ke||ae,Le=o&&f;return(0,Xe.jsxs)(Xe.Fragment,{children:[W&&(0,Xe.jsxs)(yt.__experimentalToolsPanel,{label:(0,hr.__)("Settings"),resetAll:()=>{r({postType:"post",order:"desc",orderBy:"date",sticky:"",inherit:!0})},dropdownMenuProps:fe,children:[V&&(0,Xe.jsx)(yt.__experimentalToolsPanelItem,{hasValue:()=>!f,label:(0,hr.__)("Query type"),onDeselect:()=>r({inherit:!0}),isShownByDefault:!0,children:(0,Xe.jsxs)(yt.__experimentalVStack,{spacing:4,children:[(0,Xe.jsxs)(yt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,hr.__)("Query type"),isBlock:!0,onChange:te=>{r({inherit:te==="default"})},help:f?(0,hr.__)("Display a list of posts or custom post types based on the current template."):(0,hr.__)("Display a list of posts or custom post types based on specific criteria."),value:f?"default":"custom",children:[(0,Xe.jsx)(yt.__experimentalToggleGroupControlOption,{value:"default",label:(0,hr.__)("Default")}),(0,Xe.jsx)(yt.__experimentalToggleGroupControlOption,{value:"custom",label:(0,hr.__)("Custom")})]}),Le&&(0,Xe.jsx)(yt.Notice,{status:"warning",isDismissible:!1,children:(0,hr.__)("Cannot inherit the current template query when placed inside the singular content (e.g., post, page, 404, blank).")})]})}),B&&(0,Xe.jsx)(yt.__experimentalToolsPanelItem,{hasValue:()=>u!=="post",label:j,onDeselect:()=>I("post"),isShownByDefault:!0,children:k.length>2?(0,Xe.jsx)(yt.SelectControl,{__next40pxDefaultSize:!0,options:k,value:u,label:j,onChange:I,help:U}):(0,Xe.jsx)(yt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,isBlock:!0,value:u,label:j,onChange:I,help:U,children:k.map(te=>(0,Xe.jsx)(yt.__experimentalToggleGroupControlOption,{value:te.value,label:te.label},te.value))})}),O&&(0,Xe.jsx)(yt.__experimentalToolsPanelItem,{hasValue:()=>i!=="desc"||l!=="date",label:(0,hr.__)("Order by"),onDeselect:()=>r({order:"desc",orderBy:"date"}),isShownByDefault:!0,children:(0,Xe.jsx)(Fae,{order:i,orderBy:l,orderByOptions:R,onChange:r})}),K&&(0,Xe.jsx)(yt.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,hr.__)("Sticky posts"),onDeselect:()=>r({sticky:""}),isShownByDefault:!0,children:(0,Xe.jsx)(une,{value:d,onChange:te=>r({sticky:te})})})]}),!f&&Te&&(0,Xe.jsxs)(yt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__display",label:(0,hr.__)("Display"),resetAll:()=>{r({offset:0,pages:0})},dropdownMenuProps:fe,children:[(0,Xe.jsx)(yt.__experimentalToolsPanelItem,{label:(0,hr.__)("Items per page"),hasValue:()=>m>0,children:(0,Xe.jsx)(gne,{perPage:m,offset:p,onChange:r})}),(0,Xe.jsx)(yt.__experimentalToolsPanelItem,{label:(0,hr.__)("Offset"),hasValue:()=>p>0,onDeselect:()=>r({offset:0}),children:(0,Xe.jsx)(xne,{offset:p,onChange:r})}),(0,Xe.jsx)(yt.__experimentalToolsPanelItem,{label:(0,hr.__)("Max pages to show"),hasValue:()=>c>0,onDeselect:()=>r({pages:0}),children:(0,Xe.jsx)(Cne,{pages:c,onChange:r})})]}),!f&&ue&&(0,Xe.jsxs)(yt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,hr.__)("Filters"),resetAll:()=>{r({author:"",parents:[],search:"",taxQuery:null,format:[]}),M("")},dropdownMenuProps:fe,children:[ee&&(0,Xe.jsx)(yt.__experimentalToolsPanelItem,{label:(0,hr.__)("Taxonomies"),hasValue:()=>Object.values(h||{}).some(te=>Object.values(te||{}).some(He=>!!He?.length)),onDeselect:()=>r({taxQuery:null}),children:(0,Xe.jsx)(rne,{onChange:r,query:n})}),oe&&(0,Xe.jsx)(yt.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,hr.__)("Authors"),onDeselect:()=>r({author:""}),children:(0,Xe.jsx)(Wae,{value:s,onChange:r})}),X&&(0,Xe.jsx)(yt.__experimentalToolsPanelItem,{hasValue:()=>!!D,label:(0,hr.__)("Keyword"),onDeselect:()=>{r({search:""}),M("")},children:(0,Xe.jsx)(yt.TextControl,{__next40pxDefaultSize:!0,label:(0,hr.__)("Keyword"),value:D,onChange:te=>{F(te),M(te)}})}),J&&(0,Xe.jsx)(yt.__experimentalToolsPanelItem,{hasValue:()=>!!g?.length,label:(0,hr.__)("Parents"),onDeselect:()=>r({parents:[]}),children:(0,Xe.jsx)(Qae,{parents:g,postType:u,onChange:r})}),ie&&(0,Xe.jsx)(yt.__experimentalToolsPanelItem,{hasValue:()=>!!b?.length,label:(0,hr.__)("Formats"),onDeselect:()=>r({format:[]}),children:(0,Xe.jsx)(lne,{onChange:r,query:n})})]})]})}var xg=a(A(),1),Sb=a(P(),1),VC=a(H(),1);var _g=a(y(),1),Ene="wp-block-query-enhanced-pagination-modal__description";function Ine({clientId:e,attributes:{enhancedPagination:t},setAttributes:r}){let[o,n]=(0,VC.useState)(!1),i=LC(e);(0,VC.useEffect)(()=>{t&&i&&(r({enhancedPagination:!1}),n(!0))},[t,i,r]);let l=()=>{n(!1)},s=(0,Sb.__)("Currently, avoiding full page reloads is not possible when non-interactive or non-client Navigation compatible blocks from plugins are present inside the Query block.")+" "+(0,Sb.__)('If you still want to prevent full page reloads, remove that block, then disable "Reload full page" again in the Query Block settings.');return o&&(0,_g.jsx)(xg.Modal,{title:(0,Sb.__)("Query block: Reload full page enabled"),className:"wp-block-query__enhanced-pagination-modal",aria:{describedby:Ene},role:"alertdialog",focusOnMount:"firstElement",isDismissible:!1,onRequestClose:l,children:(0,_g.jsxs)(xg.__experimentalVStack,{alignment:"right",spacing:5,children:[(0,_g.jsx)("span",{id:Ene,children:s}),(0,_g.jsx)(xg.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:l,children:(0,Sb.__)("OK")})]})})}var Cg=a(A(),1),lM=a(P(),1),Lne=a(z(),1),HC=a(T(),1);var kg=a(H(),1),Nne=a(z(),1),OC=a(A(),1),wg=a(T(),1),FC=a(P(),1);var yu=a(y(),1);function Dne({clientId:e,attributes:t,setIsPatternSelectionModalOpen:r}){return(0,yu.jsx)(OC.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,FC.__)("Choose a pattern"),onRequestClose:()=>r(!1),isFullScreen:!0,children:(0,yu.jsx)(iM,{clientId:e,attributes:t})})}function Tb(e,t){let r=Nae(e,t),o=Lae(e,r);return(0,kg.useMemo)(()=>o.filter(i=>i.blocks?.[0]?.name==="core/query"),[o])}function iM({clientId:e,attributes:t,showTitlesAsTooltip:r=!1,showSearch:o=!0}){let[n,i]=(0,kg.useState)(""),{replaceBlock:l,selectBlock:s}=(0,Nne.useDispatch)(wg.store),c=Tb(e,t),u=(0,kg.useMemo)(()=>({previewPostType:t.query.postType}),[t.query.postType]),m=(0,kg.useMemo)(()=>yv(c,n),[c,n]),p=(d,f)=>{let{newBlocks:h,queryClientIds:g}=Iae(f,t);l(e,h),g[0]&&s(g[0])};return(0,yu.jsxs)("div",{className:"block-library-query-pattern__selection-content",children:[o&&(0,yu.jsx)("div",{className:"block-library-query-pattern__selection-search",children:(0,yu.jsx)(OC.SearchControl,{onChange:i,value:n,label:(0,FC.__)("Search"),placeholder:(0,FC.__)("Search")})}),(0,yu.jsx)(wg.BlockContextProvider,{value:u,children:(0,yu.jsx)(wg.__experimentalBlockPatternsList,{blockPatterns:m,onClickPattern:p,showTitlesAsTooltip:r})})]})}var Ud=a(y(),1);function qwe({clientId:e,attributes:t,hasInnerBlocks:r}){if(!Tb(e,t).length)return null;let n=r?(0,lM.__)("Change design"):(0,lM.__)("Choose pattern");return(0,Ud.jsx)(HC.BlockControls,{group:"other",children:(0,Ud.jsx)(Cg.__experimentalDropdownContentWrapper,{children:(0,Ud.jsx)(Cg.Dropdown,{contentClassName:"block-editor-block-settings-menu__popover",focusOnMount:"firstElement",expandOnMobile:!0,renderToggle:({isOpen:i,onToggle:l})=>(0,Ud.jsx)(Cg.ToolbarButton,{"aria-haspopup":"true","aria-expanded":i,onClick:l,children:n}),renderContent:()=>(0,Ud.jsx)(iM,{clientId:e,attributes:t,showSearch:!1,showTitlesAsTooltip:!0})})})})}function jC(e){return(0,Lne.useSelect)(r=>{let{isLockedBlock:o}=Z(r(HC.store));return o(e.clientId)},[e.clientId])?null:(0,Ud.jsx)(qwe,{...e})}var Ai=a(y(),1),{HTMLElementControl:Zwe}=Z(pl.privateApis),Kwe=3,Ywe=[["core/post-template"]];function sM({attributes:e,setAttributes:t,clientId:r,context:o,name:n,isSelected:i}){let{queryId:l,query:s,enhancedPagination:c,tagName:u="div",query:{inherit:m}={}}=e,{templateSlug:p}=o,{isSingular:d}=Mae(p),{__unstableMarkNextChangeAsNotPersistent:f}=(0,UC.useDispatch)(pl.store),h=(0,Mne.useInstanceId)(sM),g=(0,pl.useBlockProps)(),b=(0,pl.useInnerBlocksProps)(g,{template:Ywe}),{postsPerPage:v}=(0,UC.useSelect)(_=>{let{getSettings:k}=_(pl.store),{getEntityRecord:S,getEntityRecordEdits:C,canUser:E}=_(Rne.store),I=E("read",{kind:"root",name:"site"})?+S("root","site")?.posts_per_page:+k().postsPerPage;return{postsPerPage:+C("root","site")?.posts_per_page||I||Kwe}},[]),x=(0,Pb.useCallback)(_=>t(k=>({query:{...k.query,..._}})),[t]);return(0,Pb.useEffect)(()=>{let _={};(m&&s.perPage!==v||!s.perPage&&v)&&(_.perPage=v),Object.keys(_).length&&(f(),x(_))},[s.perPage,m,v,f,x]),(0,Pb.useEffect)(()=>{Number.isFinite(l)||(f(),t({queryId:h}))},[l,h,f,t]),(0,Ai.jsxs)(Ai.Fragment,{children:[i&&(0,Ai.jsx)(jC,{clientId:r,attributes:e,hasInnerBlocks:!0}),(0,Ai.jsx)(Ine,{attributes:e,setAttributes:t,clientId:r}),(0,Ai.jsx)(pl.InspectorControls,{children:(0,Ai.jsx)(Bne,{name:n,attributes:e,setQuery:x,setAttributes:t,clientId:r,isSingular:d})}),(0,Ai.jsxs)(pl.InspectorControls,{group:"advanced",children:[(0,Ai.jsx)(Zwe,{tagName:u,onChange:_=>t({tagName:_}),clientId:r,options:[{label:(0,Ane.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]}),(0,Ai.jsx)(Rae,{enhancedPagination:c,setAttributes:t,clientId:r})]}),(0,Ai.jsx)(u,{...b})]})}var WC=a(z(),1),$C=a(G(),1),cM=a(H(),1),Gd=a(T(),1),Bb=a(A(),1),GC=a(P(),1),zne=a(pe(),1);var hc=a(y(),1);function Vne({attributes:e,clientId:t,name:r,openPatternSelectionModal:o,isSelected:n}){let[i,l]=(0,cM.useState)(!1),[s,c]=(0,cM.useState)(0),u=(0,zne.useResizeObserver)(([x])=>{c(x.contentRect.width)}),p=s>0&&s<160,{blockType:d,activeBlockVariation:f}=(0,WC.useSelect)(x=>{let{getActiveBlockVariation:_,getBlockType:k}=x($C.store);return{blockType:k(r),activeBlockVariation:_(r,e)}},[r,e]),h=!!Tb(t,e).length,g=f?.icon?.src||f?.icon||d?.icon?.src,b=f?.title||d?.title,v=(0,Gd.useBlockProps)({ref:u});return i?(0,hc.jsx)(Qwe,{clientId:t,attributes:e,icon:g,label:b}):(0,hc.jsxs)("div",{...v,children:[n&&(0,hc.jsx)(jC,{clientId:t,attributes:e,hasInnerBlocks:!1}),(0,hc.jsxs)(Bb.Placeholder,{className:"block-editor-media-placeholder",icon:!p&&g,label:!p&&b,instructions:!p&&(0,GC.__)("Choose a pattern for the query loop or start blank."),withIllustration:p,children:[!!h&&!p&&(0,hc.jsx)(Bb.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:o,children:(0,GC.__)("Choose")}),!p&&(0,hc.jsx)(Bb.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{l(!0)},children:(0,GC.__)("Start blank")})]})]})}function Qwe({clientId:e,attributes:t,icon:r,label:o}){let n=Dae(t),{replaceInnerBlocks:i}=(0,WC.useDispatch)(Gd.store),l=(0,Gd.useBlockProps)();return(0,hc.jsx)("div",{...l,children:(0,hc.jsx)(Gd.__experimentalBlockVariationPicker,{icon:r,label:o,variations:n,onSelect:s=>{s.innerBlocks&&i(e,(0,$C.createBlocksFromInnerBlocksTemplate)(s.innerBlocks),!1)}})})}var Wd=a(y(),1),Xwe=e=>{let{clientId:t,attributes:r}=e,[o,n]=(0,One.useState)(!1),l=(0,Fne.useSelect)(s=>!!s(Hne.store).getBlocks(t).length,[t])?sM:Vne;return(0,Wd.jsxs)(Wd.Fragment,{children:[(0,Wd.jsx)(l,{...e,openPatternSelectionModal:()=>n(!0)}),o&&(0,Wd.jsx)(Dne,{clientId:t,attributes:r,setIsPatternSelectionModalOpen:n})]})},jne=Xwe;var qC=a(T(),1),Une=a(y(),1);function Gne({attributes:{tagName:e="div"}}){let t=qC.useBlockProps.save(),r=qC.useInnerBlocksProps.save(t);return(0,Une.jsx)(e,{...r})}var Eb=a(P(),1);var gc=a(A(),1),_u=a(y(),1),Wne=(0,_u.jsx)(gc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,_u.jsx)(gc.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})}),$ne=(0,_u.jsx)(gc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,_u.jsx)(gc.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})}),qne=(0,_u.jsx)(gc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,_u.jsx)(gc.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})}),Zne=(0,_u.jsx)(gc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,_u.jsx)(gc.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})});var uM=["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],Jwe=[{name:"title-date",title:(0,Eb.__)("Title & Date"),icon:Wne,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],uM]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,Eb.__)("Title & Excerpt"),icon:$ne,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-date-excerpt",title:(0,Eb.__)("Title, Date, & Excerpt"),icon:qne,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],uM,["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,Eb.__)("Image, Date, & Title"),icon:Zne,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],uM,["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}],Kne=Jwe;var ZC=a(G(),1),Fa=a(T(),1);var $d=a(y(),1),{cleanEmptyObject:mM}=Z(Fa.privateApis),pM=e=>{let{query:t}=e,{categoryIds:r,tagIds:o,taxQuery:n,...i}=t;return(r?.length||o?.length)&&(i.taxQuery={include:{category:r?.length?r:void 0,post_tag:o?.length?o:void 0}}),Object.keys(n||{}).length&&(i.taxQuery={include:n}),{...e,query:i}},Yne=(e,t)=>{let{style:r,backgroundColor:o,gradient:n,textColor:i,...l}=e;if(!(o||n||i||r?.color||r?.elements?.link))return[e,t];if(r&&(l.style=mM({...r,color:void 0,elements:{...r.elements,link:void 0}})),e3e(t)){let u=t[0],p=r?.color||r?.elements?.link||u.attributes.style?mM({...u.attributes.style,color:r?.color,elements:r?.elements?.link?{link:r?.elements?.link}:void 0}):void 0,d=(0,ZC.createBlock)("core/group",{...u.attributes,backgroundColor:o,gradient:n,textColor:i,style:p},u.innerBlocks);return[l,[d]]}let c=(0,ZC.createBlock)("core/group",{backgroundColor:o,gradient:n,textColor:i,style:mM({color:r?.color,elements:r?.elements?.link?{link:r?.elements?.link}:void 0})},t);return[l,[c]]},e3e=(e=[])=>e.length===1&&e[0].name==="core/group",dM=e=>{let{layout:t=null}=e;if(!t)return e;let{inherit:r=null,contentSize:o=null,...n}=t;return r||o?{...e,layout:{...n,contentSize:o,type:"constrained"}}:e},Qne=(e=[])=>{let t=null;for(let r of e)if(r.name==="core/post-template"){t=r;break}else r.innerBlocks.length&&(t=Qne(r.innerBlocks));return t},Xne=(e=[],t)=>(e.forEach((r,o)=>{r.name==="core/post-template"?e.splice(o,1,t):r.innerBlocks.length&&(r.innerBlocks=Xne(r.innerBlocks,t))}),e),Sg=(e,t)=>{let{displayLayout:r=null,...o}=e;if(!r)return[e,t];let n=Qne(t);if(!n)return[e,t];let{type:i,columns:l}=r,s=i==="flex"?"grid":"default",c=(0,ZC.createBlock)("core/post-template",{...n.attributes,layout:{type:s,...l&&{columnCount:l}}},n.innerBlocks);return[o,Xne(t,c)]},t3e={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},layout:{type:"object",default:{type:"list"}}},supports:{html:!1},migrate(e,t){let r=pM(e),{layout:o,...n}=r,i={...n,displayLayout:r.layout};return Sg(i,t)},save(){return(0,$d.jsx)(Fa.InnerBlocks.Content,{})}},r3e={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},layout:!0},isEligible:({query:{categoryIds:e,tagIds:t}={}})=>e||t,migrate(e,t){let r=pM(e),[o,n]=Yne(r,t),i=dM(o);return Sg(i,n)},save({attributes:{tagName:e="div"}}){let t=Fa.useBlockProps.save(),r=Fa.useInnerBlocksProps.save(t);return(0,$d.jsx)(e,{...r})}},o3e={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},isEligible(e){let{style:t,backgroundColor:r,gradient:o,textColor:n}=e;return r||o||n||t?.color||t?.elements?.link},migrate(e,t){let[r,o]=Yne(e,t),n=dM(r);return Sg(n,o)},save({attributes:{tagName:e="div"}}){let t=Fa.useBlockProps.save(),r=Fa.useInnerBlocksProps.save(t);return(0,$d.jsx)(e,{...r})}},a3e={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},save({attributes:{tagName:e="div"}}){let t=Fa.useBlockProps.save(),r=Fa.useInnerBlocksProps.save(t);return(0,$d.jsx)(e,{...r})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&e?.type!=="constrained",migrate(e,t){let r=dM(e);return Sg(r,t)}},n3e={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,layout:!0},save({attributes:{tagName:e="div"}}){let t=Fa.useBlockProps.save(),r=Fa.useInnerBlocksProps.save(t);return(0,$d.jsx)(e,{...r})},isEligible:({displayLayout:e})=>!!e,migrate:Sg},i3e={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[],format:[]}},tagName:{type:"string",default:"div"},namespace:{type:"string"},enhancedPagination:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1,layout:!0,interactivity:!0,contentRole:!0},save({attributes:{tagName:e="div"}}){let t=Fa.useBlockProps.save(),r=Fa.useInnerBlocksProps.save(t);return(0,$d.jsx)(e,{...r})},isEligible:({query:{taxQuery:e}={}})=>!!e&&Object.keys(e).some(t=>!["include","exclude"].includes(t)),migrate(e,t){let r=pM(e);return Sg(r,t)}},l3e=[i3e,n3e,a3e,o3e,r3e,t3e],Jne=l3e;var{name:eie}=IC,tie={icon:xp,edit:jne,example:{viewportWidth:650,attributes:{namespace:"core/posts-list",query:{perPage:4,pages:1,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",sticky:"exclude",inherit:!1}},innerBlocks:[{name:"core/post-template",attributes:{layout:{type:"grid",columnCount:2}},innerBlocks:[{name:"core/post-title"},{name:"core/post-date",attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}},{name:"core/post-excerpt"}]}]},save:Gne,variations:Kne,deprecated:Jne},s3e=()=>N({name:eie,metadata:IC,settings:tie});var hM={};q(hM,{init:()=>m3e,metadata:()=>KC,name:()=>cie,settings:()=>uie});var sie=a(P(),1);var KC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-no-results",title:"No Results",category:"theme",description:"Contains the block elements used to render content when no query results are found.",ancestor:["core/query"],textdomain:"default",usesContext:["queryId","query"],supports:{anchor:!0,align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var YC=a(T(),1),rie=a(P(),1),oie=a(y(),1),u3e=[["core/paragraph",{placeholder:(0,rie.__)("Add text or blocks that will display when a query returns no results.")}]];function aie(){let e=(0,YC.useBlockProps)(),t=(0,YC.useInnerBlocksProps)(e,{template:u3e});return(0,oie.jsx)("div",{...t})}var nie=a(T(),1),iie=a(y(),1);function lie(){return(0,iie.jsx)(nie.InnerBlocks.Content,{})}var{name:cie}=KC,uie={icon:xp,edit:aie,save:lie,example:{innerBlocks:[{name:"core/paragraph",attributes:{content:(0,sie.__)("No posts were found.")}}]}},m3e=()=>N({name:cie,metadata:KC,settings:uie});var bM={};q(bM,{init:()=>h3e,metadata:()=>QC,name:()=>xie,settings:()=>kie});var QC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination",title:"Pagination",category:"theme",ancestor:["core/query"],allowedBlocks:["core/query-pagination-previous","core/query-pagination-numbers","core/query-pagination-next"],description:"Displays a paginated navigation to next/previous set of posts, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"},showLabel:{type:"boolean",default:!0}},usesContext:["queryId","query"],providesContext:{paginationArrow:"paginationArrow",showLabel:"showLabel"},supports:{anchor:!0,align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-query-pagination-editor",style:"wp-block-query-pagination"};var XC=a(P(),1),xu=a(T(),1),JC=a(z(),1),Ib=a(A(),1),hie=a(H(),1);var qd=a(P(),1),Tg=a(A(),1),Pg=a(y(),1);function mie({value:e,onChange:t}){return(0,Pg.jsxs)(Tg.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,qd.__)("Arrow"),value:e,onChange:t,help:(0,qd.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0,children:[(0,Pg.jsx)(Tg.__experimentalToggleGroupControlOption,{value:"none",label:(0,qd._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,Pg.jsx)(Tg.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,qd._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,Pg.jsx)(Tg.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,qd._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")})]})}var gM=a(P(),1),pie=a(A(),1),die=a(y(),1);function fie({value:e,onChange:t}){return(0,die.jsx)(pie.ToggleControl,{label:(0,gM.__)("Show label text"),help:(0,gM.__)('Make label text visible, e.g. "Next Page".'),onChange:t,checked:e===!0})}var dl=a(y(),1),d3e=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]];function gie({attributes:{paginationArrow:e,showLabel:t},setAttributes:r,clientId:o}){let n=(0,JC.useSelect)(u=>{let{getBlocks:m}=u(xu.store);return m(o)?.find(d=>["core/query-pagination-next","core/query-pagination-previous"].includes(d.name))},[o]),{__unstableMarkNextChangeAsNotPersistent:i}=(0,JC.useDispatch)(xu.store),l=$(),s=(0,xu.useBlockProps)(),c=(0,xu.useInnerBlocksProps)(s,{template:d3e});return(0,hie.useEffect)(()=>{e==="none"&&!t&&(i(),r({showLabel:!0}))},[e,r,t,i]),(0,dl.jsxs)(dl.Fragment,{children:[n&&(0,dl.jsx)(xu.InspectorControls,{children:(0,dl.jsxs)(Ib.__experimentalToolsPanel,{label:(0,XC.__)("Settings"),resetAll:()=>{r({paginationArrow:"none",showLabel:!0})},dropdownMenuProps:l,children:[(0,dl.jsx)(Ib.__experimentalToolsPanelItem,{hasValue:()=>e!=="none",label:(0,XC.__)("Pagination arrow"),onDeselect:()=>r({paginationArrow:"none"}),isShownByDefault:!0,children:(0,dl.jsx)(mie,{value:e,onChange:u=>{r({paginationArrow:u})}})}),e!=="none"&&(0,dl.jsx)(Ib.__experimentalToolsPanelItem,{hasValue:()=>!t,label:(0,XC.__)("Show text"),onDeselect:()=>r({showLabel:!0}),isShownByDefault:!0,children:(0,dl.jsx)(fie,{value:t,onChange:u=>{r({showLabel:u})}})})]})}),(0,dl.jsx)("nav",{...c})]})}var vie=a(T(),1),bie=a(y(),1);function yie(){return(0,bie.jsx)(vie.InnerBlocks.Content,{})}var e6=a(T(),1),vM=a(y(),1),f3e=[{save(){return(0,vM.jsx)("div",{...e6.useBlockProps.save(),children:(0,vM.jsx)(e6.InnerBlocks.Content,{})})}}],_ie=f3e;var{name:xie}=QC,kie={icon:i1,edit:gie,save:yie,deprecated:_ie},h3e=()=>N({name:xie,metadata:QC,settings:kie});var _M={};q(_M,{init:()=>b3e,metadata:()=>t6,name:()=>Cie,settings:()=>Sie});var t6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-next",title:"Next Page",category:"theme",parent:["core/query-pagination"],description:"Displays the next posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow","showLabel","enhancedPagination"],supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var yM=a(P(),1),r6=a(T(),1),Nb=a(y(),1),v3e={none:"",arrow:"\u2192",chevron:"\xBB"};function wie({attributes:{label:e},setAttributes:t,context:{paginationArrow:r,showLabel:o}}){let n=v3e[r];return(0,Nb.jsxs)("a",{href:"#pagination-next-pseudo-link",onClick:i=>i.preventDefault(),...(0,r6.useBlockProps)(),children:[o&&(0,Nb.jsx)(r6.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,yM.__)("Next page link"),placeholder:(0,yM.__)("Next Page"),value:e,onChange:i=>t({label:i})}),n&&(0,Nb.jsx)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${r}`,"aria-hidden":!0,children:n})]})}var{name:Cie}=t6,Sie={icon:o1,edit:wie},b3e=()=>N({name:Cie,metadata:t6,settings:Sie});var xM={};q(xM,{init:()=>x3e,metadata:()=>o6,name:()=>Pie,settings:()=>Bie});var o6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-numbers",title:"Page Numbers",category:"theme",parent:["core/query-pagination"],description:"Displays a list of page numbers for pagination.",textdomain:"default",attributes:{midSize:{type:"number",default:2}},usesContext:["queryId","query","enhancedPagination"],supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-query-pagination-numbers-editor"};var Lb=a(P(),1),a6=a(T(),1),Bg=a(A(),1);var Ri=a(y(),1),Db=(e,t="a",r="")=>(0,Ri.jsx)(t,{className:`page-numbers ${r}`,children:e},e),_3e=e=>{let t=[];for(let r=1;r<=e;r++)t.push(Db(r));t.push(Db(e+1,"span","current"));for(let r=1;r<=e;r++)t.push(Db(e+1+r));return t.push(Db("...","span","dots")),t.push(Db(e*2+3)),(0,Ri.jsx)(Ri.Fragment,{children:t})};function Tie({attributes:e,setAttributes:t}){let{midSize:r}=e,o=_3e(parseInt(r,10)),n=$();return(0,Ri.jsxs)(Ri.Fragment,{children:[(0,Ri.jsx)(a6.InspectorControls,{children:(0,Ri.jsx)(Bg.__experimentalToolsPanel,{label:(0,Lb.__)("Settings"),resetAll:()=>t({midSize:2}),dropdownMenuProps:n,children:(0,Ri.jsx)(Bg.__experimentalToolsPanelItem,{label:(0,Lb.__)("Number of links"),hasValue:()=>r!==2,onDeselect:()=>t({midSize:2}),isShownByDefault:!0,children:(0,Ri.jsx)(Bg.RangeControl,{__next40pxDefaultSize:!0,label:(0,Lb.__)("Number of links"),help:(0,Lb.__)("Specify how many links can appear before and after the current page number. Links to the first, current and last page are always visible."),value:r,onChange:i=>{t({midSize:parseInt(i,10)})},min:0,max:5,withInputField:!1})})})}),(0,Ri.jsx)("div",{...(0,a6.useBlockProps)(),children:o})]})}var{name:Pie}=o6,Bie={icon:a1,edit:Tie,example:{}},x3e=()=>N({name:Pie,metadata:o6,settings:Bie});var wM={};q(wM,{init:()=>C3e,metadata:()=>n6,name:()=>Iie,settings:()=>Nie});var n6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-previous",title:"Previous Page",category:"theme",parent:["core/query-pagination"],description:"Displays the previous posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow","showLabel","enhancedPagination"],supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var kM=a(P(),1),i6=a(T(),1),Mb=a(y(),1),w3e={none:"",arrow:"\u2190",chevron:"\xAB"};function Eie({attributes:{label:e},setAttributes:t,context:{paginationArrow:r,showLabel:o}}){let n=w3e[r];return(0,Mb.jsxs)("a",{href:"#pagination-previous-pseudo-link",onClick:i=>i.preventDefault(),...(0,i6.useBlockProps)(),children:[n&&(0,Mb.jsx)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${r}`,"aria-hidden":!0,children:n}),o&&(0,Mb.jsx)(i6.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,kM.__)("Previous page link"),placeholder:(0,kM.__)("Previous Page"),value:e,onChange:i=>t({label:i})})]})}var{name:Iie}=n6,Nie={icon:n1,edit:Eie},C3e=()=>N({name:Iie,metadata:n6,settings:Nie});var PM={};q(PM,{init:()=>E3e,metadata:()=>l6,name:()=>Fie,settings:()=>Oie});var l6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-title",title:"Query Title",category:"theme",description:"Display the query title.",textdomain:"default",attributes:{type:{type:"string"},level:{type:"number",default:1},levelOptions:{type:"array"},showPrefix:{type:"boolean",default:!0},showSearchTerm:{type:"boolean",default:!0}},example:{attributes:{type:"search"}},usesContext:["query"],supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-query-title"};var fl=a(T(),1),hl=a(A(),1),Yt=a(P(),1);var CM=a(Y(),1),SM=a(z(),1);function Die(){let e=(0,SM.useSelect)(l=>{let{getCurrentPostId:s,getCurrentPostType:c,getCurrentTemplateId:u}=l("core/editor"),m=c(),p=u()||(m==="wp_template"?s():null);return p?l(CM.store).getEditedEntityRecord("postType","wp_template",p)?.slug:null},[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,o,n=!1,i;if(t)t[1]?r=t[2]?t[2]:t[1]:t[3]&&(r=t[6]?t[6]:t[4],o=t[7]),r=r==="tag"?"post_tag":r;else{let l=e?.match(/^(author)$|^author-(.+)$/);l&&(n=!0,l[2]&&(i=l[2]))}return(0,SM.useSelect)(l=>{let{getEntityRecords:s,getTaxonomy:c,getAuthors:u}=l(CM.store),m,p;if(r&&(m=c(r)?.labels?.singular_name),o){let d=s("taxonomy",r,{slug:o,per_page:1});d&&d[0]&&(p=d[0].name)}if(n&&(m="Author",i)){let d=u({slug:i});d&&d[0]&&(p=d[0].name)}return{archiveTypeLabel:m,archiveNameLabel:p}},[i,n,r,o])}var Lie=a(Y(),1),TM=a(z(),1);function Mie(e){let t=(0,TM.useSelect)(r=>{let{getCurrentPostType:o}=r("core/editor");return o()},[]);return(0,TM.useSelect)(r=>{let{getPostType:o}=r(Lie.store),i=o(e||t);return{postTypeLabel:i?i.labels.singular_name:""}},[e,t])}var It=a(y(),1),T3e=["archive","search","post-type"];function Aie(e){Tt(e);let{attributes:{type:t,level:r,levelOptions:o,showPrefix:n,showSearchTerm:i},setAttributes:l,context:{query:s}}=e,{archiveTypeLabel:c,archiveNameLabel:u}=Die(),{postTypeLabel:m}=Mie(s?.postType),p=$(),d=r===0?"p":`h${r}`,f=(0,fl.useBlockProps)({className:"wp-block-query-title__placeholder"});if(!T3e.includes(t))return(0,It.jsx)("div",{...f,children:(0,It.jsx)(fl.Warning,{children:(0,Yt.__)("Provided type is not supported.")})});let h;if(t==="archive"){let g;c?n?u?g=(0,Yt.sprintf)((0,Yt._x)("%1$s: %2$s","archive label"),c,u):g=(0,Yt.sprintf)((0,Yt.__)("%s: Name"),c):u?g=u:g=(0,Yt.sprintf)((0,Yt.__)("%s name"),c):g=n?(0,Yt.__)("Archive type: Name"):(0,Yt.__)("Archive title"),h=(0,It.jsxs)(It.Fragment,{children:[(0,It.jsx)(fl.InspectorControls,{children:(0,It.jsx)(hl.__experimentalToolsPanel,{label:(0,Yt.__)("Settings"),resetAll:()=>l({showPrefix:!0}),dropdownMenuProps:p,children:(0,It.jsx)(hl.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,Yt.__)("Show archive type in title"),onDeselect:()=>l({showPrefix:!0}),isShownByDefault:!0,children:(0,It.jsx)(hl.ToggleControl,{label:(0,Yt.__)("Show archive type in title"),onChange:()=>l({showPrefix:!n}),checked:n})})})}),(0,It.jsx)(d,{...f,children:g})]})}if(t==="search"&&(h=(0,It.jsxs)(It.Fragment,{children:[(0,It.jsx)(fl.InspectorControls,{children:(0,It.jsx)(hl.__experimentalToolsPanel,{label:(0,Yt.__)("Settings"),resetAll:()=>l({showSearchTerm:!0}),dropdownMenuProps:p,children:(0,It.jsx)(hl.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,Yt.__)("Show search term in title"),onDeselect:()=>l({showSearchTerm:!0}),isShownByDefault:!0,children:(0,It.jsx)(hl.ToggleControl,{label:(0,Yt.__)("Show search term in title"),onChange:()=>l({showSearchTerm:!i}),checked:i})})})}),(0,It.jsx)(d,{...f,children:i?(0,Yt.__)("Search results for: \u201Csearch term\u201D"):(0,Yt.__)("Search results")})]})),t==="post-type"){let g;m?n?g=(0,Yt.sprintf)((0,Yt.__)('Post Type: "%s"'),m):g=m:g=n?(0,Yt.__)("Post Type: Name"):(0,Yt.__)("Name"),h=(0,It.jsxs)(It.Fragment,{children:[(0,It.jsx)(fl.InspectorControls,{children:(0,It.jsx)(hl.__experimentalToolsPanel,{label:(0,Yt.__)("Settings"),resetAll:()=>l({showPrefix:!0}),dropdownMenuProps:p,children:(0,It.jsx)(hl.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,Yt.__)("Show post type label"),onDeselect:()=>l({showPrefix:!0}),isShownByDefault:!0,children:(0,It.jsx)(hl.ToggleControl,{label:(0,Yt.__)("Show post type label"),onChange:()=>l({showPrefix:!n}),checked:n})})})}),(0,It.jsx)(d,{...f,children:g})]})}return(0,It.jsxs)(It.Fragment,{children:[(0,It.jsx)(fl.BlockControls,{group:"block",children:(0,It.jsx)(fl.HeadingLevelDropdown,{value:r,options:o,onChange:g=>l({level:g})})}),h]})}var Zd=a(P(),1);var Rie=[{isDefault:!0,name:"archive-title",title:(0,Zd.__)("Archive Title"),description:(0,Zd.__)("Display the archive title based on the queried object."),icon:Ll,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,Zd.__)("Search Results Title"),description:(0,Zd.__)("Display the search results title based on the queried object."),icon:Ll,attributes:{type:"search"},scope:["inserter"]},{isDefault:!1,name:"post-type-label",title:(0,Zd.__)("Post Type Label"),description:(0,Zd.__)("Display the post type label based on the queried object."),icon:Ll,attributes:{type:"post-type"},scope:["inserter"]}];Rie.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.type===r.type)});var zie=Rie;var P3e={attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1},levelOptions:{type:"array"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},B3e={attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0}},save(){return null},migrate:Ut,isEligible({style:e}){return e?.typography?.fontFamily}},Vie=[P3e,B3e];var{name:Fie}=l6,Oie={icon:Ll,edit:Aie,variations:zie,deprecated:Vie},E3e=()=>N({name:Fie,metadata:l6,settings:Oie});var IM={};q(IM,{init:()=>N3e,metadata:()=>s6,name:()=>Uie,settings:()=>Gie});var s6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-total",title:"Query Total",category:"theme",ancestor:["core/query"],description:"Display the total number of results in a query.",textdomain:"default",attributes:{displayType:{type:"string",default:"total-results"}},usesContext:["queryId","query"],supports:{anchor:!0,align:["wide","full"],html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-query-total"};var c6=a(T(),1),u6=a(A(),1),Eg=a(P(),1);var Hm=a(A(),1),Kd=a(y(),1),BM=(0,Kd.jsx)(Hm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,Kd.jsx)(Hm.Path,{d:"M4 11h4v2H4v-2zm6 0h6v2h-6v-2zm8 0h2v2h-2v-2z"})}),EM=(0,Kd.jsx)(Hm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,Kd.jsx)(Hm.Path,{d:"M4 13h2v-2H4v2zm4 0h10v-2H8v2zm12 0h2v-2h-2v2z"})}),Hie=(0,Kd.jsx)(Hm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,Kd.jsx)(Hm.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2Zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12Zm-7-6-4.1 5h8.8v-3h-1.5v1.5h-4.2l2.9-3.5-2.9-3.5h4.2V10h1.5V7H7.4l4.1 5Z"})});var vs=a(y(),1);function jie({attributes:e,setAttributes:t}){let{displayType:r}=e,o=(0,c6.useBlockProps)(),n=()=>{switch(r){case"total-results":return BM;case"range-display":return EM}},i=[{role:"menuitemradio",title:(0,Eg.__)("Total results"),isActive:r==="total-results",icon:BM,onClick:()=>{t({displayType:"total-results"})}},{role:"menuitemradio",title:(0,Eg.__)("Range display"),isActive:r==="range-display",icon:EM,onClick:()=>{t({displayType:"range-display"})}}],l=(0,vs.jsx)(c6.BlockControls,{children:(0,vs.jsx)(u6.ToolbarGroup,{children:(0,vs.jsx)(u6.ToolbarDropdownMenu,{icon:n(),label:(0,Eg.__)("Change display type"),controls:i})})});return(0,vs.jsxs)("div",{...o,children:[l,r==="total-results"?(0,vs.jsx)(vs.Fragment,{children:(0,Eg.__)("12 results found")}):r==="range-display"?(0,vs.jsx)(vs.Fragment,{children:(0,Eg.__)("Displaying 1 \u2013 10 of 12")}):null]})}var{name:Uie}=s6,Gie={icon:Hie,edit:jie},N3e=()=>N({name:Uie,metadata:s6,settings:Gie});var DM={};q(DM,{init:()=>j3e,metadata:()=>f6,name:()=>Xie,settings:()=>Jie});var NM=a(P(),1);var Ab=a(G(),1),Jr=a(T(),1),ca=a(y(),1),jm=e=>{let{value:t,...r}=e;return[{...r},t?(0,Ab.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map(({content:o})=>(0,Ab.createBlock)("core/paragraph",{content:o})):(0,Ab.createBlock)("core/paragraph")]},Wie=["left","right","center"],Yd=(e,t)=>{let{align:r,...o}=e;return[Wie.includes(r)?{...o,textAlign:r}:e,t]},D3e=(e,t)=>[{...e,className:e.className?e.className+" is-style-large":"is-style-large"},t],L3e={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},align:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalOnEnter:!0,__experimentalOnMerge:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}}},isEligible:({align:e})=>Wie.includes(e),save({attributes:e}){let{align:t,citation:r}=e,o=w({[`has-text-align-${t}`]:t});return(0,ca.jsxs)("blockquote",{...Jr.useBlockProps.save({className:o}),children:[(0,ca.jsx)(Jr.InnerBlocks.Content,{}),!Jr.RichText.isEmpty(r)&&(0,ca.jsx)(Jr.RichText.Content,{tagName:"cite",value:r})]})},migrate:Yd},M3e={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},align:{type:"string"}},supports:{anchor:!0,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}}},save({attributes:e}){let{align:t,value:r,citation:o}=e,n=w({[`has-text-align-${t}`]:t});return(0,ca.jsxs)("blockquote",{...Jr.useBlockProps.save({className:n}),children:[(0,ca.jsx)(Jr.RichText.Content,{multiline:!0,value:r}),!Jr.RichText.isEmpty(o)&&(0,ca.jsx)(Jr.RichText.Content,{tagName:"cite",value:o})]})},migrate(e){return Yd(...jm(e))}},A3e={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},migrate(e){return Yd(...jm(e))},save({attributes:e}){let{align:t,value:r,citation:o}=e;return(0,ca.jsxs)("blockquote",{style:{textAlign:t||null},children:[(0,ca.jsx)(Jr.RichText.Content,{multiline:!0,value:r}),!Jr.RichText.isEmpty(o)&&(0,ca.jsx)(Jr.RichText.Content,{tagName:"cite",value:o})]})}},R3e={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(e.style===2){let{style:t,...r}=e;return Yd(...D3e(...jm(r)))}return Yd(...jm(e))},save({attributes:e}){let{align:t,value:r,citation:o,style:n}=e;return(0,ca.jsxs)("blockquote",{className:n===2?"is-large":"",style:{textAlign:t||null},children:[(0,ca.jsx)(Jr.RichText.Content,{multiline:!0,value:r}),!Jr.RichText.isEmpty(o)&&(0,ca.jsx)(Jr.RichText.Content,{tagName:"cite",value:o})]})}},z3e={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"footer",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(!isNaN(parseInt(e.style))){let{style:t,...r}=e;return Yd(...jm(r))}return Yd(...jm(e))},save({attributes:e}){let{align:t,value:r,citation:o,style:n}=e;return(0,ca.jsxs)("blockquote",{className:`blocks-quote-style-${n}`,style:{textAlign:t||null},children:[(0,ca.jsx)(Jr.RichText.Content,{multiline:!0,value:r}),!Jr.RichText.isEmpty(o)&&(0,ca.jsx)(Jr.RichText.Content,{tagName:"footer",value:o})]})}},$ie=[L3e,M3e,A3e,R3e,z3e];var Rb=a(P(),1),vc=a(T(),1),qie=a(A(),1),p6=a(z(),1),d6=a(H(),1),Zie=a(Rf(),1);var ku=a(y(),1),m6=d6.Platform.OS==="web",V3e=[["core/paragraph",{}]],F3e=(e,t)=>{let r=(0,p6.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:n}=(0,p6.useDispatch)(vc.store);(0,d6.useEffect)(()=>{if(!e.value)return;let[i,l]=jm(e);(0,Zie.default)("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),r.batch(()=>{o(t,i),n(t,l)})},[e.value])};function Kie({attributes:e,setAttributes:t,insertBlocksAfter:r,clientId:o,className:n,style:i,isSelected:l}){let{textAlign:s,allowedBlocks:c}=e;F3e(e,o);let u=(0,vc.useBlockProps)({className:w(n,{[`has-text-align-${s}`]:s}),...!m6&&{style:i}}),m=(0,vc.useInnerBlocksProps)(u,{template:V3e,templateInsertUpdatesSelection:!0,__experimentalCaptureToolbars:!0,renderAppender:!1,allowedBlocks:c});return(0,ku.jsxs)(ku.Fragment,{children:[(0,ku.jsx)(vc.BlockControls,{group:"block",children:(0,ku.jsx)(vc.AlignmentControl,{value:s,onChange:p=>{t({textAlign:p})}})}),(0,ku.jsxs)(qie.BlockQuotation,{...m,children:[m.children,(0,ku.jsx)(ga,{attributeKey:"citation",tagName:m6?"cite":"p",style:m6&&{display:"block"},isSelected:l,attributes:e,setAttributes:t,__unstableMobileNoFocusOnMount:!0,icon:x1,label:(0,Rb.__)("Quote citation"),placeholder:(0,Rb.__)("Add citation"),addLabel:(0,Rb.__)("Add citation"),removeLabel:(0,Rb.__)("Remove citation"),excludeElementClassName:!0,className:"wp-block-quote__citation",insertBlocksAfter:r,...m6?{}:{textAlign:s}})]})]})}var f6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/quote",title:"Quote",category:"text",description:'Give quoted text visual emphasis. "In quoting others, we cite ourselves." \u2014 Julio Cort\xE1zar',keywords:["blockquote","cite"],textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"rich-text",source:"rich-text",selector:"cite",role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],html:!1,background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},dimensions:{minHeight:!0,__experimentalDefaultControls:{minHeight:!1}},__experimentalOnEnter:!0,__experimentalOnMerge:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:{allowEditing:!1},spacing:{blockGap:!0,padding:!0,margin:!0},interactivity:{clientNavigation:!0},allowedBlocks:!0},styles:[{name:"default",label:"Default",isDefault:!0},{name:"plain",label:"Plain"}],editorStyle:"wp-block-quote-editor",style:"wp-block-quote"};var Qd=a(T(),1),zb=a(y(),1);function Yie({attributes:e}){let{textAlign:t,citation:r}=e,o=w({[`has-text-align-${t}`]:t});return(0,zb.jsxs)("blockquote",{...Qd.useBlockProps.save({className:o}),children:[(0,zb.jsx)(Qd.InnerBlocks.Content,{}),!Qd.RichText.isEmpty(r)&&(0,zb.jsx)(Qd.RichText.Content,{tagName:"cite",value:r})]})}var Vb=a(T(),1),jr=a(G(),1),H3e={from:[{type:"block",blocks:["core/verse"],transform:({content:e})=>(0,jr.createBlock)("core/quote",{},[(0,jr.createBlock)("core/paragraph",{content:e})])},{type:"block",blocks:["core/pullquote"],transform:({value:e,align:t,citation:r,anchor:o,fontSize:n,style:i})=>(0,jr.createBlock)("core/quote",{align:t,citation:r,anchor:o,fontSize:n,style:i},[(0,jr.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,jr.createBlock)("core/quote",{},[(0,jr.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,jr.createBlock)("core/quote",{},t({HTML:e.innerHTML,mode:"BLOCKS"}))},{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:({},e)=>e.length===1?["core/paragraph","core/heading","core/list","core/pullquote"].includes(e[0].name):!e.some(({name:t})=>t==="core/quote"),__experimentalConvert:e=>(0,jr.createBlock)("core/quote",{},e.map(t=>(0,jr.createBlock)(t.name,t.attributes,t.innerBlocks)))}],to:[{type:"block",blocks:["core/pullquote"],isMatch:({},e)=>e.innerBlocks.every(({name:t})=>t==="core/paragraph"),transform:({align:e,citation:t,anchor:r,fontSize:o,style:n},i)=>{let l=i.map(({attributes:s})=>`${s.content}`).join("<br>");return(0,jr.createBlock)("core/pullquote",{value:l,align:e,citation:t,anchor:r,fontSize:o,style:n})}},{type:"block",blocks:["core/verse"],isMatch:({},e)=>e.innerBlocks.every(t=>t.name==="core/paragraph"?!0:(0,jr.switchToBlockType)(t,"core/paragraph")!==null),transform:({},e)=>{let r=e.flatMap(o=>o.name==="core/paragraph"?o:(0,jr.switchToBlockType)(o,"core/paragraph")||[]).map(({attributes:o})=>o.content||"").filter(Boolean).join("<br>");return(0,jr.createBlock)("core/verse",{content:r})}},{type:"block",blocks:["core/paragraph"],isMatch:({citation:e},t)=>{let r=t.innerBlocks;return r.length?r.every(o=>o.name==="core/paragraph"?!0:(0,jr.switchToBlockType)(o,"core/paragraph")!==null):!Vb.RichText.isEmpty(e)},transform:({citation:e},t)=>{let r=t.flatMap(o=>o.name==="core/paragraph"?o:(0,jr.switchToBlockType)(o,"core/paragraph")||[]);return Vb.RichText.isEmpty(e)?r:[...r,(0,jr.createBlock)("core/paragraph",{content:e})]}},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},r)=>(0,jr.createBlock)("core/group",{anchor:t},Vb.RichText.isEmpty(e)?r:[...r,(0,jr.createBlock)("core/paragraph",{content:e})])}],ungroup:({citation:e},t)=>Vb.RichText.isEmpty(e)?t:[...t,(0,jr.createBlock)("core/paragraph",{content:e})]},Qie=H3e;var{name:Xie}=f6,Jie={icon:qP,example:{attributes:{citation:(0,NM.__)("Julio Cort\xE1zar")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,NM.__)("In quoting others, we cite ourselves.")}}]},transforms:Qie,edit:Kie,save:Yie,deprecated:$ie},j3e=()=>N({name:Xie,metadata:f6,settings:Jie});var LM={};q(LM,{init:()=>tCe,metadata:()=>h6,name:()=>ule,settings:()=>mle});var lle=a(Y(),1),sle=a(z(),1),cle=a(jo(),1);var h6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/block",title:"Pattern",category:"reusable",description:"Reuse this design across your site.",keywords:["reusable"],textdomain:"default",attributes:{ref:{type:"number"},content:{type:"object",default:{}}},providesContext:{"pattern/overrides":"content"},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1,interactivity:{clientNavigation:!0},customCSS:!1}};var Ob=a(z(),1),Hb=a(H(),1),Ig=a(Y(),1),bc=a(A(),1),Fb=a(P(),1),Mr=a(T(),1),ole=a(tle(),1),ale=a(G(),1);var gr=a(y(),1),{useLayoutClasses:G3e}=Z(Mr.privateApis),{isOverridableBlock:W3e}=Z(ole.privateApis),$3e=["full","wide","left","right"],q3e=(e,t)=>{let r=(0,Hb.useRef)();return(0,Hb.useMemo)(()=>{if(!e?.length)return{};let o=r.current;if(o===void 0){let i=t?.type==="constrained",l=e.some(s=>$3e.includes(s.attributes.align));o=i&&l?"full":null,r.current=o}return{alignment:o,layout:o?t:void 0}},[e,t])};function Z3e(){let e=(0,Mr.useBlockProps)();return(0,gr.jsx)("div",{...e,children:(0,gr.jsx)(Mr.Warning,{children:(0,Fb.__)("Block cannot be rendered inside itself.")})})}var rle=()=>{};function nle(e){let{ref:t}=e.attributes;return(0,Mr.useHasRecursion)(t)?(0,gr.jsx)(Z3e,{}):(0,gr.jsx)(Mr.RecursionProvider,{uniqueId:t,children:(0,gr.jsx)(Q3e,{...e})})}function K3e({recordId:e,canOverrideBlocks:t,hasContent:r,handleEditOriginal:o,resetContent:n}){let i=(0,Ob.useSelect)(l=>!!l(Ig.store).canUser("update",{kind:"postType",name:"wp_block",id:e}),[e]);return(0,gr.jsxs)(gr.Fragment,{children:[i&&!!o&&(0,gr.jsx)(Mr.BlockControls,{group:"other",children:(0,gr.jsx)(bc.ToolbarGroup,{children:(0,gr.jsx)(bc.ToolbarButton,{onClick:o,children:(0,Fb.__)("Edit original")})})}),t&&(0,gr.jsx)(Mr.BlockControls,{group:"other",children:(0,gr.jsx)(bc.ToolbarGroup,{children:(0,gr.jsx)(bc.ToolbarButton,{onClick:n,disabled:!r,children:(0,Fb.__)("Reset")})})})]})}var Y3e={};function Q3e({name:e,attributes:{ref:t,content:r},__unstableParentLayout:o,setAttributes:n}){let{record:i,hasResolved:l}=(0,Ig.useEntityRecord)("postType","wp_block",t),[s]=(0,Ig.useEntityBlockEditor)("postType","wp_block",{id:t}),c=l&&!i,{__unstableMarkLastChangeAsPersistent:u}=(0,Ob.useDispatch)(Mr.store),{onNavigateToEntityRecord:m,hasPatternOverridesSource:p,supportedBlockTypesRaw:d}=(0,Ob.useSelect)(C=>{let{getSettings:E}=C(Mr.store);return{onNavigateToEntityRecord:E().onNavigateToEntityRecord,hasPatternOverridesSource:!!(0,ale.getBlockBindingsSource)("core/pattern-overrides"),supportedBlockTypesRaw:E().__experimentalBlockBindingsSupportedAttributes||Y3e}},[]),f=(0,Hb.useMemo)(()=>{let C=Object.keys(d),E=I=>I.some(D=>C.includes(D.name)&&W3e(D)?!0:E(D.innerBlocks));return p&&E(s)},[p,s,d]),{alignment:h,layout:g}=q3e(s,o),b=G3e({layout:g},e),v=(0,Mr.useBlockProps)({className:w("block-library-block__reusable-block-container",g&&b,{[`align${h}`]:h})}),x=(0,Mr.useInnerBlocksProps)(v,{layout:g,value:s,onInput:rle,onChange:rle,renderAppender:s?.length?void 0:Mr.InnerBlocks.ButtonBlockAppender}),_=()=>{m({postId:t,postType:"wp_block"})},k=()=>{r&&(u(),n({content:void 0}))},S=null;return c&&(S=(0,gr.jsx)(Mr.Warning,{children:(0,Fb.__)("Block has been deleted or is unavailable.")})),l||(S=(0,gr.jsx)(bc.Placeholder,{children:(0,gr.jsx)(bc.Spinner,{})})),(0,gr.jsxs)(gr.Fragment,{children:[l&&!c&&(0,gr.jsx)(K3e,{recordId:t,canOverrideBlocks:f,hasContent:!!r,handleEditOriginal:m?_:void 0,resetContent:k}),S===null?(0,gr.jsx)("div",{...x}):(0,gr.jsx)("div",{...v,children:S})]})}var X3e=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,J3e={attributes:{ref:{type:"number"},content:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible({content:e}){return!!e&&Object.keys(e).every(t=>e[t].values&&X3e(e[t].values))},migrate(e){let{content:t,...r}=e;if(t&&Object.keys(t).length){let o={...t};for(let n in t)o[n]=t[n].values;return{...r,content:o}}return e}},eCe={attributes:{ref:{type:"number"},overrides:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible({overrides:e}){return!!e},migrate(e){let{overrides:t,...r}=e,o={};return Object.keys(t).forEach(n=>{o[n]=t[n]}),{...r,content:o}}},ile=[J3e,eCe];var{name:ule}=h6,mle={deprecated:ile,edit:nle,icon:bB,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,sle.select)(lle.store).getEditedEntityRecord("postType","wp_block",e);if(t?.title)return(0,cle.decodeEntities)(t.title)}},tCe=()=>N({name:ule,metadata:h6,settings:mle});var MM={};q(MM,{init:()=>oCe,metadata:()=>g6,name:()=>fle,settings:()=>hle});var dle=a(P(),1);var g6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/read-more",title:"Read More",category:"theme",description:"Displays the link of a post, page, or any other content-type.",textdomain:"default",attributes:{content:{type:"string",role:"content"},linkTarget:{type:"string",default:"_self"}},usesContext:["postId"],supports:{anchor:!0,html:!1,color:{gradients:!0,text:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,textDecoration:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalDefaultControls:{width:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-read-more"};var Dg=a(T(),1),Lg=a(A(),1),v6=a(G(),1),Ng=a(P(),1);var yc=a(y(),1);function ple({attributes:{content:e,linkTarget:t},setAttributes:r,insertBlocksAfter:o}){let n=(0,Dg.useBlockProps)(),i=$();return(0,yc.jsxs)(yc.Fragment,{children:[(0,yc.jsx)(Dg.InspectorControls,{children:(0,yc.jsx)(Lg.__experimentalToolsPanel,{label:(0,Ng.__)("Settings"),resetAll:()=>r({linkTarget:"_self"}),dropdownMenuProps:i,children:(0,yc.jsx)(Lg.__experimentalToolsPanelItem,{label:(0,Ng.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>t!=="_self",onDeselect:()=>r({linkTarget:"_self"}),children:(0,yc.jsx)(Lg.ToggleControl,{label:(0,Ng.__)("Open in new tab"),onChange:l=>r({linkTarget:l?"_blank":"_self"}),checked:t==="_blank"})})})}),(0,yc.jsx)(Dg.RichText,{identifier:"content",tagName:"a","aria-label":(0,Ng.__)("\u201CRead more\u201D link text"),placeholder:(0,Ng.__)("Read more"),value:e,onChange:l=>r({content:l}),__unstableOnSplitAtEnd:()=>o((0,v6.createBlock)((0,v6.getDefaultBlockName)())),withoutInteractiveFormatting:!0,...n})]})}var{name:fle}=g6,hle={icon:ti,edit:ple,example:{attributes:{content:(0,dle.__)("Read more")}}},oCe=()=>N({name:fle,metadata:g6,settings:hle});var AM={};q(AM,{init:()=>lCe,metadata:()=>b6,name:()=>_le,settings:()=>xle});var b6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/rss",title:"RSS",category:"widgets",description:"Display entries from any RSS or Atom feed.",keywords:["atom","feed"],textdomain:"default",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:"",role:"content"},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55},openInNewTab:{type:"boolean",default:!1},rel:{type:"string"}},supports:{anchor:!0,align:!0,html:!1,interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{padding:!1,margin:!1}},color:{background:!0,text:!0,gradients:!0,link:!0}},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"};var Xd=a(T(),1),vt=a(A(),1),y6=a(H(),1);var Mt=a(P(),1),gle=a(ir(),1),vle=a(Mu(),1),ble=a(pe(),1);var at=a(y(),1),nCe=1,iCe=20;function yle({attributes:e,setAttributes:t,name:r}){let[o,n]=(0,y6.useState)(!e.feedURL),{blockLayout:i,columns:l,displayAuthor:s,displayDate:c,displayExcerpt:u,excerptLength:m,feedURL:p,itemsToShow:d,openInNewTab:f,rel:h}=e,g=$();function b(D){return()=>{let M=e[D];t({[D]:!M})}}function v(D){D.preventDefault(),p&&(t({feedURL:(0,gle.prependHTTPS)(p)}),n(!1))}let{content:x,status:_,error:k}=(0,vle.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),S=(0,ble.useDisabled)(),C=(0,Xd.useBlockProps)({ref:o?null:S}),E=(0,Mt.__)("RSS URL");if(o)return(0,at.jsx)("div",{...C,children:(0,at.jsx)(vt.Placeholder,{icon:l1,label:E,instructions:(0,Mt.__)("Display entries from any RSS or Atom feed."),children:(0,at.jsxs)("form",{onSubmit:v,className:"wp-block-rss__placeholder-form",children:[(0,at.jsx)(vt.__experimentalInputControl,{__next40pxDefaultSize:!0,label:E,type:"url",hideLabelFromVision:!0,placeholder:(0,Mt.__)("Enter URL here\u2026"),value:p,onChange:D=>t({feedURL:D}),className:"wp-block-rss__placeholder-input"}),(0,at.jsx)(vt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,Mt.__)("Apply")})]})})});let I=[{icon:wp,title:(0,Mt.__)("Edit RSS URL"),onClick:()=>n(!0)},{icon:Dl,title:(0,Mt._x)("List view","RSS block display setting"),onClick:()=>t({blockLayout:"list"}),isActive:i==="list"},{icon:Nl,title:(0,Mt._x)("Grid view","RSS block display setting"),onClick:()=>t({blockLayout:"grid"}),isActive:i==="grid"}];return(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)(Xd.BlockControls,{children:(0,at.jsx)(vt.ToolbarGroup,{controls:I})}),(0,at.jsx)(Xd.InspectorControls,{children:(0,at.jsxs)(vt.__experimentalToolsPanel,{label:(0,Mt.__)("Settings"),resetAll:()=>{t({itemsToShow:5,displayAuthor:!1,displayDate:!1,displayExcerpt:!1,excerptLength:55,columns:2,openInNewTab:!1})},dropdownMenuProps:g,children:[(0,at.jsx)(vt.__experimentalToolsPanelItem,{label:(0,Mt.__)("Number of items"),hasValue:()=>d!==5,onDeselect:()=>t({itemsToShow:5}),isShownByDefault:!0,children:(0,at.jsx)(vt.RangeControl,{__next40pxDefaultSize:!0,label:(0,Mt.__)("Number of items"),value:d,onChange:D=>t({itemsToShow:D}),min:nCe,max:iCe,required:!0})}),(0,at.jsx)(vt.__experimentalToolsPanelItem,{label:(0,Mt.__)("Display author"),hasValue:()=>!!s,onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,at.jsx)(vt.ToggleControl,{label:(0,Mt.__)("Display author"),checked:s,onChange:b("displayAuthor")})}),(0,at.jsx)(vt.__experimentalToolsPanelItem,{label:(0,Mt.__)("Display date"),hasValue:()=>!!c,onDeselect:()=>t({displayDate:!1}),isShownByDefault:!0,children:(0,at.jsx)(vt.ToggleControl,{label:(0,Mt.__)("Display date"),checked:c,onChange:b("displayDate")})}),(0,at.jsx)(vt.__experimentalToolsPanelItem,{label:(0,Mt.__)("Display excerpt"),hasValue:()=>!!u,onDeselect:()=>t({displayExcerpt:!1}),isShownByDefault:!0,children:(0,at.jsx)(vt.ToggleControl,{label:(0,Mt.__)("Display excerpt"),checked:u,onChange:b("displayExcerpt")})}),u&&(0,at.jsx)(vt.__experimentalToolsPanelItem,{label:(0,Mt.__)("Max number of words in excerpt"),hasValue:()=>m!==55,onDeselect:()=>t({excerptLength:55}),isShownByDefault:!0,children:(0,at.jsx)(vt.RangeControl,{__next40pxDefaultSize:!0,label:(0,Mt.__)("Max number of words in excerpt"),value:m,onChange:D=>t({excerptLength:D}),min:10,max:100,required:!0})}),i==="grid"&&(0,at.jsx)(vt.__experimentalToolsPanelItem,{label:(0,Mt.__)("Columns"),hasValue:()=>l!==2,onDeselect:()=>t({columns:2}),isShownByDefault:!0,children:(0,at.jsx)(vt.RangeControl,{__next40pxDefaultSize:!0,label:(0,Mt.__)("Columns"),value:l,onChange:D=>t({columns:D}),min:2,max:6,required:!0})}),(0,at.jsx)(vt.__experimentalToolsPanelItem,{label:(0,Mt.__)("Open links in new tab"),hasValue:()=>!!f,onDeselect:()=>t({openInNewTab:!1}),isShownByDefault:!0,children:(0,at.jsx)(vt.ToggleControl,{label:(0,Mt.__)("Open links in new tab"),checked:f,onChange:D=>t({openInNewTab:D})})})]})}),(0,at.jsx)(Xd.InspectorControls,{group:"advanced",children:(0,at.jsx)(vt.TextControl,{__next40pxDefaultSize:!0,label:(0,Mt.__)("Link relation"),help:(0,y6.createInterpolateElement)((0,Mt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,at.jsx)(vt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:h||"",onChange:D=>t({rel:D})})}),_==="loading"&&(0,at.jsx)("div",{...C,children:(0,at.jsx)(vt.Spinner,{})}),_==="error"&&(0,at.jsx)("div",{...C,children:(0,at.jsx)("p",{children:(0,Mt.sprintf)((0,Mt.__)("Error: %s"),k)})}),_==="success"&&(0,at.jsx)(no,{wrapperProps:C,html:x})]})}var{name:_le}=b6,xle={icon:l1,example:{attributes:{feedURL:"https://wordpress.org"}},edit:yle},lCe=()=>N({name:_le,metadata:b6,settings:xle});var HM={};q(HM,{init:()=>pCe,metadata:()=>_6,name:()=>Ele,settings:()=>k6});var Mg=a(P(),1);var Ble=a(G(),1);var _6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/search",title:"Search",category:"widgets",description:"Help visitors find your content.",keywords:["find"],textdomain:"default",attributes:{label:{type:"string",role:"content"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:"",role:"content"},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string",role:"content"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1},query:{type:"object",default:{}}},supports:{anchor:!0,align:["left","center","right"],color:{gradients:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:!0,typography:{__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-search__label, .wp-block-search__input, .wp-block-search__button",fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},spacing:{margin:!0},html:!1},editorStyle:"wp-block-search-editor",style:"wp-block-search",selectors:{color:".wp-block-search .wp-block-search__button, .wp-block-search.wp-block-search__no-button .wp-block-search__input",border:".wp-block-search.wp-block-search__button-outside .wp-block-search__input, .wp-block-search.wp-block-search__button-outside .wp-block-search__button, .wp-block-search.wp-block-search__no-button .wp-block-search__input, .wp-block-search.wp-block-search__button-only .wp-block-search__input, .wp-block-search.wp-block-search__button-only .wp-block-search__button, .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper"}};var eo=a(T(),1),x6=a(z(),1),jb=a(H(),1),ur=a(A(),1),Cle=a(pe(),1);var cr=a(P(),1),Sle=a(Jn(),1);var RM=50,zM=350,VM=220;function FM(e){return e==="%"}var At=a(y(),1),kle="4px",wle=[25,50,75,100];function Tle({className:e,attributes:t,setAttributes:r,toggleSelection:o,isSelected:n,clientId:i}){let{label:l,showLabel:s,placeholder:c,width:u,widthUnit:m,align:p,buttonText:d,buttonPosition:f,buttonUseIcon:h,style:g}=t,b=(0,x6.useSelect)(ae=>{let{getBlockParentsByBlockName:Te,wasBlockJustInserted:Le}=ae(eo.store);return!!Te(i,"core/navigation")?.length&&Le(i)},[i]),{__unstableMarkNextChangeAsNotPersistent:v}=(0,x6.useDispatch)(eo.store);(0,jb.useEffect)(()=>{b&&(v(),r({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))},[v,b,r]);let x=g?.border?.radius,_=(0,eo.__experimentalUseBorderProps)(t);typeof x=="number"&&(_={..._,style:{..._.style,borderRadius:`${x}px`}});let k=(0,eo.__experimentalUseColorProps)(t),[S,C]=(0,eo.useSettings)("typography.fluid","layout"),E=(0,eo.getTypographyClassesAndStyles)(t,{typography:{fluid:S},layout:{wideSize:C?.wideSize}}),D=`wp-block-search__width-${(0,Cle.useInstanceId)(ur.__experimentalUnitControl)}`,M=f==="button-inside",F=f==="button-outside",R=f==="no-button",V=f==="button-only",B=V&&!n,j=(0,jb.useRef)(),U=(0,jb.useRef)(),O=(0,ur.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":RM,px:zM}}),K=()=>w(e,M?"wp-block-search__button-inside":void 0,F?"wp-block-search__button-outside":void 0,R?"wp-block-search__no-button":void 0,V?"wp-block-search__button-only":void 0,!h&&!R?"wp-block-search__text-button":void 0,h&&!R?"wp-block-search__icon-button":void 0,B?"wp-block-search__searchfield-hidden":void 0),W=[{label:(0,cr.__)("Button outside"),value:"button-outside"},{label:(0,cr.__)("Button inside"),value:"button-inside"},{label:(0,cr.__)("No button"),value:"no-button"},{label:(0,cr.__)("Button only"),value:"button-only"}],ee=()=>V?{}:{right:p!=="right",left:p==="right"},oe=()=>{let ae=w("wp-block-search__input",R?k.className:void 0,M?void 0:_.className,E.className),Te={...R?k.style:{},...M?{borderRadius:_.style?.borderRadius,borderTopLeftRadius:_.style?.borderTopLeftRadius,borderTopRightRadius:_.style?.borderTopRightRadius,borderBottomLeftRadius:_.style?.borderBottomLeftRadius,borderBottomRightRadius:_.style?.borderBottomRightRadius}:_.style,...E.style,textDecoration:void 0};return(0,At.jsx)("input",{type:"search",className:ae,style:Te,"aria-label":(0,cr.__)("Optional placeholder text"),placeholder:c?void 0:(0,cr.__)("Optional placeholder\u2026"),value:c,onChange:Le=>r({placeholder:Le.target.value}),ref:j})},X=()=>{let ae=w("wp-block-search__button",k.className,E.className,M?void 0:_.className,h?"has-icon":void 0,(0,eo.__experimentalGetElementClassName)("button")),Te={...k.style,...E.style,...M?{borderRadius:_.style?.borderRadius,borderTopLeftRadius:_.style?.borderTopLeftRadius,borderTopRightRadius:_.style?.borderTopRightRadius,borderBottomLeftRadius:_.style?.borderBottomLeftRadius,borderBottomRightRadius:_.style?.borderBottomRightRadius}:_.style};return(0,At.jsxs)(At.Fragment,{children:[h&&(0,At.jsx)("button",{type:"button",className:ae,style:Te,"aria-label":d?(0,Sle.__unstableStripHTML)(d):(0,cr.__)("Search"),ref:U,children:(0,At.jsx)(Ua,{icon:s1})}),!h&&(0,At.jsx)(eo.RichText,{identifier:"buttonText",className:ae,style:Te,"aria-label":(0,cr.__)("Button text"),placeholder:(0,cr.__)("Add button text\u2026"),withoutInteractiveFormatting:!0,value:d,onChange:Le=>r({buttonText:Le})})]})},J=$(),ne=(0,At.jsx)(At.Fragment,{children:(0,At.jsx)(eo.InspectorControls,{children:(0,At.jsxs)(ur.__experimentalToolsPanel,{label:(0,cr.__)("Settings"),resetAll:()=>{r({width:void 0,widthUnit:void 0,showLabel:!0,buttonUseIcon:!1,buttonPosition:"button-outside"})},dropdownMenuProps:J,children:[(0,At.jsx)(ur.__experimentalToolsPanelItem,{hasValue:()=>!s,label:(0,cr.__)("Show label"),onDeselect:()=>{r({showLabel:!0})},isShownByDefault:!0,children:(0,At.jsx)(ur.ToggleControl,{checked:s,label:(0,cr.__)("Show label"),onChange:ae=>r({showLabel:ae})})}),(0,At.jsx)(ur.__experimentalToolsPanelItem,{hasValue:()=>f!=="button-outside",label:(0,cr.__)("Button position"),onDeselect:()=>{r({buttonPosition:"button-outside"})},isShownByDefault:!0,children:(0,At.jsx)(ur.SelectControl,{value:f,__next40pxDefaultSize:!0,label:(0,cr.__)("Button position"),onChange:ae=>{r({buttonPosition:ae})},options:W})}),f!=="no-button"&&(0,At.jsx)(ur.__experimentalToolsPanelItem,{hasValue:()=>!!h,label:(0,cr.__)("Use button with icon"),onDeselect:()=>{r({buttonUseIcon:!1})},isShownByDefault:!0,children:(0,At.jsx)(ur.ToggleControl,{checked:h,label:(0,cr.__)("Use button with icon"),onChange:ae=>r({buttonUseIcon:ae})})}),(0,At.jsx)(ur.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,cr.__)("Width"),onDeselect:()=>{r({width:void 0,widthUnit:void 0})},isShownByDefault:!0,children:(0,At.jsxs)(ur.__experimentalVStack,{children:[(0,At.jsx)(ur.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,cr.__)("Width"),id:D,min:FM(m)?0:VM,max:FM(m)?100:void 0,step:1,onChange:ae=>{let Te=ae===""?void 0:parseInt(ae,10);r({width:Te})},onUnitChange:ae=>{r({width:ae==="%"?RM:zM,widthUnit:ae})},__unstableInputWidth:"80px",value:`${u}${m}`,units:O}),(0,At.jsx)(ur.__experimentalToggleGroupControl,{label:(0,cr.__)("Percentage Width"),value:wle.includes(u)&&m==="%"?u:void 0,hideLabelFromVision:!0,onChange:ae=>{r({width:ae,widthUnit:"%"})},isBlock:!0,__next40pxDefaultSize:!0,children:wle.map(ae=>(0,At.jsx)(ur.__experimentalToggleGroupControlOption,{value:ae,label:(0,cr.sprintf)((0,cr.__)("%d%%"),ae)},ae))})]})})]})})}),ie=ae=>ae!==void 0&&parseInt(ae,10)!==0,ue=ae=>ie(ae)?`calc(${ae} + ${kle})`:void 0,fe=()=>{let ae=M?_.style:{borderRadius:_.style?.borderRadius,borderTopLeftRadius:_.style?.borderTopLeftRadius,borderTopRightRadius:_.style?.borderTopRightRadius,borderBottomLeftRadius:_.style?.borderBottomLeftRadius,borderBottomRightRadius:_.style?.borderBottomRightRadius};if(M){if(typeof x=="object"){let{borderTopLeftRadius:Le,borderTopRightRadius:te,borderBottomLeftRadius:He,borderBottomRightRadius:st}=_.style;return{...ae,borderTopLeftRadius:ue(Le),borderTopRightRadius:ue(te),borderBottomLeftRadius:ue(He),borderBottomRightRadius:ue(st)}}let Te=Number.isInteger(x)?`${x}px`:x;ae.borderRadius=`calc(${Te} + ${kle})`}return ae},Oe=(0,eo.useBlockProps)({className:K(),style:{...E.style,textDecoration:void 0}}),ke=w("wp-block-search__label",E.className);return(0,At.jsxs)("div",{...Oe,children:[ne,s&&(0,At.jsx)(eo.RichText,{identifier:"label",className:ke,"aria-label":(0,cr.__)("Label text"),placeholder:(0,cr.__)("Add label\u2026"),withoutInteractiveFormatting:!0,value:l,onChange:ae=>r({label:ae}),style:E.style}),(0,At.jsxs)(ur.ResizableBox,{size:{width:u===void 0?"auto":`${u}${m}`,height:"auto"},className:w("wp-block-search__inside-wrapper",M?_.className:void 0),style:fe(),minWidth:VM,enable:ee(),onResizeStart:(ae,Te,Le)=>{r({width:parseInt(Le.offsetWidth,10),widthUnit:"px"}),o(!1)},onResizeStop:(ae,Te,Le,te)=>{r({width:parseInt(u+te.width,10)}),o(!0)},showHandle:n,children:[(M||F||V)&&(0,At.jsxs)(At.Fragment,{children:[oe(),X()]}),R&&oe()]})]})}var OM=a(P(),1),cCe=[{name:"default",isDefault:!0,attributes:{buttonText:(0,OM.__)("Search"),label:(0,OM.__)("Search")}}],Ple=cCe;var{fieldsKey:uCe,formKey:mCe}=Z(Ble.privateApis),{name:Ele}=_6,k6={icon:s1,example:{attributes:{buttonText:(0,Mg.__)("Search"),label:(0,Mg.__)("Search")},viewportWidth:400},variations:Ple,edit:Tle};window.__experimentalContentOnlyInspectorFields&&(k6[uCe]=[{id:"label",label:(0,Mg.__)("Label"),type:"text",Edit:"rich-text"},{id:"buttonText",label:(0,Mg.__)("Button text"),type:"text",Edit:"rich-text"},{id:"placeholder",label:(0,Mg.__)("Placeholder"),type:"text",Edit:"rich-text"}],k6[mCe]={fields:["label","buttonText","placeholder"]});var pCe=()=>N({name:Ele,metadata:_6,settings:k6});var jM={};q(jM,{init:()=>vCe,metadata:()=>C6,name:()=>Vle,settings:()=>Fle});var Um=a(T(),1),w6=a(A(),1),Gb=a(P(),1);var Ub=a(H(),1),Ile=a(pe(),1);function Nle(e,t,r){let[o,n]=(0,Ub.useState)(!1),i=(0,Ile.usePrevious)(t);(0,Ub.useEffect)(()=>{e==="css"&&!t&&!i&&n(!0)},[t,i,e]),(0,Ub.useEffect)(()=>{e==="css"&&(o&&t||i&&t!==i)&&(r({opacity:"alpha-channel"}),n(!1))},[o,t,i])}var wu=a(y(),1),dCe=({tagName:e,setAttributes:t})=>(0,wu.jsx)(w6.SelectControl,{label:(0,Gb.__)("HTML element"),value:e,onChange:r=>t({tagName:r}),options:[{label:(0,Gb.__)("Default (<hr>)"),value:"hr"},{label:"<div>",value:"div"}],help:e==="hr"?(0,Gb.__)("Only select <hr> if the separator conveys important information and should be announced by screen readers."):(0,Gb.__)("The <div> element should only be used if the block is a design element with no semantic meaning."),__next40pxDefaultSize:!0});function Dle({attributes:e,setAttributes:t}){let{backgroundColor:r,opacity:o,style:n,tagName:i}=e,l=(0,Um.__experimentalUseColorProps)(e),s=l?.style?.backgroundColor,c=!!n?.color?.background;Nle(o,s,t);let u=(0,Um.getColorClassName)("color",r),m=w({"has-text-color":r||s,[u]:u,"has-css-opacity":o==="css","has-alpha-channel-opacity":o==="alpha-channel"},l.className);return(0,wu.jsxs)(wu.Fragment,{children:[(0,wu.jsx)(Um.InspectorControls,{group:"advanced",children:(0,wu.jsx)(dCe,{tagName:i,setAttributes:t})}),(0,wu.jsx)(i==="hr"?w6.HorizontalRule:i,{...(0,Um.useBlockProps)({className:m,style:c?{color:s,backgroundColor:s}:void 0})})]})}var C6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/separator",title:"Separator",category:"design",description:"Create a break between ideas or sections with a horizontal separator.",keywords:["horizontal-line","hr","divider"],textdomain:"default",attributes:{opacity:{type:"string",default:"alpha-channel"},tagName:{type:"string",enum:["hr","div"],default:"hr"}},supports:{anchor:!0,align:["center","wide","full"],color:{enableContrastChecker:!1,__experimentalSkipSerialization:!0,gradients:!0,background:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{margin:["top","bottom"]},interactivity:{clientNavigation:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"wide",label:"Wide Line"},{name:"dots",label:"Dots"}],editorStyle:"wp-block-separator-editor",style:"wp-block-separator"};var Ag=a(T(),1),Lle=a(y(),1);function Mle({attributes:e}){let{backgroundColor:t,style:r,opacity:o,tagName:n}=e,i=r?.color?.background,l=(0,Ag.__experimentalGetColorClassesAndStyles)(e),s=(0,Ag.getColorClassName)("color",t),c=w({"has-text-color":t||i,[s]:s,"has-css-opacity":o==="css","has-alpha-channel-opacity":o==="alpha-channel"},l.className),u={backgroundColor:l?.style?.backgroundColor,color:s?void 0:i};return(0,Lle.jsx)(n,{...Ag.useBlockProps.save({className:c,style:u})})}var Gm=a(G(),1),hCe={from:[{type:"input",regExp:/^-{3,}$/,transform:()=>{let e=(0,Gm.getBlockVariations)("core/separator")?.find(t=>t.isDefault);return[(0,Gm.createBlock)("core/separator",e?.attributes??{}),(0,Gm.createBlock)((0,Gm.getDefaultBlockName)())]}},{type:"raw",selector:"hr",schema:{hr:{}}}],to:[{type:"block",blocks:["core/spacer"],transform:({anchor:e})=>(0,Gm.createBlock)("core/spacer",{anchor:e||void 0})}]},Ale=hCe;var Wb=a(T(),1),Rle=a(y(),1),gCe={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){let{color:t,customColor:r}=e,o=(0,Wb.getColorClassName)("background-color",t),n=(0,Wb.getColorClassName)("color",t),i=w({"has-text-color has-background":t||r,[o]:o,[n]:n}),l={backgroundColor:o?void 0:r,color:n?void 0:r};return(0,Rle.jsx)("hr",{...Wb.useBlockProps.save({className:i,style:l})})},migrate(e){let{color:t,customColor:r,...o}=e;return{...o,backgroundColor:t||void 0,opacity:"css",style:r?{color:{background:r}}:void 0,tagName:"hr"}}},zle=[gCe];var{name:Vle}=C6,Fle={icon:nB,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:Ale,edit:Dle,save:Mle,deprecated:zle},vCe=()=>N({name:Vle,metadata:C6,settings:Fle});var GM={};q(GM,{init:()=>kCe,metadata:()=>I6,name:()=>Qle,settings:()=>Xle});var S6=a(P(),1),P6=a(T(),1),Ole=a(pe(),1),Hle=a(A(),1);var T6=a(y(),1);function UM({attributes:e,setAttributes:t}){let o=`blocks-shortcode-input-${(0,Ole.useInstanceId)(UM)}`;return(0,T6.jsx)("div",{...(0,P6.useBlockProps)(),children:(0,T6.jsx)(Hle.Placeholder,{icon:u1,label:(0,S6.__)("Shortcode"),children:(0,T6.jsx)(P6.PlainText,{className:"blocks-shortcode__textarea",id:o,value:e.text,"aria-label":(0,S6.__)("Shortcode text"),placeholder:(0,S6.__)("Write shortcode here\u2026"),onChange:n=>t({text:n})})})})}var jle=a(H(),1),Ule=a(y(),1);function Gle({attributes:e}){return(0,Ule.jsx)(jle.RawHTML,{children:e.text})}var B6=a($le(),1),E6=a(G(),1),Kle=a(Zle(),1),bCe=()=>(0,E6.getBlockTransforms)("from").filter(e=>e.type==="shortcode"&&e.blockName!=="core/shortcode"),yCe=(e,t)=>{let r=e.trim(),o=(0,Kle.next)(t,r);return!!o&&o.index===0&&o.content.length===r.length},_Ce={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,B6.removep)((0,B6.autop)(t))}},priority:20}],get to(){return bCe().map(e=>({type:"block",blocks:[e.blockName],isMatch:({text:t})=>[].concat(e.tag).some(r=>yCe(t,r)),transform:({text:t})=>(0,E6.rawHandler)({HTML:`<p>${t.trim()}</p>`})}))}},Yle=_Ce;var I6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/shortcode",title:"Shortcode",category:"widgets",description:"Insert additional custom elements with a WordPress shortcode.",textdomain:"default",attributes:{text:{type:"string",source:"raw",role:"content"}},supports:{className:!1,customClassName:!1,html:!1,customCSS:!1,visibility:!1},editorStyle:"wp-block-shortcode-editor"};var{name:Qle}=I6,Xle={icon:u1,transforms:Yle,edit:UM,save:Gle},kCe=()=>N({name:Qle,metadata:I6,settings:Xle});var $M={};q($M,{init:()=>BCe,metadata:()=>N6,name:()=>ase,settings:()=>nse});var N6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-logo",title:"Site Logo",category:"theme",description:"Display an image to represent this site. Update this block and the changes apply everywhere.",textdomain:"default",attributes:{width:{type:"number"},isLink:{type:"boolean",default:!0,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"},shouldSyncIcon:{type:"boolean"}},example:{viewportWidth:500,attributes:{width:350,className:"block-editor-block-types-list__site-logo-example"}},supports:{anchor:!0,html:!1,align:!0,alignWide:!1,color:{text:!1,background:!1},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0},filter:{duotone:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],selectors:{filter:{duotone:".wp-block-site-logo img, .wp-block-site-logo .components-placeholder__illustration, .wp-block-site-logo .components-placeholder::before"}},editorStyle:"wp-block-site-logo-editor",style:"wp-block-site-logo"};var WM=a(Br(),1),_c=a(H(),1),to=a(P(),1),Nt=a(A(),1),Jle=a(pe(),1),Ar=a(T(),1),Wm=a(z(),1),Rg=a(Y(),1);var ese=a(yr(),1);var Re=a(y(),1),D6=["image"],{mediaEditKey:CCe,openMediaEditorModalKey:SCe}=Z(Ar.privateApis),TCe=({alt:e,attributes:{align:t,width:r,height:o,isLink:n,linkTarget:i,shouldSyncIcon:l},isSelected:s,setAttributes:c,setLogo:u,logoUrl:m,siteUrl:p,logoId:d,iconId:f,setIcon:h,canUserEdit:g})=>{let b=(0,Jle.useViewportMatch)("medium"),x=!["wide","full"].includes(t)&&b,[{naturalWidth:_,naturalHeight:k},S]=(0,_c.useState)({}),[C,E]=(0,_c.useState)(!1),{toggleSelection:I}=(0,Wm.useDispatch)(Ar.store),D=$(),F=(0,Ar.useBlockEditingMode)()==="contentOnly",{imageEditing:R,maxWidth:V,title:B,editMediaEntity:j,openMediaEditorModal:U}=(0,Wm.useSelect)(Me=>{let se=Me(Ar.store).getSettings();return{title:Me(Rg.store).getEntityRecord("root","__unstableBase")?.name,imageEditing:se.imageEditing,maxWidth:se.maxWidth,editMediaEntity:se?.[CCe],openMediaEditorModal:se?.[SCe]}},[]);(0,_c.useEffect)(()=>{l&&d!==f&&c({shouldSyncIcon:!1})},[]),(0,_c.useEffect)(()=>{s||E(!1)},[s]);let O=({id:Me})=>{typeof Me=="number"&&Me!==d&&u(Me)};function K(){I(!1)}function W(){I(!0)}let ee=(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)("img",{className:"custom-logo",src:m,alt:e,onLoad:Me=>{S({naturalWidth:Me.target.naturalWidth,naturalHeight:Me.target.naturalHeight})}}),(0,WM.isBlobURL)(m)&&(0,Re.jsx)(Nt.Spinner,{})]}),oe=ee;if(n&&(oe=(0,Re.jsx)("a",{href:p,className:"custom-logo-link",rel:"home",title:B,onClick:Me=>Me.preventDefault(),children:ee})),!x||!_||!k)return(0,Re.jsx)("div",{style:{width:r,height:o},children:oe});let X=120,J=r||X,ne=_/k,ie=J/ne,ue=_<k?qs:Math.ceil(qs*ne),fe=k<_?qs:Math.ceil(qs/ne),Oe=V*2.5,ke=!1,ae=!1;t==="center"?(ke=!0,ae=!0):(0,to.isRTL)()?t==="left"?ke=!0:ae=!0:t==="right"?ae=!0:ke=!0;let Te=d&&_&&k&&R&&!!j,Le=!F,te;Te&&C?te=(0,Re.jsx)(Ar.__experimentalImageEditor,{id:d,url:m,width:J,height:ie,naturalHeight:k,naturalWidth:_,onSaveImage:Me=>{u(Me.id)},onFinishEditing:()=>{E(!1)}}):te=(0,Re.jsx)(Nt.ResizableBox,{size:{width:J,height:ie},showHandle:s&&Le,minWidth:ue,maxWidth:Oe,minHeight:fe,maxHeight:Oe/ne,lockAspectRatio:!0,enable:{top:!1,right:ke,bottom:!0,left:ae},onResizeStart:K,onResizeStop:(Me,se,_t,Ve)=>{W(),c({width:parseInt(J+Ve.width,10),height:parseInt(ie+Ve.height,10)})},children:oe});let st=!window?.__experimentalUseCustomizerSiteLogoUrl?p+"/wp-admin/options-general.php":p+"/wp-admin/customize.php?autofocus[section]=title_tagline",ct=(0,_c.createInterpolateElement)((0,to.__)("Site Icons are what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. To use a custom icon that is different from your site logo, use the <a>Site Icon settings</a>."),{a:(0,Re.jsx)("a",{href:st,target:"_blank",rel:"noopener"})});return(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)(Ar.InspectorControls,{children:(0,Re.jsxs)(Nt.__experimentalToolsPanel,{label:(0,to.__)("Settings"),dropdownMenuProps:D,children:[(0,Re.jsx)(Nt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!r,label:(0,to.__)("Image width"),onDeselect:()=>c({width:void 0}),children:(0,Re.jsx)(Nt.RangeControl,{__next40pxDefaultSize:!0,label:(0,to.__)("Image width"),onChange:Me=>c({width:Me}),min:ue,max:Oe,initialPosition:Math.min(X,Oe),value:r||"",disabled:!x})}),(0,Re.jsx)(Nt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!n,label:(0,to.__)("Link image to home"),onDeselect:()=>c({isLink:!0}),children:(0,Re.jsx)(Nt.ToggleControl,{label:(0,to.__)("Link image to home"),onChange:()=>c({isLink:!n}),checked:n})}),n&&(0,Re.jsx)(Nt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>i==="_blank",label:(0,to.__)("Open in new tab"),onDeselect:()=>c({linkTarget:"_self"}),children:(0,Re.jsx)(Nt.ToggleControl,{label:(0,to.__)("Open in new tab"),onChange:Me=>c({linkTarget:Me?"_blank":"_self"}),checked:i==="_blank"})}),g&&(0,Re.jsx)(Nt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!l,label:(0,to.__)("Use as Site Icon"),onDeselect:()=>{c({shouldSyncIcon:!1}),h(void 0)},children:(0,Re.jsx)(Nt.ToggleControl,{label:(0,to.__)("Use as Site Icon"),onChange:Me=>{c({shouldSyncIcon:Me}),h(Me?d:void 0)},checked:!!l,help:ct})})]})}),Te&&!C&&Le&&(0,Re.jsx)(Ar.BlockControls,{group:"block",children:(0,Re.jsx)(Nt.ToolbarButton,{onClick:U&&d?()=>U({id:d,onUpdate:O}):()=>E(!0),"aria-haspopup":U&&d?"dialog":void 0,icon:L0,label:(0,to.__)("Crop")})}),te]})};function tse({attributes:e,className:t,setAttributes:r,isSelected:o}){let{width:n,shouldSyncIcon:i}=e,{siteLogoId:l,canUserEdit:s,url:c,siteIconId:u,mediaItemData:m,isRequestingMediaItem:p}=(0,Wm.useSelect)(W=>{let{canUser:ee,getEntityRecord:oe,getEditedEntityRecord:X}=W(Rg.store),J=ee("update",{kind:"root",name:"site"}),ne=J?X("root","site"):void 0,ie=oe("root","__unstableBase"),ue=J?ne?.site_logo:ie?.site_logo,fe=ne?.site_icon,Oe=ue&&W(Rg.store).getEntityRecord("postType","attachment",ue,{context:"view"}),ke=!!ue&&!W(Rg.store).hasFinishedResolution("getEntityRecord",["postType","attachment",ue,{context:"view"}]);return{siteLogoId:ue,canUserEdit:J,url:ie?.home,mediaItemData:Oe,isRequestingMediaItem:ke,siteIconId:fe}},[]),{getSettings:d}=(0,Wm.useSelect)(Ar.store),[f,h]=(0,_c.useState)(),g=$(),{editEntityRecord:b}=(0,Wm.useDispatch)(Rg.store),v=(W,ee=!1)=>{(i||ee)&&x(W),b("root","site",void 0,{site_logo:W})},x=W=>b("root","site",void 0,{site_icon:W??null}),{alt_text:_,source_url:k}=m??{},S=W=>{if(i===void 0){let ee=!u;r({shouldSyncIcon:ee}),C(W,ee);return}C(W)},C=(W,ee=!1)=>{if(W){if(!W.id&&W.url){h(W.url),v(void 0);return}v(W.id,ee)}},E=()=>{v(null),r({width:void 0})},{createErrorNotice:I}=(0,Wm.useDispatch)(ese.store),D=W=>{I(W,{type:"snackbar"}),h()},M=W=>{d().mediaUpload({allowedTypes:D6,filesList:W,onFileChange([ee]){if((0,WM.isBlobURL)(ee?.url)){h(ee.url);return}S(ee)},onError:D,multiple:!1})},F={mediaURL:k,name:k?(0,to.__)("Replace"):(0,to.__)("Choose logo"),onSelect:C,onError:D,onReset:E},R=s&&(0,Re.jsx)(Ar.BlockControls,{group:"other",children:(0,Re.jsx)(Ar.MediaReplaceFlow,{...F,allowedTypes:D6,variant:"toolbar"})}),V,B=l===void 0||p;B&&(V=(0,Re.jsx)(Nt.Spinner,{})),(0,_c.useEffect)(()=>{k&&f&&h()},[k,f]),(k||f)&&(V=(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)(TCe,{alt:_,attributes:e,className:t,isSelected:o,setAttributes:r,logoUrl:f||k,setLogo:v,logoId:m?.id||l,siteUrl:c,setIcon:x,iconId:u,canUserEdit:s}),s&&(0,Re.jsx)(Nt.DropZone,{onFilesDrop:M})]}));let j=W=>{let ee=w("block-editor-media-placeholder",t);return(0,Re.jsx)(Nt.Placeholder,{className:ee,preview:V,withIllustration:!0,style:{width:n},children:W})},U=w(t,{"is-default-size":!n,"is-transient":f}),O=(0,Ar.useBlockProps)({className:U}),K=(s||k)&&(0,Re.jsx)(Ar.InspectorControls,{children:(0,Re.jsx)(Nt.__experimentalToolsPanel,{label:(0,to.__)("Media"),dropdownMenuProps:g,children:s?(0,Re.jsx)(Nt.__experimentalToolsPanelItem,{hasValue:()=>!!k,label:(0,to.__)("Logo"),isShownByDefault:!0,children:(0,Re.jsx)(y4,{mediaId:l,mediaUrl:k,filename:m?.media_details?.sizes?.full?.file||m?.slug,allowedTypes:D6,onSelect:C,onError:D,onReset:E,isUploading:!!f,emptyLabel:(0,to.__)("Logo")})}):(0,Re.jsx)("div",{className:"block-library-site-logo__inspector-media-replace-container",style:{gridColumn:"1 / -1"},children:(0,Re.jsx)(AN,{url:m?.source_url,filename:m?.media_details?.sizes?.full?.file||m?.slug,itemGroupProps:{isBordered:!0,className:"block-library-site-logo__inspector-readonly-logo-preview"},className:"block-library-site-logo__inspector-media-replace-title"})})})});return(0,Re.jsxs)("div",{...O,children:[R,K,(!!k||!!f)&&V,(B||!f&&!k&&!s)&&(0,Re.jsx)(Nt.Placeholder,{className:"site-logo_placeholder",withIllustration:!0,children:B&&(0,Re.jsx)("span",{className:"components-placeholder__preview",children:(0,Re.jsx)(Nt.Spinner,{})})}),!B&&!f&&!k&&s&&(0,Re.jsx)(Ar.MediaPlaceholder,{onSelect:S,allowedTypes:D6,onError:D,placeholder:j,mediaLibraryButton:({open:W})=>(0,Re.jsx)(Nt.Button,{__next40pxDefaultSize:!0,icon:Vc,variant:"primary",label:(0,to.__)("Choose logo"),showTooltip:!0,tooltipPosition:"middle right",onClick:()=>{W()}})})]})}var rse=a(G(),1),PCe={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,rse.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]},ose=PCe;var{name:ase}=N6,nse={icon:mB,example:{},edit:tse,transforms:ose},BCe=()=>N({name:ase,metadata:N6,settings:nse});var KM={};q(KM,{init:()=>DCe,metadata:()=>L6,name:()=>cse,settings:()=>use});var L6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-tagline",title:"Site Tagline",category:"theme",description:"Describe in a few words what this site is about. This is important for search results, sharing on social media, and gives overall clarity to visitors.",keywords:["description"],textdomain:"default",attributes:{level:{type:"number",default:0},levelOptions:{type:"array",default:[0,1,2,3,4,5,6]}},example:{viewportWidth:350,attributes:{style:{typography:{textAlign:"center"}}}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},contentRole:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},editorStyle:"wp-block-site-tagline-editor",style:"wp-block-site-tagline"};var A6=a(z(),1),qM=a(Y(),1),$m=a(T(),1),M6=a(P(),1),R6=a(G(),1);var Cu=a(y(),1);function ise(e){Tt(e);let{attributes:t,setAttributes:r,insertBlocksAfter:o}=e,{level:n,levelOptions:i}=t,{canUserEdit:l,tagline:s}=(0,A6.useSelect)(f=>{let{canUser:h,getEntityRecord:g,getEditedEntityRecord:b}=f(qM.store),v=h("update",{kind:"root",name:"site"}),x=v?b("root","site"):{},_=g("root","__unstableBase");return{canUserEdit:v,tagline:v?x?.description:_?.description}},[]),c=n===0?"p":`h${n}`,{editEntityRecord:u}=(0,A6.useDispatch)(qM.store);function m(f){u("root","site",void 0,{description:f})}let p=(0,$m.useBlockProps)({className:!l&&!s&&"wp-block-site-tagline__placeholder"}),d=l?(0,Cu.jsx)($m.RichText,{allowedFormats:[],onChange:m,"aria-label":(0,M6.__)("Site tagline text"),placeholder:(0,M6.__)("Write site tagline\u2026"),tagName:c,value:s,disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,R6.createBlock)((0,R6.getDefaultBlockName)())),...p}):(0,Cu.jsx)(c,{...p,children:s||(0,M6.__)("Site Tagline placeholder")});return(0,Cu.jsxs)(Cu.Fragment,{children:[(0,Cu.jsx)($m.BlockControls,{group:"block",children:(0,Cu.jsx)($m.HeadingLevelDropdown,{value:n,options:i,onChange:f=>r({level:f})})}),d]})}var z6=a(A(),1),ZM=a(y(),1),lse=(0,ZM.jsx)(z6.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",children:(0,ZM.jsx)(z6.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"})});var ICe={attributes:{textAlign:{type:"string"},level:{type:"number",default:0},levelOptions:{type:"array",default:[0,1,2,3,4,5,6]}},supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},NCe={attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:Ut,isEligible({style:e}){return e?.typography?.fontFamily}},sse=[ICe,NCe];var{name:cse}=L6,use={icon:lse,edit:ise,deprecated:sse},DCe=()=>N({name:cse,metadata:L6,settings:use});var XM={};q(XM,{init:()=>zCe,metadata:()=>V6,name:()=>hse,settings:()=>gse});var V6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-title",title:"Site Title",category:"theme",description:"Displays the name of this site. Update the block, and the changes apply everywhere it\u2019s used. This will also appear in the browser title bar and in search results.",textdomain:"default",attributes:{level:{type:"number",default:1},levelOptions:{type:"array",default:[0,1,2,3,4,5,6]},isLink:{type:"boolean",default:!0,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"}},example:{viewportWidth:500},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},editorStyle:"wp-block-site-title-editor",style:"wp-block-site-title"};var F6=a(z(),1),YM=a(Y(),1),xc=a(P(),1),gl=a(T(),1),qm=a(A(),1),O6=a(G(),1),QM=a(jo(),1);var Ao=a(y(),1);function mse(e){Tt(e);let{attributes:t,setAttributes:r,insertBlocksAfter:o}=e,{level:n,levelOptions:i,isLink:l,linkTarget:s}=t,{canUserEdit:c,title:u}=(0,F6.useSelect)(v=>{let{canUser:x,getEntityRecord:_,getEditedEntityRecord:k}=v(YM.store),S=x("update",{kind:"root",name:"site"}),C=S?k("root","site"):{},E=_("root","__unstableBase");return{canUserEdit:S,title:S?C?.title:E?.name}},[]),{editEntityRecord:m}=(0,F6.useDispatch)(YM.store),p=$(),d=(0,gl.useBlockEditingMode)();function f(v){m("root","site",void 0,{title:v.trim()})}let h=n===0?"p":`h${n}`,g=(0,gl.useBlockProps)({className:!c&&!u&&"wp-block-site-title__placeholder"}),b=c?(0,Ao.jsx)(h,{...g,children:(0,Ao.jsx)(gl.RichText,{tagName:l?"a":"span",href:l?"#site-title-pseudo-link":void 0,"aria-label":(0,xc.__)("Site title text"),placeholder:(0,xc.__)("Write site title\u2026"),value:u,onChange:f,allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,O6.createBlock)((0,O6.getDefaultBlockName)()))})}):(0,Ao.jsx)(h,{...g,children:l?(0,Ao.jsx)("a",{href:"#site-title-pseudo-link",onClick:v=>v.preventDefault(),children:(0,QM.decodeEntities)(u)||(0,xc.__)("Site Title placeholder")}):(0,Ao.jsx)("span",{children:(0,QM.decodeEntities)(u)||(0,xc.__)("Site Title placeholder")})});return(0,Ao.jsxs)(Ao.Fragment,{children:[d==="default"&&(0,Ao.jsx)(gl.BlockControls,{group:"block",children:(0,Ao.jsx)(gl.HeadingLevelDropdown,{value:n,options:i,onChange:v=>r({level:v})})}),(0,Ao.jsx)(gl.InspectorControls,{children:(0,Ao.jsxs)(qm.__experimentalToolsPanel,{label:(0,xc.__)("Settings"),resetAll:()=>{r({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:p,children:[(0,Ao.jsx)(qm.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,xc.__)("Make title link to home"),onDeselect:()=>r({isLink:!0}),isShownByDefault:!0,children:(0,Ao.jsx)(qm.ToggleControl,{label:(0,xc.__)("Make title link to home"),onChange:()=>r({isLink:!l}),checked:l})}),l&&(0,Ao.jsx)(qm.__experimentalToolsPanelItem,{hasValue:()=>s!=="_self",label:(0,xc.__)("Open in new tab"),onDeselect:()=>r({linkTarget:"_self"}),isShownByDefault:!0,children:(0,Ao.jsx)(qm.ToggleControl,{label:(0,xc.__)("Open in new tab"),onChange:v=>r({linkTarget:v?"_blank":"_self"}),checked:s==="_blank"})})]})}),b]})}var MCe={attributes:{textAlign:{type:"string"},level:{type:"number",default:1},levelOptions:{type:"array",default:[0,1,2,3,4,5,6]},isLink:{type:"boolean",default:!0,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},ACe={attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:Ut,isEligible({style:e}){return e?.typography?.fontFamily}},pse=[MCe,ACe];var dse=a(G(),1),RCe={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,dse.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]},fse=RCe;var{name:hse}=V6,gse={icon:zT,example:{viewportWidth:350,attributes:{style:{typography:{textAlign:"center"}}}},edit:mse,transforms:fse,deprecated:pse},zCe=()=>N({name:hse,metadata:V6,settings:gse});var KA={};q(KA,{init:()=>UCe,metadata:()=>RS,name:()=>vce,settings:()=>zS});var ZA=a(P(),1);var gce=a(G(),1);var zg=a(Ls(),1),AS=a(z(),1),pn=a(T(),1),Jd=a(H(),1),ro=a(A(),1),mce=a(pe(),1),Hn=a(P(),1);var pce=a(G(),1);var qA=a(P(),1);var H6=a(L(),1),JM=a(y(),1),vse=()=>(0,JM.jsx)(H6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,JM.jsx)(H6.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"})});var j6=a(L(),1),eA=a(y(),1),bse=()=>(0,eA.jsx)(j6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,eA.jsx)(j6.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"})});var U6=a(L(),1),tA=a(y(),1),yse=()=>(0,tA.jsx)(U6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,tA.jsx)(U6.Path,{d:"M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"})});var G6=a(L(),1),rA=a(y(),1),_se=()=>(0,rA.jsx)(G6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,rA.jsx)(G6.Path,{d:"M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"})});var W6=a(L(),1),oA=a(y(),1),$b=()=>(0,oA.jsx)(W6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,oA.jsx)(W6.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})});var $6=a(L(),1),aA=a(y(),1),xse=()=>(0,aA.jsx)($6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,aA.jsx)($6.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"})});var q6=a(L(),1),nA=a(y(),1),kse=()=>(0,nA.jsx)(q6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,nA.jsx)(q6.Path,{d:"M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"})});var Z6=a(L(),1),iA=a(y(),1),wse=()=>(0,iA.jsx)(Z6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,iA.jsx)(Z6.Path,{d:"M20.317 4.369A19.88 19.88 0 0 0 15.894 3a14.145 14.145 0 0 0-.719 1.518 19.205 19.205 0 0 0-5.351 0A14.183 14.183 0 0 0 9.104 3 19.896 19.896 0 0 0 4.682 4.369a18.921 18.921 0 0 0-3.012 12.52 19.929 19.929 0 0 0 6.081 3.097c.487-.65.922-1.339 1.3-2.061a12.445 12.445 0 0 1-1.958-.896c.165-.12.326-.246.483-.374a12.445 12.445 0 0 0 8.946 0c.157.128.318.253.483.374-.627.371-1.281.683-1.958.896.379.722.813 1.41 1.3 2.061a19.94 19.94 0 0 0 6.081-3.097 18.921 18.921 0 0 0-3.012-12.52ZM8.12 15.233c-1.202 0-2.184-1.09-2.184-2.431 0-1.34.97-2.431 2.184-2.431 1.213 0 2.202 1.09 2.184 2.431 0 1.341-.97 2.431-2.184 2.431Zm7.757 0c-1.202 0-2.184-1.09-2.184-2.431 0-1.34.97-2.431 2.184-2.431 1.213 0 2.202 1.09 2.184 2.431 0 1.341-.97 2.431-2.184 2.431Z"})});var K6=a(L(),1),lA=a(y(),1),Cse=()=>(0,lA.jsx)(K6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,lA.jsx)(K6.Path,{d:"M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"})});var Y6=a(L(),1),sA=a(y(),1),Sse=()=>(0,sA.jsx)(Y6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,sA.jsx)(Y6.Path,{d:"M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"})});var Q6=a(L(),1),cA=a(y(),1),Tse=()=>(0,cA.jsx)(Q6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,cA.jsx)(Q6.Path,{d:"M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"})});var X6=a(L(),1),uA=a(y(),1),Pse=()=>(0,uA.jsx)(X6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,uA.jsx)(X6.Path,{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"})});var J6=a(L(),1),mA=a(y(),1),Bse=()=>(0,mA.jsx)(J6.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,mA.jsx)(J6.Path,{d:"M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"})});var eS=a(L(),1),pA=a(y(),1),Ese=()=>(0,pA.jsx)(eS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,pA.jsx)(eS.Path,{d:"M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"})});var tS=a(L(),1),dA=a(y(),1),Ise=()=>(0,dA.jsx)(tS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,dA.jsx)(tS.Path,{d:"M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"})});var rS=a(L(),1),fA=a(y(),1),Nse=()=>(0,fA.jsx)(rS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,fA.jsx)(rS.Path,{d:"M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"})});var oS=a(L(),1),hA=a(y(),1),Dse=()=>(0,hA.jsx)(oS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,hA.jsx)(oS.Path,{d:"M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"})});var aS=a(L(),1),gA=a(y(),1),Lse=()=>(0,gA.jsx)(aS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,gA.jsx)(aS.Path,{d:"M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"})});var nS=a(L(),1),vA=a(y(),1),Mse=()=>(0,vA.jsx)(nS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,vA.jsx)(nS.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"})});var iS=a(L(),1),bA=a(y(),1),Ase=()=>(0,bA.jsx)(iS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,bA.jsx)(iS.Path,{d:"M10.8001 4.69937V10.6494C10.8001 11.1001 10.9791 11.5323 11.2978 11.851C11.6165 12.1697 12.0487 12.3487 12.4994 12.3487C12.9501 12.3487 13.3824 12.1697 13.7011 11.851C14.0198 11.5323 14.1988 11.1001 14.1988 10.6494V6.69089C15.2418 7.05861 16.1371 7.75537 16.7496 8.67617C17.3622 9.59698 17.6589 10.6919 17.595 11.796C17.5311 12.9001 17.1101 13.9535 16.3954 14.7975C15.6807 15.6415 14.711 16.2303 13.6325 16.4753C12.5541 16.7202 11.4252 16.608 10.4161 16.1555C9.40691 15.703 8.57217 14.9348 8.03763 13.9667C7.50308 12.9985 7.29769 11.8828 7.45242 10.7877C7.60714 9.69266 8.11359 8.67755 8.89545 7.89537C9.20904 7.57521 9.38364 7.14426 9.38132 6.69611C9.37899 6.24797 9.19994 5.81884 8.88305 5.50195C8.56616 5.18506 8.13704 5.00601 7.68889 5.00369C7.24075 5.00137 6.80979 5.17597 6.48964 5.48956C5.09907 6.8801 4.23369 8.7098 4.04094 10.6669C3.84819 12.624 4.34 14.5873 5.43257 16.2224C6.52515 17.8575 8.15088 19.0632 10.0328 19.634C11.9146 20.2049 13.9362 20.1055 15.753 19.3529C17.5699 18.6003 19.0695 17.241 19.9965 15.5066C20.9234 13.7722 21.2203 11.7701 20.8366 9.84133C20.4528 7.91259 19.4122 6.17658 17.892 4.92911C16.3717 3.68163 14.466 2.99987 12.4994 3C12.0487 3 11.6165 3.17904 11.2978 3.49773C10.9791 3.81643 10.8001 4.24867 10.8001 4.69937Z"})});var lS=a(L(),1),yA=a(y(),1),Rse=()=>(0,yA.jsx)(lS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,yA.jsx)(lS.Path,{d:"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"})});var sS=a(L(),1),_A=a(y(),1),zse=()=>(0,_A.jsx)(sS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,_A.jsx)(sS.Path,{d:"M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"})});var cS=a(L(),1),xA=a(y(),1),Vse=()=>(0,xA.jsx)(cS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,xA.jsx)(cS.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"})});var uS=a(L(),1),kA=a(y(),1),Fse=()=>(0,kA.jsx)(uS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,kA.jsx)(uS.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l7.5 5.6 7.5-5.6V17zm0-9.1L12 13.6 4.5 7.9V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v.9z"})});var mS=a(L(),1),wA=a(y(),1),Ose=()=>(0,wA.jsx)(mS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,wA.jsx)(mS.Path,{d:"M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"})});var pS=a(L(),1),CA=a(y(),1),Hse=()=>(0,CA.jsx)(pS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,CA.jsx)(pS.Path,{d:"M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"})});var dS=a(L(),1),SA=a(y(),1),jse=()=>(0,SA.jsx)(dS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,SA.jsx)(dS.Path,{d:"M13.2,12c0,3-2.4,5.4-5.3,5.4S2.6,15,2.6,12s2.4-5.4,5.3-5.4S13.2,9,13.2,12 M19.1,12c0,2.8-1.2,5-2.7,5s-2.7-2.3-2.7-5s1.2-5,2.7-5C17.9,7,19.1,9.2,19.1,12 M21.4,12c0,2.5-0.4,4.5-0.9,4.5c-0.5,0-0.9-2-0.9-4.5s0.4-4.5,0.9-4.5C21,7.5,21.4,9.5,21.4,12"})});var fS=a(L(),1),TA=a(y(),1),Use=()=>(0,TA.jsx)(fS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,TA.jsx)(fS.Path,{d:"M20 8.40755C19.9969 6.10922 18.2543 4.22555 16.2097 3.54588C13.6708 2.70188 10.3222 2.82421 7.89775 3.99921C4.95932 5.42355 4.03626 8.54355 4.00186 11.6552C3.97363 14.2136 4.2222 20.9517 7.92225 20.9997C10.6715 21.0356 11.0809 17.3967 12.3529 15.6442C13.258 14.3974 14.4233 14.0452 15.8578 13.6806C18.3233 13.0537 20.0036 11.0551 20 8.40755Z"})});var hS=a(L(),1),PA=a(y(),1),Gse=()=>(0,PA.jsx)(hS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,PA.jsx)(hS.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"})});var gS=a(L(),1),BA=a(y(),1),Wse=()=>(0,BA.jsx)(gS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,BA.jsx)(gS.Path,{d:"M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"})});var vS=a(L(),1),EA=a(y(),1),$se=()=>(0,EA.jsx)(vS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,EA.jsx)(vS.Path,{d:"M5.27 9.221A2.775 2.775 0 0 0 2.498 11.993a2.785 2.785 0 0 0 1.6 2.511 5.337 5.337 0 0 0 2.374 4.11 9.386 9.386 0 0 0 5.539 1.7 9.386 9.386 0 0 0 5.541-1.7 5.331 5.331 0 0 0 2.372-4.114 2.787 2.787 0 0 0 1.583-2.5 2.775 2.775 0 0 0-2.772-2.772 2.742 2.742 0 0 0-1.688.574 9.482 9.482 0 0 0-4.637-1.348v-.008a2.349 2.349 0 0 1 2.011-2.316 1.97 1.97 0 0 0 1.926 1.521 1.98 1.98 0 0 0 1.978-1.978 1.98 1.98 0 0 0-1.978-1.978 1.985 1.985 0 0 0-1.938 1.578 3.183 3.183 0 0 0-2.849 3.172v.011a9.463 9.463 0 0 0-4.59 1.35 2.741 2.741 0 0 0-1.688-.574Zm6.736 9.1a3.162 3.162 0 0 1-2.921-1.944.215.215 0 0 1 .014-.2.219.219 0 0 1 .168-.106 27.327 27.327 0 0 1 2.74-.133 27.357 27.357 0 0 1 2.74.133.219.219 0 0 1 .168.106.215.215 0 0 1 .014.2 3.158 3.158 0 0 1-2.921 1.944Zm3.743-3.157a1.265 1.265 0 0 1-1.4-1.371 1.954 1.954 0 0 1 .482-1.442 1.15 1.15 0 0 1 .842-.379 1.7 1.7 0 0 1 1.49 1.777 1.323 1.323 0 0 1-.325 1.015 1.476 1.476 0 0 1-1.089.4Zm-7.485 0a1.476 1.476 0 0 1-1.086-.4 1.323 1.323 0 0 1-.325-1.016 1.7 1.7 0 0 1 1.49-1.777 1.151 1.151 0 0 1 .843.379 1.951 1.951 0 0 1 .481 1.441 1.276 1.276 0 0 1-1.403 1.373Z"})});var bS=a(L(),1),IA=a(y(),1),qse=()=>(0,IA.jsx)(bS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,IA.jsx)(bS.Path,{d:"M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"})});var yS=a(L(),1),NA=a(y(),1),Zse=()=>(0,NA.jsx)(yS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,NA.jsx)(yS.Path,{d:"M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"})});var _S=a(L(),1),DA=a(y(),1),Kse=()=>(0,DA.jsx)(_S.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,DA.jsx)(_S.Path,{d:"M23.994 14.552a3.36 3.36 0 01-3.401 3.171h-8.176a.685.685 0 01-.679-.681V8.238a.749.749 0 01.452-.716S12.942 7 14.526 7a5.357 5.357 0 012.748.755 5.44 5.44 0 012.56 3.546c.282-.08.574-.12.868-.119a3.273 3.273 0 013.292 3.37zM10.718 8.795a.266.266 0 10-.528 0c-.224 2.96-.397 5.735 0 8.685a.265.265 0 00.528 0c.425-2.976.246-5.7 0-8.685zM9.066 9.82a.278.278 0 00-.553 0 33.183 33.183 0 000 7.663.278.278 0 00.55 0c.33-2.544.332-5.12.003-7.664zM7.406 9.56a.269.269 0 00-.535 0c-.253 2.7-.38 5.222 0 7.917a.266.266 0 10.531 0c.394-2.73.272-5.181.004-7.917zM5.754 10.331a.275.275 0 10-.55 0 28.035 28.035 0 000 7.155.272.272 0 00.54 0c.332-2.373.335-4.78.01-7.155zM4.087 12.12a.272.272 0 00-.544 0c-.393 1.843-.208 3.52.016 5.386a.26.26 0 00.512 0c.247-1.892.435-3.53.016-5.386zM2.433 11.838a.282.282 0 00-.56 0c-.349 1.882-.234 3.54.01 5.418.025.285.508.282.54 0 .269-1.907.394-3.517.01-5.418zM.762 12.76a.282.282 0 00-.56 0c-.32 1.264-.22 2.31.023 3.578a.262.262 0 00.521 0c.282-1.293.42-2.317.016-3.578z"})});var xS=a(L(),1),LA=a(y(),1),Yse=()=>(0,LA.jsx)(xS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,LA.jsx)(xS.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"})});var kS=a(L(),1),MA=a(y(),1),Qse=()=>(0,MA.jsx)(kS.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1",children:(0,MA.jsx)(kS.Path,{d:"M28.9700376,63.3244248 C47.6273373,55.1957357 60.0684594,49.8368063 66.2934036,47.2476366 C84.0668845,39.855031 87.7600616,38.5708563 90.1672227,38.528 C90.6966555,38.5191258 91.8804274,38.6503351 92.6472251,39.2725385 C93.294694,39.7979149 93.4728387,40.5076237 93.5580865,41.0057381 C93.6433345,41.5038525 93.7494885,42.63857 93.6651041,43.5252052 C92.7019529,53.6451182 88.5344133,78.2034783 86.4142057,89.5379542 C85.5170662,94.3339958 83.750571,95.9420841 82.0403991,96.0994568 C78.3237996,96.4414641 75.5015827,93.6432685 71.9018743,91.2836143 C66.2690414,87.5912212 63.0868492,85.2926952 57.6192095,81.6896017 C51.3004058,77.5256038 55.3966232,75.2369981 58.9976911,71.4967761 C59.9401076,70.5179421 76.3155302,55.6232293 76.6324771,54.2720454 C76.6721165,54.1030573 76.7089039,53.4731496 76.3346867,53.1405352 C75.9604695,52.8079208 75.4081573,52.921662 75.0095933,53.0121213 C74.444641,53.1403447 65.4461175,59.0880351 48.0140228,70.8551922 C45.4598218,72.6091037 43.1463059,73.4636682 41.0734751,73.4188859 C38.7883453,73.3695169 34.3926725,72.1268388 31.1249416,71.0646282 C27.1169366,69.7617838 23.931454,69.0729605 24.208838,66.8603276 C24.3533167,65.7078514 25.9403832,64.5292172 28.9700376,63.3244248 Z"})});var wS=a(L(),1),AA=a(y(),1),Xse=()=>(0,AA.jsx)(wS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,AA.jsx)(wS.Path,{d:"M16.3 11.3c-.1 0-.2-.1-.2-.1-.1-2.6-1.5-4-3.9-4-1.4 0-2.6.6-3.3 1.7l1.3.9c.5-.8 1.4-1 2-1 .8 0 1.4.2 1.7.7.3.3.5.8.5 1.3-.7-.1-1.4-.2-2.2-.1-2.2.1-3.7 1.4-3.6 3.2 0 .9.5 1.7 1.3 2.2.7.4 1.5.6 2.4.6 1.2-.1 2.1-.5 2.7-1.3.5-.6.8-1.4.9-2.4.6.3 1 .8 1.2 1.3.4.9.4 2.4-.8 3.6-1.1 1.1-2.3 1.5-4.3 1.5-2.1 0-3.8-.7-4.8-2S5.7 14.3 5.7 12c0-2.3.5-4.1 1.5-5.4 1.1-1.3 2.7-2 4.8-2 2.2 0 3.8.7 4.9 2 .5.7.9 1.5 1.2 2.5l1.5-.4c-.3-1.2-.8-2.2-1.5-3.1-1.3-1.7-3.3-2.6-6-2.6-2.6 0-4.7.9-6 2.6C4.9 7.2 4.3 9.3 4.3 12s.6 4.8 1.9 6.4c1.4 1.7 3.4 2.6 6 2.6 2.3 0 4-.6 5.3-2 1.8-1.8 1.7-4 1.1-5.4-.4-.9-1.2-1.7-2.3-2.3zm-4 3.8c-1 .1-2-.4-2-1.3 0-.7.5-1.5 2.1-1.6h.5c.6 0 1.1.1 1.6.2-.2 2.3-1.3 2.7-2.2 2.7z"})});var CS=a(L(),1),RA=a(y(),1),Jse=()=>(0,RA.jsx)(CS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,RA.jsx)(CS.Path,{d:"M12.4044 3.01519C13.4086 3 14.4072 3.009 15.4045 3C15.465 4.14812 15.8874 5.31762 16.7472 6.12935C17.6053 6.96134 18.819 7.34217 20 7.47099V10.4912C18.8933 10.4558 17.7814 10.2308 16.7771 9.76499C16.3397 9.57148 15.9323 9.32227 15.5334 9.06745C15.5283 11.2591 15.5426 13.4479 15.5191 15.6305C15.4592 16.679 15.1053 17.7225 14.4814 18.5866C13.4777 20.025 11.7356 20.9627 9.94635 20.992C8.84885 21.0533 7.7525 20.7608 6.81729 20.2219C5.26743 19.3286 4.17683 17.6933 4.01799 15.9382C3.99957 15.563 3.99324 15.1883 4.00878 14.8221C4.14691 13.395 4.86917 12.0297 5.99027 11.101C7.26101 10.0192 9.04107 9.50397 10.7078 9.80886C10.7233 10.9199 10.6778 12.0297 10.6778 13.1407C9.91643 12.9 9.02668 12.9675 8.36139 13.4192C7.87566 13.7269 7.50675 14.1983 7.31453 14.7316C7.15569 15.1118 7.20116 15.5343 7.21036 15.9382C7.3928 17.169 8.60368 18.2035 9.89628 18.0916C10.7532 18.0826 11.5745 17.5965 12.0211 16.8849C12.1655 16.6357 12.3273 16.3809 12.3359 16.0878C12.4113 14.7462 12.3814 13.4102 12.3906 12.0685C12.3969 9.04495 12.3814 6.02979 12.4049 3.01575L12.4044 3.01519Z"})});var SS=a(L(),1),zA=a(y(),1),ece=()=>(0,zA.jsx)(SS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,zA.jsx)(SS.Path,{d:"M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z"})});var TS=a(L(),1),VA=a(y(),1),tce=()=>(0,VA.jsx)(TS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,VA.jsx)(TS.Path,{d:"M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"})});var PS=a(L(),1),FA=a(y(),1),rce=()=>(0,FA.jsx)(PS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,FA.jsx)(PS.Path,{d:"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"})});var BS=a(L(),1),OA=a(y(),1),oce=()=>(0,OA.jsx)(BS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,OA.jsx)(BS.Path,{d:"M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"})});var ES=a(L(),1),HA=a(y(),1),ace=()=>(0,HA.jsx)(ES.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,HA.jsx)(ES.Path,{d:"M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"})});var IS=a(L(),1),jA=a(y(),1),nce=()=>(0,jA.jsx)(IS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,jA.jsx)(IS.Path,{d:"M 12.011719 2 C 6.5057187 2 2.0234844 6.478375 2.0214844 11.984375 C 2.0204844 13.744375 2.4814687 15.462563 3.3554688 16.976562 L 2 22 L 7.2324219 20.763672 C 8.6914219 21.559672 10.333859 21.977516 12.005859 21.978516 L 12.009766 21.978516 C 17.514766 21.978516 21.995047 17.499141 21.998047 11.994141 C 22.000047 9.3251406 20.962172 6.8157344 19.076172 4.9277344 C 17.190172 3.0407344 14.683719 2.001 12.011719 2 z M 12.009766 4 C 14.145766 4.001 16.153109 4.8337969 17.662109 6.3417969 C 19.171109 7.8517969 20.000047 9.8581875 19.998047 11.992188 C 19.996047 16.396187 16.413812 19.978516 12.007812 19.978516 C 10.674812 19.977516 9.3544062 19.642812 8.1914062 19.007812 L 7.5175781 18.640625 L 6.7734375 18.816406 L 4.8046875 19.28125 L 5.2851562 17.496094 L 5.5019531 16.695312 L 5.0878906 15.976562 C 4.3898906 14.768562 4.0204844 13.387375 4.0214844 11.984375 C 4.0234844 7.582375 7.6067656 4 12.009766 4 z M 8.4765625 7.375 C 8.3095625 7.375 8.0395469 7.4375 7.8105469 7.6875 C 7.5815469 7.9365 6.9355469 8.5395781 6.9355469 9.7675781 C 6.9355469 10.995578 7.8300781 12.182609 7.9550781 12.349609 C 8.0790781 12.515609 9.68175 15.115234 12.21875 16.115234 C 14.32675 16.946234 14.754891 16.782234 15.212891 16.740234 C 15.670891 16.699234 16.690438 16.137687 16.898438 15.554688 C 17.106437 14.971687 17.106922 14.470187 17.044922 14.367188 C 16.982922 14.263188 16.816406 14.201172 16.566406 14.076172 C 16.317406 13.951172 15.090328 13.348625 14.861328 13.265625 C 14.632328 13.182625 14.464828 13.140625 14.298828 13.390625 C 14.132828 13.640625 13.655766 14.201187 13.509766 14.367188 C 13.363766 14.534188 13.21875 14.556641 12.96875 14.431641 C 12.71875 14.305641 11.914938 14.041406 10.960938 13.191406 C 10.218937 12.530406 9.7182656 11.714844 9.5722656 11.464844 C 9.4272656 11.215844 9.5585938 11.079078 9.6835938 10.955078 C 9.7955938 10.843078 9.9316406 10.663578 10.056641 10.517578 C 10.180641 10.371578 10.223641 10.267562 10.306641 10.101562 C 10.389641 9.9355625 10.347156 9.7890625 10.285156 9.6640625 C 10.223156 9.5390625 9.737625 8.3065 9.515625 7.8125 C 9.328625 7.3975 9.131125 7.3878594 8.953125 7.3808594 C 8.808125 7.3748594 8.6425625 7.375 8.4765625 7.375 z"})});var NS=a(L(),1),UA=a(y(),1),ice=()=>(0,UA.jsx)(NS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,UA.jsx)(NS.Path,{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"})});var DS=a(L(),1),GA=a(y(),1),lce=()=>(0,GA.jsx)(DS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,GA.jsx)(DS.Path,{d:"M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z"})});var LS=a(L(),1),WA=a(y(),1),sce=()=>(0,WA.jsx)(LS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,WA.jsx)(LS.Path,{d:"M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"})});var MS=a(L(),1),$A=a(y(),1),cce=()=>(0,$A.jsx)(MS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,$A.jsx)(MS.Path,{d:"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"})});function uce(e){return e?.name?{icon:e?.icon??$b,label:e?.title??(0,qA.__)("Social Icon")}:{icon:$b,label:(0,qA.__)("Social Icon")}}var Qt=a(y(),1),VCe=({url:e,setAttributes:t,setPopover:r,popoverAnchor:o,clientId:n})=>{let{removeBlock:i}=(0,AS.useDispatch)(pn.store);return(0,Qt.jsx)(pn.URLPopover,{anchor:o,"aria-label":(0,Hn.__)("Edit social link"),onClose:()=>{r(!1),o?.focus()},children:(0,Qt.jsx)("form",{className:"block-editor-url-popover__link-editor",onSubmit:l=>{l.preventDefault(),r(!1),o?.focus()},children:(0,Qt.jsx)("div",{className:"block-editor-url-input",children:(0,Qt.jsx)(pn.URLInput,{value:e,onChange:l=>t({url:l}),placeholder:(0,Hn.__)("Enter social link"),label:(0,Hn.__)("Enter social link"),hideLabelFromVision:!0,disableSuggestions:!0,onKeyDown:l=>{e||l.defaultPrevented||![zg.BACKSPACE,zg.DELETE].includes(l.keyCode)||i(n)},suffix:(0,Qt.jsx)(ro.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,Qt.jsx)(ro.Button,{icon:TT,label:(0,Hn.__)("Apply"),type:"submit",size:"small"})})})})})})},FCe=({attributes:e,context:t,isSelected:r,setAttributes:o,clientId:n,name:i})=>{let{url:l,service:s,label:c="",rel:u}=e,m=$(),{showLabels:p,iconColor:d,iconColorValue:f,iconBackgroundColor:h,iconBackgroundColorValue:g}=t,[b,v]=(0,Jd.useState)(!1),x=w("wp-social-link","wp-block-social-link","wp-social-link-"+s,{"wp-social-link__is-incomplete":!l,[`has-${d}-color`]:d,[`has-${h}-background-color`]:h}),[_,k]=(0,Jd.useState)(null),S=(0,pn.useBlockEditingMode)()==="contentOnly",{activeVariation:C}=(0,AS.useSelect)(R=>{let{getActiveBlockVariation:V}=R(pce.store);return{activeVariation:V(i,e)}},[i,e]),{icon:E,label:I}=uce(C),D=c.trim()===""?I:c,M=(0,Jd.useRef)(),F=(0,pn.useBlockProps)({className:"wp-block-social-link-anchor",ref:(0,mce.useMergeRefs)([k,M]),onClick:()=>v(!0),onKeyDown:R=>{R.keyCode===zg.ENTER&&(R.preventDefault(),v(!0))}});return(0,Qt.jsxs)(Qt.Fragment,{children:[S&&p&&(0,Qt.jsx)(pn.BlockControls,{group:"other",children:(0,Qt.jsx)(ro.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:R,onToggle:V})=>(0,Qt.jsx)(ro.ToolbarButton,{onClick:V,"aria-haspopup":"true","aria-expanded":R,children:(0,Hn.__)("Text")}),renderContent:()=>(0,Qt.jsx)(ro.TextControl,{__next40pxDefaultSize:!0,className:"wp-block-social-link__toolbar_content_text",label:(0,Hn.__)("Text"),help:(0,Hn.__)("Provide a text label or use the default."),value:c,onChange:R=>o({label:R}),placeholder:I})})}),(0,Qt.jsx)(pn.InspectorControls,{children:(0,Qt.jsx)(ro.__experimentalToolsPanel,{label:(0,Hn.__)("Settings"),resetAll:()=>{o({label:void 0})},dropdownMenuProps:m,children:(0,Qt.jsx)(ro.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Hn.__)("Text"),hasValue:()=>!!c,onDeselect:()=>{o({label:void 0})},children:(0,Qt.jsx)(ro.TextControl,{__next40pxDefaultSize:!0,label:(0,Hn.__)("Text"),help:(0,Hn.__)("The text is visible when enabled from the parent Social Icons block."),value:c,onChange:R=>o({label:R}),placeholder:I})})})}),(0,Qt.jsx)(pn.InspectorControls,{group:"advanced",children:(0,Qt.jsx)(ro.TextControl,{__next40pxDefaultSize:!0,label:(0,Hn.__)("Link relation"),help:(0,Jd.createInterpolateElement)((0,Hn.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Qt.jsx)(ro.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:u||"",onChange:R=>o({rel:R})})}),(0,Qt.jsxs)("li",{role:"presentation",className:x,style:{color:f,backgroundColor:g},children:[(0,Qt.jsxs)("button",{"aria-haspopup":"dialog",...F,role:"button",children:[(0,Qt.jsx)(ro.Icon,{icon:E}),(0,Qt.jsx)("span",{className:w("wp-block-social-link-label",{"screen-reader-text":!p}),children:D})]}),r&&b&&(0,Qt.jsx)(VCe,{url:l,setAttributes:o,setPopover:v,popoverAnchor:_,clientId:n})]})]})},dce=FCe;var RS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-link",title:"Social Icon",category:"widgets",parent:["core/social-links"],description:"Display an icon linking to a social profile or site.",textdomain:"default",attributes:{url:{type:"string",role:"content"},service:{type:"string"},label:{type:"string",role:"content"},rel:{type:"string"}},usesContext:["openInNewTab","showLabels","iconColor","iconColorValue","iconBackgroundColor","iconBackgroundColorValue"],supports:{anchor:!0,reusable:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-social-link-editor"};var Ee=a(P(),1);var fce=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:(0,Ee._x)("WordPress","social link block variation name"),icon:ice},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:(0,Ee._x)("500px","social link block variation name"),icon:Ese},{name:"amazon",attributes:{service:"amazon"},title:(0,Ee._x)("Amazon","social link block variation name"),icon:vse},{name:"bandcamp",attributes:{service:"bandcamp"},title:(0,Ee._x)("Bandcamp","social link block variation name"),icon:bse},{name:"behance",attributes:{service:"behance"},title:(0,Ee._x)("Behance","social link block variation name"),icon:yse},{name:"bluesky",attributes:{service:"bluesky"},title:(0,Ee._x)("Bluesky","social link block variation name"),icon:_se},{name:"chain",attributes:{service:"chain"},title:(0,Ee._x)("Link","social link block variation name"),icon:$b},{name:"codepen",attributes:{service:"codepen"},title:(0,Ee._x)("CodePen","social link block variation name"),icon:xse},{name:"deviantart",attributes:{service:"deviantart"},title:(0,Ee._x)("DeviantArt","social link block variation name"),icon:kse},{name:"discord",attributes:{service:"discord"},title:(0,Ee._x)("Discord","social link block variation name"),icon:wse},{name:"dribbble",attributes:{service:"dribbble"},title:(0,Ee._x)("Dribbble","social link block variation name"),icon:Cse},{name:"dropbox",attributes:{service:"dropbox"},title:(0,Ee._x)("Dropbox","social link block variation name"),icon:Sse},{name:"etsy",attributes:{service:"etsy"},title:(0,Ee._x)("Etsy","social link block variation name"),icon:Tse},{name:"facebook",attributes:{service:"facebook"},title:(0,Ee._x)("Facebook","social link block variation name"),icon:Pse},{name:"feed",attributes:{service:"feed"},title:(0,Ee._x)("RSS Feed","social link block variation name"),icon:Bse},{name:"flickr",attributes:{service:"flickr"},title:(0,Ee._x)("Flickr","social link block variation name"),icon:Ise},{name:"foursquare",attributes:{service:"foursquare"},title:(0,Ee._x)("Foursquare","social link block variation name"),icon:Nse},{name:"goodreads",attributes:{service:"goodreads"},title:(0,Ee._x)("Goodreads","social link block variation name"),icon:Dse},{name:"google",attributes:{service:"google"},title:(0,Ee._x)("Google","social link block variation name"),icon:Lse},{name:"github",attributes:{service:"github"},title:(0,Ee._x)("GitHub","social link block variation name"),icon:Mse},{name:"gravatar",attributes:{service:"gravatar"},title:(0,Ee._x)("Gravatar","social link block variation name"),icon:Ase},{name:"instagram",attributes:{service:"instagram"},title:(0,Ee._x)("Instagram","social link block variation name"),icon:Rse},{name:"lastfm",attributes:{service:"lastfm"},title:(0,Ee._x)("Last.fm","social link block variation name"),icon:zse},{name:"linkedin",attributes:{service:"linkedin"},title:(0,Ee._x)("LinkedIn","social link block variation name"),icon:Vse},{name:"mail",attributes:{service:"mail"},title:(0,Ee._x)("Mail","social link block variation name"),keywords:["email","e-mail"],icon:Fse},{name:"mastodon",attributes:{service:"mastodon"},title:(0,Ee._x)("Mastodon","social link block variation name"),icon:Ose},{name:"meetup",attributes:{service:"meetup"},title:(0,Ee._x)("Meetup","social link block variation name"),icon:Hse},{name:"medium",attributes:{service:"medium"},title:(0,Ee._x)("Medium","social link block variation name"),icon:jse},{name:"patreon",attributes:{service:"patreon"},title:(0,Ee._x)("Patreon","social link block variation name"),icon:Use},{name:"pinterest",attributes:{service:"pinterest"},title:(0,Ee._x)("Pinterest","social link block variation name"),icon:Gse},{name:"pocket",attributes:{service:"pocket"},title:(0,Ee._x)("Pocket","social link block variation name"),icon:Wse},{name:"reddit",attributes:{service:"reddit"},title:(0,Ee._x)("Reddit","social link block variation name"),icon:$se},{name:"skype",attributes:{service:"skype"},title:(0,Ee._x)("Skype","social link block variation name"),icon:qse,scope:[]},{name:"snapchat",attributes:{service:"snapchat"},title:(0,Ee._x)("Snapchat","social link block variation name"),icon:Zse},{name:"soundcloud",attributes:{service:"soundcloud"},title:(0,Ee._x)("SoundCloud","social link block variation name"),icon:Kse},{name:"spotify",attributes:{service:"spotify"},title:(0,Ee._x)("Spotify","social link block variation name"),icon:Yse},{name:"telegram",attributes:{service:"telegram"},title:(0,Ee._x)("Telegram","social link block variation name"),icon:Qse},{name:"threads",attributes:{service:"threads"},title:(0,Ee._x)("Threads","social link block variation name"),icon:Xse},{name:"tiktok",attributes:{service:"tiktok"},title:(0,Ee._x)("TikTok","social link block variation name"),icon:Jse},{name:"tumblr",attributes:{service:"tumblr"},title:(0,Ee._x)("Tumblr","social link block variation name"),icon:ece},{name:"twitch",attributes:{service:"twitch"},title:(0,Ee._x)("Twitch","social link block variation name"),icon:tce},{name:"twitter",attributes:{service:"twitter"},title:(0,Ee._x)("Twitter","social link block variation name"),icon:rce},{name:"vimeo",attributes:{service:"vimeo"},title:(0,Ee._x)("Vimeo","social link block variation name"),icon:oce},{name:"vk",attributes:{service:"vk"},title:(0,Ee._x)("VK","social link block variation name"),icon:ace},{name:"whatsapp",attributes:{service:"whatsapp"},title:(0,Ee._x)("WhatsApp","social link block variation name"),icon:nce},{name:"x",attributes:{service:"x"},keywords:["twitter"],title:(0,Ee._x)("X","social link block variation name"),icon:lce},{name:"yelp",attributes:{service:"yelp"},title:(0,Ee._x)("Yelp","social link block variation name"),icon:sce},{name:"youtube",attributes:{service:"youtube"},title:(0,Ee._x)("YouTube","social link block variation name"),icon:cce}];fce.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.service===r.service)});var hce=fce;var{fieldsKey:HCe,formKey:jCe}=Z(gce.privateApis),{name:vce}=RS,zS={icon:c1,edit:dce,variations:hce};window.__experimentalContentOnlyInspectorFields&&(zS[HCe]=[{id:"link",label:(0,ZA.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel}),setValue:({value:e})=>({url:e.url,rel:e.rel})},{id:"label",label:(0,ZA.__)("Label"),type:"text"}],zS[jCe]={fields:["link","label"]});var UCe=()=>N({name:vce,metadata:RS,settings:zS});var QA={};q(QA,{init:()=>YCe,metadata:()=>FS,name:()=>Cce,settings:()=>Sce});var VS=a(T(),1),YA=a(y(),1),GCe=e=>{if(e.layout)return e;let{className:t}=e,r="items-justified-",o=new RegExp(`\\b${r}[^ ]*[ ]?\\b`,"g"),n={...e,className:t?.replace(o,"").trim()},i=t?.match(o)?.[0]?.trim();return i&&Object.assign(n,{layout:{type:"flex",justifyContent:i.slice(r.length)}}),n},WCe=[{attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],anchor:!0},migrate:GCe,save:e=>{let{attributes:{iconBackgroundColorValue:t,iconColorValue:r,itemsJustification:o,size:n}}=e,i=w(n,{"has-icon-color":r,"has-icon-background-color":t,[`items-justified-${o}`]:o}),l={"--wp--social-links--icon-color":r,"--wp--social-links--icon-background-color":t};return(0,YA.jsx)("ul",{...VS.useBlockProps.save({className:i,style:l}),children:(0,YA.jsx)(VS.InnerBlocks.Content,{})})}}],bce=WCe;var yce=a(H(),1),vo=a(T(),1),bs=a(A(),1),dn=a(P(),1),_ce=a(z(),1);var ua=a(y(),1),$Ce=[{label:(0,dn.__)("Default"),value:""},{label:(0,dn.__)("Small"),value:"has-small-icon-size"},{label:(0,dn.__)("Normal"),value:"has-normal-icon-size"},{label:(0,dn.__)("Large"),value:"has-large-icon-size"},{label:(0,dn.__)("Huge"),value:"has-huge-icon-size"}];function qCe(e){let{clientId:t,attributes:r,iconBackgroundColor:o,iconColor:n,isSelected:i,setAttributes:l,setIconBackgroundColor:s,setIconColor:c}=e,{iconBackgroundColorValue:u,iconColorValue:m,openInNewTab:p,showLabels:d,size:f}=r,{hasSocialIcons:h,hasSelectedChild:g}=(0,_ce.useSelect)(I=>{let{getBlockCount:D,hasSelectedInnerBlock:M}=I(vo.store);return{hasSocialIcons:D(t)>0,hasSelectedChild:M(t)}},[t]),b=i||g,v=r.className?.includes("is-style-logos-only"),x=$();(0,yce.useEffect)(()=>{if(v){let I;return l(D=>(I={iconBackgroundColor:D.iconBackgroundColor,iconBackgroundColorValue:D.iconBackgroundColorValue,customIconBackgroundColor:D.customIconBackgroundColor},{iconBackgroundColor:void 0,iconBackgroundColorValue:void 0,customIconBackgroundColor:void 0})),()=>l({...I})}},[v,l]);let _=w(f,{"has-visible-labels":d,"has-icon-color":n.color||m,"has-icon-background-color":o.color||u}),k=(0,vo.useBlockProps)({className:_}),S=(0,vo.useInnerBlocksProps)(k,{templateLock:!1,orientation:r.layout?.orientation??"horizontal",__experimentalAppenderTagName:"li",renderAppender:!h||b?vo.InnerBlocks.ButtonBlockAppender:void 0}),C=[{value:n.color||m,onChange:I=>{c(I),l({iconColorValue:I})},label:(0,dn.__)("Icon color"),resetAllFilter:()=>{c(void 0),l({iconColorValue:void 0})}}];v||C.push({value:o.color||u,onChange:I=>{s(I),l({iconBackgroundColorValue:I})},label:(0,dn.__)("Icon background"),resetAllFilter:()=>{s(void 0),l({iconBackgroundColorValue:void 0})}});let E=(0,vo.__experimentalUseMultipleOriginColorsAndGradients)();return(0,ua.jsxs)(ua.Fragment,{children:[(0,ua.jsx)(vo.InspectorControls,{children:(0,ua.jsxs)(bs.__experimentalToolsPanel,{label:(0,dn.__)("Settings"),resetAll:()=>{l({openInNewTab:!1,showLabels:!1,size:void 0})},dropdownMenuProps:x,children:[(0,ua.jsx)(bs.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!f,label:(0,dn.__)("Icon size"),onDeselect:()=>l({size:void 0}),children:(0,ua.jsx)(bs.SelectControl,{__next40pxDefaultSize:!0,label:(0,dn.__)("Icon size"),onChange:I=>{l({size:I===""?void 0:I})},value:f??"",options:$Ce})}),(0,ua.jsx)(bs.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,dn.__)("Show text"),hasValue:()=>!!d,onDeselect:()=>l({showLabels:!1}),children:(0,ua.jsx)(bs.ToggleControl,{label:(0,dn.__)("Show text"),checked:d,onChange:()=>l({showLabels:!d})})}),(0,ua.jsx)(bs.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,dn.__)("Open links in new tab"),hasValue:()=>!!p,onDeselect:()=>l({openInNewTab:!1}),children:(0,ua.jsx)(bs.ToggleControl,{label:(0,dn.__)("Open links in new tab"),checked:p,onChange:()=>l({openInNewTab:!p})})})]})}),E.hasColorsOrGradients&&(0,ua.jsxs)(vo.InspectorControls,{group:"color",children:[C.map(({onChange:I,label:D,value:M,resetAllFilter:F})=>(0,ua.jsx)(vo.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:M,label:D,onColorChange:I,isShownByDefault:!0,resetAllFilter:F,enableAlpha:!0,clearable:!0}],panelId:t,...E},`social-links-color-${D}`)),!v&&(0,ua.jsx)(vo.ContrastChecker,{textColor:m,backgroundColor:u,isLargeText:!1})]}),(0,ua.jsx)("ul",{...S})]})}var ZCe={iconColor:"icon-color",iconBackgroundColor:"icon-background-color"},xce=(0,vo.withColors)(ZCe)(qCe);var FS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-links",title:"Social Icons",category:"widgets",allowedBlocks:["core/social-link"],description:"Display icons linking to your social profiles or sites.",keywords:["links"],textdomain:"default",attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},showLabels:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab",showLabels:"showLabels",iconColor:"iconColor",iconColorValue:"iconColorValue",iconBackgroundColor:"iconBackgroundColor",iconBackgroundColorValue:"iconBackgroundColorValue"},supports:{align:["left","center","right"],anchor:!0,html:!1,__experimentalExposeControlsToChildren:!0,layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,default:{type:"flex"}},color:{enableContrastChecker:!1,background:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!1}},spacing:{blockGap:["horizontal","vertical"],margin:!0,padding:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0,margin:!0,padding:!1}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},contentRole:!0,listView:!0},styles:[{name:"default",label:"Default",isDefault:!0},{name:"logos-only",label:"Logos Only"},{name:"pill-shape",label:"Pill Shape"}],editorStyle:"wp-block-social-links-editor",style:"wp-block-social-links"};var OS=a(T(),1),kce=a(y(),1);function wce(e){let{attributes:{iconBackgroundColorValue:t,iconColorValue:r,showLabels:o,size:n}}=e,i=w(n,{"has-visible-labels":o,"has-icon-color":r,"has-icon-background-color":t}),l=OS.useBlockProps.save({className:i}),s=OS.useInnerBlocksProps.save(l);return(0,kce.jsx)("ul",{...s})}var{name:Cce}=FS,Sce={example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},icon:c1,edit:xce,save:wce,deprecated:bce},YCe=()=>N({name:Cce,metadata:FS,settings:Sce});var XA={};q(XA,{init:()=>o6e,metadata:()=>jS,name:()=>Hce,settings:()=>jce});var Tce=a(T(),1),Pce=a(y(),1),QCe=[{attributes:{height:{type:"number",default:100},width:{type:"number"}},migrate(e){let{height:t,width:r}=e;return{...e,width:r!==void 0?`${r}px`:void 0,height:t!==void 0?`${t}px`:void 0}},save({attributes:e}){return(0,Pce.jsx)("div",{...Tce.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}}],Bce=QCe;var ma=a(T(),1),Mce=a(A(),1),Fg=a(H(),1),Ace=a(L(),1),HS=a(z(),1);var Vg=a(P(),1),kc=a(T(),1),vl=a(A(),1),Ice=a(pe(),1),Nce=a(L(),1);var qb=0;var jn=a(y(),1),{useSpacingSizes:XCe}=Z(kc.privateApis);function Ece({label:e,onChange:t,isResizing:r,value:o=""}){let n=(0,Ice.useInstanceId)(vl.__experimentalUnitControl,"block-spacer-height-input"),i=XCe(),[l]=(0,kc.useSettings)("spacing.units"),s=l?l.filter(d=>d!=="%"):["px","em","rem","vw","vh"],c=(0,vl.__experimentalUseCustomUnits)({availableUnits:s,defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),[u,m]=(0,vl.__experimentalParseQuantityAndUnitFromRawValue)(o),p=(0,kc.isValueSpacingPreset)(o)?o:[u,r?"px":m].join("");return(0,jn.jsx)(jn.Fragment,{children:i?.length<2?(0,jn.jsx)(vl.__experimentalUnitControl,{id:n,isResetValueOnUnitChange:!0,min:qb,onChange:t,value:p,units:c,label:e,__next40pxDefaultSize:!0}):(0,jn.jsx)(Nce.View,{className:"tools-panel-item-spacing",children:(0,jn.jsx)(kc.__experimentalSpacingSizesControl,{values:{all:p},onChange:({all:d})=>{t(d)},label:e,sides:["all"],units:c,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})})})}function Dce({setAttributes:e,orientation:t,height:r,width:o,isResizing:n}){let i=$();return(0,jn.jsx)(kc.InspectorControls,{children:(0,jn.jsxs)(vl.__experimentalToolsPanel,{label:(0,Vg.__)("Settings"),resetAll:()=>{e({width:void 0,height:"100px"})},dropdownMenuProps:i,children:[t==="horizontal"&&(0,jn.jsx)(vl.__experimentalToolsPanelItem,{label:(0,Vg.__)("Width"),isShownByDefault:!0,hasValue:()=>o!==void 0,onDeselect:()=>e({width:void 0}),children:(0,jn.jsx)(Ece,{label:(0,Vg.__)("Width"),value:o,onChange:l=>e({width:l}),isResizing:n})}),t!=="horizontal"&&(0,jn.jsx)(vl.__experimentalToolsPanelItem,{label:(0,Vg.__)("Height"),isShownByDefault:!0,hasValue:()=>r!=="100px",onDeselect:()=>e({height:"100px"}),children:(0,jn.jsx)(Ece,{label:(0,Vg.__)("Height"),value:r,onChange:l=>e({height:l}),isResizing:n})})]})})}var bl=a(y(),1),{useSpacingSizes:JCe}=Z(ma.privateApis),Lce=({orientation:e,onResizeStart:t,onResize:r,onResizeStop:o,isSelected:n,isResizing:i,setIsResizing:l,...s})=>{let c=m=>e==="horizontal"?m.clientWidth:m.clientHeight,u=m=>`${c(m)}px`;return(0,bl.jsx)(Mce.ResizableBox,{className:w("block-library-spacer__resize-container",{"resize-horizontal":e==="horizontal","is-resizing":i,"is-selected":n}),onResizeStart:(m,p,d)=>{let f=u(d);t(f),r(f)},onResize:(m,p,d)=>{r(u(d)),i||l(!0)},onResizeStop:(m,p,d)=>{let f=c(d);o(`${f}px`),l(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:e==="horizontal"?"x":"y",position:"corner",isVisible:i},showHandle:n,...s})},e6e=({attributes:e,isSelected:t,setAttributes:r,toggleSelection:o,context:n,__unstableParentLayout:i,className:l})=>{let s=(0,HS.useSelect)(X=>X(ma.store).getSettings()?.disableCustomSpacingSizes),{orientation:c}=n,{orientation:u,type:m,default:{type:p}={}}=i||{},d=m==="flex"||!m&&p==="flex",f=!u&&d?"horizontal":u||c,{height:h,width:g,style:b={}}=e,{layout:v={}}=b,{selfStretch:x,flexSize:_}=v,k=JCe(),[S,C]=(0,Fg.useState)(!1),[E,I]=(0,Fg.useState)(null),[D,M]=(0,Fg.useState)(null),F=()=>o(!1),R=()=>o(!0),{__unstableMarkNextChangeAsNotPersistent:V}=(0,HS.useDispatch)(ma.store),B=X=>{R(),d&&r({style:{...b,layout:{...v,flexSize:X,selfStretch:"fixed"}}}),r({height:X}),I(null)},j=X=>{R(),d&&r({style:{...b,layout:{...v,flexSize:X,selfStretch:"fixed"}}}),r({width:X}),M(null)},U=()=>{if(!d)return E||(0,ma.getSpacingPresetCssVar)(h)||void 0},O=()=>{if(!d)return D||(0,ma.getSpacingPresetCssVar)(g)||void 0},K=f==="horizontal"?D||_:E||_,W={height:f==="horizontal"?24:U(),width:f==="horizontal"?O():void 0,minWidth:f==="vertical"&&d?48:void 0,flexBasis:d?K:void 0,flexGrow:d&&S?0:void 0},ee=X=>X==="horizontal"?(0,bl.jsx)(Lce,{minWidth:qb,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:X,onResizeStart:F,onResize:M,onResizeStop:j,isSelected:t,isResizing:S,setIsResizing:C}):(0,bl.jsx)(bl.Fragment,{children:(0,bl.jsx)(Lce,{minHeight:qb,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:X,onResizeStart:F,onResize:I,onResizeStop:B,isSelected:t,isResizing:S,setIsResizing:C})});(0,Fg.useEffect)(()=>{let X=J=>{V(),r(J)};if(d&&x!=="fill"&&x!=="fit"&&_===void 0)if(f==="horizontal"){let J=(0,ma.getCustomValueFromPreset)(g,k)||(0,ma.getCustomValueFromPreset)(h,k)||"100px";X({width:"0px",style:{...b,layout:{...v,flexSize:J,selfStretch:"fixed"}}})}else{let J=(0,ma.getCustomValueFromPreset)(h,k)||(0,ma.getCustomValueFromPreset)(g,k)||"100px";X({height:"0px",style:{...b,layout:{...v,flexSize:J,selfStretch:"fixed"}}})}else d&&(x==="fill"||x==="fit")?X(f==="horizontal"?{width:void 0}:{height:void 0}):!d&&(x||_)&&X({...f==="horizontal"?{width:_}:{height:_},style:{...b,layout:{...v,flexSize:void 0,selfStretch:void 0}}})},[b,_,h,f,d,v,x,r,k,g,V]);let oe=(0,ma.useBlockEditingMode)();return(0,bl.jsxs)(bl.Fragment,{children:[(0,bl.jsx)(Ace.View,{...(0,ma.useBlockProps)({style:W,className:w(l,{"custom-sizes-disabled":s})}),children:oe==="default"&&ee(f)}),!d&&(0,bl.jsx)(Dce,{setAttributes:r,height:E||h,width:D||g,orientation:f,isResizing:S})]})},Rce=e6e;var jS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/spacer",title:"Spacer",category:"design",description:"Add white space between blocks and customize its height.",textdomain:"default",attributes:{height:{type:"string",default:"100px"},width:{type:"string"}},usesContext:["orientation"],supports:{anchor:!0,spacing:{margin:["top","bottom"],__experimentalDefaultControls:{margin:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-spacer-editor",style:"wp-block-spacer"};var zce=a(G(),1),r6e={to:[{type:"block",blocks:["core/separator"],transform:({anchor:e})=>(0,zce.createBlock)("core/separator",{anchor:e||void 0})}]},Vce=r6e;var Zb=a(T(),1),Fce=a(y(),1);function Oce({attributes:e}){let{height:t,width:r,style:o}=e,{layout:{selfStretch:n}={}}=o||{},i=n==="fill"||n==="fit"?void 0:t;return(0,Fce.jsx)("div",{...Zb.useBlockProps.save({style:{height:(0,Zb.getSpacingPresetCssVar)(i),width:(0,Zb.getSpacingPresetCssVar)(r)},"aria-hidden":!0})})}var{name:Hce}=jS,jce={icon:JP,transforms:Vce,edit:Rce,save:Oce,deprecated:Bce},o6e=()=>N({name:Hce,metadata:jS,settings:jce});var tR={};q(tR,{init:()=>l6e,metadata:()=>YS,name:()=>Qce,settings:()=>Xce});var $ce=a(P(),1),ef=a(T(),1),KS=a(z(),1),Xb=a(H(),1);var Gce=a(T(),1);var JA=a(P(),1),eR=a(G(),1),Kb=a(T(),1),GS=a(A(),1),WS=a(z(),1),US=a(y(),1);function wc({tabsClientId:e}){let{insertBlock:t}=(0,WS.useDispatch)(Kb.store),{tabPanelsClientId:r,tabsListClientId:o}=(0,WS.useSelect)(i=>{if(!e)return{tabPanelsClientId:null,tabsListClientId:null};let{getBlocks:l}=i(Kb.store),s=l(e),c=s.find(m=>m.name==="core/tab-panels"),u=s.find(m=>m.name==="core/tab-list");return{tabPanelsClientId:c?.clientId||null,tabsListClientId:u?.clientId||null}},[e]);return(0,US.jsx)(Kb.BlockControls,{group:"other",children:(0,US.jsx)(GS.ToolbarGroup,{children:(0,US.jsx)(GS.ToolbarButton,{className:"components-toolbar__control",onClick:()=>{if(!r)return;let i=(0,eR.createBlock)("core/tab-panel",{label:(0,JA.__)("Tab")});if(t(i,void 0,r),o){let l=(0,eR.createBlock)("core/tab",{});t(l,void 0,o)}},text:(0,JA.__)("Add tab")})})})}var Yb=a(T(),1),qS=a(A(),1),Uce=a(P(),1),ZS=a(z(),1),$S=a(y(),1);function Cc({tabsClientId:e}){let{removeBlock:t,updateBlockAttributes:r,selectBlock:o,__unstableMarkNextChangeAsNotPersistent:n}=(0,ZS.useDispatch)(Yb.store),{activeTabPanelClientId:i,activeTabClientId:l,tabCount:s,editorActiveTabIndex:c}=(0,ZS.useSelect)(p=>{if(!e)return{activeTabPanelClientId:null,activeTabClientId:null,tabCount:0,editorActiveTabIndex:0};let{getBlocks:d,getBlockAttributes:f}=p(Yb.store),h=f(e),g=h?.editorActiveTabIndex??h?.activeTabIndex??0,b=d(e),v=b.find(E=>E.name==="core/tab-panels"),x=b.find(E=>E.name==="core/tab-list"),_=v?.innerBlocks||[],k=x?.innerBlocks||[],S=_[g],C=k[g];return{activeTabPanelClientId:S?.clientId||null,activeTabClientId:C?.clientId||null,tabCount:k.length,editorActiveTabIndex:g}},[e]),u=()=>{if(!i||s<=1)return;let p=c>=s-1?s-2:c;n(),r(e,{editorActiveTabIndex:p}),t(i,!1),l&&t(l,!1),e&&o(e)},m=s<=1||!i;return(0,$S.jsx)(Yb.BlockControls,{group:"other",children:(0,$S.jsx)(qS.ToolbarGroup,{children:(0,$S.jsx)(qS.ToolbarButton,{className:"components-toolbar__control",onClick:u,text:(0,Uce.__)("Remove tab"),disabled:m})})})}var Qb=a(y(),1);function Wce({tabsClientId:e}){return(0,Qb.jsxs)(Gce.BlockControls,{children:[(0,Qb.jsx)(wc,{tabsClientId:e}),(0,Qb.jsx)(Cc,{tabsClientId:e})]})}var Zm=a(y(),1),a6e=[];function n6e({context:e,clientId:t}){let r=e["core/tabs-list"]||a6e,o=e["core/tabs-activeTabIndex"],n=e["core/tabs-editorActiveTabIndex"],i=(0,Xb.useMemo)(()=>n??o,[n,o]),{tabIndex:l,tabsClientId:s,selectedTabClientId:c}=(0,KS.useSelect)(k=>{let{getBlockOrder:S,getBlockRootClientId:C,getSelectedBlockClientIds:E,hasSelectedInnerBlock:I}=k(ef.store),D=C(t),M=D?C(D):null,R=S(D).indexOf(t),V=E(),B=null;for(let j of r)if(V.includes(j.clientId)||I(j.clientId,!0)){B=j.clientId;break}return{tabIndex:R,tabsClientId:M,selectedTabClientId:B}},[t,r]),u=r[l]||{},m=u.index??l,p=u.clientId||"",d=u.label||"",f=m===i,h=p===c,{__unstableMarkNextChangeAsNotPersistent:g,updateBlockAttributes:b}=(0,KS.useDispatch)(ef.store),v=(0,Xb.useCallback)(k=>{k.preventDefault(),s&&m!==i&&(g(),b(s,{editorActiveTabIndex:m}))},[s,m,i,b,g]),x=(0,Xb.useCallback)(k=>{p&&b(p,{label:k})},[p,b]),_=(0,ef.useBlockProps)({className:w({"is-active":f,"is-selected":h}),tabIndex:-1,onClick:v});return(0,Zm.jsxs)(Zm.Fragment,{children:[(0,Zm.jsx)(Wce,{tabsClientId:s}),(0,Zm.jsx)("button",{..._,type:"button",children:(0,Zm.jsx)(ef.RichText,{tagName:"span",withoutInteractiveFormatting:!0,placeholder:(0,$ce.__)("Tab title"),value:d,onChange:x})})]})}var qce=n6e;var Zce=a(T(),1),Kce=a(y(),1);function Yce(){let e=Zce.useBlockProps.save({type:"button",role:"tab"});return(0,Kce.jsx)("button",{...e})}var YS={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,apiVersion:3,name:"core/tab",title:"Tab",description:"A single tab button in the tab list.",category:"design",textdomain:"default",parent:["core/tab-list"],usesContext:["core/tabs-list","core/tabs-activeTabIndex","core/tabs-editorActiveTabIndex","core/tab-index","core/tab-id","core/tab-label"],supports:{html:!1,reusable:!1,visibility:!1,lock:!1,color:{background:!0,text:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,textAlign:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},editorScript:"file:./index.js",editorStyle:"file:./editor.css",style:"file:./style-index.css"};var{name:Qce}=YS,Xce={icon:CB,edit:qce,save:Yce},l6e=()=>N({name:Qce,metadata:YS,settings:Xce});var rR={};q(rR,{init:()=>m6e,metadata:()=>r8,name:()=>nue,settings:()=>iue});var tue=a(P(),1),tf=a(T(),1),JS=a(z(),1),rf=a(H(),1);var XS=a(T(),1),Og=a(A(),1),QS=a(P(),1),Jce=a(z(),1);var ys=a(y(),1);function eue({tabsClientId:e,blockIndex:t,isDefaultTab:r}){let{updateBlockAttributes:o}=(0,Jce.useDispatch)(XS.store),n=$();return(0,ys.jsxs)(ys.Fragment,{children:[(0,ys.jsx)(wc,{tabsClientId:e}),(0,ys.jsx)(Cc,{tabsClientId:e}),(0,ys.jsx)(XS.InspectorControls,{children:(0,ys.jsx)(Og.__experimentalToolsPanel,{label:(0,QS.__)("Settings"),resetAll:()=>{o(e,{activeTabIndex:0})},dropdownMenuProps:n,children:(0,ys.jsx)(Og.__experimentalToolsPanelItem,{label:(0,QS.__)("Default tab"),hasValue:()=>r&&t!==0,onDeselect:()=>{o(e,{activeTabIndex:0})},isShownByDefault:!0,children:(0,ys.jsx)(Og.CheckboxControl,{label:(0,QS.__)("Default tab"),checked:r,onChange:i=>{o(e,{activeTabIndex:i?t:0})}})})})})]})}var e8=a(y(),1),s6e=[["core/paragraph",{placeholder:(0,tue.__)("Type / to choose a block")}]],{cancelAnimationFrame:c6e}=window;function rue({clientId:e,context:t,isSelected:r}){let o=(0,rf.useRef)(),n=t["core/tabs-activeTabIndex"],l=t["core/tabs-editorActiveTabIndex"]??n;(0,rf.useEffect)(()=>()=>{o.current&&c6e(o.current)},[]);let{blockIndex:s,hasInnerBlocksSelected:c,tabsClientId:u}=(0,JS.useSelect)(v=>{let{getBlockRootClientId:x,getBlockIndex:_,hasSelectedInnerBlock:k}=v(tf.store),S=x(e),C=x(S),E=_(e),I=k(e,!0);return{blockIndex:E,hasInnerBlocksSelected:I,tabsClientId:C}},[e]),{updateBlockAttributes:m,__unstableMarkNextChangeAsNotPersistent:p}=(0,JS.useDispatch)(tf.store);(0,rf.useEffect)(()=>{(r||c)&&u&&l!==s&&(p(),m(u,{editorActiveTabIndex:s}))},[r,c,u,l,s,m,p]);let d=l===s,f=n===s,h=(0,rf.useMemo)(()=>!!(r||c||d),[r,c,d]),g=(0,tf.useBlockProps)({hidden:!h,tabIndex:h?0:-1}),b=(0,tf.useInnerBlocksProps)(g,{template:s6e});return(0,e8.jsxs)("section",{...b,children:[(0,e8.jsx)(eue,{tabsClientId:u,blockIndex:s,isDefaultTab:f}),h&&b.children]})}var t8=a(T(),1),oue=a(y(),1);function aue(){let e=t8.useBlockProps.save({role:"tabpanel"}),t=t8.useInnerBlocksProps.save(e);return(0,oue.jsx)("section",{...t})}var r8={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,apiVersion:3,name:"core/tab-panel",title:"Tab Panel",description:"Content for a tab in a tabbed interface.",category:"design",textdomain:"default",attributes:{label:{type:"string",default:""}},parent:["core/tab-panels"],usesContext:["core/tabs-activeTabIndex","core/tabs-editorActiveTabIndex","core/tabs-id"],supports:{anchor:!0,html:!1,reusable:!1,color:{background:!0,text:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0,spacing:{blockGap:!0,padding:!0,margin:!1},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0}},renaming:!0,visibility:!1},providesContext:{"core/tab-label":"label"},editorScript:"file:./index.js",style:"file:./style-index.css"};var{name:nue}=r8,iue={icon:kB,edit:rue,save:aue},m6e=()=>N({name:nue,metadata:r8,settings:iue});var oR={};q(oR,{init:()=>f6e,metadata:()=>a8,name:()=>mue,settings:()=>pue});var Hg=a(T(),1),lue=a(z(),1);var Km=a(y(),1),p6e=[["core/tab-panel",{}]];function sue({clientId:e}){let t=(0,Hg.useBlockProps)(),r=(0,Hg.useInnerBlocksProps)(t,{template:p6e,templateLock:!1,renderAppender:!1}),o=(0,lue.useSelect)(n=>n(Hg.store).getBlockRootClientId(e),[e]);return(0,Km.jsxs)(Km.Fragment,{children:[(0,Km.jsx)(wc,{tabsClientId:o}),(0,Km.jsx)(Cc,{tabsClientId:o}),(0,Km.jsx)("div",{...r})]})}var o8=a(T(),1),cue=a(y(),1);function uue(){let e=o8.useBlockProps.save(),t=o8.useInnerBlocksProps.save(e);return(0,cue.jsx)("div",{...t})}var a8={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,apiVersion:3,name:"core/tab-panels",title:"Tab Panels",description:"Container for tab panel content in a tabbed interface.",category:"design",textdomain:"default",parent:["core/tabs"],allowedBlocks:["core/tab-panel"],attributes:{},supports:{anchor:!1,html:!1,reusable:!1,visibility:!1,lock:!1,dimensions:{aspectRatio:!1,height:!1,minHeight:!1,width:!1},color:{background:!0,text:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:!1,padding:!0,margin:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},layout:{default:{type:"flex",flexWrap:"nowrap",justifyContent:"stretch",orientation:"vertical"},allowSwitching:!1,allowVerticalAlignment:!1,allowOrientation:!1,allowJustification:!0,allowSizingOnChildren:!1},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},editorScript:"file:./index.js",style:"file:./style-index.css"};var{name:mue}=a8,pue={icon:D0,edit:sue,save:uue},f6e=()=>N({name:mue,metadata:a8,settings:pue});var dR={};q(dR,{init:()=>N6e,metadata:()=>n8,name:()=>Sue,settings:()=>Tue});var Sc=a(P(),1);var rr=a(T(),1),nt=a(y(),1),due={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},aR={content:{type:"rich-text",source:"rich-text"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}},h6e={attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"rich-text",source:"rich-text",selector:"figcaption"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:aR}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:aR}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:aR}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table",interactivity:{clientNavigation:!0}},save({attributes:e}){let{hasFixedLayout:t,head:r,body:o,foot:n,caption:i}=e;if(!r.length&&!o.length&&!n.length)return null;let s=(0,rr.__experimentalGetColorClassesAndStyles)(e),c=(0,rr.__experimentalGetBorderClassesAndStyles)(e),u=w(s.className,c.className,{"has-fixed-layout":t}),m=!rr.RichText.isEmpty(i),p=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,nt.jsx)(h,{children:f.map(({cells:g},b)=>(0,nt.jsx)("tr",{children:g.map(({content:v,tag:x,scope:_,align:k,colspan:S,rowspan:C},E)=>{let I=w({[`has-text-align-${k}`]:k});return(0,nt.jsx)(rr.RichText.Content,{className:I||void 0,"data-align":k,tagName:x,value:v,scope:x==="th"?_:void 0,colSpan:S,rowSpan:C},E)})},b))})};return(0,nt.jsxs)("figure",{...rr.useBlockProps.save(),children:[(0,nt.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,nt.jsx)(p,{type:"head",rows:r}),(0,nt.jsx)(p,{type:"body",rows:o}),(0,nt.jsx)(p,{type:"foot",rows:n})]}),m&&(0,nt.jsx)(rr.RichText.Content,{tagName:"figcaption",value:i,className:(0,rr.__experimentalGetElementClassName)("caption")})]})}},nR={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}},g6e={attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:nR}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:nR}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:nR}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table"},save({attributes:e}){let{hasFixedLayout:t,head:r,body:o,foot:n,caption:i}=e;if(!r.length&&!o.length&&!n.length)return null;let s=(0,rr.__experimentalGetColorClassesAndStyles)(e),c=(0,rr.__experimentalGetBorderClassesAndStyles)(e),u=w(s.className,c.className,{"has-fixed-layout":t}),m=!rr.RichText.isEmpty(i),p=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,nt.jsx)(h,{children:f.map(({cells:g},b)=>(0,nt.jsx)("tr",{children:g.map(({content:v,tag:x,scope:_,align:k},S)=>{let C=w({[`has-text-align-${k}`]:k});return(0,nt.jsx)(rr.RichText.Content,{className:C||void 0,"data-align":k,tagName:x,value:v,scope:x==="th"?_:void 0},S)})},b))})};return(0,nt.jsxs)("figure",{...rr.useBlockProps.save(),children:[(0,nt.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,nt.jsx)(p,{type:"head",rows:r}),(0,nt.jsx)(p,{type:"body",rows:o}),(0,nt.jsx)(p,{type:"foot",rows:n})]}),m&&(0,nt.jsx)(rr.RichText.Content,{tagName:"figcaption",value:i})]})}},iR={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}},v6e={attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:iR}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:iR}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:iR}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{let{hasFixedLayout:t,head:r,body:o,foot:n,backgroundColor:i,caption:l}=e;if(!r.length&&!o.length&&!n.length)return null;let c=(0,rr.getColorClassName)("background-color",i),u=w(c,{"has-fixed-layout":t,"has-background":!!c}),m=!rr.RichText.isEmpty(l),p=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,nt.jsx)(h,{children:f.map(({cells:g},b)=>(0,nt.jsx)("tr",{children:g.map(({content:v,tag:x,scope:_,align:k},S)=>{let C=w({[`has-text-align-${k}`]:k});return(0,nt.jsx)(rr.RichText.Content,{className:C||void 0,"data-align":k,tagName:x,value:v,scope:x==="th"?_:void 0},S)})},b))})};return(0,nt.jsxs)("figure",{...rr.useBlockProps.save(),children:[(0,nt.jsxs)("table",{className:u===""?void 0:u,children:[(0,nt.jsx)(p,{type:"head",rows:r}),(0,nt.jsx)(p,{type:"body",rows:o}),(0,nt.jsx)(p,{type:"foot",rows:n})]}),m&&(0,nt.jsx)(rr.RichText.Content,{tagName:"figcaption",value:l})]})},isEligible:e=>e.backgroundColor&&e.backgroundColor in due&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:due[e.backgroundColor]}}})},lR={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}},b6e={attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:lR}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:lR}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:lR}}}},supports:{align:!0},save({attributes:e}){let{hasFixedLayout:t,head:r,body:o,foot:n,backgroundColor:i}=e;if(!r.length&&!o.length&&!n.length)return null;let s=(0,rr.getColorClassName)("background-color",i),c=w(s,{"has-fixed-layout":t,"has-background":!!s}),u=({type:m,rows:p})=>{if(!p.length)return null;let d=`t${m}`;return(0,nt.jsx)(d,{children:p.map(({cells:f},h)=>(0,nt.jsx)("tr",{children:f.map(({content:g,tag:b,scope:v},x)=>(0,nt.jsx)(rr.RichText.Content,{tagName:b,value:g,scope:b==="th"?v:void 0},x))},h))})};return(0,nt.jsxs)("table",{className:c,children:[(0,nt.jsx)(u,{type:"head",rows:r}),(0,nt.jsx)(u,{type:"body",rows:o}),(0,nt.jsx)(u,{type:"foot",rows:n})]})}},fue=[h6e,g6e,v6e,b6e];var Un=a(H(),1),bo=a(T(),1),wt=a(P(),1),Ur=a(A(),1);var y6e=["align"];function hue({rowCount:e,columnCount:t}){return{body:Array.from({length:e}).map(()=>({cells:Array.from({length:t}).map(()=>({content:"",tag:"td"}))}))}}function _6e(e){if(!Ym(e.head))return e.head[0];if(!Ym(e.body))return e.body[0];if(!Ym(e.foot))return e.foot[0]}function gue(e,t,r){let{sectionName:o,rowIndex:n,columnIndex:i}=t;return e[o]?.[n]?.cells?.[i]?.[r]}function sR(e,t,r){if(!t)return e;let o=Object.fromEntries(Object.entries(e).filter(([l])=>["head","body","foot"].includes(l))),{sectionName:n,rowIndex:i}=t;return Object.fromEntries(Object.entries(o).map(([l,s])=>n&&n!==l?[l,s]:[l,s.map((c,u)=>i&&i!==u?c:{cells:c.cells.map((m,p)=>x6e({sectionName:l,columnIndex:p,rowIndex:u},t)?r(m):m)})]))}function x6e(e,t){if(!e||!t)return!1;switch(t.type){case"column":return t.type==="column"&&e.columnIndex===t.columnIndex;case"cell":return t.type==="cell"&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}function cR(e,{sectionName:t,rowIndex:r,columnCount:o}){let n=_6e(e),i=o===void 0?n?.cells?.length:o;return i?{[t]:[...e[t].slice(0,r),{cells:Array.from({length:i}).map((l,s)=>{let c=n?.cells?.[s]??{};return{...Object.fromEntries(Object.entries(c).filter(([m])=>y6e.includes(m))),content:"",tag:t==="head"?"th":"td"}})},...e[t].slice(r)]}:e}function vue(e,{sectionName:t,rowIndex:r}){return{[t]:e[t].filter((o,n)=>n!==r)}}function bue(e,{columnIndex:t}){let r=Object.fromEntries(Object.entries(e).filter(([o])=>["head","body","foot"].includes(o)));return Object.fromEntries(Object.entries(r).map(([o,n])=>Ym(n)?[o,n]:[o,n.map(i=>_ue(i)||i.cells.length<t?i:{cells:[...i.cells.slice(0,t),{content:"",tag:o==="head"?"th":"td"},...i.cells.slice(t)]})]))}function yue(e,{columnIndex:t}){let r=Object.fromEntries(Object.entries(e).filter(([o])=>["head","body","foot"].includes(o)));return Object.fromEntries(Object.entries(r).map(([o,n])=>Ym(n)?[o,n]:[o,n.map(i=>({cells:i.cells.length>=t?i.cells.filter((l,s)=>s!==t):i.cells})).filter(i=>i.cells.length)]))}function uR(e,t){if(!Ym(e[t]))return{[t]:[]};let r=e.body?.[0]?.cells?.length??1;return cR(e,{sectionName:t,rowIndex:0,columnCount:r})}function Ym(e){return!e||!e.length||e.every(_ue)}function _ue(e){return!(e.cells&&e.cells.length)}var dt=a(y(),1),k6e=[{icon:O7,title:(0,wt.__)("Align column left"),align:"left"},{icon:V7,title:(0,wt.__)("Align column center"),align:"center"},{icon:G7,title:(0,wt.__)("Align column right"),align:"right"}],w6e={head:(0,wt.__)("Header cell text"),body:(0,wt.__)("Body cell text"),foot:(0,wt.__)("Footer cell text")},C6e={head:(0,wt._x)("Header label","table header"),foot:(0,wt._x)("Footer label","table footer")};function S6e({name:e,...t}){let r=`t${e}`;return(0,dt.jsx)(r,{...t})}function T6e({attributes:e,setAttributes:t,insertBlocksAfter:r,isSelected:o}){let{hasFixedLayout:n,head:i,foot:l}=e,[s,c]=(0,Un.useState)(2),[u,m]=(0,Un.useState)(2),[p,d]=(0,Un.useState)(),f=(0,bo.__experimentalUseColorProps)(e),h=(0,bo.__experimentalUseBorderProps)(e),g=(0,bo.useBlockEditingMode)(),b=(0,Un.useRef)(),[v,x]=(0,Un.useState)(!1),_=$();function k(ie){m(ie)}function S(ie){c(ie)}function C(ie){ie.preventDefault(),t(hue({rowCount:parseInt(s,10)||2,columnCount:parseInt(u,10)||2})),x(!0)}function E(){t({hasFixedLayout:!n})}let I=(0,Un.useCallback)(function(ie){p&&t(ue=>sR(ue,p,fe=>({...fe,content:ie})))},[p,t]);function D(ie){if(!p)return;let ue={type:"column",columnIndex:p.columnIndex},fe=sR(e,ue,Oe=>({...Oe,align:ie}));t(fe)}function M(){if(p)return gue(e,p,"align")}function F(){t(uR(e,"head"))}function R(){t(uR(e,"foot"))}function V(ie){if(!p)return;let{sectionName:ue,rowIndex:fe}=p,Oe=fe+ie;t(cR(e,{sectionName:ue,rowIndex:Oe})),d({sectionName:ue,rowIndex:Oe,columnIndex:0,type:"cell"})}function B(){V(0)}function j(){V(1)}function U(){if(!p)return;let{sectionName:ie,rowIndex:ue}=p;d(),t(vue(e,{sectionName:ie,rowIndex:ue}))}function O(ie=0){if(!p)return;let{columnIndex:ue}=p,fe=ue+ie;t(bue(e,{columnIndex:fe})),d({rowIndex:0,columnIndex:fe,type:"cell"})}function K(){O(0)}function W(){O(1)}function ee(){if(!p)return;let{sectionName:ie,columnIndex:ue}=p;d(),t(yue(e,{sectionName:ie,columnIndex:ue}))}(0,Un.useEffect)(()=>{o||d()},[o]),(0,Un.useEffect)(()=>{v&&(b?.current?.querySelector('td div[contentEditable="true"]')?.focus(),x(!1))},[v]);let oe=["head","body","foot"].filter(ie=>!Ym(e[ie])),X=[{icon:MB,title:(0,wt.__)("Insert row before"),isDisabled:!p,onClick:B},{icon:DB,title:(0,wt.__)("Insert row after"),isDisabled:!p,onClick:j},{icon:RB,title:(0,wt.__)("Delete row"),isDisabled:!p,onClick:U},{icon:BB,title:(0,wt.__)("Insert column before"),isDisabled:!p,onClick:K},{icon:TB,title:(0,wt.__)("Insert column after"),isDisabled:!p,onClick:W},{icon:IB,title:(0,wt.__)("Delete column"),isDisabled:!p,onClick:ee}],J=oe.map(ie=>(0,dt.jsx)(S6e,{name:ie,children:e[ie].map(({cells:ue},fe)=>(0,dt.jsx)("tr",{children:ue.map((Oe,ke)=>{let ae=p?.sectionName===ie&&p?.rowIndex===fe&&p?.columnIndex===ke;return(0,dt.jsx)(P6e,{name:ie,rowIndex:fe,columnIndex:ke,onChange:ae?I:void 0,setSelectedCell:d,...Oe},ke)})},fe))},ie)),ne=!oe.length;return(0,dt.jsxs)("figure",{...(0,bo.useBlockProps)({ref:b}),children:[!ne&&g==="default"&&(0,dt.jsxs)(dt.Fragment,{children:[(0,dt.jsx)(bo.BlockControls,{group:"block",children:(0,dt.jsx)(bo.AlignmentControl,{label:(0,wt.__)("Change column alignment"),alignmentControls:k6e,value:M(),onChange:ie=>D(ie)})}),(0,dt.jsx)(bo.BlockControls,{group:"other",children:(0,dt.jsx)(Ur.ToolbarDropdownMenu,{icon:VB,label:(0,wt.__)("Edit table"),controls:X})})]}),(0,dt.jsx)(bo.InspectorControls,{children:(0,dt.jsxs)(Ur.__experimentalToolsPanel,{label:(0,wt.__)("Settings"),resetAll:()=>{t({hasFixedLayout:!0,head:[],foot:[]})},dropdownMenuProps:_,children:[(0,dt.jsx)(Ur.__experimentalToolsPanelItem,{hasValue:()=>n!==!0,label:(0,wt.__)("Fixed width table cells"),onDeselect:()=>t({hasFixedLayout:!0}),isShownByDefault:!0,children:(0,dt.jsx)(Ur.ToggleControl,{label:(0,wt.__)("Fixed width table cells"),checked:!!n,onChange:E})}),!ne&&(0,dt.jsxs)(dt.Fragment,{children:[(0,dt.jsx)(Ur.__experimentalToolsPanelItem,{hasValue:()=>i&&i.length,label:(0,wt.__)("Header section"),onDeselect:()=>t({head:[]}),isShownByDefault:!0,children:(0,dt.jsx)(Ur.ToggleControl,{label:(0,wt.__)("Header section"),checked:!!(i&&i.length),onChange:F})}),(0,dt.jsx)(Ur.__experimentalToolsPanelItem,{hasValue:()=>l&&l.length,label:(0,wt.__)("Footer section"),onDeselect:()=>t({foot:[]}),isShownByDefault:!0,children:(0,dt.jsx)(Ur.ToggleControl,{label:(0,wt.__)("Footer section"),checked:!!(l&&l.length),onChange:R})})]})]})}),!ne&&(0,dt.jsx)("table",{className:w(f.className,h.className,{"has-fixed-layout":n,"has-individual-borders":(0,Ur.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...f.style,...h.style},children:J}),ne?(0,dt.jsx)(Ur.Placeholder,{label:(0,wt.__)("Table"),icon:(0,dt.jsx)(bo.BlockIcon,{icon:S0,showColors:!0}),instructions:(0,wt.__)("Insert a table for sharing data."),children:(0,dt.jsxs)("form",{className:"blocks-table__placeholder-form",onSubmit:C,children:[(0,dt.jsx)(Ur.TextControl,{__next40pxDefaultSize:!0,type:"number",label:(0,wt.__)("Column count"),value:u,onChange:k,min:"1",className:"blocks-table__placeholder-input"}),(0,dt.jsx)(Ur.TextControl,{__next40pxDefaultSize:!0,type:"number",label:(0,wt.__)("Row count"),value:s,onChange:S,min:"1",className:"blocks-table__placeholder-input"}),(0,dt.jsx)(Ur.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,wt.__)("Create Table")})]})}):(0,dt.jsx)(ga,{attributes:e,setAttributes:t,isSelected:o,insertBlocksAfter:r,label:(0,wt.__)("Table caption text"),showToolbarButton:o&&g==="default"})]})}var P6e=(0,Un.memo)(function({tag:e,name:t,scope:r,colspan:o,rowspan:n,rowIndex:i,columnIndex:l,align:s,content:c,onChange:u,setSelectedCell:m}){return(0,dt.jsx)(e,{scope:e==="th"?r:void 0,colSpan:o,rowSpan:n,className:w({[`has-text-align-${s}`]:s},"wp-block-table__cell-content"),children:(0,dt.jsx)(bo.RichText,{value:c,onChange:u,onFocus:()=>{m({sectionName:t,rowIndex:i,columnIndex:l,type:"cell"})},"aria-label":w6e[t],placeholder:C6e[t]})})}),xue=T6e;var n8={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/table",title:"Table",category:"text",description:"Create structured content in rows and columns to display information.",textdomain:"default",attributes:{hasFixedLayout:{type:"boolean",default:!0},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text",role:"content"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text",role:"content"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text",role:"content"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},interactivity:{clientNavigation:!0}},selectors:{root:".wp-block-table > table",spacing:".wp-block-table"},styles:[{name:"regular",label:"Default",isDefault:!0},{name:"stripes",label:"Stripes"}],editorStyle:"wp-block-table-editor",style:"wp-block-table"};var yl=a(T(),1),_s=a(y(),1);function kue({attributes:e}){let{hasFixedLayout:t,head:r,body:o,foot:n,caption:i}=e;if(!r.length&&!o.length&&!n.length)return null;let s=(0,yl.__experimentalGetColorClassesAndStyles)(e),c=(0,yl.__experimentalGetBorderClassesAndStyles)(e),u=w(s.className,c.className,{"has-fixed-layout":t}),m=!yl.RichText.isEmpty(i),p=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,_s.jsx)(h,{children:f.map(({cells:g},b)=>(0,_s.jsx)("tr",{children:g.map(({content:v,tag:x,scope:_,align:k,colspan:S,rowspan:C},E)=>{let I=w({[`has-text-align-${k}`]:k});return(0,_s.jsx)(yl.RichText.Content,{className:I||void 0,"data-align":k,tagName:x,value:v,scope:x==="th"?_:void 0,colSpan:S,rowSpan:C},E)})},b))})};return(0,_s.jsxs)("figure",{...yl.useBlockProps.save(),children:[(0,_s.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,_s.jsx)(p,{type:"head",rows:r}),(0,_s.jsx)(p,{type:"body",rows:o}),(0,_s.jsx)(p,{type:"foot",rows:n})]}),m&&(0,_s.jsx)(yl.RichText.Content,{tagName:"figcaption",value:i,className:(0,yl.__experimentalGetElementClassName)("caption")})]})}var wue=a(G(),1);function mR(e){let t=parseInt(e,10);if(Number.isInteger(t))return t<0||t===1?void 0:t.toString()}var pR=({phrasingContentSchema:e})=>({tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:e,attributes:["scope","colspan","rowspan","style"]},td:{allowEmpty:!0,children:e,attributes:["colspan","rowspan","style"]}}}}),E6e=e=>({table:{children:{thead:{allowEmpty:!0,children:pR(e)},tfoot:{allowEmpty:!0,children:pR(e)},tbody:{allowEmpty:!0,children:pR(e)}}}}),I6e={from:[{type:"raw",selector:"table",schema:E6e,transform:e=>{let t=Array.from(e.children).reduce((r,o)=>{if(!o.children.length)return r;let n=o.nodeName.toLowerCase().slice(1),i=Array.from(o.children).reduce((l,s)=>{if(!s.children.length)return l;let c=Array.from(s.children).reduce((u,m)=>{let p=mR(m.getAttribute("rowspan")),d=mR(m.getAttribute("colspan")),{textAlign:f}=m.style||{},h;return(f==="left"||f==="center"||f==="right")&&(h=f),u.push({tag:m.nodeName.toLowerCase(),content:m.innerHTML,rowspan:p,colspan:d,align:h}),u},[]);return l.push({cells:c}),l},[]);return r[n]=i,r},{});return(0,wue.createBlock)("core/table",t)}}]},Cue=I6e;var{name:Sue}=n8,Tue={icon:S0,example:{attributes:{head:[{cells:[{content:(0,Sc.__)("Version"),tag:"th"},{content:(0,Sc.__)("Jazz Musician"),tag:"th"},{content:(0,Sc.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:(0,Sc.__)("Jaco Pastorius"),tag:"td"},{content:(0,Sc.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:(0,Sc.__)("Betty Carter"),tag:"td"},{content:(0,Sc.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:(0,Sc.__)("Bebo Vald\xE9s"),tag:"td"},{content:(0,Sc.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:Cue,edit:xue,save:kue,deprecated:fue},N6e=()=>N({name:Sue,metadata:n8,settings:Tue});var hR={};q(hR,{init:()=>A6e,metadata:()=>i8,name:()=>Hue,settings:()=>jue});var Su=a(P(),1);var i8={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/table-of-contents",title:"Table of Contents",category:"design",description:"Summarize your post with a list of headings. Add HTML anchors to Heading blocks to link them here.",keywords:["document outline","summary"],textdomain:"default",attributes:{headings:{type:"array",items:{type:"object"},default:[]},onlyIncludeCurrentPage:{type:"boolean",default:!1},maxLevel:{type:"number"},ordered:{type:"boolean",default:!0}},supports:{anchor:!0,ariaLabel:!0,html:!1,color:{text:!0,background:!0,gradients:!0,link:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-table-of-contents"};var xs=a(T(),1),Aue=a(G(),1),Ro=a(A(),1),ty=a(z(),1),Rue=a(H(),1),Ft=a(P(),1),zue=a(pe(),1),Vue=a(yr(),1);var Tc=a(y(),1),Pue="wp-block-table-of-contents__entry";function jg({nestedHeadingList:e,disableLinkActivation:t,onClick:r,ordered:o=!0}){return(0,Tc.jsx)(Tc.Fragment,{children:e.map((n,i)=>{let{content:l,link:s}=n.heading,c=s?(0,Tc.jsx)("a",{className:Pue,href:s,"aria-disabled":t||void 0,onClick:t&&typeof r=="function"?r:void 0,children:l}):(0,Tc.jsx)("span",{className:Pue,children:l}),u=o?"ol":"ul";return(0,Tc.jsxs)("li",{children:[c,n.children?(0,Tc.jsx)(u,{children:(0,Tc.jsx)(jg,{nestedHeadingList:n.children,disableLinkActivation:t,onClick:t&&typeof r=="function"?r:void 0,ordered:o})}):null]},i)})})}function Jb(e){let t=[];return e.forEach((r,o)=>{if(r.content!==""&&r.level===e[0].level)if(e[o+1]?.level>r.level){let n=e.length;for(let i=o+1;i<e.length;i++)if(e[i].level===r.level){n=i;break}t.push({heading:r,children:Jb(e.slice(o+1,n))})}else t.push({heading:r,children:null})}),t}var Iue=a(Eue(),1),Nue=a(z(),1),Due=a(Jn(),1),Lue=a(H(),1),ey=a(ir(),1),l8=a(T(),1);function L6e(e,t){let{getBlockAttributes:r,getBlockName:o,getBlocksByName:n,getClientIdsOfDescendants:i}=e(l8.store),l=e("core/editor").getPermalink()??null,s=n("core/nextpage").length!==0,{onlyIncludeCurrentPage:c,maxLevel:u}=r(t)??{},[m=""]=n("core/post-content"),p=i(m),d=1;if(s&&c){let b=p.indexOf(t);for(let[v,x]of p.entries()){if(v>=b)break;o(x)==="core/nextpage"&&d++}}let f=[],h=1,g=null;typeof l=="string"&&(g=s?(0,ey.addQueryArgs)(l,{page:h}):l);for(let b of p){let v=o(b);if(v==="core/nextpage"){if(h++,c&&h>d)break;typeof l=="string"&&(g=(0,ey.addQueryArgs)((0,ey.removeQueryArgs)(l,["page"]),{page:h}))}else if((!c||h===d)&&v==="core/heading"){let x=r(b);if(u&&x.level>u)continue;let _=typeof g=="string"&&typeof x.anchor=="string"&&x.anchor!=="";f.push({content:(0,Due.__unstableStripHTML)(x.content.replace(/(<br *\/?>)+/g," ")),level:x.level,link:_?`${g}#${x.anchor}`:null})}}return f}function M6e(e,t,r){let{getBlockAttributes:o}=e(l8.store),{updateBlockAttributes:n,__unstableMarkNextChangeAsNotPersistent:i}=t(l8.store),l=o(r);if(l===null)return;let s=L6e(e,r);(0,Iue.default)(s,l.headings)||window.queueMicrotask(()=>{i(),n(r,{headings:s})})}function Mue(e){let t=(0,Nue.useRegistry)();(0,Lue.useEffect)(()=>t.subscribe(()=>M6e(t.select,t.dispatch,e)),[t,e])}var or=a(y(),1);function fR({attributes:{headings:e=[],onlyIncludeCurrentPage:t,maxLevel:r,ordered:o=!0},clientId:n,setAttributes:i}){Mue(n);let l=(0,xs.useBlockProps)(),s=(0,zue.useInstanceId)(fR,"table-of-contents"),{createWarningNotice:c}=(0,ty.useDispatch)(Vue.store),u=v=>{v.preventDefault(),c((0,Ft.__)("Links are disabled in the editor."),{id:`block-library/core/table-of-contents/redirection-prevented/${s}`,type:"snackbar"})},m=(0,ty.useSelect)(v=>{let{getBlockRootClientId:x,canInsertBlockType:_}=v(xs.store),k=x(n);return _("core/list",k)},[n]),{replaceBlocks:p}=(0,ty.useDispatch)(xs.store),d=$(),f=Jb(e),h=(0,or.jsxs)(xs.BlockControls,{children:[(0,or.jsxs)(Ro.ToolbarGroup,{children:[(0,or.jsx)(Ro.ToolbarButton,{icon:(0,Ft.isRTL)()?V0:F0,title:(0,Ft.__)("Unordered"),description:(0,Ft.__)("Convert to unordered list"),onClick:()=>i({ordered:!1}),isActive:o===!1}),(0,or.jsx)(Ro.ToolbarButton,{icon:(0,Ft.isRTL)()?O0:ji,title:(0,Ft.__)("Ordered"),description:(0,Ft.__)("Convert to ordered list"),onClick:()=>i({ordered:!0}),isActive:o===!0})]}),m&&(0,or.jsx)(Ro.ToolbarGroup,{children:(0,or.jsx)(Ro.ToolbarButton,{onClick:()=>p(n,(0,Aue.createBlock)("core/list",{ordered:o,values:(0,Rue.renderToString)((0,or.jsx)(jg,{nestedHeadingList:f,ordered:o}))})),children:(0,Ft.__)("Convert to static list")})})]}),g=(0,or.jsx)(xs.InspectorControls,{children:(0,or.jsxs)(Ro.__experimentalToolsPanel,{label:(0,Ft.__)("Settings"),resetAll:()=>{i({onlyIncludeCurrentPage:!1,maxLevel:void 0,ordered:!0})},dropdownMenuProps:d,children:[(0,or.jsx)(Ro.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Ft.__)("Only include current page"),onDeselect:()=>i({onlyIncludeCurrentPage:!1}),isShownByDefault:!0,children:(0,or.jsx)(Ro.ToggleControl,{label:(0,Ft.__)("Only include current page"),checked:t,onChange:v=>i({onlyIncludeCurrentPage:v}),help:t?(0,Ft.__)("Only including headings from the current page (if the post is paginated)."):(0,Ft.__)("Include headings from all pages (if the post is paginated).")})}),(0,or.jsx)(Ro.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,Ft.__)("Limit heading levels"),onDeselect:()=>i({maxLevel:void 0}),isShownByDefault:!0,children:(0,or.jsx)(Ro.SelectControl,{__next40pxDefaultSize:!0,label:(0,Ft.__)("Include headings down to level"),value:r||"",options:[{value:"",label:(0,Ft.__)("All levels")},{value:"1",label:(0,Ft.__)("Heading 1")},{value:"2",label:(0,Ft.__)("Heading 2")},{value:"3",label:(0,Ft.__)("Heading 3")},{value:"4",label:(0,Ft.__)("Heading 4")},{value:"5",label:(0,Ft.__)("Heading 5")},{value:"6",label:(0,Ft.__)("Heading 6")}],onChange:v=>i({maxLevel:v?parseInt(v):void 0}),help:r?(0,Ft.__)("Only include headings up to and including this level."):(0,Ft.__)("Including all heading levels in the table of contents.")})})]})});return e.length===0?(0,or.jsxs)(or.Fragment,{children:[(0,or.jsx)("div",{...l,children:(0,or.jsx)(Ro.Placeholder,{icon:(0,or.jsx)(xs.BlockIcon,{icon:f1}),label:(0,Ft.__)("Table of Contents"),instructions:(0,Ft.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})}),g]}):(0,or.jsxs)(or.Fragment,{children:[(0,or.jsx)("nav",{...l,children:(0,or.jsx)(o?"ol":"ul",{children:(0,or.jsx)(jg,{nestedHeadingList:f,disableLinkActivation:!0,onClick:u,ordered:o})})}),h,g]})}var Fue=a(T(),1);var s8=a(y(),1);function Oue({attributes:{headings:e=[],ordered:t=!0}}){if(e.length===0)return null;let r=t?"ol":"ul";return(0,s8.jsx)("nav",{...Fue.useBlockProps.save(),children:(0,s8.jsx)(r,{children:(0,s8.jsx)(jg,{nestedHeadingList:Jb(e),ordered:t})})})}var{name:Hue}=i8,jue={icon:f1,edit:fR,save:Oue,example:{innerBlocks:[{name:"core/heading",attributes:{level:2,content:(0,Su.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,Su.__)("Subheading")}},{name:"core/heading",attributes:{level:2,content:(0,Su.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,Su.__)("Subheading")}}],attributes:{headings:[{content:(0,Su.__)("Heading"),level:2},{content:(0,Su.__)("Subheading"),level:3},{content:(0,Su.__)("Heading"),level:2},{content:(0,Su.__)("Subheading"),level:3}]}}},A6e=()=>N({name:Hue,metadata:i8,settings:jue});var gR={};q(gR,{init:()=>V6e,metadata:()=>u8,name:()=>que,settings:()=>Zue});var Ug=a(T(),1),Uue=a(z(),1);var Qm=a(y(),1);function R6e({clientId:e}){let t=(0,Uue.useSelect)(n=>n(Ug.store).getBlockRootClientId(e),[e]),r=(0,Ug.useBlockProps)(),o=(0,Ug.useInnerBlocksProps)(r,{allowedBlocks:["core/tab"],orientation:"horizontal",templateLock:!1,renderAppender:!1});return(0,Qm.jsxs)(Qm.Fragment,{children:[(0,Qm.jsx)(wc,{tabsClientId:t}),(0,Qm.jsx)(Cc,{tabsClientId:t}),(0,Qm.jsx)("div",{...o})]})}var Gue=R6e;var c8=a(T(),1),Wue=a(y(),1);function $ue(){let e=c8.useBlockProps.save({role:"tablist"}),t=c8.useInnerBlocksProps.save(e);return(0,Wue.jsx)("div",{...t})}var u8={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,apiVersion:3,name:"core/tab-list",title:"Tab List",description:"Display the tab buttons for a tabbed interface.",category:"design",textdomain:"default",parent:["core/tabs"],allowedBlocks:["core/tab"],usesContext:["core/tabs-list"],attributes:{},supports:{html:!1,reusable:!1,visibility:!1,lock:!1,dimensions:{aspectRatio:!1,height:!1,minHeight:!1,width:!1},color:{background:!0,text:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},layout:{default:{type:"flex",flexWrap:"nowrap",orientation:"horizontal"},allowSwitching:!1,allowVerticalAlignment:!0,allowJustification:!0,allowOrientation:!0},spacing:{padding:!0,margin:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,margin:!0,blockGap:!0}}},editorScript:"file:./index.js",editorStyle:"file:./editor.css"};var{name:que}=u8,Zue={icon:_B,edit:Gue,save:$ue},V6e=()=>N({name:que,metadata:u8,settings:Zue});var yR={};q(yR,{init:()=>j6e,metadata:()=>f8,name:()=>ame,settings:()=>nme});var oy=a(P(),1);var Xm=a(T(),1),eme=a(z(),1),p8=a(H(),1),bR=a(P(),1);var of=a(y(),1);function Kue({clientId:e}){return(0,of.jsxs)(of.Fragment,{children:[(0,of.jsx)(wc,{tabsClientId:e}),(0,of.jsx)(Cc,{tabsClientId:e})]})}var vR=a(G(),1),Yue=a(T(),1),Que=a(z(),1),m8=a(H(),1);function Xue({tabPanels:e,tabs:t,tabPanelsClientId:r,tabsListClientId:o}){let{removeBlock:n,insertBlocks:i,replaceInnerBlocks:l,__unstableMarkNextChangeAsNotPersistent:s}=(0,Que.useDispatch)(Yue.store),c=(0,m8.useRef)(null);(0,m8.useEffect)(()=>{if(c.current===null){c.current={tabPanels:[...e],tabs:[...t]};return}let{tabPanels:u,tabs:m}=c.current,p=e.length-u.length,d=t.length-m.length,f=p>0,h=d>0;if(p===d){if(p===0&&r&&t.some((v,x)=>v.clientId!==m[x]?.clientId)){let v=t.map(x=>{let _=m.findIndex(k=>k.clientId===x.clientId);return _!==-1?e[_]:null}).filter(Boolean);v.length===e.length&&(s(),l(r,v,!1))}c.current={tabPanels:[...e],tabs:[...t]};return}if(p>0&&d>0||p<0&&d<0){c.current={tabPanels:[...e],tabs:[...t]};return}if(f&&!o||h&&!r)return;c.current={tabPanels:[...e],tabs:[...t]};let g=new Set(e.map(v=>v.clientId)),b=new Set(t.map(v=>v.clientId));if(p<0){let v=u.map((_,k)=>g.has(_.clientId)?-1:k).filter(_=>_!==-1),x=new Set(v);v.forEach(_=>{t[_]&&(s(),n(t[_].clientId,!1))}),c.current.tabs=c.current.tabs.filter((_,k)=>!x.has(k))}else if(d<0){let v=m.map((_,k)=>b.has(_.clientId)?-1:k).filter(_=>_!==-1),x=new Set(v);v.forEach(_=>{e[_]&&(s(),n(e[_].clientId,!1))}),c.current.tabPanels=c.current.tabPanels.filter((_,k)=>!x.has(k))}else if(f){let v=new Set(u.map(_=>_.clientId)),x=e.map((_,k)=>v.has(_.clientId)?null:{tabPanelIndex:k,block:(0,vR.createBlock)("core/tab",{})}).filter(Boolean);x.length>0&&(s(),i(x.map(({block:_})=>_),x[0].tabPanelIndex,o,!1),x.forEach(({tabPanelIndex:_,block:k})=>{c.current.tabs.splice(_,0,{clientId:k.clientId})}))}else if(h){let v=new Set(m.map(_=>_.clientId)),x=t.map((_,k)=>{if(v.has(_.clientId))return null;let S=e[k-1]?.attributes?.label??e[k]?.attributes?.label??"";return{tabIndex:k,block:(0,vR.createBlock)("core/tab-panel",{label:S})}}).filter(Boolean);x.length>0&&(s(),i(x.map(({block:_})=>_),x[0].tabIndex,r,!1),x.forEach(({tabIndex:_,block:k})=>{c.current.tabPanels.splice(_,0,{clientId:k.clientId})}))}},[e,t,n,i,l,s,o,r])}var ry=a(y(),1),Jue=[],F6e=[["core/tab-list",{},[["core/tab",{}],["core/tab",{}]]],["core/tab-panels",{},[["core/tab-panel",{label:(0,bR.__)("Tab")},[["core/paragraph"]]],["core/tab-panel",{label:(0,bR.__)("Tab")},[["core/paragraph"]]]]]];function O6e({clientId:e,attributes:t,setAttributes:r}){let{anchor:o,activeTabIndex:n,editorActiveTabIndex:i}=t;(0,p8.useEffect)(()=>{i===void 0&&r({editorActiveTabIndex:n})},[]);let{tabPanels:l,tabPanelsClientId:s,tabs:c,tabListClientId:u}=(0,eme.useSelect)(f=>{let{getBlocks:h}=f(Xm.store),g=h(e),b=g.find(x=>x.name==="core/tab-panels"),v=g.find(x=>x.name==="core/tab-list");return{tabPanels:b?.innerBlocks??Jue,tabPanelsClientId:b?.clientId??null,tabs:v?.innerBlocks??Jue,tabListClientId:v?.clientId??null}},[e]);Xue({tabPanels:l,tabs:c,tabPanelsClientId:s,tabListClientId:u});let m=(0,p8.useMemo)(()=>({"core/tabs-list":l.map((h,g)=>({id:h.attributes.anchor||`tab-${g}`,label:h.attributes.label||"",clientId:h.clientId,index:g})),"core/tabs-id":o,"core/tabs-activeTabIndex":n,"core/tabs-editorActiveTabIndex":i}),[l,o,n,i]),p=(0,Xm.useBlockProps)(),d=(0,Xm.useInnerBlocksProps)(p,{__experimentalCaptureToolbars:!0,template:F6e,templateLock:"all",renderAppender:!1});return(0,ry.jsx)(Xm.BlockContextProvider,{value:m,children:(0,ry.jsxs)("div",{...d,children:[(0,ry.jsx)(Kue,{clientId:e,attributes:t,setAttributes:r}),d.children]})})}var tme=O6e;var d8=a(T(),1),rme=a(y(),1);function ome(){let e=d8.useBlockProps.save(),t=d8.useInnerBlocksProps.save(e);return(0,rme.jsx)("div",{...t})}var f8={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,apiVersion:3,name:"core/tabs",title:"Tabs",description:"Display content in a tabbed interface to help users navigate detailed content with ease.",category:"design",textdomain:"default",allowedBlocks:["core/tab-list","core/tab-panels"],attributes:{activeTabIndex:{type:"number",default:0},editorActiveTabIndex:{type:"number",role:"local"}},supports:{align:!0,anchor:!0,color:{text:!0,background:!0,__experimentalDefaultControls:{text:!0,background:!0}},layout:{default:{type:"flex",flexWrap:"nowrap",justifyContent:"stretch",verticalAlignment:"stretch",orientation:"vertical"},allowSwitching:!1,allowVerticalAlignment:!0,allowJustification:!0,allowOrientation:!0,allowSizingOnChildren:!0},html:!1,interactivity:!0,spacing:{blockGap:!0,margin:!0,padding:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},renaming:!0},providesContext:{"core/tabs-activeTabIndex":"activeTabIndex","core/tabs-editorActiveTabIndex":"editorActiveTabIndex"},usesContext:["core/tabs-list","core/tabs-id"],editorScript:"file:./index.js",editorStyle:"file:./index.css",style:"file:./style-index.css",viewScriptModule:"@wordpress/block-library/tabs/view"};var{name:ame}=f8,nme={icon:OB,example:{innerBlocks:[{name:"core/tab-list",innerBlocks:[{name:"core/tab",attributes:{anchor:"tab-1-button"}},{name:"core/tab",attributes:{anchor:"tab-2-button"}}]},{name:"core/tab-panels",innerBlocks:[1,2].map(e=>({name:"core/tab-panel",attributes:{anchor:`tab-${e}`,label:(0,oy.sprintf)((0,oy.__)("Tab %s"),e)},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,oy.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}}]}))}]},edit:tme,save:ome},j6e=()=>N({name:ame,metadata:f8,settings:nme});var xR={};q(xR,{init:()=>Z6e,metadata:()=>h8,name:()=>fme,settings:()=>hme});var _R=a(G(),1),U6e={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,_R.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,_R.createBlock)("core/categories")}]},ime=U6e;var h8={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/tag-cloud",title:"Tag Cloud",category:"widgets",description:"A cloud of popular keywords, each sized by how often it appears.",textdomain:"default",attributes:{numberOfTags:{type:"number",default:45,minimum:1,maximum:100},taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1},smallestFontSize:{type:"string",default:"8pt"},largestFontSize:{type:"string",default:"22pt"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"outline",label:"Outline"}],supports:{anchor:!0,html:!1,align:!0,spacing:{margin:!0,padding:!0},typography:{lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}}};var Ot=a(A(),1),cme=a(z(),1),fn=a(P(),1),Gg=a(T(),1),ume=a(Y(),1),mme=a(Mu(),1),pme=a(pe(),1);var vr=a(y(),1),W6e=1,$6e=100,lme=.1,sme=100;function q6e({attributes:e,setAttributes:t,name:r}){let{taxonomy:o,showTagCounts:n,numberOfTags:i,smallestFontSize:l,largestFontSize:s}=e,[c]=(0,Gg.useSettings)("spacing.units"),u=$(),m=(0,Ot.__experimentalUseCustomUnits)({availableUnits:c?[...c,"pt"]:["%","px","em","rem","pt"]}),p=(0,cme.useSelect)(k=>k(ume.store).getTaxonomies({per_page:-1}),[]),d=()=>{let k={label:(0,fn.__)("- Select -"),value:"",disabled:!0},S=(p??[]).filter(C=>!!C.show_cloud).map(C=>({value:C.slug,label:C.name}));return[k,...S]},f=(k,S)=>{let[C,E]=(0,Ot.__experimentalParseQuantityAndUnitFromRawValue)(S);if(!Number.isFinite(C))return;let I={[k]:S};Object.entries({smallestFontSize:l,largestFontSize:s}).forEach(([D,M])=>{let[F,R]=(0,Ot.__experimentalParseQuantityAndUnitFromRawValue)(M);D!==k&&R!==E&&(I[D]=`${F}${E}`)}),t(I)},h=(0,vr.jsx)(Gg.InspectorControls,{children:(0,vr.jsxs)(Ot.__experimentalToolsPanel,{label:(0,fn.__)("Settings"),resetAll:()=>{t({taxonomy:"post_tag",showTagCounts:!1,numberOfTags:45,smallestFontSize:"8pt",largestFontSize:"22pt"})},dropdownMenuProps:u,children:[(0,vr.jsx)(Ot.__experimentalToolsPanelItem,{hasValue:()=>o!=="post_tag",label:(0,fn.__)("Taxonomy"),onDeselect:()=>t({taxonomy:"post_tag"}),isShownByDefault:!0,children:(0,vr.jsx)(Ot.SelectControl,{__next40pxDefaultSize:!0,label:(0,fn.__)("Taxonomy"),options:d(),value:o,onChange:k=>t({taxonomy:k})})}),(0,vr.jsx)(Ot.__experimentalToolsPanelItem,{hasValue:()=>l!=="8pt"||s!=="22pt",label:(0,fn.__)("Font size"),onDeselect:()=>t({smallestFontSize:"8pt",largestFontSize:"22pt"}),isShownByDefault:!0,children:(0,vr.jsxs)(Ot.Flex,{gap:4,children:[(0,vr.jsx)(Ot.FlexItem,{isBlock:!0,children:(0,vr.jsx)(Ot.__experimentalUnitControl,{label:(0,fn.__)("Smallest size"),value:l,onChange:k=>{f("smallestFontSize",k)},units:m,min:lme,max:sme,size:"__unstable-large"})}),(0,vr.jsx)(Ot.FlexItem,{isBlock:!0,children:(0,vr.jsx)(Ot.__experimentalUnitControl,{label:(0,fn.__)("Largest size"),value:s,onChange:k=>{f("largestFontSize",k)},units:m,min:lme,max:sme,size:"__unstable-large"})})]})}),(0,vr.jsx)(Ot.__experimentalToolsPanelItem,{hasValue:()=>i!==45,label:(0,fn.__)("Number of tags"),onDeselect:()=>t({numberOfTags:45}),isShownByDefault:!0,children:(0,vr.jsx)(Ot.RangeControl,{__next40pxDefaultSize:!0,label:(0,fn.__)("Number of tags"),value:i,onChange:k=>t({numberOfTags:k}),min:W6e,max:$6e,required:!0})}),(0,vr.jsx)(Ot.__experimentalToolsPanelItem,{hasValue:()=>n!==!1,label:(0,fn.__)("Show tag counts"),onDeselect:()=>t({showTagCounts:!1}),isShownByDefault:!0,children:(0,vr.jsx)(Ot.ToggleControl,{label:(0,fn.__)("Show tag counts"),checked:n,onChange:()=>t({showTagCounts:!n})})})]})}),{content:g,status:b,error:v}=(0,mme.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),x=(0,pme.useDisabled)(),_=(0,Gg.useBlockProps)({ref:x});return(0,vr.jsxs)(vr.Fragment,{children:[h,b==="loading"&&(0,vr.jsx)("div",{..._,children:(0,vr.jsx)(Ot.Spinner,{})}),b==="error"&&(0,vr.jsx)("div",{..._,children:(0,vr.jsx)("p",{children:(0,fn.sprintf)((0,fn.__)("Error: %s"),v)})}),b==="success"&&(0,vr.jsx)(no,{wrapperProps:_,html:g})]})}var dme=q6e;var{name:fme}=h8,hme={icon:h1,example:{},edit:dme,transforms:ime},Z6e=()=>N({name:fme,metadata:h8,settings:hme});var TR={};q(TR,{init:()=>rSe,metadata:()=>g8,name:()=>epe,settings:()=>tpe});var Qme=a(Y(),1),Xme=a(z(),1);var SR=a(qc(),1),Jme=a(jo(),1);var g8={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/template-part",title:"Template Part",category:"theme",description:"Edit the different global regions of your site, like the header, footer, sidebar, or create your own.",textdomain:"default",attributes:{slug:{type:"string"},theme:{type:"string"},tagName:{type:"string"},area:{type:"string"}},supports:{align:!0,html:!1,reusable:!1,renaming:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-template-part-editor"};var Ume=a(G(),1),Qg=a(z(),1),oo=a(T(),1),Ec=a(A(),1),Vi=a(P(),1),sy=a(Y(),1),Gme=a(H(),1),Wme=a(yr(),1);var ep=a(P(),1),nf=a(A(),1),xme=a(H(),1),kme=a(z(),1),wme=a(Y(),1);var Wg=a(z(),1),v8=a(Y(),1),gme=a(T(),1),vme=a(H(),1),bme=a(G(),1),kR=a(P(),1);function $g(e,t){let{templateParts:r,isResolving:o}=(0,Wg.useSelect)(i=>{let{getEntityRecords:l,isResolving:s}=i(v8.store),c={per_page:-1};return{templateParts:l("postType","wp_template_part",c),isResolving:s("getEntityRecords",["postType","wp_template_part",c])}},[]);return{templateParts:(0,vme.useMemo)(()=>r?r.filter(i=>rn(i.theme,i.slug)!==t&&(!e||e==="uncategorized"||i.area===e))||[]:[],[r,e,t]),isResolving:o}}function qg(e,t){return(0,Wg.useSelect)(r=>{let o=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:n,getPatternsByBlockTypes:i}=r(gme.store),l=n(t);return i(o,l)},[e,t])}function b8(e,t){let{saveEntityRecord:r}=(0,Wg.useDispatch)(v8.store);return async(o=[],n=(0,kR.__)("Untitled Template Part"))=>{let i=vw(n).replace(/[^\w-]+/g,"")||"wp-custom-part",l={title:n,slug:i,content:(0,bme.serialize)(o),area:e},s=await r("postType","wp_template_part",l);t({slug:s.slug,theme:s.theme,area:void 0})}}function y8(e){return(0,Wg.useSelect)(t=>{let r=t(v8.store).getCurrentTheme()?.default_template_part_areas||[],o=r.find(i=>i.area===e),n=r.find(i=>i.area==="uncategorized");return{icon:o?.icon||n?.icon,label:o?.label||(0,kR.__)("Template Part"),tagName:o?.area_tag??"div"}},[e])}var yme=a(H(),1),Jm=a(P(),1),ks=a(A(),1),Tu=a(y(),1);function _me({areaLabel:e,onClose:t,onSubmit:r}){let[o,n]=(0,yme.useState)(""),i=l=>{l.preventDefault(),r(o)};return(0,Tu.jsx)(ks.Modal,{title:(0,Jm.sprintf)((0,Jm.__)("Create new %s"),e.toLowerCase()),onRequestClose:t,focusOnMount:"firstContentElement",size:"small",children:(0,Tu.jsx)("form",{onSubmit:i,children:(0,Tu.jsxs)(ks.__experimentalVStack,{spacing:"5",children:[(0,Tu.jsx)(ks.TextControl,{label:(0,Jm.__)("Name"),value:o,onChange:n,placeholder:(0,Jm.__)("Custom Template Part"),__next40pxDefaultSize:!0}),(0,Tu.jsxs)(ks.__experimentalHStack,{justify:"right",children:[(0,Tu.jsx)(ks.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t(),n("")},children:(0,Jm.__)("Cancel")}),(0,Tu.jsx)(ks.Button,{variant:"primary",type:"submit",accessibleWhenDisabled:!0,disabled:!o.length,__next40pxDefaultSize:!0,children:(0,Jm.__)("Create")})]})]})})})}var af=a(y(),1);function Cme({area:e,clientId:t,templatePartId:r,onOpenSelectionModal:o,setAttributes:n}){let{templateParts:i,isResolving:l}=$g(e,r),s=qg(e,t),{isBlockBasedTheme:c,canCreateTemplatePart:u}=(0,kme.useSelect)(h=>{let{getCurrentTheme:g,canUser:b}=h(wme.store);return{isBlockBasedTheme:g()?.is_block_theme,canCreateTemplatePart:b("create",{kind:"postType",name:"wp_template_part"})}},[]),[m,p]=(0,xme.useState)(!1),d=y8(e),f=b8(e,n);return(0,af.jsxs)(nf.Placeholder,{icon:Xh(d.icon),label:d.label,instructions:c?(0,ep.sprintf)((0,ep.__)("Choose an existing %s or create a new one."),d.label.toLowerCase()):(0,ep.sprintf)((0,ep.__)("Choose an existing %s."),d.label.toLowerCase()),children:[l&&(0,af.jsx)(nf.Spinner,{}),!l&&!!(i.length||s.length)&&(0,af.jsx)(nf.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:o,children:(0,ep.__)("Choose")}),!l&&c&&u&&(0,af.jsx)(nf.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{p(!0)},children:(0,ep.__)("Start blank")}),m&&(0,af.jsx)(_me,{areaLabel:d.label,onClose:()=>p(!1),onSubmit:h=>{f([],h)}})]})}var ay=a(H(),1),tp=a(P(),1),Pme=a(yr(),1),Bme=a(z(),1),Eme=a(T(),1),_8=a(A(),1);var Sme=a(G(),1);function Tme(e){return{name:rn(e.theme,e.slug),title:e.title.rendered,blocks:(0,Sme.parse)(e.content.raw),templatePart:e}}var Pc=a(y(),1);function Ime({setAttributes:e,onClose:t,templatePartId:r=null,area:o,clientId:n}){let[i,l]=(0,ay.useState)(""),{templateParts:s}=$g(o,r),c=(0,ay.useMemo)(()=>{let g=s.map(b=>Tme(b));return yv(g,i)},[s,i]),u=qg(o,n),m=(0,ay.useMemo)(()=>yv(u,i),[u,i]),{createSuccessNotice:p}=(0,Bme.useDispatch)(Pme.store),d=g=>{e({slug:g.slug,theme:g.theme,area:void 0}),p((0,tp.sprintf)((0,tp.__)('Template Part "%s" inserted.'),g.title?.rendered||g.slug),{type:"snackbar"}),t()},f=!!c.length,h=!!m.length;return(0,Pc.jsxs)("div",{className:"block-library-template-part__selection-content",children:[(0,Pc.jsx)("div",{className:"block-library-template-part__selection-search",children:(0,Pc.jsx)(_8.SearchControl,{onChange:l,value:i,label:(0,tp.__)("Search"),placeholder:(0,tp.__)("Search")})}),f&&(0,Pc.jsxs)("div",{children:[(0,Pc.jsx)("h2",{children:(0,tp.__)("Existing template parts")}),(0,Pc.jsx)(Eme.__experimentalBlockPatternsList,{blockPatterns:c,onClickPattern:g=>{d(g.templatePart)}})]}),!f&&!h&&(0,Pc.jsx)(_8.__experimentalHStack,{alignment:"center",children:(0,Pc.jsx)("p",{children:(0,tp.__)("No results found.")})})]})}var iy=a(Y(),1),x8=a(A(),1),Kg=a(P(),1),Rme=a(z(),1),zme=a(T(),1);var Bc=a(P(),1),ny=a(H(),1),Zg=a(z(),1),zi=a(A(),1),CR=a(Y(),1),Mme=a(yr(),1);var Gn=a(G(),1);function Nme(e){if(e.id_base!=="block"){let o;return e._embedded.about[0].is_multi?o={idBase:e.id_base,instance:e.instance}:o={id:e.id},Dme((0,Gn.createBlock)("core/legacy-widget",o))}let t=(0,Gn.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;let r=t[0];return r.name==="core/widget-group"?(0,Gn.createBlock)((0,Gn.getGroupingBlockName)(),void 0,wR(r.innerBlocks)):r.innerBlocks.length>0?(0,Gn.cloneBlock)(r,void 0,wR(r.innerBlocks)):r}function Dme(e){let t=(0,Gn.getPossibleBlockTransformations)([e]).filter(r=>{if(!r.transforms)return!0;let o=r.transforms?.from?.find(i=>i.blocks&&i.blocks.includes("*")),n=r.transforms?.to?.find(i=>i.blocks&&i.blocks.includes("*"));return!o&&!n});if(t.length)return(0,Gn.switchToBlockType)(e,t[0].name)}function wR(e=[]){return e.flatMap(t=>t.name==="core/legacy-widget"?Dme(t):(0,Gn.createBlock)(t.name,t.attributes,wR(t.innerBlocks))).filter(t=>!!t)}var Pu=a(y(),1),Lme={per_page:-1,_fields:"id,name,description,status,widgets"};function Ame({area:e,setAttributes:t}){let[r,o]=(0,ny.useState)(""),[n,i]=(0,ny.useState)(!1),l=(0,Zg.useRegistry)(),{sidebars:s,hasResolved:c}=(0,Zg.useSelect)(f=>{let{getSidebars:h,hasFinishedResolution:g}=f(CR.store);return{sidebars:h(Lme),hasResolved:g("getSidebars",[Lme])}},[]),{createErrorNotice:u}=(0,Zg.useDispatch)(Mme.store),m=b8(e,t),p=(0,ny.useMemo)(()=>{let f=(s??[]).filter(h=>h.id!=="wp_inactive_widgets"&&h.widgets.length>0).map(h=>({value:h.id,label:h.name}));return f.length?[{value:"",label:(0,Bc.__)("Select widget area")},...f]:[]},[s]);if(!c)return(0,Pu.jsx)(zi.__experimentalSpacer,{marginBottom:"0"});if(c&&!p.length)return null;async function d(f){if(f.preventDefault(),n||!r)return;i(!0);let h=p.find(({value:_})=>_===r),{getWidgets:g}=l.resolveSelect(CR.store),b=await g({sidebar:h.value,_embed:"about"}),v=new Set,x=b.flatMap(_=>{let k=Nme(_);return k||(v.add(_.id_base),[])});await m(x,(0,Bc.sprintf)((0,Bc.__)("Widget area: %s"),h.label)),v.size&&u((0,Bc.sprintf)((0,Bc.__)("Unable to import the following widgets: %s."),Array.from(v).join(", ")),{type:"snackbar"}),i(!1)}return(0,Pu.jsx)(zi.__experimentalSpacer,{marginBottom:"4",children:(0,Pu.jsxs)(zi.__experimentalHStack,{as:"form",onSubmit:d,children:[(0,Pu.jsx)(zi.FlexBlock,{children:(0,Pu.jsx)(zi.SelectControl,{label:(0,Bc.__)("Import widget area"),value:r,options:p,onChange:f=>o(f),disabled:!p.length,__next40pxDefaultSize:!0})}),(0,Pu.jsx)(zi.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"},children:(0,Pu.jsx)(zi.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:n,"aria-disabled":n||!r,children:(0,Bc._x)("Import","button label")})})]})})}var ws=a(y(),1),{HTMLElementControl:Y6e}=Z(zme.privateApis);function Vme({tagName:e,setAttributes:t,isEntityAvailable:r,templatePartId:o,defaultWrapper:n,hasInnerBlocks:i,clientId:l}){let[s,c]=(0,iy.useEntityProp)("postType","wp_template_part","area",o),[u,m]=(0,iy.useEntityProp)("postType","wp_template_part","title",o),d=(0,Rme.useSelect)(f=>f(iy.store).getCurrentTheme()?.default_template_part_areas||[],[]).map(({label:f,area:h})=>({label:f,value:h}));return(0,ws.jsxs)(ws.Fragment,{children:[r&&(0,ws.jsxs)(ws.Fragment,{children:[(0,ws.jsx)(x8.TextControl,{__next40pxDefaultSize:!0,label:(0,Kg.__)("Title"),value:u,onChange:f=>{m(f)},onFocus:f=>f.target.select()}),(0,ws.jsx)(x8.SelectControl,{__next40pxDefaultSize:!0,label:(0,Kg.__)("Area"),labelPosition:"top",options:d,value:s,onChange:c})]}),(0,ws.jsx)(Y6e,{tagName:e||"",onChange:f=>t({tagName:f}),clientId:l,options:[{label:(0,Kg.sprintf)((0,Kg.__)("Default based on area (%s)"),`<${n}>`),value:""},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"},{label:"<div>",value:"div"}]}),!i&&(0,ws.jsx)(Ame,{area:s,setAttributes:t})]})}var Yg=a(Y(),1),Wn=a(T(),1),ly=a(z(),1),Fme=a(H(),1),Ome=a(G(),1),k8=a(y(),1);function Q6e(e){if((0,Wn.useBlockEditingMode)()==="contentOnly")return!1;if(!e)return Wn.InnerBlocks.ButtonBlockAppender}function Hme(e){let t=(0,ly.useSelect)(o=>{let{getSettings:n}=o(Wn.store);return n()?.supportsLayout},[]),[r]=(0,Wn.useSettings)("layout");if(t)return e?.inherit?r||{}:e}function X6e({postId:e,layout:t,tagName:r,blockProps:o}){(0,Wn.useBlockEditingMode)("disabled");let{content:n,editedBlocks:i}=(0,ly.useSelect)(c=>{if(!e)return{};let{getEditedEntityRecord:u}=c(Yg.store),m=u("postType","wp_template_part",e,{context:"view"});return{editedBlocks:m.blocks,content:m.content}},[e]),l=(0,Fme.useMemo)(()=>{if(e)return i||(!n||typeof n!="string"?[]:(0,Ome.parse)(n))},[e,i,n]),s=(0,Wn.useInnerBlocksProps)(o,{value:l,onInput:()=>{},onChange:()=>{},renderAppender:!1,layout:Hme(t)});return(0,k8.jsx)(r,{...s})}function J6e({postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:n}){let i=(0,ly.useSelect)(d=>d(Wn.store).getSettings().onNavigateToEntityRecord,[]),[l,s,c]=(0,Yg.useEntityBlockEditor)("postType","wp_template_part",{id:e}),u=(0,Wn.useInnerBlocksProps)(n,{value:l,onInput:s,onChange:c,renderAppender:Q6e(t),layout:Hme(r)}),p=(0,Wn.useBlockEditingMode)()==="contentOnly"&&i?{onDoubleClick:()=>i({postId:e,postType:"wp_template_part"})}:{};return(0,k8.jsx)(o,{...u,...p})}function jme({postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:n}){let{canViewTemplatePart:i,canEditTemplatePart:l}=(0,ly.useSelect)(c=>({canViewTemplatePart:!!c(Yg.store).canUser("read",{kind:"postType",name:"wp_template_part",id:e}),canEditTemplatePart:!!c(Yg.store).canUser("update",{kind:"postType",name:"wp_template_part",id:e})}),[e]);return i?(0,k8.jsx)(l?J6e:X6e,{postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:n}):null}var Ht=a(y(),1),$me=["header","footer","navigation-overlay"];function eSe({isEntityAvailable:e,area:t,templatePartId:r,isTemplatePartSelectionOpen:o,setIsTemplatePartSelectionOpen:n}){let{templateParts:i}=$g(t,r),l=!!i.length;return e&&l&&$me.includes(t)?(0,Ht.jsx)(Ec.MenuItem,{onClick:()=>{n(!0)},"aria-expanded":o,"aria-haspopup":"dialog",children:(0,Vi.__)("Replace")}):null}function tSe({area:e,clientId:t,isEntityAvailable:r,onSelect:o}){let n=qg(e,t);return r&&!!n.length&&$me.includes(e)?(0,Ht.jsx)(Ec.PanelBody,{title:(0,Vi.__)("Design"),children:(0,Ht.jsx)(oo.__experimentalBlockPatternsList,{label:(0,Vi.__)("Templates"),blockPatterns:n,onClickPattern:o,showTitlesAsTooltip:!0})}):null}function qme({attributes:e,setAttributes:t,clientId:r}){let{createSuccessNotice:o}=(0,Qg.useDispatch)(Wme.store),{editEntityRecord:n}=(0,Qg.useDispatch)(sy.store),i=(0,Qg.useSelect)(R=>R(sy.store).getCurrentTheme()?.stylesheet,[]),{slug:l,theme:s=i,tagName:c,layout:u={}}=e,m=rn(s,l),p=(0,oo.useHasRecursion)(m),[d,f]=(0,Gme.useState)(!1),{isResolved:h,hasInnerBlocks:g,isMissing:b,area:v,onNavigateToEntityRecord:x,title:_,canUserEdit:k,canUserEditBlock:S}=(0,Qg.useSelect)(R=>{let{getEditedEntityRecord:V,hasFinishedResolution:B}=R(sy.store),{getBlockCount:j,getSettings:U,canEditBlock:O}=R(oo.store),K=["postType","wp_template_part",m],W=m?V(...K):null,ee=W?.area||e.area,oe=m?B("getEditedEntityRecord",K):!1,X=oe?R(sy.store).canUser("update",{kind:"postType",name:"wp_template_part",id:m}):!1;return{hasInnerBlocks:j(r)>0,isResolved:oe,isMissing:oe&&(!W||Object.keys(W).length===0),area:ee,onNavigateToEntityRecord:U().onNavigateToEntityRecord,title:W?.title,canUserEdit:!!X,canUserEditBlock:O(r)}},[m,e.area,r]),C=y8(v),E=(0,oo.useBlockProps)(),I=!l,D=!I&&!b&&h,M=c||C.tagName,F=async R=>{await n("postType","wp_template_part",m,{blocks:R.blocks,content:(0,Ume.serialize)(R.blocks)}),o((0,Vi.sprintf)((0,Vi.__)('Template Part "%s" updated.'),_||l),{type:"snackbar"})};return!g&&(l&&!s||l&&b)?(0,Ht.jsx)(M,{...E,children:(0,Ht.jsx)(oo.Warning,{children:(0,Vi.sprintf)((0,Vi.__)("Template part has been deleted or is unavailable: %s"),l)})}):D&&p?(0,Ht.jsx)(M,{...E,children:(0,Ht.jsx)(oo.Warning,{children:(0,Vi.__)("Block cannot be rendered inside itself.")})}):(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsxs)(oo.RecursionProvider,{uniqueId:m,children:[D&&x&&k&&(0,Ht.jsx)(oo.BlockControls,{group:"other",children:(0,Ht.jsx)(Ec.ToolbarButton,{onClick:()=>{x({postId:m,postType:"wp_template_part"})},children:(0,Vi.__)("Edit original")})}),k&&(0,Ht.jsx)(oo.InspectorControls,{group:"advanced",children:(0,Ht.jsx)(Vme,{tagName:c,setAttributes:t,isEntityAvailable:D,templatePartId:m,defaultWrapper:C.tagName,hasInnerBlocks:g,clientId:r})}),I&&(0,Ht.jsx)(M,{...E,children:(0,Ht.jsx)(Cme,{area:e.area,templatePartId:m,clientId:r,setAttributes:t,onOpenSelectionModal:()=>f(!0)})}),(0,Ht.jsx)(oo.BlockSettingsMenuControls,{children:({selectedClientIds:R})=>!S||!(R.length===1&&r===R[0])?null:(0,Ht.jsx)(eSe,{isEntityAvailable:D,area:v,clientId:r,templatePartId:m,isTemplatePartSelectionOpen:d,setIsTemplatePartSelectionOpen:f})}),(0,Ht.jsx)(oo.InspectorControls,{group:"settings",children:(0,Ht.jsx)(tSe,{area:v,clientId:r,isEntityAvailable:D,onSelect:R=>F(R)})}),D&&(0,Ht.jsx)(jme,{tagName:M,blockProps:E,postId:m,hasInnerBlocks:g,layout:u}),!I&&!h&&(0,Ht.jsx)(M,{...E,children:(0,Ht.jsx)(Ec.Spinner,{})})]}),d&&(0,Ht.jsx)(Ec.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,Vi.sprintf)((0,Vi.__)("Choose a %s"),C.label.toLowerCase()),onRequestClose:()=>f(!1),isFullScreen:!0,children:(0,Ht.jsx)(Ime,{templatePartId:m,clientId:r,area:v,setAttributes:t,onClose:()=>f(!1)})})]})}var Zme=a(Y(),1),Kme=a(z(),1);function Yme(e,t){if(t!=="core/template-part")return e;if(e.variations){let r=(n,i)=>{let{area:l,theme:s,slug:c}=n;if(l)return l===i.area;if(!c)return!1;let{getCurrentTheme:u,getEntityRecord:m}=(0,Kme.select)(Zme.store),p=m("postType","wp_template_part",`${s||u()?.stylesheet}//${c}`);return p?.slug?p.slug===i.slug:p?.area===i.area},o=e.variations.map(n=>({...n,...!n.isActive&&{isActive:r},...typeof n.icon=="string"&&{icon:Xh(n.icon)}}));return{...e,variations:o}}return e}var{name:epe}=g8,tpe={icon:m1,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;let{getCurrentTheme:r,getEditedEntityRecord:o}=(0,Xme.select)(Qme.store),n=o("postType","wp_template_part",(t||r()?.stylesheet)+"//"+e);if(n)return(0,Jme.decodeEntities)(n.title)||HQ(n.slug||"")},edit:qme},rSe=()=>{(0,SR.addFilter)("blocks.registerBlockType","core/template-part",Yme);let e=["core/post-template","core/post-content"];return(0,SR.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/removeTemplatePartsFromPostTemplates",(t,r,o,{getBlock:n,getBlockParentsByBlockName:i})=>{if(r.name!=="core/template-part")return t;for(let l of e)if(n(o)?.name===l||i(o,l).length)return!1;return!0}),N({name:epe,metadata:g8,settings:tpe})};var IR={};q(IR,{init:()=>nSe,metadata:()=>w8,name:()=>cpe,settings:()=>upe});var w8={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-count",title:"Term Count",category:"theme",description:"Displays the post count of a taxonomy term.",textdomain:"default",usesContext:["termId","taxonomy"],attributes:{bracketType:{type:"string",enum:["none","round","square","curly","angle"],default:"round"}},supports:{anchor:!0,html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{color:!0,width:!0,style:!0}}},style:"wp-block-term-count"};var lf=a(P(),1),C8=a(T(),1),lpe=a(A(),1);var _l=a(A(),1),Cs=a(y(),1),PR=(0,Cs.jsx)(_l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Cs.jsx)(_l.Path,{d:"M 10 6 L 9.609375 9 L 7 9 L 7 10.5 L 9.4121094 10.5 L 9.0878906 13 L 7 13 L 7 14.5 L 8.890625 14.5 L 8.5 17.5 L 10 17.5 L 10.390625 14.5 L 12.890625 14.5 L 12.5 17.5 L 14 17.5 L 14.390625 14.5 L 17 14.5 L 17 13 L 14.587891 13 L 14.912109 10.5 L 17 10.5 L 17 9 L 15.109375 9 L 15.5 6 L 14 6 L 13.609375 9 L 11.109375 9 L 11.5 6 L 10 6 z M 10.912109 10.5 L 13.412109 10.5 L 13.087891 13 L 10.587891 13 L 10.912109 10.5 z"})}),rpe=(0,Cs.jsx)(_l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Cs.jsx)(_l.Path,{d:"M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z M 18.5,3 c 0,0 1.5,4.004036 1.5,9 0,4.995964 -1.5,9 -1.5,9 H 20 c 0,0 1.5,-4.004036 1.5,-9 C 21.5,7.004036 20,3 20,3 Z M 5.5,21 C 5.5,21 4,16.995964 4,12 4,7.0040356 5.5,3 5.5,3 H 4 c 0,0 -1.5,4.004036 -1.5,9 0,4.995964 1.5,9 1.5,9 z"})}),ope=(0,Cs.jsx)(_l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Cs.jsx)(_l.Path,{d:"M 21.5,21 V 3 H 18 v 1.5 h 2 v 15 H 18 V 21 Z M 2.5,3 V 21 H 6 V 19.5 H 4 V 4.5 H 6 V 3 Z M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z"})}),ape=(0,Cs.jsx)(_l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Cs.jsx)(_l.Path,{d:"M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z M 18.5,21 c 1.104567,0 2,-0.895433 2,-2 v -4 c 0,-1.104567 0.895433,-2 2,-2 v -2 c -1.104567,0 -2,-0.895433 -2,-2 V 5 c 0,-1.104567 -0.895433,-2 -2,-2 H 17 v 1.5 h 1.5 A 0.5,0.5 0 0 1 19,5 v 5 c 0,1.104567 0.895433,2 2,2 -1.104567,0 -2,0.895433 -2,2 v 5 c 0,0.276142 -0.223858,0.5 -0.5,0.5 H 17 V 21 Z M 5.5,3 c -1.1045668,0 -2,0.8954327 -2,2 v 4 c 0,1.104567 -0.8954332,2 -2,2 v 2 c 1.1045668,0 2,0.895433 2,2 v 4 c 0,1.104567 0.8954332,2 2,2 H 7 V 19.5 H 5.5 A 0.5,0.5 0 0 1 5,19 V 14 C 5,12.895433 4.1045668,12 3,12 4.1045668,12 5,11.104567 5,10 V 5 C 5,4.7238579 5.2238579,4.5 5.5,4.5 H 7 V 3 Z"})}),npe=(0,Cs.jsx)(_l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Cs.jsx)(_l.Path,{d:"M 18.970703,16.53125 23.5,12 18.970703,7.46875 17.910156,8.53125 21.378906,12 17.910156,15.46875 Z M 5.0292969,7.46875 0.5,12 5.0292969,16.53125 6.0898438,15.46875 2.6210938,12 6.0898438,8.53125 Z M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z"})});var cy=a(Y(),1),BR=a(z(),1);function ipe(e,t){let[r]=(0,cy.useEntityProp)("taxonomy",t,"count",e),o=aSe(),n=!!(e&&t);return{hasContext:n,termCount:n?r||"":o}}function aSe(){let t=(0,BR.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(cy.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,o;return t&&(t[1]?r=t[2]?t[2]:t[1]:t[3]&&(r=t[6]?t[6]:t[4],o=t[7]),r=r==="tag"?"post_tag":r),(0,BR.useSelect)(n=>{if(!r||!o)return"";let{getEntityRecords:i}=n(cy.store),l=i("taxonomy",r,{slug:o,per_page:1});return l&&l[0]&&l[0].count||""},[r,o])}var rp=a(y(),1),ER={none:{label:(0,lf.__)("No brackets"),icon:PR},round:{label:(0,lf.__)("Round brackets"),icon:rpe,before:"(",after:")"},square:{label:(0,lf.__)("Square brackets"),icon:ope,before:"[",after:"]"},curly:{label:(0,lf.__)("Curly brackets"),icon:ape,before:"{",after:"}"},angle:{label:(0,lf.__)("Angle brackets"),icon:npe,before:"<",after:">"}};function spe({attributes:e,setAttributes:t,context:{termId:r,taxonomy:o}}){let{bracketType:n}=e,l=ipe(r,o)?.termCount||0,s=(0,C8.useBlockProps)(),c=Object.entries(ER).map(([m,{label:p,icon:d}])=>({role:"menuitemradio",title:p,isActive:n===m,icon:d,onClick:()=>{t({bracketType:m})}})),u=(m,p)=>{let{before:d="",after:f=""}=ER[p]||{};return`${d}${m}${f}`};return(0,rp.jsxs)(rp.Fragment,{children:[(0,rp.jsx)(C8.BlockControls,{group:"block",children:(0,rp.jsx)(lpe.ToolbarDropdownMenu,{icon:ER[n]?.icon??PR,label:(0,lf.__)("Change bracket type"),controls:c})}),(0,rp.jsx)("div",{...s,children:u(l,n)})]})}var{name:cpe}=w8,upe={icon:jB,example:{},edit:spe},nSe=()=>N({name:cpe,metadata:w8,settings:upe});var DR={};q(DR,{init:()=>cSe,metadata:()=>S8,name:()=>gpe,settings:()=>vpe});var S8={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-description",title:"Term Description",category:"theme",description:"Display the description of categories, tags and custom taxonomies when viewing an archive.",textdomain:"default",usesContext:["termId","taxonomy"],supports:{anchor:!0,align:["wide","full"],html:!1,color:{link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}}};var ppe=a(P(),1),dpe=a(T(),1);var uy=a(Y(),1),NR=a(z(),1);function mpe(e,t){let[r,o,n]=(0,uy.useEntityProp)("taxonomy",t,"description",e),i=lSe(),l=!!(e&&t);return{hasContext:l,setDescription:o,termDescription:l?n?.rendered||r||"":i}}function lSe(){let t=(0,NR.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(uy.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,o;return t&&(t[1]?r=t[2]?t[2]:t[1]:t[3]&&(r=t[6]?t[6]:t[4],o=t[7]),r=r==="tag"?"post_tag":r),(0,NR.useSelect)(n=>{if(!r||!o)return"";let{getEntityRecords:i}=n(uy.store),l=i("taxonomy",r,{slug:o,per_page:1});return l&&l[0]&&l[0].description||""},[r,o])}var op=a(y(),1);function fpe({context:{termId:e,taxonomy:t}}){let{termDescription:r}=mpe(e,t),o=(0,dpe.useBlockProps)();return(0,op.jsx)(op.Fragment,{children:(0,op.jsx)("div",{...o,children:r?(0,op.jsx)("div",{dangerouslySetInnerHTML:{__html:r}}):(0,op.jsx)("div",{className:"wp-block-term-description__placeholder",children:(0,op.jsx)("span",{children:(0,ppe.__)("Term Description")})})})})}var sSe={attributes:{textAlign:{type:"string"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},hpe=[sSe];var{name:gpe}=S8,vpe={icon:GB,edit:fpe,example:{},deprecated:hpe},cSe=()=>N({name:gpe,metadata:S8,settings:vpe});var LR={};q(LR,{init:()=>pSe,metadata:()=>T8,name:()=>xpe,settings:()=>kpe});var T8={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-name",title:"Term Name",category:"theme",description:"Displays the name of a taxonomy term.",keywords:["term title"],textdomain:"default",usesContext:["termId","taxonomy"],attributes:{textAlign:{type:"string"},level:{type:"number",default:0},isLink:{type:"boolean",default:!1},levelOptions:{type:"array"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{color:!0,width:!0,style:!0}}},style:"wp-block-term-name"};var my=a(P(),1),Ic=a(T(),1),Xg=a(A(),1),ype=a(jo(),1);var P8=a(Y(),1),B8=a(z(),1);function bpe(e,t){let r=(0,B8.useSelect)(i=>!e||!t?null:i(P8.store).getEntityRecord("taxonomy",t,e),[e,t]),o=mSe(),n=!!(e&&t);return{hasContext:n,term:n?r:o}}function mSe(){let t=(0,B8.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(P8.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,o;return t&&(t[3]&&(r=t[6]?t[6]:t[4],o=t[7]),r=r==="tag"?"post_tag":r),(0,B8.useSelect)(n=>{if(!r||!o)return null;let{getEntityRecords:i}=n(P8.store),l=i("taxonomy",r,{slug:o,per_page:1});return l&&l[0]?l[0]:null},[r,o])}var $n=a(y(),1);function _pe({attributes:e,setAttributes:t,context:{termId:r,taxonomy:o}}){let{textAlign:n,level:i=0,isLink:l,levelOptions:s}=e,{term:c}=bpe(r,o),u=c?.name?(0,ype.decodeEntities)(c.name):(0,my.__)("Term Name"),m=(0,Ic.useBlockProps)({className:w({[`has-text-align-${n}`]:n})}),p=$(),d=i===0?"p":`h${i}`,f=u;return l&&(f=(0,$n.jsx)("a",{href:"#term-name-pseudo-link",onClick:h=>h.preventDefault(),children:u})),(0,$n.jsxs)($n.Fragment,{children:[(0,$n.jsxs)(Ic.BlockControls,{group:"block",children:[(0,$n.jsx)(Ic.HeadingLevelDropdown,{value:i,options:s,onChange:h=>{t({level:h})}}),(0,$n.jsx)(Ic.AlignmentControl,{value:n,onChange:h=>{t({textAlign:h})}})]}),(0,$n.jsx)(Ic.InspectorControls,{children:(0,$n.jsx)(Xg.__experimentalToolsPanel,{label:(0,my.__)("Settings"),resetAll:()=>{t({isLink:!1})},dropdownMenuProps:p,children:(0,$n.jsx)(Xg.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,my.__)("Make term name a link"),onDeselect:()=>t({isLink:!1}),isShownByDefault:!0,children:(0,$n.jsx)(Xg.ToggleControl,{label:(0,my.__)("Make term name a link"),onChange:()=>t({isLink:!l}),checked:l})})})}),(0,$n.jsx)(d,{...m,children:f})]})}var{name:xpe}=T8,kpe={icon:WB,example:{},edit:_pe},pSe=()=>N({name:xpe,metadata:T8,settings:kpe});var FR={};q(FR,{init:()=>_Se,metadata:()=>E8,name:()=>cde,settings:()=>ude});var E8={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/terms-query",title:"Terms Query",category:"theme",description:"An advanced block that allows displaying taxonomy terms based on different query parameters and visual configurations.",keywords:["terms","taxonomy","categories","tags","list"],textdomain:"default",attributes:{termQuery:{type:"object",default:{perPage:10,taxonomy:"category",order:"asc",orderBy:"name",include:[],hideEmpty:!0,showNested:!1,inherit:!1}},tagName:{type:"string",default:"div"}},usesContext:["templateSlug"],providesContext:{termQuery:"termQuery"},supports:{anchor:!0,align:["wide","full"],html:!1,layout:!0,interactivity:!0}};var tde=a(z(),1),rde=a(T(),1);var Xpe=a(H(),1),D8=a(T(),1);var Ss=a(P(),1),Nc=a(A(),1),Ype=a(T(),1);var wpe=a(Y(),1),Cpe=a(z(),1),Spe=a(H(),1);function I8(){let e=(0,Cpe.useSelect)(t=>t(wpe.store).getTaxonomies({per_page:-1}),[]);return(0,Spe.useMemo)(()=>e?.filter(({visibility:t})=>t?.publicly_queryable)||[],[e])}var Tpe=a(A(),1);var Ppe=a(y(),1);function Bpe({value:e,onChange:t,...r}){let n=I8().map(i=>({label:i.name,value:i.slug}));return(0,Ppe.jsx)(Tpe.SelectControl,{__next40pxDefaultSize:!0,options:n,value:e,onChange:t,...r})}var py=a(P(),1),Epe=a(A(),1),Ipe=a(y(),1);function Npe({orderBy:e,order:t,onChange:r,...o}){return(0,Ipe.jsx)(Epe.SelectControl,{__next40pxDefaultSize:!0,options:[{label:(0,py.__)("Name: A \u2192 Z"),value:"name/asc"},{label:(0,py.__)("Name: Z \u2192 A"),value:"name/desc"},{label:(0,py.__)("Count, high to low"),value:"count/desc"},{label:(0,py.__)("Count, low to high"),value:"count/asc"}],value:e+"/"+t,onChange:n=>{let[i,l]=n.split("/");r(i,l)},...o})}var Dpe=a(A(),1),Lpe=a(y(),1);function Mpe({value:e,onChange:t,...r}){return(0,Lpe.jsx)(Dpe.ToggleControl,{checked:!e,onChange:o=>t(!o),...r})}var Ape=a(A(),1),Rpe=a(y(),1);function zpe({value:e,onChange:t,...r}){return(0,Rpe.jsx)(Ape.ToggleControl,{checked:e,onChange:t,...r})}var fy=a(A(),1),dy=a(P(),1),hy=a(y(),1);function Vpe({value:e,onChange:t,label:r}){return(0,hy.jsxs)(fy.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:r,isBlock:!0,onChange:o=>{t({inherit:o==="default"})},help:e?(0,dy.__)("Display terms based on the current taxonomy archive. For hierarchical taxonomies, shows children of the current term. For non-hierarchical taxonomies, shows all terms."):(0,dy.__)("Display terms based on specific criteria."),value:e?"default":"custom",children:[(0,hy.jsx)(fy.__experimentalToggleGroupControlOption,{value:"default",label:(0,dy.__)("Default")}),(0,hy.jsx)(fy.__experimentalToggleGroupControlOption,{value:"custom",label:(0,dy.__)("Custom")})]})}var Fpe=a(P(),1),Ope=a(A(),1),Hpe=a(y(),1);function jpe({value:e,onChange:t,...r}){return(0,Hpe.jsx)(Ope.RangeControl,{__next40pxDefaultSize:!0,value:e,min:0,max:100,onChange:t,help:(0,Fpe.__)("Limit the number of terms you want to show. To show all terms, use 0 (zero)."),...r})}var Upe=a(P(),1),N8=a(T(),1);var MR=a(y(),1),{HTMLElementControl:fSe}=Z(N8.privateApis);function Gpe({TagName:e,setAttributes:t,clientId:r}){return(0,MR.jsx)(N8.InspectorControls,{group:"advanced",children:(0,MR.jsx)(fSe,{tagName:e,onChange:o=>t({tagName:o}),clientId:r,options:[{label:(0,Upe.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})}var $pe=a(A(),1),AR=a(z(),1),RR=a(Y(),1),Bu=a(H(),1),qpe=a(pe(),1),zR=a(jo(),1),Zpe=a(y(),1),sf=[],Wpe={order:"asc",_fields:"id,name",context:"view"};function Kpe({value:e,taxonomy:t,onChange:r,...o}){let[n,i]=(0,Bu.useState)(""),[l,s]=(0,Bu.useState)(sf),[c,u]=(0,Bu.useState)(sf),m=(0,qpe.useDebounce)(i,250),{searchResults:p,searchHasResolved:d}=(0,AR.useSelect)(v=>{if(!n)return{searchResults:sf,searchHasResolved:!0};let{getEntityRecords:x,hasFinishedResolution:_}=v(RR.store),k=["taxonomy",t,{...Wpe,search:n,orderby:"name",exclude:e,per_page:20}];return{searchResults:x(...k),searchHasResolved:_("getEntityRecords",k)}},[n,t,e]),f=(0,AR.useSelect)(v=>{if(!e?.length)return sf;let{getEntityRecords:x}=v(RR.store);return x("taxonomy",t,{...Wpe,include:e,per_page:e.length})},[e,t]);(0,Bu.useEffect)(()=>{if(e?.length||s(sf),!f?.length)return;let v=e.reduce((x,_)=>{let k=f.find(S=>S.id===_);return k&&x.push({id:_,value:(0,zR.decodeEntities)(k.name)}),x},[]);s(v)},[e,f]);let h=(0,Bu.useMemo)(()=>{if(!p?.length)return{names:sf,mapByName:{}};let v=[],x={};return p.forEach(_=>{let k=(0,zR.decodeEntities)(_.name);v.push(k),x[k]=_}),{names:v,mapByName:x}},[p]);(0,Bu.useEffect)(()=>{d&&u(h.names)},[h.names,d]);let g=(v,x)=>x?.id||v?.[x]?.id;return(0,Zpe.jsx)($pe.FormTokenField,{__next40pxDefaultSize:!0,value:l,onInputChange:m,suggestions:c,onChange:v=>{let x=Array.from(v.reduce((_,k)=>{let S=g(h.mapByName,k);return S&&_.add(S),_},new Set));u(sf),r(x)},help:"",...o})}var Rr=a(y(),1);function Qpe({attributes:e,setQuery:t,setAttributes:r,clientId:o,templateSlug:n}){let{termQuery:i,tagName:l}=e,{taxonomy:s,orderBy:c,order:u,hideEmpty:m,inherit:p,showNested:d,perPage:f,include:h}=i,g=$(),v=I8().find(V=>V.slug===s)?.hierarchical,x=!!p,_=["taxonomy","category","tag","archive"].includes(n)||n?.startsWith("taxonomy-")||n?.startsWith("category-")||n?.startsWith("tag-"),k=v,S=!!h?.length,C=(0,Ss.__)("Query type"),E=(0,Ss.__)("Taxonomy"),I=(0,Ss.__)("Order by"),D=(0,Ss.__)("Show empty terms"),M=(0,Ss.__)("Show nested terms"),F=(0,Ss.__)("Max terms"),R=(0,Ss.__)("Selected terms");return(0,Rr.jsxs)(Rr.Fragment,{children:[(0,Rr.jsx)(Ype.InspectorControls,{children:(0,Rr.jsxs)(Nc.__experimentalToolsPanel,{label:(0,Ss.__)("Settings"),resetAll:()=>{r({termQuery:{taxonomy:"category",order:"asc",orderBy:"name",include:[],hideEmpty:!0,showNested:!1,inherit:!1,perPage:10}})},dropdownMenuProps:g,children:[_&&(0,Rr.jsx)(Nc.__experimentalToolsPanelItem,{hasValue:()=>p!==!1,label:C,onDeselect:()=>t({inherit:!1}),isShownByDefault:!0,children:(0,Rr.jsx)(Vpe,{label:C,value:p,onChange:t})}),!x&&(0,Rr.jsx)(Nc.__experimentalToolsPanelItem,{hasValue:()=>s!=="category",label:E,onDeselect:()=>{t({taxonomy:"category"})},isShownByDefault:!0,children:(0,Rr.jsx)(Bpe,{label:E,value:s,onChange:V=>t({taxonomy:V,include:[]})})}),(0,Rr.jsx)(Nc.__experimentalToolsPanelItem,{hasValue:()=>c!=="name"||u!=="asc",label:I,onDeselect:()=>t({orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,Rr.jsx)(Npe,{label:I,orderBy:c,order:u,onChange:(V,B)=>{t({orderBy:V,order:B})},disabled:S,help:S?(0,Ss.__)("When specific terms are selected, the order is based on their selection order."):void 0})}),!x&&(0,Rr.jsx)(Nc.__experimentalToolsPanelItem,{hasValue:()=>!!h?.length,label:R,onDeselect:()=>t({include:[],orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,Rr.jsx)(Kpe,{label:R,taxonomy:s,value:h,onChange:V=>t({include:V})})}),(0,Rr.jsx)(Nc.__experimentalToolsPanelItem,{hasValue:()=>m!==!0,label:D,onDeselect:()=>t({hideEmpty:!0}),isShownByDefault:!0,children:(0,Rr.jsx)(Mpe,{label:D,value:m,onChange:V=>t({hideEmpty:V})})}),k&&(0,Rr.jsx)(Nc.__experimentalToolsPanelItem,{hasValue:()=>d!==!1,label:M,onDeselect:()=>t({showNested:!1}),isShownByDefault:!0,children:(0,Rr.jsx)(zpe,{label:M,value:d,onChange:V=>t({showNested:V}),disabled:S,help:S?(0,Ss.__)("When specific terms are selected, only those are displayed."):void 0})}),(0,Rr.jsx)(Nc.__experimentalToolsPanelItem,{hasValue:()=>f!==10,label:F,onDeselect:()=>t({perPage:10}),isShownByDefault:!0,children:(0,Rr.jsx)(jpe,{label:F,value:f,onChange:V=>t({perPage:V})})})]})}),(0,Rr.jsx)(Gpe,{TagName:l,setAttributes:r,clientId:o})]})}var cf=a(y(),1),hSe=[["core/term-template"]];function Jpe({attributes:e,setAttributes:t,clientId:r,context:o}){let{tagName:n}=e,i=(0,D8.useBlockProps)(),l=(0,D8.useInnerBlocksProps)(i,{template:hSe}),s=(0,Xpe.useCallback)(c=>t(u=>({termQuery:{...u.termQuery,...c}})),[t]);return(0,cf.jsxs)(cf.Fragment,{children:[(0,cf.jsx)(Qpe,{attributes:e,setQuery:s,setAttributes:t,clientId:r,templateSlug:o?.templateSlug}),(0,cf.jsx)(n,{...l})]})}var L8=a(z(),1),M8=a(G(),1),Jg=a(T(),1),VR=a(y(),1);function ede({attributes:e,clientId:t,name:r}){let{blockType:o,activeBlockVariation:n,scopeVariations:i}=(0,L8.useSelect)(m=>{let{getActiveBlockVariation:p,getBlockType:d,getBlockVariations:f}=m(M8.store);return{blockType:d(r),activeBlockVariation:p(r,e),scopeVariations:f(r,"block")}},[r,e]),l=n?.icon?.src||n?.icon||o?.icon?.src,s=n?.title||o?.title,{replaceInnerBlocks:c}=(0,L8.useDispatch)(Jg.store),u=(0,Jg.useBlockProps)();return(0,VR.jsx)("div",{...u,children:(0,VR.jsx)(Jg.__experimentalBlockVariationPicker,{icon:l,label:s,variations:i,onSelect:m=>{m.innerBlocks&&c(t,(0,M8.createBlocksFromInnerBlocksTemplate)(m.innerBlocks),!1)}})})}var ode=a(y(),1),gSe=e=>{let r=(0,tde.useSelect)(o=>!!o(rde.store).getBlocks(e.clientId).length,[e.clientId])?Jpe:ede;return(0,ode.jsx)(r,{...e})},ade=gSe;var A8=a(T(),1),nde=a(y(),1);function ide({attributes:{tagName:e="div"}}){let t=A8.useBlockProps.save(),r=A8.useInnerBlocksProps.save(t);return(0,nde.jsx)(e,{...r})}var gy=a(P(),1),e0=a(A(),1),vy=a(y(),1),vSe=(0,vy.jsx)(e0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,vy.jsx)(e0.Path,{d:"M 41,9 H 7 v 3 h 34 z m 0,9 H 7 v 3 h 34 z m 0,18 H 7 v 3 h 34 z m 0,-9 H 7 v 3 h 34 z"})}),bSe=(0,vy.jsx)(e0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,vy.jsx)(e0.Path,{d:"m 36,36 h 5 v 3 h -5 z m 0,-9 h 5 v 3 h -5 z m 0,-9 h 5 v 3 h -5 z m 0,-9 h 5 v 3 H 36 Z M 31,9 H 7 v 3 h 24 z m 0,9 H 7 v 3 h 24 z m 0,18 H 7 v 3 h 24 z m 0,-9 H 7 v 3 h 24 z"})}),lde=["core/term-name",{isLink:!0}],ySe=[{name:"name",title:(0,gy.__)("Name"),description:(0,gy.__)("Display the terms' names."),attributes:{},icon:vSe,scope:["block"],innerBlocks:[["core/term-template",{},[lde]]]},{name:"name-count",title:(0,gy.__)("Name & Count"),description:(0,gy.__)("Display the terms' names and number of posts assigned to each term."),attributes:{},icon:bSe,scope:["block"],innerBlocks:[["core/term-template",{},[["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[lde,["core/term-count"]]]]]]}],sde=ySe;var{name:cde}=E8,ude={icon:xp,edit:ade,save:ide,example:{},variations:sde},_Se=()=>N({name:cde,metadata:E8,settings:ude});var OR={};q(OR,{init:()=>TSe,metadata:()=>R8,name:()=>bde,settings:()=>yde});var R8={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-template",title:"Term Template",category:"theme",ancestor:["core/terms-query"],description:"Contains the block elements used to render a taxonomy term, like the name, description, and more.",textdomain:"default",usesContext:["termQuery"],supports:{anchor:!0,reusable:!1,html:!1,align:["wide","full"],layout:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:!0,padding:!0,blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!0,padding:!1,margin:!1}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},style:"wp-block-term-template",editorStyle:"wp-block-term-template-editor"};var mde=a(A(),1);var t0=a(H(),1),pde=a(z(),1),by=a(P(),1),xl=a(T(),1),dde=a(Y(),1),pa=a(y(),1),kSe=[["core/term-name"]];function wSe({classList:e}){let t=(0,xl.useInnerBlocksProps)({className:w("wp-block-term",e)},{template:kSe,__unstableDisableLayoutClassNames:!0});return(0,pa.jsx)("li",{...t})}function CSe({blocks:e,blockContextId:t,classList:r,isHidden:o,setActiveBlockContextId:n}){let i=(0,xl.__experimentalUseBlockPreview)({blocks:e,props:{className:w("wp-block-term",r)}}),l=()=>{n(t)};return(0,pa.jsx)("li",{...i,tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:{display:o?"none":void 0}})}var SSe=(0,t0.memo)(CSe);function fde({clientId:e,attributes:{layout:t},setAttributes:r,context:{termQuery:{taxonomy:o,order:n,orderBy:i,hideEmpty:l,showNested:s=!1,perPage:c,include:u}={}},__unstableLayoutClassNames:m}){let{type:p,columnCount:d=3}=t||{},[f,h]=(0,t0.useState)(),g={hide_empty:l,order:n,orderby:i,per_page:c||-1};!s&&!u?.length&&(g.parent=0),u?.length&&(g.include=u,g.orderby="include",g.order="asc");let{records:b}=(0,dde.useEntityRecords)("taxonomy",o,g),v=(0,pde.useSelect)(S=>S(xl.store).getBlocks(e),[e]),x=(0,xl.useBlockProps)({className:m}),_=(0,t0.useMemo)(()=>b?.map(S=>({taxonomy:o,termId:S.id,classList:`term-${S.id}`,termData:S})),[b,o]);if(!b)return(0,pa.jsx)("ul",{...x,children:(0,pa.jsx)("li",{className:"wp-block-term term-loading",children:(0,pa.jsx)("div",{className:"term-loading-placeholder"})})});if(!b.length)return(0,pa.jsxs)("p",{...x,children:[" ",(0,by.__)("No terms found.")]});let k=S=>r(C=>({layout:{...C.layout,...S}}));return(0,pa.jsxs)(pa.Fragment,{children:[(0,pa.jsx)(xl.BlockControls,{children:(0,pa.jsx)(mde.ToolbarGroup,{controls:[{icon:Dl,title:(0,by._x)("List view","Term template block display setting"),onClick:()=>k({type:"default"}),isActive:p==="default"||p==="constrained"},{icon:Nl,title:(0,by._x)("Grid view","Term template block display setting"),onClick:()=>k({type:"grid",columnCount:d}),isActive:p==="grid"}]})}),(0,pa.jsx)("ul",{...x,children:_?.map(S=>(0,pa.jsxs)(xl.BlockContextProvider,{value:S,children:[S.termId===(f||_[0]?.termId)?(0,pa.jsx)(wSe,{classList:S.classList}):null,(0,pa.jsx)(SSe,{blocks:v,blockContextId:S.termId,classList:S.classList,setActiveBlockContextId:h,isHidden:S.termId===(f||_[0]?.termId)})]},S.termId))})]})}var hde=a(T(),1),gde=a(y(),1);function vde(){return(0,gde.jsx)(hde.InnerBlocks.Content,{})}var{name:bde}=R8,yde={icon:_p,edit:fde,save:vde,example:{}},TSe=()=>N({name:bde,metadata:R8,settings:yde});var HR={};q(HR,{init:()=>ESe,metadata:()=>V8,name:()=>Cde,settings:()=>Sde});var r0=a(P(),1),z8=a(A(),1),Dc=a(T(),1),_de=a(Rf(),1),Fi=a(y(),1);function xde({attributes:e,setAttributes:t}){let{width:r,content:o,columns:n}=e;return(0,_de.default)("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,Fi.jsxs)(Fi.Fragment,{children:[(0,Fi.jsx)(Dc.BlockControls,{children:(0,Fi.jsx)(Dc.BlockAlignmentToolbar,{value:r,onChange:i=>t({width:i}),controls:["center","wide","full"]})}),(0,Fi.jsx)(Dc.InspectorControls,{children:(0,Fi.jsx)(z8.PanelBody,{children:(0,Fi.jsx)(z8.RangeControl,{__next40pxDefaultSize:!0,label:(0,r0.__)("Columns"),value:n,onChange:i=>t({columns:i}),min:2,max:4,required:!0})})}),(0,Fi.jsx)("div",{...(0,Dc.useBlockProps)({className:`align${r} columns-${n}`}),children:Array.from({length:n}).map((i,l)=>(0,Fi.jsx)("div",{className:"wp-block-column",children:(0,Fi.jsx)(Dc.RichText,{tagName:"p",value:o?.[l]?.children,onChange:s=>{t({content:[...o.slice(0,l),{children:s},...o.slice(l+1)]})},"aria-label":(0,r0.sprintf)((0,r0.__)("Column %d text"),l+1),placeholder:(0,r0.__)("New Column")})},`column-${l}`))})]})}var V8={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/text-columns",title:"Text Columns (deprecated)",icon:"columns",category:"design",description:"This block is deprecated. Please use the Columns block instead.",textdomain:"default",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-text-columns-editor",style:"wp-block-text-columns"};var O8=a(T(),1),F8=a(y(),1);function kde({attributes:e}){let{width:t,content:r,columns:o}=e;return(0,F8.jsx)("div",{...O8.useBlockProps.save({className:`align${t} columns-${o}`}),children:Array.from({length:o}).map((n,i)=>(0,F8.jsx)("div",{className:"wp-block-column",children:(0,F8.jsx)(O8.RichText.Content,{tagName:"p",value:r?.[i]?.children})},`column-${i}`))})}var H8=a(G(),1),BSe={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:r,width:o})=>(0,H8.createBlock)("core/columns",{align:o==="wide"||o==="full"?o:void 0,className:e,columns:t},r.map(({children:n})=>(0,H8.createBlock)("core/column",{},[(0,H8.createBlock)("core/paragraph",{content:n})])))}]},wde=BSe;var{name:Cde}=V8,Sde={transforms:wde,getEditWrapperProps(e){let{width:t}=e;if(t==="wide"||t==="full")return{"data-align":t}},edit:xde,save:kde},ESe=()=>N({name:Cde,metadata:V8,settings:Sde});var $R={};q($R,{init:()=>zSe,metadata:()=>G8,name:()=>Dde,settings:()=>$8});var WR=a(P(),1);var Nde=a(G(),1);var uf=a(T(),1);var o0=a(y(),1),ISe={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){let{textAlign:t,content:r}=e;return(0,o0.jsx)(uf.RichText.Content,{tagName:"pre",style:{textAlign:t},value:r})},migrate:ve},NSe={attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},spacing:{padding:!0}},save({attributes:e}){let{textAlign:t,content:r}=e,o=w({[`has-text-align-${t}`]:t});return(0,o0.jsx)("pre",{...uf.useBlockProps.save({className:o}),children:(0,o0.jsx)(uf.RichText.Content,{value:r})})},migrate(e){return ve(Ut(e))},isEligible({style:e,textAlign:t}){return e?.typography?.fontFamily||!!t}},DSe={attributes:{content:{type:"rich-text",source:"rich-text",selector:"pre",__unstablePreserveWhiteSpace:!0,role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,background:{backgroundImage:!0,backgroundSize:!0},color:{gradients:!0,link:!0},dimensions:{minHeight:!0},typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0},spacing:{margin:!0,padding:!0},__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},interactivity:{clientNavigation:!0}},save({attributes:e}){let{textAlign:t,content:r}=e,o=w({[`has-text-align-${t}`]:t});return(0,o0.jsx)("pre",{...uf.useBlockProps.save({className:o}),children:(0,o0.jsx)(uf.RichText.Content,{value:r})})},migrate:ve,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},Tde=[DSe,NSe,ISe];var jR=a(P(),1),j8=a(T(),1),U8=a(G(),1);var Pde=a(y(),1);function Bde(e){let{attributes:t,setAttributes:r,mergeBlocks:o,onRemove:n,insertBlocksAfter:i,style:l}=e,{content:s}=t;Tt(e);let c=(0,j8.useBlockProps)({style:l});return(0,Pde.jsx)(j8.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:s,onChange:u=>{r({content:u})},"aria-label":(0,jR.__)("Poetry text"),placeholder:(0,jR.__)("Write poetry\u2026"),onRemove:n,onMerge:o,...c,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>i((0,U8.createBlock)((0,U8.getDefaultBlockName)()))})}var G8={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/verse",title:"Poetry",category:"text",description:"Insert poetry. Use special spacing formats. Or quote song lyrics.",keywords:["poetry","poem","verse","stanza","song","lyrics"],textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"pre",__unstablePreserveWhiteSpace:!0,role:"content"}},supports:{anchor:!0,background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},dimensions:{minHeight:!0,__experimentalDefaultControls:{minHeight:!1}},typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,textAlign:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},interactivity:{clientNavigation:!0}},style:"wp-block-verse",editorStyle:"wp-block-verse-editor"};var W8=a(T(),1),UR=a(y(),1);function Ede({attributes:e}){let{content:t}=e;return(0,UR.jsx)("pre",{...W8.useBlockProps.save(),children:(0,UR.jsx)(W8.RichText.Content,{value:t})})}var GR=a(G(),1),MSe={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,GR.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,GR.createBlock)("core/paragraph",e)}]},Ide=MSe;var{fieldsKey:ASe,formKey:RSe}=Z(Nde.privateApis),{name:Dde}=G8,$8={icon:x1,example:{attributes:{content:(0,WR.__)(`WHAT was he doing, the great god Pan, |
| 101 |
Down in the reeds by the river? |
| 102 |
Spreading ruin and scattering ban, |
| 103 |
Splashing and paddling with hoofs of a goat, |
| 104 |
And breaking the golden lilies afloat |
| 105 |
With the dragon-fly on the river.`)}},transforms:Ide,deprecated:Tde,merge(e,t){return{content:e.content+` |
| 106 |
|
| 107 |
`+t.content}},edit:Bde,save:Ede};window.__experimentalContentOnlyInspectorFields&&($8[ASe]=[{id:"content",label:(0,WR.__)("Content"),type:"text",Edit:"rich-text"}],$8[RSe]={fields:["content"]});var zSe=()=>N({name:Dde,metadata:G8,settings:$8});var KR={};q(KR,{init:()=>JSe,metadata:()=>a0,name:()=>Kde,settings:()=>K8});var Z8=a(P(),1);var Zde=a(G(),1);var yy=a(T(),1);var a0={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number",role:"content"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},blob:{type:"string",role:"local"},src:{type:"string",source:"attribute",selector:"video",attribute:"src",role:"content"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{role:"content",type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-video-editor",style:"wp-block-video"};var Lde=a(y(),1);function n0({tracks:e=[]}){return e.map(t=>{let{id:r,...o}=t;return(0,Lde.jsx)("track",{...o},r??o.src)})}var i0=a(y(),1),{attributes:FSe}=a0,OSe={attributes:FSe,save({attributes:e}){let{autoplay:t,caption:r,controls:o,loop:n,muted:i,poster:l,preload:s,src:c,playsInline:u,tracks:m}=e;return(0,i0.jsxs)("figure",{...yy.useBlockProps.save(),children:[c&&(0,i0.jsx)("video",{autoPlay:t,controls:o,loop:n,muted:i,poster:l,preload:s!=="metadata"?s:void 0,src:c,playsInline:u,children:(0,i0.jsx)(n0,{tracks:m})}),!yy.RichText.isEmpty(r)&&(0,i0.jsx)(yy.RichText.Content,{tagName:"figcaption",value:r})]})}},HSe=[OSe],Mde=HSe;var Hde=a(Br(),1),ap=a(A(),1),gn=a(T(),1),s0=a(H(),1),_y=a(P(),1),jde=a(z(),1);var Ude=a(yr(),1),Gde=a(ir(),1);var Gr=a(P(),1),hn=a(A(),1),mf=a(H(),1),da=a(y(),1),jSe=[{value:"auto",label:(0,Gr.__)("Auto")},{value:"metadata",label:(0,Gr.__)("Metadata")},{value:"none",label:(0,Gr._x)("None","Preload value")}],USe=({setAttributes:e,attributes:t})=>{let{autoplay:r,controls:o,loop:n,muted:i,playsInline:l,preload:s}=t,c=(0,Gr.__)("Autoplay may cause usability issues for some users."),u=mf.Platform.select({web:(0,mf.useCallback)(d=>d?c:null,[]),native:c}),m=(0,mf.useMemo)(()=>{let d=f=>h=>{e({[f]:h,...f==="autoplay"&&{muted:h,playsInline:h}})};return{autoplay:d("autoplay"),loop:d("loop"),muted:d("muted"),controls:d("controls"),playsInline:d("playsInline")}},[]),p=(0,mf.useCallback)(d=>{e({preload:d})},[]);return(0,da.jsxs)(da.Fragment,{children:[(0,da.jsx)(hn.__experimentalToolsPanelItem,{label:(0,Gr.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>{e({autoplay:!1,muted:!1})},children:(0,da.jsx)(hn.ToggleControl,{label:(0,Gr.__)("Autoplay"),onChange:m.autoplay,checked:!!r,help:u})}),(0,da.jsx)(hn.__experimentalToolsPanelItem,{label:(0,Gr.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{e({loop:!1})},children:(0,da.jsx)(hn.ToggleControl,{label:(0,Gr.__)("Loop"),onChange:m.loop,checked:!!n})}),(0,da.jsx)(hn.__experimentalToolsPanelItem,{label:(0,Gr.__)("Muted"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>{e({muted:!1})},children:(0,da.jsx)(hn.ToggleControl,{label:(0,Gr.__)("Muted"),onChange:m.muted,checked:!!i,disabled:r,help:r?(0,Gr.__)("Muted because of Autoplay."):null})}),(0,da.jsx)(hn.__experimentalToolsPanelItem,{label:(0,Gr.__)("Playback controls"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>{e({controls:!0})},children:(0,da.jsx)(hn.ToggleControl,{label:(0,Gr.__)("Playback controls"),onChange:m.controls,checked:!!o})}),(0,da.jsx)(hn.__experimentalToolsPanelItem,{label:(0,Gr.__)("Play inline"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>{e({playsInline:!1})},children:(0,da.jsx)(hn.ToggleControl,{label:(0,Gr.__)("Play inline"),onChange:m.playsInline,checked:!!l,disabled:r,help:r?(0,Gr.__)("Play inline enabled because of Autoplay."):(0,Gr.__)("When enabled, videos will play directly within the webpage on mobile browsers, instead of opening in a fullscreen player.")})}),(0,da.jsx)(hn.__experimentalToolsPanelItem,{label:(0,Gr.__)("Preload"),isShownByDefault:!0,hasValue:()=>s!=="metadata",onDeselect:()=>{e({preload:"metadata"})},children:(0,da.jsx)(hn.SelectControl,{__next40pxDefaultSize:!0,label:(0,Gr.__)("Preload"),value:s,onChange:p,options:jSe,hideCancelButton:!0})})]})},Ade=USe;var Rt=a(P(),1),Je=a(A(),1),l0=a(T(),1);var zde=a(z(),1),pf=a(H(),1),Vde=a(ir(),1);var Ze=a(y(),1),{Badge:GSe}=Z(Je.privateApis),Rde=["text/vtt"],WSe="subtitles",$Se=[{label:(0,Rt.__)("Subtitles"),value:"subtitles"},{label:(0,Rt.__)("Captions"),value:"captions"},{label:(0,Rt.__)("Descriptions"),value:"descriptions"},{label:(0,Rt.__)("Chapters"),value:"chapters"},{label:(0,Rt.__)("Metadata"),value:"metadata"}],Fde={src:"",label:"",srcLang:"en",kind:WSe,default:!1};function qSe({tracks:e,onEditPress:t}){let r=e.map((o,n)=>(0,Ze.jsxs)(Je.__experimentalHStack,{className:"block-library-video-tracks-editor__track-list-track",children:[(0,Ze.jsx)("span",{children:o.label}),(0,Ze.jsxs)(Je.__experimentalHStack,{justify:"flex-end",children:[o.default&&(0,Ze.jsx)(GSe,{children:(0,Rt.__)("Default")}),(0,Ze.jsx)(Je.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(n),"aria-label":(0,Rt.sprintf)((0,Rt._x)("Edit %s","text tracks"),o.label),children:(0,Rt.__)("Edit")})]})]},o.id??o.src));return(0,Ze.jsx)(Je.MenuGroup,{label:(0,Rt.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list",children:r})}function ZSe({track:e,onChange:t,onClose:r,onRemove:o,allowSettingDefault:n}){let[i,l]=(0,pf.useState)({...Fde,...e}),{src:s,label:c,srcLang:u,kind:m,default:p}=i,d=s.startsWith("blob:")?"":(0,Vde.getFilename)(s)||"";return(0,Ze.jsxs)(Je.__experimentalVStack,{className:"block-library-video-tracks-editor__single-track-editor",spacing:"4",children:[(0,Ze.jsx)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label",children:(0,Rt.__)("Edit track")}),(0,Ze.jsxs)("span",{children:[(0,Rt.__)("File"),": ",(0,Ze.jsx)("b",{children:d})]}),(0,Ze.jsxs)(Je.__experimentalGrid,{columns:2,gap:4,children:[(0,Ze.jsx)(Je.TextControl,{__next40pxDefaultSize:!0,onChange:f=>l(h=>({...h,label:f})),label:(0,Rt.__)("Label"),value:c,help:(0,Rt.__)("Title of track")}),(0,Ze.jsx)(Je.TextControl,{__next40pxDefaultSize:!0,onChange:f=>l(h=>({...h,srcLang:f})),label:(0,Rt.__)("Source language"),value:u,help:(0,Rt.__)("Language tag (en, fr, etc.)")})]}),(0,Ze.jsxs)(Je.__experimentalVStack,{spacing:"4",children:[(0,Ze.jsx)(Je.SelectControl,{__next40pxDefaultSize:!0,className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:$Se,value:m,label:(0,Rt.__)("Kind"),onChange:f=>l(h=>({...h,kind:f}))}),(0,Ze.jsx)(Je.ToggleControl,{__next40pxDefaultSize:!0,label:(0,Rt.__)("Set as default track"),checked:p,disabled:!n,onChange:f=>l(h=>({...h,default:f}))}),(0,Ze.jsxs)(Je.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container",children:[(0,Ze.jsx)(Je.Button,{__next40pxDefaultSize:!0,isDestructive:!0,variant:"link",onClick:o,children:(0,Rt.__)("Remove track")}),(0,Ze.jsx)(Je.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t(i),r()},children:(0,Rt.__)("Apply")})]})]})]})}function Ode({tracks:e=[],onChange:t}){let r=(0,zde.useSelect)(c=>c(l0.store).getSettings().mediaUpload,[]),[o,n]=(0,pf.useState)(null),i=(0,pf.useRef)(),l=(c=[],u=!1)=>{let m=new Map(e.map(d=>[d.id,d])),p=c.map(({id:d,title:f,url:h})=>m.has(d)?m.get(d):{...Fde,id:d,label:f||"",src:h});p.length!==0&&t([...u?e:[],...p])};function s(c){let u=c.target.files;r({allowedTypes:Rde,filesList:u,onFileChange:m=>{if(!Array.isArray(m))return;let p=m.filter(d=>!!d?.id);p.length&&l(p,!0)}})}return(0,pf.useEffect)(()=>{i.current?.focus()},[o]),r?(0,Ze.jsx)(Je.Dropdown,{contentClassName:"block-library-video-tracks-editor",focusOnMount:!0,popoverProps:{ref:i},renderToggle:({isOpen:c,onToggle:u})=>(0,Ze.jsx)(Je.ToolbarGroup,{children:(0,Ze.jsx)(Je.ToolbarButton,{"aria-expanded":c,"aria-haspopup":"true",onClick:()=>{c||n(null),u()},children:(0,Rt.__)("Text tracks")})}),renderContent:()=>o!==null?(0,Ze.jsx)(ZSe,{track:e[o],onChange:c=>{let u=[...e];u[o]=c,t(u)},onClose:()=>n(null),onRemove:()=>{t(e.filter((c,u)=>u!==o)),n(null)},allowSettingDefault:!e.some(c=>c.default)||e[o].default}):(0,Ze.jsxs)(Ze.Fragment,{children:[e.length===0&&(0,Ze.jsxs)("div",{className:"block-library-video-tracks-editor__tracks-informative-message",children:[(0,Ze.jsx)("h2",{className:"block-library-video-tracks-editor__tracks-informative-message-title",children:(0,Rt.__)("Text tracks")}),(0,Ze.jsx)("p",{className:"block-library-video-tracks-editor__tracks-informative-message-description",children:(0,Rt.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")})]}),(0,Ze.jsxs)(Je.NavigableMenu,{children:[(0,Ze.jsx)(qSe,{tracks:e,onEditPress:n}),(0,Ze.jsx)(Je.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,Rt.__)("Add tracks"),children:(0,Ze.jsxs)(l0.MediaUploadCheck,{children:[(0,Ze.jsx)(l0.MediaUpload,{onSelect:l,allowedTypes:Rde,value:e.map(({id:c})=>c),multiple:!0,render:({open:c})=>(0,Ze.jsx)(Je.MenuItem,{icon:q0,onClick:c,children:(0,Rt.__)("Open Media Library")})}),(0,Ze.jsx)(Je.FormFileUpload,{onChange:s,accept:".vtt,text/vtt",multiple:!0,render:({openFileDialog:c})=>(0,Ze.jsx)(Je.MenuItem,{icon:Vc,onClick:c,children:(0,Rt._x)("Upload","verb")})})]})})]})]})}):null}var mr=a(y(),1),qR=["video"];function KSe({isSelected:e,attributes:t,className:r,setAttributes:o,insertBlocksAfter:n,onReplace:i}){let l=(0,s0.useRef)(),{id:s,controls:c,poster:u,src:m,tracks:p}=t,[d,f]=(0,s0.useState)(t.blob),h=$(),b=(0,gn.useBlockEditingMode)()==="default";Es({url:d,allowedTypes:qR,onChange:v,onError:k}),(0,s0.useEffect)(()=>{l.current&&l.current.load()},[u]);function v(I){if(!I||!I.url){o({src:void 0,id:void 0,poster:void 0,caption:void 0,blob:void 0}),f();return}if((0,Hde.isBlobURL)(I.url)){f(I.url);return}o({blob:void 0,src:I.url,id:I.id,poster:I.image?.src!==I.icon?I.image?.src:void 0,caption:I.caption}),f()}function x(I){if(I!==m){let D=(0,Gde.prependHTTPS)(I),M=qu({attributes:{url:D}});if(M!==void 0&&i){i(M);return}o({blob:void 0,src:D,id:void 0,poster:void 0}),f()}}let{createErrorNotice:_}=(0,jde.useDispatch)(Ude.store);function k(I){_(I,{type:"snackbar"})}let S=I=>(0,mr.jsx)(ap.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!e,icon:Pf,label:(0,_y.__)("Video"),instructions:(0,_y.__)("Drag and drop a video, upload, or choose from your library."),children:I}),C=w(r,{"is-transient":!!d}),E=(0,gn.useBlockProps)({className:C});return!m&&!d?(0,mr.jsx)("div",{...E,children:(0,mr.jsx)(gn.MediaPlaceholder,{icon:(0,mr.jsx)(gn.BlockIcon,{icon:Pf}),onSelect:v,onSelectURL:x,accept:"video/*",allowedTypes:qR,value:t,onError:k,placeholder:S})}):(0,mr.jsxs)(mr.Fragment,{children:[e&&(0,mr.jsxs)(mr.Fragment,{children:[(0,mr.jsx)(gn.BlockControls,{children:(0,mr.jsx)(Ode,{tracks:p,onChange:I=>{o({tracks:I})}})}),(0,mr.jsx)(gn.BlockControls,{group:"other",children:(0,mr.jsx)(gn.MediaReplaceFlow,{mediaId:s,mediaURL:m,allowedTypes:qR,accept:"video/*",onSelect:v,onSelectURL:x,onError:k,onReset:()=>v(void 0),variant:"toolbar"})})]}),(0,mr.jsx)(gn.InspectorControls,{children:(0,mr.jsxs)(ap.__experimentalToolsPanel,{label:(0,_y.__)("Settings"),resetAll:()=>{o({autoplay:!1,controls:!0,loop:!1,muted:!1,playsInline:!1,preload:"metadata",poster:void 0})},dropdownMenuProps:h,children:[(0,mr.jsx)(Ade,{setAttributes:o,attributes:t}),(0,mr.jsx)(n5,{poster:u,onChange:I=>o({poster:I?.url})})]})}),(0,mr.jsxs)("figure",{...E,children:[(0,mr.jsx)(ap.Disabled,{isDisabled:!e,children:(0,mr.jsx)("video",{controls:c,poster:u,src:m||d,ref:l,children:(0,mr.jsx)(n0,{tracks:p})})}),!!d&&(0,mr.jsx)(ap.Spinner,{}),(0,mr.jsx)(ga,{attributes:t,setAttributes:o,isSelected:e,insertBlocksAfter:n,label:(0,_y.__)("Video caption text"),showToolbarButton:e&&b})]})]})}var Wde=KSe;var df=a(T(),1);var c0=a(y(),1);function $de({attributes:e}){let{autoplay:t,caption:r,controls:o,loop:n,muted:i,poster:l,preload:s,src:c,playsInline:u,tracks:m}=e;return(0,c0.jsxs)("figure",{...df.useBlockProps.save(),children:[c&&(0,c0.jsx)("video",{autoPlay:t,controls:o,loop:n,muted:i,poster:l,preload:s!=="metadata"?s:void 0,src:c,playsInline:u,children:(0,c0.jsx)(n0,{tracks:m})}),!df.RichText.isEmpty(r)&&(0,c0.jsx)(df.RichText.Content,{className:(0,df.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var q8=a(Br(),1),ZR=a(G(),1),YSe={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("video/")===0},transform(e){let t=e[0];return(0,ZR.createBlock)("core/video",{blob:(0,q8.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:r,webm:o,ogv:n,flv:i}})=>e||t||r||o||n||i},poster:{type:"string",shortcode:({named:{poster:e}})=>e},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}},{type:"raw",isMatch:e=>e.nodeName==="P"&&e.children.length===1&&e.firstChild.nodeName==="VIDEO",transform:e=>{let t=e.firstChild,r={autoplay:t.hasAttribute("autoplay")?!0:void 0,controls:t.hasAttribute("controls")?void 0:!1,loop:t.hasAttribute("loop")?!0:void 0,muted:t.hasAttribute("muted")?!0:void 0,preload:t.getAttribute("preload")||void 0,playsInline:t.hasAttribute("playsinline")?!0:void 0,poster:t.getAttribute("poster")||void 0,src:t.getAttribute("src")||void 0};return(0,q8.isBlobURL)(r.src)&&(r.blob=r.src,delete r.src),(0,ZR.createBlock)("core/video",r)}}]},qde=YSe;var{fieldsKey:QSe,formKey:XSe}=Z(Zde.privateApis),{name:Kde}=a0,K8={icon:Pf,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,Z8.__)("Wood thrush singing in Central Park, NYC.")}},transforms:qde,deprecated:Mde,edit:Wde,save:$de};window.__experimentalContentOnlyInspectorFields&&(K8[QSe]=[{id:"video",label:(0,Z8.__)("Video"),type:"media",Edit:{control:"media",allowedTypes:["video"],multiple:!1},getValue:({item:e})=>({id:e.id,url:e.src,caption:e.caption,poster:e.poster}),setValue:({value:e})=>({id:e.id,src:e.url,caption:e.caption,poster:e.poster})},{id:"caption",label:(0,Z8.__)("Caption"),type:"text",Edit:"rich-text"}],K8[XSe]={fields:["video","caption"]});var JSe=()=>N({name:Kde,metadata:a0,settings:K8});var JR={};q(JR,{init:()=>o8e,metadata:()=>Y8,name:()=>X8,settings:()=>afe});var ofe=a(Qu(),1);var ff=a(T(),1),Yde=a(Y(),1),xy=a(P(),1),YR=a(A(),1);var kl=a(y(),1);function Qde({context:{postType:e,postId:t}}){let[r,o]=(0,Yde.useEntityProp)("postType",e,"meta",t),n=typeof r?.footnotes=="string",i=r?.footnotes?JSON.parse(r.footnotes):[],l=(0,ff.useBlockProps)();return n?i.length?(0,kl.jsx)("ol",{...l,children:i.map(({id:s,content:c})=>(0,kl.jsxs)("li",{onMouseDown:u=>{u.target===u.currentTarget&&(u.target.firstElementChild.focus(),u.preventDefault())},children:[(0,kl.jsx)(ff.RichText,{id:s,tagName:"span",value:c,identifier:s,onFocus:u=>{u.target.textContent.trim()||u.target.scrollIntoView()},onChange:u=>{o({...r,footnotes:JSON.stringify(i.map(m=>m.id===s?{content:u,id:s}:m))})}})," ",(0,kl.jsx)("a",{href:`#${s}-link`,children:"\u21A9\uFE0E"})]},s))}):(0,kl.jsx)("div",{...l,children:(0,kl.jsx)(YR.Placeholder,{icon:(0,kl.jsx)(ff.BlockIcon,{icon:ji}),label:(0,xy.__)("Footnotes"),instructions:(0,xy.__)("Footnotes found in blocks within this document will be displayed here.")})}):(0,kl.jsx)("div",{...l,children:(0,kl.jsx)(YR.Placeholder,{icon:(0,kl.jsx)(ff.BlockIcon,{icon:ji}),label:(0,xy.__)("Footnotes"),instructions:(0,xy.__)("Footnotes are not supported here. Add this block to post or page content.")})})}var Y8={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/footnotes",title:"Footnotes",category:"text",description:"Display footnotes added to the page.",keywords:["references"],textdomain:"default",usesContext:["postId","postType"],supports:{anchor:!0,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!1,color:!1,width:!1,style:!1}},color:{background:!0,link:!0,text:!0,__experimentalDefaultControls:{link:!0,text:!0}},html:!1,multiple:!1,reusable:!1,inserter:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-footnotes"};var QR=a(P(),1);var Jde=a(Qu(),1),Eu=a(T(),1),u0=a(z(),1),efe=a(Y(),1),Q8=a(G(),1);var tfe=a(y(),1),XR="core/footnote",{usesContextKey:t8e}=Z(Eu.privateApis),Xde="core/post-content",r8e="core/block",rfe={title:(0,QR.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},interactive:!0,contentEditable:!1,[t8e]:["postType","postId"],edit:function({value:t,onChange:r,isObjectActive:o,context:{postType:n,postId:i}}){let l=(0,u0.useRegistry)(),{getSelectedBlockClientId:s,getBlocks:c,getBlockRootClientId:u,getBlockName:m,getBlockParentsByBlockName:p}=l.select(Eu.store),d=(0,u0.useSelect)(b=>{if(!b(Q8.store).getBlockType("core/footnotes"))return!1;let v=b(Eu.store).getSettings().allowedBlockTypes;if(v===!1||Array.isArray(v)&&!v.includes("core/footnotes")||typeof b(efe.store).getEntityRecord("postType",n,i)?.meta?.footnotes!="string")return!1;let{getBlockParentsByBlockName:_,getSelectedBlockClientId:k,getBlockName:S}=b(Eu.store),C=k();if(!C||S(C)===X8)return!1;let E=_(C,r8e);return!E||E.length===0},[n,i]),{selectionChange:f,insertBlock:h}=(0,u0.useDispatch)(Eu.store);if(!d)return null;function g(){l.batch(()=>{let b;if(o)b=t.replacements[t.start]?.attributes?.["data-fn"];else{b=uu();let S=(0,Jde.insertObject)(t,{type:XR,attributes:{"data-fn":b},innerHTML:`<a href="#${b}" id="${b}-link">*</a>`},t.end,t.end);S.start=S.end-1,r(S)}let v=s(),x=p(v,Xde),_=x.length?c(x[0]):c(),k=null;{let S=[..._];for(;S.length;){let C=S.shift();if(C.name==="core/footnotes"){k=C;break}S.push(...C.innerBlocks)}}if(!k){let S=u(v);for(;S&&m(S)!==Xde;)S=u(S);k=(0,Q8.createBlock)("core/footnotes"),h(k,void 0,S)}f(k.clientId,b,0,0)})}return(0,tfe.jsx)(Eu.RichTextToolbarButton,{icon:ji,title:(0,QR.__)("Footnote"),onClick:g,isActive:o})}};var{name:X8}=Y8,afe={icon:ji,edit:Qde},o8e=()=>{(0,ofe.registerFormatType)(XR,rfe),N({name:X8,metadata:Y8,settings:afe})};function ez(e){return e&&"__experimental"in e&&e.__experimental!==!1}var lfe=a(H(),1),ky=a(z(),1),Lc=a(ife(),1),tz=a(P(),1),sfe=a(G(),1),rz=a(T(),1);function a8e(){let{registerShortcut:e}=(0,ky.useDispatch)(Lc.store),{replaceBlocks:t}=(0,ky.useDispatch)(rz.store),{getBlockName:r,getSelectedBlockClientId:o,getBlockAttributes:n}=(0,ky.useSelect)(rz.store),i=(l,s)=>{l.preventDefault();let c=o();if(c===null)return;let u=r(c),m=u==="core/paragraph",p=u==="core/heading";if(!m&&!p)return;let d=s===0?"core/paragraph":"core/heading",f=n(c);if(m&&s===0||p&&f.level===s)return;let h={content:f.content},g=f.textAlign||f.style?.typography?.textAlign;d==="core/heading"&&(h.level=s),g&&(h.style={typography:{textAlign:g}}),t(c,(0,sfe.createBlock)(d,h))};return(0,lfe.useEffect)(()=>{e({name:"core/block-editor/transform-heading-to-paragraph",category:"block-library",description:(0,tz.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}]}),[1,2,3,4,5,6].forEach(l=>{e({name:`core/block-editor/transform-paragraph-to-heading-${l}`,category:"block-library",description:(0,tz.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${l}`}})})},[e]),(0,Lc.useShortcut)("core/block-editor/transform-heading-to-paragraph",l=>i(l,0)),(0,Lc.useShortcut)("core/block-editor/transform-paragraph-to-heading-1",l=>i(l,1)),(0,Lc.useShortcut)("core/block-editor/transform-paragraph-to-heading-2",l=>i(l,2)),(0,Lc.useShortcut)("core/block-editor/transform-paragraph-to-heading-3",l=>i(l,3)),(0,Lc.useShortcut)("core/block-editor/transform-paragraph-to-heading-4",l=>i(l,4)),(0,Lc.useShortcut)("core/block-editor/transform-paragraph-to-heading-5",l=>i(l,5)),(0,Lc.useShortcut)("core/block-editor/transform-paragraph-to-heading-6",l=>i(l,6)),null}var cfe=a8e;var oz={};OF(oz,{BlockKeyboardShortcuts:cfe,NAVIGATION_OVERLAY_TEMPLATE_PART_AREA:nc,NavigationLinkUI:qw});var J8=a(y(),1),ffe=()=>{let e=[_L,HN,SN,hN,YN,lD,DM,rE,oE,aE,nE,iE,gE,kE,SE,PE,FE,$E,ZE,QE,oI,zI,VI,GI,ZI,_N,EN,XN,jN,$N,fD,hD,gD,tL,cL,fL,nL,XL,JL,LM,AM,HM,jM,GM,KA,QA,XA,dR,xR,HR,$R,KR,JR,KD,QD,JD,$M,XM,KM,fM,TR,sE,ZL,OL,UL,zL,EL,IL,DL,LL,RL,VL,$L,GL,WL,qL,bM,_M,xM,wM,hM,IM,MM,tI,aI,nI,lI,sI,cI,mI,yI,hI,vI,bI,dI,AL,hR,TN,LN,sD,oL,IR,DR,LR,FR,OR,PM,NL,vE];return window?.__experimentalEnableFormBlocks&&(e.push(JI),e.push(tN),e.push(oN),e.push(aN)),window?.__experimentalEnableBlockExperiments&&(e.push(tR),e.push(gR),e.push(yR),e.push(rR),e.push(oR),e.push(SL),e.push(PL)),e.push(HE),e.filter(Boolean)},hfe=()=>ffe().filter(({metadata:e})=>!ez(e)),n8e=(e=hfe())=>{e.forEach(({init:t})=>t()),window.__unstableAutoRegisterBlocks&&window.__unstableAutoRegisterBlocks.forEach(t=>{let r=Z((0,mfe.select)(wl.store)).getBootstrappedBlockType(t);(0,wl.registerBlockType)(t,{...r,title:r?.title||t,...(r?.apiVersion??0)<3&&{apiVersion:3},edit:function({attributes:n}){let i=(0,ufe.useDisabled)(),l=(0,pfe.useBlockProps)({ref:i}),{content:s,status:c,error:u}=(0,dfe.useServerSideRender)({block:t,attributes:n});return c==="loading"?(0,J8.jsx)("div",{...l,children:(0,wy.__)("Loading\u2026")}):c==="error"?(0,J8.jsx)("div",{...l,children:(0,wy.sprintf)((0,wy.__)("Error loading block: %s"),u)}):(0,J8.jsx)(no,{wrapperProps:l,html:s})},save:()=>null})}),(0,wl.setDefaultBlockName)(A3),window.wp&&window.wp.oldEditor&&e.some(({name:t})=>t===G1)&&(0,wl.setFreeformContentHandlerName)(G1),(0,wl.setUnregisteredTypeHandlerName)(Iv),(0,wl.setGroupingBlockName)(J5)},i8e=({enableFSEBlocks:e}={})=>{let t=[e?"fse":null];ffe().filter(({metadata:r})=>ez(r)).filter(({metadata:{__experimental:r}})=>r===!0||t.includes(r)).forEach(({init:r})=>r())};return Ife(l8e);})(); |
| 108 |
/*! Bundled license information: |
| 109 |
|
| 110 |
fast-average-color/dist/index.esm.js: |
| 111 |
(*! Fast Average Color | © 2022 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color *) |
| 112 |
*/ |
| 113 |
//# sourceMappingURL=index.min.js.map |
| 114 |
|