HEX
Server: nginx
System: Linux pool195-106-36.bur.atomicsites.net 6.12.57+deb12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.57-1~bpo12+1 (2025-11-17) x86_64
User: (0)
PHP: 8.3.32
Disabled: pcntl_fork
Upload Files
File: //wordpress/core/beta/wp-includes/js/dist/block-library.min.js
/*! This file is auto-generated */
"use strict";var wp;(wp||={}).blockLibrary=(()=>{var Wve=Object.create;var i_=Object.defineProperty;var $ve=Object.getOwnPropertyDescriptor;var qve=Object.getOwnPropertyNames;var Zve=Object.getPrototypeOf,Kve=Object.prototype.hasOwnProperty;var Yve=(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 Be=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),K=(e,t)=>{for(var r in t)i_(e,r,{get:t[r],enumerable:!0})},wF=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of qve(t))!Kve.call(e,a)&&a!==r&&i_(e,a,{get:()=>t[a],enumerable:!(o=$ve(t,a))||o.enumerable});return e};var n=(e,t,r)=>(r=e!=null?Wve(Zve(e)):{},wF(t||!e||!e.__esModule?i_(r,"default",{value:e,enumerable:!0}):r,e)),Qve=e=>wF(i_({},"__esModule",{value:!0}),e);var q=Be((ANe,CF)=>{CF.exports=window.wp.blocks});var ve=Be((MNe,SF)=>{SF.exports=window.wp.compose});var F=Be((zNe,TF)=>{TF.exports=window.wp.data});var P=Be((VNe,PF)=>{PF.exports=window.wp.blockEditor});var sp=Be((ONe,EF)=>{EF.exports=window.wp.serverSideRender});var N=Be((FNe,BF)=>{BF.exports=window.wp.i18n});var v9=Be(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.Doctype=ur.CDATA=ur.Tag=ur.Style=ur.Script=ur.Comment=ur.Directive=ur.Text=ur.Root=ur.isTag=ur.ElementType=void 0;var mi;(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"})(mi=ur.ElementType||(ur.ElementType={}));function Jve(e){return e.type===mi.Tag||e.type===mi.Script||e.type===mi.Style}ur.isTag=Jve;ur.Root=mi.Root;ur.Text=mi.Text;ur.Directive=mi.Directive;ur.Comment=mi.Comment;ur.Script=mi.Script;ur.Style=mi.Style;ur.Tag=mi.Tag;ur.CDATA=mi.CDATA;ur.Doctype=mi.Doctype});var x9=Be(Ze=>{"use strict";var cp=Ze&&Ze.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(o[i]=a[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)}})(),L1=Ze&&Ze.__assign||function(){return L1=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},L1.apply(this,arguments)};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.cloneNode=Ze.hasChildren=Ze.isDocument=Ze.isDirective=Ze.isComment=Ze.isText=Ze.isCDATA=Ze.isTag=Ze.Element=Ze.Document=Ze.CDATA=Ze.NodeWithChildren=Ze.ProcessingInstruction=Ze.Comment=Ze.Text=Ze.DataNode=Ze.Node=void 0;var Va=v9(),y9=(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),_9(this,t)},e})();Ze.Node=y9;var l_=(function(e){cp(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})(y9);Ze.DataNode=l_;var NF=(function(e){cp(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Va.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t})(l_);Ze.Text=NF;var DF=(function(e){cp(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Va.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t})(l_);Ze.Comment=DF;var LF=(function(e){cp(t,e);function t(r,o){var a=e.call(this,o)||this;return a.name=r,a.type=Va.ElementType.Directive,a}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t})(l_);Ze.ProcessingInstruction=LF;var s_=(function(e){cp(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})(y9);Ze.NodeWithChildren=s_;var RF=(function(e){cp(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Va.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t})(s_);Ze.CDATA=RF;var AF=(function(e){cp(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Va.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t})(s_);Ze.Document=AF;var MF=(function(e){cp(t,e);function t(r,o,a,i){a===void 0&&(a=[]),i===void 0&&(i=r==="script"?Va.ElementType.Script:r==="style"?Va.ElementType.Style:Va.ElementType.Tag);var l=e.call(this,a)||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 a,i;return{name:o,value:r.attribs[o],namespace:(a=r["x-attribsNamespace"])===null||a===void 0?void 0:a[o],prefix:(i=r["x-attribsPrefix"])===null||i===void 0?void 0:i[o]}})},enumerable:!1,configurable:!0}),t})(s_);Ze.Element=MF;function zF(e){return(0,Va.isTag)(e)}Ze.isTag=zF;function VF(e){return e.type===Va.ElementType.CDATA}Ze.isCDATA=VF;function OF(e){return e.type===Va.ElementType.Text}Ze.isText=OF;function FF(e){return e.type===Va.ElementType.Comment}Ze.isComment=FF;function HF(e){return e.type===Va.ElementType.Directive}Ze.isDirective=HF;function jF(e){return e.type===Va.ElementType.Root}Ze.isDocument=jF;function ebe(e){return Object.prototype.hasOwnProperty.call(e,"children")}Ze.hasChildren=ebe;function _9(e,t){t===void 0&&(t=!1);var r;if(OF(e))r=new NF(e.data);else if(FF(e))r=new DF(e.data);else if(zF(e)){var o=t?b9(e.children):[],a=new MF(e.name,L1({},e.attribs),o);o.forEach(function(c){return c.parent=a}),e.namespace!=null&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]=L1({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]=L1({},e["x-attribsPrefix"])),r=a}else if(VF(e)){var o=t?b9(e.children):[],i=new RF(o);o.forEach(function(u){return u.parent=i}),r=i}else if(jF(e)){var o=t?b9(e.children):[],l=new AF(o);o.forEach(function(u){return u.parent=l}),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else if(HF(e)){var s=new LF(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}Ze.cloneNode=_9;function b9(e){for(var t=e.map(function(o){return _9(o,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}});var w9=Be(js=>{"use strict";var tbe=js&&js.__createBinding||(Object.create?(function(e,t,r,o){o===void 0&&(o=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,a)}):(function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]})),rbe=js&&js.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&tbe(t,e,r)};Object.defineProperty(js,"__esModule",{value:!0});js.DomHandler=void 0;var k9=v9(),up=x9();rbe(x9(),js);var UF={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},GF=(function(){function e(t,r,o){this.dom=[],this.root=new up.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(o=r,r=UF),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??UF,this.elementCB=o??null}return e.prototype.onparserinit=function(t){this.parser=t},e.prototype.onreset=function(){this.dom=[],this.root=new up.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?k9.ElementType.Tag:void 0,a=new up.Element(t,r,void 0,o);this.addNode(a),this.tagStack.push(a)},e.prototype.ontext=function(t){var r=this.lastNode;if(r&&r.type===k9.ElementType.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{var o=new up.Text(t);this.addNode(o),this.lastNode=o}},e.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===k9.ElementType.Comment){this.lastNode.data+=t;return}var r=new up.Comment(t);this.addNode(r),this.lastNode=r},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var t=new up.Text(""),r=new up.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 up.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})();js.DomHandler=GF;js.default=GF});var WF=Be(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.CARRIAGE_RETURN_PLACEHOLDER_REGEX=Yo.CARRIAGE_RETURN_PLACEHOLDER=Yo.CARRIAGE_RETURN_REGEX=Yo.CARRIAGE_RETURN=Yo.CASE_SENSITIVE_TAG_NAMES_MAP=Yo.CASE_SENSITIVE_TAG_NAMES=void 0;Yo.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"];Yo.CASE_SENSITIVE_TAG_NAMES_MAP=Yo.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{});Yo.CARRIAGE_RETURN="\r";Yo.CARRIAGE_RETURN_REGEX=new RegExp(Yo.CARRIAGE_RETURN,"g");Yo.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__");Yo.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(Yo.CARRIAGE_RETURN_PLACEHOLDER,"g")});var C9=Be(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});hh.formatAttributes=$F;hh.escapeSpecialCharacters=abe;hh.revertEscapedCharacters=qF;hh.formatDOM=ZF;var c_=w9(),R1=WF();function obe(e){return R1.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function $F(e){for(var t={},r=0,o=e.length;r<o;r++){var a=e[r];t[a.name]=a.value}return t}function nbe(e){e=e.toLowerCase();var t=obe(e);return t||e}function abe(e){return e.replace(R1.CARRIAGE_RETURN_REGEX,R1.CARRIAGE_RETURN_PLACEHOLDER)}function qF(e){return e.replace(R1.CARRIAGE_RETURN_PLACEHOLDER_REGEX,R1.CARRIAGE_RETURN)}function ZF(e,t,r){t===void 0&&(t=null);for(var o=[],a,i=0,l=e.length;i<l;i++){var s=e[i];switch(s.nodeType){case 1:{var c=nbe(s.nodeName);a=new c_.Element(c,$F(s.attributes)),a.children=ZF(c==="template"?s.content.childNodes:s.childNodes,a);break}case 3:a=new c_.Text(qF(s.nodeValue));break;case 8:a=new c_.Comment(s.nodeValue);break;default:continue}var u=o[i-1]||null;u&&(u.next=a),a.parent=t,a.prev=u,a.next=null,o.push(a)}return r&&(a=new c_.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r),a.next=o[0]||null,a.parent=t,o.unshift(a),o[1]&&(o[1].prev=o[0])),o}});var rH=Be(P9=>{"use strict";Object.defineProperty(P9,"__esModule",{value:!0});P9.default=sbe;var ibe=C9(),KF="html",YF="head",u_="body",lbe=/<([a-zA-Z]+[0-9]?)/,QF=/<head[^]*>/i,XF=/<body[^]*>/i,m_=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},S9=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},JF=typeof window=="object"&&window.DOMParser;typeof JF=="function"&&(eH=new JF,tH="text/html",S9=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),eH.parseFromString(e,tH)},m_=S9);var eH,tH;typeof document=="object"&&document.implementation&&(A1=document.implementation.createHTMLDocument(),m_=function(e,t){if(t){var r=A1.documentElement.querySelector(t);return r&&(r.innerHTML=e),A1}return A1.documentElement.innerHTML=e,A1});var A1,p_=typeof document=="object"&&document.createElement("template"),T9;p_&&p_.content&&(T9=function(e){return p_.innerHTML=e,p_.content.childNodes});function sbe(e){var t,r;e=(0,ibe.escapeSpecialCharacters)(e);var o=e.match(lbe),a=o&&o[1]?o[1].toLowerCase():"";switch(a){case KF:{var i=S9(e);if(!QF.test(e)){var l=i.querySelector(YF);(t=l?.parentNode)===null||t===void 0||t.removeChild(l)}if(!XF.test(e)){var l=i.querySelector(u_);(r=l?.parentNode)===null||r===void 0||r.removeChild(l)}return i.querySelectorAll(KF)}case YF:case u_:{var s=m_(e).querySelectorAll(a);return XF.test(e)&&QF.test(e)?s[0].parentNode.childNodes:s}default:{if(T9)return T9(e);var l=m_(e,u_).querySelector(u_);return l.childNodes}}}});var oH=Be(M1=>{"use strict";var cbe=M1&&M1.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(M1,"__esModule",{value:!0});M1.default=dbe;var ube=cbe(rH()),pbe=C9(),mbe=/<(![a-zA-Z\s]+)>/;function dbe(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(mbe),r=t?t[1]:void 0;return(0,pbe.formatDOM)((0,ube.default)(e),null,r)}});var nH=Be(d_=>{var fbe=0;d_.SAME=fbe;var hbe=1;d_.CAMELCASE=hbe;d_.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 iH=Be(jl=>{"use strict";function gbe(e){return Qo.hasOwnProperty(e)?Qo[e]:null}function oa(e,t,r,o,a,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Qo={},vbe=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];vbe.forEach(e=>{Qo[e]=new oa(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{Qo[e]=new oa(e,1,!1,t,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(e=>{Qo[e]=new oa(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{Qo[e]=new oa(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=>{Qo[e]=new oa(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(e=>{Qo[e]=new oa(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(e=>{Qo[e]=new oa(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(e=>{Qo[e]=new oa(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(e=>{Qo[e]=new oa(e,5,!1,e.toLowerCase(),null,!1,!1)});var E9=/[\-\:]([a-z])/g,B9=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(E9,B9);Qo[t]=new oa(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(E9,B9);Qo[t]=new oa(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(e=>{let t=e.replace(E9,B9);Qo[t]=new oa(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(e=>{Qo[e]=new oa(e,1,!1,e.toLowerCase(),null,!1,!1)});var bbe="xlinkHref";Qo[bbe]=new oa("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(e=>{Qo[e]=new oa(e,1,!1,e.toLowerCase(),null,!0,!0)});var{CAMELCASE:ybe,SAME:_be,possibleStandardNames:aH}=nH(),xbe=":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",kbe=xbe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",wbe=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+kbe+"]*$")),Cbe=Object.keys(aH).reduce((e,t)=>{let r=aH[t];return r===_be?e[t]=t:r===ybe?e[t.toLowerCase()]=t:e[t]=r,e},{});jl.BOOLEAN=3;jl.BOOLEANISH_STRING=2;jl.NUMERIC=5;jl.OVERLOADED_BOOLEAN=4;jl.POSITIVE_NUMERIC=6;jl.RESERVED=0;jl.STRING=1;jl.getPropertyInfo=gbe;jl.isCustomAttribute=wbe;jl.possibleStandardNames=Cbe});var pt=Be((QNe,lH)=>{lH.exports=window.React});var dH=Be((XNe,mH)=>{"use strict";var sH=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Sbe=/\n/g,Tbe=/^\s*/,Pbe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ebe=/^:\s*/,Bbe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ibe=/^[;\s]*/,Nbe=/^\s+|\s+$/g,Dbe=`
`,cH="/",uH="*",Um="",Lbe="comment",Rbe="declaration";function Abe(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 a(h){var g=h.match(Sbe);g&&(r+=g.length);var v=h.lastIndexOf(Dbe);o=~v?h.length-v: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 v=g[0];return a(v),e=e.slice(v.length),g}}function u(){c(Tbe)}function p(h){var g;for(h=h||[];g=m();)g!==!1&&h.push(g);return h}function m(){var h=i();if(!(cH!=e.charAt(0)||uH!=e.charAt(1))){for(var g=2;Um!=e.charAt(g)&&(uH!=e.charAt(g)||cH!=e.charAt(g+1));)++g;if(g+=2,Um===e.charAt(g-1))return s("End of comment missing");var v=e.slice(2,g-2);return o+=2,a(v),e=e.slice(g),o+=2,h({type:Lbe,comment:v})}}function d(){var h=i(),g=c(Pbe);if(g){if(m(),!c(Ebe))return s("property missing ':'");var v=c(Bbe),b=h({type:Rbe,property:pH(g[0].replace(sH,Um)),value:v?pH(v[0].replace(sH,Um)):Um});return c(Ibe),b}}function f(){var h=[];p(h);for(var g;g=d();)g!==!1&&(h.push(g),p(h));return h}return u(),f()}function pH(e){return e?e.replace(Nbe,Um):Um}mH.exports=Abe});var fH=Be(z1=>{"use strict";var Mbe=z1&&z1.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(z1,"__esModule",{value:!0});z1.default=Vbe;var zbe=Mbe(dH());function Vbe(e,t){let r=null;if(!e||typeof e!="string")return r;let o=(0,zbe.default)(e),a=typeof t=="function";return o.forEach(i=>{if(i.type!=="declaration")return;let{property:l,value:s}=i;a?t(l,s,i):s&&(r=r||{},r[l]=s)}),r}});var gH=Be(f_=>{"use strict";Object.defineProperty(f_,"__esModule",{value:!0});f_.camelCase=void 0;var Obe=/^--[a-zA-Z0-9_-]+$/,Fbe=/-([a-z])/g,Hbe=/^[^-]+$/,jbe=/^-(webkit|moz|ms|o|khtml)-/,Ube=/^-(ms)-/,Gbe=function(e){return!e||Hbe.test(e)||Obe.test(e)},Wbe=function(e,t){return t.toUpperCase()},hH=function(e,t){return"".concat(t,"-")},$be=function(e,t){return t===void 0&&(t={}),Gbe(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Ube,hH):e=e.replace(jbe,hH),e.replace(Fbe,Wbe))};f_.camelCase=$be});var bH=Be((N9,vH)=>{"use strict";var qbe=N9&&N9.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Zbe=qbe(fH()),Kbe=gH();function I9(e,t){var r={};return!e||typeof e!="string"||(0,Zbe.default)(e,function(o,a){o&&a&&(r[(0,Kbe.camelCase)(o,t)]=a)}),r}I9.default=I9;vH.exports=I9});var D9=Be(na=>{"use strict";var Ybe=na&&na.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(na,"__esModule",{value:!0});na.returnFirstArg=na.canTextBeChildOfNode=na.ELEMENTS_WITH_NO_TEXT_CHILDREN=na.PRESERVE_CUSTOM_ATTRIBUTES=void 0;na.isCustomComponent=eye;na.setStyleProp=rye;var Qbe=pt(),Xbe=Ybe(bH()),Jbe=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function eye(e,t){return e.includes("-")?!Jbe.has(e):!!(t&&typeof t.is=="string")}var tye={reactCompat:!0};function rye(e,t){if(typeof e=="string"){if(!e.trim()){t.style={};return}try{t.style=(0,Xbe.default)(e,tye)}catch{t.style={}}}}na.PRESERVE_CUSTOM_ATTRIBUTES=Number(Qbe.version.split(".")[0])>=16;na.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var oye=function(e){return!na.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)};na.canTextBeChildOfNode=oye;var nye=function(e){return e};na.returnFirstArg=nye});var R9=Be(L9=>{"use strict";Object.defineProperty(L9,"__esModule",{value:!0});L9.default=sye;var V1=iH(),yH=D9(),aye=["checked","value"],iye=["input","select","textarea"],lye={reset:!0,submit:!0};function sye(e,t){e===void 0&&(e={});var r={},o=!!(e.type&&lye[e.type]);for(var a in e){var i=e[a];if((0,V1.isCustomAttribute)(a)){r[a]=i;continue}var l=a.toLowerCase(),s=_H(l);if(s){var c=(0,V1.getPropertyInfo)(s);switch(aye.includes(s)&&iye.includes(t)&&!o&&(s=_H("default"+l)),r[s]=i,c&&c.type){case V1.BOOLEAN:r[s]=!0;break;case V1.OVERLOADED_BOOLEAN:i===""&&(r[s]=!0);break}continue}yH.PRESERVE_CUSTOM_ATTRIBUTES&&(r[a]=i)}return(0,yH.setStyleProp)(e.style,r),r}function _H(e){return V1.possibleStandardNames[e]}});var kH=Be(F1=>{"use strict";var cye=F1&&F1.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(F1,"__esModule",{value:!0});F1.default=xH;var A9=pt(),uye=cye(R9()),O1=D9(),pye={cloneElement:A9.cloneElement,createElement:A9.createElement,isValidElement:A9.isValidElement};function xH(e,t){t===void 0&&(t={});for(var r=[],o=typeof t.replace=="function",a=t.transform||O1.returnFirstArg,i=t.library||pye,l=i.cloneElement,s=i.createElement,c=i.isValidElement,u=e.length,p=0;p<u;p++){var m=e[p];if(o){var d=t.replace(m,p);if(c(d)){u>1&&(d=l(d,{key:d.key||p})),r.push(a(d,m,p));continue}}if(m.type==="text"){var f=!m.data.trim().length;if(f&&m.parent&&!(0,O1.canTextBeChildOfNode)(m.parent)||t.trim&&f)continue;r.push(a(m.data,m,p));continue}var h=m,g={};mye(h)?((0,O1.setStyleProp)(h.attribs.style,h.attribs),g=h.attribs):h.attribs&&(g=(0,uye.default)(h.attribs,h.name));var v=void 0;switch(m.type){case"script":case"style":m.children[0]&&(g.dangerouslySetInnerHTML={__html:m.children[0].data});break;case"tag":m.name==="textarea"&&m.children[0]?g.defaultValue=m.children[0].data:m.children&&m.children.length&&(v=xH(m.children,t));break;default:continue}u>1&&(g.key=p),r.push(a(s(m.name,g,v),m,p))}return r.length===1?r[0]:r}function mye(e){return O1.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,O1.isCustomComponent)(e.name,e.attribs)}});var z9=Be(xo=>{"use strict";var M9=xo&&xo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xo,"__esModule",{value:!0});xo.htmlToDOM=xo.domToReact=xo.attributesToProps=xo.Text=xo.ProcessingInstruction=xo.Element=xo.Comment=void 0;xo.default=hye;var wH=M9(oH());xo.htmlToDOM=wH.default;var dye=M9(R9());xo.attributesToProps=dye.default;var CH=M9(kH());xo.domToReact=CH.default;var h_=w9();Object.defineProperty(xo,"Comment",{enumerable:!0,get:function(){return h_.Comment}});Object.defineProperty(xo,"Element",{enumerable:!0,get:function(){return h_.Element}});Object.defineProperty(xo,"ProcessingInstruction",{enumerable:!0,get:function(){return h_.ProcessingInstruction}});Object.defineProperty(xo,"Text",{enumerable:!0,get:function(){return h_.Text}});var fye={lowerCaseAttributeNames:!1};function hye(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e?(0,CH.default)((0,wH.default)(e,t?.htmlparser2||fye),t):[]}});var Pn=Be((iDe,TH)=>{TH.exports=window.wp.dom});var y=Be((lDe,PH)=>{PH.exports=window.ReactJSXRuntime});var H=Be((pDe,IH)=>{IH.exports=window.wp.element});var M=Be((dDe,NH)=>{NH.exports=window.wp.primitives});var O=Be((mVe,DH)=>{DH.exports=window.wp.components});var Ar=Be((dVe,LH)=>{LH.exports=window.wp.blob});var re=Be((fVe,RH)=>{RH.exports=window.wp.coreData});var pr=Be((mOe,hj)=>{hj.exports=window.wp.url});var en=Be((hOe,_j)=>{_j.exports=window.wp.htmlEntities});var Sr=Be((POe,Rj)=>{Rj.exports=window.wp.notices});var wN=Be((NOe,Aj)=>{Aj.exports=window.wp.privateApis});var qs=Be((_Fe,mU)=>{mU.exports=window.wp.keycodes});var $U=Be((zHe,WU)=>{WU.exports=window.ReactDOM});var JU=Be(XU=>{"use strict";var Ih=pt();function v_e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var b_e=typeof Object.is=="function"?Object.is:v_e,y_e=Ih.useState,__e=Ih.useEffect,x_e=Ih.useLayoutEffect,k_e=Ih.useDebugValue;function w_e(e,t){var r=t(),o=y_e({inst:{value:r,getSnapshot:t}}),a=o[0].inst,i=o[1];return x_e(function(){a.value=r,a.getSnapshot=t,JN(a)&&i({inst:a})},[e,r,t]),__e(function(){return JN(a)&&i({inst:a}),e(function(){JN(a)&&i({inst:a})})},[e]),k_e(r),r}function JN(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!b_e(e,r)}catch{return!0}}function C_e(e,t){return t()}var S_e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?C_e:w_e;XU.useSyncExternalStore=Ih.useSyncExternalStore!==void 0?Ih.useSyncExternalStore:S_e});var tG=Be((tje,eG)=>{"use strict";eG.exports=JU()});var zh=Be((nGe,PG)=>{PG.exports=window.wp.a11y});var xd=Be((iWe,nW)=>{nW.exports=window.wp.deprecated});var Xl=Be((NWe,gW)=>{gW.exports=window.wp.richText});var Vw=Be((wZe,cq)=>{cq.exports=window.wp.date});var wb=Be((tKe,Cq)=>{Cq.exports=window.wp.apiFetch});var bu=Be((RYe,lK)=>{lK.exports=window.wp.hooks});var Ab=Be((oJe,V3)=>{var OY={\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"},FY=Object.keys(OY).join("|"),p3e=new RegExp(FY,"g"),m3e=new RegExp(FY,"");function d3e(e){return OY[e]}var HY=function(e){return e.replace(p3e,d3e)},f3e=function(e){return!!e.match(m3e)};V3.exports=HY;V3.exports.has=f3e;V3.exports.remove=HY});var AQ=Be((iet,RQ)=>{RQ.exports=window.wp.styleEngine});var OQ=Be((uet,VQ)=>{"use strict";VQ.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,a,i;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(a=o;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;for(a of t.entries())if(!e(a[1],r.get(a[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(o=t.length,o!=r.length)return!1;for(a=o;a--!==0;)if(t[a]!==r[a])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(a=o;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=o;a--!==0;){var l=i[a];if(!e(t[l],r[l]))return!1}return!0}return t!==t&&r!==r}});var VJ=Be((mot,zJ)=>{zJ.exports=window.wp.uploadMedia});var RA=Be((kst,Koe)=>{Koe.exports=window.wp.escapeHtml});var xce=Be((vgt,_ce)=>{_ce.exports=window.wp.wordcount});var Bme=Be((ubt,Eme)=>{Eme.exports=window.wp.patterns});var kde=Be((gyt,xde)=>{xde.exports=window.wp.autop});var Cde=Be((vyt,wde)=>{wde.exports=window.wp.shortcode});var Sve=Be((A4t,Cve)=>{Cve.exports=window.wp.keyboardShortcuts});var DNe={};K(DNe,{__experimentalGetCoreBlocks:()=>Lve,__experimentalRegisterExperimentalCoreBlocks:()=>NNe,privateApis:()=>mF,registerCoreBlocks:()=>INe});var Fl=n(q(),1),Bve=n(ve(),1),Ive=n(F(),1),Nve=n(P(),1),Dve=n(sp(),1),J2=n(N(),1);function IF(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=IF(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Xve(){for(var e,t,r=0,o="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=IF(e))&&(o&&(o+=" "),o+=t);return o}var S=Xve;var V9=n(z9(),1),Ul=n(z9(),1),SH=V9.default.default||V9.default;var EH=n(Pn(),1),BH=n(y(),1),gye=({wrapperProps:e={},html:t=""})=>{let r={replace:({name:i,type:l,attribs:s,parent:c,children:u})=>{if(l==="tag"&&i){let p=(0,Ul.attributesToProps)(s||{}),m=i;if(!c){let d={...p,...e,className:S(p.className,e.className),style:{...p.style||{},...e.style||{}}};return(0,BH.jsx)(m,{...d,children:(0,Ul.domToReact)(u,r)})}}}},o=(0,EH.safeHTML)(t);return SH(o,r)},ko=gye;var fN={};K(fN,{init:()=>_ye,metadata:()=>l5,name:()=>HH,settings:()=>jH});var dN=n(N(),1);var g_=n(H(),1),aa=(0,g_.forwardRef)(({icon:e,size:t=24,...r},o)=>(0,g_.cloneElement)(e,{width:t,height:t,...r,ref:o}));var H1=n(M(),1),j1=n(y(),1),O9=(0,j1.jsxs)(H1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,j1.jsx)(H1.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 12.75L9.5 12.75L9.5 11.25L19.5 11.25L19.5 12.75Z"}),(0,j1.jsx)(H1.Path,{d:"M4.5 9.5L8.5 12L4.5 14.5L4.5 9.5Z"})]});var Gm=n(M(),1),Wm=n(y(),1),F9=(0,Wm.jsxs)(Gm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Wm.jsx)(Gm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.5L9.5 9.5L9.5 8L19.5 8L19.5 9.5Z"}),(0,Wm.jsx)(Gm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 13L9.5 13L9.5 11.5L19.5 11.5L19.5 13Z"}),(0,Wm.jsx)(Gm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.3999L9.5 16.3999L9.5 14.8999L19.5 14.8999L19.5 16.3999Z"}),(0,Wm.jsx)(Gm.Path,{d:"M4.5 6.25L8.5 8.75L4.5 11.25L4.5 6.25Z"})]});var $m=n(M(),1),qm=n(y(),1),H9=(0,qm.jsxs)($m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,qm.jsx)($m.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.25L9.5 9.25L9.5 7.75L19.5 7.75L19.5 9.25Z"}),(0,qm.jsx)($m.Path,{d:"M4.5 6L8.5 8.5L4.5 11L4.5 6Z"}),(0,qm.jsx)($m.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.25L9.5 16.25L9.5 14.75L19.5 14.75L19.5 16.25Z"}),(0,qm.jsx)($m.Path,{d:"M4.5 13L8.5 15.5L4.5 18L4.5 13Z"})]});var v_=n(M(),1),j9=n(y(),1),Zm=(0,j9.jsx)(v_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,j9.jsx)(v_.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 b_=n(M(),1),U9=n(y(),1),G9=(0,U9.jsx)(b_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,U9.jsx)(b_.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})});var y_=n(M(),1),W9=n(y(),1),$9=(0,W9.jsx)(y_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,W9.jsx)(y_.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})});var __=n(M(),1),q9=n(y(),1),Z9=(0,q9.jsx)(__.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,q9.jsx)(__.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})});var x_=n(M(),1),K9=n(y(),1),Y9=(0,K9.jsx)(x_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,K9.jsx)(x_.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})});var k_=n(M(),1),Q9=n(y(),1),X9=(0,Q9.jsx)(k_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Q9.jsx)(k_.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 w_=n(M(),1),J9=n(y(),1),ru=(0,J9.jsx)(w_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,J9.jsx)(w_.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 C_=n(M(),1),eP=n(y(),1),tP=(0,eP.jsx)(C_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,eP.jsx)(C_.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 S_=n(M(),1),rP=n(y(),1),U1=(0,rP.jsx)(S_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,rP.jsx)(S_.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 T_=n(M(),1),oP=n(y(),1),nP=(0,oP.jsx)(T_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,oP.jsx)(T_.Path,{d:"M4 13.5h3v-3H4v3Zm6-3.5 2 2-2 2 1 1 3-3-3-3-1 1Zm7 .5v3h3v-3h-3Z"})});var P_=n(M(),1),aP=n(y(),1),iP=(0,aP.jsx)(P_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,aP.jsx)(P_.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 E_=n(M(),1),lP=n(y(),1),sP=(0,lP.jsx)(E_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,lP.jsx)(E_.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 B_=n(M(),1),cP=n(y(),1),G1=(0,cP.jsx)(B_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,cP.jsx)(B_.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 I_=n(M(),1),uP=n(y(),1),pP=(0,uP.jsx)(I_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,uP.jsx)(I_.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 N_=n(M(),1),mP=n(y(),1),pp=(0,mP.jsx)(N_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,mP.jsx)(N_.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 D_=n(M(),1),dP=n(y(),1),W1=(0,dP.jsx)(D_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,dP.jsx)(D_.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})});var L_=n(M(),1),fP=n(y(),1),hP=(0,fP.jsx)(L_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,fP.jsx)(L_.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})});var R_=n(M(),1),gP=n(y(),1),A_=(0,gP.jsx)(R_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,gP.jsx)(R_.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})});var M_=n(M(),1),vP=n(y(),1),bP=(0,vP.jsx)(M_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,vP.jsx)(M_.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 z_=n(M(),1),yP=n(y(),1),gh=(0,yP.jsx)(z_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,yP.jsx)(z_.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})});var V_=n(M(),1),_P=n(y(),1),xP=(0,_P.jsx)(V_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_P.jsx)(V_.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})});var O_=n(M(),1),kP=n(y(),1),$1=(0,kP.jsx)(O_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,kP.jsx)(O_.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 F_=n(M(),1),wP=n(y(),1),Km=(0,wP.jsx)(F_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,wP.jsx)(F_.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 H_=n(M(),1),CP=n(y(),1),q1=(0,CP.jsx)(H_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,CP.jsx)(H_.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 j_=n(M(),1),SP=n(y(),1),TP=(0,SP.jsx)(j_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,SP.jsx)(j_.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 U_=n(M(),1),PP=n(y(),1),EP=(0,PP.jsx)(U_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,PP.jsx)(U_.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 G_=n(M(),1),BP=n(y(),1),Z1=(0,BP.jsx)(G_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,BP.jsx)(G_.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 Ym=n(M(),1),vh=n(y(),1),IP=(0,vh.jsxs)(Ym.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,vh.jsx)(Ym.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,vh.jsx)(Ym.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15"}),(0,vh.jsx)(Ym.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"})]});var W_=n(M(),1),NP=n(y(),1),DP=(0,NP.jsx)(W_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,NP.jsx)(W_.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 $_=n(M(),1),LP=n(y(),1),RP=(0,LP.jsx)($_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,LP.jsx)($_.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 q_=n(M(),1),AP=n(y(),1),MP=(0,AP.jsx)(q_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,AP.jsx)(q_.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 Z_=n(M(),1),zP=n(y(),1),K1=(0,zP.jsx)(Z_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,zP.jsx)(Z_.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 K_=n(M(),1),VP=n(y(),1),Y1=(0,VP.jsx)(K_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,VP.jsx)(K_.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 Y_=n(M(),1),OP=n(y(),1),Qm=(0,OP.jsx)(Y_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,OP.jsx)(Y_.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 Q_=n(M(),1),FP=n(y(),1),Xm=(0,FP.jsx)(Q_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,FP.jsx)(Q_.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 X_=n(M(),1),HP=n(y(),1),Q1=(0,HP.jsx)(X_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,HP.jsx)(X_.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 J_=n(M(),1),jP=n(y(),1),UP=(0,jP.jsx)(J_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,jP.jsx)(J_.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 X1=n(M(),1),J1=n(y(),1),GP=(0,J1.jsxs)(X1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,J1.jsx)(X1.Path,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),(0,J1.jsx)(X1.Path,{d:"m4 5.25 4 2.5-4 2.5v-5Z"})]});var ex=n(M(),1),WP=n(y(),1),ev=(0,WP.jsx)(ex.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,WP.jsx)(ex.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 tx=n(M(),1),$P=n(y(),1),tv=(0,$P.jsx)(tx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$P.jsx)(tx.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 rx=n(M(),1),qP=n(y(),1),ZP=(0,qP.jsx)(rx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,qP.jsx)(rx.Path,{d:"M4 6v12c0 1.1.9 2 2 2h3v-1.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h3V4H6c-1.1 0-2 .9-2 2zm7.2 16h1.5V2h-1.5v20zM15 5.5h1.5V4H15v1.5zm3.5.5H20c0-1.1-.9-2-2-2v1.5c.3 0 .5.2.5.5zm0 10.5H20v-2h-1.5v2zm0-3.5H20v-2h-1.5v2zm-.5 5.5V20c1.1 0 2-.9 2-2h-1.5c0 .3-.2.5-.5.5zM15 20h1.5v-1.5H15V20zm3.5-10.5H20v-2h-1.5v2z"})});var ox=n(M(),1),KP=n(y(),1),YP=(0,KP.jsx)(ox.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,KP.jsx)(ox.Path,{d:"M2 11.2v1.5h20v-1.5H2zM5.5 6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v3H20V6c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v3h1.5V6zm2 14h2v-1.5h-2V20zm3.5 0h2v-1.5h-2V20zm7-1.5V20c1.1 0 2-.9 2-2h-1.5c0 .3-.2.5-.5.5zm.5-2H20V15h-1.5v1.5zM5.5 18H4c0 1.1.9 2 2 2v-1.5c-.3 0-.5-.2-.5-.5zm0-3H4v1.5h1.5V15zm9 5h2v-1.5h-2V20z"})});var nx=n(M(),1),QP=n(y(),1),XP=(0,QP.jsx)(nx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,QP.jsx)(nx.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 ax=n(M(),1),JP=n(y(),1),eE=(0,JP.jsx)(ax.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,JP.jsx)(ax.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 ix=n(M(),1),tE=n(y(),1),rE=(0,tE.jsx)(ix.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,tE.jsx)(ix.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 lx=n(M(),1),oE=n(y(),1),rv=(0,oE.jsx)(lx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,oE.jsx)(lx.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 sx=n(M(),1),nE=n(y(),1),ov=(0,nE.jsx)(sx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,nE.jsx)(sx.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 cx=n(M(),1),aE=n(y(),1),nv=(0,aE.jsx)(cx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,aE.jsx)(cx.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 ux=n(M(),1),iE=n(y(),1),al=(0,iE.jsx)(ux.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,iE.jsx)(ux.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 px=n(M(),1),lE=n(y(),1),sE=(0,lE.jsx)(px.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,lE.jsx)(px.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 mx=n(M(),1),cE=n(y(),1),av=(0,cE.jsx)(mx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,cE.jsx)(mx.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 dx=n(M(),1),uE=n(y(),1),iv=(0,uE.jsx)(dx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,uE.jsx)(dx.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 fx=n(M(),1),pE=n(y(),1),Jm=(0,pE.jsx)(fx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,pE.jsx)(fx.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 hx=n(M(),1),mE=n(y(),1),lv=(0,mE.jsx)(hx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,mE.jsx)(hx.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 gx=n(M(),1),dE=n(y(),1),Gl=(0,dE.jsx)(gx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,dE.jsx)(gx.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 vx=n(M(),1),fE=n(y(),1),ed=(0,fE.jsx)(vx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,fE.jsx)(vx.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 bx=n(M(),1),hE=n(y(),1),gE=(0,hE.jsx)(bx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,hE.jsx)(bx.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 yx=n(M(),1),vE=n(y(),1),bE=(0,vE.jsx)(yx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,vE.jsx)(yx.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})});var _x=n(M(),1),yE=n(y(),1),_E=(0,yE.jsx)(_x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,yE.jsx)(_x.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 xx=n(M(),1),xE=n(y(),1),kE=(0,xE.jsx)(xx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,xE.jsx)(xx.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 kx=n(M(),1),wE=n(y(),1),CE=(0,wE.jsx)(kx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,wE.jsx)(kx.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})});var wx=n(M(),1),SE=n(y(),1),TE=(0,SE.jsx)(wx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,SE.jsx)(wx.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 Cx=n(M(),1),PE=n(y(),1),EE=(0,PE.jsx)(Cx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,PE.jsx)(Cx.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 Sx=n(M(),1),BE=n(y(),1),IE=(0,BE.jsx)(Sx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,BE.jsx)(Sx.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})});var Tx=n(M(),1),NE=n(y(),1),DE=(0,NE.jsx)(Tx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,NE.jsx)(Tx.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})});var Px=n(M(),1),LE=n(y(),1),RE=(0,LE.jsx)(Px.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,LE.jsx)(Px.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 Ex=n(M(),1),AE=n(y(),1),mp=(0,AE.jsx)(Ex.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,AE.jsx)(Ex.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 Bx=n(M(),1),ME=n(y(),1),zE=(0,ME.jsx)(Bx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ME.jsx)(Bx.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 Ix=n(M(),1),VE=n(y(),1),td=(0,VE.jsx)(Ix.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,VE.jsx)(Ix.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 Nx=n(M(),1),OE=n(y(),1),sv=(0,OE.jsx)(Nx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,OE.jsx)(Nx.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 Dx=n(M(),1),FE=n(y(),1),di=(0,FE.jsx)(Dx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,FE.jsx)(Dx.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 Lx=n(M(),1),HE=n(y(),1),jE=(0,HE.jsx)(Lx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,HE.jsx)(Lx.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 Rx=n(M(),1),UE=n(y(),1),Wl=(0,UE.jsx)(Rx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,UE.jsx)(Rx.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 Ax=n(M(),1),GE=n(y(),1),WE=(0,GE.jsx)(Ax.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,GE.jsx)(Ax.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 Mx=n(M(),1),$E=n(y(),1),rd=(0,$E.jsx)(Mx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$E.jsx)(Mx.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 zx=n(M(),1),qE=n(y(),1),ZE=(0,qE.jsx)(zx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,qE.jsx)(zx.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 Vx=n(M(),1),KE=n(y(),1),YE=(0,KE.jsx)(Vx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,KE.jsx)(Vx.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 Ox=n(M(),1),QE=n(y(),1),XE=(0,QE.jsx)(Ox.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,QE.jsx)(Ox.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"})});var cv=n(M(),1),uv=n(y(),1),pv=(0,uv.jsxs)(cv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,uv.jsx)(cv.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,uv.jsx)(cv.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 Fx=n(M(),1),JE=n(y(),1),eB=(0,JE.jsx)(Fx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,JE.jsx)(Fx.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})});var Hx=n(M(),1),tB=n(y(),1),mv=(0,tB.jsx)(Hx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,tB.jsx)(Hx.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var jx=n(M(),1),rB=n(y(),1),oB=(0,rB.jsx)(jx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,rB.jsx)(jx.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})});var Ux=n(M(),1),nB=n(y(),1),aB=(0,nB.jsx)(Ux.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,nB.jsx)(Ux.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 Gx=n(M(),1),iB=n(y(),1),od=(0,iB.jsx)(Gx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,iB.jsx)(Gx.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 Wx=n(M(),1),lB=n(y(),1),sB=(0,lB.jsx)(Wx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,lB.jsx)(Wx.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 $x=n(M(),1),cB=n(y(),1),uB=(0,cB.jsx)($x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,cB.jsx)($x.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 qx=n(M(),1),pB=n(y(),1),mB=(0,pB.jsx)(qx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,pB.jsx)(qx.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 dv=n(M(),1),fv=n(y(),1),ou=(0,fv.jsxs)(dv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,fv.jsx)(dv.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,fv.jsx)(dv.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 bh=n(M(),1),yh=n(y(),1),dB=(0,yh.jsxs)(bh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,yh.jsx)(bh.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,yh.jsx)(bh.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,yh.jsx)(bh.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})]});var Zx=n(M(),1),fB=n(y(),1),hB=(0,fB.jsx)(Zx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,fB.jsx)(Zx.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 Kx=n(M(),1),gB=n(y(),1),nd=(0,gB.jsx)(Kx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,gB.jsx)(Kx.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})});var Yx=n(M(),1),vB=n(y(),1),hv=(0,vB.jsx)(Yx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,vB.jsx)(Yx.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 Qx=n(M(),1),bB=n(y(),1),gv=(0,bB.jsx)(Qx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,bB.jsx)(Qx.Path,{d:"M16.1 5.7h-.3c-1 0-2.2 0-2.8.6-.3.4-.5.9-.5 1.6v7.3c0 .7-.2 1.7-.7 2.5C11.3 19 10 20 8.5 20 6.6 20 5 18.4 5 16.5S6.6 13 8.5 13c1 0 1.9.4 2.5 1V7.9c0-1.1.3-2 .9-2.6 1-1 2.6-1 3.8-1h.4zM20 15.75h-5v-1.5h5zM20 10.75h-5v-1.5h5z"})});var Xx=n(M(),1),yB=n(y(),1),_B=(0,yB.jsx)(Xx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,yB.jsx)(Xx.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 Jx=n(M(),1),xB=n(y(),1),_h=(0,xB.jsx)(Jx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,xB.jsx)(Jx.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});var ek=n(M(),1),kB=n(y(),1),wB=(0,kB.jsx)(ek.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,kB.jsx)(ek.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})});var tk=n(M(),1),CB=n(y(),1),SB=(0,CB.jsx)(tk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,CB.jsx)(tk.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})});var rk=n(M(),1),TB=n(y(),1),PB=(0,TB.jsx)(rk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,TB.jsx)(rk.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})});var ok=n(M(),1),EB=n(y(),1),ad=(0,EB.jsx)(ok.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,EB.jsx)(ok.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 nk=n(M(),1),BB=n(y(),1),xh=(0,BB.jsx)(nk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,BB.jsx)(nk.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 ak=n(M(),1),IB=n(y(),1),vv=(0,IB.jsx)(ak.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,IB.jsx)(ak.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 ik=n(M(),1),NB=n(y(),1),DB=(0,NB.jsx)(ik.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,NB.jsx)(ik.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 lk=n(M(),1),LB=n(y(),1),RB=(0,LB.jsx)(lk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,LB.jsx)(lk.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 sk=n(M(),1),AB=n(y(),1),MB=(0,AB.jsx)(sk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,AB.jsx)(sk.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})});var bv=n(M(),1),yv=n(y(),1),_v=(0,yv.jsxs)(bv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,yv.jsx)(bv.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,yv.jsx)(bv.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 ck=n(M(),1),zB=n(y(),1),VB=(0,zB.jsx)(ck.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,zB.jsx)(ck.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 uk=n(M(),1),OB=n(y(),1),FB=(0,OB.jsx)(uk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,OB.jsx)(uk.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 pk=n(M(),1),HB=n(y(),1),xv=(0,HB.jsx)(pk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,HB.jsx)(pk.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 mk=n(M(),1),jB=n(y(),1),UB=(0,jB.jsx)(mk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,jB.jsx)(mk.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 dk=n(M(),1),GB=n(y(),1),WB=(0,GB.jsx)(dk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,GB.jsx)(dk.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 fk=n(M(),1),$B=n(y(),1),qB=(0,$B.jsx)(fk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$B.jsx)(fk.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 hk=n(M(),1),ZB=n(y(),1),KB=(0,ZB.jsx)(hk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ZB.jsx)(hk.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"})});var gk=n(M(),1),YB=n(y(),1),QB=(0,YB.jsx)(gk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,YB.jsx)(gk.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"})});var vk=n(M(),1),XB=n(y(),1),JB=(0,XB.jsx)(vk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,XB.jsx)(vk.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 bk=n(M(),1),eI=n(y(),1),kv=(0,eI.jsx)(bk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,eI.jsx)(bk.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})});var yk=n(M(),1),tI=n(y(),1),wv=(0,tI.jsx)(yk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,tI.jsx)(yk.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 _k=n(M(),1),rI=n(y(),1),Cv=(0,rI.jsx)(_k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,rI.jsx)(_k.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 xk=n(M(),1),oI=n(y(),1),Sv=(0,oI.jsx)(xk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,oI.jsx)(xk.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"})});var kk=n(M(),1),nI=n(y(),1),aI=(0,nI.jsx)(kk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,nI.jsx)(kk.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 wk=n(M(),1),iI=n(y(),1),lI=(0,iI.jsx)(wk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,iI.jsx)(wk.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 Ck=n(M(),1),sI=n(y(),1),cI=(0,sI.jsx)(Ck.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,sI.jsx)(Ck.Path,{d:"M7 11.5h10V13H7z"})});var Sk=n(M(),1),uI=n(y(),1),pI=(0,uI.jsx)(Sk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,uI.jsx)(Sk.Path,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"})});var Tk=n(M(),1),mI=n(y(),1),dI=(0,mI.jsx)(Tk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,mI.jsx)(Tk.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})});var Pk=n(M(),1),fI=n(y(),1),hI=(0,fI.jsx)(Pk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,fI.jsx)(Pk.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 Ek=n(M(),1),gI=n(y(),1),Tv=(0,gI.jsx)(Ek.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,gI.jsx)(Ek.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 Bk=n(M(),1),vI=n(y(),1),Pv=(0,vI.jsx)(Bk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,vI.jsx)(Bk.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 Ik=n(M(),1),bI=n(y(),1),yI=(0,bI.jsx)(Ik.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,bI.jsx)(Ik.Path,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"})});var Nk=n(M(),1),_I=n(y(),1),Ev=(0,_I.jsx)(Nk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_I.jsx)(Nk.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 Dk=n(M(),1),xI=n(y(),1),Bv=(0,xI.jsx)(Dk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,xI.jsx)(Dk.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 Lk=n(M(),1),kI=n(y(),1),wI=(0,kI.jsx)(Lk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,kI.jsx)(Lk.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 Rk=n(M(),1),CI=n(y(),1),SI=(0,CI.jsx)(Rk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,CI.jsx)(Rk.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 Ak=n(M(),1),TI=n(y(),1),PI=(0,TI.jsx)(Ak.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,TI.jsx)(Ak.Path,{fill:"none",d:"M5.75 12.75V18.25H11.25M12.75 5.75H18.25V11.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"square"})});var Mk=n(M(),1),EI=n(y(),1),BI=(0,EI.jsx)(Mk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,EI.jsx)(Mk.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 zk=n(M(),1),II=n(y(),1),Iv=(0,II.jsx)(zk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,II.jsx)(zk.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 Vk=n(M(),1),NI=n(y(),1),DI=(0,NI.jsx)(Vk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,NI.jsx)(Vk.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 Ok=n(M(),1),LI=n(y(),1),RI=(0,LI.jsx)(Ok.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,LI.jsx)(Ok.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 Fk=n(M(),1),AI=n(y(),1),MI=(0,AI.jsx)(Fk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,AI.jsx)(Fk.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 Hk=n(M(),1),zI=n(y(),1),VI=(0,zI.jsx)(Hk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,zI.jsx)(Hk.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 jk=n(M(),1),OI=n(y(),1),FI=(0,OI.jsx)(jk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,OI.jsx)(jk.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 Uk=n(M(),1),HI=n(y(),1),jI=(0,HI.jsx)(Uk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,HI.jsx)(Uk.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 Nv=n(M(),1),Dv=n(y(),1),Lv=(0,Dv.jsxs)(Nv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Dv.jsx)(Nv.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,Dv.jsx)(Nv.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 Gk=n(M(),1),UI=n(y(),1),GI=(0,UI.jsx)(Gk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,UI.jsx)(Gk.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 Wk=n(M(),1),WI=n(y(),1),$I=(0,WI.jsx)(Wk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,WI.jsx)(Wk.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 $k=n(M(),1),qI=n(y(),1),ZI=(0,qI.jsx)($k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,qI.jsx)($k.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 qk=n(M(),1),KI=n(y(),1),YI=(0,KI.jsx)(qk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,KI.jsx)(qk.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 Zk=n(M(),1),QI=n(y(),1),XI=(0,QI.jsx)(Zk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,QI.jsx)(Zk.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 Kk=n(M(),1),JI=n(y(),1),Rv=(0,JI.jsx)(Kk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,JI.jsx)(Kk.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 Av=n(M(),1),Mv=n(y(),1),eN=(0,Mv.jsxs)(Av.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Mv.jsx)(Av.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,Mv.jsx)(Av.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 Yk=n(M(),1),tN=n(y(),1),rN=(0,tN.jsx)(Yk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,tN.jsx)(Yk.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 zv=n(M(),1),Vv=n(y(),1),oN=(0,Vv.jsxs)(zv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Vv.jsx)(zv.Path,{d:"m14.95 13.889-1.061 1.061-5.552-5.553 1.06-1.06 5.552 5.552Z"}),(0,Vv.jsx)(zv.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 Qk=n(M(),1),nN=n(y(),1),Ov=(0,nN.jsx)(Qk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,nN.jsx)(Qk.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 Xk=n(M(),1),aN=n(y(),1),$l=(0,aN.jsx)(Xk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,aN.jsx)(Xk.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})});var Jk=n(M(),1),iN=n(y(),1),nu=(0,iN.jsx)(Jk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,iN.jsx)(Jk.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 e5=n(M(),1),lN=n(y(),1),Fv=(0,lN.jsx)(e5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,lN.jsx)(e5.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 t5=n(M(),1),sN=n(y(),1),au=(0,sN.jsx)(t5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,sN.jsx)(t5.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 r5=n(M(),1),cN=n(y(),1),uN=(0,cN.jsx)(r5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,cN.jsx)(r5.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 En=n(P(),1),fi=n(N(),1),Ao=n(O(),1),kh=n(F(),1),a5=n(q(),1);var o5=n(F(),1),id=n(H(),1),dp=n(Ar(),1),pN=n(P(),1),AH=n(re(),1),MH=n(ve(),1);function n5(e,t,r){return(0,o5.useSelect)(o=>o(AH.store).canUser("update",{kind:e,name:t,id:r}),[e,t,r])}function Us(e={}){let t=(0,id.useRef)(e),r=(0,id.useRef)(!1),{getSettings:o}=(0,o5.useSelect)(pN.store);(0,id.useLayoutEffect)(()=>{t.current=e}),(0,id.useEffect)(()=>{if(r.current||!t.current.url||!(0,dp.isBlobURL)(t.current.url))return;let a=(0,dp.getBlobByURL)(t.current.url);if(!a)return;let{url:i,allowedTypes:l,onChange:s,onError:c}=t.current,{mediaUpload:u}=o();u&&(r.current=!0,u({filesList:[a],allowedTypes:l,onFileChange:([p])=>{(0,dp.isBlobURL)(p?.url)||((0,dp.revokeBlobURL)(i),s(p),r.current=!1)},onError:p=>{(0,dp.revokeBlobURL)(i),c(p),r.current=!1}}))},[o])}function Hv(){return(0,o5.useSelect)(t=>{let{getSettings:r}=t(pN.store),{__experimentalDiscussionSettings:o}=r();return o?.avatarURL??""},[])}function Z(){return(0,MH.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}var Cr=n(y(),1),mN="core/accordion-item",vye="core/accordion-heading",bye={name:mN};function zH({attributes:{autoclose:e,iconPosition:t,showIcon:r,headingLevel:o,levelOptions:a},clientId:i,setAttributes:l,isSelected:s}){let c=(0,kh.useRegistry)(),{getBlockOrder:u}=(0,kh.useSelect)(En.store),p=(0,En.useBlockProps)({role:"group"}),m=Z(),{updateBlockAttributes:d,insertBlock:f}=(0,kh.useDispatch)(En.store),g=(0,En.useBlockEditingMode)()==="contentOnly",v=(0,En.useInnerBlocksProps)(p,{template:[[mN]],defaultBlock:bye,directInsert:!0,templateInsertUpdatesSelection:!0});return(0,Cr.jsxs)(Cr.Fragment,{children:[s&&!g&&(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(En.BlockControls,{children:(0,Cr.jsx)(Ao.ToolbarGroup,{children:(0,Cr.jsx)(En.HeadingLevelDropdown,{value:o,options:a,onChange:k=>{let x=u(i),w=[];x.forEach(C=>{let T=u(C);w.push(...T)}),c.batch(()=>{l({headingLevel:k}),d(w,{level:k})})}})})}),(0,Cr.jsx)(En.BlockControls,{group:"other",children:(0,Cr.jsx)(Ao.ToolbarButton,{onClick:()=>{let k=(0,a5.createBlock)(mN,{},[(0,a5.createBlock)(vye,{level:o}),(0,a5.createBlock)("core/accordion-panel",{})]);f(k,void 0,i)},children:(0,fi.__)("Add item")})})]}),(0,Cr.jsx)(En.InspectorControls,{children:(0,Cr.jsxs)(Ao.__experimentalToolsPanel,{label:(0,fi.__)("Settings"),resetAll:()=>{l({autoclose:!1,showIcon:!0,iconPosition:"right"})},dropdownMenuProps:m,children:[(0,Cr.jsx)(Ao.__experimentalToolsPanelItem,{label:(0,fi.__)("Auto-close"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>l({autoclose:!1}),children:(0,Cr.jsx)(Ao.ToggleControl,{label:(0,fi.__)("Auto-close"),onChange:k=>{l({autoclose:k})},checked:e,help:(0,fi.__)("Automatically close accordions when a new one is opened.")})}),(0,Cr.jsx)(Ao.__experimentalToolsPanelItem,{label:(0,fi.__)("Show icon"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>l({showIcon:!0}),children:(0,Cr.jsx)(Ao.ToggleControl,{label:(0,fi.__)("Show icon"),onChange:k=>{l({showIcon:k,iconPosition:k?t:"right"})},checked:r,help:(0,fi.__)("Display a plus icon next to the accordion header.")})}),r&&(0,Cr.jsx)(Ao.__experimentalToolsPanelItem,{label:(0,fi.__)("Icon Position"),isShownByDefault:!0,hasValue:()=>t!=="right",onDeselect:()=>l({iconPosition:"right"}),children:(0,Cr.jsxs)(Ao.__experimentalToggleGroupControl,{isBlock:!0,label:(0,fi.__)("Icon Position"),value:t,onChange:k=>{l({iconPosition:k})},children:[(0,Cr.jsx)(Ao.__experimentalToggleGroupControlOption,{label:(0,fi.__)("Left"),value:"left"}),(0,Cr.jsx)(Ao.__experimentalToggleGroupControlOption,{label:(0,fi.__)("Right"),value:"right"})]})})]})},"setting"),(0,Cr.jsx)("div",{...v})]})}var i5=n(P(),1),VH=n(y(),1);function OH(){let e=i5.useBlockProps.save({role:"group"});return(0,VH.jsx)("div",{...i5.useInnerBlocksProps.save(e)})}var l5={$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,gradient:!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 FH=n(q(),1);function R(e){if(!e)return;let{metadata:t,settings:r,name:o}=e;return(0,FH.registerBlockType)({name:o,...t},r)}var{name:HH}=l5,jH={icon:H9,example:{innerBlocks:[{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,dN.__)("Lorem ipsum dolor sit amet, consectetur.")}}]},{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,dN.__)("Suspendisse commodo lacus, interdum et.")}}]}]},edit:zH,save:OH},_ye=()=>R({name:HH,metadata:l5,settings:jH});var hN={};K(hN,{init:()=>wye,metadata:()=>c5,name:()=>qH,settings:()=>ZH});var jv=n(N(),1),fp=n(P(),1),UH=n(F(),1),wh=n(O(),1);var Gs=n(y(),1),xye=[["core/accordion-heading"],["core/accordion-panel"]];function GH({attributes:e,clientId:t,setAttributes:r,isSelected:o}){let{openByDefault:a}=e,i=Z(),{isSelected:l}=(0,UH.useSelect)(u=>o||a?{isSelected:!0}:{isSelected:u(fp.store).hasSelectedInnerBlock(t,!0)},[t,o,a]),s=(0,fp.useBlockProps)({className:S({"is-open":a||l})}),c=(0,fp.useInnerBlocksProps)(s,{template:xye,templateLock:"all",directInsert:!0,templateInsertUpdatesSelection:!0});return(0,Gs.jsxs)(Gs.Fragment,{children:[(0,Gs.jsx)(fp.InspectorControls,{children:(0,Gs.jsx)(wh.__experimentalToolsPanel,{label:(0,jv.__)("Settings"),resetAll:()=>{r({openByDefault:!1})},dropdownMenuProps:i,children:(0,Gs.jsx)(wh.__experimentalToolsPanelItem,{label:(0,jv.__)("Open by default"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>{r({openByDefault:!1})},children:(0,Gs.jsx)(wh.ToggleControl,{label:(0,jv.__)("Open by default"),onChange:u=>{r({openByDefault:u})},checked:a,help:(0,jv.__)("Accordion content will be displayed by default.")})})})},"setting"),(0,Gs.jsx)("div",{...c})]})}var s5=n(P(),1);var WH=n(y(),1);function $H({attributes:e}){let{openByDefault:t}=e,r=s5.useBlockProps.save({className:S({"is-open":t})}),o=s5.useInnerBlocksProps.save(r);return(0,WH.jsx)("div",{...o})}var c5={$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:qH}=c5,ZH={icon:F9,edit:GH,save:$H},wye=()=>R({name:qH,metadata:c5,settings:ZH});var gN={};K(gN,{init:()=>Eye,metadata:()=>u5,name:()=>tj,settings:()=>rj});var KH=n(N(),1),YH=n(H(),1),il=n(P(),1),QH=n(F(),1),ld=n(y(),1);function XH({attributes:e,setAttributes:t,context:r}){let{title:o}=e,{"core/accordion-icon-position":a,"core/accordion-show-icon":i,"core/accordion-heading-level":l}=r,s="h"+l,{__unstableMarkNextChangeAsNotPersistent:c}=(0,QH.useDispatch)(il.store);(0,YH.useEffect)(()=>{a!==void 0&&i!==void 0&&(c(),t({iconPosition:a,showIcon:i}))},[a,i,t,c]);let[u,p]=(0,il.useSettings)("typography.fluid","layout"),m=(0,il.getTypographyClassesAndStyles)(e,{typography:{fluid:u},layout:{wideSize:p?.wideSize}}),d=(0,il.useBlockProps)({className:S({"has-icon":i,"has-icon-left":i&&a==="left","has-icon-right":i&&a==="right"})}),f=(0,il.__experimentalGetSpacingClassesAndStyles)(e);return(0,ld.jsx)(s,{...d,children:(0,ld.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:f.style,tabIndex:"-1",children:[i&&a==="left"&&(0,ld.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,ld.jsx)(il.RichText,{withoutInteractiveFormatting:!0,disableLineBreaks:!0,tagName:"span",value:o,onChange:h=>t({title:h}),placeholder:(0,KH.__)("Accordion title"),className:"wp-block-accordion-heading__toggle-title",style:{letterSpacing:m.style.letterSpacing,textDecoration:m.style.textDecoration}}),i&&a==="right"&&(0,ld.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var hp=n(P(),1),sd=n(y(),1);function JH({attributes:e}){let{level:t,title:r,iconPosition:o,showIcon:a}=e,i="h"+(t||3),l=(0,hp.getTypographyClassesAndStyles)(e),s=hp.useBlockProps.save({className:S({"has-icon":a,"has-icon-left":a&&o==="left","has-icon-right":a&&o==="right"})}),c=(0,hp.__experimentalGetSpacingClassesAndStyles)(e);return(0,sd.jsx)(i,{...s,children:(0,sd.jsxs)("button",{type:"button",className:"wp-block-accordion-heading__toggle",style:c.style,children:[a&&o==="left"&&(0,sd.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,sd.jsx)(hp.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:l.style.letterSpacing,textDecoration:l.style.textDecoration}}),a&&o==="right"&&(0,sd.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var u5={$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 ia=n(P(),1),Xo=n(y(),1),Sye={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:a}=e,i="h"+(t||3),l=ia.useBlockProps.save(),s=(0,ia.__experimentalGetSpacingClassesAndStyles)(e);return(0,Xo.jsx)(i,{...l,children:(0,Xo.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:s.style,children:[a&&o==="left"&&(0,Xo.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Xo.jsx)(ia.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r}),a&&o==="right"&&(0,Xo.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},Tye={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:a}=e,i="h"+(t||3),l=(0,ia.getTypographyClassesAndStyles)(e),s=ia.useBlockProps.save(),c=(0,ia.__experimentalGetSpacingClassesAndStyles)(e);return(0,Xo.jsx)(i,{...s,children:(0,Xo.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:c.style,children:[a&&o==="left"&&(0,Xo.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Xo.jsx)(ia.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:l.style.letterSpacing,textDecoration:l.style.textDecoration}}),a&&o==="right"&&(0,Xo.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},Pye={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:a}=e,i="h"+(t||3),l=(0,ia.getTypographyClassesAndStyles)(e),s=ia.useBlockProps.save(),c=(0,ia.__experimentalGetSpacingClassesAndStyles)(e);return(0,Xo.jsx)(i,{...s,children:(0,Xo.jsxs)("button",{type:"button",className:"wp-block-accordion-heading__toggle",style:c.style,children:[a&&o==="left"&&(0,Xo.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Xo.jsx)(ia.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:l.style.letterSpacing,textDecoration:l.style.textDecoration}}),a&&o==="right"&&(0,Xo.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},ej=[Pye,Tye,Sye];var{name:tj}=u5,rj={icon:O9,edit:XH,save:JH,deprecated:ej},Eye=()=>R({name:tj,metadata:u5,settings:rj});var vN={};K(vN,{init:()=>Iye,metadata:()=>m5,name:()=>sj,settings:()=>cj});var Ch=n(P(),1),oj=n(F(),1),nj=n(y(),1);function aj({attributes:e,context:t,clientId:r,isSelected:o}){let{allowedBlocks:a,templateLock:i}=e,l=t["core/accordion-open-by-default"],{hasSelection:s}=(0,oj.useSelect)(p=>{if(o||l)return{hasSelection:!0};let{getBlockRootClientId:m,isBlockSelected:d,hasSelectedInnerBlock:f}=p(Ch.store),h=m(r);return{hasSelection:d(h)||f(h,!0)}},[r,o,l]),c=(0,Ch.useBlockProps)({hidden:!s,role:"region"}),u=(0,Ch.useInnerBlocksProps)(c,{allowedBlocks:a,template:[["core/paragraph",{}]],templateLock:i});return(0,nj.jsx)("div",{...u})}var p5=n(P(),1),ij=n(y(),1);function lj(){let e=p5.useBlockProps.save({role:"region"}),t=p5.useInnerBlocksProps.save(e);return(0,ij.jsx)("div",{...t})}var m5={$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:sj}=m5,cj={icon:Y1,edit:aj,save:lj},Iye=()=>R({name:sj,metadata:m5,settings:cj});var bN={};K(bN,{init:()=>Dye,metadata:()=>d5,name:()=>dj,settings:()=>fj});var d5={$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 la=n(O(),1),Jo=n(N(),1),f5=n(P(),1),uj=n(sp(),1),pj=n(ve(),1);var ao=n(y(),1);function mj({attributes:e,setAttributes:t,name:r}){let{showLabel:o,showPostCounts:a,displayAsDropdown:i,type:l}=e,s=Z(),{content:c,status:u,error:p}=(0,uj.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),m=(0,pj.useDisabled)(),d=(0,f5.useBlockProps)({ref:m});return(0,ao.jsxs)(ao.Fragment,{children:[(0,ao.jsx)(f5.InspectorControls,{children:(0,ao.jsxs)(la.__experimentalToolsPanel,{label:(0,Jo.__)("Settings"),resetAll:()=>{t({displayAsDropdown:!1,showLabel:!0,showPostCounts:!1,type:"monthly"})},dropdownMenuProps:s,children:[(0,ao.jsx)(la.__experimentalToolsPanelItem,{label:(0,Jo.__)("Display as dropdown"),isShownByDefault:!0,hasValue:()=>i,onDeselect:()=>t({displayAsDropdown:!1}),children:(0,ao.jsx)(la.ToggleControl,{label:(0,Jo.__)("Display as dropdown"),checked:i,onChange:()=>t({displayAsDropdown:!i})})}),i&&(0,ao.jsx)(la.__experimentalToolsPanelItem,{label:(0,Jo.__)("Show label"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({showLabel:!0}),children:(0,ao.jsx)(la.ToggleControl,{label:(0,Jo.__)("Show label"),checked:o,onChange:()=>t({showLabel:!o})})}),(0,ao.jsx)(la.__experimentalToolsPanelItem,{label:(0,Jo.__)("Show post counts"),isShownByDefault:!0,hasValue:()=>a,onDeselect:()=>t({showPostCounts:!1}),children:(0,ao.jsx)(la.ToggleControl,{label:(0,Jo.__)("Show post counts"),checked:a,onChange:()=>t({showPostCounts:!a})})}),(0,ao.jsx)(la.__experimentalToolsPanelItem,{label:(0,Jo.__)("Group by"),isShownByDefault:!0,hasValue:()=>l!=="monthly",onDeselect:()=>t({type:"monthly"}),children:(0,ao.jsx)(la.SelectControl,{label:(0,Jo.__)("Group by"),options:[{label:(0,Jo.__)("Year"),value:"yearly"},{label:(0,Jo.__)("Month"),value:"monthly"},{label:(0,Jo.__)("Week"),value:"weekly"},{label:(0,Jo.__)("Day"),value:"daily"}],value:l,onChange:f=>t({type:f})})})]})}),u==="loading"&&(0,ao.jsx)("div",{...d,children:(0,ao.jsx)(la.Spinner,{})}),u==="error"&&(0,ao.jsx)("div",{...d,children:(0,ao.jsx)("p",{children:(0,Jo.sprintf)((0,Jo.__)("Error: %s"),p)})}),u==="success"&&(0,ao.jsx)(ko,{wrapperProps:d,html:c})]})}var{name:dj}=d5,fj={icon:X9,example:{},edit:mj},Dye=()=>R({name:dj,metadata:d5,settings:fj});var _N={};K(_N,{init:()=>Vye,metadata:()=>h5,name:()=>Nj,settings:()=>Dj});var h5={$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 cd=n(P(),1),Oa=n(O(),1),ll=n(N(),1),v5=n(pr(),1);var Uv=n(re(),1),gp=n(N(),1),gj=n(F(),1);function vj(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 bj({commentId:e}){let[t]=(0,Uv.useEntityProp)("root","comment","author_avatar_urls",e),[r]=(0,Uv.useEntityProp)("root","comment","author_name",e),o=t?Object.values(t):null,a=t?Object.keys(t):null,{minSize:i,maxSize:l}=vj(a),s=Hv();return{src:o?o[o.length-1]:s,minSize:i,maxSize:l,alt:r?(0,gp.sprintf)((0,gp.__)("%s Avatar"),r):(0,gp.__)("Default Avatar")}}function yj({userId:e,postId:t,postType:r}){let{authorDetails:o}=(0,gj.useSelect)(u=>{let{getEditedEntityRecord:p,getUser:m}=u(Uv.store);if(e)return{authorDetails:m(e)};let d=p("postType",r,t)?.author;return{authorDetails:d?m(d):null}},[r,t,e]),a=o?.avatar_urls?Object.values(o.avatar_urls):null,i=o?.avatar_urls?Object.keys(o.avatar_urls):null,{minSize:l,maxSize:s}=vj(i),c=Hv();return{src:a?a[a.length-1]:c,minSize:l,maxSize:s,alt:o?(0,gp.sprintf)((0,gp.__)("%s Avatar"),o?.name):(0,gp.__)("Default Avatar")}}var yN=n(N(),1),xj=n(O(),1),kj=n(F(),1),wj=n(re(),1),g5=n(H(),1),Cj=n(ve(),1),Sj=n(en(),1),Tj=n(y(),1),Rye={who:"authors",per_page:100,_fields:"id,name",context:"view"};function Pj({value:e,onChange:t}){let[r,o]=(0,g5.useState)(""),{authors:a,isLoading:i}=(0,kj.useSelect)(s=>{let{getUsers:c,isResolving:u}=s(wj.store),p={...Rye};return r&&(p.search=r,p.search_columns=["name"]),{authors:c(p),isLoading:u("getUsers",[p])}},[r]),l=(0,g5.useMemo)(()=>(a??[]).map(s=>({value:s.id,label:(0,Sj.decodeEntities)(s.name)})),[a]);return(0,Tj.jsx)(xj.ComboboxControl,{label:(0,yN.__)("User"),help:(0,yN.__)("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,Cj.debounce)(o,300),isLoading:i})}var Ht=n(y(),1),Ej=({setAttributes:e,avatar:t,attributes:r,selectUser:o})=>{let a=Z();return(0,Ht.jsx)(cd.InspectorControls,{children:(0,Ht.jsxs)(Oa.__experimentalToolsPanel,{label:(0,ll.__)("Settings"),resetAll:()=>{e({size:96,isLink:!1,linkTarget:"_self",userId:void 0})},dropdownMenuProps:a,children:[(0,Ht.jsx)(Oa.__experimentalToolsPanelItem,{label:(0,ll.__)("Image size"),isShownByDefault:!0,hasValue:()=>r?.size!==96,onDeselect:()=>e({size:96}),children:(0,Ht.jsx)(Oa.RangeControl,{label:(0,ll.__)("Image size"),onChange:i=>e({size:i}),min:t.minSize,max:t.maxSize,initialPosition:r?.size,value:r?.size})}),(0,Ht.jsx)(Oa.__experimentalToolsPanelItem,{label:(0,ll.__)("Link to user profile"),isShownByDefault:!0,hasValue:()=>r?.isLink,onDeselect:()=>e({isLink:!1}),children:(0,Ht.jsx)(Oa.ToggleControl,{label:(0,ll.__)("Link to user profile"),onChange:()=>e({isLink:!r.isLink}),checked:r.isLink})}),r.isLink&&(0,Ht.jsx)(Oa.__experimentalToolsPanelItem,{label:(0,ll.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r?.linkTarget!=="_self",onDeselect:()=>e({linkTarget:"_self"}),children:(0,Ht.jsx)(Oa.ToggleControl,{label:(0,ll.__)("Open in new tab"),onChange:i=>e({linkTarget:i?"_blank":"_self"}),checked:r.linkTarget==="_blank"})}),o&&(0,Ht.jsx)(Oa.__experimentalToolsPanelItem,{label:(0,ll.__)("User"),isShownByDefault:!0,hasValue:()=>!!r?.userId,onDeselect:()=>e({userId:void 0}),children:(0,Ht.jsx)(Pj,{value:r?.userId,onChange:i=>{e({userId:i})}})})]})})},Aye=({children:e,isLink:t})=>t?(0,Ht.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:r=>r.preventDefault(),children:e}):e,Bj=({setAttributes:e,attributes:t,avatar:r,blockProps:o,isSelected:a})=>{let i=(0,cd.__experimentalUseBorderProps)(t),l=(0,v5.addQueryArgs)((0,v5.removeQueryArgs)(r?.src,["s"]),{s:t?.size*2});return(0,Ht.jsx)("div",{...o,children:(0,Ht.jsx)(Aye,{isLink:t.isLink,children:(0,Ht.jsx)(Oa.ResizableBox,{size:{width:t.size,height:t.size},showHandle:a,onResizeStop:(s,c,u,p)=>{e({size:parseInt(t.size+(p.height||p.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,ll.isRTL)(),bottom:!0,left:(0,ll.isRTL)()},minWidth:r.minSize,maxWidth:r.maxSize,children:(0,Ht.jsx)("img",{src:l,alt:r.alt,className:S("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",i.className),style:i.style})})})})},Mye=({attributes:e,context:t,setAttributes:r,isSelected:o})=>{let{commentId:a}=t,i=(0,cd.useBlockProps)(),l=bj({commentId:a});return(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(Ej,{avatar:l,setAttributes:r,attributes:e,selectUser:!1}),(0,Ht.jsx)(Bj,{attributes:e,avatar:l,blockProps:i,isSelected:o,setAttributes:r})]})},zye=({attributes:e,context:t,setAttributes:r,isSelected:o})=>{let{postId:a,postType:i}=t,l=yj({userId:e?.userId,postId:a,postType:i}),s=(0,cd.useBlockProps)();return(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(Ej,{selectUser:!0,attributes:e,avatar:l,setAttributes:r}),(0,Ht.jsx)(Bj,{attributes:e,avatar:l,blockProps:s,isSelected:o,setAttributes:r})]})};function Ij(e){return e?.context?.commentId||e?.context?.commentId===null?(0,Ht.jsx)(Mye,{...e}):(0,Ht.jsx)(zye,{...e})}var{name:Nj}=h5,Dj={icon:Z1,edit:Ij,example:{}},Vye=()=>R({name:Nj,metadata:h5,settings:Dj});var BN={};K(BN,{init:()=>Kye,metadata:()=>_5,name:()=>oU,settings:()=>x5});var EN=n(N(),1);var rU=n(q(),1);var xN=n(P(),1),Gv=n(y(),1),Lj=[{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:a,src:i}=e;return(0,Gv.jsxs)("figure",{children:[(0,Gv.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:o,preload:a}),!xN.RichText.isEmpty(r)&&(0,Gv.jsx)(xN.RichText.Content,{tagName:"figcaption",value:r})]})}}];var qj=n(Ar(),1),hi=n(O(),1),Fa=n(P(),1),sa=n(N(),1),Zj=n(F(),1);var Kj=n(Sr(),1),Yj=n(H(),1);function Sh(e,t){var r=0,o,a;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===a&&(a=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):a=l,r===t.maxSize?(a=a.prev,a.next=null):r++,o=l,l.val}return i.clear=function(){o=null,a=null,r=0},i}var Vj=n(O(),1),CN=n(H(),1),$s=n(q(),1),Oj=n(pr(),1);var Ws={$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 Wv=[{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"}],kN="wp-embed";var Mj=n(wN(),1),{lock:zj,unlock:U}=(0,Mj.__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 b5=n(y(),1),{name:Th}=Ws,{kebabCase:Fye}=U(Vj.privateApis),Fj=e=>(0,$s.getBlockVariations)(Th)?.find(({name:t})=>t===e),SN=(e,t=[])=>t.some(r=>e.match(r)),Ph=e=>(0,$s.getBlockVariations)(Th)?.find(({patterns:t})=>SN(e,t));function $v(e){if(!e||(0,Oj.getAuthority)(e)!=="x.com")return e;let t=new URL(e);return t.host="twitter.com",t.toString()}var Hj=e=>e&&e.includes('class="wp-embedded-content"'),jj=e=>{let t=e.url||e.thumbnail_url,r=(0,b5.jsx)("p",{children:(0,b5.jsx)("img",{src:t,alt:e.title,width:"100%"})});return(0,CN.renderToString)(r)},bp=(e,t={})=>{let{preview:r,attributes:o={}}=e,{url:a,providerNameSlug:i,type:l,...s}=o;if(!a||!(0,$s.getBlockType)(Th))return;let c=Ph(a),u=i==="wordpress"||l===kN;if(!u&&c&&(c.attributes.providerNameSlug!==i||!i))return(0,$s.createBlock)(Th,{url:a,...s,...c.attributes});let m=(0,$s.getBlockVariations)(Th)?.find(({name:d})=>d==="wordpress");if(!(!m||!r||!Hj(r.html)||u))return(0,$s.createBlock)(Th,{url:a,...m.attributes,...t})},Hye=e=>e?Wv.some(({className:t})=>e.includes(t)):!1,vp=e=>{if(!e)return e;let t=Wv.reduce((o,{className:a})=>(o.push(a),o),["wp-has-aspect-ratio"]),r=e;for(let o of t)r=r.replace(o,"");return r.trim()};function jye(e){return/padding-(top|bottom)\s*:\s*[\d.]+%/i.test(e)}function TN(e,t,r=!0){if(!r||jye(e))return vp(t);let o=document.implementation.createHTMLDocument("");o.body.innerHTML=e;let a=o.body.querySelector("iframe");if(a&&a.height&&a.width){let i=(a.width/a.height).toFixed(2);for(let l=0;l<Wv.length;l++){let s=Wv[l];if(i>=s.ratio)return i-s.ratio>.1?vp(t):S(vp(t),s.className,"wp-has-aspect-ratio")}}return t}function Uj(e,t){t((0,$s.createBlock)("core/paragraph",{content:(0,CN.renderToString)((0,b5.jsx)("a",{href:e,children:e}))}))}var Uye=Sh((e,t,r,o,a=!0)=>{if(!e)return{};let i={},{type:l="rich"}=e,{html:s,provider_name:c}=e,u=Fye((c||t).toLowerCase());return Hj(s)&&(l=kN),(s||l==="photo")&&(i.type=l,i.providerNameSlug=u),Hye(r)||(i.className=TN(s,r,o&&a)),i}),Gj=(e,t,r,o)=>{let{allowResponsive:a,className:i}=e;return{...e,...Uye(t,r,i,o,a)}};var ud=n(H(),1),Wj=n(ve(),1),qv=n(N(),1),iu=n(P(),1),$j=n(O(),1);var y5=n(q(),1),yp=n(y(),1);function Mo({attributeKey:e="caption",attributes:t,setAttributes:r,isSelected:o,insertBlocksAfter:a,placeholder:i=(0,qv.__)("Add caption"),label:l=(0,qv.__)("Caption text"),showToolbarButton:s=!0,excludeElementClassName:c,className:u,readOnly:p,tagName:m="figcaption",addLabel:d=(0,qv.__)("Add caption"),removeLabel:f=(0,qv.__)("Remove caption"),icon:h=pP,...g}){let v=t[e],b=(0,Wj.usePrevious)(v),_=iu.RichText.isEmpty(v),k=iu.RichText.isEmpty(b),[x,w]=(0,ud.useState)(!_);(0,ud.useEffect)(()=>{!_&&k&&w(!0)},[_,k]),(0,ud.useEffect)(()=>{!o&&_&&w(!1)},[o,_]);let C=(0,ud.useCallback)(T=>{T&&_&&T.focus()},[_]);return(0,yp.jsxs)(yp.Fragment,{children:[s&&(0,yp.jsx)(iu.BlockControls,{group:"block",children:(0,yp.jsx)($j.ToolbarButton,{onClick:()=>{w(!x),x&&v&&r({[e]:void 0})},icon:h,isPressed:x,label:x?f:d})}),x&&(!iu.RichText.isEmpty(v)||o)&&(0,yp.jsx)(iu.RichText,{identifier:e,tagName:m,className:S(u,c?"":(0,iu.__experimentalGetElementClassName)("caption")),ref:C,"aria-label":l,placeholder:i,value:v,onChange:T=>r({[e]:T}),inlineToolbar:!0,__unstableOnSplitAtEnd:a?()=>a((0,y5.createBlock)((0,y5.getDefaultBlockName)())):void 0,readOnly:p,...g})]})}var Mr=n(y(),1),PN=["audio"];function Gye({attributes:e,className:t,setAttributes:r,onReplace:o,isSelected:a,insertBlocksAfter:i}){let{id:l,autoplay:s,loop:c,preload:u,src:p}=e,[m,d]=(0,Yj.useState)(e.blob),h=(0,Fa.useBlockEditingMode)()==="default";Us({url:m,allowedTypes:PN,onChange:x,onError:_});function g(I){return D=>{r({[I]:D})}}function v(I){if(I!==p){let D=bp({attributes:{url:I}});if(D!==void 0&&o){o(D);return}r({src:I,id:void 0,blob:void 0}),d()}}let{createErrorNotice:b}=(0,Zj.useDispatch)(Kj.store);function _(I){b(I,{type:"snackbar"})}function k(I){return I?(0,sa.__)("Autoplay may cause usability issues for some users."):null}function x(I){if(!I||!I.url){r({src:void 0,id:void 0,caption:void 0,blob:void 0}),d();return}if((0,qj.isBlobURL)(I.url)){d(I.url);return}r({blob:void 0,src:I.url,id:I.id,caption:I.caption}),d()}let w=S(t,{"is-transient":!!m}),C=(0,Fa.useBlockProps)({className:w}),T=Z();return!p&&!m?(0,Mr.jsx)("div",{...C,children:(0,Mr.jsx)(Fa.MediaPlaceholder,{icon:(0,Mr.jsx)(Fa.BlockIcon,{icon:ru}),onSelect:x,onSelectURL:v,accept:"audio/*",allowedTypes:PN,value:e,onError:_})}):(0,Mr.jsxs)(Mr.Fragment,{children:[a&&(0,Mr.jsx)(Fa.BlockControls,{group:"other",children:(0,Mr.jsx)(Fa.MediaReplaceFlow,{mediaId:l,mediaURL:p,allowedTypes:PN,accept:"audio/*",onSelect:x,onSelectURL:v,onError:_,onReset:()=>x(void 0),variant:"toolbar"})}),(0,Mr.jsx)(Fa.InspectorControls,{children:(0,Mr.jsxs)(hi.__experimentalToolsPanel,{label:(0,sa.__)("Settings"),resetAll:()=>{r({autoplay:!1,loop:!1,preload:void 0})},dropdownMenuProps:T,children:[(0,Mr.jsx)(hi.__experimentalToolsPanelItem,{label:(0,sa.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({autoplay:!1}),children:(0,Mr.jsx)(hi.ToggleControl,{label:(0,sa.__)("Autoplay"),onChange:g("autoplay"),checked:!!s,help:k})}),(0,Mr.jsx)(hi.__experimentalToolsPanelItem,{label:(0,sa.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!c,onDeselect:()=>r({loop:!1}),children:(0,Mr.jsx)(hi.ToggleControl,{label:(0,sa.__)("Loop"),onChange:g("loop"),checked:!!c})}),(0,Mr.jsx)(hi.__experimentalToolsPanelItem,{label:(0,sa.__)("Preload"),isShownByDefault:!0,hasValue:()=>!!u,onDeselect:()=>r({preload:void 0}),children:(0,Mr.jsx)(hi.SelectControl,{label:(0,sa._x)("Preload","noun; Audio block parameter"),value:u||"",onChange:I=>r({preload:I||void 0}),options:[{value:"",label:(0,sa.__)("Browser default")},{value:"auto",label:(0,sa.__)("Auto")},{value:"metadata",label:(0,sa.__)("Metadata")},{value:"none",label:(0,sa._x)("None","Preload value")}]})})]})}),(0,Mr.jsxs)("figure",{...C,children:[(0,Mr.jsx)("audio",{controls:"controls",inert:a?void 0:"true",src:p??m}),!!m&&(0,Mr.jsx)(hi.Spinner,{}),(0,Mr.jsx)(Mo,{attributes:e,setAttributes:r,isSelected:a,insertBlocksAfter:i,label:(0,sa.__)("Audio caption text"),showToolbarButton:a&&h})]})]})}var Qj=Gye;var _5={$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 pd=n(P(),1),Zv=n(y(),1);function Xj({attributes:e}){let{autoplay:t,caption:r,loop:o,preload:a,src:i}=e;return i&&(0,Zv.jsxs)("figure",{...pd.useBlockProps.save(),children:[(0,Zv.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:o,preload:a}),!pd.RichText.isEmpty(r)&&(0,Zv.jsx)(pd.RichText.Content,{tagName:"figcaption",value:r,className:(0,pd.__experimentalGetElementClassName)("caption")})]})}var Jj=n(Ar(),1),eU=n(q(),1),$ye={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("audio/")===0},transform(e){let t=e[0];return(0,eU.createBlock)("core/audio",{blob:(0,Jj.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:r,ogg:o,wav:a,wma:i}})=>e||t||r||o||a||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}}}]},tU=$ye;var{fieldsKey:qye,formKey:Zye}=U(rU.privateApis),{name:oU}=_5,x5={icon:ru,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:tU,deprecated:Lj,edit:Qj,save:Xj};window.__experimentalContentOnlyInspectorFields&&(x5[qye]=[{id:"audio",label:(0,EN.__)("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,EN.__)("Caption"),type:"text",Edit:"rich-text"}],x5[Zye]={fields:["audio","caption"]});var Kye=()=>R({name:oU,metadata:_5,settings:x5});var IN={};K(IN,{init:()=>Qye,metadata:()=>k5,name:()=>sU,settings:()=>cU});var k5={$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 qr=n(N(),1),Kv=n(P(),1),tn=n(O(),1),nU=n(F(),1),C5=n(re(),1),lu=n(H(),1),aU=n(sp(),1),iU=n(ve(),1);var Et=n(y(),1),w5="/";function lU({attributes:e,setAttributes:t,name:r,context:{postId:o,postType:a,templateSlug:i}}){let{separator:l,showHomeItem:s,showCurrentItem:c,prefersTaxonomy:u,showOnHomePage:p}=e,{post:m,isPostTypeHierarchical:d,postTypeHasTaxonomies:f,hasTermsAssigned:h,isLoading:g}=(0,nU.useSelect)(z=>{if(!a)return{};let j=z(C5.store).getEntityRecord("postType",a,o),G=z(C5.store).getPostType(a),W=G&&G.taxonomies.length,$;return W&&($=z(C5.store).getTaxonomies({type:a,per_page:-1})),{post:j,isPostTypeHierarchical:G?.hierarchical,postTypeHasTaxonomies:W,hasTermsAssigned:j&&($||[]).filter(({visibility:V})=>V?.publicly_queryable).some(V=>!!j[V.rest_base]?.length),isLoading:o&&!j||!G||W&&!$}},[a,o]),[v,b]=(0,lu.useState)(0);(0,lu.useEffect)(()=>{b(z=>z+1)},[m]);let _=Z(),{content:k,status:x,error:w}=(0,aU.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r,urlQueryArgs:{post_id:o,invalidationKey:v}}),C=(0,lu.useRef)("");(0,lu.useEffect)(()=>{x==="success"&&(C.current=k)},[k,x]);let[T,I]=(0,lu.useState)(!1);(0,lu.useEffect)(()=>{if(x!=="loading")return;let z=setTimeout(()=>{I(!0)},400);return()=>{clearTimeout(z),I(!1)}},[x]);let D=(0,iU.useDisabled)(),L=(0,Kv.useBlockProps)({ref:D});if(g)return(0,Et.jsx)("div",{...L,children:(0,Et.jsx)(tn.Spinner,{})});let E;!d&&!m?.parent?E=!0:f?E=u:E=!1;let B=null,A=!o||!a||i&&!a||!E&&!d||E&&!h;if(A){let z=[];s&&z.push((0,qr.__)("Home")),i&&!o?z.push((0,qr.__)("Page")):E?z.push((0,qr.__)("Category")):z.push((0,qr.__)("Ancestor"),(0,qr.__)("Parent")),B=(0,Et.jsx)("nav",{...L,style:{"--separator":`"${l.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,...L.style},children:(0,Et.jsxs)("ol",{children:[z.map((j,G)=>(0,Et.jsx)("li",{children:(0,Et.jsx)("a",{href:`#breadcrumbs-pseudo-link-${G}`,children:j})},G)),c&&(0,Et.jsx)("li",{children:(0,Et.jsx)("span",{"aria-current":"page",children:(0,qr.__)("Current")})})]})})}return(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsx)(Kv.InspectorControls,{children:(0,Et.jsxs)(tn.__experimentalToolsPanel,{label:(0,qr.__)("Settings"),resetAll:()=>{t({separator:w5,showHomeItem:!0,showCurrentItem:!0})},dropdownMenuProps:_,children:[(0,Et.jsx)(tn.__experimentalToolsPanelItem,{label:(0,qr.__)("Show home breadcrumb"),isShownByDefault:!0,hasValue:()=>!s,onDeselect:()=>t({showHomeItem:!0}),children:(0,Et.jsx)(tn.ToggleControl,{label:(0,qr.__)("Show home breadcrumb"),onChange:z=>t({showHomeItem:z}),checked:s})}),(0,Et.jsx)(tn.__experimentalToolsPanelItem,{label:(0,qr.__)("Show current breadcrumb"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>t({showCurrentItem:!0}),children:(0,Et.jsx)(tn.ToggleControl,{label:(0,qr.__)("Show current breadcrumb"),onChange:z=>t({showCurrentItem:z}),checked:c})}),(0,Et.jsx)(tn.__experimentalToolsPanelItem,{label:(0,qr.__)("Separator"),isShownByDefault:!0,hasValue:()=>l!==w5,onDeselect:()=>t({separator:w5}),children:(0,Et.jsx)(tn.TextControl,{autoComplete:"off",label:(0,qr.__)("Separator"),value:l,onChange:z=>t({separator:z}),onBlur:()=>{l||t({separator:w5})}})})]})}),(0,Et.jsxs)(Kv.InspectorControls,{group:"advanced",children:[(0,Et.jsx)(tn.CheckboxControl,{label:(0,qr.__)("Show on homepage"),checked:p,onChange:z=>t({showOnHomePage:z}),help:(0,qr.__)("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,Et.jsx)(tn.CheckboxControl,{label:(0,qr.__)("Prefer taxonomy terms"),checked:u,onChange:z=>t({prefersTaxonomy:z}),help:(0,qr.__)("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.")})]}),x==="loading"&&!A&&(C.current?(0,Et.jsx)(ko,{wrapperProps:{...L,style:{...L.style,opacity:T?.3:1}},html:C.current}):(0,Et.jsx)("div",{...L,children:(0,Et.jsx)(tn.Spinner,{})})),x==="error"&&(0,Et.jsx)("div",{...L,children:(0,Et.jsx)("p",{children:(0,qr.sprintf)((0,qr.__)("Error: %s"),w)})}),A&&B,!A&&x==="success"&&(0,Et.jsx)(ko,{wrapperProps:L,html:k})]})}var{name:sU}=k5,cU={icon:nP,example:{},edit:lU},Qye=()=>R({name:sU,metadata:k5,settings:cU});var BD={};K(BD,{init:()=>Cxe,metadata:()=>ew,name:()=>dW,settings:()=>rw});var tw=n(N(),1);var mW=n(q(),1);var ye=n(P(),1),ql=n(ve(),1);var uU=n(P(),1);var{cleanEmptyObject:Xye}=U(uU.privateApis);function Zt(e){if(!e?.style?.typography?.fontFamily)return e;let{fontFamily:t,...r}=e.style.typography;return{...e,style:Xye({...e.style,typography:r}),fontFamily:t.split("|").pop()}}function be(e){let{textAlign:t,...r}=e;return t?{...r,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e}var jt=n(y(),1),sl=e=>{let{width:t,...r}=e;return t?{...r,style:{...r.style,dimensions:{...r.style?.dimensions,width:`${t}%`}}}:r},Eh=e=>{let{borderRadius:t,...r}=e,o=[t,r.style?.border?.radius].find(a=>typeof a=="number"&&a!==0);return o?{...r,style:{...r.style,border:{...r.style?.border,radius:`${o}px`}}}:r};function Jye(e){if(!e.align)return e;let{align:t,...r}=e;return{...r,className:S(r.className,`align${e.align}`)}}var DN=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:a,...i}=e;return{...i,style:t}},NN=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 DN(o)},su={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"}},e2e={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:a,linkTarget:i,rel:l,style:s,text:c,title:u,url:p,width:m}=e,d=r||"a",f=d==="button",h=o||"button",g=(0,ye.__experimentalGetBorderClassesAndStyles)(e),v=(0,ye.__experimentalGetColorClassesAndStyles)(e),b=(0,ye.__experimentalGetSpacingClassesAndStyles)(e),_=(0,ye.__experimentalGetShadowClassesAndStyles)(e),k=(0,ye.getTypographyClassesAndStyles)(e),x=S("wp-block-button__link",v.className,g.className,k.className,{"no-border-radius":s?.border?.radius===0,"has-custom-font-size":a||s?.typography?.fontSize},(0,ye.__experimentalGetElementClassName)("button")),w={...g.style,...v.style,...b.style,..._.style,...k.style,writingMode:void 0},C=S(t,{[`has-custom-width wp-block-button__width-${m}`]:m});return(0,jt.jsx)("div",{...ye.useBlockProps.save({className:C}),children:(0,jt.jsx)(ye.RichText.Content,{tagName:d,type:f?h:null,className:x,href:f?null:p,title:u,style:w,value:c,target:f?null:i,rel:f?null:l})})},isEligible(e){return typeof e.width=="number"},migrate:sl},t2e={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:a,fontSize:i,linkTarget:l,rel:s,style:c,text:u,title:p,url:m,width:d}=e,f=r||"a",h=f==="button",g=o||"button",v=(0,ye.__experimentalGetBorderClassesAndStyles)(e),b=(0,ye.__experimentalGetColorClassesAndStyles)(e),_=(0,ye.__experimentalGetSpacingClassesAndStyles)(e),k=(0,ye.__experimentalGetShadowClassesAndStyles)(e),x=(0,ye.getTypographyClassesAndStyles)(e),w=S("wp-block-button__link",b.className,v.className,x.className,{[`has-text-align-${a}`]:a,"no-border-radius":c?.border?.radius===0,"has-custom-font-size":i||c?.typography?.fontSize},(0,ye.__experimentalGetElementClassName)("button")),C={...v.style,...b.style,..._.style,...k.style,...x.style,writingMode:void 0},T=S(t,{[`has-custom-width wp-block-button__width-${d}`]:d});return(0,jt.jsx)("div",{...ye.useBlockProps.save({className:T}),children:(0,jt.jsx)(ye.RichText.Content,{tagName:f,type:h?g:null,className:w,href:h?null:m,title:p,style:C,value:u,target:h?null:l,rel:h?null:s})})},isEligible(e){return!!e.textAlign||typeof e.width=="number"},migrate:(0,ql.compose)(sl,be)},r2e={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:a,fontSize:i,linkTarget:l,rel:s,style:c,text:u,title:p,url:m,width:d}=e,f=r||"a",h=f==="button",g=o||"button",v=(0,ye.__experimentalGetBorderClassesAndStyles)(e),b=(0,ye.__experimentalGetColorClassesAndStyles)(e),_=(0,ye.__experimentalGetSpacingClassesAndStyles)(e),k=(0,ye.__experimentalGetShadowClassesAndStyles)(e),x=S("wp-block-button__link",b.className,v.className,{[`has-text-align-${a}`]:a,"no-border-radius":c?.border?.radius===0},(0,ye.__experimentalGetElementClassName)("button")),w={...v.style,...b.style,..._.style,...k.style},C=S(t,{[`has-custom-width wp-block-button__width-${d}`]:d,"has-custom-font-size":i||c?.typography?.fontSize});return(0,jt.jsx)("div",{...ye.useBlockProps.save({className:C}),children:(0,jt.jsx)(ye.RichText.Content,{tagName:f,type:h?g:null,className:x,href:h?null:m,title:p,style:w,value:u,target:h?null:l,rel:h?null:s})})},isEligible(e){return typeof e.width=="number"},migrate:sl},o2e={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:a,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let p=(0,ye.__experimentalGetBorderClassesAndStyles)(e),m=(0,ye.__experimentalGetColorClassesAndStyles)(e),d=(0,ye.__experimentalGetSpacingClassesAndStyles)(e),f=S("wp-block-button__link",m.className,p.className,{"no-border-radius":i?.border?.radius===0}),h={...p.style,...m.style,...d.style},g=S(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,jt.jsx)("div",{...ye.useBlockProps.save({className:g}),children:(0,jt.jsx)(ye.RichText.Content,{tagName:"a",className:f,href:c,title:s,style:h,value:l,target:o,rel:a})})}},n2e={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:a,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let p=(0,ye.__experimentalGetBorderClassesAndStyles)(e),m=(0,ye.__experimentalGetColorClassesAndStyles)(e),d=(0,ye.__experimentalGetSpacingClassesAndStyles)(e),f=S("wp-block-button__link",m.className,p.className,{"no-border-radius":i?.border?.radius===0}),h={...p.style,...m.style,...d.style},g=S(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,jt.jsx)("div",{...ye.useBlockProps.save({className:g}),children:(0,jt.jsx)(ye.RichText.Content,{tagName:"a",className:f,href:c,title:s,style:h,value:l,target:o,rel:a})})},migrate:(0,ql.compose)(sl,Zt),isEligible({style:e,width:t}){return e?.typography?.fontFamily||typeof t=="number"}},a2e=[e2e,t2e,r2e,o2e,n2e,{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:{...su,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:a,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let p=i?.border?.radius,m=(0,ye.__experimentalGetColorClassesAndStyles)(e),d=S("wp-block-button__link",m.className,{"no-border-radius":i?.border?.radius===0}),f={borderRadius:p||void 0,...m.style},h=S(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,jt.jsx)("div",{...ye.useBlockProps.save({className:h}),children:(0,jt.jsx)(ye.RichText.Content,{tagName:"a",className:d,href:c,title:s,style:f,value:l,target:o,rel:a})})},migrate:(0,ql.compose)(sl,Zt,Eh)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...su,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:a,text:i,title:l,url:s,width:c}=e,u=(0,ye.__experimentalGetColorClassesAndStyles)(e),p=S("wp-block-button__link",u.className,{"no-border-radius":r===0}),m={borderRadius:r?r+"px":void 0,...u.style},d=S(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,jt.jsx)("div",{...ye.useBlockProps.save({className:d}),children:(0,jt.jsx)(ye.RichText.Content,{tagName:"a",className:p,href:s,title:l,style:m,value:i,target:o,rel:a})})},migrate:(0,ql.compose)(sl,Zt,Eh)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...su,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:a,text:i,title:l,url:s,width:c}=e,u=(0,ye.__experimentalGetColorClassesAndStyles)(e),p=S("wp-block-button__link",u.className,{"no-border-radius":r===0}),m={borderRadius:r?r+"px":void 0,...u.style},d=S(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,jt.jsx)("div",{...ye.useBlockProps.save({className:d}),children:(0,jt.jsx)(ye.RichText.Content,{tagName:"a",className:p,href:s,title:l,style:m,value:i,target:o,rel:a})})},migrate:(0,ql.compose)(sl,Zt,Eh)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...su,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:a,title:i,url:l}=e,s=S("wp-block-button__link",{"no-border-radius":t===0}),c={borderRadius:t?t+"px":void 0};return(0,jt.jsx)(ye.RichText.Content,{tagName:"a",className:s,href:l,title:i,style:c,value:a,target:r,rel:o})},migrate:(0,ql.compose)(sl,Eh)},{supports:{align:!0,alignWide:!1},attributes:{...su,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,ql.compose)(sl,Eh,DN,Jye),save({attributes:e}){let{backgroundColor:t,borderRadius:r,customBackgroundColor:o,customTextColor:a,customGradient:i,linkTarget:l,gradient:s,rel:c,text:u,textColor:p,title:m,url:d}=e,f=(0,ye.getColorClassName)("color",p),h=!i&&(0,ye.getColorClassName)("background-color",t),g=(0,ye.__experimentalGetGradientClass)(s),v=S("wp-block-button__link",{"has-text-color":p||a,[f]:f,"has-background":t||o||i||s,[h]:h,"no-border-radius":r===0,[g]:g}),b={background:i||void 0,backgroundColor:h||i||s?void 0:o,color:f?void 0:a,borderRadius:r?r+"px":void 0};return(0,jt.jsx)("div",{children:(0,jt.jsx)(ye.RichText.Content,{tagName:"a",className:v,href:d,title:m,style:b,value:u,target:l,rel:c})})}},{attributes:{...su,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()),Eh(DN({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,customTextColor:o,linkTarget:a,rel:i,text:l,textColor:s,title:c,url:u}=e,p=(0,ye.getColorClassName)("color",s),m=(0,ye.getColorClassName)("background-color",t),d=S("wp-block-button__link",{"has-text-color":s||o,[p]:p,"has-background":t||r,[m]:m}),f={backgroundColor:m?void 0:r,color:p?void 0:o};return(0,jt.jsx)("div",{children:(0,jt.jsx)(ye.RichText.Content,{tagName:"a",className:d,href:u,title:c,style:f,value:l,target:a,rel:i})})}},{attributes:{...su,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:(0,ql.compose)(sl,NN),save({attributes:e}){let{url:t,text:r,title:o,backgroundColor:a,textColor:i,customBackgroundColor:l,customTextColor:s}=e,c=(0,ye.getColorClassName)("color",i),u=(0,ye.getColorClassName)("background-color",a),p=S("wp-block-button__link",{"has-text-color":i||s,[c]:c,"has-background":a||l,[u]:u}),m={backgroundColor:u?void 0:l,color:c?void 0:s};return(0,jt.jsx)("div",{children:(0,jt.jsx)(ye.RichText.Content,{tagName:"a",className:p,href:t,title:o,style:m,value:r})})}},{attributes:{...su,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){let{url:t,text:r,title:o,align:a,color:i,textColor:l}=e,s={backgroundColor:i,color:l};return(0,jt.jsx)("div",{className:`align${a}`,children:(0,jt.jsx)(ye.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:o,style:s,value:r})})},migrate:(0,ql.compose)(sl,NN)},{attributes:{...su,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){let{url:t,text:r,title:o,align:a,color:i,textColor:l}=e;return(0,jt.jsx)("div",{className:`align${a}`,style:{backgroundColor:i},children:(0,jt.jsx)(ye.RichText.Content,{tagName:"a",href:t,title:o,style:{color:l},value:r})})},migrate:(0,ql.compose)(sl,NN)}],pU=a2e;var ul=n(N(),1),Nn=n(H(),1),Fh=n(O(),1),mt=n(P(),1),Tp=n(qs(),1);var pu=n(q(),1),kd=n(ve(),1),mb=n(F(),1);var md=n(pt(),1);function dU({controlled:e,default:t,name:r,state:o="value"}){let{current:a}=md.useRef(e!==void 0),[i,l]=md.useState(t),s=a?e:i,c=md.useCallback(u=>{a||l(u)},[]);return[s,c]}var i2e=n(pt(),1),Yv={...i2e};var hU=n(pt(),1),fU={};function Zs(e,t){let r=hU.useRef(fU);return r.current===fU&&(r.current=e(t)),r}var LN=Yv.useInsertionEffect,l2e=LN&&LN!==Yv.useLayoutEffect?LN:e=>e();function mr(e){let t=Zs(s2e).current;return t.next=e,l2e(t.effect),t.trampoline}function s2e(){let e={next:void 0,callback:c2e,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function c2e(){}var gU=n(pt(),1),u2e=()=>{},Kt=typeof document<"u"?gU.useLayoutEffect:u2e;var _p=n(pt(),1);var S5=n(pt(),1),RN=S5.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function vU(){return S5.useContext(RN)}var bU=n(y(),1);function T5(e){let{children:t,elementsRef:r,labelsRef:o,onMapChange:a}=e,i=mr(a),l=_p.useRef(0),s=Zs(m2e).current,c=Zs(p2e).current,[u,p]=_p.useState(0),m=_p.useRef(u),d=mr((b,_)=>{c.set(b,_??null),m.current+=1,p(m.current)}),f=mr(b=>{c.delete(b),m.current+=1,p(m.current)}),h=_p.useMemo(()=>{let b=new Map;return Array.from(c.keys()).filter(k=>k.isConnected).sort(d2e).forEach((k,x)=>{let w=c.get(k)??{};b.set(k,{...w,index:x})}),b},[c,u]);Kt(()=>{if(typeof MutationObserver!="function"||h.size===0)return;let b=new MutationObserver(_=>{let k=new Set,x=w=>k.has(w)?k.delete(w):k.add(w);_.forEach(w=>{w.removedNodes.forEach(x),w.addedNodes.forEach(x)}),k.size===0&&(m.current+=1,p(m.current))});return h.forEach((_,k)=>{k.parentElement&&b.observe(k.parentElement,{childList:!0})}),()=>{b.disconnect()}},[h]),Kt(()=>{m.current===u&&(r.current.length!==h.size&&(r.current.length=h.size),o&&o.current.length!==h.size&&(o.current.length=h.size),l.current=h.size),i(h)},[i,h,r,o,u]),Kt(()=>()=>{r.current=[]},[r]),Kt(()=>()=>{o&&(o.current=[])},[o]);let g=mr(b=>(s.add(b),()=>{s.delete(b)}));Kt(()=>{s.forEach(b=>b(h))},[s,h]);let v=_p.useMemo(()=>({register:d,unregister:f,subscribeMapChange:g,elementsRef:r,labelsRef:o,nextIndexRef:l}),[d,f,g,r,o,l]);return(0,bU.jsx)(RN.Provider,{value:v,children:t})}function p2e(){return new Map}function m2e(){return new Set}function d2e(e,t){let r=e.compareDocumentPosition(t);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}var P5=n(pt(),1),f2e=P5.createContext(void 0);function yU(){return P5.useContext(f2e)?.direction??"ltr"}function h2e(e,t){return function(o,...a){let i=new URL(e);return i.searchParams.set("code",o.toString()),a.forEach(l=>i.searchParams.append("args[]",l)),`${t} error #${o}; visit ${i} for the full message.`}}var g2e=h2e("https://base-ui.com/production-error","Base UI"),xp=g2e;var fd=n(pt(),1);function dd(e,t,r,o){let a=Zs(xU).current;return v2e(a,e,t,r,o)&&kU(a,[e,t,r,o]),a.callback}function _U(e){let t=Zs(xU).current;return b2e(t,e)&&kU(t,e),t.callback}function xU(){return{callback:null,cleanup:null,refs:[]}}function v2e(e,t,r,o,a){return e.refs[0]!==t||e.refs[1]!==r||e.refs[2]!==o||e.refs[3]!==a}function b2e(e,t){return e.refs.length!==t.length||e.refs.some((r,o)=>r!==t[o])}function kU(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 a=0;a<t.length;a+=1){let i=t[a];if(i!=null)switch(typeof i){case"function":{let l=i(r);typeof l=="function"&&(o[a]=l);break}case"object":{i.current=r;break}default:}}e.cleanup=()=>{for(let a=0;a<t.length;a+=1){let i=t[a];if(i!=null)switch(typeof i){case"function":{let l=o[a];typeof l=="function"?l():i(null);break}case"object":{i.current=null;break}default:}}}}}}var CU=n(pt(),1);var wU=n(pt(),1),y2e=parseInt(wU.version,10);function E5(e){return y2e>=e}function AN(e){if(!CU.isValidElement(e))return null;let t=e,r=t.props;return(E5(19)?r?.ref:t.ref)??null}function Qv(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function MN(){}var Xv=Object.freeze([]),Ks=Object.freeze({});function SU(e,t){let r={};for(let o in e){let a=e[o];if(t?.hasOwnProperty(o)){let i=t[o](a);i!=null&&Object.assign(r,i);continue}a===!0?r[`data-${o.toLowerCase()}`]="":a&&(r[`data-${o.toLowerCase()}`]=a.toString())}return r}function TU(e,t){return typeof e=="function"?e(t):e}function PU(e,t){return typeof e=="function"?e(t):e}var zN={};function Zl(e,t,r,o,a){if(!r&&!o&&!a&&!e)return B5(t);let i=B5(e);return t&&(i=Jv(i,t)),r&&(i=Jv(i,r)),o&&(i=Jv(i,o)),a&&(i=Jv(i,a)),i}function EU(e){if(e.length===0)return zN;if(e.length===1)return B5(e[0]);let t=B5(e[0]);for(let r=1;r<e.length;r+=1)t=Jv(t,e[r]);return t}function B5(e){return VN(e)?{...IU(e,zN)}:_2e(e)}function Jv(e,t){return VN(t)?IU(t,e):x2e(e,t)}function _2e(e){let t={...e};for(let r in t){let o=t[r];BU(r,o)&&(t[r]=NU(o))}return t}function x2e(e,t){if(!t)return e;for(let r in t){let o=t[r];switch(r){case"style":{e[r]=Qv(e.style,o);break}case"className":{e[r]=ON(e.className,o);break}default:BU(r,o)?e[r]=k2e(e[r],o):e[r]=o}}return e}function BU(e,t){let r=e.charCodeAt(0),o=e.charCodeAt(1),a=e.charCodeAt(2);return r===111&&o===110&&a>=65&&a<=90&&(typeof t=="function"||typeof t>"u")}function VN(e){return typeof e=="function"}function IU(e,t){return VN(e)?e(t):e??zN}function k2e(e,t){return t?e?(...r)=>{let o=r[0];if(DU(o)){let i=o;eb(i);let l=t(...r);return i.baseUIHandlerPrevented||e?.(...r),l}let a=t(...r);return e?.(...r),a}:NU(t):e}function NU(e){return e&&((...t)=>{let r=t[0];return DU(r)&&eb(r),e(...t)})}function eb(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function ON(e,t){return t?e?t+" "+e:t:e}function DU(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var FN=n(pt(),1);function cl(e,t,r={}){let o=t.render,a=w2e(t,r);if(r.enabled===!1)return null;let i=r.state??Ks;return T2e(e,o,a,i)}function w2e(e,t={}){let{className:r,style:o,render:a}=e,{state:i=Ks,ref:l,props:s,stateAttributesMapping:c,enabled:u=!0}=t,p=u?TU(r,i):void 0,m=u?PU(o,i):void 0,d=u?SU(i,c):Ks,f=u&&s?C2e(s):void 0,h=u?Qv(d,f)??{}:Ks;return typeof document<"u"&&(u?Array.isArray(l)?h.ref=_U([h.ref,AN(a),...l]):h.ref=dd(h.ref,AN(a),l):dd(null,null)),u?(p!==void 0&&(h.className=ON(h.className,p)),m!==void 0&&(h.style=Qv(h.style,m)),h):Ks}function C2e(e){return Array.isArray(e)?EU(e):Zl(void 0,e)}var S2e=Symbol.for("react.lazy");function T2e(e,t,r,o){if(t){if(typeof t=="function")return t(r,o);let a=Zl(r,t.props);a.ref=r.ref;let i=t;return i?.$$typeof===S2e&&(i=fd.Children.toArray(t)[0]),fd.cloneElement(i,a)}if(e&&typeof e=="string")return P2e(e,r);throw new Error(xp(8))}function P2e(e,t){return e==="button"?(0,FN.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,FN.createElement)("img",{alt:"",...t,key:t.key}):fd.createElement(e,t)}var I5=n(pt(),1);var LU=0;function E2e(e,t="mui"){let[r,o]=I5.useState(e),a=e||r;return I5.useEffect(()=>{r==null&&(LU+=1,o(`${t}-${LU}`))},[r,t]),a}var RU=Yv.useId;function AU(e,t){if(RU!==void 0){let r=RU();return e??(t?`${t}-${r}`:r)}return E2e(e,t)}function N5(e){return AU(e,"base-ui")}var Kl={};K(Kl,{cancelOpen:()=>r_e,chipRemovePress:()=>V2e,clearPress:()=>z2e,closePress:()=>A2e,closeWatcher:()=>K2e,decrementPress:()=>H2e,disabled:()=>n_e,drag:()=>J2e,escapeKey:()=>Z2e,focusOut:()=>q2e,imperativeAction:()=>l_e,incrementPress:()=>F2e,initial:()=>i_e,inputBlur:()=>G2e,inputChange:()=>j2e,inputClear:()=>U2e,inputPaste:()=>W2e,inputPress:()=>$2e,itemPress:()=>R2e,keyboard:()=>Q2e,linkPress:()=>M2e,listNavigation:()=>Y2e,missing:()=>a_e,none:()=>B2e,outsidePress:()=>L2e,pointer:()=>X2e,scrub:()=>t_e,siblingOpen:()=>o_e,swipe:()=>s_e,trackPress:()=>O2e,triggerFocus:()=>D2e,triggerHover:()=>N2e,triggerPress:()=>I2e,wheel:()=>e_e,windowResize:()=>c_e});var B2e="none",I2e="trigger-press",N2e="trigger-hover",D2e="trigger-focus",L2e="outside-press",R2e="item-press",A2e="close-press",M2e="link-press",z2e="clear-press",V2e="chip-remove-press",O2e="track-press",F2e="increment-press",H2e="decrement-press",j2e="input-change",U2e="input-clear",G2e="input-blur",W2e="input-paste",$2e="input-press",q2e="focus-out",Z2e="escape-key",K2e="close-watcher",Y2e="list-navigation",Q2e="keyboard",X2e="pointer",J2e="drag",e_e="wheel",t_e="scrub",r_e="cancel-open",o_e="sibling-open",n_e="disabled",a_e="missing",i_e="initial",l_e="imperative-action",s_e="swipe",c_e="window-resize";function tb(e,t,r,o){let a=!1,i=!1,l=o??Ks;return{reason:e,event:t??new Event("base-ui"),cancel(){a=!0},allowPropagation(){i=!0},get isCanceled(){return a},get isPropagationAllowed(){return i},trigger:r,...l}}var jN=n(pt(),1);var MU=n(pt(),1),u_e=[];function zU(e){MU.useEffect(e,u_e)}var D5=null,fHe=globalThis.requestAnimationFrame,HN=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let r=this.callbacks,o=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,o>0)for(let a=0;a<r.length;a+=1)r[a]?.(t)};request(t){let r=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),r}cancel(t){let r=t-this.startId;r<0||r>=this.callbacks.length||(this.callbacks[r]=null,this.callbacksCount-=1)}},L5=new HN,Ys=class e{static create(){return new e}static request(t){return L5.request(t)}static cancel(t){return L5.cancel(t)}currentId=D5;request(t){this.cancel(),this.currentId=L5.request(()=>{this.currentId=D5,t()})}cancel=()=>{this.currentId!==D5&&(L5.cancel(this.currentId),this.currentId=D5)};disposeEffect=()=>this.cancel};function VU(){let e=Zs(Ys.create).current;return zU(e.disposeEffect),e}function OU(e,t=!1,r=!1){let[o,a]=jN.useState(e&&t?"idle":void 0),[i,l]=jN.useState(e);return e&&!i&&(l(!0),a("starting")),!e&&i&&o!=="ending"&&!r&&a("ending"),!e&&!i&&o==="ending"&&a(void 0),Kt(()=>{if(!e&&i&&o!=="ending"&&r){let s=Ys.request(()=>{a("ending")});return()=>{Ys.cancel(s)}}},[e,i,o,r]),Kt(()=>{if(!e||t)return;let s=Ys.request(()=>{a(void 0)});return()=>{Ys.cancel(s)}},[t,e]),Kt(()=>{if(!e||!t)return;e&&i&&o!=="idle"&&a("starting");let s=Ys.request(()=>{a("idle")});return()=>{Ys.cancel(s)}},[t,e,i,o]),{mounted:i,setMounted:l,transitionStatus:o}}var hd=n(pt(),1);var p_e=(function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e})({});function R5(e={}){let{label:t,metadata:r,textRef:o,indexGuessBehavior:a,index:i}=e,{register:l,unregister:s,subscribeMapChange:c,elementsRef:u,labelsRef:p,nextIndexRef:m}=vU(),d=hd.useRef(-1),[f,h]=hd.useState(i??(a===p_e.GuessFromOrder?()=>{if(d.current===-1){let b=m.current;m.current+=1,d.current=b}return d.current}:-1)),g=hd.useRef(null),v=hd.useCallback(b=>{if(g.current=b,f!==-1&&b!==null&&(u.current[f]=b,p)){let _=t!==void 0;p.current[f]=_?t:o?.current?.textContent??b.textContent}},[f,u,p,t,o]);return Kt(()=>{if(i!=null)return;let b=g.current;if(b)return l(b,r),()=>{s(b)}},[i,l,s,r]),Kt(()=>{if(i==null)return c(b=>{let _=g.current?b.get(g.current)?.index:null;_!=null&&h(_)})},[i,c,h]),{ref:v,index:f}}var gd=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({}),m_e={[gd.startingStyle]:""},d_e={[gd.endingStyle]:""},FU={transitionStatus(e){return e==="starting"?m_e:e==="ending"?d_e:null}};var Bh=n(pt(),1);function HU(){return typeof window<"u"}function UN(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function vd(e){return HU()?e instanceof HTMLElement||e instanceof UN(e).HTMLElement:!1}function jU(e){return!HU()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof UN(e).ShadowRoot}function A5(e){return UN(e).getComputedStyle(e)}var M5=n(pt(),1),GN=M5.createContext(void 0);function z5(e=!1){let t=M5.useContext(GN);if(t===void 0&&!e)throw new Error(xp(16));return t}var UU=n(pt(),1);function GU(e){let{focusableWhenDisabled:t,disabled:r,composite:o=!1,tabIndex:a=0,isNativeButton:i}=e,l=o&&t!==!1,s=o&&t===!1;return{props:UU.useMemo(()=>{let u={onKeyDown(p){r&&t&&p.key!=="Tab"&&p.preventDefault()}};return o||(u.tabIndex=a,!i&&r&&(u.tabIndex=t?a:-1)),(i&&(t||l)||!i&&r)&&(u["aria-disabled"]=r),i&&(!t||s)&&(u.disabled=r),u},[o,r,t,l,s,i,a])}}function $N(e={}){let{disabled:t=!1,focusableWhenDisabled:r,tabIndex:o=0,native:a=!0,composite:i}=e,l=Bh.useRef(null),s=z5(!0),c=i??s!==void 0,{props:u}=GU({focusableWhenDisabled:r,disabled:t,composite:c,tabIndex:o,isNativeButton:a}),p=Bh.useCallback(()=>{let f=l.current;WN(f)&&c&&t&&u.disabled===void 0&&f.disabled&&(f.disabled=!1)},[t,u.disabled,c]);Kt(p,[p]);let m=Bh.useCallback((f={})=>{let{onClick:h,onMouseDown:g,onKeyUp:v,onKeyDown:b,onPointerDown:_,...k}=f;return Zl({onClick(x){if(t){x.preventDefault();return}h?.(x)},onMouseDown(x){t||g?.(x)},onKeyDown(x){if(t||(eb(x),b?.(x),x.baseUIHandlerPrevented))return;let w=x.target===x.currentTarget,C=x.currentTarget,T=WN(C),I=!a&&f_e(C),D=w&&(a?T:!I),L=x.key==="Enter",E=x.key===" ",B=C.getAttribute("role"),A=B?.startsWith("menuitem")||B==="option"||B==="gridcell";if(w&&c&&E){if(x.defaultPrevented&&A)return;x.preventDefault(),I||a&&T?(C.click(),x.preventBaseUIHandler()):D&&(h?.(x),x.preventBaseUIHandler());return}D&&(!a&&(E||L)&&x.preventDefault(),!a&&L&&h?.(x))},onKeyUp(x){if(!t){if(eb(x),v?.(x),x.target===x.currentTarget&&a&&c&&WN(x.currentTarget)&&x.key===" "){x.preventDefault();return}x.baseUIHandlerPrevented||x.target===x.currentTarget&&!a&&!c&&x.key===" "&&h?.(x)}},onPointerDown(x){if(t){x.preventDefault();return}_?.(x)}},a?{type:"button"}:{role:"button"},u,k)},[t,u,c,a]),d=mr(f=>{l.current=f,p()});return{getButtonProps:m,buttonRef:d}}function WN(e){return vd(e)&&e.tagName==="BUTTON"}function f_e(e){return!!(e?.tagName==="A"&&e?.href)}function qN(e){return e?.ownerDocument||document}var YU=n(pt(),1);var ZU=n($U(),1);function qU(e){return e==null?e:"current"in e?e.current:e}function KU(e,t=!1,r=!0){let o=VU();return mr((a,i=null)=>{o.cancel();let l=qU(e);if(l==null)return;let s=l,c=()=>{ZU.flushSync(a)};if(typeof s.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){a();return}function u(){Promise.all(s.getAnimations().map(p=>p.finished)).then(()=>{i?.aborted||c()}).catch(()=>{if(r){i?.aborted||c();return}let p=s.getAnimations();!i?.aborted&&p.length>0&&p.some(m=>m.pending||m.playState!=="finished")&&u()})}if(t){let p=gd.startingStyle;if(!s.hasAttribute(p)){o.request(u);return}let m=new MutationObserver(()=>{s.hasAttribute(p)||(m.disconnect(),u())});m.observe(s,{attributes:!0,attributeFilter:[p]}),i?.addEventListener("abort",()=>m.disconnect(),{once:!0});return}o.request(u)})}function QU(e){let{enabled:t=!0,open:r,ref:o,onComplete:a}=e,i=mr(a),l=KU(o,r,!1);YU.useEffect(()=>{if(!t)return;let s=new AbortController;return l(i,s.signal),()=>{s.abort()}},[t,r,i,l])}function ZN(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function KN(e,t){if(!e||!t)return!1;let r=t.getRootNode?.();if(e.contains(t))return!0;if(r&&jU(r)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function V5(e){return"composedPath"in e?e.composedPath()[0]:e.target}var YN=Math.round;function rb(e,t){return t<0||t>=e.length}function QN(e,t){return bd(e.current,{disabledIndices:t})}function XN(e,t){return bd(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function bd(e,{startingIndex:t=-1,decrement:r=!1,disabledIndices:o,amount:a=1}={}){let i=t;do i+=r?-a:a;while(i>=0&&i<=e.length-1&&ob(e,i,o));return i}function ob(e,t,r){if(typeof r=="function"?r(t):r?.includes(t)??!1)return!0;let a=e[t];return a?g_e(a)?!r&&(a.hasAttribute("disabled")||a.getAttribute("aria-disabled")==="true"):!0:!1}function h_e(e){return e.visibility==="hidden"||e.visibility==="collapse"}function g_e(e,t=e?A5(e):null){return!e||!e.isConnected||!t||h_e(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}var O5=n(pt(),1);function rG(){let[,e]=O5.useState({});return O5.useCallback(()=>{e({})},[])}var Nh="ArrowUp",Dh="ArrowDown",nb="ArrowLeft",ab="ArrowRight",ib="Home",lb="End";var eD=new Set([nb,ab]),nG=new Set([nb,ab,ib,lb]),tD=new Set([Nh,Dh]),aG=new Set([Nh,Dh,ib,lb]),rD=new Set([...eD,...tD]),iG=new Set([...rD,ib,lb]),T_e="Shift",P_e="Control",E_e="Alt",B_e="Meta",lG=new Set([T_e,P_e,E_e,B_e]);function I_e(e){return vd(e)&&e.tagName==="INPUT"}function oD(e){return!!(I_e(e)&&e.selectionStart!=null||vd(e)&&e.tagName==="TEXTAREA")}function nD(e,t,r,o){if(!e||!t||!t.scrollTo)return;let a=e.scrollLeft,i=e.scrollTop,l=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(l&&o!=="vertical"){let c=oG(e,t,"left"),u=F5(e),p=F5(t);r==="ltr"&&(c+t.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight?a=c+t.offsetWidth+p.scrollMarginRight-e.clientWidth+u.scrollPaddingRight:c-p.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft&&(a=c-p.scrollMarginLeft-u.scrollPaddingLeft)),r==="rtl"&&(c-p.scrollMarginRight<e.scrollLeft+u.scrollPaddingLeft?a=c-p.scrollMarginLeft-u.scrollPaddingLeft:c+t.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight&&(a=c+t.offsetWidth+p.scrollMarginRight-e.clientWidth+u.scrollPaddingRight))}if(s&&o!=="horizontal"){let c=oG(e,t,"top"),u=F5(e),p=F5(t);c-p.scrollMarginTop<e.scrollTop+u.scrollPaddingTop?i=c-p.scrollMarginTop-u.scrollPaddingTop:c+t.offsetHeight+p.scrollMarginBottom>e.scrollTop+e.clientHeight-u.scrollPaddingBottom&&(i=c+t.offsetHeight+p.scrollMarginBottom-e.clientHeight+u.scrollPaddingBottom)}e.scrollTo({left:a,top:i,behavior:"auto"})}function oG(e,t,r){let o=r==="left"?"offsetLeft":"offsetTop",a=0;for(;t.offsetParent&&(a+=t[o],t.offsetParent!==e);)t=t.offsetParent;return a}function F5(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function sG(e){return E5(19)?e:e?"true":void 0}var cG=n(pt(),1);function uG(e={}){let{highlightItemOnHover:t,highlightedIndex:r,onHighlightedIndexChange:o}=z5(),{ref:a,index:i}=R5(e),l=r===i,s=cG.useRef(null),c=dd(a,s);return{compositeProps:{tabIndex:l?0:-1,onFocus(){o(i)},onMouseMove(){let p=s.current;if(!t||!p)return;let m=p.hasAttribute("disabled")||p.ariaDisabled==="true";!l&&!m&&p.focus()}},compositeRef:c,index:i}}function aD(e){let t=A5(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,a=vd(e),i=a?e.offsetWidth:r,l=a?e.offsetHeight:o;return(YN(r)!==i||YN(o)!==l)&&(r=i,o=l),{width:r,height:o}}function pG(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}var H5=n(pt(),1),N_e=H5.createContext(void 0),D_e={disableStyleElements:!1};function mG(){return H5.useContext(N_e)??D_e}var fG=n(pt(),1);var Lh=n(pt(),1);var j5="data-composite-item-active";var L_e=[];function dG(e){let{loopFocus:t=!0,orientation:r="both",grid:o,onLoop:a,direction:i,highlightedIndex:l,onHighlightedIndexChange:s,rootRef:c,enableHomeAndEndKeys:u=!1,stopEventPropagation:p=!1,disabledIndices:m,modifierKeys:d=L_e}=e,[f,h]=Lh.useState(0),g=o!=null,v=Lh.useRef(null),b=dd(v,c),_=Lh.useRef([]),k=Lh.useRef(!1),x=l??f,w=mr((L,E=!1)=>{if((s??h)(L),E){let B=_.current[L];nD(v.current,B,i,r)}}),C=mr(L=>{if(L.size===0||k.current)return;k.current=!0;let E=Array.from(L.keys()),B=E.find(z=>z?.hasAttribute(j5))??null,A=B?E.indexOf(B):-1;if(A!==-1)w(A);else if(ob(E,x,m)){let z=bd(E,{disabledIndices:m});rb(E,z)||w(z)}nD(v.current,B,i,r)});Kt(()=>{if(m==null||l!=null||!k.current)return;let L=_.current;if(ob(L,x,m)){let E=bd(L,{disabledIndices:m});rb(L,E)||w(E)}},[m,l,x,_,w]);let T=mr((L,E,B)=>a?a(L,E,B,_):B),I=mr(L=>{let E=u?iG:rD;if(!E.has(L.key)||R_e(L,d)||!v.current)return;let A=i==="rtl",z=A?nb:ab,j={horizontal:z,vertical:Dh,both:z}[r],G=A?ab:nb,W={horizontal:G,vertical:Nh,both:G}[r],$=V5(L.nativeEvent);if($!=null&&oD($)&&!pG($)){let J=$.selectionStart,ce=$.selectionEnd,ie=$.value??"";if(J==null||L.shiftKey||J!==ce||L.key!==W&&J<ie.length||L.key!==j&&J>0)return}let V=x,Q=QN(_,m),Y=XN(_,m);o!=null&&(V=o({disabledIndices:m,elementsRef:_,event:L,highlightedIndex:x,loopFocus:t,maxIndex:Y,minIndex:Q,onLoop:T,orientation:r,rtl:A}));let ee={horizontal:[z],vertical:[Dh],both:[z,Dh]}[r],te={horizontal:[G],vertical:[Nh],both:[G,Nh]}[r],oe=g?E:{horizontal:u?nG:eD,vertical:u?aG:tD,both:E}[r];u&&(L.key===ib?V=Q:L.key===lb&&(V=Y)),V===x&&(ee.includes(L.key)||te.includes(L.key))&&(t&&V===Y&&ee.includes(L.key)?(V=Q,a&&(V=a(L,x,V,_))):t&&V===Q&&te.includes(L.key)?(V=Y,a&&(V=a(L,x,V,_))):V=bd(_.current,{startingIndex:V,decrement:te.includes(L.key),disabledIndices:m})),V!==x&&!rb(_.current,V)&&(p&&L.stopPropagation(),oe.has(L.key)&&L.preventDefault(),w(V,!0),queueMicrotask(()=>{_.current[V]?.focus()}))});return{props:{ref:b,onFocus(L){let E=v.current,B=V5(L.nativeEvent);!E||B==null||!oD(B)||B.setSelectionRange(0,B.value.length??0)},onKeyDown:I},highlightedIndex:x,onHighlightedIndexChange:w,elementsRef:_,disabledIndices:m,onMapChange:C,relayKeyboardEvent:I}}function R_e(e,t){for(let r of lG.values())if(!t.includes(r)&&e.getModifierState(r))return!0;return!1}var iD=n(y(),1);function hG(e){let{render:t,className:r,style:o,refs:a=Xv,props:i=Xv,state:l=Ks,stateAttributesMapping:s,highlightedIndex:c,onHighlightedIndexChange:u,orientation:p,grid:m,loopFocus:d,onLoop:f,enableHomeAndEndKeys:h,onMapChange:g,stopEventPropagation:v=!0,rootRef:b,disabledIndices:_,modifierKeys:k,highlightItemOnHover:x=!1,tag:w="div",...C}=e,T=yU(),{props:I,highlightedIndex:D,onHighlightedIndexChange:L,elementsRef:E,onMapChange:B,relayKeyboardEvent:A}=dG({grid:m,loopFocus:d,onLoop:f,orientation:p,highlightedIndex:c,onHighlightedIndexChange:u,rootRef:b,stopEventPropagation:v,enableHomeAndEndKeys:h,direction:T,disabledIndices:_,modifierKeys:k}),z=cl(w,e,{state:l,ref:a,props:[I,...i,C],stateAttributesMapping:s}),j=fG.useMemo(()=>({highlightedIndex:D,onHighlightedIndexChange:L,highlightItemOnHover:x,relayKeyboardEvent:A}),[D,L,x,A]);return(0,iD.jsx)(GN.Provider,{value:j,children:(0,iD.jsx)(T5,{elementsRef:E,onMapChange:G=>{g?.(G),B(G)},children:z})})}var gG=n(tG(),1);function A_e(){return MN}function M_e(){return!1}function z_e(){return!0}function vG(){return(0,gG.useSyncExternalStore)(A_e,M_e,z_e)}var Ql={};K(Ql,{Indicator:()=>wG,List:()=>TG,Panel:()=>SG,Root:()=>_G,Tab:()=>xG});var Zr=n(pt(),1);var U5=n(pt(),1),lD=U5.createContext(void 0);function kp(){let e=U5.useContext(lD);if(e===void 0)throw new Error(xp(64));return e}var bG=(function(e){return e.activationDirection="data-activation-direction",e.orientation="data-orientation",e})({});var Qs={tabActivationDirection:e=>({[bG.activationDirection]:e})};var sD=n(y(),1),_G=Zr.forwardRef(function(t,r){let{className:o,defaultValue:a=0,onValueChange:i,orientation:l="horizontal",render:s,value:c,style:u,...p}=t,m=t.defaultValue!==void 0,d=Zr.useRef([]),[f,h]=Zr.useState(()=>new Map),[g,v]=dU({controlled:c,default:a,name:"Tabs",state:"value"}),b=c!==void 0,[_,k]=Zr.useState(()=>new Map),x=Zr.useRef(void 0),w=Zr.useCallback(se=>{if(se===void 0)return null;for(let[de,ge]of _.entries())if(ge!=null&&se===(ge.value??ge.index))return de;return null},[_]),[C,T]=Zr.useState(()=>({previousValue:g,tabActivationDirection:"none"})),{previousValue:I,tabActivationDirection:D}=C,L=D,E=!1;I!==g&&(L=yG(I,g,l,_),E=I!=null&&g!=null&&w(g)==null);let B=E?I:g,A=I!==B||D!==L;Kt(()=>{A&&T({previousValue:B,tabActivationDirection:L})},[B,A,L]);let z=mr((se,de)=>{let ge=yG(g,se,l,_);de.activationDirection=ge,i?.(se,de),!de.isCanceled&&v(se)}),j=mr((se,de)=>{i?.(se,tb(de,void 0,void 0,{activationDirection:"none"}))}),G=mr((se,de)=>{h(ge=>{if(ge.get(se)===de)return ge;let ne=new Map(ge);return ne.set(se,de),ne})}),W=mr((se,de)=>{h(ge=>{if(!ge.has(se)||ge.get(se)!==de)return ge;let ne=new Map(ge);return ne.delete(se),ne})}),$=Zr.useCallback(se=>f.get(se),[f]),V=Zr.useCallback(se=>{for(let de of _.values())if(se===de?.value)return de?.id},[_]),Q=Zr.useMemo(()=>({getTabElementBySelectedValue:w,getTabIdByPanelValue:V,getTabPanelIdByValue:$,onValueChange:z,orientation:l,registerMountedTabPanel:G,setTabMap:k,unregisterMountedTabPanel:W,tabActivationDirection:L,value:g}),[w,V,$,z,l,G,k,W,L,g]),Y=Zr.useMemo(()=>{for(let se of _.values())if(se!=null&&se.value===g)return se},[_,g]),ee=Zr.useMemo(()=>{for(let se of _.values())if(se!=null&&!se.disabled)return se.value},[_]),te=Zr.useRef(!m),oe=Zr.useRef(a),J=Zr.useRef(m),ce=Zr.useRef(!1);Kt(()=>{if(b)return;function se(me,le){v(me),T(Pe=>Pe.previousValue===me&&Pe.tabActivationDirection==="none"?Pe:{previousValue:me,tabActivationDirection:"none"}),j(me,le),te.current=!1}if(_.size===0){ce.current&&g!==null&&!x.current?.isConnected&&se(null,Kl.missing);return}ce.current=!0,x.current=_.keys().next().value;let de=Y?.disabled,ge=Y==null&&g!==null;if(!de&&g===oe.current&&(J.current=!1),J.current&&de&&g===oe.current)return;let ne=te.current;if(de||ge){let me=ee??null;if(g===me){te.current=!1;return}let le=Kl.missing;ne?le=Kl.initial:de&&(le=Kl.disabled),se(me,le);return}ne&&Y!=null&&(j(g,Kl.initial),te.current=!1)},[ee,b,j,Y,v,_,g]);let we=cl("div",t,{state:{orientation:l,tabActivationDirection:L},ref:r,props:p,stateAttributesMapping:Qs});return(0,sD.jsx)(lD.Provider,{value:Q,children:(0,sD.jsx)(T5,{elementsRef:d,children:we})})});function yG(e,t,r,o){if(e==null||t==null)return"none";let a=null,i=null;for(let[c,u]of o.entries()){if(u==null)continue;let p=u.value??u.index;if(e===p&&(a=c),t===p&&(i=c),a!=null&&i!=null)break}if(a==null||i==null)return a!==i&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?r==="horizontal"?t>e?"right":"left":t>e?"down":"up":"none";let l=a.getBoundingClientRect(),s=i.getBoundingClientRect();if(r==="horizontal"){if(s.left<l.left)return"left";if(s.left>l.left)return"right"}else{if(s.top<l.top)return"up";if(s.top>l.top)return"down"}return"none"}var cu=n(pt(),1);var G5=n(pt(),1),cD=G5.createContext(void 0);function W5(){let e=G5.useContext(cD);if(e===void 0)throw new Error(xp(65));return e}var xG=cu.forwardRef(function(t,r){let{className:o,disabled:a=!1,render:i,value:l,id:s,nativeButton:c=!0,style:u,...p}=t,{value:m,getTabPanelIdByValue:d,orientation:f,tabActivationDirection:h}=kp(),{activateOnFocus:g,highlightedTabIndex:v,onTabActivation:b,registerTabResizeObserverElement:_,setHighlightedTabIndex:k,tabsListElement:x}=W5(),w=N5(s),C=cu.useMemo(()=>({disabled:a,id:w,value:l}),[a,w,l]),{compositeProps:T,compositeRef:I,index:D}=uG({metadata:C}),L=l===m,E=cu.useRef(!1),B=cu.useRef(null);Kt(()=>{let te=B.current;if(te)return _(te)},[_]),Kt(()=>{if(E.current){E.current=!1;return}if(!(L&&D>-1&&v!==D))return;let te=x;if(te!=null){let oe=ZN(qN(te));if(oe&&KN(te,oe))return}a||k(D)},[L,D,v,k,a,x]);let{getButtonProps:A,buttonRef:z}=$N({disabled:a,native:c,focusableWhenDisabled:!0}),j=d(l),G=cu.useRef(!1),W=cu.useRef(!1);function $(te){L||a||b(l,tb(Kl.none,te.nativeEvent,void 0,{activationDirection:"none"}))}function V(te){L||(D>-1&&!a&&k(D),!a&&g&&(!G.current||G.current&&W.current)&&b(l,tb(Kl.none,te.nativeEvent,void 0,{activationDirection:"none"})))}function Q(te){if(L||a)return;G.current=!0;function oe(){G.current=!1,W.current=!1}(!te.button||te.button===0)&&(W.current=!0,qN(te.currentTarget).addEventListener("pointerup",oe,{once:!0}))}return cl("button",t,{state:{disabled:a,active:L,orientation:f,tabActivationDirection:h},ref:[r,z,I,B],props:[T,{role:"tab","aria-controls":j,"aria-selected":L,id:w,onClick:$,onFocus:V,onPointerDown:Q,[j5]:L?"":void 0,onKeyDownCapture(){E.current=!0}},p,A],stateAttributesMapping:Qs})});var Rh=n(pt(),1);var kG='!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();';var yd=(function(e){return e.activeTabLeft="--active-tab-left",e.activeTabRight="--active-tab-right",e.activeTabTop="--active-tab-top",e.activeTabBottom="--active-tab-bottom",e.activeTabWidth="--active-tab-width",e.activeTabHeight="--active-tab-height",e})({});var $5=n(y(),1),V_e={...Qs,activeTabPosition:()=>null,activeTabSize:()=>null},wG=Rh.forwardRef(function(t,r){let{className:o,render:a,renderBeforeHydration:i=!1,style:l,...s}=t,{nonce:c}=mG(),{getTabElementBySelectedValue:u,orientation:p,tabActivationDirection:m,value:d}=kp(),{tabsListElement:f,registerIndicatorUpdateListener:h}=W5(),g=vG(),v=rG();Rh.useEffect(()=>h(v),[h,v]);let b=0,_=0,k=0,x=0,w=0,C=0,T=!1;if(d!=null&&f!=null){let z=u(d);if(z!=null){T=!0;let{width:j,height:G}=aD(z),{width:W,height:$}=aD(f),V=z.getBoundingClientRect(),Q=f.getBoundingClientRect(),Y=W>0?Q.width/W:1,ee=$>0?Q.height/$:1;if(Math.abs(Y)>Number.EPSILON&&Math.abs(ee)>Number.EPSILON){let oe=V.left-Q.left,J=V.top-Q.top;b=oe/Y+f.scrollLeft-f.clientLeft,k=J/ee+f.scrollTop-f.clientTop}else b=z.offsetLeft,k=z.offsetTop;w=j,C=G,_=f.scrollWidth-b-w,x=f.scrollHeight-k-C}}let I=T?{left:b,right:_,top:k,bottom:x}:null,D=T?{width:w,height:C}:null,L=T?{[yd.activeTabLeft]:`${b}px`,[yd.activeTabRight]:`${_}px`,[yd.activeTabTop]:`${k}px`,[yd.activeTabBottom]:`${x}px`,[yd.activeTabWidth]:`${w}px`,[yd.activeTabHeight]:`${C}px`}:void 0,E=T&&w>0&&C>0,A=cl("span",t,{state:{orientation:p,activeTabPosition:I,activeTabSize:D,tabActivationDirection:m},ref:r,props:[{role:"presentation",style:L,hidden:!E},s,{suppressHydrationWarning:!0}],stateAttributesMapping:V_e});return d==null?null:(0,$5.jsxs)(Rh.Fragment,{children:[A,g&&i&&(0,$5.jsx)("script",{nonce:c,dangerouslySetInnerHTML:{__html:kG},suppressHydrationWarning:!0})]})});var Ah=n(pt(),1);var CG=(function(e){return e.index="data-index",e.activationDirection="data-activation-direction",e.orientation="data-orientation",e.hidden="data-hidden",e[e.startingStyle=gd.startingStyle]="startingStyle",e[e.endingStyle=gd.endingStyle]="endingStyle",e})({});var O_e={...Qs,...FU},SG=Ah.forwardRef(function(t,r){let{className:o,value:a,render:i,keepMounted:l=!1,style:s,...c}=t,{value:u,getTabIdByPanelValue:p,orientation:m,tabActivationDirection:d,registerMountedTabPanel:f,unregisterMountedTabPanel:h}=kp(),g=N5(),v=Ah.useMemo(()=>({id:g,value:a}),[g,a]),{ref:b,index:_}=R5({metadata:v}),k=a===u,{mounted:x,transitionStatus:w,setMounted:C}=OU(k),T=!x,I=p(a),D={hidden:T,orientation:m,tabActivationDirection:d,transitionStatus:w},L=Ah.useRef(null),E=cl("div",t,{state:D,ref:[r,b,L],props:[{"aria-labelledby":I,hidden:T,id:g,role:"tabpanel",tabIndex:k?0:-1,inert:sG(!k),[CG.index]:_},c],stateAttributesMapping:O_e});return QU({open:k,ref:L,onComplete(){k||C(!1)}}),Kt(()=>{if(!(T&&!l)&&g!=null)return f(a,g),()=>{h(a,g)}},[T,l,a,g,f,h]),l||x?E:null});var Yl=n(pt(),1);var uD=n(y(),1),TG=Yl.forwardRef(function(t,r){let{activateOnFocus:o=!1,className:a,loopFocus:i=!0,render:l,style:s,...c}=t,{onValueChange:u,orientation:p,value:m,setTabMap:d,tabActivationDirection:f}=kp(),[h,g]=Yl.useState(0),[v,b]=Yl.useState(null),_=Yl.useRef(new Set),k=Yl.useRef(new Set),x=Yl.useRef(null);Kt(()=>{if(typeof ResizeObserver>"u")return;let E=new ResizeObserver(()=>{_.current.forEach(B=>{B()})});return x.current=E,v&&E.observe(v),k.current.forEach(B=>{E.observe(B)}),()=>{E.disconnect(),x.current=null}},[v]);let w=mr(E=>(_.current.add(E),()=>{_.current.delete(E)})),C=mr(E=>(k.current.add(E),x.current?.observe(E),()=>{k.current.delete(E),x.current?.unobserve(E)})),T=mr((E,B)=>{E!==m&&u(E,B)}),I={orientation:p,tabActivationDirection:f},D={"aria-orientation":p==="vertical"?"vertical":void 0,role:"tablist"},L=Yl.useMemo(()=>({activateOnFocus:o,highlightedTabIndex:h,registerIndicatorUpdateListener:w,registerTabResizeObserverElement:C,onTabActivation:T,setHighlightedTabIndex:g,tabsListElement:v}),[o,h,w,C,T,g,v]);return(0,uD.jsx)(cD.Provider,{value:L,children:(0,uD.jsx)(hG,{render:l,className:a,style:s,state:I,refs:[r,b],props:[D,c],stateAttributesMapping:Qs,highlightedIndex:h,enableHomeAndEndKeys:!0,loopFocus:i,orientation:p,onHighlightedIndexChange:g,onMapChange:d,disabledIndices:Xv})})});function Mh(e){return cl(e.defaultTagName??"div",e,e)}var EG=n(H(),1),BG=n(M(),1),IG=n(y(),1),pD=(0,EG.forwardRef)(function({icon:t,size:r=24,...o},a){return(0,IG.jsx)(BG.SVG,{ref:a,...t.props,...o,width:r,height:r})});var NG=n(H(),1),mD="data-wp-hash";function dD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&H_e(document)),e.__wpStyleRuntime}function F_e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${mD}]`))if(r.getAttribute(mD)===t)return!0;return!1}function DG(e,t,r){if(!e.head)return;let o=dD(),a=o.injectedStyles.get(e);if(a||(a=new Set,o.injectedStyles.set(e,a)),a.has(t))return;if(F_e(e,t)){a.add(t);return}let i=e.createElement("style");i.setAttribute(mD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),a.add(t)}function H_e(e){let t=dD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)DG(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 j_e(e,t){let r=dD();r.styles.set(e,t);for(let o of r.documents.keys())DG(o,e,t)}typeof process>"u",j_e("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var U_e={stack:"_19ce0419607e1896__stack"},G_e={xs:"var(--wpds-dimension-gap-xs, 4px)",sm:"var(--wpds-dimension-gap-sm, 8px)",md:"var(--wpds-dimension-gap-md, 12px)",lg:"var(--wpds-dimension-gap-lg, 16px)",xl:"var(--wpds-dimension-gap-xl, 24px)","2xl":"var(--wpds-dimension-gap-2xl, 32px)","3xl":"var(--wpds-dimension-gap-3xl, 40px)"},wp=(0,NG.forwardRef)(function({direction:t,gap:r,align:o,justify:a,wrap:i,render:l,...s},c){let u={gap:r&&G_e[r],alignItems:o,justifyContent:a,flexDirection:t,flexWrap:i};return Mh({render:l,ref:c,props:Zl(s,{style:u,className:U_e.stack})})});var Cp=n(H(),1);function LG(e){let t=(0,Cp.useRef)(e);t.current=e;let r=(0,Cp.useRef)(null),o=(0,Cp.useRef)(!1),a=(0,Cp.useCallback)(()=>{o.current||(r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{t.current(),r.current=null},0))},[]);return(0,Cp.useEffect)(()=>(o.current=!1,()=>{o.current=!0,r.current&&clearTimeout(r.current)}),[]),a}var RG=n(H(),1),fD="data-wp-hash";function hD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&$_e(document)),e.__wpStyleRuntime}function W_e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${fD}]`))if(r.getAttribute(fD)===t)return!0;return!1}function AG(e,t,r){if(!e.head)return;let o=hD(),a=o.injectedStyles.get(e);if(a||(a=new Set,o.injectedStyles.set(e,a)),a.has(t))return;if(W_e(e,t)){a.add(t);return}let i=e.createElement("style");i.setAttribute(fD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),a.add(t)}function $_e(e){let t=hD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)AG(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 q_e(e,t){let r=hD();r.styles.set(e,t);for(let o of r.documents.keys())AG(o,e,t)}typeof process>"u",q_e("fa606a57ae","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer 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 Z_e={"visually-hidden":"f37b9e2e191ebd66__visually-hidden"},gi=(0,RG.forwardRef)(function({render:t,...r},o){return Mh({render:t,ref:o,props:Zl({className:Z_e["visually-hidden"]},r,{"data-visually-hidden":""})})});var MG=n(H(),1),zG=n(N(),1),Vh=n(y(),1),gD="data-wp-hash";function vD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Y_e(document)),e.__wpStyleRuntime}function K_e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${gD}]`))if(r.getAttribute(gD)===t)return!0;return!1}function VG(e,t,r){if(!e.head)return;let o=vD(),a=o.injectedStyles.get(e);if(a||(a=new Set,o.injectedStyles.set(e,a)),a.has(t))return;if(K_e(e,t)){a.add(t);return}let i=e.createElement("style");i.setAttribute(gD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),a.add(t)}function Y_e(e){let t=vD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)VG(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 Z5(e,t){let r=vD();r.styles.set(e,t);for(let o of r.documents.keys())VG(o,e,t)}typeof process>"u",Z5("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Q_e={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",Z5("5f8e7aa0bc","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var X_e={"outset-ring--focus":"_08e8a2e44959f892__outset-ring--focus","outset-ring--focus-except-active":"e25b2bdd7aa21721__outset-ring--focus-except-active","outset-ring--focus-visible":"d0541bc9dd9dc7b6__outset-ring--focus-visible","outset-ring--focus-within":"cd83dfc2126a0846__outset-ring--focus-within","outset-ring--focus-within-except-active":"_970d04df7376df67__outset-ring--focus-within-except-active","outset-ring--focus-within-visible":"c5cb3ee4bddaa8e4__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"ecadb9e080e2dfa5__outset-ring--focus-parent-visible"};typeof process>"u",Z5("e8e6a9be37",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}}');var q5={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","link-icon":"_0cb411afac4c86c7__link-icon"};typeof process>"u",Z5("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var J_e={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},uu=(0,MG.forwardRef)(function({children:t,variant:r="default",tone:o="brand",openInNewTab:a=!1,render:i,className:l,...s},c){return Mh({render:i,defaultTagName:"a",ref:c,props:Zl(s,{className:S(J_e.a,Q_e["box-sizing"],X_e["outset-ring--focus-except-active"],r!=="unstyled"&&q5.link,r!=="unstyled"&&q5[`is-${o}`],r==="unstyled"&&q5["is-unstyled"],l),target:a?"_blank":void 0,children:(0,Vh.jsxs)(Vh.Fragment,{children:[t,a&&(0,Vh.jsx)("span",{className:q5["link-icon"],role:"img","aria-label":(0,zG.__)("(opens in a new tab)")})]})})})});var Sp={};K(Sp,{List:()=>jG,Panel:()=>YG,Root:()=>XG,Tab:()=>tW});var _d=n(H(),1);var FG=n(ve(),1),K5=n(y(),1),bD="data-wp-hash";function yD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&txe(document)),e.__wpStyleRuntime}function exe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${bD}]`))if(r.getAttribute(bD)===t)return!0;return!1}function HG(e,t,r){if(!e.head)return;let o=yD(),a=o.injectedStyles.get(e);if(a||(a=new Set,o.injectedStyles.set(e,a)),a.has(t))return;if(exe(e,t)){a.add(t);return}let i=e.createElement("style");i.setAttribute(bD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),a.add(t)}function txe(e){let t=yD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)HG(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 rxe(e,t){let r=yD();r.styles.set(e,t);for(let o of r.documents.keys())HG(o,e,t)}typeof process>"u",rxe("bb8cbb8f31",`@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-factor:1;--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-factor:-1;--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&._9f2ac729c68a735a__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._9f2ac729c68a735a__is-overflowing-first._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._59228b5227f38a99__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._1c37dcfaa1ad8cda__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height,border-radius,border-block;transition-timing-function:ease-out}outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;&[data-orientation=horizontal]{background-color:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width);z-index:1}&[data-orientation=vertical]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-radius:var(--wpds-border-radius-sm,2px);height:var(--active-tab-height);left:50%;top:0;translate:-50% var(--active-tab-top);width:100%;z-index:0}._7313adbc8a112e90__tablist[data-select-on-move=true]:has(:focus-visible)
			&[data-orientation=vertical]{border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));box-sizing:border-box}}.a5fd8814f195aa5e__tab{align-items:center;background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;flex:1 0 auto;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;line-height:1.2;outline:none;padding:0;position:relative;white-space:nowrap;z-index:1;&[data-disabled]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);cursor:default;@media (forced-colors:active){color:GrayText}}&:not([data-disabled]):is(:hover,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}&:after{border-radius:var(--wpds-border-radius-sm,2px);opacity:0;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));pointer-events:none;position:absolute;z-index:-1;@media not (prefers-reduced-motion){transition:opacity .1s linear}}&:focus-visible:after{opacity:1}[data-orientation=horizontal] &{height:48px;padding-inline:var(--wpds-dimension-padding-lg,16px);scroll-margin:24px;&:after{content:"";inset:var(--wpds-dimension-padding-md,12px)}}._59228b5227f38a99__is-minimal-variant[data-orientation=horizontal] &{padding-inline:0;&:after{inset-inline:round(up,var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)),1px)}}[data-orientation=vertical] &{min-height:var(--wpds-dimension-size-lg,40px);padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-md,12px)}[data-orientation=vertical][data-select-on-move=false] &:after{content:"";inset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}._5dfc77e6edd345d4__tab-children{align-items:center;display:flex;flex-grow:1;[data-orientation=horizontal] &{justify-content:center}[data-orientation=vertical] &{justify-content:start}}._4a20e969d15e5ac1__tab-chevron{flex-shrink:0;margin-inline-end:calc(var(--wpds-dimension-gap-xs, 4px)*-1);opacity:0;[data-orientation=horizontal] &{display:none}[role=tab]:is([aria-selected=true],:focus-visible,:hover) &{opacity:1}@media not (prefers-reduced-motion){[data-select-on-move=true]
				[role=tab]:is([aria-selected=true])
				&{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}`);var sb={tablist:"_7313adbc8a112e90__tablist","is-overflowing-first":"_9f2ac729c68a735a__is-overflowing-first","is-overflowing-last":"_81c799c1f3cdd261__is-overflowing-last","is-minimal-variant":"_59228b5227f38a99__is-minimal-variant",indicator:"_1c37dcfaa1ad8cda__indicator",tab:"a5fd8814f195aa5e__tab","tab-children":"_5dfc77e6edd345d4__tab-children","tab-chevron":"_4a20e969d15e5ac1__tab-chevron"},OG=1,jG=(0,_d.forwardRef)(function({children:t,variant:r="default",className:o,activateOnFocus:a,...i},l){let[s,c]=(0,_d.useState)(null),[u,p]=(0,_d.useState)({first:!1,last:!1,isScrolling:!1});(0,_d.useEffect)(()=>{if(!s)return;let d=()=>{let{scrollWidth:_,clientWidth:k,scrollLeft:x}=s,w=Math.max(_-k,0),T=(s.dir||(typeof window<"u"?window.getComputedStyle(s).direction:"ltr"))==="rtl"&&x<0?-x:x,I={first:T>OG,last:T<w-OG,isScrolling:_>k};p(D=>D.first===I.first&&D.last===I.last&&D.isScrolling===I.isScrolling?D:I)},f=new ResizeObserver(d),h=()=>{f.disconnect(),f.observe(s),s.querySelectorAll('[role="tab"]').forEach(_=>f.observe(_))},g=new MutationObserver(h);g.observe(s,{childList:!0,subtree:!0});let v=!1,b=()=>{v||(requestAnimationFrame(()=>{d(),v=!1}),v=!0)};return s.addEventListener("scroll",b,{passive:!0}),h(),d(),()=>{s.removeEventListener("scroll",b),f.disconnect(),g.disconnect()}},[s]);let m=(0,FG.useMergeRefs)([l,d=>c(d)]);return(0,K5.jsxs)(Ql.List,{ref:m,activateOnFocus:a,"data-select-on-move":a?"true":"false",className:S(sb.tablist,u.first&&sb["is-overflowing-first"],u.last&&sb["is-overflowing-last"],sb[`is-${r}-variant`],o),...i,tabIndex:i.tabIndex??(u.isScrolling?-1:void 0),children:[t,(0,K5.jsx)(Ql.Indicator,{className:sb.indicator})]})});var $G=n(H(),1);var Bn=n(H(),1);var cb=n(y(),1),Y5=!1,_D=Y5?(0,Bn.createContext)(null):null;function oxe(){let e=(0,Bn.useContext)(_D);(0,Bn.useEffect)(()=>{if(e)return e.registerTab()},[e])}function nxe(){}var UG=Y5?oxe:nxe;function axe(){let e=(0,Bn.useContext)(_D);(0,Bn.useEffect)(()=>{if(e)return e.registerPanel()},[e])}function ixe(){}var GG=Y5?axe:ixe;function lxe({children:e}){let t=(0,Bn.useRef)(0),r=(0,Bn.useRef)(0),o=LG(()=>{let s=t.current,c=r.current;if(s!==c)throw new Error(`Tabs: Tab/Panel count mismatch (${s} Tabs, ${c} Panels). Each Tab must be associated with exactly one Panel. Mismatched or missing associations can break screen reader navigation and violate WAI-ARIA Tabs pattern requirements.`)}),a=(0,Bn.useCallback)(()=>(t.current+=1,o(),()=>{t.current-=1,o()}),[o]),i=(0,Bn.useCallback)(()=>(r.current+=1,o(),()=>{r.current-=1,o()}),[o]),l=(0,Bn.useMemo)(()=>({registerTab:a,registerPanel:i}),[a,i]);return(0,cb.jsx)(_D.Provider,{value:l,children:e})}function sxe({children:e}){return(0,cb.jsx)(cb.Fragment,{children:e})}var WG=Y5?lxe:sxe;var KG=n(y(),1),xD="data-wp-hash";function kD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&uxe(document)),e.__wpStyleRuntime}function cxe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${xD}]`))if(r.getAttribute(xD)===t)return!0;return!1}function qG(e,t,r){if(!e.head)return;let o=kD(),a=o.injectedStyles.get(e);if(a||(a=new Set,o.injectedStyles.set(e,a)),a.has(t))return;if(cxe(e,t)){a.add(t);return}let i=e.createElement("style");i.setAttribute(xD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),a.add(t)}function uxe(e){let t=kD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)qG(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 ZG(e,t){let r=kD();r.styles.set(e,t);for(let o of r.documents.keys())qG(o,e,t)}typeof process>"u",ZG("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var pxe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"};typeof process>"u",ZG("5f8e7aa0bc","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var mxe={"outset-ring--focus":"_08e8a2e44959f892__outset-ring--focus","outset-ring--focus-except-active":"e25b2bdd7aa21721__outset-ring--focus-except-active","outset-ring--focus-visible":"d0541bc9dd9dc7b6__outset-ring--focus-visible","outset-ring--focus-within":"cd83dfc2126a0846__outset-ring--focus-within","outset-ring--focus-within-except-active":"_970d04df7376df67__outset-ring--focus-within-except-active","outset-ring--focus-within-visible":"c5cb3ee4bddaa8e4__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"ecadb9e080e2dfa5__outset-ring--focus-parent-visible"},YG=(0,$G.forwardRef)(function({className:t,...r},o){return GG(),(0,KG.jsx)(Ql.Panel,{ref:o,className:S(pxe.div,mxe["outset-ring--focus-visible"],t),...r})});var QG=n(H(),1);var wD=n(y(),1),XG=(0,QG.forwardRef)(function({...t},r){return(0,wD.jsx)(WG,{children:(0,wD.jsx)(Ql.Root,{ref:r,...t})})});var JG=n(H(),1);var ub=n(y(),1),SD="data-wp-hash";function TD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&fxe(document)),e.__wpStyleRuntime}function dxe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${SD}]`))if(r.getAttribute(SD)===t)return!0;return!1}function eW(e,t,r){if(!e.head)return;let o=TD(),a=o.injectedStyles.get(e);if(a||(a=new Set,o.injectedStyles.set(e,a)),a.has(t))return;if(dxe(e,t)){a.add(t);return}let i=e.createElement("style");i.setAttribute(SD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),a.add(t)}function fxe(e){let t=TD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)eW(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 hxe(e,t){let r=TD();r.styles.set(e,t);for(let o of r.documents.keys())eW(o,e,t)}typeof process>"u",hxe("bb8cbb8f31",`@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-factor:1;--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-factor:-1;--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&._9f2ac729c68a735a__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._9f2ac729c68a735a__is-overflowing-first._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._59228b5227f38a99__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._1c37dcfaa1ad8cda__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height,border-radius,border-block;transition-timing-function:ease-out}outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;&[data-orientation=horizontal]{background-color:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width);z-index:1}&[data-orientation=vertical]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-radius:var(--wpds-border-radius-sm,2px);height:var(--active-tab-height);left:50%;top:0;translate:-50% var(--active-tab-top);width:100%;z-index:0}._7313adbc8a112e90__tablist[data-select-on-move=true]:has(:focus-visible)
			&[data-orientation=vertical]{border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));box-sizing:border-box}}.a5fd8814f195aa5e__tab{align-items:center;background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;flex:1 0 auto;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;line-height:1.2;outline:none;padding:0;position:relative;white-space:nowrap;z-index:1;&[data-disabled]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);cursor:default;@media (forced-colors:active){color:GrayText}}&:not([data-disabled]):is(:hover,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}&:after{border-radius:var(--wpds-border-radius-sm,2px);opacity:0;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));pointer-events:none;position:absolute;z-index:-1;@media not (prefers-reduced-motion){transition:opacity .1s linear}}&:focus-visible:after{opacity:1}[data-orientation=horizontal] &{height:48px;padding-inline:var(--wpds-dimension-padding-lg,16px);scroll-margin:24px;&:after{content:"";inset:var(--wpds-dimension-padding-md,12px)}}._59228b5227f38a99__is-minimal-variant[data-orientation=horizontal] &{padding-inline:0;&:after{inset-inline:round(up,var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)),1px)}}[data-orientation=vertical] &{min-height:var(--wpds-dimension-size-lg,40px);padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-md,12px)}[data-orientation=vertical][data-select-on-move=false] &:after{content:"";inset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}._5dfc77e6edd345d4__tab-children{align-items:center;display:flex;flex-grow:1;[data-orientation=horizontal] &{justify-content:center}[data-orientation=vertical] &{justify-content:start}}._4a20e969d15e5ac1__tab-chevron{flex-shrink:0;margin-inline-end:calc(var(--wpds-dimension-gap-xs, 4px)*-1);opacity:0;[data-orientation=horizontal] &{display:none}[role=tab]:is([aria-selected=true],:focus-visible,:hover) &{opacity:1}@media not (prefers-reduced-motion){[data-select-on-move=true]
				[role=tab]:is([aria-selected=true])
				&{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}`);var CD={tablist:"_7313adbc8a112e90__tablist","is-overflowing-first":"_9f2ac729c68a735a__is-overflowing-first","is-overflowing-last":"_81c799c1f3cdd261__is-overflowing-last","is-minimal-variant":"_59228b5227f38a99__is-minimal-variant",indicator:"_1c37dcfaa1ad8cda__indicator",tab:"a5fd8814f195aa5e__tab","tab-children":"_5dfc77e6edd345d4__tab-children","tab-chevron":"_4a20e969d15e5ac1__tab-chevron"},tW=(0,JG.forwardRef)(function({className:t,children:r,...o},a){return UG(),(0,ub.jsxs)(Ql.Tab,{ref:a,className:S(CD.tab,t),...o,children:[(0,ub.jsx)("span",{className:CD["tab-children"],children:r}),(0,ub.jsx)(pD,{icon:gh,className:CD["tab-chevron"]})]})});var Q5="noopener",X5="_blank",Oh="nofollow";var rW=n(pr(),1);function oW({rel:e="",url:t="",opensInNewTab:r,nofollow:o}){let a,i=e;if(r)a=X5,i=i?.includes(Q5)?i:i+` ${Q5}`;else{let l=new RegExp(`\\b${Q5}\\s*`,"g");i=i?.replace(l,"").trim()}if(o)i=i?.includes(Oh)?i:(i+` ${Oh}`).trim();else{let l=new RegExp(`\\b${Oh}\\s*`,"g");i=i?.replace(l,"").trim()}return{url:(0,rW.prependHTTPS)(t),linkTarget:a,rel:i||void 0}}function pb(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}var aW=n(ve(),1),J5=n(H(),1),iW=n(xd(),1),lW=n(F(),1),sW=n(P(),1);function Ct(e){let{name:t,attributes:r,setAttributes:o}=e,{textAlign:a}=r,{__unstableMarkNextChangeAsNotPersistent:i}=(0,lW.useDispatch)(sW.store),l=(0,aW.useEvent)(()=>{(0,iW.default)(`textAlign attribute in ${t}`,{alternative:"style.typography.textAlign",since:"7.0"}),i(),o(c=>({style:{...c.style,typography:{...c.style?.typography,textAlign:a}}}))}),s=(0,J5.useRef)();(0,J5.useEffect)(()=>{a!==s.current&&(s.current=a,l())},[a,l])}function PD(e){return typeof e=="string"&&e.endsWith("%")}function cW(e){if(!e)return{};if(PD(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 In=n(y(),1),{HTMLElementControl:gxe}=U(mt.privateApis),{subscribeDelegatedListener:vxe}=U(kd.privateApis),bxe=[...mt.LinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,ul.__)("Mark as nofollow")}];function yxe(e){let{replaceBlocks:t,selectionChange:r}=(0,mb.useDispatch)(mt.store),{getBlock:o,getBlockAttributes:a,getBlockRootClientId:i,getBlockIndex:l}=(0,mb.useSelect)(mt.store);return(0,kd.useRefEffect)(s=>{function c(u){if(u.defaultPrevented||u.keyCode!==Tp.ENTER)return;let{text:p}=a(e)??{};if(p?.length)return;u.preventDefault();let m=o(i(e)),d=l(e),f=(0,pu.cloneBlock)({...m,innerBlocks:m.innerBlocks.slice(0,d)}),h=(0,pu.createBlock)((0,pu.getDefaultBlockName)()),g=m.innerBlocks.slice(d+1),v=g.length?[(0,pu.cloneBlock)({...m,innerBlocks:g})]:[];t(m.clientId,[f,h,...v],1),r(h.clientId)}return vxe(s,"keydown",c,!0)},[])}function _xe(e){let{attributes:t,setAttributes:r,className:o,isSelected:a,onReplace:i,mergeBlocks:l,clientId:s,context:c}=e,{tagName:u,linkTarget:p,placeholder:m,rel:d,style:f,text:h,url:g,metadata:v}=t,b=f?.dimensions?.width;Ct(e);let _=u||"a";function k(fe){Tp.isKeyboardEvent.primary(fe,"k")?ce(fe):Tp.isKeyboardEvent.primaryShift(fe,"k")&&(ie(),B.current?.focus())}let[x,w]=(0,Nn.useState)(null),C=(0,mt.__experimentalUseBorderProps)(t),T=(0,mt.__experimentalUseColorProps)(t),I=(0,mt.__experimentalGetSpacingClassesAndStyles)(t),D=(0,mt.__experimentalGetShadowClassesAndStyles)(t),L=(0,mt.__experimentalGetDimensionsClassesAndStyles)(t),E=(0,Nn.useRef)(),B=(0,Nn.useRef)(),A=(0,mt.useBlockProps)({ref:(0,kd.useMergeRefs)([w,E]),onKeyDown:k}),z=(0,mt.useBlockEditingMode)(),[j,G]=(0,Nn.useState)(!1),W=!!g,$=p===X5,V=!!d?.includes(Oh),Q=_==="a",{createPageEntity:Y,userCanCreatePages:ee,lockUrlControls:te=!1}=(0,mb.useSelect)(fe=>{if(!a)return{};let Ae=fe(mt.store).getSettings(),Ft=(0,pu.getBlockBindingsSource)(v?.bindings?.url?.source);return{createPageEntity:Ae.__experimentalCreatePageEntity,userCanCreatePages:Ae.__experimentalUserCanCreatePages,lockUrlControls:!!v?.bindings?.url&&!Ft?.canUserEditValue?.({select:fe,context:c,args:v?.bindings?.url?.args})}},[c,a,v?.bindings?.url]);async function oe(fe){let Ae=await Y({title:fe,status:"draft"});return{id:Ae.id,type:Ae.type,title:Ae.title.rendered,url:Ae.link,kind:"post-type"}}function J(fe){return(0,Nn.createInterpolateElement)((0,ul.sprintf)((0,ul.__)("Create page: <mark>%s</mark>"),fe),{mark:(0,In.jsx)("mark",{})})}function ce(fe){fe.preventDefault(),G(!0)}function ie(){r({url:void 0,linkTarget:void 0,rel:void 0}),G(!1)}(0,Nn.useEffect)(()=>{a||G(!1)},[a]);let we=(0,Nn.useMemo)(()=>({url:g,opensInNewTab:$,nofollow:V}),[g,$,V]),se=yxe(s),de=(0,kd.useMergeRefs)([se,B]),[ge,ne,me]=(0,mt.useSettings)("typography.fluid","layout","dimensions.dimensionSizes"),le=(0,Nn.useMemo)(()=>me?[...me?.custom??[],...me?.theme??[],...me?.default??[]]:[],[me]),Pe=(0,mt.getTypographyClassesAndStyles)(t,{typography:{fluid:ge},layout:{wideSize:ne?.wideSize}}),Ee=(0,Nn.useMemo)(()=>{if(!b)return;let fe="var:preset|dimension|";if(b.startsWith(fe)){let Ae=b.slice(fe.length);return le?.find(ze=>ze.slug===Ae)?.size??b}return b},[b,le]),Ce=z==="default"||Q&&!te,pe=S(A.className,cW(Ee)),$e=(0,Nn.useMemo)(()=>b?PD(Ee)?{"--wp--block-button--width":parseFloat(Ee)}:L.style:{},[b,Ee,L.style]);return(0,In.jsxs)(In.Fragment,{children:[(0,In.jsx)("div",{...A,className:pe,style:{...A.style,...$e},children:(0,In.jsx)(mt.RichText,{ref:de,"aria-label":(0,ul.__)("Button text"),placeholder:m||(0,ul.__)("Add text\u2026"),value:h,onChange:fe=>r({text:pb(fe)}),withoutInteractiveFormatting:!0,className:S(o,"wp-block-button__link",T.className,C.className,Pe.className,{"no-border-radius":f?.border?.radius===0,"has-custom-font-size":A.style.fontSize},(0,mt.__experimentalGetElementClassName)("button")),style:{...C.style,...T.style,...I.style,...D.style,...Pe.style,writingMode:void 0},onReplace:i,onMerge:l,identifier:"text"})}),Ce&&(0,In.jsx)(mt.BlockControls,{group:"block",children:Q&&!te&&(0,In.jsx)(Fh.ToolbarButton,{name:"link",icon:W?sv:di,title:W?(0,ul.__)("Unlink"):(0,ul.__)("Link"),shortcut:W?Tp.displayShortcut.primaryShift("k"):Tp.displayShortcut.primary("k"),onClick:W?ie:ce,isActive:W})}),Q&&a&&(j||W)&&!te&&(0,In.jsx)(Fh.Popover,{placement:"bottom",onClose:()=>{G(!1),B.current?.focus()},anchor:x,focusOnMount:j?"firstElement":!1,__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:(0,In.jsx)(mt.LinkControl,{value:we,onChange:({url:fe,opensInNewTab:Ae,nofollow:Ft})=>r(oW({rel:d,url:fe,opensInNewTab:Ae,nofollow:Ft})),onRemove:()=>{ie(),B.current?.focus()},forceIsEditingLink:j,settings:bxe,createSuggestion:Y&&oe,withCreateSuggestion:ee,createSuggestionButtonText:J})}),(0,In.jsxs)(mt.InspectorControls,{group:"advanced",children:[(0,In.jsx)(gxe,{tagName:u,onChange:fe=>r({tagName:fe}),options:[{label:(0,ul.__)("Default (<a>)"),value:"a"},{label:"<button>",value:"button"}]}),Q&&(0,In.jsx)(Fh.TextControl,{label:(0,ul.__)("Link relation"),help:(0,Nn.createInterpolateElement)((0,ul.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,In.jsx)(uu,{openInNewTab:!0,href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:d||"",onChange:fe=>r({rel:fe})})]})]})}var uW=_xe;var ew={$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 Dn=n(P(),1),ED=n(y(),1);function pW({attributes:e}){let{tagName:t,type:r,fontSize:o,linkTarget:a,rel:i,style:l,text:s,title:c,url:u}=e,p=t||"a",m=p==="button",d=r||"button",f=(0,Dn.__experimentalGetBorderClassesAndStyles)(e),h=(0,Dn.__experimentalGetColorClassesAndStyles)(e),g=(0,Dn.__experimentalGetSpacingClassesAndStyles)(e),v=(0,Dn.__experimentalGetShadowClassesAndStyles)(e),b=(0,Dn.getTypographyClassesAndStyles)(e),_=S("wp-block-button__link",h.className,f.className,b.className,{"no-border-radius":l?.border?.radius===0,"has-custom-font-size":o||l?.typography?.fontSize},(0,Dn.__experimentalGetElementClassName)("button")),k={...f.style,...h.style,...g.style,...v.style,...b.style,writingMode:void 0};return(0,ED.jsx)("div",{...Dn.useBlockProps.save(),children:(0,ED.jsx)(Dn.RichText.Content,{tagName:p,type:m?d:null,className:_,href:m?null:u,title:c,style:k,value:s,target:m?null:a,rel:m?null:i})})}var{fieldsKey:kxe,formKey:wxe}=U(mW.privateApis),{name:dW}=ew,rw={icon:iP,example:{attributes:{className:"is-style-fill",text:(0,tw.__)("Call to action")}},edit:uW,save:pW,deprecated:pU,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t}),__experimentalLabel(e,{context:t}){let{text:r}=e,o=e?.metadata?.name,a=r?.trim().length>0;if(t==="list-view"&&(o||a))return o||r;if(t==="breadcrumb"&&o)return o}};window.__experimentalContentOnlyInspectorFields&&(rw[kxe]=[{id:"text",label:(0,tw.__)("Content"),type:"text",Edit:"rich-text"},{id:"link",label:(0,tw.__)("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})}],rw[wxe]={fields:["text","link"]});var Cxe=()=>R({name:dW,metadata:ew,settings:rw});var DD={};K(DD,{init:()=>Ixe,metadata:()=>nw,name:()=>kW,settings:()=>wW});var ND=n(N(),1);var fb=n(P(),1),db=n(y(),1),fW=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},Sxe=[{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:fW,save({attributes:{contentJustification:e,orientation:t}}){return(0,db.jsx)("div",{...fb.useBlockProps.save({className:S({[`is-content-justification-${e}`]:e,"is-vertical":t==="vertical"})}),children:(0,db.jsx)(fb.InnerBlocks.Content,{})})}},{supports:{align:["center","left","right"],anchor:!0},save(){return(0,db.jsx)("div",{children:(0,db.jsx)(fb.InnerBlocks.Content,{})})},isEligible({align:e}){return e&&["center","left","right"].includes(e)},migrate(e){return fW({...e,align:void 0,contentJustification:e.align})}}],hW=Sxe;var gb=n(q(),1),ID=n(Xl(),1);var hb=n(q(),1);function mu(e,t,r=null){if(!e)return;let o=(0,hb.getBlockType)(t);if(!o)return;let a={};if((0,hb.hasBlockSupport)(o,"anchor")&&e.anchor&&(a.anchor=e.anchor),(0,hb.hasBlockSupport)(o,"ariaLabel")&&e.ariaLabel&&(a.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&&(a.metadata=l)}}if(Object.keys(a).length!==0)return a}var Txe={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,gb.createBlock)("core/buttons",{},e.map(t=>(0,gb.createBlock)("core/button",t)))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,gb.createBlock)("core/buttons",{},e.map(t=>{let{content:r}=t,o=(0,ID.__unstableCreateElement)(document,r),a=o.innerText||"",l=o.querySelector("a")?.getAttribute("href");return(0,gb.createBlock)("core/button",{...t,...mu(t,"core/button",({content:s})=>({text:s})),text:a,url:l})})),isMatch:e=>e.every(t=>{let r=(0,ID.__unstableCreateElement)(document,t.content),o=r.innerText||"",a=r.querySelectorAll("a");return o.length<=30&&a.length<=1})}]},vW=Txe;var ow=n(P(),1),bW=n(y(),1),Pxe={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};function Exe({attributes:e,className:t}){let{fontSize:r,layout:o,style:a}=e,i=(0,ow.useBlockProps)({className:S(t,{"has-custom-font-size":r||a?.typography?.fontSize})}),l=(0,ow.useInnerBlocksProps)(i,{defaultBlock:Pxe,template:[["core/button"]],templateInsertUpdatesSelection:!0,orientation:o?.orientation??"horizontal"});return(0,bW.jsx)("div",{...l})}var yW=Exe;var nw={$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 aw=n(P(),1),_W=n(y(),1);function xW({attributes:e,className:t}){let{fontSize:r,style:o}=e,a=aw.useBlockProps.save({className:S(t,{"has-custom-font-size":r||o?.typography?.fontSize})}),i=aw.useInnerBlocksProps.save(a);return(0,_W.jsx)("div",{...i})}var{name:kW}=nw,wW={icon:sP,example:{attributes:{layout:{type:"flex",justifyContent:"center"}},innerBlocks:[{name:"core/button",attributes:{text:(0,ND.__)("Find out more")}},{name:"core/button",attributes:{text:(0,ND.__)("Contact us")}}]},deprecated:hW,transforms:vW,edit:yW,save:xW},Ixe=()=>R({name:kW,metadata:nw,settings:wW});var RD={};K(RD,{init:()=>Rxe,metadata:()=>iw,name:()=>NW,settings:()=>DW});var iw={$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 vb=n(O(),1),CW=n(F(),1),SW=n(sp(),1),TW=n(P(),1),PW=n(re(),1),Hh=n(N(),1),EW=n(ve(),1);var vi=n(y(),1),Dxe=Sh(e=>{if(!e)return{};let t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}});function BW({attributes:e,name:t}){let{date:r,hasPosts:o,hasPostsResolved:a}=(0,CW.useSelect)(p=>{let{getEntityRecords:m,hasFinishedResolution:d}=p(PW.store),f={status:"publish",per_page:1},h=m("postType","post",f),g=d("getEntityRecords",["postType","post",f]),v,b=p("core/editor");return b&&b.getEditedPostAttribute("type")==="post"&&(v=b.getEditedPostAttribute("date")),{date:v,hasPostsResolved:g,hasPosts:g&&h?.length===1}},[]),{content:i,status:l,error:s}=(0,SW.useServerSideRender)({attributes:{...e,...Dxe(r)},block:t}),c=(0,EW.useDisabled)(),u=(0,TW.useBlockProps)({ref:c});return o?(0,vi.jsxs)(vi.Fragment,{children:[l==="loading"&&(0,vi.jsx)("div",{...u,children:(0,vi.jsx)(vb.Spinner,{})}),l==="error"&&(0,vi.jsx)("div",{...u,children:(0,vi.jsx)("p",{children:(0,Hh.sprintf)((0,Hh.__)("Error: %s"),s)})}),l==="success"&&(0,vi.jsx)(ko,{wrapperProps:u,html:i})]}):(0,vi.jsx)("div",{...u,children:(0,vi.jsx)(vb.Placeholder,{icon:G1,label:(0,Hh.__)("Calendar"),children:a?(0,Hh.__)("No published posts found."):(0,vi.jsx)(vb.Spinner,{})})})}var LD=n(q(),1),Lxe={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,LD.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,LD.createBlock)("core/archives")}]},IW=Lxe;var{name:NW}=iw,DW={icon:G1,example:{},edit:BW,transforms:IW},Rxe=()=>R({name:NW,metadata:iw,settings:DW});var zD={};K(zD,{init:()=>zxe,metadata:()=>lw,name:()=>VW,settings:()=>OW});var lw={$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 Pr=n(O(),1),LW=n(ve(),1),jh=n(P(),1),RW=n(en(),1),Tr=n(N(),1);var AD=n(re(),1),AW=n(F(),1);var MW=n(Sr(),1);var vt=n(y(),1);function MD({attributes:{displayAsDropdown:e,showHierarchy:t,showPostCounts:r,showOnlyTopLevel:o,showEmpty:a,label:i,showLabel:l,taxonomy:s},setAttributes:c,className:u,clientId:p}){let m=(0,LW.useInstanceId)(MD,"blocks-category-select"),{records:d,isResolvingTaxonomies:f}=(0,AD.useEntityRecords)("root","taxonomy",{per_page:-1}),h=d?.filter(W=>W.visibility.public),g=h?.find(W=>W.slug===s),v=!f&&g?.hierarchical,b={per_page:-1,hide_empty:!a,context:"view"};v&&o&&(b.parent=0);let{records:_,isResolving:k}=(0,AD.useEntityRecords)("taxonomy",s,b),{createWarningNotice:x}=(0,AW.useDispatch)(MW.store),w=W=>{W.preventDefault(),x((0,Tr.__)("Links are disabled in the editor."),{id:`block-library/core/categories/redirection-prevented/${p}`,type:"snackbar"})},C=W=>_?.length?W===null?_:_.filter(({parent:$})=>$===W):[],T=W=>$=>c({[W]:$}),I=W=>W?(0,RW.decodeEntities)(W).trim():(0,Tr.__)("(Untitled)"),D=()=>C(v&&t?0:null).map(V=>L(V)),L=W=>{let $=C(W.id),{id:V,link:Q,count:Y,name:ee}=W;return(0,vt.jsxs)("li",{className:`cat-item cat-item-${V}`,children:[(0,vt.jsx)("a",{href:Q,onClick:w,children:I(ee)}),r&&` (${Y})`,v&&t&&!!$.length&&(0,vt.jsx)("ul",{className:"children",children:$.map(te=>L(te))})]},V)},E=()=>{let $=C(v&&t?0:null);return(0,vt.jsxs)(vt.Fragment,{children:[l?(0,vt.jsx)(jh.RichText,{className:"wp-block-categories__label","aria-label":(0,Tr.__)("Label text"),placeholder:g?.name,withoutInteractiveFormatting:!0,value:i,onChange:V=>c({label:V})}):(0,vt.jsx)(gi,{render:(0,vt.jsx)("label",{htmlFor:m}),children:i||g?.name}),(0,vt.jsxs)("select",{id:m,children:[(0,vt.jsx)("option",{children:(0,Tr.sprintf)((0,Tr.__)("Select %s"),g?.labels?.singular_name)}),$.map(V=>B(V,0))]})]})},B=(W,$)=>{let{id:V,count:Q,name:Y}=W,ee=C(V);return[(0,vt.jsxs)("option",{className:`level-${$}`,children:[Array.from({length:$*3}).map(()=>"\xA0"),I(Y),r&&` (${Q})`]},V),v&&t&&!!ee.length&&ee.map(te=>B(te,$+1))]},A=_?.length&&!e&&!k?"ul":"div",z=S(u,`wp-block-categories-taxonomy-${s}`,{"wp-block-categories-list":!!_?.length&&!e&&!k,"wp-block-categories-dropdown":!!_?.length&&e&&!k}),j=(0,jh.useBlockProps)({className:z}),G=Z();return(0,vt.jsxs)(A,{...j,children:[(0,vt.jsx)(jh.InspectorControls,{children:(0,vt.jsxs)(Pr.__experimentalToolsPanel,{label:(0,Tr.__)("Settings"),resetAll:()=>{c({taxonomy:"category",displayAsDropdown:!1,showHierarchy:!1,showPostCounts:!1,showOnlyTopLevel:!1,showEmpty:!1,showLabel:!0})},dropdownMenuProps:G,children:[Array.isArray(h)&&(0,vt.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>s!=="category",label:(0,Tr.__)("Taxonomy"),onDeselect:()=>{c({taxonomy:"category"})},isShownByDefault:!0,children:(0,vt.jsx)(Pr.SelectControl,{label:(0,Tr.__)("Taxonomy"),options:h.map(W=>({label:W.name,value:W.slug})),value:s,onChange:W=>c({taxonomy:W})})}),(0,vt.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>!!e,label:(0,Tr.__)("Display as dropdown"),onDeselect:()=>c({displayAsDropdown:!1}),isShownByDefault:!0,children:(0,vt.jsx)(Pr.ToggleControl,{label:(0,Tr.__)("Display as dropdown"),checked:e,onChange:T("displayAsDropdown")})}),e&&(0,vt.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,Tr.__)("Show label"),onDeselect:()=>c({showLabel:!0}),isShownByDefault:!0,children:(0,vt.jsx)(Pr.ToggleControl,{className:"wp-block-categories__indentation",label:(0,Tr.__)("Show label"),checked:l,onChange:T("showLabel")})}),(0,vt.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,Tr.__)("Show post counts"),onDeselect:()=>c({showPostCounts:!1}),isShownByDefault:!0,children:(0,vt.jsx)(Pr.ToggleControl,{label:(0,Tr.__)("Show post counts"),checked:r,onChange:T("showPostCounts")})}),v&&(0,vt.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>!!o,label:(0,Tr.__)("Show only top level terms"),onDeselect:()=>c({showOnlyTopLevel:!1}),isShownByDefault:!0,children:(0,vt.jsx)(Pr.ToggleControl,{label:(0,Tr.__)("Show only top level terms"),checked:o,onChange:T("showOnlyTopLevel")})}),(0,vt.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,Tr.__)("Show empty terms"),onDeselect:()=>c({showEmpty:!1}),isShownByDefault:!0,children:(0,vt.jsx)(Pr.ToggleControl,{label:(0,Tr.__)("Show empty terms"),checked:a,onChange:T("showEmpty")})}),v&&!o&&(0,vt.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Tr.__)("Show hierarchy"),onDeselect:()=>c({showHierarchy:!1}),isShownByDefault:!0,children:(0,vt.jsx)(Pr.ToggleControl,{label:(0,Tr.__)("Show hierarchy"),checked:t,onChange:T("showHierarchy")})})]})}),k&&(0,vt.jsx)(Pr.Placeholder,{icon:hv,label:(0,Tr.__)("Terms"),children:(0,vt.jsx)(Pr.Spinner,{})}),!k&&_?.length===0&&(0,vt.jsx)("p",{children:g.labels.no_terms}),!k&&_?.length>0&&(e?E():D())]})}var sw=n(N(),1);var Mxe=[{name:"terms",title:(0,sw.__)("Terms List"),icon:pp,attributes:{taxonomy:"post_tag"},isActive:e=>e.taxonomy!=="category"},{name:"categories",title:(0,sw.__)("Categories List"),description:(0,sw.__)("Display a list of all categories."),icon:pp,attributes:{taxonomy:"category"},isActive:["taxonomy"],isDefault:!0}],zW=Mxe;var{name:VW}=lw,OW={icon:pp,example:{},edit:MD,variations:zW},zxe=()=>R({name:VW,metadata:lw,settings:OW});var OD={};K(OD,{init:()=>jxe,metadata:()=>mw,name:()=>yb,settings:()=>JW});var du=n(P(),1),ZW=n(F(),1),fu=n(O(),1),Gh=n(H(),1),bb=n(N(),1);var FW=n(N(),1),HW=n(O(),1),cw=n(F(),1),uw=n(q(),1),VD=n(P(),1),jW=n(y(),1),Vxe=({clientId:e})=>{let{replaceBlocks:t}=(0,cw.useDispatch)(VD.store),r=(0,cw.useSelect)(o=>o(VD.store).getBlock(e),[e]);return(0,jW.jsx)(HW.ToolbarButton,{onClick:()=>t(r.clientId,(0,uw.rawHandler)({HTML:(0,uw.serialize)(r)})),children:(0,FW.__)("Convert to blocks")})},UW=Vxe;var GW=n(P(),1),Jl=n(O(),1),pw=n(H(),1),Uh=n(N(),1),WW=n(F(),1);var $W=n(ve(),1),pl=n(y(),1);function Oxe({onClick:e,isModalFullScreen:t}){return(0,$W.useViewportMatch)("small","<")?null:(0,pl.jsx)(Jl.Button,{size:"compact",onClick:e,icon:Jm,isPressed:t,label:t?(0,Uh.__)("Exit fullscreen"):(0,Uh.__)("Enter fullscreen")})}function Fxe(e){let t=(0,WW.useSelect)(r=>r(GW.store).getSettings().styles);return(0,pw.useEffect)(()=>{let{baseURL:r,suffix:o,settings:a}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:r,suffix:o}),window.wp.oldEditor.initialize(e.id,{tinymce:{...a,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,pl.jsx)("textarea",{...e})}function qW({clientId:e,content:t,onClose:r,onChange:o}){let[a,i]=(0,pw.useState)(!1),l=`editor-${e}`;return(0,pl.jsxs)(Jl.Modal,{title:(0,Uh.__)("Classic Editor"),onRequestClose:r,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:a,className:"block-editor-freeform-modal__content",headerActions:(0,pl.jsx)(Oxe,{onClick:()=>i(!a),isModalFullScreen:a}),children:[(0,pl.jsx)(Fxe,{id:l,defaultValue:t}),(0,pl.jsxs)(Jl.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[(0,pl.jsx)(Jl.FlexItem,{children:(0,pl.jsx)(Jl.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:r,children:(0,Uh.__)("Cancel")})}),(0,pl.jsx)(Jl.FlexItem,{children:(0,pl.jsx)(Jl.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{o(window.wp.oldEditor.getContent(l)),r()},children:(0,Uh.__)("Save")})})]})]})}var rn=n(y(),1);function KW({attributes:e,setAttributes:t,clientId:r}){let{content:o}=e,[a,i]=(0,Gh.useState)(!1),l=(0,Gh.useRef)(null),s=(0,ZW.useSelect)(c=>c(du.store).canRemoveBlock(r),[r]);return(0,rn.jsxs)(rn.Fragment,{children:[s&&(0,rn.jsx)(du.BlockControls,{children:(0,rn.jsx)(fu.ToolbarGroup,{children:(0,rn.jsx)(UW,{clientId:r})})}),(0,rn.jsx)(du.BlockControls,{children:(0,rn.jsx)(fu.ToolbarGroup,{children:(0,rn.jsx)(fu.ToolbarButton,{ref:l,onClick:()=>i(!0),children:(0,bb.__)("Edit")})})}),(0,rn.jsxs)("div",{...(0,du.useBlockProps)(),children:[o?(0,rn.jsx)(Gh.RawHTML,{children:o}):(0,rn.jsx)(fu.Placeholder,{icon:(0,rn.jsx)(du.BlockIcon,{icon:$1}),label:(0,bb.__)("Classic"),instructions:(0,bb.__)("Use the classic editor to add content."),children:(0,rn.jsx)(fu.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>i(!0),children:(0,bb.__)("Edit contents")})}),a&&(0,rn.jsx)(qW,{clientId:r,content:o,onClose:()=>{i(!1),l.current&&l.current.focus()},onChange:c=>t({content:c})})]})]})}var mw={$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 YW=n(H(),1),QW=n(y(),1);function XW({attributes:e}){let{content:t}=e;return(0,QW.jsx)(YW.RawHTML,{children:t})}var{name:yb}=mw,JW={icon:$1,edit:KW,save:XW},jxe=()=>R({name:yb,metadata:mw,settings:JW});var GD={};K(GD,{init:()=>Kxe,metadata:()=>hw,name:()=>i$,settings:()=>bw});var UD=n(N(),1);var a$=n(q(),1);var FD=n(N(),1),dw=n(P(),1),fw=n(q(),1),HD=n(y(),1);function e$({attributes:e,setAttributes:t,onRemove:r,insertBlocksAfter:o,mergeBlocks:a}){let i=(0,dw.useBlockProps)();return(0,HD.jsx)("pre",{...i,children:(0,HD.jsx)(dw.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:l=>t({content:l}),onRemove:r,onMerge:a,placeholder:(0,FD.__)("Write code\u2026"),"aria-label":(0,FD.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:o?()=>o((0,fw.createBlock)((0,fw.getDefaultBlockName)())):void 0,style:{whiteSpace:"break-spaces"}})})}var hw={$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 gw=n(P(),1);var t$=n(ve(),1);function r$(e){return(0,t$.pipe)(Gxe,Wxe)(e||"")}function Gxe(e){return e.replace(/\[/g,"&#91;")}function Wxe(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1&#47;&#47;$2")}var jD=n(y(),1);function o$({attributes:e}){return(0,jD.jsx)("pre",{...gw.useBlockProps.save(),children:(0,jD.jsx)(gw.RichText.Content,{tagName:"code",value:r$(typeof e.content=="string"?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}))})})}var wd=n(q(),1),vw=n(Xl(),1);var $xe={from:[{type:"input",regExp:/^```$/,transform:()=>(0,wd.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,wd.createBlock)("core/code",{...e,...mu(e,"core/code"),content:t})}},{type:"block",blocks:["core/html"],__experimentalConvert(e){let{attributes:t}=e;return(0,wd.createBlock)("core/code",{...t,...mu(t,"core/code"),content:(0,vw.toHTMLString)({value:(0,vw.create)({text:(0,wd.getBlockContent)(e)})})})}},{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,wd.createBlock)("core/paragraph",{...mu(e,"core/paragraph"),content:t})}}]},n$=$xe;var{fieldsKey:qxe,formKey:Zxe}=U(a$.privateApis),{name:i$}=hw,bw={icon:q1,example:{attributes:{content:(0,UD.__)(`// A \u201Cblock\u201D is the abstract term used
// to describe units of markup that
// when composed together, form the
// content or layout of a page.
registerBlockType( name, settings );`)}},merge(e,t){return{content:e.content+`

`+t.content}},transforms:n$,edit:e$,save:o$};window.__experimentalContentOnlyInspectorFields&&(bw[qxe]=[{id:"content",label:(0,UD.__)("Code"),type:"text",Edit:"rich-text"}],bw[Zxe]={fields:["content"]});var Kxe=()=>R({name:i$,metadata:hw,settings:bw});var $D={};K($D,{init:()=>eke,metadata:()=>_w,name:()=>m$,settings:()=>d$});var l$=n(P(),1),WD=n(y(),1),Yxe=[{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=S({[`is-vertically-aligned-${t}`]:t}),a={flexBasis:r+"%"};return(0,WD.jsx)("div",{className:o,style:a,children:(0,WD.jsx)(l$.InnerBlocks.Content,{})})}}],s$=Yxe;var on=n(P(),1),Pp=n(O(),1),yw=n(F(),1),Cd=n(N(),1);var bi=n(y(),1);function Qxe({width:e,setAttributes:t}){let[r]=(0,on.useSettings)("spacing.units"),o=(0,Pp.__experimentalUseCustomUnits)({availableUnits:r||["%","px","em","rem","vw"]}),a=Z();return(0,bi.jsx)(Pp.__experimentalToolsPanel,{label:(0,Cd.__)("Settings"),resetAll:()=>{t({width:void 0})},dropdownMenuProps:a,children:(0,bi.jsx)(Pp.__experimentalToolsPanelItem,{hasValue:()=>e!==void 0,label:(0,Cd.__)("Width"),onDeselect:()=>t({width:void 0}),isShownByDefault:!0,children:(0,bi.jsx)(Pp.__experimentalUnitControl,{label:(0,Cd.__)("Width"),__unstableInputWidth:"calc(50% - 8px)",value:e||"",onChange:i=>{i=0>parseFloat(i)?"0":i,t({width:i})},units:o})})})}function Xxe({attributes:{verticalAlignment:e,width:t,templateLock:r,allowedBlocks:o},setAttributes:a,clientId:i}){let l=S("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),{columnsIds:s,hasChildBlocks:c,rootClientId:u}=(0,yw.useSelect)(_=>{let{getBlockOrder:k,getBlockRootClientId:x}=_(on.store),w=x(i);return{hasChildBlocks:k(i).length>0,rootClientId:w,columnsIds:k(w)}},[i]),{updateBlockAttributes:p}=(0,yw.useDispatch)(on.store),m=_=>{a({verticalAlignment:_}),p(u,{verticalAlignment:null})},d=Number.isFinite(t)?t+"%":t,f=(0,on.useBlockProps)({className:l,style:d?{flexBasis:d}:void 0}),h=s.length,g=s.indexOf(i)+1,v=(0,Cd.sprintf)((0,Cd.__)("%1$s (%2$d of %3$d)"),f["aria-label"],g,h),b=(0,on.useInnerBlocksProps)({...f,"aria-label":v},{templateLock:r,allowedBlocks:o,renderAppender:c?void 0:on.InnerBlocks.ButtonBlockAppender});return(0,bi.jsxs)(bi.Fragment,{children:[(0,bi.jsx)(on.BlockControls,{children:(0,bi.jsx)(on.BlockVerticalAlignmentToolbar,{onChange:m,value:e,controls:["top","center","bottom","stretch"]})}),(0,bi.jsx)(on.InspectorControls,{children:(0,bi.jsx)(Qxe,{width:t,setAttributes:a})}),(0,bi.jsx)("div",{...b})]})}var c$=Xxe;var _w={$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 xw=n(P(),1),u$=n(y(),1);function p$({attributes:e}){let{verticalAlignment:t,width:r}=e,o=S({[`is-vertically-aligned-${t}`]:t}),a;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+"%"),a={flexBasis:s}}let i=xw.useBlockProps.save({className:o,style:a}),l=xw.useInnerBlocksProps.save(i);return(0,u$.jsx)("div",{...l})}var{name:m$}=_w,d$={icon:TP,edit:c$,save:p$,deprecated:s$},eke=()=>R({name:m$,metadata:_w,settings:d$});var KD={};K(KD,{init:()=>hke,metadata:()=>Cw,name:()=>w$,settings:()=>C$});var _b=n(N(),1);var f$=n(q(),1),Td=n(P(),1),Sd=n(y(),1);function kw(e){let{doc:t}=kw;t||(t=document.implementation.createHTMLDocument(""),kw.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 tke=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,...a}=e;return{...a,style:t,isStackedOnMobile:!0}},h$=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:tke,save({attributes:e}){let{verticalAlignment:t,backgroundColor:r,customBackgroundColor:o,textColor:a,customTextColor:i}=e,l=(0,Td.getColorClassName)("background-color",r),s=(0,Td.getColorClassName)("color",a),c=S({"has-background":r||o,"has-text-color":a||i,[l]:l,[s]:s,[`are-vertically-aligned-${t}`]:t});return(0,Sd.jsx)("div",{className:c||void 0,style:{backgroundColor:l?void 0:o,color:s?void 0:i},children:(0,Sd.jsx)(Td.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},isEligible(e,t){return t.some(o=>/layout-column-\d+/.test(o.originalContent))?t.some(o=>kw(o.originalContent)!==void 0):!1},migrate(e,t){let o=t.reduce((l,s)=>{let{originalContent:c}=s,u=kw(c);return u===void 0&&(u=0),l[u]||(l[u]=[]),l[u].push(s),l},[]).map(l=>(0,f$.createBlock)("core/column",{},l)),{columns:a,...i}=e;return[{...i,isStackedOnMobile:!0},o]},save({attributes:e}){let{columns:t}=e;return(0,Sd.jsx)("div",{className:`has-${t}-columns`,children:(0,Sd.jsx)(Td.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=S(`has-${r}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,Sd.jsx)("div",{className:o,children:(0,Sd.jsx)(Td.InnerBlocks.Content,{})})}}];var Pd=n(N(),1),dl=n(O(),1),Kr=n(P(),1),ml=n(F(),1),Ed=n(q(),1);var ww=e=>{let t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function g$(e,t){let{width:r=100/t}=e.attributes;return ww(r)}function rke(e,t=e.length){return e.reduce((r,o)=>r+g$(o,t),0)}function oke(e,t=e.length){return e.reduce((r,o)=>{let a=g$(o,t);return Object.assign(r,{[o.clientId]:a})},{})}function qD(e,t,r=e.length){let o=rke(e,r);return Object.fromEntries(Object.entries(oke(e,r)).map(([a,i])=>{let l=t*i/o;return[a,ww(l)]}))}function v$(e){return e.every(t=>{let r=t.attributes.width;return Number.isFinite(r?.endsWith?.("%")?parseFloat(r):r)})}function ZD(e,t){return e.map(r=>({...r,attributes:{...r.attributes,width:`${t[r.clientId]}%`}}))}var wo=n(y(),1),nke={name:"core/column"};function ake({clientId:e,setAttributes:t,isStackedOnMobile:r}){let{count:o,canInsertColumnBlock:a,minCount:i}=(0,ml.useSelect)(p=>{let{canInsertBlockType:m,canRemoveBlock:d,getBlockOrder:f}=p(Kr.store),h=f(e),g=h.reduce((v,b,_)=>(d(b)||v.push(_),v),[]);return{count:h.length,canInsertColumnBlock:m("core/column",e),minCount:Math.max(...g)+1}},[e]),{getBlocks:l}=(0,ml.useSelect)(Kr.store),{replaceInnerBlocks:s}=(0,ml.useDispatch)(Kr.store);function c(p,m){let d=l(e),f=v$(d),h=m>p;if(h&&f){let g=ww(100/m),v=m-p,b=qD(d,100-g*v);d=[...ZD(d,b),...Array.from({length:v}).map(()=>(0,Ed.createBlock)("core/column",{width:`${g}%`}))]}else if(h)d=[...d,...Array.from({length:m-p}).map(()=>(0,Ed.createBlock)("core/column"))];else if(m<p&&(d=d.slice(0,-(p-m)),f)){let g=qD(d,100);d=ZD(d,g)}s(e,d)}let u=Z();return(0,wo.jsxs)(dl.__experimentalToolsPanel,{label:(0,Pd.__)("Settings"),resetAll:()=>{t({isStackedOnMobile:!0})},dropdownMenuProps:u,children:[a&&(0,wo.jsxs)(dl.__experimentalVStack,{spacing:4,style:{gridColumn:"1 / -1"},children:[(0,wo.jsx)(dl.RangeControl,{label:(0,Pd.__)("Columns"),value:o,onChange:p=>c(o,Math.max(i,p)),min:Math.max(1,i),max:Math.max(6,o)}),o>6&&(0,wo.jsx)(dl.Notice,{status:"warning",isDismissible:!1,children:(0,Pd.__)("This column count exceeds the recommended amount and may cause visual breakage.")})]}),(0,wo.jsx)(dl.__experimentalToolsPanelItem,{label:(0,Pd.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>r!==!0,onDeselect:()=>t({isStackedOnMobile:!0}),children:(0,wo.jsx)(dl.ToggleControl,{label:(0,Pd.__)("Stack on mobile"),checked:r,onChange:()=>t({isStackedOnMobile:!r})})})]})}function ike({attributes:e,setAttributes:t,clientId:r}){let{isStackedOnMobile:o,verticalAlignment:a,templateLock:i}=e,l=(0,ml.useRegistry)(),{getBlockOrder:s}=(0,ml.useSelect)(Kr.store),{updateBlockAttributes:c}=(0,ml.useDispatch)(Kr.store),u=S({[`are-vertically-aligned-${a}`]:a,"is-not-stacked-on-mobile":!o}),p=(0,Kr.useBlockProps)({className:u}),m=(0,Kr.useInnerBlocksProps)(p,{defaultBlock:nke,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,wo.jsxs)(wo.Fragment,{children:[(0,wo.jsx)(Kr.BlockControls,{children:(0,wo.jsx)(Kr.BlockVerticalAlignmentToolbar,{onChange:d,value:a})}),(0,wo.jsx)(Kr.InspectorControls,{children:(0,wo.jsx)(ake,{clientId:r,setAttributes:t,isStackedOnMobile:o})}),(0,wo.jsx)("div",{...m})]})}function lke({clientId:e,name:t,setAttributes:r}){let{blockType:o,variations:a}=(0,ml.useSelect)(s=>{let{getBlockVariations:c,getBlockType:u}=s(Ed.store);return{blockType:u(t),variations:c(t,"block")}},[t]),{replaceInnerBlocks:i}=(0,ml.useDispatch)(Kr.store),l=(0,Kr.useBlockProps)();return(0,wo.jsx)("div",{...l,children:(0,wo.jsx)(Kr.__experimentalBlockVariationPicker,{icon:o?.icon?.src,label:o?.title,variations:a,instructions:(0,Pd.__)("Divide into columns. Select a layout:"),onSelect:s=>{s.attributes&&r(s.attributes),s.innerBlocks&&i(e,(0,Ed.createBlocksFromInnerBlocksTemplate)(s.innerBlocks),!0)}})})}var ske=e=>{let{clientId:t}=e,o=(0,ml.useSelect)(a=>a(Kr.store).getBlocks(t).length>0,[t])?ike:lke;return(0,wo.jsx)(o,{...e})},b$=ske;var Cw={$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 Sw=n(P(),1),y$=n(y(),1);function _$({attributes:e}){let{isStackedOnMobile:t,verticalAlignment:r}=e,o=S({[`are-vertically-aligned-${r}`]:r,"is-not-stacked-on-mobile":!t}),a=Sw.useBlockProps.save({className:o}),i=Sw.useInnerBlocksProps.save(a);return(0,y$.jsx)("div",{...i})}var Ha=n(O(),1),yi=n(N(),1),_i=n(y(),1),uke=[{name:"one-column-full",title:(0,yi.__)("100"),description:(0,yi.__)("One column"),icon:(0,_i.jsx)(Ha.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,_i.jsx)(Ha.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,yi.__)("50 / 50"),description:(0,yi.__)("Two columns; equal split"),icon:(0,_i.jsx)(Ha.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,_i.jsx)(Ha.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,yi.__)("33 / 66"),description:(0,yi.__)("Two columns; one-third, two-thirds split"),icon:(0,_i.jsx)(Ha.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,_i.jsx)(Ha.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,yi.__)("66 / 33"),description:(0,yi.__)("Two columns; two-thirds, one-third split"),icon:(0,_i.jsx)(Ha.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,_i.jsx)(Ha.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,yi.__)("33 / 33 / 33"),description:(0,yi.__)("Three columns; equal split"),icon:(0,_i.jsx)(Ha.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,_i.jsx)(Ha.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,yi.__)("25 / 50 / 25"),description:(0,yi.__)("Three columns; wide center column"),icon:(0,_i.jsx)(Ha.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,_i.jsx)(Ha.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"]}],x$=uke;var Xs=n(q(),1),pke=6,mke=(e,t)=>{let r=+(100/t).toFixed(2),o=Array.from({length:t},(a,i)=>["core/column",{width:`${r}%`},e.filter((l,s)=>s%t===i)]);return(0,Xs.createBlocksFromInnerBlocksTemplate)(o)},dke=e=>e.flatMap(t=>{let r=t.innerBlocks||[];return r.length>1?[(0,Xs.createBlock)("core/group",{layout:{type:"constrained"}},r)]:r}),fke={from:[{type:"block",blocks:["core/group"],priority:1,transform:(e,t)=>{let{layout:r,...o}=e,{columnCount:a}=r;return(0,Xs.createBlock)("core/columns",o,mke(t,a))},isMatch:({layout:e})=>e?.type==="grid"&&Number.isInteger(e?.columnCount)&&e.columnCount>0},{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{let t=+(100/e.length).toFixed(2),r=e.map(({name:o,attributes:a,innerBlocks:i,innerContent:l})=>["core/column",{width:`${t}%`},[[o,{...a},i,l]]]);return(0,Xs.createBlock)("core/columns",{},(0,Xs.createBlocksFromInnerBlocksTemplate)(r))},isMatch:({length:e},t)=>t.length===1&&t[0].name==="core/columns"?!1:e&&e<=pke},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{let{align:r,backgroundColor:o,textColor:a,style:i,mediaAlt:l,mediaId:s,mediaPosition:c,mediaSizeSlug:u,mediaType:p,mediaUrl:m,mediaWidth:d,verticalAlignment:f}=e,h;if(p==="image"||!p){let v={id:s,alt:l,url:m,sizeSlug:u},b={href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel};h=["core/image",{...v,...b}]}else h=["core/video",{id:s,src:m}];let g=[["core/column",{width:`${d}%`},[h]],["core/column",{width:`${100-d}%`},t]];return c==="right"&&g.reverse(),(0,Xs.createBlock)("core/columns",{align:r,backgroundColor:o,textColor:a,style:i,verticalAlignment:f},(0,Xs.createBlocksFromInnerBlocksTemplate)(g))}}],to:[{type:"block",blocks:["core/group"],variationName:"group-grid",transform:(e,t)=>{let r=t.length;return(0,Xs.createBlock)("core/group",{...e,isStackedOnMobile:void 0,verticalAlignment:void 0,layout:{type:"grid",...r&&{columnCount:r}}},dke(t))}}],ungroup:(e,t)=>t.flatMap(r=>r.innerBlocks)},k$=fke;var{name:w$}=Cw,C$={icon:EP,variations:x$,example:{viewportWidth:782,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,_b.__)("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,_b.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,_b.__)("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,_b.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:h$,edit:b$,save:_$,transforms:k$},hke=()=>R({name:w$,metadata:Cw,settings:C$});var JD={};K(JD,{init:()=>xke,metadata:()=>Tw,name:()=>j$,settings:()=>U$});var Tw={$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 Pw=n(P(),1),YD=n(y(),1),vke={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=Pw.useBlockProps.save(),{className:r}=t,a=(r?.split(" ")||[])?.filter(l=>l!=="wp-block-comments"),i={...t,className:a.join(" ")};return(0,YD.jsx)(e,{...i,children:(0,YD.jsx)(Pw.InnerBlocks.Content,{})})}},S$=[vke];var Nw=n(P(),1);var T$=n(N(),1),xb=n(P(),1);var Ew=n(y(),1),{HTMLElementControl:bke}=U(xb.privateApis);function P$({attributes:{tagName:e},setAttributes:t}){return(0,Ew.jsx)(xb.InspectorControls,{children:(0,Ew.jsx)(xb.InspectorControls,{group:"advanced",children:(0,Ew.jsx)(bke,{tagName:e,onChange:r=>t({tagName:r}),options:[{label:(0,T$.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})})}var Bp=n(P(),1),XD=n(N(),1),M$=n(O(),1);var N$=n(P(),1),io=n(N(),1),D$=n(F(),1),L$=n(re(),1),R$=n(H(),1);var fl=n(N(),1),Ep=n(P(),1),E$=n(O(),1),B$=n(ve(),1),Bw=n(re(),1),QD=n(F(),1),ca=n(y(),1),I$=()=>{let e=(0,B$.useInstanceId)(I$);return(0,ca.jsxs)("div",{className:"comment-respond",children:[(0,ca.jsx)("h3",{className:"comment-reply-title",children:(0,fl.__)("Leave a Reply")}),(0,ca.jsxs)("form",{noValidate:!0,className:"comment-form",onSubmit:t=>t.preventDefault(),children:[(0,ca.jsxs)("p",{children:[(0,ca.jsx)("label",{htmlFor:`comment-${e}`,children:(0,fl.__)("Comment")}),(0,ca.jsx)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8",readOnly:!0})]}),(0,ca.jsx)("p",{className:"form-submit wp-block-button",children:(0,ca.jsx)("input",{name:"submit",type:"submit",className:S("wp-block-button__link",(0,Ep.__experimentalGetElementClassName)("button")),label:(0,fl.__)("Post Comment"),value:(0,fl.__)("Post Comment"),"aria-disabled":"true"})})]})]})},yke=({postId:e,postType:t})=>{let[r,o]=(0,Bw.useEntityProp)("postType",t,"comment_status",e),a=t===void 0||e===void 0,i=(0,QD.useSelect)(s=>s(Ep.store).getSettings().__experimentalDiscussionSettings?.defaultCommentStatus,[]),l=(0,QD.useSelect)(s=>t?!!s(Bw.store).getPostType(t)?.supports.comments:!1);if(!a&&r!=="open")if(r==="closed"){let s=[(0,ca.jsx)(E$.Button,{__next40pxDefaultSize:!0,onClick:()=>o("open"),variant:"primary",children:(0,fl._x)("Enable comments","action that affects the current post")},"enableComments")];return(0,ca.jsx)(Ep.Warning,{actions:s,children:(0,fl.__)("Post Comments Form block: Comments are not enabled for this item.")})}else if(l){if(i!=="open")return(0,ca.jsx)(Ep.Warning,{children:(0,fl.__)("Post Comments Form block: Comments are not enabled.")})}else return(0,ca.jsx)(Ep.Warning,{children:(0,fl.sprintf)((0,fl.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t)});return(0,ca.jsx)(I$,{})},Iw=yke;var st=n(y(),1);function A$({postType:e,postId:t}){let[r]=(0,L$.useEntityProp)("postType",e,"title",t);r=r||(0,io.__)("Post Title");let o=(0,D$.useSelect)(a=>a(N$.store).getSettings().__experimentalDiscussionSettings?.avatarURL,[]);return(0,st.jsxs)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true",children:[(0,st.jsx)("h3",{children:(0,io.sprintf)((0,io.__)("One response to %s"),r)}),(0,st.jsxs)("div",{className:"navigation",children:[(0,st.jsx)("div",{className:"alignleft",children:(0,st.jsxs)("a",{href:"#top",children:["\xAB ",(0,io.__)("Older Comments")]})}),(0,st.jsx)("div",{className:"alignright",children:(0,st.jsxs)("a",{href:"#top",children:[(0,io.__)("Newer Comments")," \xBB"]})})]}),(0,st.jsx)("ol",{className:"commentlist",children:(0,st.jsx)("li",{className:"comment even thread-even depth-1",children:(0,st.jsxs)("article",{className:"comment-body",children:[(0,st.jsxs)("footer",{className:"comment-meta",children:[(0,st.jsxs)("div",{className:"comment-author vcard",children:[(0,st.jsx)("img",{alt:(0,io.__)("Commenter Avatar"),src:o,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,st.jsx)("b",{className:"fn",children:(0,st.jsx)("a",{href:"#top",className:"url",children:(0,io.__)("A WordPress Commenter")})})," ",(0,st.jsxs)("span",{className:"says",children:[(0,io.__)("says"),":"]})]}),(0,st.jsxs)("div",{className:"comment-metadata",children:[(0,st.jsx)("a",{href:"#top",children:(0,st.jsx)("time",{dateTime:"2000-01-01T00:00:00+00:00",children:(0,io.__)("January 1, 2000 at 00:00 am")})})," ",(0,st.jsx)("span",{className:"edit-link",children:(0,st.jsx)("a",{className:"comment-edit-link",href:"#top",children:(0,io.__)("Edit")})})]})]}),(0,st.jsx)("div",{className:"comment-content",children:(0,st.jsxs)("p",{children:[(0,io.__)("Hi, this is a comment."),(0,st.jsx)("br",{}),(0,io.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,st.jsx)("br",{}),(0,R$.createInterpolateElement)((0,io.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,st.jsx)("a",{href:"https://gravatar.com/"})})]})}),(0,st.jsx)("div",{className:"reply",children:(0,st.jsx)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,io.__)("Reply to A WordPress Commenter"),children:(0,io._x)("Reply","verb")})})]})})}),(0,st.jsxs)("div",{className:"navigation",children:[(0,st.jsx)("div",{className:"alignleft",children:(0,st.jsxs)("a",{href:"#top",children:["\xAB ",(0,io.__)("Older Comments")]})}),(0,st.jsx)("div",{className:"alignright",children:(0,st.jsxs)("a",{href:"#top",children:[(0,io.__)("Newer Comments")," \xBB"]})})]}),(0,st.jsx)(Iw,{postId:t,postType:e})]})}var es=n(y(),1);function z$({attributes:e,setAttributes:t,context:{postType:r,postId:o}}){let{textAlign:a}=e,i=[(0,es.jsx)(M$.Button,{__next40pxDefaultSize:!0,onClick:()=>{t({legacy:!1})},variant:"primary",children:(0,XD.__)("Switch to editable mode")},"convert")],l=(0,Bp.useBlockProps)({className:S({[`has-text-align-${a}`]:a})});return(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(Bp.BlockControls,{group:"block",children:(0,es.jsx)(Bp.AlignmentControl,{value:a,onChange:s=>{t({textAlign:s})}})}),(0,es.jsxs)("div",{...l,children:[(0,es.jsx)(Bp.Warning,{actions:i,children:(0,XD.__)("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,es.jsx)(A$,{postId:o,postType:r})]})]})}var _ke=[["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"]],V$=_ke;var Ip=n(y(),1);function O$(e){let{attributes:t,setAttributes:r,clientId:o}=e,{tagName:a,legacy:i}=t,l=(0,Nw.useBlockProps)(),s=(0,Nw.useInnerBlocksProps)(l,{template:V$});return i?(0,Ip.jsx)(z$,{...e}):(0,Ip.jsxs)(Ip.Fragment,{children:[(0,Ip.jsx)(P$,{attributes:t,setAttributes:r,clientId:o}),(0,Ip.jsx)(a,{...s})]})}var Dw=n(P(),1),F$=n(y(),1);function H$({attributes:{tagName:e,legacy:t}}){let r=Dw.useBlockProps.save(),o=Dw.useInnerBlocksProps.save(r);return t?null:(0,F$.jsx)(e,{...o})}var{name:j$}=Tw,U$={icon:RB,example:{},edit:O$,save:H$,deprecated:S$},xke=()=>R({name:j$,metadata:Tw,settings:U$});var tL={};K(tL,{init:()=>wke,metadata:()=>Lw,name:()=>$$,settings:()=>q$});var Lw={$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 Np=n(P(),1),Wh=n(O(),1),eL=n(re(),1),G$=n(F(),1),Bd=n(N(),1),ts=n(y(),1);function W$({attributes:e,context:{commentId:t},setAttributes:r,isSelected:o}){let{height:a,width:i}=e,[l]=(0,eL.useEntityProp)("root","comment","author_avatar_urls",t),[s]=(0,eL.useEntityProp)("root","comment","author_name",t),c=l?Object.values(l):null,u=l?Object.keys(l):null,p=u?u[0]:24,m=u?u[u.length-1]:96,d=(0,Np.useBlockProps)(),f=(0,Np.__experimentalGetSpacingClassesAndStyles)(e),h=Math.floor(m*2.5),g=(0,G$.useSelect)(_=>{let{__experimentalDiscussionSettings:k}=_(Np.store).getSettings();return k?.avatarURL},[]),v=(0,ts.jsx)(Np.InspectorControls,{children:(0,ts.jsx)(Wh.PanelBody,{title:(0,Bd.__)("Settings"),children:(0,ts.jsx)(Wh.RangeControl,{label:(0,Bd.__)("Image size"),onChange:_=>r({width:_,height:_}),min:p,max:h,initialPosition:i,value:i})})}),b=(0,ts.jsx)(Wh.ResizableBox,{size:{width:i,height:a},showHandle:o,onResizeStop:(_,k,x,w)=>{r({height:parseInt(a+w.height,10),width:parseInt(i+w.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Bd.isRTL)(),bottom:!0,left:(0,Bd.isRTL)()},minWidth:p,maxWidth:h,children:(0,ts.jsx)("img",{src:c?c[c.length-1]:g,alt:`${s} ${(0,Bd.__)("Avatar")}`,...d})});return(0,ts.jsxs)(ts.Fragment,{children:[v,(0,ts.jsx)("div",{...f,children:b})]})}var{name:$$}=Lw,q$={icon:Z1,edit:W$},wke=()=>R({name:$$,metadata:Lw,settings:q$});var rL={};K(rL,{init:()=>Pke,metadata:()=>Rw,name:()=>X$,settings:()=>J$});var Rw={$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 hu=n(N(),1),Z$=n(F(),1),Aw=n(P(),1),K$=n(re(),1),Dp=n(O(),1);var xi=n(y(),1);function Y$(e){let{attributes:{isLink:t,linkTarget:r},context:{commentId:o},setAttributes:a}=e;Ct(e);let i=Z(),l=(0,Aw.useBlockProps)(),s=(0,Z$.useSelect)(p=>{let{getEntityRecord:m}=p(K$.store),d=m("root","comment",o),f=d?.author_name;return d&&!f?m("root","user",d.author)?.name??(0,hu.__)("Anonymous"):f??""},[o]),c=(0,xi.jsx)(Aw.InspectorControls,{children:(0,xi.jsxs)(Dp.__experimentalToolsPanel,{label:(0,hu.__)("Settings"),resetAll:()=>{a({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:i,children:[(0,xi.jsx)(Dp.__experimentalToolsPanelItem,{label:(0,hu.__)("Link to authors URL"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>a({isLink:!0}),children:(0,xi.jsx)(Dp.ToggleControl,{label:(0,hu.__)("Link to authors URL"),onChange:()=>a({isLink:!t}),checked:t})}),t&&(0,xi.jsx)(Dp.__experimentalToolsPanelItem,{label:(0,hu.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r!=="_self",onDeselect:()=>a({linkTarget:"_self"}),children:(0,xi.jsx)(Dp.ToggleControl,{label:(0,hu.__)("Open in new tab"),onChange:p=>a({linkTarget:p?"_blank":"_self"}),checked:r==="_blank"})})]})});return(!o||!s)&&(s=(0,hu._x)("Comment Author","block title")),(0,xi.jsxs)(xi.Fragment,{children:[c,(0,xi.jsx)("div",{...l,children:t?(0,xi.jsx)("a",{href:"#comment-author-pseudo-link",onClick:p=>p.preventDefault(),children:s}):s})]})}var Ske={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},Tke={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:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},Q$=[Ske,Tke];var{name:X$}=Rw,J$={icon:IP,edit:Y$,deprecated:Q$,example:{}},Pke=()=>R({name:X$,metadata:Rw,settings:J$});var oL={};K(oL,{init:()=>Ike,metadata:()=>Mw,name:()=>lq,settings:()=>sq});var Mw={$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 eq=n(N(),1),tq=n(H(),1),rq=n(O(),1),oq=n(re(),1),nq=n(P(),1);var rs=n(y(),1);function aq(e){let{context:{commentId:t}}=e;Ct(e);let r=(0,nq.useBlockProps)(),[o]=(0,oq.useEntityProp)("root","comment","content",t);return!t||!o?(0,rs.jsx)(rs.Fragment,{children:(0,rs.jsx)("div",{...r,children:(0,rs.jsx)("p",{children:(0,eq._x)("Comment Content","block title")})})}):(0,rs.jsx)(rs.Fragment,{children:(0,rs.jsx)("div",{...r,children:(0,rs.jsx)(rq.Disabled,{children:(0,rs.jsx)(tq.RawHTML,{children:o.rendered},"html")})})})}var Bke={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},iq=[Bke];var{name:lq}=Mw,sq={icon:DP,edit:aq,deprecated:iq,example:{}},Ike=()=>R({name:lq,metadata:Mw,settings:sq});var aL={};K(aL,{init:()=>Lke,metadata:()=>zw,name:()=>mq,settings:()=>dq});var zw={$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 nL=n(re(),1),Nd=n(Vw(),1),$h=n(P(),1),Dd=n(O(),1),Id=n(N(),1);var ua=n(y(),1);function uq({attributes:{format:e,isLink:t},context:{commentId:r},setAttributes:o}){let a=(0,$h.useBlockProps)(),i=Z(),[l]=(0,nL.useEntityProp)("root","comment","date",r),[s=(0,Nd.getSettings)().formats.date]=(0,nL.useEntityProp)("root","site","date_format"),c=(0,ua.jsx)($h.InspectorControls,{children:(0,ua.jsxs)(Dd.__experimentalToolsPanel,{label:(0,Id.__)("Settings"),resetAll:()=>{o({format:void 0,isLink:!0})},dropdownMenuProps:i,children:[(0,ua.jsx)(Dd.__experimentalToolsPanelItem,{label:(0,Id.__)("Date format"),hasValue:()=>e!==void 0,onDeselect:()=>o({format:void 0}),isShownByDefault:!0,children:(0,ua.jsx)($h.__experimentalDateFormatPicker,{format:e,defaultFormat:s,onChange:p=>o({format:p})})}),(0,ua.jsx)(Dd.__experimentalToolsPanelItem,{label:(0,Id.__)("Link to comment"),hasValue:()=>!t,onDeselect:()=>o({isLink:!0}),isShownByDefault:!0,children:(0,ua.jsx)(Dd.ToggleControl,{label:(0,Id.__)("Link to comment"),onChange:()=>o({isLink:!t}),checked:t})})]})});(!r||!l)&&(l=(0,Id._x)("Comment Date","block title"));let u=l instanceof Date?(0,ua.jsx)("time",{dateTime:(0,Nd.dateI18n)("c",l),children:e==="human-diff"?(0,Nd.humanTimeDiff)(l):(0,Nd.dateI18n)(e||s,l)}):(0,ua.jsx)("time",{children:l});return t&&(u=(0,ua.jsx)("a",{href:"#comment-date-pseudo-link",onClick:p=>p.preventDefault(),children:u})),(0,ua.jsxs)(ua.Fragment,{children:[c,(0,ua.jsx)("div",{...a,children:u})]})}var Dke={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:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},pq=[Dke];var{name:mq}=zw,dq={icon:_v,edit:uq,deprecated:pq,example:{}},Lke=()=>R({name:mq,metadata:zw,settings:dq});var iL={};K(iL,{init:()=>Mke,metadata:()=>Ow,name:()=>gq,settings:()=>vq});var Ow={$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 Fw=n(P(),1),qh=n(O(),1),kb=n(N(),1);var os=n(y(),1);function fq(e){let{attributes:t,setAttributes:r}=e,{linkTarget:o}=t;Ct(e);let a=(0,Fw.useBlockProps)(),i=Z(),l=(0,os.jsx)(Fw.InspectorControls,{children:(0,os.jsx)(qh.__experimentalToolsPanel,{label:(0,kb.__)("Settings"),resetAll:()=>{r({linkTarget:"_self"})},dropdownMenuProps:i,children:(0,os.jsx)(qh.__experimentalToolsPanelItem,{label:(0,kb.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>o==="_blank",onDeselect:()=>r({linkTarget:"_self"}),children:(0,os.jsx)(qh.ToggleControl,{label:(0,kb.__)("Open in new tab"),onChange:s=>r({linkTarget:s?"_blank":"_self"}),checked:o==="_blank"})})})});return(0,os.jsxs)(os.Fragment,{children:[l,(0,os.jsx)("div",{...a,children:(0,os.jsx)("a",{href:"#edit-comment-pseudo-link",onClick:s=>s.preventDefault(),children:(0,kb.__)("Edit")})})]})}var Ake={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},hq=[Ake];var{name:gq}=Ow,vq={icon:RP,edit:fq,deprecated:hq,example:{}},Mke=()=>R({name:gq,metadata:Ow,settings:vq});var lL={};K(lL,{init:()=>Fke,metadata:()=>Hw,name:()=>kq,settings:()=>wq});var Hw={$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 bq=n(N(),1),yq=n(P(),1);var Zh=n(y(),1);function Vke(e){Ct(e);let t=(0,yq.useBlockProps)();return(0,Zh.jsx)(Zh.Fragment,{children:(0,Zh.jsx)("div",{...t,children:(0,Zh.jsx)("a",{href:"#comment-reply-pseudo-link",onClick:r=>r.preventDefault(),children:(0,bq._x)("Reply","verb")})})})}var _q=Vke;var Oke={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},xq=[Oke];var{name:kq}=Hw,wq={edit:_q,icon:MP,deprecated:xq,example:{}},Fke=()=>R({name:kq,metadata:Hw,settings:wq});var cL={};K(cL,{init:()=>Zke,metadata:()=>jw,name:()=>Fq,settings:()=>Hq});var jw={$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 Uw=n(H(),1),sL=n(F(),1),Dq=n(N(),1),ns=n(P(),1),Lq=n(O(),1),Rq=n(re(),1);var Ld=n(H(),1),Tq=n(F(),1),Pq=n(P(),1),Eq=n(pr(),1),Bq=n(wb(),1),Sq=100,Iq=({postId:e})=>{let t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:r,commentsPerPage:o,defaultCommentsPage:a}=(0,Tq.useSelect)(s=>{let{getSettings:c}=s(Pq.store),{__experimentalDiscussionSettings:u}=c();return u??{}},[]),i=r?Math.min(o,Sq):Sq,l=jke({defaultPage:a,postId:e,perPage:i,queryArgs:t});return(0,Ld.useMemo)(()=>l?{...t,post:e,per_page:i,page:l}:null,[e,i,l])},jke=({defaultPage:e,postId:t,perPage:r,queryArgs:o})=>{let[a,i]=(0,Ld.useState)({}),l=`${t}_${r}`,s=a[l]||0;return(0,Ld.useEffect)(()=>{s||e!=="newest"||(0,Bq.default)({path:(0,Eq.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({...a,[l]:u<=1?1:u})}).catch(()=>{i({...a,[l]:1})})},[e,t,r,i]),e==="newest"?s:1},Nq=e=>(0,Ld.useMemo)(()=>e?.map(({id:r,_embedded:o})=>{let[a]=o?.children||[[]];return{commentId:r,children:a.map(i=>({commentId:i.id}))}}),[e]);var ki=n(y(),1),Uke=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]],Gke=({perPage:e,pageComments:t,threadComments:r,threadCommentsDepth:o})=>{let a=r?Math.min(o,3):1,i=s=>{if(s<a){let c=s+1;return[{commentId:-(s+3),children:i(c)}]}return[]},l=[{commentId:-1,children:i(1)}];return(!t||e>=2)&&a<3&&l.push({commentId:-2,children:[]}),(!t||e>=3)&&a<2&&l.push({commentId:-3,children:[]}),l};function Wke({comment:e,activeCommentId:t,setActiveCommentId:r,firstCommentId:o,blocks:a}){let{children:i,...l}=(0,ns.useInnerBlocksProps)({},{template:Uke});return(0,ki.jsxs)("li",{...l,children:[e.commentId===(t||o)?i:null,(0,ki.jsx)(qke,{blocks:a,commentId:e.commentId,setActiveCommentId:r,isHidden:e.commentId===(t||o)}),e?.children?.length>0?(0,ki.jsx)(Aq,{comments:e.children,activeCommentId:t,setActiveCommentId:r,blocks:a,firstCommentId:o}):null]})}var $ke=({blocks:e,commentId:t,setActiveCommentId:r,isHidden:o})=>{let a=(0,ns.__experimentalUseBlockPreview)({blocks:e}),i=()=>{r(t)};return(0,ki.jsx)("div",{...a,tabIndex:0,role:"button",style:{display:o?"none":void 0},onClick:i,onKeyPress:i})},qke=(0,Uw.memo)($ke),Aq=({comments:e,blockProps:t,activeCommentId:r,setActiveCommentId:o,blocks:a,firstCommentId:i})=>(0,ki.jsx)("ol",{...t,children:e&&e.map(({commentId:l,...s},c)=>(0,ki.jsx)(ns.BlockContextProvider,{value:{commentId:l<0?null:l},children:(0,ki.jsx)(Wke,{comment:{commentId:l,...s},activeCommentId:r,setActiveCommentId:o,blocks:a,firstCommentId:i})},s.commentId||c))});function Mq({clientId:e,context:{postId:t}}){let r=(0,ns.useBlockProps)(),[o,a]=(0,Uw.useState)(),{commentOrder:i,threadCommentsDepth:l,threadComments:s,commentsPerPage:c,pageComments:u}=(0,sL.useSelect)(h=>{let{getSettings:g}=h(ns.store);return g().__experimentalDiscussionSettings??{}},[]),p=Iq({postId:t}),{topLevelComments:m,blocks:d}=(0,sL.useSelect)(h=>{let{getEntityRecords:g}=h(Rq.store),{getBlocks:v}=h(ns.store);return{topLevelComments:p?g("root","comment",p):null,blocks:v(e)}},[e,p]),f=Nq(i==="desc"&&m?[...m].reverse():m);return m?(t||(f=Gke({perPage:c,pageComments:u,threadComments:s,threadCommentsDepth:l})),f.length?(0,ki.jsx)(Aq,{comments:f,blockProps:r,blocks:d,activeCommentId:o,setActiveCommentId:a,firstCommentId:f[0]?.commentId}):(0,ki.jsx)("p",{...r,children:(0,Dq.__)("No results found.")})):(0,ki.jsx)("p",{...r,children:(0,ki.jsx)(Lq.Spinner,{})})}var zq=n(P(),1),Vq=n(y(),1);function Oq(){return(0,Vq.jsx)(zq.InnerBlocks.Content,{})}var{name:Fq}=jw,Hq={icon:td,edit:Mq,save:Oq},Zke=()=>R({name:Fq,metadata:jw,settings:Hq});var pL={};K(pL,{init:()=>Qke,metadata:()=>Gw,name:()=>Gq,settings:()=>Wq});var Uq=n(N(),1);var Gw={$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 uL=n(N(),1),Ww=n(P(),1),Cb=n(y(),1),Yke={none:"",arrow:"\u2190",chevron:"\xAB"};function jq({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":r}}){let o=Yke[r];return(0,Cb.jsxs)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:a=>a.preventDefault(),...(0,Ww.useBlockProps)(),children:[o&&(0,Cb.jsx)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${r}`,children:o}),(0,Cb.jsx)(Ww.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,uL.__)("Older comments page link"),placeholder:(0,uL.__)("Older Comments"),value:e,onChange:a=>t({label:a})})]})}var{name:Gq}=Gw,Wq={icon:Cv,edit:jq,example:{attributes:{label:(0,Uq.__)("Older Comments")}}},Qke=()=>R({name:Gq,metadata:Gw,settings:Wq});var dL={};K(dL,{init:()=>e5e,metadata:()=>$w,name:()=>Qq,settings:()=>Xq});var $w={$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 qw=n(N(),1),is=n(P(),1),mL=n(F(),1),Zw=n(O(),1);var Rd=n(N(),1),Kh=n(O(),1),Yh=n(y(),1);function $q({value:e,onChange:t}){return(0,Yh.jsxs)(Kh.__experimentalToggleGroupControl,{label:(0,Rd.__)("Arrow"),value:e,onChange:t,help:(0,Rd.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0,children:[(0,Yh.jsx)(Kh.__experimentalToggleGroupControlOption,{value:"none",label:(0,Rd._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Yh.jsx)(Kh.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Rd._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Yh.jsx)(Kh.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Rd._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")})]})}var as=n(y(),1),Jke=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]];function qq({attributes:{paginationArrow:e},setAttributes:t,clientId:r}){let o=(0,mL.useSelect)(c=>{let{getBlocks:u}=c(is.store);return u(r)?.find(m=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(m.name))},[]),a=(0,is.useBlockProps)(),i=Z(),l=(0,is.useInnerBlocksProps)(a,{template:Jke});return(0,mL.useSelect)(c=>{let{getSettings:u}=c(is.store),{__experimentalDiscussionSettings:p}=u();return p?.pageComments},[])?(0,as.jsxs)(as.Fragment,{children:[o&&(0,as.jsx)(is.InspectorControls,{children:(0,as.jsx)(Zw.__experimentalToolsPanel,{label:(0,qw.__)("Settings"),dropdownMenuProps:i,resetAll:()=>t({paginationArrow:"none"}),children:(0,as.jsx)(Zw.__experimentalToolsPanelItem,{label:(0,qw.__)("Arrow"),hasValue:()=>e!=="none",onDeselect:()=>t({paginationArrow:"none"}),isShownByDefault:!0,children:(0,as.jsx)($q,{value:e,onChange:c=>{t({paginationArrow:c})}})})})}),(0,as.jsx)("div",{...l})]}):(0,as.jsx)(is.Warning,{children:(0,qw.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings")})}var Zq=n(P(),1),Kq=n(y(),1);function Yq(){return(0,Kq.jsx)(Zq.InnerBlocks.Content,{})}var{name:Qq}=$w,Xq={icon:Sv,edit:qq,save:Yq},e5e=()=>R({name:Qq,metadata:$w,settings:Xq});var hL={};K(hL,{init:()=>o5e,metadata:()=>Kw,name:()=>tZ,settings:()=>rZ});var eZ=n(N(),1);var Kw={$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 fL=n(N(),1),Yw=n(P(),1),Sb=n(y(),1),r5e={none:"",arrow:"\u2192",chevron:"\xBB"};function Jq({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":r}}){let o=r5e[r];return(0,Sb.jsxs)("a",{href:"#comments-pagination-next-pseudo-link",onClick:a=>a.preventDefault(),...(0,Yw.useBlockProps)(),children:[(0,Sb.jsx)(Yw.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,fL.__)("Newer comments page link"),placeholder:(0,fL.__)("Newer Comments"),value:e,onChange:a=>t({label:a})}),o&&(0,Sb.jsx)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${r}`,children:o})]})}var{name:tZ}=Kw,rZ={icon:kv,edit:Jq,example:{attributes:{label:(0,eZ.__)("Newer Comments")}}},o5e=()=>R({name:tZ,metadata:Kw,settings:rZ});var gL={};K(gL,{init:()=>a5e,metadata:()=>Qw,name:()=>aZ,settings:()=>iZ});var Qw={$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 oZ=n(P(),1),hl=n(y(),1),Ad=({content:e,tag:t="a",extraClass:r=""})=>t==="a"?(0,hl.jsx)(t,{className:`page-numbers ${r}`,href:"#comments-pagination-numbers-pseudo-link",onClick:o=>o.preventDefault(),children:e}):(0,hl.jsx)(t,{className:`page-numbers ${r}`,children:e});function nZ(){return(0,hl.jsxs)("div",{...(0,oZ.useBlockProps)(),children:[(0,hl.jsx)(Ad,{content:"1"}),(0,hl.jsx)(Ad,{content:"2"}),(0,hl.jsx)(Ad,{content:"3",tag:"span",extraClass:"current"}),(0,hl.jsx)(Ad,{content:"4"}),(0,hl.jsx)(Ad,{content:"5"}),(0,hl.jsx)(Ad,{content:"...",tag:"span",extraClass:"dots"}),(0,hl.jsx)(Ad,{content:"8"})]})}var{name:aZ}=Qw,iZ={icon:wv,edit:nZ,example:{}},a5e=()=>R({name:aZ,metadata:Qw,settings:iZ});var vL={};K(vL,{init:()=>c5e,metadata:()=>Xw,name:()=>dZ,settings:()=>fZ});var Xw={$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 Js=n(P(),1),zr=n(N(),1),lZ=n(re(),1),Lp=n(O(),1),Jw=n(H(),1),sZ=n(F(),1),cZ=n(wb(),1),uZ=n(pr(),1);var ja=n(y(),1);function pZ(e){Ct(e);let{attributes:t,setAttributes:r,context:o}=e,{showPostTitle:a,showCommentsCount:i,level:l=2,levelOptions:s}=t,{postId:c,postType:u}=o,p="h"+l,[m,d]=(0,Jw.useState)(),[f]=(0,lZ.useEntityProp)("postType",u,"title",c),h=typeof c>"u",g=(0,Js.useBlockProps)(),{threadCommentsDepth:v,threadComments:b,commentsPerPage:_,pageComments:k}=(0,sZ.useSelect)(D=>{let{getSettings:L}=D(Js.store);return L().__experimentalDiscussionSettings??{}},[]),x=Z();(0,Jw.useEffect)(()=>{if(h){let L=b?Math.min(v,3)-1:0,E=k?_:3,B=parseInt(L)+parseInt(E);d(Math.min(B,3));return}let D=c;(0,cZ.default)({path:(0,uZ.addQueryArgs)("/wp/v2/comments",{post:c,_fields:"id"}),method:"HEAD",parse:!1}).then(L=>{D===c&&d(parseInt(L.headers.get("X-WP-Total")))}).catch(()=>{d(0)})},[c]);let w=(0,ja.jsx)(Js.BlockControls,{group:"block",children:(0,ja.jsx)(Js.HeadingLevelDropdown,{value:l,options:s,onChange:D=>r({level:D})})}),C=(0,ja.jsx)(Js.InspectorControls,{children:(0,ja.jsxs)(Lp.__experimentalToolsPanel,{label:(0,zr.__)("Settings"),resetAll:()=>{r({showPostTitle:!0,showCommentsCount:!0})},dropdownMenuProps:x,children:[(0,ja.jsx)(Lp.__experimentalToolsPanelItem,{label:(0,zr.__)("Show post title"),isShownByDefault:!0,hasValue:()=>!a,onDeselect:()=>r({showPostTitle:!0}),children:(0,ja.jsx)(Lp.ToggleControl,{label:(0,zr.__)("Show post title"),checked:a,onChange:D=>r({showPostTitle:D})})}),(0,ja.jsx)(Lp.__experimentalToolsPanelItem,{label:(0,zr.__)("Show comments count"),isShownByDefault:!0,hasValue:()=>!i,onDeselect:()=>r({showCommentsCount:!0}),children:(0,ja.jsx)(Lp.ToggleControl,{label:(0,zr.__)("Show comments count"),checked:i,onChange:D=>r({showCommentsCount:D})})})]})}),T=h?(0,zr.__)("Post Title"):f,I;return i&&m!==void 0?a?m===1?I=(0,zr.sprintf)((0,zr.__)('One response to "%s"'),T):I=(0,zr.sprintf)((0,zr._n)('%1$s response to "%2$s"','%1$s responses to "%2$s"',m),m,T):m===1?I=(0,zr.__)("One response"):I=(0,zr.sprintf)((0,zr._n)("%s response","%s responses",m),m):a?m===1?I=(0,zr.sprintf)((0,zr.__)('Response to "%s"'),T):I=(0,zr.sprintf)((0,zr.__)('Responses to "%s"'),T):m===1?I=(0,zr.__)("Response"):I=(0,zr.__)("Responses"),(0,ja.jsxs)(ja.Fragment,{children:[w,C,(0,ja.jsx)(p,{...g,children:I})]})}var l5e={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 be(o)},isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},s5e={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 be(o)},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null},mZ=[l5e,s5e];var{name:dZ}=Xw,fZ={icon:$l,edit:pZ,deprecated:mZ,example:{}},c5e=()=>R({name:dZ,metadata:Xw,settings:fZ});var ML={};K(ML,{init:()=>Bwe,metadata:()=>v3,name:()=>bK,settings:()=>y3});var AL=n(N(),1);var vK=n(q(),1);var r3=n(q(),1),Ie=n(P(),1),o3=n(N(),1),Tb=n(ve(),1);var e3=n(Ar(),1),u5e={"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"},Yt="image",Er="video",gu="embed-video",hZ=50;var p5e={x:.5,y:.5},t3=["image","video"];function nn({x:e,y:t}=p5e){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}function gl(e){return e===50||e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}function gZ(e){if(!e||!e.url&&!e.src)return{url:void 0,id:void 0};(0,e3.isBlobURL)(e.url)&&(e.type=(0,e3.getBlobTypeByURL)(e.url));let t;if(e.media_type)e.media_type===Yt?t=Yt:t=Er;else if(e.type&&(e.type===Yt||e.type===Er))t=e.type;else return;return{url:e.url||e.src,id:e.id,alt:e?.alt,backgroundType:t,...t===Er?{hasParallax:void 0}:{}}}function pa(e){return!e||e==="center center"||e==="center"}function Ua(e){return pa(e)?"":u5e[e]}var he=n(y(),1);function ec(e){return e?{backgroundImage:`url(${e})`}:{}}function Md(e){return e===0||e===50||!e?null:"has-background-dim-"+10*Math.round(e/10)}function n3(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function Rp(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}var zd={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"}},Pb={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]}},bL={...Pb,useFeaturedImage:{type:"boolean",default:!1},tagName:{type:"string",default:"div"}},m5e={...bL,isUserOverlayColor:{type:"boolean"},sizeSlug:{type:"string"},alt:{type:"string",default:""}},Qh={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}},yL={...Qh,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}},d5e={...yL,shadow:!0,dimensions:{aspectRatio:!0},interactivity:{clientNavigation:!0}},f5e={attributes:m5e,supports:d5e,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:p,isRepeated:m,overlayColor:d,url:f,alt:h,id:g,minHeight:v,minHeightUnit:b,tagName:_,sizeSlug:k}=e,x=(0,Ie.getColorClassName)("background-color",d),w=(0,Ie.__experimentalGetGradientClass)(r),C=v&&b?`${v}${b}`:v,T=Yt===t,I=Er===t,D=!(u||m),L={minHeight:C||void 0},E={backgroundColor:x?void 0:i,background:a||void 0},B=s&&D?nn(s):void 0,A=f?`url(${f})`:void 0,z=nn(s),j=S({"is-light":!p,"has-parallax":u,"is-repeated":m,"has-custom-content-position":!pa(o)},Ua(o)),G=S("wp-block-cover__image-background",g?`wp-image-${g}`:null,{[`size-${k}`]:k,"has-parallax":u,"is-repeated":m}),W=r||a;return(0,he.jsxs)(_,{...Ie.useBlockProps.save({className:j,style:L}),children:[(0,he.jsx)("span",{"aria-hidden":"true",className:S("wp-block-cover__background",x,gl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&W&&l!==0,"has-background-gradient":W,[w]:w}),style:E}),!c&&T&&f&&(D?(0,he.jsx)("img",{className:G,alt:h,src:f,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}):(0,he.jsx)("div",{role:h?"img":void 0,"aria-label":h||void 0,className:G,style:{backgroundPosition:z,backgroundImage:A}})),I&&f&&(0,he.jsx)("video",{className:S("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}),(0,he.jsx)("div",{...Ie.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},h5e={attributes:bL,supports:yL,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:p,isRepeated:m,overlayColor:d,url:f,alt:h,id:g,minHeight:v,minHeightUnit:b,tagName:_}=e,k=(0,Ie.getColorClassName)("background-color",d),x=(0,Ie.__experimentalGetGradientClass)(r),w=v&&b?`${v}${b}`:v,C=Yt===t,T=Er===t,I=!(u||m),D={minHeight:w||void 0},L={backgroundColor:k?void 0:i,background:a||void 0},E=s&&I?nn(s):void 0,B=f?`url(${f})`:void 0,A=nn(s),z=S({"is-light":!p,"has-parallax":u,"is-repeated":m,"has-custom-content-position":!pa(o)},Ua(o)),j=S("wp-block-cover__image-background",g?`wp-image-${g}`:null,{"has-parallax":u,"is-repeated":m}),G=r||a;return(0,he.jsxs)(_,{...Ie.useBlockProps.save({className:z,style:D}),children:[(0,he.jsx)("span",{"aria-hidden":"true",className:S("wp-block-cover__background",k,gl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&G&&l!==0,"has-background-gradient":G,[x]:x}),style:L}),!c&&C&&f&&(I?(0,he.jsx)("img",{className:j,alt:h,src:f,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}):(0,he.jsx)("div",{role:"img",className:j,style:{backgroundPosition:A,backgroundImage:B}})),T&&f&&(0,he.jsx)("video",{className:S("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),(0,he.jsx)("div",{...Ie.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},g5e={attributes:bL,supports:yL,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:a,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:p,isRepeated:m,overlayColor:d,url:f,alt:h,id:g,minHeight:v,minHeightUnit:b,tagName:_}=e,k=(0,Ie.getColorClassName)("background-color",d),x=(0,Ie.__experimentalGetGradientClass)(r),w=v&&b?`${v}${b}`:v,C=Yt===t,T=Er===t,I=!(u||m),D={minHeight:w||void 0},L={backgroundColor:k?void 0:i,background:a||void 0},E=s&&I?nn(s):void 0,B=f?`url(${f})`:void 0,A=nn(s),z=S({"is-light":!p,"has-parallax":u,"is-repeated":m,"has-custom-content-position":!pa(o)},Ua(o)),j=S("wp-block-cover__image-background",g?`wp-image-${g}`:null,{"has-parallax":u,"is-repeated":m}),G=r||a;return(0,he.jsxs)(_,{...Ie.useBlockProps.save({className:z,style:D}),children:[(0,he.jsx)("span",{"aria-hidden":"true",className:S("wp-block-cover__background",k,gl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&G&&l!==0,"has-background-gradient":G,[x]:x}),style:L}),!c&&C&&f&&(I?(0,he.jsx)("img",{className:j,alt:h,src:f,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}):(0,he.jsx)("div",{role:"img",className:j,style:{backgroundPosition:A,backgroundImage:B}})),T&&f&&(0,he.jsx)("video",{className:S("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),(0,he.jsx)("div",{...Ie.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},v5e={attributes:Pb,supports:Qh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:p,isRepeated:m,overlayColor:d,url:f,alt:h,id:g,minHeight:v,minHeightUnit:b}=e,_=(0,Ie.getColorClassName)("background-color",d),k=(0,Ie.__experimentalGetGradientClass)(r),x=v&&b?`${v}${b}`:v,w=Yt===t,C=Er===t,T=!(u||m),I={minHeight:x||void 0},D={backgroundColor:_?void 0:i,background:a||void 0},L=s&&T?nn(s):void 0,E=f?`url(${f})`:void 0,B=nn(s),A=S({"is-light":!p,"has-parallax":u,"is-repeated":m,"has-custom-content-position":!pa(o)},Ua(o)),z=S("wp-block-cover__image-background",g?`wp-image-${g}`:null,{"has-parallax":u,"is-repeated":m}),j=r||a;return(0,he.jsxs)("div",{...Ie.useBlockProps.save({className:A,style:I}),children:[(0,he.jsx)("span",{"aria-hidden":"true",className:S("wp-block-cover__background",_,gl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&j&&l!==0,"has-background-gradient":j,[k]:k}),style:D}),!c&&w&&f&&(T?(0,he.jsx)("img",{className:z,alt:h,src:f,style:{objectPosition:L},"data-object-fit":"cover","data-object-position":L}):(0,he.jsx)("div",{role:"img",className:z,style:{backgroundPosition:B,backgroundImage:E}})),C&&f&&(0,he.jsx)("video",{className:S("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:L},"data-object-fit":"cover","data-object-position":L}),(0,he.jsx)("div",{...Ie.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Rp},b5e={attributes:Pb,supports:Qh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:p,isRepeated:m,overlayColor:d,url:f,alt:h,id:g,minHeight:v,minHeightUnit:b}=e,_=(0,Ie.getColorClassName)("background-color",d),k=(0,Ie.__experimentalGetGradientClass)(r),x=v&&b?`${v}${b}`:v,w=Yt===t,C=Er===t,T=!(u||m),I={...w&&!T&&!c?ec(f):{},minHeight:x||void 0},D={backgroundColor:_?void 0:i,background:a||void 0},L=s&&T?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,E=S({"is-light":!p,"has-parallax":u,"is-repeated":m,"has-custom-content-position":!pa(o)},Ua(o)),B=r||a;return(0,he.jsxs)("div",{...Ie.useBlockProps.save({className:E,style:I}),children:[(0,he.jsx)("span",{"aria-hidden":"true",className:S("wp-block-cover__background",_,gl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&B&&l!==0,"has-background-gradient":B,[k]:k}),style:D}),!c&&w&&T&&f&&(0,he.jsx)("img",{className:S("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:h,src:f,style:{objectPosition:L},"data-object-fit":"cover","data-object-position":L}),C&&f&&(0,he.jsx)("video",{className:S("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:L},"data-object-fit":"cover","data-object-position":L}),(0,he.jsx)("div",{...Ie.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Rp},y5e={attributes:Pb,supports:Qh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isDark:u,isRepeated:p,overlayColor:m,url:d,alt:f,id:h,minHeight:g,minHeightUnit:v}=e,b=(0,Ie.getColorClassName)("background-color",m),_=(0,Ie.__experimentalGetGradientClass)(r),k=v?`${g}${v}`:g,x=Yt===t,w=Er===t,C=!(c||p),T={...x&&!C?ec(d):{},minHeight:k||void 0},I={backgroundColor:b?void 0:i,background:a||void 0},D=s&&C?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,L=S({"is-light":!u,"has-parallax":c,"is-repeated":p,"has-custom-content-position":!pa(o)},Ua(o)),E=r||a;return(0,he.jsxs)("div",{...Ie.useBlockProps.save({className:L,style:T}),children:[(0,he.jsx)("span",{"aria-hidden":"true",className:S("wp-block-cover__background",b,gl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":d&&E&&l!==0,"has-background-gradient":E,[_]:_}),style:I}),x&&C&&d&&(0,he.jsx)("img",{className:S("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}),w&&d&&(0,he.jsx)("video",{className:S("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,he.jsx)("div",{...Ie.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Rp},_5e={attributes:Pb,supports:Qh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isDark:u,isRepeated:p,overlayColor:m,url:d,alt:f,id:h,minHeight:g,minHeightUnit:v}=e,b=(0,Ie.getColorClassName)("background-color",m),_=(0,Ie.__experimentalGetGradientClass)(r),k=v?`${g}${v}`:g,x=Yt===t,w=Er===t,C=!(c||p),T={...x&&!C?ec(d):{},minHeight:k||void 0},I={backgroundColor:b?void 0:i,background:a||void 0},D=s&&C?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,L=S({"is-light":!u,"has-parallax":c,"is-repeated":p,"has-custom-content-position":!pa(o)},Ua(o));return(0,he.jsxs)("div",{...Ie.useBlockProps.save({className:L,style:T}),children:[(0,he.jsx)("span",{"aria-hidden":"true",className:S(b,gl(l),"wp-block-cover__gradient-background",_,{"has-background-dim":l!==void 0,"has-background-gradient":r||a,[_]:!d&&_}),style:I}),x&&C&&d&&(0,he.jsx)("img",{className:S("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}),w&&d&&(0,he.jsx)("video",{className:S("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,he.jsx)("div",{...Ie.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Rp},x5e={attributes:{...zd,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:Qh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isRepeated:u,overlayColor:p,url:m,alt:d,id:f,minHeight:h,minHeightUnit:g}=e,v=(0,Ie.getColorClassName)("background-color",p),b=(0,Ie.__experimentalGetGradientClass)(r),_=g?`${h}${g}`:h,k=Yt===t,x=Er===t,w=!(c||u),C={...k&&!w?ec(m):{},backgroundColor:v?void 0:i,background:a&&!m?a:void 0,minHeight:_||void 0},T=s&&w?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,I=S(Md(l),v,{"has-background-dim":l!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":r||a,[b]:!m&&b,"has-custom-content-position":!pa(o)},Ua(o));return(0,he.jsxs)("div",{...Ie.useBlockProps.save({className:I,style:C}),children:[m&&(r||a)&&l!==0&&(0,he.jsx)("span",{"aria-hidden":"true",className:S("wp-block-cover__gradient-background",b),style:a?{background:a}:void 0}),k&&w&&m&&(0,he.jsx)("img",{className:S("wp-block-cover__image-background",f?`wp-image-${f}`:null),alt:d,src:m,style:{objectPosition:T},"data-object-fit":"cover","data-object-position":T}),x&&m&&(0,he.jsx)("video",{className:S("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:T},"data-object-fit":"cover","data-object-position":T}),(0,he.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,he.jsx)(Ie.InnerBlocks.Content,{})})]})},migrate:(0,Tb.compose)(n3,Rp)},k5e={attributes:{...zd,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:a,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isRepeated:u,overlayColor:p,url:m,minHeight:d,minHeightUnit:f}=e,h=(0,Ie.getColorClassName)("background-color",p),g=(0,Ie.__experimentalGetGradientClass)(r),v=f?`${d}${f}`:d,b=Yt===t,_=Er===t,k=b?ec(m):{},x={};h||(k.backgroundColor=i),a&&!m&&(k.background=a),k.minHeight=v||void 0;let w;s&&(w=`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`,b&&!c&&(k.backgroundPosition=w),_&&(x.objectPosition=w));let C=S(Md(l),h,{"has-background-dim":l!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":r||a,[g]:!m&&g,"has-custom-content-position":!pa(o)},Ua(o));return(0,he.jsxs)("div",{...Ie.useBlockProps.save({className:C,style:k}),children:[m&&(r||a)&&l!==0&&(0,he.jsx)("span",{"aria-hidden":"true",className:S("wp-block-cover__gradient-background",g),style:a?{background:a}:void 0}),_&&m&&(0,he.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:x}),(0,he.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,he.jsx)(Ie.InnerBlocks.Content,{})})]})},migrate:(0,Tb.compose)(n3,Rp)},w5e={attributes:{...zd,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,customGradient:o,customOverlayColor:a,dimRatio:i,focalPoint:l,hasParallax:s,overlayColor:c,url:u,minHeight:p}=e,m=(0,Ie.getColorClassName)("background-color",c),d=(0,Ie.__experimentalGetGradientClass)(r),f=t===Yt?ec(u):{};m||(f.backgroundColor=a),l&&!s&&(f.backgroundPosition=`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`),o&&!u&&(f.background=o),f.minHeight=p||void 0;let h=S(Md(i),m,{"has-background-dim":i!==0,"has-parallax":s,"has-background-gradient":o,[d]:!u&&d});return(0,he.jsxs)("div",{className:h,style:f,children:[u&&(r||o)&&i!==0&&(0,he.jsx)("span",{"aria-hidden":"true",className:S("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),Er===t&&u&&(0,he.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,he.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,he.jsx)(Ie.InnerBlocks.Content,{})})]})},migrate:(0,Tb.compose)(n3,Rp)},C5e={attributes:{...zd,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,customGradient:o,customOverlayColor:a,dimRatio:i,focalPoint:l,hasParallax:s,overlayColor:c,url:u,minHeight:p}=e,m=(0,Ie.getColorClassName)("background-color",c),d=(0,Ie.__experimentalGetGradientClass)(r),f=t===Yt?ec(u):{};m||(f.backgroundColor=a),l&&!s&&(f.backgroundPosition=`${l.x*100}% ${l.y*100}%`),o&&!u&&(f.background=o),f.minHeight=p||void 0;let h=S(Md(i),m,{"has-background-dim":i!==0,"has-parallax":s,"has-background-gradient":o,[d]:!u&&d});return(0,he.jsxs)("div",{className:h,style:f,children:[u&&(r||o)&&i!==0&&(0,he.jsx)("span",{"aria-hidden":"true",className:S("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),Er===t&&u&&(0,he.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,he.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,he.jsx)(Ie.InnerBlocks.Content,{})})]})},migrate:(0,Tb.compose)(n3,Rp)},S5e={attributes:{...zd,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:a,focalPoint:i,hasParallax:l,overlayColor:s,title:c,url:u}=e,p=(0,Ie.getColorClassName)("background-color",s),m=t===Yt?ec(u):{};p||(m.backgroundColor=o),i&&!l&&(m.backgroundPosition=`${i.x*100}% ${i.y*100}%`);let d=S(Md(a),p,{"has-background-dim":a!==0,"has-parallax":l,[`has-${r}-content`]:r!=="center"});return(0,he.jsxs)("div",{className:d,style:m,children:[Er===t&&u&&(0,he.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!Ie.RichText.isEmpty(c)&&(0,he.jsx)(Ie.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,...a}=t;return[a,[(0,r3.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,o3.__)("Write title\u2026")})]]}},T5e={attributes:{...zd,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:a,align:i,contentAlign:l,overlayColor:s,customOverlayColor:c}=e,u=(0,Ie.getColorClassName)("background-color",s),p=ec(t);u||(p.backgroundColor=c);let m=S("wp-block-cover-image",Md(a),u,{"has-background-dim":a!==0,"has-parallax":o,[`has-${l}-content`]:l!=="center"},i?`align${i}`:null);return(0,he.jsx)("div",{className:m,style:p,children:!Ie.RichText.isEmpty(r)&&(0,he.jsx)(Ie.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:a,...i}=t;return[i,[(0,r3.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,o3.__)("Write title\u2026")})]]}},P5e={attributes:{...zd,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:a,align:i}=e,l=ec(t),s=S("wp-block-cover-image",Md(a),{"has-background-dim":a!==0,"has-parallax":o},i?`align${i}`:null);return(0,he.jsx)("section",{className:s,style:l,children:(0,he.jsx)(Ie.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:a,...i}=t;return[i,[(0,r3.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,o3.__)("Write title\u2026")})]]}},vZ=[f5e,h5e,g5e,v5e,b5e,y5e,_5e,x5e,k5e,w5e,C5e,S5e,T5e,P5e];var Nb=n(re(),1),Rn=n(H(),1),Hd=n(O(),1),g3=n(ve(),1),Yr=n(P(),1),LL=n(N(),1),yu=n(F(),1),uK=n(Ar(),1),pK=n(Sr(),1);var TZ=n(H(),1),ir=n(O(),1),PZ=n(ve(),1),an=n(P(),1),Co=n(N(),1),xL=n(F(),1),EZ=n(re(),1);var bZ=n(P(),1);var{cleanEmptyObject:a3,getStyleForState:E5e,setStyleForState:yZ}=U(bZ.privateApis);function _L(e,t){return E5e(e,t)||{}}function B5e(e,t={}){return Object.fromEntries(Object.entries(e).map(([r,o])=>[t[r]||r,o]))}function I5e(e,t){return t?Object.fromEntries(t.map(r=>[r,e[r]])):e}function Xh(e){return[e?.viewport||"default",e?.pseudo||"default"].join(":")}function N5e(e,t){return _L(e,t)?.dimensions||{}}function wi(e={}){let{attributes:t={},style:r=t?.style,selectedState:o,hasSelectedStyleState:a,attributeKey:i,styleKey:l=i,rootValue:s}=e;return a?N5e(r,o)?.[l]:Object.hasOwn(e,"rootValue")?s:t?.[i]}function D5e(e,t,r){let o=_L(e,t);return yZ(e,t,a3({...o,dimensions:a3({...o?.dimensions,...r})}))}function Jh({style:e,selectedState:t,hasSelectedStyleState:r,nextDimensions:o,dimensionKeyMap:a,dimensionKeys:i}){let l=I5e(o,i);return r?{style:D5e(e,t,B5e(l,a))}:l}function _Z(e,t){let r=Object.fromEntries(t.map(o=>[o,void 0]));return a3({...e,dimensions:a3({...e?.dimensions,...r})})}function L5e(e,t,r){return yZ(e,t,_Z(_L(e,t),r))}function eg({attributes:e={},style:t=e?.style,selectedState:r,hasSelectedStyleState:o,keys:a,defaultAttributes:i={}}){return{...o?{}:{...e,...i},style:o?L5e(t,r,a):_Z(t,a)}}var Vd="full";var tg=n(P(),1),kZ=n(Sr(),1),ma=n(O(),1),wZ=n(Ar(),1),Ci=n(N(),1),i3=n(H(),1),CZ=n(ve(),1),l3=n(F(),1),Ln=n(y(),1),xZ=["image"];function SZ({poster:e,onChange:t}){let r=(0,i3.useRef)(),[o,a]=(0,i3.useState)(!1),i=(0,CZ.useInstanceId)(SZ,"block-library-poster-image-description"),{getSettings:l}=(0,l3.useSelect)(tg.store),{createErrorNotice:s}=(0,l3.useDispatch)(kZ.store),c=p=>{l().mediaUpload({allowedTypes:xZ,filesList:p,onFileChange:([m])=>{if((0,wZ.isBlobURL)(m?.url)){a(!0);return}m&&t(m),a(!1)},onError:m=>{s(m,{id:"poster-image-upload-notice",type:"snackbar"}),a(!1)},multiple:!1})},u=()=>!e&&o?(0,Ln.jsx)(ma.Spinner,{}):e?(0,Ci.__)("Replace"):(0,Ci.__)("Set poster image");return(0,Ln.jsx)(tg.MediaUploadCheck,{children:(0,Ln.jsxs)(ma.__experimentalToolsPanelItem,{label:(0,Ci.__)("Poster image"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>t(void 0),children:[(0,Ln.jsx)(ma.BaseControl.VisualLabel,{children:(0,Ci.__)("Poster image")}),(0,Ln.jsx)(tg.MediaUpload,{title:(0,Ci.__)("Select poster image"),onSelect:t,allowedTypes:xZ,render:({open:p})=>(0,Ln.jsxs)("div",{className:"block-library-poster-image__container",children:[e&&(0,Ln.jsxs)(ma.Button,{__next40pxDefaultSize:!0,onClick:p,"aria-haspopup":"dialog","aria-label":(0,Ci.__)("Edit or replace the poster image."),className:"block-library-poster-image__preview",disabled:o,accessibleWhenDisabled:!0,children:[(0,Ln.jsx)("img",{src:e,alt:(0,Ci.__)("Poster image preview"),className:"block-library-poster-image__preview-image"}),o&&(0,Ln.jsx)(ma.Spinner,{})]}),(0,Ln.jsxs)(ma.__experimentalHStack,{className:S("block-library-poster-image__actions",{"block-library-poster-image__actions-select":!e}),children:[(0,Ln.jsx)(ma.Button,{__next40pxDefaultSize:!0,onClick:p,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,Ln.jsx)("p",{id:i,hidden:!0,children:e?(0,Ci.sprintf)((0,Ci.__)("The current poster image url is %s."),e):(0,Ci.__)("There is no poster image currently selected.")}),!!e&&(0,Ln.jsx)(ma.Button,{__next40pxDefaultSize:!0,onClick:()=>{t(void 0),r.current.focus()},className:"block-library-poster-image__action",disabled:o,accessibleWhenDisabled:!0,children:(0,Ci.__)("Remove")})]}),(0,Ln.jsx)(ma.DropZone,{onFilesDrop:c})]})})]})})}var s3=SZ;var _t=n(y(),1),{cleanEmptyObject:R5e,isDefaultBlockStyleState:A5e,ResolutionTool:M5e,HTMLElementControl:z5e}=U(an.privateApis);function V5e({onChange:e,onUnitChange:t,unit:r="px",value:o=""}){let i=`block-cover-height-input-${(0,PZ.useInstanceId)(ir.__experimentalUnitControl)}`,l=r==="px",[s]=(0,an.useSettings)("spacing.units"),c=(0,ir.__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)},p=(0,TZ.useMemo)(()=>{let[d]=(0,ir.__experimentalParseQuantityAndUnitFromRawValue)(o);return[d,r].join("")},[r,o]),m=l?hZ:0;return(0,_t.jsx)(ir.__experimentalUnitControl,{label:(0,Co.__)("Minimum height"),id:i,isResetValueOnUnitChange:!0,min:m,onChange:u,onUnitChange:t,units:c,value:p})}function BZ({attributes:e,setAttributes:t,clientId:r,setOverlayColor:o,coverRef:a,currentSettings:i,updateDimRatio:l,featuredImage:s}){let{useFeaturedImage:c,id:u,dimRatio:p,focalPoint:m,hasParallax:d,isRepeated:f,minHeight:h,minHeightUnit:g,alt:v,tagName:b,poster:_}=e,{isVideoBackground:k,isImageBackground:x,mediaElement:w,url:C,overlayColor:T}=i,I=e.sizeSlug||Vd,{gradientValue:D,setGradient:L}=(0,an.__experimentalUseGradient)(),{imageSizes:E,selectedStyleState:B}=(0,xL.useSelect)(le=>{let{getSettings:Pe,getSelectedBlockStyleState:Ee}=U(le(an.store));return{imageSizes:Pe()?.imageSizes,selectedStyleState:Ee(r)}},[r]),A=!A5e(B),z=Xh(B),j=wi({attributes:e,selectedState:B,hasSelectedStyleState:A,attributeKey:"minHeight",styleKey:"minHeight",rootValue:void 0}),[G,W]=(0,ir.__experimentalParseQuantityAndUnitFromRawValue)(j||""),$=A?G:h,V=A&&W||g,Q=wi({attributes:e,selectedState:B,hasSelectedStyleState:A,attributeKey:"aspectRatio",rootValue:e?.style?.dimensions?.aspectRatio}),Y=(0,xL.useSelect)(le=>u&&x?le(EZ.store).getEntityRecord("postType","attachment",u,{context:"view"}):null,[u,x]),ee=c?s:Y;function te(le){let Pe=ee?.media_details?.sizes?.[le]?.source_url;if(!Pe)return null;t({url:Pe,sizeSlug:le})}let oe=E?.filter(({slug:le})=>ee?.media_details?.sizes?.[le]?.source_url)?.map(({name:le,slug:Pe})=>({value:Pe,label:le})),J=()=>{t({hasParallax:!d,...d?{}:{focalPoint:void 0}})},ce=()=>{t({isRepeated:!f})},ie=k||x,we=le=>{let[Pe,Ee]=w.current?[w.current.style,"objectPosition"]:[a.current.style,"backgroundPosition"];Pe[Ee]=nn(le)},se=(0,an.__experimentalUseMultipleOriginColorsAndGradients)(),de=se.hasColorsOrGradients&&!A,ge=(le,Pe)=>{if(A){t(Jh({style:e.style,selectedState:B,hasSelectedStyleState:A,nextDimensions:{minHeight:le===void 0?void 0:`${le}${Pe||V||"px"}`,aspectRatio:void 0}}));return}t({minHeight:le,style:R5e({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})})},ne=(le=e)=>eg({style:le.style,selectedState:B,hasSelectedStyleState:A,keys:["minHeight"],defaultAttributes:{minHeight:void 0,minHeightUnit:void 0}}),me=Z();return(0,_t.jsxs)(_t.Fragment,{children:[(!!C||c)&&(0,_t.jsx)(an.InspectorControls,{children:(0,_t.jsxs)(ir.__experimentalToolsPanel,{label:(0,Co.__)("Settings"),resetAll:()=>{t({hasParallax:!1,focalPoint:void 0,isRepeated:!1,alt:"",poster:void 0}),te(Vd)},dropdownMenuProps:me,children:[x&&(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(ir.__experimentalToolsPanelItem,{label:(0,Co.__)("Fixed background"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>t({hasParallax:!1,focalPoint:void 0}),children:(0,_t.jsx)(ir.ToggleControl,{label:(0,Co.__)("Fixed background"),checked:!!d,onChange:J})}),(0,_t.jsx)(ir.__experimentalToolsPanelItem,{label:(0,Co.__)("Repeated background"),isShownByDefault:!0,hasValue:()=>f,onDeselect:()=>t({isRepeated:!1}),children:(0,_t.jsx)(ir.ToggleControl,{label:(0,Co.__)("Repeated background"),checked:f,onChange:ce})})]}),ie&&(0,_t.jsx)(ir.__experimentalToolsPanelItem,{label:(0,Co.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!m,onDeselect:()=>t({focalPoint:void 0}),children:(0,_t.jsx)(ir.FocalPointPicker,{label:(0,Co.__)("Focal point"),url:C,value:m,onDragStart:we,onDrag:we,onChange:le=>t({focalPoint:le})})}),k&&(0,_t.jsx)(s3,{poster:_,onChange:le=>t({poster:le?.url})}),!c&&C&&!k&&(0,_t.jsx)(ir.__experimentalToolsPanelItem,{label:(0,Co.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!v,onDeselect:()=>t({alt:""}),children:(0,_t.jsx)(ir.TextareaControl,{label:(0,Co.__)("Alternative text"),value:v,onChange:le=>t({alt:le}),help:(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(uu,{openInNewTab:!0,href:(0,Co.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Co.__)("Describe the purpose of the image.")}),(0,_t.jsx)("br",{}),(0,Co.__)("Leave empty if decorative.")]})})}),!!oe?.length&&(0,_t.jsx)(M5e,{value:I,onChange:te,options:oe,defaultValue:Vd})]})}),de&&(0,_t.jsxs)(an.InspectorControls,{group:"color",children:[(0,_t.jsx)(an.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:T.color,gradientValue:D,label:(0,Co.__)("Overlay"),onColorChange:o,onGradientChange:L,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:r,...se}),(0,_t.jsx)(ir.__experimentalToolsPanelItem,{hasValue:()=>p===void 0?!1:p!==(C?50:100),label:(0,Co.__)("Overlay opacity"),onDeselect:()=>l(C?50:100),resetAllFilter:()=>({dimRatio:C?50:100}),isShownByDefault:!0,panelId:r,children:(0,_t.jsx)(ir.RangeControl,{label:(0,Co.__)("Overlay opacity"),value:p,onChange:le=>l(le),min:0,max:100,step:10,required:!0})})]}),(0,_t.jsx)(an.InspectorControls,{group:"dimensions",children:(0,_t.jsx)(ir.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!$,label:(0,Co.__)("Minimum height"),onDeselect:()=>t(ne()),resetAllFilter:ne,isShownByDefault:!0,panelId:r,children:(0,_t.jsx)(V5e,{value:Q?"":$,unit:V,onChange:le=>ge(le),onUnitChange:le=>{if(A){$!==void 0&&ge($,le);return}t({minHeightUnit:le})}})},z)}),(0,_t.jsx)(an.InspectorControls,{group:"advanced",children:(0,_t.jsx)(z5e,{tagName:b,onChange:le=>t({tagName:le}),clientId:r,options:[{label:(0,Co.__)("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 c3=n(H(),1),ls=n(P(),1),ng=n(N(),1),u3=n(O(),1);var kL=n(H(),1),og=n(O(),1),Od=n(N(),1);var IZ=n(q(),1);var O5e="core/embed",NZ=["youtube","vimeo","videopress","animoto","tiktok","wordpress-tv"];function DZ(e){return Array.isArray(e)?NZ.filter(t=>e.includes(t)):[]}function LZ(e,t){return e?F5e(e,t)!==null:!1}function F5e(e,t=NZ){let r=(0,IZ.getBlockVariations)(O5e);if(!r)return null;let o=r.find(({patterns:a})=>SN(e,a));return!o||!t.includes(o.name)?null:o}function RZ(e){let t=e?.match(/src=["']([^"']+)["']/);if(!t)return null;let r=t[1],o=j5e(r);return e.replace(r,o)}function H5e(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 j5e(e){if(!e)return e;try{let t=new URL(e);switch(H5e(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 rg=n(y(),1);function AZ({onSubmit:e,onClose:t,initialUrl:r="",allowedVideoProviders:o}){let[a,i]=(0,kL.useState)(r),[l,s]=(0,kL.useState)("");return(0,rg.jsx)(og.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{if(!a){s((0,Od.__)("Please enter a URL."));return}if(!LZ(a,o)){s((0,Od.__)("This URL is not supported. Please enter a valid video link from a supported provider."));return}e(a),t()},onCancel:t,confirmButtonText:(0,Od.__)("Add video"),size:"medium",children:(0,rg.jsxs)(wp,{direction:"column",gap:"lg",children:[l&&(0,rg.jsx)(og.Notice,{status:"error",isDismissible:!1,children:l}),(0,rg.jsx)(og.TextControl,{type:"url",label:(0,Od.__)("Video URL"),value:a,onChange:u=>{i(u),s("")},placeholder:(0,Od.__)("Enter YouTube, Vimeo, or other video URL"),help:(0,Od.__)("Add a background video to the cover block that will autoplay in a loop.")})]})})}var Si=n(y(),1),{cleanEmptyObject:U5e}=U(ls.privateApis);function MZ({attributes:e,setAttributes:t,onSelectMedia:r,currentSettings:o,toggleUseFeaturedImage:a,onClearMedia:i,onSelectEmbedUrl:l,onEditMedia:s,editMediaButtonRef:c,showEditMediaButton:u,isEditMediaDisabled:p,blockEditingMode:m}){let{contentPosition:d,id:f,useFeaturedImage:h,minHeight:g,minHeightUnit:v,backgroundType:b,allowedVideoProviders:_}=e,{hasInnerBlocks:k,url:x}=o,w=DZ(_),C=w.length>0,[T,I]=(0,c3.useState)(g),[D,L]=(0,c3.useState)(v),[E,B]=(0,c3.useState)(!1),A=v==="vh"&&g===100&&!e?.style?.dimensions?.aspectRatio,z=m==="contentOnly",j=()=>A?t(D==="vh"&&T===100?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:T,minHeightUnit:D}):(I(g),L(v),t({minHeight:100,minHeightUnit:"vh",style:U5e({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}));return(0,Si.jsxs)(Si.Fragment,{children:[!z&&(0,Si.jsxs)(ls.BlockControls,{group:"block",children:[(0,Si.jsx)(ls.__experimentalBlockAlignmentMatrixControl,{label:(0,ng.__)("Change content position"),value:d,onChange:G=>t({contentPosition:G}),isDisabled:!k}),(0,Si.jsx)(ls.__experimentalBlockFullHeightAligmentControl,{isActive:A,onToggle:j,isDisabled:!k}),u&&(0,Si.jsx)(u3.ToolbarButton,{ref:c,icon:Xm,label:(0,ng.__)("Crop background image"),onClick:s,"aria-haspopup":"dialog",disabled:p})]}),(0,Si.jsx)(ls.BlockControls,{group:"other",children:(0,Si.jsx)(ls.MediaReplaceFlow,{mediaId:f,mediaURL:x,allowedTypes:t3,onSelect:r,onToggleFeaturedImage:a,useFeaturedImage:h,name:x?(0,ng.__)("Replace"):(0,ng.__)("Add media"),onReset:i,variant:"toolbar",children:({onClose:G})=>C?(0,Si.jsx)(u3.MenuItem,{icon:di,onClick:()=>{B(!0),G()},children:(0,ng.__)("Embed video from URL")}):null})}),E&&(0,Si.jsx)(AZ,{onSubmit:G=>{l(G)},onClose:()=>B(!1),initialUrl:b===gu?x:"",allowedVideoProviders:w})]})}var p3=n(P(),1),zZ=n(N(),1);var VZ=n(Ar(),1);var wL=n(y(),1);function CL({disableMediaButtons:e=!1,children:t,onSelectMedia:r,onError:o,style:a,toggleUseFeaturedImage:i}){let l=s=>{s.length===1&&r({url:(0,VZ.createBlobURL)(s[0])})};return(0,wL.jsx)(p3.MediaPlaceholder,{icon:(0,wL.jsx)(p3.BlockIcon,{icon:Qm}),labels:{title:(0,zZ.__)("Cover")},onSelect:r,allowedTypes:t3,disableMediaButtons:e,onToggleFeaturedImage:i,onFilesPreUpload:l,onError:o,style:a,children:t})}var OZ=n(H(),1),FZ=n(P(),1);var HZ=n(y(),1),G5e={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:W5e}=U(FZ.privateApis);function SL({className:e,height:t,minHeight:r,onResize:o,onResizeStart:a,onResizeStop:i,showHandle:l,size:s,width:c,...u}){let[p,m]=(0,OZ.useState)(!1),d={className:S(e,{"is-resizing":p}),enable:G5e,onResizeStart:(f,h,g)=>{a(g.clientHeight),o(g.clientHeight)},onResize:(f,h,g)=>{o(g.clientHeight),p||m(!0)},onResizeStop:(f,h,g)=>{i(g.clientHeight),m(!1)},showHandle:l,size:s,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:p}};return(0,HZ.jsx)(W5e,{className:"block-library-cover__resizable-box-popover",resizableBoxProps:d,...u})}var $5e={grad:.9,turn:360,rad:360/(2*Math.PI)},vu=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},zo=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},vl=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e>t?e:t},KZ=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},jZ=function(e){return{r:vl(e.r,0,255),g:vl(e.g,0,255),b:vl(e.b,0,255),a:vl(e.a)}},TL=function(e){return{r:zo(e.r),g:zo(e.g),b:zo(e.b),a:zo(e.a,3)}},q5e=/^#([0-9a-f]{3,8})$/i,m3=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},YZ=function(e){var t=e.r,r=e.g,o=e.b,a=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}},QZ=function(e){var t=e.h,r=e.s,o=e.v,a=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}},UZ=function(e){return{h:KZ(e.h),s:vl(e.s,0,100),l:vl(e.l,0,100),a:vl(e.a)}},GZ=function(e){return{h:zo(e.h),s:zo(e.s),l:zo(e.l),a:zo(e.a,3)}},WZ=function(e){return QZ((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},Eb=function(e){return{h:(t=YZ(e)).h,s:(a=(200-(r=t.s))*(o=t.v)/100)>0&&a<200?r*o/100/(a<=100?a:200-a)*100:0,l:a/2,a:t.a};var t,r,o,a},Z5e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,K5e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Y5e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Q5e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,BL={string:[[function(e){var t=q5e.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?zo(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?zo(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Y5e.exec(e)||Q5e.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:jZ({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=Z5e.exec(e)||K5e.exec(e);if(!t)return null;var r,o,a=UZ({h:(r=t[1],o=t[2],o===void 0&&(o="deg"),Number(r)*($5e[o]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return WZ(a)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,o=e.b,a=e.a,i=a===void 0?1:a;return vu(t)&&vu(r)&&vu(o)?jZ({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,a=e.a,i=a===void 0?1:a;if(!vu(t)||!vu(r)||!vu(o))return null;var l=UZ({h:Number(t),s:Number(r),l:Number(o),a:Number(i)});return WZ(l)},"hsl"],[function(e){var t=e.h,r=e.s,o=e.v,a=e.a,i=a===void 0?1:a;if(!vu(t)||!vu(r)||!vu(o))return null;var l=(function(s){return{h:KZ(s.h),s:vl(s.s,0,100),v:vl(s.v,0,100),a:vl(s.a)}})({h:Number(t),s:Number(r),v:Number(o),a:Number(i)});return QZ(l)},"hsv"]]},$Z=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]},X5e=function(e){return typeof e=="string"?$Z(e.trim(),BL.string):typeof e=="object"&&e!==null?$Z(e,BL.object):[null,void 0]};var PL=function(e,t){var r=Eb(e);return{h:r.h,s:vl(r.s+100*t,0,100),l:r.l,a:r.a}},EL=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},qZ=function(e,t){var r=Eb(e);return{h:r.h,s:r.s,l:vl(r.l+100*t,0,100),a:r.a}},IL=(function(){function e(t){this.parsed=X5e(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 zo(EL(this.rgba),2)},e.prototype.isDark=function(){return EL(this.rgba)<.5},e.prototype.isLight=function(){return EL(this.rgba)>=.5},e.prototype.toHex=function(){return t=TL(this.rgba),r=t.r,o=t.g,a=t.b,l=(i=t.a)<1?m3(zo(255*i)):"","#"+m3(r)+m3(o)+m3(a)+l;var t,r,o,a,i,l},e.prototype.toRgb=function(){return TL(this.rgba)},e.prototype.toRgbString=function(){return t=TL(this.rgba),r=t.r,o=t.g,a=t.b,(i=t.a)<1?"rgba("+r+", "+o+", "+a+", "+i+")":"rgb("+r+", "+o+", "+a+")";var t,r,o,a,i},e.prototype.toHsl=function(){return GZ(Eb(this.rgba))},e.prototype.toHslString=function(){return t=GZ(Eb(this.rgba)),r=t.h,o=t.s,a=t.l,(i=t.a)<1?"hsla("+r+", "+o+"%, "+a+"%, "+i+")":"hsl("+r+", "+o+"%, "+a+"%)";var t,r,o,a,i},e.prototype.toHsv=function(){return t=YZ(this.rgba),{h:zo(t.h),s:zo(t.s),v:zo(t.v),a:zo(t.a,3)};var t},e.prototype.invert=function(){return Br({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),Br(PL(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Br(PL(this.rgba,-t))},e.prototype.grayscale=function(){return Br(PL(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Br(qZ(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Br(qZ(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"?Br({r:(r=this.rgba).r,g:r.g,b:r.b,a:t}):zo(this.rgba.a,3);var r},e.prototype.hue=function(t){var r=Eb(this.rgba);return typeof t=="number"?Br({h:t,s:r.s,l:r.l,a:r.a}):zo(r.h)},e.prototype.isEqual=function(t){return this.toHex()===Br(t).toHex()},e})(),Br=function(e){return e instanceof IL?e:new IL(e)},ZZ=[],XZ=function(e){e.forEach(function(t){ZZ.indexOf(t)<0&&(t(IL,BL),ZZ.push(t))})};function JZ(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 a in r)o[r[a]]=a;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 p=this.toRgb(),m=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=p,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<m&&(m=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 J5e(e){var t=e.toString(16);return t.length===1?"0"+t:t}function eK(e){return"#"+e.map(J5e).join("")}function ewe(e){var t=(e[0]*299+e[1]*587+e[2]*114)/1e3;return t<128}function twe(e){return e?rwe(e)?e:[e]:[]}function rwe(e){return Array.isArray(e[0])}function DL(e,t,r){for(var o=0;o<r.length;o++)if(owe(e,t,r[o]))return!0;return!1}function owe(e,t,r){switch(r.length){case 3:if(nwe(e,t,r))return!0;break;case 4:if(awe(e,t,r))return!0;break;case 5:if(iwe(e,t,r))return!0;break;default:return!1}}function nwe(e,t,r){return e[t+3]!==255||e[t]===r[0]&&e[t+1]===r[1]&&e[t+2]===r[2]}function awe(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 d3(e,t,r){return e>=t-r&&e<=t+r}function iwe(e,t,r){var o=r[0],a=r[1],i=r[2],l=r[3],s=r[4],c=e[t+3],u=d3(c,l,s);return l?!!(!c&&u||d3(e[t],o,s)&&d3(e[t+1],a,s)&&d3(e[t+2],i,s)&&u):u}function lwe(e,t,r){for(var o={},a=24,i=r.ignoredColor,l=r.step,s=[0,0,0,0,0],c=0;c<t;c+=l){var u=e[c],p=e[c+1],m=e[c+2],d=e[c+3];if(!(i&&DL(e,c,i))){var f=Math.round(u/a)+","+Math.round(p/a)+","+Math.round(m/a);o[f]?o[f]=[o[f][0]+u*d,o[f][1]+p*d,o[f][2]+m*d,o[f][3]+d,o[f][4]+1]:o[f]=[u*d,p*d,m*d,d,1],s[4]<o[f][4]&&(s=o[f])}}var h=s[0],g=s[1],v=s[2],b=s[3],_=s[4];return b?[Math.round(h/b),Math.round(g/b),Math.round(v/b),Math.round(b/_)]:r.defaultColor}function swe(e,t,r){for(var o=0,a=0,i=0,l=0,s=0,c=r.ignoredColor,u=r.step,p=0;p<t;p+=u){var m=e[p+3],d=e[p]*m,f=e[p+1]*m,h=e[p+2]*m;c&&DL(e,p,c)||(o+=d,a+=f,i+=h,l+=m,s++)}return l?[Math.round(o/l),Math.round(a/l),Math.round(i/l),Math.round(l/s)]:r.defaultColor}function cwe(e,t,r){for(var o=0,a=0,i=0,l=0,s=0,c=r.ignoredColor,u=r.step,p=0;p<t;p+=u){var m=e[p],d=e[p+1],f=e[p+2],h=e[p+3];c&&DL(e,p,c)||(o+=m*m*h,a+=d*d*h,i+=f*f*h,l+=h,s++)}return l?[Math.round(Math.sqrt(o/l)),Math.round(Math.sqrt(a/l)),Math.round(Math.sqrt(i/l)),Math.round(l/s)]:r.defaultColor}function tK(e){return Ib(e,"defaultColor",[0,0,0,0])}function Ib(e,t,r){return e[t]===void 0?r:e[t]}var rK=10,NL=100;function uwe(e){return e.search(/\.svg(\?|$)/i)!==-1}function pwe(e){if(nK(e)){var t=e.naturalWidth,r=e.naturalHeight;return!e.naturalWidth&&uwe(e.src)&&(t=r=NL),{width:t,height:r}}return dwe(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function oK(e){return fwe(e)?"canvas":mwe(e)?"offscreencanvas":hwe(e)?"imagebitmap":e.src}function nK(e){return typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement}function mwe(e){return typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas}function dwe(e){return typeof HTMLVideoElement<"u"&&e instanceof HTMLVideoElement}function fwe(e){return typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement}function hwe(e){return typeof ImageBitmap<"u"&&e instanceof ImageBitmap}function gwe(e,t){var r=Ib(t,"left",0),o=Ib(t,"top",0),a=Ib(t,"width",e.width),i=Ib(t,"height",e.height),l=a,s=i;if(t.mode==="precision")return{srcLeft:r,srcTop:o,srcWidth:a,srcHeight:i,destWidth:l,destHeight:s};var c;return a>i?(c=a/i,l=NL,s=Math.round(l/c)):(c=i/a,s=NL,l=Math.round(s/c)),(l>a||s>i||l<rK||s<rK)&&(l=a,s=i),{srcLeft:r,srcTop:o,srcWidth:a,srcHeight:i,destWidth:l,destHeight:s}}var vwe=typeof window>"u";function bwe(){return vwe?new OffscreenCanvas(1,1):document.createElement("canvas")}var aK="FastAverageColor: ";function f3(e,t,r){t||(console.error(aK+e),r&&console.error(r))}function Bb(e){return Error(aK+e)}var iK=(function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(t,r){if(!t)return Promise.reject(Bb("call .getColorAsync() without resource."));if(typeof t=="string"){if(typeof Image>"u")return Promise.reject(Bb("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(nK(t)&&!t.complete)return this.bindImageEvents(t,r);var a=this.getColor(t,r);return a.error?Promise.reject(a.error):Promise.resolve(a)}},e.prototype.getColor=function(t,r){r=r||{};var o=tK(r);if(!t)return f3("call .getColor(null) without resource",r.silent),this.prepareResult(o);var a=pwe(t),i=gwe(a,r);if(!i.srcWidth||!i.srcHeight||!i.destWidth||!i.destHeight)return f3('incorrect sizes for resource "'.concat(oK(t),'"'),r.silent),this.prepareResult(o);if(this.canvas||(this.canvas=bwe()),!this.ctx&&(this.ctx=this.canvas.getContext&&this.canvas.getContext("2d"),!this.ctx))return f3("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){f3("security error (CORS) for resource ".concat(oK(t),`.
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,a=t.length,i=tK(r);if(a<o)return i;var l=a-a%o,s=(r.step||1)*o,c;switch(r.algorithm||"sqrt"){case"simple":c=swe;break;case"sqrt":c=cwe;break;case"dominant":c=lwe;break;default:throw Bb("".concat(r.algorithm," is unknown algorithm"))}return c(t,l,{defaultColor:i,ignoredColor:twe(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],a=ewe(t);return{value:[t[0],t[1],t[2],t[3]],rgb:"rgb("+r.join(",")+")",rgba:"rgba("+o.join(",")+")",hex:eK(r),hexa:eK(t),isDark:a,isLight:!a}},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(a,i){var l=function(){u();var p=o.getColor(t,r);p.error?i(p.error):a(p)},s=function(){u(),i(Bb('Error loading image "'.concat(t.src,'".')))},c=function(){u(),i(Bb('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 sK=n(bu(),1);XZ([JZ]);var ag="#FFF",cK="#000";function ywe(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 h3(){return h3.fastAverageColor||(h3.fastAverageColor=new iK),h3.fastAverageColor}var Fd=Sh(async e=>{if(!e)return ag;let{r:t,g:r,b:o,a}=Br(ag).toRgb();try{let i=(0,sK.applyFilters)("media.crossOrigin",void 0,e);return(await h3().getColorAsync(e,{defaultColor:[t,r,o,a*255],silent:!0,crossOrigin:i})).hex}catch{return ag}});function Ap(e,t,r){if(t===r||e===100)return Br(t).isDark();let o=Br(t).alpha(e/100).toRgb(),a=Br(r).toRgb(),i=ywe(o,a);return Br(i).isDark()}var Qt=n(y(),1),{openMediaEditorModalKey:_we}=U(Yr.privateApis);function xwe(e){return[["core/paragraph",{style:{typography:{textAlign:"center"}},placeholder:(0,LL.__)("Write title\u2026"),...e}]]}var kwe=(e,t)=>!e&&(0,uK.isBlobURL)(t);function wwe({attributes:e,clientId:t,isSelected:r,overlayColor:o,setAttributes:a,setOverlayColor:i,toggleSelection:l,context:{postId:s,postType:c}}){let{contentPosition:u,id:p,url:m,backgroundType:d,useFeaturedImage:f,dimRatio:h,focalPoint:g,hasParallax:v,isDark:b,isRepeated:_,minHeight:k,minHeightUnit:x,alt:w,allowedBlocks:C,templateLock:T,tagName:I="div",isUserOverlayColor:D,sizeSlug:L,poster:E}=e,[B]=(0,Nb.useEntityProp)("postType",c,"featured_media",s),{getSettings:A}=(0,yu.useSelect)(Yr.store),z=(0,yu.useSelect)(Se=>Se(Yr.store).getSettings()[_we],[]),{__unstableMarkNextChangeAsNotPersistent:j}=(0,yu.useDispatch)(Yr.store),G=(0,Rn.useRef)({attributes:e,overlayColor:o});(0,Rn.useLayoutEffect)(()=>{G.current={attributes:e,overlayColor:o}});let{media:W}=(0,yu.useSelect)(Se=>({media:B&&f?Se(Nb.store).getEntityRecord("postType","attachment",B,{context:"view"}):void 0}),[B,f]),$=W?.media_details?.sizes?.[L]?.source_url??W?.source_url;(0,Rn.useEffect)(()=>{(async()=>{if(!f)return;let Se=await Fd($),{attributes:lt,overlayColor:hr}=G.current,wr=hr.color;lt.isUserOverlayColor||(wr=Se,j(),i(wr));let Ro=Ap(lt.dimRatio,wr,Se);j(),a({isDark:Ro,isUserOverlayColor:lt.isUserOverlayColor||!1})})()},[$,j,a,i,f]);let V=f?$:m?.replaceAll("&amp;","&"),Q=f?Yt:d,{createErrorNotice:Y}=(0,yu.useDispatch)(pK.store),{gradientClass:ee,gradientValue:te}=(0,Yr.__experimentalUseGradient)(),oe=async Se=>{let lt=gZ(Se),hr=[Se?.type,Se?.media_type].includes(Yt),wr=await Fd(hr?Se?.url:void 0),{attributes:Ro,overlayColor:rl}=G.current,Aa=rl.color;Ro.isUserOverlayColor||(Aa=wr,i(Aa),j());let Os=Ro.url===void 0&&Ro.dimRatio===100?50:Ro.dimRatio,Ma=Ap(Os,Aa,wr);if(Q===Yt&&lt?.id){let{imageDefaultSize:ol}=A();L&&(Se?.sizes?.[L]||Se?.media_details?.sizes?.[L])?(lt.sizeSlug=L,lt.url=Se?.sizes?.[L]?.url||Se?.media_details?.sizes?.[L]?.source_url):Se?.sizes?.[ol]||Se?.media_details?.sizes?.[ol]?(lt.sizeSlug=ol,lt.url=Se?.sizes?.[ol]?.url||Se?.media_details?.sizes?.[ol]?.source_url):lt.sizeSlug=Vd}a({...lt,focalPoint:void 0,useFeaturedImage:void 0,dimRatio:Os,isDark:Ma,isUserOverlayColor:Ro.isUserOverlayColor||!1})},J=()=>{let Se=o.color;!D&&o.color&&(Se=cK,i(void 0),j());let lt=Ap(h,Se,ag);a({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0,isDark:lt})},ce=async Se=>{let lt=await Fd(V),{attributes:hr}=G.current,wr=Ap(hr.dimRatio,Se,lt);i(Se),j(),a({isUserOverlayColor:!0,isDark:wr})},ie=async Se=>{let lt=await Fd(V),{overlayColor:hr}=G.current,wr=Ap(Se,hr.color,lt);a({dimRatio:Se,isDark:wr})},we=Se=>{Y(Se,{type:"snackbar"})},se=Se=>{a({url:Se,backgroundType:gu,dimRatio:m===void 0&&h===100?50:h,id:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0})},{embedPreview:de,isFetchingEmbed:ge}=(0,yu.useSelect)(Se=>{if(Q!==gu||!V)return{embedPreview:void 0,isFetchingEmbed:!1};let{getEmbedPreview:lt,isRequestingEmbedPreview:hr}=Se(Nb.store);return{embedPreview:lt(V),isFetchingEmbed:hr(V)}},[V,Q]),ne=(0,Rn.useMemo)(()=>Q!==gu||!de?.html?null:RZ(de.html),[de,Q]),[me,le]=(0,Rn.useState)(!1),Pe=kwe(p,V),Ee=Yt===Q,X=Er===Q,Ce=gu===Q,pe=(0,Yr.useBlockEditingMode)(),$e=pe==="default",[fe,{height:Ae,width:Ft}]=(0,g3.useResizeObserver)(),ze=(0,Rn.useMemo)(()=>({height:x==="px"&&k?k:"auto",width:"auto"}),[k,x]),oo=k&&x?`${k}${x}`:k,no=!(v||_),bo={minHeight:oo||void 0},yo=V?`url(${V})`:void 0,ta=nn(g),Ra={backgroundColor:o.color},ae={objectPosition:g&&no?nn(g):void 0},Ve=!!(V||o.color||te),Je=(0,yu.useSelect)(Se=>Se(Yr.store).getBlock(t).innerBlocks.length>0,[t]),St=(0,Rn.useRef)(),qe=(0,Yr.useBlockProps)({ref:St}),[_o]=(0,Yr.useSettings)("typography.fontSizes"),Tn=_o?.length>0,Hl=xwe({fontSize:Tn?"large":void 0}),ot=(0,Yr.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:Je?void 0:Hl,templateInsertUpdatesSelection:!0,allowedBlocks:C,templateLock:T,dropZoneElement:St.current}),Lo=(0,Rn.useRef)(),rp=(0,Rn.useRef)(),pi={isVideoBackground:X,isImageBackground:Ee,mediaElement:Lo,hasInnerBlocks:Je,url:V,isImgElement:no,overlayColor:o},sh=(0,Rn.useCallback)(()=>{!p||!z||z({id:p,onClose:()=>{rp.current?.focus()},onUpdate:async({id:Se,url:lt})=>{if(typeof Se!="number")return;Se!==p&&lt&&le(!0);let hr={id:Se,backgroundType:Yt,...lt?{url:lt}:{},...Se!==p?{sizeSlug:Vd}:{}};if(lt){let rl=await Fd(lt),{attributes:Aa,overlayColor:Os}=G.current,Ma=Os.color;Aa.isUserOverlayColor||(Ma=rl,i(Ma),j()),hr.isDark=Ap(Aa.dimRatio,Ma,rl),hr.isUserOverlayColor=Aa.isUserOverlayColor||!1}a(hr);let{hasParallax:wr,isRepeated:Ro}=G.current.attributes;(wr||Ro)&&le(!1)}})},[p,z,a,i,j]),Hm=$e&&!f&&Ee&&!!p&&!!V&&!Pe&&!!z,Ko=async()=>{let Se=!f,lt=Se?await Fd($):ag,{attributes:hr,overlayColor:wr}=G.current,Ro=hr.isUserOverlayColor?wr.color:lt;hr.isUserOverlayColor||(i(Se?Ro:void 0),j());let rl=hr.dimRatio===100?50:hr.dimRatio,Aa=Ap(rl,Ro,lt);a({id:void 0,url:void 0,useFeaturedImage:Se,dimRatio:rl,backgroundType:f?Yt:void 0,isDark:Aa})},ra=(0,Qt.jsx)(MZ,{attributes:e,setAttributes:a,onSelectMedia:oe,onSelectEmbedUrl:se,currentSettings:pi,toggleUseFeaturedImage:Ko,onClearMedia:J,blockEditingMode:pe,onEditMedia:sh,editMediaButtonRef:rp,showEditMediaButton:Hm,isEditMediaDisabled:me}),Xc=(0,Qt.jsx)(BZ,{attributes:e,setAttributes:a,clientId:t,setOverlayColor:ce,coverRef:St,currentSettings:pi,toggleUseFeaturedImage:Ko,updateDimRatio:ie,onClearMedia:J,featuredImage:W}),ch={className:"block-library-cover__resize-container",clientId:t,height:Ae,minHeight:oo,onResizeStart:()=>{a({minHeightUnit:"px"}),l(!1)},onResize:Se=>{a({minHeight:Se})},onResizeStop:Se=>{l(!0),a({minHeight:Se})},showHandle:!e.style?.dimensions?.aspectRatio,size:ze,width:Ft};if(!f&&!Je&&!Ve)return(0,Qt.jsxs)(Qt.Fragment,{children:[ra,Xc,$e&&r&&(0,Qt.jsx)(SL,{...ch}),(0,Qt.jsxs)(I,{...qe,className:S("is-placeholder",qe.className),style:{...qe.style,minHeight:oo||void 0},children:[fe,(0,Qt.jsx)(CL,{onSelectMedia:oe,onError:we,toggleUseFeaturedImage:Ko,children:(0,Qt.jsx)("div",{className:"wp-block-cover__placeholder-background-options",children:(0,Qt.jsx)(Yr.ColorPalette,{disableCustomColors:!0,value:o.color,onChange:ce,clearable:!1,asButtons:!0,"aria-label":(0,LL.__)("Overlay color")})})})]})]});let op=S({"is-dark-theme":b,"is-light":!b,"is-transient":Pe||me,"has-parallax":v,"is-repeated":_,"has-custom-content-position":!pa(u)},Ua(u)),uh=V||!f||f&&!V;return(0,Qt.jsxs)(Qt.Fragment,{children:[ra,Xc,(0,Qt.jsxs)(I,{...qe,className:S(op,qe.className),style:{...bo,...qe.style},"data-url":V,children:[fe,!V&&f&&(0,Qt.jsx)(Hd.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),V&&Ee&&(no?(0,Qt.jsx)("img",{ref:Lo,className:"wp-block-cover__image-background",alt:w,src:V,style:ae,onLoad:()=>le(!1),onError:()=>le(!1)}):(0,Qt.jsx)("div",{ref:Lo,role:w?"img":void 0,"aria-label":w||void 0,className:S(op,"wp-block-cover__image-background"),style:{backgroundImage:yo,backgroundPosition:ta}})),V&&X&&(0,Qt.jsx)("video",{ref:Lo,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:V,poster:E,style:ae}),Ce&&ne&&(0,Qt.jsx)("div",{ref:Lo,className:"wp-block-cover__video-background wp-block-cover__embed-background",style:ae,children:(0,Qt.jsx)(Hd.SandBox,{allowSameOrigin:!0,html:ne,title:"Background video",styles:["iframe{position:fixed;top:0;left:0;width:100%;height:100%;}"]})}),Ce&&!ne&&ge&&(0,Qt.jsx)(Hd.Spinner,{}),uh&&(0,Qt.jsx)("span",{"aria-hidden":"true",className:S("wp-block-cover__background",gl(h),{[o.class]:o.class,"has-background-dim":h!==void 0,"wp-block-cover__gradient-background":V&&te&&h!==0,"has-background-gradient":te,[ee]:ee}),style:{backgroundImage:te,...Ra}}),(Pe||me)&&(0,Qt.jsx)(Hd.Spinner,{}),(0,Qt.jsx)(CL,{disableMediaButtons:!0,onSelectMedia:oe,onError:we,toggleUseFeaturedImage:Ko}),(0,Qt.jsx)("div",{...ot})]}),$e&&r&&(0,Qt.jsx)(SL,{...ch})]})}var mK=(0,g3.compose)([(0,Yr.withColors)({overlayColor:"background-color"})])(wwe);var v3={$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"},allowedVideoProviders:{type:"array",default:["youtube","vimeo","videopress","animoto","tiktok","wordpress-tv"]}},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 Mp=n(P(),1);var tc=n(y(),1);function dK({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:p,isRepeated:m,overlayColor:d,url:f,alt:h,id:g,minHeight:v,minHeightUnit:b,tagName:_,sizeSlug:k,poster:x}=e,w=(0,Mp.getColorClassName)("background-color",d),C=(0,Mp.__experimentalGetGradientClass)(r),T=v&&b?`${v}${b}`:v,I=Yt===t,D=Er===t,L=gu===t,E=!(u||m),B={minHeight:T||void 0},A={backgroundColor:w?void 0:i,background:a||void 0},z=s&&E?nn(s):void 0,j=f?`url(${f})`:void 0,G=nn(s),W=S({"is-light":!p,"has-parallax":u,"is-repeated":m,"has-custom-content-position":!pa(o)},Ua(o)),$=S("wp-block-cover__image-background",g?`wp-image-${g}`:null,{[`size-${k}`]:k,"has-parallax":u,"is-repeated":m}),V=r||a;return(0,tc.jsxs)(_,{...Mp.useBlockProps.save({className:W,style:B}),children:[!c&&I&&f&&(E?(0,tc.jsx)("img",{className:$,alt:h,src:f,style:{objectPosition:z},"data-object-fit":"cover","data-object-position":z}):(0,tc.jsx)("div",{role:h?"img":void 0,"aria-label":h||void 0,className:$,style:{backgroundPosition:G,backgroundImage:j}})),D&&f&&(0,tc.jsx)("video",{className:S("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,poster:x,style:{objectPosition:z},"data-object-fit":"cover","data-object-position":z}),L&&f&&(0,tc.jsx)("figure",{className:S("wp-block-cover__video-background","wp-block-cover__embed-background","wp-block-embed"),children:(0,tc.jsx)("div",{className:"wp-block-embed__wrapper",children:f})}),(0,tc.jsx)("span",{"aria-hidden":"true",className:S("wp-block-cover__background",w,gl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&V&&l!==0,"has-background-gradient":V,[C]:C}),style:A}),(0,tc.jsx)("div",{...Mp.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}var Ti=n(q(),1),fK=n(P(),1);var{cleanEmptyObject:b3}=U(fK.privateApis),Swe={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:r,align:o,id:a,anchor:i,style:l})=>(0,Ti.createBlock)("core/cover",{dimRatio:50,url:t,alt:r,align:o,id:a,anchor:i,style:{color:{duotone:l?.color?.duotone}}},[(0,Ti.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:a})=>(0,Ti.createBlock)("core/cover",{dimRatio:50,url:t,align:r,id:o,backgroundType:Er,anchor:a},[(0,Ti.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:a,gradient:i,style:l}=e;if(t?.length===1&&t[0]?.name==="core/cover")return(0,Ti.createBlock)("core/cover",t[0].attributes,t[0].innerBlocks);let s=a||i||l?.color?.background||l?.color?.gradient?void 0:50,c={align:r,anchor:o,dimRatio:s,overlayColor:a,customOverlayColor:l?.color?.background,gradient:i,customGradient:l?.color?.gradient},u={...e,backgroundColor:void 0,gradient:void 0,style:b3({...e?.style,color:l?.color?{...l?.color,background:void 0,gradient:void 0}:void 0})};return(0,Ti.createBlock)("core/cover",c,[(0,Ti.createBlock)("core/group",u,t)])}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:r,customOverlayColor:o,gradient:a,customGradient:i})=>t?e===Yt:!r&&!o&&!a&&!i,transform:({title:e,url:t,alt:r,align:o,id:a,anchor:i,style:l})=>(0,Ti.createBlock)("core/image",{caption:e,url:t,alt:r,align:o,id:a,anchor:i,style:{color:{duotone:l?.color?.duotone}}})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:r,customOverlayColor:o,gradient:a,customGradient:i})=>t?e===Er:!r&&!o&&!a&&!i,transform:({title:e,url:t,align:r,id:o,anchor:a})=>(0,Ti.createBlock)("core/video",{caption:e,src:t,id:o,align:r,anchor:a})},{type:"block",blocks:["core/group"],isMatch:({url:e,useFeaturedImage:t})=>!(e||t),transform:(e,t)=>{let r={backgroundColor:e?.overlayColor,gradient:e?.gradient,style:b3({...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=b3(t[0].attributes||{});return o?.backgroundColor||o?.gradient||o?.style?.color?.background||o?.style?.color?.gradient?(0,Ti.createBlock)("core/group",o,t[0]?.innerBlocks):(0,Ti.createBlock)("core/group",{...r,...o,style:b3({...o?.style,color:r?.style?.color||o?.style?.color?{...r?.style?.color,...o?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,Ti.createBlock)("core/group",{...e,...r},t)}}]},hK=Swe;var RL=n(N(),1);var Twe=[{name:"cover",title:(0,RL.__)("Cover"),description:(0,RL.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:Qm}],gK=Twe;var{fieldsKey:Pwe,formKey:Ewe}=U(vK.privateApis),{name:bK}=v3,y3={icon:Qm,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,AL.__)("Snow Patrol")}</strong>`,style:{typography:{textAlign:"center"}}}}]},transforms:hK,save:dK,edit:mK,deprecated:vZ,variations:gK};window.__experimentalContentOnlyInspectorFields&&(y3[Pwe]=[{id:"background",label:(0,AL.__)("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})}],y3[Ewe]={fields:["background"]});var Bwe=()=>R({name:bK,metadata:v3,settings:y3});var zL={};K(zL,{init:()=>Mwe,metadata:()=>_3,name:()=>SK,settings:()=>k3});var zp=n(N(),1),CK=n(q(),1);var _3={$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 ss=n(P(),1),rc=n(O(),1),_u=n(N(),1),yK=n(H(),1),_K=n(F(),1);var Ga=n(y(),1),{withIgnoreIMEEvents:Nwe}=U(rc.privateApis),Dwe=[["core/paragraph",{placeholder:(0,_u.__)("Type / to add a hidden block")}]];function Lwe({attributes:e,setAttributes:t,clientId:r}){let{name:o,showContent:a,summary:i,allowedBlocks:l,placeholder:s}=e,c=(0,ss.useBlockProps)(),u=(0,ss.useInnerBlocksProps)(c,{template:Dwe,__experimentalCaptureToolbars:!0,allowedBlocks:l}),[p,m]=(0,yK.useState)(a),d=Z(),f=(0,_K.useSelect)(v=>v(ss.store).hasSelectedInnerBlock(r,!0),[r]),h=v=>{v.key==="Enter"&&!v.shiftKey&&(m(b=>!b),v.preventDefault())},g=v=>{v.key===" "&&v.preventDefault()};return(0,Ga.jsxs)(Ga.Fragment,{children:[(0,Ga.jsx)(ss.InspectorControls,{children:(0,Ga.jsx)(rc.__experimentalToolsPanel,{label:(0,_u.__)("Settings"),resetAll:()=>{t({showContent:!1})},dropdownMenuProps:d,children:(0,Ga.jsx)(rc.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,_u.__)("Open by default"),hasValue:()=>a,onDeselect:()=>{t({showContent:!1})},children:(0,Ga.jsx)(rc.ToggleControl,{label:(0,_u.__)("Open by default"),checked:a,onChange:()=>t({showContent:!a})})})})}),(0,Ga.jsx)(ss.InspectorControls,{group:"advanced",children:(0,Ga.jsx)(rc.TextControl,{label:(0,_u.__)("Name attribute"),value:o||"",onChange:v=>t({name:v}),help:(0,_u.__)("Enables multiple Details blocks with the same name attribute to be connected, with only one open at a time.")})}),(0,Ga.jsxs)("details",{...u,open:p||f,onToggle:v=>m(v.target.open),name:o||"",children:[(0,Ga.jsx)("summary",{onKeyDown:Nwe(h),onKeyUp:g,children:(0,Ga.jsx)(ss.RichText,{identifier:"summary","aria-label":(0,_u.__)("Write summary. Press Enter to expand or collapse the details."),placeholder:s||(0,_u.__)("Write summary\u2026"),withoutInteractiveFormatting:!0,value:i,onChange:v=>t({summary:v})})}),u.children]})]})}var xK=Lwe;var lg=n(P(),1),ig=n(y(),1);function kK({attributes:e}){let{name:t,showContent:r}=e,o=e.summary?e.summary:"Details",a=lg.useBlockProps.save();return(0,ig.jsxs)("details",{...a,name:t||void 0,open:r,children:[(0,ig.jsx)("summary",{children:(0,ig.jsx)(lg.RichText.Content,{value:o})}),(0,ig.jsx)(lg.InnerBlocks.Content,{})]})}var x3=n(q(),1),wK={from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch({},e){return!(e.length===1&&e[0].name==="core/details")},__experimentalConvert(e){return(0,x3.createBlock)("core/details",{},e.map(t=>(0,x3.cloneSanitizedBlock)(t)))}}]};var{fieldsKey:Rwe,formKey:Awe}=U(CK.privateApis),{name:SK}=_3,k3={icon:GP,example:{attributes:{summary:(0,zp.__)("La Mancha"),showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,zp.__)("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,a=r?.trim().length>0;if(t==="list-view"&&(o||a))return o||r;if(t==="breadcrumb"&&o)return o;if(t==="accessibility")return a?(0,zp.sprintf)((0,zp.__)("Details. %s"),r):(0,zp.__)("Details. Empty.")},save:kK,edit:xK,transforms:wK};window.__experimentalContentOnlyInspectorFields&&(k3[Rwe]=[{id:"summary",label:(0,zp.__)("Summary"),type:"text",Edit:"rich-text"}],k3[Awe]={fields:["summary"]});var Mwe=()=>R({name:SK,metadata:_3,settings:k3});var jL={};K(jL,{init:()=>$we,metadata:()=>Ws,name:()=>lY,settings:()=>sY});var Ud=n(N(),1),pg=n(H(),1),Db=n(F(),1),P3=n(P(),1),HL=n(re(),1);var jd=n(N(),1),oc=n(O(),1),w3=n(P(),1);var bl=n(y(),1);function zwe(e){return e?(0,jd.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,jd.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var Vwe=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:r,allowResponsive:o,toggleResponsive:a,switchBackToURLInput:i})=>{let l=Z();return(0,bl.jsxs)(bl.Fragment,{children:[(0,bl.jsx)(w3.BlockControls,{children:(0,bl.jsx)(oc.ToolbarGroup,{children:t&&(0,bl.jsx)(oc.ToolbarButton,{className:"components-toolbar__control",label:(0,jd.__)("Edit URL"),icon:nd,onClick:i})})}),r&&e&&(0,bl.jsx)(w3.InspectorControls,{children:(0,bl.jsx)(oc.__experimentalToolsPanel,{label:(0,jd.__)("Media settings"),resetAll:()=>{a(!0)},dropdownMenuProps:l,children:(0,bl.jsx)(oc.__experimentalToolsPanelItem,{label:(0,jd.__)("Media settings"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>{a(!o)},children:(0,bl.jsx)(oc.ToggleControl,{label:(0,jd.__)("Resize for smaller devices"),checked:o,help:zwe,onChange:a})})})})]})},TK=Vwe;var Te=n(O(),1),Ne=n(y(),1),cs=(0,Ne.jsx)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ne.jsx)(Te.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"})}),C3=(0,Ne.jsx)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ne.jsx)(Te.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"})}),VL=(0,Ne.jsx)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ne.jsx)(Te.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"})}),sg=(0,Ne.jsx)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ne.jsx)(Te.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"})}),PK={foreground:"#000000",src:(0,Ne.jsx)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ne.jsx)(Te.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"})})},EK={foreground:"#ff0000",src:(0,Ne.jsx)(Te.SVG,{viewBox:"0 0 24 24",children:(0,Ne.jsx)(Te.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"})})},BK={foreground:"#3b5998",src:(0,Ne.jsx)(Te.SVG,{viewBox:"0 0 24 24",children:(0,Ne.jsx)(Te.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"})})},IK=(0,Ne.jsx)(Te.SVG,{viewBox:"0 0 24 24",children:(0,Ne.jsx)(Te.G,{children:(0,Ne.jsx)(Te.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"})})}),NK={foreground:"#0073AA",src:(0,Ne.jsx)(Te.SVG,{viewBox:"0 0 24 24",children:(0,Ne.jsx)(Te.G,{children:(0,Ne.jsx)(Te.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"})})})},DK={foreground:"#1db954",src:(0,Ne.jsx)(Te.SVG,{viewBox:"0 0 24 24",children:(0,Ne.jsx)(Te.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"})})},LK=(0,Ne.jsx)(Te.SVG,{viewBox:"0 0 24 24",children:(0,Ne.jsx)(Te.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"})}),RK={foreground:"#1ab7ea",src:(0,Ne.jsx)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ne.jsx)(Te.G,{children:(0,Ne.jsx)(Te.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"})})})},AK=(0,Ne.jsx)(Te.SVG,{viewBox:"0 0 24 24",children:(0,Ne.jsx)(Te.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"})}),MK={foreground:"#35465c",src:(0,Ne.jsx)(Te.SVG,{viewBox:"0 0 24 24",children:(0,Ne.jsx)(Te.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"})})},zK=(0,Ne.jsxs)(Te.SVG,{viewBox:"0 0 24 24",children:[(0,Ne.jsx)(Te.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,Ne.jsx)(Te.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,Ne.jsx)(Te.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"})]}),VK=(0,Ne.jsxs)(Te.SVG,{viewBox:"0 0 24 24",children:[(0,Ne.jsx)(Te.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,Ne.jsx)(Te.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,Ne.jsx)(Te.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,Ne.jsx)(Te.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,Ne.jsx)(Te.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,Ne.jsx)(Te.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})]}),OK=(0,Ne.jsx)(Te.SVG,{viewBox:"0 0 24 24",children:(0,Ne.jsx)(Te.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"})}),FK=(0,Ne.jsx)(Te.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Ne.jsx)(Te.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"})}),HK=(0,Ne.jsx)(Te.SVG,{viewBox:"0 0 44 44",children:(0,Ne.jsx)(Te.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"})}),jK={foreground:"#f43e37",src:(0,Ne.jsxs)(Te.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ne.jsx)(Te.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,Ne.jsx)(Te.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"})]})},UK=(0,Ne.jsx)(Te.SVG,{viewBox:"0 0 24 24",children:(0,Ne.jsx)(Te.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 GK=n(O(),1),OL=n(y(),1),Owe=()=>(0,OL.jsx)("div",{className:"wp-block-embed is-loading",children:(0,OL.jsx)(GK.Spinner,{})}),WK=Owe;var nc=n(N(),1),Vp=n(O(),1),$K=n(P(),1);var Wa=n(y(),1);function qK({icon:e,label:t,value:r,onSubmit:o,onChange:a,cannotEmbed:i,fallback:l,tryAgain:s}){return(0,Wa.jsxs)(Vp.Placeholder,{icon:(0,Wa.jsx)($K.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,nc.__)("Paste a link to the content you want to display on your site."),children:[(0,Wa.jsxs)("form",{onSubmit:o,children:[(0,Wa.jsx)(Vp.__experimentalInputControl,{type:"url",value:r||"",className:"wp-block-embed__placeholder-input",label:t,hideLabelFromVision:!0,placeholder:(0,nc.__)("Enter URL to embed here\u2026"),onChange:a}),(0,Wa.jsx)(Vp.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,nc._x)("Embed","button label")})]}),(0,Wa.jsx)("div",{className:"wp-block-embed__learn-more",children:(0,Wa.jsx)(uu,{openInNewTab:!0,href:(0,nc.__)("https://wordpress.org/documentation/article/embeds/"),children:(0,nc.__)("Learn more about embeds")})}),i&&(0,Wa.jsxs)(wp,{direction:"column",gap:"md",className:"components-placeholder__error",children:[(0,Wa.jsx)("div",{className:"components-placeholder__instructions",children:(0,nc.__)("Sorry, this content could not be embedded.")}),(0,Wa.jsxs)(wp,{direction:"row",gap:"md",justify:"flex-start",children:[(0,Wa.jsx)(Vp.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:s,children:(0,nc._x)("Try again","button label")}),l&&(0,Wa.jsx)(Vp.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:l,children:(0,nc._x)("Convert to link","button label")})]})]})]})}var ug=n(N(),1),T3=n(O(),1),KK=n(P(),1),YK=n(H(),1),QK=n(pr(),1);var S3=n(ve(),1),cg=n(H(),1),FL=n(y(),1),Fwe={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function ZK({html:e}){let t=(0,cg.useRef)(),r=(0,cg.useMemo)(()=>{let a=new window.DOMParser().parseFromString(e,"text/html").querySelector("iframe"),i={};return a&&Array.from(a.attributes).forEach(({name:l,value:s})=>{l!=="style"&&(i[Fwe[l]||l]=s)}),i},[e]);return(0,cg.useEffect)(()=>{let{ownerDocument:o}=t.current,{defaultView:a}=o;function i({data:{secret:l,message:s,value:c}={}}){s!=="height"||l!==r["data-secret"]||(t.current.height=c)}return a.addEventListener("message",i),()=>{a.removeEventListener("message",i)}},[]),(0,FL.jsx)("div",{className:"wp-block-embed__wrapper",children:(0,FL.jsx)("iframe",{ref:(0,S3.useMergeRefs)([t,(0,S3.useFocusableIframe)()]),title:r.title,...r})})}var $a=n(y(),1);function XK({preview:e,previewable:t,url:r,type:o,isSelected:a,className:i,icon:l,label:s}){let[c,u]=(0,YK.useState)(!1);!a&&c&&u(!1);let p=()=>{u(!0)},{scripts:m}=e,d=o==="photo"?jj(e):e.html,f=(0,QK.getAuthority)(r),h=(0,ug.sprintf)((0,ug.__)("Embedded content from %s"),f),g=S(o,i,"wp-block-embed__wrapper");return(0,$a.jsx)($a.Fragment,{children:t?o==="wp-embed"?(0,$a.jsx)(ZK,{html:d}):(0,$a.jsxs)("div",{className:"wp-block-embed__wrapper",children:[(0,$a.jsx)(T3.SandBox,{allowSameOrigin:!0,html:d,scripts:m,title:h,type:g,onFocus:p}),!c&&(0,$a.jsx)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:p})]}):(0,$a.jsxs)(T3.Placeholder,{icon:(0,$a.jsx)(KK.BlockIcon,{icon:l,showColors:!0}),label:s,children:[(0,$a.jsx)("p",{className:"components-placeholder__error",children:(0,$a.jsx)("a",{href:r,children:r})}),(0,$a.jsx)("p",{className:"components-placeholder__error",children:(0,ug.sprintf)((0,ug.__)("Embedded content from %s can't be previewed in the editor."),f)})]})})}var Pi=n(y(),1),Hwe=e=>{let{attributes:{providerNameSlug:t,previewable:r,responsive:o,url:a},attributes:i,isSelected:l,onReplace:s,setAttributes:c,insertBlocksAfter:u,onFocus:p}=e,m={title:(0,Ud._x)("Embed","block title"),icon:cs},{icon:d,title:f}=Fj(t)||m,[h,g]=(0,pg.useState)(a),[v,b]=(0,pg.useState)(!1),{invalidateResolution:_}=(0,Db.useDispatch)(HL.store),{__unstableMarkNextChangeAsNotPersistent:k}=(0,Db.useDispatch)(P3.store),{preview:x,fetching:w,themeSupportsResponsive:C,cannotEmbed:T,hasResolved:I}=(0,Db.useSelect)(V=>{let{getEmbedPreview:Q,isPreviewEmbedFallback:Y,isRequestingEmbedPreview:ee,getThemeSupports:te,hasFinishedResolution:oe}=V(HL.store);if(!a)return{fetching:!1,cannotEmbed:!1};let J=Q(a),ce=Y(a),ie=J?.html===!1&&J?.type===void 0,we=J?.data?.status===404,se=!!J&&!ie&&!we;return{preview:se?J:void 0,fetching:ee(a),themeSupportsResponsive:te()["responsive-embeds"],cannotEmbed:!se||ce,hasResolved:oe("getEmbedPreview",[a])}},[a]),D=()=>Gj(i,x,f,o);function L(V){let{className:Q}=i,{html:Y}=x;c({allowResponsive:V,className:TN(Y,Q,o&&V)})}(0,pg.useEffect)(()=>{if(!T||!I||!a)return;let V=a.replace(/\/$/,"");V!==a&&(g(V),b(!1),k(),c({url:V}))},[a,T,I,c,k]),(0,pg.useEffect)(()=>{if(!x||v)return;let V=D();if(s){let Y=bp(e,V);if(Y){k(),c(Y.attributes);return}}Object.keys(V).some(Y=>V[Y]!==i[Y])&&(k(),c(V))},[x,v]);let E=(0,P3.useBlockProps)();if(w)return(0,Pi.jsx)("div",{...E,children:(0,Pi.jsx)(WK,{})});let B=(0,Ud.sprintf)((0,Ud.__)("%s URL"),f);if(!x||T||v)return(0,Pi.jsx)("div",{...E,children:(0,Pi.jsx)(qK,{icon:d,label:B,onFocus:p,onSubmit:V=>{V&&V.preventDefault();let Q=$v(h),Y=vp(i.className);g(Q),c({url:Q,...Ph(Q)?.attributes,className:Y}),b(!1)},value:h,cannotEmbed:T,onChange:V=>g(V),fallback:s?()=>Uj(h,s):void 0,tryAgain:()=>{_("getEmbedPreview",[h])}})});let{caption:z,type:j,allowResponsive:G,className:W}=D(),$=S(W,e.className);return(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pi.jsx)(TK,{showEditButton:x&&!T,themeSupportsResponsive:C,blockSupportsResponsive:o,allowResponsive:G,toggleResponsive:L,switchBackToURLInput:()=>b(!0)}),(0,Pi.jsxs)("figure",{...E,className:S(E.className,$,{[`is-type-${j}`]:j,[`is-provider-${t}`]:t,[`wp-block-embed-${t}`]:t}),children:[(0,Pi.jsx)(XK,{preview:x,previewable:r,className:$,url:h,type:j,caption:z,onCaptionChange:V=>c({caption:V}),isSelected:l,icon:d,label:B,insertBlocksAfter:u,attributes:i,setAttributes:c}),(0,Pi.jsx)(Mo,{attributes:i,setAttributes:c,isSelected:l,insertBlocksAfter:u,label:(0,Ud.__)("Embed caption text"),showToolbarButton:l})]})]})},JK=Hwe;var Gd=n(P(),1),Lb=n(y(),1);function eY({attributes:e}){let{url:t,caption:r,type:o,providerNameSlug:a}=e;if(!t)return null;let i=S("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${a}`]:a,[`wp-block-embed-${a}`]:a});return(0,Lb.jsxs)("figure",{...Gd.useBlockProps.save({className:i}),children:[(0,Lb.jsx)("div",{className:"wp-block-embed__wrapper",children:`
${t}
`}),!Gd.RichText.isEmpty(r)&&(0,Lb.jsx)(Gd.RichText.Content,{className:(0,Gd.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var E3=n(q(),1),B3=n(pr(),1);var{name:tY}=Ws,jwe={from:[{type:"raw",isMatch:e=>{if(e.nodeName!=="P")return!1;let t=e.textContent.trim();return!(0,B3.isURL)(t)||!/^https:\/\//i.test(t)||t.match(/https:\/\//gi)?.length!==1?!1:!/\.(?!(html?|php)$)[a-z0-9]+$/i.test((0,B3.getFilename)(t)||"")},transform:e=>{let t=$v(e.textContent.trim());return(0,E3.createBlock)(tY,{url:t,...Ph(t)?.attributes})}},{type:"shortcode",tag:"embed",transform:(e,{shortcode:t})=>{let r=$v(t.content?.trim());return(0,E3.createBlock)(tY,{url:r,...Ph(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,E3.createBlock)("core/paragraph",{content:o,className:vp(r)})}}]},rY=jwe;var ke=n(N(),1);function xt(e){return(0,ke.sprintf)((0,ke.__)("%s Embed"),e)}var oY=[{name:"twitter",title:xt("X"),icon:PK,keywords:["x","twitter","tweet",(0,ke.__)("social")],description:(0,ke.__)("Embed an X post."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:xt("YouTube"),icon:EK,keywords:[(0,ke.__)("music"),(0,ke.__)("video")],description:(0,ke.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:xt("Facebook"),icon:BK,keywords:[(0,ke.__)("social")],description:(0,ke.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:xt("Instagram"),icon:IK,keywords:[(0,ke.__)("image"),(0,ke.__)("social")],description:(0,ke.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:xt("WordPress"),icon:NK,keywords:[(0,ke.__)("post"),(0,ke.__)("blog")],description:(0,ke.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:xt("SoundCloud"),icon:C3,keywords:[(0,ke.__)("music"),(0,ke.__)("audio")],description:(0,ke.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:xt("Spotify"),icon:DK,keywords:[(0,ke.__)("music"),(0,ke.__)("audio")],description:(0,ke.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:xt("Flickr"),icon:LK,keywords:[(0,ke.__)("image")],description:(0,ke.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:xt("Vimeo"),icon:RK,keywords:[(0,ke.__)("video")],description:(0,ke.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:xt("Animoto"),icon:VK,description:(0,ke.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:xt("Cloudup"),icon:cs,description:(0,ke.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:xt("CollegeHumor"),icon:sg,description:(0,ke.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:xt("Crowdsignal"),icon:cs,keywords:["polldaddy",(0,ke.__)("survey")],description:(0,ke.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.crowdsignal\.net|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:xt("Dailymotion"),icon:OK,keywords:[(0,ke.__)("video")],description:(0,ke.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:xt("Imgur"),icon:VL,description:(0,ke.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:xt("Issuu"),icon:cs,description:(0,ke.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:xt("Kickstarter"),icon:cs,description:(0,ke.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:xt("Mixcloud"),icon:C3,keywords:[(0,ke.__)("music"),(0,ke.__)("audio")],description:(0,ke.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:xt("Pocket Casts"),icon:jK,keywords:[(0,ke.__)("podcast"),(0,ke.__)("audio")],description:(0,ke.__)("Embed a podcast player from Pocket Casts."),patterns:[/^https:\/\/pca.st\/\w+/i],attributes:{providerNameSlug:"pocket-casts",responsive:!0}},{name:"reddit",title:xt("Reddit"),icon:AK,description:(0,ke.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:xt("ReverbNation"),icon:C3,description:(0,ke.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"scribd",title:xt("Scribd"),icon:cs,description:(0,ke.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"smugmug",title:xt("SmugMug"),icon:VL,description:(0,ke.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:xt("Speaker Deck"),icon:cs,description:(0,ke.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:xt("TikTok"),icon:sg,keywords:[(0,ke.__)("video")],description:(0,ke.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:xt("TED"),icon:sg,description:(0,ke.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:xt("Tumblr"),icon:MK,keywords:[(0,ke.__)("social")],description:(0,ke.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:xt("VideoPress"),icon:sg,keywords:[(0,ke.__)("video")],description:(0,ke.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:xt("WordPress.tv"),icon:sg,description:(0,ke.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:xt("Amazon Kindle"),icon:zK,keywords:[(0,ke.__)("ebook")],description:(0,ke.__)("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:xt("Pinterest"),icon:FK,keywords:[(0,ke.__)("social"),(0,ke.__)("bookmark")],description:(0,ke.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:xt("Wolfram"),icon:HK,description:(0,ke.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}},{name:"bluesky",title:xt("Bluesky"),icon:UK,description:(0,ke.__)("Embed a Bluesky post."),patterns:[/^https?:\/\/bsky\.app\/profile\/.+\/post\/.+/i],attributes:{providerNameSlug:"bluesky"}}];oY.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.providerNameSlug===r.providerNameSlug)});var nY=oY;var Wd=n(P(),1),$d=n(y(),1),{attributes:aY}=Ws,Uwe={attributes:aY,save({attributes:e}){let{url:t,caption:r,type:o,providerNameSlug:a}=e;if(!t)return null;let i=S("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${a}`]:a,[`wp-block-embed-${a}`]:a});return(0,$d.jsxs)("figure",{...Wd.useBlockProps.save({className:i}),children:[(0,$d.jsx)("div",{className:"wp-block-embed__wrapper",children:`
${t}
`}),!Wd.RichText.isEmpty(r)&&(0,$d.jsx)(Wd.RichText.Content,{tagName:"figcaption",value:r})]})}},Gwe={attributes:aY,save({attributes:{url:e,caption:t,type:r,providerNameSlug:o}}){if(!e)return null;let a=S("wp-block-embed",{[`is-type-${r}`]:r,[`is-provider-${o}`]:o});return(0,$d.jsxs)("figure",{className:a,children:[`
${e}
`,!Wd.RichText.isEmpty(t)&&(0,$d.jsx)(Wd.RichText.Content,{tagName:"figcaption",value:t})]})}},Wwe=[Uwe,Gwe],iY=Wwe;var{name:lY}=Ws,sY={icon:cs,edit:JK,save:eY,transforms:rY,variations:nY,deprecated:iY},$we=()=>R({name:lY,metadata:Ws,settings:sY});var qL={};K(qL,{init:()=>n3e,metadata:()=>N3,name:()=>BY,settings:()=>D3});var fg=n(N(),1);var EY=n(q(),1);var So=n(P(),1),us=n(N(),1),Xt=n(y(),1),qwe={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:a,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,p=So.RichText.isEmpty(o)?(0,us.__)("PDF embed"):(0,us.sprintf)((0,us.__)("Embed of %s."),o),m=!So.RichText.isEmpty(o),d=m?r:void 0;return t&&(0,Xt.jsxs)("div",{...So.useBlockProps.save(),children:[c&&(0,Xt.jsx)(Xt.Fragment,{children:(0,Xt.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":p})}),m&&(0,Xt.jsx)("a",{id:d,href:a,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Xt.jsx)(So.RichText.Content,{value:o})}),l&&(0,Xt.jsx)("a",{href:t,className:S("wp-block-file__button",(0,So.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":d,children:(0,Xt.jsx)(So.RichText.Content,{value:s})})]})}},Zwe={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:a,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,p=So.RichText.isEmpty(o)?(0,us.__)("PDF embed"):(0,us.sprintf)((0,us.__)("Embed of %s."),o),m=!So.RichText.isEmpty(o),d=m?r:void 0;return t&&(0,Xt.jsxs)("div",{...So.useBlockProps.save(),children:[c&&(0,Xt.jsx)(Xt.Fragment,{children:(0,Xt.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":p})}),m&&(0,Xt.jsx)("a",{id:d,href:a,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Xt.jsx)(So.RichText.Content,{value:o})}),l&&(0,Xt.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":d,children:(0,Xt.jsx)(So.RichText.Content,{value:s})})]})}},Kwe={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:a,showDownloadButton:i,downloadButtonText:l,displayPreview:s,previewHeight:c}=e,u=So.RichText.isEmpty(r)?(0,us.__)("PDF embed"):(0,us.sprintf)((0,us.__)("Embed of %s."),r);return t&&(0,Xt.jsxs)("div",{...So.useBlockProps.save(),children:[s&&(0,Xt.jsx)(Xt.Fragment,{children:(0,Xt.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),!So.RichText.isEmpty(r)&&(0,Xt.jsx)("a",{href:o,target:a,rel:a?"noreferrer noopener":void 0,children:(0,Xt.jsx)(So.RichText.Content,{value:r})}),i&&(0,Xt.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,children:(0,Xt.jsx)(So.RichText.Content,{value:l})})]})}},Ywe=[qwe,Zwe,Kwe],cY=Ywe;var GL=n(Ar(),1),dg=n(O(),1),mg=n(F(),1),cn=n(P(),1),fY=n(H(),1),hY=n(ve(),1),xu=n(N(),1);var gY=n(re(),1),WL=n(Sr(),1),vY=n(pr(),1);var ln=n(N(),1),sn=n(O(),1),uY=n(P(),1);var Vo=n(y(),1);function pY({hrefs:e,openInNewWindow:t,showDownloadButton:r,changeLinkDestinationOption:o,changeOpenInNewWindow:a,changeShowDownloadButton:i,displayPreview:l,changeDisplayPreview:s,previewHeight:c,changePreviewHeight:u}){let{href:p,textLinkHref:m,attachmentPage:d}=e,f=Z(),h=[{value:p,label:(0,ln.__)("URL")}];return d&&(h=[{value:p,label:(0,ln.__)("Media file")},{value:d,label:(0,ln.__)("Attachment page")}]),(0,Vo.jsx)(Vo.Fragment,{children:(0,Vo.jsxs)(uY.InspectorControls,{children:[p.endsWith(".pdf")&&(0,Vo.jsxs)(sn.__experimentalToolsPanel,{label:(0,ln.__)("PDF settings"),resetAll:()=>{s(!0),u(600)},dropdownMenuProps:f,children:[(0,Vo.jsx)(sn.__experimentalToolsPanelItem,{label:(0,ln.__)("Show inline embed"),isShownByDefault:!0,hasValue:()=>!l,onDeselect:()=>s(!0),children:(0,Vo.jsx)(sn.ToggleControl,{label:(0,ln.__)("Show inline embed"),help:l?(0,ln.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!l,onChange:s})}),l&&(0,Vo.jsx)(sn.__experimentalToolsPanelItem,{label:(0,ln.__)("Height in pixels"),isShownByDefault:!0,hasValue:()=>c!==600,onDeselect:()=>u(600),children:(0,Vo.jsx)(sn.RangeControl,{label:(0,ln.__)("Height in pixels"),min:I3,max:Math.max(UL,c),value:c,onChange:u})})]}),(0,Vo.jsxs)(sn.__experimentalToolsPanel,{label:(0,ln.__)("Settings"),resetAll:()=>{o(p),a(!1),i(!0)},dropdownMenuProps:f,children:[(0,Vo.jsx)(sn.__experimentalToolsPanelItem,{label:(0,ln.__)("Link to"),isShownByDefault:!0,hasValue:()=>m!==p,onDeselect:()=>o(p),children:(0,Vo.jsx)(sn.SelectControl,{label:(0,ln.__)("Link to"),value:m,options:h,onChange:o})}),(0,Vo.jsx)(sn.__experimentalToolsPanelItem,{label:(0,ln.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>a(!1),children:(0,Vo.jsx)(sn.ToggleControl,{label:(0,ln.__)("Open in new tab"),checked:t,onChange:a})}),(0,Vo.jsx)(sn.__experimentalToolsPanelItem,{label:(0,ln.__)("Show download button"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>i(!0),children:(0,Vo.jsx)(sn.ToggleControl,{label:(0,ln.__)("Show download button"),checked:r,onChange:i})})]})]})})}var dY=()=>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)&&!(mY("AcroPDF.PDF")||mY("PDF.PdfCtrl"))),mY=e=>{let t;try{t=new window.ActiveXObject(e)}catch{t=void 0}return t};var Qr=n(y(),1),I3=200,UL=2e3;function Qwe({text:e,disabled:t}){let{createNotice:r}=(0,mg.useDispatch)(WL.store),o=(0,hY.useCopyToClipboard)(e,()=>{r("info",(0,xu.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})});return(0,Qr.jsx)(dg.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:o,disabled:t,children:(0,xu.__)("Copy URL")})}function Xwe({attributes:e,isSelected:t,setAttributes:r,clientId:o}){let{id:a,fileName:i,href:l,textLinkHref:s,textLinkTarget:c,showDownloadButton:u,downloadButtonText:p,displayPreview:m,previewHeight:d}=e,[f,h]=(0,fY.useState)(e.blob),{media:g}=(0,mg.useSelect)(A=>({media:a?A(gY.store).getEntityRecord("postType","attachment",a,{context:"view"}):void 0}),[a]),{createErrorNotice:v}=(0,mg.useDispatch)(WL.store),{toggleSelection:b}=(0,mg.useDispatch)(cn.store);Us({url:f,onChange:_,onError:k});function _(A){if(!A||!A.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,GL.isBlobURL)(A.url)){h(A.url);return}let z=(A.mime||A.mime_type)==="application/pdf"||(0,vY.getFilename)(A.url).toLowerCase().endsWith(".pdf"),j={displayPreview:z?e.displayPreview??!0:void 0,previewHeight:z?e.previewHeight??600:void 0};r({href:A.url,fileName:A.title,textLinkHref:A.url,id:A.id,fileId:`wp-block-file--media-${o}`,blob:void 0,...j}),h()}function k(A){r({href:void 0}),v(A,{type:"snackbar"})}function x(A){r({textLinkHref:A})}function w(A){r({textLinkTarget:A?"_blank":!1})}function C(A){r({showDownloadButton:A})}function T(A){r({displayPreview:A})}function I(A,z,j,G){b(!0);let W=parseInt(d+G.height,10);r({previewHeight:W})}function D(A){let z=Math.max(parseInt(A,10),I3);r({previewHeight:z})}let L=g&&g.link,E=(0,cn.useBlockProps)({className:S(!!f&&(0,dg.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":!!f})}),B=dY()&&m;return!l&&!f?(0,Qr.jsx)("div",{...E,children:(0,Qr.jsx)(cn.MediaPlaceholder,{icon:(0,Qr.jsx)(cn.BlockIcon,{icon:tv}),labels:{title:(0,xu.__)("File"),instructions:(0,xu.__)("Drag and drop a file, upload, or choose from your library.")},onSelect:_,onError:k,accept:"*"})}):(0,Qr.jsxs)(Qr.Fragment,{children:[(0,Qr.jsx)(pY,{hrefs:{href:l||f,textLinkHref:s,attachmentPage:L},openInNewWindow:!!c,showDownloadButton:u,changeLinkDestinationOption:x,changeOpenInNewWindow:w,changeShowDownloadButton:C,displayPreview:m,changeDisplayPreview:T,previewHeight:d,changePreviewHeight:D}),(0,Qr.jsxs)(cn.BlockControls,{group:"other",children:[(0,Qr.jsx)(cn.MediaReplaceFlow,{mediaId:a,mediaURL:l,accept:"*",onSelect:_,onError:k,onReset:()=>_(void 0)}),(0,Qr.jsx)(Qwe,{text:l,disabled:(0,GL.isBlobURL)(l)})]}),(0,Qr.jsxs)("div",{...E,children:[B&&(0,Qr.jsxs)(dg.ResizableBox,{size:{height:d,width:"100%"},minHeight:I3,maxHeight:UL,grid:[1,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>b(!1),onResizeStop:I,showHandle:t,children:[(0,Qr.jsx)("object",{className:"wp-block-file__preview",data:l,type:"application/pdf","aria-label":(0,xu.__)("Embed of the selected PDF file.")}),!t&&(0,Qr.jsx)("div",{className:"wp-block-file__preview-overlay"})]}),(0,Qr.jsxs)("div",{className:"wp-block-file__content-wrapper",children:[(0,Qr.jsx)(cn.RichText,{identifier:"fileName",tagName:"a",value:i,placeholder:(0,xu.__)("Write file name\u2026"),withoutInteractiveFormatting:!0,onChange:A=>r({fileName:pb(A)}),href:s}),u&&(0,Qr.jsx)("div",{className:"wp-block-file__button-richtext-wrapper",children:(0,Qr.jsx)(cn.RichText,{identifier:"downloadButtonText",tagName:"div","aria-label":(0,xu.__)("Download button text"),className:S("wp-block-file__button",(0,cn.__experimentalGetElementClassName)("button")),value:p,withoutInteractiveFormatting:!0,placeholder:(0,xu.__)("Add text\u2026"),onChange:A=>r({downloadButtonText:pb(A)})})})]})]})]})}var bY=Xwe;var N3={$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 ku=n(P(),1),ps=n(y(),1);function yY({attributes:e}){let{href:t,fileId:r,fileName:o,textLinkHref:a,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,p=ku.RichText.isEmpty(o)?"PDF embed":o.toString(),m=!ku.RichText.isEmpty(o),d=m?r:void 0;return t&&(0,ps.jsxs)("div",{...ku.useBlockProps.save(),children:[c&&(0,ps.jsx)(ps.Fragment,{children:(0,ps.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":p})}),m&&(0,ps.jsx)("a",{id:d,href:a,target:i,rel:i?"noreferrer noopener":void 0,children:(0,ps.jsx)(ku.RichText.Content,{value:o})}),l&&(0,ps.jsx)("a",{href:t,className:S("wp-block-file__button",(0,ku.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":d,children:(0,ps.jsx)(ku.RichText.Content,{value:s})})]})}var Rb=n(Ar(),1),qd=n(q(),1),xY=n(F(),1),kY=n(re(),1),wY=n(N(),1),CY=n(pr(),1),_Y=(0,wY._x)("Download","button label"),$L=(e,t,r)=>({type:"block",blocks:[e],isMatch:({id:o})=>{if(!o)return!1;let{getEntityRecord:a}=(0,xY.select)(kY.store),i=a("postType","attachment",o,{context:"view"});return!!i&&i.mime_type.includes(t)},transform:o=>(0,qd.createBlock)(e,{[r]:o.href,caption:o.fileName,id:o.id,anchor:o.anchor})}),e3e={from:[{type:"files",isMatch(e){return e.length>0},priority:15,transform:e=>{let t=[];return e.forEach(r=>{let o=(0,Rb.createBlobURL)(r);r.type.startsWith("video/")?t.push((0,qd.createBlock)("core/video",{blob:(0,Rb.createBlobURL)(r)})):r.type.startsWith("image/")?t.push((0,qd.createBlock)("core/image",{blob:(0,Rb.createBlobURL)(r)})):r.type.startsWith("audio/")?t.push((0,qd.createBlock)("core/audio",{blob:(0,Rb.createBlobURL)(r)})):t.push((0,qd.createBlock)("core/file",{blob:o,fileName:r.name,downloadButtonText:_Y}))}),t}},{type:"block",blocks:["core/audio","core/video","core/image"],transform:e=>{let t=e.src??e.url;return(0,qd.createBlock)("core/file",{href:t,fileName:e.caption||(0,CY.getFilename)(t),textLinkHref:t,id:e.id,anchor:e.anchor,downloadButtonText:_Y})}}],to:[$L("core/audio","audio","src"),$L("core/video","video","src"),$L("core/image","image","url")]},SY=e3e;var TY=n(N(),1),t3e=[{name:"default",isDefault:!0,attributes:{downloadButtonText:(0,TY._x)("Download","button label")}}],PY=t3e;var{fieldsKey:r3e,formKey:o3e}=U(EY.privateApis),{name:BY}=N3,D3={icon:tv,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,fg._x)("Armstrong_Small_Step","Name of the file")}},transforms:SY,deprecated:cY,edit:bY,save:yY,variations:PY};window.__experimentalContentOnlyInspectorFields&&(D3[r3e]=[{id:"file",label:(0,fg.__)("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,fg.__)("Filename"),type:"text",Edit:"rich-text"},{id:"downloadButtonText",label:(0,fg.__)("Button Text"),type:"text",Edit:"rich-text"}],D3[o3e]={fields:["file","fileName","downloadButtonText"]});var n3e=()=>R({name:BY,metadata:N3,settings:D3});var XL={};K(XL,{init:()=>u3e,metadata:()=>A3,name:()=>zY,settings:()=>VY});var MY=n(bu(),1);var Oo=n(N(),1),ms=n(P(),1),ds=n(O(),1),IY=n(F(),1);var ZL=n(N(),1),L3=["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,ZL.__)("Your form has been submitted successfully")+"</mark>"}]]],R3=["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,ZL.__)("There was an error submitting your form.")+"</mark>"}]]];var da=n(y(),1),a3e=[L3,R3,["core/form-input",{type:"text",label:(0,Oo.__)("Name"),required:!0}],["core/form-input",{type:"email",label:(0,Oo.__)("Email"),required:!0}],["core/form-input",{type:"textarea",label:(0,Oo.__)("Comment"),required:!0}],["core/form-submit-button",{}]],i3e=({attributes:e,setAttributes:t,clientId:r})=>{let o=Z(),a=()=>{t({submissionMethod:"email",email:void 0,action:void 0,method:"post"})},{action:i,method:l,email:s,submissionMethod:c}=e,u=(0,ms.useBlockProps)(),{hasInnerBlocks:p}=(0,IY.useSelect)(d=>{let{getBlock:f}=d(ms.store),h=f(r);return{hasInnerBlocks:!!(h&&h.innerBlocks.length)}},[r]),m=(0,ms.useInnerBlocksProps)(u,{template:a3e,renderAppender:p?void 0:ms.InnerBlocks.ButtonBlockAppender});return(0,da.jsxs)(da.Fragment,{children:[(0,da.jsx)(ms.InspectorControls,{children:(0,da.jsxs)(ds.__experimentalToolsPanel,{dropdownMenuProps:o,label:(0,Oo.__)("Settings"),resetAll:a,children:[(0,da.jsx)(ds.__experimentalToolsPanelItem,{hasValue:()=>c!=="email",label:(0,Oo.__)("Submissions method"),onDeselect:()=>t({submissionMethod:"email"}),isShownByDefault:!0,children:(0,da.jsx)(ds.SelectControl,{label:(0,Oo.__)("Submissions method"),options:[{label:(0,Oo.__)("Send email"),value:"email"},{label:(0,Oo.__)("- Custom -"),value:"custom"}],value:c,onChange:d=>t({submissionMethod:d}),help:c==="custom"?(0,Oo.__)('Select the method to use for form submissions. Additional options for the "custom" mode can be found in the "Advanced" section.'):(0,Oo.__)("Select the method to use for form submissions.")})}),c==="email"&&(0,da.jsx)(ds.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Oo.__)("Email for form submissions"),onDeselect:()=>t({email:void 0,action:void 0,method:"post"}),isShownByDefault:!0,children:(0,da.jsx)(ds.TextControl,{autoComplete:"off",label:(0,Oo.__)("Email for form submissions"),value:s||"",required:!0,onChange:d=>{t({email:d}),t({action:`mailto:${d}`}),t({method:"post"})},help:(0,Oo.__)("The email address where form submissions will be sent. Separate multiple email addresses with a comma."),type:"email"})})]})}),c!=="email"&&(0,da.jsxs)(ms.InspectorControls,{group:"advanced",children:[(0,da.jsx)(ds.SelectControl,{label:(0,Oo.__)("Method"),options:[{label:"Get",value:"get"},{label:"Post",value:"post"}],value:l,onChange:d=>t({method:d}),help:(0,Oo.__)("Select the method to use for form submissions.")}),(0,da.jsx)(ds.TextControl,{autoComplete:"off",label:(0,Oo.__)("Form action"),value:i,onChange:d=>{t({action:d})},help:(0,Oo.__)("The URL where the form should be submitted."),type:"url"})]}),(0,da.jsx)("form",{...m,encType:c==="email"?"text/plain":null})]})},NY=i3e;var A3={$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 M3=n(P(),1),KL=n(y(),1);function DY({attributes:e}){let t=M3.useBlockProps.save(),{submissionMethod:r}=e;return(0,KL.jsx)("form",{...t,encType:r==="email"?"text/plain":null,children:(0,KL.jsx)(M3.InnerBlocks.Content,{})})}var yl=n(N(),1);var s3e=[{name:"comment-form",title:(0,yl.__)("Experimental Comment form"),description:(0,yl.__)("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,yl.__)("Name"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"email",name:"email",label:(0,yl.__)("Email"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"textarea",name:"comment",label:(0,yl.__)("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,yl.__)("Experimental Privacy Request Form"),keywords:["GDPR"],description:(0,yl.__)("A form to request data exports and/or deletion."),attributes:{submissionMethod:"custom",action:"",method:"post",anchor:"gdpr-form"},isDefault:!1,innerBlocks:[L3,R3,["core/paragraph",{content:(0,yl.__)("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,yl.__)("Enter your email address."),required:!0,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"export_personal_data",label:(0,yl.__)("Request data export"),required:!1,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"remove_personal_data",label:(0,yl.__)("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"}],LY=s3e;var ac=n(P(),1),YL=n(y(),1),c3e={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,ac.__experimentalGetColorClassesAndStyles)(e),o=(0,ac.getTypographyClassesAndStyles)(e),a=(0,ac.__experimentalGetSpacingClassesAndStyles)(e),i=ac.useBlockProps.save({style:{...r.style,...o.style,...a.style},id:e.anchor});return(0,YL.jsx)("form",{...i,className:"wp-block-form",encType:t==="email"?"text/plain":null,children:(0,YL.jsx)(ac.InnerBlocks.Content,{})})}},RY=[c3e];var z3=n(M(),1),QL=n(y(),1),AY=(0,QL.jsx)(z3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,QL.jsx)(z3.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:zY}=A3,VY={icon:AY,edit:NY,save:DY,deprecated:RY,variations:LY,example:{}},u3e=()=>{let e=["core/form"];return(0,MY.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/preventInsertingFormIntoAnotherForm",(t,r,o,{getBlock:a,getBlockParentsByBlockName:i})=>{if(r.name!=="core/form")return t;for(let l of e)if(a(o)?.name===l||i(o,l).length)return!1;return!0}),R({name:zY,metadata:A3,settings:VY})};var eR={};K(eR,{init:()=>k3e,metadata:()=>O3,name:()=>JY,settings:()=>eQ});var jY=n(Ab(),1),fs=n(P(),1),UY=n(Pn(),1),Ei=n(y(),1),GY=e=>(0,jY.default)((0,UY.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),h3e={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:a,required:i,placeholder:l,value:s}=e,c=(0,fs.__experimentalGetBorderClassesAndStyles)(e),u=(0,fs.__experimentalGetColorClassesAndStyles)(e),p={...c.style,...u.style},m=S("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input",f=fs.useBlockProps.save();return t==="hidden"?(0,Ei.jsx)("input",{type:t,name:r,value:s}):(0,Ei.jsx)("div",{...f,children:(0,Ei.jsxs)("label",{className:S("wp-block-form-input__label",{"is-label-inline":a}),children:[(0,Ei.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Ei.jsx)(fs.RichText.Content,{value:o})}),(0,Ei.jsx)(d,{className:m,type:t==="textarea"?void 0:t,name:r||GY(o),required:i,"aria-required":i,placeholder:l||void 0,style:p})]})})}},g3e={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:a,required:i,placeholder:l,value:s}=e,c=(0,fs.__experimentalGetBorderClassesAndStyles)(e),u=(0,fs.__experimentalGetColorClassesAndStyles)(e),p={...c.style,...u.style},m=S("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input";return t==="hidden"?(0,Ei.jsx)("input",{type:t,name:r,value:s}):(0,Ei.jsxs)("label",{className:S("wp-block-form-input__label",{"is-label-inline":a}),children:[(0,Ei.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Ei.jsx)(fs.RichText.Content,{value:o})}),(0,Ei.jsx)(d,{className:m,type:t==="textarea"?void 0:t,name:r||GY(o),required:i,"aria-required":i,placeholder:l||void 0,style:p})]})}},v3e=[h3e,g3e],WY=v3e;var An=n(N(),1),hs=n(P(),1),gs=n(O(),1),$Y=n(H(),1);var lo=n(y(),1);function b3e({attributes:e,setAttributes:t,className:r}){let{type:o,name:a,label:i,inlineLabel:l,required:s,placeholder:c,value:u}=e,p=(0,hs.useBlockProps)(),m=Z(),d=(0,$Y.useRef)(),f=o==="textarea"?"textarea":"input",h=(0,hs.__experimentalUseBorderProps)(e),g=(0,hs.__experimentalUseColorProps)(e);d.current&&d.current.focus();let v=o==="checkbox"||o==="radio",b=(0,lo.jsxs)(lo.Fragment,{children:[o!=="hidden"&&(0,lo.jsx)(hs.InspectorControls,{children:(0,lo.jsxs)(gs.__experimentalToolsPanel,{label:(0,An.__)("Settings"),resetAll:()=>{t({inlineLabel:!1,required:!1})},dropdownMenuProps:m,children:[o!=="checkbox"&&(0,lo.jsx)(gs.__experimentalToolsPanelItem,{label:(0,An.__)("Inline label"),hasValue:()=>!!l,onDeselect:()=>t({inlineLabel:!1}),isShownByDefault:!0,children:(0,lo.jsx)(gs.CheckboxControl,{label:(0,An.__)("Inline label"),checked:l,onChange:k=>{t({inlineLabel:k})}})}),(0,lo.jsx)(gs.__experimentalToolsPanelItem,{label:(0,An.__)("Required"),hasValue:()=>!!s,onDeselect:()=>t({required:!1}),isShownByDefault:!0,children:(0,lo.jsx)(gs.CheckboxControl,{label:(0,An.__)("Required"),checked:s,onChange:k=>{t({required:k})}})})]})}),(0,lo.jsxs)(hs.InspectorControls,{group:"advanced",children:[(0,lo.jsx)(gs.TextControl,{autoComplete:"off",label:(0,An.__)("Name"),value:a,onChange:k=>{t({name:k})},help:(0,An.__)('Affects the "name" attribute of the input element, and is used as a name for the form submission results.')}),o==="hidden"&&(0,lo.jsx)(gs.TextControl,{autoComplete:"off",label:(0,An.__)("Value"),value:u,onChange:k=>t({value:k}),help:(0,An.__)("Sets the stored value for this hidden field.")})]})]}),_=(0,lo.jsx)(hs.RichText,{tagName:"span",className:"wp-block-form-input__label-content",value:i,onChange:k=>t({label:k}),"aria-label":i?(0,An.__)("Label"):(0,An.__)("Empty label"),"data-empty":!i,placeholder:(0,An.__)("Type the label for this input")});return o==="hidden"?(0,lo.jsxs)("div",{...p,children:[b,(0,lo.jsx)("span",{className:"wp-block-form-input__label is-input-hidden","data-message":(0,An.__)("Hidden field")})]}):(0,lo.jsxs)("div",{...p,children:[b,(0,lo.jsxs)("span",{className:S("wp-block-form-input__label",{"is-label-inline":l||o==="checkbox"}),children:[!v&&_,(0,lo.jsx)(f,{type:o==="textarea"?void 0:o,className:S(r,"wp-block-form-input__input",g.className,h.className),"aria-label":(0,An.__)("Optional placeholder text"),placeholder:c?void 0:(0,An.__)("Optional placeholder\u2026"),value:c,onChange:k=>t({placeholder:k.target.value}),"aria-required":s,style:{...h.style,...g.style}}),v&&_]})]})}var qY=b3e;var O3={$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 ZY=n(Ab(),1),wu=n(P(),1),KY=n(Pn(),1),ic=n(y(),1),_3e=e=>(0,ZY.default)((0,KY.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,"");function YY({attributes:e}){let{type:t,name:r,label:o,inlineLabel:a,required:i,placeholder:l,value:s}=e,c=(0,wu.__experimentalGetBorderClassesAndStyles)(e),u=(0,wu.__experimentalGetColorClassesAndStyles)(e),p={...c.style,...u.style},m=S("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input",f=wu.useBlockProps.save(),h=t==="checkbox"||t==="radio";return t==="hidden"?(0,ic.jsx)("input",{type:t,name:r,value:s}):(0,ic.jsx)("div",{...f,children:(0,ic.jsxs)("label",{className:S("wp-block-form-input__label",{"is-label-inline":a}),children:[!h&&(0,ic.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,ic.jsx)(wu.RichText.Content,{value:o})}),(0,ic.jsx)(d,{className:m,type:t==="textarea"?void 0:t,name:r||_3e(o),required:i,"aria-required":i,placeholder:l||void 0,style:p}),h&&(0,ic.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,ic.jsx)(wu.RichText.Content,{value:o})})]})})}var un=n(N(),1),x3e=[{name:"text",title:(0,un.__)("Text Input"),description:(0,un.__)("A generic text input."),attributes:{type:"text"},isDefault:!0,scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"},{name:"textarea",title:(0,un.__)("Textarea Input"),description:(0,un.__)("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,un.__)("Checkbox Input"),description:(0,un.__)("A simple checkbox input."),attributes:{type:"checkbox",inlineLabel:!0},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="checkbox"},{name:"email",title:(0,un.__)("Email Input"),description:(0,un.__)("Used for email addresses."),attributes:{type:"email"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="email"},{name:"url",title:(0,un.__)("URL Input"),description:(0,un.__)("Used for URLs."),attributes:{type:"url"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="url"},{name:"tel",title:(0,un.__)("Telephone Input"),description:(0,un.__)("Used for phone numbers."),attributes:{type:"tel"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="tel"},{name:"number",title:(0,un.__)("Number Input"),description:(0,un.__)("A numeric input."),attributes:{type:"number"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="number"},{name:"hidden",title:(0,un.__)("Hidden Input"),icon:"visibility",description:(0,un.__)("A hidden input field."),attributes:{type:"hidden"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="hidden"}],QY=x3e;var F3=n(M(),1),JL=n(y(),1),XY=(0,JL.jsx)(F3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,JL.jsx)(F3.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:JY}=O3,eQ={icon:XY,deprecated:WY,edit:qY,save:YY,variations:QY,example:{}},k3e=()=>R({name:JY,metadata:O3,settings:eQ});var rR={};K(rR,{init:()=>T3e,metadata:()=>j3,name:()=>aQ,settings:()=>iQ});var tQ=n(N(),1),H3=n(P(),1),rQ=n(y(),1),w3e=[["core/buttons",{},[["core/button",{text:(0,tQ.__)("Submit"),tagName:"button",type:"submit"}]]]],C3e=()=>{let e=(0,H3.useBlockProps)(),t=(0,H3.useInnerBlocksProps)(e,{template:w3e,templateLock:"all"});return(0,rQ.jsx)("div",{className:"wp-block-form-submit-wrapper",...t})},oQ=C3e;var j3={$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 U3=n(P(),1),tR=n(y(),1);function nQ(){let e=U3.useBlockProps.save();return(0,tR.jsx)("div",{className:"wp-block-form-submit-wrapper",...e,children:(0,tR.jsx)(U3.InnerBlocks.Content,{})})}var{name:aQ}=j3,iQ={edit:oQ,save:nQ,example:{}},T3e=()=>R({name:aQ,metadata:j3,settings:iQ});var oR={};K(oR,{init:()=>N3e,metadata:()=>W3,name:()=>dQ,settings:()=>fQ});var G3=n(N(),1),Op=n(P(),1),lQ=n(F(),1);var sQ=n(y(),1),P3e=[["core/paragraph",{content:(0,G3.__)("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.")}]],E3e=({attributes:e,clientId:t})=>{let{type:r}=e,o=(0,Op.useBlockProps)({className:S("wp-block-form-submission-notification",{[`form-notification-type-${r}`]:r})}),{hasInnerBlocks:a}=(0,lQ.useSelect)(l=>{let{getBlock:s}=l(Op.store),c=s(t);return{hasInnerBlocks:!!(c&&c.innerBlocks.length)}},[t]),i=(0,Op.useInnerBlocksProps)(o,{template:P3e,renderAppender:a?void 0:Op.InnerBlocks.ButtonBlockAppender});return(0,sQ.jsx)("div",{...i,"data-message-success":(0,G3.__)("Submission success notification"),"data-message-error":(0,G3.__)("Submission error notification")})},cQ=E3e;var W3={$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 $3=n(P(),1);var uQ=n(y(),1);function pQ({attributes:e}){let{type:t}=e;return(0,uQ.jsx)("div",{...$3.useInnerBlocksProps.save($3.useBlockProps.save({className:S("wp-block-form-submission-notification",{[`form-notification-type-${t}`]:t})}))})}var Zd=n(N(),1),I3e=[{name:"form-submission-success",title:(0,Zd.__)("Form Submission Success"),description:(0,Zd.__)("Success message for form submissions."),attributes:{type:"success"},isDefault:!0,innerBlocks:[["core/paragraph",{content:(0,Zd.__)("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,Zd.__)("Form Submission Error"),description:(0,Zd.__)("Error/failure message for form submissions."),attributes:{type:"error"},isDefault:!1,innerBlocks:[["core/paragraph",{content:(0,Zd.__)("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"}],mQ=I3e;var{name:dQ}=W3,fQ={icon:ed,edit:cQ,save:pQ,variations:mQ,example:{}},N3e=()=>R({name:dQ,metadata:W3,settings:fQ});var vR={};K(vR,{init:()=>w4e,metadata:()=>a4,name:()=>kX,settings:()=>wX});var Vr=n(P(),1),vQ=n(q(),1);var lc="none",sc="media",hg="lightbox",cc="attachment",hQ="file",gQ="post",Mb="large";var Ue=n(y(),1),bQ="file",yQ="post";function gg(e){return Math.min(3,e?.images?.length)}function D3e(e,t){switch(t){case bQ:return{href:e?.source_url||e?.url,linkDestination:sc};case yQ:return{href:e?.link,linkDestination:cc};case sc:return{href:e?.source_url||e?.url,linkDestination:sc};case cc:return{href:e?.link,linkDestination:cc};case lc:return{href:void 0,linkDestination:lc}}return{}}function vg(e){let t=e.linkTo?e.linkTo:"none";t==="post"?t="attachment":t==="file"&&(t="media");let r=e.images.map(l=>L3e(l,e.sizeSlug,t)),{images:o,ids:a,...i}=e;return[{...i,linkTo:t,allowResize:!1},r]}function L3e(e,t,r){return(0,vQ.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...D3e(e,r)})}var R3e={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,a=S("has-nested-images",{[`columns-${r}`]:r!==void 0,"columns-default":r===void 0,"is-cropped":o}),i=Vr.useBlockProps.save({className:a}),l=Vr.useInnerBlocksProps.save(i);return(0,Ue.jsxs)("figure",{...l,children:[l.children,!Vr.RichText.isEmpty(t)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t})]})}},A3e={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=gg(e),imageCrop:o,caption:a,linkTo:i}=e,l=`columns-${r} ${o?"is-cropped":""}`;return(0,Ue.jsxs)("figure",{...Vr.useBlockProps.save({className:l}),children:[(0,Ue.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(s=>{let c;switch(i){case bQ:c=s.fullUrl||s.url;break;case yQ:c=s.link;break}let u=(0,Ue.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,Ue.jsx)("li",{className:"blocks-gallery-item",children:(0,Ue.jsxs)("figure",{children:[c?(0,Ue.jsx)("a",{href:c,children:u}):u,!Vr.RichText.isEmpty(s.caption)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:s.caption})]})},s.id||s.url)})}),!Vr.RichText.isEmpty(a)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a})]})},migrate(e){return vg(e)}},M3e={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 vg(e)},save({attributes:e}){let{images:t,columns:r=gg(e),imageCrop:o,caption:a,linkTo:i}=e;return(0,Ue.jsxs)("figure",{className:`columns-${r} ${o?"is-cropped":""}`,children:[(0,Ue.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,Ue.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,Ue.jsx)("li",{className:"blocks-gallery-item",children:(0,Ue.jsxs)("figure",{children:[s?(0,Ue.jsx)("a",{href:s,children:c}):c,!Vr.RichText.isEmpty(l.caption)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!Vr.RichText.isEmpty(a)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a})]})}},z3e={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 vg(e)},save({attributes:e}){let{images:t,columns:r=gg(e),imageCrop:o,caption:a,linkTo:i}=e;return(0,Ue.jsxs)("figure",{className:`columns-${r} ${o?"is-cropped":""}`,children:[(0,Ue.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,Ue.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,Ue.jsx)("li",{className:"blocks-gallery-item",children:(0,Ue.jsxs)("figure",{children:[s?(0,Ue.jsx)("a",{href:s,children:c}):c,!Vr.RichText.isEmpty(l.caption)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!Vr.RichText.isEmpty(a)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a})]})}},V3e={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=gg(e),imageCrop:o,linkTo:a}=e;return(0,Ue.jsx)("ul",{className:`columns-${r} ${o?"is-cropped":""}`,children:t.map(i=>{let l;switch(a){case"media":l=i.fullUrl||i.url;break;case"attachment":l=i.link;break}let s=(0,Ue.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,Ue.jsx)("li",{className:"blocks-gallery-item",children:(0,Ue.jsxs)("figure",{children:[l?(0,Ue.jsx)("a",{href:l,children:s}):s,i.caption&&i.caption.length>0&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})},migrate(e){return vg(e)}},O3e={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 vg(e)},supports:{align:!0},save({attributes:e}){let{images:t,columns:r=gg(e),imageCrop:o,linkTo:a}=e;return(0,Ue.jsx)("ul",{className:`columns-${r} ${o?"is-cropped":""}`,children:t.map(i=>{let l;switch(a){case"media":l=i.url;break;case"attachment":l=i.link;break}let s=(0,Ue.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,Ue.jsx)("li",{className:"blocks-gallery-item",children:(0,Ue.jsxs)("figure",{children:[l?(0,Ue.jsx)("a",{href:l,children:s}):s,i.caption&&i.caption.length>0&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})}},F3e={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=gg(e),align:o,imageCrop:a,linkTo:i}=e,l=S(`columns-${r}`,{alignnone:o==="none","is-cropped":a});return(0,Ue.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,Ue.jsx)("img",{src:s.url,alt:s.alt,"data-id":s.id});return(0,Ue.jsx)("figure",{className:"blocks-gallery-image",children:c?(0,Ue.jsx)("a",{href:c,children:u}):u},s.id||s.url)})})},migrate(e){return vg(e)}},_Q=[R3e,A3e,M3e,z3e,V3e,O3e,F3e];var Tt=n(O(),1),so=n(P(),1),jb=n(H(),1),He=n(N(),1),Ub=n(F(),1),fX=n(q(),1),fR=n(Ar(),1),hX=n(Sr(),1);var xQ=n(P(),1);var kQ=n(y(),1),q3=(0,kQ.jsx)(xQ.BlockIcon,{icon:lv});function Z3(e){return e?Math.min(3,e):3}var K3=(e,t="large")=>{let r=Object.fromEntries(Object.entries(e??{}).filter(([a])=>["alt","id","link"].includes(a)));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 uc=20,Kd="none",bg="media",yg="attachment",nR="custom",wQ=["noopener"],Fp=["image"];var aR=["flex","grid"],zb="full";function Vb(e,t,r,o,a){switch(r||t){case hQ:case sc:return{href:e?.source_url||e?.url,linkDestination:bg,lightbox:a?.enabled?{...o?.lightbox,enabled:!1}:void 0};case gQ:case cc:return{href:e?.link,linkDestination:yg,lightbox:a?.enabled?{...o?.lightbox,enabled:!1}:void 0};case hg:return{href:void 0,lightbox:a?.enabled?void 0:{...o?.lightbox,enabled:!0},linkDestination:Kd};case lc:return{href:void 0,linkDestination:Kd,lightbox:void 0}}return{}}function CQ(e){let[t,r=1]=e.split("/").map(Number),o=t/r;return o===1/0||o===0?NaN:o}function H3e(e){let t=e;return e!==void 0&&t&&(wQ.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 Ob(e,{rel:t}){let r=e?"_blank":void 0,o;return!r&&!t?o=void 0:o=H3e(t),{linkTarget:r,rel:o}}function SQ(e,t){let r=e?.media_details?.sizes?.[t]?.source_url;return r?{url:r,width:void 0,height:void 0,sizeSlug:t}:{}}function iR(e){return Fp.some(t=>e.type.indexOf(t)===0)}function Yd({x:e,y:t}={x:.5,y:.5}){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}var lR=n(N(),1);var Y3=n(y(),1);function TQ(e){let{attributes:t,isSelected:r,setAttributes:o,insertBlocksAfter:a,blockProps:i,__unstableLayoutClassNames:l,isContentLocked:s,multiGallerySelection:c}=e,{align:u,columns:p,imageCrop:m}=t;return(0,Y3.jsxs)("figure",{...i,className:S(i.className,l,"blocks-gallery-grid",{[`align${u}`]:u,[`columns-${p}`]:p!==void 0,"columns-default":p===void 0,"is-cropped":m}),children:[i.children,(0,Y3.jsx)(Mo,{attributes:t,setAttributes:o,isSelected:r,insertBlocksAfter:a,showToolbarButton:!c&&!s,className:"blocks-gallery-caption",label:(0,lR.__)("Gallery caption text"),placeholder:(0,lR.__)("Add gallery caption")})]})}var PQ=n(H(),1);function EQ(e,t,r){return(0,PQ.useMemo)(()=>o(),[e,t]);function o(){if(!e||e.length===0)return;let{imageSizes:a}=r(),i={};t&&(i=e.reduce((s,c)=>{if(!c.id)return s;let u=a.reduce((p,m)=>{let d=c.sizes?.[m.slug]?.url,f=c.media_details?.sizes?.[m.slug]?.source_url;return{...p,[m.slug]:d||f}},{});return{...s,[parseInt(c.id,10)]:u}},{}));let l=Object.values(i);return a.filter(({slug:s})=>l.some(c=>c[s])).map(({name:s,slug:c})=>({value:c,label:s}))}}var Q3=n(H(),1);function BQ(e,t){let[r,o]=(0,Q3.useState)([]);return(0,Q3.useMemo)(()=>a(),[e,t]);function a(){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 NQ=n(F(),1),DQ=n(re(),1),IQ=[];function LQ(e){return(0,NQ.useSelect)(t=>{let r=e.map(o=>o.attributes.id).filter(o=>o!==void 0);return r.length===0?IQ:t(DQ.store).getEntityRecords("postType","attachment",{include:r.join(","),per_page:-1,orderby:"include"})??IQ},[e])}var vs=n(P(),1),tX=n(F(),1);var Qd=(e,t,r)=>{let o=Array.isArray(t)?t:t.split("."),a=e;return o.forEach(i=>{a=a?.[i]}),a??r};var MQ=n(AQ(),1);function j3e(e,t){if(!e||!t)return e;if(typeof e=="object"&&"ref"in e&&e?.ref){let r=(0,MQ.getCSSValueFromRawStyle)(Qd(t,e.ref));return typeof r=="object"&&r!==null&&"ref"in r&&r?.ref?void 0:r===void 0?e:r}return e}function U3e(e,t){if(!e||!t||!Array.isArray(t))return e;let r=t.find(o=>o?.name===e);return r?.href?r?.href:e}function zQ(e,t){if(!e||!t)return e;let r=j3e(e,t);return typeof r=="object"&&r!==null&&"url"in r&&r?.url&&(r.url=U3e(r.url,t?._links?.["wp:theme-file"])),r}var FQ={mobile:"480px",tablet:"782px"},HQ=/^(\d+|\d*\.\d+)(px|em|rem)$/,G3e=16;function W3e(e){return"mobile"in e||"tablet"in e}function $3e(e){return!e||typeof e!="object"?{}:W3e(e)?e:e.settings?.viewport??{}}function q3e(e){return typeof e=="string"&&HQ.test(e.trim())}function sR(e){if(typeof e=="number")return e;if(typeof e!="string")return;let t=e.trim().match(HQ);if(!t)return;let r=Number.parseFloat(t[1]);return t[2]==="px"?r:r*G3e}function cR(e){let t=$3e(e),r={},o={};Object.keys(FQ).forEach(s=>{let c=s,u=t[c],p=sR(u);p!==void 0&&q3e(u)&&(r[c]=u.trim(),o[c]=p)});let a=Object.keys(r);if(!a.length)return{...FQ};if(a.length===1)return r;let i=r.mobile,l=r.tablet;return o.mobile>=o.tablet?{mobile:i}:{mobile:i,tablet:l}}function jQ(e){let t=cR(e),r={};return t.mobile&&(r["@mobile"]=`@media (width <= ${t.mobile})`),t.tablet&&(r["@tablet"]=t.mobile?`@media (${t.mobile} < width <= ${t.tablet})`:`@media (width <= ${t.tablet})`),r}function X3(e,t,r,{resolveRefs:o=!0}={}){if(!e?.styles?.blocks?.[t]?.variations?.[r])return;let a=l=>{Object.keys(l).forEach(s=>{let c=l[s];if(typeof c=="object"&&c!==null)if(c.ref!==void 0)if(typeof c.ref!="string"||c.ref.trim()==="")delete l[s];else{let u=Qd(e,c.ref);u!=null?l[s]=u:delete l[s]}else a(c),Object.keys(c).length===0&&delete l[s]})},i=JSON.parse(JSON.stringify(e.styles.blocks[t].variations[r]));return o&&a(i),i}var mR="default";function $Q(e){let t=e?.viewport,r=e?.pseudoState;return(!t||t===mR)&&(!r||r===mR)}function Z3e(e){return $Q(e)?[]:[e.viewport,e.pseudoState].filter(t=>!!t&&t!==mR)}function K3e(e,t){let r=Z3e(t);return r.length?Qd(e,r):e}var Y3e=new Set(["blocks","variations","css"]),uR=Object.freeze({value:{},sources:{}}),Q3e={root:{layer:"root"},element:{layer:"element"},block:{layer:"block"},blockVariation:{layer:"blockVariation"}};function Hp(e){let t=Q3e[e];return t?{...t}:null}function jp(e,t){return!e||!t?null:{styles:e,source:t}}function X3e(e){return e.join(".")}function J3e(e){return{...e}}function qQ(e){return e===""||e===null||typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0}function pR(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e.ref=="string"}function Up(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let r of Object.keys(e))if(!Y3e.has(r)){if(r==="elements"){e.elements&&typeof e.elements=="object"&&(t.elements=e.elements);continue}qQ(e[r])||(t[r]=e[r])}return Object.keys(t).length===0?null:t}var UQ=new Set(["backgroundImage"]);function ZQ(e,t,r,o,a,i=[]){if(!t||typeof t!="object"||Array.isArray(t))return e;for(let l of Object.keys(t)){let s=t[l];if(qQ(s))continue;if(pR(s)){if(s.ref.trim()==="")continue;let u=Qd(r,s.ref);if(u==null||pR(u))continue;s=u}let c=[...i,l];if(!UQ.has(l)&&s!==null&&typeof s=="object"&&!Array.isArray(s)&&!pR(s)){let u=e[l]&&typeof e[l]=="object"&&!Array.isArray(e[l])?e[l]:{};e[l]=ZQ({...u},s,r,o,a,c)}else e[l]=UQ.has(l)&&s!==null&&typeof s=="object"&&!Array.isArray(s)?{...s}:s,o&&a&&(a[X3e(c)]=J3e(o))}return e}function J3(e,t){if(!e)return null;let r=K3e(e,t);return r&&typeof r=="object"&&!Array.isArray(r)?r:null}var e4e=["color.background","color.gradient","background","spacing","dimensions","border","shadow","filter"];function t4e(e){return e.startsWith("elements.")?!1:e4e.some(t=>e===t||e.startsWith(`${t}.`))}function KQ(e,t){if(!e||typeof e!="object")return;let[r,...o]=t;if(o.length===0){delete e[r];return}let a=e[r];a&&typeof a=="object"&&(KQ(a,o),Object.keys(a).length===0&&delete e[r])}function r4e(e,t){for(let r of Object.keys(t))t[r].layer==="root"&&t4e(r)&&(KQ(e,r.split(".")),delete t[r])}function o4e(e,t,r){let o=e?.background?.backgroundImage;if(!o)return;let a=zQ(o,{...t,_links:r??void 0});a!==void 0&&(e.background.backgroundImage=a)}function GQ(e,{blockName:t,variationName:r=null,elements:o=null,viewport:a=null,pseudoState:i=null}={}){if(!e||!e.styles||!t)return uR;let l=e.styles,s={viewport:a,pseudoState:i},c=l,u=l.blocks?.[t]??null,p=(o??[]).map(v=>l.elements?.[v]??null).filter(v=>!!v),m=r?X3(e,t,r)??null:null,d=[jp(Up(c),Hp("root")),...p.map(v=>jp(Up(v),Hp("element"))),u?jp(Up(u),Hp("block")):null,m?jp(Up(m),Hp("blockVariation")):null];$Q(s)||d.push(jp(Up(J3(c,s)),Hp("root")),...p.map(v=>jp(Up(J3(v,s)),Hp("element"))),u?jp(Up(J3(u,s)),Hp("block")):null,m?jp(Up(J3(m,s)),Hp("blockVariation")):null);let f=d.filter(Boolean);if(f.length===0)return uR;let h={},g=f.reduce((v,b)=>ZQ(v,b.styles,e,b.source,h),{});return r4e(g,h),o4e(g,e,e._links??null),{value:g,sources:h}}var n4e={},WQ=new WeakMap;function YQ(e,t={}){let r=e?.styles;if(!r||typeof r!="object")return GQ(e,t);let o=WQ.get(r);o||(o=new WeakMap,WQ.set(r,o));let a=e?._links??n4e,i=o.get(a);i||(i=new Map,o.set(a,i));let l=`${t.elements?.join(",")??""}:${t.viewport??""}:${t.pseudoState??""}`,s=(t.blockName||"")+""+(t.variationName||"")+""+l;if(i.has(s))return i.get(s);let c=GQ(e,t);return i.set(s,c),c}var QQ=n(wN(),1),{lock:XQ,unlock:bet}=(0,QQ.__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/global-styles-engine");var _g={};XQ(_g,{getResponsiveMediaQueries:jQ,getViewportBreakpoints:cR,getViewportBreakpointValueInPixels:sR,resolveStyle:YQ,getVariationStyle:X3});var{getResponsiveMediaQueries:a4e}=U(_g),{globalStylesDataKey:i4e}=U(vs.privateApis),l4e="core/gallery",e4="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )";function JQ(e,t){let r=e4;return t&&(r=typeof t=="string"?(0,vs.__experimentalGetGapCSSValue)(t)||e4:(0,vs.__experimentalGetGapCSSValue)(t?.left)||e4),`${e} {
		--wp--style--unstable-gallery-gap: ${r==="0"?"0px":r}
	}`}function eX(e){if(Object.hasOwn(e?.spacing||{},"blockGap"))return e.spacing.blockGap}function rX({style:e,clientId:t}){let r=`#block-${t}`,[o]=(0,vs.useSettings)("viewport"),i=(0,tX.useSelect)(p=>p(vs.store).getSettings()?.[i4e],[])?.blocks?.[l4e]||{},l=eX(e),s=i?.spacing?.blockGap??e4,u=JQ(r,l===void 0?s:l);return Object.entries(a4e(o)).forEach(([p,m])=>{let d=eX(e?.[p]),f=l===void 0?i?.[p]?.spacing?.blockGap:void 0,h=d===void 0?f:d;h!=null&&(u+=`${m}{${JQ(r,h)}}`)}),(0,vs.useStyleOverride)({css:u}),null}var Hb=n(H(),1),wg=n(F(),1),iX=n(P(),1),o4=n(re(),1),lX=n(q(),1);var t4=n(N(),1),Gp="core/attached-media",xg="date",kg="desc",s4e={[Gp]:{title:(0,t4.__)("Use attached images"),description:(0,t4.__)("Images attached to the post."),emptyMessage:(0,t4.__)("Images attached to the post will appear here.")}};function r4(e){return s4e[e]}var Fb=100;function oX(e,{postId:t}){let{source:r,args:o={}}=e??{};return r===Gp&&t?{parent:t,per_page:Fb,media_type:"image",orderby:o.orderBy==="date"||o.orderBy==="title"?o.orderBy:xg,order:o.order==="asc"||o.order==="desc"?o.order:kg}:null}var nX=[];function c4e(e,t){let{sizeSlug:r,linkTo:o,linkTarget:a,aspectRatio:i}=t,l=!!i&&i!=="auto";return{id:e.id,...K3(e,r),...Vb(e,o),...Ob(a,t),sizeSlug:r,caption:e.caption?.raw||"",alt:e.alt_text||"",aspectRatio:l?i:void 0,scale:l?"cover":void 0}}function aX(e,t){return e.map(r=>(0,lX.createBlock)("core/image",c4e(r,t)))}function sX({attributes:e,setAttributes:t,clientId:r,postId:o,postType:a}){let{dynamicContent:i}=e,l=!!a,s=r4(i?.source),c=i?.args?.orderBy??xg,u=i?.args?.order??kg,p=(0,wg.useRegistry)(),{replaceInnerBlocks:m,__unstableMarkNextChangeAsNotPersistent:d}=(0,wg.useDispatch)(iX.store),f=(0,Hb.useMemo)(()=>i?oX(i,{postId:o}):null,[i,o]),{dynamicMedia:h,dynamicMediaTotal:g,isResolvingDynamic:v}=(0,wg.useSelect)(A=>{if(!f)return{dynamicMedia:nX,dynamicMediaTotal:0,isResolvingDynamic:!1};let z=["postType","attachment",f];return{dynamicMedia:A(o4.store).getEntityRecords(...z)??nX,dynamicMediaTotal:A(o4.store).getEntityRecordsTotalItems(...z)??0,isResolvingDynamic:!A(o4.store).hasFinishedResolution("getEntityRecords",z)}},[f]),b=g>Fb,{sizeSlug:_,linkTo:k,linkTarget:x,aspectRatio:w}=e,C=(0,Hb.useMemo)(()=>({sizeSlug:_,linkTo:k,linkTarget:x,aspectRatio:w}),[_,k,x,w]),T=(0,Hb.useMemo)(()=>aX(h,C),[h,C]),I=(0,Hb.useMemo)(()=>({allowResize:e.allowResize??!1,imageCrop:e.imageCrop,fixedHeight:e.fixedHeight,navigationButtonType:e.navigationButtonType}),[e.allowResize,e.imageCrop,e.fixedHeight,e.navigationButtonType]);function D(){p.batch(()=>{t({dynamicContent:{source:Gp}}),d(),m(r,[])})}function L(){p.batch(()=>{m(r,aX(h,C)),d(),t({dynamicContent:void 0})})}function E(A,z){let j={...i?.args};delete j.orderBy,delete j.order,A!==void 0&&(A!==xg||z!==kg)&&(j.orderBy=A,j.order=z);let G={...i};Object.keys(j).length?G.args=j:delete G.args,t({dynamicContent:G})}function B(){t({dynamicContent:{source:i.source}})}return{dynamicContent:i,canUseDynamicSource:l,sourceDescriptor:s,hasMoreImagesThanCap:b,dynamicMediaTotal:g,sourceOrderby:c,sourceOrder:u,dynamicMedia:h,dynamicImageBlocks:T,isResolvingDynamic:v,galleryContext:I,enableDynamicMode:D,convertToStatic:L,setSourceOrder:E,resetSource:B}}var Jt=n(N(),1),n4=n(H(),1),Or=n(O(),1),Wp=n(P(),1);var dt=n(y(),1),u4e=[{label:(0,Jt.__)("Newest to oldest"),value:"date/desc"},{label:(0,Jt.__)("Oldest to newest"),value:"date/asc"},{label:(0,Jt.__)("A \u2192 Z"),value:"title/asc"},{label:(0,Jt.__)("Z \u2192 A"),value:"title/desc"}];function p4e({orderby:e,order:t,onChange:r}){return(0,dt.jsx)(Or.SelectControl,{label:(0,Jt.__)("Order by"),value:`${e}/${t}`,options:u4e,onChange:o=>{let[a,i]=o.split("/");r({orderby:a,order:i})}})}function cX({onConfirm:e,onCancel:t}){return(0,dt.jsx)(Or.__experimentalConfirmDialog,{isOpen:!0,title:(0,Jt.__)("Detach Gallery"),__experimentalHideHeader:!1,confirmButtonText:(0,Jt.__)("Detach"),onConfirm:e,onCancel:t,size:"medium",children:(0,Jt.__)("The gallery displays the images attached to the post. Detaching will enable you to add, delete, or reorder images. However, new attachments will no longer be added automatically.")})}function uX({dynamic:e,dropdownMenuProps:t,hasImages:r}){let{dynamicContent:o,canUseDynamicSource:a,sourceDescriptor:i,sourceOrderby:l,sourceOrder:s,setSourceOrder:c,convertToStatic:u,enableDynamicMode:p,resetSource:m,isResolvingDynamic:d,hasMoreImagesThanCap:f,dynamicMediaTotal:h}=e,g=!!o,[v,b]=(0,n4.useState)(!1),[_,k]=(0,n4.useState)(!1);function x(){r?b(!0):p()}return g?(0,dt.jsxs)(dt.Fragment,{children:[(0,dt.jsxs)(Or.__experimentalToolsPanel,{label:(0,Jt.__)("Source"),resetAll:m,dropdownMenuProps:t,children:[(0,dt.jsxs)("div",{className:"wp-block-gallery__source-settings",children:[(0,dt.jsx)("p",{className:"wp-block-gallery__source-description",children:i?.description??(0,Jt.__)("Dynamic images.")}),(0,dt.jsx)(Or.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>k(!0),disabled:d,accessibleWhenDisabled:!0,children:(0,Jt.__)("Detach Gallery")})]}),f&&(0,dt.jsx)(Or.Notice,{className:"wp-block-gallery__source-notice",status:"warning",isDismissible:!1,children:(0,Jt.sprintf)((0,Jt.__)("Only the first %1$d of %2$d images will be displayed."),Fb,h)}),(0,dt.jsx)(Or.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Jt.__)("Order by"),hasValue:()=>l!==xg||s!==kg,onDeselect:()=>c(void 0,void 0),children:(0,dt.jsx)(p4e,{orderby:l,order:s,onChange:({orderby:w,order:C})=>c(w,C)})})]}),_&&(0,dt.jsx)(cX,{onConfirm:()=>{u(),k(!1)},onCancel:()=>k(!1)})]}):a?(0,dt.jsxs)(dt.Fragment,{children:[(0,dt.jsx)(Or.PanelBody,{title:(0,Jt.__)("Source"),children:(0,dt.jsx)("div",{className:"wp-block-gallery__source-settings",children:(0,dt.jsx)(Or.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:x,children:(0,Jt.__)("Use images attached to the post")})})}),v&&(0,dt.jsx)(Or.__experimentalConfirmDialog,{isOpen:!0,title:(0,Jt.__)("Use images attached to the post?"),__experimentalHideHeader:!1,confirmButtonText:(0,Jt.__)("Use attached images"),onConfirm:()=>{p(),b(!1)},onCancel:()=>b(!1),size:"medium",children:(0,Jt.__)("The images in this gallery will be replaced, but will remain in the media library.")})]}):null}function m4e({imageBlocks:e}){let{children:t,ref:r,className:o}=(0,Wp.__experimentalUseBlockPreview)({blocks:e});return(0,dt.jsx)("div",{ref:r,className:o,style:{display:"contents"},children:t})}function pX({dynamic:e,blockProps:t,innerBlocksProps:r,attributes:o,setAttributes:a,isSelected:i,insertBlocksAfter:l,isContentLocked:s,multiGallerySelection:c}){let{sourceDescriptor:u,dynamicImageBlocks:p,galleryContext:m,isResolvingDynamic:d,convertToStatic:f}=e,h=(0,Wp.useBlockEditingMode)(),[g,v]=(0,n4.useState)(!1),b=d?(0,Jt.__)("Loading images\u2026"):u?.emptyMessage??(0,Jt.__)("Dynamic images will appear here.");return(0,dt.jsxs)(dt.Fragment,{children:[h==="default"&&(0,dt.jsxs)(dt.Fragment,{children:[(0,dt.jsx)(Wp.BlockControls,{group:"other",children:(0,dt.jsx)(Or.ToolbarButton,{onClick:()=>v(!0),disabled:d,children:(0,Jt.__)("Detach")})}),g&&(0,dt.jsx)(cX,{onConfirm:()=>{f(),v(!1)},onCancel:()=>v(!1)})]}),(0,dt.jsxs)("figure",{...t,children:[p.length?(0,dt.jsx)(Wp.BlockContextProvider,{value:m,children:(0,dt.jsx)(m4e,{imageBlocks:p})}):(0,dt.jsx)(Or.Placeholder,{icon:q3,label:(0,Jt.__)("Gallery"),instructions:b,children:d&&(0,dt.jsx)(Or.Spinner,{})}),(0,dt.jsx)(Mo,{attributes:o,setAttributes:a,isSelected:i,insertBlocksAfter:l,showToolbarButton:!c&&!s,className:"blocks-gallery-caption",label:(0,Jt.__)("Gallery caption text"),placeholder:(0,Jt.__)("Add gallery caption")})]}),r.children]})}var nt=n(y(),1),d4e=8,mX=[{icon:Q1,label:(0,He.__)("Link images to attachment pages"),value:cc,noticeText:(0,He.__)("Attachment Pages")},{icon:mp,label:(0,He.__)("Link images to media files"),value:sc,noticeText:(0,He.__)("Media Files")},{icon:Jm,label:(0,He.__)("Enlarge on click"),value:hg,noticeText:(0,He.__)("Lightbox effect"),infoText:(0,He.__)("Scale images with a lightbox effect")},{icon:sv,label:(0,He._x)("None","Media item link option"),value:lc,noticeText:(0,He.__)("None")}],f4e=[{label:(0,He.__)("Icon"),value:"icon"},{label:(0,He.__)("Text"),value:"text"},{label:(0,He.__)("Both"),value:"both"}],dR=["image"],h4e=(0,He.__)("Drag and drop images, upload, or choose from your library."),g4e={name:"core/image"},dX=[];function gX(e){let{setAttributes:t,attributes:r,className:o,clientId:a,isSelected:i,insertBlocksAfter:l,isContentLocked:s,context:c,__unstableLayoutClassNames:u}=e,p=c?.postId,m=c?.postType,d=(0,so.useBlockEditingMode)(),[f,h,g,v]=(0,so.useSettings)("blocks.core/image.lightbox","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),b=f?.allowEditing?mX:mX.filter(ae=>ae.value!==hg),{align:_,navigationButtonType:k,columns:x,imageCrop:w,randomOrder:C,linkTarget:T,linkTo:I,sizeSlug:D,aspectRatio:L}=r,{__unstableMarkNextChangeAsNotPersistent:E,replaceInnerBlocks:B,updateBlockAttributes:A,selectBlock:z}=(0,Ub.useDispatch)(so.store),{createSuccessNotice:j,createErrorNotice:G}=(0,Ub.useDispatch)(hX.store),{getBlock:W,getSettings:$,innerBlockImages:V,multiGallerySelection:Q}=(0,Ub.useSelect)(ae=>{let{getBlockName:Ve,getMultiSelectedBlockClientIds:Je,getSettings:St,getBlock:qe}=ae(so.store),_o=Je();return{getBlock:qe,getSettings:St,innerBlockImages:qe(a)?.innerBlocks??dX,multiGallerySelection:_o.length&&_o.every(Tn=>Ve(Tn)==="core/gallery")}},[a]),Y=(0,jb.useMemo)(()=>V?.map(ae=>({clientId:ae.clientId,id:ae.attributes.id,url:ae.attributes.url,attributes:ae.attributes,fromSavedContent:!!ae.originalContent})),[V]),ee=LQ(V),te=BQ(Y,ee),oe=!!Y.length,J=!!r.dynamicContent,ce=sX({attributes:r,setAttributes:t,clientId:a,postId:p,postType:m}),ie=J?ce.dynamicMedia.length:Y.length,we;J?we=I===hg:f?.enabled?we=Y.filter(ae=>ae.attributes?.lightbox?.enabled===void 0||ae.attributes?.lightbox?.enabled===!0).length>0:we=Y.filter(ae=>ae.attributes.lightbox?.enabled).length>0;let se=g?.map(({name:ae,ratio:Ve})=>({label:ae,value:Ve})),de=h?.map(({name:ae,ratio:Ve})=>({label:ae,value:Ve})),ge=[{label:(0,He._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...v?de||[]:[],...se||[]];(0,jb.useEffect)(()=>{te?.forEach(ae=>{E(),A(ae.clientId,{...me(ae.attributes),id:ae.id,align:void 0})})},[te]);let ne=EQ(J?ce.dynamicMedia:ee,i,$);function me(ae){let Ve=ae.id?ee.find(({id:qe})=>qe===ae.id):null,Je;ae.className&&ae.className!==""&&(Je=ae.className);let St;return ae.linkTarget||ae.rel?St={linkTarget:ae.linkTarget,rel:ae.rel}:St=Ob(T,r),{...K3(Ve,D),...Vb(Ve,I,ae?.linkDestination),...St,className:Je,sizeSlug:D,caption:ae.caption.length>0?ae.caption:Ve.caption?.raw,alt:ae.alt||Ve.alt_text,aspectRatio:L==="auto"?void 0:L}}function le(ae){let Ve=ae.type;return dR.some(Je=>Ve?.indexOf(Je)===0)||ae.blob}function Pe(ae){let Ve=Object.prototype.toString.call(ae)==="[object FileList]",Je=Ve?Array.from(ae).map(ot=>ot.url?ot:{blob:(0,fR.createBlobURL)(ot)}):ae;Je.every(le)||G((0,He.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let St=Je.filter(ot=>ot.url||le(ot)).map(ot=>ot.url?ot:{blob:ot.blob||(0,fR.createBlobURL)(ot)}),qe=St.reduce((ot,Lo,rp)=>(ot[Lo.id]=rp,ot),{}),_o=Ve?V:V.filter(ot=>St.find(Lo=>Lo.id===ot.attributes.id)),Hl=St.filter(ot=>!_o.find(Lo=>ot.id===Lo.attributes.id)).map(ot=>(0,fX.createBlock)("core/image",{id:ot.id,blob:ot.blob,url:ot.url,caption:ot.caption,alt:ot.alt}));B(a,_o.concat(Hl).sort((ot,Lo)=>qe[ot.attributes.id]-qe[Lo.attributes.id])),Hl?.length>0&&z(Hl[0].clientId)}function Ee(ae){G(ae,{type:"snackbar"})}function X(ae){t({linkTo:ae});let Ve={},Je=[];W(a).innerBlocks.forEach(qe=>{Je.push(qe.clientId);let _o=qe.attributes.id?ee.find(({id:Tn})=>Tn===qe.attributes.id):null;Ve[qe.clientId]=Vb(_o,ae,!1,qe.attributes,f)}),A(Je,Ve,{uniqueByBlock:!0});let St=[...b].find(qe=>qe.value===ae);j((0,He.sprintf)((0,He.__)("All gallery image links updated to: %s"),St.noticeText),{id:"gallery-attributes-linkTo",type:"snackbar"})}function Ce(ae){t({columns:ae})}function pe(){t({imageCrop:!w})}function $e(){t({randomOrder:!C})}function fe(ae){let Ve=ae?"_blank":void 0;t({linkTarget:Ve});let Je={},St=[];W(a).innerBlocks.forEach(_o=>{St.push(_o.clientId),Je[_o.clientId]=Ob(Ve,_o.attributes)}),A(St,Je,{uniqueByBlock:!0});let qe=ae?(0,He.__)("All gallery images updated to open in new tab"):(0,He.__)("All gallery images updated to not open in new tab");j(qe,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}function Ae(ae){t({sizeSlug:ae});let Ve={},Je=[];W(a).innerBlocks.forEach(qe=>{Je.push(qe.clientId);let _o=qe.attributes.id?ee.find(({id:Tn})=>Tn===qe.attributes.id):null;Ve[qe.clientId]=SQ(_o,ae)}),A(Je,Ve,{uniqueByBlock:!0});let St=ne.find(qe=>qe.value===ae);j((0,He.sprintf)((0,He.__)("All gallery image sizes updated to: %s"),St?.label??ae),{id:"gallery-attributes-sizeSlug",type:"snackbar"})}function Ft(ae){t({aspectRatio:ae});let Ve={},Je=[];W(a).innerBlocks.forEach(qe=>{Je.push(qe.clientId),Ve[qe.clientId]={aspectRatio:ae==="auto"?void 0:ae}}),A(Je,Ve,!0);let St=ge.find(qe=>qe.value===ae);j((0,He.sprintf)((0,He.__)("All gallery images updated to aspect ratio: %s"),St?.label||ae),{id:"gallery-attributes-aspectRatio",type:"snackbar"})}(0,jb.useEffect)(()=>{I||(E(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||lc}))},[I]);let ze=oe&&Y.some(ae=>!!ae.id),no={addToGallery:!1,disableMediaButtons:Y.some(ae=>!ae.id&&ae.url?.indexOf("blob:")===0),value:{}},bo=(0,so.useBlockProps)({className:S(o,"has-nested-images",J&&[u,"blocks-gallery-grid",{[`align${_}`]:_,[`columns-${x}`]:x!==void 0,"columns-default":x===void 0,"is-cropped":w}])}),yo=(0,so.useInnerBlocksProps)(bo,{defaultBlock:g4e,directInsert:!0,orientation:"horizontal",renderAppender:!1,allowedBlocks:J?dX:void 0}),ta=Z();if(!oe&&!J)return(0,nt.jsxs)("div",{...yo,children:[yo.children,(0,nt.jsx)(so.MediaPlaceholder,{handleUpload:!1,icon:q3,labels:{title:(0,He.__)("Gallery"),instructions:h4e},onSelect:Pe,allowedTypes:dR,multiple:!0,onError:Ee,...no,children:d==="default"&&(0,nt.jsx)(Tt.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:ce.enableDynamicMode,children:r4(Gp).title})})]});let Ra=I&&I!=="none";return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsxs)(so.InspectorControls,{children:[(0,nt.jsx)(uX,{dynamic:ce,dropdownMenuProps:ta,hasImages:oe}),(0,nt.jsxs)(Tt.__experimentalToolsPanel,{label:(0,He.__)("Settings"),resetAll:()=>{t({navigationButtonType:"icon",columns:void 0,imageCrop:!0,randomOrder:!1}),Ft("auto"),D!==Mb&&Ae(Mb),T&&fe(!1)},dropdownMenuProps:ta,children:[ie>1&&(0,nt.jsx)(Tt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,He.__)("Columns"),hasValue:()=>!!x&&x!==ie,onDeselect:()=>Ce(void 0),children:(0,nt.jsx)(Tt.RangeControl,{label:(0,He.__)("Columns"),value:x||Z3(ie),onChange:Ce,min:1,max:Math.min(d4e,ie),required:!0})}),ne?.length>0&&(0,nt.jsx)(Tt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,He.__)("Resolution"),hasValue:()=>D!==Mb,onDeselect:()=>Ae(Mb),children:(0,nt.jsx)(Tt.SelectControl,{label:(0,He.__)("Resolution"),help:(0,He.__)("Select the size of the source images."),value:D,options:ne,onChange:Ae,hideCancelButton:!0})}),(0,nt.jsx)(Tt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,He.__)("Crop images to fit"),hasValue:()=>!w,onDeselect:()=>t({imageCrop:!0}),children:(0,nt.jsx)(Tt.ToggleControl,{label:(0,He.__)("Crop images to fit"),checked:!!w,onChange:pe})}),(0,nt.jsx)(Tt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,He.__)("Randomize order"),hasValue:()=>!!C,onDeselect:()=>t({randomOrder:!1}),children:(0,nt.jsx)(Tt.ToggleControl,{label:(0,He.__)("Randomize order"),checked:!!C,onChange:$e})}),Ra&&(0,nt.jsx)(Tt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,He.__)("Open images in new tab"),hasValue:()=>!!T,onDeselect:()=>fe(!1),children:(0,nt.jsx)(Tt.ToggleControl,{label:(0,He.__)("Open images in new tab"),checked:T==="_blank",onChange:fe})}),ge.length>1&&(0,nt.jsx)(Tt.__experimentalToolsPanelItem,{hasValue:()=>!!L&&L!=="auto",label:(0,He.__)("Aspect ratio"),onDeselect:()=>Ft("auto"),isShownByDefault:!0,children:(0,nt.jsx)(Tt.SelectControl,{label:(0,He.__)("Aspect ratio"),help:(0,He.__)("Set a consistent aspect ratio for all images in the gallery."),value:L,options:ge,onChange:Ft})}),f?.allowEditing&&we&&(0,nt.jsx)(Tt.__experimentalToolsPanelItem,{label:(0,He.__)("Navigation button type"),isShownByDefault:!0,hasValue:()=>k!=="icon",onDeselect:()=>t({navigationButtonType:"icon"}),children:(0,nt.jsx)(Tt.__experimentalToggleGroupControl,{label:(0,He.__)("Navigation button type"),value:k,onChange:ae=>t({navigationButtonType:ae}),isBlock:!0,help:(0,He.__)("Adjust the appearance of buttons in the lightbox."),children:f4e.map(ae=>(0,nt.jsx)(Tt.__experimentalToggleGroupControlOption,{value:ae.value,label:ae.label},ae.value))})})]})]}),(0,nt.jsx)(so.BlockControls,{group:"block",children:(0,nt.jsx)(Tt.ToolbarDropdownMenu,{icon:di,label:(0,He.__)("Link"),children:({onClose:ae})=>(0,nt.jsx)(Tt.MenuGroup,{children:b.map(Ve=>{let Je=I===Ve.value;return(0,nt.jsx)(Tt.MenuItem,{isSelected:Je,className:S("components-dropdown-menu__menu-item",{"is-active":Je}),iconPosition:"left",icon:Ve.icon,onClick:()=>{X(Ve.value),ae()},role:"menuitemradio",info:Ve.infoText,children:Ve.label},Ve.value)})})})}),(0,nt.jsxs)(nt.Fragment,{children:[!Q&&!J&&(0,nt.jsx)(so.BlockControls,{group:"other",children:(0,nt.jsx)(so.MediaReplaceFlow,{allowedTypes:dR,handleUpload:!1,onSelect:Pe,name:(0,He.__)("Add"),multiple:!0,mediaIds:Y.filter(ae=>ae.id).map(ae=>ae.id),addToGallery:ze,variant:"toolbar"})}),(0,nt.jsx)(rX,{style:r.style,clientId:a})]}),J?(0,nt.jsx)(pX,{...e,dynamic:ce,blockProps:bo,innerBlocksProps:yo,multiGallerySelection:Q}):(0,nt.jsx)(TQ,{...e,isContentLocked:s,images:Y,blockProps:yo,insertBlocksAfter:l,multiGallerySelection:Q})]})}var a4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/gallery",title:"Gallery",category:"media",usesContext:["galleryId","postId","postType"],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:[]},dynamicContent:{type:"object"},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:{sides:["horizontal","vertical"],__experimentalDefault:"var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )"},__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 Cu=n(P(),1),i4=n(y(),1);function vX({attributes:e}){let{caption:t,columns:r,imageCrop:o,dynamicContent:a}=e,i=!Cu.RichText.isEmpty(t)&&(0,i4.jsx)(Cu.RichText.Content,{tagName:"figcaption",className:S("blocks-gallery-caption",(0,Cu.__experimentalGetElementClassName)("caption")),value:t});if(a)return i||null;let l=S("has-nested-images",{[`columns-${r}`]:r!==void 0,"columns-default":r===void 0,"is-cropped":o}),s=Cu.useBlockProps.save({className:l}),c=Cu.useInnerBlocksProps.save(s);return(0,i4.jsxs)("figure",{...c,children:[c.children,i]})}var _l=n(q(),1),bX=n(Ar(),1),hR=n(bu(),1);var b4e=e=>e?e.split(",").map(t=>parseInt(t,10)):[],yX=e=>e.map(t=>(0,_l.createBlock)(t.name,t.attributes,yX(t.innerBlocks||[])));function y4e(e){if(e.name==="core/gallery"&&e.attributes?.images.length>0){let t=e.attributes.images.map(({url:r,id:o,alt:a})=>(0,_l.createBlock)("core/image",{url:r,id:o?parseInt(o,10):null,alt:a,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination}));delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e}(0,hR.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",y4e);function _4e(e,t){let o=(Array.isArray(t)?t:[t]).find(a=>a.name==="core/gallery"&&a.innerBlocks.length>0&&!a.attributes.images?.length>0&&!e.name.includes("core/"));if(o){let a=o.innerBlocks.map(({attributes:{url:l,id:s,alt:c}})=>({url:l,id:s?parseInt(s,10):null,alt:c})),i=a.map(({id:l})=>l);o.attributes.images=a,o.attributes.ids=i}return e}(0,hR.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",_4e);var x4e={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 a=e.filter(({url:i})=>i).map(i=>(i.width=void 0,i.height=void 0,(0,_l.createBlock)("core/image",i)));return(0,_l.createBlock)("core/gallery",{align:t,sizeSlug:r},a)}},{type:"shortcode",tag:"gallery",transform({named:{ids:e,columns:t=3,link:r,orderby:o,size:a}}){let i=b4e(e).map(c=>parseInt(c,10)),l=lc;return r==="post"?l=cc:r==="file"&&(l=sc),(0,_l.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:l,randomOrder:o==="rand",...a&&{sizeSlug:a}},i.map(c=>(0,_l.createBlock)("core/image",{id:c,...a&&{sizeSlug:a}})))},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,_l.createBlock)("core/image",{blob:(0,bX.createBlobURL)(r)}));return(0,_l.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:a,title:i,href:l,rel:s,linkClass:c,id:u,sizeSlug:p,linkDestination:m,linkTarget:d,anchor:f,className:h}})=>(0,_l.createBlock)("core/image",{align:e,url:r,alt:o,caption:a,title:i,href:l,rel:s,linkClass:c,id:u,sizeSlug:p,linkDestination:m,linkTarget:d,anchor:f,className:h})):(0,_l.createBlock)("core/image",{align:e})},{type:"block",blocks:["core/group"],variationName:"group-grid",transform:(e,t)=>{let{allowResize:r,aspectRatio:o,caption:a,columns:i,fixedHeight:l,ids:s,imageCrop:c,images:u,linkTarget:p,linkTo:m,navigationButtonType:d,randomOrder:f,shortCodeTransforms:h,sizeSlug:g,...v}=e;return(0,_l.createBlock)("core/group",{...v,layout:{type:"grid",columnCount:i??Z3(t.length)}},yX(t))}}]},_X=x4e;var gR=n(N(),1);var k4e=[{name:"dynamic-gallery",title:(0,gR.__)("Dynamic Gallery"),description:(0,gR.__)("Display images from a source, such as those attached to the current post."),attributes:{dynamicContent:{source:Gp}},isActive:e=>!!e.dynamicContent,scope:[]}],xX=k4e;var{name:kX}=a4,wX={icon:lv,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:_X,variations:xX,edit:gX,save:vX,deprecated:_Q},w4e=()=>R({name:kX,metadata:a4,settings:wX});var xR={};K(xR,{init:()=>L4e,metadata:()=>s4,name:()=>m4,settings:()=>zX});var p4=n(N(),1);var Mn=n(P(),1),Bi=n(y(),1),bR=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,...a}=e;return{...a,style:t}},C4e=[{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,Bi.jsx)(e,{...Mn.useInnerBlocksProps.save(Mn.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,Bi.jsx)(t,{...Mn.useBlockProps.save(),children:(0,Bi.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Bi.jsx)(Mn.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:bR,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,textColor:o,customTextColor:a}=e,i=(0,Mn.getColorClassName)("background-color",t),l=(0,Mn.getColorClassName)("color",o),s=S(i,l,{"has-text-color":o||a,"has-background":t||r});return(0,Bi.jsx)("div",{className:s,style:{backgroundColor:i?void 0:r,color:l?void 0:a},children:(0,Bi.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Bi.jsx)(Mn.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:bR,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,textColor:o,customTextColor:a}=e,i=(0,Mn.getColorClassName)("background-color",t),l=(0,Mn.getColorClassName)("color",o),s=S(i,{"has-text-color":o||a,"has-background":t||r});return(0,Bi.jsx)("div",{className:s,style:{backgroundColor:i?void 0:r,color:l?void 0:a},children:(0,Bi.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Bi.jsx)(Mn.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:bR,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r}=e,o=(0,Mn.getColorClassName)("background-color",t),a=S(o,{"has-background":t||r});return(0,Bi.jsx)("div",{className:a,style:{backgroundColor:o?void 0:r},children:(0,Bi.jsx)(Mn.InnerBlocks.Content,{})})}}],CX=C4e;var l4=n(F(),1),Ni=n(P(),1),IX=n(H(),1),NX=n(N(),1);var SX=n(F(),1),TX=n(P(),1),yR=n(N(),1),PX=n(q(),1),Za=n(O(),1),Gb=n(H(),1),qa=n(y(),1),S4e=(e="group")=>({group:(0,qa.jsx)(Za.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,qa.jsx)(Za.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,qa.jsx)(Za.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,qa.jsx)(Za.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,qa.jsx)(Za.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,qa.jsx)(Za.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,qa.jsx)(Za.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,qa.jsx)(Za.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 EX({attributes:e={style:void 0,backgroundColor:void 0,textColor:void 0,fontSize:void 0},usedLayoutType:t="",hasInnerBlocks:r=!1}){let{style:o,backgroundColor:a,textColor:i,fontSize:l}=e,[s,c]=(0,Gb.useState)(!r&&!a&&!l&&!i&&!o&&t!=="flex"&&t!=="grid");return(0,Gb.useEffect)(()=>{(r||a||l||i||o||t==="flex")&&c(!1)},[a,l,i,o,t,r]),[s,c]}function T4e({name:e,onSelect:t}){let r=(0,SX.useSelect)(a=>a(PX.store).getBlockVariations(e,"block"),[e]),o=(0,TX.useBlockProps)({className:"wp-block-group__placeholder"});return(0,Gb.useEffect)(()=>{r&&r.length===1&&t(r[0])},[t,r]),(0,qa.jsx)("div",{...o,children:(0,qa.jsx)(Za.Placeholder,{instructions:(0,yR.__)("Group blocks together. Select a layout:"),children:(0,qa.jsx)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,yR.__)("Block variations"),children:r.map(a=>(0,qa.jsx)("li",{children:(0,qa.jsx)(Za.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:S4e(a.name),iconSize:48,onClick:()=>t(a),className:"wp-block-group-placeholder__variation-button",label:`${a.title}: ${a.description}`})},a.name))})})})}var BX=T4e;var Ii=n(y(),1),{HTMLElementControl:P4e}=U(Ni.privateApis);function E4e({tagName:e,onSelectTagName:t,clientId:r}){return(0,Ii.jsx)(Ni.InspectorControls,{group:"advanced",children:(0,Ii.jsx)(P4e,{tagName:e,onChange:t,clientId:r,options:[{label:(0,NX.__)("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 B4e({attributes:e,name:t,setAttributes:r,clientId:o}){let{hasInnerBlocks:a,themeSupportsLayout:i}=(0,l4.useSelect)(x=>{let{getBlock:w,getSettings:C}=x(Ni.store),T=w(o);return{hasInnerBlocks:!!(T&&T.innerBlocks.length),themeSupportsLayout:C()?.supportsLayout}},[o]),{tagName:l="div",templateLock:s,allowedBlocks:c,layout:u={}}=e,{type:p="default"}=u,m=i||p==="flex"||p==="grid",d=(0,IX.useRef)(),f=(0,Ni.useBlockProps)({ref:d}),[h,g]=EX({attributes:e,usedLayoutType:p,hasInnerBlocks:a}),v;h?v=!1:a||(v=Ni.InnerBlocks.ButtonBlockAppender);let b=(0,Ni.useInnerBlocksProps)(m?f:{className:"wp-block-group__inner-container"},{dropZoneElement:d.current,templateLock:s,allowedBlocks:c,renderAppender:v}),{selectBlock:_}=(0,l4.useDispatch)(Ni.store),k=x=>{r(x.attributes),_(o,-1),g(!1)};return(0,Ii.jsxs)(Ii.Fragment,{children:[(0,Ii.jsx)(E4e,{tagName:l,onSelectTagName:x=>r({tagName:x}),clientId:o}),h&&(0,Ii.jsxs)("div",{children:[b.children,(0,Ii.jsx)(BX,{name:t,onSelect:k})]}),m&&!h&&(0,Ii.jsx)(l,{...b}),!m&&!h&&(0,Ii.jsx)(l,{...f,children:(0,Ii.jsx)("div",{...b})})]})}var DX=B4e;var s4={$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 c4=n(P(),1),LX=n(y(),1);function RX({attributes:{tagName:e}}){return(0,LX.jsx)(e,{...c4.useInnerBlocksProps.save(c4.useBlockProps.save())})}var u4=n(q(),1),N4e={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){let t=["wide","full"],r=e.reduce((a,i)=>{let{align:l}=i.attributes;return t.indexOf(l)>t.indexOf(a)?l:a},void 0),o=e.map(a=>(0,u4.cloneSanitizedBlock)(a));return(0,u4.createBlock)("core/group",{align:r,layout:{type:"constrained"}},o)}}]},AX=N4e;var zn=n(N(),1);var _R={innerBlocks:[{name:"core/paragraph",attributes:{content:(0,zn.__)("One.")}},{name:"core/paragraph",attributes:{content:(0,zn.__)("Two.")}},{name:"core/paragraph",attributes:{content:(0,zn.__)("Three.")}},{name:"core/paragraph",attributes:{content:(0,zn.__)("Four.")}},{name:"core/paragraph",attributes:{content:(0,zn.__)("Five.")}},{name:"core/paragraph",attributes:{content:(0,zn.__)("Six.")}}]},D4e=[{name:"group",title:(0,zn.__)("Group"),description:(0,zn.__)("Gather blocks in a container."),attributes:{layout:{type:"constrained"}},isDefault:!0,scope:["block","inserter","transform"],icon:ed},{name:"group-row",title:(0,zn._x)("Row","single horizontal line"),description:(0,zn.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:hI,example:_R},{name:"group-stack",title:(0,zn.__)("Stack"),description:(0,zn.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["block","inserter","transform"],isActive:["layout.type","layout.orientation"],icon:BI,example:_R},{name:"group-grid",title:(0,zn.__)("Grid"),description:(0,zn.__)("Arrange blocks in a grid."),attributes:{layout:{type:"grid"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:Gl,example:_R}],MX=D4e;var{name:m4}=s4,zX={icon:ed,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,p4.__)("La Mancha"),style:{typography:{textAlign:"center"}}}},{name:"core/paragraph",attributes:{style:{typography:{textAlign:"center"}},content:(0,p4.__)("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,p4.__)("Read more")}}],viewportWidth:600},transforms:AX,edit:DX,save:RX,deprecated:CX,variations:MX},L4e=()=>R({name:m4,metadata:s4,settings:zX});var TR={};K(TR,{init:()=>Y4e,metadata:()=>g4,name:()=>b4,settings:()=>y4});var qp=n(N(),1),Tg=n(q(),1);var fa=n(P(),1);var pc=n(y(),1),kR={className:!1,anchor:!0},d4={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},Cg=e=>{if(!e.customTextColor)return e;let t={color:{text:e.customTextColor}},{customTextColor:r,...o}=e;return{...o,style:t}},VX=["left","right","center"],Sg=e=>{let{align:t,...r}=e;return VX.includes(t)?{...r,textAlign:t}:e},R4e={supports:kR,attributes:{...d4,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>be(Cg(Sg(e))),save({attributes:e}){let{align:t,level:r,content:o,textColor:a,customTextColor:i}=e,l="h"+r,s=(0,fa.getColorClassName)("color",a),c=S({[s]:s});return(0,pc.jsx)(fa.RichText.Content,{className:c||void 0,tagName:l,style:{textAlign:t,color:s?void 0:i},value:o})}},A4e={attributes:{...d4,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>be(Cg(Sg(e))),save({attributes:e}){let{align:t,content:r,customTextColor:o,level:a,textColor:i}=e,l="h"+a,s=(0,fa.getColorClassName)("color",i),c=S({[s]:s,[`has-text-align-${t}`]:t});return(0,pc.jsx)(fa.RichText.Content,{className:c||void 0,tagName:l,style:{color:s?void 0:o},value:r})},supports:kR},M4e={supports:kR,attributes:{...d4,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>be(Cg(Sg(e))),save({attributes:e}){let{align:t,content:r,customTextColor:o,level:a,textColor:i}=e,l="h"+a,s=(0,fa.getColorClassName)("color",i),c=S({[s]:s,"has-text-color":i||o,[`has-text-align-${t}`]:t});return(0,pc.jsx)(fa.RichText.Content,{className:c||void 0,tagName:l,style:{color:s?void 0:o},value:r})}},z4e={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:d4,isEligible:({align:e})=>VX.includes(e),migrate:e=>be(Cg(Sg(e))),save({attributes:e}){let{align:t,content:r,level:o}=e,a="h"+o,i=S({[`has-text-align-${t}`]:t});return(0,pc.jsx)(a,{...fa.useBlockProps.save({className:i}),children:(0,pc.jsx)(fa.RichText.Content,{value:r})})}},V4e={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,a="h"+o,i=S({[`has-text-align-${t}`]:t});return(0,pc.jsx)(a,{...fa.useBlockProps.save({className:i}),children:(0,pc.jsx)(fa.RichText.Content,{value:r})})},migrate:e=>be(Cg(Sg(e)))},O4e={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,a="h"+o,i=S({[`has-text-align-${t}`]:t});return(0,pc.jsx)(a,{...fa.useBlockProps.save({className:i}),children:(0,pc.jsx)(fa.RichText.Content,{value:r})})},migrate:e=>be(Cg(Sg(e))),isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},F4e=[O4e,V4e,z4e,M4e,A4e,R4e],OX=F4e;var HX=n(N(),1),jX=n(H(),1),h4=n(F(),1),Xd=n(P(),1);var FX=n(Ab(),1),wR={},H4e=e=>{let t=document.createElement("div");return t.innerHTML=e,t.innerText},j4e=e=>(0,FX.default)(H4e(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),f4=(e,t)=>{let r=j4e(t);if(r==="")return null;delete wR[e];let o=r,a=0;for(;Object.values(wR).includes(o);)a+=1,o=r+"-"+a;return o},CR=(e,t)=>{wR[e]=t};var UX=n(y(),1);function U4e(e){let{attributes:t,setAttributes:r,mergeBlocks:o,onReplace:a,style:i,clientId:l}=e;Ct(e);let{content:s,level:c,placeholder:u,anchor:p}=t,m="h"+c,d=(0,Xd.useBlockProps)({style:i}),{canGenerateAnchors:f}=(0,h4.useSelect)(v=>{let{getGlobalBlockCount:b,getSettings:_}=v(Xd.store);return{canGenerateAnchors:!!_().generateAnchors||b("core/table-of-contents")>0}},[]),{__unstableMarkNextChangeAsNotPersistent:h}=(0,h4.useDispatch)(Xd.store);return(0,jX.useEffect)(()=>{if(f)return!p&&s&&(h(),r({anchor:f4(l,s)})),CR(l,p),()=>CR(l,null)},[p,s,l,f,r,h]),(0,UX.jsx)(Xd.RichText,{identifier:"content",tagName:m,value:s,onChange:v=>{let b={content:v};f&&(!p||!v||f4(l,s)===p)&&(b.anchor=f4(l,v)),r(b)},onMerge:o,onReplace:a,onRemove:a?()=>a([]):void 0,placeholder:u||(0,HX.__)("Heading"),...d})}var GX=U4e;var g4={$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 v4=n(P(),1),SR=n(y(),1);function WX({attributes:e}){let{content:t,level:r}=e,o="h"+r;return(0,SR.jsx)(o,{...v4.useBlockProps.save(),children:(0,SR.jsx)(v4.RichText.Content,{value:t})})}var $p=n(q(),1);function $X(e){return Number(e.substr(1))}var W4e={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(t=>{let{content:r,anchor:o,style:a}=t,i=a?.typography?.textAlign;return(0,$p.createBlock)("core/heading",{...mu(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,$p.getBlockAttributes)("core/heading",e.outerHTML),{textAlign:r}=e.style||{};return t.level=$X(e.nodeName),(r==="left"||r==="center"||r==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:r}}),(0,$p.createBlock)("core/heading",t)}},...[1,2,3,4,5,6].map(e=>({type:"prefix",prefix:Array(e+1).join("#"),transform(t){return(0,$p.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,$p.createBlock)("core/heading",{level:e})}))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(t=>{let{content:r,style:o}=t,a=o?.typography?.textAlign;return(0,$p.createBlock)("core/paragraph",{...mu(t,"core/paragraph",({content:i})=>({content:i})),content:r,...a&&{style:{typography:{textAlign:a}}}})})}]},qX=W4e;var Wb=n(N(),1);var $4e=[bE,_E,kE,CE,TE,EE],q4e=[...[1,2,3,4,5,6].map(e=>({name:`h${e}`,title:(0,Wb.sprintf)((0,Wb.__)("Heading %d"),e),description:(0,Wb.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:$4e[e-1],attributes:{level:e},scope:["block","transform"],keywords:[`h${e}`],isActive:t=>t.level===e}))],ZX=q4e;var{fieldsKey:Z4e,formKey:K4e}=U(Tg.privateApis),{name:b4}=g4,y4={icon:IE,example:{attributes:{content:(0,qp.__)("Code is Poetry"),level:2,style:{typography:{textAlign:"center"}}}},__experimentalLabel(e,{context:t}){let{content:r,level:o}=e,a=e?.metadata?.name,i=r?.trim().length>0;if(t==="list-view"&&(a||i))return a||r;if(t==="breadcrumb"&&a)return a;if(t==="accessibility")return i?(0,qp.sprintf)((0,qp.__)("Level %1$s. %2$s"),o,r):(0,qp.sprintf)((0,qp.__)("Level %s. Empty."),o)},transforms:qX,deprecated:OX,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:GX,save:WX,variations:ZX};window.__experimentalContentOnlyInspectorFields&&(y4[Z4e]=[{id:"content",label:(0,qp.__)("Content"),type:"text",Edit:"rich-text"}],y4[K4e]={fields:["content"]});var Y4e=()=>{let e=R({name:b4,metadata:g4,settings:y4}),t=(0,Tg.getBlockType)(b4)?.attributes?.levelOptions?.default;return t&&[1,2,3,4,5,6].forEach(r=>{t.includes(r)||(0,Tg.unregisterBlockVariation)(b4,`h${r}`)}),e};var PR={};K(PR,{init:()=>J4e,metadata:()=>_4,name:()=>oJ,settings:()=>nJ});var rJ=n(N(),1);var _4={$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"},opensInNewTab:{type:"boolean",default:!1},description:{type:"string"}},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 Zp=n(P(),1),ha=n(O(),1),Ka=n(N(),1),KX=n(F(),1),YX=n(re(),1);var QX=n(Pn(),1);var To=n(y(),1),X4e=e=>e.preventDefault();function XX({attributes:e,setAttributes:t,context:r}){let{homeUrl:o,onNavigateToEntityRecord:a,frontPageId:i,frontPageTemplateId:l}=(0,KX.useSelect)(g=>{let{getEntityRecord:v,getDefaultTemplateId:b,canUser:_}=g(YX.store),k=v("root","__unstableBase")?.home,w=_("read",{kind:"root",name:"site"})?v("root","site"):null,C=w?.show_on_front==="page"?w?.page_on_front:null,T=C?null:b({slug:"front-page"});return{homeUrl:k,onNavigateToEntityRecord:g(Zp.store).getSettings().onNavigateToEntityRecord,frontPageId:C,frontPageTemplateId:T}},[]),{textColor:s,backgroundColor:c,style:u}=r,{label:p,opensInNewTab:m,description:d}=e,f=Z(),h=(0,Zp.useBlockProps)({className:S("wp-block-navigation-item",{"has-text-color":!!s||!!u?.color?.text,[`has-${s}-color`]:!!s,"has-background":!!c||!!u?.color?.background,[`has-${c}-background-color`]:!!c}),style:{color:u?.color?.text,backgroundColor:u?.color?.background}});return(0,To.jsxs)(To.Fragment,{children:[(0,To.jsx)(Zp.InspectorControls,{group:"content",children:(0,To.jsxs)(ha.__experimentalToolsPanel,{label:(0,Ka.__)("Settings"),resetAll:()=>{t({label:"",opensInNewTab:!1,description:""})},dropdownMenuProps:f,children:[(0,To.jsx)(ha.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,Ka.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,To.jsx)(ha.TextControl,{label:(0,Ka.__)("Text"),value:p?(0,QX.__unstableStripHTML)(p):"",onChange:g=>{t({label:g})},autoComplete:"off"})}),(0,To.jsx)(ha.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,Ka.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,To.jsx)(ha.CheckboxControl,{label:(0,Ka.__)("Open in new tab"),checked:m,onChange:g=>t({opensInNewTab:g})})}),a&&(i||l)&&(0,To.jsx)(ha.Button,{variant:"secondary",onClick:()=>{a(i?{postId:i,postType:"page"}:{postId:l,postType:"wp_template"})},__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,Ka.__)("Edit")}),o&&(0,To.jsx)(ha.Button,{variant:"secondary",href:o,target:"_blank",icon:ev,iconPosition:"right",__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,Ka.__)("View")}),(0,To.jsx)(ha.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,Ka.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!0,children:(0,To.jsx)(ha.TextareaControl,{label:(0,Ka.__)("Description"),value:d||"",onChange:g=>{t({description:g})},help:(0,Ka.__)("The description will be displayed in the menu if the current theme supports it.")})})]})}),(0,To.jsx)("div",{...h,children:(0,To.jsxs)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:o,onClick:X4e,children:[(0,To.jsx)(Zp.RichText,{identifier:"label",className:"wp-block-home-link__label",value:p??(0,Ka.__)("Home"),onChange:g=>{t({label:g})},"aria-label":(0,Ka.__)("Home link text"),placeholder:(0,Ka.__)("Add label\u2026"),withoutInteractiveFormatting:!0}),d&&(0,To.jsx)("span",{className:"wp-block-navigation-item__description",children:d})]})})]})}var JX=n(P(),1),eJ=n(y(),1);function tJ(){return(0,eJ.jsx)(JX.InnerBlocks.Content,{})}var{name:oJ}=_4,nJ={icon:DE,edit:XX,save:tJ,example:{attributes:{label:(0,rJ._x)("Home Link","block example")}}},J4e=()=>R({name:oJ,metadata:_4,settings:nJ});var IR={};K(IR,{init:()=>aCe,metadata:()=>w4,name:()=>yJ,settings:()=>_J});var bJ=n(N(),1);var Pg=n(N(),1),k4=n(H(),1),Ya=n(P(),1),ef=n(q(),1),Eg=n(F(),1),dJ=n(xd(),1),bs=n(O(),1);var Di=n(N(),1),$b=n(H(),1),pJ=n(F(),1),pn=n(O(),1),Yp=n(P(),1);var mJ=n(ve(),1);var aJ=n(H(),1),x4=n(P(),1),iJ=n(O(),1),lJ=n(F(),1),sJ=n(N(),1),Jd=n(y(),1),eCe=`
	html,body,:root {
		margin: 0 !important;
		padding: 0 !important;
		overflow: visible !important;
		min-height: auto !important;
	}
`;function cJ({content:e,isSelected:t}){let r=(0,lJ.useSelect)(a=>a(x4.store).getSettings().styles,[]),o=(0,aJ.useMemo)(()=>[eCe,...(0,x4.transformStyles)((r??[]).filter(a=>a.css))],[r]);return(0,Jd.jsxs)(Jd.Fragment,{children:[(0,Jd.jsx)(iJ.SandBox,{html:e,styles:o,title:(0,sJ.__)("Custom HTML Preview"),tabIndex:-1}),!t&&(0,Jd.jsx)("div",{className:"block-library-html__preview-overlay"})]})}function uJ(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 a=t.body.querySelector('script[data-wp-block-html="js"]'),i=a?a.textContent.trim():"";return a&&a.remove(),{html:t.body.innerHTML.trim(),css:o,js:i}}function ER({html:e="",css:t="",js:r=""}){let o=[];return t.trim()&&o.push(`<style data-wp-block-html="css">
${t}
</style>`),r.trim()&&o.push(`<script data-wp-block-html="js">
${r}
<\/script>`),e.trim()&&o.push(e),o.join(`

`)}var Bt=n(y(),1),{Tabs:Kp}=U(pn.privateApis),{useNativeUndo:tCe}=U(Yp.privateApis);function BR({onRequestClose:e,content:t,onUpdate:r}){let{html:o,css:a,js:i}=uJ(t),[l,s]=(0,$b.useState)(o),[c,u]=(0,$b.useState)(a),[p,m]=(0,$b.useState)(i),[d,f]=(0,$b.useState)(!1),h=tCe(),g=(0,mJ.useViewportMatch)("small","<"),{canUserUseUnfilteredHTML:v}=(0,pJ.useSelect)(w=>({canUserUseUnfilteredHTML:w(Yp.store).getSettings().__experimentalCanUserUseUnfilteredHTML}),[]),b=!v&&(a.trim()||i.trim()),_=()=>{r(ER({html:l,css:v?c:"",js:v?p:""}))},k=()=>{_(),e()},x=()=>{f(w=>!w)};return(0,Bt.jsx)(Bt.Fragment,{children:(0,Bt.jsx)(pn.Modal,{title:(0,Di.__)("Edit HTML"),onRequestClose:e,className:"block-library-html__modal",size:"large",isDismissible:!1,shouldCloseOnClickOutside:!1,isFullScreen:d,__experimentalHideHeader:!0,children:(0,Bt.jsx)(Kp,{orientation:"horizontal",defaultTabId:"html",children:(0,Bt.jsxs)(pn.__experimentalVStack,{expanded:!0,children:[(0,Bt.jsxs)(pn.__experimentalHStack,{justify:"space-between",className:"block-library-html__modal-header",children:[(0,Bt.jsx)("div",{children:(0,Bt.jsxs)(Kp.TabList,{children:[(0,Bt.jsx)(Kp.Tab,{tabId:"html",children:"HTML"}),v&&(0,Bt.jsx)(Kp.Tab,{tabId:"css",children:"CSS"}),v&&(0,Bt.jsx)(Kp.Tab,{tabId:"js",children:(0,Di.__)("JavaScript")})]})}),!g&&(0,Bt.jsx)("div",{children:(0,Bt.jsx)(pn.Button,{__next40pxDefaultSize:!0,icon:d?PI:Jm,label:(0,Di.__)("Enable/disable fullscreen"),onClick:x,variant:"tertiary"})})]}),b&&(0,Bt.jsx)(pn.Notice,{status:"warning",isDismissible:!1,className:"block-library-html__modal-notice",children:(0,Di.__)("This block contains CSS or JavaScript that will be removed when you save because you do not have permission to use unfiltered HTML.")}),(0,Bt.jsxs)(pn.Flex,{direction:g?"column":"row",className:"block-library-html__modal-tabs",align:"stretch",gap:8,children:[(0,Bt.jsxs)("div",{ref:h,className:"block-library-html__modal-content",children:[(0,Bt.jsx)(Kp.TabPanel,{tabId:"html",focusable:!1,className:"block-library-html__modal-tab",children:(0,Bt.jsx)(Yp.PlainText,{value:l,onChange:s,placeholder:(0,Di.__)("Write HTML\u2026"),"aria-label":(0,Di.__)("HTML"),className:"block-library-html__modal-editor",async:!0})}),v&&(0,Bt.jsx)(Kp.TabPanel,{tabId:"css",focusable:!1,className:"block-library-html__modal-tab",children:(0,Bt.jsx)(Yp.PlainText,{value:c,onChange:u,placeholder:(0,Di.__)("Write CSS\u2026"),"aria-label":(0,Di.__)("CSS"),className:"block-library-html__modal-editor",async:!0})}),v&&(0,Bt.jsx)(Kp.TabPanel,{tabId:"js",focusable:!1,className:"block-library-html__modal-tab",children:(0,Bt.jsx)(Yp.PlainText,{value:p,onChange:m,placeholder:(0,Di.__)("Write JavaScript\u2026"),"aria-label":(0,Di.__)("JavaScript"),className:"block-library-html__modal-editor",async:!0})})]}),(0,Bt.jsx)("div",{className:"block-library-html__preview",children:(0,Bt.jsx)(cJ,{content:ER({html:l,css:c,js:p})})})]}),(0,Bt.jsxs)(pn.__experimentalHStack,{alignment:"center",justify:"flex-end",spacing:4,className:"block-library-html__modal-footer",children:[(0,Bt.jsx)(pn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e,children:(0,Di.__)("Cancel")}),(0,Bt.jsx)(pn.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:k,children:(0,Di.__)("Update")})]})]})})})})}var Vn=n(y(),1),{InnerContent:rCe}=U(Ya.privateApis);function fJ({clientId:e,attributes:t}){let[r,o]=(0,k4.useState)(!1),a=(0,Eg.useRegistry)(),{updateBlock:i,replaceInnerBlocks:l}=(0,Eg.useDispatch)(Ya.store),s=(0,Eg.useSelect)(p=>{let m=p(Ya.store).getBlock(e);return m?(0,ef.getBlockContent)(m):""},[e]),c=(0,Ya.useBlockProps)({className:"block-library-html__edit"}),u=p=>{if(p===s)return;let[m]=(0,ef.parse)(`<!-- wp:html -->
${p}
<!-- /wp:html -->`),d=m?.innerBlocks??[],f=a.select(Ya.store).getBlocks(e),h=f.length===d.length&&f.every((g,v)=>(0,ef.serialize)(g)===(0,ef.serialize)(d[v]));a.batch(()=>{i(e,{innerContent:m?.innerContent??(p?[p]:[])}),h||l(e,d,!1)})};return(0,k4.useEffect)(()=>{t.content&&((0,dJ.default)("The content attribute on the Custom HTML block",{since:"7.1",alternative:"inner content"}),i(e,{attributes:{content:void 0},innerContent:[t.content]}))},[t.content]),s?.trim()?(0,Vn.jsxs)("div",{...c,children:[(0,Vn.jsx)(Ya.BlockControls,{children:(0,Vn.jsx)(bs.ToolbarGroup,{children:(0,Vn.jsx)(bs.ToolbarButton,{onClick:()=>o(!0),children:(0,Pg.__)("Edit code")})})}),(0,Vn.jsx)(Ya.InspectorControls,{children:(0,Vn.jsx)(bs.__experimentalVStack,{className:"block-library-html__edit-code",expanded:!0,children:(0,Vn.jsx)(bs.Button,{className:"block-library-html__edit-code-button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>o(!0),children:(0,Pg.__)("Edit code")})})}),(0,Vn.jsx)(rCe,{clientId:e}),r&&(0,Vn.jsx)(BR,{onRequestClose:()=>o(!1),content:s,onUpdate:u})]}):(0,Vn.jsxs)("div",{...c,children:[(0,Vn.jsx)(bs.Placeholder,{icon:(0,Vn.jsx)(Ya.BlockIcon,{icon:q1}),label:(0,Pg.__)("Custom HTML"),instructions:(0,Pg.__)("Add custom HTML code and preview how it looks."),children:(0,Vn.jsx)(bs.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>o(!0),children:(0,Pg.__)("Edit HTML")})}),r&&(0,Vn.jsx)(BR,{onRequestClose:()=>o(!1),content:s,onUpdate:u})]})}var w4={$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",role:"local"}},supports:{customClassName:!1,className:!1,html:!1,interactivity:{clientNavigation:!0},listView:!0,customCSS:!1,visibility:!1},editorStyle:"wp-block-html-editor"};function hJ(){return null}var C4=n(q(),1),gJ=n(Xl(),1),nCe={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>{let t=(0,gJ.create)({html:e}).text,[r]=(0,C4.parse)(`<!-- wp:html -->
${t}
<!-- /wp:html -->`);return r??(0,C4.createBlock)("core/html",{},[],[t])}}]},vJ=nCe;var{name:yJ}=w4,_J={icon:RE,example:{innerContent:["<marquee>"+(0,bJ.__)("Welcome to the wonderful world of blocks\u2026")+"</marquee>"]},edit:fJ,save:hJ,transforms:vJ},aCe=()=>R({name:yJ,metadata:w4,settings:_J});var MR={};K(MR,{init:()=>mCe,metadata:()=>P4,name:()=>RJ,settings:()=>AJ});var Ri=n(N(),1),ga=n(O(),1);var mn=n(P(),1),EJ=n(H(),1),Ng=n(M(),1),BJ=n(F(),1),IJ=n(re(),1);var T4=n(N(),1),Ig=n(O(),1);var Zb=n(H(),1),PJ=n(ve(),1),DR=n(F(),1),LR=n(re(),1);var NR=n(N(),1),kJ=n(O(),1),wJ=n(ve(),1),S4=n(H(),1),CJ=n(Pn(),1);var mc=n(y(),1),xJ=20;function SJ({icons:e,onChange:t,value:r}){let o=(0,wJ.useAsyncList)(e,{step:xJ}),a=(0,S4.useRef)(),i=e?.findIndex(s=>s.name===r)??-1,l=i>=0&&(o.length>=i+xJ||o.length===e.length);return(0,S4.useLayoutEffect)(()=>{let s=a.current;!l||!s||(0,CJ.getScrollContainer)(s)?.scrollTop||s.scrollIntoView({block:"center"})},[l]),(0,mc.jsx)("div",{className:"wp-block-icon__inserter-grid",children:e?.length?(0,mc.jsx)("div",{className:"wp-block-icon__inserter-grid-icons-list","aria-label":(0,NR.__)("Icon library"),children:o.map(s=>(0,mc.jsxs)(kJ.Button,{ref:s.name===r?a:void 0,className:"wp-block-icon__inserter-grid-icons-list-item",onClick:()=>t(s.name),variant:s.name===r?"primary":void 0,__next40pxDefaultSize:!0,children:[(0,mc.jsx)("span",{className:"wp-block-icon__inserter-grid-icons-list-item-icon",children:(0,mc.jsx)(ko,{html:s.content})}),(0,mc.jsx)("span",{className:"wp-block-icon__inserter-grid-icons-list-item-title",children:s.label})]},s.name))}):(0,mc.jsx)("div",{className:"wp-block-icon__inserter-grid-no-results",children:(0,mc.jsx)("p",{children:(0,NR.__)("No results found.")})})})}var TJ=n(Ab(),1);function Bg(e=""){return e=(0,TJ.default)(e),e=e.trim().toLowerCase(),e}function iCe(e,t){let r=Bg(t),o=Bg(e.title),a=0;return r===o?a+=30:o.startsWith(r)?a+=20:r.split(" ").every(s=>o.includes(s))&&(a+=10),a}function qb(e=[],t=""){if(!t)return e;let r=e.map(o=>[o,iCe(o,t)]).filter(([,o])=>o>0);return r.sort(([,o],[,a])=>a-o),r.map(([o])=>o)}var Li=n(y(),1);function RR({onClose:e,value:t,onChange:r}){let[o,a]=(0,Zb.useState)(""),[i,l]=(0,Zb.useState)(null),s=(0,PJ.useDebounce)(a,300),c=(0,DR.useSelect)(h=>h(LR.store).getEntityRecords("root","iconCollection"),[]),u=t?.split("/")[0],p=i??(c?.some(({slug:h})=>h===u)?u:c?.[0]?.slug)??null,{icons:m,hasResolvedIcons:d}=(0,DR.useSelect)(h=>{if(p===null)return{icons:null,hasResolvedIcons:!1};let g=p===""?{}:{collection:p},{getEntityRecords:v,hasFinishedResolution:b}=h(LR.store);return{icons:v("root","icon",g),hasResolvedIcons:b("getEntityRecords",["root","icon",g])}},[p]),f=(0,Zb.useMemo)(()=>{if(!m)return[];if(o){let h=Bg(o);return m.filter(g=>{let v=Bg(g.name),b=Bg(g.label);return v.includes(h)||b.includes(h)})}return m},[o,m]);return(0,Li.jsx)(Ig.Modal,{className:"wp-block-icon__inserter-modal",title:(0,T4.__)("Icon library"),onRequestClose:e,isFullScreen:!0,children:(0,Li.jsxs)(Sp.Root,{className:"wp-block-icon__inserter",orientation:"vertical",value:p,onValueChange:l,children:[(0,Li.jsxs)(wp,{direction:"column",gap:"lg",className:"wp-block-icon__inserter-sidebar",children:[(0,Li.jsx)(Ig.SearchControl,{value:o,onChange:s}),(0,Li.jsxs)(Sp.List,{children:[(0,Li.jsx)(Sp.Tab,{value:"",children:(0,T4.__)("All")}),c?.map(h=>(0,Li.jsx)(Sp.Tab,{value:h.slug,children:h.label},h.slug))]})]}),[{slug:""},...c??[]].map(h=>(0,Li.jsx)(Sp.Panel,{tabIndex:-1,value:h.slug,className:"wp-block-icon__inserter-panel",children:d?(0,Li.jsx)(SJ,{icons:f,onChange:r,value:t}):(0,Li.jsx)("div",{className:"wp-block-icon__inserter-loading",role:"status","aria-label":(0,T4.__)("Loading\u2026"),children:(0,Li.jsx)(Ig.Spinner,{})})},h.slug))]})})}var Ut=n(y(),1),lCe=({className:e,style:t})=>(0,Ut.jsxs)(Ng.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none",fill:"none","aria-hidden":"true",className:S("wp-block-icon__placeholder",e),style:t,children:[(0,Ut.jsx)(Ng.Rect,{width:"60",height:"60",fill:"currentColor",fillOpacity:.1}),(0,Ut.jsx)(Ng.Path,{vectorEffect:"non-scaling-stroke",stroke:"currentColor",strokeOpacity:.25,d:"M60 60 0 0"})]});function sCe({attributes:e,setAttributes:t}){let{icon:r,ariaLabel:o,flipHorizontal:a,flipVertical:i,rotation:l}=e,[s,c]=(0,EJ.useState)(!1),u=(0,mn.useBlockEditingMode)()==="contentOnly",p=(0,mn.__experimentalUseColorProps)(e),m=(0,mn.__experimentalGetSpacingClassesAndStyles)(e),d=(0,mn.__experimentalUseBorderProps)(e),f=(0,mn.getDimensionsClassesAndStyles)(e),g=(0,BJ.useSelect)(w=>{let{getEntityRecord:C}=w(IJ.store);return r?C("root","icon",r):null},[r])?.content||"",v={"is-flip-horizontal":a,"is-flip-vertical":i},b=l?{rotate:`${l}deg`}:{},_=(0,Ut.jsxs)(Ut.Fragment,{children:[r&&(0,Ut.jsxs)(mn.BlockControls,{group:"block",children:[(0,Ut.jsx)(ga.ToolbarButton,{icon:ZP,label:(0,Ri.__)("Flip horizontal"),isPressed:a,onClick:()=>t({flipHorizontal:!a})}),(0,Ut.jsx)(ga.ToolbarButton,{icon:YP,label:(0,Ri.__)("Flip vertical"),isPressed:i,onClick:()=>t({flipVertical:!i})}),(0,Ut.jsx)(ga.ToolbarButton,{icon:dI,label:(0,Ri.__)("Rotate"),onClick:()=>t({rotation:((l||0)+90)%360})})]}),(0,Ut.jsxs)(mn.BlockControls,{group:"other",children:[(0,Ut.jsx)(ga.ToolbarButton,{onClick:()=>{c(!0)},children:r?(0,Ri.__)("Replace"):(0,Ri.__)("Choose icon")}),u&&r&&(0,Ut.jsx)(ga.DropdownMenu,{icon:"",toggleProps:{as:ga.ToolbarButton},popoverProps:{className:"is-alternate"},text:(0,Ri.__)("Label"),children:()=>(0,Ut.jsx)(ga.TextControl,{className:"wp-block-icon__toolbar-content",label:(0,Ri.__)("Label"),value:o||"",onChange:w=>t({ariaLabel:w}),help:(0,Ri.__)("Briefly describe the icon to help screen reader users. Leave blank for decorative icons.")})})]})]}),k=Z(),x=r&&(0,Ut.jsx)(Ut.Fragment,{children:(0,Ut.jsx)(mn.InspectorControls,{group:"settings",children:(0,Ut.jsx)(ga.__experimentalToolsPanel,{label:(0,Ri.__)("Settings"),resetAll:()=>t({ariaLabel:void 0}),dropdownMenuProps:k,children:(0,Ut.jsx)(ga.__experimentalToolsPanelItem,{label:(0,Ri.__)("Label"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>t({ariaLabel:void 0}),children:(0,Ut.jsx)(ga.TextControl,{label:(0,Ri.__)("Label"),help:(0,Ri.__)("Briefly describe the icon to help screen reader users. Leave blank for decorative icons."),value:o||"",onChange:w=>t({ariaLabel:w})})})})})});return(0,Ut.jsxs)(Ut.Fragment,{children:[_,x,(0,Ut.jsx)("div",{...(0,mn.useBlockProps)(),children:g?(0,Ut.jsx)(ko,{html:g,wrapperProps:{className:S(p.className,d.className,m.className,f.className,v),style:{...p.style,...d.style,...m.style,...f.style,...b}}}):(0,Ut.jsx)(lCe,{className:S(d.className,m.className,f.className,v),style:{...d.style,...m.style,...f.style,...b,height:"auto"}})}),s&&(0,Ut.jsx)(RR,{onClose:()=>c(!1),value:e.icon,onChange:w=>{t({icon:w}),c(!1)}})]})}var NJ=sCe;var P4={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"},flipHorizontal:{type:"boolean",default:!1},flipVertical:{type:"boolean",default:!1},rotation:{type:"number",default:0}},supports:{anchor:!0,ariaLabel:{__experimentalSkipSerialization:!0},align:["left","center","right"],html:!1,color:{__experimentalSkipSerialization:!0,__experimentalDefaultControls:{background:!0,text:!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 E4=n(O(),1),AR=n(y(),1),uCe=(0,AR.jsx)(E4.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:(0,AR.jsx)(E4.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"})}),DJ=uCe;var pCe=[{name:"default",isDefault:!0,attributes:{icon:"core/info"}}],LJ=pCe;var{name:RJ}=P4,AJ={icon:DJ,example:{attributes:{icon:"core/info",style:{dimensions:{width:"48px"}}}},variations:LJ,edit:NJ},mCe=()=>R({name:RJ,metadata:P4,settings:AJ});var UR={};K(UR,{init:()=>UCe,metadata:()=>M4,name:()=>gee,settings:()=>V4});var Xp=n(N(),1);var hee=n(q(),1);var Ye=n(P(),1);var Me=n(y(),1),dCe={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:a,href:i,width:l,height:s}=e,u=(0,Me.jsx)("img",{src:t,alt:r,...l||s?{width:l,height:s}:{}}),p={};return l?p={width:l}:(a==="left"||a==="right")&&(p={maxWidth:"50%"}),(0,Me.jsxs)("figure",{className:a?`align${a}`:null,style:p,children:[i?(0,Me.jsx)("a",{href:i,children:u}):u,!Ye.RichText.isEmpty(o)&&(0,Me.jsx)(Ye.RichText.Content,{tagName:"figcaption",value:o})]})}},fCe={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:a,href:i,width:l,height:s,id:c}=e,u=(0,Me.jsx)("img",{src:t,alt:r,className:c?`wp-image-${c}`:null,width:l,height:s});return(0,Me.jsxs)("figure",{className:a?`align${a}`:null,children:[i?(0,Me.jsx)("a",{href:i,children:u}):u,!Ye.RichText.isEmpty(o)&&(0,Me.jsx)(Ye.RichText.Content,{tagName:"figcaption",value:o})]})}},hCe={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:a,href:i,width:l,height:s,id:c}=e,u=S({[`align${a}`]:a,"is-resized":l||s}),p=(0,Me.jsx)("img",{src:t,alt:r,className:c?`wp-image-${c}`:null,width:l,height:s});return(0,Me.jsxs)("figure",{className:u,children:[i?(0,Me.jsx)("a",{href:i,children:p}):p,!Ye.RichText.isEmpty(o)&&(0,Me.jsx)(Ye.RichText.Content,{tagName:"figcaption",value:o})]})}},gCe={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:a,href:i,rel:l,linkClass:s,width:c,height:u,id:p,linkTarget:m,sizeSlug:d,title:f}=e,h=l||void 0,g=S({[`align${a}`]:a,[`size-${d}`]:d,"is-resized":c||u}),v=(0,Me.jsx)("img",{src:t,alt:r,className:p?`wp-image-${p}`:null,width:c,height:u,title:f}),b=(0,Me.jsxs)(Me.Fragment,{children:[i?(0,Me.jsx)("a",{className:s,href:i,target:m,rel:h,children:v}):v,!Ye.RichText.isEmpty(o)&&(0,Me.jsx)(Ye.RichText.Content,{tagName:"figcaption",value:o})]});return a==="left"||a==="right"||a==="center"?(0,Me.jsx)("div",{...Ye.useBlockProps.save(),children:(0,Me.jsx)("figure",{className:g,children:b})}):(0,Me.jsx)("figure",{...Ye.useBlockProps.save({className:g}),children:b})}},vCe={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:a,href:i,rel:l,linkClass:s,width:c,height:u,id:p,linkTarget:m,sizeSlug:d,title:f}=e,h=l||void 0,g=S({[`align${a}`]:a,[`size-${d}`]:d,"is-resized":c||u}),v=(0,Me.jsx)("img",{src:t,alt:r,className:p?`wp-image-${p}`:null,width:c,height:u,title:f}),b=(0,Me.jsxs)(Me.Fragment,{children:[i?(0,Me.jsx)("a",{className:s,href:i,target:m,rel:h,children:v}):v,!Ye.RichText.isEmpty(o)&&(0,Me.jsx)(Ye.RichText.Content,{tagName:"figcaption",value:o})]});return(0,Me.jsx)("figure",{...Ye.useBlockProps.save({className:g}),children:b})}},bCe={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:a,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:p,scale:m,id:d,linkTarget:f,sizeSlug:h,title:g}=e,v=l||void 0,b=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),_=S({[`align${a}`]:a,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),k=S(b.className,{[`wp-image-${d}`]:!!d}),x=(0,Me.jsx)("img",{src:t,alt:r,className:k||void 0,style:{...b.style,aspectRatio:p,objectFit:m},width:c,height:u,title:g}),w=(0,Me.jsxs)(Me.Fragment,{children:[i?(0,Me.jsx)("a",{className:s,href:i,target:f,rel:v,children:x}):x,!Ye.RichText.isEmpty(o)&&(0,Me.jsx)(Ye.RichText.Content,{className:(0,Ye.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Me.jsx)("figure",{...Ye.useBlockProps.save({className:_}),children:w})}},yCe={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{width:t,height:r}=e;return{...e,width:typeof t=="number"?`${t}px`:t,height:typeof r=="number"?`${r}px`:r}},save({attributes:e}){let{url:t,alt:r,caption:o,align:a,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:p,scale:m,id:d,linkTarget:f,sizeSlug:h,title:g}=e,v=l||void 0,b=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),_=S({[`align${a}`]:a,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),k=S(b.className,{[`wp-image-${d}`]:!!d}),x=(0,Me.jsx)("img",{src:t,alt:r,className:k||void 0,style:{...b.style,aspectRatio:p,objectFit:m,width:c,height:u},width:c,height:u,title:g}),w=(0,Me.jsxs)(Me.Fragment,{children:[i?(0,Me.jsx)("a",{className:s,href:i,target:f,rel:v,children:x}):x,!Ye.RichText.isEmpty(o)&&(0,Me.jsx)(Ye.RichText.Content,{className:(0,Ye.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Me.jsx)("figure",{...Ye.useBlockProps.save({className:_}),children:w})}},_Ce={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,a={...r,lightbox:{enabled:o}};return delete a.behaviors,a},isEligible(e){return!!e.behaviors},save({attributes:e}){let{url:t,alt:r,caption:o,align:a,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:p,scale:m,id:d,linkTarget:f,sizeSlug:h,title:g}=e,v=l||void 0,b=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),_=S({[`align${a}`]:a,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),k=S(b.className,{[`wp-image-${d}`]:!!d}),x=(0,Me.jsx)("img",{src:t,alt:r,className:k||void 0,style:{...b.style,aspectRatio:p,objectFit:m,width:c,height:u},title:g}),w=(0,Me.jsxs)(Me.Fragment,{children:[i?(0,Me.jsx)("a",{className:s,href:i,target:f,rel:v,children:x}):x,!Ye.RichText.isEmpty(o)&&(0,Me.jsx)(Ye.RichText.Content,{className:(0,Ye.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Me.jsx)("figure",{...Ye.useBlockProps.save({className:_}),children:w})}},xCe={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}},save({attributes:e}){let{url:t,alt:r,caption:o,align:a,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:p,scale:m,focalPoint:d,id:f,linkTarget:h,sizeSlug:g,title:v,metadata:{bindings:b={}}={}}=e,_=l||void 0,k=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),x=(0,Ye.__experimentalGetShadowClassesAndStyles)(e),w=S({alignnone:a==="none",[`size-${g}`]:g,"is-resized":c||u,"has-custom-border":!!k.className||k.style&&Object.keys(k.style).length>0}),C=S(k.className,{[`wp-image-${f}`]:!!f}),T=(0,Me.jsx)("img",{src:t,alt:r,className:C||void 0,style:{...k.style,...x.style,aspectRatio:p,objectFit:m,objectPosition:d&&m?Yd(d):void 0,width:c,height:u},title:v}),I=!Ye.RichText.isEmpty(o)||b.caption||b?.__default?.source==="core/pattern-overrides",D=(0,Me.jsxs)(Me.Fragment,{children:[i?(0,Me.jsx)("a",{className:s,href:i,target:h,rel:_,children:T}):T,I&&(0,Me.jsx)(Ye.RichText.Content,{className:(0,Ye.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Me.jsx)("figure",{...Ye.useBlockProps.save({className:w}),children:D})}},MJ=[xCe,_Ce,yCe,bCe,vCe,gCe,hCe,fCe,dCe];var Rg=n(Ar(),1),Kb=n(q(),1),oee=n(O(),1),tf=n(F(),1),ba=n(P(),1),Qp=n(H(),1),fc=n(N(),1);var nee=n(Sr(),1),aee=n(ve(),1),A4=n(pr(),1),iee=n(VJ(),1);var Oe=n(O(),1),Lg=n(ve(),1),dc=n(F(),1),At=n(P(),1),gr=n(H(),1),De=n(N(),1),FR=n(pr(),1),Dg=n(q(),1);var YJ=n(Sr(),1),R4=n(re(),1);var va=n(O(),1),B4=n(P(),1),OJ=n(Pn(),1),FJ=n(H(),1),zR=n(N(),1),HJ=n(F(),1);var jJ=n(pr(),1),Qa=n(y(),1),kCe=e=>{window.requestAnimationFrame(()=>{let[t]=OJ.focus.tabbable.find(e?.current);t&&t.focus()})};function VR({url:e,filename:t,itemGroupProps:r,className:o,label:a}){return(0,Qa.jsx)(va.__experimentalItemGroup,{...r,as:"span",children:(0,Qa.jsxs)(va.__experimentalHStack,{justify:"flex-start",children:[(0,Qa.jsx)("span",{className:"block-library-utils__media-control__inspector-image-indicator",style:{backgroundImage:e?`url(${e})`:void 0}}),(0,Qa.jsx)(va.FlexBlock,{children:(0,Qa.jsx)(va.__experimentalTruncate,{numberOfLines:1,className:o,children:t??a})})]})})}function I4({mediaId:e,mediaUrl:t,filename:r,allowedTypes:o,onSelect:a,onSelectURL:i,onError:l,onReset:s,isUploading:c=!1,emptyLabel:u=(0,zR.__)("Media")}){let{getSettings:p}=(0,HJ.useSelect)(B4.store),m=f=>{let{mediaUpload:h}=p();h&&h({allowedTypes:o,filesList:f,onFileChange([g]){a(g)},onError:l,multiple:!1})},d=(0,FJ.useRef)();return(0,Qa.jsxs)("div",{ref:d,className:"block-library-utils__media-control",children:[(0,Qa.jsx)(B4.MediaReplaceFlow,{className:"block-library-utils__media-control__replace-flow",mediaId:e,mediaURL:t,allowedTypes:o,onSelect:a,onSelectURL:i,onError:l,name:(0,Qa.jsx)(VR,{url:t,filename:r,className:"block-library-utils__media-control__inspector-media-replace-title",label:t&&(0,jJ.getFilename)(r)||u}),renderToggle:f=>(0,Qa.jsx)(va.Button,{...f,__next40pxDefaultSize:!0,children:c?(0,Qa.jsx)(va.Spinner,{}):f.children}),onReset:s}),t&&s&&(0,Qa.jsx)(va.Button,{label:(0,zR.__)("Reset"),className:"block-library-utils__media-control__reset",size:"small",icon:cI,onClick:()=>{s(),kCe(d)}}),(0,Qa.jsx)(va.DropZone,{onFilesDrop:m})]})}var N4=n(re(),1),D4=n(P(),1),$J=n(Pn(),1),L4=n(F(),1),xl=n(H(),1);function UJ(e){return typeof e!="string"||!(0,$J.__unstableStripHTML)(e).trim()?"":e.replace(/\n/g,"<br>")}function wCe(e){let t=e?.caption;if(typeof t=="string")return UJ(t);if(t&&typeof t=="object"&&Object.hasOwn(t,"raw"))return UJ(t.raw)}function OR(e){return{alt:typeof e?.alt_text=="string"?e.alt_text:e?.alt||"",caption:wCe(e)}}function GJ(e){return e||""}function CCe(e,t,r){if(!t||!r)return{};let o=OR(t),a=OR(r),i={},l=GJ(e.alt);o.alt!==a.alt&&(l===o.alt||!l)&&(i.alt=a.alt);let s=GJ(e.caption);return o.caption!==void 0&&a.caption!==void 0&&o.caption!==a.caption&&(s===o.caption||!s)&&(i.caption=a.caption||void 0),i}var{openMediaEditorModalKey:SCe}=U(D4.privateApis);function TCe({alt:e,caption:t}){let r={};return e||(r.alt_text=""),t?.toString()||(r.caption=""),Object.keys(r).length?r:void 0}function WJ(e){if(!e)return!1;let t=typeof e.alt_text=="string"||typeof e.alt=="string",r=OR(e).caption!==void 0;return t&&r}function qJ({attributes:e,setAttributes:t,onClose:r,onUrlChange:o}){let{id:a,url:i,alt:l,caption:s}=e,c=(0,L4.useRegistry)(),u=(0,L4.useSelect)(_=>_(D4.store).getSettings()[SCe],[]),p=(0,xl.useRef)({id:a,url:i,alt:l,caption:s?.toString()}),m=(0,xl.useRef)(),d=(0,xl.useRef)(0);(0,xl.useEffect)(()=>{p.current={id:a,url:i,alt:l,caption:s?.toString()}},[l,s,a,i]);let f=(0,xl.useCallback)(_=>c.select(N4.store).getEditedEntityRecord("postType","attachment",_),[c]),h=(0,xl.useCallback)(async _=>{let k=c.resolveSelect(N4.store);try{return await k.getEntityRecord("postType","attachment",_)}catch{return}},[c]),g=(0,xl.useCallback)(async _=>{let{invalidateResolution:k}=c.dispatch(N4.store);return k("getEntityRecord",["postType","attachment",_]),h(_)},[c,h]),v=(0,xl.useCallback)(async({id:_,url:k})=>{if(typeof _!="number")return;let x=m.current;m.current=void 0;let w=++d.current,C={},T=p.current;if(_!==T.id&&(C.id=_,C.url=k??T.url,C.url!==T.url&&o?.(C.url),p.current={...p.current,id:C.id,url:C.url}),x){let I=await g(_);if(w!==d.current)return;let D=p.current,L=CCe(D,x,I);Object.keys(L).length&&Object.assign(C,L)}Object.keys(C).length&&(p.current={...p.current,...C},t(C))},[o,g,t]),b=(0,xl.useCallback)(async()=>{if(!a||!u)return;let _=f(a),k=TCe(p.current),x=WJ(_)?void 0:await h(a);m.current=x||(WJ(_)?_:k)||_,u({id:a,onUpdate:v,onClose:r})},[f,v,a,r,u,h]);return a&&u?b:void 0}var ue=n(y(),1),{DimensionsTool:ZJ,isDefaultBlockStyleState:PCe,ResolutionTool:ECe,mediaEditKey:BCe,mediaSideloadFromUrlKey:KJ}=U(At.privateApis),ICe=[{value:"cover",label:(0,De._x)("Cover","Scale option for dimensions control"),help:(0,De.__)("Image covers the space evenly.")},{value:"contain",label:(0,De._x)("Contain","Scale option for dimensions control"),help:(0,De.__)("Image is contained without distortion.")}],NCe={placement:"bottom-start"},DCe=({href:e,children:t})=>e?(0,ue.jsx)("a",{href:e,onClick:r=>r.preventDefault(),"aria-disabled":!0,style:{pointerEvents:"none",cursor:"default",display:"inline"},children:t}):t;function LCe({attributes:e,setAttributes:t,lockAltControls:r,lockAltControlsMessage:o,lockTitleControls:a,lockTitleControlsMessage:i}){let[l,s]=(0,gr.useState)(null),[c,u]=(0,gr.useState)(!1),[p,m]=(0,gr.useState)(!1);return(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(Oe.ToolbarItem,{ref:s,children:d=>(0,ue.jsx)(Oe.DropdownMenu,{icon:W1,label:(0,De.__)("More"),toggleProps:{...d,description:(0,De.__)("Displays more controls.")},popoverProps:NCe,children:({onClose:f})=>(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(Oe.MenuItem,{onClick:()=>{u(!0),f()},"aria-haspopup":"dialog",children:(0,De._x)("Alternative text","Alternative text for an image. Block toolbar label, a low character count is preferred.")}),(0,ue.jsx)(Oe.MenuItem,{onClick:()=>{m(!0),f()},"aria-haspopup":"dialog",children:(0,De.__)("Title text")})]})})}),c&&(0,ue.jsx)(Oe.Popover,{placement:"bottom-start",anchor:l,onClose:()=>u(!1),offset:13,variant:"toolbar",children:(0,ue.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,ue.jsx)(Oe.TextareaControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,De.__)("Alternative text"),value:e.alt||"",onChange:d=>t({alt:d}),disabled:r,help:r?(0,ue.jsx)(ue.Fragment,{children:o}):(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(Oe.ExternalLink,{href:(0,De.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,De.__)("Describe the purpose of the image.")}),(0,ue.jsx)("br",{}),(0,De.__)("Leave empty if decorative.")]})})})}),p&&(0,ue.jsx)(Oe.Popover,{placement:"bottom-start",anchor:l,onClose:()=>m(!1),offset:13,variant:"toolbar",children:(0,ue.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,ue.jsx)(Oe.TextControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,De.__)("Title attribute"),value:e.title||"",onChange:d=>t({title:d}),disabled:a,help:a?(0,ue.jsx)(ue.Fragment,{children:i}):(0,gr.createInterpolateElement)((0,De.__)("Describe the role of this image on the page. <a>(Note: many devices and browsers do not display this text.)</a>"),{a:(0,ue.jsx)(Oe.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"})})})})})]})}function QJ({temporaryURL:e,isSideloading:t,attributes:r,setAttributes:o,isSingleSelected:a,insertBlocksAfter:i,onReplace:l,onSelectImage:s,onSelectURL:c,onUploadError:u,context:p,clientId:m,blockEditingMode:d,parentLayoutType:f,maxContentWidth:h}){let{url:g="",alt:v,align:b,id:_,href:k,rel:x,linkClass:w,linkDestination:C,title:T,width:I,height:D,aspectRatio:L,scale:E,focalPoint:B,linkTarget:A,sizeSlug:z,lightbox:j,metadata:G,isDecorative:W}=r,[$,V]=(0,gr.useState)(),[Q,Y]=(0,gr.useState)(null),[ee,te]=(0,gr.useState)({}),[oe,J]=(0,gr.useState)(0),ce=(0,Lg.useResizeObserver)(([_e])=>{if(!Q){let[Rt]=_e.borderBoxSize;te({width:Rt.inlineSize,height:Rt.blockSize})}J(_e.target.offsetTop)}),ie=(0,gr.useCallback)(()=>{J($?.offsetTop??0)},[$]),we=(0,Lg.useMergeRefs)([V,ce]),{allowResize:se=!0}=p,{image:de,attachmentResolutionError:ge}=(0,dc.useSelect)(_e=>{let Rt=_&&a?_e(R4.store).getEntityRecord("postType","attachment",_,{context:"view"}):null,nl=_&&a?_e(R4.store).getResolutionError("getEntityRecord",["postType","attachment",_,{context:"view"}]):null;return{image:Rt,attachmentResolutionError:nl}},[_,a]),{canInsertCover:ne,imageEditing:me,imageSizes:le,maxWidth:Pe,editMediaEntity:Ee}=(0,dc.useSelect)(_e=>{let{getBlockRootClientId:Rt,canInsertBlockType:nl,getSettings:za}=_e(At.store),D1=Rt(m),ip=za();return{imageEditing:ip.imageEditing,imageSizes:ip.imageSizes,maxWidth:ip.maxWidth,editMediaEntity:ip?.[BCe],canInsertCover:nl("core/cover",D1)}},[m]),{getBlock:X,getSettings:Ce}=(0,dc.useSelect)(At.store),pe=(0,gr.useRef)(),[$e,fe]=(0,gr.useState)(),Ae=!!$e,Ft=(0,gr.useCallback)(()=>pe.current?.focus(),[]),ze=qJ({attributes:r,setAttributes:o,onClose:Ft,onUrlChange:fe}),{replaceBlocks:oo,toggleSelection:no,__unstableMarkNextChangeAsNotPersistent:bo}=(0,dc.useDispatch)(At.store),{createErrorNotice:yo,createSuccessNotice:ta}=(0,dc.useDispatch)(YJ.store),{editEntityRecord:Ra}=(0,dc.useDispatch)(R4.store),ae=(0,Lg.useViewportMatch)("medium"),Ve=["wide","full"].includes(b),[{loadedNaturalWidth:Je,loadedNaturalHeight:St},qe]=(0,gr.useState)({}),[_o,Tn]=(0,gr.useState)(!1),Hl=d==="default",ot=d==="contentOnly",Lo=se&&Hl,rp=se&&Hl&&!Ve&&ae,pi=!!e||t,sh=le.filter(({slug:_e})=>de?.media_details?.sizes?.[_e]?.source_url).map(({name:_e,slug:Rt})=>({value:Rt,label:_e}));(0,gr.useEffect)(()=>{!_||!a||ge?.status===404&&(bo(),o({id:void 0}))},[_,a,ge,o,bo]);let Hm=a&&HR(_,g)&&!!Ce()[KJ],{naturalWidth:Ko,naturalHeight:ra}=(0,gr.useMemo)(()=>({naturalWidth:$?.naturalWidth||Je||void 0,naturalHeight:$?.naturalHeight||St||void 0}),[Je,St,$?.complete]);(0,gr.useEffect)(()=>{$e&&$e===g&&$?.complete&&fe(void 0)},[$e,g,$]);function Xc(){fe(void 0),Tn(!0);let _e=bp({attributes:{url:g}});_e!==void 0&&l&&l(_e)}function ch(_e){fe(void 0),Tn(!1),qe({loadedNaturalWidth:_e.target?.naturalWidth,loadedNaturalHeight:_e.target?.naturalHeight})}function op(_e){o(_e)}function uh(_e){_e&&!Jc?.enabled?o({lightbox:{enabled:!0},isDecorative:!1}):!_e&&Jc?.enabled?o({lightbox:{enabled:!1}}):o({lightbox:void 0})}function Se(){Jc?.enabled&&Jc?.allowEditing?o({lightbox:{enabled:!1}}):o({lightbox:void 0})}function lt(_e){o({title:_e})}function hr(_e){o({alt:_e})}function wr(_e){o({isDecorative:_e||void 0,..._e&&{alt:"",caption:void 0,href:void 0,linkDestination:void 0,linkTarget:void 0,rel:void 0}})}let Ro=_e=>{$&&$.style.setProperty("object-position",Yd(_e))};function rl(_e){let Rt=de?.media_details?.sizes?.[_e]?.source_url;if(!Rt)return null;o({url:Rt,sizeSlug:_e})}function Aa(){let _e=Ce()[KJ];_e&&_e({url:g,onSuccess(Rt){s(Rt),ta((0,De.__)("Image uploaded."),{type:"snackbar"})},onError(Rt){yo(Rt,{type:"snackbar"})}})}let Ma=a&&(_&&Ko&&ra&&me&&!!Ee)&&!!ze&&!ot&&!pi;function ol(){oo(m,(0,Dg.switchToBlockType)(X(m),"core/cover"))}let ph=(0,Oe.__experimentalUseCustomUnits)({availableUnits:["px"]}),[Jc]=(0,At.useSettings)("lightbox"),d9=!!j&&j?.enabled!==Jc?.enabled||Jc?.allowEditing,np=!!j?.enabled||!j&&!!Jc?.enabled,E1=Z(),Fs=(0,dc.useSelect)(_e=>{if(!a)return;let{getSelectedBlockStyleState:Rt}=U(_e(At.store));return Rt(m)},[m,a]),eu=!PCe(Fs),B1=Xh(Fs),mh=wi({attributes:r,selectedState:Fs,hasSelectedStyleState:eu,attributeKey:"width"}),dh=wi({attributes:r,selectedState:Fs,hasSelectedStyleState:eu,attributeKey:"height"}),jm=wi({attributes:r,selectedState:Fs,hasSelectedStyleState:eu,attributeKey:"aspectRatio"}),e_=wi({attributes:r,selectedState:Fs,hasSelectedStyleState:eu,attributeKey:"scale",styleKey:"objectFit"}),ar=_e=>{o(Jh({style:r.style,selectedState:Fs,hasSelectedStyleState:eu,nextDimensions:_e,dimensionKeyMap:{scale:"objectFit"}}))},Hs=Lo&&(aR.includes(f)?(0,ue.jsx)(ZJ,{panelId:m,value:{aspectRatio:jm,scale:e_},onChange:({aspectRatio:_e})=>{ar({aspectRatio:_e,scale:"cover"})},defaultAspectRatio:"auto",tools:["aspectRatio"]},B1):(0,ue.jsx)(ZJ,{panelId:m,value:{width:mh,height:dh,scale:e_,aspectRatio:jm},onChange:({width:_e,height:Rt,scale:nl,aspectRatio:za})=>{ar({width:!_e&&Rt?"auto":_e,height:Rt,aspectRatio:za,scale:nl})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:ICe,unitsOptions:ph,tools:Ve?["aspectRatio","scale"]:["aspectRatio","widthHeight","scale"]},B1)),tu=()=>{o({lightbox:void 0}),rl(zb)},ap=G?.bindings?.__default?.source==="core/pattern-overrides",{lockUrlControls:t_=!1,lockHrefControls:I1=!1,lockAltControls:r_=!1,lockAltControlsMessage:dF,lockTitleControls:f9=!1,lockTitleControlsMessage:fF,hideCaptionControls:Rve=!1}=(0,dc.useSelect)(_e=>{if(!a)return{};let{url:Rt,alt:nl,title:za,caption:D1}=G?.bindings||{},ip=!!p["pattern/overrides"],h9=(0,Dg.getBlockBindingsSource)(Rt?.source),fh=(0,Dg.getBlockBindingsSource)(nl?.source),lp=(0,Dg.getBlockBindingsSource)(za?.source);return{lockUrlControls:!!Rt&&!h9?.canUserEditValue?.({select:_e,context:p,args:Rt?.args}),lockHrefControls:ip||ap,hideCaptionControls:!!D1,lockAltControls:!!nl&&!fh?.canUserEditValue?.({select:_e,context:p,args:nl?.args}),lockAltControlsMessage:fh?.label?(0,De.sprintf)((0,De.__)("Connected to %s"),fh.label):(0,De.__)("Connected to dynamic data"),lockTitleControls:!!za&&!lp?.canUserEditValue?.({select:_e,context:p,args:za?.args}),lockTitleControlsMessage:lp?.label?(0,De.sprintf)((0,De.__)("Connected to %s"),lp.label):(0,De.__)("Connected to dynamic data")}},[ap,p,a,G?.bindings]),hF=a&&!I1&&!t_&&!W,gF=a&&ne&&!ot,Ave=hF||Ma||gF,vF=a&&!t_&&(0,ue.jsx)(ue.Fragment,{children:(0,ue.jsx)(At.BlockControls,{group:ot?"inline":"other",children:(0,ue.jsx)(At.MediaReplaceFlow,{mediaId:_,mediaURL:g,allowedTypes:Fp,onSelect:s,onSelectURL:c,onError:u,name:g?(0,De.__)("Replace"):(0,De.__)("Add image"),onReset:()=>s(void 0),variant:"toolbar"})})}),Mve=window?.__experimentalContentOnlyInspectorFields,bF=(0,ue.jsxs)(ue.Fragment,{children:[Ave&&(0,ue.jsxs)(At.BlockControls,{group:"block",children:[hF&&(0,ue.jsx)(At.__experimentalImageURLInputUI,{url:k||"",onChangeUrl:op,linkDestination:C,mediaUrl:de&&de.source_url||g,mediaLink:de&&de.link,linkTarget:A,linkClass:w,rel:x,showLightboxSetting:d9,lightboxEnabled:np,onSetLightbox:uh,resetLightbox:Se}),Ma&&(0,ue.jsx)(Oe.ToolbarButton,{ref:pe,onClick:ze,"aria-haspopup":"dialog",icon:Xm,label:(0,De.__)("Crop"),disabled:Ae}),gF&&(0,ue.jsx)(Oe.ToolbarButton,{icon:uB,label:(0,De.__)("Add text over image"),onClick:ol})]}),Hm&&(0,ue.jsx)(At.BlockControls,{children:(0,ue.jsx)(Oe.ToolbarGroup,{children:(0,ue.jsx)(Oe.ToolbarButton,{onClick:Aa,icon:nu,label:(0,De.__)("Upload to Media Library")})})}),ot&&(0,ue.jsx)(At.BlockControls,{group:"block",children:(0,ue.jsx)(LCe,{attributes:r,setAttributes:o,lockAltControls:r_,lockAltControlsMessage:dF,lockTitleControls:f9,lockTitleControlsMessage:fF})}),!Mve&&a&&(0,ue.jsx)(At.InspectorControls,{group:"content",children:(0,ue.jsxs)(Oe.__experimentalToolsPanel,{label:(0,De.__)("Media"),resetAll:()=>{s(void 0),o({isDecorative:!1})},dropdownMenuProps:E1,children:[!t_&&(0,ue.jsx)(Oe.__experimentalToolsPanelItem,{label:(0,De.__)("Image"),hasValue:()=>!!g,onDeselect:()=>s(void 0),isShownByDefault:!0,children:(0,ue.jsx)(I4,{mediaId:_,mediaUrl:g,alt:v,filename:de?.media_details?.sizes?.full?.file||de?.slug||(0,FR.getFilename)(g),allowedTypes:Fp,onSelect:s,onSelectURL:c,onError:u,onReset:()=>s(void 0),isUploading:pi,emptyLabel:(0,De.__)("Add image")})}),!W&&(0,ue.jsx)(Oe.__experimentalToolsPanelItem,{label:(0,De.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!v,onDeselect:()=>o({alt:void 0}),children:(0,ue.jsx)(Oe.TextareaControl,{label:(0,De.__)("Alternative text"),value:v||"",onChange:hr,readOnly:r_,help:r_?(0,ue.jsx)(ue.Fragment,{children:dF}):(0,ue.jsx)(Oe.ExternalLink,{href:(0,De.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,De.__)("Describe the purpose of the image.")})})}),!r_&&!np&&(0,ue.jsx)(Oe.__experimentalToolsPanelItem,{label:(0,De.__)("Mark as decorative"),isShownByDefault:!0,hasValue:()=>!!W,onDeselect:()=>o({isDecorative:!1}),children:(0,ue.jsx)(Oe.CheckboxControl,{label:(0,De.__)("Mark as decorative"),checked:!!W,onChange:wr,help:(0,De.__)("Hidden from assistive technologies.")})})]})}),(0,ue.jsxs)(At.InspectorControls,{group:"dimensions",resetAllFilter:_e=>eg({attributes:_e,selectedState:Fs,hasSelectedStyleState:eu,keys:["aspectRatio","height","objectFit","width"],defaultAttributes:{aspectRatio:void 0,width:void 0,height:void 0,scale:void 0,focalPoint:void 0}}),children:[Hs,!eu&&g&&E&&(0,ue.jsx)(Oe.__experimentalToolsPanelItem,{label:(0,De.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!B,onDeselect:()=>o({focalPoint:void 0}),panelId:m,children:(0,ue.jsx)(Oe.FocalPointPicker,{label:(0,De.__)("Focal point"),url:g,value:B,onDragStart:Ro,onDrag:Ro,onChange:_e=>o({focalPoint:_e})})})]}),!!sh.length&&(0,ue.jsx)(At.InspectorControls,{children:(0,ue.jsx)(Oe.__experimentalToolsPanel,{label:(0,De.__)("Settings"),resetAll:tu,dropdownMenuProps:E1,children:(0,ue.jsx)(ECe,{value:z,defaultValue:zb,onChange:rl,options:sh})})}),(0,ue.jsx)(At.InspectorControls,{group:"advanced",children:(0,ue.jsx)(Oe.TextControl,{label:(0,De.__)("Title attribute"),value:T||"",onChange:lt,readOnly:f9,help:f9?(0,ue.jsx)(ue.Fragment,{children:fF}):(0,gr.createInterpolateElement)((0,De.__)("Describe the role of this image on the page. <a>(Note: many devices and browsers do not display this text.)</a>"),{a:(0,ue.jsx)(Oe.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"})})})})]}),o_=(0,FR.getFilename)(g),N1;W?N1=o_?(0,De.sprintf)((0,De.__)("This image has been marked as decorative; its file name is %s"),o_):(0,De.__)("This image has been marked as decorative."):v?N1=v:o_?N1=(0,De.sprintf)((0,De.__)("This image has an empty alt attribute; its file name is %s"),o_):N1=(0,De.__)("This image has an empty alt attribute");let yF=(0,At.__experimentalUseBorderProps)(r),zve=(0,At.__experimentalGetShadowClassesAndStyles)(r),{postType:Vve,postId:_F,queryId:Ove}=p,Fve=Number.isFinite(Ove),Hve=(0,ue.jsx)(DCe,{href:k,children:e&&_o?(0,ue.jsx)(Oe.Placeholder,{className:"wp-block-image__placeholder",withIllustration:!0,children:(0,ue.jsx)(Oe.Spinner,{})}):(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)("img",{src:e||g,alt:N1,onError:Xc,onLoad:ch,ref:we,className:S(yF.className,{"is-swapping-media":Ae}),width:Ko,height:ra,style:{aspectRatio:L,...Q?{width:ee.width+Q.width,height:ee.height+Q.height}:(()=>{let _e={};return I==="auto"?_e.width="auto":I!=null&&(_e.width=typeof I=="number"?`${I}px`:I),D==="auto"||D===void 0||D===null?_e.height="auto":_e.height=typeof D=="number"?`${D}px`:D,_e})(),objectFit:E,objectPosition:B&&E?Yd(B):void 0,...yF.style,...zve.style}}),(pi||Ae)&&(0,ue.jsx)(Oe.Spinner,{})]})}),xF;if(rp&&a&&!pi&&!aR.includes(f)){let _e=L&&CQ(L),Rt=ee.width/ee.height,nl=Ko/ra,za=_e||Rt||nl||1,D1=Ko<ra?uc:uc*za,ip=ra<Ko?uc:uc/za,h9=Pe*2.5,fh=h||h9,lp=!1,n_=!1;b==="center"?(lp=!0,n_=!0):(0,De.isRTL)()?b==="left"?lp=!0:n_=!0:b==="right"?n_=!0:lp=!0,xF=(0,ue.jsx)(Oe.ResizableBox,{ref:ie,style:{position:"absolute",inset:`${oe}px 0 0 0`},size:ee,minWidth:D1,maxWidth:fh,minHeight:ip,maxHeight:fh/za,lockAspectRatio:za,enable:{top:!1,right:lp,bottom:!0,left:n_},onResizeStart:()=>{no(!1)},onResize:(Uve,Gve,g9,a_)=>{Y(a_)},onResizeStop:(Uve,Gve,g9,a_)=>{if(no(!0),Y(null),te(kF=>({width:kF.width+a_.width,height:kF.height+a_.height})),h&&Ko>=h&&Math.abs(g9.offsetWidth-h)<10){o({width:void 0,height:void 0});return}o({width:`${g9.offsetWidth}px`,height:"auto",aspectRatio:za===nl?void 0:String(za)})},resizeRatio:b==="center"?2:1})}if(!g&&!e)return(0,ue.jsxs)(ue.Fragment,{children:[vF,bF]});let jve=()=>{Ra("postType",Vve,_F,{featured_media:_}),ta((0,De.__)("Post featured image updated."),{type:"snackbar"})};return(0,ue.jsxs)(ue.Fragment,{children:[vF,bF,!Fve&&_F&&_?(0,ue.jsx)(At.BlockSettingsMenuControls,{children:({canEdit:_e,selectedClientIds:Rt})=>_e&&Rt.length===1&&m===Rt[0]&&(0,ue.jsx)(Oe.MenuItem,{onClick:jve,children:(0,De.__)("Set as featured image")})}):null,Hve,xF,!W&&(0,ue.jsx)(Mo,{attributes:r,setAttributes:o,isSelected:a,insertBlocksAfter:i,label:(0,De.__)("Image caption text"),showToolbarButton:a&&(Hl||ot)&&!Rve})]})}var XJ=n(H(),1),JJ=n(ve(),1),eee=n(y(),1);function tee(){let[e,{width:t}]=(0,JJ.useResizeObserver)(),r=(0,XJ.useRef)();return[(0,eee.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 ys=n(y(),1),RCe=(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},HR=(e,t)=>t&&!e&&!(0,Rg.isBlobURL)(t);function ree(e,t){return"url"in(e?.sizes?.[t]??{})||"source_url"in(e?.media_details?.sizes?.[t]??{})}function ACe({attributes:e,setAttributes:t,isSelected:r,className:o,insertBlocksAfter:a,onReplace:i,context:l,clientId:s,__unstableParentLayout:c}){let{url:u="",caption:p,id:m,width:d,height:f,sizeSlug:h,aspectRatio:g,scale:v,align:b,metadata:_}=e,[k,x]=(0,Qp.useState)(e.blob),w=(0,Qp.useRef)(),C=c?.type||c?.default?.type,T=!C||C!=="flex"&&C!=="grid",[I,D]=tee(),[L,{width:E}]=(0,aee.useResizeObserver)(),B=E&&E<160,A=(0,Qp.useRef)();(0,Qp.useEffect)(()=>{A.current=p},[p]);let{__unstableMarkNextChangeAsNotPersistent:z,replaceBlock:j}=(0,tf.useDispatch)(ba.store);(0,Qp.useEffect)(()=>{["wide","full"].includes(b)&&(z(),t({width:void 0,height:void 0}))},[z,b,t]);let{getSettings:G,getBlockRootClientId:W,getBlockName:$,canInsertBlockType:V}=(0,tf.useSelect)(ba.store),Q=(0,ba.useBlockEditingMode)(),{createErrorNotice:Y}=(0,tf.useDispatch)(nee.store);function ee(pe){Y(pe,{type:"snackbar"}),x(),t({src:void 0,id:void 0,url:void 0,blob:void 0})}function te(pe){pe.length===1&&x((0,Rg.createBlobURL)(pe[0]))}function oe(pe){let $e=w.current?.ownerDocument.defaultView;if(pe.every(fe=>fe instanceof $e.File)){let fe=pe,Ae=W(s);fe.some(ze=>!iR(ze))&&Y((0,fc.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let Ft=fe.filter(ze=>iR(ze)).map(ze=>(0,Kb.createBlock)("core/image",{blob:(0,Rg.createBlobURL)(ze)}));if($(Ae)==="core/gallery")j(s,Ft);else if(V("core/gallery",Ae)){let ze=(0,Kb.createBlock)("core/gallery",{},Ft);j(s,ze)}}}function J(pe){if(Array.isArray(pe)){oe(pe);return}if(!pe||!pe.url){t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0,blob:void 0}),x();return}if((0,Rg.isBlobURL)(pe.url)){x(pe.url);return}let{imageDefaultSize:$e}=G(),fe=zb;h&&ree(pe,h)?fe=h:ree(pe,$e)&&(fe=$e);let Ae=RCe(pe,fe);if(typeof Ae.caption=="string"&&Ae.caption.includes(`
`)&&(Ae.caption=Ae.caption.replace(/\n/g,"<br>")),A.current&&!Ae.caption){let{caption:no,...bo}=Ae;Ae=bo}let Ft;(!pe.id||pe.id!==m)&&(Ft={sizeSlug:fe});let ze=e.linkDestination;if(!ze)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||Kd){case"file":case bg:ze=bg;break;case"post":case yg:ze=yg;break;case nR:ze=nR;break;case Kd:ze=Kd;break}let oo;switch(ze){case bg:oo=pe.url;break;case yg:oo=pe.link;break}Ae.href=oo,t({blob:void 0,...Ae,...Ft,linkDestination:ze}),x()}function ce(pe){let $e=(0,A4.getProtocol)(pe)?pe:(0,A4.prependHTTPS)(pe);$e!==u&&(t({blob:void 0,url:$e,id:void 0,sizeSlug:G().imageDefaultSize}),x())}Us({url:k,allowedTypes:Fp,onChange:J,onError:ee});let we=HR(m,u)?u:void 0,se=(0,tf.useSelect)(pe=>!window.__clientSideMediaProcessing||!m?!1:pe(iee.store).isUploadingById(m),[m]),de=!!u&&(0,ys.jsx)("img",{alt:(0,fc.__)("Edit image"),title:(0,fc.__)("Edit image"),className:"edit-image-preview",src:u}),ge=(0,ba.__experimentalUseBorderProps)(e),ne=(0,ba.__experimentalGetShadowClassesAndStyles)(e),me=S(o,{"is-transient":!!k||se,"is-resized":!!d||!!f,[`size-${h}`]:h,"has-custom-border":!!ge.className||ge.style&&Object.keys(ge.style).length>0}),le=(0,ba.useBlockProps)({ref:w,className:me}),{lockUrlControls:Pe=!1,lockUrlControlsMessage:Ee}=(0,tf.useSelect)(pe=>{if(!r)return{};let $e=(0,Kb.getBlockBindingsSource)(_?.bindings?.url?.source);return{lockUrlControls:!!_?.bindings?.url&&!$e?.canUserEditValue?.({select:pe,context:l,args:_?.bindings?.url?.args}),lockUrlControlsMessage:$e?.label?(0,fc.sprintf)((0,fc.__)("Connected to %s"),$e.label):(0,fc.__)("Connected to dynamic data")}},[l,r,_?.bindings?.url]),X=f==="auto"?void 0:f;return(0,ys.jsxs)(ys.Fragment,{children:[(0,ys.jsxs)("figure",{...le,children:[(0,ys.jsx)(QJ,{temporaryURL:k,isSideloading:se,attributes:e,setAttributes:t,isSingleSelected:r,insertBlocksAfter:a,onReplace:i,onSelectImage:J,onSelectURL:ce,onUploadError:ee,context:l,clientId:s,blockEditingMode:Q,parentLayoutType:C,maxContentWidth:D}),(0,ys.jsx)(ba.MediaPlaceholder,{icon:(0,ys.jsx)(ba.BlockIcon,{icon:mp}),onSelect:J,onSelectURL:ce,onFilesPreUpload:te,onError:ee,placeholder:pe=>(0,ys.jsxs)(oee.Placeholder,{className:S("block-editor-media-placeholder",{[ge.className]:!!ge.className&&!r}),icon:!B&&(Pe?_B:mp),withIllustration:!r||B,label:!B&&(0,fc.__)("Image"),instructions:!Pe&&!B&&(0,fc.__)("Drag and drop an image, upload, or choose from your library."),style:{aspectRatio:!(d&&X)&&g?g:void 0,width:X&&g?"100%":d,height:d&&g?"100%":X,objectFit:v,...ge.style,...ne.style},children:[Pe&&!B&&Ee,!Pe&&!B&&pe,L]}),allowedTypes:Fp,handleUpload:pe=>pe.length===1,value:{id:m,src:we},mediaPreview:de,disableMediaButtons:k||u})]}),r&&T&&I]})}var lee=ACe;var M4={$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"},isDecorative:{type:"boolean",default:!1}},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:{dimensions:".wp-block-image img, .wp-block-image .components-placeholder",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 _s=n(P(),1);var Su=n(y(),1);function see({attributes:e}){let{url:t,alt:r,caption:o,align:a,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:p,scale:m,focalPoint:d,id:f,linkTarget:h,sizeSlug:g,title:v,isDecorative:b,metadata:{bindings:_={}}={}}=e,k=l||void 0,x=(0,_s.__experimentalGetBorderClassesAndStyles)(e),w=(0,_s.__experimentalGetShadowClassesAndStyles)(e),C=S({alignnone:a==="none",[`size-${g}`]:g,"is-resized":c||u,"has-custom-border":!!x.className||x.style&&Object.keys(x.style).length>0}),T=S(x.className,{[`wp-image-${f}`]:!!f}),I=(0,Su.jsx)("img",{src:t,alt:r,className:T||void 0,style:(()=>{let E={...x.style,...w.style,aspectRatio:p,objectFit:m,objectPosition:d&&m?Yd(d):void 0};return(c!==void 0||u!==void 0)&&(c==="auto"?E.width="auto":c!=null&&(E.width=typeof c=="number"?`${c}px`:c),u==="auto"||u===void 0||u===null?E.height="auto":E.height=typeof u=="number"?`${u}px`:u),E})(),title:v,role:b?"none":void 0}),D=!_s.RichText.isEmpty(o)||_.caption||_?.__default?.source==="core/pattern-overrides",L=(0,Su.jsxs)(Su.Fragment,{children:[i?(0,Su.jsx)("a",{className:s,href:i,target:h,rel:k,children:I}):I,D&&(0,Su.jsx)(_s.RichText.Content,{className:(0,_s.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Su.jsx)("figure",{..._s.useBlockProps.save({className:C}),children:L})}var z4=n(Ar(),1),Ag=n(q(),1),mee=n(F(),1),dee=n(re(),1);function zCe(e){let{align:t,anchor:r,className:o,style:a}=e,i=a?.spacing?.margin;return{...t&&{align:t},...r&&{anchor:r},...o&&{className:o},...i&&{style:{spacing:{margin:i}}}}}function cee(e,t){if(!e||!t?.split(/[?#]/)[0]?.toLowerCase().endsWith(".gif"))return null;let o=(0,mee.select)(dee.store).getEntityRecord("postType","attachment",e,{context:"view"}),a=o?.media_details;if(!a?.animated_video||!o?.source_url)return null;let i=o.source_url.slice(0,o.source_url.lastIndexOf("/")+1);return{src:i+a.animated_video,poster:a.animated_video_poster?i+a.animated_video_poster:void 0,width:a.width,height:a.height}}function VCe(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 jR(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 uee={img:{attributes:["src","alt","title","width","height"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}};function pee(e){return e&&/^\d+$/.test(e)?`${e}px`:void 0}var OCe=({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...uee,a:{attributes:["href","rel","target"],classes:["*"],children:uee},figcaption:{children:e}}}}),FCe={from:[{type:"raw",isMatch:e=>e.nodeName==="FIGURE"&&!!e.querySelector("img"),schema:OCe,transform:e=>{let t=e.querySelector("img"),r=e.className+" "+t.className,o=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(r),a=e.id===""?void 0:e.id,i=o?o[1]:void 0,l=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(r),s=l?Number(l[1]):void 0,c=e.querySelector("a"),u=c&&c.href?"custom":void 0,p=c&&c.href?c.href:void 0,m=c&&c.rel?c.rel:void 0,d=c&&c.className?c.className:void 0,f=pee(t.getAttribute("width")),h=pee(t.getAttribute("height")),g=parseInt(f,10),v=parseInt(h,10),b=g&&v?String(g/v):void 0,_=f||(h?"auto":void 0),k=f?"auto":h,x=(0,Ag.getBlockAttributes)("core/image",e.outerHTML,{align:i,id:s,linkDestination:u,href:p,rel:m,linkClass:d,anchor:a,width:_,height:k,aspectRatio:b});return(0,z4.isBlobURL)(x.url)&&(x.blob=x.url,delete x.url),(0,Ag.createBlock)("core/image",x)}},{type:"files",isMatch(e){return e.every(t=>t.type.indexOf("image/")===0)},transform(e){return e.map(r=>(0,Ag.createBlock)("core/image",{blob:(0,z4.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:VCe},href:{shortcode:(e,{shortcode:t})=>jR(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>jR(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>jR(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","")}}}],to:[{type:"block",blocks:["core/video"],isMatch:({id:e,url:t})=>!!cee(e,t),transform(e){let{id:t,url:r,caption:o}=e,a=cee(t,r);return(0,Ag.createBlock)("core/video",{...zCe(e),id:t,src:a.src,poster:a.poster,caption:o,controls:!1,loop:!0,autoplay:!0,muted:!0,playsInline:!0,width:a.width,height:a.height})}}]},fee=FCe;var{fieldsKey:HCe,formKey:jCe}=U(hee.privateApis),{name:gee}=M4,V4={icon:mp,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,Xp.__)("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:a,url:i}=e;return i?a?a+(o?". "+o:""):o||"":(0,Xp.__)("Empty")}},getEditWrapperProps(e){return{"data-align":e.align}},transforms:fee,edit:lee,save:see,deprecated:MJ};window.__experimentalContentOnlyInspectorFields&&(V4[HCe]=[{id:"image",label:(0,Xp.__)("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,Xp.__)("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}),isVisible:e=>!e.isDecorative},{id:"caption",label:(0,Xp.__)("Caption"),type:"text",Edit:"rich-text",isVisible:e=>!e.isDecorative},{id:"alt",label:(0,Xp.__)("Alt text"),type:"text",isVisible:e=>!e.isDecorative},{id:"isDecorative",label:(0,Xp.__)("Mark as decorative"),type:"boolean",setValue:({value:e})=>({isDecorative:e||void 0,...e&&{alt:"",caption:void 0,href:void 0,linkDestination:void 0,linkTarget:void 0,rel:void 0}})}],V4[jCe]={fields:["image","link","caption","alt","isDecorative"]});var UCe=()=>R({name:gee,metadata:M4,settings:V4});var GR={};K(GR,{init:()=>ZCe,metadata:()=>O4,name:()=>xee,settings:()=>kee});var O4={$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 F4=n(P(),1),Fn=n(O(),1),On=n(N(),1),vee=n(sp(),1),bee=n(ve(),1);var co=n(y(),1),WCe=1,$Ce=100;function yee({attributes:e,setAttributes:t,name:r}){let{commentsToShow:o,displayAvatar:a,displayDate:i,displayContent:l}=e,s=Z(),{content:c,status:u,error:p}=(0,vee.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r,urlQueryArgs:{_locale:"site"}}),m=(0,bee.useDisabled)(),d=(0,F4.useBlockProps)({ref:m});return(0,co.jsxs)(co.Fragment,{children:[(0,co.jsx)(F4.InspectorControls,{children:(0,co.jsxs)(Fn.__experimentalToolsPanel,{label:(0,On.__)("Settings"),resetAll:()=>{t({commentsToShow:5,displayAvatar:!0,displayDate:!0,displayContent:"excerpt"})},dropdownMenuProps:s,children:[(0,co.jsx)(Fn.__experimentalToolsPanelItem,{hasValue:()=>!a,label:(0,On.__)("Display avatar"),onDeselect:()=>t({displayAvatar:!0}),isShownByDefault:!0,children:(0,co.jsx)(Fn.ToggleControl,{label:(0,On.__)("Display avatar"),checked:a,onChange:()=>t({displayAvatar:!a})})}),(0,co.jsx)(Fn.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,On.__)("Display date"),onDeselect:()=>t({displayDate:!0}),isShownByDefault:!0,children:(0,co.jsx)(Fn.ToggleControl,{label:(0,On.__)("Display date"),checked:i,onChange:()=>t({displayDate:!i})})}),(0,co.jsx)(Fn.__experimentalToolsPanelItem,{hasValue:()=>l!=="excerpt",label:(0,On.__)("Display content"),onDeselect:()=>t({displayContent:"excerpt"}),isShownByDefault:!0,children:(0,co.jsx)(Fn.SelectControl,{label:(0,On.__)("Display content"),value:l,options:[{label:(0,On.__)("No content"),value:"none"},{label:(0,On.__)("Excerpt"),value:"excerpt"},{label:(0,On.__)("Full content"),value:"full"}],onChange:f=>t({displayContent:f})})}),(0,co.jsx)(Fn.__experimentalToolsPanelItem,{hasValue:()=>o!==5,label:(0,On.__)("Number of comments"),onDeselect:()=>t({commentsToShow:5}),isShownByDefault:!0,children:(0,co.jsx)(Fn.RangeControl,{label:(0,On.__)("Number of comments"),value:o,onChange:f=>t({commentsToShow:f}),min:WCe,max:$Ce,required:!0})})]})}),u==="loading"&&(0,co.jsx)("div",{...d,children:(0,co.jsx)(Fn.Spinner,{})}),u==="error"&&(0,co.jsx)("div",{...d,children:(0,co.jsx)("p",{children:(0,On.sprintf)((0,On.__)("Error: %s"),p)})}),u==="success"&&(0,co.jsx)(ko,{wrapperProps:d,html:c})]})}var qCe={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"}}},_ee=[qCe];var{name:xee}=O4,kee={icon:K1,example:{},edit:yee,deprecated:_ee},ZCe=()=>R({name:xee,metadata:O4,settings:kee});var qR={};K(qR,{init:()=>aSe,metadata:()=>rf,name:()=>Iee,settings:()=>Nee});var rf={$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},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,layout:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0,blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!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 YCe={anchor:!0,align:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},html:!1,layout:!0,spacing:{margin:!0,padding:!0,blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!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}},QCe={postLayout:{type:"string",default:"list"},columns:{type:"number",default:3}},wee=e=>!e.categories||typeof e.categories!="string"?e:{...e,categories:[{id:Number(e.categories)}]},XCe=e=>{let{postLayout:t,columns:r,...o}=e;return t?{...o,layout:{type:t==="grid"?"grid":"default",...t==="grid"&&r&&{columnCount:r}}}:e},Cee=[{attributes:{...rf.attributes,...QCe,categories:{type:["array","string"]}},supports:YCe,migrate:e=>XCe(wee(e)),isEligible:({postLayout:e})=>e,save:()=>null},{attributes:{...rf.attributes,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:wee,isEligible:({categories:e})=>e&&typeof e=="string",save:()=>null}];var et=n(O(),1),Ge=n(N(),1),Mg=n(Vw(),1),hc=n(P(),1),Yb=n(F(),1);var WR=n(re(),1),Pee=n(Sr(),1),Eee=n(ve(),1),Bee=n(H(),1);var See=10,Tee=100,H4=55;var Le=n(y(),1),JCe={per_page:-1,_fields:"id,name",context:"view"},eSe={per_page:-1,has_published_posts:["post"],context:"view"},tSe=[{value:"none",icon:Z9,label:(0,Ge.__)("None")},{value:"left",icon:SB,label:(0,Ge.__)("Left")},{value:"center",icon:wB,label:(0,Ge.__)("Center")},{value:"right",icon:PB,label:(0,Ge.__)("Right")}];function rSe(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 oSe(e){return e._embedded?.author?.[0]}function nSe({attributes:e,setAttributes:t}){let{postsToShow:r,order:o,orderBy:a,categories:i,selectedAuthor:l,displayFeaturedImage:s,displayPostContentRadio:c,displayPostContent:u,displayPostDate:p,displayAuthor:m,excerptLength:d,featuredImageAlign:f,featuredImageSizeSlug:h,featuredImageSizeWidth:g,featuredImageSizeHeight:v,addLinkToFeaturedImage:b}=e,{imageSizes:_,defaultImageWidth:k,defaultImageHeight:x,categoriesList:w,authorList:C}=(0,Yb.useSelect)(E=>{let{getEntityRecords:B,getUsers:A}=E(WR.store),z=E(hc.store).getSettings();return{defaultImageWidth:z.imageDimensions?.[h]?.width??0,defaultImageHeight:z.imageDimensions?.[h]?.height??0,imageSizes:z.imageSizes,categoriesList:B("taxonomy","category",JCe),authorList:A(eSe)}},[h]),T=Z(),I=_.filter(({slug:E})=>E!=="full").map(({name:E,slug:B})=>({value:B,label:E})),D=w?.reduce((E,B)=>(E[B.name]=B,E),{})??{},L=E=>{if(E.some(z=>typeof z=="string"&&!D[z]))return;let A=E.map(z=>typeof z=="string"?D[z]:z);if(A.includes(null))return!1;t({categories:A})};return(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsxs)(et.__experimentalToolsPanel,{label:(0,Ge.__)("Post content"),resetAll:()=>t({displayPostContent:!1,displayPostContentRadio:"excerpt",excerptLength:H4}),dropdownMenuProps:T,children:[(0,Le.jsx)(et.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,Ge.__)("Display post content"),onDeselect:()=>t({displayPostContent:!1}),isShownByDefault:!0,children:(0,Le.jsx)(et.ToggleControl,{label:(0,Ge.__)("Display post content"),checked:u,onChange:E=>t({displayPostContent:E})})}),u&&(0,Le.jsx)(et.__experimentalToolsPanelItem,{hasValue:()=>c!=="excerpt",label:(0,Ge.__)("Content length"),onDeselect:()=>t({displayPostContentRadio:"excerpt"}),isShownByDefault:!0,children:(0,Le.jsx)(et.RadioControl,{label:(0,Ge.__)("Content length"),selected:c,options:[{label:(0,Ge.__)("Excerpt"),value:"excerpt"},{label:(0,Ge.__)("Full post"),value:"full_post"}],onChange:E=>t({displayPostContentRadio:E})})}),u&&c==="excerpt"&&(0,Le.jsx)(et.__experimentalToolsPanelItem,{hasValue:()=>d!==H4,label:(0,Ge.__)("Max number of words"),onDeselect:()=>t({excerptLength:H4}),isShownByDefault:!0,children:(0,Le.jsx)(et.RangeControl,{label:(0,Ge.__)("Max number of words"),value:d,onChange:E=>t({excerptLength:E}),min:See,max:Tee})})]}),(0,Le.jsxs)(et.__experimentalToolsPanel,{label:(0,Ge.__)("Post meta"),resetAll:()=>t({displayAuthor:!1,displayPostDate:!1}),dropdownMenuProps:T,children:[(0,Le.jsx)(et.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,Ge.__)("Display author name"),onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,Le.jsx)(et.ToggleControl,{label:(0,Ge.__)("Display author name"),checked:m,onChange:E=>t({displayAuthor:E})})}),(0,Le.jsx)(et.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,Ge.__)("Display post date"),onDeselect:()=>t({displayPostDate:!1}),isShownByDefault:!0,children:(0,Le.jsx)(et.ToggleControl,{label:(0,Ge.__)("Display post date"),checked:p,onChange:E=>t({displayPostDate:E})})})]}),(0,Le.jsxs)(et.__experimentalToolsPanel,{label:(0,Ge.__)("Featured image"),resetAll:()=>t({displayFeaturedImage:!1,featuredImageAlign:void 0,featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null,addLinkToFeaturedImage:!1}),dropdownMenuProps:T,children:[(0,Le.jsx)(et.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Ge.__)("Display featured image"),onDeselect:()=>t({displayFeaturedImage:!1}),isShownByDefault:!0,children:(0,Le.jsx)(et.ToggleControl,{label:(0,Ge.__)("Display featured image"),checked:s,onChange:E=>t({displayFeaturedImage:E})})}),s&&(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(et.__experimentalToolsPanelItem,{hasValue:()=>h!=="thumbnail"||g!==null||v!==null,label:(0,Ge.__)("Image size"),onDeselect:()=>t({featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null}),isShownByDefault:!0,children:(0,Le.jsx)(hc.__experimentalImageSizeControl,{onChange:E=>{let B={};E.hasOwnProperty("width")&&(B.featuredImageSizeWidth=E.width),E.hasOwnProperty("height")&&(B.featuredImageSizeHeight=E.height),t(B)},slug:h,width:g,height:v,imageWidth:k,imageHeight:x,imageSizeOptions:I,imageSizeHelp:(0,Ge.__)("Select the size of the source image."),onChangeImage:E=>t({featuredImageSizeSlug:E,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})})}),(0,Le.jsx)(et.__experimentalToolsPanelItem,{hasValue:()=>!!f,label:(0,Ge.__)("Image alignment"),onDeselect:()=>t({featuredImageAlign:void 0}),isShownByDefault:!0,children:(0,Le.jsx)(et.__experimentalToggleGroupControl,{className:"editor-latest-posts-image-alignment-control",label:(0,Ge.__)("Image alignment"),value:f||"none",onChange:E=>t({featuredImageAlign:E!=="none"?E:void 0}),children:tSe.map(({value:E,icon:B,label:A})=>(0,Le.jsx)(et.__experimentalToggleGroupControlOptionIcon,{value:E,icon:B,label:A},E))})}),(0,Le.jsx)(et.__experimentalToolsPanelItem,{hasValue:()=>!!b,label:(0,Ge.__)("Add link to featured image"),onDeselect:()=>t({addLinkToFeaturedImage:!1}),isShownByDefault:!0,children:(0,Le.jsx)(et.ToggleControl,{label:(0,Ge.__)("Add link to featured image"),checked:b,onChange:E=>t({addLinkToFeaturedImage:E})})})]})]}),(0,Le.jsx)(et.__experimentalToolsPanel,{label:(0,Ge.__)("Sorting and filtering"),resetAll:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),dropdownMenuProps:T,children:(0,Le.jsx)(et.__experimentalToolsPanelItem,{hasValue:()=>o!=="desc"||a!=="date"||r!==5||i?.length>0||!!l,label:(0,Ge.__)("Sort and filter"),onDeselect:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),isShownByDefault:!0,children:(0,Le.jsx)(et.QueryControls,{order:o,orderBy:a,numberOfItems:r,onOrderChange:E=>t({order:E}),onOrderByChange:E=>t({orderBy:E}),onNumberOfItemsChange:E=>t({postsToShow:E}),categorySuggestions:D,onCategoryChange:L,selectedCategories:i,onAuthorChange:E=>t({selectedAuthor:E!==""?Number(E):void 0}),authorList:C??[],selectedAuthorId:l})})})]})}function $R({attributes:e,setAttributes:t,__unstableLayoutClassNames:r}){let o=(0,Eee.useInstanceId)($R),{postsToShow:a,order:i,orderBy:l,categories:s,selectedAuthor:c,displayFeaturedImage:u,displayPostContentRadio:p,displayPostContent:m,displayPostDate:d,displayAuthor:f,layout:h,postLayout:g,columns:v,excerptLength:b,featuredImageAlign:_,featuredImageSizeSlug:k,featuredImageSizeWidth:x,featuredImageSizeHeight:w,addLinkToFeaturedImage:C}=e,{type:T,minimumColumnWidth:I}=h||{},D=T||(g==="grid"?"grid":"default"),L=h?.columnCount??(T?void 0:v)??3,{latestPosts:E}=(0,Yb.useSelect)(Y=>{let{getEntityRecords:ee}=Y(WR.store),te=s&&s.length>0?s.map(J=>J.id):[],oe=Object.fromEntries(Object.entries({categories:te,author:c,order:i,orderby:l,per_page:a,_embed:"author,wp:featuredmedia",ignore_sticky:!0}).filter(([,J])=>typeof J<"u"));return{latestPosts:ee("postType","post",oe)}},[a,i,l,s,c]),{createWarningNotice:B}=(0,Yb.useDispatch)(Pee.store),A=Y=>{Y.preventDefault(),B((0,Ge.__)("Links are disabled in the editor."),{id:`block-library/core/latest-posts/redirection-prevented/${o}`,type:"snackbar"})},z=!!E?.length,j=(0,Le.jsx)(hc.InspectorControls,{children:(0,Le.jsx)(nSe,{attributes:e,setAttributes:t})}),G=(0,hc.useBlockProps)({className:S(r,{"wp-block-latest-posts__list":!0,"is-grid":D==="grid","has-dates":d,"has-author":f,[`columns-${L}`]:D==="grid"&&L,"has-native-responsive-grid":D==="grid"&&L&&I})});if(!z)return(0,Le.jsxs)("div",{...G,children:[j,(0,Le.jsx)(et.Placeholder,{icon:hv,label:(0,Ge.__)("Latest Posts"),children:Array.isArray(E)?(0,Ge.__)("No posts found."):(0,Le.jsx)(et.Spinner,{})})]});let W=E.length>a?E.slice(0,a):E,$=Y=>t({layout:{...h,...Y},postLayout:void 0,columns:void 0}),V=[{icon:Wl,title:(0,Ge._x)("List view","Latest posts block display setting"),onClick:()=>$({type:"default"}),isActive:D==="default"||D==="constrained"},{icon:Gl,title:(0,Ge._x)("Grid view","Latest posts block display setting"),onClick:()=>$({type:"grid",columnCount:L}),isActive:D==="grid"}],Q=(0,Mg.getSettings)().formats.date;return(0,Le.jsxs)(Le.Fragment,{children:[j,(0,Le.jsx)(hc.BlockControls,{children:(0,Le.jsx)(et.ToolbarGroup,{controls:V})}),(0,Le.jsx)("ul",{...G,children:W.map(Y=>{let ee=Y.title.rendered.trim(),te=Y.excerpt.rendered,oe=oSe(Y),J=document.createElement("div");J.innerHTML=te,te=J.textContent||J.innerText||"";let{url:ce,alt:ie}=rSe(Y,k),we=S({"wp-block-latest-posts__featured-image":!0,[`align${_}`]:!!_}),se=u&&ce,de=se&&(0,Le.jsx)("img",{src:ce,alt:ie,style:{maxWidth:x,maxHeight:w}}),ne=b<te.trim().split(" ").length&&Y.excerpt.raw===""?(0,Le.jsxs)(Le.Fragment,{children:[te.trim().split(" ",b).join(" "),(0,Bee.createInterpolateElement)((0,Ge.sprintf)((0,Ge.__)("\u2026 <a>Read more<span>: %1$s</span></a>"),ee||(0,Ge.__)("(no title)")),{a:(0,Le.jsx)("a",{className:"wp-block-latest-posts__read-more",href:Y.link,rel:"noopener",onClick:A}),span:(0,Le.jsx)("span",{className:"screen-reader-text"})})]}):te;return(0,Le.jsxs)("li",{children:[se&&(0,Le.jsx)("div",{className:we,children:C?(0,Le.jsx)("a",{href:Y.link,onClick:A,children:de}):de}),(0,Le.jsx)("a",{className:"wp-block-latest-posts__post-title",href:Y.link,dangerouslySetInnerHTML:ee?{__html:ee}:void 0,onClick:A,children:ee?null:(0,Ge.__)("(no title)")}),f&&oe&&(0,Le.jsx)("div",{className:"wp-block-latest-posts__post-author",children:(0,Ge.sprintf)((0,Ge.__)("by %s"),oe.name)}),d&&Y.date_gmt&&(0,Le.jsx)("time",{dateTime:(0,Mg.format)("c",Y.date_gmt),className:"wp-block-latest-posts__post-date",children:(0,Mg.dateI18n)(Q,Y.date_gmt)}),m&&p==="excerpt"&&(0,Le.jsx)("div",{className:"wp-block-latest-posts__post-excerpt",children:ne}),m&&p==="full_post"&&(0,Le.jsx)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:Y.content.rendered.trim()}})]},Y.id)})})]})}var{name:Iee}=rf,Nee={icon:xv,example:{},edit:$R,deprecated:Cee},aSe=()=>R({name:Iee,metadata:rf,settings:Nee});var QR={};K(QR,{init:()=>_Se,metadata:()=>$4,name:()=>Wee,settings:()=>$ee});var Og=n(N(),1);var xs=n(P(),1);var zg=n(q(),1),j4={A:"upper-alpha",a:"lower-alpha",I:"upper-roman",i:"lower-roman"};function ZR(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&&j4[t]?j4[t]:void 0},o=Array.from(e.children).map(a=>{let i=Array.from(a.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,zg.createBlock)("core/list-item",{content:a.innerHTML});let u=s.map(d=>d.nodeType===d.TEXT_NODE?d.textContent:d.outerHTML);u.reverse();let p={content:u.join("").trim()},m=[ZR(l)];return(0,zg.createBlock)("core/list-item",p,m)});return(0,zg.createBlock)("core/list",r,o)}function U4(e){let{values:t,start:r,reversed:o,ordered:a,type:i,...l}=e,s=document.createElement(a?"ol":"ul");s.innerHTML=t,r&&s.setAttribute("start",r),o&&s.setAttribute("reversed",!0),i&&s.setAttribute("type",i);let[c]=(0,zg.rawHandler)({HTML:s.outerHTML});return[{...l,...c.attributes},c.innerBlocks]}function Dee(e){let{type:t}=e;return t&&j4[t]?{...e,type:j4[t]}:e}var Tu=n(y(),1),iSe={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:a,start:i}=e;return(0,Tu.jsx)(t?"ol":"ul",{...xs.useBlockProps.save({type:o,reversed:a,start:i}),children:(0,Tu.jsx)(xs.RichText.Content,{value:r,multiline:"li"})})},migrate:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},lSe={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:a,start:i}=e;return(0,Tu.jsx)(t?"ol":"ul",{...xs.useBlockProps.save({type:o,reversed:a,start:i}),children:(0,Tu.jsx)(xs.RichText.Content,{value:r,multiline:"li"})})},migrate:U4},sSe={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:a}=e;return(0,Tu.jsx)(t?"ol":"ul",{...xs.useBlockProps.save({type:r,reversed:o,start:a}),children:(0,Tu.jsx)(xs.InnerBlocks.Content,{})})},migrate:Dee},cSe={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:a}=e;return(0,Tu.jsx)(t?"ol":"ul",{...xs.useBlockProps.save({reversed:o,start:a,style:{listStyleType:t&&r!=="decimal"?r:void 0}}),children:(0,Tu.jsx)(xs.InnerBlocks.Content,{})})}},Lee=[cSe,sSe,lSe,iSe];var ws=n(P(),1),G4=n(O(),1),Jp=n(F(),1),ks=n(N(),1);var Oee=n(q(),1),W4=n(H(),1),Fee=n(xd(),1);var Ai=n(N(),1),Ree=n(P(),1),kl=n(O(),1);var gc=n(y(),1),uSe=[{label:(0,Ai.__)("Numbers"),value:"decimal"},{label:(0,Ai.__)("Uppercase letters"),value:"upper-alpha"},{label:(0,Ai.__)("Lowercase letters"),value:"lower-alpha"},{label:(0,Ai.__)("Uppercase Roman numerals"),value:"upper-roman"},{label:(0,Ai.__)("Lowercase Roman numerals"),value:"lower-roman"}],pSe=({setAttributes:e,reversed:t,start:r,type:o})=>{let a=Z();return(0,gc.jsx)(Ree.InspectorControls,{children:(0,gc.jsxs)(kl.__experimentalToolsPanel,{label:(0,Ai.__)("Settings"),resetAll:()=>{e({type:void 0,start:void 0,reversed:void 0})},dropdownMenuProps:a,children:[(0,gc.jsx)(kl.__experimentalToolsPanelItem,{label:(0,Ai.__)("List style"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>e({type:void 0}),children:(0,gc.jsx)(kl.SelectControl,{label:(0,Ai.__)("List style"),options:uSe,value:o||"decimal",onChange:i=>e({type:i})})}),(0,gc.jsx)(kl.__experimentalToolsPanelItem,{label:(0,Ai.__)("Start value"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>e({start:void 0}),children:(0,gc.jsx)(kl.TextControl,{label:(0,Ai.__)("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,gc.jsx)(kl.__experimentalToolsPanelItem,{label:(0,Ai.__)("Reverse order"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>e({reversed:void 0}),children:(0,gc.jsx)(kl.ToggleControl,{label:(0,Ai.__)("Reverse order"),checked:t||!1,onChange:i=>{e({reversed:i||void 0})}})})]})})},Aee=pSe;var Mee=n(H(),1),zee=n(y(),1);function mSe(e,t){let{ordered:r,...o}=e;return(0,zee.jsx)(r?"ol":"ul",{ref:t,...o})}var Vee=(0,Mee.forwardRef)(mSe);var Xa=n(y(),1),dSe={name:"core/list-item"},fSe=[["core/list-item"]];function hSe(e,t){let r=(0,Jp.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:a}=(0,Jp.useDispatch)(ws.store);(0,W4.useEffect)(()=>{if(!e.values)return;let[i,l]=U4(e);(0,Fee.default)("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),r.batch(()=>{o(t,i),a(t,l)})},[e.values])}function gSe(e){let{replaceBlocks:t,selectionChange:r}=(0,Jp.useDispatch)(ws.store),{getBlockRootClientId:o,getBlockAttributes:a,getBlock:i}=(0,Jp.useSelect)(ws.store);return(0,W4.useCallback)(()=>{let l=o(e),s=a(l),c=(0,Oee.createBlock)("core/list-item",s),{innerBlocks:u}=i(e);t([l],[c,...u]),r(u[u.length-1].clientId)},[e])}function vSe({clientId:e}){let t=gSe(e),r=(0,Jp.useSelect)(o=>{let{getBlockRootClientId:a,getBlockName:i}=o(ws.store);return i(a(e))==="core/list-item"},[e]);return(0,Xa.jsx)(Xa.Fragment,{children:(0,Xa.jsx)(G4.ToolbarButton,{icon:(0,ks.isRTL)()?av:iv,title:(0,ks.__)("Outdent"),description:(0,ks.__)("Outdent list item"),disabled:!r,onClick:t})})}function Hee({attributes:e,setAttributes:t,clientId:r}){let{ordered:o,type:a,reversed:i,start:l}=e,s=(0,ws.useBlockProps)({style:{listStyleType:o&&a!=="decimal"?a:void 0}}),c=(0,ws.useInnerBlocksProps)(s,{defaultBlock:dSe,directInsert:!0,template:fSe,templateLock:!1,templateInsertUpdatesSelection:!0,__experimentalCaptureToolbars:!0});hSe(e,r);let u=(0,Xa.jsxs)(ws.BlockControls,{group:"block",children:[(0,Xa.jsx)(G4.ToolbarButton,{icon:(0,ks.isRTL)()?rv:ov,title:(0,ks.__)("Unordered"),description:(0,ks.__)("Convert to unordered list"),isActive:o===!1,onClick:()=>{t({ordered:!1})}}),(0,Xa.jsx)(G4.ToolbarButton,{icon:(0,ks.isRTL)()?nv:al,title:(0,ks.__)("Ordered"),description:(0,ks.__)("Convert to ordered list"),isActive:o===!0,onClick:()=>{t({ordered:!0})}}),(0,Xa.jsx)(vSe,{clientId:r})]});return(0,Xa.jsxs)(Xa.Fragment,{children:[(0,Xa.jsx)(Vee,{ordered:o,reversed:i,start:l,...c}),u,o&&(0,Xa.jsx)(Aee,{setAttributes:t,reversed:i,start:l,type:a})]})}var $4={$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 q4=n(P(),1),KR=n(y(),1);function jee({attributes:e}){let{ordered:t,type:r,reversed:o,start:a}=e;return(0,KR.jsx)(t?"ol":"ul",{...q4.useBlockProps.save({reversed:o,start:a,style:{listStyleType:t&&r!=="decimal"?r:void 0}}),children:(0,KR.jsx)(q4.InnerBlocks.Content,{})})}var Pu=n(q(),1),Vg=n(Xl(),1);function Uee({phrasingContentSchema:e}){let t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach(r=>{t[r].children={li:{children:t}}}),t}function YR(e){return e.flatMap(({name:t,attributes:r,innerBlocks:o=[]})=>t==="core/list-item"?[r.content,...YR(o)]:YR(o))}var ySe={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map(({content:r})=>(0,Pu.createBlock)("core/list-item",{content:r}));else if(e.length===1){let r=(0,Vg.create)({html:e[0].content});t=(0,Vg.split)(r,`
`).map(o=>(0,Pu.createBlock)("core/list-item",{content:(0,Vg.toHTMLString)({value:o})}))}return(0,Pu.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:Uee(e).ol,ul:Uee(e).ul}),transform:ZR},...["*","-"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,Pu.createBlock)("core/list",{},[(0,Pu.createBlock)("core/list-item",{content:t})])}})),...["1.","1)"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,Pu.createBlock)("core/list",{ordered:!0},[(0,Pu.createBlock)("core/list-item",{content:t})])}}))],to:[...["core/paragraph","core/heading"].map(e=>({type:"block",blocks:[e],transform:(t,r)=>YR(r).map(o=>(0,Pu.createBlock)(e,{content:o}))}))]},Gee=ySe;var{name:Wee}=$4,$ee={icon:Wl,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,Og.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,Og.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,Og.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,Og.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,Og.__)("The Queen of Hearts.")}}]},transforms:Gee,edit:Hee,save:jee,deprecated:Lee},_Se=()=>R({name:Wee,metadata:$4,settings:$ee});var JR={};K(JR,{init:()=>CSe,metadata:()=>K4,name:()=>tte,settings:()=>rte});var em=n(N(),1),Z4=n(P(),1),rm=n(O(),1),tm=n(H(),1),qee=n(F(),1),Zee=n(zh(),1);var Mi=n(y(),1),{Badge:xSe}=U(rm.privateApis);function Kee({attributes:e,setAttributes:t,isSelected:r}){let{latex:o,mathML:a}=e,[i,l]=(0,tm.useState)(),[s,c]=(0,tm.useState)(null),[u,p]=(0,tm.useState)(),m=(0,tm.useRef)(o),{__unstableMarkNextChangeAsNotPersistent:d}=(0,qee.useDispatch)(Z4.store);(0,tm.useEffect)(()=>{import("@wordpress/latex-to-mathml").then(h=>{p(()=>h.default),m.current&&(d(),t({mathML:h.default(m.current,{displayMode:!0})}))})},[m,t,d]);let f=(0,Z4.useBlockProps)({ref:l,position:"relative"});return(0,Mi.jsxs)("div",{...f,children:[a?(0,Mi.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:a}}):"\u200B",r&&(0,Mi.jsx)(rm.Popover,{placement:"bottom-start",offset:8,anchor:i,focusOnMount:!1,__unstableSlotName:"__unstable-block-tools-after",children:(0,Mi.jsx)("div",{style:{padding:"4px",minWidth:"300px"},children:(0,Mi.jsxs)(rm.__experimentalVStack,{spacing:1,children:[(0,Mi.jsx)(rm.TextareaControl,{__next40pxDefaultSize:!0,label:(0,em.__)("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(v){c(v.message),(0,Zee.speak)((0,em.sprintf)((0,em.__)("Error parsing mathematical expression: %s"),v.message))}t({mathML:g,latex:h})},placeholder:(0,em.__)("e.g., x^2, \\frac{a}{b}")}),s&&(0,Mi.jsxs)(Mi.Fragment,{children:[(0,Mi.jsx)(xSe,{intent:"error",className:"wp-block-math__error",children:(0,em.sprintf)((0,em.__)("Error: %s"),s)}),(0,Mi.jsx)("style",{children:".wp-block-math__error .components-badge__content{white-space:normal}"})]})]})})})]})}var K4={$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 Yee=n(P(),1),XR=n(y(),1);function Qee({attributes:e}){let{latex:t,mathML:r}=e;return t?(0,XR.jsx)("div",{...Yee.useBlockProps.save(),children:(0,XR.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:r}})}):null}var Xee=n(P(),1),Jee=n(y(),1),wSe={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,Jee.jsx)("math",{...Xee.useBlockProps.save(),display:"block",dangerouslySetInnerHTML:{__html:r}}):null}},ete=[wSe];var{name:tte}=K4,rte={icon:YE,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:Kee,save:Qee,deprecated:ete},CSe=()=>R({name:tte,metadata:K4,settings:rte});var sA={};K(sA,{init:()=>DSe,metadata:()=>Y4,name:()=>kte,settings:()=>tC});var yte=n(N(),1);var _te=n(P(),1),xte=n(q(),1);var Y4={$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 bc=n(P(),1),vc=n(N(),1),lA=n(O(),1);var dte=n(ve(),1),fte=n(F(),1),hte=n(qs(),1);var ote=n(H(),1),Fg=n(F(),1),eA=n(P(),1),nte=n(q(),1);function Eu(){let e=(0,Fg.useRegistry)(),{moveBlocksToPosition:t,removeBlock:r,insertBlock:o,updateBlockListSettings:a}=(0,Fg.useDispatch)(eA.store),{getBlockRootClientId:i,getBlockName:l,getBlockOrder:s,getBlockIndex:c,getSelectedBlockClientIds:u,getBlock:p,getBlockListSettings:m}=(0,Fg.useSelect)(eA.store);function d(f){let h=i(f),g=i(h);if(g&&l(g)==="core/list-item")return g}return(0,ote.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 v=i(h),b=f[f.length-1],k=s(v).slice(c(b)+1);return e.batch(()=>{if(k.length){let x=s(h)[0];if(!x){let w=(0,nte.cloneBlock)(p(v),{},[]);x=w.clientId,o(w,0,h,!1),a(x,m(v))}t(k,v,x)}t(f,v,i(g),c(g)+1),s(v).length||r(v,!1)}),!0},[])}var ate=n(H(),1),Q4=n(F(),1),tA=n(P(),1),Qb=n(q(),1);function Xb(e){let{replaceBlocks:t,selectionChange:r,multiSelect:o}=(0,Q4.useDispatch)(tA.store),{getBlock:a,getPreviousBlockClientId:i,getSelectionStart:l,getSelectionEnd:s,hasMultiSelection:c,getMultiSelectedBlockClientIds:u,getBlockRootClientId:p,getBlockAttributes:m}=(0,Q4.useSelect)(tA.store);return(0,ate.useCallback)(()=>{let d=c(),f=d?u():[e],h=f.map(w=>(0,Qb.cloneBlock)(a(w))),g=i(e),v=(0,Qb.cloneBlock)(a(g)),b=p(e),_=m(b);v.innerBlocks?.length||(v.innerBlocks=[(0,Qb.createBlock)("core/list",{ordered:_.ordered})]),v.innerBlocks[v.innerBlocks.length-1].innerBlocks.push(...h);let k=l(),x=s();return t([g,...f],[v]),d?o(h[0].clientId,h[h.length-1].clientId):r(h[0].clientId,x.attributeKey,x.clientId===k.clientId?k.offset:x.offset,x.offset),!0},[e])}var of=n(q(),1),ite=n(ve(),1),lte=n(Xl(),1),ste=n(qs(),1),X4=n(F(),1),rA=n(P(),1);var{subscribeOwnedListener:TSe}=U(lte.privateApis);function oA(e){let{replaceBlocks:t,selectionChange:r}=(0,X4.useDispatch)(rA.store),{getBlock:o,getBlockAttributes:a,getBlockRootClientId:i,getBlockIndex:l,getBlockName:s}=(0,X4.useSelect)(rA.store),c=Eu();return(0,ite.useRefEffect)(u=>{function p(m){if(m.defaultPrevented||m.keyCode!==ste.ENTER)return;let{content:d}=a(e)??{};if(d?.length)return;if(m.preventDefault(),s(i(i(e)))==="core/list-item"){c();return}let h=o(i(e)),g=l(e),v=(0,of.cloneBlock)({...h,innerBlocks:h.innerBlocks.slice(0,g)}),b=(0,of.createBlock)((0,of.getDefaultBlockName)()),_=[...h.innerBlocks[g].innerBlocks[0]?.innerBlocks||[],...h.innerBlocks.slice(g+1)],k=_.length?[(0,of.cloneBlock)({...h,innerBlocks:_})]:[];t(h.clientId,[v,b,...k],1),r(b.clientId)}return TSe(u,"keydown",p,!0)},[])}var cte=n(ve(),1),ute=n(Xl(),1),Jb=n(qs(),1),pte=n(P(),1),mte=n(F(),1);var{subscribeOwnedListener:PSe}=U(ute.privateApis);function nA(e){let{getSelectionStart:t,getSelectionEnd:r,getBlockIndex:o}=(0,mte.useSelect)(pte.store),a=Xb(e),i=Eu();return(0,cte.useRefEffect)(l=>{function s(c){let{keyCode:u,shiftKey:p,altKey:m,metaKey:d,ctrlKey:f}=c;if(c.defaultPrevented||u!==Jb.SPACE&&u!==Jb.TAB||m||d||f)return;let h=t(),g=r();h.offset===0&&g.offset===0&&(p?u===Jb.TAB&&i()&&c.preventDefault():o(e)!==0&&a()&&c.preventDefault())}return PSe(l,"keydown",s,!0)},[e,a])}var Hg=n(F(),1),aA=n(P(),1),J4=n(q(),1);function iA(e,t){let r=(0,Hg.useRegistry)(),{getPreviousBlockClientId:o,getNextBlockClientId:a,getBlockOrder:i,getBlockRootClientId:l,getBlockName:s,getBlock:c}=(0,Hg.useSelect)(aA.store),{mergeBlocks:u,moveBlocksToPosition:p,removeBlock:m,insertBlocks:d}=(0,Hg.useDispatch)(aA.store),f=Eu();function h(v){let b=i(v);return b.length?h(b[b.length-1]):v}function g(v){let b=l(v),_=l(b);if(_&&s(_)==="core/list-item")return _}return v=>{function b(_,k){r.batch(()=>{let[x]=i(k);x&&(o(k)===_&&!i(_).length?p([x],k,_):p(i(x),x,l(_))),u(_,k)})}if(v){let _=i(e)[0],k,x=e;if(_)k=i(_)[0];else for(;!(k=a(x));){let w=g(x);if(!w)break;x=w}if(k)g(k)?f(k):b(e,k);else{let w=l(x),C=a(w);if(C)if(s(C)==="core/list")r.batch(()=>{p(i(C),C,w),m(C,!1)});else{let I=(0,J4.switchToBlockType)(c(C),"core/list")?.[0]?.innerBlocks;I?.length&&r.batch(()=>{d(I,void 0,w,!1),m(C,!1)})}}}else{if(g(e)){f(e);return}let _=o(e);if(_){let x=h(_);b(x,e);return}let k=i(e);(0,J4.isUnmodifiedBlock)(c(e),"content")&&k.length>0?r.batch(()=>{f(i(k[0])),m(e,!0)}):t(v)}}}var zi=n(y(),1);function ESe({clientId:e}){let t=Xb(e),r=Eu(),{canIndent:o,canOutdent:a}=(0,fte.useSelect)(i=>{let{getBlockIndex:l,getBlockRootClientId:s,getBlockName:c}=i(bc.store);return{canIndent:l(e)>0,canOutdent:c(s(s(e)))==="core/list-item"}},[e]);return(0,zi.jsxs)(zi.Fragment,{children:[(0,zi.jsx)(lA.ToolbarButton,{icon:(0,vc.isRTL)()?av:iv,title:(0,vc.__)("Outdent"),shortcut:hte.displayShortcut.shift("Tab"),description:(0,vc.__)("Outdent list item"),disabled:!a,onClick:()=>r()}),(0,zi.jsx)(lA.ToolbarButton,{icon:(0,vc.isRTL)()?eE:rE,title:(0,vc.__)("Indent"),shortcut:"Tab",description:(0,vc.__)("Indent list item"),disabled:!o,onClick:()=>t()})]})}function gte({attributes:e,setAttributes:t,clientId:r,mergeBlocks:o}){let{placeholder:a,content:i}=e,l=(0,bc.useBlockProps)(),s=(0,bc.useInnerBlocksProps)(l,{renderAppender:!1,__unstableDisableDropZone:!0}),c=oA(r),u=nA(r),p=iA(r,o);return(0,zi.jsxs)(zi.Fragment,{children:[(0,zi.jsxs)("li",{...s,children:[(0,zi.jsx)(bc.RichText,{ref:(0,dte.useMergeRefs)([c,u]),identifier:"content",tagName:"div",onChange:m=>t({content:m}),value:i,"aria-label":(0,vc.__)("List text"),placeholder:a||(0,vc.__)("List"),onMerge:p}),s.children]}),(0,zi.jsx)(bc.BlockControls,{group:"block",children:(0,zi.jsx)(ESe,{clientId:r})})]})}var jg=n(P(),1),ey=n(y(),1);function vte({attributes:e}){return(0,ey.jsxs)("li",{...jg.useBlockProps.save(),children:[(0,ey.jsx)(jg.RichText.Content,{value:e.content}),(0,ey.jsx)(jg.InnerBlocks.Content,{})]})}var eC=n(q(),1),BSe={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,eC.createBlock)("core/paragraph",e),...t.map(r=>(0,eC.cloneBlock)(r))]}]},bte=BSe;var{fieldsKey:ISe,formKey:NSe}=U(xte.privateApis),{name:kte}=Y4,tC={icon:jE,edit:gte,save:vte,merge(e,t){return{...e,content:e.content+t.content}},transforms:bte,[U(_te.privateApis).requiresWrapperOnCopy]:!0,__experimentalLabel(e,{context:t}){let{content:r}=e,o=e?.metadata?.name,a=r?.trim().length>0;if(t==="list-view"&&(o||a))return o||r;if(t==="breadcrumb"&&o)return o}};window.__experimentalContentOnlyInspectorFields&&(tC[ISe]=[{id:"content",label:(0,yte.__)("Content"),type:"text",Edit:"rich-text"}],tC[NSe]={fields:["content"]});var DSe=()=>R({name:kte,metadata:Y4,settings:tC});var cA={};K(cA,{init:()=>RSe,metadata:()=>oC,name:()=>Cte,settings:()=>Ste});var rC=n(P(),1),om=n(O(),1),nf=n(N(),1);var Vi=n(y(),1);function wte({attributes:e,setAttributes:t}){let{displayLoginAsForm:r,redirectToCurrent:o}=e,a=Z();return(0,Vi.jsxs)(Vi.Fragment,{children:[(0,Vi.jsx)(rC.InspectorControls,{children:(0,Vi.jsxs)(om.__experimentalToolsPanel,{label:(0,nf.__)("Settings"),resetAll:()=>{t({displayLoginAsForm:!1,redirectToCurrent:!0})},dropdownMenuProps:a,children:[(0,Vi.jsx)(om.__experimentalToolsPanelItem,{label:(0,nf.__)("Display login as form"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>t({displayLoginAsForm:!1}),children:(0,Vi.jsx)(om.ToggleControl,{label:(0,nf.__)("Display login as form"),checked:r,onChange:()=>t({displayLoginAsForm:!r})})}),(0,Vi.jsx)(om.__experimentalToolsPanelItem,{label:(0,nf.__)("Redirect to current URL"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({redirectToCurrent:!0}),children:(0,Vi.jsx)(om.ToggleControl,{label:(0,nf.__)("Redirect to current URL"),checked:o,onChange:()=>t({redirectToCurrent:!o})})})]})}),(0,Vi.jsx)("div",{...(0,rC.useBlockProps)({className:"logged-in"}),children:(0,Vi.jsx)("a",{href:"#login-pseudo-link",children:(0,nf.__)("Log out")})})]})}var oC={$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:Cte}=oC,Ste={icon:WE,edit:wte},RSe=()=>R({name:Cte,metadata:oC,settings:Ste});var hA={};K(hA,{init:()=>o6e,metadata:()=>fC,name:()=>$te,settings:()=>hC});var oy=n(N(),1);var Wte=n(q(),1);var vr=n(P(),1),uA=n(ve(),1);var Tte=n(N(),1),yc="full",ty=15,nC="none",aC="media",iC="attachment",Pte=[["core/paragraph",{placeholder:(0,Tte._x)("Content\u2026","content placeholder")}]];var Re=n(y(),1),lC=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${t.x*100}% ${t.y*100}%`:"50% 50%"}:{},Ete=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(t.x*100)}% ${Math.round(t.y*100)}%`:"50% 50%"}:{},af=50,_c=()=>{},Bte=e=>{if(!e.customBackgroundColor)return e;let t={color:{background:e.customBackgroundColor}},{customBackgroundColor:r,...o}=e;return{...o,style:t}},Ug=e=>e.align?e:{...e,align:"wide"},sC={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}},pA={...sC,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"}},Ite={...pA,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"}},ASe={...Ite,align:{type:"string",default:"none"},useFeaturedImage:{type:"boolean",default:!1}},mA={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},Nte={...mA,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}}},MSe={...Nte,__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}},zSe={attributes:ASe,supports:MSe,usesContext:["postId","postType"],save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:a,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:p,linkClass:m,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||yc,v=h||void 0,b=S({[`wp-image-${s}`]:s&&a==="image",[`size-${g}`]:s&&a==="image"}),_=i?(0,Re.jsx)("img",{src:i,alt:r,className:b||null}):null;d&&(_=(0,Re.jsx)("a",{className:m,href:d,target:f,rel:v,children:_}));let k={image:()=>_,video:()=>(0,Re.jsx)("video",{controls:!0,src:i})},x=S({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),w=u?Ete(i,p):{},C;l!==af&&(C=o==="right"?`auto ${l}%`:`${l}% auto`);let T={gridTemplateColumns:C};return o==="right"?(0,Re.jsxs)("div",{...vr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("div",{...vr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[a]||_c)()})]}):(0,Re.jsxs)("div",{...vr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[a]||_c)()}),(0,Re.jsx)("div",{...vr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}},VSe={attributes:Ite,supports:Nte,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:a,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:p,linkClass:m,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||yc,v=h||void 0,b=S({[`wp-image-${s}`]:s&&a==="image",[`size-${g}`]:s&&a==="image"}),_=(0,Re.jsx)("img",{src:i,alt:r,className:b||null});d&&(_=(0,Re.jsx)("a",{className:m,href:d,target:f,rel:v,children:_}));let k={image:()=>_,video:()=>(0,Re.jsx)("video",{controls:!0,src:i})},x=S({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),w=u?Ete(i,p):{},C;l!==af&&(C=o==="right"?`auto ${l}%`:`${l}% auto`);let T={gridTemplateColumns:C};return o==="right"?(0,Re.jsxs)("div",{...vr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("div",{...vr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[a]||_c)()})]}):(0,Re.jsxs)("div",{...vr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[a]||_c)()}),(0,Re.jsx)("div",{...vr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Ug,isEligible(e,t,{block:r}){let{attributes:o}=r;return e.align===void 0&&!!o.className?.includes("alignwide")}},OSe={attributes:pA,supports:mA,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:a,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:p,linkClass:m,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||yc,v=h||void 0,b=S({[`wp-image-${s}`]:s&&a==="image",[`size-${g}`]:s&&a==="image"}),_=(0,Re.jsx)("img",{src:i,alt:r,className:b||null});d&&(_=(0,Re.jsx)("a",{className:m,href:d,target:f,rel:v,children:_}));let k={image:()=>_,video:()=>(0,Re.jsx)("video",{controls:!0,src:i})},x=S({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),w=u?lC(i,p):{},C;l!==af&&(C=o==="right"?`auto ${l}%`:`${l}% auto`);let T={gridTemplateColumns:C};return o==="right"?(0,Re.jsxs)("div",{...vr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("div",{...vr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[a]||_c)()})]}):(0,Re.jsxs)("div",{...vr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[a]||_c)()}),(0,Re.jsx)("div",{...vr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Ug},FSe={attributes:pA,supports:mA,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:a,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:p,linkClass:m,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||yc,v=h||void 0,b=S({[`wp-image-${s}`]:s&&a==="image",[`size-${g}`]:s&&a==="image"}),_=(0,Re.jsx)("img",{src:i,alt:r,className:b||null});d&&(_=(0,Re.jsx)("a",{className:m,href:d,target:f,rel:v,children:_}));let k={image:()=>_,video:()=>(0,Re.jsx)("video",{controls:!0,src:i})},x=S({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),w=u?lC(i,p):{},C;l!==af&&(C=o==="right"?`auto ${l}%`:`${l}% auto`);let T={gridTemplateColumns:C};return(0,Re.jsxs)("div",{...vr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[a]||_c)()}),(0,Re.jsx)("div",{...vr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Ug},HSe={attributes:{...sC,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,uA.compose)(Bte,Ug),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:a,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c,mediaId:u,verticalAlignment:p,imageFill:m,focalPoint:d,linkClass:f,href:h,linkTarget:g,rel:v}=e,b=v||void 0,_=(0,Re.jsx)("img",{src:s,alt:a,className:u&&l==="image"?`wp-image-${u}`:null});h&&(_=(0,Re.jsx)("a",{className:f,href:h,target:g,rel:b,children:_}));let k={image:()=>_,video:()=>(0,Re.jsx)("video",{controls:!0,src:s})},x=(0,vr.getColorClassName)("background-color",t),w=S({"has-media-on-the-right":i==="right","has-background":x||r,[x]:x,"is-stacked-on-mobile":o,[`is-vertically-aligned-${p}`]:p,"is-image-fill":m}),C=m?lC(s,d):{},T;return c!==af&&(T=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Re.jsxs)("div",{className:w,style:{backgroundColor:x?void 0:r,gridTemplateColumns:T},children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(k[l]||_c)()}),(0,Re.jsx)("div",{className:"wp-block-media-text__content",children:(0,Re.jsx)(vr.InnerBlocks.Content,{})})]})}},jSe={attributes:{...sC,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,uA.compose)(Bte,Ug),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:a,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c,mediaId:u,verticalAlignment:p,imageFill:m,focalPoint:d}=e,f={image:()=>(0,Re.jsx)("img",{src:s,alt:a,className:u&&l==="image"?`wp-image-${u}`:null}),video:()=>(0,Re.jsx)("video",{controls:!0,src:s})},h=(0,vr.getColorClassName)("background-color",t),g=S({"has-media-on-the-right":i==="right",[h]:h,"is-stacked-on-mobile":o,[`is-vertically-aligned-${p}`]:p,"is-image-fill":m}),v=m?lC(s,d):{},b;return c!==af&&(b=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Re.jsxs)("div",{className:g,style:{backgroundColor:h?void 0:r,gridTemplateColumns:b},children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[l]||_c)()}),(0,Re.jsx)("div",{className:"wp-block-media-text__content",children:(0,Re.jsx)(vr.InnerBlocks.Content,{})})]})}},USe={attributes:{...sC,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:Ug,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:a,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c}=e,u={image:()=>(0,Re.jsx)("img",{src:s,alt:a}),video:()=>(0,Re.jsx)("video",{controls:!0,src:s})},p=(0,vr.getColorClassName)("background-color",t),m=S({"has-media-on-the-right":i==="right",[p]:p,"is-stacked-on-mobile":o}),d;return c!==af&&(d=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Re.jsxs)("div",{className:m,style:{backgroundColor:p?void 0:r,gridTemplateColumns:d},children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",children:(u[l]||_c)()}),(0,Re.jsx)("div",{className:"wp-block-media-text__content",children:(0,Re.jsx)(vr.InnerBlocks.Content,{})})]})}},Dte=[zSe,VSe,OSe,FSe,HSe,jSe,USe];var dn=n(N(),1),pC=n(F(),1),mC=n(H(),1),Fo=n(P(),1),Fr=n(O(),1),dC=n(Ar(),1);var ry=n(re(),1);var Gg=n(O(),1),xc=n(P(),1),Rte=n(N(),1),Ate=n(ve(),1),dA=n(F(),1),fA=n(H(),1),uC=n(Ar(),1),Mte=n(Sr(),1);function cC(e,t){return e?{objectPosition:t?`${Math.round(t.x*100)}% ${Math.round(t.y*100)}%`:"50% 50%"}:{}}var Hn=n(y(),1),zte=["image","video"],GSe=()=>{},WSe=(0,fA.forwardRef)(({isSelected:e,isStackedOnMobile:t,...r},o)=>{let a=(0,Ate.useViewportMatch)("small","<");return(0,Hn.jsx)(Gg.ResizableBox,{ref:o,showHandle:e&&(!a||!t),...r})});function $Se({mediaId:e,mediaUrl:t,onSelectMedia:r,toggleUseFeaturedImage:o,useFeaturedImage:a}){return(0,Hn.jsx)(xc.BlockControls,{group:"other",children:(0,Hn.jsx)(xc.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:zte,onSelect:r,onToggleFeaturedImage:o,useFeaturedImage:a,onReset:()=>r(void 0)})})}function Lte({className:e,mediaUrl:t,onSelectMedia:r,toggleUseFeaturedImage:o}){let{createErrorNotice:a}=(0,dA.useDispatch)(Mte.store),i=s=>{a(s,{type:"snackbar"})},l=s=>{s.length===1&&r({url:(0,uC.createBlobURL)(s[0])})};return(0,Hn.jsx)(xc.MediaPlaceholder,{icon:(0,Hn.jsx)(xc.BlockIcon,{icon:pv}),labels:{title:(0,Rte.__)("Media area")},className:e,onSelect:r,onToggleFeaturedImage:o,allowedTypes:zte,onFilesPreUpload:l,onError:i,disableMediaButtons:t})}function qSe(e,t){let{className:r,commitWidthChange:o,focalPoint:a,imageFill:i,isSelected:l,isStackedOnMobile:s,mediaAlt:c,mediaId:u,mediaPosition:p,mediaType:m,mediaUrl:d,mediaWidth:f,onSelectMedia:h,onWidthChange:g,enableResize:v,toggleUseFeaturedImage:b,useFeaturedImage:_,featuredImageURL:k,featuredImageAlt:x,refMedia:w}=e,C=!u&&(0,uC.isBlobURL)(d),{toggleSelection:T}=(0,dA.useDispatch)(xc.store);if(d||k||_){let I=()=>{T(!1)},D=(z,j,G)=>{g(parseInt(G.style.width))},L=(z,j,G)=>{T(!0),o(parseInt(G.style.width))},E={right:v&&p==="left",left:v&&p==="right"},B=m==="image"&&i?cC(d||k,a):{},A={image:()=>_&&k?(0,Hn.jsx)("img",{ref:w,src:k,alt:x,style:B}):d&&(0,Hn.jsx)("img",{ref:w,src:d,alt:c,style:B}),video:()=>(0,Hn.jsx)("video",{controls:!0,ref:w,src:d})};return(0,Hn.jsxs)(WSe,{as:"figure",className:S(r,"editor-media-container__resizer",{"is-transient":C}),size:{width:f+"%"},minWidth:"10%",maxWidth:"100%",enable:E,onResizeStart:I,onResize:D,onResizeStop:L,axis:"x",isSelected:l,isStackedOnMobile:s,ref:t,children:[(0,Hn.jsx)($Se,{onSelectMedia:h,mediaUrl:_&&k?k:d,mediaId:u,toggleUseFeaturedImage:b,useFeaturedImage:_}),(A[m]||GSe)(),C&&(0,Hn.jsx)(Gg.Spinner,{}),!_&&(0,Hn.jsx)(Lte,{...e}),!k&&_&&(0,Hn.jsx)(Gg.Placeholder,{className:"wp-block-media-text--placeholder-image",style:B,withIllustration:!0})]})}return(0,Hn.jsx)(Lte,{...e})}var Vte=(0,fA.forwardRef)(qSe);var bt=n(y(),1),{ResolutionTool:ZSe}=U(Fo.privateApis),Ote=e=>Math.max(ty,Math.min(e,100-ty));function Fte(e,t){return e?.media_details?.sizes?.[t]?.source_url}function KSe({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,dC.isBlobURL)(o.url)&&(o.type=(0,dC.getBlobTypeByURL)(o.url));let a,i;o.media_type?o.media_type==="image"?a="image":a="video":a=o.type,a==="image"&&(i=o.sizes?.large?.url||o.media_details?.sizes?.large?.source_url);let l=e,s=t;if(a==="image"){if(!l)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||nC){case"file":case aC:l=aC;break;case"post":case iC:l=iC;break;case nC:default:l=nC;break}switch(l){case aC:s=o.url;break;case iC:s=o.link;break}}r({mediaAlt:o.alt,mediaId:o.id,mediaType:a,mediaUrl:i||o.url,mediaLink:o.link||void 0,href:s,linkDestination:l,focalPoint:void 0,useFeaturedImage:!1})}}function YSe({image:e,value:t,onChange:r}){let{imageSizes:o}=(0,pC.useSelect)(i=>{let{getSettings:l}=i(Fo.store);return{imageSizes:l().imageSizes}},[]);if(!o?.length)return null;let a=o.filter(({slug:i})=>Fte(e,i)).map(({name:i,slug:l})=>({value:l,label:i}));return(0,bt.jsx)(ZSe,{value:t,defaultValue:yc,options:a,onChange:r})}function QSe({attributes:e,isSelected:t,setAttributes:r,context:{postId:o,postType:a}}){let{focalPoint:i,href:l,imageFill:s,isStackedOnMobile:c,linkClass:u,linkDestination:p,linkTarget:m,mediaAlt:d,mediaId:f,mediaPosition:h,mediaType:g,mediaUrl:v,mediaWidth:b,mediaSizeSlug:_,rel:k,verticalAlignment:x,allowedBlocks:w,useFeaturedImage:C}=e,[T]=(0,ry.useEntityProp)("postType",a,"featured_media",o),{featuredImageMedia:I}=(0,pC.useSelect)(me=>({featuredImageMedia:T&&C?me(ry.store).getEntityRecord("postType","attachment",T,{context:"view"}):void 0}),[T,C]),{image:D}=(0,pC.useSelect)(me=>({image:f&&t?me(ry.store).getEntityRecord("postType","attachment",f,{context:"view"}):null}),[t,f]),L=C?I?.source_url:"",E=C?I?.alt_text:"",B=()=>{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})},A=(0,mC.useRef)(),z=me=>{let{style:le}=A.current,{x:Pe,y:Ee}=me;le.objectPosition=`${Pe*100}% ${Ee*100}%`},[j,G]=(0,mC.useState)(null),W=KSe({attributes:e,setAttributes:r}),$=me=>{r(me)},V=me=>{G(Ote(me))},Q=me=>{r({mediaWidth:Ote(me)}),G(null)},Y=S({"has-media-on-the-right":h==="right","is-selected":t,"is-stacked-on-mobile":c,[`is-vertically-aligned-${x}`]:x,"is-image-fill-element":s}),ee=`${j||b}%`,te=h==="right"?`1fr ${ee}`:`${ee} 1fr`,oe={gridTemplateColumns:te,msGridColumns:te},J=me=>{r({mediaAlt:me})},ce=me=>{r({verticalAlignment:me})},ie=me=>{let le=Fte(D,me);if(!le)return null;r({mediaUrl:le,mediaSizeSlug:me})},we=Z(),se=(0,bt.jsxs)(Fr.__experimentalToolsPanel,{label:(0,dn.__)("Settings"),resetAll:()=>{r({isStackedOnMobile:!0,imageFill:!1,mediaAlt:"",focalPoint:void 0,mediaWidth:50}),ie(yc)},dropdownMenuProps:we,children:[(0,bt.jsx)(Fr.__experimentalToolsPanelItem,{label:(0,dn.__)("Media width"),isShownByDefault:!0,hasValue:()=>b!==50,onDeselect:()=>r({mediaWidth:50}),children:(0,bt.jsx)(Fr.RangeControl,{label:(0,dn.__)("Media width"),value:j||b,onChange:Q,min:ty,max:100-ty})}),(0,bt.jsx)(Fr.__experimentalToolsPanelItem,{label:(0,dn.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>r({isStackedOnMobile:!0}),children:(0,bt.jsx)(Fr.ToggleControl,{label:(0,dn.__)("Stack on mobile"),checked:c,onChange:()=>r({isStackedOnMobile:!c})})}),g==="image"&&(0,bt.jsx)(Fr.__experimentalToolsPanelItem,{label:(0,dn.__)("Crop image to fill"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({imageFill:!1}),children:(0,bt.jsx)(Fr.ToggleControl,{label:(0,dn.__)("Crop image to fill"),checked:!!s,onChange:()=>r({imageFill:!s})})}),s&&(v||L)&&g==="image"&&(0,bt.jsx)(Fr.__experimentalToolsPanelItem,{label:(0,dn.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>r({focalPoint:void 0}),children:(0,bt.jsx)(Fr.FocalPointPicker,{label:(0,dn.__)("Focal point"),url:C&&L?L:v,value:i,onChange:me=>r({focalPoint:me}),onDragStart:z,onDrag:z})}),g==="image"&&v&&!C&&(0,bt.jsx)(Fr.__experimentalToolsPanelItem,{label:(0,dn.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>r({mediaAlt:""}),children:(0,bt.jsx)(Fr.TextareaControl,{label:(0,dn.__)("Alternative text"),value:d,onChange:J,help:(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(Fr.ExternalLink,{href:(0,dn.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,dn.__)("Describe the purpose of the image.")}),(0,bt.jsx)("br",{}),(0,dn.__)("Leave empty if decorative.")]})})}),g==="image"&&!C&&(0,bt.jsx)(YSe,{image:D,value:_,onChange:ie})]}),de=(0,Fo.useBlockProps)({className:Y,style:oe}),ge=(0,Fo.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:Pte,allowedBlocks:w}),ne=(0,Fo.useBlockEditingMode)();return(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(Fo.InspectorControls,{children:se}),(0,bt.jsxs)(Fo.BlockControls,{group:"block",children:[ne==="default"&&(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(Fo.BlockVerticalAlignmentControl,{onChange:ce,value:x}),(0,bt.jsx)(Fr.ToolbarButton,{icon:KB,title:(0,dn.__)("Show media on left"),isActive:h==="left",onClick:()=>r({mediaPosition:"left"})}),(0,bt.jsx)(Fr.ToolbarButton,{icon:QB,title:(0,dn.__)("Show media on right"),isActive:h==="right",onClick:()=>r({mediaPosition:"right"})})]}),g==="image"&&!C&&(0,bt.jsx)(Fo.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:$,linkDestination:p,mediaType:g,mediaUrl:D&&D.source_url,mediaLink:D&&D.link,linkTarget:m,linkClass:u,rel:k})]}),(0,bt.jsxs)("div",{...de,children:[h==="right"&&(0,bt.jsx)("div",{...ge}),(0,bt.jsx)(Vte,{className:"wp-block-media-text__media",onSelectMedia:W,onWidthChange:V,commitWidthChange:Q,refMedia:A,enableResize:ne==="default",toggleUseFeaturedImage:B,focalPoint:i,imageFill:s,isSelected:t,isStackedOnMobile:c,mediaAlt:d,mediaId:f,mediaPosition:h,mediaType:g,mediaUrl:v,mediaWidth:b,useFeaturedImage:C,featuredImageURL:L,featuredImageAlt:E}),h!=="right"&&(0,bt.jsx)("div",{...ge})]})]})}var Hte=QSe;var fC={$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 Wg=n(P(),1);var Cs=n(y(),1),JSe=50,jte=()=>{};function Ute({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:a,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:p,linkClass:m,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||yc,v=h||void 0,b=S({[`wp-image-${s}`]:s&&a==="image",[`size-${g}`]:s&&a==="image"}),_=u?cC(i,p):{},k=i?(0,Cs.jsx)("img",{src:i,alt:r,className:b||null,style:_}):null;d&&(k=(0,Cs.jsx)("a",{className:m,href:d,target:f,rel:v,children:k}));let x={image:()=>k,video:()=>(0,Cs.jsx)("video",{controls:!0,src:i})},w=S({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill-element":u}),C;l!==JSe&&(C=o==="right"?`auto ${l}%`:`${l}% auto`);let T={gridTemplateColumns:C};return o==="right"?(0,Cs.jsxs)("div",{...Wg.useBlockProps.save({className:w,style:T}),children:[(0,Cs.jsx)("div",{...Wg.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Cs.jsx)("figure",{className:"wp-block-media-text__media",children:(x[a]||jte)()})]}):(0,Cs.jsxs)("div",{...Wg.useBlockProps.save({className:w,style:T}),children:[(0,Cs.jsx)("figure",{className:"wp-block-media-text__media",children:(x[a]||jte)()}),(0,Cs.jsx)("div",{...Wg.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}var lf=n(q(),1),e6e={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:r,anchor:o})=>(0,lf.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,lf.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:a,customOverlayColor:i,gradient:l,id:s,overlayColor:c,style:u,textColor:p,url:m,useFeaturedImage:d},f)=>{let h={};return a?h={style:{color:{gradient:a}}}:i&&(h={style:{color:{background:i}}}),u?.color?.text&&(h.style={color:{...h.style?.color,text:u.color.text}}),(0,lf.createBlock)("core/media-text",{align:e,anchor:r,backgroundColor:c,gradient:l,mediaAlt:t,mediaId:s,mediaType:o,mediaUrl:m,textColor:p,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,lf.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,lf.createBlock)("core/video",{id:e,src:t,anchor:r})},{type:"block",blocks:["core/cover"],transform:({align:e,anchor:t,backgroundColor:r,focalPoint:o,gradient:a,mediaAlt:i,mediaId:l,mediaType:s,mediaUrl:c,style:u,textColor:p,useFeaturedImage:m},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||m?50:100,focalPoint:o,gradient:a,id:l,overlayColor:r,textColor:p,url:c,useFeaturedImage:m,...f};return(0,lf.createBlock)("core/cover",h,d)}}]},Gte=e6e;var{fieldsKey:t6e,formKey:r6e}=U(Wte.privateApis),{name:$te}=fC,hC={icon:XE,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,oy.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,oy.__)("\u2014 Kobayashi Issa (\u4E00\u8336)")}}]},transforms:Gte,edit:Hte,save:Ute,deprecated:Dte};window.__experimentalContentOnlyInspectorFields&&(hC[t6e]=[{id:"media",label:(0,oy.__)("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,oy.__)("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})}],hC[r6e]={fields:["media","link"]});var o6e=()=>R({name:$te,metadata:fC,settings:hC});var gA={};K(gA,{init:()=>a6e,metadata:()=>vC,name:()=>ny,settings:()=>rre});var tre=n(q(),1);var Bu=n(N(),1),qte=n(H(),1),Zte=n(O(),1),Kte=n(q(),1),gC=n(F(),1),sf=n(P(),1),Yte=n(Pn(),1),$g=n(y(),1);function Qte({attributes:e,clientId:t}){let{originalName:r,originalUndelimitedContent:o}=e,a=!!o,{hasFreeformBlock:i,hasHTMLBlock:l}=(0,gC.useSelect)(d=>{let{canInsertBlockType:f,getBlockRootClientId:h}=d(sf.store);return{hasFreeformBlock:f("core/freeform",h(t)),hasHTMLBlock:f("core/html",h(t))}},[t]),{replaceBlock:s}=(0,gC.useDispatch)(sf.store);function c(){s(t,(0,Kte.createBlock)("core/html",{},[],[o]))}let u=[],p,m=(0,$g.jsx)(Zte.Button,{__next40pxDefaultSize:!0,onClick:c,variant:"primary",children:(0,Bu.__)("Keep as HTML")},"convert");return a&&!i&&(!r||r==="core/freeform")?l?(p=(0,Bu.__)("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(m)):p=(0,Bu.__)("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."):a&&l?(p=(0,Bu.sprintf)((0,Bu.__)('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(m)):p=(0,Bu.sprintf)((0,Bu.__)('Your site doesn\u2019t include support for the "%s" block. You can leave it as-is or remove it.'),r),(0,$g.jsxs)("div",{...(0,sf.useBlockProps)({className:"has-warning"}),children:[(0,$g.jsx)(sf.Warning,{actions:u,children:p}),(0,$g.jsx)(qte.RawHTML,{children:(0,Yte.safeHTML)(o)})]})}var vC={$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 Xte=n(H(),1),Jte=n(y(),1);function ere({attributes:e}){return(0,Jte.jsx)(Xte.RawHTML,{children:e.originalContent})}var{name:ny}=vC,rre={name:ny,__experimentalLabel(e,{context:t}){if(t==="accessibility"){let{originalName:r}=e,o=r?(0,tre.getBlockType)(r):void 0;return o?o.settings.title||r:""}},edit:Qte,save:ere},a6e=()=>R({name:ny,metadata:vC,settings:rre});var vA={};K(vA,{init:()=>p6e,metadata:()=>yC,name:()=>pre,settings:()=>_C});var cre=n(N(),1),ure=n(q(),1);var nm=n(N(),1),qg=n(O(),1),Zg=n(P(),1),bC=n(q(),1);var Ss=n(y(),1),i6e=(0,nm.__)("Read more");function ore({attributes:{customText:e,noTeaser:t},insertBlocksAfter:r,setAttributes:o}){let a=Z();return(0,Ss.jsxs)(Ss.Fragment,{children:[(0,Ss.jsx)(Zg.InspectorControls,{children:(0,Ss.jsx)(qg.__experimentalToolsPanel,{label:(0,nm.__)("Settings"),resetAll:()=>{o({noTeaser:!1})},dropdownMenuProps:a,children:(0,Ss.jsx)(qg.__experimentalToolsPanelItem,{label:(0,nm.__)("Hide excerpt"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>o({noTeaser:!1}),children:(0,Ss.jsx)(qg.ToggleControl,{label:(0,nm.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>o({noTeaser:!t}),help:i=>i?(0,nm.__)("The excerpt is hidden."):(0,nm.__)("The excerpt is visible.")})})})}),(0,Ss.jsx)("div",{...(0,Zg.useBlockProps)(),children:(0,Ss.jsx)(Zg.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,nm.__)('"Read more" text'),value:e,placeholder:i6e,onChange:i=>o({customText:i}),disableLineBreaks:!0,__unstableOnSplitAtEnd:r?()=>r((0,bC.createBlock)((0,bC.getDefaultBlockName)())):void 0})})]})}var yC={$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 nre=n(H(),1),are=n(y(),1);function ire({attributes:{customText:e,noTeaser:t}}){let r=e?`<!--more ${e}-->`:"<!--more-->";return(0,are.jsx)(nre.RawHTML,{children:[r,t?"<!--noteaser-->":""].filter(Boolean).join(`
`)})}var lre=n(q(),1),s6e={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,lre.createBlock)("core/more",o)}}]},sre=s6e;var{fieldsKey:c6e,formKey:u6e}=U(ure.privateApis),{name:pre}=yC,_C={icon:oB,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:sre,edit:ore,save:ire};window.__experimentalContentOnlyInspectorFields&&(_C[c6e]=[{id:"customText",label:(0,cre.__)("Content"),type:"text",Edit:"rich-text"}],_C[u6e]={fields:["customText"]});var p6e=()=>R({name:pre,metadata:yC,settings:_C});var QA={};K(QA,{init:()=>_Te,metadata:()=>xC,name:()=>jne,settings:()=>Une});var gS=n(N(),1);var One=n(F(),1),Fne=n(re(),1),Hne=n(en(),1);var xC={$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 dr=n(H(),1),tt=n(P(),1),pm=n(re(),1),Es=n(F(),1),Xr=n(O(),1),Mt=n(N(),1),dS=n(zh(),1);var Dne=n(q(),1),Lne=n(ve(),1);var Kg=n(re(),1),fre=n(F(),1);var Oi={name:"core/navigation-link",attributes:{kind:"post-type",type:"page"}},mre=["core/navigation-link/page","core/navigation-link"],bA={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},dre=["postType","wp_navigation",bA],kc="navigation-overlay";function Yg(e){let t=(0,Kg.useResourcePermissions)({kind:"postType",name:"wp_navigation",id:e}),{navigationMenu:r,isNavigationMenuResolved:o,isNavigationMenuMissing:a}=(0,fre.useSelect)(h=>d6e(h,e),[e]),{canCreate:i,canUpdate:l,canDelete:s,isResolving:c,hasResolved:u}=t,{records:p,isResolving:m,hasResolved:d}=(0,Kg.useEntityRecords)("postType","wp_navigation",bA),f=e?p?.length>1:p?.length>0;return{navigationMenu:r,isNavigationMenuResolved:o,isNavigationMenuMissing:a,navigationMenus:p,isResolvingNavigationMenus:m,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 d6e(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};let{getEntityRecord:r,getEditedEntityRecord:o,hasFinishedResolution:a}=e(Kg.store),i=["postType","wp_navigation",t],l=r(...i),s=o(...i),c=a("getEditedEntityRecord",i),u=s.status==="publish"||s.status==="draft";return{isNavigationMenuResolved:c,isNavigationMenuMissing:c&&(!l||!u),navigationMenu:u?s:null}}var Jg=n(O(),1),iy=n(N(),1);var yA=n(zh(),1),gre=n(H(),1),vre=n(re(),1);var hre=n(N(),1),ay=n(y(),1),f6e=({isVisible:e=!0})=>(0,ay.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__preview",children:(0,ay.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,ay.jsx)(aa,{icon:od}),(0,hre.__)("Navigation")]})}),kC=f6e;var Ts=n(O(),1);var ya=n(N(),1),wC=n(en(),1),Qg=n(H(),1),CC=n(re(),1);var wl=n(y(),1);function h6e(e,t,r){return e?r==="publish"?(0,wC.decodeEntities)(e):(0,ya.sprintf)((0,ya.__)("%1$s (%2$s)"),(0,wC.decodeEntities)(e),r):(0,ya.sprintf)((0,ya.__)("(no title %s)"),t)}function g6e({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:r,onCreateNew:o,actionLabel:a,createNavigationMenuIsSuccess:i,createNavigationMenuIsError:l}){let s=(0,ya.__)("Create from '%s'"),[c,u]=(0,Qg.useState)(!1);a=a||s;let{records:p}=(0,CC.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{navigationMenus:m,isResolvingNavigationMenus:d,hasResolvedNavigationMenus:f,canUserCreateNavigationMenus:h,canSwitchNavigationMenu:g,isNavigationMenuMissing:v}=Yg(e),[b]=(0,CC.useEntityProp)("postType","wp_navigation","title",e),_=(0,Qg.useMemo)(()=>m?.map(({id:A,title:z,status:j},G)=>{let W=h6e(z?.rendered,G+1,j);return{value:A,label:W,ariaLabel:(0,ya.sprintf)(a,W),disabled:c||d||!f}})||[],[m,a,d,f,c]),k=!!m?.length,x=!!p?.length,w=!!g,C=!!h,T=k&&!e,I=!k&&f,D=f&&e===null,L=e&&v,E="";return d?E=(0,ya.__)("Loading\u2026"):T||I||D||L?E=(0,ya.__)("Choose or create a Navigation Menu"):E=b,(0,Qg.useEffect)(()=>{c&&(i||l)&&u(!1)},[f,i,h,l,c,D,I,T]),(0,wl.jsx)(Ts.DropdownMenu,{label:E,icon:mv,toggleProps:{size:"small"},children:({onClose:A})=>(0,wl.jsxs)(wl.Fragment,{children:[w&&k&&(0,wl.jsx)(Ts.MenuGroup,{label:(0,ya.__)("Menus"),children:(0,wl.jsx)(Ts.MenuItemsChoice,{value:e,onSelect:z=>{t(z),A()},choices:_})}),C&&x&&(0,wl.jsx)(Ts.MenuGroup,{label:(0,ya.__)("Import Classic Menus"),children:p?.map(z=>{let j=(0,wC.decodeEntities)(z.name);return(0,wl.jsx)(Ts.MenuItem,{onClick:async()=>{u(!0),await r(z),u(!1),A()},"aria-label":(0,ya.sprintf)(s,j),disabled:c||d||!f,children:j},z.id)})}),h&&(0,wl.jsx)(Ts.MenuGroup,{label:(0,ya.__)("Tools"),children:(0,wl.jsx)(Ts.MenuItem,{onClick:async()=>{u(!0),await o(),u(!1),A()},disabled:c||d||!f,children:(0,ya.__)("Create new Menu")})})]})})}var Xg=g6e;var jn=n(y(),1);function bre({isSelected:e,currentMenuId:t,clientId:r,canUserCreateNavigationMenus:o=!1,isResolvingCanUserCreateNavigationMenus:a,onSelectNavigationMenu:i,onSelectClassicMenu:l,onCreateEmpty:s}){let{isResolving:c,hasResolved:u}=(0,vre.useEntityRecords)("root","menu",{per_page:-1,context:"view"});(0,gre.useEffect)(()=>{e&&(c&&(0,yA.speak)((0,iy.__)("Loading navigation block setup options\u2026")),u&&(0,yA.speak)((0,iy.__)("Navigation block setup options ready.")))},[u,c,e]);let p=c&&a;return(0,jn.jsx)(jn.Fragment,{children:(0,jn.jsxs)(Jg.Placeholder,{className:"wp-block-navigation-placeholder",children:[(0,jn.jsx)(kC,{isVisible:!e}),(0,jn.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__controls",children:(0,jn.jsxs)("div",{className:"wp-block-navigation-placeholder__actions",children:[(0,jn.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,jn.jsx)(aa,{icon:od})," ",(0,iy.__)("Navigation")]}),(0,jn.jsx)("hr",{}),p&&(0,jn.jsx)(Jg.Spinner,{}),(0,jn.jsx)(Xg,{currentMenuId:t,clientId:r,onSelectNavigationMenu:i,onSelectClassicMenu:l}),(0,jn.jsx)("hr",{}),o&&(0,jn.jsx)(Jg.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:s,children:(0,iy.__)("Start empty")})]})})]})})}var _A=n(O(),1),t0=n(N(),1),xA=n(P(),1),yre=n(F(),1),_re=n(re(),1);var ly=n(M(),1);var e0=n(y(),1);function wc({icon:e}){return e==="menu"?(0,e0.jsx)(aa,{icon:eB}):(0,e0.jsxs)(ly.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,e0.jsx)(ly.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,e0.jsx)(ly.Rect,{x:"4",y:"15",width:"16",height:"1.5"})]})}function _a(e,t){return e&&t?e+"//"+t:null}var Fi=n(y(),1);function kA({children:e,id:t,isOpen:r,isResponsive:o,onToggle:a,isHiddenByDefault:i,overlayBackgroundColor:l,overlayTextColor:s,hasIcon:c,icon:u,overlay:p,onNavigateToEntityRecord:m}){let d=(0,yre.useSelect)(x=>x(_re.store).getCurrentTheme()?.stylesheet,[]);if(!o)return e;let f=!!p,h=S("wp-block-navigation__responsive-container",!f&&{"has-text-color":!!s.color||!!s?.class,[(0,xA.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!l.color||l?.class,[(0,xA.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},v=S("wp-block-navigation__responsive-container-open",{"always-shown":i}),b=`${t}-modal`,_={className:"wp-block-navigation__responsive-dialog",...r&&{role:"dialog","aria-modal":!0,"aria-label":(0,t0.__)("Menu")}},k=()=>{if(p&&m){let x=_a(d,p);m({postId:x,postType:"wp_template_part"});return}a(!0)};return(0,Fi.jsxs)(Fi.Fragment,{children:[!r&&(0,Fi.jsxs)(_A.Button,{__next40pxDefaultSize:!0,"aria-haspopup":"true","aria-label":c&&(0,t0.__)("Open menu"),className:v,onClick:k,children:[c&&(0,Fi.jsx)(wc,{icon:u}),!c&&(0,t0.__)("Menu")]}),(0,Fi.jsx)("div",{className:h,style:g,id:b,children:(0,Fi.jsx)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1",children:(0,Fi.jsxs)("div",{..._,children:[(0,Fi.jsxs)(_A.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation__responsive-container-close","aria-label":c&&(0,t0.__)("Close menu"),onClick:()=>a(!1),children:[c&&(0,Fi.jsx)(aa,{icon:Km}),!c&&(0,t0.__)("Close")]}),(0,Fi.jsx)("div",{className:"wp-block-navigation__responsive-container-content",id:`${b}-content`,children:e})]})})})]})}var xre=n(re(),1),r0=n(P(),1),kre=n(F(),1),wre=n(H(),1);var wA=n(y(),1);function Cre({clientId:e,hasCustomPlaceholder:t,orientation:r,templateLock:o}){let{isImmediateParentOfSelectedBlock:a,selectedBlockHasChildren:i,isSelected:l,hasSelectedDescendant:s}=(0,kre.useSelect)(v=>{let{getBlockCount:b,hasSelectedInnerBlock:_,getSelectedBlockClientId:k}=v(r0.store),x=k();return{isImmediateParentOfSelectedBlock:_(e,!1),selectedBlockHasChildren:!!b(x),hasSelectedDescendant:_(e,!0),isSelected:x===e}},[e]),[c,u,p]=(0,xre.useEntityBlockEditor)("postType","wp_navigation"),m=l||a&&!i,d=(0,wre.useMemo)(()=>(0,wA.jsx)(kC,{}),[]),f=!!c?.length,h=!t&&!f&&!l,g=(0,r0.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:c,onInput:u,onChange:p,prioritizedInserterBlocks:mre,defaultBlock:Oi,directInsert:!0,orientation:r,templateLock:o,renderAppender:l||a&&!i||s||m?r0.InnerBlocks.ButtonBlockAppender:!1,placeholder:h?d:void 0,__experimentalCaptureToolbars:!0,__unstableDisableLayoutClassNames:!0});return(0,wA.jsx)("div",{...g})}var Sre=n(O(),1),Tre=n(re(),1),Pre=n(N(),1),Ere=n(y(),1);function Bre(){let[e,t]=(0,Tre.useEntityProp)("postType","wp_navigation","title");return(0,Ere.jsx)(Sre.TextControl,{label:(0,Pre.__)("Menu name"),value:e,onChange:t})}var Dre=n(P(),1),CA=n(O(),1),Lre=n(re(),1),Rre=n(F(),1),cf=n(H(),1);function Ire(e,t){return!Nre(e,t,(r,o)=>{if(o?.name==="core/page-list"&&r==="innerBlocks")return!0})}var Nre=(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(!Nre(e[o],t[o],r))return!1}else return!1;return!0}return!1};var Are=n(y(),1),v6e={};function Mre({blocks:e,createNavigationMenu:t,hasSelection:r}){let o=(0,cf.useRef)();(0,cf.useEffect)(()=>{o?.current||(o.current=e)},[e]);let a=Ire(o?.current,e),i=(0,cf.useContext)(CA.Disabled.Context),l=(0,Dre.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:r?void 0:!1,defaultBlock:Oi,directInsert:!0}),{isSaving:s,hasResolvedAllNavigationMenus:c}=(0,Rre.useSelect)(p=>{if(i)return v6e;let{hasFinishedResolution:m,isSavingEntityRecord:d}=p(Lre.store);return{isSaving:d("postType","wp_navigation"),hasResolvedAllNavigationMenus:m("getEntityRecords",dre)}},[i]);return(0,cf.useEffect)(()=>{i||s||!c||!r||!a||t(null,e)},[e,t,i,s,c,a,r]),(0,Are.jsx)(s?CA.Disabled:"div",{...l})}var TC=n(O(),1),PC=n(re(),1),zre=n(F(),1),Vre=n(H(),1),SC=n(N(),1),uf=n(y(),1);function Ore({onDelete:e}){let[t,r]=(0,Vre.useState)(!1),o=(0,PC.useEntityId)("postType","wp_navigation"),{deleteEntityRecord:a}=(0,zre.useDispatch)(PC.store);return(0,uf.jsxs)(uf.Fragment,{children:[(0,uf.jsx)(TC.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{r(!0)},children:(0,SC.__)("Delete menu")}),t&&(0,uf.jsx)(TC.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{a("postType","wp_navigation",o,{force:!0}),e()},onCancel:()=>{r(!1)},confirmButtonText:(0,SC.__)("Delete"),size:"medium",children:(0,SC.__)("Are you sure you want to delete this Navigation Menu?")})]})}var sy=n(H(),1),Fre=n(F(),1),Hre=n(Sr(),1);function b6e({name:e,message:t=""}={}){let r=(0,sy.useRef)(),{createWarningNotice:o,removeNotice:a}=(0,Fre.useDispatch)(Hre.store),i=(0,sy.useCallback)(s=>{r.current||(r.current=e,o(s||t,{id:r.current,type:"snackbar"}))},[r,o,t,e]),l=(0,sy.useCallback)(()=>{r.current&&(a(r.current),r.current=null)},[r,a]);return[i,l]}var EC=b6e;var Cc=n(O(),1),am=n(N(),1);var Hi=n(y(),1);function jre({setAttributes:e,hasIcon:t,icon:r}){return(0,Hi.jsxs)(Hi.Fragment,{children:[(0,Hi.jsx)(Cc.__experimentalToolsPanelItem,{label:(0,am.__)("Show icon button"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>e({hasIcon:!0}),children:(0,Hi.jsx)(Cc.ToggleControl,{label:(0,am.__)("Show icon button"),help:(0,am.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:o=>e({hasIcon:o}),checked:t})}),(0,Hi.jsx)(Cc.__experimentalToolsPanelItem,{label:(0,am.__)("Icon"),isShownByDefault:!0,hasValue:()=>r!=="handle",onDeselect:()=>e({icon:"handle"}),children:(0,Hi.jsxs)(Cc.__experimentalToggleGroupControl,{className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,am.__)("Icon"),value:r,onChange:o=>e({icon:o}),isBlock:!0,children:[(0,Hi.jsx)(Cc.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,am.__)("handle"),label:(0,Hi.jsx)(wc,{icon:"handle"})}),(0,Hi.jsx)(Cc.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,am.__)("menu"),label:(0,Hi.jsx)(wc,{icon:"menu"})})]})})]})}var VC=n(O(),1),hoe=n(N(),1),goe=n(H(),1);var Cl=n(H(),1),noe=n(ve(),1),RC=n(re(),1),AC=n(F(),1),xa=n(O(),1),fn=n(N(),1),PA=n(en(),1),aoe=n(Sr(),1);var Yre=n(H(),1),DC=n(F(),1),Qre=n(re(),1),Xre=n(P(),1),Jre=n(N(),1),mf=n(q(),1);var im=function(){return im=Object.assign||function(t){for(var r,o=1,a=arguments.length;o<a;o++){r=arguments[o];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},im.apply(this,arguments)};function Ure(e){return e.toLowerCase()}var y6e=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],_6e=/[^A-Z0-9]+/gi;function BC(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,o=r===void 0?y6e:r,a=t.stripRegexp,i=a===void 0?_6e:a,l=t.transform,s=l===void 0?Ure:l,c=t.delimiter,u=c===void 0?" ":c,p=Gre(Gre(e,o,"$1\0$2"),i,"\0"),m=0,d=p.length;p.charAt(m)==="\0";)m++;for(;p.charAt(d-1)==="\0";)d--;return p.slice(m,d).split("\0").map(s).join(u)}function Gre(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(o,a){return o.replace(a,r)},e)}function Wre(e){return e.charAt(0).toUpperCase()+e.substr(1)}function x6e(e){return Wre(e.toLowerCase())}function $re(e,t){return t===void 0&&(t={}),BC(e,im({delimiter:" ",transform:x6e},t))}function qre(e,t){return t===void 0&&(t={}),BC(e,im({delimiter:"."},t))}function IC(e,t){return t===void 0&&(t={}),qre(e,im({delimiter:"-"},t))}function SA(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function TA(e,t,r){if(!e)return;t(SA(e).color);let o=e,a=SA(o).backgroundColor;for(;a==="rgba(0, 0, 0, 0)"&&o.parentNode&&o.parentNode.nodeType===o.parentNode.ELEMENT_NODE;)o=o.parentNode,a=SA(o).backgroundColor;r(a)}function pf(e,t){let{textColor:r,customTextColor:o,backgroundColor:a,customBackgroundColor:i,overlayTextColor:l,customOverlayTextColor:s,overlayBackgroundColor:c,customOverlayBackgroundColor:u,style:p}=e,m={};return t&&s?m.customTextColor=s:t&&l?m.textColor=l:o?m.customTextColor=o:r?m.textColor=r:p?.color?.text&&(m.customTextColor=p.color.text),t&&u?m.customBackgroundColor=u:t&&c?m.backgroundColor=c:i?m.customBackgroundColor=i:a?m.backgroundColor=a:p?.color?.background&&(m.customTextColor=p.color.background),m}function NC(e){return{className:S("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 Zre=(e,t)=>{let r=e.toLowerCase(),o=t.map(i=>i.title.rendered.toLowerCase());if(!o.includes(r))return e;let a=2;for(;o.includes(`${r} ${a}`);)a++;return`${e} ${a}`},Kre=e=>IC(e).replace(/[^\w-]+/g,"")||"wp-custom-part";function eoe(e){let{saveEntityRecord:t}=(0,DC.useDispatch)(Qre.store),r=(0,DC.useSelect)(a=>U(a(Xre.store)).getPatternBySlug("core/navigation-overlay"),[]);return(0,Yre.useCallback)(async()=>{let a=e.filter(u=>u.title?.rendered),i=Zre((0,Jre.__)("Navigation Overlay"),a),l=Kre(i),s="";if(r?.content){let u=(0,mf.parse)(r.content,{__unstableSkipMigrationLogs:!0});s=(0,mf.serialize)(u)}else s=(0,mf.serialize)([(0,mf.createBlock)("core/paragraph")]);return await t("postType","wp_template_part",{slug:l,title:i,content:s,area:kc},{throwOnError:!0})},[e,t,r])}var cy=n(O(),1),toe=n(N(),1),roe=n(H(),1),LC=n(y(),1);function k6e({onClear:e,onCreate:t,isCreating:r=!1}){let o=(0,roe.createInterpolateElement)((0,toe.__)("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,LC.jsx)(cy.Button,{__next40pxDefaultSize:!0,onClick:e,variant:"link",disabled:r,accessibleWhenDisabled:!0}),createButton:(0,LC.jsx)(cy.Button,{__next40pxDefaultSize:!0,onClick:t,variant:"link",disabled:r,accessibleWhenDisabled:!0,isBusy:r})});return(0,LC.jsx)(cy.Notice,{status:"warning",isDismissible:!1,className:"wp-block-navigation__deleted-overlay-warning",children:o})}var ooe=k6e;var Po=n(y(),1);function EA({overlay:e,overlayMenu:t,setAttributes:r,onNavigateToEntityRecord:o,isCreatingOverlay:a,setIsCreatingOverlay:i}){let l=(0,noe.useInstanceId)(EA,"wp-block-navigation__overlay-selector-heading"),{records:s,isResolving:c,hasResolved:u}=(0,RC.useEntityRecords)("postType","wp_template_part",{per_page:-1}),{createErrorNotice:p}=(0,AC.useDispatch)(aoe.store),m=(0,AC.useSelect)(B=>B(RC.store).getCurrentTheme()?.stylesheet,[]),[d,f]=(0,Cl.useState)(!1),h=a!==void 0?a:d,g=i!==void 0?i:f,v=(0,Cl.useMemo)(()=>s?s.filter(B=>B.area===kc):[],[s]),b=eoe(v),_=(0,Cl.useMemo)(()=>!e||!v?null:v.find(B=>B.slug===e),[e,v]),k=(0,Cl.useMemo)(()=>{let B=[{label:(0,fn.__)("Default"),value:""}];if(!u||c)return B;let A=v.map(z=>({label:z.title?.rendered?(0,PA.decodeEntities)(z.title.rendered):z.slug,value:z.slug}));return e&&!_&&A.unshift({label:(0,fn.sprintf)((0,fn.__)("%s (missing)"),e),value:e}),[...B,...A]},[v,u,c,e,_]),x=B=>{r({overlay:B||void 0})},w=()=>{if(!e||!_||!o)return;let B=_.theme||m,z={postId:_a(B,e),postType:"wp_template_part"};t==="mobile"&&(z.viewport="mobile"),o(z)},C=(0,Cl.useCallback)(async()=>{try{g(!0);let B=await b();if(r({overlay:B.slug}),o){let A=B.theme||m,j={postId:_a(A,B.slug),postType:"wp_template_part"};t==="mobile"&&(j.viewport="mobile"),o(j)}else g(!1)}catch(B){let A=B instanceof Error&&"code"in B&&B.message&&B.code!=="unknown_error"?B.message:(0,fn.__)("An error occurred while creating the overlay.");p(A,{type:"snackbar"}),g(!1)}},[b,r,o,p,m,g,t]),T=(0,Cl.useCallback)(()=>{r({overlay:void 0})},[r]),I=c||h,D=(0,Cl.useMemo)(()=>e&&u&&!c&&!_,[e,u,c,_]),L=(0,Cl.useMemo)(()=>v.length===0&&u?(0,fn.__)("No overlays found."):(0,fn.__)("Select an overlay for navigation."),[v.length,u]),E=(0,Cl.useMemo)(()=>_?(0,fn.sprintf)((0,fn.__)("Edit overlay: %s"),_.title?.rendered?(0,PA.decodeEntities)(_.title.rendered):_.slug):(0,fn.__)("Edit overlay"),[_]);return(0,Po.jsxs)("div",{className:"wp-block-navigation__overlay-selector",children:[(0,Po.jsx)("h3",{id:l,className:"wp-block-navigation__overlay-selector-header",children:(0,fn.__)("Overlay template")}),u&&(v.length===0||h&&v.length===1)?(0,Po.jsx)(Po.Fragment,{children:(0,Po.jsx)(xa.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:C,disabled:I,accessibleWhenDisabled:!0,isBusy:h,className:"wp-block-navigation__overlay-create-button-prominent",children:(0,fn.__)("Create overlay")})}):(0,Po.jsxs)(Po.Fragment,{children:[(0,Po.jsx)(xa.Button,{size:"small",icon:_h,onClick:C,disabled:I,accessibleWhenDisabled:!0,isBusy:h,label:(0,fn.__)("Create new overlay template"),showTooltip:!0,className:"wp-block-navigation__overlay-create-button"}),(0,Po.jsxs)(xa.__experimentalHStack,{alignment:"flex-start",className:"wp-block-navigation__overlay-selector-controls",children:[(0,Po.jsx)(xa.FlexBlock,{children:(0,Po.jsx)(xa.SelectControl,{label:(0,fn.__)("Overlay template"),hideLabelFromVision:!0,"aria-labelledby":l,value:e||"",options:k,onChange:x,disabled:c,accessibleWhenDisabled:!0,help:L})}),e&&u&&_&&(0,Po.jsx)(xa.FlexItem,{children:(0,Po.jsx)(xa.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:w,disabled:!o,accessibleWhenDisabled:!0,label:E,showTooltip:!0,className:"wp-block-navigation__overlay-edit-button",children:(0,fn.__)("Edit")})})]}),D&&(0,Po.jsx)(ooe,{onClear:T,onCreate:C,isCreating:h})]}),(0,Po.jsx)(xa.__experimentalHStack,{alignment:"flex-start",className:"wp-block-navigation__overlay-help-text-wrapper",children:(0,Po.jsx)(xa.__experimentalText,{variant:"muted",isBlock:!0,className:"wp-block-navigation__overlay-help-text",children:(0,fn.__)("An overlay template allows you to customize the appearance of the dialog that opens when the menu button is pressed.")})})]})}var o0=n(O(),1),df=n(N(),1),n0=n(y(),1);function ioe({overlayMenu:e,setAttributes:t}){return(0,n0.jsxs)(o0.__experimentalToggleGroupControl,{label:(0,df.__)("Overlay Visibility"),"aria-label":(0,df.__)("Configure overlay visibility"),value:e,help:(0,df.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:r=>t({overlayMenu:r}),isBlock:!0,children:[(0,n0.jsx)(o0.__experimentalToggleGroupControlOption,{value:"never",label:(0,df.__)("Off")}),(0,n0.jsx)(o0.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,df.__)("Mobile")}),(0,n0.jsx)(o0.__experimentalToggleGroupControlOption,{value:"always",label:(0,df.__)("Always")})]})}var zC=n(O(),1),MC=n(N(),1);var Nu=n(O(),1),a0=n(N(),1);var Iu=n(y(),1);function loe({hasIcon:e,icon:t,setAttributes:r}){return(0,Iu.jsxs)(Nu.__experimentalVStack,{spacing:4,children:[(0,Iu.jsx)(Nu.ToggleControl,{label:(0,a0.__)("Show icon button"),help:(0,a0.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:o=>r({hasIcon:o}),checked:e}),(0,Iu.jsxs)(Nu.__experimentalToggleGroupControl,{className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,a0.__)("Icon"),value:t,onChange:o=>r({icon:o}),isBlock:!0,children:[(0,Iu.jsx)(Nu.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,a0.__)("handle"),label:(0,Iu.jsx)(wc,{icon:"handle"})}),(0,Iu.jsx)(Nu.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,a0.__)("menu"),label:(0,Iu.jsx)(wc,{icon:"menu"})})]})]})}var Un=n(y(),1);function soe({isResponsive:e,overlayMenuPreview:t,setOverlayMenuPreview:r,hasIcon:o,icon:a,setAttributes:i,overlayMenuPreviewClasses:l,overlayMenuPreviewId:s,containerStyle:c}){return e?(0,Un.jsxs)(Un.Fragment,{children:[(0,Un.jsxs)(zC.Button,{__next40pxDefaultSize:!0,className:l,onClick:()=>r(!t),"aria-label":(0,MC.__)("Overlay menu controls"),"aria-controls":s,"aria-expanded":t,children:[o&&(0,Un.jsxs)(Un.Fragment,{children:[(0,Un.jsx)(wc,{icon:a}),(0,Un.jsx)(aa,{icon:Km})]}),!o&&(0,Un.jsxs)(Un.Fragment,{children:[(0,Un.jsx)("span",{children:(0,MC.__)("Menu")}),(0,Un.jsx)("span",{children:(0,MC.__)("Close")})]})]}),t&&(0,Un.jsx)(zC.__experimentalVStack,{id:s,spacing:4,style:c,children:(0,Un.jsx)(loe,{hasIcon:o,icon:a,setAttributes:i})})]}):null}var coe=n(F(),1),uoe=n(re(),1),BA=n(H(),1),poe=n(q(),1),moe=n(O(),1),doe=n(N(),1),IA=n(P(),1);var ff=n(y(),1);function foe({overlay:e,currentTheme:t}){let r=(0,BA.useMemo)(()=>!e||!t?null:_a(t,e),[t,e]),{content:o,editedBlocks:a,hasResolved:i}=(0,coe.useSelect)(s=>{if(!r)return{content:null,editedBlocks:null,hasResolved:!0};let{getEditedEntityRecord:c,hasFinishedResolution:u}=s(uoe.store),p=c("postType","wp_template_part",r,{context:"view"});return{content:p?.content,editedBlocks:p?.blocks,hasResolved:u("getEditedEntityRecord",["postType","wp_template_part",r,{context:"view"}])}},[r]),l=(0,BA.useMemo)(()=>r?a&&a.length>0?a:o&&typeof o=="string"?(0,poe.parse)(o):[]:null,[r,a,o]);return e?i?(0,ff.jsx)("div",{className:"wp-block-navigation__overlay-preview","aria-label":(0,doe.__)("Navigation Overlay template part preview"),role:"region",children:(0,ff.jsx)(IA.BlockPreview.Async,{placeholder:(0,ff.jsx)("div",{className:"wp-block-navigation__overlay-preview-placeholder"}),children:(0,ff.jsx)(IA.BlockPreview,{blocks:l,viewportWidth:400,minHeight:200})})}):(0,ff.jsx)("div",{className:"wp-block-navigation__overlay-preview-loading",children:(0,ff.jsx)(moe.Spinner,{})}):null}var lm=n(y(),1);function voe({overlayMenu:e,overlay:t,setAttributes:r,onNavigateToEntityRecord:o,overlayMenuPreview:a,setOverlayMenuPreview:i,hasIcon:l,icon:s,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u,isResponsive:p,currentTheme:m,hasOverlays:d}){let[f,h]=(0,goe.useState)(!1);return(0,lm.jsx)(VC.PanelBody,{title:(0,hoe.__)("Overlay"),initialOpen:!0,children:(0,lm.jsxs)(VC.__experimentalVStack,{spacing:4,children:[(0,lm.jsx)(ioe,{overlayMenu:e,setAttributes:r}),e!=="never"&&(0,lm.jsx)(soe,{isResponsive:p,overlayMenuPreview:a,setOverlayMenuPreview:i,hasIcon:l,icon:s,setAttributes:r,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u}),e!=="never"&&(0,lm.jsx)(EA,{overlay:t,overlayMenu:e,setAttributes:r,onNavigateToEntityRecord:o,isCreatingOverlay:f,setIsCreatingOverlay:h}),e!=="never"&&t&&d&&!f&&(0,lm.jsx)(foe,{overlay:t,currentTheme:m})]})})}var jC=n(F(),1),DA=n(re(),1),l0=n(H(),1),Sc=n(N(),1);var uy=n(q(),1),_oe=n(bu(),1);var NA=n(H(),1),OC=n(P(),1),boe=n(F(),1),yoe=n(re(),1);function i0(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 ji({clientId:e,attributes:t}){let{updateBlockBindings:r}=(0,OC.useBlockBindingsUtils)(e),{metadata:o,id:a,kind:i,type:l}=t,s=(0,OC.useBlockEditingMode)(),c=!!o?.bindings?.url&&!!a,u=i==="post-type"?"core/post-data":"core/term-data",p=c&&o?.bindings?.url?.source===u,{isBoundEntityAvailable:m,entityRecord:d}=(0,boe.useSelect)(g=>{if(!p||!a)return{isBoundEntityAvailable:!1,entityRecord:null};let v=i==="post-type",b=i==="taxonomy";if(!v&&!b)return{isBoundEntityAvailable:!1,entityRecord:null};if(s==="disabled")return{isBoundEntityAvailable:!0,entityRecord:null};let{getEntityRecord:_,hasFinishedResolution:k}=g(yoe.store),x=b?"taxonomy":"postType",w=l==="tag"?"post_tag":l,C=_(x,w,a);return{isBoundEntityAvailable:k("getEntityRecord",[x,w,a])?C!==void 0:!0,entityRecord:C||null}},[i,l,a,p,s]),f=(0,NA.useCallback)(()=>{c&&r({url:void 0})},[r,c]),h=(0,NA.useCallback)(g=>{let v=g?.kind??i;if(v)try{let b=i0(v);r(b)}catch(b){console.warn("Failed to create entity binding:",b.message)}},[r,i]);return{hasUrlBinding:p,isBoundEntityAvailable:m,entityRecord:d,clearBinding:f,createBinding:h}}function xoe(e){if(!e)return null;let t=C6e(e),r=koe(t);return(0,_oe.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",r,e)}function koe(e,t=0){let r={};return{innerBlocks:[...e].sort((i,l)=>i.menu_order-l.menu_order).map(i=>{if(i.type==="block"){let[m]=(0,uy.parse)(i.content.raw);return m||(0,uy.createBlock)("core/freeform",{content:i.content})}let l=i.children?.length?"core/navigation-submenu":"core/navigation-link",s=w6e(i,l,t),{innerBlocks:c=[],mapping:u={}}=i.children?.length?koe(i.children,t+1):{};r={...r,...u};let p=(0,uy.createBlock)(l,s,c);return r[i.id]=p.clientId,p}),mapping:r}}function w6e({title:e,xfn:t,classes:r,attr_title:o,object:a,object_id:i,description:l,url:s,type:c,target:u},p,m){a&&a==="post_tag"&&(a="tag");let d=c?.replace("_","-")||"custom";return{label:e?.rendered||"",...a?.length&&{type:a},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:i0(d)}},...l?.length&&{description:l},...u==="_blank"&&{opensInNewTab:!0},...p==="core/navigation-submenu"&&{isTopLevelItem:m===0},...p==="core/navigation-link"&&{isTopLevelLink:m===0}}}function C6e(e,t="id",r="parent"){let o=Object.create(null),a=[];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]])):a.push(o[i[t]]);return a}var LA="success",HC="error",UC="pending",S6e="idle",FC=null;function T6e(e,{throwOnError:t=!1}={}){let r=(0,jC.useRegistry)(),{editEntityRecord:o}=(0,jC.useDispatch)(DA.store),[a,i]=(0,l0.useState)(S6e),[l,s]=(0,l0.useState)(null),c=(0,l0.useCallback)(async(p,m,d="publish")=>{let f,h;try{h=await r.resolveSelect(DA.store).getMenuItems({menus:p,per_page:-1,context:"view"})}catch(v){throw new Error((0,Sc.sprintf)((0,Sc.__)('Unable to fetch classic menu "%s" from API.'),m),{cause:v})}if(h===null)throw new Error((0,Sc.sprintf)((0,Sc.__)('Unable to fetch classic menu "%s" from API.'),m));let{innerBlocks:g}=xoe(h);try{f=await e(m,g,d),await o("postType","wp_navigation",f.id,{status:"publish"},{throwOnError:!0})}catch(v){throw new Error((0,Sc.sprintf)((0,Sc.__)('Unable to create Navigation Menu "%s".'),m),{cause:v})}return f},[e,o,r]);return{convert:(0,l0.useCallback)(async(p,m,d)=>{if(FC!==p){if(FC=p,!p||!m){s("Unable to convert menu. Missing menu details."),i(HC);return}return i(UC),s(null),await c(p,m,d).then(f=>(i(LA),FC=null,f)).catch(f=>{if(s(f?.message),i(HC),FC=null,t)throw new Error((0,Sc.sprintf)((0,Sc.__)('Unable to create Navigation Menu "%s".'),m),{cause:f})})}},[c,t]),status:a,error:l}}var woe=T6e;var Aoe=n(q(),1),Moe=n(re(),1),zoe=n(F(),1),c0=n(H(),1);var Eoe=n(O(),1),Boe=n(re(),1),Ioe=n(F(),1),GC=n(H(),1),py=n(N(),1);var Coe=n(P(),1),Soe=n(re(),1),Toe=n(F(),1);var s0=e=>e==="header"?gE:e==="footer"?XP:e==="sidebar"?wI:e==="navigation-overlay"?aB:Iv;function Poe(e){return(0,Toe.useSelect)(t=>{if(!e)return;let{getBlock:r,getBlockParentsByBlockName:o}=t(Coe.store),i=o(e,"core/template-part",!0);if(!i?.length)return;let{getCurrentTheme:l,getEditedEntityRecord:s}=t(Soe.store),c=l(),p=(c?.default_template_part_areas||[]).map(m=>({...m,icon:s0(m.icon)}));for(let m of i){let d=r(m),{theme:f=c?.stylesheet,slug:h}=d.attributes,g=_a(f,h),v=s("postType","wp_template_part",g);if(v?.area)return p.find(b=>b.area!=="uncategorized"&&b.area===v.area)?.label}},[e])}var P6e=["postType","wp_navigation",{status:"draft",per_page:-1}],E6e=["postType","wp_navigation",{per_page:-1,status:"publish"}];function Noe(e){let t=(0,GC.useContext)(Eoe.Disabled.Context),r=Poe(t?void 0:e),o=(0,Ioe.useRegistry)();return(0,GC.useCallback)(async()=>{if(t)return"";let{getEntityRecords:a}=o.resolveSelect(Boe.store),[i,l]=await Promise.all([a(...P6e),a(...E6e)]),s=r?(0,py.sprintf)((0,py.__)("%s menu"),r):(0,py.__)("Menu"),c=[...i,...l].reduce((p,m)=>m?.title?.raw?.startsWith(s)?p+1:p,0);return(c>0?`${s} ${c+1}`:s)||""},[t,r,o])}var Doe="success",WC="error",Loe="pending",Roe="idle";function Voe(e){let[t,r]=(0,c0.useState)(Roe),[o,a]=(0,c0.useState)(null),[i,l]=(0,c0.useState)(null),{saveEntityRecord:s,editEntityRecord:c}=(0,zoe.useDispatch)(Moe.store),u=Noe(e);return{create:(0,c0.useCallback)(async(m=null,d=[],f)=>{if(m&&typeof m!="string")throw l("Invalid title supplied when creating Navigation Menu."),r(WC),new Error("Value of supplied title argument was not a string.");r(Loe),a(null),l(null),m||(m=await u().catch(g=>{throw l(g?.message),r(WC),new Error("Failed to create title when saving new Navigation Menu.",{cause:g})}));let h={title:m,content:(0,Aoe.serialize)(d),status:f};return s("postType","wp_navigation",h).then(g=>(a(g),r(Doe),f!=="publish"&&c("postType","wp_navigation",g.id,{status:"publish"}),g)).catch(g=>{throw l(g?.message),r(WC),new Error("Unable to save new Navigation Menu",{cause:g})})},[s,c,u]),status:t,value:o,error:i,isIdle:t===Roe,isPending:t===Loe,isSuccess:t===Doe,isError:t===WC}}var Ooe=n(F(),1),Foe=n(P(),1),B6e=[];function Hoe(e){return(0,Ooe.useSelect)(t=>{let{getBlock:r,getBlocks:o,hasSelectedInnerBlock:a}=t(Foe.store),i=r(e).innerBlocks,l=!!i?.length,s=l?B6e:o(e);return{innerBlocks:l?i:s,hasUncontrolledInnerBlocks:l,uncontrolledInnerBlocks:i,controlledInnerBlocks:s,isInnerBlockSelected:a(e,!0)}},[e])}var joe=n(pr(),1),$C=n(O(),1),Uoe=n(N(),1),Goe=n(y(),1),I6e=({className:e="",disabled:t,isMenuItem:r=!1})=>{let o=$C.Button;return r&&(o=$C.MenuItem),(0,Goe.jsx)(o,{variant:"link",disabled:t,className:e,href:(0,joe.addQueryArgs)("edit.php",{post_type:"wp_navigation"}),children:(0,Uoe.__)("Manage menus")})},Woe=I6e;var um=n(P(),1),Ty=n(O(),1),sS=n(F(),1),cm=n(N(),1),Sne=n(H(),1);var $oe=n(P(),1),ZC=n(O(),1),qoe=n(N(),1),KC=n(H(),1),qC=n(y(),1);function N6e({onCreateNew:e,isNotice:t=!1}){let[r,o]=(0,KC.useState)(!1),a=()=>{o(!0),e()},i=(0,KC.createInterpolateElement)((0,qoe.__)("Navigation Menu has been deleted or is unavailable. <button>Create a new Menu?</button>"),{button:(0,qC.jsx)(ZC.Button,{__next40pxDefaultSize:!0,onClick:a,variant:"link",disabled:r,accessibleWhenDisabled:!0})});return t?(0,qC.jsx)(ZC.Notice,{status:"warning",isDismissible:!1,children:i}):(0,qC.jsx)($oe.Warning,{children:i})}var YC=N6e;var hf=n(q(),1);var Ui=n(O(),1),my=n(F(),1),Ps=n(N(),1),u0=n(P(),1);var Ho=n(y(),1),D6e={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},L6e=["core/navigation-link","core/navigation-submenu"];function R6e({block:e,onClose:t,expandedState:r,expand:o,setInsertedBlock:a}){let{insertBlock:i,replaceBlock:l,replaceInnerBlocks:s}=(0,my.useDispatch)(u0.store),c=e.clientId,u=!L6e.includes(e.name);return(0,Ho.jsx)(Ui.MenuItem,{icon:Zm,disabled:u,onClick:()=>{let m=(0,hf.createBlock)(Oi.name,Oi.attributes);if(e.name==="core/navigation-submenu")i(m,e.innerBlocks.length,c,!1);else{let d=(0,hf.createBlock)("core/navigation-submenu",e.attributes,e.innerBlocks);l(c,d),s(d.clientId,[m],!1)}a(m),r[e.clientId]||o(e.clientId),t()},children:(0,Ps.__)("Add submenu link")})}function Zoe(e){let{block:t}=e,{clientId:r}=t,{moveBlocksDown:o,moveBlocksUp:a,removeBlocks:i,duplicateBlocks:l,insertBeforeBlock:s,insertAfterBlock:c}=(0,my.useDispatch)(u0.store),u=(0,Ps.sprintf)((0,Ps.__)("Remove %s"),(0,u0.BlockTitle)({clientId:r,maximumLength:25})),{rootClientId:p,canDuplicate:m,canInsertBlock:d,isFirst:f,isLast:h}=(0,my.useSelect)(g=>{let{getBlockRootClientId:v,canInsertBlockType:b,getDirectInsertBlock:_,getBlockIndex:k,getBlockCount:x}=g(u0.store),{getDefaultBlockName:w}=g(hf.store),C=v(r),T=b(w(),C),I=C?_(C):null;return{rootClientId:C,canDuplicate:!!t&&(0,hf.hasBlockSupport)(t.name,"multiple",!0)&&b(t.name,C),canInsertBlock:(T||!!I)&&!!t&&b(t.name,C),isFirst:k(r)===0,isLast:k(r)===x(C)-1}},[r,t]);return(0,Ho.jsx)(Ui.DropdownMenu,{icon:mv,label:(0,Ps.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:D6e,noIcons:!0,...e,children:({onClose:g})=>(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsxs)(Ui.MenuGroup,{children:[(0,Ho.jsx)(Ui.MenuItem,{icon:xP,disabled:f,accessibleWhenDisabled:!0,onClick:()=>{a([r],p),g()},children:(0,Ps.__)("Move up")}),(0,Ho.jsx)(Ui.MenuItem,{icon:W1,disabled:h,accessibleWhenDisabled:!0,onClick:()=>{o([r],p),g()},children:(0,Ps.__)("Move down")}),(0,Ho.jsx)(R6e,{block:t,onClose:g,expandedState:e.expandedState,expand:e.expand,setInsertedBlock:e.setInsertedBlock}),m&&(0,Ho.jsx)(Ui.MenuItem,{onClick:()=>{l([r]),g()},children:(0,Ps.__)("Duplicate")}),d&&(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsx)(Ui.MenuItem,{onClick:()=>{s(r),g()},children:(0,Ps.__)("Add before")}),(0,Ho.jsx)(Ui.MenuItem,{onClick:()=>{c(r),g()},children:(0,Ps.__)("Add after")})]})]}),(0,Ho.jsx)(Ui.MenuGroup,{children:(0,Ho.jsx)(Ui.MenuItem,{onClick:()=>{i([r],!1),g()},children:u})})]})})}var bne=n(P(),1),yne=n(F(),1);var Uo=n(O(),1),er=n(N(),1),dne=n(Pn(),1),yy=n(P(),1),oS=n(F(),1),fne=n(re(),1);var Yoe=n(H(),1),Qoe=n(F(),1),Xoe=n(P(),1),Joe=n(Pn(),1),ene=n(RA(),1);var AA=n(RA(),1),dy=n(pr(),1),A6e=(e,t)=>{if(!e||!t)return!1;let r=h=>h?h.replace(/\/+$/,""):"",o=(h,g=null)=>{try{let v=g||(typeof window<"u"?window.location.origin:"https://wordpress.org");return new URL(h,v)}catch{return null}},a=o(e);if(!a)return!0;let i=o(t,e);if(!i)return!0;let l=a.hostname,s=i.hostname,c=r((0,dy.getPath)(a.toString())),u=r((0,dy.getPath)(i.toString()));if(l!==s||c!==u)return!0;let p=a.searchParams.get("p"),m=i.searchParams.get("p");if(p&&m&&p!==m)return!0;let d=a.searchParams.get("page_id"),f=i.searchParams.get("page_id");return!!(d&&f&&d!==f||p&&f||d&&m)},fy=(e={},t,r={})=>{let{label:o="",kind:a="",type:i=""}=r,{title:l="",label:s="",url:c,opensInNewTab:u,id:p,kind:m=a,type:d=i}=e,f=l||s,h=f.replace(/http(s?):\/\//gi,""),g=c?.replace(/http(s?):\/\//gi,"")??"",b=f&&f!==o&&h!==g?(0,AA.escapeHTML)(f):o||(0,AA.escapeHTML)(g),_=d==="post_tag"?"tag":d.replace("-","_"),k=["post","page","tag","category"].indexOf(_)>-1,w=!m&&!k||m==="custom"?"custom":m,C={...c!==void 0?{url:c&&encodeURI((0,dy.safeDecodeURI)(c))}:{},...b&&{label:b},...u!==void 0&&{opensInNewTab:u},...w&&{kind:w},..._&&_!=="URL"&&{type:_}};c&&!p&&r.id?A6e(r.url,c)&&(C.id=void 0,C.kind="custom",C.type="custom"):p&&Number.isInteger(p)?C.id=p:r.id&&(C.kind=w,C.type=_),t(C);let T="id"in C?C.id:r.id,I="kind"in C?C.kind:r.kind;return{isEntityLink:!!T&&I!=="custom",attributes:C}};function gf({clientId:e,attributes:t,setAttributes:r,allowTextUpdate:o=!1}){let{updateBlockAttributes:a}=(0,Qoe.useDispatch)(Xoe.store),{hasUrlBinding:i,createBinding:l,clearBinding:s}=ji({clientId:e,attributes:t});return(0,Yoe.useCallback)(c=>{if(!c)return;let u={url:c.url,kind:c.kind,type:c.type,id:c.id},p=t.label?(0,Joe.__unstableStripHTML)(t.label):"",m=c.title??"",d=o&&c.title!==void 0&&m!==p,f=d?{label:(0,ene.escapeHTML)(m)}:{};if((!t.label||t.label===""||d)&&(u.title=c.title),!c.id&&i)s(),a(e,{url:c.url,kind:"custom",type:"custom",id:void 0,...f});else{let{isEntityLink:g,attributes:v}=fy(u,r,t);g?l(v):s(),Object.keys(f).length&&a(e,f)}},[t,o,e,i,l,s,r,a])}var tS=n(Pn(),1),vf=n(O(),1),vy=n(N(),1),rS=n(P(),1),Gn=n(H(),1),ine=n(re(),1);var HA=n(ve(),1);var lne=n(pr(),1);var Ja=n(O(),1),Gi=n(N(),1),gy=n(F(),1),JC=n(re(),1),rne=n(Sr(),1),zA=n(en(),1),VA=n(H(),1);var tne=n(O(),1),QC=n(N(),1);var hy=n(ve(),1);var sm=n(y(),1);function M6e({className:e,onBack:t}){return(0,sm.jsx)(tne.Button,{className:e,icon:(0,QC.isRTL)()?bP:hP,onClick:r=>{r.preventDefault(),t()},size:"small",children:(0,QC.__)("Back")})}function MA({className:e,title:t,description:r,onBack:o,children:a}){let i=(0,hy.useInstanceId)(MA,"link-ui-dialog-title"),l=(0,hy.useInstanceId)(MA,"link-ui-dialog-description"),s=(0,hy.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)(gi,{children:[(0,sm.jsx)("h2",{id:i,children:t}),(0,sm.jsx)("p",{id:l,children:r})]}),(0,sm.jsx)(M6e,{className:c,onBack:o}),a]})}var XC=MA;var Sl=n(y(),1);function one({postType:e,onBack:t,onPageCreated:r,initialTitle:o=""}){let[a,i]=(0,VA.useState)(o),[l,s]=(0,VA.useState)(!0),c=a.trim().length>0,{lastError:u,isSaving:p}=(0,gy.useSelect)(v=>({lastError:v(JC.store).getLastEntitySaveError("postType",e),isSaving:v(JC.store).isSavingEntityRecord("postType",e)}),[e]),{saveEntityRecord:m}=(0,gy.useDispatch)(JC.store),{createSuccessNotice:d,createErrorNotice:f}=(0,gy.useDispatch)(rne.store);async function h(v){if(v.preventDefault(),!(p||!c))try{let b=await m("postType",e,{title:a,status:l?"publish":"draft"},{throwOnError:!0});if(b){let _={id:b.id,type:e,title:(0,zA.decodeEntities)(b.title.rendered),url:b.link,kind:"post-type"};d((0,Gi.sprintf)((0,Gi.__)("%s page created successfully."),(0,zA.decodeEntities)(b.title.rendered)),{type:"snackbar",id:"page-created-success"}),r(_)}}catch{f((0,Gi.__)("Failed to create page. Please try again."),{type:"snackbar",id:"page-created-error"})}}let g=p||!c;return(0,Sl.jsx)(XC,{className:"link-ui-page-creator",title:(0,Gi.__)("Create page"),description:(0,Gi.__)("Create a new page to add to your Navigation."),onBack:t,children:(0,Sl.jsx)(Ja.__experimentalVStack,{className:"link-ui-page-creator__inner",spacing:4,children:(0,Sl.jsx)("form",{onSubmit:h,children:(0,Sl.jsxs)(Ja.__experimentalVStack,{spacing:4,children:[(0,Sl.jsx)(Ja.TextControl,{label:(0,Gi.__)("Title"),onChange:i,placeholder:(0,Gi.__)("No title"),value:a}),(0,Sl.jsx)(Ja.CheckboxControl,{label:(0,Gi.__)("Publish"),help:(0,Gi.__)("Turn off to save as a draft. Drafts won't appear on your site until published."),checked:l,onChange:s}),u&&(0,Sl.jsx)(Ja.Notice,{status:"error",isDismissible:!1,children:u.message}),(0,Sl.jsxs)(Ja.__experimentalHStack,{spacing:2,justify:"flex-end",children:[(0,Sl.jsx)(Ja.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,disabled:p,accessibleWhenDisabled:!0,children:(0,Gi.__)("Cancel")}),(0,Sl.jsx)(Ja.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:p,"aria-disabled":g,children:(0,Gi.__)("Create page")})]})]})})})})}var OA=n(N(),1),nne=n(F(),1),eS=n(P(),1);var FA=n(y(),1),{PrivateQuickInserter:z6e}=U(eS.privateApis);function V6e({clientId:e,onBack:t,onBlockInsert:r}){let{rootBlockClientId:o}=(0,nne.useSelect)(a=>{let{getBlockRootClientId:i}=a(eS.store);return{rootBlockClientId:i(e)}},[e]);return e?(0,FA.jsx)(XC,{className:"link-ui-block-inserter",title:(0,OA.__)("Add block"),description:(0,OA.__)("Choose a block to add to your Navigation."),onBack:t,children:(0,FA.jsx)(z6e,{rootClientId:o,clientId:e,isAppender:!1,prioritizePatterns:!1,selectBlockOnInsert:!r,onSelect:r||void 0,hasSearch:!1})}):null}var ane=V6e;var ei=n(y(),1);function jA(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 O6e(e,t){let{label:r,url:o,opensInNewTab:a,type:i,kind:l,id:s}=e.link,{entityRecord:c,hasBinding:u,isEntityAvailable:p}=e.entity||{},{image:m,badges:d}=by({url:o,entityRecord:c,type:i,hasBinding:u,isEntityAvailable:p}),{clientId:f}=e,h=i||"page",[g,v]=(0,Gn.useState)(!1),[b,_]=(0,Gn.useState)(!1),[k,x]=(0,Gn.useState)(null),[w,C]=(0,Gn.useState)(""),T=(0,Gn.useRef)(""),I=V=>{T.current=V,C(V)},D=(0,Gn.useRef)(),L=(0,Gn.useRef)(),E=(0,Gn.useRef)(),B=(0,ine.useResourcePermissions)({kind:"postType",name:h}),{isBoundEntityAvailable:A}=ji({clientId:f,attributes:e.link}),z=(0,Gn.useMemo)(()=>({url:o,opensInNewTab:a,title:r&&(0,tS.__unstableStripHTML)(r),entityTitle:c?.title?.rendered||c?.name,kind:l,type:i,id:s,image:m,badges:d}),[r,a,o,l,i,s,m,d,c]),j=V=>{e.onChange(V),_(!1),x(!0),I("")},G=(0,HA.useInstanceId)(Du,"link-ui-link-control__title"),W=(0,HA.useInstanceId)(Du,"link-ui-link-control__description");(0,Gn.useEffect)(()=>{k&&D.current&&(k?.current?k.current.focus():(tS.focus.tabbable.find(D.current)[0]||D.current).focus(),x(!1))},[k]);let $=(0,rS.useBlockEditingMode)();return(0,ei.jsxs)(vf.Popover,{ref:t,placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0,children:[!g&&!b&&(0,ei.jsxs)("div",{ref:D,role:"dialog","aria-labelledby":G,"aria-describedby":W,children:[(0,ei.jsxs)(gi,{children:[(0,ei.jsx)("h2",{id:G,children:(0,vy.__)("Add link")}),(0,ei.jsx)("p",{id:W,children:(0,vy.__)("Search for and add a link to your Navigation.")})]}),(0,ei.jsx)(rS.LinkControl,{hasTextControl:!0,hasRichPreviews:!0,value:z,showInitialSuggestions:!0,withCreateSuggestion:!1,noDirectEntry:!!i,noURLSuggestion:!!i,suggestionsQuery:jA(i,l),onChange:e.onChange,onInputChange:V=>{T.current=V},inputValue:w,onRemove:e.onRemove,onCancel:e.onCancel,handleEntities:A,forceIsEditingLink:z?.url?!1:void 0,renderControlBottom:()=>z?.url?.length?null:(0,ei.jsx)(F6e,{addPageButtonRef:L,addBlockButtonRef:E,setAddingBlock:()=>{v(!0)},setAddingPage:()=>{_(!0)},canAddPage:B?.canCreate&&i==="page",canAddBlock:$==="default"})})]}),g&&(0,ei.jsx)(ane,{clientId:e.clientId,onBack:()=>{v(!1),x(E),I(T.current)},onBlockInsert:e?.onBlockInsert}),b&&(0,ei.jsx)(one,{postType:h,onBack:()=>{_(!1),x(L),I(T.current)},onPageCreated:j,initialTitle:T.current&&!(0,lne.isURL)(T.current)?T.current:""})]})}var Du=(0,Gn.forwardRef)(O6e),F6e=({addPageButtonRef:e,addBlockButtonRef:t,setAddingBlock:r,setAddingPage:o,canAddPage:a,canAddBlock:i})=>{let l="listbox";return!a&&!i?null:(0,ei.jsxs)(vf.__experimentalVStack,{spacing:0,className:"link-ui-tools",children:[a&&(0,ei.jsx)(vf.Button,{__next40pxDefaultSize:!0,ref:e,icon:_h,onClick:s=>{s.preventDefault(),o(!0)},"aria-haspopup":l,children:(0,vy.__)("Create page")}),i&&(0,ei.jsx)(vf.Button,{__next40pxDefaultSize:!0,ref:t,icon:_h,onClick:s=>{s.preventDefault(),r(!0)},"aria-haspopup":l,children:(0,vy.__)("Add block")})]})};var hn=n(N(),1),WA=n(pr(),1),sne=n(P(),1),UA=n(F(),1),GA=n(re(),1);var{useRemoteUrlData:H6e,isHashLink:cne,isRelativePath:j6e}=U(sne.privateApis);function U6e(e){return e.charAt(0).toUpperCase()+e.slice(1)}function G6e(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 a=r.pathname.replace(/\/$/,""),i=o.pathname.replace(/\/$/,"");return a===i}catch{return!1}}function W6e({linkUrl:e,homeUrl:t}={}){if(!e)return{displayUrl:"",isExternal:!1};let r=(0,WA.safeDecodeURI)(e),o=!1;if(j6e(e)||cne(e))return{displayUrl:r,isExternal:!1};try{let a=new URL(e),i=new URL(t).host;if(a.host===i){let l=a.pathname+a.search+a.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 $6e({url:e,homeUrl:t,type:r,isExternal:o,entityStatus:a,hasBinding:i,isEntityAvailable:l}){let s=[];if(e&&(o?s.push({label:(0,hn.__)("External link"),intent:"default"}):cne(e)?s.push({label:(0,hn.__)("Internal link"),intent:"default"}):G6e(e,t)?s.push({label:(0,hn.__)("Homepage"),intent:"default"}):r&&r!=="custom"?s.push({label:U6e(r),intent:"default"}):s.push({label:(0,hn.__)("Page"),intent:"default"})),i&&!l)s.push({label:(0,hn.sprintf)((0,hn.__)("Missing %s"),r),intent:"error"});else if(!e)s.push({label:(0,hn.__)("No link selected"),intent:"error"});else if(a){let u={publish:{label:(0,hn.__)("Published"),intent:"success"},future:{label:(0,hn.__)("Scheduled"),intent:"warning"},draft:{label:(0,hn.__)("Draft"),intent:"warning"},pending:{label:(0,hn.__)("Pending"),intent:"warning"},private:{label:(0,hn.__)("Private"),intent:"default"},trash:{label:(0,hn.__)("Trash"),intent:"error"}}[a];u&&s.push(u)}return s}function q6e(e){let t=e?.title;return typeof t=="string"?t:t&&"rendered"in t?t.rendered||(0,hn.__)("(no title)"):e?.name}function by({url:e,entityRecord:t,type:r,hasBinding:o,isEntityAvailable:a}){let i=(0,UA.useSelect)(f=>f(GA.store).getEntityRecord("root","__unstableBase")?.home,[]),l=q6e(t),{richData:s}=H6e(l?null:e),{displayUrl:c,isExternal:u}=W6e({linkUrl:e,homeUrl:i}),p=(0,UA.useSelect)(f=>{if(!t?.featured_media)return null;let{getEntityRecord:h}=f(GA.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]),m=$6e({url:e,homeUrl:i,type:r,isExternal:u,entityStatus:t?.status,hasBinding:o,isEntityAvailable:a});return{title:e?l||s?.title||(0,WA.safeDecodeURI)(e):(0,hn.__)("Add link"),url:c,image:p,badges:m}}var une=n(F(),1),pne=n(re(),1),mne=n(P(),1),bf=(e,t,r,o)=>{let a=e==="post-type"||t==="post"||t==="page",i=Number.isInteger(r),l=(0,mne.useBlockEditingMode)(),{postStatus:s,isDeleted:c}=(0,une.useSelect)(m=>{if(!a)return{postStatus:null,isDeleted:!1};if(l==="disabled"||!o)return{postStatus:null,isDeleted:!1};let{getEntityRecord:d,hasFinishedResolution:f}=m(pne.store),h=d("postType",t,r),v=f("getEntityRecord",["postType",t,r])&&h===void 0;return{postStatus:h?.status,isDeleted:v}},[a,l,o,t,r]);return[a&&i&&(c||s&&s==="trash"),s==="draft"]};var jo=n(y(),1),{LinkPicker:Z6e,isHashLink:K6e,isRelativePath:Y6e}=U(yy.privateApis);function Q6e(e,t){if(t==="post-type")switch(e){case"post":return(0,er.__)("post");case"page":return(0,er.__)("page");default:return e||(0,er.__)("post")}if(t==="taxonomy")switch(e){case"category":return(0,er.__)("category");case"tag":return(0,er.__)("tag");default:return e||(0,er.__)("term")}return e||(0,er.__)("item")}function _y({attributes:e,setAttributes:t,clientId:r,isLinkEditable:o=!0}){let{label:a,url:i,description:l,rel:s,opensInNewTab:c}=e,u=Z(),{hasUrlBinding:p,isBoundEntityAvailable:m,entityRecord:d}=ji({clientId:r,attributes:e}),[f,h]=bf(e.kind,e.type,d?.id,p),g="";f||p&&!m?g=nS():h&&(g=X6e({type:e.type,kind:e.kind}));let v=gf({clientId:r,attributes:e,setAttributes:t}),b=(0,oS.useSelect)(I=>I(yy.store).getSettings().onNavigateToEntityRecord,[]),_=(0,oS.useSelect)(I=>I(fne.store).getEntityRecord("root","__unstableBase")?.home,[]),x=(0,oS.useSelect)(I=>I(yy.store).getBlockEditingMode(r),[r])==="contentOnly",w=by({url:i,entityRecord:d,type:e.type,hasBinding:p,isEntityAvailable:m}),C=!!i&&(!K6e(i)||Y6e(i)&&!i.startsWith("/")),T=C&&i.startsWith("/")&&_?_+i:i;return(0,jo.jsxs)(Uo.__experimentalToolsPanel,{label:(0,er.__)("Settings"),resetAll:()=>{t({label:"",url:"",description:"",rel:"",opensInNewTab:!1})},dropdownMenuProps:u,children:[(0,jo.jsx)(Uo.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,er.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,jo.jsx)(Uo.TextControl,{label:(0,er.__)("Text"),value:a?(0,dne.__unstableStripHTML)(a):"",onChange:I=>{t({label:I})},autoComplete:"off"})}),o&&(0,jo.jsxs)(jo.Fragment,{children:[(0,jo.jsx)(Uo.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,er.__)("Link to"),onDeselect:()=>t({url:void 0,id:void 0,kind:void 0,type:void 0}),isShownByDefault:!0,children:(0,jo.jsx)(Z6e,{preview:w,onSelect:v,suggestionsQuery:jA(e.type,e.kind),label:(0,er.__)("Link to"),help:g||void 0})}),(0,jo.jsx)(Uo.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,er.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,jo.jsx)(Uo.CheckboxControl,{label:(0,er.__)("Open in new tab"),checked:c,onChange:I=>t({opensInNewTab:I})})}),!!i&&p&&m&&d?.id&&e.kind==="post-type"&&b&&(0,jo.jsx)(Uo.Button,{variant:"secondary",onClick:()=>{b({postId:d.id,postType:e.type})},__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,er.__)("Edit")}),C&&(0,jo.jsx)(Uo.Button,{variant:"secondary",href:T,target:"_blank",icon:ev,iconPosition:"right",__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,er.__)("View")})]}),(0,jo.jsx)(Uo.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,er.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!x,children:(0,jo.jsx)(Uo.TextareaControl,{label:(0,er.__)("Description"),value:l||"",onChange:I=>{t({description:I})},help:(0,er.__)("The description will be displayed in the menu if the current theme supports it.")})}),(0,jo.jsx)(Uo.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,er.__)("Rel attribute"),onDeselect:()=>t({rel:""}),isShownByDefault:!x,children:(0,jo.jsx)(Uo.TextControl,{label:(0,er.__)("Rel attribute"),value:s||"",onChange:I=>{t({rel:I})},autoComplete:"off",help:(0,er.__)("The relationship of the linked URL as space-separated link types.")})})]})}function nS(){return(0,er.__)("This link is invalid and will not appear on your site. Please update the link.")}function X6e({type:e,kind:t}){let r=Q6e(e,t);return(0,er.sprintf)((0,er.__)("This link is to a draft %1$s and will not appear on your site until the %1$s is published."),r)}var $A=n(N(),1),hne=n(en(),1),qA=n(y(),1);function xy({label:e,isInvalid:t,isDraft:r,className:o="wp-block-navigation-link__label"}){if(!t&&!r)return null;let a=t?(0,$A.__)("Invalid"):(0,$A.__)("Draft");return(0,qA.jsx)("div",{className:S("wp-block-navigation-link__placeholder-text",o,{"is-invalid":t,"is-draft":r}),children:(0,qA.jsx)("span",{children:`${(0,hne.decodeEntities)(e)} (${a})`.trim()})})}var gne=n(F(),1),vne=n(P(),1);function ky(e){return(0,gne.useSelect)(t=>{let{getSelectedBlockClientId:r,hasSelectedInnerBlock:o,getBlockParentsByBlockName:a}=t(vne.store),i=r(),l=a(e,"core/navigation")[0];return i===l||o(l,!0)},[e])}var aS=n(H(),1),wy=e=>{let[t,r]=(0,aS.useState)(!1);return(0,aS.useEffect)(()=>{let{ownerDocument:o}=e.current;function a(s){l(s)}function i(){r(!1)}function l(s){e.current.contains(s.target)?r(!0):r(!1)}return o.addEventListener("dragstart",a),o.addEventListener("dragend",i),o.addEventListener("dragenter",l),()=>{o.removeEventListener("dragstart",a),o.removeEventListener("dragend",i),o.removeEventListener("dragenter",l)}},[e]),t};function Cy(e){e.current.focus();let{ownerDocument:t}=e.current,{defaultView:r}=t,o=r.getSelection(),a=t.createRange();a.selectNodeContents(e.current),o.removeAllRanges(),o.addRange(a)}var _ne=n(y(),1),J6e=["core/navigation-link","core/navigation-submenu"];function iS({block:e,insertedBlock:t,setInsertedBlock:r}){let{updateBlockAttributes:o,removeBlock:a}=(0,yne.useDispatch)(bne.store),i=J6e?.includes(t?.name),l=t?.clientId===e.clientId,s=i&&l,{createBinding:c,clearBinding:u}=ji({clientId:t?.clientId,attributes:t?.attributes||{}});if(!s)return null;let p=()=>{!t?.attributes?.url&&t?.clientId&&a(t.clientId,!1),r(null)},m=f=>h=>{f&&o(f,h)},d=f=>{t?.clientId&&f&&a(t.clientId,!1),r(f)};return(0,_ne.jsx)(Du,{clientId:t?.clientId,link:t?.attributes,onBlockInsert:d,onClose:()=>{p()},onChange:f=>{let{isEntityLink:h,attributes:g}=fy(f,m(t?.clientId),t?.attributes);h?c(g):u(),r(null)}})}var lS=n(O(),1),xne=n(N(),1),kne=n(P(),1);var Sy=n(y(),1),{useBlockDisplayTitle:eTe}=U(kne.privateApis),tTe=(0,xne.__)("Switch to '%s'");function wne({clientId:e,blockEditingMode:t,currentMenuId:r,onSelectClassicMenu:o,onSelectNavigationMenu:a,onCreateNew:i,createNavigationMenuIsSuccess:l,createNavigationMenuIsError:s,isManageMenusButtonDisabled:c}){let u=eTe({clientId:e,context:"list-view"});return(0,Sy.jsxs)(lS.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header",children:[(0,Sy.jsx)(lS.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2,children:u}),t==="default"&&(0,Sy.jsx)(Xg,{currentMenuId:r,onSelectClassicMenu:o,onSelectNavigationMenu:a,onCreateNew:i,createNavigationMenuIsSuccess:l,createNavigationMenuIsError:s,actionLabel:tTe,isManageMenusButtonDisabled:c})]})}var ka=n(y(),1),rTe=(0,cm.__)("Switch to '%s'"),{PrivateListView:oTe,PrivateBlockContext:nTe,useListViewPanelState:aTe,useBlockDisplayTitle:iTe}=U(um.privateApis),Cne=({clientId:e,currentMenuId:t,isLoading:r,isNavigationMenuMissing:o,onCreateNew:a,expandRevision:i})=>{let l=(0,sS.useSelect)(p=>!!p(um.store).getBlockCount(e),[e]),{openListViewContentPanel:s}=U((0,sS.useDispatch)(um.store)),{navigationMenu:c}=Yg(t);if(t&&o)return(0,ka.jsx)(YC,{onCreateNew:a,isNotice:!0});if(r)return(0,ka.jsx)(Ty.Spinner,{});let u=c?(0,cm.sprintf)((0,cm.__)("Structure for Navigation Menu: %s"),c?.title||(0,cm.__)("Untitled menu")):(0,cm.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,ka.jsxs)("div",{className:"wp-block-navigation__menu-inspector-controls",children:[!l&&(0,ka.jsx)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message",children:(0,cm.__)("This Navigation Menu is empty.")}),(0,ka.jsx)(oTe,{rootClientId:e,isExpanded:!0,description:u,showAppender:!0,blockSettingsMenu:Zoe,additionalBlockContent:iS,onSelect:s},`${e}-${i}`)]})},lTe=e=>{let{clientId:t,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,currentMenuId:a=null,onCreateNew:i,onSelectClassicMenu:l,onSelectNavigationMenu:s,isManageMenusButtonDisabled:c,blockEditingMode:u}=e,{isSelectionWithinCurrentSection:p}=(0,Sne.useContext)(nTe),m=iTe({clientId:t,context:"list-view"}),d=p,{isOpened:f,expandRevision:h,handleToggle:g}=aTe(t);return d?(0,ka.jsx)(um.InspectorControls,{group:"list",children:(0,ka.jsxs)(Ty.PanelBody,{title:m,opened:f,onToggle:g,children:[u==="default"&&(0,ka.jsx)(Xg,{currentMenuId:a,onSelectClassicMenu:l,onSelectNavigationMenu:s,onCreateNew:i,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,actionLabel:rTe,isManageMenusButtonDisabled:c}),(0,ka.jsx)(Cne,{...e,expandRevision:h})]})}):(0,ka.jsx)(um.InspectorControls,{group:"list",children:(0,ka.jsxs)(Ty.PanelBody,{title:null,children:[(0,ka.jsx)(wne,{clientId:t,blockEditingMode:u,currentMenuId:a,onSelectClassicMenu:l,onSelectNavigationMenu:s,onCreateNew:i,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,isManageMenusButtonDisabled:c}),(0,ka.jsx)(Cne,{...e,expandRevision:h})]})})},cS=lTe;var ZA=n(y(),1);function uS({id:e,children:t}){return(0,ZA.jsx)(gi,{children:(0,ZA.jsx)("div",{id:e,className:"wp-block-navigation__description",children:t})})}var Tne=n(re(),1),pS=n(N(),1);var Pne=n(y(),1);function Ene({id:e}){let[t]=(0,Tne.useEntityProp)("postType","wp_navigation","title"),r=(0,pS.sprintf)((0,pS.__)('Navigation Menu: "%s"'),t);return(0,Pne.jsx)(uS,{id:e,children:r})}var KA=n(F(),1),Bne=n(re(),1);function Py(){let e=(0,KA.select)("core/editor");if(!e)return!1;let{getCurrentPostType:t,getCurrentPostId:r}=e,{getEditedEntityRecord:o}=(0,KA.select)(Bne.store),a=t?.(),i=r?.();return a==="wp_template_part"&&i?o("postType","wp_template_part",i)?.area===kc:!1}var mS=n(P(),1);var{getResponsiveMediaQueries:sTe}=U(_g),Ine={left:"flex-start",center:"center",right:"flex-end","space-between":"space-between"};function Nne({clientId:e,layout:t,style:r}){let[o]=(0,mS.useSettings)("viewport"),a=`#block-${e}`,i=Object.entries(sTe(o)).map(([l,s])=>{let c=r?.[l]?.layout;if(!c||typeof c!="object"||Array.isArray(c)||!Object.keys(c).length)return"";let u={...t,...c},p=Object.hasOwn(Ine,u.justifyContent)?u.justifyContent:"left",m=Ine[p],d=u.orientation==="vertical",f="center";d&&(f=["center","right"].includes(p)?m:"flex-start");let h=d&&p==="left"?"initial":m,g={"--navigation-layout-justification-setting":m,"--navigation-layout-direction":d?"column":"row","--navigation-layout-wrap":u.flexWrap==="nowrap"?"nowrap":"wrap","--navigation-layout-justify":h,"--navigation-layout-align":f},v=Object.entries(g).map(([b,_])=>`${b}: ${_};`).join("");return`${s}{${a} {${v}}}`}).join("");(0,mS.useStyleOverride)({css:i})}var xe=n(y(),1),{isNavigationPostEditorKey:cTe}=U(tt.privateApis);function uTe({clientId:e}){let{insertBlock:t}=(0,Es.useDispatch)(tt.store),{getBlockCount:r}=(0,Es.useSelect)(tt.store),o=(0,dr.useCallback)(()=>{let a=r(e),i=(0,Dne.createBlock)(Oi.name,{kind:Oi.attributes.kind,type:Oi.attributes.type});t(i,a,e)},[e,t,r]);return(0,xe.jsx)(tt.BlockControls,{children:(0,xe.jsx)(Xr.ToolbarGroup,{children:(0,xe.jsx)(Xr.ToolbarButton,{name:"add-page",icon:ou,onClick:o,children:(0,Mt.__)("Add page")})})})}function pTe({textColor:e,setTextColor:t,backgroundColor:r,setBackgroundColor:o,overlayTextColor:a,setOverlayTextColor:i,overlayBackgroundColor:l,setOverlayBackgroundColor:s,clientId:c,navRef:u,hasCustomOverlay:p}){let[m,d]=(0,dr.useState)(),[f,h]=(0,dr.useState)(),[g,v]=(0,dr.useState)(),[b,_]=(0,dr.useState)(),k=(0,Es.useSelect)(()=>Py(),[]);(0,dr.useEffect)(()=>{TA(u.current,h,d);let C=u.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');C&&(a.color||l.color)&&TA(C,_,v)},[a.color,l.color,u]);let x=(0,tt.__experimentalUseMultipleOriginColorsAndGradients)();if(!x.hasColorsOrGradients)return null;let w=[{colorValue:e.color,label:(0,Mt.__)("Text"),onColorChange:t,resetAllFilter:()=>t(),clearable:!0,enableAlpha:!0},{colorValue:r.color,label:(0,Mt.__)("Background"),onColorChange:o,resetAllFilter:()=>o(),clearable:!0,enableAlpha:!0}];return w.push({colorValue:a.color,label:p||k?(0,Mt.__)("Submenu text"):(0,Mt.__)("Submenu & overlay text"),onColorChange:i,resetAllFilter:()=>i(),clearable:!0,enableAlpha:!0},{colorValue:l.color,label:p||k?(0,Mt.__)("Submenu background"):(0,Mt.__)("Submenu & overlay background"),onColorChange:s,resetAllFilter:()=>s(),clearable:!0,enableAlpha:!0}),(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(tt.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:w,panelId:c,...x,gradients:[],disableCustomGradients:!0}),(0,xe.jsx)(tt.ContrastChecker,{backgroundColor:m,textColor:f}),(0,xe.jsx)(tt.ContrastChecker,{backgroundColor:g,textColor:b})]})}function mTe({attributes:e,setAttributes:t,clientId:r,isSelected:o,className:a,backgroundColor:i,setBackgroundColor:l,textColor:s,setTextColor:c,overlayBackgroundColor:u,setOverlayBackgroundColor:p,overlayTextColor:m,setOverlayTextColor:d,customPlaceholder:f=null,__unstableLayoutClassNames:h}){let{submenuVisibility:g,overlayMenu:v,overlay:b,showSubmenuIcon:_,templateLock:k,layout:{justifyContent:x,orientation:w="horizontal",flexWrap:C="wrap"}={},hasIcon:T,icon:I="handle"}=e,D=e.ref;Nne({clientId:r,layout:e.layout,style:e.style});let L=(0,dr.useCallback)(ar=>{t({ref:ar})},[t]),E=`navigationMenu/${D}`,B=(0,tt.useHasRecursion)(E),{isPreviewMode:A,onNavigateToEntityRecord:z,currentTheme:j,editorDisabledResponsive:G,hasSelectedStyleState:W}=(0,Es.useSelect)(ar=>{let{getSettings:Hs,hasSelectedStyleState:tu}=U(ar(tt.store)),ap=Hs();return{isPreviewMode:ap.isPreviewMode,onNavigateToEntityRecord:ap?.onNavigateToEntityRecord,currentTheme:ar(pm.store).getCurrentTheme()?.stylesheet,editorDisabledResponsive:!!ap?.[cTe],hasSelectedStyleState:tu(r)}},[r]),$=A?!1:B,V=(0,tt.useBlockEditingMode)(),{records:Q}=(0,pm.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),[Y,ee]=EC({name:"block-library/core/navigation/status"}),[te,oe]=EC({name:"block-library/core/navigation/classic-menu-conversion"}),[J,ce]=EC({name:"block-library/core/navigation/permissions/update"}),{create:ie,status:we,error:se,value:de,isPending:ge,isSuccess:ne,isError:me}=Voe(r),le=async()=>{await ie("")},{hasUncontrolledInnerBlocks:Pe,uncontrolledInnerBlocks:Ee,isInnerBlockSelected:X,innerBlocks:Ce}=Hoe(r),{replaceInnerBlocks:pe,selectBlock:$e,__unstableMarkNextChangeAsNotPersistent:fe}=(0,Es.useDispatch)(tt.store);(0,dr.useEffect)(()=>{w==="horizontal"&&g==="always"&&(fe(),t({submenuVisibility:"hover",showSubmenuIcon:!0}))},[w,g,t,fe]);let Ae=(0,dr.useRef)(!1),Ft=(0,Es.useSelect)(ar=>{if(Ce.some(I1=>I1.name==="core/navigation-submenu"))return!0;let tu=Ce.find(I1=>I1.name==="core/page-list");if(!tu)return Ae.current=!1,!1;if(Ae.current)return!0;let{getBlocks:ap}=ar(tt.store);return ap(tu.clientId).length>0?(Ae.current=!0,!0):!1},[Ce]),{records:ze}=(0,pm.useEntityRecords)("postType","wp_template_part",{per_page:-1}),oo=ze?.some(ar=>ar.area===kc)??!1,[no,bo]=(0,dr.useState)(!1),[yo,ta]=(0,dr.useState)(!1),{hasResolvedNavigationMenus:Ra,isNavigationMenuResolved:ae,isNavigationMenuMissing:Ve,canUserUpdateNavigationMenu:Je,hasResolvedCanUserUpdateNavigationMenu:St,canUserDeleteNavigationMenu:qe,hasResolvedCanUserDeleteNavigationMenu:_o,canUserCreateNavigationMenus:Tn,isResolvingCanUserCreateNavigationMenus:Hl,hasResolvedCanUserCreateNavigationMenus:ot}=Yg(D),Lo=Ra&&Ve,{convert:rp,status:pi,error:sh}=woe(ie),Hm=pi===UC,Ko=(0,dr.useCallback)((ar,Hs={focusNavigationBlock:!1})=>{let{focusNavigationBlock:tu}=Hs;L(ar),tu&&$e(r)},[$e,r,L]),ra=!Ve&&ae,Xc=Pe&&!ra,{getNavigationFallbackId:ch}=U((0,Es.useSelect)(pm.store)),op=D||Xc?null:ch();(0,dr.useEffect)(()=>{D||Xc||!op||(fe(),L(op))},[D,L,Xc,op,fe]);let uh=(0,dr.useRef)(),Se=(0,Es.useSelect)(()=>Py(),[]),lt=Se?"div":"nav",hr=!D&&!ge&&!Hm&&Ra&&Q?.length===0&&!Pe,wr=!Ra||ge||Hm||!!(D&&!ra&&!Hm),Ro=e.style?.typography?.textDecoration,rl=(0,Es.useSelect)(ar=>ar(tt.store).__unstableHasActiveBlockOverlayActive(r),[r]),Aa=(0,dr.useRef)(!1);(0,dr.useEffect)(()=>{Se&&(v!=="never"&&t({overlayMenu:"never"}),!Aa.current&&!D&&(Aa.current=!0,t({submenuVisibility:"always",layout:{...e.layout,orientation:"vertical"},showSubmenuIcon:!1})))},[e.layout,Se,v,D,t]);let Os=v!=="never"&&!G,Ma=(0,tt.useBlockProps)({ref:uh,className:S(a,{"items-justified-right":x==="right","items-justified-space-between":x==="space-between","items-justified-left":x==="left","items-justified-center":x==="center","is-vertical":w==="vertical","no-wrap":C==="nowrap","is-responsive":Os,"has-text-color":!!s.color||!!s?.class,[(0,tt.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!i.color||i.class,[(0,tt.getColorClassName)("background-color",i?.slug)]:!!i?.slug,[`has-text-decoration-${Ro}`]:Ro,"block-editor-block-content-overlay":rl},h),style:{color:!s?.slug&&s?.color,backgroundColor:!i?.slug&&i?.color}}),ol=async ar=>rp(ar.id,ar.name,"draft"),ph=ar=>{Ko(ar)};(0,dr.useEffect)(()=>{ee(),ge&&(0,dS.speak)((0,Mt.__)("Creating Navigation Menu.")),ne&&(Ko(de?.id,{focusNavigationBlock:!0}),Y((0,Mt.__)("Navigation Menu successfully created."))),me&&Y((0,Mt.__)("Failed to create Navigation Menu."))},[we,se,de?.id,me,ne,ge,Ko,ee,Y]),(0,dr.useEffect)(()=>{oe(),pi===UC&&(0,dS.speak)((0,Mt.__)("Classic menu importing.")),pi===LA&&(te((0,Mt.__)("Classic menu imported successfully.")),Ko(de?.id,{focusNavigationBlock:!0})),pi===HC&&te((0,Mt.__)("Classic menu import failed."))},[pi,sh,oe,te,de?.id,Ko]),(0,dr.useEffect)(()=>{!o&&!X&&ce(),(o||X)&&(D&&!Lo&&St&&!Je&&J((0,Mt.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),!D&&ot&&!Tn&&J((0,Mt.__)("You do not have permission to create Navigation Menus.")))},[o,X,Je,St,Tn,ot,D,ce,J,Lo]);let Jc=Tn||Je,d9=S("wp-block-navigation__overlay-menu-preview",{open:yo}),np=!_&&g!=="click"&&g!=="always"?(0,Mt.__)('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.'):"",E1=(0,dr.useRef)(!0);(0,dr.useEffect)(()=>{!E1.current&&np&&(0,dS.speak)(np),E1.current=!1},[np]);let Fs=(0,Lne.useInstanceId)(jre,"overlay-menu-preview"),eu=Z(),B1=(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(tt.InspectorControls,{children:Ft&&(0,xe.jsx)(Xr.__experimentalToolsPanel,{label:(0,Mt.__)("Display"),resetAll:()=>{t({showSubmenuIcon:!0,submenuVisibility:"hover",overlayMenu:"mobile",hasIcon:!0,icon:"handle"})},dropdownMenuProps:eu,children:Ft&&(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)("h3",{className:"wp-block-navigation__submenu-header",children:(0,Mt.__)("Submenus")}),(0,xe.jsx)(Xr.__experimentalToolsPanelItem,{hasValue:()=>g!=="hover",label:(0,Mt.__)("Submenu Visibility"),onDeselect:()=>t({submenuVisibility:"hover"}),isShownByDefault:!0,children:(0,xe.jsxs)(Xr.__experimentalToggleGroupControl,{label:(0,Mt.__)("Submenu Visibility"),value:g,onChange:ar=>{let Hs={submenuVisibility:ar};ar==="always"?Hs.showSubmenuIcon=!1:(ar==="click"||g==="always")&&(Hs.showSubmenuIcon=!0),t(Hs)},isBlock:!0,children:[(0,xe.jsx)(Xr.__experimentalToggleGroupControlOption,{value:"hover",label:(0,Mt.__)("Hover")}),(0,xe.jsx)(Xr.__experimentalToggleGroupControlOption,{value:"click",label:(0,Mt.__)("Click")}),w==="vertical"&&(0,xe.jsx)(Xr.__experimentalToggleGroupControlOption,{value:"always",label:(0,Mt.__)("Always")})]})}),(0,xe.jsx)(Xr.__experimentalToolsPanelItem,{hasValue:()=>!_,label:(0,Mt.__)("Show arrow"),onDeselect:()=>t({showSubmenuIcon:!0}),isDisabled:g==="click"||g==="always",isShownByDefault:!0,children:(0,xe.jsx)(Xr.ToggleControl,{checked:_,onChange:ar=>{t({showSubmenuIcon:ar})},disabled:g==="click"||g==="always",label:(0,Mt.__)("Show arrow")})}),np&&(0,xe.jsx)(Xr.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,className:"wp-block-navigation__submenu-accessibility-notice",children:np})]})})}),!Se&&(0,xe.jsx)(tt.InspectorControls,{children:(0,xe.jsx)(voe,{overlayMenu:v,overlay:b,setAttributes:t,onNavigateToEntityRecord:z,overlayMenuPreview:yo,setOverlayMenuPreview:ta,hasIcon:T,icon:I,overlayMenuPreviewClasses:d9,overlayMenuPreviewId:Fs,isResponsive:Os,currentTheme:j,hasOverlays:oo})}),!W&&(0,xe.jsx)(tt.InspectorControls,{group:"color",children:(0,xe.jsx)(pTe,{textColor:s,setTextColor:c,backgroundColor:i,setBackgroundColor:l,overlayTextColor:m,setOverlayTextColor:d,overlayBackgroundColor:u,setOverlayBackgroundColor:p,clientId:r,navRef:uh,hasCustomOverlay:!!b})})]}),mh=`${r}-desc`,dh=v==="always",jm=!Jc||!Ra;if(Xc&&!ge)return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(cS,{clientId:r,createNavigationMenuIsSuccess:ne,createNavigationMenuIsError:me,currentMenuId:D,isNavigationMenuMissing:Ve,isManageMenusButtonDisabled:jm,onCreateNew:le,onSelectClassicMenu:ol,onSelectNavigationMenu:ph,isLoading:wr,blockEditingMode:V}),V==="default"&&B1,(0,xe.jsxs)(lt,{...Ma,"aria-describedby":hr?void 0:mh,children:[(0,xe.jsx)(uS,{id:mh,children:(0,Mt.__)("Unsaved Navigation Menu.")}),(0,xe.jsx)(kA,{id:r,onToggle:bo,isOpen:no,hasIcon:T,icon:I,isResponsive:Os,isHiddenByDefault:dh,overlayBackgroundColor:u,overlayTextColor:m,overlay:b,onNavigateToEntityRecord:z,children:(0,xe.jsx)(Mre,{createNavigationMenu:ie,blocks:Ee,hasSelection:o||X})})]})]});if(D&&Ve)return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(cS,{clientId:r,createNavigationMenuIsSuccess:ne,createNavigationMenuIsError:me,currentMenuId:D,isNavigationMenuMissing:Ve,isManageMenusButtonDisabled:jm,onCreateNew:le,onSelectClassicMenu:ol,onSelectNavigationMenu:ph,isLoading:wr,blockEditingMode:V}),(0,xe.jsx)(lt,{...Ma,children:(0,xe.jsx)(YC,{onCreateNew:le})})]});if(ra&&$)return(0,xe.jsx)("div",{...Ma,children:(0,xe.jsx)(tt.Warning,{children:(0,Mt.__)("Block cannot be rendered inside itself.")})});let e_=f||bre;return hr&&f?(0,xe.jsx)(lt,{...Ma,children:(0,xe.jsx)(e_,{isSelected:o,currentMenuId:D,clientId:r,canUserCreateNavigationMenus:Tn,isResolvingCanUserCreateNavigationMenus:Hl,onSelectNavigationMenu:ph,onSelectClassicMenu:ol,onCreateEmpty:le})}):(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(cS,{clientId:r,createNavigationMenuIsSuccess:ne,createNavigationMenuIsError:me,currentMenuId:D,isNavigationMenuMissing:Ve,isManageMenusButtonDisabled:jm,onCreateNew:le,onSelectClassicMenu:ol,onSelectNavigationMenu:ph,isLoading:wr,blockEditingMode:V}),V==="default"&&B1,(0,xe.jsx)(pm.EntityProvider,{kind:"postType",type:"wp_navigation",id:D,children:(0,xe.jsxs)(tt.RecursionProvider,{uniqueId:E,children:[V==="contentOnly"&&ra&&(0,xe.jsx)(uTe,{clientId:r}),V==="default"&&ra&&(0,xe.jsxs)(tt.InspectorControls,{group:"advanced",children:[St&&Je&&(0,xe.jsx)(Bre,{}),_o&&qe&&(0,xe.jsx)(Ore,{onDelete:()=>{pe(r,[]),Y((0,Mt.__)("Navigation Menu successfully deleted."))}}),(0,xe.jsx)(Woe,{disabled:jm,className:"wp-block-navigation-manage-menus-button"})]}),(0,xe.jsxs)(lt,{...Ma,"aria-describedby":!hr&&!wr?mh:void 0,children:[wr&&!dh&&(0,xe.jsx)("div",{className:"wp-block-navigation__loading-indicator-container",children:(0,xe.jsx)(Xr.Spinner,{className:"wp-block-navigation__loading-indicator"})}),(!wr||dh)&&(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(Ene,{id:mh}),(0,xe.jsx)(kA,{id:r,onToggle:bo,hasIcon:T,icon:I,isOpen:no,isResponsive:Os,isHiddenByDefault:dh,overlayBackgroundColor:u,overlayTextColor:m,overlay:b,onNavigateToEntityRecord:z,children:ra&&(0,xe.jsx)(Cre,{clientId:r,hasCustomPlaceholder:!!f,templateLock:k,orientation:w})})]})]})]})})]})}var Rne=(0,tt.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})(mTe);var Ane=n(P(),1),Mne=n(y(),1);function zne({attributes:e}){if(!e.ref)return(0,Mne.jsx)(Ane.InnerBlocks.Content,{})}var mm=n(P(),1),p0=n(ve(),1);var dm=n(y(),1),YA={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},m0=({navigationMenuId:e,...t})=>({...t,ref:e}),fS=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},hS=e=>{let{openSubmenusOnClick:t,...r}=e;return t==null?e:{...r,submenuVisibility:r.submenuVisibility??(t?"click":"hover")}},dTe={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,dm.jsx)(mm.InnerBlocks.Content,{})},isEligible:({openSubmenusOnClick:e})=>e!=null,migrate:hS},fTe={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,dm.jsx)(mm.InnerBlocks.Content,{})},isEligible:({navigationMenuId:e})=>!!e,migrate:m0},hTe={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,dm.jsx)(mm.InnerBlocks.Content,{})},isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,p0.compose)(m0,fS,hS)},gTe={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,dm.jsx)(mm.InnerBlocks.Content,{})},migrate:(0,p0.compose)(m0,fS,Zt,hS),isEligible({style:e}){return e?.typography?.fontFamily}},vTe=function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}},bTe=function(e){return{...e,style:{...e.style,typography:Object.fromEntries(Object.entries(e.style.typography??{}).map(([t,r])=>{let o=YA[t];if(o&&r.startsWith(o)){let a=r.slice(o.length);return t==="textDecoration"&&a==="strikethrough"?[t,"line-through"]:[t,a]}return[t,r]}))}}},yTe=[dTe,fTe,hTe,gTe,{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,p0.compose)(m0,fS,Zt,vTe,hS),save(){return(0,dm.jsx)(mm.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,dm.jsx)(mm.InnerBlocks.Content,{})},isEligible(e){if(!e.style||!e.style.typography)return!1;for(let t in YA){let r=e.style.typography[t];if(r&&r.startsWith(YA[t]))return!0}return!1},migrate:(0,p0.compose)(m0,fS,Zt,bTe)},{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,p0.compose)(m0,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,dm.jsx)(mm.InnerBlocks.Content,{})}}],Vne=yTe;var{name:jne}=xC,Une={icon:od,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,gS.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,gS.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,gS.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:Rne,save:zne,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,One.select)(Fne.store).getEditedEntityRecord("postType","wp_navigation",e);if(t?.title)return(0,Hne.decodeEntities)(t.title)},deprecated:Vne},_Te=()=>R({name:jne,metadata:xC,settings:Une});var JA={};K(JA,{init:()=>BTe,metadata:()=>vS,name:()=>Jne,settings:()=>kS});var fm=n(N(),1);var Kne=n(P(),1),Yne=n(bu(),1),Qne=n(q(),1);var vS={$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 bS=n(q(),1),Ey=n(F(),1),By=n(O(),1),yS=n(qs(),1),Tl=n(N(),1),gn=n(P(),1),_S=n(pr(),1),wa=n(H(),1);var xS=n(ve(),1);var fr=n(y(),1),kTe={name:"core/navigation-link"},wTe=["core/navigation-link","core/navigation-submenu"];function CTe(e){let t="";switch(e){case"post":t=(0,Tl.__)("Select post");break;case"page":t=(0,Tl.__)("Select page");break;case"category":t=(0,Tl.__)("Select category");break;case"tag":t=(0,Tl.__)("Select tag");break;default:t=(0,Tl.__)("Add link")}return t}function XA({attributes:e,isSelected:t,setAttributes:r,insertBlocksAfter:o,mergeBlocks:a,onReplace:i,context:l,clientId:s}){let{id:c,label:u,type:p,url:m,description:d,kind:f,metadata:h}=e,{maxNestingLevel:g}=l,{replaceBlock:v,__unstableMarkNextChangeAsNotPersistent:b,selectBlock:_}=(0,Ey.useDispatch)(gn.store),[k,x]=(0,wa.useState)(t&&!m),[w,C]=(0,wa.useState)(null),T=(0,wa.useRef)(null),I=wy(T),D=(0,Tl.__)("Add label\u2026"),L=(0,wa.useRef)(),E=(0,wa.useRef)(),B=(0,wa.useRef)(u===void 0),A=(0,wa.useRef)(!1),{isAtMaxNesting:z,isTopLevelLink:j,isParentOfSelectedBlock:G,hasChildren:W,parentBlockClientId:$,isSubmenu:V}=(0,Ey.useSelect)(ze=>{let{getBlockCount:oo,getBlockName:no,getBlockRootClientId:bo,hasSelectedInnerBlock:yo,getBlockParentsByBlockName:ta}=ze(gn.store),Ra=bo(s),ae=no(Ra),Ve=ae==="core/navigation",Je=Ve?Ra:ta(s,"core/navigation")[0],St=ae==="core/navigation-submenu"?Ra:Je;return{isAtMaxNesting:ta(s,wTe).length>=g,isTopLevelLink:Ve,isParentOfSelectedBlock:yo(s,!0),hasChildren:!!oo(s),parentBlockClientId:St,isSubmenu:ae==="core/navigation-submenu"}},[s,g]),Q=ky(s),{getBlocks:Y}=(0,Ey.useSelect)(gn.store),{hasUrlBinding:ee,isBoundEntityAvailable:te,entityRecord:oe}=ji({clientId:s,attributes:e}),J=gf({clientId:s,attributes:e,setAttributes:r,allowTextUpdate:!0}),[ce,ie]=bf(f,p,c,Q),we=(0,wa.useCallback)(()=>{let ze=Y(s);ze.length===0&&(ze=[(0,bS.createBlock)("core/navigation-link")],_(ze[0].clientId));let oo=(0,bS.createBlock)("core/navigation-submenu",e,ze);v(s,oo)},[Y,s,_,v,e]);(0,wa.useEffect)(()=>{B.current&&t&&_($)},[]),(0,wa.useEffect)(()=>{W&&(b(),we())},[W,b,we]),(0,wa.useEffect)(()=>{if(!(!B.current||!m||!k)){if(B.current=!1,(0,_S.isURL)((0,_S.prependHTTP)(u))&&/^.+\.[a-z]+/.test(u))Cy(L);else if(_(s,null),V){let ze=Y($);ze.length===1&&ze[0].clientId===s&&(A.current=!0)}}},[m,k,B,u]);function se(){r({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),x(!1)}let{textColor:de,customTextColor:ge,backgroundColor:ne,customBackgroundColor:me}=pf(l,!j);function le(ze){yS.isKeyboardEvent.primary(ze,"k")&&(ze.preventDefault(),ze.stopPropagation(),x(!0))}let Pe=(0,xS.useInstanceId)(XA),Ee=ee&&!te,X=Ee?(0,Tl.sprintf)("navigation-link-edit-%d-desc",Pe):void 0,Ce=(0,gn.useBlockProps)({ref:(0,xS.useMergeRefs)([C,T]),className:S("wp-block-navigation-item",{"is-editing":t||G,"is-dragging-within":I,"has-link":!!m,"has-child":W,"has-text-color":!!de||!!ge,[(0,gn.getColorClassName)("color",de)]:!!de,"has-background":!!ne||me,[(0,gn.getColorClassName)("background-color",ne)]:!!ne}),"aria-describedby":X,"aria-invalid":Ee,style:{color:!de&&ge,backgroundColor:!ne&&me},onKeyDown:le}),pe=(0,gn.useInnerBlocksProps)({className:"remove-outline"},{defaultBlock:kTe,directInsert:!0,renderAppender:!1}),$e=!m&&!(ee&&te)||ce||ie||ee&&!te;$e&&(Ce.onClick=()=>{x(!0)});let fe=S("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":$e}),Ae=CTe(p),Ft=nS();return(0,fr.jsxs)(fr.Fragment,{children:[(0,fr.jsx)(gn.BlockControls,{children:(0,fr.jsxs)(By.ToolbarGroup,{children:[(0,fr.jsx)(By.ToolbarButton,{name:"link",icon:di,title:(0,Tl.__)("Link"),shortcut:yS.displayShortcut.primary("k"),onClick:()=>{x(!0)}}),!z&&(0,fr.jsx)(By.ToolbarButton,{name:"submenu",icon:Zm,title:(0,Tl.__)("Add submenu"),onClick:we})]})}),(0,fr.jsx)(gn.InspectorControls,{group:"content",children:(0,fr.jsx)(_y,{attributes:e,setAttributes:r,clientId:s})}),(0,fr.jsxs)("div",{...Ce,children:[Ee&&(0,fr.jsx)(gi,{id:X,children:Ft}),(0,fr.jsxs)("a",{className:fe,children:[!m&&!h?.bindings?.url?(0,fr.jsx)("div",{className:"wp-block-navigation-link__placeholder-text",children:(0,fr.jsx)("span",{children:Ae})}):(0,fr.jsxs)(fr.Fragment,{children:[!ce&&!ie&&(0,fr.jsxs)(fr.Fragment,{children:[(0,fr.jsx)(gn.RichText,{ref:L,identifier:"label",className:"wp-block-navigation-item__label",value:u,onChange:ze=>r({label:ze}),onMerge:a,onReplace:i,__unstableOnSplitAtEnd:o?()=>o((0,bS.createBlock)("core/navigation-link")):void 0,"aria-label":(0,Tl.__)("Navigation link text"),placeholder:D,withoutInteractiveFormatting:!0}),d&&(0,fr.jsx)("span",{className:"wp-block-navigation-item__description",children:d})]}),(ce||ie)&&(0,fr.jsx)(xy,{label:u,isInvalid:ce,isDraft:ie,className:"wp-block-navigation-link__label"})]}),k&&(0,fr.jsx)(Du,{ref:E,clientId:s,link:e,entity:{entityRecord:oe,hasBinding:ee,isEntityAvailable:te},onClose:()=>{if(x(!1),!m&&!ee&&i){i([]);return}if(A.current&&(A.current=!1,T.current?.nextElementSibling)){let ze=T.current.nextElementSibling.querySelector(".block-editor-button-block-appender");ze&&ze.focus()}},anchor:w,onRemove:se,onChange:J})]}),(0,fr.jsx)("div",{...pe})]})]})}var Gne=n(P(),1),Wne=n(y(),1);function $ne(){return(0,Wne.jsx)(Gne.InnerBlocks.Content,{})}function STe(e){switch(e){case"post":return xv;case"page":return ou;case"tag":return Rv;case"category":return pp;default:return UP}}function qne(e,t){if(t!=="core/navigation-link")return e;if(e.variations){let r=(a,i)=>a.type===i.type,o=e.variations.map(a=>({...a,...!a.icon&&{icon:STe(a.name)},...!a.isActive&&{isActive:r}}));return{...e,variations:o}}return e}var vn=n(q(),1),TTe={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,vn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,vn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,vn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,vn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,vn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,vn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/buttons"],transform:()=>(0,vn.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,vn.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,vn.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,vn.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,vn.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,vn.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,vn.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,vn.createBlock)("core/page-list")},{type:"block",blocks:["core/buttons"],transform:({label:e,url:t,rel:r,title:o,opensInNewTab:a})=>(0,vn.createBlock)("core/buttons",{},[(0,vn.createBlock)("core/button",{text:e,url:t,rel:r,title:o,linkTarget:a?"_blank":void 0})])}]},Zne=TTe;var Xne=n(y(),1),{fieldsKey:PTe,formKey:ETe}=U(Qne.privateApis),{name:Jne}=vS,kS={icon:Q1,__experimentalLabel(e,{context:t}){if(t==="list-view")return e?.label;if(t==="appender"){let r=e?.type||"link";return(0,fm.sprintf)((0,fm._x)("Add %s","add default block type"),r)}return e?.label},merge(e,{label:t=""}){return{...e,label:e.label+t}},edit:XA,save:$ne,example:{attributes:{label:(0,fm._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,Xne.jsx)(Kne.InnerBlocks.Content,{})}}],transforms:Zne};window.__experimentalContentOnlyInspectorFields&&(kS[PTe]=[{id:"label",label:(0,fm.__)("Label"),type:"text",Edit:"rich-text"},{id:"link",label:(0,fm.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel}),setValue:({value:e})=>({url:e.url,rel:e.rel})}],kS[ETe]={fields:["label","link"]});var BTe=()=>((0,Yne.addFilter)("blocks.registerBlockType","core/navigation-link",qne),R({name:Jne,metadata:vS,settings:kS}));var tM={};K(tM,{init:()=>RTe,metadata:()=>wS,name:()=>uae,settings:()=>BS});var Ny=n(N(),1),cae=n(q(),1);var wS={$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"},isParentSubmenu:{type:"boolean",default:!0}},providesContext:{"core/isInsideSubmenu":"isParentSubmenu"},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 SS=n(F(),1),Iy=n(O(),1),TS=n(qs(),1),d0=n(N(),1),uo=n(P(),1),PS=n(pr(),1),Bs=n(H(),1);var rae=n(zh(),1),oae=n(q(),1),ES=n(ve(),1);var CS=n(O(),1),eM=n(y(),1),eae=()=>(0,eM.jsx)(CS.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,eM.jsx)(CS.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var Hr=n(y(),1),tae=["core/navigation-link","core/navigation-submenu","core/page-list","core/loginout"];function nae({attributes:e,isSelected:t,setAttributes:r,mergeBlocks:o,onReplace:a,context:i,clientId:l}){let{label:s,url:c,description:u,kind:p,type:m,id:d}=e,{showSubmenuIcon:f,maxNestingLevel:h,submenuVisibility:g}=i,b=(0,uo.useBlockEditingMode)()!=="default"?!0:g==="click",{hasUrlBinding:_,isBoundEntityAvailable:k,entityRecord:x}=ji({clientId:l,attributes:e}),w=gf({clientId:l,attributes:e,setAttributes:r,allowTextUpdate:!0}),{__unstableMarkNextChangeAsNotPersistent:C,replaceBlock:T}=(0,SS.useDispatch)(uo.store),[I,D]=(0,Bs.useState)(!1),[L,E]=(0,Bs.useState)(null),B=(0,Bs.useRef)(null),A=wy(B),z=(0,d0.__)("Add text\u2026"),j=(0,Bs.useRef)(),{parentCount:G,isParentOfSelectedBlock:W,isImmediateParentOfSelectedBlock:$,hasChildren:V,selectedBlockHasChildren:Q,onlyDescendantIsEmptyLink:Y}=(0,SS.useSelect)(pe=>{let{hasSelectedInnerBlock:$e,getSelectedBlockClientId:fe,getBlockParentsByBlockName:Ae,getBlock:Ft,getBlockCount:ze,getBlockOrder:oo}=pe(uo.store),no,bo=fe(),yo=oo(bo);if(yo?.length===1){let ta=Ft(yo[0]);no=ta?.name==="core/navigation-link"&&!ta?.attributes?.label}return{parentCount:Ae(l,"core/navigation-submenu").length,isParentOfSelectedBlock:$e(l,!0),isImmediateParentOfSelectedBlock:$e(l,!1),hasChildren:!!ze(l),selectedBlockHasChildren:!!yo?.length,onlyDescendantIsEmptyLink:no}},[l]),ee=ky(l),te=(0,ES.usePrevious)(V),[oe,J]=bf(p,m,d,ee);(0,Bs.useEffect)(()=>{!b&&!c&&D(!0)},[]),(0,Bs.useEffect)(()=>{t||D(!1)},[t]),(0,Bs.useEffect)(()=>{I&&c&&(0,PS.isURL)((0,PS.prependHTTP)(s))&&/^.+\.[a-z]+/.test(s)&&Cy(j)},[c]);let{textColor:ce,customTextColor:ie,backgroundColor:we,customBackgroundColor:se}=pf(i,G>0);function de(pe){TS.isKeyboardEvent.primary(pe,"k")&&(pe.preventDefault(),pe.stopPropagation(),D(!0))}let ge=(0,uo.useBlockProps)({ref:(0,ES.useMergeRefs)([E,B]),className:S("wp-block-navigation-item",{"is-editing":t||W,"is-dragging-within":A,"has-link":!!c,"has-child":V,"has-text-color":!!ce||!!ie,[(0,uo.getColorClassName)("color",ce)]:!!ce,"has-background":!!we||se,[(0,uo.getColorClassName)("background-color",we)]:!!we,"open-on-click":b,"open-always":g==="always"}),style:{color:!ce&&ie,backgroundColor:!we&&se},onKeyDown:de}),ne=pf(i,!0),me=G>=h?tae.filter(pe=>pe!=="core/navigation-submenu"):tae,le=NC(ne),Pe=(0,uo.useInnerBlocksProps)(le,{allowedBlocks:me,defaultBlock:Oi,directInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:t||$&&!Q||V?uo.InnerBlocks.ButtonBlockAppender:!1}),Ee=b?"button":"a";function X(){let pe=(0,oae.createBlock)("core/navigation-link",e);T(l,pe)}(0,Bs.useEffect)(()=>{!V&&te&&(C(),X())},[V,te]);let Ce=!Q||Y;return(0,Hr.jsxs)(Hr.Fragment,{children:[(0,Hr.jsx)(uo.BlockControls,{children:(0,Hr.jsxs)(Iy.ToolbarGroup,{children:[!b&&(0,Hr.jsx)(Iy.ToolbarButton,{name:"link",icon:di,title:(0,d0.__)("Link"),shortcut:TS.displayShortcut.primary("k"),onClick:()=>{D(!0)}}),(0,Hr.jsx)(Iy.ToolbarButton,{name:"revert",icon:lI,title:(0,d0.__)("Convert to Link"),onClick:X,className:"wp-block-navigation__submenu__revert",disabled:!Ce})]})}),(0,Hr.jsx)(uo.InspectorControls,{group:"content",children:(0,Hr.jsx)(_y,{attributes:e,setAttributes:r,clientId:l,isLinkEditable:!b})}),(0,Hr.jsxs)("div",{...ge,children:[(0,Hr.jsxs)(Ee,{className:"wp-block-navigation-item__content",children:[!oe&&!J&&(0,Hr.jsxs)(Hr.Fragment,{children:[(0,Hr.jsx)(uo.RichText,{ref:j,identifier:"label",className:"wp-block-navigation-item__label",value:s,onChange:pe=>r({label:pe}),onMerge:o,onReplace:a,"aria-label":(0,d0.__)("Navigation link text"),placeholder:z,withoutInteractiveFormatting:!0,onClick:()=>{!b&&!c&&D(!0)}}),u&&(0,Hr.jsx)("span",{className:"wp-block-navigation-item__description",children:u})]}),(oe||J)&&(0,Hr.jsx)(xy,{label:s,isInvalid:oe,isDraft:J,className:"wp-block-navigation-item__label"}),!b&&I&&(0,Hr.jsx)(Du,{clientId:l,link:e,entity:{entityRecord:x,hasBinding:_,isEntityAvailable:k},onClose:()=>{D(!1)},anchor:L,onRemove:()=>{r({url:""}),(0,rae.speak)((0,d0.__)("Link removed."),"assertive")},onChange:w})]}),(f||b)&&(0,Hr.jsx)("span",{className:"wp-block-navigation__submenu-icon",children:(0,Hr.jsx)(eae,{})}),(0,Hr.jsx)("div",{...Pe})]})]})}var aae=n(P(),1),iae=n(y(),1);function lae(){return(0,iae.jsx)(aae.InnerBlocks.Content,{})}var yf=n(q(),1),NTe={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:e=>(0,yf.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,yf.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,yf.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,yf.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,yf.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,yf.createBlock)("core/search")}]},sae=NTe;var{fieldsKey:DTe,formKey:LTe}=U(cae.privateApis),{name:uae}=wS,BS={icon:({context:e})=>e==="list-view"?ou:Zm,__experimentalLabel(e,{context:t}){let{label:r}=e,o=e?.metadata?.name;return(t==="list-view"||t==="breadcrumb")&&o?o:r},edit:nae,example:{attributes:{label:(0,Ny._x)("About","Example link text for Navigation Submenu"),type:"page"}},save:lae,transforms:sae};window.__experimentalContentOnlyInspectorFields&&(BS[DTe]=[{id:"label",label:(0,Ny.__)("Label"),type:"text",Edit:"rich-text"},{id:"link",label:(0,Ny.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel}),setValue:({value:e})=>({url:e.url,rel:e.rel})}],BS[LTe]={fields:["label","link"]});var RTe=()=>R({name:uae,metadata:wS,settings:BS});var oM={};K(oM,{init:()=>zTe,metadata:()=>IS,name:()=>yae,settings:()=>_ae});var pae=n(N(),1),mae=n(P(),1),rM=n(y(),1);function dae(){return(0,rM.jsx)("div",{...(0,mae.useBlockProps)(),children:(0,rM.jsx)("span",{children:(0,pae.__)("Page break")})})}var IS={$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 fae=n(H(),1),hae=n(y(),1);function gae(){return(0,hae.jsx)(fae.RawHTML,{children:"<!--nextpage-->"})}var vae=n(q(),1),MTe={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&e.dataset.block==="core/nextpage",transform(){return(0,vae.createBlock)("core/nextpage",{})}}]},bae=MTe;var{name:yae}=IS,_ae={icon:mB,example:{},transforms:bae,edit:dae,save:gae},zTe=()=>R({name:yae,metadata:IS,settings:_ae});var aM={};K(aM,{init:()=>OTe,metadata:()=>NS,name:()=>Cae,settings:()=>Sae});var wae=n(bu(),1);var f0=n(P(),1),Tc=n(O(),1),Lu=n(N(),1);var Ca=n(y(),1);function xae({attributes:e,setAttributes:t}){let{displayMode:r,text:o}=e,a=r==="icon"||r==="both",i=r==="text"||r==="both",l=o||(0,Lu.__)("Close"),s=(0,f0.useBlockProps)({className:"wp-block-navigation-overlay-close"}),c=Z();return(0,Ca.jsxs)(Ca.Fragment,{children:[(0,Ca.jsx)(f0.InspectorControls,{children:(0,Ca.jsx)(Tc.__experimentalToolsPanel,{label:(0,Lu.__)("Settings"),resetAll:()=>t({displayMode:"icon"}),dropdownMenuProps:c,children:(0,Ca.jsx)(Tc.__experimentalToolsPanelItem,{label:(0,Lu.__)("Display Mode"),isShownByDefault:!0,hasValue:()=>r!=="icon",onDeselect:()=>t({displayMode:"icon"}),children:(0,Ca.jsxs)(Tc.__experimentalToggleGroupControl,{label:(0,Lu.__)("Display Mode"),value:r,onChange:u=>t({displayMode:u}),isBlock:!0,children:[(0,Ca.jsx)(Tc.__experimentalToggleGroupControlOption,{value:"icon",label:(0,Lu.__)("Icon")}),(0,Ca.jsx)(Tc.__experimentalToggleGroupControlOption,{value:"text",label:(0,Lu.__)("Text")}),(0,Ca.jsx)(Tc.__experimentalToggleGroupControlOption,{value:"both",label:(0,Lu.__)("Both")})]})})})}),(0,Ca.jsxs)("button",{...s,type:"button","aria-label":i?void 0:(0,Lu.__)("Close"),children:[a&&(0,Ca.jsx)(aa,{icon:Km}),i&&(0,Ca.jsx)(f0.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 NS={$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 DS=n(M(),1),nM=n(y(),1),kae=(0,nM.jsx)(DS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,nM.jsx)(DS.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:Cae}=NS,Sae={icon:kae,edit:xae},OTe=()=>((0,wae.addFilter)("blockEditor.__unstableCanInsertBlockType","core/navigation-overlay-close/restrict-to-overlay-template-parts",(e,t)=>t.name!=="core/navigation-overlay-close"||!e?e:Py()),R({name:Cae,metadata:NS,settings:Sae}));var lM={};K(lM,{init:()=>GTe,metadata:()=>LS,name:()=>Dae,settings:()=>Lae});var LS={$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 Bae=n(q(),1),hm=n(F(),1),AS=n(H(),1),gm=n(P(),1),Iae=n(re(),1),MS=n(N(),1);var Tae=n(F(),1),iM=new WeakMap;function Pae(){let e=(0,Tae.useRegistry)();if(!iM.has(e)){let t=new Map;iM.set(e,HTe.bind(null,t))}return iM.get(e)}function HTe(e,{name:t,blocks:r}){let o=[...r];for(;o.length;){let a=o.shift();for(let i of a.innerBlocks??[])o.unshift(i);a.name==="core/pattern"&&jTe(e,t,a.attributes.slug)}}function jTe(e,t,r){if(e.has(t)||e.set(t,new Set),e.get(t).add(r),Eae(e,t))throw new TypeError(`Pattern ${t} has a circular dependency and cannot be rendered.`)}function Eae(e,t,r=new Set,o=new Set){r.add(t),o.add(t);let a=e.get(t)??new Set;for(let i of a)if(r.has(i)){if(o.has(i))return!0}else if(Eae(e,i,r,o))return!0;return o.delete(t),!1}var RS=n(y(),1),UTe=({attributes:e,clientId:t})=>{let r=(0,hm.useRegistry)(),o=(0,hm.useSelect)(g=>g(gm.store).__experimentalGetParsedPattern(e.slug),[e.slug]),a=(0,hm.useSelect)(g=>g(Iae.store).getCurrentTheme()?.stylesheet,[]),{replaceBlocks:i,setBlockEditingMode:l,__unstableMarkNextChangeAsNotPersistent:s}=(0,hm.useDispatch)(gm.store),{getBlockRootClientId:c,getBlockEditingMode:u}=(0,hm.useSelect)(gm.store),[p,m]=(0,AS.useState)(!1),d=Pae();function f(g){return g.innerBlocks.find(v=>v.name==="core/template-part")&&(g.innerBlocks=g.innerBlocks.map(v=>(v.name==="core/template-part"&&v.attributes.theme===void 0&&(v.attributes.theme=a),v))),g.name==="core/template-part"&&g.attributes.theme===void 0&&(g.attributes.theme=a),g}(0,AS.useEffect)(()=>{if(!p&&o?.blocks){try{d(o)}catch{m(!0);return}window.queueMicrotask(()=>{let g=c(t),v=o.blocks.map(_=>(0,Bae.cloneBlock)(f(_)));v.length===1&&o.categories?.length>0&&(v[0].attributes={...v[0].attributes,metadata:{...v[0].attributes.metadata,categories:o.categories,patternName:o.name,name:v[0].attributes.metadata.name||o.title}});let b=u(g);r.batch(()=>{s(),l(g,"default"),s(),i(t,v),s(),l(g,b)})})}},[t,p,o,s,i,u,l,c]);let h=(0,gm.useBlockProps)();return p?(0,RS.jsx)("div",{...h,children:(0,RS.jsx)(gm.Warning,{children:(0,MS.sprintf)((0,MS.__)('Pattern "%s" cannot be rendered inside itself.'),o?.name)})}):(0,RS.jsx)("div",{...h})},Nae=UTe;var{name:Dae}=LS,Lae={edit:Nae},GTe=()=>R({name:Dae,metadata:LS,settings:Lae});var pM={};K(pM,{init:()=>KTe,metadata:()=>zS,name:()=>Uae,settings:()=>Gae});var zS={$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}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick","submenuVisibility","core/isInsideSubmenu"],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 Fae=n(q(),1),qn=n(P(),1),$n=n(O(),1),Wn=n(N(),1),Pc=n(H(),1),Hae=n(re(),1),OS=n(F(),1);var sM=n(q(),1),Rae=n(F(),1),Aae=n(P(),1);function $Te(e=[]){let t="post-type",r={},o=[];return e.forEach(({id:a,title:i,link:l,type:s,parent:c})=>{let u=r[a]?.innerBlocks??[];r[a]=(0,sM.createBlock)("core/navigation-link",{id:a,label:i.rendered,url:l,type:s,kind:t,metadata:{bindings:i0(t)}},u),c?(r[c]||(r[c]={innerBlocks:[]}),r[c].innerBlocks.push(r[a])):o.push(r[a])}),o}function Mae(e,t){for(let r of e){if(r.attributes.id===t)return r;if(r.innerBlocks&&r.innerBlocks.length){let o=Mae(r.innerBlocks,t);if(o)return o}}return null}function qTe(e=[],t=null){let r=$Te(e);if(t){let a=Mae(r,t);a&&a.innerBlocks&&(r=a.innerBlocks)}let o=a=>{a.forEach((i,l,s)=>{let{attributes:c,innerBlocks:u}=i;if(u.length!==0){o(u);let p=(0,sM.createBlock)("core/navigation-submenu",c,u);s[l]=p}})};return o(r),r}function zae({clientId:e,pages:t,parentClientId:r,parentPageID:o}){let{replaceBlock:a,selectBlock:i}=(0,Rae.useDispatch)(Aae.store);return()=>{let l=qTe(t,o);a(e,l),i(r)}}var Ly=n(O(),1),cM=n(ve(),1),Dy=n(N(),1),_f=n(y(),1),uM=(0,Dy.__)("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 VS({onClick:e,onClose:t,disabled:r}){return(0,_f.jsxs)(Ly.Modal,{onRequestClose:t,title:(0,Dy.__)("Edit Page List"),className:"wp-block-page-list-modal",aria:{describedby:(0,cM.useInstanceId)(VS,"wp-block-page-list-modal__description")},children:[(0,_f.jsx)("p",{id:(0,cM.useInstanceId)(VS,"wp-block-page-list-modal__description"),children:uM}),(0,_f.jsxs)("div",{className:"wp-block-page-list-modal-buttons",children:[(0,_f.jsx)(Ly.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,Dy.__)("Cancel")}),(0,_f.jsx)(Ly.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:r,onClick:e,children:(0,Dy.__)("Edit")})]})]})}var It=n(y(),1),Vae=100,Oae=()=>{};function ZTe({blockProps:e,innerBlocksProps:t,hasResolvedPages:r,blockList:o,pages:a,parentPageID:i}){if(!r)return(0,It.jsx)("div",{...e,children:(0,It.jsx)("div",{className:"wp-block-page-list__loading-indicator-container",children:(0,It.jsx)($n.Spinner,{className:"wp-block-page-list__loading-indicator"})})});if(a===null)return(0,It.jsx)("div",{...e,children:(0,It.jsx)($n.Notice,{status:"warning",isDismissible:!1,children:(0,Wn.__)("Page List: Cannot retrieve Pages.")})});if(a.length===0)return(0,It.jsx)("div",{...e,children:(0,It.jsx)($n.Notice,{status:"info",isDismissible:!1,children:(0,Wn.__)("Page List: Cannot retrieve Pages.")})});if(o.length===0){let l=a.find(s=>s.id===i);return l?.title?.rendered?(0,It.jsx)("div",{...e,children:(0,It.jsx)(qn.Warning,{children:(0,Wn.sprintf)((0,Wn.__)('Page List: "%s" page has no children.'),l.title.rendered)})}):(0,It.jsx)("div",{...e,children:(0,It.jsx)($n.Notice,{status:"warning",isDismissible:!1,children:(0,Wn.__)("Page List: Cannot retrieve Pages.")})})}if(a.length>0)return(0,It.jsx)("ul",{...t})}function jae({context:e,clientId:t,attributes:r,setAttributes:o}){let{parentPageID:a}=r,[i,l]=(0,Pc.useState)(!1),s=(0,Pc.useCallback)(()=>l(!0),[]),c=()=>l(!1),u=Z(),{records:p,hasResolved:m}=(0,Hae.useEntityRecords)("postType","page",{per_page:Vae,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),d="showSubmenuIcon"in e&&p?.length>0&&p?.length<=Vae,f=(0,Pc.useMemo)(()=>p===null?new Map:p.sort((D,L)=>D.menu_order===L.menu_order?D.title.rendered.localeCompare(L.title.rendered):D.menu_order-L.menu_order).reduce((D,L)=>{let{parent:E}=L;return D.has(E)?D.get(E).push(L):D.set(E,[L]),D},new Map),[p]),h=(0,qn.useBlockProps)({className:S("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,qn.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,qn.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor,"open-on-click":e.submenuVisibility==="click","open-always":e.submenuVisibility==="always"}),style:{...e.style?.color}}),g=(0,Pc.useMemo)(function I(D=0,L=0){let E=f.get(D);return E?.length?E.reduce((B,A)=>{let z=f.has(A.id),j={value:A.id,label:"\u2014 ".repeat(L)+A.title.rendered,rawName:A.title.rendered};return B.push(j),z&&B.push(...I(A.id,L+1)),B},[]):[]},[f]),v=(0,Pc.useMemo)(function I(D=a){let L=f.get(D);return L?.length?L.reduce((E,B)=>{let A=f.has(B.id),z={id:B.id,label:B.title?.rendered?.trim()!==""?B.title?.rendered:(0,Wn.__)("(no title)"),title:B.title?.rendered?.trim()!==""?B.title?.rendered:(0,Wn.__)("(no title)"),link:B.url,hasChildren:A},j=null,G=I(B.id);return j=(0,Fae.createBlock)("core/page-list-item",z,G),E.push(j),E},[]):[]},[f,a]),{hasSelectedChild:b,parentClientId:_,hasDraggedChild:k,isChildOfNavigation:x}=(0,OS.useSelect)(I=>{let{getBlockParentsByBlockName:D,hasSelectedInnerBlock:L,hasDraggedInnerBlock:E}=I(qn.store),B=D(t,"core/navigation",!0);return{isChildOfNavigation:B.length>0,hasSelectedChild:L(t,!0),hasDraggedChild:E(t,!0),parentClientId:B[0]}},[t]),w=zae({clientId:t,pages:p,parentClientId:_,parentPageID:a}),C=(0,qn.useInnerBlocksProps)(h,{renderAppender:!1,__unstableDisableDropZone:!0,templateLock:x?!1:"all",onInput:Oae,onChange:Oae,value:v}),{selectBlock:T}=(0,OS.useDispatch)(qn.store);return(0,Pc.useEffect)(()=>{(b||k)&&(s(),T(_))},[b,k,_,T,s]),(0,It.jsxs)(It.Fragment,{children:[(g.length>0||d)&&(0,It.jsx)(qn.InspectorControls,{children:(0,It.jsxs)($n.__experimentalToolsPanel,{label:(0,Wn.__)("Settings"),resetAll:()=>{o({parentPageID:0})},dropdownMenuProps:u,children:[g.length>0&&(0,It.jsx)($n.__experimentalToolsPanelItem,{label:(0,Wn.__)("Parent Page"),hasValue:()=>a!==0,onDeselect:()=>o({parentPageID:0}),isShownByDefault:!0,children:(0,It.jsx)($n.ComboboxControl,{className:"editor-page-attributes__parent",label:(0,Wn.__)("Parent"),value:a,options:g,onChange:I=>o({parentPageID:I??0}),help:(0,Wn.__)("Choose a page to show only its subpages.")})}),d&&(0,It.jsxs)("div",{style:{gridColumn:"1 / -1"},children:[(0,It.jsx)("p",{children:uM}),(0,It.jsx)($n.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:!m,onClick:w,children:(0,Wn.__)("Edit")})]})]})}),d&&(0,It.jsxs)(It.Fragment,{children:[(0,It.jsx)(qn.BlockControls,{group:"other",children:(0,It.jsx)($n.ToolbarButton,{title:(0,Wn.__)("Edit"),onClick:s,children:(0,Wn.__)("Edit")})}),i&&(0,It.jsx)(VS,{onClick:w,onClose:c,disabled:!m})]}),(0,It.jsx)(ZTe,{blockProps:h,innerBlocksProps:C,hasResolvedPages:m,blockList:v,pages:p,parentPageID:a})]})}var{name:Uae}=zS,Gae={icon:dB,example:{},edit:jae},KTe=()=>R({name:Uae,metadata:zS,settings:Gae});var gM={};K(gM,{init:()=>XTe,metadata:()=>FS,name:()=>qae,settings:()=>Zae});var FS={$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 jS=n(P(),1),Wae=n(F(),1),fM=n(re(),1),hM=n(Pn(),1);var HS=n(O(),1),mM=n(y(),1),dM=()=>(0,mM.jsx)(HS.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,mM.jsx)(HS.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var Sa=n(y(),1);function QTe(){return(0,Wae.useSelect)(e=>{if(!e(fM.store).canUser("read",{kind:"root",name:"site"}))return;let r=e(fM.store).getEntityRecord("root","site");return r?.show_on_front==="page"&&r?.page_on_front},[])}function $ae({context:e,attributes:t}){let{id:r,label:o,link:a,hasChildren:i,title:l}=t,s="showSubmenuIcon"in e,c=QTe(),u=e.submenuVisibility,p=u==="click",m=pf(e,!0),d=NC(m),f=(0,jS.useBlockProps)(d,{className:"wp-block-pages-list__item"}),h=(0,jS.useInnerBlocksProps)(f);return(0,Sa.jsxs)("li",{className:S("wp-block-pages-list__item",{"has-child":i,"wp-block-navigation-item":s,"open-on-click":p,"open-always":u==="always","open-on-hover-click":u==="hover"&&e.showSubmenuIcon,"menu-item-home":r===c}),children:[i&&p?(0,Sa.jsxs)(Sa.Fragment,{children:[(0,Sa.jsx)("button",{type:"button",className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false",dangerouslySetInnerHTML:{__html:(0,hM.safeHTML)(o)}}),(0,Sa.jsx)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon",children:(0,Sa.jsx)(dM,{})})]}):(0,Sa.jsx)("a",{className:S("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":s}),href:a,dangerouslySetInnerHTML:{__html:(0,hM.safeHTML)(l)}}),i&&(0,Sa.jsxs)(Sa.Fragment,{children:[!p&&e.showSubmenuIcon&&(0,Sa.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,Sa.jsx)(dM,{})}),(0,Sa.jsx)("ul",{...h})]})]},r)}var{name:qae}=FS,Zae={__experimentalLabel:({label:e})=>e,icon:ou,example:{},edit:$ae},XTe=()=>R({name:qae,metadata:FS,settings:Zae});var kM={};K(kM,{init:()=>u8e,metadata:()=>y0,name:()=>KS,settings:()=>ZS});var qS=n(N(),1);var hie=n(q(),1);var Kae=n(H(),1),Eo=n(P(),1),vM=n(N(),1),Ec=n(y(),1),h0={className:!1},bM={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"}},US=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:a,...i}=e;return{...i,style:t}},g0=e=>{let{align:t,...r}=e;return t?{...r,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e},{style:emt,...Ry}=bM,JTe=[{supports:{className:!1,color:!0,typography:{fontSize:!0}},attributes:bM,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:a}=e,i=S({"has-drop-cap":t===((0,vM.isRTL)()?"left":"right")||t==="center"?!1:o,[`has-text-align-${t}`]:t});return(0,Ec.jsx)("p",{...Eo.useBlockProps.save({className:i,dir:a}),children:(0,Ec.jsx)(Eo.RichText.Content,{value:r})})},migrate:g0},{supports:h0,attributes:{...Ry,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:g0,save({attributes:e}){let{align:t,content:r,dropCap:o,direction:a}=e,i=S({"has-drop-cap":t===((0,vM.isRTL)()?"left":"right")||t==="center"?!1:o,[`has-text-align-${t}`]:t});return(0,Ec.jsx)("p",{...Eo.useBlockProps.save({className:i,dir:a}),children:(0,Ec.jsx)(Eo.RichText.Content,{value:r})})}},{supports:h0,attributes:{...Ry,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return US(g0(e))},save({attributes:e}){let{align:t,content:r,dropCap:o,backgroundColor:a,textColor:i,customBackgroundColor:l,customTextColor:s,fontSize:c,customFontSize:u,direction:p}=e,m=(0,Eo.getColorClassName)("color",i),d=(0,Eo.getColorClassName)("background-color",a),f=(0,Eo.getFontSizeClass)(c),h=S({"has-text-color":i||s,"has-background":a||l,"has-drop-cap":o,[`has-text-align-${t}`]:t,[f]:f,[m]:m,[d]:d}),g={backgroundColor:d?void 0:l,color:m?void 0:s,fontSize:f?void 0:u};return(0,Ec.jsx)(Eo.RichText.Content,{tagName:"p",style:g,className:h||void 0,value:r,dir:p})}},{supports:h0,attributes:{...Ry,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return US(g0(e))},save({attributes:e}){let{align:t,content:r,dropCap:o,backgroundColor:a,textColor:i,customBackgroundColor:l,customTextColor:s,fontSize:c,customFontSize:u,direction:p}=e,m=(0,Eo.getColorClassName)("color",i),d=(0,Eo.getColorClassName)("background-color",a),f=(0,Eo.getFontSizeClass)(c),h=S({"has-text-color":i||s,"has-background":a||l,"has-drop-cap":o,[f]:f,[m]:m,[d]:d}),g={backgroundColor:d?void 0:l,color:m?void 0:s,fontSize:f?void 0:u,textAlign:t};return(0,Ec.jsx)(Eo.RichText.Content,{tagName:"p",style:g,className:h||void 0,value:r,dir:p})}},{supports:h0,attributes:{...Ry,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate(e){return US(g0(e))},save({attributes:e}){let{width:t,align:r,content:o,dropCap:a,backgroundColor:i,textColor:l,customBackgroundColor:s,customTextColor:c,fontSize:u,customFontSize:p}=e,m=(0,Eo.getColorClassName)("color",l),d=(0,Eo.getColorClassName)("background-color",i),f=u&&`is-${u}-text`,h=S({[`align${t}`]:t,"has-background":i||s,"has-drop-cap":a,[f]:f,[m]:m,[d]:d}),g={backgroundColor:d?void 0:s,color:m?void 0:c,fontSize:f?void 0:p,textAlign:r};return(0,Ec.jsx)(Eo.RichText.Content,{tagName:"p",style:g,className:h||void 0,value:o})}},{supports:h0,attributes:{...Ry,fontSize:{type:"number"}},save({attributes:e}){let{width:t,align:r,content:o,dropCap:a,backgroundColor:i,textColor:l,fontSize:s}=e,c=S({[`align${t}`]:t,"has-background":i,"has-drop-cap":a});return(0,Ec.jsx)("p",{style:{backgroundColor:i,color:l,fontSize:s,textAlign:r},className:c||void 0,children:o})},migrate(e){return US(g0({...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:h0,attributes:{...bM,content:{type:"string",source:"html",default:""}},save({attributes:e}){return(0,Ec.jsx)(Kae.RawHTML,{children:e.content})},migrate:e=>e}],Yae=JTe;var ti=n(N(),1),b0=n(O(),1),Go=n(P(),1),lie=n(F(),1),sie=n(q(),1);var cie=n(H(),1);var Qae=n(H(),1),Xae=n(ve(),1),Jae=n(Xl(),1),eie=n(qs(),1),v0=n(F(),1),yM=n(P(),1),Ru=n(q(),1);var{subscribeOwnedListener:e8e}=U(Jae.privateApis);function tie(e){let{batch:t}=(0,v0.useRegistry)(),{moveBlocksToPosition:r,replaceBlocks:o,selectionChange:a}=(0,v0.useDispatch)(yM.store),{getBlockRootClientId:i,getBlockIndex:l,getBlockOrder:s,getBlockName:c,getBlock:u,canInsertBlockType:p}=(0,v0.useSelect)(yM.store),m=(0,Qae.useRef)(e);return m.current=e,(0,Xae.useRefEffect)(d=>{function f(h){if(h.defaultPrevented||h.keyCode!==eie.ENTER)return;let{content:g,clientId:v}=m.current;if(g.length)return;let b=i(v);if(!(0,Ru.hasBlockSupport)(c(b),"__experimentalOnEnter",!1))return;let _=s(b),k=_.indexOf(v);if(k===_.length-1){let E=b;for(;!p(c(v),i(E));)E=i(E);typeof E=="string"&&(h.preventDefault(),r([v],b,i(E),l(E)+1));return}let x=(0,Ru.getDefaultBlockName)(),w=c(b),C=i(b);if(!p(x,C)||!p(w,C))return;h.preventDefault();let T=u(b),I=(0,Ru.cloneBlock)({...T,innerBlocks:T.innerBlocks.slice(0,k)}),D=(0,Ru.createBlock)(x),L=(0,Ru.cloneBlock)({...T,innerBlocks:T.innerBlocks.slice(k+1)});t(()=>{o(b,[I,D,L]),a(D.clientId)})}return e8e(d,"keydown",f,!0)},[])}var rie=n(ve(),1),GS=n(H(),1),oie=n(xd(),1),nie=n(F(),1),aie=n(P(),1);function iie(e,t,r){let{__unstableMarkNextChangeAsNotPersistent:o}=(0,nie.useDispatch)(aie.store),a=(0,rie.useEvent)(()=>{(0,oie.default)("align attribute in paragraph block",{alternative:"style.typography.textAlign",since:"7.0"}),o(),r({style:{...t,typography:{...t?.typography,textAlign:e}}})}),i=(0,GS.useRef)();(0,GS.useEffect)(()=>{e==="full"||e==="wide"||e===i.current||(i.current=e,a())},[e,a])}var Wi=n(y(),1),{PrivateBlockContext:t8e}=U(Go.privateApis);function r8e({direction:e,setDirection:t}){return(0,ti.isRTL)()&&(0,Wi.jsx)(b0.ToolbarButton,{icon:sE,title:(0,ti._x)("Left to right","editor button"),isActive:e==="ltr",onClick:()=>{t(e==="ltr"?void 0:"ltr")}})}function _M(e){return e===((0,ti.isRTL)()?"left":"right")||e==="center"}function o8e({clientId:e,attributes:t,setAttributes:r,name:o}){let[a]=(0,Go.useSettings)("typography.dropCap"),i=(0,lie.useSelect)(m=>{let{hasSelectedStyleState:d}=U(m(Go.store));return d(e)},[e]);if(!a||i)return null;let{style:l,dropCap:s}=t,c=l?.typography?.textAlign,u;_M(c)?u=(0,ti.__)("Not available for aligned text."):s?u=(0,ti.__)("Showing large initial letter."):u=(0,ti.__)("Show a large initial letter.");let p=(0,sie.getBlockSupport)(o,"typography.defaultControls.dropCap",!1);return(0,Wi.jsx)(Go.InspectorControls,{group:"typography",children:(0,Wi.jsx)(b0.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,ti.__)("Drop cap"),isShownByDefault:p,onDeselect:()=>r({dropCap:!1}),resetAllFilter:()=>({dropCap:!1}),panelId:e,children:(0,Wi.jsx)(b0.ToggleControl,{label:(0,ti.__)("Drop cap"),checked:!!s,onChange:()=>r({dropCap:!s}),help:u,disabled:_M(c)})})})}function n8e({attributes:e,mergeBlocks:t,onReplace:r,onRemove:o,setAttributes:a,clientId:i,isSelected:l,name:s}){let{content:c,direction:u,dropCap:p,placeholder:m,style:d}=e,f=d?.typography?.textAlign;iie(e.align,d,a);let h=(0,Go.useBlockProps)({ref:tie({clientId:i,content:c}),className:S({"has-drop-cap":_M(f)?!1:p}),style:{direction:u}}),g=(0,Go.useBlockEditingMode)(),{ariaLabel:v}=(0,cie.useContext)(t8e);return(0,Wi.jsxs)(Wi.Fragment,{children:[g==="default"&&(0,Wi.jsx)(Go.BlockControls,{group:"block",children:(0,Wi.jsx)(r8e,{direction:u,setDirection:b=>a({direction:b})})}),l&&(0,Wi.jsx)(o8e,{name:s,clientId:i,attributes:e,setAttributes:a}),(0,Wi.jsx)(Go.RichText,{identifier:"content",tagName:"p",...h,value:c,onChange:b=>a({content:b}),onMerge:t,onReplace:r,onRemove:o,"aria-label":v??(Go.RichText.isEmpty(c)?(0,ti.__)("Empty block; start writing or type forward slash to choose a block"):(0,ti.__)("Block: Paragraph")),"data-empty":Go.RichText.isEmpty(c),placeholder:m||(0,ti.__)("Type / to choose a block"),"data-custom-placeholder":m?!0:void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})]})}var uie=n8e;var y0={$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 WS=n(P(),1),pie=n(N(),1),xM=n(y(),1);function mie({attributes:e}){let{content:t,dropCap:r,direction:o,style:a}=e,i=a?.typography?.textAlign,l=S({"has-drop-cap":i===((0,pie.isRTL)()?"left":"right")||i==="center"?!1:r});return(0,xM.jsx)("p",{...WS.useBlockProps.save({className:l,dir:o}),children:(0,xM.jsx)(WS.RichText.Content,{value:t})})}var $S=n(q(),1);var{name:die}=y0,i8e={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){let t=(0,$S.getBlockAttributes)(die,e.outerHTML),{textAlign:r}=e.style||{};return(r==="left"||r==="center"||r==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:r}}),(0,$S.createBlock)(die,t)}}]},fie=i8e;var{fieldsKey:l8e,formKey:s8e,editableRootKey:c8e}=U(hie.privateApis),{name:KS}=y0,ZS={icon:hB,[c8e]:!0,example:{attributes:{content:(0,qS.__)("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,qS.__)("Empty"):o}},transforms:fie,deprecated:Yae,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:uie,save:mie};window.__experimentalContentOnlyInspectorFields&&(ZS[l8e]=[{id:"content",label:(0,qS.__)("Content"),type:"text",Edit:"rich-text"}],ZS[s8e]={fields:["content"]});var u8e=()=>R({name:KS,metadata:y0,settings:ZS});var LM={};K(LM,{init:()=>X8e,metadata:()=>YS,name:()=>Kie,settings:()=>Yie});var YS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/playlist",title:"Playlist",category:"media",description:"Embed a simple playlist.",keywords:["music","sound"],textdomain:"default",allowedBlocks:["core/playlist-track"],attributes:{type:{type:"string",default:"audio"},order:{type:"string",default:"asc"},showTracklist:{type:"boolean",default:!0},showImages:{type:"boolean",default:!0},showPlayButtonArtwork:{type:"boolean",default:!1},showArtists:{type:"boolean",default:!0},showNumbers:{type:"boolean",default:!0},showTrackLength:{type:"boolean",default:!0},waveformStyle:{type:"string",enum:["bars","mirror","line","blocks","dots","seekbar"],default:"bars"},waveformColor:{type:"string"},waveformGradient:{type:"string"},waveformBackgroundColor:{type:"string"},waveformBackgroundGradient:{type:"string"},caption:{type:"string"}},providesContext:{showArtists:"showArtists",showImages:"showImages"},supports:{anchor:!0,align:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},interactivity:!0,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-playlist-editor",style:"wp-block-playlist"};var $o=n(H(),1),Ir=n(P(),1),br=n(O(),1),Vy=n(F(),1),Wie=n(Sr(),1),ft=n(N(),1);var DM=n(q(),1),$ie=n(Ar(),1);var Ic=n(H(),1),JS=n(ve(),1),zy=n(N(),1);function Eie(e){let t=-1/0;for(let r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return t}function Bc(e){return String(e??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function gie(e){return Bc(typeof e=="number"?`${e}px`:e)}function m8e(e){if(typeof e!="string"||e==="")return!1;try{let t=new URL(e,"http://localhost/");return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}}function Wo(e,t=0,r=1){return Math.max(t,Math.min(e,r))}function d8e(e){return e===void 0?void 0:e==="true"}function vie(e){if(typeof e=="string"&&e.trim().startsWith("["))try{return JSON.parse(e)}catch{}return e}function Bie(e){let t={},r=(l,s=l)=>{let c=d8e(e.dataset[s]);c!==void 0&&(t[l]=c)},o=(l,s=l,c=!1)=>{let u=e.dataset[s];u&&(t[l]=c?parseFloat(u):parseInt(u,10))},a=(l,s=l)=>{let c=e.dataset[s];c&&(t[l]=/^\d+(\.\d+)?$/.test(c.trim())?parseFloat(c):c)},i=(l,s=l)=>{let c=e.dataset[s];if(c)try{t[l]=JSON.parse(c)}catch(u){console.warn(`[WaveformPlayer] Invalid ${s} JSON:`,u)}};return e.dataset.src&&(t.url=e.dataset.src),e.dataset.url&&(t.url=e.dataset.url),o("height"),o("samples"),e.dataset.preload&&(t.preload=e.dataset.preload),e.dataset.crossOrigin&&(t.crossOrigin=e.dataset.crossOrigin),e.dataset.audioMode&&(t.audioMode=e.dataset.audioMode),e.dataset.style&&(t.waveformStyle=e.dataset.style),e.dataset.waveformStyle&&(t.waveformStyle=e.dataset.waveformStyle),e.dataset.waveformGradient&&(t.waveformGradient=e.dataset.waveformGradient),o("barWidth"),o("barSpacing"),o("barRadius"),e.dataset.buttonAlign&&(t.buttonAlign=e.dataset.buttonAlign),e.dataset.layout&&(t.layout=e.dataset.layout),e.dataset.buttonStyle&&(t.buttonStyle=e.dataset.buttonStyle),a("buttonSize"),a("buttonRadius"),e.dataset.colorPreset&&(t.colorPreset=e.dataset.colorPreset),e.dataset.waveformColor&&(t.waveformColor=vie(e.dataset.waveformColor)),e.dataset.progressColor&&(t.progressColor=vie(e.dataset.progressColor)),e.dataset.color&&(t.waveformColor=e.dataset.color),e.dataset.theme&&(t.colorPreset=e.dataset.theme),r("autoplay"),r("showControls"),r("showInfo"),r("showTime"),r("showHoverTime"),r("seekHandle"),r("showBPM","showBpm"),o("bpm"),r("singlePlay"),r("playOnSeek"),e.dataset.title&&(t.title=e.dataset.title),e.dataset.artist&&(t.artist=e.dataset.artist),e.dataset.album&&(t.album=e.dataset.album),e.dataset.artwork&&(t.artwork=e.dataset.artwork),e.dataset.artworkPosition&&(t.artworkPosition=e.dataset.artworkPosition),e.dataset.waveform&&(t.waveform=e.dataset.waveform),i("markers"),o("playbackRate","playbackRate",!0),r("showPlaybackSpeed"),i("playbackRates"),r("enableMediaSession"),r("showMarkers"),r("accessibleSeek"),e.dataset.seekLabel&&(t.seekLabel=e.dataset.seekLabel),e.dataset.seekValueText&&(t.seekValueText=e.dataset.seekValueText),e.dataset.errorText&&(t.errorText=e.dataset.errorText),e.dataset.playPauseLabel&&(t.playPauseLabel=e.dataset.playPauseLabel),e.dataset.speedLabel&&(t.speedLabel=e.dataset.speedLabel),e.dataset.artworkAlt&&(t.artworkAlt=e.dataset.artworkAlt),e.dataset.unknownTrackText&&(t.unknownTrackText=e.dataset.unknownTrackText),e.dataset.playIcon&&(t.playIcon=e.dataset.playIcon),e.dataset.pauseIcon&&(t.pauseIcon=e.dataset.pauseIcon),t}function f8e(e,...t){let r=0;return e.replace(/%(?:(\d+)\$)?s/g,(o,a)=>{let i=a?Number(a)-1:r++;return t[i]??o})}function Au(e){if(!e||isNaN(e)||e<0)return"0:00";let t=Math.floor(e/3600),r=Math.floor(e%3600/60),o=Math.floor(e%60);return t>0?`${t}:${r.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}`:`${r}:${o.toString().padStart(2,"0")}`}var h8e=0;function g8e(e){let t=e||"audio",r=5381;for(let o=0;o<t.length;o++)r=(r<<5)+r+t.charCodeAt(o)|0;return`wp_${(r>>>0).toString(36)}_${(h8e++).toString(36)}`}function Iie(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 v8e(e){let t=typeof e=="string"?e.match(/\d+/g):null;if(!t||t.length<3)return null;let[r,o,a]=t.map(Number);return(r*299+o*587+a*114)/1e3}function bie(...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 b8e(e,t){let r;return function(...o){let a=()=>{clearTimeout(r),e(...o)};clearTimeout(r),r=setTimeout(a,t)}}function QS(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 a=0;a<t;a++){let i=a*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 a=0;a<t;a++){let i=Math.floor(a*o),l=Math.floor((a+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(a*o),e.length-1);s=e[u]}r.push(s)}}return r}function Is(e,t,r,o){if(!Array.isArray(t))return t;if(t.length<2)return t[0];let a=r.width,i=r.height,l=o&&o.waveformGradient,[s,c,u,p]=l==="horizontal"?[0,0,a,0]:l==="diagonal"?[0,0,a,i]:[0,0,0,i];try{let m=e.createLinearGradient(s,c,u,p);return t.forEach((d,f)=>m.addColorStop(f/(t.length-1),d)),m}catch{return t[0]}}function _0(e,t,r,o,a,i){if((Array.isArray(i)?i.some(l=>l>0):i>0)&&typeof e.roundRect=="function"){let l=Math.min(o/2,Math.abs(a)/2),s=c=>Wo(c,0,l);e.beginPath(),e.roundRect(t,r,o,a,Array.isArray(i)?i.map(s):s(i)),e.fill()}else e.fillRect(t,r,o,a)}function Nie(e,t){return(e.barRadius||0)*t}function y8e(e,t){let r=Nie(e,t);return[r,r,0,0]}function yie(e,t,r,o,a){let i=a/2;e.beginPath(),e.moveTo(t,o-i),e.lineTo(r-i,o-i),e.arc(r-i,o,i,-Math.PI/2,Math.PI/2),e.lineTo(t,o+i),e.arc(t,o,i,Math.PI/2,-Math.PI/2),e.closePath()}function wM(e,t,r,o,a){let i=window.devicePixelRatio||1,l=a.barWidth*i,s=a.barSpacing*i,c=Math.floor(t.width/(l+s)),u=QS(r,c),p=t.height,m=o*t.width,d=y8e(a,i),f=Is(e,a.color,t,a),h=Is(e,a.progressColor,t,a);e.clearRect(0,0,t.width,t.height),e.fillStyle=f;for(let g=0;g<u.length;g++){let v=g*(l+s);if(v+l>t.width)break;let b=u[g]*p*.9,_=p-b;_0(e,v,_,l,b,d)}e.save(),e.beginPath(),e.rect(0,0,m,p),e.clip(),e.fillStyle=h;for(let g=0;g<u.length;g++){let v=g*(l+s);if(v>m)break;let b=u[g]*p*.9,_=p-b;_0(e,v,_,l,b,d)}e.restore()}function _8e(e,t,r,o,a){let i=window.devicePixelRatio||1,l=a.barWidth*i,s=a.barSpacing*i,c=Math.floor(t.width/(l+s)),u=QS(r,c),p=t.height,m=p/2,d=o*t.width,f=Nie(a,i),h=[f,f,0,0],g=[0,0,f,f],v=Is(e,a.color,t,a),b=Is(e,a.progressColor,t,a);e.clearRect(0,0,t.width,t.height),e.fillStyle=v;for(let _=0;_<u.length;_++){let k=_*(l+s);if(k+l>t.width)break;let x=u[_]*p*.45;_0(e,k,m-x,l,x,h),_0(e,k,m,l,x,g)}e.save(),e.beginPath(),e.rect(0,0,d,p),e.clip(),e.fillStyle=b;for(let _=0;_<u.length;_++){let k=_*(l+s);if(k>d)break;let x=u[_]*p*.45;_0(e,k,m-x,l,x,h),_0(e,k,m,l,x,g)}e.restore()}function x8e(e,t,r,o,a){let i=t.width,l=t.height,s=l/2,c=l*.35;e.clearRect(0,0,i,l);let u=(p,m,d=1,f=!1)=>{let h=Is(e,p,t,a),g=Array.isArray(p)?p[p.length-1]:p;f&&(e.shadowBlur=12,e.shadowColor=g),e.strokeStyle=h,e.lineWidth=m,e.lineCap="round",e.lineJoin="round",e.beginPath(),e.moveTo(0,s);let v=[],b=Math.floor(r.length*d);for(let _=0;_<b;_++){let k=_/(r.length-1)*i,x=r[_],w=Math.sin(_*.1)*x,C=s+w*c;v.push({x:k,y:C})}for(let _=0;_<v.length-1;_++){let k=v[_].x+(v[_+1].x-v[_].x)*.5,x=v[_].y,w=v[_+1].x-(v[_+1].x-v[_].x)*.5,C=v[_+1].y;e.bezierCurveTo(k,x,w,C,v[_+1].x,v[_+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 p=0;p<=10;p++){let m=i/10*p;e.beginPath(),e.moveTo(m,0),e.lineTo(m,l),e.stroke()}u(a.color,2,1,!1),o>0&&u(a.progressColor,3,o,!0)}function _ie(e,t,r,o,a){let i=window.devicePixelRatio||1,l=(a.barWidth||3)*i,s=(a.barSpacing||1)*i,c=Math.floor(t.width/(l+s)),u=QS(r,c),p=t.height,m=4*i,d=2*i,f=o*t.width,h=p/2,g=Is(e,a.color,t,a),v=Is(e,a.progressColor,t,a);e.clearRect(0,0,t.width,t.height);for(let b=0;b<u.length;b++){let _=b*(l+s);if(_+l>t.width)break;let k=u[b]*p*.9,x=Math.floor(k/(m+d));e.fillStyle=_<f?v:g;for(let w=0;w<x;w++){let C=w*(m+d);e.fillRect(_,h-C-m,l,m),w>0&&e.fillRect(_,h+C,l,m)}}}function xie(e,t,r,o,a){let i=window.devicePixelRatio||1,l=(a.barWidth||2)*i,s=(a.barSpacing||3)*i,c=Math.floor(t.width/(l+s)),u=QS(r,c),p=t.height,m=Math.max(1.5*i,l/2),d=o*t.width,f=p/2,h=Is(e,a.color,t,a),g=Is(e,a.progressColor,t,a);e.clearRect(0,0,t.width,t.height);for(let v=0;v<u.length;v++){let b=v*(l+s)+l/2;if(b>t.width)break;let _=u[v]*p*.9;e.fillStyle=b<d?g:h,e.beginPath(),e.arc(b,f-_/2,m,0,Math.PI*2),e.fill(),e.beginPath(),e.arc(b,f+_/2,m,0,Math.PI*2),e.fill()}}function k8e(e,t,r,o,a){let i=t.width,l=t.height,s=l/2,c=4,u=c/2,p=!!a.seekActive;if(e.clearRect(0,0,i,l),e.fillStyle=Is(e,a.color,t,a)||"rgba(255, 255, 255, 0.2)",yie(e,u,i,s,c),e.fill(),o>0){let m=Math.max(u*2,o*i);e.save(),e.globalAlpha=a.seekHandle&&!p?.7:1,e.fillStyle=Is(e,a.progressColor,t,a)||"rgba(255, 255, 255, 0.9)",yie(e,u,m,s,c),e.fill(),e.restore()}}var w8e={bars:wM,bar:wM,mirror:_8e,line:x8e,blocks:_ie,block:_ie,dots:xie,dot:xie,seekbar:k8e};function C8e(e,t,r,o,a){(w8e[a.waveformStyle]||wM)(e,t,r,o,a)}function S8e(e){try{let t=e.getChannelData(0),r=e.sampleRate,o=T8e(t,r);if(o.length<2)return 120;let a=[];for(let c=1;c<o.length;c++)a.push((o[c]-o[c-1])/r);let i={};a.forEach(c=>{let u=60/c,p=Math.round(u/3)*3;p>60&&p<200&&(i[p]=(i[p]||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("[WaveformPlayer] BPM detection failed:",t),null}}function T8e(e,t){let r=[],o=0;for(let a=0;a<e.length-2048;a+=1024){let i=0;for(let c=a;c<a+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;a-c>u&&r.push(a)}o=i*.8+o*.2}return r}function P8e(e,t=1800){let r=e.length/t,o=e.numberOfChannels,a=[];for(let l=0;l<o;l++){let s=e.getChannelData(l);for(let c=0;c<t;c++){let u=~~(c*r),p=~~(u+r),m=0,d=0;for(let h=u;h<p;h++){let g=s[h];g>d&&(d=g),g<m&&(m=g)}let f=Math.max(Math.abs(d),Math.abs(m));(l===0||f>a[c])&&(a[c]=f)}}let i=Eie(a);return i>0?a.map(l=>l/i):a}async function kie(e,t=1800,r=!1){let o;try{let a=window.AudioContext||window.webkitAudioContext;o=new a;let i=await(await fetch(e)).arrayBuffer(),l=await o.decodeAudioData(i),s=P8e(l,t);s=B8e(s);let c=null;return r&&(c=S8e(l)),{peaks:s,bpm:c}}finally{o&&o.close()}}function E8e(e=1800){let t=[];for(let r=0;r<e;r++){let o=Math.random()*.5+.3,a=Math.sin(r/e*Math.PI*4)*.2;t.push(Wo(o+a,.1,1))}return t}function B8e(e,t=.95){let r=Eie(e);if(r===0||r>t)return e;let o=t/r;return e.map(a=>a*o)}function wie(e){let t=document.documentElement,r=document.body;return t.classList.contains(e)||t.classList.contains(`${e}-mode`)||t.classList.contains(`theme-${e}`)||t.getAttribute("data-theme")===e||t.getAttribute("data-color-scheme")===e||r.classList.contains(e)||r.classList.contains(`${e}-mode`)||r.getAttribute("data-theme")===e}function CM(){if(wie("dark"))return"dark";if(wie("light"))return"light";try{let e=getComputedStyle(document.body).backgroundColor,t=v8e(e);if(t!==null){if(t>128)return"light";if(t<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 Ay={dark:{waveformColor:"rgba(255, 255, 255, 0.3)",progressColor:"rgba(255, 255, 255, 0.9)"},light:{waveformColor:"rgba(0, 0, 0, 0.2)",progressColor:"rgba(0, 0, 0, 0.8)"}};function Cie(e){if(e&&Ay[e])return Ay[e];let t=CM();return Ay[t]}var Sie={url:"",height:64,samples:1800,preload:"metadata",crossOrigin:null,audioMode:"self",playbackRate:1,showPlaybackSpeed:!1,playbackRates:[.5,.75,1,1.25,1.5,1.75,2],buttonAlign:"auto",layout:"default",buttonStyle:"circle",buttonSize:null,buttonRadius:null,waveformStyle:"mirror",barWidth:2,barSpacing:0,barRadius:1,waveformGradient:"vertical",colorPreset:null,waveformColor:null,progressColor:null,autoplay:!1,showControls:!0,showInfo:!0,showTime:!0,showHoverTime:!1,seekHandle:!1,showBPM:!1,bpm:null,singlePlay:!0,playOnSeek:!0,enableMediaSession:!0,markers:[],showMarkers:!0,accessibleSeek:!0,seekLabel:null,seekValueText:null,title:null,artist:null,artwork:null,artworkPosition:"info",album:"",errorText:"Unable to load audio",playPauseLabel:"Play/Pause",speedLabel:"Playback speed",artworkAlt:"Album artwork",unknownTrackText:"Unknown Track",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,onNextTrack:null,onPreviousTrack:null},I8e={bars:{barWidth:3,barSpacing:1},mirror:{barWidth:2,barSpacing:2},line:{barWidth:2,barSpacing:0},blocks:{barWidth:4,barSpacing:2},dots:{barWidth:3,barSpacing:3},seekbar:{barWidth:1,barSpacing:0}},N8e="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect width="24" height="24" rx="4" fill="#71717a" fill-opacity="0.15"/><g fill="none" stroke="#a1a1aa" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"><circle cx="8" cy="17" r="2.2"/><circle cx="17" cy="15" r="2.2"/><path d="M10.2 17V7l9-1.6v9"/></g></svg>'),Tie=5,Pie=10,D8e='button, a[href], input, [role="slider"]',My=class bn{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=Bie(this.container),a={...r};a.style&&!a.waveformStyle&&(a.waveformStyle=a.style),a.src&&!a.url&&(a.url=a.src),this.options=bie(Sie,o,a);let i=Cie(this.options.colorPreset);this._autoTheme=this.options.colorPreset==null||!Ay[this.options.colorPreset],this._presetKeys=[],this._scheme=this.options.colorPreset&&Ay[this.options.colorPreset]?this.options.colorPreset:CM();for(let[s,c]of Object.entries(i))(this.options[s]===null||this.options[s]===void 0)&&(this.options[s]=c,this._presetKeys.push(s));let l=I8e[this.options.waveformStyle];l&&(o.barWidth===void 0&&r.barWidth===void 0&&(this.options.barWidth=l.barWidth),o.barSpacing===void 0&&r.barSpacing===void 0&&(this.options.barSpacing=l.barSpacing)),this.audio=null,this.canvas=null,this.ctx=null,this.waveformData=[],this.progress=0,this._activeMarkerIndex=-1,this._markerLabelTimer=null,this.isPlaying=!1,this.isLoading=!1,this.hasError=!1,this.updateTimer=null,this.resizeObserver=null,this._ac=new AbortController,this.id=this.container.id||g8e(this.options.url),bn.instances.set(this.id,this),bn._watchTheme(),this.init(),setTimeout(()=>{this._emit("waveformplayer:ready",{player:this,url:this.options.url})},100)}_emit(t,r,o=!1){let a=new CustomEvent(t,{bubbles:!0,cancelable:o,detail:r});return this.container.dispatchEvent(a),a}_requestSeek(t){this._emit("waveformplayer:request-seek",{...this._buildTrackDetail(),percent:t},!0).defaultPrevented||(this.progress=t,this.drawWaveform?.())}init(){this.createDOM(),this.createAudio(),this.initPlaybackSpeed(),this.initKeyboardControls(),this.initSeekControl(),this.bindEvents(),this.setupResizeObserver(),requestAnimationFrame(()=>{this.resizeCanvas(),this.options.url&&this.load(this.options.url).then(()=>{this.options.autoplay&&this.play()?.catch(()=>{})}).catch(t=>{console.error("[WaveformPlayer] 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.options.layout==="preview"&&this.container.classList.add("waveform-layout-preview"),this.container.classList.toggle("waveform-theme-light",this._scheme==="light");let r=[];this.options.buttonSize!=null&&r.push(`--wfp-btn-size: ${gie(this.options.buttonSize)}`),this.options.buttonRadius!=null&&r.push(`--wfp-btn-radius: ${gie(this.options.buttonRadius)}`);let o=r.length?` style="${r.join("; ")};"`:"",a=this.options.artworkPosition==="button"&&this.options.artwork,i=a?`<img class="waveform-btn-artwork" src="${Bc(this.options.artwork)}" alt="" aria-hidden="true">`:"",l=this.options.showControls?`
        <button class="waveform-btn${this.options.buttonStyle==="minimal"?" waveform-btn-minimal":""}${a?" waveform-btn-has-artwork":""}" aria-label="${Bc(this.options.playPauseLabel)}"${o}>
          ${i}
          <span class="waveform-icon-play">${this.options.playIcon}</span>
          <span class="waveform-icon-pause" style="display:none;">${this.options.pauseIcon}</span>
        </button>
        `:"",s=this.options.showInfo?`
      <div class="waveform-info">
        ${this.options.artworkPosition!=="button"&&this.options.artwork?`
          <img class="waveform-artwork" src="${Bc(this.options.artwork)}" alt="${Bc(this.options.artworkAlt)}" style="
            width: 40px;
            height: 40px;
            border-radius: 4px;
            object-fit: cover;
            flex-shrink: 0;
          ">
        `:""}
        <div class="waveform-text">
          <span class="waveform-title"></span>
          ${this.options.artist?`<span class="waveform-artist">${Bc(this.options.artist)}</span>`:""}
        </div>
        <div class="waveform-meta" style="display: flex; align-items: center; gap: 1rem;">
          ${this.options.showBPM?`
            <span class="waveform-bpm" style="display: none;">
              <span class="bpm-value">--</span> BPM
            </span>
          `:""}
          ${this.options.showPlaybackSpeed?`
            <div class="waveform-speed">
              <button class="speed-btn" aria-label="${Bc(this.options.speedLabel)}" aria-haspopup="menu" aria-expanded="false">
                <span class="speed-value">1x</span>
              </button>
              <div class="speed-menu" role="menu" aria-label="${Bc(this.options.speedLabel)}" style="display: none;">
                ${this.options.playbackRates.map(c=>`<button class="speed-option" role="menuitemradio" tabindex="-1" aria-checked="false" data-rate="${c}">${c}x</button>`).join("")}
              </div>
            </div>
          `:""}
          ${this.options.showTime?`
            <span class="waveform-time">
              <span class="time-current">0:00</span> / <span class="time-total">0:00</span>
            </span>
          `:""}
        </div>
      </div>
        `:"";this.container.innerHTML=`
  <div class="waveform-player-inner">
    <div class="waveform-body">
      <div class="waveform-track waveform-align-${t}">
        ${l}
        
        <div class="waveform-container">
          <canvas></canvas>
          <div class="waveform-markers"></div>
          <div class="waveform-loading" style="display:none;"></div>
          <div class="waveform-error" style="display:none;" role="alert">
            <span class="waveform-error-text">${Bc(this.options.errorText)}</span>
          </div>
        </div>
      </div>
      
      ${s}
    </div>
  </div>
`,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.artistEl=this.container.querySelector(".waveform-artist"),this.artworkEl=this.container.querySelector(".waveform-artwork, .waveform-btn-artwork"),this.bindArtworkFallback(this.artworkEl),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(),this.updateBPMDisplay()}bindArtworkFallback(t){t&&t.addEventListener("error",()=>{t.src.startsWith("data:")||(t.src=N8e)},{signal:this._ac.signal})}createArtworkElement(){let t=document.createElement("img");return t.className="waveform-artwork",t.style.width="40px",t.style.height="40px",t.style.borderRadius="4px",t.style.objectFit="cover",t.style.flexShrink="0",this.bindArtworkFallback(t),t}createButtonArtworkElement(){let t=document.createElement("img");return t.className="waveform-btn-artwork",t.alt="",t.setAttribute("aria-hidden","true"),this.bindArtworkFallback(t),t}createArtistElement(){let t=document.createElement("span");return t.className="waveform-artist",t}syncArtist(t){if(this.options.artist=t||null,!!this.options.showInfo){if(!t){this.artistEl?.remove(),this.artistEl=null;return}if(!this.artistEl){let r=this.container.querySelector(".waveform-title");if(!r)return;this.artistEl=this.createArtistElement(),r.after(this.artistEl)}this.artistEl.textContent=t,this.artistEl.style.display=""}}syncButtonArtwork(t){if(this.playBtn){if(!t){this.artworkEl?.remove(),this.artworkEl=null,this.playBtn.classList.remove("waveform-btn-has-artwork");return}this.artworkEl||(this.artworkEl=this.createButtonArtworkElement(),this.playBtn.prepend(this.artworkEl)),this.artworkEl.src=t,this.playBtn.classList.add("waveform-btn-has-artwork")}}syncArtwork(t,r=""){if(this.options.artwork=t||null,this.options.artworkAlt=r||"",this.options.artworkPosition==="button"){this.syncButtonArtwork(this.options.artwork);return}if(this.options.showInfo){if(!t){this.artworkEl?.remove(),this.artworkEl=null;return}if(!this.artworkEl){let o=this.container.querySelector(".waveform-text");if(!o)return;this.artworkEl=this.createArtworkElement(),o.before(this.artworkEl)}this.artworkEl.src=t,this.artworkEl.alt=r||""}}createAudio(){if(this.options.audioMode==="external"){this.audio=null;return}this.audio=new Audio,this.audio.preload=this.options.preload||"metadata",this.options.crossOrigin&&(this.audio.crossOrigin=this.options.crossOrigin)}initPlaybackSpeed(){this.audio&&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");if(!t||!r)return;let o=()=>Array.from(r.querySelectorAll(".speed-option")),a=()=>r.style.display!=="none",i=c=>{if(r.style.display=c?"block":"none",t.setAttribute("aria-expanded",c?"true":"false"),c){let u=o();(u.find(p=>p.getAttribute("aria-checked")==="true")||u[0])?.focus()}},l=c=>{let u=o();u.length&&u[(c+u.length)%u.length].focus()},s=c=>{this.setPlaybackRate(parseFloat(c.dataset.rate)),i(!1),t.focus()};t.addEventListener("click",c=>{c.stopPropagation(),i(!a())},{signal:this._ac.signal}),document.addEventListener("click",()=>i(!1),{signal:this._ac.signal}),r.addEventListener("click",c=>{c.stopPropagation();let u=c.target.closest(".speed-option");u&&s(u)},{signal:this._ac.signal}),t.closest(".waveform-speed")?.addEventListener("keydown",c=>{let u=o(),p=u.indexOf(document.activeElement);if(!a()){(c.key==="ArrowDown"||c.key==="ArrowUp")&&document.activeElement===t&&(c.preventDefault(),i(!0));return}switch(c.key){case"ArrowDown":c.preventDefault(),l(p<0?0:p+1);break;case"ArrowUp":c.preventDefault(),l(p<0?u.length-1:p-1);break;case"Home":c.preventDefault(),l(0);break;case"End":c.preventDefault(),l(u.length-1);break;case"Escape":c.preventDefault(),i(!1),t.focus();break;case"Tab":i(!1);break}},{signal:this._ac.signal}),this.updateSpeedUI()}initKeyboardControls(){this.container.setAttribute("tabindex","-1"),this.container.addEventListener("click",t=>{t.target.closest(D8e)||(bn.getAllInstances().forEach(r=>{r!==this&&r.container.setAttribute("tabindex","-1")}),this.container.setAttribute("tabindex","0"),this.container.focus())},{signal:this._ac.signal}),this.container.addEventListener("keydown",t=>{if(document.activeElement!==this.container)return;let r=t.key,o=!!this.audio,a=o?this.audio.currentTime:0;if(o&&r>="0"&&r<="9"){t.preventDefault(),this.seekToPercent(parseInt(r)/10);return}let i={" ":()=>this.togglePlay()};o&&(i.ArrowLeft=()=>this.seekTo(Wo(a-5,0,this.audio.duration)),i.ArrowRight=()=>this.seekTo(Wo(a+5,0,this.audio.duration)),i.ArrowUp=()=>this.setVolume(Wo(this.audio.volume+.1)),i.ArrowDown=()=>this.setVolume(Wo(this.audio.volume-.1)),i.m=i.M=()=>this.audio.muted=!this.audio.muted),i[r]&&(t.preventDefault(),i[r]())},{signal:this._ac.signal})}initSeekControl(){this.options.accessibleSeek&&(this.seekEl=this.container.querySelector(".waveform-container"),this.seekEl&&(this.seekEl.setAttribute("role","slider"),this.seekEl.setAttribute("tabindex","0"),this.seekEl.setAttribute("aria-valuemin","0"),this.applySeekLabel(),this.updateSeekAccessibility(),this.seekEl.addEventListener("keydown",t=>{if(t.key===" "||t.key==="Spacebar"){t.preventDefault(),t.stopPropagation(),this.togglePlay();return}let r=this.getSeekDuration();if(!r)return;let o=this.getSeekCurrentTime(),a;switch(t.key){case"ArrowLeft":case"ArrowDown":a=o-Tie;break;case"ArrowRight":case"ArrowUp":a=o+Tie;break;case"PageDown":a=o-Pie;break;case"PageUp":a=o+Pie;break;case"Home":a=0;break;case"End":a=r;break;default:return}t.preventDefault(),t.stopPropagation(),this.seekToSeconds(a)},{signal:this._ac.signal})))}getSeekDuration(){return this.options.audioMode==="external"?this._extDuration||0:this.audio&&Number.isFinite(this.audio.duration)?this.audio.duration:0}getSeekCurrentTime(){return this.options.audioMode==="external"?this.progress*(this._extDuration||0):this.audio&&Number.isFinite(this.audio.currentTime)?this.audio.currentTime:0}seekToSeconds(t){let r=this.getSeekDuration();if(!r)return;let o=Wo(t,0,r);if(this.options.audioMode==="external"){this._requestSeek(o/r),this.updateSeekAccessibility();return}this.seekTo(o)}applySeekLabel(t=this.options.title){if(!this.seekEl)return;let r=this.options.seekLabel||t||"Seek";this.seekEl.setAttribute("aria-label",r)}updateSeekAccessibility(){if(!this.seekEl)return;let t=this.getSeekDuration(),r=Math.min(this.getSeekCurrentTime(),t);this.seekEl.setAttribute("aria-valuemax",String(Math.round(t))),this.seekEl.setAttribute("aria-valuenow",String(Math.round(r))),this.seekEl.setAttribute("aria-valuetext",f8e(this.options.seekValueText||"%1$s of %2$s",Au(r),Au(t)))}initMediaSession(){if(!("mediaSession"in navigator)||!this.options.enableMediaSession||!this.audio)return;this._applyMediaMetadata(),navigator.mediaSession.setActionHandler("play",()=>this.play()),navigator.mediaSession.setActionHandler("pause",()=>this.pause()),navigator.mediaSession.setActionHandler("seekbackward",()=>{this.seekTo(Wo(this.audio.currentTime-10,0,this.audio.duration))}),navigator.mediaSession.setActionHandler("seekforward",()=>{this.seekTo(Wo(this.audio.currentTime+10,0,this.audio.duration))}),navigator.mediaSession.setActionHandler("seekto",o=>{o.seekTime!==null&&this.seekTo(o.seekTime)});let t=this.options.onNextTrack,r=this.options.onPreviousTrack;try{navigator.mediaSession.setActionHandler("nexttrack",typeof t=="function"?()=>t(this):null)}catch{}try{navigator.mediaSession.setActionHandler("previoustrack",typeof r=="function"?()=>r(this):null)}catch{}}_applyMediaMetadata(){!("mediaSession"in navigator)||!this.options.enableMediaSession||(navigator.mediaSession.metadata=new MediaMetadata({title:this.options.title||this.options.unknownTrackText,artist:this.options.artist||"",album:this.options.album||"",artwork:this.options.artwork?[{src:this.options.artwork,sizes:"512x512",type:"image/jpeg"}]:[]}))}_updateMediaSession(t){if(!(!("mediaSession"in navigator)||!this.options.enableMediaSession||!this.audio))try{t==="playing"&&this.initMediaSession(),navigator.mediaSession.playbackState=t;let r=this.audio.duration;navigator.mediaSession.setPositionState&&r&&isFinite(r)&&navigator.mediaSession.setPositionState({duration:r,playbackRate:this.audio.playbackRate||1,position:Wo(this.audio.currentTime,0,r)})}catch{}}bindEvents(){this.playBtn&&this.playBtn.addEventListener("click",()=>this.togglePlay()),this.audio&&(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",r=>this.onError(r))),this.canvas.addEventListener("click",r=>this.handleCanvasClick(r)),this._dragging=!1,this._seekHover=!1,this._handleNear=!1,this.canvas.addEventListener("pointerenter",()=>{this._seekHover=!0,this.drawWaveform(),this._updateSeekHandle()}),this.canvas.addEventListener("pointerleave",()=>{this._seekHover=!1,this._handleNear=!1,this._dragging||this._hideHoverTip(),this.drawWaveform(),this._updateSeekHandle()}),this.canvas.addEventListener("pointerdown",r=>{if(!(r.pointerType==="mouse"&&r.button!==0)){this._dragging=!0;try{this.canvas.setPointerCapture(r.pointerId)}catch{}this._scrubTo(r.clientX)}}),this.canvas.addEventListener("pointermove",r=>{if(this._dragging){this._scrubTo(r.clientX);return}let o=this.canvas.getBoundingClientRect();o.width&&(this._handleNear=Math.abs(r.clientX-o.left-this.progress*o.width)<=10,this._updateSeekHandle())});let t=r=>{if(this._dragging){this._dragging=!1,this._suppressClick=!0;try{this.canvas.releasePointerCapture(r.pointerId)}catch{}this._seekFromPointer(r.clientX),!this._seekHover&&!this.options.showHoverTime&&this._hideHoverTip(),this._updateSeekHandle()}};this.canvas.addEventListener("pointerup",t),this.canvas.addEventListener("pointercancel",t),this.setupHoverTime(),this.setupSeekHandle(),this.resizeHandler=b8e(()=>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&&(this.audio.src=t,await new Promise((o,a)=>{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),a(s)};this.audio.addEventListener("loadedmetadata",i),this.audio.addEventListener("error",l)}));let r=this.options.title||Iie(t);if(this.titleEl&&(this.titleEl.textContent=r),this.applySeekLabel(r),this.options.waveform)this.setWaveformData(this.options.waveform);else try{let o=await kie(t,this.options.samples,this.options.showBPM);this.waveformData=o.peaks,o.bpm&&(this.detectedBPM=o.bpm,this.updateBPMDisplay())}catch(o){console.warn("[WaveformPlayer] Using placeholder waveform:",o),this.waveformData=E8e(this.options.samples)}this.drawWaveform(),this.renderMarkers(),this.options.onLoad&&this.options.onLoad(this)}catch(r){this.onError(r)}finally{this.setLoading(!1)}}async loadTrack(t,r=null,o=null,a={}){let i=Object.prototype.hasOwnProperty.call(a,"artwork"),l=Object.prototype.hasOwnProperty.call(a,"artworkAlt");this.isPlaying&&this.pause(),this.audio&&(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=bie(this.options,{url:t,title:r===null?this.options.title:r,artist:o===null?this.options.artist:o,...a}),i&&(this.options.artwork=a.artwork||null),l?this.options.artworkAlt=a.artworkAlt||"":i&&(this.options.artworkAlt=this.options.artwork?Sie.artworkAlt:""),a.preload&&this.audio&&(this.audio.preload=a.preload),a.crossOrigin&&this.audio&&(this.audio.crossOrigin=a.crossOrigin),o!==null&&this.syncArtist(o),(i||l)&&this.syncArtwork(i?a.artwork:this.options.artwork,l?a.artworkAlt:this.options.artworkAlt),this.options.markers=a.markers||[],this.options.waveform=a.waveform||null,await this.load(t),a.autoplay!==!1&&this.play()?.catch(()=>{})}setWaveformData(t){if(typeof t=="string"&&t.trim().endsWith(".json")){fetch(t.trim()).then(r=>r.json()).then(r=>{this.waveformData=Array.isArray(r)?r:r.peaks||[],r.markers&&!this.options.markers?.length&&(this.options.markers=r.markers,this.renderMarkers()),this.drawWaveform()}).catch(()=>{});return}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||C8e(this.ctx,this.canvas,this.waveformData,this.progress,{...this.options,waveformStyle:this.options.waveformStyle||"bars",color:this.options.waveformColor,progressColor:this.options.progressColor,seekActive:this._seekHover||this._dragging})}resizeCanvas(){if(!this.canvas||this.isDestroying)return;let t=window.devicePixelRatio||1,r=this.canvas.parentElement.getBoundingClientRect();this.canvas.width=r.width*t,this.canvas.height=this.options.height*t,this.canvas.parentElement.style.height=this.options.height+"px",this.drawWaveform()}renderMarkers(){if(!this.markersContainer||(this.markersContainer.innerHTML="",this._activeMarkerIndex=-1,clearTimeout(this._markerLabelTimer),!this.options.showMarkers||!this.options.markers?.length))return;let t=this.getSeekDuration();t&&this.options.markers.forEach((r,o)=>{if(r.time>t){console.warn(`[WaveformPlayer] Marker "${r.label}" at ${r.time}s exceeds audio duration of ${t}s`);return}let a=r.time/t*100,i=document.createElement("button");i.className="waveform-marker",i.style.left=`${a}%`,i.style.backgroundColor=r.color||"rgba(255, 255, 255, 0.5)",i.setAttribute("aria-label",r.label),i.setAttribute("data-time",r.time);let l=document.createElement("span");l.className="waveform-marker-tooltip",l.textContent=r.label,i.appendChild(l),i.addEventListener("click",s=>{s.stopPropagation(),this.seekTo(r.time),this.options.playOnSeek&&!this.isPlaying&&this.play()}),this.markersContainer.appendChild(i)})}setActiveMarker(t){this.markersContainer&&this.markersContainer.querySelectorAll(".waveform-marker").forEach((r,o)=>r.classList.toggle("active",o===t))}updateActiveMarker(){if(!this.markersContainer)return;let t=this.markersContainer.querySelectorAll(".waveform-marker");if(!t.length)return;let r=this.getSeekDuration(),o=r?this.progress*r:0,a=-1,i=-1/0;t.forEach((l,s)=>{let c=parseFloat(l.getAttribute("data-time"));Number.isFinite(c)&&c<=o+.05&&c>i&&(i=c,a=s)}),a!==this._activeMarkerIndex&&(this._activeMarkerIndex=a,this.setActiveMarker(a),clearTimeout(this._markerLabelTimer),t.forEach((l,s)=>l.classList.toggle("show-label",s===a)),a>=0&&(this._markerLabelTimer=setTimeout(()=>{this.markersContainer?.querySelectorAll(".waveform-marker").forEach(l=>l.classList.remove("show-label"))},2500)))}setupHoverTime(){if(!this.seekEl)return;let t=document.createElement("div");t.className="waveform-hover-time",t.setAttribute("aria-hidden","true"),this.seekEl.appendChild(t),this.hoverTimeEl=t,this.options.showHoverTime&&(this.seekEl.addEventListener("pointermove",r=>{this._dragging||this._updateHoverTip(r.clientX)}),this.seekEl.addEventListener("pointerleave",()=>{this._dragging||this._hideHoverTip()}))}_updateHoverTip(t){let r=this.hoverTimeEl;if(!r)return;let o=this.getSeekDuration();if(!o){r.style.opacity="0";return}let a=this.canvas.getBoundingClientRect(),i=Wo((t-a.left)/a.width);r.textContent=Au(i*o),r.style.left=i*100+"%",r.style.opacity="1"}_hideHoverTip(){this.hoverTimeEl&&(this.hoverTimeEl.style.opacity="0")}_scrubTo(t){let r=this.canvas.getBoundingClientRect();if(!r.width)return;this.progress=Wo((t-r.left)/r.width),this.drawWaveform(),this._updateSeekHandle();let o=this.getSeekDuration();o&&this.currentTimeEl?(this.currentTimeEl.textContent=Au(this.progress*o),this._hideHoverTip()):this._updateHoverTip(t)}setupSeekHandle(){if(!this.options.seekHandle||this.options.waveformStyle!=="seekbar"||!this.seekEl)return;let t=document.createElement("div");t.className="waveform-seek-handle",t.setAttribute("aria-hidden","true"),this.seekEl.appendChild(t),this.seekHandleEl=t}_updateSeekHandle(){let t=this.seekHandleEl;t&&(t.style.left=this.progress*100+"%",t.classList.toggle("is-visible",this._seekHover||this._dragging),t.classList.toggle("is-active",this._dragging||this._handleNear))}handleCanvasClick(t){if(this._suppressClick){this._suppressClick=!1;return}this._seekFromPointer(t.clientX)}_seekFromPointer(t){let r=this.canvas.getBoundingClientRect();if(!r.width)return;let o=Wo((t-r.left)/r.width);if(this.options.audioMode==="external"){this._requestSeek(o);return}!this.audio||!this.audio.duration||this.seekToPercent(o)}setLoading(t){this.isLoading=t,this.loadingEl&&(this.loadingEl.style.display=t?"block":"none"),this.seekEl&&this.seekEl.setAttribute("aria-busy",t?"true":"false")}onMetadataLoaded(){this.isDestroying||(this.totalTimeEl&&(this.totalTimeEl.textContent=Au(this.audio.duration)),this.renderMarkers(),this.updateSeekAccessibility())}setPlayButtonState(t){if(!this.playBtn)return;this.playBtn.classList.toggle("playing",t);let r=this.playBtn.querySelector(".waveform-icon-play"),o=this.playBtn.querySelector(".waveform-icon-pause");r&&(r.style.display=t?"none":"flex"),o&&(o.style.display=t?"flex":"none")}onPlay(){this.isDestroying||(this.isPlaying=!0,this.setPlayButtonState(!0),this.startSmoothUpdate(),this._updateMediaSession("playing"),this._emit("waveformplayer:play",{player:this,url:this.options.url}),this.options.onPlay&&this.options.onPlay(this))}onPause(){this.isDestroying||(this.isPlaying=!1,this.setPlayButtonState(!1),this.stopSmoothUpdate(),this._updateMediaSession("paused"),this._emit("waveformplayer:pause",{player:this,url:this.options.url}),this.options.onPause&&this.options.onPause(this))}onEnded(){if(this.isDestroying)return;let t=this.audio.duration;this.progress=0,this.audio.currentTime=0,this.drawWaveform(),this.currentTimeEl&&(this.currentTimeEl.textContent="0:00"),this._emit("waveformplayer:ended",{player:this,url:this.options.url,currentTime:t,duration:t}),this.onPause(),this.options.onEnd&&this.options.onEnd(this)}onError(t){this.isDestroying||(console.error("[WaveformPlayer] 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&&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||!this.audio.duration||this._dragging)return;let t=this.audio.currentTime/this.audio.duration;Math.abs(t-this.progress)>.001&&(this.progress=t,this.drawWaveform(),this._updateSeekHandle()),this.currentTimeEl&&(this.currentTimeEl.textContent=Au(this.audio.currentTime)),this._emit("waveformplayer:timeupdate",{player:this,currentTime:this.audio.currentTime,duration:this.audio.duration,progress:this.progress,url:this.options.url}),this.options.onTimeUpdate&&this.options.onTimeUpdate(this.audio.currentTime,this.audio.duration,this),this.updateActiveMarker(),this.updateSeekAccessibility()}updateBPMDisplay(){let t=this.options.bpm||this.detectedBPM;this.bpmEl&&this.bpmValueEl&&t&&(this.bpmValueEl.textContent=Math.round(t),this.bpmEl.style.display="inline-flex")}refreshTheme(){if(!this._autoTheme)return;this._scheme=CM();let t=Cie(this.options.colorPreset);for(let r of this._presetKeys||[])r in t&&(this.options[r]=t[r]);this._applyThemeColors()}_applyThemeColors(){this.container.classList.toggle("waveform-theme-light",this._scheme==="light"),this.canvas&&this.drawWaveform()}static _watchTheme(){if(bn._themeWatch||typeof document>"u")return;let t=()=>requestAnimationFrame(()=>{bn.instances.forEach(i=>{try{i.refreshTheme()}catch{}})}),r={attributes:!0,attributeFilter:["class","data-theme","data-color-scheme","style"]},o=new MutationObserver(t);o.observe(document.documentElement,r),document.body&&o.observe(document.body,r);let a=null;try{a=window.matchMedia("(prefers-color-scheme: dark)"),a.addEventListener("change",t)}catch{}bn._themeWatch={obs:o,mq:a,refresh:t}}updateSpeedUI(){if(!this.audio)return;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=>{let o=parseFloat(r.dataset.rate)===this.audio.playbackRate;r.classList.toggle("active",o),r.setAttribute("aria-checked",o?"true":"false")})}play(){if(this.options.singlePlay&&bn.currentlyPlaying&&bn.currentlyPlaying!==this&&bn.currentlyPlaying.pause(),this.options.audioMode==="external"){this._emit("waveformplayer:request-play",this._buildTrackDetail(),!0).defaultPrevented||(bn.currentlyPlaying=this);return}return bn.currentlyPlaying=this,this.audio.play()}pause(){if(bn.currentlyPlaying===this&&(bn.currentlyPlaying=null),this.options.audioMode==="external"){this._emit("waveformplayer:request-pause",this._buildTrackDetail(),!0);return}this.audio.pause()}_buildTrackDetail(){return{url:this.options.url,title:this.options.title,artist:this.options.artist,artwork:this.options.artwork,markers:this.options.markers,waveform:this.options.waveform,id:this.id,player:this}}setPlayingState(t){let r=this.isPlaying;this.isPlaying=!!t,this.setPlayButtonState(this.isPlaying),this.isPlaying&&!r?(this.startSmoothUpdate?.(),this._emit("waveformplayer:play",{player:this,url:this.options.url}),this.options.onPlay&&this.options.onPlay(this)):!this.isPlaying&&r&&(this.stopSmoothUpdate?.(),this._emit("waveformplayer:pause",{player:this,url:this.options.url}),this.options.onPause&&this.options.onPause(this))}setProgress(t,r){!r||r<=0||(this.progress=Wo(t/r),this.currentTimeEl&&(this.currentTimeEl.textContent=Au(t)),this._extDuration=r,this.totalTimeEl&&(!this.totalTimeEl.dataset._extSet||this.totalTimeEl.dataset._extDur!==String(r))&&(this.totalTimeEl.textContent=Au(r),this.totalTimeEl.dataset._extSet="1",this.totalTimeEl.dataset._extDur=String(r)),this.drawWaveform?.(),this.updateActiveMarker(),this._emit("waveformplayer:timeupdate",{player:this,currentTime:t,duration:r,progress:this.progress,url:this.options.url}),this.options.onTimeUpdate&&this.options.onTimeUpdate(t,r,this),this.progress>=1?this._extEnded||(this._extEnded=!0,this._emit("waveformplayer:ended",{player:this,url:this.options.url,currentTime:r,duration:r}),this.options.onEnd&&this.options.onEnd(this)):this._extEnded=!1,this.updateSeekAccessibility())}togglePlay(){this.isPlaying?this.pause():this.play()}seekTo(t){this.audio&&this.audio.duration&&(this.audio.currentTime=Wo(t,0,this.audio.duration),this.updateProgress())}seekToPercent(t){this.audio&&this.audio.duration&&(this.audio.currentTime=this.audio.duration*Wo(t),this.updateProgress())}setVolume(t){let r=Number(t);this.audio&&Number.isFinite(r)&&(this.audio.volume=Wo(r))}setPlaybackRate(t){if(!this.audio)return;let r=Wo(t,.5,2);this.audio.playbackRate=r,this.options.playbackRate=r,this.updateSpeedUI()}destroy(){this.isDestroying=!0,this._emit("waveformplayer:destroy",{player:this,url:this.options.url}),this.pause(),this.stopSmoothUpdate(),clearTimeout(this._markerLabelTimer),this._ac?.abort(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),bn.instances.delete(this.id),bn.currentlyPlaying===this&&(bn.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(a=>a.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=1800){try{return(await kie(t,r)).peaks}catch(o){throw console.error("[WaveformPlayer] Failed to generate waveform:",o),o}}static getPeaksUrl(t){if(!t)return;let r=t.replace(/\.(mp3|wav|ogg|flac|m4a|aac)(\?[^#]*)?(#.*)?$/i,".json$2$3");return r===t?void 0:r}};My.utils={formatTime:Au,extractTitleFromUrl:Iie,escapeHtml:Bc,isSafeHref:m8e,parseDataAttributes:Bie};var TM=()=>typeof window<"u"&&typeof document<"u";function SM(){TM()&&document.querySelectorAll("[data-waveform-player]").forEach(e=>{if(e.dataset.waveformInitialized!=="true")try{new My(e),e.dataset.waveformInitialized="true"}catch(t){console.error("[WaveformPlayer] Failed to initialize:",t,e)}})}TM()&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",SM):SM());My.init=SM;TM()&&(window.WaveformPlayer=My);var Die=My;var L8e=100,R8e="Seek";function Aie(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function Mie(e){let t=e?.trim().match(/^[\w-]+-gradient\((.*)\)$/i);if(!t)return[];let r=[],o=0,a="";for(let i of t[1]){if(i==="("?++o:i===")"&&--o,i===","&&o===0){r.push(a.trim()),a="";continue}a+=i}return a.trim()&&r.push(a.trim()),r}function A8e(e){let t=e.match(/^([\w-]+)\(/);if(!t||!["color","color-mix","hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba","var"].includes(t[1].toLowerCase()))return;let o=0,a=!1;for(let i=0;i<e.length;i++){let l=e[i];if(l==="("?(a=!0,++o):l===")"&&--o,a&&o===0)return e.slice(0,i+1)}}function M8e(e){let t=A8e(e);if(t)return t;let[r]=e.split(/\s+/);if(Br(r).isValid())return r}function z8e(e){let r=Mie(e)[0],o=r?.match(/^(-?\d+(?:\.\d+)?)deg$/i);if(o){let s=(Number(o[1])%360+360)%360;return s===90||s===270?"horizontal":s===0||s===180?"vertical":"diagonal"}if(!r?.startsWith("to "))return;let a=r.toLowerCase().replace(/^to\s+/,""),i=a.includes("left")||a.includes("right"),l=a.includes("top")||a.includes("bottom");if(i&&l)return"diagonal";if(i)return"horizontal";if(l)return"vertical"}function V8e(e,t){if(!t||Br(t).isValid())return t;let r=e.ownerDocument.createElement("span");if(r.style.color=t,!r.style.color)return t;e.appendChild(r);let o=Aie(r).color;return r.remove(),o&&Br(o).isValid()?o:t}function PM(e,t){let r=O8e(t)?.map(o=>V8e(e,o)).filter(o=>Br(o).isValid());return r?.length>1?r:void 0}function Lie(e,t){return Array.isArray(e)?e.map(r=>Br(r).alpha(t).toRgbString()):Br(e).alpha(t).toRgbString()}function zie(e){return Array.isArray(e)?e[e.length-1]:e}function O8e(e){let t=Mie(e).map(M8e).filter(Boolean);return t.length>1?t:void 0}function Rie(e){return Array.isArray(e)?JSON.stringify(e):e}function F8e(e,t,r,o){let a=r||Aie(e).color,i=PM(e,o),l=i||t||a,s=Lie(l,.3),c=Lie(l,.6),u=i?z8e(o):void 0;return{textColor:a,waveformColor:s,progressColor:c,...u&&{waveformGradient:u}}}function H8e({url:e,title:t,artist:r,artwork:o,waveformColor:a,progressColor:i,waveformGradient:l,buttonColor:s,seekLabel:c,seekValueText:u,height:p=L8e,waveformStyle:m="bars"}){let d=document.createElement("div");return d.setAttribute("data-waveform-player",""),d.setAttribute("data-url",e),d.setAttribute("data-height",String(p)),d.setAttribute("data-waveform-style",m),d.setAttribute("data-waveform-color",Rie(a)),d.setAttribute("data-progress-color",Rie(i)),l&&d.setAttribute("data-waveform-gradient",l),d.setAttribute("data-button-color",s),d.setAttribute("data-seek-label",Vie(c)),u&&d.setAttribute("data-seek-value-text",u),d.setAttribute("data-text-color",s),d.setAttribute("data-text-secondary-color",s),t&&d.setAttribute("data-title",t),r&&d.setAttribute("data-artist",r),o&&d.setAttribute("data-artwork",o),d}function EM(e,{backgroundColor:t,backgroundGradient:r,textColor:o,playButtonColor:a,playButtonGradient:i}={}){let l=e.querySelector(".waveform-container"),s=e.querySelector(".waveform-btn"),c=zie(PM(e,i)||a);c?e.style.setProperty("--wfp-button-color",c):e.style.removeProperty("--wfp-button-color"),o?(e.style.setProperty("--wfp-text-color",o),e.style.setProperty("--wfp-text-secondary-color",o)):(e.style.removeProperty("--wfp-text-color"),e.style.removeProperty("--wfp-text-secondary-color")),s&&(i?s.style.background=i:s.style.removeProperty("background")),l&&(r?l.style.background=r:t?(l.style.removeProperty("background"),l.style.backgroundColor=t):(l.style.removeProperty("background"),l.style.removeProperty("background-color")))}function j8e(e,t){let o=Br(t).isDark()?"#ffffff":"#000000";e.querySelectorAll("svg path").forEach(i=>{i.style.fill=o})}function U8e(e,{play:t="Play",pause:r="Pause"}={}){let o=e.querySelector(".waveform-btn");if(!o)return;o.setAttribute("aria-label",t);let a=()=>o.setAttribute("aria-label",r),i=()=>o.setAttribute("aria-label",t);return e.addEventListener("waveformplayer:play",a),e.addEventListener("waveformplayer:pause",i),e.addEventListener("waveformplayer:ended",i),()=>{e.removeEventListener("waveformplayer:play",a),e.removeEventListener("waveformplayer:pause",i),e.removeEventListener("waveformplayer:ended",i)}}function Vie(e){return e||R8e}function Oie(e,t){let r=Vie(t);e.options.seekLabel=r,e.applySeekLabel?.(r);let o=e?.container?.querySelector(".waveform-container");o&&o.setAttribute("aria-label",r)}function XS(e,t){if(!t){e.classList.remove("has-play-button-artwork"),e.style.removeProperty("--wp--playlist--play-button-artwork");return}e.classList.add("has-play-button-artwork"),e.style.setProperty("--wp--playlist--play-button-artwork",`url(${JSON.stringify(t)})`)}function G8e(e){e.name!=="AbortError"&&console.error("Playlist play error:",e)}function Fie(e,{src:t,title:r,artist:o,image:a,imageAlt:i,waveformColor:l,waveformGradient:s,textColor:c,backgroundColor:u,backgroundGradient:p,autoPlay:m,onEnded:d,labels:f,waveformStyle:h,showPlayButtonArtwork:g=!1}){let v=g?void 0:a,{textColor:b,waveformColor:_,progressColor:k,waveformGradient:x}=F8e(e,l,c,s),w=PM(e,s),C=zie(w||l),T=H8e({url:t,title:r,artist:o,artwork:v,waveformColor:_,progressColor:k,waveformGradient:x,buttonColor:b,seekLabel:r||f?.seek,seekValueText:f?.seekValueText,waveformStyle:h});e.appendChild(T);let I=new Die(T);I.artworkEl&&(I.artworkEl.alt=i||""),EM(T,{backgroundColor:u,backgroundGradient:p,textColor:b,playButtonColor:g?void 0:C,playButtonGradient:g?void 0:s});let D,L={ready:()=>{j8e(T,C||b),g&&XS(T,a),D=U8e(T,f),m&&I.play()?.catch(G8e)},ended:()=>d?.()};return T.addEventListener("waveformplayer:ready",L.ready),T.addEventListener("waveformplayer:ended",L.ended),{instance:I,container:T,destroy:()=>{D?.(),T.removeEventListener("waveformplayer:ready",L.ready),T.removeEventListener("waveformplayer:ended",L.ended),I.destroy(),T.remove()}}}var Hie=n(y(),1);function W8e(e,{title:t,artist:r,image:o,imageAlt:a},i){let{instance:l,container:s}=e,c=i?void 0:o;l.titleEl&&(l.titleEl.textContent=t??""),Oie(l,t||(0,zy.__)("Seek")),typeof l.syncArtist=="function"?l.syncArtist(r||""):l.artistEl&&(l.artistEl.textContent=r??"",l.artistEl.style.display=r?"":"none"),typeof l.syncArtwork=="function"?l.syncArtwork(c||null,c&&a||""):l.artworkEl&&c&&(l.artworkEl.src=c,l.artworkEl.alt=a||""),i&&XS(s,o)}function jie({src:e,title:t,artist:r,image:o,imageAlt:a,color:i,gradient:l,backgroundColor:s,backgroundGradient:c,textColor:u,waveformStyle:p,onEnded:m,showPlayButtonArtwork:d=!1}){let f=(0,JS.useEvent)(m),h=(0,Ic.useRef)(),g=!!e,v=(0,Ic.useRef)({src:e,title:t,artist:r,image:o,imageAlt:a}),b=(0,Ic.useRef)({color:i,gradient:l,backgroundColor:s,backgroundGradient:c,textColor:u});(0,Ic.useEffect)(()=>{v.current={src:e,title:t,artist:r,image:o,imageAlt:a}},[e,t,r,o,a]),(0,Ic.useEffect)(()=>{b.current={color:i,gradient:l,backgroundColor:s,backgroundGradient:c,textColor:u}},[i,l,s,c,u]),(0,Ic.useEffect)(()=>{h.current?.container&&EM(h.current.container,{backgroundColor:s,backgroundGradient:c,textColor:u,playButtonColor:d?void 0:i,playButtonGradient:d?void 0:l})},[s,c,i,l,d,u]);let _=(0,JS.useRefEffect)(k=>{if(!g)return;let x=!1,w;function C(){if(x)return;let I=Fie(k,{src:v.current.src,title:v.current.title,artist:v.current.artist,image:v.current.image,imageAlt:v.current.imageAlt,waveformColor:b.current.color,waveformGradient:b.current.gradient,backgroundColor:b.current.backgroundColor,backgroundGradient:b.current.backgroundGradient,textColor:b.current.textColor,waveformStyle:p,labels:{seek:(0,zy.__)("Seek"),seekValueText:(0,zy._x)("%1$s of %2$s","audio current time of total duration")},onEnded:()=>f?.(),showPlayButtonArtwork:d});h.current=I;let{destroy:D}=I;w=D}let T=setTimeout(C,100);return()=>{x=!0,clearTimeout(T),h.current=void 0,w?.()}},[f,g,p,i,l,u,d]);return(0,Ic.useEffect)(()=>{if(h.current?.instance){let k=h.current;k&&W8e(k,{title:t,artist:r,image:o,imageAlt:a},d)}},[t,r,o,a,d]),(0,Ic.useEffect)(()=>{if(e&&h.current?.instance){let k=h.current.instance.isPlaying;h.current.instance.loadTrack(e,v.current.title,v.current.artist,{artwork:d?void 0:v.current.image,artworkAlt:d?"":v.current.imageAlt}).then(()=>{d&&h.current?.container&&XS(h.current.container,v.current.image),k||h.current?.instance.pause()})}},[e,d]),(0,Hie.jsx)("div",{ref:_,className:"wp-block-playlist__waveform-player"})}var Uie=n(H(),1),e6=(0,Uie.createContext)({currentTrackClientId:null,setCurrentTrackClientId:()=>{},addTracks:void 0});var BM=n(N(),1);function IM(e){let t=e?.src??e?.url;return t?.endsWith("/images/media/audio.svg")?{image:"",imageAlt:""}:{image:t,imageAlt:t?e?.alt||e?.alt_text||"":void 0}}function t6(e){return{id:e.id||e.url,src:e.url,title:e.title,artist:e.artist||e?.meta?.artist||e?.media_details?.artist||(0,BM.__)("Unknown artist"),album:e.album||e?.meta?.album||e?.media_details?.album||(0,BM.__)("Unknown album"),length:e?.fileLength||e?.media_details?.length_formatted,...IM(e?.image)}}var We=n(y(),1),NM=["audio"],$8e=/\.(aac|aif|aiff|flac|m4a|m4b|mp3|oga|ogg|opus|wav|weba)$/i,r6="bars",q8e="[object FileList]",Z8e=[{label:(0,ft._x)("Bars","waveform style option"),value:"bars"},{label:(0,ft._x)("Mirror","waveform style option"),value:"mirror"},{label:(0,ft._x)("Line","waveform style option"),value:"line"},{label:(0,ft._x)("Blocks","waveform style option"),value:"blocks"},{label:(0,ft._x)("Dots","waveform style option"),value:"dots"},{label:(0,ft._x)("Seekbar","waveform style option"),value:"seekbar"}];function K8e(e){return Object.prototype.toString.call(e)==="[object File]"||typeof File<"u"&&e instanceof File}function Y8e(e){return e.type?e.type.startsWith("audio/"):$8e.test(e.name)}function Gie(e){return e.id??e.src??e.blob}var Q8e=({attributes:e,setAttributes:t,isSelected:r,insertBlocksAfter:o,clientId:a})=>{let{order:i,showTracklist:l,showNumbers:s,showImages:c,showPlayButtonArtwork:u,showArtists:p,showTrackLength:m,waveformStyle:d=r6,waveformColor:f,waveformGradient:h,waveformBackgroundColor:g,waveformBackgroundGradient:v}=e,b=(0,Ir.useBlockProps)(),_=`${a}-waveform`,{replaceInnerBlocks:k,selectBlock:x}=(0,Vy.useDispatch)(Ir.store),{createErrorNotice:w}=(0,Vy.useDispatch)(Wie.store),C=Z(),T=(0,Ir.__experimentalUseMultipleOriginColorsAndGradients)(),I=(0,$o.useMemo)(()=>T.colors.flatMap(X=>X?.colors??[]),[T.colors]),D=(0,$o.useMemo)(()=>T.gradients.flatMap(X=>X?.gradients??[]),[T.gradients]),L=I.length>0||!T.disableCustomColors,E=D.length>0||!T.disableCustomGradients,B=h,A=v,z,j,G=(0,$o.useCallback)(X=>{w(X,{type:"snackbar"})},[w]),[W,$]=(0,$o.useState)(null),{innerBlockTracks:V}=(0,Vy.useSelect)(X=>{let{getBlock:Ce}=X(Ir.store);return{innerBlockTracks:Ce(a)?.innerBlocks??[]}},[a]),Q=(0,$o.useMemo)(()=>V.filter(X=>!!X.attributes.src||!!X.attributes.blob),[V]),Y=(0,$o.useMemo)(()=>Q.map(X=>({...X.attributes,clientId:X.clientId})),[Q]);(0,$o.useEffect)(()=>{if(Q.length===0){W!==null&&$(null);return}Q.some(Ce=>Ce.clientId===W)||$(Q[0].clientId)},[W,$,Q]);let ee=(0,$o.useCallback)(X=>{if(!X)return[];let Ce=[X];Object.prototype.toString.call(X)===q8e?Ce=Array.from(X):Array.isArray(X)&&(Ce=X);let pe=!1,$e=Ce.map(fe=>{if(K8e(fe))return Y8e(fe)?(0,DM.createBlock)("core/playlist-track",{blob:(0,$ie.createBlobURL)(fe),title:fe.name}):(pe=!0,null);let Ae=t6(fe);return Ae.src?(0,DM.createBlock)("core/playlist-track",Ae):null}).filter(Boolean);return pe&&G((0,ft.__)("Only audio files can be added to a playlist.")),$e},[G]),te=(0,$o.useCallback)(X=>{let Ce=ee(X);Ce.length!==0&&($(Ce[0]?.clientId??null),k(a,Ce))},[a,ee,k,$]),oe=(0,$o.useCallback)(X=>{let Ce=new Set(Q.map(fe=>Gie(fe.attributes)).filter(Boolean)),pe=ee(X).filter(fe=>!Ce.has(Gie(fe.attributes)));if(pe.length===0)return;let $e=[...Q,...pe];$(pe[0].clientId),k(a,$e),x(pe[0].clientId)},[a,ee,k,x,$,Q]),J=(0,$o.useMemo)(()=>({currentTrackClientId:W,setCurrentTrackClientId:$,addTracks:oe}),[W,oe,$]),ce=Y.find(X=>X.clientId===W)??Y[0],ie=(0,$o.useCallback)(()=>{let X=Y.findIndex(pe=>pe.clientId===W),Ce=Y[X+1]||Y[0];Ce?.clientId&&$(Ce.clientId)},[W,$,Y]),we=(0,$o.useCallback)(X=>{let Ce=[...V].sort((pe,$e)=>{let fe=pe.attributes.title||"",Ae=$e.attributes.title||"";return X==="asc"?fe.localeCompare(Ae):Ae.localeCompare(fe)});k(a,Ce),$(Ce[0]?.clientId??null),t({order:X})},[a,V,k,t,$]);function se(X){return Ce=>{t({[X]:Ce})}}let de=(0,$o.useCallback)(X=>{t({waveformStyle:X===r6?void 0:X})},[t]);function ge(X){if(!(X!==void 0)&&z==="gradient"){z=void 0;return}z="color",t({waveformColor:X,waveformGradient:void 0})}function ne(X){if(!(X!==void 0)&&z==="color"){z=void 0;return}z="gradient",t({waveformGradient:X,waveformColor:void 0})}function me(X){if(!(X!==void 0)&&j==="gradient"){j=void 0;return}j="color",t({waveformBackgroundColor:X,waveformBackgroundGradient:void 0})}function le(X){if(!(X!==void 0)&&j==="color"){j=void 0;return}j="gradient",t({waveformBackgroundGradient:X,waveformBackgroundColor:void 0})}let Pe=[];(L||E)&&Pe.push({colorValue:L?f:void 0,gradientValue:E?B:void 0,label:(0,ft.__)("Waveform & Play button"),onColorChange:L?ge:void 0,onGradientChange:E?ne:void 0,isShownByDefault:!0,clearable:!0,enableAlpha:!0,resetAllFilter:()=>({waveformColor:void 0,waveformGradient:void 0})},{colorValue:L?g:void 0,gradientValue:E?A:void 0,label:(0,ft.__)("Waveform background"),onColorChange:L?me:void 0,onGradientChange:E?le:void 0,isShownByDefault:!0,clearable:!0,enableAlpha:!0,resetAllFilter:()=>({waveformBackgroundColor:void 0,waveformBackgroundGradient:void 0})});let Ee=(0,Ir.useInnerBlocksProps)(b,{__experimentalAppenderTagName:"li",renderAppender:!1});return Y.length===0?(0,We.jsx)("div",{...b,className:S("is-placeholder",b.className),children:(0,We.jsx)(Ir.MediaPlaceholder,{icon:(0,We.jsx)(Ir.BlockIcon,{icon:gv}),labels:{title:(0,ft.__)("Playlist"),instructions:(0,ft.__)("Upload an audio file or pick one from your media library.")},onSelect:te,accept:"audio/*",multiple:!0,handleUpload:!1,allowedTypes:NM,onError:G})}):(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)(Ir.BlockControls,{group:"other",children:(0,We.jsx)(Ir.MediaReplaceFlow,{name:(0,ft.__)("Add"),onSelect:oe,accept:"audio/*",multiple:!0,handleUpload:!1,allowedTypes:NM,onError:G})}),(0,We.jsx)(Ir.InspectorControls,{children:(0,We.jsxs)(br.__experimentalToolsPanel,{label:(0,ft.__)("Settings"),resetAll:()=>{t({showTracklist:!0,showArtists:!0,showNumbers:!0,showTrackLength:!0,showImages:!0,showPlayButtonArtwork:!1,order:"asc"})},dropdownMenuProps:C,children:[(0,We.jsx)(br.__experimentalToolsPanelItem,{label:(0,ft.__)("Show tracklist"),isShownByDefault:!0,hasValue:()=>l!==!0,onDeselect:()=>t({showTracklist:!0}),children:(0,We.jsx)(br.ToggleControl,{label:(0,ft.__)("Show tracklist"),onChange:se("showTracklist"),checked:l})}),l&&(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)(br.__experimentalToolsPanelItem,{label:(0,ft.__)("Show artist name in tracklist"),isShownByDefault:!0,hasValue:()=>p!==!0,onDeselect:()=>t({showArtists:!0}),children:(0,We.jsx)(br.ToggleControl,{label:(0,ft.__)("Show artist name in tracklist"),onChange:se("showArtists"),checked:p})}),(0,We.jsx)(br.__experimentalToolsPanelItem,{label:(0,ft.__)("Show track numbers in tracklist"),isShownByDefault:!0,hasValue:()=>s!==!0,onDeselect:()=>t({showNumbers:!0}),children:(0,We.jsx)(br.ToggleControl,{label:(0,ft.__)("Show track numbers in tracklist"),onChange:se("showNumbers"),checked:s})}),(0,We.jsx)(br.__experimentalToolsPanelItem,{label:(0,ft.__)("Show track duration in tracklist"),isShownByDefault:!0,hasValue:()=>m!==!0,onDeselect:()=>t({showTrackLength:!0}),children:(0,We.jsx)(br.ToggleControl,{label:(0,ft.__)("Show track duration in tracklist"),onChange:se("showTrackLength"),checked:m})})]}),(0,We.jsx)(br.__experimentalToolsPanelItem,{label:(0,ft.__)("Show tracklist images"),isShownByDefault:!0,hasValue:()=>c!==!0,onDeselect:()=>t({showImages:!0}),children:(0,We.jsx)(br.ToggleControl,{label:(0,ft.__)("Show tracklist images"),onChange:se("showImages"),checked:c})}),(0,We.jsx)(br.__experimentalToolsPanelItem,{label:(0,ft.__)("Show track image on play button"),isShownByDefault:!0,hasValue:()=>u===!0,onDeselect:()=>t({showPlayButtonArtwork:!1}),children:(0,We.jsx)(br.ToggleControl,{label:(0,ft.__)("Show track image on play button"),onChange:se("showPlayButtonArtwork"),checked:u===!0})}),(0,We.jsx)(br.__experimentalToolsPanelItem,{label:(0,ft.__)("Order"),isShownByDefault:!0,hasValue:()=>i!=="asc",onDeselect:()=>t({order:"asc"}),children:(0,We.jsx)(br.SelectControl,{label:(0,ft.__)("Order"),value:i,options:[{label:(0,ft.__)("Descending"),value:"desc"},{label:(0,ft.__)("Ascending"),value:"asc"}],onChange:X=>we(X)})})]})}),(0,We.jsx)(Ir.InspectorControls,{group:"styles",children:(0,We.jsxs)(br.__experimentalToolsPanel,{label:(0,ft.__)("Waveform"),resetAll:()=>{t({waveformStyle:void 0,waveformColor:void 0,waveformGradient:void 0,waveformBackgroundColor:void 0,waveformBackgroundGradient:void 0})},panelId:_,dropdownMenuProps:C,children:[Pe.length>0&&(0,We.jsx)("div",{className:"wp-block-playlist__waveform-color-controls",children:(0,We.jsx)(Ir.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:Pe,panelId:_,...T})}),(0,We.jsx)(br.__experimentalToolsPanelItem,{label:(0,ft.__)("Shape"),isShownByDefault:!0,hasValue:()=>d!==r6,onDeselect:()=>de(r6),panelId:_,children:(0,We.jsx)(br.SelectControl,{label:(0,ft.__)("Shape"),value:d,options:Z8e,onChange:de})})]})}),(0,We.jsxs)("figure",{...b,children:[(0,We.jsx)(Ir.MediaPlaceholder,{onSelect:oe,accept:"audio/*",multiple:!0,handleUpload:!1,disableMediaButtons:!0,allowedTypes:NM,onError:G}),(0,We.jsx)(br.Disabled,{isDisabled:!r,children:(0,We.jsx)(jie,{src:ce?.src,title:ce?.title,artist:ce?.artist,image:ce?.image,imageAlt:ce?.imageAlt,waveformStyle:d,color:f,gradient:B,backgroundColor:g,backgroundGradient:A,onEnded:ie,showPlayButtonArtwork:u===!0})}),(0,We.jsx)("ol",{className:S("wp-block-playlist__tracklist",{"wp-block-playlist__tracklist-is-hidden":!l,"wp-block-playlist__tracklist-show-numbers":s,"wp-block-playlist__tracklist-length-is-hidden":!m}),children:(0,We.jsx)(e6.Provider,{value:J,children:Ee.children})}),(0,We.jsx)(Mo,{attributes:e,setAttributes:t,isSelected:r,insertBlocksAfter:o,label:(0,ft.__)("Playlist caption text"),showToolbarButton:r,style:{marginTop:16}})]})]})},qie=Q8e;var Mu=n(P(),1),Oy=n(y(),1);function Zie({attributes:e}){let{caption:t,showNumbers:r,showTracklist:o,showArtists:a,showTrackLength:i}=e,l=Mu.useBlockProps.save(),s=Mu.useInnerBlocksProps.save(l);return(0,Oy.jsxs)("figure",{...s,children:[(0,Oy.jsx)("ol",{className:S("wp-block-playlist__tracklist",{"wp-block-playlist__tracklist-is-hidden":!o,"wp-block-playlist__tracklist-artist-is-hidden":!a,"wp-block-playlist__tracklist-length-is-hidden":!i,"wp-block-playlist__tracklist-show-numbers":r}),children:s.children}),!Mu.RichText.isEmpty(t)&&(0,Oy.jsx)(Mu.RichText.Content,{tagName:"figcaption",className:(0,Mu.__experimentalGetElementClassName)("caption"),value:t})]})}var{name:Kie}=YS,Yie={icon:gv,edit:qie,save:Zie},X8e=()=>R({name:Kie,metadata:YS,settings:Yie});var RM={};K(RM,{init:()=>r7e,metadata:()=>o6,name:()=>tle,settings:()=>rle});var o6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/playlist-track",title:"Playlist track",category:"media",parent:["core/playlist"],description:"Playlist track.",keywords:["music","sound"],textdomain:"default",usesContext:["showArtists","showImages"],attributes:{blob:{type:"string",role:"local"},id:{type:"number"},src:{type:"string"},type:{type:"string",default:"audio"},album:{type:"string"},artist:{type:"string"},image:{type:"string"},imageAlt:{type:"string"},length:{type:"string"},title:{type:"string"}},supports:{html:!1,interactivity:{clientNavigation:!0},reusable:!1},style:"wp-block-playlist-track"};var Qie=n(Ar(),1),vm=n(H(),1),Jr=n(P(),1),Zn=n(O(),1);var Xie=n(F(),1),Jie=n(Sr(),1),jr=n(N(),1);var a6=n(Pn(),1);var at=n(y(),1),n6=["audio"],e7e=["image"],t7e=({attributes:e,setAttributes:t,context:r,clientId:o,isSelected:a})=>{let{id:i,src:l,album:s,artist:c,image:u,imageAlt:p,length:m,title:d}=e,[f,h]=(0,vm.useState)(e.blob),g=r?.showArtists,v=r?.showImages??!0,b=(0,vm.useRef)(),_=(0,Jr.useBlockProps)(),{currentTrackClientId:k,setCurrentTrackClientId:x,addTracks:w}=(0,vm.useContext)(e6),{createErrorNotice:C}=(0,Xie.useDispatch)(Jie.store);function T(B){C(B,{type:"snackbar"})}let I=!!l||!!f;(0,vm.useEffect)(()=>{a&&I&&k!==o&&x(o)},[a,I,o,k,x]),Us({url:f,allowedTypes:n6,onChange:D,onError:T});function D(B){if(!B||!B.url){t({blob:void 0,id:void 0,artist:void 0,album:void 0,image:void 0,imageAlt:void 0,length:void 0,title:void 0,url:void 0}),h();return}if((0,Qie.isBlobURL)(B.url)){h(B.url);return}t({blob:void 0,...t6(B)}),h()}function L(B){t(IM(B))}function E(){t({image:void 0,imageAlt:void 0}),b.current.focus()}return I?(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)(Jr.BlockControls,{group:"other",children:(0,at.jsx)(Jr.MediaReplaceFlow,{name:(0,jr.__)("Replace"),onSelect:D,accept:"audio/*",mediaId:i,mediaURL:l,allowedTypes:n6,onError:T,variant:"toolbar"})}),!!w&&(0,at.jsx)(Jr.BlockControls,{group:"block",children:(0,at.jsx)(Jr.MediaReplaceFlow,{name:(0,jr.__)("Add"),onSelect:w,accept:"audio/*",multiple:!0,handleUpload:!1,allowedTypes:n6,onError:T,variant:"toolbar"})}),(0,at.jsx)(Jr.InspectorControls,{children:(0,at.jsxs)(Zn.PanelBody,{title:(0,jr.__)("Settings"),children:[(0,at.jsx)(Zn.TextControl,{label:(0,jr.__)("Artist"),value:c?(0,a6.__unstableStripHTML)(c):"",onChange:B=>{t({artist:B})}}),(0,at.jsx)(Zn.TextControl,{label:(0,jr.__)("Album"),value:s?(0,a6.__unstableStripHTML)(s):"",onChange:B=>{t({album:B})}}),(0,at.jsx)(Zn.TextControl,{label:(0,jr.__)("Title"),value:d?(0,a6.__unstableStripHTML)(d):"",onChange:B=>{t({title:B})}}),(0,at.jsx)(Jr.MediaUploadCheck,{children:(0,at.jsxs)(Zn.BaseControl,{children:[(0,at.jsx)(Zn.BaseControl.VisualLabel,{children:(0,jr.__)("Track image")}),(0,at.jsxs)("div",{className:"editor-video-poster-control",children:[!!u&&(0,at.jsx)("img",{src:u,alt:(0,jr.__)("Preview of the track image")}),(0,at.jsx)(Jr.MediaUpload,{title:(0,jr.__)("Select image"),onSelect:L,allowedTypes:e7e,render:({open:B})=>(0,at.jsx)(Zn.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:B,ref:b,children:u?(0,jr.__)("Replace"):(0,jr.__)("Select")})}),!!u&&(0,at.jsx)(Zn.Button,{__next40pxDefaultSize:!0,onClick:E,variant:"tertiary",children:(0,jr.__)("Remove")})]})]})}),!!u&&(0,at.jsx)(Zn.TextareaControl,{label:(0,jr.__)("Alternative text"),value:p||"",onChange:B=>t({imageAlt:B}),help:(0,at.jsx)(uu,{openInNewTab:!0,href:(0,jr.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,jr.__)("Describe the purpose of the image.")})})]})}),(0,at.jsxs)("li",{..._,children:[!!f&&(0,at.jsx)(Zn.Spinner,{}),(0,at.jsxs)("button",{className:"wp-block-playlist-track__button",onClick:()=>x(o),"aria-current":k===o?"true":"false",children:[v&&!!u&&(0,at.jsx)("img",{className:"wp-block-playlist-track__image",src:u,alt:p||""}),(0,at.jsxs)("span",{className:"wp-block-playlist-track__content",children:[(0,at.jsx)(Jr.PlainText,{tagName:"span",className:"wp-block-playlist-track__title",value:d,placeholder:(0,jr.__)("Add title"),onChange:B=>{t({title:B})},__experimentalVersion:2}),g&&(0,at.jsx)(Jr.PlainText,{tagName:"span",className:"wp-block-playlist-track__artist",value:c,placeholder:(0,jr.__)("Add artist"),onChange:B=>t({artist:B}),__experimentalVersion:2})]}),(0,at.jsxs)("span",{className:"wp-block-playlist-track__length",children:[m&&(0,at.jsx)("span",{className:"screen-reader-text",children:(0,jr.__)("Duration:")}),m]}),(0,at.jsx)("span",{className:"screen-reader-text",children:(0,jr.__)("Play")})]})]})]}):(0,at.jsx)("div",{..._,children:(0,at.jsx)(Jr.MediaPlaceholder,{icon:(0,at.jsx)(Jr.BlockIcon,{icon:ru}),labels:{title:(0,jr.__)("Track"),instructions:(0,jr.__)("Upload an audio file or pick one from your media library.")},onSelect:D,accept:"audio/*",allowedTypes:n6,value:e,onError:T})})},ele=t7e;var{name:tle}=o6,rle={icon:ru,edit:ele},r7e=()=>R({name:tle,metadata:o6,settings:rle});var MM={};K(MM,{init:()=>s7e,metadata:()=>i6,name:()=>ple,settings:()=>mle});var ule=n(N(),1);var i6={$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 Ta=n(P(),1),Dr=n(O(),1),lle=n(ve(),1),l6=n(re(),1),kf=n(F(),1),s6=n(H(),1),AM=n(en(),1),Nr=n(N(),1),sle=n(q(),1);var xf=n(q(),1),nle=n(N(),1),ale=n(P(),1);var{cleanEmptyObject:ole}=U(ale.privateApis);function ile(e,t){let{avatarSize:r,byline:o,showAvatar:a,showBio:i,isLink:l,linkTarget:s,textAlign:c,style:u,...p}=e,m=a&&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,xf.createBlock)("core/group",{...p,style:ole({...u,spacing:{...u?.spacing,blockGap:"1em"},color:{...u?.color,duotone:void 0}}),layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"top"}},[m&&(0,xf.createBlock)("core/avatar",{size:r,style:ole({border:{radius:"0px"},color:{duotone:u?.color?.duotone}})}),(0,xf.createBlock)("core/group",{style:{layout:{selfStretch:"fill",flexSize:null},spacing:{blockGap:"0"}},layout:{type:"flex",orientation:"vertical",justifyContent:"stretch"}},[d&&(0,xf.createBlock)("core/paragraph",{content:o,placeholder:(0,nle.__)("Write byline\u2026"),style:{typography:{fontSize:"0.5em",textAlign:c}}}),f&&(0,xf.createBlock)("core/post-author-name",{isLink:l,linkTarget:s,style:{typography:{fontSize:"1em",textAlign:c}}}),h&&(0,xf.createBlock)("core/post-author-biography",{style:{typography:{fontSize:"0.7em",textAlign:c}}})].filter(Boolean))].filter(Boolean))}var ht=n(y(),1),{InspectorControlsLastItem:n7e}=U(Ta.privateApis),a7e={who:"authors",per_page:100,_fields:"id,name",context:"view"};function i7e({value:e,onChange:t}){let[r,o]=(0,s6.useState)(""),{authors:a,isLoading:i}=(0,kf.useSelect)(s=>{let{getUsers:c,isResolving:u}=s(l6.store),p={...a7e};return r&&(p.search=r,p.search_columns=["name"]),{authors:c(p),isLoading:u("getUsers",[p])}},[r]),l=(0,s6.useMemo)(()=>{let s=(a??[]).map(p=>({value:p.id,label:(0,AM.decodeEntities)(p.name)})),c=s.findIndex(p=>e?.id===p.value),u=[];return c<0&&e?u=[{value:e.id,label:(0,AM.decodeEntities)(e.name)}]:c<0&&!e&&(u=[{value:0,label:(0,Nr.__)("(No author)")}]),[...u,...s]},[a,e]);return(0,ht.jsx)(Dr.ComboboxControl,{label:(0,Nr.__)("Author"),options:l,value:e?.id,onFilterValueChange:(0,lle.debounce)(o,300),onChange:t,allowReset:!1,isLoading:i})}function l7e({isSelected:e,context:{postType:t,postId:r,queryId:o},attributes:a,setAttributes:i,clientId:l}){let s=Number.isFinite(o),c=Z(),u=Hv(),{authorDetails:p,canAssignAuthor:m,supportsAuthor:d}=(0,kf.useSelect)(A=>{let{getEditedEntityRecord:z,getUser:j,getPostType:G}=A(l6.store),W=z("postType",t,r),$=W?.author;return{authorDetails:$?j($,{context:"view"}):null,supportsAuthor:G(t)?.supports?.author??!1,canAssignAuthor:!!W?._links?.["wp:action-assign-author"]}},[t,r]),f=(0,kf.useSelect)(A=>A(sle.store).getBlockTypes(),[]),{editEntityRecord:h}=(0,kf.useDispatch)(l6.store),{replaceBlock:g}=(0,kf.useDispatch)(Ta.store),{textAlign:v,showAvatar:b,showBio:_,byline:k,isLink:x,linkTarget:w,avatarSize:C}=a,T=[],I=p?.name||(0,Nr.__)("Post Author");p?.avatar_urls&&Object.keys(p.avatar_urls).forEach(A=>{T.push({value:A,label:`${A} x ${A}`})});let D=(0,Ta.useBlockProps)({className:S({[`has-text-align-${v}`]:v})}),L=A=>{h("postType",t,r,{author:A})},E=!!r&&!s&&m;if(!d&&t!==void 0)return(0,ht.jsx)("div",{...D,children:(0,Nr.sprintf)((0,Nr.__)("This post type (%s) does not support the author."),t)});function B(){g(l,ile(a,f))}return(0,ht.jsxs)(ht.Fragment,{children:[(0,ht.jsx)(Ta.InspectorControls,{children:(0,ht.jsxs)(Dr.__experimentalToolsPanel,{label:(0,Nr.__)("Settings"),resetAll:()=>{i({avatarSize:48,showAvatar:!0,isLink:!1,linkTarget:"_self"})},dropdownMenuProps:c,children:[E&&(0,ht.jsx)("div",{style:{gridColumn:"1 / -1"},children:(0,ht.jsx)(i7e,{value:p,onChange:L})}),(0,ht.jsx)(Dr.__experimentalToolsPanelItem,{label:(0,Nr.__)("Show avatar"),isShownByDefault:!0,hasValue:()=>!b,onDeselect:()=>i({showAvatar:!0}),children:(0,ht.jsx)(Dr.ToggleControl,{label:(0,Nr.__)("Show avatar"),checked:b,onChange:()=>i({showAvatar:!b})})}),b&&(0,ht.jsx)(Dr.__experimentalToolsPanelItem,{label:(0,Nr.__)("Avatar size"),isShownByDefault:!0,hasValue:()=>C!==48,onDeselect:()=>i({avatarSize:48}),children:(0,ht.jsx)(Dr.SelectControl,{label:(0,Nr.__)("Avatar size"),value:C,options:T,onChange:A=>{i({avatarSize:Number(A)})}})}),(0,ht.jsx)(Dr.__experimentalToolsPanelItem,{label:(0,Nr.__)("Show bio"),isShownByDefault:!0,hasValue:()=>!!_,onDeselect:()=>i({showBio:void 0}),children:(0,ht.jsx)(Dr.ToggleControl,{label:(0,Nr.__)("Show bio"),checked:!!_,onChange:()=>i({showBio:!_})})}),(0,ht.jsx)(Dr.__experimentalToolsPanelItem,{label:(0,Nr.__)("Link author name to author page"),isShownByDefault:!0,hasValue:()=>!!x,onDeselect:()=>i({isLink:!1}),children:(0,ht.jsx)(Dr.ToggleControl,{label:(0,Nr.__)("Link author name to author page"),checked:x,onChange:()=>i({isLink:!x})})}),x&&(0,ht.jsx)(Dr.__experimentalToolsPanelItem,{label:(0,Nr.__)("Link target"),isShownByDefault:!0,hasValue:()=>w!=="_self",onDeselect:()=>i({linkTarget:"_self"}),children:(0,ht.jsx)(Dr.ToggleControl,{label:(0,Nr.__)("Open in new tab"),onChange:A=>i({linkTarget:A?"_blank":"_self"}),checked:w==="_blank"})})]})}),f.some(A=>A.name==="core/group")&&(0,ht.jsx)(n7e,{children:(0,ht.jsxs)(Dr.__experimentalVStack,{className:"wp-block-post-author__transform",alignment:"left",spacing:4,children:[(0,ht.jsx)(Dr.__experimentalText,{as:"p",children:(0,Nr.__)("This block is no longer supported. Recreate its design with the Avatar, Author Name and Author Biography blocks.")}),(0,ht.jsx)(Dr.Button,{variant:"primary",onClick:B,__next40pxDefaultSize:!0,children:(0,Nr.__)("Recreate")})]})}),(0,ht.jsx)(Ta.BlockControls,{group:"block",children:(0,ht.jsx)(Ta.AlignmentControl,{value:v,onChange:A=>{i({textAlign:A})}})}),(0,ht.jsxs)("div",{...D,children:[b&&(0,ht.jsx)("div",{className:"wp-block-post-author__avatar",children:(0,ht.jsx)("img",{width:C,src:p?.avatar_urls?.[C]||u,alt:p?.name||(0,Nr.__)("Default Avatar")})}),(0,ht.jsxs)("div",{className:"wp-block-post-author__content",children:[(!Ta.RichText.isEmpty(k)||e)&&(0,ht.jsx)(Ta.RichText,{identifier:"byline",className:"wp-block-post-author__byline","aria-label":(0,Nr.__)("Post author byline text"),placeholder:(0,Nr.__)("Write byline\u2026"),value:k,onChange:A=>i({byline:A})}),(0,ht.jsx)("p",{className:"wp-block-post-author__name",children:x?(0,ht.jsx)("a",{href:"#post-author-pseudo-link",onClick:A=>A.preventDefault(),children:I}):I}),_&&(0,ht.jsx)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:p?.description}})]})]})]})}var cle=l7e;var{name:ple}=i6,mle={icon:ad,example:{viewportWidth:350,attributes:{showBio:!0,byline:(0,ule.__)("Posted by")}},edit:cle},s7e=()=>R({name:ple,metadata:i6,settings:mle});var zM={};K(zM,{init:()=>d7e,metadata:()=>c6,name:()=>yle,settings:()=>_le});var c6={$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 u6=n(P(),1),dle=n(F(),1),Nc=n(N(),1),fle=n(re(),1),bm=n(O(),1);var $i=n(y(),1);function u7e(e){Ct(e);let{attributes:{isLink:t,linkTarget:r},setAttributes:o,context:{postType:a,postId:i}}=e,{authorName:l,supportsAuthor:s}=(0,dle.useSelect)(d=>{let{getEditedEntityRecord:f,getUser:h,getPostType:g}=d(fle.store),v=f("postType",a,i)?.author;return{authorName:v?h(v):null,supportsAuthor:g(a)?.supports?.author??!1}},[a,i]),c=(0,u6.useBlockProps)(),u=l?.name||(0,Nc.__)("Author Name"),p=t?(0,$i.jsx)("a",{href:"#author-pseudo-link",onClick:d=>d.preventDefault(),className:"wp-block-post-author-name__link",children:u}):u,m=Z();return(0,$i.jsxs)($i.Fragment,{children:[(0,$i.jsx)(u6.InspectorControls,{children:(0,$i.jsxs)(bm.__experimentalToolsPanel,{label:(0,Nc.__)("Settings"),resetAll:()=>{o({isLink:!1,linkTarget:"_self"})},dropdownMenuProps:m,children:[(0,$i.jsx)(bm.__experimentalToolsPanelItem,{label:(0,Nc.__)("Link to author archive"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>o({isLink:!1}),children:(0,$i.jsx)(bm.ToggleControl,{label:(0,Nc.__)("Link to author archive"),onChange:()=>o({isLink:!t}),checked:t})}),t&&(0,$i.jsx)(bm.__experimentalToolsPanelItem,{label:(0,Nc.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r!=="_self",onDeselect:()=>o({linkTarget:"_self"}),children:(0,$i.jsx)(bm.ToggleControl,{label:(0,Nc.__)("Open in new tab"),onChange:d=>o({linkTarget:d?"_blank":"_self"}),checked:r==="_blank"})})]})}),(0,$i.jsx)("div",{...c,children:!s&&a!==void 0?(0,Nc.sprintf)((0,Nc.__)("This post type (%s) does not support the author."),a):p})]})}var hle=u7e;var p7e={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},gle=[p7e];var vle=n(q(),1),m7e={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,vle.createBlock)("core/post-author-name",{style:{typography:{textAlign:e}}})}]},ble=m7e;var{name:yle}=c6,_le={icon:ad,transforms:ble,edit:hle,deprecated:gle},d7e=()=>R({name:yle,metadata:c6,settings:_le});var VM={};K(VM,{init:()=>v7e,metadata:()=>p6,name:()=>Ple,settings:()=>Ele});var p6={$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 xle=n(P(),1),kle=n(F(),1),wle=n(N(),1),Cle=n(re(),1);var Fy=n(y(),1);function h7e(e){Ct(e);let{context:{postType:t,postId:r}}=e,{authorDetails:o}=(0,kle.useSelect)(l=>{let{getEditedEntityRecord:s,getUser:c}=l(Cle.store),u=s("postType",t,r)?.author;return{authorDetails:u?c(u):null}},[t,r]),a=(0,xle.useBlockProps)(),i=o?.description||(0,wle.__)("Author Biography");return(0,Fy.jsx)(Fy.Fragment,{children:(0,Fy.jsx)("div",{...a,dangerouslySetInnerHTML:{__html:i}})})}var Sle=h7e;var g7e={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Tle=[g7e];var{name:Ple}=p6,Ele={icon:ad,edit:Sle,deprecated:Tle},v7e=()=>R({name:Ple,metadata:p6,settings:Ele});var OM={};K(OM,{init:()=>_7e,metadata:()=>m6,name:()=>Lle,settings:()=>Rle});var m6={$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 Hy=n(N(),1),x0=n(O(),1),Ble=n(H(),1);var d6=n(P(),1),wf=n(y(),1),y7e=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function Ile({attributes:{commentId:e},setAttributes:t}){let[r,o]=(0,Ble.useState)(e),a=(0,d6.useBlockProps)(),i=(0,d6.useInnerBlocksProps)(a,{template:y7e});return e?(0,wf.jsx)("div",{...i}):(0,wf.jsx)("div",{...a,children:(0,wf.jsxs)(x0.Placeholder,{icon:tP,label:(0,Hy._x)("Post Comment","block title"),instructions:(0,Hy.__)("To show a comment, input the comment ID."),children:[(0,wf.jsx)(x0.TextControl,{value:e,onChange:l=>o(parseInt(l))}),(0,wf.jsx)(x0.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t({commentId:r})},children:(0,Hy.__)("Save")})]})})}var f6=n(P(),1),Nle=n(y(),1);function Dle(){let e=f6.useBlockProps.save(),t=f6.useInnerBlocksProps.save(e);return(0,Nle.jsx)("div",{...t})}var{name:Lle}=m6,Rle={icon:K1,edit:Ile,save:Dle},_7e=()=>R({name:Lle,metadata:m6,settings:Rle});var FM={};K(FM,{init:()=>C7e,metadata:()=>h6,name:()=>Ule,settings:()=>Gle});var h6={$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 Ale=n(P(),1),g6=n(H(),1),Mle=n(wb(),1),zle=n(pr(),1),Vle=n(y(),1);function Ole({context:e}){let{postId:t}=e,[r,o]=(0,g6.useState)(),a=(0,Ale.useBlockProps)();(0,g6.useEffect)(()=>{if(!t)return;let s=t;(0,Mle.default)({path:(0,zle.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={...a.style,textDecoration:i?a.style?.textDecoration:void 0};return(0,Vle.jsx)("div",{...a,style:l,children:i?r:"0"})}var Fle=n(q(),1),k7e={to:[{type:"block",blocks:["core/post-comments-link"],transform:({style:e})=>{let t=e?.typography?.textAlign;return(0,Fle.createBlock)("core/post-comments-link",{...t&&{style:{typography:{textAlign:t}}}})}}]},Hle=k7e;var w7e={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},jle=[w7e];var{name:Ule}=h6,Gle={icon:vv,edit:Ole,transforms:Hle,deprecated:jle},C7e=()=>R({name:Ule,metadata:h6,settings:Gle});var jM={};K(jM,{init:()=>P7e,metadata:()=>v6,name:()=>Zle,settings:()=>Kle});var v6={$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 Wle=n(P(),1),$le=n(ve(),1),b6=n(N(),1);var jy=n(y(),1);function HM({context:e}){let{postId:t,postType:r}=e,o=(0,$le.useInstanceId)(HM),a=(0,b6.sprintf)("comments-form-edit-%d-desc",o),i=(0,Wle.useBlockProps)({"aria-describedby":a});return(0,jy.jsxs)("div",{...i,children:[(0,jy.jsx)(Iw,{postId:t,postType:r}),(0,jy.jsx)(gi,{id:a,children:(0,b6.__)("Comments form disabled in editor.")})]})}var T7e={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},qle=[T7e];var{name:Zle}=v6,Kle={icon:DB,edit:HM,deprecated:qle},P7e=()=>R({name:Zle,metadata:v6,settings:Kle});var UM={};K(UM,{init:()=>D7e,metadata:()=>y6,name:()=>ase,settings:()=>ise});var y6={$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 Yle=n(P(),1),x6=n(H(),1),Qle=n(F(),1),Xle=n(wb(),1),Jle=n(pr(),1),Cf=n(N(),1),ese=n(re(),1),_6=n(y(),1);function B7e({context:e}){let{postType:t,postId:r}=e,[o,a]=(0,x6.useState)(),i=(0,Yle.useBlockProps)();(0,x6.useEffect)(()=>{if(!r)return;let c=r;(0,Xle.default)({path:(0,Jle.addQueryArgs)("/wp/v2/comments",{post:r}),parse:!1}).then(u=>{c===r&&a(u.headers.get("X-WP-Total"))})},[r]);let l=(0,Qle.useSelect)(c=>c(ese.store).getEditedEntityRecord("postType",t,r),[t,r]),s;if(o!==void 0){let c=parseInt(o);c===0?s=(0,Cf.__)("No comments"):s=(0,Cf.sprintf)((0,Cf._n)("%s comment","%s comments",c),c.toLocaleString())}return(0,_6.jsx)("div",{...i,children:l?.link&&s!==void 0?(0,_6.jsx)("a",{href:l?.link+"#comments",onClick:c=>c.preventDefault(),children:s}):(0,_6.jsx)("a",{href:"#post-comments-link-pseudo-link",onClick:c=>c.preventDefault(),children:(0,Cf.__)("No comments")})})}var tse=B7e;var rse=n(q(),1),I7e={to:[{type:"block",blocks:["core/post-comments-count"],transform:({style:e})=>{let t=e?.typography?.textAlign;return(0,rse.createBlock)("core/post-comments-count",{...t&&{style:{typography:{textAlign:t}}}})}}]},ose=I7e;var N7e={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},nse=[N7e];var{name:ase}=y6,ise={edit:tse,icon:vv,transforms:ose,deprecated:nse},D7e=()=>R({name:ase,metadata:y6,settings:ise});var GM={};K(GM,{init:()=>j7e,metadata:()=>k6,name:()=>pse,settings:()=>mse});var k6={$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,gradient:!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 Sf=n(N(),1),Ur=n(P(),1),lse=n(q(),1),Tf=n(re(),1),sse=n(F(),1),cse=n(H(),1);var tr=n(y(),1),{HTMLElementControl:R7e}=U(Ur.privateApis);function A7e({parentLayout:e,layoutClassNames:t,userCanEdit:r,postType:o,postId:a,tagName:i="div"}){let[,,l]=(0,Tf.useEntityProp)("postType",o,"content",a),s=(0,Ur.useBlockProps)({className:t}),c=(0,cse.useMemo)(()=>l?.raw?(0,lse.parse)(l.raw):[],[l?.raw]),u=(0,Ur.__experimentalUseBlockPreview)({blocks:c,props:s,layout:e});return r?(0,tr.jsx)("div",{...u}):l?.protected?(0,tr.jsx)(i,{...s,children:(0,tr.jsx)(Ur.Warning,{children:(0,Sf.__)("This content is password protected.")})}):(0,tr.jsx)(i,{...s,dangerouslySetInnerHTML:{__html:l?.rendered}})}function M7e({blockProps:e,blocks:t,onInput:r,onChange:o,tagName:a="div"}){let i=(0,Ur.useInnerBlocksProps)(e,{value:t,onInput:r,onChange:o,renderAppender:t?.length?void 0:Ur.InnerBlocks.DefaultBlockAppender});return(0,tr.jsx)(a,{...i})}function z7e({context:e={},tagName:t="div"}){let{postType:r,postId:o}=e,[a,i,l]=(0,Tf.useEntityBlockEditor)("postType",r,{id:o}),s=(0,sse.useSelect)(u=>u(Tf.store).getEntityRecord("postType",r,o)!==void 0||u(Tf.store).hasFinishedResolution("getEntityRecord",["postType",r,o]),[r,o]),c=(0,Ur.useBlockProps)({className:"entry-content"});return s?(0,tr.jsx)(M7e,{blockProps:c,blocks:a,onInput:i,onChange:l,tagName:t}):(0,tr.jsx)(t,{...c})}function V7e(e){let{context:{queryId:t,postType:r,postId:o}={},layoutClassNames:a,tagName:i}=e,l=n5("postType",r,o);if(l===void 0)return null;let s=Number.isFinite(t);return l&&!s?(0,tr.jsx)(z7e,{...e}):(0,tr.jsx)(A7e,{parentLayout:e.parentLayout,layoutClassNames:a,userCanEdit:l,postType:r,postId:o,tagName:i})}function O7e({layoutClassNames:e}){let t=(0,Ur.useBlockProps)({className:e});return(0,tr.jsxs)("div",{...t,children:[(0,tr.jsx)("p",{children:(0,Sf.__)("This is the Content block, it will display all the blocks in any single post or page.")}),(0,tr.jsx)("p",{children:(0,Sf.__)("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,tr.jsx)("p",{children:(0,Sf.__)("If there are any Custom Post Types registered at your site, the Content block can display the contents of those entries as well.")})]})}function F7e(){let e=(0,Ur.useBlockProps)();return(0,tr.jsx)("div",{...e,children:(0,tr.jsx)(Ur.Warning,{children:(0,Sf.__)("Block cannot be rendered inside itself.")})})}function H7e({tagName:e,onSelectTagName:t,clientId:r}){return(0,tr.jsx)(Ur.InspectorControls,{group:"advanced",children:(0,tr.jsx)(R7e,{tagName:e,onChange:t,clientId:r,options:[{label:(0,Sf.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"}]})})}function use({context:e,attributes:{tagName:t="div"},setAttributes:r,clientId:o,__unstableLayoutClassNames:a,__unstableParentLayout:i}){let{postId:l,postType:s}=e,c=(0,Ur.useHasRecursion)(l);return l&&s&&c?(0,tr.jsx)(F7e,{}):(0,tr.jsxs)(tr.Fragment,{children:[(0,tr.jsx)(H7e,{tagName:t,onSelectTagName:p=>{r({tagName:p})},clientId:o}),(0,tr.jsx)(Ur.RecursionProvider,{uniqueId:l,children:l&&s?(0,tr.jsx)(V7e,{context:e,parentLayout:i,layoutClassNames:a}):(0,tr.jsx)(O7e,{layoutClassNames:a})})]})}var{name:pse}=k6,mse={icon:MB,edit:use},j7e=()=>R({name:pse,metadata:k6,settings:mse});var WM={};K(WM,{init:()=>Y7e,metadata:()=>w6,name:()=>yse,settings:()=>_se});var w6={$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 dse=n(re(),1),k0=n(H(),1),Pf=n(Vw(),1),ri=n(P(),1),qi=n(O(),1),Pa=n(N(),1);var fse=n(qs(),1),Uy=n(F(),1),hse=n(q(),1);var Bo=n(y(),1);function gse(e){let{attributes:t,context:{postType:r,queryId:o},setAttributes:a,name:i}=e;Ct(e);let{datetime:l,format:s,isLink:c}=t,u=(0,ri.useBlockProps)(),p=Z(),[m,d]=(0,k0.useState)(null),f=(0,k0.useMemo)(()=>({anchor:m}),[m]),{__unstableMarkNextChangeAsNotPersistent:h}=(0,Uy.useDispatch)(ri.store);(0,k0.useEffect)(()=>{l===void 0&&(h(),a({datetime:new Date}))},[l]);let g=Number.isFinite(o),v=(0,Pf.getSettings)(),{postType:b,siteFormat:_=v.formats.date,siteTimeFormat:k=v.formats.time}=(0,Uy.useSelect)(I=>{let{getPostType:D,getEntityRecord:L}=I(dse.store),E=L("root","site");return{siteFormat:E?.date_format,siteTimeFormat:E?.time_format,postType:r?D(r):null}},[r]),x=(0,Uy.useSelect)(I=>I(hse.store).getActiveBlockVariation(i,t)?.name,[i,t]),w=(0,ri.useBlockEditingMode)(),C=l||new Date,T=(0,Bo.jsx)("time",{dateTime:(0,Pf.dateI18n)("c",C),ref:d,children:s==="human-diff"?(0,Pf.humanTimeDiff)(C):(0,Pf.dateI18n)(s||_,C)});return c&&l&&(T=(0,Bo.jsx)("a",{href:"#post-date-pseudo-link",onClick:I=>I.preventDefault(),children:T})),(0,Bo.jsxs)(Bo.Fragment,{children:[(w==="default"||!g)&&x!=="post-date-modified"&&(!g||!x)&&(0,Bo.jsx)(ri.BlockControls,{group:"block",children:(0,Bo.jsx)(qi.ToolbarGroup,{children:(0,Bo.jsx)(qi.Dropdown,{popoverProps:f,renderContent:({onClose:I})=>(0,Bo.jsx)(ri.__experimentalPublishDateTimePicker,{title:x==="post-date"?(0,Pa.__)("Publish Date"):(0,Pa.__)("Date"),currentDate:l,onChange:D=>a({datetime:D}),is12Hour:G7e(k),onClose:I,dateOrder:(0,Pa._x)("dmy","date order")}),renderToggle:({isOpen:I,onToggle:D})=>{let L=E=>{!I&&E.keyCode===fse.DOWN&&(E.preventDefault(),D())};return(0,Bo.jsx)(qi.ToolbarButton,{"aria-expanded":I,icon:nd,title:(0,Pa.__)("Change Date"),onClick:D,onKeyDown:L})}})})}),(0,Bo.jsx)(ri.InspectorControls,{children:(0,Bo.jsxs)(qi.__experimentalToolsPanel,{label:(0,Pa.__)("Settings"),resetAll:()=>{a({datetime:void 0,format:void 0,isLink:!1})},dropdownMenuProps:p,children:[(0,Bo.jsx)(qi.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Pa.__)("Date Format"),onDeselect:()=>a({format:void 0}),isShownByDefault:!0,children:(0,Bo.jsx)(ri.__experimentalDateFormatPicker,{format:s,defaultFormat:_,onChange:I=>a({format:I})})}),(0,Bo.jsx)(qi.__experimentalToolsPanelItem,{hasValue:()=>c!==!1,label:b?.labels?.singular_name?(0,Pa.sprintf)((0,Pa.__)("Link to %s"),b.labels.singular_name.toLowerCase()):(0,Pa.__)("Link to post"),onDeselect:()=>a({isLink:!1}),isShownByDefault:!0,children:(0,Bo.jsx)(qi.ToggleControl,{label:b?.labels?.singular_name?(0,Pa.sprintf)((0,Pa.__)("Link to %s"),b.labels.singular_name.toLowerCase()):(0,Pa.__)("Link to post"),onChange:()=>a({isLink:!c}),checked:c})})]})}),(0,Bo.jsx)("div",{...u,children:T})]})}function G7e(e){return/(?:^|[^\\])[aAgh]/.test(e)}var W7e={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},$7e={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},...a},...i}){return be({metadata:{bindings:{datetime:{source:e,args:{field:t,...r}},...o},...a},...i})},isEligible(e){return e?.metadata?.bindings?.datetime?.source==="core/post-data"&&!!e?.metadata?.bindings?.datetime?.args?.key}},q7e={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=S(e,"wp-block-post-date__modified-date")),be({...o,className:e,metadata:{...r,bindings:{datetime:{source:"core/post-data",args:{field:t}}}}})},isEligible(e){return!e.datetime&&!e?.metadata?.bindings?.datetime}},Z7e={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 be(Zt(e))},isEligible({style:e}){return e?.typography?.fontFamily}},vse=[W7e,$7e,q7e,Z7e];var Gy=n(N(),1),K7e=[{name:"post-date",title:(0,Gy.__)("Post Date"),description:(0,Gy.__)("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,Gy.__)("Modified Date"),description:(0,Gy.__)("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"}],bse=K7e;var{name:yse}=w6,_se={icon:_v,edit:gse,deprecated:vse,variations:bse},Y7e=()=>R({name:yse,metadata:w6,settings:_se});var qM={};K(qM,{init:()=>e9e,metadata:()=>C6,name:()=>Pse,settings:()=>Ese});var C6={$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 S6=n(re(),1),kse=n(H(),1),zu=n(P(),1),Vu=n(O(),1),Ea=n(N(),1),wse=n(F(),1);var po=n(y(),1),xse="\u2026";function Cse(e){let{attributes:{moreText:t,showMoreOnNewLine:r,excerptLength:o},setAttributes:a,isSelected:i,context:{postId:l,postType:s,queryId:c}}=e;Ct(e);let u=Number.isFinite(c),p=n5("postType",s,l),[m,d,{rendered:f,protected:h}={}]=(0,S6.useEntityProp)("postType",s,"excerpt",l),g=Z(),v=(0,wse.useSelect)(E=>s==="page"?!0:!!E(S6.store).getPostType(s)?.supports?.excerpt,[s]),b=p&&!u&&v,_=(0,zu.useBlockProps)(),k=(0,Ea._x)("words","Word count type. Do not translate!"),x=(0,kse.useMemo)(()=>{if(!f)return"";let E=new window.DOMParser().parseFromString(f,"text/html");return E.body.textContent||E.body.innerText||""},[f]);if(!s||!l)return(0,po.jsx)("div",{..._,children:(0,po.jsx)("p",{children:(0,Ea.__)("This block will display the excerpt.")})});if(h&&!p)return(0,po.jsx)("div",{..._,children:(0,po.jsx)(zu.Warning,{children:(0,Ea.__)("The content is currently protected and does not have the available excerpt.")})});let w=(0,po.jsx)(zu.RichText,{identifier:"moreText",className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,Ea.__)("\u201CRead more\u201D link text"),placeholder:(0,Ea.__)('Add "read more" link text'),value:t,onChange:E=>a({moreText:E}),withoutInteractiveFormatting:!0}),C=S("wp-block-post-excerpt__excerpt",{"is-inline":!r}),T=(m||x).trim(),I="";if(k==="words")I=T.split(/\s+/,o).join(" ");else if(k==="characters_excluding_spaces"){let E=T.split("",o).join(""),B=E.length-E.replaceAll(" ","").length;I=T.split("",o+B).join("")}else k==="characters_including_spaces"&&(I=T.split("",o).join(""));let D=I!==T,L=b?(0,po.jsx)(zu.RichText,{className:C,"aria-label":(0,Ea.__)("Excerpt text"),value:i?T:(D?I+xse:T)||(0,Ea.__)("No excerpt found"),onChange:d,tagName:"p",allowedFormats:[],preserveWhiteSpace:!0}):(0,po.jsx)("p",{className:C,children:D?I+xse:T||(0,Ea.__)("No excerpt found")});return(0,po.jsxs)(po.Fragment,{children:[(0,po.jsx)(zu.InspectorControls,{children:(0,po.jsxs)(Vu.__experimentalToolsPanel,{label:(0,Ea.__)("Settings"),resetAll:()=>{a({showMoreOnNewLine:!0,excerptLength:55})},dropdownMenuProps:g,children:[(0,po.jsx)(Vu.__experimentalToolsPanelItem,{hasValue:()=>r!==!0,label:(0,Ea.__)("Show link on new line"),onDeselect:()=>a({showMoreOnNewLine:!0}),isShownByDefault:!0,children:(0,po.jsx)(Vu.ToggleControl,{label:(0,Ea.__)("Show link on new line"),checked:r,onChange:E=>a({showMoreOnNewLine:E})})}),(0,po.jsx)(Vu.__experimentalToolsPanelItem,{hasValue:()=>o!==55,label:(0,Ea.__)("Max number of words"),onDeselect:()=>a({excerptLength:55}),isShownByDefault:!0,children:(0,po.jsx)(Vu.RangeControl,{label:(0,Ea.__)("Max number of words"),value:o,onChange:E=>{a({excerptLength:E})},min:"10",max:"100"})})]})}),(0,po.jsxs)("div",{..._,children:[L,!r&&" ",r?(0,po.jsx)("p",{className:"wp-block-post-excerpt__more-text",children:w}):w]})]})}var $M=n(q(),1),X7e={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,$M.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,$M.createBlock)("core/post-content")}]},Sse=X7e;var J7e={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},Tse=[J7e];var{name:Pse}=C6,Ese={icon:VB,transforms:Sse,edit:Cse,deprecated:Tse},e9e=()=>R({name:Pse,metadata:C6,settings:Ese});var KM={};K(KM,{init:()=>m9e,metadata:()=>T6,name:()=>jse,settings:()=>Use});var T6={$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:{dimensions:".wp-block-post-featured-image img",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 Vse=n(Ar(),1),Wy=n(re(),1),$y=n(F(),1),Io=n(O(),1),Lr=n(P(),1),wm=n(H(),1),Kn=n(N(),1);var Ose=n(Sr(),1);var ym=n(N(),1),Bse=n(O(),1),P6=n(P(),1);var Ise=n(y(),1),{DimensionsTool:r9e}=U(P6.privateApis),o9e="cover",n9e=["aspectRatio","width","height","scale"],a9e=[{value:"cover",label:(0,ym._x)("Cover","Scale option for Image dimension control"),help:(0,ym.__)("Image is scaled and cropped to fill the entire space without being distorted.")},{value:"contain",label:(0,ym._x)("Contain","Scale option for Image dimension control"),help:(0,ym.__)("Image is scaled to fill the space without clipping nor distorting.")},{value:"fill",label:(0,ym._x)("Fill","Scale option for Image dimension control"),help:(0,ym.__)("Image will be stretched and distorted to completely fill the space.")}],i9e=({clientId:e,attributes:t,setAttributes:r,selectedStyleState:o,hasSelectedStyleState:a=!1})=>{let{style:i}=t,l=Xh(o),s=wi({attributes:t,selectedState:o,hasSelectedStyleState:a,attributeKey:"aspectRatio"}),c=wi({attributes:t,selectedState:o,hasSelectedStyleState:a,attributeKey:"width"}),u=wi({attributes:t,selectedState:o,hasSelectedStyleState:a,attributeKey:"height"}),p=wi({attributes:t,selectedState:o,hasSelectedStyleState:a,attributeKey:"scale",styleKey:"objectFit"}),[m]=(0,P6.useSettings)("spacing.units"),d=(0,Bse.__experimentalUseCustomUnits)({availableUnits:m||["px","%","vw","em","rem"]});return(0,Ise.jsx)(r9e,{panelId:e,value:{aspectRatio:s,width:c,height:u,scale:p},onChange:h=>{let g={...h,width:!h.width&&h.height?"auto":h.width};r(Jh({style:i,selectedState:o,hasSelectedStyleState:a,nextDimensions:g,dimensionKeyMap:{scale:"objectFit"},dimensionKeys:n9e}))},defaultScale:o9e,defaultAspectRatio:"auto",scaleOptions:a9e,unitsOptions:d},l)},Nse=i9e;var B6=n(O(),1),xm=n(P(),1),Dse=n(ve(),1),E6=n(N(),1),_m=n(y(),1),l9e=({clientId:e,attributes:t,setAttributes:r,overlayColor:o,setOverlayColor:a})=>{let{dimRatio:i}=t,{gradientValue:l,setGradient:s}=(0,xm.__experimentalUseGradient)(),c=(0,xm.__experimentalUseMultipleOriginColorsAndGradients)();return c.hasColorsOrGradients?(0,_m.jsxs)(_m.Fragment,{children:[(0,_m.jsx)(xm.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:o.color,gradientValue:l,label:(0,E6.__)("Overlay"),onColorChange:a,onGradientChange:s,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:e,...c}),(0,_m.jsx)(B6.__experimentalToolsPanelItem,{hasValue:()=>i!==void 0,label:(0,E6.__)("Overlay opacity"),onDeselect:()=>r({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e,children:(0,_m.jsx)(B6.RangeControl,{label:(0,E6.__)("Overlay opacity"),value:i,onChange:u=>r({dimRatio:u}),min:0,max:100,step:10,required:!0})})]}):null},Lse=(0,Dse.compose)([(0,xm.withColors)({overlayColor:"background-color"})])(l9e);var km=n(P(),1),Ase=n(ve(),1);function Rse(e){return e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}var Mse=n(y(),1),s9e=({attributes:e,overlayColor:t})=>{let{dimRatio:r}=e,{gradientClass:o,gradientValue:a}=(0,km.__experimentalUseGradient)(),i=(0,km.__experimentalUseMultipleOriginColorsAndGradients)(),l=(0,km.__experimentalUseBorderProps)(e),s={backgroundColor:t.color,backgroundImage:a,...l.style};return!i.hasColorsOrGradients||!r?null:(0,Mse.jsx)("span",{"aria-hidden":"true",className:S("wp-block-post-featured-image__overlay",Rse(r),{[t.class]:t.class,"has-background-dim":r!==void 0,"has-background-gradient":a,[o]:o},l.className),style:s})},ZM=(0,Ase.compose)([(0,km.withColors)({overlayColor:"background-color"})])(s9e);var Qe=n(y(),1),zse=["image"],{isDefaultBlockStyleState:c9e,ResolutionTool:u9e}=U(Lr.privateApis),w0=e=>e!=null&&e!=="",Fse="full";function p9e({image:e,value:t,onChange:r}){let{imageSizes:o}=(0,$y.useSelect)(i=>{let{getSettings:l}=i(Lr.store);return{imageSizes:l().imageSizes}},[]);if(!o?.length)return null;let a=o.filter(({slug:i})=>e?.media_details?.sizes?.[i]?.source_url).map(({name:i,slug:l})=>({value:l,label:i}));return(0,Qe.jsx)(u9e,{value:t,defaultValue:Fse,options:a,onChange:r})}function Hse({clientId:e,attributes:t,setAttributes:r,context:{postId:o,postType:a,queryId:i}}){let l=Number.isFinite(i),{isLink:s,aspectRatio:c,height:u,width:p,scale:m,sizeSlug:d,rel:f,linkTarget:h,useFirstImageFromPost:g}=t,[v,b]=(0,wm.useState)(),[_,k]=(0,Wy.useEntityProp)("postType",a,"featured_media",o),[x]=(0,Wy.useEntityProp)("postType",a,"content",o),w=(0,wm.useMemo)(()=>{if(_)return _;if(!g)return;let ie=/<!--\s+wp:(?:core\/)?image\s+(?<attrs>{(?:(?:[^}]+|}+(?=})|(?!}\s+\/?-->).)*)?}\s+)?-->/.exec(x);return ie?.groups?.attrs&&JSON.parse(ie.groups.attrs)?.id},[_,g,x]),{media:C,postType:T,postPermalink:I,selectedStyleState:D}=(0,$y.useSelect)(ie=>{let{getEntityRecord:we,getPostType:se,getEditedEntityRecord:de}=ie(Wy.store),{getSelectedBlockStyleState:ge}=U(ie(Lr.store));return{media:w&&we("postType","attachment",w,{context:"view"}),postType:a&&se(a),postPermalink:de("postType",a,o)?.link,selectedStyleState:ge(e)}},[e,w,a,o]),L=!c9e(D),E=C?.media_details?.sizes?.[d]?.source_url||C?.source_url,B=(0,Lr.useBlockProps)({className:S({"is-transient":v})}),A=(0,Lr.__experimentalUseBorderProps)(t),z=(0,Lr.__experimentalGetShadowClassesAndStyles)(t),j=(0,Lr.useBlockEditingMode)(),G=c==="auto"?void 0:c,W=ie=>(0,Qe.jsx)(Io.Placeholder,{className:S("block-editor-media-placeholder",A.className),withIllustration:!0,style:{aspectRatio:G,height:w0(u)?u:w0(p)&&"auto",width:w0(p)?p:!!c&&"100%",...A.style,...z.style},children:ie}),$=ie=>{ie?.id&&k(ie.id),ie?.url&&(0,Vse.isBlobURL)(ie.url)&&b(ie.url)},V=()=>{r({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:void 0}),k(0)};(0,wm.useEffect)(()=>{E&&v&&b()},[E,v]);let{createErrorNotice:Q}=(0,$y.useDispatch)(Ose.store),Y=ie=>{Q(ie,{type:"snackbar"}),b()},ee=Z(),te=j==="default"&&(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsx)(Lr.InspectorControls,{group:"color",children:(0,Qe.jsx)(Lse,{attributes:t,setAttributes:r,clientId:e})}),(0,Qe.jsx)(Lr.InspectorControls,{group:"dimensions",resetAllFilter:ie=>eg({attributes:ie,selectedState:D,hasSelectedStyleState:L,keys:["aspectRatio","height","objectFit","width"],defaultAttributes:{aspectRatio:void 0,height:void 0,scale:void 0,width:void 0}}),children:(0,Qe.jsx)(Nse,{clientId:e,attributes:t,setAttributes:r,media:C,selectedStyleState:D,hasSelectedStyleState:L})}),(w||l||!o)&&(0,Qe.jsx)(Lr.InspectorControls,{children:(0,Qe.jsxs)(Io.__experimentalToolsPanel,{label:(0,Kn.__)("Settings"),resetAll:()=>{r({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:Fse})},dropdownMenuProps:ee,children:[(0,Qe.jsx)(Io.__experimentalToolsPanelItem,{label:T?.labels?.singular_name?(0,Kn.sprintf)((0,Kn.__)("Link to %s"),T.labels.singular_name):(0,Kn.__)("Link to post"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({isLink:!1}),children:(0,Qe.jsx)(Io.ToggleControl,{label:(0,Kn.__)("Make image a link"),onChange:()=>r({isLink:!s}),checked:s})}),s&&(0,Qe.jsx)(Io.__experimentalToolsPanelItem,{label:(0,Kn.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>h!=="_self",onDeselect:()=>r({linkTarget:"_self"}),children:(0,Qe.jsx)(Io.ToggleControl,{label:(0,Kn.__)("Open in new tab"),onChange:ie=>r({linkTarget:ie?"_blank":"_self"}),checked:h==="_blank"})}),s&&(0,Qe.jsx)(Io.__experimentalToolsPanelItem,{label:(0,Kn.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!f,onDeselect:()=>r({rel:""}),children:(0,Qe.jsx)(Io.TextControl,{label:(0,Kn.__)("Link relation"),help:(0,wm.createInterpolateElement)((0,Kn.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Qe.jsx)(Io.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:f,onChange:ie=>r({rel:ie})})}),!!C&&(0,Qe.jsx)(p9e,{image:C,value:d,onChange:ie=>r({sizeSlug:ie})})]})})]}),oe;if(!w&&(l||!o))return(0,Qe.jsxs)(Qe.Fragment,{children:[te,(0,Qe.jsxs)("div",{...B,children:[s?(0,Qe.jsx)("a",{href:I,target:h,children:W()}):W(),(0,Qe.jsx)(ZM,{attributes:t,setAttributes:r,clientId:e})]})]});let J=(0,Kn.__)("Add a featured image"),ce={...A.style,...z.style,aspectRatio:G,height:w0(u)?u:w0(p)&&"auto",width:w0(p)?p:!!c&&"100%",objectFit:!!(u||c)&&m};return!w&&!v?oe=(0,Qe.jsx)(Lr.MediaPlaceholder,{onSelect:$,accept:"image/*",allowedTypes:zse,onError:Y,placeholder:W,mediaLibraryButton:({open:ie})=>(0,Qe.jsx)(Io.Button,{__next40pxDefaultSize:!0,icon:nu,variant:"primary",label:J,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{ie()}})}):oe=!C&&!v?W():(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsx)("img",{className:A.className,src:v||E,alt:C&&C?.alt_text?(0,Kn.sprintf)((0,Kn.__)("Featured image: %s"),C.alt_text):(0,Kn.__)("Featured image"),style:ce}),v&&(0,Qe.jsx)(Io.Spinner,{})]}),(0,Qe.jsxs)(Qe.Fragment,{children:[!v&&te,!!C&&!l&&(0,Qe.jsx)(Lr.BlockControls,{group:"other",children:(0,Qe.jsx)(Lr.MediaReplaceFlow,{mediaId:w,mediaURL:E,allowedTypes:zse,accept:"image/*",onSelect:$,onError:Y,onReset:V})}),(0,Qe.jsxs)("figure",{...B,children:[s?(0,Qe.jsx)("a",{href:I,target:h,children:oe}):oe,(0,Qe.jsx)(ZM,{attributes:t,setAttributes:r,clientId:e})]})]})}var{name:jse}=T6,Use={icon:FB,edit:Hse},m9e=()=>R({name:jse,metadata:T6,settings:Use});var YM={};K(YM,{init:()=>h9e,metadata:()=>I6,name:()=>Qse,settings:()=>Xse});var Yse=n(N(),1);var I6={$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 yn=n(O(),1),Ef=n(P(),1),yr=n(N(),1),Gse=n(F(),1),Wse=n(re(),1);var Rr=n(y(),1);function $se({context:{postType:e},attributes:{type:t,label:r,showTitle:o,linkLabel:a,arrow:i,taxonomy:l},setAttributes:s}){let c=t==="next",u=c?(0,yr.__)("Next"):(0,yr.__)("Previous"),m={none:"",arrow:c?"\u2192":"\u2190",chevron:c?"\xBB":"\xAB"}[i];o&&(u=c?(0,yr.__)("Next: "):(0,yr.__)("Previous: "));let d=c?(0,yr.__)("Next post"):(0,yr.__)("Previous post"),f=(0,Ef.useBlockProps)(),h=(0,Gse.useSelect)(b=>{let{getTaxonomies:_}=b(Wse.store);return _({type:e,per_page:-1})},[e]),g=()=>{let b={label:(0,yr.__)("Unfiltered"),value:""},_=(h??[]).filter(({visibility:k})=>!!k?.publicly_queryable).map(k=>({value:k.slug,label:k.name}));return[b,..._]},v=Z();return(0,Rr.jsxs)(Rr.Fragment,{children:[(0,Rr.jsx)(Ef.InspectorControls,{children:(0,Rr.jsxs)(yn.__experimentalToolsPanel,{label:(0,yr.__)("Settings"),resetAll:()=>{s({showTitle:!1,linkLabel:!1,arrow:"none"})},dropdownMenuProps:v,children:[(0,Rr.jsx)(yn.__experimentalToolsPanelItem,{label:(0,yr.__)("Display the title as a link"),isShownByDefault:!0,hasValue:()=>o,onDeselect:()=>s({showTitle:!1}),children:(0,Rr.jsx)(yn.ToggleControl,{label:(0,yr.__)("Display the title as a link"),help:(0,yr.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!o,onChange:()=>s({showTitle:!o})})}),o&&(0,Rr.jsx)(yn.__experimentalToolsPanelItem,{label:(0,yr.__)("Include the label as part of the link"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>s({linkLabel:!1}),children:(0,Rr.jsx)(yn.ToggleControl,{label:(0,yr.__)("Include the label as part of the link"),checked:!!a,onChange:()=>s({linkLabel:!a})})}),(0,Rr.jsx)(yn.__experimentalToolsPanelItem,{label:(0,yr.__)("Arrow"),isShownByDefault:!0,hasValue:()=>i!=="none",onDeselect:()=>s({arrow:"none"}),children:(0,Rr.jsxs)(yn.__experimentalToggleGroupControl,{label:(0,yr.__)("Arrow"),value:i,onChange:b=>{s({arrow:b})},help:(0,yr.__)("A decorative arrow for the next and previous link."),isBlock:!0,children:[(0,Rr.jsx)(yn.__experimentalToggleGroupControlOption,{value:"none",label:(0,yr._x)("None","Arrow option for Next/Previous link")}),(0,Rr.jsx)(yn.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,yr._x)("Arrow","Arrow option for Next/Previous link")}),(0,Rr.jsx)(yn.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,yr._x)("Chevron","Arrow option for Next/Previous link")})]})})]})}),(0,Rr.jsx)(Ef.InspectorControls,{group:"advanced",children:(0,Rr.jsx)(yn.SelectControl,{label:(0,yr.__)("Filter by taxonomy"),value:l,options:g(),onChange:b=>s({taxonomy:b}),help:(0,yr.__)("Only link to posts that have the same taxonomy terms as the current post. For example the same tags or categories.")})}),(0,Rr.jsxs)("div",{...f,children:[!c&&m&&(0,Rr.jsx)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${i}`,children:m}),(0,Rr.jsx)(Ef.RichText,{tagName:"a",identifier:"label","aria-label":d,placeholder:u,value:r,withoutInteractiveFormatting:!0,onChange:b=>s({label:b})}),o&&(0,Rr.jsx)("a",{href:"#post-navigation-pseudo-link",onClick:b=>b.preventDefault(),children:(0,yr.__)("An example title")}),c&&m&&(0,Rr.jsx)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${i}`,"aria-hidden":!0,children:m})]})]})}var Bf=n(N(),1);var qse=[{name:"post-previous",title:(0,Bf.__)("Previous Post"),description:(0,Bf.__)("Displays the post link that precedes the current post."),icon:qB,attributes:{type:"previous"},scope:["inserter","transform"],example:{attributes:{label:(0,Bf.__)("Previous post"),arrow:"arrow"}}},{isDefault:!0,name:"post-next",title:(0,Bf.__)("Next Post"),description:(0,Bf.__)("Displays the post link that follows the current post."),icon:sB,attributes:{type:"next"},scope:["inserter","transform"],example:{attributes:{label:(0,Bf.__)("Next post"),arrow:"arrow"}}}];qse.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.type===r.type)});var Zse=qse;var f9e={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Kse=[f9e];var{name:Qse}=I6,Xse={edit:$se,variations:Zse,deprecated:Kse,example:{attributes:{label:(0,Yse.__)("Next post"),arrow:"arrow"}}},h9e=()=>R({name:Qse,metadata:I6,settings:Xse});var QM={};K(QM,{init:()=>x9e,metadata:()=>N6,name:()=>ace,settings:()=>ice});var N6={$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","postId"],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 C0=n(H(),1),Jse=n(F(),1),qy=n(N(),1),Pl=n(P(),1),D6=n(O(),1),ece=n(re(),1);var Yn=n(y(),1),v9e=[["core/post-title"],["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],["core/post-excerpt"]];function b9e({classList:e}){let t=(0,Pl.useInnerBlocksProps)({className:S("wp-block-post",e)},{template:v9e,__unstableDisableLayoutClassNames:!0});return(0,Yn.jsx)("li",{...t})}function y9e({blocks:e,blockContextId:t,classList:r,isHidden:o,setActiveBlockContextId:a}){let i=(0,Pl.__experimentalUseBlockPreview)({blocks:e,props:{className:S("wp-block-post",r)}}),l=()=>{a(t)};return(0,Yn.jsx)("li",{...i,tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:{display:o?"none":void 0}})}var _9e=(0,C0.memo)(y9e);function tce({setAttributes:e,clientId:t,context:{query:{perPage:r,offset:o=0,postType:a,order:i,orderBy:l,author:s,search:c,exclude:u,sticky:p,inherit:m,taxQuery:d,parents:f,pages:h,format:g,excludeCurrent:v,...b}={},templateSlug:_,previewPostType:k,postId:x},attributes:{layout:w},__unstableLayoutClassNames:C}){let{type:T,columnCount:I=3,minimumColumnWidth:D}=w||{},[L,E]=(0,C0.useState)(),{posts:B,blocks:A}=(0,Jse.useSelect)($=>{let{getEntityRecords:V,getTaxonomies:Q}=$(ece.store),{getBlocks:Y}=$(Pl.store),ee=m&&_?.startsWith("category-")&&V("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:_.replace("category-","")}),te=m&&_?.startsWith("tag-")&&V("taxonomy","post_tag",{context:"view",per_page:1,_fields:["id"],slug:_.replace("tag-","")}),oe={offset:o||0,order:i,orderby:l};if(d&&!m){let ie=Q({type:a,per_page:-1,context:"view"}),we=(de,ge="")=>Object.entries(de||{}).reduce((ne,[me,le])=>{let Pe=ie?.find(({slug:Ee})=>Ee===me);return Pe?.rest_base&&le?.length&&(ne[Pe.rest_base+ge]=le),ne},{}),se=we(d.include);d.exclude&&Object.assign(se,we(d.exclude,"_exclude")),Object.keys(se).length&&Object.assign(oe,se)}r&&(oe.per_page=r),s&&(oe.author=s),c&&(oe.search=c),u?.length&&(oe.exclude=u),f?.length&&(oe.parent=f),g?.length&&(oe.format=g),v&&x&&(oe.exclude?oe.exclude=[...oe.exclude,x]:oe.exclude=[x]),["exclude","only"].includes(p)&&(oe.sticky=p==="only"),["","ignore"].includes(p)&&(delete oe.sticky,oe.ignore_sticky=p==="ignore");let J=a;return m&&(_?.startsWith("archive-")?(oe.postType=_.replace("archive-",""),J=oe.postType):ee?oe.categories=ee[0]?.id:te?oe.tags=te[0]?.id:_?.startsWith("taxonomy-post_format")&&(oe.format=_.replace("taxonomy-post_format-post-format-",""))),{posts:V("postType",k||J,{...oe,...b}),blocks:Y(t)}},[r,o,i,l,t,s,c,a,u,p,m,_,d,f,g,b,k]),z=(0,C0.useMemo)(()=>B?.map($=>({postType:$.type,postId:$.id,classList:$.class_list??""})),[B]),j=(0,Pl.useBlockProps)({className:S(C,{[`columns-${I}`]:T==="grid"&&I,"has-native-responsive-grid":T==="grid"&&I&&D})});if(!B)return(0,Yn.jsx)("p",{...j,children:(0,Yn.jsx)(D6.Spinner,{})});if(!B.length)return(0,Yn.jsxs)("p",{...j,children:[" ",(0,qy.__)("No results found.")]});let G=$=>e({layout:{...w,...$}}),W=[{icon:Wl,title:(0,qy._x)("List view","Post template block display setting"),onClick:()=>G({type:"default"}),isActive:T==="default"||T==="constrained"},{icon:Gl,title:(0,qy._x)("Grid view","Post template block display setting"),onClick:()=>G({type:"grid",columnCount:I}),isActive:T==="grid"}];return(0,Yn.jsxs)(Yn.Fragment,{children:[(0,Yn.jsx)(Pl.BlockControls,{children:(0,Yn.jsx)(D6.ToolbarGroup,{controls:W})}),(0,Yn.jsx)("ul",{...j,children:z&&z.map($=>(0,Yn.jsxs)(Pl.BlockContextProvider,{value:$,children:[$.postId===(L||z[0]?.postId)?(0,Yn.jsx)(b9e,{classList:$.classList}):null,(0,Yn.jsx)(_9e,{blocks:A,blockContextId:$.postId,classList:$.classList,setActiveBlockContextId:E,isHidden:$.postId===(L||z[0]?.postId)})]},$.postId))})]})}var rce=n(P(),1),oce=n(y(),1);function nce(){return(0,oce.jsx)(rce.InnerBlocks.Content,{})}var{name:ace}=N6,ice={icon:td,edit:tce,save:nce},x9e=()=>R({name:ace,metadata:N6,settings:ice});var XM={};K(XM,{init:()=>T9e,metadata:()=>L6,name:()=>bce,settings:()=>yce});var vce=n(bu(),1);var L6={$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 Ou=n(P(),1),R6=n(q(),1),A6=n(O(),1),pce=n(F(),1),mce=n(en(),1),Cm=n(N(),1),dce=n(re(),1);var lce=n(re(),1),sce=n(F(),1),w9e=[];function cce({postId:e,term:t}){let{slug:r}=t;return(0,sce.useSelect)(o=>{if(!t?.visibility?.publicly_queryable||!e)return{postTerms:w9e,isLoading:!1,hasPostTerms:!1};let{getEntityRecords:i,isResolving:l}=o(lce.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 Qn=n(y(),1),uce=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];function fce({attributes:e,clientId:t,context:r,isSelected:o,setAttributes:a,insertBlocksAfter:i}){let{term:l,separator:s,prefix:c,suffix:u}=e,{postId:p,postType:m}=r,d=(0,pce.useSelect)(k=>{if(!l)return{};let{getTaxonomy:x}=k(dce.store),w=x(l);return w?.visibility?.publicly_queryable?w:{}},[l]),{postTerms:f,hasPostTerms:h,isLoading:g}=cce({postId:p,term:d}),v=p&&m,b=(0,Ou.useBlockDisplayInformation)(t),_=(0,Ou.useBlockProps)({className:l&&`taxonomy-${l}`});return(0,Qn.jsxs)(Qn.Fragment,{children:[(0,Qn.jsx)(Ou.InspectorControls,{group:"advanced",children:(0,Qn.jsx)(A6.TextControl,{autoComplete:"off",label:(0,Cm.__)("Separator"),value:s||"",onChange:k=>{a({separator:k})},help:(0,Cm.__)("Enter character(s) used to separate terms.")})}),(0,Qn.jsxs)("div",{..._,children:[g&&v&&(0,Qn.jsx)(A6.Spinner,{}),!g&&(o||c)&&(0,Qn.jsx)(Ou.RichText,{identifier:"prefix",allowedFormats:uce,className:"wp-block-post-terms__prefix","aria-label":(0,Cm.__)("Prefix"),placeholder:(0,Cm.__)("Prefix")+" ",value:c,onChange:k=>a({prefix:k}),tagName:"span"}),(!v||!l)&&(0,Qn.jsx)("span",{children:b.title}),v&&!g&&h&&f.map(k=>(0,Qn.jsx)("a",{href:k.link,onClick:x=>x.preventDefault(),rel:"tag",children:(0,mce.decodeEntities)(k.name)},k.id)).reduce((k,x)=>(0,Qn.jsxs)(Qn.Fragment,{children:[k,(0,Qn.jsx)("span",{className:"wp-block-post-terms__separator",children:s||" "}),x]})),v&&!g&&!h&&(d?.labels?.no_terms||(0,Cm.__)("Term items not found.")),!g&&(o||u)&&(0,Qn.jsx)(Ou.RichText,{identifier:"suffix",allowedFormats:uce,className:"wp-block-post-terms__suffix","aria-label":(0,Cm.__)("Suffix"),placeholder:" "+(0,Cm.__)("Suffix"),value:u,onChange:k=>a({suffix:k}),tagName:"span",__unstableOnSplitAtEnd:i?()=>i((0,R6.createBlock)((0,R6.getDefaultBlockName)())):void 0})]})]})}var C9e={category:xh,post_tag:UB};function hce(e,t){if(t!=="core/post-terms")return e;let r=e.variations.map(o=>({...o,icon:C9e[o.name]??xh}));return{...e,variations:r}}var S9e={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},gce=[S9e];var{name:bce}=L6,yce={icon:xh,edit:fce,deprecated:gce},T9e=()=>((0,vce.addFilter)("blocks.registerBlockType","core/template-part",hce),R({name:bce,metadata:L6,settings:yce}));var JM={};K(JM,{init:()=>N9e,metadata:()=>M6,name:()=>Ece,settings:()=>Bce});var M6={$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 Xn=n(N(),1),kce=n(H(),1),z6=n(P(),1),S0=n(O(),1),wce=n(q(),1),V6=n(re(),1),Cce=n(xce(),1);var Dc=n(y(),1);function E9e({attributes:e,setAttributes:t,context:r}){let{displayAsRange:o,displayMode:a,averageReadingSpeed:i}=e,{postId:l,postType:s}=r,c=Z(),[u]=(0,V6.useEntityProp)("postType",s,"content",l),[p]=(0,V6.useEntityBlockEditor)("postType",s,{id:l}),m=(0,kce.useMemo)(()=>{let f;u instanceof Function?f=u({blocks:p}):p?f=(0,wce.__unstableSerializeAndClean)(p):f=u;let h=(0,Xn._x)("words","Word count type. Do not translate!"),g=(0,Cce.count)(f||"",h);if(a==="time"){if(o){let b=Math.max(1,Math.round(g/i*1.2)),_=Math.max(1,Math.round(g/i*.8));_===b&&(b=b+1);let k=(0,Xn._x)("%1$s\u2013%2$s minutes","Range of minutes to read");return(0,Xn.sprintf)(k,_,b)}let v=Math.max(1,Math.round(g/i));return(0,Xn.sprintf)((0,Xn._n)("%s minute","%s minutes",v),v)}if(a==="words")return h==="words"?(0,Xn.sprintf)((0,Xn._n)("%s word","%s words",g),g.toLocaleString()):(0,Xn.sprintf)((0,Xn._n)("%s character","%s characters",g),g.toLocaleString())},[u,p,o,a,i]),d=(0,z6.useBlockProps)();return(0,Dc.jsxs)(Dc.Fragment,{children:[a==="time"&&(0,Dc.jsx)(z6.InspectorControls,{children:(0,Dc.jsx)(S0.__experimentalToolsPanel,{label:(0,Xn.__)("Settings"),resetAll:()=>{t({displayAsRange:!0})},dropdownMenuProps:c,children:(0,Dc.jsx)(S0.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Xn._x)("Display as range","Turns reading time range display on or off"),hasValue:()=>!o,onDeselect:()=>{t({displayAsRange:!0})},children:(0,Dc.jsx)(S0.ToggleControl,{label:(0,Xn.__)("Display as range"),checked:!!o,onChange:()=>t({displayAsRange:!o})})})})}),(0,Dc.jsx)("div",{...d,children:m})]})}var Sce=E9e;var Zy=n(N(),1);var B9e=[{name:"time-to-read",title:(0,Zy.__)("Time to Read"),description:(0,Zy.__)("Show minutes required to finish reading the post."),attributes:{displayMode:"time"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="time",icon:Ov,isDefault:!0},{name:"word-count",title:(0,Zy.__)("Word Count"),description:(0,Zy.__)("Show the number of words in the post."),attributes:{displayMode:"words"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="words",icon:uN}],Tce=B9e;var I9e={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Pce=[I9e];var{name:Ece}=M6,Bce={icon:Ov,edit:Sce,variations:Tce,example:{},deprecated:Pce},N9e=()=>R({name:Ece,metadata:M6,settings:Bce});var ez={};K(ez,{init:()=>A9e,metadata:()=>O6,name:()=>Rce,settings:()=>Ace});var O6={$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 Ki=n(P(),1),Zi=n(O(),1),oi=n(N(),1),F6=n(q(),1),Ky=n(re(),1),Ice=n(F(),1),Nce=n(H(),1);var rr=n(y(),1);function Dce({attributes:{level:e,levelOptions:t,isLink:r,rel:o,linkTarget:a,placeholder:i},setAttributes:l,context:{postType:s,postId:c,queryId:u},insertBlocksAfter:p}){let m=e===0?"p":`h${e}`,d=Number.isFinite(u),f=(0,Ice.useSelect)(T=>d?!1:T(Ky.store).canUser("update",{kind:"postType",name:s,id:c}),[d,s,c]),[h="",g,v]=(0,Ky.useEntityProp)("postType",s,"title",c),[b]=(0,Ky.useEntityProp)("postType",s,"link",c),_=p?()=>{p((0,F6.createBlock)((0,F6.getDefaultBlockName)()))}:void 0,k=(0,Ki.useBlockProps)(),x=(0,Ki.useBlockEditingMode)(),w=Z(),C=(0,rr.jsx)(m,{...k,children:i||(0,oi.__)("Title")});return s&&c&&(C=f?(0,rr.jsx)(Ki.PlainText,{tagName:m,placeholder:(0,oi.__)("(no title)"),value:h,onChange:g,__experimentalVersion:2,__unstableOnSplitAtEnd:_,...k}):(0,rr.jsx)(m,{...k,dangerouslySetInnerHTML:{__html:v?.rendered||(0,oi.__)("(no title)")}})),r&&s&&c&&(C=f?(0,rr.jsx)(m,{...k,children:(0,rr.jsx)(Ki.PlainText,{tagName:"a",href:b,target:a,rel:o,placeholder:h.length?null:(0,oi.__)("(no title)"),value:h,onChange:g,__experimentalVersion:2,__unstableOnSplitAtEnd:_})}):(0,rr.jsx)(m,{...k,children:(0,rr.jsx)("a",{href:b,target:a,rel:o,onClick:T=>T.preventDefault(),dangerouslySetInnerHTML:{__html:v?.rendered||(0,oi.__)("(no title)")}})})),(0,rr.jsxs)(rr.Fragment,{children:[x==="default"&&(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)(Ki.BlockControls,{group:"block",children:(0,rr.jsx)(Ki.HeadingLevelDropdown,{value:e,options:t,onChange:T=>l({level:T})})}),(0,rr.jsx)(Ki.InspectorControls,{children:(0,rr.jsxs)(Zi.__experimentalToolsPanel,{label:(0,oi.__)("Settings"),resetAll:()=>{l({rel:"",linkTarget:"_self",isLink:!1})},dropdownMenuProps:w,children:[(0,rr.jsx)(Zi.__experimentalToolsPanelItem,{label:(0,oi.__)("Make title a link"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>l({isLink:!1}),children:(0,rr.jsx)(Zi.ToggleControl,{label:(0,oi.__)("Make title a link"),onChange:()=>l({isLink:!r}),checked:r})}),r&&(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)(Zi.__experimentalToolsPanelItem,{label:(0,oi.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>a==="_blank",onDeselect:()=>l({linkTarget:"_self"}),children:(0,rr.jsx)(Zi.ToggleControl,{label:(0,oi.__)("Open in new tab"),onChange:T=>l({linkTarget:T?"_blank":"_self"}),checked:a==="_blank"})}),(0,rr.jsx)(Zi.__experimentalToolsPanelItem,{label:(0,oi.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>l({rel:""}),children:(0,rr.jsx)(Zi.TextControl,{label:(0,oi.__)("Link relation"),help:(0,Nce.createInterpolateElement)((0,oi.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,rr.jsx)(Zi.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:o,onChange:T=>l({rel:T})})})]})]})})]}),C]})}var L9e={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},R9e={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:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},Lce=[L9e,R9e];var{name:Rce}=O6,Ace={icon:$l,edit:Dce,deprecated:Lce},A9e=()=>R({name:Rce,metadata:O6,settings:Ace});var nz={};K(nz,{init:()=>F9e,metadata:()=>U6,name:()=>Hce,settings:()=>W6});var oz=n(N(),1);var Fce=n(q(),1);var tz=n(N(),1),H6=n(P(),1),j6=n(q(),1),Mce=n(y(),1);function zce({attributes:e,mergeBlocks:t,setAttributes:r,onRemove:o,insertBlocksAfter:a,style:i}){let{content:l}=e,s=(0,H6.useBlockProps)({style:i});return(0,Mce.jsx)(H6.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:c=>{r({content:c})},onRemove:o,"aria-label":(0,tz.__)("Preformatted text"),placeholder:(0,tz.__)("Write preformatted text\u2026"),onMerge:t,...s,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:a?()=>a((0,j6.createBlock)((0,j6.getDefaultBlockName)())):void 0})}var U6={$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 G6=n(P(),1),rz=n(y(),1);function Vce({attributes:e}){let{content:t}=e;return(0,rz.jsx)("pre",{...G6.useBlockProps.save(),children:(0,rz.jsx)(G6.RichText.Content,{value:t})})}var Yy=n(q(),1),z9e={from:[{type:"block",blocks:["core/code","core/paragraph","core/verse"],transform:({content:e,anchor:t})=>(0,Yy.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,Yy.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>(0,Yy.createBlock)("core/code",e)},{type:"block",blocks:["core/verse"],transform:e=>(0,Yy.createBlock)("core/verse",e)}]},Oce=z9e;var{fieldsKey:V9e,formKey:O9e}=U(Fce.privateApis),{name:Hce}=U6,W6={icon:WB,example:{attributes:{content:(0,oz.__)(`EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)
Window, very small in the distance, illuminated.
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:Oce,edit:zce,save:Vce,merge(e,t){return{content:e.content+`

`+t.content}}};window.__experimentalContentOnlyInspectorFields&&(W6[V9e]=[{id:"content",label:(0,oz.__)("Content"),type:"text",Edit:"rich-text"}],W6[O9e]={fields:["content"]});var F9e=()=>R({name:Hce,metadata:U6,settings:W6});var az={};K(az,{init:()=>J9e,metadata:()=>q6,name:()=>Qce,settings:()=>Z6});var Jy=n(N(),1);var Yce=n(q(),1);var it=n(P(),1),Uce=n(F(),1);var If="is-style-solid-color";var Gt=n(y(),1),Qy={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 jce(e){if(!e)return;let t=e.match(/border-color:([^;]+)[;]?/);if(t&&t[1])return t[1]}function Nf(e){e=e||"<p></p>";let r=`</p>${e}<p>`.split("</p><p>");return r.shift(),r.pop(),r.join("<br>")}var H9e={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}},save({attributes:e}){let{textAlign:t,citation:r,value:o}=e,a=!it.RichText.isEmpty(r);return(0,Gt.jsx)("figure",{...it.useBlockProps.save({className:S({[`has-text-align-${t}`]:t})}),children:(0,Gt.jsxs)("blockquote",{children:[(0,Gt.jsx)(it.RichText.Content,{tagName:"p",value:o}),a&&(0,Gt.jsx)(it.RichText.Content,{tagName:"cite",value:r})]})})},isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},migrate:be},j9e={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,a=!it.RichText.isEmpty(r);return(0,Gt.jsx)("figure",{...it.useBlockProps.save({className:S({[`has-text-align-${t}`]:t})}),children:(0,Gt.jsxs)("blockquote",{children:[(0,Gt.jsx)(it.RichText.Content,{value:o,multiline:!0}),a&&(0,Gt.jsx)(it.RichText.Content,{tagName:"cite",value:r})]})})},migrate({value:e,...t}){return be({value:Nf(e),...t})}},U9e={attributes:{...Qy},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:a,value:i,citation:l,className:s}=e,c=s?.includes(If),u,p;if(c){let h=(0,it.getColorClassName)("background-color",t);u=S({"has-background":h||r,[h]:h}),p={backgroundColor:h?void 0:r}}else r&&(p={borderColor:r});let m=(0,it.getColorClassName)("color",a),d=S({"has-text-color":a||o,[m]:m}),f=m?void 0:{color:o};return(0,Gt.jsx)("figure",{...it.useBlockProps.save({className:u,style:p}),children:(0,Gt.jsxs)("blockquote",{className:d,style:f,children:[(0,Gt.jsx)(it.RichText.Content,{value:i,multiline:!0}),!it.RichText.isEmpty(l)&&(0,Gt.jsx)(it.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:o,customTextColor:a,...i}){let l=t?.includes(If),s;return o&&(l?s={color:{background:o}}:s={border:{color:o}}),a&&s&&(s.color={...s.color,text:a}),be({value:Nf(e),className:t,backgroundColor:l?r:void 0,borderColor:l?void 0:r,textAlign:l?"left":void 0,...i,style:s})}},G9e={attributes:{...Qy,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){let{mainColor:t,customMainColor:r,textColor:o,customTextColor:a,value:i,citation:l,className:s,figureStyle:c}=e,u=s?.includes(If),p,m;if(u){let g=(0,it.getColorClassName)("background-color",t);p=S({"has-background":g||r,[g]:g}),m={backgroundColor:g?void 0:r}}else r?m={borderColor:r}:t&&(m={borderColor:jce(c)});let d=(0,it.getColorClassName)("color",o),f=(o||a)&&S("has-text-color",{[d]:d});return(0,Gt.jsx)("figure",{className:p,style:m,children:(0,Gt.jsxs)("blockquote",{className:f,style:d?void 0:{color:a},children:[(0,Gt.jsx)(it.RichText.Content,{value:i,multiline:!0}),!it.RichText.isEmpty(l)&&(0,Gt.jsx)(it.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,figureStyle:r,mainColor:o,customMainColor:a,customTextColor:i,...l}){let s=t?.includes(If),c;if(a&&(s?c={color:{background:a}}:c={border:{color:a}}),i&&c&&(c.color={...c.color,text:i}),!s&&o&&r){let u=jce(r);if(u)return{value:Nf(e),...l,className:t,style:{border:{color:u}}}}return be({value:Nf(e),className:t,backgroundColor:s?o:void 0,borderColor:s?void 0:o,textAlign:s?"left":void 0,...l,style:c})}},W9e={attributes:Qy,save({attributes:e}){let{mainColor:t,customMainColor:r,textColor:o,customTextColor:a,value:i,citation:l,className:s}=e,c=s?.includes(If),u,p;if(c)u=(0,it.getColorClassName)("background-color",t),u||(p={backgroundColor:r});else if(r)p={borderColor:r};else if(t){let h=(0,Uce.select)(it.store).getSettings().colors??[];p={borderColor:(0,it.getColorObjectByAttributeValues)(h,t).color}}let m=(0,it.getColorClassName)("color",o),d=o||a?S("has-text-color",{[m]:m}):void 0;return(0,Gt.jsx)("figure",{className:u,style:p,children:(0,Gt.jsxs)("blockquote",{className:d,style:m?void 0:{color:a},children:[(0,Gt.jsx)(it.RichText.Content,{value:i,multiline:!0}),!it.RichText.isEmpty(l)&&(0,Gt.jsx)(it.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:o,customTextColor:a,...i}){let l=t?.includes(If),s={};return o&&(l?s={color:{background:o}}:s={border:{color:o}}),a&&s&&(s.color={...s.color,text:a}),be({value:Nf(e),className:t,backgroundColor:l?r:void 0,borderColor:l?void 0:r,textAlign:l?"left":void 0,...i,style:s})}},$9e={attributes:{...Qy},save({attributes:e}){let{value:t,citation:r}=e;return(0,Gt.jsxs)("blockquote",{children:[(0,Gt.jsx)(it.RichText.Content,{value:t,multiline:!0}),!it.RichText.isEmpty(r)&&(0,Gt.jsx)(it.RichText.Content,{tagName:"cite",value:r})]})},migrate({value:e,...t}){return{value:Nf(e),...t}}},q9e={attributes:{...Qy,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,Gt.jsxs)("blockquote",{className:`align${o}`,children:[(0,Gt.jsx)(it.RichText.Content,{value:t,multiline:!0}),!it.RichText.isEmpty(r)&&(0,Gt.jsx)(it.RichText.Content,{tagName:"footer",value:r})]})},migrate({value:e,...t}){return{value:Nf(e),...t}}},Gce=[H9e,j9e,U9e,G9e,W9e,$9e,q9e];var Xy=n(N(),1),T0=n(P(),1),$6=n(q(),1);var Wce="figure";var $ce="blockquote";var Fu=n(y(),1);function Z9e(e){let{attributes:t,setAttributes:r,isSelected:o,insertBlocksAfter:a}=e;Ct(e);let{citation:i,value:l}=t,s=(0,T0.useBlockProps)(),c=!T0.RichText.isEmpty(i)||o;return(0,Fu.jsx)(Fu.Fragment,{children:(0,Fu.jsx)(Wce,{...s,children:(0,Fu.jsxs)($ce,{children:[(0,Fu.jsx)(T0.RichText,{identifier:"value",tagName:"p",value:l,onChange:u=>r({value:u}),"aria-label":(0,Xy.__)("Pullquote text"),placeholder:(0,Xy.__)("Add quote")}),c&&(0,Fu.jsx)(T0.RichText,{identifier:"citation",tagName:"cite",style:{display:"block"},value:i,"aria-label":(0,Xy.__)("Pullquote citation text"),placeholder:(0,Xy.__)("Add citation"),onChange:u=>r({citation:u}),className:"wp-block-pullquote__citation",__unstableOnSplitAtEnd:a?()=>a((0,$6.createBlock)((0,$6.getDefaultBlockName)())):void 0})]})})})}var qce=Z9e;var q6={$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"}},supports:{anchor:!0,align:["left","right","wide","full"],background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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,textAlign:!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 P0=n(P(),1),E0=n(y(),1);function Zce({attributes:e}){let{citation:t,value:r}=e,o=!P0.RichText.isEmpty(t);return(0,E0.jsx)("figure",{...P0.useBlockProps.save(),children:(0,E0.jsxs)("blockquote",{children:[(0,E0.jsx)(P0.RichText.Content,{tagName:"p",value:r}),o&&(0,E0.jsx)(P0.RichText.Content,{tagName:"cite",value:t})]})})}var Hu=n(q(),1),B0=n(Xl(),1),Y9e={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,Hu.createBlock)("core/pullquote",{value:(0,B0.toHTMLString)({value:(0,B0.join)(e.map(({content:t})=>(0,B0.create)({html:t})),`
`)}),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}}]},Kce=Y9e;var{fieldsKey:Q9e,formKey:X9e}=U(Yce.privateApis),{name:Qce}=q6,Z6={icon:JB,example:{attributes:{value:(0,Jy.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,Jy.__)("Matt Mullenweg")}},transforms:Kce,edit:qce,save:Zce,deprecated:Gce};window.__experimentalContentOnlyInspectorFields&&(Z6[Q9e]=[{id:"value",label:(0,Jy.__)("Content"),type:"text",Edit:"rich-text"},{id:"citation",label:(0,Jy.__)("Citation"),type:"text",Edit:"rich-text"}],Z6[X9e]={fields:["value","citation"]});var J9e=()=>R({name:Qce,metadata:q6,settings:Z6});var kz={};K(kz,{init:()=>IPe,metadata:()=>K6,name:()=>Ppe,settings:()=>Epe});var K6={$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:[],excludeCurrent:null}},tagName:{type:"string",default:"div"},namespace:{type:"string"},enhancedPagination:{type:"boolean",default:!1}},usesContext:["templateSlug","postType"],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 mpe=n(F(),1),dpe=n(H(),1),fpe=n(P(),1);var sT=n(F(),1),lpe=n(ve(),1),a2=n(H(),1),Bl=n(P(),1),spe=n(N(),1),cpe=n(re(),1);var sue=n(O(),1),J6=n(N(),1);var Lc=n(F(),1),Lf=n(H(),1),e2=n(re(),1),Y6=n(P(),1),Xce=n(en(),1),Df=n(N(),1),ju=n(q(),1),t2=e=>{let t=e?.reduce((r,o)=>{let{mapById:a,mapByName:i,names:l}=r;return a[o.id]=o,i[o.name]=o,l.push(o.name),r},{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},tPe=(e,t)=>{let r=t.split("."),o=e;return r.forEach(a=>{o=o?.[a]}),o},iz=(e,t)=>(e||[]).map(r=>({...r,name:(0,Xce.decodeEntities)(tPe(r,t))})),Jce=()=>{let e=(0,Lc.useSelect)(a=>{let{getPostTypes:i}=a(e2.store),l=["attachment"];return i({per_page:-1})?.filter(({viewable:c,slug:u})=>c&&!l.includes(u))},[]),t=(0,Lf.useMemo)(()=>{if(e?.length)return e.reduce((a,i)=>(a[i.slug]=i.taxonomies,a),{})},[e]),r=(0,Lf.useMemo)(()=>(e||[]).map(({labels:a,slug:i})=>({label:a.singular_name,value:i})),[e]),o=(0,Lf.useMemo)(()=>e?.length?e.reduce((a,i)=>(a[i.slug]=i.supports?.["post-formats"]||!1,a),{}):{},[e]);return{postTypesTaxonomiesMap:t,postTypesSelectOptions:r,postTypeFormatSupportMap:o}},Q6=e=>{let t=(0,Lc.useSelect)(r=>{let{getTaxonomies:o,getPostType:a}=r(e2.store);return a(e)?.taxonomies?.length>0?o({type:e,per_page:-1}):[]},[e]);return(0,Lf.useMemo)(()=>t?.filter(({visibility:r})=>!!r?.publicly_queryable),[t])};function eue(e){return(0,Lc.useSelect)(t=>{let r=t(e2.store).getPostType(e);return r?.viewable&&r?.hierarchical},[e])}function tue(e){let t=(0,Lc.useSelect)(r=>!!r(e2.store).getPostType(e)?.supports?.["page-attributes"],[e]);return(0,Lf.useMemo)(()=>{let r=[{label:(0,Df.__)("Newest to oldest"),value:"date/desc"},{label:(0,Df.__)("Oldest to newest"),value:"date/asc"},{label:(0,Df.__)("A \u2192 Z"),value:"title/asc"},{label:(0,Df.__)("Z \u2192 A"),value:"title/desc"}];return t&&r.push({label:(0,Df.__)("Ascending by order"),value:"menu_order/asc"},{label:(0,Df.__)("Descending by order"),value:"menu_order/desc"}),r},[t])}function rue(e){return(0,Lc.useSelect)(t=>t(ju.store).getActiveBlockVariation("core/query",e)?.allowedControls,[e])}function ni(e,t){return e?e.includes(t):!0}var oue=(e,t)=>{let{query:{postType:r,inherit:o},namespace:a}=t,i=e.map(c=>(0,ju.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},a&&(c.attributes.namespace=a),l.push(c.clientId)),c.innerBlocks?.forEach(u=>{s.push(u)})}return{newBlocks:i,queryClientIds:l}};function nue(e,t){return(0,Lc.useSelect)(r=>{let o=r(ju.store).getActiveBlockVariation("core/query",t)?.name;if(!o)return"core/query";let{getBlockRootClientId:a,getPatternsByBlockTypes:i}=r(Y6.store),l=a(e);return i(`core/query/${o}`,l).length>0?`core/query/${o}`:"core/query"},[e,t])}function aue(e){let{activeVariationName:t,blockVariations:r}=(0,Lc.useSelect)(a=>{let{getActiveBlockVariation:i,getBlockVariations:l}=a(ju.store);return{activeVariationName:i("core/query",e)?.name,blockVariations:l("core/query","block")}},[e]);return(0,Lf.useMemo)(()=>{let a=l=>!l.attributes?.namespace;if(!t)return r.filter(a);let i=r.filter(l=>l.attributes?.namespace?.includes(t));return i.length?i:r.filter(a)},[t,r])}var iue=(e,t)=>(0,Lc.useSelect)(r=>{let{getBlockRootClientId:o,getPatternsByBlockTypes:a}=r(Y6.store),i=o(e);return a(t,i)},[t,e]),X6=e=>(0,Lc.useSelect)(t=>{let{getClientIdsOfDescendants:r,getBlockName:o}=t(Y6.store);return r(e).some(a=>{let i=o(a),l=Object.is((0,ju.getBlockSupport)(i,"interactivity"),!0),s=(0,ju.getBlockSupport)(i,"interactivity.clientNavigation");return!l&&!s})},[e]);function lue(e){if(!e)return{isSingular:!0};let t=!1,r=e==="wp"?"custom":e,o=["404","blank","single","page","custom"],a=e.includes("-")?e.split("-",1)[0]:e;return e.includes("-")&&e.split("-").slice(1).join("-")&&(r=a),t=o.includes(r),{isSingular:t,templateType:r}}var r2=n(y(),1);function cue({enhancedPagination:e,setAttributes:t,clientId:r}){let o=X6(r),a=(0,J6.__)("Reload the full page\u2014instead of just the posts list\u2014when visitors navigate between pages.");return o&&(a=(0,J6.__)("Enhancement disabled because there are non-compatible blocks inside the Query block.")),(0,r2.jsx)(r2.Fragment,{children:(0,r2.jsx)(sue.ToggleControl,{label:(0,J6.__)("Reload full page"),help:a,checked:!e,disabled:o,onChange:i=>{t({enhancedPagination:!i})}})})}var gt=n(O(),1),mz=n(F(),1),dz=n(re(),1),zt=n(N(),1),Xue=n(ve(),1),rT=n(H(),1);var uue=n(O(),1),I0=n(N(),1),pue=n(y(),1),rPe=[{label:(0,I0.__)("Newest to oldest"),value:"date/desc"},{label:(0,I0.__)("Oldest to newest"),value:"date/asc"},{label:(0,I0.__)("A \u2192 Z"),value:"title/asc"},{label:(0,I0.__)("Z \u2192 A"),value:"title/desc"}];function oPe({order:e,orderBy:t,orderByOptions:r=rPe,onChange:o}){return(0,pue.jsx)(uue.SelectControl,{label:(0,I0.__)("Order by"),value:`${t}/${e}`,options:r,onChange:a=>{let[i,l]=a.split("/");o({order:l,orderBy:i})}})}var mue=oPe;var due=n(N(),1),fue=n(O(),1),hue=n(F(),1),gue=n(re(),1);var vue=n(y(),1),nPe={who:"authors",per_page:-1,_fields:"id,name",context:"view"};function aPe({value:e,onChange:t}){let r=(0,hue.useSelect)(c=>{let{getUsers:u}=c(gue.store);return u(nPe)},[]);if(!r)return null;let o=t2(r),i=(e?e.toString().split(","):[]).reduce((c,u)=>{let p=o.mapById[u];return p&&c.push({id:u,value:p.name}),c},[]),l=(c,u)=>{let p=u?.id||c[u]?.id;if(p)return p},s=c=>{let u=Array.from(c.reduce((p,m)=>{let d=l(o.mapByName,m);return d&&p.add(d),p},new Set));t({author:u.join(",")})};return(0,vue.jsx)(fue.FormTokenField,{label:(0,due.__)("Authors"),value:i,suggestions:o.names,onChange:s,help:""})}var bue=aPe;var _ue=n(N(),1),xue=n(O(),1),lz=n(F(),1),sz=n(re(),1),Uu=n(H(),1),kue=n(ve(),1);var wue=n(y(),1),Rf=[],yue={order:"asc",_fields:"id,title",context:"view"};function iPe({parents:e,postType:t,onChange:r}){let[o,a]=(0,Uu.useState)(""),[i,l]=(0,Uu.useState)(Rf),[s,c]=(0,Uu.useState)(Rf),u=(0,kue.useDebounce)(a,250),{searchResults:p,searchHasResolved:m}=(0,lz.useSelect)(v=>{if(!o)return{searchResults:Rf,searchHasResolved:!0};let{getEntityRecords:b,hasFinishedResolution:_}=v(sz.store),k=["postType",t,{...yue,search:o,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:b(...k),searchHasResolved:_("getEntityRecords",k)}},[o,t,e]),d=(0,lz.useSelect)(v=>{if(!e?.length)return Rf;let{getEntityRecords:b}=v(sz.store);return b("postType",t,{...yue,include:e,per_page:e.length})},[e,t]);(0,Uu.useEffect)(()=>{if(e?.length||l(Rf),!d?.length)return;let v=t2(iz(d,"title.rendered")),b=e.reduce((_,k)=>{let x=v.mapById[k];return x&&_.push({id:k,value:x.name}),_},[]);l(b)},[e,d]);let f=(0,Uu.useMemo)(()=>p?.length?t2(iz(p,"title.rendered")):Rf,[p]);(0,Uu.useEffect)(()=>{m&&c(f.names)},[f.names,m]);let h=(v,b)=>{let _=b?.id||v?.[b]?.id;if(_)return _},g=v=>{let b=Array.from(v.reduce((_,k)=>{let x=h(f.mapByName,k);return x&&_.add(x),_},new Set));c(Rf),r({parents:b})};return(0,wue.jsx)(xue.FormTokenField,{label:(0,_ue.__)("Parents"),value:i,onInputChange:u,suggestions:s,onChange:g,help:""})}var Cue=iPe;var eT=n(O(),1),cz=n(F(),1),uz=n(re(),1),Gu=n(H(),1),Pue=n(ve(),1),Eue=n(en(),1),tT=n(N(),1);var Sm=n(y(),1),N0=[],Sue={order:"asc",_fields:"id,name",context:"view"},lPe=(e,t)=>{let r=t?.id||e?.find(a=>a.name===t)?.id;if(r)return r;let o=t.toLocaleLowerCase();return e?.find(a=>a.name.toLocaleLowerCase()===o)?.id};function Bue({onChange:e,query:t}){let{postType:r,taxQuery:o}=t,a=Q6(r);return a?.length?(0,Sm.jsx)(eT.__experimentalVStack,{spacing:4,children:a.map(i=>{let l=o?.include?.[i.slug]||[],s=o?.exclude?.[i.slug]||[],c=(u,p)=>{let m={...o?.[p],[i.slug]:u};u.length||delete m[i.slug];let d={...o,[p]:Object.keys(m).length?m:void 0};e({taxQuery:Object.values(d).every(f=>!f)?void 0:d})};return(0,Sm.jsxs)(Gu.Fragment,{children:[(0,Sm.jsx)(Tue,{taxonomy:i,termIds:l,oppositeTermIds:s,onChange:u=>c(u,"include"),label:i.name}),(0,Sm.jsx)(Tue,{taxonomy:i,termIds:s,oppositeTermIds:l,onChange:u=>c(u,"exclude"),label:(0,tT.sprintf)((0,tT.__)("Exclude: %s"),i.name)})]},i.slug)})}):null}function Tue({taxonomy:e,termIds:t,oppositeTermIds:r,onChange:o,label:a}){let[i,l]=(0,Gu.useState)(""),[s,c]=(0,Gu.useState)(N0),[u,p]=(0,Gu.useState)(N0),m=(0,Pue.useDebounce)(l,250),{searchResults:d,searchHasResolved:f}=(0,cz.useSelect)(v=>{if(!i)return{searchResults:N0,searchHasResolved:!0};let{getEntityRecords:b,hasFinishedResolution:_}=v(uz.store),k=[...t,...r],x=["taxonomy",e.slug,{...Sue,search:i,orderby:"name",exclude:k,per_page:20}];return{searchResults:b(...x),searchHasResolved:_("getEntityRecords",x)}},[i,e.slug,t,r]),h=(0,cz.useSelect)(v=>{if(!t?.length)return N0;let{getEntityRecords:b}=v(uz.store);return b("taxonomy",e.slug,{...Sue,include:t,per_page:t.length})},[e.slug,t]);return(0,Gu.useEffect)(()=>{if(t?.length||c(N0),!h?.length)return;let v=t.reduce((b,_)=>{let k=h.find(x=>x.id===_);return k&&b.push({id:_,value:k.name}),b},[]);c(v)},[t,h]),(0,Gu.useEffect)(()=>{f&&p(d.map(v=>v.name))},[d,f]),(0,Sm.jsx)("div",{className:"block-library-query-inspector__taxonomy-control",children:(0,Sm.jsx)(eT.FormTokenField,{label:a,value:s,onInputChange:m,suggestions:u,displayTransform:Eue.decodeEntities,onChange:v=>{let b=new Set;for(let _ of v){let k=lPe(d,_);k&&b.add(k)}p(N0),o(Array.from(b))},help:""})})}var Iue=n(O(),1),Nue=n(F(),1),Due=n(re(),1),El=n(N(),1),Lue=n(y(),1),sPe=[{value:"aside",label:(0,El.__)("Aside")},{value:"audio",label:(0,El.__)("Audio")},{value:"chat",label:(0,El.__)("Chat")},{value:"gallery",label:(0,El.__)("Gallery")},{value:"image",label:(0,El.__)("Image")},{value:"link",label:(0,El.__)("Link")},{value:"quote",label:(0,El.__)("Quote")},{value:"standard",label:(0,El.__)("Standard")},{value:"status",label:(0,El.__)("Status")},{value:"video",label:(0,El.__)("Video")}].sort((e,t)=>{let r=e.label.toUpperCase(),o=t.label.toUpperCase();return r<o?-1:r>o?1:0});function cPe(e,t){return e.map(r=>t.find(o=>o.label.toLocaleLowerCase()===r.toLocaleLowerCase())?.value).filter(Boolean)}function Rue({onChange:e,query:{format:t}}){let r=Array.isArray(t)?t:[t],{supportedFormats:o}=(0,Nue.useSelect)(s=>({supportedFormats:s(Due.store).getThemeSupports().formats}),[]),a=sPe.filter(s=>o.includes(s.value)),i=r.map(s=>a.find(c=>c.value===s)?.label).filter(Boolean),l=a.filter(s=>!r.includes(s.value)).map(s=>s.label);return(0,Lue.jsx)(Iue.FormTokenField,{label:(0,El.__)("Formats"),value:i,suggestions:l,onChange:s=>{e({format:cPe(s,a)})},help:"",__experimentalExpandOnFocus:!0})}var Aue=n(O(),1),Af=n(N(),1),Mue=n(y(),1),uPe=[{label:(0,Af.__)("Include"),value:""},{label:(0,Af.__)("Ignore"),value:"ignore"},{label:(0,Af.__)("Exclude"),value:"exclude"},{label:(0,Af.__)("Only"),value:"only"}];function zue({value:e,onChange:t}){return(0,Mue.jsx)(Aue.SelectControl,{label:(0,Af.__)("Sticky posts"),options:uPe,value:e,onChange:t,help:(0,Af.__)("Sticky posts always appear first, regardless of their publish date.")})}var Fue=n(O(),1),Hue=n(N(),1),jue=n(y(),1),Vue=1,Oue=100,pPe=({perPage:e,offset:t=0,onChange:r})=>(0,jue.jsx)(Fue.RangeControl,{label:(0,Hue.__)("Items per page"),min:Vue,max:Oue,onChange:o=>{isNaN(o)||o<Vue||o>Oue||r({perPage:o,offset:t})},value:parseInt(e,10)}),Uue=pPe;var Wue=n(O(),1),$ue=n(N(),1),que=n(y(),1),Gue=0,mPe=100,dPe=({offset:e=0,onChange:t})=>(0,que.jsx)(Wue.__experimentalNumberControl,{label:(0,$ue.__)("Offset"),value:e,min:Gue,onChange:r=>{isNaN(r)||r<Gue||r>mPe||t({offset:r})}}),Zue=dPe;var Kue=n(O(),1),pz=n(N(),1),Yue=n(y(),1),fPe=({pages:e,onChange:t})=>(0,Yue.jsx)(Kue.__experimentalNumberControl,{label:(0,pz.__)("Max pages to show"),value:e,min:0,onChange:r=>{isNaN(r)||r<0||t({pages:r})},help:(0,pz.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")}),Que=fPe;var Ke=n(y(),1);function Jue(e){let{attributes:t,setQuery:r,isSingular:o,shouldExcludeCurrentPost:a}=e,{query:i}=t,{order:l,orderBy:s,author:c,pages:u,postType:p,perPage:m,offset:d,sticky:f,inherit:h,taxQuery:g,parents:v,format:b,excludeCurrent:_}=i,k=rue(t),x=p==="post",{postTypesTaxonomiesMap:w,postTypesSelectOptions:C,postTypeFormatSupportMap:T}=Jce(),I=Q6(p),D=eue(p),L=X=>{let Ce={postType:X},pe=w[X];if(pe?.length&&g){let fe=oo=>Object.entries(oo||{}).reduce((no,[bo,yo])=>(pe.includes(bo)&&(no[bo]=yo),no),{}),Ae={},Ft=fe(g.include);Object.keys(Ft).length&&(Ae.include=Ft);let ze=fe(g.exclude);Object.keys(ze).length&&(Ae.exclude=ze),Ce.taxQuery=Object.keys(Ae).length?Ae:void 0}X!=="post"&&(Ce.sticky=""),Ce.parents=[],T[X]||(Ce.format=[]),r(Ce)},[E,B]=(0,rT.useState)(i.search),A=(0,rT.useMemo)(()=>(0,Xue.debounce)(X=>{r({search:X})},250),[r]),z=tue(p),j=ni(k,"inherit"),G=!h&&ni(k,"postType"),W=(0,zt.__)("Post type"),$=(0,zt.__)("Select the type of content to display: posts, pages, or custom post types."),V=!h&&ni(k,"order"),Q=!h&&x&&ni(k,"sticky"),Y=j||G||V||Q,ee=!!I?.length&&ni(k,"taxQuery"),te=ni(k,"author"),oe=ni(k,"search"),J=ni(k,"parents")&&D,ce=T[p],ie=(0,mz.useSelect)(X=>{if(!ce||!ni(k,"format"))return!1;let Ce=X(dz.store).getThemeSupports();return Ce.formats&&Ce.formats.length>0&&Ce.formats.some(pe=>pe!=="standard")},[k,ce]),we=a&&ni(k,"excludeCurrent"),se=(0,mz.useSelect)(X=>X(dz.store).getPostType(p)?.labels.singular_name,[p]),de=ee||te||oe||J||ie||we,ge=Z(),ne=ni(k,"postCount"),me=ni(k,"offset"),le=ni(k,"pages"),Pe=ne||me||le,Ee=o&&h;return(0,Ke.jsxs)(Ke.Fragment,{children:[Y&&(0,Ke.jsxs)(gt.__experimentalToolsPanel,{label:(0,zt.__)("Settings"),resetAll:()=>{r({postType:"post",order:"desc",orderBy:"date",sticky:"",inherit:!0})},dropdownMenuProps:ge,children:[j&&(0,Ke.jsx)(gt.__experimentalToolsPanelItem,{hasValue:()=>!h,label:(0,zt.__)("Query type"),onDeselect:()=>r({inherit:!0}),isShownByDefault:!0,children:(0,Ke.jsxs)(gt.__experimentalVStack,{spacing:4,children:[(0,Ke.jsxs)(gt.__experimentalToggleGroupControl,{label:(0,zt.__)("Query type"),isBlock:!0,onChange:X=>{r({inherit:X==="default"})},help:h?(0,zt.__)("Display a list of posts or custom post types based on the current template."):(0,zt.__)("Display a list of posts or custom post types based on specific criteria."),value:h?"default":"custom",children:[(0,Ke.jsx)(gt.__experimentalToggleGroupControlOption,{value:"default",label:(0,zt.__)("Default")}),(0,Ke.jsx)(gt.__experimentalToggleGroupControlOption,{value:"custom",label:(0,zt.__)("Custom")})]}),Ee&&(0,Ke.jsx)(gt.Notice,{status:"warning",isDismissible:!1,children:(0,zt.__)("Cannot inherit the current template query when placed inside the singular content (e.g., post, page, 404, blank).")})]})}),G&&(0,Ke.jsx)(gt.__experimentalToolsPanelItem,{hasValue:()=>p!=="post",label:W,onDeselect:()=>L("post"),isShownByDefault:!0,children:C.length>2?(0,Ke.jsx)(gt.SelectControl,{options:C,value:p,label:W,onChange:L,help:$}):(0,Ke.jsx)(gt.__experimentalToggleGroupControl,{isBlock:!0,value:p,label:W,onChange:L,help:$,children:C.map(X=>(0,Ke.jsx)(gt.__experimentalToggleGroupControlOption,{value:X.value,label:X.label},X.value))})}),V&&(0,Ke.jsx)(gt.__experimentalToolsPanelItem,{hasValue:()=>l!=="desc"||s!=="date",label:(0,zt.__)("Order by"),onDeselect:()=>r({order:"desc",orderBy:"date"}),isShownByDefault:!0,children:(0,Ke.jsx)(mue,{order:l,orderBy:s,orderByOptions:z,onChange:r})}),Q&&(0,Ke.jsx)(gt.__experimentalToolsPanelItem,{hasValue:()=>!!f,label:(0,zt.__)("Sticky posts"),onDeselect:()=>r({sticky:""}),isShownByDefault:!0,children:(0,Ke.jsx)(zue,{value:f,onChange:X=>r({sticky:X})})})]}),!h&&Pe&&(0,Ke.jsxs)(gt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__display",label:(0,zt.__)("Display"),resetAll:()=>{r({offset:0,pages:0})},dropdownMenuProps:ge,children:[(0,Ke.jsx)(gt.__experimentalToolsPanelItem,{label:(0,zt.__)("Items per page"),hasValue:()=>m>0,children:(0,Ke.jsx)(Uue,{perPage:m,offset:d,onChange:r})}),(0,Ke.jsx)(gt.__experimentalToolsPanelItem,{label:(0,zt.__)("Offset"),hasValue:()=>d>0,onDeselect:()=>r({offset:0}),children:(0,Ke.jsx)(Zue,{offset:d,onChange:r})}),(0,Ke.jsx)(gt.__experimentalToolsPanelItem,{label:(0,zt.__)("Max pages to show"),hasValue:()=>u>0,onDeselect:()=>r({pages:0}),children:(0,Ke.jsx)(Que,{pages:u,onChange:r})})]}),!h&&de&&(0,Ke.jsxs)(gt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,zt.__)("Filters"),resetAll:()=>{r({author:"",parents:[],search:"",taxQuery:null,format:[],excludeCurrent:null}),B("")},dropdownMenuProps:ge,children:[ee&&(0,Ke.jsx)(gt.__experimentalToolsPanelItem,{label:(0,zt.__)("Taxonomies"),hasValue:()=>Object.values(g||{}).some(X=>Object.values(X||{}).some(Ce=>!!Ce?.length)),onDeselect:()=>r({taxQuery:null}),children:(0,Ke.jsx)(Bue,{onChange:r,query:i})}),te&&(0,Ke.jsx)(gt.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,zt.__)("Authors"),onDeselect:()=>r({author:""}),children:(0,Ke.jsx)(bue,{value:c,onChange:r})}),oe&&(0,Ke.jsx)(gt.__experimentalToolsPanelItem,{hasValue:()=>!!E,label:(0,zt.__)("Keyword"),onDeselect:()=>{r({search:""}),B("")},children:(0,Ke.jsx)(gt.TextControl,{label:(0,zt.__)("Keyword"),value:E,onChange:X=>{A(X),B(X)}})}),J&&(0,Ke.jsx)(gt.__experimentalToolsPanelItem,{hasValue:()=>!!v?.length,label:(0,zt.__)("Parents"),onDeselect:()=>r({parents:[]}),children:(0,Ke.jsx)(Cue,{parents:v,postType:p,onChange:r})}),ie&&(0,Ke.jsx)(gt.__experimentalToolsPanelItem,{hasValue:()=>!!b?.length,label:(0,zt.__)("Formats"),onDeselect:()=>r({format:[]}),children:(0,Ke.jsx)(Rue,{onChange:r,query:i})}),we&&(0,Ke.jsx)(gt.__experimentalToolsPanelItem,{label:(0,zt.__)("Exclude"),hasValue:()=>_!==null,onDeselect:()=>r({excludeCurrent:null}),children:(0,Ke.jsx)(gt.ToggleControl,{label:(0,zt.__)("Exclude current"),help:(0,zt.sprintf)((0,zt.__)("Exclude the current %s from the query."),se),checked:!!_,onChange:X=>{r({excludeCurrent:!!X})}})})]})]})}var L0=n(O(),1),o2=n(N(),1),oT=n(H(),1),tpe=n(F(),1),rpe=n(P(),1);var D0=n(y(),1),epe="wp-block-query-enhanced-pagination-modal__description";function ope({clientId:e,attributes:{enhancedPagination:t},setAttributes:r}){let[o,a]=(0,oT.useState)(!1),i=X6(e),{__unstableMarkNextChangeAsNotPersistent:l}=(0,tpe.useDispatch)(rpe.store);(0,oT.useEffect)(()=>{t&&i&&(l(),r({enhancedPagination:!1}),a(!0))},[t,i,r,l]);let s=()=>{a(!1)},c=(0,o2.__)("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,o2.__)('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,D0.jsx)(L0.Modal,{title:(0,o2.__)("Query block: Reload full page enabled"),className:"wp-block-query__enhanced-pagination-modal",aria:{describedby:epe},role:"alertdialog",focusOnMount:"firstElement",isDismissible:!1,onRequestClose:s,children:(0,D0.jsxs)(L0.__experimentalVStack,{alignment:"right",spacing:5,children:[(0,D0.jsx)("span",{id:epe,children:c}),(0,D0.jsx)(L0.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:s,children:(0,o2.__)("OK")})]})})}var M0=n(O(),1),hz=n(N(),1),ipe=n(F(),1),iT=n(P(),1);var R0=n(H(),1),npe=n(F(),1),aT=n(O(),1),A0=n(P(),1),nT=n(N(),1);var Wu=n(y(),1);function ape({clientId:e,attributes:t,setIsPatternSelectionModalOpen:r}){return(0,Wu.jsx)(aT.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,nT.__)("Choose a pattern"),onRequestClose:()=>r(!1),isFullScreen:!0,children:(0,Wu.jsx)(fz,{clientId:e,attributes:t})})}function n2(e,t){let r=nue(e,t),o=iue(e,r);return(0,R0.useMemo)(()=>o.filter(i=>i.blocks?.[0]?.name==="core/query"),[o])}function fz({clientId:e,attributes:t,showTitlesAsTooltip:r=!1,showSearch:o=!0}){let[a,i]=(0,R0.useState)(""),{replaceBlock:l,selectBlock:s}=(0,npe.useDispatch)(A0.store),c=n2(e,t),u=(0,R0.useMemo)(()=>({previewPostType:t.query.postType}),[t.query.postType]),p=(0,R0.useMemo)(()=>qb(c,a),[c,a]),m=(d,f)=>{let{newBlocks:h,queryClientIds:g}=oue(f,t);l(e,h),g[0]&&s(g[0])};return(0,Wu.jsxs)("div",{className:"block-library-query-pattern__selection-content",children:[o&&(0,Wu.jsx)("div",{className:"block-library-query-pattern__selection-search",children:(0,Wu.jsx)(aT.SearchControl,{onChange:i,value:a,label:(0,nT.__)("Search"),placeholder:(0,nT.__)("Search")})}),(0,Wu.jsx)(A0.BlockContextProvider,{value:u,children:(0,Wu.jsx)(A0.__experimentalBlockPatternsList,{blockPatterns:p,onClickPattern:m,showTitlesAsTooltip:r})})]})}var Mf=n(y(),1);function hPe({clientId:e,attributes:t,hasInnerBlocks:r}){if(!n2(e,t).length)return null;let a=r?(0,hz.__)("Change design"):(0,hz.__)("Choose pattern");return(0,Mf.jsx)(iT.BlockControls,{group:"other",children:(0,Mf.jsx)(M0.__experimentalDropdownContentWrapper,{children:(0,Mf.jsx)(M0.Dropdown,{contentClassName:"block-editor-block-settings-menu__popover",focusOnMount:"firstElement",expandOnMobile:!0,renderToggle:({isOpen:i,onToggle:l})=>(0,Mf.jsx)(M0.ToolbarButton,{"aria-haspopup":"true","aria-expanded":i,onClick:l,children:a}),renderContent:()=>(0,Mf.jsx)(fz,{clientId:e,attributes:t,showSearch:!1,showTitlesAsTooltip:!0})})})})}function lT(e){return(0,ipe.useSelect)(r=>{let{isLockedBlock:o}=U(r(iT.store));return o(e.clientId)},[e.clientId])?null:(0,Mf.jsx)(hPe,{...e})}var Yi=n(y(),1),{HTMLElementControl:gPe}=U(Bl.privateApis),vPe=3,bPe=[["core/post-template"]];function gz({attributes:e,setAttributes:t,clientId:r,context:o,name:a,isSelected:i}){let{queryId:l,query:s,enhancedPagination:c,tagName:u="div",query:{inherit:p}={}}=e,{templateSlug:m,postType:d}=o,{isSingular:f,templateType:h}=lue(m),{__unstableMarkNextChangeAsNotPersistent:g}=(0,sT.useDispatch)(Bl.store),v=(0,lpe.useInstanceId)(gz),b=(0,Bl.useBlockProps)(),_=(0,Bl.useInnerBlocksProps)(b,{template:bPe}),{postsPerPage:k}=(0,sT.useSelect)(C=>{let{getSettings:T}=C(Bl.store),{getEntityRecord:I,getEntityRecordEdits:D,canUser:L}=C(cpe.store),E=L("read",{kind:"root",name:"site"})?+I("root","site")?.posts_per_page:+T().postsPerPage;return{postsPerPage:+D("root","site")?.posts_per_page||E||vPe}},[]),x=f&&!p&&(s.postType===d||s.postType===h),w=(0,a2.useCallback)(C=>t(T=>({query:{...T.query,...C}})),[t]);return(0,a2.useEffect)(()=>{let C={};(p&&s.perPage!==k||!s.perPage&&k)&&(C.perPage=k),!x&&s.excludeCurrent!==null&&(C.excludeCurrent=null),Object.keys(C).length&&(g(),w(C))},[s.perPage,s.excludeCurrent,p,k,x,g,w]),(0,a2.useEffect)(()=>{Number.isFinite(l)||(g(),t({queryId:v}))},[l,v,g,t]),(0,Yi.jsxs)(Yi.Fragment,{children:[i&&(0,Yi.jsx)(lT,{clientId:r,attributes:e,hasInnerBlocks:!0}),(0,Yi.jsx)(ope,{attributes:e,setAttributes:t,clientId:r}),(0,Yi.jsx)(Bl.InspectorControls,{children:(0,Yi.jsx)(Jue,{name:a,attributes:e,setQuery:w,setAttributes:t,clientId:r,isSingular:f,shouldExcludeCurrentPost:x})}),(0,Yi.jsxs)(Bl.InspectorControls,{group:"advanced",children:[(0,Yi.jsx)(gPe,{tagName:u,onChange:C=>t({tagName:C}),clientId:r,options:[{label:(0,spe.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]}),(0,Yi.jsx)(cue,{enhancedPagination:c,setAttributes:t,clientId:r})]}),(0,Yi.jsx)(u,{..._})]})}var uT=n(F(),1),pT=n(q(),1),vz=n(H(),1),zf=n(P(),1),i2=n(O(),1),cT=n(N(),1),upe=n(ve(),1);var Rc=n(y(),1);function ppe({attributes:e,clientId:t,name:r,openPatternSelectionModal:o,isSelected:a}){let[i,l]=(0,vz.useState)(!1),[s,c]=(0,vz.useState)(0),u=(0,upe.useResizeObserver)(([_])=>{c(_.contentRect.width)}),m=s>0&&s<160,{blockType:d,activeBlockVariation:f}=(0,uT.useSelect)(_=>{let{getActiveBlockVariation:k,getBlockType:x}=_(pT.store);return{blockType:x(r),activeBlockVariation:k(r,e)}},[r,e]),h=!!n2(t,e).length,g=f?.icon?.src||f?.icon||d?.icon?.src,v=f?.title||d?.title,b=(0,zf.useBlockProps)({ref:u});return i?(0,Rc.jsx)(yPe,{clientId:t,attributes:e,icon:g,label:v}):(0,Rc.jsxs)("div",{...b,children:[a&&(0,Rc.jsx)(lT,{clientId:t,attributes:e,hasInnerBlocks:!1}),(0,Rc.jsxs)(i2.Placeholder,{className:"block-editor-media-placeholder",icon:!m&&g,label:!m&&v,instructions:!m&&(0,cT.__)("Choose a pattern for the query loop or start blank."),withIllustration:m,children:[!!h&&!m&&(0,Rc.jsx)(i2.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:o,children:(0,cT.__)("Choose")}),!m&&(0,Rc.jsx)(i2.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{l(!0)},children:(0,cT.__)("Start blank")})]})]})}function yPe({clientId:e,attributes:t,icon:r,label:o}){let a=aue(t),{replaceInnerBlocks:i}=(0,uT.useDispatch)(zf.store),l=(0,zf.useBlockProps)();return(0,Rc.jsx)("div",{...l,children:(0,Rc.jsx)(zf.__experimentalBlockVariationPicker,{icon:r,label:o,variations:a,onSelect:s=>{s.innerBlocks&&i(e,(0,pT.createBlocksFromInnerBlocksTemplate)(s.innerBlocks),!1)}})})}var Vf=n(y(),1),_Pe=e=>{let{clientId:t,attributes:r}=e,[o,a]=(0,dpe.useState)(!1),l=(0,mpe.useSelect)(s=>!!s(fpe.store).getBlocks(t).length,[t])?gz:ppe;return(0,Vf.jsxs)(Vf.Fragment,{children:[(0,Vf.jsx)(l,{...e,openPatternSelectionModal:()=>a(!0)}),o&&(0,Vf.jsx)(ape,{clientId:t,attributes:r,setIsPatternSelectionModalOpen:a})]})},hpe=_Pe;var mT=n(P(),1),gpe=n(y(),1);function vpe({attributes:{tagName:e="div"}}){let t=mT.useBlockProps.save(),r=mT.useInnerBlocksProps.save(t);return(0,gpe.jsx)(e,{...r})}var l2=n(N(),1);var Ac=n(O(),1),$u=n(y(),1),bpe=(0,$u.jsx)(Ac.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,$u.jsx)(Ac.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})}),ype=(0,$u.jsx)(Ac.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,$u.jsx)(Ac.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})}),_pe=(0,$u.jsx)(Ac.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,$u.jsx)(Ac.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})}),xpe=(0,$u.jsx)(Ac.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,$u.jsx)(Ac.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})});var bz=["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],xPe=[{name:"title-date",title:(0,l2.__)("Title & Date"),icon:bpe,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],bz]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,l2.__)("Title & Excerpt"),icon:ype,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,l2.__)("Title, Date, & Excerpt"),icon:_pe,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],bz,["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,l2.__)("Image, Date, & Title"),icon:xpe,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],bz,["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}],kpe=xPe;var dT=n(q(),1),Jn=n(P(),1);var Of=n(y(),1),{cleanEmptyObject:yz}=U(Jn.privateApis),_z=e=>{let{query:t}=e,{categoryIds:r,tagIds:o,taxQuery:a,...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(a||{}).length&&(i.taxQuery={include:a}),{...e,query:i}},wpe=(e,t)=>{let{style:r,backgroundColor:o,gradient:a,textColor:i,...l}=e;if(!(o||a||i||r?.color||r?.elements?.link))return[e,t];if(r&&(l.style=yz({...r,color:void 0,elements:{...r.elements,link:void 0}})),kPe(t)){let u=t[0],m=r?.color||r?.elements?.link||u.attributes.style?yz({...u.attributes.style,color:r?.color,elements:r?.elements?.link?{link:r?.elements?.link}:void 0}):void 0,d=(0,dT.createBlock)("core/group",{...u.attributes,backgroundColor:o,gradient:a,textColor:i,style:m},u.innerBlocks);return[l,[d]]}let c=(0,dT.createBlock)("core/group",{backgroundColor:o,gradient:a,textColor:i,style:yz({color:r?.color,elements:r?.elements?.link?{link:r?.elements?.link}:void 0})},t);return[l,[c]]},kPe=(e=[])=>e.length===1&&e[0].name==="core/group",xz=e=>{let{layout:t=null}=e;if(!t)return e;let{inherit:r=null,contentSize:o=null,...a}=t;return r||o?{...e,layout:{...a,contentSize:o,type:"constrained"}}:e},Cpe=(e=[])=>{let t=null;for(let r of e)if(r.name==="core/post-template"){t=r;break}else r.innerBlocks.length&&(t=Cpe(r.innerBlocks));return t},Spe=(e=[],t)=>(e.forEach((r,o)=>{r.name==="core/post-template"?e.splice(o,1,t):r.innerBlocks.length&&(r.innerBlocks=Spe(r.innerBlocks,t))}),e),z0=(e,t)=>{let{displayLayout:r=null,...o}=e;if(!r)return[e,t];let a=Cpe(t);if(!a)return[e,t];let{type:i,columns:l}=r,s=i==="flex"?"grid":"default",c=(0,dT.createBlock)("core/post-template",{...a.attributes,layout:{type:s,...l&&{columnCount:l}}},a.innerBlocks);return[o,Spe(t,c)]},wPe={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=_z(e),{layout:o,...a}=r,i={...a,displayLayout:r.layout};return z0(i,t)},save(){return(0,Of.jsx)(Jn.InnerBlocks.Content,{})}},CPe={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=_z(e),[o,a]=wpe(r,t),i=xz(o);return z0(i,a)},save({attributes:{tagName:e="div"}}){let t=Jn.useBlockProps.save(),r=Jn.useInnerBlocksProps.save(t);return(0,Of.jsx)(e,{...r})}},SPe={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:a}=e;return r||o||a||t?.color||t?.elements?.link},migrate(e,t){let[r,o]=wpe(e,t),a=xz(r);return z0(a,o)},save({attributes:{tagName:e="div"}}){let t=Jn.useBlockProps.save(),r=Jn.useInnerBlocksProps.save(t);return(0,Of.jsx)(e,{...r})}},TPe={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=Jn.useBlockProps.save(),r=Jn.useInnerBlocksProps.save(t);return(0,Of.jsx)(e,{...r})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&e?.type!=="constrained",migrate(e,t){let r=xz(e);return z0(r,t)}},PPe={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=Jn.useBlockProps.save(),r=Jn.useInnerBlocksProps.save(t);return(0,Of.jsx)(e,{...r})},isEligible:({displayLayout:e})=>!!e,migrate:z0},EPe={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=Jn.useBlockProps.save(),r=Jn.useInnerBlocksProps.save(t);return(0,Of.jsx)(e,{...r})},isEligible:({query:{taxQuery:e}={}})=>!!e&&Object.keys(e).some(t=>!["include","exclude"].includes(t)),migrate(e,t){let r=_z(e);return z0(r,t)}},BPe=[EPe,PPe,TPe,SPe,CPe,wPe],Tpe=BPe;var{name:Ppe}=K6,Epe={icon:rd,edit:hpe,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,excludeCurrent:null}},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:vpe,variations:kpe,deprecated:Tpe},IPe=()=>R({name:Ppe,metadata:K6,settings:Epe});var wz={};K(wz,{init:()=>LPe,metadata:()=>fT,name:()=>Mpe,settings:()=>zpe});var Ape=n(N(),1);var fT={$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 hT=n(P(),1),Bpe=n(N(),1),Ipe=n(y(),1),DPe=[["core/paragraph",{placeholder:(0,Bpe.__)("Add text or blocks that will display when a query returns no results.")}]];function Npe(){let e=(0,hT.useBlockProps)(),t=(0,hT.useInnerBlocksProps)(e,{template:DPe});return(0,Ipe.jsx)("div",{...t})}var Dpe=n(P(),1),Lpe=n(y(),1);function Rpe(){return(0,Lpe.jsx)(Dpe.InnerBlocks.Content,{})}var{name:Mpe}=fT,zpe={icon:rd,edit:Npe,save:Rpe,example:{innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Ape.__)("No posts were found.")}}]}},LPe=()=>R({name:Mpe,metadata:fT,settings:zpe});var Tz={};K(Tz,{init:()=>zPe,metadata:()=>gT,name:()=>Zpe,settings:()=>Kpe});var gT={$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 vT=n(N(),1),qu=n(P(),1),bT=n(F(),1),s2=n(O(),1),jpe=n(H(),1);var Ff=n(N(),1),V0=n(O(),1),O0=n(y(),1);function Vpe({value:e,onChange:t}){return(0,O0.jsxs)(V0.__experimentalToggleGroupControl,{label:(0,Ff.__)("Arrow"),value:e,onChange:t,help:(0,Ff.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0,children:[(0,O0.jsx)(V0.__experimentalToggleGroupControlOption,{value:"none",label:(0,Ff._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,O0.jsx)(V0.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Ff._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,O0.jsx)(V0.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Ff._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")})]})}var Cz=n(N(),1),Ope=n(O(),1),Fpe=n(y(),1);function Hpe({value:e,onChange:t}){return(0,Fpe.jsx)(Ope.ToggleControl,{label:(0,Cz.__)("Show label text"),help:(0,Cz.__)('Make label text visible, e.g. "Next Page".'),onChange:t,checked:e===!0})}var Il=n(y(),1),APe=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]];function Upe({attributes:{paginationArrow:e,showLabel:t},setAttributes:r,clientId:o}){let a=(0,bT.useSelect)(u=>{let{getBlocks:p}=u(qu.store);return p(o)?.find(d=>["core/query-pagination-next","core/query-pagination-previous"].includes(d.name))},[o]),{__unstableMarkNextChangeAsNotPersistent:i}=(0,bT.useDispatch)(qu.store),l=Z(),s=(0,qu.useBlockProps)(),c=(0,qu.useInnerBlocksProps)(s,{template:APe});return(0,jpe.useEffect)(()=>{e==="none"&&!t&&(i(),r({showLabel:!0}))},[e,r,t,i]),(0,Il.jsxs)(Il.Fragment,{children:[a&&(0,Il.jsx)(qu.InspectorControls,{children:(0,Il.jsxs)(s2.__experimentalToolsPanel,{label:(0,vT.__)("Settings"),resetAll:()=>{r({paginationArrow:"none",showLabel:!0})},dropdownMenuProps:l,children:[(0,Il.jsx)(s2.__experimentalToolsPanelItem,{hasValue:()=>e!=="none",label:(0,vT.__)("Pagination arrow"),onDeselect:()=>r({paginationArrow:"none"}),isShownByDefault:!0,children:(0,Il.jsx)(Vpe,{value:e,onChange:u=>{r({paginationArrow:u})}})}),e!=="none"&&(0,Il.jsx)(s2.__experimentalToolsPanelItem,{hasValue:()=>!t,label:(0,vT.__)("Show text"),onDeselect:()=>r({showLabel:!0}),isShownByDefault:!0,children:(0,Il.jsx)(Hpe,{value:t,onChange:u=>{r({showLabel:u})}})})]})}),(0,Il.jsx)("nav",{...c})]})}var Gpe=n(P(),1),Wpe=n(y(),1);function $pe(){return(0,Wpe.jsx)(Gpe.InnerBlocks.Content,{})}var yT=n(P(),1),Sz=n(y(),1),MPe=[{save(){return(0,Sz.jsx)("div",{...yT.useBlockProps.save(),children:(0,Sz.jsx)(yT.InnerBlocks.Content,{})})}}],qpe=MPe;var{name:Zpe}=gT,Kpe={icon:Sv,edit:Upe,save:$pe,deprecated:qpe},zPe=()=>R({name:Zpe,metadata:gT,settings:Kpe});var Ez={};K(Ez,{init:()=>FPe,metadata:()=>_T,name:()=>Qpe,settings:()=>Xpe});var _T={$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 Pz=n(N(),1),xT=n(P(),1),c2=n(y(),1),OPe={none:"",arrow:"\u2192",chevron:"\xBB"};function Ype({attributes:{label:e},setAttributes:t,context:{paginationArrow:r,showLabel:o}}){let a=OPe[r];return(0,c2.jsxs)("a",{href:"#pagination-next-pseudo-link",onClick:i=>i.preventDefault(),...(0,xT.useBlockProps)(),children:[o&&(0,c2.jsx)(xT.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Pz.__)("Next page link"),placeholder:(0,Pz.__)("Next Page"),value:e,onChange:i=>t({label:i})}),a&&(0,c2.jsx)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${r}`,"aria-hidden":!0,children:a})]})}var{name:Qpe}=_T,Xpe={icon:kv,edit:Ype},FPe=()=>R({name:Qpe,metadata:_T,settings:Xpe});var Bz={};K(Bz,{init:()=>UPe,metadata:()=>kT,name:()=>eme,settings:()=>tme});var kT={$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 p2=n(N(),1),wT=n(P(),1),F0=n(O(),1);var Qi=n(y(),1),u2=(e,t="a",r="")=>(0,Qi.jsx)(t,{className:`page-numbers ${r}`,children:e},e),jPe=e=>{let t=[];for(let r=1;r<=e;r++)t.push(u2(r));t.push(u2(e+1,"span","current"));for(let r=1;r<=e;r++)t.push(u2(e+1+r));return t.push(u2("...","span","dots")),t.push(u2(e*2+3)),(0,Qi.jsx)(Qi.Fragment,{children:t})};function Jpe({attributes:e,setAttributes:t}){let{midSize:r}=e,o=jPe(parseInt(r,10)),a=Z();return(0,Qi.jsxs)(Qi.Fragment,{children:[(0,Qi.jsx)(wT.InspectorControls,{children:(0,Qi.jsx)(F0.__experimentalToolsPanel,{label:(0,p2.__)("Settings"),resetAll:()=>t({midSize:2}),dropdownMenuProps:a,children:(0,Qi.jsx)(F0.__experimentalToolsPanelItem,{label:(0,p2.__)("Number of links"),hasValue:()=>r!==2,onDeselect:()=>t({midSize:2}),isShownByDefault:!0,children:(0,Qi.jsx)(F0.RangeControl,{label:(0,p2.__)("Number of links"),help:(0,p2.__)("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,Qi.jsx)("div",{...(0,wT.useBlockProps)(),children:o})]})}var{name:eme}=kT,tme={icon:wv,edit:Jpe,example:{}},UPe=()=>R({name:eme,metadata:kT,settings:tme});var Nz={};K(Nz,{init:()=>$Pe,metadata:()=>CT,name:()=>ome,settings:()=>nme});var CT={$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 Iz=n(N(),1),ST=n(P(),1),m2=n(y(),1),WPe={none:"",arrow:"\u2190",chevron:"\xAB"};function rme({attributes:{label:e},setAttributes:t,context:{paginationArrow:r,showLabel:o}}){let a=WPe[r];return(0,m2.jsxs)("a",{href:"#pagination-previous-pseudo-link",onClick:i=>i.preventDefault(),...(0,ST.useBlockProps)(),children:[a&&(0,m2.jsx)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${r}`,"aria-hidden":!0,children:a}),o&&(0,m2.jsx)(ST.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Iz.__)("Previous page link"),placeholder:(0,Iz.__)("Previous Page"),value:e,onChange:i=>t({label:i})})]})}var{name:ome}=CT,nme={icon:Cv,edit:rme},$Pe=()=>R({name:ome,metadata:CT,settings:nme});var Az={};K(Az,{init:()=>QPe,metadata:()=>TT,name:()=>mme,settings:()=>dme});var TT={$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 Nl=n(P(),1),Dl=n(O(),1),or=n(N(),1);var Dz=n(re(),1),Lz=n(F(),1);function ame(){let e=(0,Lz.useSelect)(l=>{let{getCurrentPostId:s,getCurrentPostType:c,getCurrentTemplateId:u}=l("core/editor"),p=c(),m=u()||(p==="wp_template"?s():null);return m?l(Dz.store).getEditedEntityRecord("postType","wp_template",m)?.slug:null},[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,o,a=!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&&(a=!0,l[2]&&(i=l[2]))}return(0,Lz.useSelect)(l=>{let{getEntityRecords:s,getTaxonomy:c,getAuthors:u}=l(Dz.store),p,m;if(r&&(p=c(r)?.labels?.singular_name),o){let d=s("taxonomy",r,{slug:o,per_page:1});d&&d[0]&&(m=d[0].name)}if(a&&(p="Author",i)){let d=u({slug:i});d&&d[0]&&(m=d[0].name)}return{archiveTypeLabel:p,archiveNameLabel:m}},[i,a,r,o])}var ime=n(re(),1),Rz=n(F(),1);function lme(e){let t=(0,Rz.useSelect)(r=>{let{getCurrentPostType:o}=r("core/editor");return o()},[]);return(0,Rz.useSelect)(r=>{let{getPostType:o}=r(ime.store),i=o(e||t);return{postTypeLabel:i?i.labels.singular_name:""}},[e,t])}var Nt=n(y(),1),ZPe=["archive","search","post-type"];function sme(e){Ct(e);let{attributes:{type:t,level:r,levelOptions:o,showPrefix:a,showSearchTerm:i},setAttributes:l,context:{query:s}}=e,{archiveTypeLabel:c,archiveNameLabel:u}=ame(),{postTypeLabel:p}=lme(s?.postType),m=Z(),d=r===0?"p":`h${r}`,f=(0,Nl.useBlockProps)({className:"wp-block-query-title__placeholder"});if(!ZPe.includes(t))return(0,Nt.jsx)("div",{...f,children:(0,Nt.jsx)(Nl.Warning,{children:(0,or.__)("Provided type is not supported.")})});let h;if(t==="archive"){let g;c?a?u?g=(0,or.sprintf)((0,or._x)("%1$s: %2$s","archive label"),c,u):g=(0,or.sprintf)((0,or.__)("%s: Name"),c):u?g=u:g=(0,or.sprintf)((0,or.__)("%s name"),c):g=a?(0,or.__)("Archive type: Name"):(0,or.__)("Archive title"),h=(0,Nt.jsxs)(Nt.Fragment,{children:[(0,Nt.jsx)(Nl.InspectorControls,{children:(0,Nt.jsx)(Dl.__experimentalToolsPanel,{label:(0,or.__)("Settings"),resetAll:()=>l({showPrefix:!0}),dropdownMenuProps:m,children:(0,Nt.jsx)(Dl.__experimentalToolsPanelItem,{hasValue:()=>!a,label:(0,or.__)("Show archive type in title"),onDeselect:()=>l({showPrefix:!0}),isShownByDefault:!0,children:(0,Nt.jsx)(Dl.ToggleControl,{label:(0,or.__)("Show archive type in title"),onChange:()=>l({showPrefix:!a}),checked:a})})})}),(0,Nt.jsx)(d,{...f,children:g})]})}if(t==="search"&&(h=(0,Nt.jsxs)(Nt.Fragment,{children:[(0,Nt.jsx)(Nl.InspectorControls,{children:(0,Nt.jsx)(Dl.__experimentalToolsPanel,{label:(0,or.__)("Settings"),resetAll:()=>l({showSearchTerm:!0}),dropdownMenuProps:m,children:(0,Nt.jsx)(Dl.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,or.__)("Show search term in title"),onDeselect:()=>l({showSearchTerm:!0}),isShownByDefault:!0,children:(0,Nt.jsx)(Dl.ToggleControl,{label:(0,or.__)("Show search term in title"),onChange:()=>l({showSearchTerm:!i}),checked:i})})})}),(0,Nt.jsx)(d,{...f,children:i?(0,or.__)("Search results for: \u201Csearch term\u201D"):(0,or.__)("Search results")})]})),t==="post-type"){let g;p?a?g=(0,or.sprintf)((0,or.__)('Post Type: "%s"'),p):g=p:g=a?(0,or.__)("Post Type: Name"):(0,or.__)("Name"),h=(0,Nt.jsxs)(Nt.Fragment,{children:[(0,Nt.jsx)(Nl.InspectorControls,{children:(0,Nt.jsx)(Dl.__experimentalToolsPanel,{label:(0,or.__)("Settings"),resetAll:()=>l({showPrefix:!0}),dropdownMenuProps:m,children:(0,Nt.jsx)(Dl.__experimentalToolsPanelItem,{hasValue:()=>!a,label:(0,or.__)("Show post type label"),onDeselect:()=>l({showPrefix:!0}),isShownByDefault:!0,children:(0,Nt.jsx)(Dl.ToggleControl,{label:(0,or.__)("Show post type label"),onChange:()=>l({showPrefix:!a}),checked:a})})})}),(0,Nt.jsx)(d,{...f,children:g})]})}return(0,Nt.jsxs)(Nt.Fragment,{children:[(0,Nt.jsx)(Nl.BlockControls,{group:"block",children:(0,Nt.jsx)(Nl.HeadingLevelDropdown,{value:r,options:o,onChange:g=>l({level:g})})}),h]})}var Hf=n(N(),1);var cme=[{isDefault:!0,name:"archive-title",title:(0,Hf.__)("Archive Title"),description:(0,Hf.__)("Display the archive title based on the queried object."),icon:$l,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,Hf.__)("Search Results Title"),description:(0,Hf.__)("Display the search results title based on the queried object."),icon:$l,attributes:{type:"search"},scope:["inserter"]},{isDefault:!1,name:"post-type-label",title:(0,Hf.__)("Post Type Label"),description:(0,Hf.__)("Display the post type label based on the queried object."),icon:$l,attributes:{type:"post-type"},scope:["inserter"]}];cme.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.type===r.type)});var ume=cme;var KPe={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},YPe={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:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},pme=[KPe,YPe];var{name:mme}=TT,dme={icon:$l,edit:sme,variations:ume,deprecated:pme},QPe=()=>R({name:mme,metadata:TT,settings:dme});var Vz={};K(Vz,{init:()=>JPe,metadata:()=>PT,name:()=>gme,settings:()=>vme});var PT={$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 ET=n(P(),1),BT=n(O(),1),H0=n(N(),1);var Tm=n(O(),1),jf=n(y(),1),Mz=(0,jf.jsx)(Tm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,jf.jsx)(Tm.Path,{d:"M4 11h4v2H4v-2zm6 0h6v2h-6v-2zm8 0h2v2h-2v-2z"})}),zz=(0,jf.jsx)(Tm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,jf.jsx)(Tm.Path,{d:"M4 13h2v-2H4v2zm4 0h10v-2H8v2zm12 0h2v-2h-2v2z"})}),fme=(0,jf.jsx)(Tm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,jf.jsx)(Tm.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 Ns=n(y(),1);function hme({attributes:e,setAttributes:t}){let{displayType:r}=e,o=(0,ET.useBlockProps)(),a=()=>{switch(r){case"total-results":return Mz;case"range-display":return zz}},i=[{role:"menuitemradio",title:(0,H0.__)("Total results"),isActive:r==="total-results",icon:Mz,onClick:()=>{t({displayType:"total-results"})}},{role:"menuitemradio",title:(0,H0.__)("Range display"),isActive:r==="range-display",icon:zz,onClick:()=>{t({displayType:"range-display"})}}],l=(0,Ns.jsx)(ET.BlockControls,{children:(0,Ns.jsx)(BT.ToolbarGroup,{children:(0,Ns.jsx)(BT.ToolbarDropdownMenu,{icon:a(),label:(0,H0.__)("Change display type"),controls:i})})});return(0,Ns.jsxs)("div",{...o,children:[l,r==="total-results"?(0,Ns.jsx)(Ns.Fragment,{children:(0,H0.__)("12 results found")}):r==="range-display"?(0,Ns.jsx)(Ns.Fragment,{children:(0,H0.__)("Displaying 1 \u2013 10 of 12")}):null]})}var{name:gme}=PT,vme={icon:fme,edit:hme},JPe=()=>R({name:gme,metadata:PT,settings:vme});var Fz={};K(Fz,{init:()=>uEe,metadata:()=>NT,name:()=>Tme,settings:()=>Pme});var Oz=n(N(),1);var d2=n(q(),1),mo=n(P(),1),_n=n(y(),1),Pm=e=>{let{value:t,...r}=e;return[{...r},t?(0,d2.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map(({content:o})=>(0,d2.createBlock)("core/paragraph",{content:o})):(0,d2.createBlock)("core/paragraph")]},bme=["left","right","center"],Uf=(e,t)=>{let{align:r,...o}=e;return[bme.includes(r)?{...o,textAlign:r}:e,t]},eEe=(e,t)=>[{...e,className:e.className?e.className+" is-style-large":"is-style-large"},t],tEe={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})=>bme.includes(e),save({attributes:e}){let{align:t,citation:r}=e,o=S({[`has-text-align-${t}`]:t});return(0,_n.jsxs)("blockquote",{...mo.useBlockProps.save({className:o}),children:[(0,_n.jsx)(mo.InnerBlocks.Content,{}),!mo.RichText.isEmpty(r)&&(0,_n.jsx)(mo.RichText.Content,{tagName:"cite",value:r})]})},migrate:Uf},rEe={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,a=S({[`has-text-align-${t}`]:t});return(0,_n.jsxs)("blockquote",{...mo.useBlockProps.save({className:a}),children:[(0,_n.jsx)(mo.RichText.Content,{multiline:!0,value:r}),!mo.RichText.isEmpty(o)&&(0,_n.jsx)(mo.RichText.Content,{tagName:"cite",value:o})]})},migrate(e){return Uf(...Pm(e))}},oEe={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 Uf(...Pm(e))},save({attributes:e}){let{align:t,value:r,citation:o}=e;return(0,_n.jsxs)("blockquote",{style:{textAlign:t||null},children:[(0,_n.jsx)(mo.RichText.Content,{multiline:!0,value:r}),!mo.RichText.isEmpty(o)&&(0,_n.jsx)(mo.RichText.Content,{tagName:"cite",value:o})]})}},nEe={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 Uf(...eEe(...Pm(r)))}return Uf(...Pm(e))},save({attributes:e}){let{align:t,value:r,citation:o,style:a}=e;return(0,_n.jsxs)("blockquote",{className:a===2?"is-large":"",style:{textAlign:t||null},children:[(0,_n.jsx)(mo.RichText.Content,{multiline:!0,value:r}),!mo.RichText.isEmpty(o)&&(0,_n.jsx)(mo.RichText.Content,{tagName:"cite",value:o})]})}},aEe={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 Uf(...Pm(r))}return Uf(...Pm(e))},save({attributes:e}){let{align:t,value:r,citation:o,style:a}=e;return(0,_n.jsxs)("blockquote",{className:`blocks-quote-style-${a}`,style:{textAlign:t||null},children:[(0,_n.jsx)(mo.RichText.Content,{multiline:!0,value:r}),!mo.RichText.isEmpty(o)&&(0,_n.jsx)(mo.RichText.Content,{tagName:"footer",value:o})]})}},yme=[tEe,rEe,oEe,nEe,aEe];var f2=n(N(),1),Mc=n(P(),1),_me=n(O(),1),IT=n(F(),1),xme=n(H(),1),kme=n(xd(),1);var Zu=n(y(),1),iEe=[["core/paragraph",{}]],lEe=(e,t)=>{let r=(0,IT.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:a}=(0,IT.useDispatch)(Mc.store);(0,xme.useEffect)(()=>{if(!e.value)return;let[i,l]=Pm(e);(0,kme.default)("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),r.batch(()=>{o(t,i),a(t,l)})},[e.value])};function wme({attributes:e,setAttributes:t,insertBlocksAfter:r,clientId:o,className:a,isSelected:i}){let{textAlign:l,allowedBlocks:s}=e;lEe(e,o);let c=(0,Mc.useBlockProps)({className:S(a,{[`has-text-align-${l}`]:l})}),u=(0,Mc.useInnerBlocksProps)(c,{template:iEe,templateInsertUpdatesSelection:!0,__experimentalCaptureToolbars:!0,renderAppender:!1,allowedBlocks:s});return(0,Zu.jsxs)(Zu.Fragment,{children:[(0,Zu.jsx)(Mc.BlockControls,{group:"block",children:(0,Zu.jsx)(Mc.AlignmentControl,{value:l,onChange:p=>{t({textAlign:p})}})}),(0,Zu.jsxs)(_me.BlockQuotation,{...u,children:[u.children,(0,Zu.jsx)(Mo,{attributeKey:"citation",tagName:"cite",style:{display:"block"},isSelected:i,attributes:e,setAttributes:t,icon:Fv,label:(0,f2.__)("Quote citation"),placeholder:(0,f2.__)("Add citation"),addLabel:(0,f2.__)("Add citation"),removeLabel:(0,f2.__)("Remove citation"),excludeElementClassName:!0,className:"wp-block-quote__citation",insertBlocksAfter:r})]})]})}var NT={$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,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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 Gf=n(P(),1),h2=n(y(),1);function Cme({attributes:e}){let{textAlign:t,citation:r}=e,o=S({[`has-text-align-${t}`]:t});return(0,h2.jsxs)("blockquote",{...Gf.useBlockProps.save({className:o}),children:[(0,h2.jsx)(Gf.InnerBlocks.Content,{}),!Gf.RichText.isEmpty(r)&&(0,h2.jsx)(Gf.RichText.Content,{tagName:"cite",value:r})]})}var g2=n(P(),1),Gr=n(q(),1),cEe={from:[{type:"block",blocks:["core/verse"],transform:({content:e})=>(0,Gr.createBlock)("core/quote",{},[(0,Gr.createBlock)("core/paragraph",{content:e})])},{type:"block",blocks:["core/pullquote"],transform:({value:e,align:t,citation:r,anchor:o,fontSize:a,style:i})=>(0,Gr.createBlock)("core/quote",{align:t,citation:r,anchor:o,fontSize:a,style:i},[(0,Gr.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,Gr.createBlock)("core/quote",{},[(0,Gr.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,Gr.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,Gr.createBlock)("core/quote",{},e.map(t=>(0,Gr.cloneSanitizedBlock)(t)))}],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:a},i)=>{let l=i.map(({attributes:s})=>`${s.content}`).join("<br>");return(0,Gr.createBlock)("core/pullquote",{value:l,align:e,citation:t,anchor:r,fontSize:o,style:a})}},{type:"block",blocks:["core/verse"],isMatch:({},e)=>e.innerBlocks.every(t=>t.name==="core/paragraph"?!0:(0,Gr.switchToBlockType)(t,"core/paragraph")!==null),transform:({},e)=>{let r=e.flatMap(o=>o.name==="core/paragraph"?o:(0,Gr.switchToBlockType)(o,"core/paragraph")||[]).map(({attributes:o})=>o.content||"").filter(Boolean).join("<br>");return(0,Gr.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,Gr.switchToBlockType)(o,"core/paragraph")!==null):!g2.RichText.isEmpty(e)},transform:({citation:e},t)=>{let r=t.flatMap(o=>o.name==="core/paragraph"?o:(0,Gr.switchToBlockType)(o,"core/paragraph")||[]);return g2.RichText.isEmpty(e)?r:[...r,(0,Gr.createBlock)("core/paragraph",{content:e})]}},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},r)=>(0,Gr.createBlock)("core/group",{anchor:t},g2.RichText.isEmpty(e)?r:[...r,(0,Gr.createBlock)("core/paragraph",{content:e})])}],ungroup:({citation:e},t)=>g2.RichText.isEmpty(e)?t:[...t,(0,Gr.createBlock)("core/paragraph",{content:e})]},Sme=cEe;var{name:Tme}=NT,Pme={icon:aI,example:{attributes:{citation:(0,Oz.__)("Julio Cort\xE1zar")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Oz.__)("In quoting others, we cite ourselves.")}}]},transforms:Sme,edit:wme,save:Cme,deprecated:yme},uEe=()=>R({name:Tme,metadata:NT,settings:Pme});var Hz={};K(Hz,{init:()=>wEe,metadata:()=>DT,name:()=>Vme,settings:()=>Ome});var Ame=n(re(),1),Mme=n(F(),1),zme=n(en(),1);var DT={$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 b2=n(F(),1),y2=n(H(),1),j0=n(re(),1),zc=n(O(),1),v2=n(N(),1),Wr=n(P(),1),Nme=n(Bme(),1),Dme=n(q(),1);var _r=n(y(),1),{useLayoutClasses:mEe}=U(Wr.privateApis),{isOverridableBlock:dEe}=U(Nme.privateApis),fEe=["full","wide","left","right"],hEe=(e,t)=>{let r=(0,y2.useRef)();return(0,y2.useMemo)(()=>{if(!e?.length)return{};let o=r.current;if(o===void 0){let i=t?.type==="constrained",l=e.some(s=>fEe.includes(s.attributes.align));o=i&&l?"full":null,r.current=o}return{alignment:o,layout:o?t:void 0}},[e,t])};function gEe(){let e=(0,Wr.useBlockProps)();return(0,_r.jsx)("div",{...e,children:(0,_r.jsx)(Wr.Warning,{children:(0,v2.__)("Block cannot be rendered inside itself.")})})}var Ime=()=>{};function Lme(e){let{ref:t}=e.attributes;return(0,Wr.useHasRecursion)(t)?(0,_r.jsx)(gEe,{}):(0,_r.jsx)(Wr.RecursionProvider,{uniqueId:t,children:(0,_r.jsx)(yEe,{...e})})}function vEe({recordId:e,canOverrideBlocks:t,hasContent:r,handleEditOriginal:o,resetContent:a}){let i=(0,b2.useSelect)(l=>!!l(j0.store).canUser("update",{kind:"postType",name:"wp_block",id:e}),[e]);return(0,_r.jsxs)(_r.Fragment,{children:[i&&!!o&&(0,_r.jsx)(Wr.BlockControls,{group:"other",children:(0,_r.jsx)(zc.ToolbarGroup,{children:(0,_r.jsx)(zc.ToolbarButton,{onClick:o,children:(0,v2.__)("Edit original")})})}),t&&(0,_r.jsx)(Wr.BlockControls,{group:"other",children:(0,_r.jsx)(zc.ToolbarGroup,{children:(0,_r.jsx)(zc.ToolbarButton,{onClick:a,disabled:!r,children:(0,v2.__)("Reset")})})})]})}var bEe={};function yEe({name:e,attributes:{ref:t,content:r},__unstableParentLayout:o,setAttributes:a}){let{record:i,hasResolved:l}=(0,j0.useEntityRecord)("postType","wp_block",t),[s]=(0,j0.useEntityBlockEditor)("postType","wp_block",{id:t}),c=l&&!i,{__unstableMarkLastChangeAsPersistent:u}=(0,b2.useDispatch)(Wr.store),{onNavigateToEntityRecord:p,hasPatternOverridesSource:m,supportedBlockTypesRaw:d}=(0,b2.useSelect)(C=>{let{getSettings:T}=C(Wr.store);return{onNavigateToEntityRecord:T().onNavigateToEntityRecord,hasPatternOverridesSource:!!(0,Dme.getBlockBindingsSource)("core/pattern-overrides"),supportedBlockTypesRaw:T().__experimentalBlockBindingsSupportedAttributes||bEe}},[]),f=(0,y2.useMemo)(()=>{let C=Object.keys(d),T=I=>I.some(D=>C.includes(D.name)&&dEe(D)?!0:T(D.innerBlocks));return m&&T(s)},[m,s,d]),{alignment:h,layout:g}=hEe(s,o),v=mEe({layout:g},e),b=(0,Wr.useBlockProps)({className:S("block-library-block__reusable-block-container",g&&v,{[`align${h}`]:h})}),_=(0,Wr.useInnerBlocksProps)(b,{layout:g,value:s,onInput:Ime,onChange:Ime,renderAppender:s?.length?void 0:Wr.InnerBlocks.ButtonBlockAppender}),k=()=>{p({postId:t,postType:"wp_block"})},x=()=>{r&&(u(),a({content:void 0}))},w=null;return c&&(w=(0,_r.jsx)(Wr.Warning,{children:(0,v2.__)("Block has been deleted or is unavailable.")})),l||(w=(0,_r.jsx)(zc.Placeholder,{children:(0,_r.jsx)(zc.Spinner,{})})),(0,_r.jsxs)(_r.Fragment,{children:[l&&!c&&(0,_r.jsx)(vEe,{recordId:t,canOverrideBlocks:f,hasContent:!!r,handleEditOriginal:p?k:void 0,resetContent:x}),w===null?(0,_r.jsx)("div",{..._}):(0,_r.jsx)("div",{...b,children:w})]})}var _Ee=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,xEe={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&&_Ee(e[t].values))},migrate(e){let{content:t,...r}=e;if(t&&Object.keys(t).length){let o={...t};for(let a in t)o[a]=t[a].values;return{...r,content:o}}return e}},kEe={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(a=>{o[a]=t[a]}),{...r,content:o}}},Rme=[xEe,kEe];var{name:Vme}=DT,Ome={deprecated:Rme,edit:Lme,icon:DI,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,Mme.select)(Ame.store).getEditedEntityRecord("postType","wp_block",e);if(t?.title)return(0,zme.decodeEntities)(t.title)}},wEe=()=>R({name:Vme,metadata:DT,settings:Ome});var jz={};K(jz,{init:()=>SEe,metadata:()=>LT,name:()=>jme,settings:()=>Ume});var Hme=n(N(),1);var LT={$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 G0=n(P(),1),W0=n(O(),1),RT=n(q(),1),U0=n(N(),1);var Vc=n(y(),1);function Fme({attributes:{content:e,linkTarget:t},setAttributes:r,insertBlocksAfter:o}){let a=(0,G0.useBlockProps)(),i=Z();return(0,Vc.jsxs)(Vc.Fragment,{children:[(0,Vc.jsx)(G0.InspectorControls,{children:(0,Vc.jsx)(W0.__experimentalToolsPanel,{label:(0,U0.__)("Settings"),resetAll:()=>r({linkTarget:"_self"}),dropdownMenuProps:i,children:(0,Vc.jsx)(W0.__experimentalToolsPanelItem,{label:(0,U0.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>t!=="_self",onDeselect:()=>r({linkTarget:"_self"}),children:(0,Vc.jsx)(W0.ToggleControl,{label:(0,U0.__)("Open in new tab"),onChange:l=>r({linkTarget:l?"_blank":"_self"}),checked:t==="_blank"})})})}),(0,Vc.jsx)(G0.RichText,{identifier:"content",tagName:"a","aria-label":(0,U0.__)("\u201CRead more\u201D link text"),placeholder:(0,U0.__)("Read more"),value:e,onChange:l=>r({content:l}),__unstableOnSplitAtEnd:o?()=>o((0,RT.createBlock)((0,RT.getDefaultBlockName)())):void 0,withoutInteractiveFormatting:!0,...a})]})}var{name:jme}=LT,Ume={icon:di,edit:Fme,example:{attributes:{content:(0,Hme.__)("Read more")}}},SEe=()=>R({name:jme,metadata:LT,settings:Ume});var Uz={};K(Uz,{init:()=>BEe,metadata:()=>AT,name:()=>Zme,settings:()=>Kme});var AT={$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 Wf=n(P(),1),kt=n(O(),1),MT=n(H(),1);var Vt=n(N(),1),Gme=n(pr(),1),Wme=n(sp(),1),$me=n(ve(),1);var ct=n(y(),1),PEe=1,EEe=20;function qme({attributes:e,setAttributes:t,name:r}){let[o,a]=(0,MT.useState)(!e.feedURL),{blockLayout:i,columns:l,displayAuthor:s,displayDate:c,displayExcerpt:u,excerptLength:p,feedURL:m,itemsToShow:d,openInNewTab:f,rel:h}=e,g=Z();function v(D){return()=>{let L=e[D];t({[D]:!L})}}function b(D){D.preventDefault(),m&&(t({feedURL:(0,Gme.prependHTTPS)(m)}),a(!1))}let{content:_,status:k,error:x}=(0,Wme.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),w=(0,$me.useDisabled)(),C=(0,Wf.useBlockProps)({ref:o?null:w}),T=(0,Vt.__)("RSS URL");if(o)return(0,ct.jsx)("div",{...C,children:(0,ct.jsx)(kt.Placeholder,{icon:Tv,label:T,instructions:(0,Vt.__)("Display entries from any RSS or Atom feed."),children:(0,ct.jsxs)("form",{onSubmit:b,className:"wp-block-rss__placeholder-form",children:[(0,ct.jsx)(kt.__experimentalInputControl,{label:T,type:"url",hideLabelFromVision:!0,placeholder:(0,Vt.__)("Enter URL here\u2026"),value:m,onChange:D=>t({feedURL:D}),className:"wp-block-rss__placeholder-input"}),(0,ct.jsx)(kt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,Vt.__)("Apply")})]})})});let I=[{icon:nd,title:(0,Vt.__)("Edit RSS URL"),onClick:()=>a(!0)},{icon:Wl,title:(0,Vt._x)("List view","RSS block display setting"),onClick:()=>t({blockLayout:"list"}),isActive:i==="list"},{icon:Gl,title:(0,Vt._x)("Grid view","RSS block display setting"),onClick:()=>t({blockLayout:"grid"}),isActive:i==="grid"}];return(0,ct.jsxs)(ct.Fragment,{children:[(0,ct.jsx)(Wf.BlockControls,{children:(0,ct.jsx)(kt.ToolbarGroup,{controls:I})}),(0,ct.jsx)(Wf.InspectorControls,{children:(0,ct.jsxs)(kt.__experimentalToolsPanel,{label:(0,Vt.__)("Settings"),resetAll:()=>{t({itemsToShow:5,displayAuthor:!1,displayDate:!1,displayExcerpt:!1,excerptLength:55,columns:2,openInNewTab:!1})},dropdownMenuProps:g,children:[(0,ct.jsx)(kt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Number of items"),hasValue:()=>d!==5,onDeselect:()=>t({itemsToShow:5}),isShownByDefault:!0,children:(0,ct.jsx)(kt.RangeControl,{label:(0,Vt.__)("Number of items"),value:d,onChange:D=>t({itemsToShow:D}),min:PEe,max:EEe,required:!0})}),(0,ct.jsx)(kt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Display author"),hasValue:()=>!!s,onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,ct.jsx)(kt.ToggleControl,{label:(0,Vt.__)("Display author"),checked:s,onChange:v("displayAuthor")})}),(0,ct.jsx)(kt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Display date"),hasValue:()=>!!c,onDeselect:()=>t({displayDate:!1}),isShownByDefault:!0,children:(0,ct.jsx)(kt.ToggleControl,{label:(0,Vt.__)("Display date"),checked:c,onChange:v("displayDate")})}),(0,ct.jsx)(kt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Display excerpt"),hasValue:()=>!!u,onDeselect:()=>t({displayExcerpt:!1}),isShownByDefault:!0,children:(0,ct.jsx)(kt.ToggleControl,{label:(0,Vt.__)("Display excerpt"),checked:u,onChange:v("displayExcerpt")})}),u&&(0,ct.jsx)(kt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Max number of words in excerpt"),hasValue:()=>p!==55,onDeselect:()=>t({excerptLength:55}),isShownByDefault:!0,children:(0,ct.jsx)(kt.RangeControl,{label:(0,Vt.__)("Max number of words in excerpt"),value:p,onChange:D=>t({excerptLength:D}),min:10,max:100,required:!0})}),i==="grid"&&(0,ct.jsx)(kt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Columns"),hasValue:()=>l!==2,onDeselect:()=>t({columns:2}),isShownByDefault:!0,children:(0,ct.jsx)(kt.RangeControl,{label:(0,Vt.__)("Columns"),value:l,onChange:D=>t({columns:D}),min:2,max:6,required:!0})}),(0,ct.jsx)(kt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Open links in new tab"),hasValue:()=>!!f,onDeselect:()=>t({openInNewTab:!1}),isShownByDefault:!0,children:(0,ct.jsx)(kt.ToggleControl,{label:(0,Vt.__)("Open links in new tab"),checked:f,onChange:D=>t({openInNewTab:D})})})]})}),(0,ct.jsx)(Wf.InspectorControls,{group:"advanced",children:(0,ct.jsx)(kt.TextControl,{label:(0,Vt.__)("Link relation"),help:(0,MT.createInterpolateElement)((0,Vt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,ct.jsx)(kt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:h||"",onChange:D=>t({rel:D})})}),k==="loading"&&(0,ct.jsx)("div",{...C,children:(0,ct.jsx)(kt.Spinner,{})}),k==="error"&&(0,ct.jsx)("div",{...C,children:(0,ct.jsx)("p",{children:(0,Vt.sprintf)((0,Vt.__)("Error: %s"),x)})}),k==="success"&&(0,ct.jsx)(ko,{wrapperProps:C,html:_})]})}var{name:Zme}=AT,Kme={icon:Tv,example:{attributes:{feedURL:"https://wordpress.org"}},edit:qme},BEe=()=>R({name:Zme,metadata:AT,settings:Kme});var Kz={};K(Kz,{init:()=>REe,metadata:()=>zT,name:()=>ade,settings:()=>OT});var $0=n(N(),1);var nde=n(q(),1);var zT={$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:{}},tagName:{type:"string",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=n(P(),1),VT=n(F(),1),_2=n(H(),1),lr=n(O(),1),Jme=n(ve(),1);var Dt=n(N(),1),ede=n(Pn(),1),tde=n(zh(),1);var Gz=50,Wz=350,$z=220;function qz(e){return e==="%"}var wt=n(y(),1),Yme={"":(0,Dt.__)("Lets the theme decide. Uses the <search> landmark element if the theme opts in, otherwise a <form>."),search:(0,Dt.__)("Wraps the block in a <search> landmark, announced as a search region by assistive technologies."),form:(0,Dt.__)('Uses a <form role="search"> wrapper for backward compatibility with existing theme styles.')},Qme="4px",Xme=[25,50,75,100];function rde({className:e,attributes:t,setAttributes:r,toggleSelection:o,isSelected:a,clientId:i}){let{label:l,showLabel:s,placeholder:c,width:u,widthUnit:p,align:m,buttonText:d,buttonPosition:f,buttonUseIcon:h,tagName:g,style:v}=t,b=(0,VT.useSelect)(ne=>{let{getBlockParentsByBlockName:me,wasBlockJustInserted:le}=ne(eo.store);return!!me(i,"core/navigation")?.length&&le(i)},[i]),{__unstableMarkNextChangeAsNotPersistent:_}=(0,VT.useDispatch)(eo.store);(0,_2.useEffect)(()=>{b&&(_(),r({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))},[_,b,r]);let k=v?.border?.radius,x=(0,eo.__experimentalUseBorderProps)(t);typeof k=="number"&&(x={...x,style:{...x.style,borderRadius:`${k}px`}});let w=(0,eo.__experimentalUseColorProps)(t),[C,T]=(0,eo.useSettings)("typography.fluid","layout"),I=(0,eo.getTypographyClassesAndStyles)(t,{typography:{fluid:C},layout:{wideSize:T?.wideSize}}),L=`wp-block-search__width-${(0,Jme.useInstanceId)(lr.__experimentalUnitControl)}`,E=f==="button-inside",B=f==="button-outside",A=f==="no-button",z=f==="button-only",j=z&&!a,G=(0,_2.useRef)(),W=(0,_2.useRef)(),$=(0,lr.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":Gz,px:Wz}}),V=()=>S(e,E?"wp-block-search__button-inside":void 0,B?"wp-block-search__button-outside":void 0,A?"wp-block-search__no-button":void 0,z?"wp-block-search__button-only":void 0,!h&&!A?"wp-block-search__text-button":void 0,h&&!A?"wp-block-search__icon-button":void 0,j?"wp-block-search__searchfield-hidden":void 0),Q=[{label:(0,Dt.__)("Button outside"),value:"button-outside"},{label:(0,Dt.__)("Button inside"),value:"button-inside"},{label:(0,Dt.__)("No button"),value:"no-button"},{label:(0,Dt.__)("Button only"),value:"button-only"}],Y=()=>z?{}:{right:m!=="right",left:m==="right"},ee=()=>{let ne=S("wp-block-search__input",A?w.className:void 0,E?void 0:x.className,I.className),me={...A?w.style:{},...E?{borderRadius:x.style?.borderRadius,borderTopLeftRadius:x.style?.borderTopLeftRadius,borderTopRightRadius:x.style?.borderTopRightRadius,borderBottomLeftRadius:x.style?.borderBottomLeftRadius,borderBottomRightRadius:x.style?.borderBottomRightRadius}:x.style,...I.style,textDecoration:void 0};return(0,wt.jsx)("input",{type:"search",className:ne,style:me,"aria-label":(0,Dt.__)("Optional placeholder text"),placeholder:c?void 0:(0,Dt.__)("Optional placeholder\u2026"),value:c,onChange:le=>r({placeholder:le.target.value}),ref:G})},te=()=>{let ne=S("wp-block-search__button",w.className,I.className,E?void 0:x.className,h?"has-icon":void 0,(0,eo.__experimentalGetElementClassName)("button")),me={...w.style,...I.style,...E?{borderRadius:x.style?.borderRadius,borderTopLeftRadius:x.style?.borderTopLeftRadius,borderTopRightRadius:x.style?.borderTopRightRadius,borderBottomLeftRadius:x.style?.borderBottomLeftRadius,borderBottomRightRadius:x.style?.borderBottomRightRadius}:x.style};return(0,wt.jsxs)(wt.Fragment,{children:[h&&(0,wt.jsx)("button",{type:"button",className:ne,style:me,"aria-label":d?(0,ede.__unstableStripHTML)(d):(0,Dt.__)("Search"),ref:W,children:(0,wt.jsx)(aa,{icon:Pv})}),!h&&(0,wt.jsx)(eo.RichText,{identifier:"buttonText",className:ne,style:me,"aria-label":(0,Dt.__)("Button text"),placeholder:(0,Dt.__)("Add button text\u2026"),withoutInteractiveFormatting:!0,value:d,onChange:le=>r({buttonText:le})})]})},oe=Z(),J=(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(eo.InspectorControls,{children:(0,wt.jsxs)(lr.__experimentalToolsPanel,{label:(0,Dt.__)("Settings"),resetAll:()=>{r({width:void 0,widthUnit:void 0,showLabel:!0,buttonUseIcon:!1,buttonPosition:"button-outside"})},dropdownMenuProps:oe,children:[(0,wt.jsx)(lr.__experimentalToolsPanelItem,{hasValue:()=>!s,label:(0,Dt.__)("Show label"),onDeselect:()=>{r({showLabel:!0})},isShownByDefault:!0,children:(0,wt.jsx)(lr.ToggleControl,{checked:s,label:(0,Dt.__)("Show label"),onChange:ne=>r({showLabel:ne})})}),(0,wt.jsx)(lr.__experimentalToolsPanelItem,{hasValue:()=>f!=="button-outside",label:(0,Dt.__)("Button position"),onDeselect:()=>{r({buttonPosition:"button-outside"})},isShownByDefault:!0,children:(0,wt.jsx)(lr.SelectControl,{value:f,label:(0,Dt.__)("Button position"),onChange:ne=>{r({buttonPosition:ne})},options:Q})}),f!=="no-button"&&(0,wt.jsx)(lr.__experimentalToolsPanelItem,{hasValue:()=>!!h,label:(0,Dt.__)("Use button with icon"),onDeselect:()=>{r({buttonUseIcon:!1})},isShownByDefault:!0,children:(0,wt.jsx)(lr.ToggleControl,{checked:h,label:(0,Dt.__)("Use button with icon"),onChange:ne=>r({buttonUseIcon:ne})})}),(0,wt.jsx)(lr.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,Dt.__)("Width"),onDeselect:()=>{r({width:void 0,widthUnit:void 0})},isShownByDefault:!0,children:(0,wt.jsxs)(lr.__experimentalVStack,{children:[(0,wt.jsx)(lr.__experimentalUnitControl,{label:(0,Dt.__)("Width"),id:L,min:qz(p)?0:$z,max:qz(p)?100:void 0,step:1,onChange:ne=>{let me=ne===""?void 0:parseInt(ne,10);r({width:me})},onUnitChange:ne=>{r({width:ne==="%"?Gz:Wz,widthUnit:ne})},__unstableInputWidth:"80px",value:`${u}${p}`,units:$}),(0,wt.jsx)(lr.__experimentalToggleGroupControl,{label:(0,Dt.__)("Percentage Width"),value:Xme.includes(u)&&p==="%"?u:void 0,hideLabelFromVision:!0,onChange:ne=>{r({width:ne,widthUnit:"%"})},isBlock:!0,children:Xme.map(ne=>(0,wt.jsx)(lr.__experimentalToggleGroupControlOption,{value:ne,label:(0,Dt.sprintf)((0,Dt.__)("%d%%"),ne)},ne))})]})})]})}),(0,wt.jsx)(eo.InspectorControls,{group:"advanced",children:(0,wt.jsx)(lr.SelectControl,{label:(0,Dt.__)("HTML element"),value:g??"",options:[{label:(0,Dt.__)("Default"),value:""},{label:"<search>",value:"search"},{label:"<form>",value:"form"}],onChange:ne=>{r({tagName:ne}),(0,tde.speak)(Yme[ne].replace(/[<>]/g,""))},help:Yme[g??""]})})]}),ce=ne=>ne!==void 0&&parseInt(ne,10)!==0,ie=ne=>ce(ne)?`calc(${ne} + ${Qme})`:void 0,we=()=>{let ne=E?x.style:{borderRadius:x.style?.borderRadius,borderTopLeftRadius:x.style?.borderTopLeftRadius,borderTopRightRadius:x.style?.borderTopRightRadius,borderBottomLeftRadius:x.style?.borderBottomLeftRadius,borderBottomRightRadius:x.style?.borderBottomRightRadius};if(E){if(typeof k=="object"){let{borderTopLeftRadius:le,borderTopRightRadius:Pe,borderBottomLeftRadius:Ee,borderBottomRightRadius:X}=x.style;return{...ne,borderTopLeftRadius:ie(le),borderTopRightRadius:ie(Pe),borderBottomLeftRadius:ie(Ee),borderBottomRightRadius:ie(X)}}let me=Number.isInteger(k)?`${k}px`:k;ne.borderRadius=`calc(${me} + ${Qme})`}return ne},se=(0,eo.useBlockProps)({className:V(),style:{...I.style,textDecoration:void 0}}),de=S("wp-block-search__label",I.className);return(0,wt.jsxs)(wt.Fragment,{children:[J,(0,wt.jsxs)(g==="search"?"search":"div",{...se,children:[s&&(0,wt.jsx)(eo.RichText,{identifier:"label",className:de,"aria-label":(0,Dt.__)("Label text"),placeholder:(0,Dt.__)("Add label\u2026"),withoutInteractiveFormatting:!0,value:l,onChange:ne=>r({label:ne}),style:I.style}),(0,wt.jsxs)(lr.ResizableBox,{size:{width:u===void 0?"auto":`${u}${p}`,height:"auto"},className:S("wp-block-search__inside-wrapper",E?x.className:void 0),style:we(),minWidth:$z,enable:Y(),onResizeStart:(ne,me,le)=>{r({width:parseInt(le.offsetWidth,10),widthUnit:"px"}),o(!1)},onResizeStop:(ne,me,le,Pe)=>{r({width:parseInt(u+Pe.width,10)}),o(!0)},showHandle:a,children:[(E||B||z)&&(0,wt.jsxs)(wt.Fragment,{children:[ee(),te()]}),A&&ee()]})]})]})}var Zz=n(N(),1),NEe=[{name:"default",isDefault:!0,attributes:{buttonText:(0,Zz.__)("Search"),label:(0,Zz.__)("Search")}}],ode=NEe;var{fieldsKey:DEe,formKey:LEe}=U(nde.privateApis),{name:ade}=zT,OT={icon:Pv,example:{attributes:{buttonText:(0,$0.__)("Search"),label:(0,$0.__)("Search")},viewportWidth:400},variations:ode,edit:rde};window.__experimentalContentOnlyInspectorFields&&(OT[DEe]=[{id:"label",label:(0,$0.__)("Label"),type:"text",Edit:"rich-text"},{id:"buttonText",label:(0,$0.__)("Button text"),type:"text",Edit:"rich-text"},{id:"placeholder",label:(0,$0.__)("Placeholder"),type:"text",Edit:"rich-text"}],OT[LEe]={fields:["label","buttonText","placeholder"]});var REe=()=>R({name:ade,metadata:zT,settings:OT});var Yz={};K(Yz,{init:()=>OEe,metadata:()=>HT,name:()=>fde,settings:()=>hde});var Em=n(P(),1),FT=n(O(),1),k2=n(N(),1);var x2=n(H(),1),ide=n(ve(),1);function lde(e,t,r){let[o,a]=(0,x2.useState)(!1),i=(0,ide.usePrevious)(t);(0,x2.useEffect)(()=>{e==="css"&&!t&&!i&&a(!0)},[t,i,e]),(0,x2.useEffect)(()=>{e==="css"&&(o&&t||i&&t!==i)&&(r({opacity:"alpha-channel"}),a(!1))},[o,t,i])}var Ku=n(y(),1),AEe=({tagName:e,setAttributes:t})=>(0,Ku.jsx)(FT.SelectControl,{label:(0,k2.__)("HTML element"),value:e,onChange:r=>t({tagName:r}),options:[{label:(0,k2.__)("Default (<hr>)"),value:"hr"},{label:"<div>",value:"div"}],help:e==="hr"?(0,k2.__)("Only select <hr> if the separator conveys important information and should be announced by screen readers."):(0,k2.__)("The <div> element should only be used if the block is a design element with no semantic meaning.")});function sde({attributes:e,setAttributes:t}){let{backgroundColor:r,opacity:o,style:a,tagName:i}=e,l=(0,Em.__experimentalUseColorProps)(e),s=l?.style?.backgroundColor,c=!!a?.color?.background;lde(o,s,t);let u=(0,Em.getColorClassName)("color",r),p=S({"has-text-color":r||s,[u]:u,"has-css-opacity":o==="css","has-alpha-channel-opacity":o==="alpha-channel"},l.className);return(0,Ku.jsxs)(Ku.Fragment,{children:[(0,Ku.jsx)(Em.InspectorControls,{group:"advanced",children:(0,Ku.jsx)(AEe,{tagName:i,setAttributes:t})}),(0,Ku.jsx)(i==="hr"?FT.HorizontalRule:i,{...(0,Em.useBlockProps)({className:p,style:c?{color:s,backgroundColor:s}:void 0})})]})}var HT={$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 q0=n(P(),1),cde=n(y(),1);function ude({attributes:e}){let{backgroundColor:t,style:r,opacity:o,tagName:a}=e,i=r?.color?.background,l=(0,q0.__experimentalGetColorClassesAndStyles)(e),s=(0,q0.getColorClassName)("color",t),c=S({"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,cde.jsx)(a,{...q0.useBlockProps.save({className:c,style:u})})}var Bm=n(q(),1),zEe={from:[{type:"input",regExp:/^-{3,}$/,transform:()=>{let e=(0,Bm.getBlockVariations)("core/separator")?.find(t=>t.isDefault);return[(0,Bm.createBlock)("core/separator",e?.attributes??{}),(0,Bm.createBlock)((0,Bm.getDefaultBlockName)())]}},{type:"raw",selector:"hr",schema:{hr:{}}}],to:[{type:"block",blocks:["core/spacer"],transform:({anchor:e})=>(0,Bm.createBlock)("core/spacer",{anchor:e||void 0})}]},pde=zEe;var w2=n(P(),1),mde=n(y(),1),VEe={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){let{color:t,customColor:r}=e,o=(0,w2.getColorClassName)("background-color",t),a=(0,w2.getColorClassName)("color",t),i=S({"has-text-color has-background":t||r,[o]:o,[a]:a}),l={backgroundColor:o?void 0:r,color:a?void 0:r};return(0,mde.jsx)("hr",{...w2.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"}}},dde=[VEe];var{name:fde}=HT,hde={icon:yI,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:pde,edit:sde,save:ude,deprecated:dde},OEe=()=>R({name:fde,metadata:HT,settings:hde});var Xz={};K(Xz,{init:()=>GEe,metadata:()=>qT,name:()=>Pde,settings:()=>Ede});var jT=n(N(),1),GT=n(P(),1),gde=n(ve(),1),vde=n(O(),1);var UT=n(y(),1);function Qz({attributes:e,setAttributes:t}){let o=`blocks-shortcode-input-${(0,gde.useInstanceId)(Qz)}`;return(0,UT.jsx)("div",{...(0,GT.useBlockProps)(),children:(0,UT.jsx)(vde.Placeholder,{icon:Bv,label:(0,jT.__)("Shortcode"),children:(0,UT.jsx)(GT.PlainText,{className:"blocks-shortcode__textarea",id:o,value:e.text,"aria-label":(0,jT.__)("Shortcode text"),placeholder:(0,jT.__)("Write shortcode here\u2026"),onChange:a=>t({text:a})})})})}var bde=n(H(),1),yde=n(y(),1);function _de({attributes:e}){return(0,yde.jsx)(bde.RawHTML,{children:e.text})}var WT=n(kde(),1),$T=n(q(),1),Sde=n(Cde(),1),FEe=()=>(0,$T.getBlockTransforms)("from").filter(e=>e.type==="shortcode"&&e.blockName!=="core/shortcode"),HEe=(e,t)=>{let r=e.trim(),o=(0,Sde.next)(t,r);return!!o&&o.index===0&&o.content.length===r.length},jEe={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,WT.removep)((0,WT.autop)(t))}},priority:20}],get to(){return FEe().map(e=>({type:"block",blocks:[e.blockName],isMatch:({text:t=""})=>[].concat(e.tag).some(r=>HEe(t,r)),transform:({text:t=""})=>(0,$T.rawHandler)({HTML:`<p>${t.trim()}</p>`})}))}},Tde=jEe;var qT={$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:Pde}=qT,Ede={icon:Bv,transforms:Tde,edit:Qz,save:_de},GEe=()=>R({name:Pde,metadata:qT,settings:Ede});var eV={};K(eV,{init:()=>YEe,metadata:()=>ZT,name:()=>Rde,settings:()=>Ade});var ZT={$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 Jz=n(Ar(),1),Oc=n(H(),1),fo=n(N(),1),Lt=n(O(),1),Bde=n(ve(),1),ho=n(P(),1),Im=n(F(),1),Z0=n(re(),1);var Ide=n(Sr(),1);var je=n(y(),1),KT=["image"],{mediaEditKey:$Ee,openMediaEditorModalKey:qEe}=U(ho.privateApis),ZEe=({alt:e,attributes:{align:t,width:r,height:o,isLink:a,linkTarget:i,shouldSyncIcon:l},isSelected:s,setAttributes:c,setLogo:u,logoUrl:p,siteUrl:m,logoId:d,iconId:f,setIcon:h,canUserEdit:g})=>{let v=(0,Bde.useViewportMatch)("medium"),_=!["wide","full"].includes(t)&&v,[{naturalWidth:k,naturalHeight:x},w]=(0,Oc.useState)({}),C=(0,Oc.useRef)(),{toggleSelection:T,__unstableMarkNextChangeAsNotPersistent:I}=(0,Im.useDispatch)(ho.store),D=Z(),E=(0,ho.useBlockEditingMode)()==="contentOnly",{imageEditing:B,maxWidth:A,title:z,editMediaEntity:j,openMediaEditorModal:G}=(0,Im.useSelect)(Ee=>{let X=Ee(ho.store).getSettings();return{title:Ee(Z0.store).getEntityRecord("root","__unstableBase")?.name,imageEditing:X.imageEditing,maxWidth:X.maxWidth,editMediaEntity:X?.[$Ee],openMediaEditorModal:X?.[qEe]}},[]);(0,Oc.useEffect)(()=>{l&&d!==f&&(I(),c({shouldSyncIcon:!1}))},[]);let W=({id:Ee})=>{typeof Ee=="number"&&u(Ee)};function $(){T(!1)}function V(){T(!0)}let Q=(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)("img",{className:"custom-logo",src:p,alt:e,onLoad:Ee=>{w({naturalWidth:Ee.target.naturalWidth,naturalHeight:Ee.target.naturalHeight})}}),(0,Jz.isBlobURL)(p)&&(0,je.jsx)(Lt.Spinner,{})]}),Y=Q;if(a&&(Y=(0,je.jsx)("a",{href:m,className:"custom-logo-link",rel:"home",title:z,onClick:Ee=>Ee.preventDefault(),children:Q})),!_||!k||!x)return(0,je.jsx)("div",{style:{width:r,height:o},children:Y});let ee=120,te=r||ee,oe=k/x,J=te/oe,ce=k<x?uc:Math.ceil(uc*oe),ie=x<k?uc:Math.ceil(uc/oe),we=A*2.5,se=!1,de=!1;t==="center"?(se=!0,de=!0):(0,fo.isRTL)()?t==="left"?se=!0:de=!0:t==="right"?de=!0:se=!0;let ge=d&&k&&x&&B&&!!j,ne=!E,le=!window?.__experimentalUseCustomizerSiteLogoUrl?m+"/wp-admin/options-general.php":m+"/wp-admin/customize.php?autofocus[section]=title_tagline",Pe=(0,Oc.createInterpolateElement)((0,fo.__)("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,je.jsx)("a",{href:le,target:"_blank",rel:"noopener"})});return(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(ho.InspectorControls,{children:(0,je.jsxs)(Lt.__experimentalToolsPanel,{label:(0,fo.__)("Settings"),dropdownMenuProps:D,children:[(0,je.jsx)(Lt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!r,label:(0,fo.__)("Image width"),onDeselect:()=>c({width:void 0}),children:(0,je.jsx)(Lt.RangeControl,{label:(0,fo.__)("Image width"),onChange:Ee=>c({width:Ee}),min:ce,max:we,initialPosition:Math.min(ee,we),value:r||"",disabled:!_})}),(0,je.jsx)(Lt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!a,label:(0,fo.__)("Link image to home"),onDeselect:()=>c({isLink:!0}),children:(0,je.jsx)(Lt.ToggleControl,{label:(0,fo.__)("Link image to home"),onChange:()=>c({isLink:!a}),checked:a})}),a&&(0,je.jsx)(Lt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>i==="_blank",label:(0,fo.__)("Open in new tab"),onDeselect:()=>c({linkTarget:"_self"}),children:(0,je.jsx)(Lt.ToggleControl,{label:(0,fo.__)("Open in new tab"),onChange:Ee=>c({linkTarget:Ee?"_blank":"_self"}),checked:i==="_blank"})}),g&&(0,je.jsx)(Lt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!l,label:(0,fo.__)("Use as Site Icon"),onDeselect:()=>{c({shouldSyncIcon:!1}),h(void 0)},children:(0,je.jsx)(Lt.ToggleControl,{label:(0,fo.__)("Use as Site Icon"),onChange:Ee=>{c({shouldSyncIcon:Ee}),h(Ee?d:void 0)},checked:!!l,help:Pe})})]})}),ge&&G&&ne&&(0,je.jsx)(ho.BlockControls,{group:"block",children:(0,je.jsx)(Lt.ToolbarButton,{ref:C,onClick:()=>G({id:d,onUpdate:W,onClose:()=>C.current?.focus()}),"aria-haspopup":"dialog",icon:Xm,label:(0,fo.__)("Crop")})}),(0,je.jsx)(Lt.ResizableBox,{size:{width:te,height:J},showHandle:s&&ne,minWidth:ce,maxWidth:we,minHeight:ie,maxHeight:we/oe,lockAspectRatio:!0,enable:{top:!1,right:se,bottom:!0,left:de},onResizeStart:$,onResizeStop:(Ee,X,Ce,pe)=>{V(),c({width:parseInt(te+pe.width,10),height:parseInt(J+pe.height,10)})},children:Y})]})};function Nde({attributes:e,className:t,setAttributes:r,isSelected:o}){let{width:a,shouldSyncIcon:i}=e,{siteLogoId:l,canUserEdit:s,url:c,siteIconId:u,mediaItemData:p,isRequestingMediaItem:m}=(0,Im.useSelect)(V=>{let{canUser:Q,getEntityRecord:Y,getEditedEntityRecord:ee}=V(Z0.store),te=Q("update",{kind:"root",name:"site"}),oe=te?ee("root","site"):void 0,J=Y("root","__unstableBase"),ce=te?oe?.site_logo:J?.site_logo,ie=oe?.site_icon,we=ce&&V(Z0.store).getEntityRecord("postType","attachment",ce,{context:"view"}),se=!!ce&&!V(Z0.store).hasFinishedResolution("getEntityRecord",["postType","attachment",ce,{context:"view"}]);return{siteLogoId:ce,canUserEdit:te,url:J?.home,mediaItemData:we,isRequestingMediaItem:se,siteIconId:ie}},[]),{getSettings:d}=(0,Im.useSelect)(ho.store),[f,h]=(0,Oc.useState)(),g=Z(),{editEntityRecord:v}=(0,Im.useDispatch)(Z0.store),b=(V,Q=!1)=>{(i||Q)&&_(V),v("root","site",void 0,{site_logo:V})},_=V=>v("root","site",void 0,{site_icon:V??null}),{alt_text:k,source_url:x}=p??{},w=V=>{if(i===void 0){let Q=!u;r({shouldSyncIcon:Q}),C(V,Q);return}C(V)},C=(V,Q=!1)=>{if(V){if(!V.id&&V.url){h(V.url),b(void 0);return}b(V.id,Q)}},T=()=>{b(null),r({width:void 0})},{createErrorNotice:I}=(0,Im.useDispatch)(Ide.store),D=V=>{I(V,{type:"snackbar"}),h()},L=V=>{d().mediaUpload({allowedTypes:KT,filesList:V,onFileChange([Q]){if((0,Jz.isBlobURL)(Q?.url)){h(Q.url);return}w(Q)},onError:D,multiple:!1})},E={mediaURL:x,name:x?(0,fo.__)("Replace"):(0,fo.__)("Choose logo"),onSelect:C,onError:D,onReset:T},B=s&&(0,je.jsx)(ho.BlockControls,{group:"other",children:(0,je.jsx)(ho.MediaReplaceFlow,{...E,allowedTypes:KT,variant:"toolbar"})}),A,z=l===void 0||m;z&&(A=(0,je.jsx)(Lt.Spinner,{})),(0,Oc.useEffect)(()=>{x&&f&&h()},[x,f]),(x||f)&&(A=(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(ZEe,{alt:k,attributes:e,className:t,isSelected:o,setAttributes:r,logoUrl:f||x,setLogo:b,logoId:p?.id||l,siteUrl:c,setIcon:_,iconId:u,canUserEdit:s}),s&&(0,je.jsx)(Lt.DropZone,{onFilesDrop:L})]}));let j=V=>{let Q=S("block-editor-media-placeholder",t);return(0,je.jsx)(Lt.Placeholder,{className:Q,preview:A,withIllustration:!0,style:{width:a},children:V})},G=S(t,{"is-default-size":!a,"is-transient":f}),W=(0,ho.useBlockProps)({className:G}),$=(s||x)&&(0,je.jsx)(ho.InspectorControls,{children:(0,je.jsx)(Lt.__experimentalToolsPanel,{label:(0,fo.__)("Media"),dropdownMenuProps:g,children:s?(0,je.jsx)(Lt.__experimentalToolsPanelItem,{hasValue:()=>!!x,label:(0,fo.__)("Logo"),isShownByDefault:!0,children:(0,je.jsx)(I4,{mediaId:l,mediaUrl:x,filename:p?.media_details?.sizes?.full?.file||p?.slug,allowedTypes:KT,onSelect:C,onError:D,onReset:T,isUploading:!!f,emptyLabel:(0,fo.__)("Logo")})}):(0,je.jsx)("div",{className:"block-library-site-logo__inspector-media-replace-container",style:{gridColumn:"1 / -1"},children:(0,je.jsx)(VR,{url:p?.source_url,filename:p?.media_details?.sizes?.full?.file||p?.slug,itemGroupProps:{isBordered:!0,className:"block-library-site-logo__inspector-readonly-logo-preview"},className:"block-library-site-logo__inspector-media-replace-title"})})})});return(0,je.jsxs)("div",{...W,children:[B,$,(!!x||!!f)&&A,(z||!f&&!x&&!s)&&(0,je.jsx)(Lt.Placeholder,{className:"site-logo_placeholder",withIllustration:!0,children:z&&(0,je.jsx)("span",{className:"components-placeholder__preview",children:(0,je.jsx)(Lt.Spinner,{})})}),!z&&!f&&!x&&s&&(0,je.jsx)(ho.MediaPlaceholder,{onSelect:w,allowedTypes:KT,onError:D,placeholder:j,mediaLibraryButton:({open:V})=>(0,je.jsx)(Lt.Button,{__next40pxDefaultSize:!0,icon:nu,variant:"primary",label:(0,fo.__)("Choose logo"),showTooltip:!0,tooltipPosition:"middle right",onClick:()=>{V()}})})]})}var Dde=n(q(),1),KEe={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,Dde.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]},Lde=KEe;var{name:Rde}=ZT,Ade={icon:SI,example:{},edit:Nde,transforms:Lde},YEe=()=>R({name:Rde,metadata:ZT,settings:Ade});var oV={};K(oV,{init:()=>eBe,metadata:()=>YT,name:()=>Ode,settings:()=>Fde});var YT={$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 XT=n(F(),1),tV=n(re(),1),Nm=n(P(),1),QT=n(N(),1),JT=n(q(),1);var Yu=n(y(),1);function Mde(e){Ct(e);let{attributes:t,setAttributes:r,insertBlocksAfter:o}=e,{level:a,levelOptions:i}=t,{canUserEdit:l,tagline:s}=(0,XT.useSelect)(f=>{let{canUser:h,getEntityRecord:g,getEditedEntityRecord:v}=f(tV.store),b=h("update",{kind:"root",name:"site"}),_=b?v("root","site"):{},k=g("root","__unstableBase");return{canUserEdit:b,tagline:b?_?.description:k?.description}},[]),c=a===0?"p":`h${a}`,{editEntityRecord:u}=(0,XT.useDispatch)(tV.store);function p(f){u("root","site",void 0,{description:f})}let m=(0,Nm.useBlockProps)({className:!l&&!s&&"wp-block-site-tagline__placeholder"}),d=l?(0,Yu.jsx)(Nm.RichText,{allowedFormats:[],onChange:p,"aria-label":(0,QT.__)("Site tagline text"),placeholder:(0,QT.__)("Write site tagline\u2026"),tagName:c,value:s,disableLineBreaks:!0,__unstableOnSplitAtEnd:o?()=>o((0,JT.createBlock)((0,JT.getDefaultBlockName)())):void 0,...m}):(0,Yu.jsx)(c,{...m,children:s||(0,QT.__)("Site Tagline placeholder")});return(0,Yu.jsxs)(Yu.Fragment,{children:[(0,Yu.jsx)(Nm.BlockControls,{group:"block",children:(0,Yu.jsx)(Nm.HeadingLevelDropdown,{value:a,options:i,onChange:f=>r({level:f})})}),d]})}var e8=n(O(),1),rV=n(y(),1),zde=(0,rV.jsx)(e8.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",children:(0,rV.jsx)(e8.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"})});var XEe={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},JEe={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:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},Vde=[XEe,JEe];var{name:Ode}=YT,Fde={icon:zde,edit:Mde,deprecated:Vde},eBe=()=>R({name:Ode,metadata:YT,settings:Fde});var iV={};K(iV,{init:()=>aBe,metadata:()=>t8,name:()=>Wde,settings:()=>$de});var t8={$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 r8=n(F(),1),nV=n(re(),1),Fc=n(N(),1),Ll=n(P(),1),Dm=n(O(),1),o8=n(q(),1),aV=n(en(),1);var qo=n(y(),1);function Hde(e){Ct(e);let{attributes:t,setAttributes:r,insertBlocksAfter:o}=e,{level:a,levelOptions:i,isLink:l,linkTarget:s}=t,{canUserEdit:c,title:u}=(0,r8.useSelect)(b=>{let{canUser:_,getEntityRecord:k,getEditedEntityRecord:x}=b(nV.store),w=_("update",{kind:"root",name:"site"}),C=w?x("root","site"):{},T=k("root","__unstableBase");return{canUserEdit:w,title:w?C?.title:T?.name}},[]),{editEntityRecord:p}=(0,r8.useDispatch)(nV.store),m=Z(),d=(0,Ll.useBlockEditingMode)();function f(b){p("root","site",void 0,{title:b.trim()})}let h=a===0?"p":`h${a}`,g=(0,Ll.useBlockProps)({className:!c&&!u&&"wp-block-site-title__placeholder"}),v=c?(0,qo.jsx)(h,{...g,children:(0,qo.jsx)(Ll.RichText,{tagName:l?"a":"span",href:l?"#site-title-pseudo-link":void 0,"aria-label":(0,Fc.__)("Site title text"),placeholder:(0,Fc.__)("Write site title\u2026"),value:u,onChange:f,allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:o?()=>o((0,o8.createBlock)((0,o8.getDefaultBlockName)())):void 0})}):(0,qo.jsx)(h,{...g,children:l?(0,qo.jsx)("a",{href:"#site-title-pseudo-link",onClick:b=>b.preventDefault(),children:(0,aV.decodeEntities)(u)||(0,Fc.__)("Site Title placeholder")}):(0,qo.jsx)("span",{children:(0,aV.decodeEntities)(u)||(0,Fc.__)("Site Title placeholder")})});return(0,qo.jsxs)(qo.Fragment,{children:[d==="default"&&(0,qo.jsx)(Ll.BlockControls,{group:"block",children:(0,qo.jsx)(Ll.HeadingLevelDropdown,{value:a,options:i,onChange:b=>r({level:b})})}),(0,qo.jsx)(Ll.InspectorControls,{children:(0,qo.jsxs)(Dm.__experimentalToolsPanel,{label:(0,Fc.__)("Settings"),resetAll:()=>{r({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:m,children:[(0,qo.jsx)(Dm.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,Fc.__)("Make title link to home"),onDeselect:()=>r({isLink:!0}),isShownByDefault:!0,children:(0,qo.jsx)(Dm.ToggleControl,{label:(0,Fc.__)("Make title link to home"),onChange:()=>r({isLink:!l}),checked:l})}),l&&(0,qo.jsx)(Dm.__experimentalToolsPanelItem,{hasValue:()=>s!=="_self",label:(0,Fc.__)("Open in new tab"),onDeselect:()=>r({linkTarget:"_self"}),isShownByDefault:!0,children:(0,qo.jsx)(Dm.ToggleControl,{label:(0,Fc.__)("Open in new tab"),onChange:b=>r({linkTarget:b?"_blank":"_self"}),checked:s==="_blank"})})]})}),v]})}var rBe={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},oBe={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:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},jde=[rBe,oBe];var Ude=n(q(),1),nBe={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,Ude.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]},Gde=nBe;var{name:Wde}=t8,$de={icon:ZE,example:{viewportWidth:350,attributes:{style:{typography:{textAlign:"center"}}}},edit:Hde,transforms:Gde,deprecated:jde},aBe=()=>R({name:Wde,metadata:t8,settings:$de});var oO={};K(oO,{init:()=>pBe,metadata:()=>J8,name:()=>qfe,settings:()=>e7});var rO=n(N(),1);var $fe=n(q(),1);var K0=n(qs(),1),X8=n(F(),1),Ba=n(P(),1),$f=n(H(),1),go=n(O(),1),Hfe=n(ve(),1),ai=n(N(),1);var jfe=n(q(),1);var tO=n(N(),1);var n8=n(M(),1),lV=n(y(),1),qde=()=>(0,lV.jsx)(n8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,lV.jsx)(n8.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 a8=n(M(),1),sV=n(y(),1),Zde=()=>(0,sV.jsx)(a8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,sV.jsx)(a8.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"})});var i8=n(M(),1),cV=n(y(),1),Kde=()=>(0,cV.jsx)(i8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,cV.jsx)(i8.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 l8=n(M(),1),uV=n(y(),1),Yde=()=>(0,uV.jsx)(l8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,uV.jsx)(l8.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 s8=n(M(),1),pV=n(y(),1),C2=()=>(0,pV.jsx)(s8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,pV.jsx)(s8.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 c8=n(M(),1),mV=n(y(),1),Qde=()=>(0,mV.jsx)(c8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,mV.jsx)(c8.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 u8=n(M(),1),dV=n(y(),1),Xde=()=>(0,dV.jsx)(u8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,dV.jsx)(u8.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 p8=n(M(),1),fV=n(y(),1),Jde=()=>(0,fV.jsx)(p8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,fV.jsx)(p8.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 m8=n(M(),1),hV=n(y(),1),efe=()=>(0,hV.jsx)(m8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,hV.jsx)(m8.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 d8=n(M(),1),gV=n(y(),1),tfe=()=>(0,gV.jsx)(d8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,gV.jsx)(d8.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 f8=n(M(),1),vV=n(y(),1),rfe=()=>(0,vV.jsx)(f8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,vV.jsx)(f8.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 h8=n(M(),1),bV=n(y(),1),ofe=()=>(0,bV.jsx)(h8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,bV.jsx)(h8.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 g8=n(M(),1),yV=n(y(),1),nfe=()=>(0,yV.jsx)(g8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,yV.jsx)(g8.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 v8=n(M(),1),_V=n(y(),1),afe=()=>(0,_V.jsx)(v8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,_V.jsx)(v8.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 b8=n(M(),1),xV=n(y(),1),ife=()=>(0,xV.jsx)(b8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,xV.jsx)(b8.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 y8=n(M(),1),kV=n(y(),1),lfe=()=>(0,kV.jsx)(y8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,kV.jsx)(y8.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 _8=n(M(),1),wV=n(y(),1),sfe=()=>(0,wV.jsx)(_8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,wV.jsx)(_8.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 x8=n(M(),1),CV=n(y(),1),cfe=()=>(0,CV.jsx)(x8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,CV.jsx)(x8.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 k8=n(M(),1),SV=n(y(),1),ufe=()=>(0,SV.jsx)(k8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,SV.jsx)(k8.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 w8=n(M(),1),TV=n(y(),1),pfe=()=>(0,TV.jsx)(w8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,TV.jsx)(w8.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 C8=n(M(),1),PV=n(y(),1),mfe=()=>(0,PV.jsx)(C8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,PV.jsx)(C8.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 S8=n(M(),1),EV=n(y(),1),dfe=()=>(0,EV.jsx)(S8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,EV.jsx)(S8.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 T8=n(M(),1),BV=n(y(),1),ffe=()=>(0,BV.jsx)(T8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,BV.jsx)(T8.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 P8=n(M(),1),IV=n(y(),1),hfe=()=>(0,IV.jsx)(P8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,IV.jsx)(P8.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 E8=n(M(),1),NV=n(y(),1),gfe=()=>(0,NV.jsx)(E8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,NV.jsx)(E8.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 B8=n(M(),1),DV=n(y(),1),vfe=()=>(0,DV.jsx)(B8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,DV.jsx)(B8.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 I8=n(M(),1),LV=n(y(),1),bfe=()=>(0,LV.jsx)(I8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,LV.jsx)(I8.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 N8=n(M(),1),RV=n(y(),1),yfe=()=>(0,RV.jsx)(N8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,RV.jsx)(N8.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 D8=n(M(),1),AV=n(y(),1),_fe=()=>(0,AV.jsx)(D8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,AV.jsx)(D8.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 L8=n(M(),1),MV=n(y(),1),xfe=()=>(0,MV.jsx)(L8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,MV.jsx)(L8.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 R8=n(M(),1),zV=n(y(),1),kfe=()=>(0,zV.jsx)(R8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,zV.jsx)(R8.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 A8=n(M(),1),VV=n(y(),1),wfe=()=>(0,VV.jsx)(A8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,VV.jsx)(A8.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 M8=n(M(),1),OV=n(y(),1),Cfe=()=>(0,OV.jsx)(M8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,OV.jsx)(M8.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 z8=n(M(),1),FV=n(y(),1),Sfe=()=>(0,FV.jsx)(z8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,FV.jsx)(z8.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 V8=n(M(),1),HV=n(y(),1),Tfe=()=>(0,HV.jsx)(V8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,HV.jsx)(V8.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 O8=n(M(),1),jV=n(y(),1),Pfe=()=>(0,jV.jsx)(O8.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1",children:(0,jV.jsx)(O8.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 F8=n(M(),1),UV=n(y(),1),Efe=()=>(0,UV.jsx)(F8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,UV.jsx)(F8.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 H8=n(M(),1),GV=n(y(),1),Bfe=()=>(0,GV.jsx)(H8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,GV.jsx)(H8.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 j8=n(M(),1),WV=n(y(),1),Ife=()=>(0,WV.jsx)(j8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,WV.jsx)(j8.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 U8=n(M(),1),$V=n(y(),1),Nfe=()=>(0,$V.jsx)(U8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,$V.jsx)(U8.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 G8=n(M(),1),qV=n(y(),1),Dfe=()=>(0,qV.jsx)(G8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,qV.jsx)(G8.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 W8=n(M(),1),ZV=n(y(),1),Lfe=()=>(0,ZV.jsx)(W8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,ZV.jsx)(W8.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 $8=n(M(),1),KV=n(y(),1),Rfe=()=>(0,KV.jsx)($8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,KV.jsx)($8.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 q8=n(M(),1),YV=n(y(),1),Afe=()=>(0,YV.jsx)(q8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,YV.jsx)(q8.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 Z8=n(M(),1),QV=n(y(),1),Mfe=()=>(0,QV.jsx)(Z8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,QV.jsx)(Z8.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 K8=n(M(),1),XV=n(y(),1),zfe=()=>(0,XV.jsx)(K8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,XV.jsx)(K8.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 Y8=n(M(),1),JV=n(y(),1),Vfe=()=>(0,JV.jsx)(Y8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,JV.jsx)(Y8.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 Q8=n(M(),1),eO=n(y(),1),Ofe=()=>(0,eO.jsx)(Q8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,eO.jsx)(Q8.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 Ffe(e){return e?.name?{icon:e?.icon??C2,label:e?.title??(0,tO.__)("Social Icon")}:{icon:C2,label:(0,tO.__)("Social Icon")}}var nr=n(y(),1),iBe=({url:e,setAttributes:t,setPopover:r,popoverAnchor:o,clientId:a})=>{let{removeBlock:i}=(0,X8.useDispatch)(Ba.store);return(0,nr.jsx)(Ba.URLPopover,{anchor:o,"aria-label":(0,ai.__)("Edit social link"),onClose:()=>{r(!1),o?.focus()},children:(0,nr.jsx)("form",{className:"block-editor-url-popover__link-editor",onSubmit:l=>{l.preventDefault(),r(!1),o?.focus()},children:(0,nr.jsx)("div",{className:"block-editor-url-input",children:(0,nr.jsx)(Ba.URLInput,{value:e,onChange:l=>t({url:l}),placeholder:(0,ai.__)("Enter social link"),label:(0,ai.__)("Enter social link"),hideLabelFromVision:!0,disableSuggestions:!0,onKeyDown:l=>{e||l.defaultPrevented||![K0.BACKSPACE,K0.DELETE].includes(l.keyCode)||i(a)},suffix:(0,nr.jsx)(go.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,nr.jsx)(go.Button,{icon:zE,label:(0,ai.__)("Apply"),type:"submit",size:"small"})})})})})})},lBe=({attributes:e,context:t,isSelected:r,setAttributes:o,clientId:a,name:i})=>{let{url:l,service:s,label:c="",rel:u}=e,p=Z(),{showLabels:m,iconColor:d,iconColorValue:f,iconBackgroundColor:h,iconBackgroundColorValue:g}=t,[v,b]=(0,$f.useState)(!1),_=S("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,x]=(0,$f.useState)(null),w=(0,Ba.useBlockEditingMode)()==="contentOnly",{activeVariation:C}=(0,X8.useSelect)(B=>{let{getActiveBlockVariation:A}=B(jfe.store);return{activeVariation:A(i,e)}},[i,e]),{icon:T,label:I}=Ffe(C),D=c.trim()===""?I:c,L=(0,$f.useRef)(),E=(0,Ba.useBlockProps)({className:"wp-block-social-link-anchor",ref:(0,Hfe.useMergeRefs)([x,L]),onClick:()=>b(!0),onKeyDown:B=>{B.keyCode===K0.ENTER&&(B.preventDefault(),b(!0))}});return(0,nr.jsxs)(nr.Fragment,{children:[w&&m&&(0,nr.jsx)(Ba.BlockControls,{group:"other",children:(0,nr.jsx)(go.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:B,onToggle:A})=>(0,nr.jsx)(go.ToolbarButton,{onClick:A,"aria-haspopup":"true","aria-expanded":B,children:(0,ai.__)("Text")}),renderContent:()=>(0,nr.jsx)(go.TextControl,{className:"wp-block-social-link__toolbar_content_text",label:(0,ai.__)("Text"),help:(0,ai.__)("Provide a text label or use the default."),value:c,onChange:B=>o({label:B}),placeholder:I})})}),(0,nr.jsx)(Ba.InspectorControls,{children:(0,nr.jsx)(go.__experimentalToolsPanel,{label:(0,ai.__)("Settings"),resetAll:()=>{o({label:void 0})},dropdownMenuProps:p,children:(0,nr.jsx)(go.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,ai.__)("Text"),hasValue:()=>!!c,onDeselect:()=>{o({label:void 0})},children:(0,nr.jsx)(go.TextControl,{label:(0,ai.__)("Text"),help:(0,ai.__)("The text is visible when enabled from the parent Social Icons block."),value:c,onChange:B=>o({label:B}),placeholder:I})})})}),(0,nr.jsx)(Ba.InspectorControls,{group:"advanced",children:(0,nr.jsx)(go.TextControl,{label:(0,ai.__)("Link relation"),help:(0,$f.createInterpolateElement)((0,ai.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,nr.jsx)(go.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:u||"",onChange:B=>o({rel:B})})}),(0,nr.jsxs)("li",{role:"presentation",className:_,style:{color:f,backgroundColor:g},children:[(0,nr.jsxs)("button",{"aria-haspopup":"dialog",...E,role:"button",children:[(0,nr.jsx)(go.Icon,{icon:T}),(0,nr.jsx)("span",{className:S("wp-block-social-link-label",{"screen-reader-text":!m}),children:D})]}),r&&v&&(0,nr.jsx)(iBe,{url:l,setAttributes:o,setPopover:b,popoverAnchor:k,clientId:a})]})]})},Ufe=lBe;var J8={$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 Fe=n(N(),1);var Gfe=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:(0,Fe._x)("WordPress","social link block variation name"),icon:Mfe},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:(0,Fe._x)("500px","social link block variation name"),icon:afe},{name:"amazon",attributes:{service:"amazon"},title:(0,Fe._x)("Amazon","social link block variation name"),icon:qde},{name:"bandcamp",attributes:{service:"bandcamp"},title:(0,Fe._x)("Bandcamp","social link block variation name"),icon:Zde},{name:"behance",attributes:{service:"behance"},title:(0,Fe._x)("Behance","social link block variation name"),icon:Kde},{name:"bluesky",attributes:{service:"bluesky"},title:(0,Fe._x)("Bluesky","social link block variation name"),icon:Yde},{name:"chain",attributes:{service:"chain"},title:(0,Fe._x)("Link","social link block variation name"),icon:C2},{name:"codepen",attributes:{service:"codepen"},title:(0,Fe._x)("CodePen","social link block variation name"),icon:Qde},{name:"deviantart",attributes:{service:"deviantart"},title:(0,Fe._x)("DeviantArt","social link block variation name"),icon:Xde},{name:"discord",attributes:{service:"discord"},title:(0,Fe._x)("Discord","social link block variation name"),icon:Jde},{name:"dribbble",attributes:{service:"dribbble"},title:(0,Fe._x)("Dribbble","social link block variation name"),icon:efe},{name:"dropbox",attributes:{service:"dropbox"},title:(0,Fe._x)("Dropbox","social link block variation name"),icon:tfe},{name:"etsy",attributes:{service:"etsy"},title:(0,Fe._x)("Etsy","social link block variation name"),icon:rfe},{name:"facebook",attributes:{service:"facebook"},title:(0,Fe._x)("Facebook","social link block variation name"),icon:ofe},{name:"feed",attributes:{service:"feed"},title:(0,Fe._x)("RSS Feed","social link block variation name"),icon:nfe},{name:"flickr",attributes:{service:"flickr"},title:(0,Fe._x)("Flickr","social link block variation name"),icon:ife},{name:"foursquare",attributes:{service:"foursquare"},title:(0,Fe._x)("Foursquare","social link block variation name"),icon:lfe},{name:"goodreads",attributes:{service:"goodreads"},title:(0,Fe._x)("Goodreads","social link block variation name"),icon:sfe},{name:"google",attributes:{service:"google"},title:(0,Fe._x)("Google","social link block variation name"),icon:cfe},{name:"github",attributes:{service:"github"},title:(0,Fe._x)("GitHub","social link block variation name"),icon:ufe},{name:"gravatar",attributes:{service:"gravatar"},title:(0,Fe._x)("Gravatar","social link block variation name"),icon:pfe},{name:"instagram",attributes:{service:"instagram"},title:(0,Fe._x)("Instagram","social link block variation name"),icon:mfe},{name:"lastfm",attributes:{service:"lastfm"},title:(0,Fe._x)("Last.fm","social link block variation name"),icon:dfe},{name:"linkedin",attributes:{service:"linkedin"},title:(0,Fe._x)("LinkedIn","social link block variation name"),icon:ffe},{name:"mail",attributes:{service:"mail"},title:(0,Fe._x)("Mail","social link block variation name"),keywords:["email","e-mail"],icon:hfe},{name:"mastodon",attributes:{service:"mastodon"},title:(0,Fe._x)("Mastodon","social link block variation name"),icon:gfe},{name:"meetup",attributes:{service:"meetup"},title:(0,Fe._x)("Meetup","social link block variation name"),icon:vfe},{name:"medium",attributes:{service:"medium"},title:(0,Fe._x)("Medium","social link block variation name"),icon:bfe},{name:"patreon",attributes:{service:"patreon"},title:(0,Fe._x)("Patreon","social link block variation name"),icon:yfe},{name:"pinterest",attributes:{service:"pinterest"},title:(0,Fe._x)("Pinterest","social link block variation name"),icon:_fe},{name:"pocket",attributes:{service:"pocket"},title:(0,Fe._x)("Pocket","social link block variation name"),icon:xfe},{name:"reddit",attributes:{service:"reddit"},title:(0,Fe._x)("Reddit","social link block variation name"),icon:kfe},{name:"skype",attributes:{service:"skype"},title:(0,Fe._x)("Skype","social link block variation name"),icon:wfe,scope:[]},{name:"snapchat",attributes:{service:"snapchat"},title:(0,Fe._x)("Snapchat","social link block variation name"),icon:Cfe},{name:"soundcloud",attributes:{service:"soundcloud"},title:(0,Fe._x)("SoundCloud","social link block variation name"),icon:Sfe},{name:"spotify",attributes:{service:"spotify"},title:(0,Fe._x)("Spotify","social link block variation name"),icon:Tfe},{name:"telegram",attributes:{service:"telegram"},title:(0,Fe._x)("Telegram","social link block variation name"),icon:Pfe},{name:"threads",attributes:{service:"threads"},title:(0,Fe._x)("Threads","social link block variation name"),icon:Efe},{name:"tiktok",attributes:{service:"tiktok"},title:(0,Fe._x)("TikTok","social link block variation name"),icon:Bfe},{name:"tumblr",attributes:{service:"tumblr"},title:(0,Fe._x)("Tumblr","social link block variation name"),icon:Ife},{name:"twitch",attributes:{service:"twitch"},title:(0,Fe._x)("Twitch","social link block variation name"),icon:Nfe},{name:"twitter",attributes:{service:"twitter"},title:(0,Fe._x)("Twitter","social link block variation name"),icon:Dfe},{name:"vimeo",attributes:{service:"vimeo"},title:(0,Fe._x)("Vimeo","social link block variation name"),icon:Lfe},{name:"vk",attributes:{service:"vk"},title:(0,Fe._x)("VK","social link block variation name"),icon:Rfe},{name:"whatsapp",attributes:{service:"whatsapp"},title:(0,Fe._x)("WhatsApp","social link block variation name"),icon:Afe},{name:"x",attributes:{service:"x"},keywords:["twitter"],title:(0,Fe._x)("X","social link block variation name"),icon:zfe},{name:"yelp",attributes:{service:"yelp"},title:(0,Fe._x)("Yelp","social link block variation name"),icon:Vfe},{name:"youtube",attributes:{service:"youtube"},title:(0,Fe._x)("YouTube","social link block variation name"),icon:Ofe}];Gfe.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.service===r.service)});var Wfe=Gfe;var{fieldsKey:cBe,formKey:uBe}=U($fe.privateApis),{name:qfe}=J8,e7={icon:Ev,edit:Ufe,variations:Wfe};window.__experimentalContentOnlyInspectorFields&&(e7[cBe]=[{id:"link",label:(0,rO.__)("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,rO.__)("Label"),type:"text"}],e7[uBe]={fields:["link","label"]});var pBe=()=>R({name:qfe,metadata:J8,settings:e7});var aO={};K(aO,{init:()=>bBe,metadata:()=>r7,name:()=>ehe,settings:()=>the});var t7=n(P(),1),nO=n(y(),1),mBe=e=>{if(e.layout)return e;let{className:t}=e,r="items-justified-",o=new RegExp(`\\b${r}[^ ]*[ ]?\\b`,"g"),a={...e,className:t?.replace(o,"").trim()},i=t?.match(o)?.[0]?.trim();return i&&Object.assign(a,{layout:{type:"flex",justifyContent:i.slice(r.length)}}),a},dBe=[{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:mBe,save:e=>{let{attributes:{iconBackgroundColorValue:t,iconColorValue:r,itemsJustification:o,size:a}}=e,i=S(a,{"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,nO.jsx)("ul",{...t7.useBlockProps.save({className:i,style:l}),children:(0,nO.jsx)(t7.InnerBlocks.Content,{})})}}],Zfe=dBe;var Kfe=n(H(),1),No=n(P(),1),Ds=n(O(),1),Ia=n(N(),1),Yfe=n(F(),1);var xn=n(y(),1),fBe=[{label:(0,Ia.__)("Default"),value:""},{label:(0,Ia.__)("Small"),value:"has-small-icon-size"},{label:(0,Ia.__)("Normal"),value:"has-normal-icon-size"},{label:(0,Ia.__)("Large"),value:"has-large-icon-size"},{label:(0,Ia.__)("Huge"),value:"has-huge-icon-size"}];function hBe(e){let{clientId:t,attributes:r,iconBackgroundColor:o,iconColor:a,isSelected:i,setAttributes:l,setIconBackgroundColor:s,setIconColor:c}=e,{iconBackgroundColorValue:u,iconColorValue:p,openInNewTab:m,showLabels:d,size:f}=r,{hasSocialIcons:h,hasSelectedChild:g,hasSelectedStyleState:v}=(0,Yfe.useSelect)(L=>{let{getBlockCount:E,hasSelectedInnerBlock:B,hasSelectedStyleState:A}=U(L(No.store));return{hasSocialIcons:E(t)>0,hasSelectedChild:B(t),hasSelectedStyleState:A(t)}},[t]),b=i||g,_=r.className?.includes("is-style-logos-only"),k=Z();(0,Kfe.useEffect)(()=>{if(_){let L;return l(E=>(L={iconBackgroundColor:E.iconBackgroundColor,iconBackgroundColorValue:E.iconBackgroundColorValue,customIconBackgroundColor:E.customIconBackgroundColor},{iconBackgroundColor:void 0,iconBackgroundColorValue:void 0,customIconBackgroundColor:void 0})),()=>l({...L})}},[_,l]);let x=S(f,{"has-visible-labels":d,"has-icon-color":a.color||p,"has-icon-background-color":o.color||u}),w=(0,No.useBlockProps)({className:x}),C=(0,No.useInnerBlocksProps)(w,{templateLock:!1,orientation:r.layout?.orientation??"horizontal",__experimentalAppenderTagName:"li",renderAppender:!h||b?No.InnerBlocks.ButtonBlockAppender:void 0}),T=[{value:a.color||p,onChange:L=>{c(L),l({iconColorValue:L})},label:(0,Ia.__)("Icon color"),resetAllFilter:()=>{c(void 0),l({iconColorValue:void 0})}}];_||T.push({value:o.color||u,onChange:L=>{s(L),l({iconBackgroundColorValue:L})},label:(0,Ia.__)("Icon background"),resetAllFilter:()=>{s(void 0),l({iconBackgroundColorValue:void 0})}});let I=(0,No.__experimentalUseMultipleOriginColorsAndGradients)(),D=I.hasColorsOrGradients&&!v;return(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(No.InspectorControls,{children:(0,xn.jsxs)(Ds.__experimentalToolsPanel,{label:(0,Ia.__)("Settings"),resetAll:()=>{l({openInNewTab:!1,showLabels:!1,size:void 0})},dropdownMenuProps:k,children:[(0,xn.jsx)(Ds.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!f,label:(0,Ia.__)("Icon size"),onDeselect:()=>l({size:void 0}),children:(0,xn.jsx)(Ds.SelectControl,{label:(0,Ia.__)("Icon size"),onChange:L=>{l({size:L===""?void 0:L})},value:f??"",options:fBe})}),(0,xn.jsx)(Ds.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Ia.__)("Show text"),hasValue:()=>!!d,onDeselect:()=>l({showLabels:!1}),children:(0,xn.jsx)(Ds.ToggleControl,{label:(0,Ia.__)("Show text"),checked:d,onChange:()=>l({showLabels:!d})})}),(0,xn.jsx)(Ds.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Ia.__)("Open links in new tab"),hasValue:()=>!!m,onDeselect:()=>l({openInNewTab:!1}),children:(0,xn.jsx)(Ds.ToggleControl,{label:(0,Ia.__)("Open links in new tab"),checked:m,onChange:()=>l({openInNewTab:!m})})})]})}),D&&(0,xn.jsxs)(No.InspectorControls,{group:"color",children:[T.map(({onChange:L,label:E,value:B,resetAllFilter:A})=>(0,xn.jsx)(No.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:B,label:E,onColorChange:L,isShownByDefault:!0,resetAllFilter:A,enableAlpha:!0,clearable:!0}],panelId:t,...I},`social-links-color-${E}`)),!_&&(0,xn.jsx)(No.ContrastChecker,{textColor:p,backgroundColor:u,isLargeText:!1})]}),(0,xn.jsx)("ul",{...C})]})}var gBe={iconColor:"icon-color",iconBackgroundColor:"icon-background-color"},Qfe=(0,No.withColors)(gBe)(hBe);var r7={$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 o7=n(P(),1),Xfe=n(y(),1);function Jfe(e){let{attributes:{iconBackgroundColorValue:t,iconColorValue:r,showLabels:o,size:a}}=e,i=S(a,{"has-visible-labels":o,"has-icon-color":r,"has-icon-background-color":t}),l=o7.useBlockProps.save({className:i}),s=o7.useInnerBlocksProps.save(l);return(0,Xfe.jsx)("ul",{...s})}var{name:ehe}=r7,the={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:Ev,edit:Qfe,save:Jfe,deprecated:Zfe},bBe=()=>R({name:ehe,metadata:r7,settings:the});var iO={};K(iO,{init:()=>SBe,metadata:()=>a7,name:()=>hhe,settings:()=>ghe});var rhe=n(P(),1),ohe=n(y(),1),yBe=[{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,ohe.jsx)("div",{...rhe.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}}],nhe=yBe;var kn=n(P(),1),che=n(O(),1),Q0=n(H(),1),n7=n(F(),1);var Y0=n(N(),1),Hc=n(P(),1),Rl=n(O(),1),ihe=n(ve(),1);var S2=0;var ii=n(y(),1),{useSpacingSizes:_Be}=U(Hc.privateApis);function ahe({label:e,onChange:t,isResizing:r,value:o=""}){let a=(0,ihe.useInstanceId)(Rl.__experimentalUnitControl,"block-spacer-height-input"),i=_Be(),[l]=(0,Hc.useSettings)("spacing.units"),s=l?l.filter(d=>d!=="%"):["px","em","rem","vw","vh"],c=(0,Rl.__experimentalUseCustomUnits)({availableUnits:s,defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),[u,p]=(0,Rl.__experimentalParseQuantityAndUnitFromRawValue)(o),m=(0,Hc.isValueSpacingPreset)(o)?o:[u,r?"px":p].join("");return(0,ii.jsx)(ii.Fragment,{children:i?.length<2?(0,ii.jsx)(Rl.__experimentalUnitControl,{id:a,isResetValueOnUnitChange:!0,min:S2,onChange:t,value:m,units:c,label:e}):(0,ii.jsx)("div",{className:"tools-panel-item-spacing",children:(0,ii.jsx)(Hc.__experimentalSpacingSizesControl,{values:{all:m},onChange:({all:d})=>{t(d)},label:e,sides:["all"],units:c,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})})})}function lhe({setAttributes:e,orientation:t,height:r,width:o,isResizing:a}){let i=Z();return(0,ii.jsx)(Hc.InspectorControls,{children:(0,ii.jsxs)(Rl.__experimentalToolsPanel,{label:(0,Y0.__)("Settings"),resetAll:()=>{e({width:void 0,height:"100px"})},dropdownMenuProps:i,children:[t==="horizontal"&&(0,ii.jsx)(Rl.__experimentalToolsPanelItem,{label:(0,Y0.__)("Width"),isShownByDefault:!0,hasValue:()=>o!==void 0,onDeselect:()=>e({width:void 0}),children:(0,ii.jsx)(ahe,{label:(0,Y0.__)("Width"),value:o,onChange:l=>e({width:l}),isResizing:a})}),t!=="horizontal"&&(0,ii.jsx)(Rl.__experimentalToolsPanelItem,{label:(0,Y0.__)("Height"),isShownByDefault:!0,hasValue:()=>r!=="100px",onDeselect:()=>e({height:"100px"}),children:(0,ii.jsx)(ahe,{label:(0,Y0.__)("Height"),value:r,onChange:l=>e({height:l}),isResizing:a})})]})})}var Al=n(y(),1),{useSpacingSizes:xBe}=U(kn.privateApis),she=({orientation:e,onResizeStart:t,onResize:r,onResizeStop:o,isSelected:a,isResizing:i,setIsResizing:l,...s})=>{let c=p=>e==="horizontal"?p.clientWidth:p.clientHeight,u=p=>`${c(p)}px`;return(0,Al.jsx)(che.ResizableBox,{className:S("block-library-spacer__resize-container",{"resize-horizontal":e==="horizontal","is-resizing":i,"is-selected":a}),onResizeStart:(p,m,d)=>{let f=u(d);t(f),r(f)},onResize:(p,m,d)=>{r(u(d)),i||l(!0)},onResizeStop:(p,m,d)=>{let f=c(d);o(`${f}px`),l(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:e==="horizontal"?"x":"y",position:"corner",isVisible:i},showHandle:a,...s})},kBe=({attributes:e,isSelected:t,setAttributes:r,toggleSelection:o,context:a,__unstableParentLayout:i,className:l})=>{let s=(0,n7.useSelect)(ee=>ee(kn.store).getSettings()?.disableCustomSpacingSizes),{orientation:c}=a,{orientation:u,type:p,default:{type:m}={}}=i||{},d=p==="flex"||!p&&m==="flex",f=!u&&d?"horizontal":u||c,{height:h,width:g,style:v={}}=e,{layout:b={}}=v,{selfStretch:_,flexSize:k}=b,x=xBe(),[w,C]=(0,Q0.useState)(!1),[T,I]=(0,Q0.useState)(null),[D,L]=(0,Q0.useState)(null),E=()=>o(!1),B=()=>o(!0),{__unstableMarkNextChangeAsNotPersistent:A}=(0,n7.useDispatch)(kn.store),z=ee=>{B(),d&&r({style:{...v,layout:{...b,flexSize:ee,selfStretch:"fixed"}}}),r({height:ee}),I(null)},j=ee=>{B(),d&&r({style:{...v,layout:{...b,flexSize:ee,selfStretch:"fixed"}}}),r({width:ee}),L(null)},G=()=>{if(!d)return T||(0,kn.getSpacingPresetCssVar)(h)||void 0},W=()=>{if(!d)return D||(0,kn.getSpacingPresetCssVar)(g)||void 0},$=f==="horizontal"?D||k:T||k,V={height:f==="horizontal"?24:G(),width:f==="horizontal"?W():void 0,minWidth:f==="vertical"&&d?48:void 0,flexBasis:d?$:void 0,flexGrow:d&&w?0:void 0},Q=ee=>ee==="horizontal"?(0,Al.jsx)(she,{minWidth:S2,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:ee,onResizeStart:E,onResize:L,onResizeStop:j,isSelected:t,isResizing:w,setIsResizing:C}):(0,Al.jsx)(Al.Fragment,{children:(0,Al.jsx)(she,{minHeight:S2,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:ee,onResizeStart:E,onResize:I,onResizeStop:z,isSelected:t,isResizing:w,setIsResizing:C})});(0,Q0.useEffect)(()=>{let ee=te=>{A(),r(te)};if(d&&_!=="fill"&&_!=="fit"&&k===void 0)if(f==="horizontal"){let te=(0,kn.getCustomValueFromPreset)(g,x)||(0,kn.getCustomValueFromPreset)(h,x)||"100px";ee({width:"0px",style:{...v,layout:{...b,flexSize:te,selfStretch:"fixed"}}})}else{let te=(0,kn.getCustomValueFromPreset)(h,x)||(0,kn.getCustomValueFromPreset)(g,x)||"100px";ee({height:"0px",style:{...v,layout:{...b,flexSize:te,selfStretch:"fixed"}}})}else d&&(_==="fill"||_==="fit")?ee(f==="horizontal"?{width:void 0}:{height:void 0}):!d&&(_||k)&&ee({...f==="horizontal"?{width:k}:{height:k},style:{...v,layout:{...b,flexSize:void 0,selfStretch:void 0}}})},[v,k,h,f,d,b,_,r,x,g,A]);let Y=(0,kn.useBlockEditingMode)();return(0,Al.jsxs)(Al.Fragment,{children:[(0,Al.jsx)("div",{...(0,kn.useBlockProps)({style:V,className:S(l,{"custom-sizes-disabled":s})}),children:Y==="default"&&Q(f)}),!d&&(0,Al.jsx)(lhe,{setAttributes:r,height:T||h,width:D||g,orientation:f,isResizing:w})]})},uhe=kBe;var a7={$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 phe=n(q(),1),CBe={to:[{type:"block",blocks:["core/separator"],transform:({anchor:e})=>(0,phe.createBlock)("core/separator",{anchor:e||void 0})}]},mhe=CBe;var T2=n(P(),1),dhe=n(y(),1);function fhe({attributes:e}){let{height:t,width:r,style:o}=e,{layout:{selfStretch:a}={}}=o||{},i=a==="fill"||a==="fit"?void 0:t;return(0,dhe.jsx)("div",{...T2.useBlockProps.save({style:{height:(0,T2.getSpacingPresetCssVar)(i),width:(0,T2.getSpacingPresetCssVar)(r)},"aria-hidden":!0})})}var{name:hhe}=a7,ghe={icon:pI,transforms:mhe,edit:uhe,save:fhe,deprecated:nhe},SBe=()=>R({name:hhe,metadata:a7,settings:ghe});var cO={};K(cO,{init:()=>EBe,metadata:()=>d7,name:()=>The,settings:()=>Phe});var qf=n(P(),1),u7=n(F(),1),khe=n(H(),1);var c7=n(P(),1),e1=n(O(),1),s7=n(N(),1),_he=n(F(),1);var sO=n(N(),1),l7=n(P(),1),P2=n(O(),1),yhe=n(F(),1);var vhe=n(N(),1),bhe=n(q(),1),lO=n(P(),1),i7=n(F(),1);function X0(e){let t=(0,i7.useRegistry)(),{insertBlock:r,removeBlock:o,moveBlocksToPosition:a,updateBlockAttributes:i,__unstableMarkNextChangeAsNotPersistent:l}=(0,i7.useDispatch)(lO.store),s=()=>{let{getBlocks:m,getBlockAttributes:d}=t.select(lO.store),f=e?d(e):void 0,h=e?m(e).find(g=>g.name==="core/tab-panels"):void 0;return{tabPanelsClientId:h?.clientId??null,tabPanelBlocks:h?.innerBlocks??[],activeIndex:f?.editorActiveTabIndex??f?.activeTabIndex??0}};return{insertTab:m=>{let{tabPanelsClientId:d,tabPanelBlocks:f}=s();if(!d)return;let h=m??f.length;r((0,bhe.createBlock)("core/tab-panel",{label:(0,vhe.__)("Tab")}),h,d,!1),l(),i(e,{editorActiveTabIndex:h})},removeTab:m=>{let{tabPanelBlocks:d,activeIndex:f}=s(),h=d.length;if(h<=1)return;let g=m??f,v=d[g];if(!v)return;let b=g>=h-1?h-2:g;l(),i(e,{editorActiveTabIndex:b}),o(v.clientId,!1)},moveTab:m=>{let{tabPanelsClientId:d,tabPanelBlocks:f,activeIndex:h}=s();if(!d)return;let g=h+m,v=f[h];!v||g<0||g>=f.length||(l(),i(e,{editorActiveTabIndex:g}),a([v.clientId],d,d,g))}}}var J0=n(y(),1);function Lm({tabsClientId:e}){let{insertTab:t,removeTab:r}=X0(e),o=(0,yhe.useSelect)(a=>e?(a(l7.store).getBlocks(e).find(l=>l.name==="core/tab-panels")?.innerBlocks.length??0)<=1:!0,[e]);return(0,J0.jsx)(l7.BlockControls,{group:"other",children:(0,J0.jsxs)(P2.ToolbarGroup,{children:[(0,J0.jsx)(P2.ToolbarButton,{className:"components-toolbar__control",onClick:()=>t(),text:(0,sO.__)("Add tab")}),(0,J0.jsx)(P2.ToolbarButton,{className:"components-toolbar__control",onClick:()=>r(),text:(0,sO.__)("Remove tab"),disabled:o})]})})}var jc=n(y(),1);function xhe({tabsClientId:e,blockIndex:t,isDefaultTab:r}){let{updateBlockAttributes:o}=(0,_he.useDispatch)(c7.store),a=Z();return(0,jc.jsxs)(jc.Fragment,{children:[(0,jc.jsx)(Lm,{tabsClientId:e}),(0,jc.jsx)(c7.InspectorControls,{children:(0,jc.jsx)(e1.__experimentalToolsPanel,{label:(0,s7.__)("Settings"),resetAll:()=>{o(e,{activeTabIndex:0})},dropdownMenuProps:a,children:(0,jc.jsx)(e1.__experimentalToolsPanelItem,{label:(0,s7.__)("Default tab"),hasValue:()=>r&&t!==0,onDeselect:()=>{o(e,{activeTabIndex:0})},isShownByDefault:!0,children:(0,jc.jsx)(e1.CheckboxControl,{label:(0,s7.__)("Default tab"),checked:r,onChange:i=>{o(e,{activeTabIndex:i?t:0})}})})})})]})}var p7=n(y(),1),TBe=[["core/paragraph"]];function whe({clientId:e,isSelected:t}){let{activeTabIndex:r,editorActiveTabIndex:o,blockIndex:a,hasInnerBlocksSelected:i,tabsClientId:l}=(0,u7.useSelect)(g=>{let{getBlockRootClientId:v,getBlockIndex:b,hasSelectedInnerBlock:_,getBlockAttributes:k}=g(qf.store),x=v(e),w=v(x),C=k(w)??{},T=b(e),I=_(e,!0);return{activeTabIndex:C.activeTabIndex,editorActiveTabIndex:C.editorActiveTabIndex,blockIndex:T,hasInnerBlocksSelected:I,tabsClientId:w}},[e]),s=o??r,{updateBlockAttributes:c,__unstableMarkNextChangeAsNotPersistent:u}=(0,u7.useDispatch)(qf.store);(0,khe.useEffect)(()=>{(t||i)&&l&&s!==a&&(u(),c(l,{editorActiveTabIndex:a}))},[t,i,l,s,a,c,u]);let p=s===a,m=r===a,d=t||i||p,f=(0,qf.useBlockProps)({hidden:!d,tabIndex:d?0:-1}),h=(0,qf.useInnerBlocksProps)(f,{template:TBe});return(0,p7.jsxs)("section",{...h,children:[(0,p7.jsx)(xhe,{tabsClientId:l,blockIndex:a,isDefaultTab:m}),d&&h.children]})}var m7=n(P(),1),Che=n(y(),1);function She(){let e=m7.useBlockProps.save({role:"tabpanel",tabIndex:0}),t=m7.useInnerBlocksProps.save(e);return(0,Che.jsx)("section",{...t})}var d7={$schema:"https://schemas.wp.org/trunk/block.json",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-id"],supports:{anchor:!0,html:!1,color:{background:!0,text:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0,spacing:{blockGap:!0,padding:!0},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0}},visibility:!1},providesContext:{"core/tab-label":"label"},style:"wp-block-tab-panel"};var{name:The}=d7,Phe={icon:MI,edit:whe,save:She},EBe=()=>R({name:The,metadata:d7,settings:Phe});var pO={};K(pO,{init:()=>NBe,metadata:()=>h7,name:()=>Dhe,settings:()=>Lhe});var t1=n(P(),1),Ehe=n(F(),1),uO=n(N(),1);var Zf=n(y(),1),BBe=[["core/tab-panel",{label:(0,uO.__)("Tab")}],["core/tab-panel",{label:(0,uO.__)("Tab")}]];function Bhe({clientId:e}){let t=(0,t1.useBlockProps)(),r=(0,t1.useInnerBlocksProps)(t,{template:BBe,templateLock:!1,renderAppender:!1}),o=(0,Ehe.useSelect)(a=>a(t1.store).getBlockRootClientId(e),[e]);return(0,Zf.jsxs)(Zf.Fragment,{children:[(0,Zf.jsx)(Lm,{tabsClientId:o}),(0,Zf.jsx)("div",{...r})]})}var f7=n(P(),1),Ihe=n(y(),1);function Nhe(){let e=f7.useBlockProps.save(),t=f7.useInnerBlocksProps.save(e);return(0,Ihe.jsx)("div",{...t})}var h7={$schema:"https://schemas.wp.org/trunk/block.json",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"],supports:{html:!1,visibility:!1,lock:!1,color:{background:!0,text:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}}};var{name:Dhe}=h7,Lhe={icon:Y1,edit:Bhe,save:Nhe},NBe=()=>R({name:Dhe,metadata:h7,settings:Lhe});var xO={};K(xO,{init:()=>ZBe,metadata:()=>g7,name:()=>$he,settings:()=>qhe});var Uc=n(N(),1);var sr=n(P(),1),ut=n(y(),1),Rhe={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},mO={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"}},DBe={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:mO}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:mO}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:mO}}}},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:a,caption:i}=e;if(!r.length&&!o.length&&!a.length)return null;let s=(0,sr.__experimentalGetColorClassesAndStyles)(e),c=(0,sr.__experimentalGetBorderClassesAndStyles)(e),u=S(s.className,c.className,{"has-fixed-layout":t}),p=!sr.RichText.isEmpty(i),m=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,ut.jsx)(h,{children:f.map(({cells:g},v)=>(0,ut.jsx)("tr",{children:g.map(({content:b,tag:_,scope:k,align:x,colspan:w,rowspan:C},T)=>{let I=S({[`has-text-align-${x}`]:x});return(0,ut.jsx)(sr.RichText.Content,{className:I||void 0,"data-align":x,tagName:_,value:b,scope:_==="th"?k:void 0,colSpan:w,rowSpan:C},T)})},v))})};return(0,ut.jsxs)("figure",{...sr.useBlockProps.save(),children:[(0,ut.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,ut.jsx)(m,{type:"head",rows:r}),(0,ut.jsx)(m,{type:"body",rows:o}),(0,ut.jsx)(m,{type:"foot",rows:a})]}),p&&(0,ut.jsx)(sr.RichText.Content,{tagName:"figcaption",value:i,className:(0,sr.__experimentalGetElementClassName)("caption")})]})}},dO={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"}},LBe={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:dO}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:dO}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:dO}}}},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:a,caption:i}=e;if(!r.length&&!o.length&&!a.length)return null;let s=(0,sr.__experimentalGetColorClassesAndStyles)(e),c=(0,sr.__experimentalGetBorderClassesAndStyles)(e),u=S(s.className,c.className,{"has-fixed-layout":t}),p=!sr.RichText.isEmpty(i),m=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,ut.jsx)(h,{children:f.map(({cells:g},v)=>(0,ut.jsx)("tr",{children:g.map(({content:b,tag:_,scope:k,align:x},w)=>{let C=S({[`has-text-align-${x}`]:x});return(0,ut.jsx)(sr.RichText.Content,{className:C||void 0,"data-align":x,tagName:_,value:b,scope:_==="th"?k:void 0},w)})},v))})};return(0,ut.jsxs)("figure",{...sr.useBlockProps.save(),children:[(0,ut.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,ut.jsx)(m,{type:"head",rows:r}),(0,ut.jsx)(m,{type:"body",rows:o}),(0,ut.jsx)(m,{type:"foot",rows:a})]}),p&&(0,ut.jsx)(sr.RichText.Content,{tagName:"figcaption",value:i})]})}},fO={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"}},RBe={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:fO}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:fO}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:fO}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{let{hasFixedLayout:t,head:r,body:o,foot:a,backgroundColor:i,caption:l}=e;if(!r.length&&!o.length&&!a.length)return null;let c=(0,sr.getColorClassName)("background-color",i),u=S(c,{"has-fixed-layout":t,"has-background":!!c}),p=!sr.RichText.isEmpty(l),m=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,ut.jsx)(h,{children:f.map(({cells:g},v)=>(0,ut.jsx)("tr",{children:g.map(({content:b,tag:_,scope:k,align:x},w)=>{let C=S({[`has-text-align-${x}`]:x});return(0,ut.jsx)(sr.RichText.Content,{className:C||void 0,"data-align":x,tagName:_,value:b,scope:_==="th"?k:void 0},w)})},v))})};return(0,ut.jsxs)("figure",{...sr.useBlockProps.save(),children:[(0,ut.jsxs)("table",{className:u===""?void 0:u,children:[(0,ut.jsx)(m,{type:"head",rows:r}),(0,ut.jsx)(m,{type:"body",rows:o}),(0,ut.jsx)(m,{type:"foot",rows:a})]}),p&&(0,ut.jsx)(sr.RichText.Content,{tagName:"figcaption",value:l})]})},isEligible:e=>e.backgroundColor&&e.backgroundColor in Rhe&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:Rhe[e.backgroundColor]}}})},hO={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}},ABe={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:hO}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:hO}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:hO}}}},supports:{align:!0},save({attributes:e}){let{hasFixedLayout:t,head:r,body:o,foot:a,backgroundColor:i}=e;if(!r.length&&!o.length&&!a.length)return null;let s=(0,sr.getColorClassName)("background-color",i),c=S(s,{"has-fixed-layout":t,"has-background":!!s}),u=({type:p,rows:m})=>{if(!m.length)return null;let d=`t${p}`;return(0,ut.jsx)(d,{children:m.map(({cells:f},h)=>(0,ut.jsx)("tr",{children:f.map(({content:g,tag:v,scope:b},_)=>(0,ut.jsx)(sr.RichText.Content,{tagName:v,value:g,scope:v==="th"?b:void 0},_))},h))})};return(0,ut.jsxs)("table",{className:c,children:[(0,ut.jsx)(u,{type:"head",rows:r}),(0,ut.jsx)(u,{type:"body",rows:o}),(0,ut.jsx)(u,{type:"foot",rows:a})]})}},Ahe=[DBe,LBe,RBe,ABe];var li=n(H(),1),Do=n(P(),1),Pt=n(N(),1),to=n(O(),1);var MBe=["align"];function Mhe({rowCount:e,columnCount:t}){return{body:Array.from({length:e}).map(()=>({cells:Array.from({length:t}).map(()=>({content:"",tag:"td"}))}))}}function zBe(e){if(!Rm(e.head))return e.head[0];if(!Rm(e.body))return e.body[0];if(!Rm(e.foot))return e.foot[0]}function zhe(e,t,r){let{sectionName:o,rowIndex:a,columnIndex:i}=t;return e[o]?.[a]?.cells?.[i]?.[r]}function gO(e,t,r){if(!t)return e;let o=Object.fromEntries(Object.entries(e).filter(([l])=>["head","body","foot"].includes(l))),{sectionName:a,rowIndex:i}=t;return Object.fromEntries(Object.entries(o).map(([l,s])=>a&&a!==l?[l,s]:[l,s.map((c,u)=>i&&i!==u?c:{cells:c.cells.map((p,m)=>VBe({sectionName:l,columnIndex:m,rowIndex:u},t)?r(p):p)})]))}function VBe(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 vO(e,{sectionName:t,rowIndex:r,columnCount:o}){let a=zBe(e),i=o===void 0?a?.cells?.length:o;return i?{[t]:[...e[t].slice(0,r),{cells:Array.from({length:i}).map((l,s)=>{let c=a?.cells?.[s]??{};return{...Object.fromEntries(Object.entries(c).filter(([p])=>MBe.includes(p))),content:"",tag:t==="head"?"th":"td"}})},...e[t].slice(r)]}:e}function Vhe(e,{sectionName:t,rowIndex:r}){return{[t]:e[t].filter((o,a)=>a!==r)}}function Ohe(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,a])=>Rm(a)?[o,a]:[o,a.map(i=>Hhe(i)||i.cells.length<t?i:{cells:[...i.cells.slice(0,t),{content:"",tag:o==="head"?"th":"td"},...i.cells.slice(t)]})]))}function Fhe(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,a])=>Rm(a)?[o,a]:[o,a.map(i=>({cells:i.cells.length>=t?i.cells.filter((l,s)=>s!==t):i.cells})).filter(i=>i.cells.length)]))}function bO(e,t){if(!Rm(e[t]))return{[t]:[]};let r=e.body?.[0]?.cells?.length??1;return vO(e,{sectionName:t,rowIndex:0,columnCount:r})}function Rm(e){return!e||!e.length||e.every(Hhe)}function Hhe(e){return!(e.cells&&e.cells.length)}var yt=n(y(),1),OBe=[{icon:$9,title:(0,Pt.__)("Align column left"),align:"left"},{icon:G9,title:(0,Pt.__)("Align column center"),align:"center"},{icon:Y9,title:(0,Pt.__)("Align column right"),align:"right"}],FBe={head:(0,Pt.__)("Header cell text"),body:(0,Pt.__)("Body cell text"),foot:(0,Pt.__)("Footer cell text")},HBe={head:(0,Pt._x)("Header label","table header"),foot:(0,Pt._x)("Footer label","table footer")};function jBe({name:e,...t}){let r=`t${e}`;return(0,yt.jsx)(r,{...t})}function UBe({attributes:e,setAttributes:t,insertBlocksAfter:r,isSelected:o}){let{hasFixedLayout:a,head:i,foot:l}=e,[s,c]=(0,li.useState)(2),[u,p]=(0,li.useState)(2),[m,d]=(0,li.useState)(),f=(0,Do.__experimentalUseColorProps)(e),h=(0,Do.__experimentalUseBorderProps)(e),g=(0,Do.useBlockEditingMode)(),v=(0,li.useRef)(),[b,_]=(0,li.useState)(!1),k=Z();function x(J){p(J)}function w(J){c(J)}function C(J){J.preventDefault(),t(Mhe({rowCount:parseInt(s,10)||2,columnCount:parseInt(u,10)||2})),_(!0)}function T(){t({hasFixedLayout:!a})}let I=(0,li.useCallback)(function(J){m&&t(ce=>gO(ce,m,ie=>({...ie,content:J})))},[m,t]);function D(J){if(!m)return;let ce={type:"column",columnIndex:m.columnIndex},ie=gO(e,ce,we=>({...we,align:J}));t(ie)}function L(){if(m)return zhe(e,m,"align")}function E(){t(bO(e,"head"))}function B(){t(bO(e,"foot"))}function A(J){if(!m)return;let{sectionName:ce,rowIndex:ie}=m,we=ie+J;t(vO(e,{sectionName:ce,rowIndex:we})),d({sectionName:ce,rowIndex:we,columnIndex:0,type:"cell"})}function z(){A(0)}function j(){A(1)}function G(){if(!m)return;let{sectionName:J,rowIndex:ce}=m;d(),t(Vhe(e,{sectionName:J,rowIndex:ce}))}function W(J=0){if(!m)return;let{columnIndex:ce}=m,ie=ce+J;t(Ohe(e,{columnIndex:ie})),d({rowIndex:0,columnIndex:ie,type:"cell"})}function $(){W(0)}function V(){W(1)}function Q(){if(!m)return;let{sectionName:J,columnIndex:ce}=m;d(),t(Fhe(e,{sectionName:J,columnIndex:ce}))}(0,li.useEffect)(()=>{o||d()},[o]),(0,li.useEffect)(()=>{b&&(v?.current?.querySelector('td div[contentEditable="true"]')?.focus(),_(!1))},[b]);let Y=["head","body","foot"].filter(J=>!Rm(e[J])),ee=[{icon:$I,title:(0,Pt.__)("Insert row before"),isDisabled:!m,onClick:z},{icon:GI,title:(0,Pt.__)("Insert row after"),isDisabled:!m,onClick:j},{icon:ZI,title:(0,Pt.__)("Delete row"),isDisabled:!m,onClick:G},{icon:FI,title:(0,Pt.__)("Insert column before"),isDisabled:!m,onClick:$},{icon:VI,title:(0,Pt.__)("Insert column after"),isDisabled:!m,onClick:V},{icon:jI,title:(0,Pt.__)("Delete column"),isDisabled:!m,onClick:Q}],te=Y.map(J=>(0,yt.jsx)(jBe,{name:J,children:e[J].map(({cells:ce},ie)=>(0,yt.jsx)("tr",{children:ce.map((we,se)=>{let de=m?.sectionName===J&&m?.rowIndex===ie&&m?.columnIndex===se;return(0,yt.jsx)(GBe,{name:J,rowIndex:ie,columnIndex:se,onChange:de?I:void 0,setSelectedCell:d,...we},se)})},ie))},J)),oe=!Y.length;return(0,yt.jsxs)("figure",{...(0,Do.useBlockProps)({ref:v}),children:[!oe&&g==="default"&&(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(Do.BlockControls,{group:"block",children:(0,yt.jsx)(Do.AlignmentControl,{label:(0,Pt.__)("Change column alignment"),alignmentControls:OBe,value:L(),onChange:J=>D(J)})}),(0,yt.jsx)(Do.BlockControls,{group:"other",children:(0,yt.jsx)(to.ToolbarDropdownMenu,{icon:YI,label:(0,Pt.__)("Edit table"),controls:ee})})]}),(0,yt.jsx)(Do.InspectorControls,{children:(0,yt.jsxs)(to.__experimentalToolsPanel,{label:(0,Pt.__)("Settings"),resetAll:()=>{t({hasFixedLayout:!0,head:[],foot:[]})},dropdownMenuProps:k,children:[(0,yt.jsx)(to.__experimentalToolsPanelItem,{hasValue:()=>a!==!0,label:(0,Pt.__)("Fixed width table cells"),onDeselect:()=>t({hasFixedLayout:!0}),isShownByDefault:!0,children:(0,yt.jsx)(to.ToggleControl,{label:(0,Pt.__)("Fixed width table cells"),checked:!!a,onChange:T})}),!oe&&(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(to.__experimentalToolsPanelItem,{hasValue:()=>i&&i.length,label:(0,Pt.__)("Header section"),onDeselect:()=>t({head:[]}),isShownByDefault:!0,children:(0,yt.jsx)(to.ToggleControl,{label:(0,Pt.__)("Header section"),checked:!!(i&&i.length),onChange:E})}),(0,yt.jsx)(to.__experimentalToolsPanelItem,{hasValue:()=>l&&l.length,label:(0,Pt.__)("Footer section"),onDeselect:()=>t({foot:[]}),isShownByDefault:!0,children:(0,yt.jsx)(to.ToggleControl,{label:(0,Pt.__)("Footer section"),checked:!!(l&&l.length),onChange:B})})]})]})}),!oe&&(0,yt.jsx)("table",{className:S(f.className,h.className,{"has-fixed-layout":a,"has-individual-borders":(0,to.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...f.style,...h.style},children:te}),oe?(0,yt.jsx)(to.Placeholder,{label:(0,Pt.__)("Table"),icon:(0,yt.jsx)(Do.BlockIcon,{icon:U1,showColors:!0}),instructions:(0,Pt.__)("Insert a table for sharing data."),children:(0,yt.jsxs)("form",{className:"blocks-table__placeholder-form",onSubmit:C,children:[(0,yt.jsx)(to.TextControl,{type:"number",label:(0,Pt.__)("Column count"),value:u,onChange:x,min:"1",className:"blocks-table__placeholder-input"}),(0,yt.jsx)(to.TextControl,{type:"number",label:(0,Pt.__)("Row count"),value:s,onChange:w,min:"1",className:"blocks-table__placeholder-input"}),(0,yt.jsx)(to.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,Pt.__)("Create Table")})]})}):(0,yt.jsx)(Mo,{attributes:e,setAttributes:t,isSelected:o,insertBlocksAfter:r,label:(0,Pt.__)("Table caption text"),showToolbarButton:o&&g==="default"})]})}var GBe=(0,li.memo)(function({tag:e,name:t,scope:r,colspan:o,rowspan:a,rowIndex:i,columnIndex:l,align:s,content:c,onChange:u,setSelectedCell:p}){return(0,yt.jsx)(e,{scope:e==="th"?r:void 0,colSpan:o,rowSpan:a,className:S({[`has-text-align-${s}`]:s},"wp-block-table__cell-content"),children:(0,yt.jsx)(Do.RichText,{identifier:`${t}.${i}.cells.${l}.content`,value:c,onChange:u,onFocus:()=>{p({sectionName:t,rowIndex:i,columnIndex:l,type:"cell"})},"aria-label":FBe[t],placeholder:HBe[t]})})}),jhe=UBe;var g7={$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 Ml=n(P(),1),Ls=n(y(),1);function Uhe({attributes:e}){let{hasFixedLayout:t,head:r,body:o,foot:a,caption:i}=e;if(!r.length&&!o.length&&!a.length)return null;let s=(0,Ml.__experimentalGetColorClassesAndStyles)(e),c=(0,Ml.__experimentalGetBorderClassesAndStyles)(e),u=S(s.className,c.className,{"has-fixed-layout":t}),p=!Ml.RichText.isEmpty(i),m=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,Ls.jsx)(h,{children:f.map(({cells:g},v)=>(0,Ls.jsx)("tr",{children:g.map(({content:b,tag:_,scope:k,align:x,colspan:w,rowspan:C},T)=>{let I=S({[`has-text-align-${x}`]:x});return(0,Ls.jsx)(Ml.RichText.Content,{className:I||void 0,"data-align":x,tagName:_,value:b,scope:_==="th"?k:void 0,colSpan:w,rowSpan:C},T)})},v))})};return(0,Ls.jsxs)("figure",{...Ml.useBlockProps.save(),children:[(0,Ls.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,Ls.jsx)(m,{type:"head",rows:r}),(0,Ls.jsx)(m,{type:"body",rows:o}),(0,Ls.jsx)(m,{type:"foot",rows:a})]}),p&&(0,Ls.jsx)(Ml.RichText.Content,{tagName:"figcaption",value:i,className:(0,Ml.__experimentalGetElementClassName)("caption")})]})}var Ghe=n(q(),1);function yO(e){let t=parseInt(e,10);if(Number.isInteger(t))return t<0||t===1?void 0:t.toString()}var _O=({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"]}}}}),$Be=e=>({table:{children:{thead:{allowEmpty:!0,children:_O(e)},tfoot:{allowEmpty:!0,children:_O(e)},tbody:{allowEmpty:!0,children:_O(e)}}}}),qBe={from:[{type:"raw",selector:"table",schema:$Be,transform:e=>{let t=Array.from(e.children).reduce((r,o)=>{if(!o.children.length)return r;let a=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,p)=>{let m=yO(p.getAttribute("rowspan")),d=yO(p.getAttribute("colspan")),{textAlign:f}=p.style||{},h;return(f==="left"||f==="center"||f==="right")&&(h=f),u.push({tag:p.nodeName.toLowerCase(),content:p.innerHTML,rowspan:m,colspan:d,align:h}),u},[]);return l.push({cells:c}),l},[]);return r[a]=i,r},{});return(0,Ghe.createBlock)("core/table",t)}}]},Whe=qBe;var{name:$he}=g7,qhe={icon:U1,example:{attributes:{head:[{cells:[{content:(0,Uc.__)("Version"),tag:"th"},{content:(0,Uc.__)("Jazz Musician"),tag:"th"},{content:(0,Uc.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:(0,Uc.__)("Jaco Pastorius"),tag:"td"},{content:(0,Uc.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:(0,Uc.__)("Betty Carter"),tag:"td"},{content:(0,Uc.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:(0,Uc.__)("Bebo Vald\xE9s"),tag:"td"},{content:(0,Uc.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:Whe,edit:jhe,save:Uhe,deprecated:Ahe},ZBe=()=>R({name:$he,metadata:g7,settings:qhe});var wO={};K(wO,{init:()=>XBe,metadata:()=>v7,name:()=>ige,settings:()=>lge});var Qu=n(N(),1);var v7={$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 Rs=n(P(),1),ege=n(q(),1),Zo=n(O(),1),I2=n(F(),1),tge=n(H(),1),Wt=n(N(),1),rge=n(ve(),1),oge=n(Sr(),1);var Gc=n(y(),1),Zhe="wp-block-table-of-contents__entry";function r1({nestedHeadingList:e,disableLinkActivation:t,onClick:r,ordered:o=!0}){return(0,Gc.jsx)(Gc.Fragment,{children:e.map((a,i)=>{let{content:l,link:s}=a.heading,c=s?(0,Gc.jsx)("a",{className:Zhe,href:s,"aria-disabled":t||void 0,onClick:t&&typeof r=="function"?r:void 0,children:l}):(0,Gc.jsx)("span",{className:Zhe,children:l}),u=o?"ol":"ul";return(0,Gc.jsxs)("li",{children:[c,a.children?(0,Gc.jsx)(u,{children:(0,Gc.jsx)(r1,{nestedHeadingList:a.children,disableLinkActivation:t,onClick:t&&typeof r=="function"?r:void 0,ordered:o})}):null]},i)})})}function E2(e){let t=[];return e.forEach((r,o)=>{if(r.content!==""&&r.level===e[0].level)if(e[o+1]?.level>r.level){let a=e.length;for(let i=o+1;i<e.length;i++)if(e[i].level===r.level){a=i;break}t.push({heading:r,children:E2(e.slice(o+1,a))})}else t.push({heading:r,children:null})}),t}var Khe=n(OQ(),1),Yhe=n(F(),1),Qhe=n(Pn(),1),Xhe=n(H(),1),B2=n(pr(),1),b7=n(P(),1);function YBe(e,t){let{getBlockAttributes:r,getBlockName:o,getBlocksByName:a,getClientIdsOfDescendants:i}=e(b7.store),l=e("core/editor").getPermalink()??null,s=a("core/nextpage").length!==0,{onlyIncludeCurrentPage:c,maxLevel:u}=r(t)??{},[p=""]=a("core/post-content"),m=i(p),d=1;if(s&&c){let v=m.indexOf(t);for(let[b,_]of m.entries()){if(b>=v)break;o(_)==="core/nextpage"&&d++}}let f=[],h=1,g=null;typeof l=="string"&&(g=s?(0,B2.addQueryArgs)(l,{page:h}):l);for(let v of m){let b=o(v);if(b==="core/nextpage"){if(h++,c&&h>d)break;typeof l=="string"&&(g=(0,B2.addQueryArgs)((0,B2.removeQueryArgs)(l,["page"]),{page:h}))}else if((!c||h===d)&&b==="core/heading"){let _=r(v);if(u&&_.level>u)continue;let k=typeof g=="string"&&typeof _.anchor=="string"&&_.anchor!=="";f.push({content:(0,Qhe.__unstableStripHTML)(_.content.replace(/(<br *\/?>)+/g," ")),level:_.level,link:k?`${g}#${_.anchor}`:null})}}return f}function QBe(e,t,r){let{getBlockAttributes:o}=e(b7.store),{updateBlockAttributes:a,__unstableMarkNextChangeAsNotPersistent:i}=t(b7.store),l=o(r);if(l===null)return;let s=YBe(e,r);(0,Khe.default)(s,l.headings)||window.queueMicrotask(()=>{i(),a(r,{headings:s})})}function Jhe(e){let t=(0,Yhe.useRegistry)();(0,Xhe.useEffect)(()=>t.subscribe(()=>QBe(t.select,t.dispatch,e)),[t,e])}var cr=n(y(),1);function kO({attributes:{headings:e=[],onlyIncludeCurrentPage:t,maxLevel:r,ordered:o=!0},clientId:a,setAttributes:i}){Jhe(a);let l=(0,Rs.useBlockProps)(),s=(0,rge.useInstanceId)(kO,"table-of-contents"),{createWarningNotice:c}=(0,I2.useDispatch)(oge.store),u=b=>{b.preventDefault(),c((0,Wt.__)("Links are disabled in the editor."),{id:`block-library/core/table-of-contents/redirection-prevented/${s}`,type:"snackbar"})},p=(0,I2.useSelect)(b=>{let{getBlockRootClientId:_,canInsertBlockType:k}=b(Rs.store),x=_(a);return k("core/list",x)},[a]),{replaceBlocks:m}=(0,I2.useDispatch)(Rs.store),d=Z(),f=E2(e),h=(0,cr.jsxs)(Rs.BlockControls,{children:[(0,cr.jsxs)(Zo.ToolbarGroup,{children:[(0,cr.jsx)(Zo.ToolbarButton,{icon:(0,Wt.isRTL)()?rv:ov,title:(0,Wt.__)("Unordered"),description:(0,Wt.__)("Convert to unordered list"),onClick:()=>i({ordered:!1}),isActive:o===!1}),(0,cr.jsx)(Zo.ToolbarButton,{icon:(0,Wt.isRTL)()?nv:al,title:(0,Wt.__)("Ordered"),description:(0,Wt.__)("Convert to ordered list"),onClick:()=>i({ordered:!0}),isActive:o===!0})]}),p&&(0,cr.jsx)(Zo.ToolbarGroup,{children:(0,cr.jsx)(Zo.ToolbarButton,{onClick:()=>m(a,(0,ege.createBlock)("core/list",{ordered:o,values:(0,tge.renderToString)((0,cr.jsx)(r1,{nestedHeadingList:f,ordered:o}))})),children:(0,Wt.__)("Convert to static list")})})]}),g=(0,cr.jsx)(Rs.InspectorControls,{children:(0,cr.jsxs)(Zo.__experimentalToolsPanel,{label:(0,Wt.__)("Settings"),resetAll:()=>{i({onlyIncludeCurrentPage:!1,maxLevel:void 0,ordered:!0})},dropdownMenuProps:d,children:[(0,cr.jsx)(Zo.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Wt.__)("Only include current page"),onDeselect:()=>i({onlyIncludeCurrentPage:!1}),isShownByDefault:!0,children:(0,cr.jsx)(Zo.ToggleControl,{label:(0,Wt.__)("Only include current page"),checked:t,onChange:b=>i({onlyIncludeCurrentPage:b}),help:t?(0,Wt.__)("Only including headings from the current page (if the post is paginated)."):(0,Wt.__)("Include headings from all pages (if the post is paginated).")})}),(0,cr.jsx)(Zo.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,Wt.__)("Limit heading levels"),onDeselect:()=>i({maxLevel:void 0}),isShownByDefault:!0,children:(0,cr.jsx)(Zo.SelectControl,{label:(0,Wt.__)("Include headings down to level"),value:r||"",options:[{value:"",label:(0,Wt.__)("All levels")},{value:"1",label:(0,Wt.__)("Heading 1")},{value:"2",label:(0,Wt.__)("Heading 2")},{value:"3",label:(0,Wt.__)("Heading 3")},{value:"4",label:(0,Wt.__)("Heading 4")},{value:"5",label:(0,Wt.__)("Heading 5")},{value:"6",label:(0,Wt.__)("Heading 6")}],onChange:b=>i({maxLevel:b?parseInt(b):void 0}),help:r?(0,Wt.__)("Only include headings up to and including this level."):(0,Wt.__)("Including all heading levels in the table of contents.")})})]})});return e.length===0?(0,cr.jsxs)(cr.Fragment,{children:[(0,cr.jsx)("div",{...l,children:(0,cr.jsx)(Zo.Placeholder,{icon:(0,cr.jsx)(Rs.BlockIcon,{icon:Lv}),label:(0,Wt.__)("Table of Contents"),instructions:(0,Wt.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})}),g]}):(0,cr.jsxs)(cr.Fragment,{children:[(0,cr.jsx)("nav",{...l,children:(0,cr.jsx)(o?"ol":"ul",{children:(0,cr.jsx)(r1,{nestedHeadingList:f,disableLinkActivation:!0,onClick:u,ordered:o})})}),h,g]})}var nge=n(P(),1);var y7=n(y(),1);function age({attributes:{headings:e=[],ordered:t=!0}}){if(e.length===0)return null;let r=t?"ol":"ul";return(0,y7.jsx)("nav",{...nge.useBlockProps.save(),children:(0,y7.jsx)(r,{children:(0,y7.jsx)(r1,{nestedHeadingList:E2(e),ordered:t})})})}var{name:ige}=v7,lge={icon:Lv,edit:kO,save:age,example:{innerBlocks:[{name:"core/heading",attributes:{level:2,content:(0,Qu.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,Qu.__)("Subheading")}},{name:"core/heading",attributes:{level:2,content:(0,Qu.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,Qu.__)("Subheading")}}],attributes:{headings:[{content:(0,Qu.__)("Heading"),level:2},{content:(0,Qu.__)("Subheading"),level:3},{content:(0,Qu.__)("Heading"),level:2},{content:(0,Qu.__)("Subheading"),level:3}]}}},XBe=()=>R({name:ige,metadata:v7,settings:lge});var TO={};K(TO,{init:()=>rIe,metadata:()=>x7,name:()=>mge,settings:()=>dge});var n1=n(N(),1),ea=n(P(),1),a1=n(O(),1),Kf=n(F(),1),Yf=n(H(),1);var o1=n(N(),1),_7=n(P(),1),CO=n(O(),1);var sge=n(F(),1);var N2=n(y(),1);function cge({tabsClientId:e}){let{moveTab:t}=X0(e),{tabCount:r,activeIndex:o}=(0,sge.useSelect)(a=>{if(!e)return{tabCount:0,activeIndex:0};let{getBlocks:i,getBlockAttributes:l}=a(_7.store),s=l(e);return{tabCount:i(e).find(u=>u.name==="core/tab-panels")?.innerBlocks.length??0,activeIndex:s?.editorActiveTabIndex??s?.activeTabIndex??0}},[e]);return(0,N2.jsxs)(_7.BlockControls,{group:"parent",children:[(0,N2.jsx)(CO.ToolbarButton,{className:"wp-block-tab-list__mover-button",icon:(0,o1.isRTL)()?gh:A_,label:(0,o1.__)("Move tab before"),onClick:()=>t(-1),disabled:o<=0,accessibleWhenDisabled:!0}),(0,N2.jsx)(CO.ToolbarButton,{className:"wp-block-tab-list__mover-button",icon:(0,o1.isRTL)()?A_:gh,label:(0,o1.__)("Move tab after"),onClick:()=>t(1),disabled:o>=r-1,accessibleWhenDisabled:!0})]})}var si=n(y(),1),JBe=[];function eIe({attributes:e,clientId:t,setAttributes:r,__unstableLayoutClassNames:o}){let{ariaLabel:a}=e,i=(0,ea.__experimentalUseColorProps)(e),l=(0,ea.__experimentalUseBorderProps)(e),s=(0,ea.__experimentalGetSpacingClassesAndStyles)(e),c=Z(),{tabsClientId:u,tabPanels:p,editorActiveTabIndex:m,activeTabIndex:d}=(0,Kf.useSelect)(z=>{let{getBlockRootClientId:j,getBlockAttributes:G,getBlocks:W}=z(ea.store),$=j(t),V=G($),Q=W($)?.find(Y=>Y.name==="core/tab-panels");return{tabsClientId:$,tabPanels:Q?.innerBlocks??JBe,editorActiveTabIndex:V?.editorActiveTabIndex,activeTabIndex:V?.activeTabIndex??0}},[t]),f=(0,Kf.useRegistry)(),{isBlockSelected:h,hasSelectedInnerBlock:g}=(0,Kf.useSelect)(ea.store),{updateBlockAttributes:v,selectBlock:b,__unstableMarkNextChangeAsNotPersistent:_}=(0,Kf.useDispatch)(ea.store),{insertTab:k,removeTab:x}=X0(u),w=m??d,C=(0,Yf.useMemo)(()=>p.map(z=>({label:z.attributes.label||"",clientId:z.clientId})),[p]);function T(z){u&&z!==w&&f.batch(()=>{b(t),_(),v(u,{editorActiveTabIndex:z})})}function I(z,j){let G=C[z];G?.clientId&&v(G.clientId,{label:j})}let D=(0,Yf.useRef)(),L=(0,Yf.useRef)(C.length);(0,Yf.useEffect)(()=>{let z=L.current;if(L.current=C.length,!D.current||C.length===z||!h(u)&&!g(u,!0))return;(G=>{window.requestAnimationFrame(()=>{let W=D.current?.querySelectorAll("button")?.[G];(W?.querySelector("[contenteditable]")??W)?.focus()})})(w)},[w,g,h,u,C.length]);let E=(0,ea.useBlockProps)({role:"tablist",ref:D,className:o}),B=S(i.className,l.className),A={...i.style,...l.style,...s.style};return(0,si.jsxs)(si.Fragment,{children:[(0,si.jsx)(ea.InspectorControls,{group:"settings",children:(0,si.jsx)(a1.__experimentalToolsPanel,{label:(0,n1.__)("Settings"),resetAll:()=>r({ariaLabel:void 0}),dropdownMenuProps:c,children:(0,si.jsx)(a1.__experimentalToolsPanelItem,{label:(0,n1.__)("Label"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>r({ariaLabel:void 0}),children:(0,si.jsx)(a1.TextControl,{label:(0,n1.__)("Label"),help:(0,n1.__)("Briefly describe this tab section for screen reader users. Examples: Event information, Product details, and Account settings."),value:a||"",onChange:z=>r({ariaLabel:z||void 0})})})})}),(0,si.jsx)(cge,{tabsClientId:u}),(0,si.jsx)(Lm,{tabsClientId:u}),(0,si.jsx)("div",{...E,children:C.map((z,j)=>(0,si.jsx)("button",{type:"button",role:"tab","aria-selected":j===w,className:B||void 0,style:A,tabIndex:-1,onFocus:()=>{T(j)},children:(0,si.jsx)(ea.RichText,{tagName:"span",withoutInteractiveFormatting:!0,placeholder:(0,n1.__)("Tab title"),value:z.label,onChange:W=>I(j,W),__unstableOnSplitAtEnd:()=>k(j+1),onRemove:()=>x(j)})},z.clientId||j))})]})}var uge=eIe;var Wc=n(P(),1),SO=n(y(),1);function pge({attributes:e}){let{tabs:t}=e,r=Wc.useBlockProps.save({role:"tablist"}),o=(0,Wc.__experimentalGetColorClassesAndStyles)(e),a=(0,Wc.__experimentalGetBorderClassesAndStyles)(e),i=(0,Wc.__experimentalGetSpacingClassesAndStyles)(e),l=S(o.className,a.className),s={...o.style,...a.style,...i.style};return(0,SO.jsx)("div",{...r,children:t.map((c,u)=>(0,SO.jsx)(Wc.RichText.Content,{className:l||void 0,style:s,tagName:"button",value:c.label,type:"button",role:"tab"},u))})}var x7={$schema:"https://schemas.wp.org/trunk/block.json",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"],usesContext:["core/tabs-list"],attributes:{tabs:{type:"array",source:"query",selector:"button",query:{label:{type:"rich-text",source:"rich-text",role:"content"}},default:[]}},supports:{html:!1,ariaLabel:!0,visibility:!1,lock:!1,color:{background:!0,text:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0},layout:{default:{type:"flex",flexWrap:"wrap"},allowVerticalAlignment:!1,allowOrientation:!1,allowWrap:!1},spacing:{padding:!0,blockGap:!0,__experimentalSkipSerialization:["padding"],__experimentalDefaultControls:{padding:!0,blockGap:!0}}},selectors:{border:".wp-block-tab-list button",color:{background:".wp-block-tab-list button",text:".wp-block-tab-list button"},spacing:{padding:".wp-block-tab-list button"}},style:"wp-block-tab-list",editorStyle:"wp-block-tab-list-editor"};var{name:mge}=x7,dge={icon:RI,edit:uge,save:pge},rIe=()=>R({name:mge,metadata:x7,settings:dge});var PO={};K(PO,{init:()=>lIe,metadata:()=>T7,name:()=>yge,settings:()=>_ge});var Qf=n(N(),1);var w7=n(P(),1);var k7=n(P(),1),D2=n(F(),1),fge=n(H(),1),oIe=[];function hge(e){let{tabPanels:t,tabListClientId:r}=(0,D2.useSelect)(l=>{let{getBlocks:s}=l(k7.store),c=s(e),u=c.find(m=>m.name==="core/tab-panels"),p=c.find(m=>m.name==="core/tab-list");return{tabPanels:u?.innerBlocks??oIe,tabListClientId:p?.clientId??null}},[e]),{updateBlockAttributes:o,__unstableMarkNextChangeAsNotPersistent:a}=(0,D2.useDispatch)(k7.store),{getBlockAttributes:i}=(0,D2.useSelect)(k7.store);(0,fge.useEffect)(()=>{if(!r)return;let l=t.map(c=>({label:c.attributes.label||""})),s=i(r)?.tabs??[];JSON.stringify(l)!==JSON.stringify(s)&&(a(),o(r,{tabs:l}))},[t,r,i,o,a])}var C7=n(y(),1),nIe=[["core/tab-list"],["core/tab-panels"]];function aIe({clientId:e}){hge(e);let t=(0,w7.useBlockProps)(),r=(0,w7.useInnerBlocksProps)(t,{__experimentalCaptureToolbars:!0,template:nIe,templateLock:"all",renderAppender:!1});return(0,C7.jsxs)("div",{...r,children:[(0,C7.jsx)(Lm,{tabsClientId:e}),r.children]})}var gge=aIe;var S7=n(P(),1),vge=n(y(),1);function bge(){let e=S7.useBlockProps.save(),t=S7.useInnerBlocksProps.save(e);return(0,vge.jsx)("div",{...t})}var T7={$schema:"https://schemas.wp.org/trunk/block.json",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:{allowEditing:!1},html:!1,interactivity:!0,spacing:{blockGap:!0,margin:!0,padding:!0},typography:{fontSize:!0,__experimentalFontFamily:!0}},usesContext:["core/tabs-list","core/tabs-id"],style:"wp-block-tabs",viewScriptModule:"@wordpress/block-library/tabs/view"};var{name:yge}=T7,_ge={icon:XI,example:{innerBlocks:[{name:"core/tab-list",attributes:{tabs:[{label:(0,Qf.__)("Tab 1")},{label:(0,Qf.__)("Tab 2")}]}},{name:"core/tab-panels",innerBlocks:[1,2].map(e=>({name:"core/tab-panel",attributes:{anchor:`tab-${e}`,label:(0,Qf.sprintf)((0,Qf.__)("Tab %s"),e)},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Qf.__)("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:gge,save:bge},lIe=()=>R({name:yge,metadata:T7,settings:_ge});var BO={};K(BO,{init:()=>dIe,metadata:()=>P7,name:()=>Bge,settings:()=>Ige});var EO=n(q(),1),sIe={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,EO.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,EO.createBlock)("core/categories")}]},xge=sIe;var P7={$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 $t=n(O(),1),Cge=n(F(),1),Na=n(N(),1),i1=n(P(),1),Sge=n(re(),1),Tge=n(sp(),1),Pge=n(ve(),1);var xr=n(y(),1),uIe=1,pIe=100,kge=.1,wge=100;function mIe({attributes:e,setAttributes:t,name:r}){let{taxonomy:o,showTagCounts:a,numberOfTags:i,smallestFontSize:l,largestFontSize:s}=e,[c]=(0,i1.useSettings)("spacing.units"),u=Z(),p=(0,$t.__experimentalUseCustomUnits)({availableUnits:c?[...c,"pt"]:["%","px","em","rem","pt"]}),m=(0,Cge.useSelect)(x=>x(Sge.store).getTaxonomies({per_page:-1}),[]),d=()=>{let x={label:(0,Na.__)("- Select -"),value:"",disabled:!0},w=(m??[]).filter(C=>!!C.show_cloud).map(C=>({value:C.slug,label:C.name}));return[x,...w]},f=(x,w)=>{let[C,T]=(0,$t.__experimentalParseQuantityAndUnitFromRawValue)(w);if(!Number.isFinite(C))return;let I={[x]:w};Object.entries({smallestFontSize:l,largestFontSize:s}).forEach(([D,L])=>{let[E,B]=(0,$t.__experimentalParseQuantityAndUnitFromRawValue)(L);D!==x&&B!==T&&(I[D]=`${E}${T}`)}),t(I)},h=(0,xr.jsx)(i1.InspectorControls,{children:(0,xr.jsxs)($t.__experimentalToolsPanel,{label:(0,Na.__)("Settings"),resetAll:()=>{t({taxonomy:"post_tag",showTagCounts:!1,numberOfTags:45,smallestFontSize:"8pt",largestFontSize:"22pt"})},dropdownMenuProps:u,children:[(0,xr.jsx)($t.__experimentalToolsPanelItem,{hasValue:()=>o!=="post_tag",label:(0,Na.__)("Taxonomy"),onDeselect:()=>t({taxonomy:"post_tag"}),isShownByDefault:!0,children:(0,xr.jsx)($t.SelectControl,{label:(0,Na.__)("Taxonomy"),options:d(),value:o,onChange:x=>t({taxonomy:x})})}),(0,xr.jsx)($t.__experimentalToolsPanelItem,{hasValue:()=>l!=="8pt"||s!=="22pt",label:(0,Na.__)("Font size"),onDeselect:()=>t({smallestFontSize:"8pt",largestFontSize:"22pt"}),isShownByDefault:!0,children:(0,xr.jsxs)($t.Flex,{gap:4,children:[(0,xr.jsx)($t.FlexItem,{isBlock:!0,children:(0,xr.jsx)($t.__experimentalUnitControl,{label:(0,Na.__)("Smallest size"),value:l,onChange:x=>{f("smallestFontSize",x)},units:p,min:kge,max:wge})}),(0,xr.jsx)($t.FlexItem,{isBlock:!0,children:(0,xr.jsx)($t.__experimentalUnitControl,{label:(0,Na.__)("Largest size"),value:s,onChange:x=>{f("largestFontSize",x)},units:p,min:kge,max:wge})})]})}),(0,xr.jsx)($t.__experimentalToolsPanelItem,{hasValue:()=>i!==45,label:(0,Na.__)("Number of tags"),onDeselect:()=>t({numberOfTags:45}),isShownByDefault:!0,children:(0,xr.jsx)($t.RangeControl,{label:(0,Na.__)("Number of tags"),value:i,onChange:x=>t({numberOfTags:x}),min:uIe,max:pIe,required:!0})}),(0,xr.jsx)($t.__experimentalToolsPanelItem,{hasValue:()=>a!==!1,label:(0,Na.__)("Show tag counts"),onDeselect:()=>t({showTagCounts:!1}),isShownByDefault:!0,children:(0,xr.jsx)($t.ToggleControl,{label:(0,Na.__)("Show tag counts"),checked:a,onChange:()=>t({showTagCounts:!a})})})]})}),{content:g,status:v,error:b}=(0,Tge.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),_=(0,Pge.useDisabled)(),k=(0,i1.useBlockProps)({ref:_});return(0,xr.jsxs)(xr.Fragment,{children:[h,v==="loading"&&(0,xr.jsx)("div",{...k,children:(0,xr.jsx)($t.Spinner,{})}),v==="error"&&(0,xr.jsx)("div",{...k,children:(0,xr.jsx)("p",{children:(0,Na.sprintf)((0,Na.__)("Error: %s"),b)})}),v==="success"&&(0,xr.jsx)(ko,{wrapperProps:k,html:g})]})}var Ege=mIe;var{name:Bge}=P7,Ige={icon:Rv,example:{},edit:Ege,transforms:xge},dIe=()=>R({name:Bge,metadata:P7,settings:Ige});var RO={};K(RO,{init:()=>xIe,metadata:()=>E7,name:()=>h0e,settings:()=>g0e});var m0e=n(re(),1),d0e=n(F(),1);var LO=n(bu(),1),f0e=n(en(),1);var E7={$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 n0e=n(q(),1),d1=n(F(),1),vo=n(P(),1),Zc=n(O(),1),Ji=n(N(),1),z2=n(re(),1),a0e=n(H(),1),i0e=n(Sr(),1);var Mm=n(N(),1),Jf=n(O(),1),Mge=n(H(),1),zge=n(F(),1),Vge=n(re(),1);var l1=n(F(),1),B7=n(re(),1),Nge=n(P(),1),Dge=n(H(),1),Lge=n(q(),1),IO=n(N(),1);function s1(e,t){let{templateParts:r,isResolving:o}=(0,l1.useSelect)(i=>{let{getEntityRecords:l,isResolving:s}=i(B7.store),c={per_page:-1};return{templateParts:l("postType","wp_template_part",c),isResolving:s("getEntityRecords",["postType","wp_template_part",c])}},[]);return{templateParts:(0,Dge.useMemo)(()=>r?r.filter(i=>_a(i.theme,i.slug)!==t&&(!e||e==="uncategorized"||i.area===e))||[]:[],[r,e,t]),isResolving:o}}function c1(e,t){return(0,l1.useSelect)(r=>{let o=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:a,getPatternsByBlockTypes:i}=r(Nge.store),l=a(t);return i(o,l)},[e,t])}function I7(e,t){let{saveEntityRecord:r}=(0,l1.useDispatch)(B7.store);return async(o=[],a=(0,IO.__)("Untitled Template Part"))=>{let i=IC(a).replace(/[^\w-]+/g,"")||"wp-custom-part",l={title:a,slug:i,content:(0,Lge.serialize)(o),area:e},s=await r("postType","wp_template_part",l);t({slug:s.slug,theme:s.theme,area:void 0})}}function N7(e){return(0,l1.useSelect)(t=>{let r=t(B7.store).getCurrentTheme()?.default_template_part_areas||[],o=r.find(i=>i.area===e),a=r.find(i=>i.area==="uncategorized");return{icon:o?.icon||a?.icon,label:o?.label||(0,IO.__)("Template Part"),tagName:o?.area_tag??"div"}},[e])}var Rge=n(H(),1),Am=n(N(),1),As=n(O(),1),Xu=n(y(),1);function Age({areaLabel:e,onClose:t,onSubmit:r}){let[o,a]=(0,Rge.useState)(""),i=l=>{l.preventDefault(),r(o)};return(0,Xu.jsx)(As.Modal,{title:(0,Am.sprintf)((0,Am.__)("Create new %s"),e.toLowerCase()),onRequestClose:t,focusOnMount:"firstContentElement",size:"small",children:(0,Xu.jsx)("form",{onSubmit:i,children:(0,Xu.jsxs)(As.__experimentalVStack,{spacing:"5",children:[(0,Xu.jsx)(As.TextControl,{label:(0,Am.__)("Name"),value:o,onChange:a,placeholder:(0,Am.__)("Custom Template Part")}),(0,Xu.jsxs)(As.__experimentalHStack,{justify:"right",children:[(0,Xu.jsx)(As.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t(),a("")},children:(0,Am.__)("Cancel")}),(0,Xu.jsx)(As.Button,{variant:"primary",type:"submit",accessibleWhenDisabled:!0,disabled:!o.length,__next40pxDefaultSize:!0,children:(0,Am.__)("Create")})]})]})})})}var Xf=n(y(),1);function Oge({area:e,clientId:t,templatePartId:r,onOpenSelectionModal:o,setAttributes:a}){let{templateParts:i,isResolving:l}=s1(e,r),s=c1(e,t),{isBlockBasedTheme:c,canCreateTemplatePart:u}=(0,zge.useSelect)(h=>{let{getCurrentTheme:g,canUser:v}=h(Vge.store);return{isBlockBasedTheme:g()?.is_block_theme,canCreateTemplatePart:v("create",{kind:"postType",name:"wp_template_part"})}},[]),[p,m]=(0,Mge.useState)(!1),d=N7(e),f=I7(e,a);return(0,Xf.jsxs)(Jf.Placeholder,{icon:s0(d.icon),label:d.label,instructions:c?(0,Mm.sprintf)((0,Mm.__)("Choose an existing %s or create a new one."),d.label.toLowerCase()):(0,Mm.sprintf)((0,Mm.__)("Choose an existing %s."),d.label.toLowerCase()),children:[l&&(0,Xf.jsx)(Jf.Spinner,{}),!l&&!!(i.length||s.length)&&(0,Xf.jsx)(Jf.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:o,children:(0,Mm.__)("Choose")}),!l&&c&&u&&(0,Xf.jsx)(Jf.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{m(!0)},children:(0,Mm.__)("Start blank")}),p&&(0,Xf.jsx)(Age,{areaLabel:d.label,onClose:()=>m(!1),onSubmit:h=>{f([],h)}})]})}var L2=n(H(),1),zm=n(N(),1),jge=n(Sr(),1),Uge=n(F(),1),Gge=n(P(),1),D7=n(O(),1);var Fge=n(q(),1);function Hge(e){return{name:_a(e.theme,e.slug),title:e.title.rendered,blocks:(0,Fge.parse)(e.content.raw),templatePart:e}}var $c=n(y(),1);function Wge({setAttributes:e,onClose:t,templatePartId:r=null,area:o,clientId:a}){let[i,l]=(0,L2.useState)(""),{templateParts:s}=s1(o,r),c=(0,L2.useMemo)(()=>{let g=s.map(v=>Hge(v));return qb(g,i)},[s,i]),u=c1(o,a),p=(0,L2.useMemo)(()=>qb(u,i),[u,i]),{createSuccessNotice:m}=(0,Uge.useDispatch)(jge.store),d=g=>{e({slug:g.slug,theme:g.theme,area:void 0}),m((0,zm.sprintf)((0,zm.__)('Template Part "%s" inserted.'),g.title?.rendered||g.slug),{type:"snackbar"}),t()},f=!!c.length,h=!!p.length;return(0,$c.jsxs)("div",{className:"block-library-template-part__selection-content",children:[(0,$c.jsx)("div",{className:"block-library-template-part__selection-search",children:(0,$c.jsx)(D7.SearchControl,{onChange:l,value:i,label:(0,zm.__)("Search"),placeholder:(0,zm.__)("Search")})}),f&&(0,$c.jsxs)("div",{children:[(0,$c.jsx)("h2",{children:(0,zm.__)("Existing template parts")}),(0,$c.jsx)(Gge.__experimentalBlockPatternsList,{blockPatterns:c,onClickPattern:g=>{d(g.templatePart)}})]}),!f&&!h&&(0,$c.jsx)(D7.__experimentalHStack,{alignment:"center",children:(0,$c.jsx)("p",{children:(0,zm.__)("No results found.")})})]})}var A2=n(re(),1),L7=n(O(),1),p1=n(N(),1),Qge=n(F(),1),Xge=n(P(),1);var qc=n(N(),1),R2=n(H(),1),u1=n(F(),1),Xi=n(O(),1),DO=n(re(),1),Kge=n(Sr(),1);var ci=n(q(),1);function $ge(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},qge((0,ci.createBlock)("core/legacy-widget",o))}let t=(0,ci.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;let r=t[0];return r.name==="core/widget-group"?(0,ci.createBlock)((0,ci.getGroupingBlockName)(),void 0,NO(r.innerBlocks)):r.innerBlocks.length>0?(0,ci.cloneBlock)(r,void 0,NO(r.innerBlocks)):r}function qge(e){let t=(0,ci.getPossibleBlockTransformations)([e]).filter(r=>{if(!r.transforms)return!0;let o=r.transforms?.from?.find(i=>i.blocks&&i.blocks.includes("*")),a=r.transforms?.to?.find(i=>i.blocks&&i.blocks.includes("*"));return!o&&!a});if(t.length)return(0,ci.switchToBlockType)(e,t[0].name)}function NO(e=[]){return e.flatMap(t=>t.name==="core/legacy-widget"?qge(t):(0,ci.createBlock)(t.name,t.attributes,NO(t.innerBlocks))).filter(t=>!!t)}var Ju=n(y(),1),Zge={per_page:-1,_fields:"id,name,description,status,widgets"};function Yge({area:e,setAttributes:t}){let[r,o]=(0,R2.useState)(""),[a,i]=(0,R2.useState)(!1),l=(0,u1.useRegistry)(),{sidebars:s,hasResolved:c}=(0,u1.useSelect)(f=>{let{getSidebars:h,hasFinishedResolution:g}=f(DO.store);return{sidebars:h(Zge),hasResolved:g("getSidebars",[Zge])}},[]),{createErrorNotice:u}=(0,u1.useDispatch)(Kge.store),p=I7(e,t),m=(0,R2.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,qc.__)("Select widget area")},...f]:[]},[s]);if(!c)return(0,Ju.jsx)(Xi.__experimentalSpacer,{marginBottom:"0"});if(c&&!m.length)return null;async function d(f){if(f.preventDefault(),a||!r)return;i(!0);let h=m.find(({value:k})=>k===r),{getWidgets:g}=l.resolveSelect(DO.store),v=await g({sidebar:h.value,_embed:"about"}),b=new Set,_=v.flatMap(k=>{let x=$ge(k);return x||(b.add(k.id_base),[])});await p(_,(0,qc.sprintf)((0,qc.__)("Widget area: %s"),h.label)),b.size&&u((0,qc.sprintf)((0,qc.__)("Unable to import the following widgets: %s."),Array.from(b).join(", ")),{type:"snackbar"}),i(!1)}return(0,Ju.jsx)(Xi.__experimentalSpacer,{marginBottom:"4",children:(0,Ju.jsxs)(Xi.__experimentalHStack,{as:"form",onSubmit:d,children:[(0,Ju.jsx)(Xi.FlexBlock,{children:(0,Ju.jsx)(Xi.SelectControl,{label:(0,qc.__)("Import widget area"),value:r,options:m,onChange:f=>o(f),disabled:!m.length})}),(0,Ju.jsx)(Xi.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"},children:(0,Ju.jsx)(Xi.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:a,"aria-disabled":a||!r,children:(0,qc._x)("Import","button label")})})]})})}var Ms=n(y(),1),{HTMLElementControl:hIe}=U(Xge.privateApis);function Jge({tagName:e,setAttributes:t,isEntityAvailable:r,templatePartId:o,defaultWrapper:a,hasInnerBlocks:i,clientId:l}){let[s,c]=(0,A2.useEntityProp)("postType","wp_template_part","area",o),[u,p]=(0,A2.useEntityProp)("postType","wp_template_part","title",o),d=(0,Qge.useSelect)(f=>f(A2.store).getCurrentTheme()?.default_template_part_areas||[],[]).map(({label:f,area:h})=>({label:f,value:h}));return(0,Ms.jsxs)(Ms.Fragment,{children:[r&&(0,Ms.jsxs)(Ms.Fragment,{children:[(0,Ms.jsx)(L7.TextControl,{label:(0,p1.__)("Title"),value:u,onChange:f=>{p(f)},onFocus:f=>f.target.select()}),(0,Ms.jsx)(L7.SelectControl,{label:(0,p1.__)("Area"),labelPosition:"top",options:d,value:s,onChange:c})]}),(0,Ms.jsx)(hIe,{tagName:e||"",onChange:f=>t({tagName:f}),clientId:l,options:[{label:(0,p1.sprintf)((0,p1.__)("Default based on area (%s)"),`<${a}>`),value:""},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"},{label:"<div>",value:"div"}]}),!i&&(0,Ms.jsx)(Yge,{area:s,setAttributes:t})]})}var m1=n(re(),1),ui=n(P(),1),M2=n(F(),1),e0e=n(H(),1),t0e=n(q(),1),R7=n(y(),1);function gIe(e){if((0,ui.useBlockEditingMode)()==="contentOnly")return!1;if(!e)return ui.InnerBlocks.ButtonBlockAppender}function r0e(e){let t=(0,M2.useSelect)(o=>{let{getSettings:a}=o(ui.store);return a()?.supportsLayout},[]),[r]=(0,ui.useSettings)("layout");if(t)return e?.inherit?r||{}:e}function vIe({postId:e,layout:t,tagName:r,blockProps:o}){(0,ui.useBlockEditingMode)("disabled");let{content:a,editedBlocks:i}=(0,M2.useSelect)(c=>{if(!e)return{};let{getEditedEntityRecord:u}=c(m1.store),p=u("postType","wp_template_part",e,{context:"view"});return{editedBlocks:p.blocks,content:p.content}},[e]),l=(0,e0e.useMemo)(()=>{if(e)return i||(!a||typeof a!="string"?[]:(0,t0e.parse)(a))},[e,i,a]),s=(0,ui.useInnerBlocksProps)(o,{value:l,onInput:()=>{},onChange:()=>{},renderAppender:!1,layout:r0e(t)});return(0,R7.jsx)(r,{...s})}function bIe({postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:a}){let i=(0,M2.useSelect)(d=>d(ui.store).getSettings().onNavigateToEntityRecord,[]),[l,s,c]=(0,m1.useEntityBlockEditor)("postType","wp_template_part",{id:e}),u=(0,ui.useInnerBlocksProps)(a,{value:l,onInput:s,onChange:c,renderAppender:gIe(t),layout:r0e(r)}),m=(0,ui.useBlockEditingMode)()==="contentOnly"&&i?{onDoubleClick:()=>i({postId:e,postType:"wp_template_part"})}:{};return(0,R7.jsx)(o,{...u,...m})}function o0e({postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:a}){let{canViewTemplatePart:i,canEditTemplatePart:l}=(0,M2.useSelect)(c=>({canViewTemplatePart:!!c(m1.store).canUser("read",{kind:"postType",name:"wp_template_part",id:e}),canEditTemplatePart:!!c(m1.store).canUser("update",{kind:"postType",name:"wp_template_part",id:e})}),[e]);return i?(0,R7.jsx)(l?bIe:vIe,{postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:a}):null}var qt=n(y(),1),l0e=["header","footer","navigation-overlay"];function yIe({isEntityAvailable:e,area:t,templatePartId:r,isTemplatePartSelectionOpen:o,setIsTemplatePartSelectionOpen:a}){let{templateParts:i}=s1(t,r),l=!!i.length;return e&&l&&l0e.includes(t)?(0,qt.jsx)(Zc.MenuItem,{onClick:()=>{a(!0)},"aria-expanded":o,"aria-haspopup":"dialog",children:(0,Ji.__)("Replace")}):null}function _Ie({area:e,clientId:t,isEntityAvailable:r,onSelect:o}){let a=c1(e,t);return r&&!!a.length&&l0e.includes(e)?(0,qt.jsx)(Zc.PanelBody,{title:(0,Ji.__)("Design"),children:(0,qt.jsx)(vo.__experimentalBlockPatternsList,{label:(0,Ji.__)("Templates"),blockPatterns:a,onClickPattern:o,showTitlesAsTooltip:!0})}):null}function s0e({attributes:e,setAttributes:t,clientId:r}){let{createSuccessNotice:o}=(0,d1.useDispatch)(i0e.store),{editEntityRecord:a}=(0,d1.useDispatch)(z2.store),i=(0,d1.useSelect)(B=>B(z2.store).getCurrentTheme()?.stylesheet,[]),{slug:l,theme:s=i,tagName:c,layout:u={}}=e,p=_a(s,l),m=(0,vo.useHasRecursion)(p),[d,f]=(0,a0e.useState)(!1),{isResolved:h,hasInnerBlocks:g,isMissing:v,area:b,onNavigateToEntityRecord:_,title:k,canUserEdit:x,canUserEditBlock:w}=(0,d1.useSelect)(B=>{let{getEditedEntityRecord:A,hasFinishedResolution:z}=B(z2.store),{getBlockCount:j,getSettings:G,canEditBlock:W}=B(vo.store),$=["postType","wp_template_part",p],V=p?A(...$):null,Q=V?.area||e.area,Y=p?z("getEditedEntityRecord",$):!1,ee=Y?B(z2.store).canUser("update",{kind:"postType",name:"wp_template_part",id:p}):!1;return{hasInnerBlocks:j(r)>0,isResolved:Y,isMissing:Y&&(!V||Object.keys(V).length===0),area:Q,onNavigateToEntityRecord:G().onNavigateToEntityRecord,title:V?.title,canUserEdit:!!ee,canUserEditBlock:W(r)}},[p,e.area,r]),C=N7(b),T=(0,vo.useBlockProps)(),I=!l,D=!I&&!v&&h,L=c||C.tagName,E=async B=>{await a("postType","wp_template_part",p,{blocks:B.blocks,content:(0,n0e.serialize)(B.blocks)}),o((0,Ji.sprintf)((0,Ji.__)('Template Part "%s" updated.'),k||l),{type:"snackbar"})};return!g&&(l&&!s||l&&v)?(0,qt.jsx)(L,{...T,children:(0,qt.jsx)(vo.Warning,{children:(0,Ji.sprintf)((0,Ji.__)("Template part has been deleted or is unavailable: %s"),l)})}):D&&m?(0,qt.jsx)(L,{...T,children:(0,qt.jsx)(vo.Warning,{children:(0,Ji.__)("Block cannot be rendered inside itself.")})}):(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsxs)(vo.RecursionProvider,{uniqueId:p,children:[D&&_&&x&&(0,qt.jsx)(vo.BlockControls,{group:"other",children:(0,qt.jsx)(Zc.ToolbarButton,{onClick:()=>{_({postId:p,postType:"wp_template_part"})},children:(0,Ji.__)("Edit original")})}),x&&(0,qt.jsx)(vo.InspectorControls,{group:"advanced",children:(0,qt.jsx)(Jge,{tagName:c,setAttributes:t,isEntityAvailable:D,templatePartId:p,defaultWrapper:C.tagName,hasInnerBlocks:g,clientId:r})}),I&&(0,qt.jsx)(L,{...T,children:(0,qt.jsx)(Oge,{area:e.area,templatePartId:p,clientId:r,setAttributes:t,onOpenSelectionModal:()=>f(!0)})}),(0,qt.jsx)(vo.BlockSettingsMenuControls,{children:({selectedClientIds:B})=>!w||!(B.length===1&&r===B[0])?null:(0,qt.jsx)(yIe,{isEntityAvailable:D,area:b,clientId:r,templatePartId:p,isTemplatePartSelectionOpen:d,setIsTemplatePartSelectionOpen:f})}),(0,qt.jsx)(vo.InspectorControls,{group:"settings",children:(0,qt.jsx)(_Ie,{area:b,clientId:r,isEntityAvailable:D,onSelect:B=>E(B)})}),D&&(0,qt.jsx)(o0e,{tagName:L,blockProps:T,postId:p,hasInnerBlocks:g,layout:u}),!I&&!h&&(0,qt.jsx)(L,{...T,children:(0,qt.jsx)(Zc.Spinner,{})})]}),d&&(0,qt.jsx)(Zc.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,Ji.sprintf)((0,Ji.__)("Choose a %s"),C.label.toLowerCase()),onRequestClose:()=>f(!1),isFullScreen:!0,children:(0,qt.jsx)(Wge,{templatePartId:p,clientId:r,area:b,setAttributes:t,onClose:()=>f(!1)})})]})}var c0e=n(re(),1),u0e=n(F(),1);function p0e(e,t){if(t!=="core/template-part")return e;if(e.variations){let r=(a,i)=>{let{area:l,theme:s,slug:c}=a;if(l)return l===i.area;if(!c)return!1;let{getCurrentTheme:u,getEntityRecord:p}=(0,u0e.select)(c0e.store),m=p("postType","wp_template_part",`${s||u()?.stylesheet}//${c}`);return m?.slug?m.slug===i.slug:m?.area===i.area},o=e.variations.map(a=>({...a,...!a.isActive&&{isActive:r},...typeof a.icon=="string"&&{icon:s0(a.icon)}}));return{...e,variations:o}}return e}var{name:h0e}=E7,g0e={icon:Iv,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;let{getCurrentTheme:r,getEditedEntityRecord:o}=(0,d0e.select)(m0e.store),a=o("postType","wp_template_part",(t||r()?.stylesheet)+"//"+e);if(a)return(0,f0e.decodeEntities)(a.title)||$re(a.slug||"")},edit:s0e},xIe=()=>{(0,LO.addFilter)("blocks.registerBlockType","core/template-part",p0e);let e=["core/post-template","core/post-content"];return(0,LO.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/removeTemplatePartsFromPostTemplates",(t,r,o,{getBlock:a,getBlockParentsByBlockName:i})=>{if(r.name!=="core/template-part")return t;for(let l of e)if(a(o)?.name===l||i(o,l).length)return!1;return!0}),R({name:h0e,metadata:E7,settings:g0e})};var VO={};K(VO,{init:()=>CIe,metadata:()=>A7,name:()=>C0e,settings:()=>S0e});var A7={$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 eh=n(N(),1),M7=n(P(),1),k0e=n(O(),1);var zl=n(O(),1),zs=n(y(),1),AO=(0,zs.jsx)(zl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,zs.jsx)(zl.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"})}),v0e=(0,zs.jsx)(zl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,zs.jsx)(zl.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"})}),b0e=(0,zs.jsx)(zl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,zs.jsx)(zl.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"})}),y0e=(0,zs.jsx)(zl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,zs.jsx)(zl.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"})}),_0e=(0,zs.jsx)(zl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,zs.jsx)(zl.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 V2=n(re(),1),MO=n(F(),1);function x0e(e,t){let[r]=(0,V2.useEntityProp)("taxonomy",t,"count",e),o=wIe(),a=!!(e&&t);return{hasContext:a,termCount:a?r||"":o}}function wIe(){let t=(0,MO.useSelect)(a=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=a("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?a(V2.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,MO.useSelect)(a=>{if(!r||!o)return"";let{getEntityRecords:i}=a(V2.store),l=i("taxonomy",r,{slug:o,per_page:1});return l&&l[0]&&l[0].count||""},[r,o])}var Vm=n(y(),1),zO={none:{label:(0,eh.__)("No brackets"),icon:AO},round:{label:(0,eh.__)("Round brackets"),icon:v0e,before:"(",after:")"},square:{label:(0,eh.__)("Square brackets"),icon:b0e,before:"[",after:"]"},curly:{label:(0,eh.__)("Curly brackets"),icon:y0e,before:"{",after:"}"},angle:{label:(0,eh.__)("Angle brackets"),icon:_0e,before:"<",after:">"}};function w0e({attributes:e,setAttributes:t,context:{termId:r,taxonomy:o}}){let{bracketType:a}=e,l=x0e(r,o)?.termCount||0,s=(0,M7.useBlockProps)(),c=Object.entries(zO).map(([p,{label:m,icon:d}])=>({role:"menuitemradio",title:m,isActive:a===p,icon:d,onClick:()=>{t({bracketType:p})}})),u=(p,m)=>{let{before:d="",after:f=""}=zO[m]||{};return`${d}${p}${f}`};return(0,Vm.jsxs)(Vm.Fragment,{children:[(0,Vm.jsx)(M7.BlockControls,{group:"block",children:(0,Vm.jsx)(k0e.ToolbarDropdownMenu,{icon:zO[a]?.icon??AO,label:(0,eh.__)("Change bracket type"),controls:c})}),(0,Vm.jsx)("div",{...s,children:u(l,a)})]})}var{name:C0e}=A7,S0e={icon:eN,example:{},edit:w0e},CIe=()=>R({name:C0e,metadata:A7,settings:S0e});var FO={};K(FO,{init:()=>EIe,metadata:()=>z7,name:()=>N0e,settings:()=>D0e});var z7={$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 P0e=n(N(),1),E0e=n(P(),1);var O2=n(re(),1),OO=n(F(),1);function T0e(e,t){let[r,o,a]=(0,O2.useEntityProp)("taxonomy",t,"description",e),i=TIe(),l=!!(e&&t);return{hasContext:l,setDescription:o,termDescription:l?a?.rendered||r||"":i}}function TIe(){let t=(0,OO.useSelect)(a=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=a("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?a(O2.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,OO.useSelect)(a=>{if(!r||!o)return"";let{getEntityRecords:i}=a(O2.store),l=i("taxonomy",r,{slug:o,per_page:1});return l&&l[0]&&l[0].description||""},[r,o])}var Om=n(y(),1);function B0e({context:{termId:e,taxonomy:t}}){let{termDescription:r}=T0e(e,t),o=(0,E0e.useBlockProps)();return(0,Om.jsx)(Om.Fragment,{children:(0,Om.jsx)("div",{...o,children:r?(0,Om.jsx)("div",{dangerouslySetInnerHTML:{__html:r}}):(0,Om.jsx)("div",{className:"wp-block-term-description__placeholder",children:(0,Om.jsx)("span",{children:(0,P0e.__)("Term Description")})})})})}var PIe={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:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},I0e=[PIe];var{name:N0e}=z7,D0e={icon:rN,edit:B0e,example:{},deprecated:I0e},EIe=()=>R({name:N0e,metadata:z7,settings:D0e});var HO={};K(HO,{init:()=>DIe,metadata:()=>V7,name:()=>z0e,settings:()=>V0e});var V7={$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:{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,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:{color:!0,width:!0,style:!0}}},style:"wp-block-term-name"};var F2=n(N(),1),Fm=n(P(),1),f1=n(O(),1),R0e=n(en(),1);var O7=n(re(),1),F7=n(F(),1);function L0e(e,t){let r=(0,F7.useSelect)(i=>!e||!t?null:i(O7.store).getEntityRecord("taxonomy",t,e),[e,t]),o=IIe(),a=!!(e&&t);return{hasContext:a,term:a?r:o}}function IIe(){let t=(0,F7.useSelect)(a=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=a("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?a(O7.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,F7.useSelect)(a=>{if(!r||!o)return null;let{getEntityRecords:i}=a(O7.store),l=i("taxonomy",r,{slug:o,per_page:1});return l&&l[0]?l[0]:null},[r,o])}var el=n(y(),1);function A0e({attributes:e,setAttributes:t,context:{termId:r,taxonomy:o}}){let{level:a=0,isLink:i,levelOptions:l}=e,{term:s}=L0e(r,o),c=s?.name?(0,R0e.decodeEntities)(s.name):(0,F2.__)("Term Name"),u=(0,Fm.useBlockProps)(),p=Z(),m=a===0?"p":`h${a}`,d=c;return i&&(d=(0,el.jsx)("a",{href:"#term-name-pseudo-link",onClick:f=>f.preventDefault(),children:c})),(0,el.jsxs)(el.Fragment,{children:[(0,el.jsx)(Fm.BlockControls,{group:"block",children:(0,el.jsx)(Fm.HeadingLevelDropdown,{value:a,options:l,onChange:f=>{t({level:f})}})}),(0,el.jsx)(Fm.InspectorControls,{children:(0,el.jsx)(f1.__experimentalToolsPanel,{label:(0,F2.__)("Settings"),resetAll:()=>{t({isLink:!1})},dropdownMenuProps:p,children:(0,el.jsx)(f1.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,F2.__)("Make term name a link"),onDeselect:()=>t({isLink:!1}),isShownByDefault:!0,children:(0,el.jsx)(f1.ToggleControl,{label:(0,F2.__)("Make term name a link"),onChange:()=>t({isLink:!i}),checked:i})})})}),(0,el.jsx)(m,{...u,children:d})]})}var NIe={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}}},migrate:be,isEligible(e){return!!e.textAlign},save:()=>null},M0e=[NIe];var{name:z0e}=V7,V0e={icon:oN,example:{},edit:A0e,deprecated:M0e},DIe=()=>R({name:z0e,metadata:V7,settings:V0e});var qO={};K(qO,{init:()=>FIe,metadata:()=>H7,name:()=>S1e,settings:()=>T1e});var H7={$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 v1e=n(F(),1),b1e=n(P(),1);var f1e=n(H(),1),G7=n(P(),1);var Vs=n(N(),1),Kc=n(O(),1),m1e=n(P(),1);var O0e=n(re(),1),F0e=n(F(),1),H0e=n(H(),1);function j7(){let e=(0,F0e.useSelect)(t=>t(O0e.store).getTaxonomies({per_page:-1}),[]);return(0,H0e.useMemo)(()=>e?.filter(({visibility:t})=>t?.publicly_queryable)||[],[e])}var j0e=n(O(),1);var U0e=n(y(),1);function G0e({value:e,onChange:t,...r}){let a=j7().map(i=>({label:i.name,value:i.slug}));return(0,U0e.jsx)(j0e.SelectControl,{options:a,value:e,onChange:t,...r})}var H2=n(N(),1),W0e=n(O(),1),$0e=n(y(),1);function q0e({orderBy:e,order:t,onChange:r,...o}){return(0,$0e.jsx)(W0e.SelectControl,{options:[{label:(0,H2.__)("Name: A \u2192 Z"),value:"name/asc"},{label:(0,H2.__)("Name: Z \u2192 A"),value:"name/desc"},{label:(0,H2.__)("Count, high to low"),value:"count/desc"},{label:(0,H2.__)("Count, low to high"),value:"count/asc"}],value:e+"/"+t,onChange:a=>{let[i,l]=a.split("/");r(i,l)},...o})}var Z0e=n(O(),1),K0e=n(y(),1);function Y0e({value:e,onChange:t,...r}){return(0,K0e.jsx)(Z0e.ToggleControl,{checked:!e,onChange:o=>t(!o),...r})}var Q0e=n(O(),1),X0e=n(y(),1);function J0e({value:e,onChange:t,...r}){return(0,X0e.jsx)(Q0e.ToggleControl,{checked:e,onChange:t,...r})}var U2=n(O(),1),j2=n(N(),1),G2=n(y(),1);function e1e({value:e,onChange:t,label:r}){return(0,G2.jsxs)(U2.__experimentalToggleGroupControl,{label:r,isBlock:!0,onChange:o=>{t({inherit:o==="default"})},help:e?(0,j2.__)("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,j2.__)("Display terms based on specific criteria."),value:e?"default":"custom",children:[(0,G2.jsx)(U2.__experimentalToggleGroupControlOption,{value:"default",label:(0,j2.__)("Default")}),(0,G2.jsx)(U2.__experimentalToggleGroupControlOption,{value:"custom",label:(0,j2.__)("Custom")})]})}var t1e=n(N(),1),r1e=n(O(),1),o1e=n(y(),1);function n1e({value:e,onChange:t,...r}){return(0,o1e.jsx)(r1e.RangeControl,{value:e,min:0,max:100,onChange:t,help:(0,t1e.__)("Limit the number of terms you want to show. To show all terms, use 0 (zero)."),...r})}var a1e=n(N(),1),U7=n(P(),1);var jO=n(y(),1),{HTMLElementControl:RIe}=U(U7.privateApis);function i1e({TagName:e,setAttributes:t,clientId:r}){return(0,jO.jsx)(U7.InspectorControls,{group:"advanced",children:(0,jO.jsx)(RIe,{tagName:e,onChange:o=>t({tagName:o}),clientId:r,options:[{label:(0,a1e.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})}var s1e=n(O(),1),UO=n(F(),1),GO=n(re(),1),ep=n(H(),1),c1e=n(ve(),1),WO=n(en(),1),u1e=n(y(),1),th=[],l1e={order:"asc",_fields:"id,name",context:"view"};function p1e({value:e,taxonomy:t,onChange:r,...o}){let[a,i]=(0,ep.useState)(""),[l,s]=(0,ep.useState)(th),[c,u]=(0,ep.useState)(th),p=(0,c1e.useDebounce)(i,250),{searchResults:m,searchHasResolved:d}=(0,UO.useSelect)(b=>{if(!a)return{searchResults:th,searchHasResolved:!0};let{getEntityRecords:_,hasFinishedResolution:k}=b(GO.store),x=["taxonomy",t,{...l1e,search:a,orderby:"name",exclude:e,per_page:20}];return{searchResults:_(...x),searchHasResolved:k("getEntityRecords",x)}},[a,t,e]),f=(0,UO.useSelect)(b=>{if(!e?.length)return th;let{getEntityRecords:_}=b(GO.store);return _("taxonomy",t,{...l1e,include:e,per_page:e.length})},[e,t]);(0,ep.useEffect)(()=>{if(e?.length||s(th),!f?.length)return;let b=e.reduce((_,k)=>{let x=f.find(w=>w.id===k);return x&&_.push({id:k,value:(0,WO.decodeEntities)(x.name)}),_},[]);s(b)},[e,f]);let h=(0,ep.useMemo)(()=>{if(!m?.length)return{names:th,mapByName:{}};let b=[],_={};return m.forEach(k=>{let x=(0,WO.decodeEntities)(k.name);b.push(x),_[x]=k}),{names:b,mapByName:_}},[m]);(0,ep.useEffect)(()=>{d&&u(h.names)},[h.names,d]);let g=(b,_)=>_?.id||b?.[_]?.id;return(0,u1e.jsx)(s1e.FormTokenField,{value:l,onInputChange:p,suggestions:c,onChange:b=>{let _=Array.from(b.reduce((k,x)=>{let w=g(h.mapByName,x);return w&&k.add(w),k},new Set));u(th),r(_)},help:"",...o})}var $r=n(y(),1);function d1e({attributes:e,setQuery:t,setAttributes:r,clientId:o,templateSlug:a}){let{termQuery:i,tagName:l}=e,{taxonomy:s,orderBy:c,order:u,hideEmpty:p,inherit:m,showNested:d,perPage:f,include:h}=i,g=Z(),b=j7().find(A=>A.slug===s)?.hierarchical,_=!!m,k=["taxonomy","category","tag","archive"].includes(a)||a?.startsWith("taxonomy-")||a?.startsWith("category-")||a?.startsWith("tag-"),x=b,w=!!h?.length,C=(0,Vs.__)("Query type"),T=(0,Vs.__)("Taxonomy"),I=(0,Vs.__)("Order by"),D=(0,Vs.__)("Show empty terms"),L=(0,Vs.__)("Show nested terms"),E=(0,Vs.__)("Max terms"),B=(0,Vs.__)("Selected terms");return(0,$r.jsxs)($r.Fragment,{children:[(0,$r.jsx)(m1e.InspectorControls,{children:(0,$r.jsxs)(Kc.__experimentalToolsPanel,{label:(0,Vs.__)("Settings"),resetAll:()=>{r({termQuery:{taxonomy:"category",order:"asc",orderBy:"name",include:[],hideEmpty:!0,showNested:!1,inherit:!1,perPage:10}})},dropdownMenuProps:g,children:[k&&(0,$r.jsx)(Kc.__experimentalToolsPanelItem,{hasValue:()=>m!==!1,label:C,onDeselect:()=>t({inherit:!1}),isShownByDefault:!0,children:(0,$r.jsx)(e1e,{label:C,value:m,onChange:t})}),!_&&(0,$r.jsx)(Kc.__experimentalToolsPanelItem,{hasValue:()=>s!=="category",label:T,onDeselect:()=>{t({taxonomy:"category"})},isShownByDefault:!0,children:(0,$r.jsx)(G0e,{label:T,value:s,onChange:A=>t({taxonomy:A,include:[]})})}),(0,$r.jsx)(Kc.__experimentalToolsPanelItem,{hasValue:()=>c!=="name"||u!=="asc",label:I,onDeselect:()=>t({orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,$r.jsx)(q0e,{label:I,orderBy:c,order:u,onChange:(A,z)=>{t({orderBy:A,order:z})},disabled:w,help:w?(0,Vs.__)("When specific terms are selected, the order is based on their selection order."):void 0})}),!_&&(0,$r.jsx)(Kc.__experimentalToolsPanelItem,{hasValue:()=>!!h?.length,label:B,onDeselect:()=>t({include:[],orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,$r.jsx)(p1e,{label:B,taxonomy:s,value:h,onChange:A=>t({include:A})})}),(0,$r.jsx)(Kc.__experimentalToolsPanelItem,{hasValue:()=>p!==!0,label:D,onDeselect:()=>t({hideEmpty:!0}),isShownByDefault:!0,children:(0,$r.jsx)(Y0e,{label:D,value:p,onChange:A=>t({hideEmpty:A})})}),x&&(0,$r.jsx)(Kc.__experimentalToolsPanelItem,{hasValue:()=>d!==!1,label:L,onDeselect:()=>t({showNested:!1}),isShownByDefault:!0,children:(0,$r.jsx)(J0e,{label:L,value:d,onChange:A=>t({showNested:A}),disabled:w,help:w?(0,Vs.__)("When specific terms are selected, only those are displayed."):void 0})}),(0,$r.jsx)(Kc.__experimentalToolsPanelItem,{hasValue:()=>f!==10,label:E,onDeselect:()=>t({perPage:10}),isShownByDefault:!0,children:(0,$r.jsx)(n1e,{label:E,value:f,onChange:A=>t({perPage:A})})})]})}),(0,$r.jsx)(i1e,{TagName:l,setAttributes:r,clientId:o})]})}var rh=n(y(),1),AIe=[["core/term-template"]];function h1e({attributes:e,setAttributes:t,clientId:r,context:o}){let{tagName:a}=e,i=(0,G7.useBlockProps)(),l=(0,G7.useInnerBlocksProps)(i,{template:AIe}),s=(0,f1e.useCallback)(c=>t(u=>({termQuery:{...u.termQuery,...c}})),[t]);return(0,rh.jsxs)(rh.Fragment,{children:[(0,rh.jsx)(d1e,{attributes:e,setQuery:s,setAttributes:t,clientId:r,templateSlug:o?.templateSlug}),(0,rh.jsx)(a,{...l})]})}var W7=n(F(),1),$7=n(q(),1),h1=n(P(),1),$O=n(y(),1);function g1e({attributes:e,clientId:t,name:r}){let{blockType:o,activeBlockVariation:a,scopeVariations:i}=(0,W7.useSelect)(p=>{let{getActiveBlockVariation:m,getBlockType:d,getBlockVariations:f}=p($7.store);return{blockType:d(r),activeBlockVariation:m(r,e),scopeVariations:f(r,"block")}},[r,e]),l=a?.icon?.src||a?.icon||o?.icon?.src,s=a?.title||o?.title,{replaceInnerBlocks:c}=(0,W7.useDispatch)(h1.store),u=(0,h1.useBlockProps)();return(0,$O.jsx)("div",{...u,children:(0,$O.jsx)(h1.__experimentalBlockVariationPicker,{icon:l,label:s,variations:i,onSelect:p=>{p.innerBlocks&&c(t,(0,$7.createBlocksFromInnerBlocksTemplate)(p.innerBlocks),!1)}})})}var y1e=n(y(),1),MIe=e=>{let r=(0,v1e.useSelect)(o=>!!o(b1e.store).getBlocks(e.clientId).length,[e.clientId])?h1e:g1e;return(0,y1e.jsx)(r,{...e})},_1e=MIe;var q7=n(P(),1),x1e=n(y(),1);function k1e({attributes:{tagName:e="div"}}){let t=q7.useBlockProps.save(),r=q7.useInnerBlocksProps.save(t);return(0,x1e.jsx)(e,{...r})}var W2=n(N(),1),g1=n(O(),1),$2=n(y(),1),zIe=(0,$2.jsx)(g1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,$2.jsx)(g1.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"})}),VIe=(0,$2.jsx)(g1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,$2.jsx)(g1.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"})}),w1e=["core/term-name",{isLink:!0}],OIe=[{name:"name",title:(0,W2.__)("Name"),description:(0,W2.__)("Display the terms' names."),attributes:{},icon:zIe,scope:["block"],innerBlocks:[["core/term-template",{},[w1e]]]},{name:"name-count",title:(0,W2.__)("Name & Count"),description:(0,W2.__)("Display the terms' names and number of posts assigned to each term."),attributes:{},icon:VIe,scope:["block"],innerBlocks:[["core/term-template",{},[["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[w1e,["core/term-count"]]]]]]}],C1e=OIe;var{name:S1e}=H7,T1e={icon:rd,edit:_1e,save:k1e,example:{},variations:C1e},FIe=()=>R({name:S1e,metadata:H7,settings:T1e});var ZO={};K(ZO,{init:()=>$Ie,metadata:()=>Z7,name:()=>R1e,settings:()=>A1e});var Z7={$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 P1e=n(O(),1);var v1=n(H(),1),E1e=n(F(),1),q2=n(N(),1),Vl=n(P(),1),B1e=n(re(),1),wn=n(y(),1),jIe=[["core/term-name"]];function UIe({classList:e}){let t=(0,Vl.useInnerBlocksProps)({className:S("wp-block-term",e)},{template:jIe,__unstableDisableLayoutClassNames:!0});return(0,wn.jsx)("li",{...t})}function GIe({blocks:e,blockContextId:t,classList:r,isHidden:o,setActiveBlockContextId:a}){let i=(0,Vl.__experimentalUseBlockPreview)({blocks:e,props:{className:S("wp-block-term",r)}}),l=()=>{a(t)};return(0,wn.jsx)("li",{...i,tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:{display:o?"none":void 0}})}var WIe=(0,v1.memo)(GIe);function I1e({clientId:e,attributes:{layout:t},setAttributes:r,context:{termQuery:{taxonomy:o,order:a,orderBy:i,hideEmpty:l,showNested:s=!1,perPage:c,include:u}={}},__unstableLayoutClassNames:p}){let{type:m,columnCount:d=3}=t||{},[f,h]=(0,v1.useState)(),g={hide_empty:l,order:a,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:v}=(0,B1e.useEntityRecords)("taxonomy",o,g),b=(0,E1e.useSelect)(w=>w(Vl.store).getBlocks(e),[e]),_=(0,Vl.useBlockProps)({className:p}),k=(0,v1.useMemo)(()=>v?.map(w=>({taxonomy:o,termId:w.id,classList:`term-${w.id}`,termData:w})),[v,o]);if(!v)return(0,wn.jsx)("ul",{..._,children:(0,wn.jsx)("li",{className:"wp-block-term term-loading",children:(0,wn.jsx)("div",{className:"term-loading-placeholder"})})});if(!v.length)return(0,wn.jsxs)("p",{..._,children:[" ",(0,q2.__)("No terms found.")]});let x=w=>r(C=>({layout:{...C.layout,...w}}));return(0,wn.jsxs)(wn.Fragment,{children:[(0,wn.jsx)(Vl.BlockControls,{children:(0,wn.jsx)(P1e.ToolbarGroup,{controls:[{icon:Wl,title:(0,q2._x)("List view","Term template block display setting"),onClick:()=>x({type:"default"}),isActive:m==="default"||m==="constrained"},{icon:Gl,title:(0,q2._x)("Grid view","Term template block display setting"),onClick:()=>x({type:"grid",columnCount:d}),isActive:m==="grid"}]})}),(0,wn.jsx)("ul",{..._,children:k?.map(w=>(0,wn.jsxs)(Vl.BlockContextProvider,{value:w,children:[w.termId===(f||k[0]?.termId)?(0,wn.jsx)(UIe,{classList:w.classList}):null,(0,wn.jsx)(WIe,{blocks:b,blockContextId:w.termId,classList:w.classList,setActiveBlockContextId:h,isHidden:w.termId===(f||k[0]?.termId)})]},w.termId))})]})}var N1e=n(P(),1),D1e=n(y(),1);function L1e(){return(0,D1e.jsx)(N1e.InnerBlocks.Content,{})}var{name:R1e}=Z7,A1e={icon:td,edit:I1e,save:L1e,example:{}},$Ie=()=>R({name:R1e,metadata:Z7,settings:A1e});var KO={};K(KO,{init:()=>KIe,metadata:()=>Y7,name:()=>F1e,settings:()=>H1e});var b1=n(N(),1),K7=n(O(),1),Yc=n(P(),1),M1e=n(xd(),1),tl=n(y(),1);function z1e({attributes:e,setAttributes:t}){let{width:r,content:o,columns:a}=e;return(0,M1e.default)("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,tl.jsxs)(tl.Fragment,{children:[(0,tl.jsx)(Yc.BlockControls,{children:(0,tl.jsx)(Yc.BlockAlignmentToolbar,{value:r,onChange:i=>t({width:i}),controls:["center","wide","full"]})}),(0,tl.jsx)(Yc.InspectorControls,{children:(0,tl.jsx)(K7.PanelBody,{children:(0,tl.jsx)(K7.RangeControl,{label:(0,b1.__)("Columns"),value:a,onChange:i=>t({columns:i}),min:2,max:4,required:!0})})}),(0,tl.jsx)("div",{...(0,Yc.useBlockProps)({className:`align${r} columns-${a}`}),children:Array.from({length:a}).map((i,l)=>(0,tl.jsx)("div",{className:"wp-block-column",children:(0,tl.jsx)(Yc.RichText,{tagName:"p",value:o?.[l]?.children,onChange:s=>{t({content:[...o.slice(0,l),{children:s},...o.slice(l+1)]})},"aria-label":(0,b1.sprintf)((0,b1.__)("Column %d text"),l+1),placeholder:(0,b1.__)("New Column")})},`column-${l}`))})]})}var Y7={$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 X7=n(P(),1),Q7=n(y(),1);function V1e({attributes:e}){let{width:t,content:r,columns:o}=e;return(0,Q7.jsx)("div",{...X7.useBlockProps.save({className:`align${t} columns-${o}`}),children:Array.from({length:o}).map((a,i)=>(0,Q7.jsx)("div",{className:"wp-block-column",children:(0,Q7.jsx)(X7.RichText.Content,{tagName:"p",value:r?.[i]?.children})},`column-${i}`))})}var J7=n(q(),1),ZIe={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:r,width:o})=>(0,J7.createBlock)("core/columns",{align:o==="wide"||o==="full"?o:void 0,className:e,columns:t},r.map(({children:a})=>(0,J7.createBlock)("core/column",{},[(0,J7.createBlock)("core/paragraph",{content:a})])))}]},O1e=ZIe;var{name:F1e}=Y7,H1e={transforms:O1e,getEditWrapperProps(e){let{width:t}=e;if(t==="wide"||t==="full")return{"data-align":t}},edit:z1e,save:V1e},KIe=()=>R({name:F1e,metadata:Y7,settings:H1e});var eF={};K(eF,{init:()=>oNe,metadata:()=>r9,name:()=>Z1e,settings:()=>n9});var JO=n(N(),1);var q1e=n(q(),1);var oh=n(P(),1);var y1=n(y(),1),YIe={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){let{textAlign:t,content:r}=e;return(0,y1.jsx)(oh.RichText.Content,{tagName:"pre",style:{textAlign:t},value:r})},migrate:be},QIe={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=S({[`has-text-align-${t}`]:t});return(0,y1.jsx)("pre",{...oh.useBlockProps.save({className:o}),children:(0,y1.jsx)(oh.RichText.Content,{value:r})})},migrate(e){return be(Zt(e))},isEligible({style:e,textAlign:t}){return e?.typography?.fontFamily||!!t}},XIe={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=S({[`has-text-align-${t}`]:t});return(0,y1.jsx)("pre",{...oh.useBlockProps.save({className:o}),children:(0,y1.jsx)(oh.RichText.Content,{value:r})})},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},j1e=[XIe,QIe,YIe];var YO=n(N(),1),e9=n(P(),1),t9=n(q(),1);var U1e=n(y(),1);function G1e(e){let{attributes:t,setAttributes:r,mergeBlocks:o,onRemove:a,insertBlocksAfter:i,style:l}=e,{content:s}=t;Ct(e);let c=(0,e9.useBlockProps)({style:l});return(0,U1e.jsx)(e9.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:s,onChange:u=>{r({content:u})},"aria-label":(0,YO.__)("Poetry text"),placeholder:(0,YO.__)("Write poetry\u2026"),onRemove:a,onMerge:o,...c,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:i?()=>i((0,t9.createBlock)((0,t9.getDefaultBlockName)())):void 0})}var r9={$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,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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 o9=n(P(),1),QO=n(y(),1);function W1e({attributes:e}){let{content:t}=e;return(0,QO.jsx)("pre",{...o9.useBlockProps.save(),children:(0,QO.jsx)(o9.RichText.Content,{value:t})})}var XO=n(q(),1),eNe={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,XO.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,XO.createBlock)("core/paragraph",e)}]},$1e=eNe;var{fieldsKey:tNe,formKey:rNe}=U(q1e.privateApis),{name:Z1e}=r9,n9={icon:Fv,example:{attributes:{content:(0,JO.__)(`WHAT was he doing, the great god Pan,
	Down in the reeds by the river?
Spreading ruin and scattering ban,
Splashing and paddling with hoofs of a goat,
And breaking the golden lilies afloat
    With the dragon-fly on the river.`)}},transforms:$1e,deprecated:j1e,merge(e,t){return{content:e.content+`

`+t.content}},edit:G1e,save:W1e};window.__experimentalContentOnlyInspectorFields&&(n9[tNe]=[{id:"content",label:(0,JO.__)("Content"),type:"text",Edit:"rich-text"}],n9[rNe]={fields:["content"]});var oNe=()=>R({name:Z1e,metadata:r9,settings:n9});var oF={};K(oF,{init:()=>_Ne,metadata:()=>_1,name:()=>mve,settings:()=>s9});var l9=n(N(),1);var pve=n(q(),1);var Z2=n(P(),1);var _1={$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"},width:{type:"number"},height:{type:"number"},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 K1e=n(y(),1);function x1({tracks:e=[]}){return e.map(t=>{let{id:r,...o}=t;return(0,K1e.jsx)("track",{...o},r??o.src)})}var k1=n(y(),1),{attributes:aNe}=_1,iNe={attributes:aNe,save({attributes:e}){let{autoplay:t,caption:r,controls:o,loop:a,muted:i,poster:l,preload:s,src:c,playsInline:u,tracks:p}=e;return(0,k1.jsxs)("figure",{...Z2.useBlockProps.save(),children:[c&&(0,k1.jsx)("video",{autoPlay:t,controls:o,loop:a,muted:i,poster:l,preload:s!=="metadata"?s:void 0,src:c,playsInline:u,children:(0,k1.jsx)(x1,{tracks:p})}),!Z2.RichText.isEmpty(r)&&(0,k1.jsx)(Z2.RichText.Content,{tagName:"figcaption",value:r})]})}},lNe=[iNe],Y1e=lNe;var nve=n(Ar(),1),S1=n(O(),1),La=n(P(),1),ah=n(H(),1),Y2=n(N(),1),ave=n(F(),1);var ive=n(Sr(),1),lve=n(pr(),1);var ro=n(N(),1),Da=n(O(),1),K2=n(H(),1),Cn=n(y(),1),sNe=[{value:"auto",label:(0,ro.__)("Auto")},{value:"metadata",label:(0,ro.__)("Metadata")},{value:"none",label:(0,ro._x)("None","Preload value")}],cNe=({setAttributes:e,attributes:t})=>{let{autoplay:r,controls:o,loop:a,muted:i,playsInline:l,preload:s}=t,c=(0,ro.__)("Autoplay may cause usability issues for some users."),u=(0,K2.useCallback)(d=>d?c:null,[]),p=(0,K2.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")}},[]),m=(0,K2.useCallback)(d=>{e({preload:d})},[]);return(0,Cn.jsxs)(Cn.Fragment,{children:[(0,Cn.jsx)(Da.__experimentalToolsPanelItem,{label:(0,ro.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>{e({autoplay:!1,muted:!1})},children:(0,Cn.jsx)(Da.ToggleControl,{label:(0,ro.__)("Autoplay"),onChange:p.autoplay,checked:!!r,help:u})}),(0,Cn.jsx)(Da.__experimentalToolsPanelItem,{label:(0,ro.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>{e({loop:!1})},children:(0,Cn.jsx)(Da.ToggleControl,{label:(0,ro.__)("Loop"),onChange:p.loop,checked:!!a})}),(0,Cn.jsx)(Da.__experimentalToolsPanelItem,{label:(0,ro.__)("Muted"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>{e({muted:!1})},children:(0,Cn.jsx)(Da.ToggleControl,{label:(0,ro.__)("Muted"),onChange:p.muted,checked:!!i,disabled:r,help:r?(0,ro.__)("Muted because of Autoplay."):null})}),(0,Cn.jsx)(Da.__experimentalToolsPanelItem,{label:(0,ro.__)("Playback controls"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>{e({controls:!0})},children:(0,Cn.jsx)(Da.ToggleControl,{label:(0,ro.__)("Playback controls"),onChange:p.controls,checked:!!o})}),(0,Cn.jsx)(Da.__experimentalToolsPanelItem,{label:(0,ro.__)("Play inline"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>{e({playsInline:!1})},children:(0,Cn.jsx)(Da.ToggleControl,{label:(0,ro.__)("Play inline"),onChange:p.playsInline,checked:!!l,disabled:r,help:r?(0,ro.__)("Play inline enabled because of Autoplay."):(0,ro.__)("When enabled, videos will play directly within the webpage on mobile browsers, instead of opening in a fullscreen player.")})}),(0,Cn.jsx)(Da.__experimentalToolsPanelItem,{label:(0,ro.__)("Preload"),isShownByDefault:!0,hasValue:()=>s!=="metadata",onDeselect:()=>{e({preload:"metadata"})},children:(0,Cn.jsx)(Da.SelectControl,{label:(0,ro.__)("Preload"),value:s,onChange:m,options:sNe,hideCancelButton:!0})})]})},Q1e=cNe;var Ot=n(N(),1),rt=n(O(),1),w1=n(P(),1);var J1e=n(F(),1),nh=n(H(),1),eve=n(pr(),1);var Xe=n(y(),1),{Badge:uNe}=U(rt.privateApis),X1e=["text/vtt"],pNe="subtitles",mNe=[{label:(0,Ot.__)("Subtitles"),value:"subtitles"},{label:(0,Ot.__)("Captions"),value:"captions"},{label:(0,Ot.__)("Descriptions"),value:"descriptions"},{label:(0,Ot.__)("Chapters"),value:"chapters"},{label:(0,Ot.__)("Metadata"),value:"metadata"}],tve={src:"",label:"",srcLang:"en",kind:pNe,default:!1};function dNe({tracks:e,onEditPress:t}){let r=e.map((o,a)=>(0,Xe.jsxs)(rt.__experimentalHStack,{className:"block-library-video-tracks-editor__track-list-track",children:[(0,Xe.jsx)("span",{children:o.label}),(0,Xe.jsxs)(rt.__experimentalHStack,{justify:"flex-end",children:[o.default&&(0,Xe.jsx)(uNe,{children:(0,Ot.__)("Default")}),(0,Xe.jsx)(rt.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(a),"aria-label":(0,Ot.sprintf)((0,Ot._x)("Edit %s","text tracks"),o.label),children:(0,Ot.__)("Edit")})]})]},o.id??o.src));return(0,Xe.jsx)(rt.MenuGroup,{label:(0,Ot.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list",children:r})}function fNe({track:e,onChange:t,onClose:r,onRemove:o,allowSettingDefault:a}){let[i,l]=(0,nh.useState)({...tve,...e}),{src:s,label:c,srcLang:u,kind:p,default:m}=i,d=s.startsWith("blob:")?"":(0,eve.getFilename)(s)||"";return(0,Xe.jsxs)(rt.__experimentalVStack,{className:"block-library-video-tracks-editor__single-track-editor",spacing:"4",children:[(0,Xe.jsx)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label",children:(0,Ot.__)("Edit track")}),(0,Xe.jsxs)("span",{children:[(0,Ot.__)("File"),": ",(0,Xe.jsx)("b",{children:d})]}),(0,Xe.jsxs)(rt.__experimentalGrid,{columns:2,gap:4,children:[(0,Xe.jsx)(rt.TextControl,{onChange:f=>l(h=>({...h,label:f})),label:(0,Ot.__)("Label"),value:c,help:(0,Ot.__)("Title of track")}),(0,Xe.jsx)(rt.TextControl,{onChange:f=>l(h=>({...h,srcLang:f})),label:(0,Ot.__)("Source language"),value:u,help:(0,Ot.__)("Language tag (en, fr, etc.)")})]}),(0,Xe.jsxs)(rt.__experimentalVStack,{spacing:"4",children:[(0,Xe.jsx)(rt.SelectControl,{className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:mNe,value:p,label:(0,Ot.__)("Kind"),onChange:f=>l(h=>({...h,kind:f}))}),(0,Xe.jsx)(rt.ToggleControl,{__next40pxDefaultSize:!0,label:(0,Ot.__)("Set as default track"),checked:m,disabled:!a,onChange:f=>l(h=>({...h,default:f}))}),(0,Xe.jsxs)(rt.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container",children:[(0,Xe.jsx)(rt.Button,{__next40pxDefaultSize:!0,isDestructive:!0,variant:"link",onClick:o,children:(0,Ot.__)("Remove track")}),(0,Xe.jsx)(rt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t(i),r()},children:(0,Ot.__)("Apply")})]})]})]})}function rve({tracks:e=[],onChange:t}){let r=(0,J1e.useSelect)(c=>c(w1.store).getSettings().mediaUpload,[]),[o,a]=(0,nh.useState)(null),i=(0,nh.useRef)(),l=(c=[],u=!1)=>{let p=new Map(e.map(d=>[d.id,d])),m=c.map(({id:d,title:f,url:h})=>p.has(d)?p.get(d):{...tve,id:d,label:f||"",src:h});m.length!==0&&t([...u?e:[],...m])};function s(c){let u=c.target.files;r({allowedTypes:X1e,filesList:u,onFileChange:p=>{if(!Array.isArray(p))return;let m=p.filter(d=>!!d?.id);m.length&&l(m,!0)}})}return(0,nh.useEffect)(()=>{i.current?.focus()},[o]),r?(0,Xe.jsx)(rt.Dropdown,{contentClassName:"block-library-video-tracks-editor",focusOnMount:!0,popoverProps:{ref:i},renderToggle:({isOpen:c,onToggle:u})=>(0,Xe.jsx)(rt.ToolbarGroup,{children:(0,Xe.jsx)(rt.ToolbarButton,{"aria-expanded":c,"aria-haspopup":"true",onClick:()=>{c||a(null),u()},children:(0,Ot.__)("Text tracks")})}),renderContent:()=>o!==null?(0,Xe.jsx)(fNe,{track:e[o],onChange:c=>{let u=[...e];u[o]=c,t(u)},onClose:()=>a(null),onRemove:()=>{t(e.filter((c,u)=>u!==o)),a(null)},allowSettingDefault:!e.some(c=>c.default)||e[o].default}):(0,Xe.jsxs)(Xe.Fragment,{children:[e.length===0&&(0,Xe.jsxs)("div",{className:"block-library-video-tracks-editor__tracks-informative-message",children:[(0,Xe.jsx)("h2",{className:"block-library-video-tracks-editor__tracks-informative-message-title",children:(0,Ot.__)("Text tracks")}),(0,Xe.jsx)("p",{className:"block-library-video-tracks-editor__tracks-informative-message-description",children:(0,Ot.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")})]}),(0,Xe.jsxs)(rt.NavigableMenu,{children:[(0,Xe.jsx)(dNe,{tracks:e,onEditPress:a}),(0,Xe.jsx)(rt.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,Ot.__)("Add tracks"),children:(0,Xe.jsxs)(w1.MediaUploadCheck,{children:[(0,Xe.jsx)(w1.MediaUpload,{onSelect:l,allowedTypes:X1e,value:e.map(({id:c})=>c),multiple:!0,render:({open:c})=>(0,Xe.jsx)(rt.MenuItem,{icon:pv,onClick:c,children:(0,Ot.__)("Open Media Library")})}),(0,Xe.jsx)(rt.FormFileUpload,{onChange:s,accept:".vtt,text/vtt",multiple:!0,render:({openFileDialog:c})=>(0,Xe.jsx)(rt.MenuItem,{icon:nu,onClick:c,children:(0,Ot._x)("Upload","verb")})})]})})]})]})}):null}var C1=n(N(),1);var a9=({controls:e,loop:t,autoplay:r,muted:o,playsInline:a}={})=>!e&&!!t&&!!r&&!!o&&!!a,hNe=[{name:"video",title:(0,C1.__)("Video"),description:(0,C1.__)("Embed a video from your media library or upload a new one."),icon:au,attributes:{controls:!0},isActive:e=>!a9(e),scope:["block","transform"]},{name:"gif",title:(0,C1.__)("GIF"),description:(0,C1.__)("A muted, looping video that plays automatically like an animated GIF."),icon:au,keywords:[(0,C1.__)("animated"),"gif"],attributes:{controls:!1,loop:!0,autoplay:!0,muted:!0,playsInline:!0},isActive:e=>a9(e),scope:["block","transform"]}],ove=hNe;var kr=n(y(),1),tF=["video"];function gNe({isSelected:e,attributes:t,className:r,setAttributes:o,insertBlocksAfter:a,onReplace:i}){let l=(0,ah.useRef)(),{id:s,controls:c,poster:u,src:p,tracks:m,width:d,height:f}=t,h=a9(t),g=d&&f?`${d} / ${f}`:void 0,[v,b]=(0,ah.useState)(t.blob),_=Z(),x=(0,La.useBlockEditingMode)()==="default";Us({url:v,allowedTypes:tF,onChange:w,onError:I}),(0,ah.useEffect)(()=>{l.current&&l.current.load()},[u]),(0,ah.useEffect)(()=>{h&&l.current?.play().catch(()=>{})},[h,p,u]);function w(B){if(!B||!B.url){o({src:void 0,id:void 0,poster:void 0,caption:void 0,blob:void 0}),b();return}if((0,nve.isBlobURL)(B.url)){b(B.url);return}o({blob:void 0,src:B.url,id:B.id,poster:B.image?.src!==B.icon?B.image?.src:void 0,caption:B.caption}),b()}function C(B){if(B!==p){let A=(0,lve.prependHTTPS)(B),z=bp({attributes:{url:A}});if(z!==void 0&&i){i(z);return}o({blob:void 0,src:A,id:void 0,poster:void 0}),b()}}let{createErrorNotice:T}=(0,ave.useDispatch)(ive.store);function I(B){T(B,{type:"snackbar"})}let D=B=>(0,kr.jsx)(S1.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!e,icon:au,label:(0,Y2.__)("Video"),instructions:(0,Y2.__)("Drag and drop a video, upload, or choose from your library."),children:B}),L=S(r,{"is-transient":!!v}),E=(0,La.useBlockProps)({className:L});return!p&&!v?(0,kr.jsx)("div",{...E,children:(0,kr.jsx)(La.MediaPlaceholder,{icon:(0,kr.jsx)(La.BlockIcon,{icon:au}),onSelect:w,onSelectURL:C,accept:"video/*",allowedTypes:tF,value:t,onError:I,placeholder:D})}):(0,kr.jsxs)(kr.Fragment,{children:[e&&(0,kr.jsxs)(kr.Fragment,{children:[(0,kr.jsx)(La.BlockControls,{children:(0,kr.jsx)(rve,{tracks:m,onChange:B=>{o({tracks:B})}})}),(0,kr.jsx)(La.BlockControls,{group:"other",children:(0,kr.jsx)(La.MediaReplaceFlow,{mediaId:s,mediaURL:p,allowedTypes:tF,accept:"video/*",onSelect:w,onSelectURL:C,onError:I,onReset:()=>w(void 0),variant:"toolbar"})})]}),(0,kr.jsx)(La.InspectorControls,{children:(0,kr.jsxs)(S1.__experimentalToolsPanel,{label:(0,Y2.__)("Settings"),resetAll:()=>{o({autoplay:!1,controls:!0,loop:!1,muted:!1,playsInline:!1,preload:"metadata",poster:void 0})},dropdownMenuProps:_,children:[(0,kr.jsx)(Q1e,{setAttributes:o,attributes:t}),(0,kr.jsx)(s3,{poster:u,onChange:B=>o({poster:B?.url})})]})}),(0,kr.jsxs)("figure",{...E,children:[(0,kr.jsx)("video",{controls:c,inert:e?void 0:"true",poster:u,src:p||v,ref:l,autoPlay:h,loop:h,muted:h,playsInline:h,width:d,height:f,style:g?{aspectRatio:g}:void 0,children:(0,kr.jsx)(x1,{tracks:m})}),!!v&&(0,kr.jsx)(S1.Spinner,{}),(0,kr.jsx)(Mo,{attributes:t,setAttributes:o,isSelected:e,insertBlocksAfter:a,label:(0,Y2.__)("Video caption text"),showToolbarButton:e&&x})]})]})}var sve=gNe;var ih=n(P(),1);var T1=n(y(),1);function cve({attributes:e}){let{autoplay:t,caption:r,controls:o,loop:a,muted:i,poster:l,preload:s,src:c,playsInline:u,tracks:p,width:m,height:d}=e,f=m&&d?`${m} / ${d}`:void 0;return(0,T1.jsxs)("figure",{...ih.useBlockProps.save(),children:[c&&(0,T1.jsx)("video",{autoPlay:t,controls:o,loop:a,muted:i,poster:l,preload:s!=="metadata"?s:void 0,src:c,playsInline:u,width:m,height:d,style:f?{aspectRatio:f}:void 0,children:(0,T1.jsx)(x1,{tracks:p})}),!ih.RichText.isEmpty(r)&&(0,T1.jsx)(ih.RichText.Content,{className:(0,ih.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var i9=n(Ar(),1),rF=n(q(),1),vNe={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("video/")===0},transform(e){let t=e[0];return(0,rF.createBlock)("core/video",{blob:(0,i9.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:r,webm:o,ogv:a,flv:i}})=>e||t||r||o||a||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,i9.isBlobURL)(r.src)&&(r.blob=r.src,delete r.src),(0,rF.createBlock)("core/video",r)}}]},uve=vNe;var{fieldsKey:bNe,formKey:yNe}=U(pve.privateApis),{name:mve}=_1,s9={icon:au,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,l9.__)("Wood thrush singing in Central Park, NYC.")}},transforms:uve,variations:ove,deprecated:Y1e,edit:sve,save:cve};window.__experimentalContentOnlyInspectorFields&&(s9[bNe]=[{id:"video",label:(0,l9.__)("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,l9.__)("Caption"),type:"text",Edit:"rich-text"}],s9[yNe]={fields:["video","caption"]});var _Ne=()=>R({name:mve,metadata:_1,settings:s9});var cF={};K(cF,{init:()=>PNe,metadata:()=>c9,name:()=>p9,settings:()=>kve});var xve=n(Xl(),1);var lh=n(P(),1),dve=n(re(),1),Q2=n(N(),1),nF=n(O(),1);var Ol=n(y(),1);function fve({context:{postType:e,postId:t}}){let[r,o]=(0,dve.useEntityProp)("postType",e,"meta",t),a=typeof r?.footnotes=="string",i=r?.footnotes?JSON.parse(r.footnotes):[],l=(0,lh.useBlockProps)();return a?i.length?(0,Ol.jsx)("ol",{...l,children:i.map(({id:s,content:c})=>(0,Ol.jsxs)("li",{onMouseDown:u=>{u.target===u.currentTarget&&(u.target.firstElementChild.focus(),u.preventDefault())},children:[(0,Ol.jsx)(lh.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(p=>p.id===s?{content:u,id:s}:p))})}})," ",(0,Ol.jsx)("a",{href:`#${s}-link`,children:"\u21A9\uFE0E"})]},s))}):(0,Ol.jsx)("div",{...l,children:(0,Ol.jsx)(nF.Placeholder,{icon:(0,Ol.jsx)(lh.BlockIcon,{icon:al}),label:(0,Q2.__)("Footnotes"),instructions:(0,Q2.__)("Footnotes found in blocks within this document will be displayed here.")})}):(0,Ol.jsx)("div",{...l,children:(0,Ol.jsx)(nF.Placeholder,{icon:(0,Ol.jsx)(lh.BlockIcon,{icon:al}),label:(0,Q2.__)("Footnotes"),instructions:(0,Q2.__)("Footnotes are not supported here. Add this block to post or page content.")})})}var c9={$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 Sn=[];for(let e=0;e<256;++e)Sn.push((e+256).toString(16).slice(1));function hve(e,t=0){return(Sn[e[t+0]]+Sn[e[t+1]]+Sn[e[t+2]]+Sn[e[t+3]]+"-"+Sn[e[t+4]]+Sn[e[t+5]]+"-"+Sn[e[t+6]]+Sn[e[t+7]]+"-"+Sn[e[t+8]]+Sn[e[t+9]]+"-"+Sn[e[t+10]]+Sn[e[t+11]]+Sn[e[t+12]]+Sn[e[t+13]]+Sn[e[t+14]]+Sn[e[t+15]]).toLowerCase()}var kNe=new Uint8Array(16);function aF(){return crypto.getRandomValues(kNe)}function wNe(e,t,r){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():CNe(e,t,r)}function CNe(e,t,r){e=e||{};let o=e.random??e.rng?.()??aF();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 a=0;a<16;++a)t[r+a]=o[a];return t}return hve(o)}var iF=wNe;var lF=n(N(),1);var vve=n(Xl(),1),tp=n(P(),1),P1=n(F(),1),bve=n(re(),1),u9=n(q(),1);var yve=n(y(),1),sF="core/footnote",{usesContextKey:SNe}=U(tp.privateApis),gve="core/post-content",TNe="core/block",_ve={title:(0,lF.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},interactive:!0,contentEditable:!1,[SNe]:["postType","postId"],edit:function({value:t,onChange:r,isObjectActive:o,context:{postType:a,postId:i}}){let l=(0,P1.useRegistry)(),{getSelectedBlockClientId:s,getBlocks:c,getBlockRootClientId:u,getBlockName:p,getBlockParentsByBlockName:m}=l.select(tp.store),d=(0,P1.useSelect)(v=>{if(!v(u9.store).getBlockType("core/footnotes"))return!1;let b=v(tp.store).getSettings().allowedBlockTypes;if(b===!1||Array.isArray(b)&&!b.includes("core/footnotes")||typeof v(bve.store).getEntityRecord("postType",a,i)?.meta?.footnotes!="string")return!1;let{getBlockParentsByBlockName:k,getSelectedBlockClientId:x,getBlockName:w}=v(tp.store),C=x();if(!C||w(C)===p9)return!1;let T=k(C,TNe);return!T||T.length===0},[a,i]),{selectionChange:f,insertBlock:h}=(0,P1.useDispatch)(tp.store);if(!d)return null;function g(){l.batch(()=>{let v;if(o)v=t.replacements[t.start]?.attributes?.["data-fn"];else{v=iF();let w=(0,vve.insertObject)(t,{type:sF,attributes:{"data-fn":v},innerHTML:`<a href="#${v}" id="${v}-link">*</a>`},t.end,t.end);w.start=w.end-1,r(w)}let b=s(),_=m(b,gve),k=_.length?c(_[0]):c(),x=null;{let w=[...k];for(;w.length;){let C=w.shift();if(C.name==="core/footnotes"){x=C;break}w.push(...C.innerBlocks)}}if(!x){let w=u(b);for(;w&&p(w)!==gve;)w=u(w);x=(0,u9.createBlock)("core/footnotes"),h(x,void 0,w)}f(x.clientId,v,0,0)})}return(0,yve.jsx)(tp.RichTextToolbarButton,{icon:al,title:(0,lF.__)("Footnote"),onClick:g,isActive:o})}};var{name:p9}=c9,kve={icon:al,edit:fve},PNe=()=>{(0,xve.registerFormatType)(sF,_ve),R({name:p9,metadata:c9,settings:kve})};function wve(e){return e&&"__experimental"in e&&e.__experimental!==!1}var Tve=n(H(),1),X2=n(F(),1),Qc=n(Sve(),1),uF=n(N(),1),Pve=n(q(),1),pF=n(P(),1);function ENe(){let{registerShortcut:e}=(0,X2.useDispatch)(Qc.store),{replaceBlocks:t}=(0,X2.useDispatch)(pF.store),{getBlockName:r,getSelectedBlockClientId:o,getBlockAttributes:a}=(0,X2.useSelect)(pF.store),i=(l,s)=>{l.preventDefault();let c=o();if(c===null)return;let u=r(c),p=u==="core/paragraph",m=u==="core/heading";if(!p&&!m)return;let d=s===0?"core/paragraph":"core/heading",f=a(c);if(p&&s===0||m&&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,Pve.createBlock)(d,h))};return(0,Tve.useEffect)(()=>{e({name:"core/block-editor/transform-heading-to-paragraph",category:"block-library",description:(0,uF.__)("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,uF.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${l}`}})})},[e]),(0,Qc.useShortcut)("core/block-editor/transform-heading-to-paragraph",l=>i(l,0)),(0,Qc.useShortcut)("core/block-editor/transform-paragraph-to-heading-1",l=>i(l,1)),(0,Qc.useShortcut)("core/block-editor/transform-paragraph-to-heading-2",l=>i(l,2)),(0,Qc.useShortcut)("core/block-editor/transform-paragraph-to-heading-3",l=>i(l,3)),(0,Qc.useShortcut)("core/block-editor/transform-paragraph-to-heading-4",l=>i(l,4)),(0,Qc.useShortcut)("core/block-editor/transform-paragraph-to-heading-5",l=>i(l,5)),(0,Qc.useShortcut)("core/block-editor/transform-paragraph-to-heading-6",l=>i(l,6)),null}var Eve=ENe;var mF={};zj(mF,{BlockKeyboardShortcuts:Eve,NAVIGATION_OVERLAY_TEMPLATE_PART_AREA:kc,NavigationLinkUI:iS});var m9=n(y(),1),BNe=()=>{let e=[kM,UR,TR,vR,QR,sA,Fz,fN,hN,gN,vN,bN,BN,BD,DD,RD,zD,GD,$D,KD,tL,ML,zL,jL,qL,xR,IR,JR,GR,qR,hA,gA,vA,oM,pM,gM,lM,LM,RM,nz,az,Hz,Uz,Kz,Yz,Xz,oO,aO,iO,xO,PO,TO,pO,cO,BO,KO,eF,oF,cF,QA,JA,tM,eV,iV,oV,kz,RO,_N,ez,qM,KM,GM,MM,zM,OM,FM,UM,WM,XM,YM,QM,JM,Tz,Ez,Bz,Nz,wz,Vz,jz,JD,rL,oL,aL,iL,lL,cL,vL,dL,hL,gL,pL,jM,wO,PR,MR,cA,aM,VO,FO,HO,qO,ZO,Az,VM,IN];return window?.__experimentalEnableFormBlocks&&(e.push(XL),e.push(eR),e.push(rR),e.push(oR)),window?.__experimentalEnableBlockExperiments,e.push(OD),e.filter(Boolean)},Lve=()=>BNe().filter(({metadata:e})=>!wve(e)),INe=(e=Lve())=>{e.forEach(({init:t})=>t()),window.__unstableAutoRegisterBlocks&&window.__unstableAutoRegisterBlocks.forEach(t=>{let r=U((0,Ive.select)(Fl.store)).getBootstrappedBlockType(t);(0,Fl.registerBlockType)(t,{...r,title:r?.title||t,...(r?.apiVersion??0)<3&&{apiVersion:3},usesContext:Array.from(new Set([...r?.usesContext??[],"postId"])),edit:function({attributes:a,context:i}){let l=(0,Bve.useDisabled)(),s=(0,Nve.useBlockProps)({ref:l}),{content:c,status:u,error:p}=(0,Dve.useServerSideRender)({block:t,attributes:a,urlQueryArgs:{post_id:i?.postId}});return u==="loading"?(0,m9.jsx)("div",{...s,children:(0,J2.__)("Loading\u2026")}):u==="error"?(0,m9.jsx)("div",{...s,children:(0,J2.sprintf)((0,J2.__)("Error loading block: %s"),p)}):(0,m9.jsx)(ko,{wrapperProps:s,html:c})},save:()=>null})}),(0,Fl.setDefaultBlockName)(KS),window.wp&&window.wp.oldEditor&&e.some(({name:t})=>t===yb)&&(0,Fl.setFreeformContentHandlerName)(yb),(0,Fl.setUnregisteredTypeHandlerName)(ny),(0,Fl.setGroupingBlockName)(m4)},NNe=void 0;return Qve(DNe);})();
/*! Bundled license information:

use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
  (**
   * @license React
   * use-sync-external-store-shim.production.js
   *
   * Copyright (c) Meta Platforms, Inc. and affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   *)

fast-average-color/dist/index.esm.js:
  (*! Fast Average Color | © 2022 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color *)
*/