PluginProbe
Gutenberg / 24.1.0
Gutenberg v24.1.0
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
gutenberg / build / scripts / block-library / index.min.js

index.min.js in Gutenberg 24.1.0, at build/scripts/block-library/index.min.js

170 lines 1.3 MB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (function() {
2 "use strict";var wp;(wp||={}).blockLibrary=(()=>{var S_e=Object.create;var Ak=Object.defineProperty;var T_e=Object.getOwnPropertyDescriptor;var E_e=Object.getOwnPropertyNames;var P_e=Object.getPrototypeOf,B_e=Object.prototype.hasOwnProperty;var I_e=(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 Ae=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),J=(e,t)=>{for(var r in t)Ak(e,r,{get:t[r],enumerable:!0})},MH=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of E_e(t))!B_e.call(e,n)&&n!==r&&Ak(e,n,{get:()=>t[n],enumerable:!(o=T_e(t,n))||o.enumerable});return e};var a=(e,t,r)=>(r=e!=null?S_e(P_e(e)):{},MH(t||!e||!e.__esModule?Ak(r,"default",{value:e,enumerable:!0}):r,e)),N_e=e=>MH(Ak({},"__esModule",{value:!0}),e);var te=Ae((VRe,LH)=>{LH.exports=window.wp.blocks});var _e=Ae((zRe,RH)=>{RH.exports=window.wp.compose});var H=Ae((HRe,DH)=>{DH.exports=window.wp.data});var I=Ae((jRe,AH)=>{AH.exports=window.wp.blockEditor});var bd=Ae((URe,OH)=>{OH.exports=window.wp.serverSideRender});var L=Ae((WRe,FH)=>{FH.exports=window.wp.i18n});var AE=Ae(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.Doctype=hr.CDATA=hr.Tag=hr.Style=hr.Script=hr.Comment=hr.Directive=hr.Text=hr.Root=hr.isTag=hr.ElementType=void 0;var Ti;(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"})(Ti=hr.ElementType||(hr.ElementType={}));function L_e(e){return e.type===Ti.Tag||e.type===Ti.Script||e.type===Ti.Style}hr.isTag=L_e;hr.Root=Ti.Root;hr.Text=Ti.Text;hr.Directive=Ti.Directive;hr.Comment=Ti.Comment;hr.Script=Ti.Script;hr.Style=Ti.Style;hr.Tag=Ti.Tag;hr.CDATA=Ti.CDATA;hr.Doctype=Ti.Doctype});var zE=Ae(Je=>{"use strict";var yd=Je&&Je.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})(),Sb=Je&&Je.__assign||function(){return Sb=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Sb.apply(this,arguments)};Object.defineProperty(Je,"__esModule",{value:!0});Je.cloneNode=Je.hasChildren=Je.isDocument=Je.isDirective=Je.isComment=Je.isText=Je.isCDATA=Je.isTag=Je.Element=Je.Document=Je.CDATA=Je.NodeWithChildren=Je.ProcessingInstruction=Je.Comment=Je.Text=Je.DataNode=Je.Node=void 0;var $a=AE(),FE=(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),VE(this,t)},e})();Je.Node=FE;var Ok=(function(e){yd(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})(FE);Je.DataNode=Ok;var zH=(function(e){yd(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=$a.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t})(Ok);Je.Text=zH;var HH=(function(e){yd(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=$a.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t})(Ok);Je.Comment=HH;var jH=(function(e){yd(t,e);function t(r,o){var n=e.call(this,o)||this;return n.name=r,n.type=$a.ElementType.Directive,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t})(Ok);Je.ProcessingInstruction=jH;var Fk=(function(e){yd(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})(FE);Je.NodeWithChildren=Fk;var UH=(function(e){yd(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=$a.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t})(Fk);Je.CDATA=UH;var WH=(function(e){yd(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=$a.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t})(Fk);Je.Document=WH;var GH=(function(e){yd(t,e);function t(r,o,n,i){n===void 0&&(n=[]),i===void 0&&(i=r==="script"?$a.ElementType.Script:r==="style"?$a.ElementType.Style:$a.ElementType.Tag);var s=e.call(this,n)||this;return s.name=r,s.attribs=o,s.type=i,s}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(o){var n,i;return{name:o,value:r.attribs[o],namespace:(n=r["x-attribsNamespace"])===null||n===void 0?void 0:n[o],prefix:(i=r["x-attribsPrefix"])===null||i===void 0?void 0:i[o]}})},enumerable:!1,configurable:!0}),t})(Fk);Je.Element=GH;function $H(e){return(0,$a.isTag)(e)}Je.isTag=$H;function qH(e){return e.type===$a.ElementType.CDATA}Je.isCDATA=qH;function ZH(e){return e.type===$a.ElementType.Text}Je.isText=ZH;function KH(e){return e.type===$a.ElementType.Comment}Je.isComment=KH;function YH(e){return e.type===$a.ElementType.Directive}Je.isDirective=YH;function QH(e){return e.type===$a.ElementType.Root}Je.isDocument=QH;function R_e(e){return Object.prototype.hasOwnProperty.call(e,"children")}Je.hasChildren=R_e;function VE(e,t){t===void 0&&(t=!1);var r;if(ZH(e))r=new zH(e.data);else if(KH(e))r=new HH(e.data);else if($H(e)){var o=t?OE(e.children):[],n=new GH(e.name,Sb({},e.attribs),o);o.forEach(function(c){return c.parent=n}),e.namespace!=null&&(n.namespace=e.namespace),e["x-attribsNamespace"]&&(n["x-attribsNamespace"]=Sb({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(n["x-attribsPrefix"]=Sb({},e["x-attribsPrefix"])),r=n}else if(qH(e)){var o=t?OE(e.children):[],i=new UH(o);o.forEach(function(u){return u.parent=i}),r=i}else if(QH(e)){var o=t?OE(e.children):[],s=new WH(o);o.forEach(function(u){return u.parent=s}),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),r=s}else if(YH(e)){var l=new jH(e.name,e.data);e["x-name"]!=null&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),r=l}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}Je.cloneNode=VE;function OE(e){for(var t=e.map(function(o){return VE(o,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}});var jE=Ae(nc=>{"use strict";var D_e=nc&&nc.__createBinding||(Object.create?(function(e,t,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}):(function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]})),A_e=nc&&nc.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&D_e(t,e,r)};Object.defineProperty(nc,"__esModule",{value:!0});nc.DomHandler=void 0;var HE=AE(),vd=zE();A_e(zE(),nc);var XH={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},JH=(function(){function e(t,r,o){this.dom=[],this.root=new vd.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(o=r,r=XH),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??XH,this.elementCB=o??null}return e.prototype.onparserinit=function(t){this.parser=t},e.prototype.onreset=function(){this.dom=[],this.root=new vd.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?HE.ElementType.Tag:void 0,n=new vd.Element(t,r,void 0,o);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(t){var r=this.lastNode;if(r&&r.type===HE.ElementType.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{var o=new vd.Text(t);this.addNode(o),this.lastNode=o}},e.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===HE.ElementType.Comment){this.lastNode.data+=t;return}var r=new vd.Comment(t);this.addNode(r),this.lastNode=r},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var t=new vd.Text(""),r=new vd.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 vd.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})();nc.DomHandler=JH;nc.default=JH});var ej=Ae(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.CARRIAGE_RETURN_PLACEHOLDER_REGEX=on.CARRIAGE_RETURN_PLACEHOLDER=on.CARRIAGE_RETURN_REGEX=on.CARRIAGE_RETURN=on.CASE_SENSITIVE_TAG_NAMES_MAP=on.CASE_SENSITIVE_TAG_NAMES=void 0;on.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"];on.CASE_SENSITIVE_TAG_NAMES_MAP=on.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{});on.CARRIAGE_RETURN="\r";on.CARRIAGE_RETURN_REGEX=new RegExp(on.CARRIAGE_RETURN,"g");on.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__");on.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(on.CARRIAGE_RETURN_PLACEHOLDER,"g")});var UE=Ae(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.formatAttributes=tj;Ag.escapeSpecialCharacters=V_e;Ag.revertEscapedCharacters=rj;Ag.formatDOM=oj;var Vk=jE(),Tb=ej();function O_e(e){return Tb.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function tj(e){for(var t={},r=0,o=e.length;r<o;r++){var n=e[r];t[n.name]=n.value}return t}function F_e(e){e=e.toLowerCase();var t=O_e(e);return t||e}function V_e(e){return e.replace(Tb.CARRIAGE_RETURN_REGEX,Tb.CARRIAGE_RETURN_PLACEHOLDER)}function rj(e){return e.replace(Tb.CARRIAGE_RETURN_PLACEHOLDER_REGEX,Tb.CARRIAGE_RETURN)}function oj(e,t,r){t===void 0&&(t=null);for(var o=[],n,i=0,s=e.length;i<s;i++){var l=e[i];switch(l.nodeType){case 1:{var c=F_e(l.nodeName);n=new Vk.Element(c,tj(l.attributes)),n.children=oj(c==="template"?l.content.childNodes:l.childNodes,n);break}case 3:n=new Vk.Text(rj(l.nodeValue));break;case 8:n=new Vk.Comment(l.nodeValue);break;default:continue}var u=o[i-1]||null;u&&(u.next=n),n.parent=t,n.prev=u,n.next=null,o.push(n)}return r&&(n=new Vk.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r),n.next=o[0]||null,n.parent=t,o.unshift(n),o[1]&&(o[1].prev=o[0])),o}});var dj=Ae($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.default=j_e;var z_e=UE(),nj="html",aj="head",zk="body",H_e=/<([a-zA-Z]+[0-9]?)/,ij=/<head[^]*>/i,sj=/<body[^]*>/i,jk=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},WE=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},lj=typeof window=="object"&&window.DOMParser;typeof lj=="function"&&(cj=new lj,uj="text/html",WE=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),cj.parseFromString(e,uj)},jk=WE);var cj,uj;typeof document=="object"&&document.implementation&&(Eb=document.implementation.createHTMLDocument(),jk=function(e,t){if(t){var r=Eb.documentElement.querySelector(t);return r&&(r.innerHTML=e),Eb}return Eb.documentElement.innerHTML=e,Eb});var Eb,Hk=typeof document=="object"&&document.createElement("template"),GE;Hk&&Hk.content&&(GE=function(e){return Hk.innerHTML=e,Hk.content.childNodes});function j_e(e){var t,r;e=(0,z_e.escapeSpecialCharacters)(e);var o=e.match(H_e),n=o&&o[1]?o[1].toLowerCase():"";switch(n){case nj:{var i=WE(e);if(!ij.test(e)){var s=i.querySelector(aj);(t=s?.parentNode)===null||t===void 0||t.removeChild(s)}if(!sj.test(e)){var s=i.querySelector(zk);(r=s?.parentNode)===null||r===void 0||r.removeChild(s)}return i.querySelectorAll(nj)}case aj:case zk:{var l=jk(e).querySelectorAll(n);return sj.test(e)&&ij.test(e)?l[0].parentNode.childNodes:l}default:{if(GE)return GE(e);var s=jk(e,zk).querySelector(zk);return s.childNodes}}}});var pj=Ae(Pb=>{"use strict";var U_e=Pb&&Pb.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pb,"__esModule",{value:!0});Pb.default=q_e;var W_e=U_e(dj()),G_e=UE(),$_e=/<(![a-zA-Z\s]+)>/;function q_e(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match($_e),r=t?t[1]:void 0;return(0,G_e.formatDOM)((0,W_e.default)(e),null,r)}});var mj=Ae(Uk=>{var Z_e=0;Uk.SAME=Z_e;var K_e=1;Uk.CAMELCASE=K_e;Uk.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 gj=Ae(ul=>{"use strict";function Y_e(e){return nn.hasOwnProperty(e)?nn[e]:null}function da(e,t,r,o,n,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var nn={},Q_e=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Q_e.forEach(e=>{nn[e]=new da(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{nn[e]=new da(e,1,!1,t,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(e=>{nn[e]=new da(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{nn[e]=new da(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=>{nn[e]=new da(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(e=>{nn[e]=new da(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(e=>{nn[e]=new da(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(e=>{nn[e]=new da(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(e=>{nn[e]=new da(e,5,!1,e.toLowerCase(),null,!1,!1)});var qE=/[\-\:]([a-z])/g,ZE=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(qE,ZE);nn[t]=new da(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(qE,ZE);nn[t]=new da(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(e=>{let t=e.replace(qE,ZE);nn[t]=new da(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(e=>{nn[e]=new da(e,1,!1,e.toLowerCase(),null,!1,!1)});var X_e="xlinkHref";nn[X_e]=new da("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(e=>{nn[e]=new da(e,1,!1,e.toLowerCase(),null,!0,!0)});var{CAMELCASE:J_e,SAME:e2e,possibleStandardNames:fj}=mj(),t2e=":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",r2e=t2e+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",o2e=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r2e+"]*$")),n2e=Object.keys(fj).reduce((e,t)=>{let r=fj[t];return r===e2e?e[t]=t:r===J_e?e[t.toLowerCase()]=t:e[t]=r,e},{});ul.BOOLEAN=3;ul.BOOLEANISH_STRING=2;ul.NUMERIC=5;ul.OVERLOADED_BOOLEAN=4;ul.POSITIVE_NUMERIC=6;ul.RESERVED=0;ul.STRING=1;ul.getPropertyInfo=Y_e;ul.isCustomAttribute=o2e;ul.possibleStandardNames=n2e});var Ne=Ae((tDe,hj)=>{hj.exports=window.React});var kj=Ae((rDe,xj)=>{"use strict";var bj=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a2e=/\n/g,i2e=/^\s*/,s2e=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l2e=/^:\s*/,c2e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u2e=/^[;\s]*/,d2e=/^\s+|\s+$/g,p2e=`
3 `,yj="/",vj="*",am="",m2e="comment",f2e="declaration";function g2e(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,o=1;function n(g){var h=g.match(a2e);h&&(r+=h.length);var b=g.lastIndexOf(p2e);o=~b?g.length-b:o+g.length}function i(){var g={line:r,column:o};return function(h){return h.position=new s(g),u(),h}}function s(g){this.start=g,this.end={line:r,column:o},this.source=t.source}s.prototype.content=e;function l(g){var h=new Error(t.source+":"+r+":"+o+": "+g);if(h.reason=g,h.filename=t.source,h.line=r,h.column=o,h.source=e,!t.silent)throw h}function c(g){var h=g.exec(e);if(h){var b=h[0];return n(b),e=e.slice(b.length),h}}function u(){c(i2e)}function d(g){var h;for(g=g||[];h=p();)h!==!1&&g.push(h);return g}function p(){var g=i();if(!(yj!=e.charAt(0)||vj!=e.charAt(1))){for(var h=2;am!=e.charAt(h)&&(vj!=e.charAt(h)||yj!=e.charAt(h+1));)++h;if(h+=2,am===e.charAt(h-1))return l("End of comment missing");var b=e.slice(2,h-2);return o+=2,n(b),e=e.slice(h),o+=2,g({type:m2e,comment:b})}}function m(){var g=i(),h=c(s2e);if(h){if(p(),!c(l2e))return l("property missing ':'");var b=c(c2e),_=g({type:f2e,property:_j(h[0].replace(bj,am)),value:b?_j(b[0].replace(bj,am)):am});return c(u2e),_}}function f(){var g=[];d(g);for(var h;h=m();)h!==!1&&(g.push(h),d(g));return g}return u(),f()}function _j(e){return e?e.replace(d2e,am):am}xj.exports=g2e});var wj=Ae(Bb=>{"use strict";var h2e=Bb&&Bb.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bb,"__esModule",{value:!0});Bb.default=y2e;var b2e=h2e(kj());function y2e(e,t){let r=null;if(!e||typeof e!="string")return r;let o=(0,b2e.default)(e),n=typeof t=="function";return o.forEach(i=>{if(i.type!=="declaration")return;let{property:s,value:l}=i;n?t(s,l,i):l&&(r=r||{},r[s]=l)}),r}});var Sj=Ae(Wk=>{"use strict";Object.defineProperty(Wk,"__esModule",{value:!0});Wk.camelCase=void 0;var v2e=/^--[a-zA-Z0-9_-]+$/,_2e=/-([a-z])/g,x2e=/^[^-]+$/,k2e=/^-(webkit|moz|ms|o|khtml)-/,w2e=/^-(ms)-/,C2e=function(e){return!e||x2e.test(e)||v2e.test(e)},S2e=function(e,t){return t.toUpperCase()},Cj=function(e,t){return"".concat(t,"-")},T2e=function(e,t){return t===void 0&&(t={}),C2e(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(w2e,Cj):e=e.replace(k2e,Cj),e.replace(_2e,S2e))};Wk.camelCase=T2e});var Ej=Ae((YE,Tj)=>{"use strict";var E2e=YE&&YE.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},P2e=E2e(wj()),B2e=Sj();function KE(e,t){var r={};return!e||typeof e!="string"||(0,P2e.default)(e,function(o,n){o&&n&&(r[(0,B2e.camelCase)(o,t)]=n)}),r}KE.default=KE;Tj.exports=KE});var QE=Ae(pa=>{"use strict";var I2e=pa&&pa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pa,"__esModule",{value:!0});pa.returnFirstArg=pa.canTextBeChildOfNode=pa.ELEMENTS_WITH_NO_TEXT_CHILDREN=pa.PRESERVE_CUSTOM_ATTRIBUTES=void 0;pa.isCustomComponent=R2e;pa.setStyleProp=A2e;var N2e=Ne(),M2e=I2e(Ej()),L2e=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function R2e(e,t){return e.includes("-")?!L2e.has(e):!!(t&&typeof t.is=="string")}var D2e={reactCompat:!0};function A2e(e,t){if(typeof e=="string"){if(!e.trim()){t.style={};return}try{t.style=(0,M2e.default)(e,D2e)}catch{t.style={}}}}pa.PRESERVE_CUSTOM_ATTRIBUTES=Number(N2e.version.split(".")[0])>=16;pa.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var O2e=function(e){return!pa.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)};pa.canTextBeChildOfNode=O2e;var F2e=function(e){return e};pa.returnFirstArg=F2e});var JE=Ae(XE=>{"use strict";Object.defineProperty(XE,"__esModule",{value:!0});XE.default=j2e;var Ib=gj(),Pj=QE(),V2e=["checked","value"],z2e=["input","select","textarea"],H2e={reset:!0,submit:!0};function j2e(e,t){e===void 0&&(e={});var r={},o=!!(e.type&&H2e[e.type]);for(var n in e){var i=e[n];if((0,Ib.isCustomAttribute)(n)){r[n]=i;continue}var s=n.toLowerCase(),l=Bj(s);if(l){var c=(0,Ib.getPropertyInfo)(l);switch(V2e.includes(l)&&z2e.includes(t)&&!o&&(l=Bj("default"+s)),r[l]=i,c&&c.type){case Ib.BOOLEAN:r[l]=!0;break;case Ib.OVERLOADED_BOOLEAN:i===""&&(r[l]=!0);break}continue}Pj.PRESERVE_CUSTOM_ATTRIBUTES&&(r[n]=i)}return(0,Pj.setStyleProp)(e.style,r),r}function Bj(e){return Ib.possibleStandardNames[e]}});var Nj=Ae(Mb=>{"use strict";var U2e=Mb&&Mb.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mb,"__esModule",{value:!0});Mb.default=Ij;var eP=Ne(),W2e=U2e(JE()),Nb=QE(),G2e={cloneElement:eP.cloneElement,createElement:eP.createElement,isValidElement:eP.isValidElement};function Ij(e,t){t===void 0&&(t={});for(var r=[],o=typeof t.replace=="function",n=t.transform||Nb.returnFirstArg,i=t.library||G2e,s=i.cloneElement,l=i.createElement,c=i.isValidElement,u=e.length,d=0;d<u;d++){var p=e[d];if(o){var m=t.replace(p,d);if(c(m)){u>1&&(m=s(m,{key:m.key||d})),r.push(n(m,p,d));continue}}if(p.type==="text"){var f=!p.data.trim().length;if(f&&p.parent&&!(0,Nb.canTextBeChildOfNode)(p.parent)||t.trim&&f)continue;r.push(n(p.data,p,d));continue}var g=p,h={};$2e(g)?((0,Nb.setStyleProp)(g.attribs.style,g.attribs),h=g.attribs):g.attribs&&(h=(0,W2e.default)(g.attribs,g.name));var b=void 0;switch(p.type){case"script":case"style":p.children[0]&&(h.dangerouslySetInnerHTML={__html:p.children[0].data});break;case"tag":p.name==="textarea"&&p.children[0]?h.defaultValue=p.children[0].data:p.children&&p.children.length&&(b=Ij(p.children,t));break;default:continue}u>1&&(h.key=d),r.push(n(l(p.name,h,b),p,d))}return r.length===1?r[0]:r}function $2e(e){return Nb.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,Nb.isCustomComponent)(e.name,e.attribs)}});var rP=Ae(To=>{"use strict";var tP=To&&To.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(To,"__esModule",{value:!0});To.htmlToDOM=To.domToReact=To.attributesToProps=To.Text=To.ProcessingInstruction=To.Element=To.Comment=void 0;To.default=K2e;var Mj=tP(pj());To.htmlToDOM=Mj.default;var q2e=tP(JE());To.attributesToProps=q2e.default;var Lj=tP(Nj());To.domToReact=Lj.default;var Gk=jE();Object.defineProperty(To,"Comment",{enumerable:!0,get:function(){return Gk.Comment}});Object.defineProperty(To,"Element",{enumerable:!0,get:function(){return Gk.Element}});Object.defineProperty(To,"ProcessingInstruction",{enumerable:!0,get:function(){return Gk.ProcessingInstruction}});Object.defineProperty(To,"Text",{enumerable:!0,get:function(){return Gk.Text}});var Z2e={lowerCaseAttributeNames:!1};function K2e(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e?(0,Lj.default)((0,Mj.default)(e,t?.htmlparser2||Z2e),t):[]}});var ma=Ae((uDe,Dj)=>{Dj.exports=window.wp.dom});var y=Ae((dDe,Aj)=>{Aj.exports=window.ReactJSXRuntime});var W=Ae((gDe,Vj)=>{Vj.exports=window.wp.element});var A=Ae((bDe,zj)=>{zj.exports=window.wp.primitives});var F=Ae((kHe,Hj)=>{Hj.exports=window.wp.components});var Ur=Ae((wHe,jj)=>{jj.exports=window.wp.blob});var ae=Ae((CHe,Uj)=>{Uj.exports=window.wp.coreData});var qt=Ae((kje,SU)=>{SU.exports=window.wp.url});var $o=Ae((Sje,IU)=>{IU.exports=window.wp.htmlEntities});var _W=Ae((oWe,vW)=>{vW.exports=window.ReactDOM});var SW=Ae(CW=>{"use strict";var Sh=Ne();function Rke(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dke=typeof Object.is=="function"?Object.is:Rke,Ake=Sh.useState,Oke=Sh.useEffect,Fke=Sh.useLayoutEffect,Vke=Sh.useDebugValue;function zke(e,t){var r=t(),o=Ake({inst:{value:r,getSnapshot:t}}),n=o[0].inst,i=o[1];return Fke(function(){n.value=r,n.getSnapshot=t,rM(n)&&i({inst:n})},[e,r,t]),Oke(function(){return rM(n)&&i({inst:n}),e(function(){rM(n)&&i({inst:n})})},[e]),Vke(r),r}function rM(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Dke(e,r)}catch{return!0}}function Hke(e,t){return t()}var jke=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Hke:zke;CW.useSyncExternalStore=Sh.useSyncExternalStore!==void 0?Sh.useSyncExternalStore:jke});var EW=Ae((wWe,TW)=>{"use strict";TW.exports=SW()});var PM=Ae((xKe,$G)=>{$G.exports=window.wp.privateApis});var O_=Ae((AKe,n$)=>{n$.exports=window.wp.a11y});var br=Ae((qQe,hq)=>{hq.exports=window.wp.notices});var fc=Ae((rJe,Xq)=>{Xq.exports=window.wp.keycodes});var jm=Ae((sJe,tZ)=>{tZ.exports=window.wp.deprecated});var vl=Ae((NJe,fZ)=>{fZ.exports=window.wp.richText});var MC=Ae((Crt,pY)=>{pY.exports=window.wp.date});var l2=Ae((rot,EY)=>{EY.exports=window.wp.apiFetch});var Kd=Ae((Fnt,mX)=>{mX.exports=window.wp.hooks});var iee=Ae((sst,aee)=>{aee.exports=window.wp.styleEngine});var uee=Ae((ust,cee)=>{"use strict";cee.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var o,n,i;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!e(t[n],r[n]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;for(n of t.entries())if(!e(n[1],r.get(n[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(o=t.length,o!=r.length)return!1;for(n=o;n--!==0;)if(t[n]!==r[n])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),o=i.length,o!==Object.keys(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[n]))return!1;for(n=o;n--!==0;){var s=i[n];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}});var kte=Ae((Xlt,Y3)=>{var vte={\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"},_te=Object.keys(vte).join("|"),t6e=new RegExp(_te,"g"),r6e=new RegExp(_te,"");function o6e(e){return vte[e]}var xte=function(e){return e.replace(t6e,o6e)},n6e=function(e){return!!e.match(r6e)};Y3.exports=xte;Y3.exports.has=n6e;Y3.exports.remove=xte});var kre=Ae((wut,xre)=>{xre.exports=window.wp.uploadMedia});var P9=Ae((ygt,Sie)=>{Sie.exports=window.wp.escapeHtml});var ape=Ae((h2t,npe)=>{npe.exports=window.wp.wordcount});var lge=Ae((nwt,sge)=>{sge.exports=window.wp.patterns});var the=Ae((c4t,ehe)=>{ehe.exports=window.wp.autop});var ohe=Ae((u4t,rhe)=>{rhe.exports=window.wp.shortcode});var ARe={};J(ARe,{__experimentalGetCoreBlocks:()=>m_e,__experimentalRegisterExperimentalCoreBlocks:()=>DRe,privateApis:()=>_H,registerCoreBlocks:()=>RRe});var al=a(te(),1),l_e=a(_e(),1),c_e=a(H(),1),u_e=a(I(),1),d_e=a(bd(),1),Pk=a(L(),1);function VH(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=VH(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function M_e(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=VH(e))&&(o&&(o+=" "),o+=t);return o}var T=M_e;var oP=a(rP(),1),dl=a(rP(),1),Rj=oP.default.default||oP.default;var Oj=a(ma(),1),Fj=a(y(),1),Y2e=({wrapperProps:e={},html:t=""})=>{let r={replace:({name:i,type:s,attribs:l,parent:c,children:u})=>{if(s==="tag"&&i){let d=(0,dl.attributesToProps)(l||{}),p=i;if(!c){let m={...d,...e,className:T(d.className,e.className),style:{...d.style||{},...e.style||{}}};return(0,Fj.jsx)(p,{...m,children:(0,dl.domToReact)(u,r)})}}}},o=(0,Oj.safeHTML)(t);return Rj(o,r)},Eo=Y2e;var EN={};J(EN,{init:()=>txe,metadata:()=>Bw,name:()=>Qj,settings:()=>Xj});var TN=a(L(),1);var $k=a(W(),1),fa=(0,$k.forwardRef)(({icon:e,size:t=24,style:r,...o},n)=>{let i=e.props.style,s=i||r?{...i,...r}:void 0;return(0,$k.cloneElement)(e,{width:t,height:t,...o,...s?{style:s}:{},ref:n})});var qk=a(A(),1),nP=a(y(),1),aP=(0,nP.jsx)(qk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,nP.jsx)(qk.Path,{d:"M4.755 14.5L7 12L4.755 9.5M10 12H20",vectorEffect:"non-scaling-stroke"})});var Zk=a(A(),1),iP=a(y(),1),sP=(0,iP.jsx)(Zk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,iP.jsx)(Zk.Path,{d:"M4.755 10.5L7 8L4.755 5.5M10 12H19.5M10 16H19.5M10 8H19.5",vectorEffect:"non-scaling-stroke"})});var Kk=a(A(),1),lP=a(y(),1),cP=(0,lP.jsx)(Kk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,lP.jsx)(Kk.Path,{d:"M4.755 10.5L7 8L4.755 5.5M4.755 18.5L7 16L4.755 13.5M10 8H20M10 16H20",vectorEffect:"non-scaling-stroke"})});var Yk=a(A(),1),uP=a(y(),1),im=(0,uP.jsx)(Yk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,uP.jsx)(Yk.Path,{d:"M10.5 17H8C5.23858 17 3 14.7614 3 12C3 9.23858 5.23858 7 8 7H11M8.5 19.5L10.5 17L8.5 14.5M13.5 12H21.5M13.5 7H21.5M13.5 17H21.5",vectorEffect:"non-scaling-stroke"})});var Qk=a(A(),1),dP=a(y(),1),pP=(0,dP.jsx)(Qk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,dP.jsx)(Qk.Path,{d:"M7.5 5H16.5M4 12H20M7.5 19H16.5",vectorEffect:"non-scaling-stroke"})});var Xk=a(A(),1),mP=a(y(),1),fP=(0,mP.jsx)(Xk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,mP.jsx)(Xk.Path,{d:"M4 5H13M4 12H20M4 19H13",vectorEffect:"non-scaling-stroke"})});var Og=a(A(),1),Lb=a(y(),1),gP=(0,Lb.jsxs)(Og.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Lb.jsx)(Og.Path,{d:"M5 5H19M5 19H19",vectorEffect:"non-scaling-stroke"}),(0,Lb.jsx)(Og.Rect,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"})]});var Jk=a(A(),1),hP=a(y(),1),bP=(0,hP.jsx)(Jk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,hP.jsx)(Jk.Path,{d:"M11 5H20M4 12H20M11 19H20",vectorEffect:"non-scaling-stroke"})});var e5=a(A(),1),yP=a(y(),1),vP=(0,yP.jsx)(e5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,yP.jsx)(e5.Path,{d:"M8.5 11H15.5M8.5 14.5H15.5M20.25 17.5V8.5C20.25 7.80964 19.6904 7.25 19 7.25H13.3463C12.8352 7.25 12.3755 6.93881 12.1857 6.46424L11.8143 5.53576C11.6245 5.06119 11.1648 4.75 10.6537 4.75H5C4.30964 4.75 3.75 5.30964 3.75 6V17.5C3.75 18.1904 4.30964 18.75 5 18.75H19C19.6904 18.75 20.25 18.1904 20.25 17.5Z",vectorEffect:"non-scaling-stroke"})});var Rb=a(A(),1),Db=a(y(),1),sm=(0,Db.jsxs)(Rb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Db.jsx)(Rb.Path,{d:"M13.25 16.5C13.25 18.0188 12.0188 19.25 10.5 19.25C8.98122 19.25 7.75 18.0188 7.75 16.5C7.75 14.9812 8.98122 13.75 10.5 13.75C12.0188 13.75 13.25 14.9812 13.25 16.5Z",fill:"currentColor",stroke:"none"}),(0,Db.jsx)(Rb.Path,{d:"M10.5 19.25C12.0188 19.25 13.25 18.0188 13.25 16.5C13.25 14.9812 12.0188 13.75 10.5 13.75C8.98122 13.75 7.75 14.9812 7.75 16.5C7.75 18.0188 8.98122 19.25 10.5 19.25ZM10.5 19.25C13.4867 19.25 13.75 16.5 13.75 15.1379V7.99998C13.75 4.9108 16.4 5.00254 18 5.00233",vectorEffect:"non-scaling-stroke"})]});var Ab=a(A(),1),Ob=a(y(),1),_P=(0,Ob.jsxs)(Ab.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Ob.jsx)(Ab.Path,{d:"M3.75 10C3.75 9.30964 4.30964 8.75 5 8.75H19C19.6904 8.75 20.25 9.30964 20.25 10V18C20.25 18.6904 19.6904 19.25 19 19.25H5C4.30964 19.25 3.75 18.6904 3.75 18V10Z",vectorEffect:"non-scaling-stroke"}),(0,Ob.jsx)(Ab.Path,{d:"M10.5 6.5V9H6.5V6.5H10.5ZM17.5 6.5V9H13.5V6.5H17.5Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var t5=a(A(),1),xP=a(y(),1),Fb=(0,xP.jsx)(t5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,xP.jsx)(t5.Path,{d:"M4.75 9.5V6C4.75 5.30964 5.30964 4.75 6 4.75L18 4.75C18.6904 4.75 19.25 5.30964 19.25 6V9.5M4.75 9.5H12M4.75 9.5V14.5M19.25 9.5H12M19.25 9.5V14.5M12 9.5V14.5M12 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V14.5M12 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V14.5M12 19.25V14.5M12 14.5H19.25M12 14.5H4.75",vectorEffect:"non-scaling-stroke"})});var Fg=a(A(),1),Vg=a(y(),1),kP=(0,Vg.jsxs)(Fg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Vg.jsx)(Fg.Path,{d:"M6.25 11.25H4.75V12.75H6.25V11.25Z",fill:"currentColor",stroke:"none"}),(0,Vg.jsx)(Fg.Path,{d:"M19.25 11.25H17.75V12.75H19.25V11.25Z",fill:"currentColor",stroke:"none"}),(0,Vg.jsx)(Fg.Path,{d:"M10.755 14.5L13 12L10.755 9.5M4.75 11.25H6.25V12.75H4.75V11.25ZM17.75 11.25H19.25V12.75H17.75V11.25Z",vectorEffect:"non-scaling-stroke"})]});var r5=a(A(),1),wP=a(y(),1),CP=(0,wP.jsx)(r5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,wP.jsx)(r5.Path,{d:"M8 11.75H16M5 16.25H19C19.6904 16.25 20.25 15.6904 20.25 15V8.5C20.25 7.80964 19.6904 7.25 19 7.25H5C4.30964 7.25 3.75 7.80964 3.75 8.5V15C3.75 15.6904 4.30964 16.25 5 16.25Z",vectorEffect:"non-scaling-stroke"})});var o5=a(A(),1),SP=a(y(),1),TP=(0,SP.jsx)(o5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,SP.jsx)(o5.Path,{d:"M9.5 7.25H14.5M9.5 16.75H14.5M7 19.75H17C17.6904 19.75 18.25 19.1904 18.25 18.5V15C18.25 14.3096 17.6904 13.75 17 13.75H7C6.30964 13.75 5.75 14.3096 5.75 15V18.5C5.75 19.1904 6.30964 19.75 7 19.75ZM7 10.25H17C17.6904 10.25 18.25 9.69036 18.25 9V5.5C18.25 4.80964 17.6904 4.25 17 4.25H7C6.30964 4.25 5.75 4.80964 5.75 5.5V9C5.75 9.69036 6.30964 10.25 7 10.25Z",vectorEffect:"non-scaling-stroke"})});var Vb=a(A(),1),zb=a(y(),1),Hb=(0,zb.jsxs)(Vb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,zb.jsx)(Vb.Path,{d:"M4.75 7.25L4.75 18C4.75 18.6904 5.30964 19.25 6 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V7.25V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V7.25ZM19.25 7.25H4.75M7.25 10.75H9.25M11 10.75H13M14.75 10.75H16.75M7.25 14.5H9.25M11 14.5H13M14.75 14.5H16.75",vectorEffect:"non-scaling-stroke"}),(0,zb.jsx)(Vb.Path,{d:"M18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V7.25H19.25V6C19.25 5.30964 18.6904 4.75 18 4.75Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var n5=a(A(),1),EP=a(y(),1),PP=(0,EP.jsx)(n5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,EP.jsx)(n5.Path,{d:"M8 15.25H10M11 15.25H13M14 15.25H16M6 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V18C4.75 18.6904 5.30964 19.25 6 19.25Z",vectorEffect:"non-scaling-stroke"})});var lm=a(A(),1),cm=a(y(),1),_d=(0,cm.jsxs)(lm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,cm.jsx)(lm.Path,{d:"M4.75 6C4.75 5.30964 5.30964 4.75 6 4.75H9C9.69036 4.75 10.25 5.30964 10.25 6V9C10.25 9.69036 9.69036 10.25 9 10.25H6C5.30964 10.25 4.75 9.69036 4.75 9V6Z",vectorEffect:"non-scaling-stroke"}),(0,cm.jsx)(lm.Path,{d:"M4.75 15C4.75 14.3096 5.30964 13.75 6 13.75H9C9.69036 13.75 10.25 14.3096 10.25 15V18C10.25 18.6904 9.69036 19.25 9 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V15Z",vectorEffect:"non-scaling-stroke"}),(0,cm.jsx)(lm.Path,{d:"M13.75 6C13.75 5.30964 14.3096 4.75 15 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V9C19.25 9.69036 18.6904 10.25 18 10.25H15C14.3096 10.25 13.75 9.69036 13.75 9V6Z",vectorEffect:"non-scaling-stroke"}),(0,cm.jsx)(lm.Path,{d:"M13.75 15C13.75 14.3096 14.3096 13.75 15 13.75H18C18.6904 13.75 19.25 14.3096 19.25 15V18C19.25 18.6904 18.6904 19.25 18 19.25H15C14.3096 19.25 13.75 18.6904 13.75 18V15Z",vectorEffect:"non-scaling-stroke"})]});var a5=a(A(),1),BP=a(y(),1),jb=(0,BP.jsx)(a5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,BP.jsx)(a5.Path,{d:"M7 11L12 15L17 11",vectorEffect:"non-scaling-stroke"})});var i5=a(A(),1),IP=a(y(),1),NP=(0,IP.jsx)(i5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,IP.jsx)(i5.Path,{d:"M13.5 8.5L10.5 12L13.5 15.5",vectorEffect:"non-scaling-stroke"})});var s5=a(A(),1),MP=a(y(),1),l5=(0,MP.jsx)(s5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,MP.jsx)(s5.Path,{d:"M14 6.5L9 12L14 17.5",vectorEffect:"non-scaling-stroke"})});var c5=a(A(),1),LP=a(y(),1),RP=(0,LP.jsx)(c5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,LP.jsx)(c5.Path,{d:"M10.5 8.5L13.5 12L10.5 15.5",vectorEffect:"non-scaling-stroke"})});var u5=a(A(),1),DP=a(y(),1),zg=(0,DP.jsx)(u5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,DP.jsx)(u5.Path,{d:"M10 6.5L15 12L10 17.5",vectorEffect:"non-scaling-stroke"})});var d5=a(A(),1),AP=a(y(),1),OP=(0,AP.jsx)(d5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,AP.jsx)(d5.Path,{d:"M7 13L12 9L17 13",vectorEffect:"non-scaling-stroke"})});var p5=a(A(),1),FP=a(y(),1),Ub=(0,FP.jsx)(p5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,FP.jsx)(p5.Path,{d:"M5 10H7M8 10H10M11 10H13M14 10H16M17 10H19M5 14H7M8 14H16M17 14H19M4 18.25H20C20.6904 18.25 21.25 17.6904 21.25 17V7C21.25 6.30964 20.6904 5.75 20 5.75H4C3.30964 5.75 2.75 6.30964 2.75 7V17C2.75 17.6904 3.30964 18.25 4 18.25Z",vectorEffect:"non-scaling-stroke"})});var m5=a(A(),1),VP=a(y(),1),um=(0,VP.jsx)(m5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,VP.jsx)(m5.Path,{d:"M5 19L19 5M19 19L5 5",vectorEffect:"non-scaling-stroke"})});var f5=a(A(),1),zP=a(y(),1),Wb=(0,zP.jsx)(f5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,zP.jsx)(f5.Path,{d:"M7.99997 7L3.70708 11.2929C3.31655 11.6834 3.31655 12.3166 3.70708 12.7071L7.99997 17M16 17L20.2929 12.7071C20.6834 12.3166 20.6834 11.6834 20.2929 11.2929L16 7",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})});var Gb=a(A(),1),$b=a(y(),1),HP=(0,$b.jsxs)(Gb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,$b.jsx)(Gb.Path,{d:"M14.75 5.75H19C19.6904 5.75 20.25 6.30964 20.25 7V17C20.25 17.6904 19.6904 18.25 19 18.25H14.75M14.75 5.75V18.25M14.75 5.75H9.25M14.75 18.25H9.25M9.25 18.25H5C4.30964 18.25 3.75 17.6904 3.75 17V7C3.75 6.30964 4.30964 5.75 5 5.75H9.25M9.25 18.25V5.75",vectorEffect:"non-scaling-stroke"}),(0,$b.jsx)(Gb.Path,{d:"M14.75 18.25V5.75H9.25V18.25H14.75Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var g5=a(A(),1),jP=a(y(),1),UP=(0,jP.jsx)(g5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,jP.jsx)(g5.Path,{d:"M14.75 5.75H19C19.6904 5.75 20.25 6.30964 20.25 7V17C20.25 17.6904 19.6904 18.25 19 18.25H14.75M14.75 5.75V18.25M14.75 5.75H9.25M14.75 18.25H9.25M9.25 18.25H5C4.30964 18.25 3.75 17.6904 3.75 17V7C3.75 6.30964 4.30964 5.75 5 5.75H9.25M9.25 18.25V5.75",vectorEffect:"non-scaling-stroke"})});var Hg=a(A(),1),jg=a(y(),1),qb=(0,jg.jsxs)(Hg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,jg.jsx)(Hg.Path,{d:"M8 18.0476V16C8 14.8954 8.89543 14 10 14H14C15.1046 14 16 14.8954 16 16V18.0476",vectorEffect:"non-scaling-stroke"}),(0,jg.jsx)(Hg.Path,{d:"M12 4.75C7.99594 4.75 4.75 7.99593 4.75 12C4.75 16.0041 7.99593 19.25 12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,jg.jsx)(Hg.Path,{d:"M13.75 10C13.75 10.9665 12.9665 11.75 12 11.75C11.0335 11.75 10.25 10.9665 10.25 10C10.25 9.0335 11.0335 8.25 12 8.25C12.9665 8.25 13.75 9.0335 13.75 10Z",vectorEffect:"non-scaling-stroke"})]});var Zb=a(A(),1),Kb=a(y(),1),WP=(0,Kb.jsxs)(Zb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Kb.jsx)(Zb.Path,{d:"M8 16.25H18C18.6904 16.25 19.25 15.6904 19.25 15V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V16.25V18.6596C4.75 19.1225 5.32471 19.3369 5.62784 18.9871L8 16.25ZM8 16.25V15C8 13.8954 8.89543 13 10 13H14C15.1046 13 16 13.8954 16 15V16.25",vectorEffect:"non-scaling-stroke"}),(0,Kb.jsx)(Zb.Path,{d:"M13.75 9C13.75 9.9665 12.9665 10.75 12 10.75C11.0335 10.75 10.25 9.9665 10.25 9C10.25 8.0335 11.0335 7.25 12 7.25C12.9665 7.25 13.75 8.0335 13.75 9Z",vectorEffect:"non-scaling-stroke"})]});var h5=a(A(),1),GP=a(y(),1),$P=(0,GP.jsx)(h5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,GP.jsx)(h5.Path,{d:"M8 12H12M8 9H16M4.75 16.25V6C4.75 5.30964 5.30964 4.75 6 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V15C19.25 15.6904 18.6904 16.25 18 16.25H8L5.62784 18.9871C5.32471 19.3369 4.75 19.1225 4.75 18.6596V16.25Z",vectorEffect:"non-scaling-stroke"})});var Ug=a(A(),1),Wg=a(y(),1),qP=(0,Wg.jsxs)(Ug.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Wg.jsx)(Ug.Path,{d:"M13.25 6.5V5.25C13.25 4.97386 13.0261 4.75 12.75 4.75H5.25C4.97386 4.75 4.75 4.97386 4.75 5.25V13.0086C4.75 13.0977 4.85771 13.1423 4.92071 13.0793L7 11H8.5",vectorEffect:"non-scaling-stroke"}),(0,Wg.jsx)(Ug.Path,{d:"M7 19.25H14",vectorEffect:"non-scaling-stroke"}),(0,Wg.jsx)(Ug.Path,{d:"M12 15L9.5 15.5L10 13L18 5L20 7L12 15Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var Yb=a(A(),1),Qb=a(y(),1),ZP=(0,Qb.jsxs)(Yb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Qb.jsx)(Yb.Path,{d:"M13.25 6.5V5.25C13.25 4.97386 13.0261 4.75 12.75 4.75H5.25C4.97386 4.75 4.75 4.97386 4.75 5.25V13.0086C4.75 13.0977 4.85771 13.1423 4.92071 13.0793L7 11H8.5",vectorEffect:"non-scaling-stroke"}),(0,Qb.jsx)(Yb.Path,{d:"M14.25 17L10.75 13L14.25 9M10.75 13H17.25C20.25 13 20.5 15.8 20.5 19",vectorEffect:"non-scaling-stroke"})]});var b5=a(A(),1),KP=a(y(),1),Xb=(0,KP.jsx)(b5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,KP.jsx)(b5.Path,{d:"M18 5.5H6C5.30964 5.5 4.75 6.05964 4.75 6.75V16V18.4096C4.75 18.8725 5.32471 19.0869 5.62784 18.7371L8 16H18C18.6904 16 19.25 15.4404 19.25 14.75V6.75C19.25 6.05964 18.6904 5.5 18 5.5Z",vectorEffect:"non-scaling-stroke"})});var y5=a(A(),1),YP=a(y(),1),Jb=(0,YP.jsx)(y5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,YP.jsx)(y5.Path,{d:"M19.25 10V8C19.25 7.30964 18.6904 6.75 18 6.75H16M19.25 14V16C19.25 16.6904 18.6904 17.25 18 17.25H16M13.5 17.25H10.5M8 17.25H6C5.30964 17.25 4.75 16.6904 4.75 16V14M13.5 6.75H10.5M8 6.75H6C5.30964 6.75 4.75 7.30964 4.75 8V10",vectorEffect:"non-scaling-stroke"})});var ey=a(A(),1),ty=a(y(),1),dm=(0,ty.jsxs)(ey.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,ty.jsx)(ey.Path,{d:"M20.25 18.75V5.25C20.25 4.42157 19.5784 3.75 18.75 3.75H5.25C4.42157 3.75 3.75 4.42157 3.75 5.25V18.75C3.75 19.5784 4.42157 20.25 5.25 20.25H18.75C19.5784 20.25 20.25 19.5784 20.25 18.75Z",vectorEffect:"non-scaling-stroke"}),(0,ty.jsx)(ey.Path,{d:"M11.5 13.4V3.75H16.5V13.4L14 10.3L11.5 13.4Z",fill:"currentColor",stroke:"none"})]});var v5=a(A(),1),QP=a(y(),1),pm=(0,QP.jsx)(v5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,QP.jsx)(v5.Path,{d:"M6.75 6.75V16C6.75 16.6904 7.30964 17.25 8 17.25H17.25M6.75 6.75H4M6.75 6.75V4M17.25 17.25V20M17.25 17.25H20M17.25 14.75V8C17.25 7.30964 16.6904 6.75 16 6.75H9.25",vectorEffect:"non-scaling-stroke"})});var _5=a(A(),1),XP=a(y(),1),mm=(0,XP.jsx)(_5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,XP.jsx)(_5.Path,{d:"M8.5 8.75H7C5.20507 8.75 3.75 10.2051 3.75 12C3.75 13.7949 5.20507 15.25 7 15.25H8.5M7.5 12H12.5M11.5 15.25H13C14.7949 15.25 16.25 13.7949 16.25 12C16.25 10.2051 14.7949 8.75 13 8.75H11.5M7.75 6.5V6C7.75 5.30964 8.30964 4.75 9 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V18C19.25 18.6904 18.6904 19.25 18 19.25H9C8.30964 19.25 7.75 18.6904 7.75 18V17.5",vectorEffect:"non-scaling-stroke"})});var x5=a(A(),1),JP=a(y(),1),eB=(0,JP.jsx)(x5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,JP.jsx)(x5.Path,{d:"M8 12V8M8 4V8M8 8H12M8 8H4M8 8L10.8284 10.8284M8 8L5.17157 5.17157M8 8L10.8284 5.17157M8 8L5.17157 10.8284M4 15H20M4 19H13",vectorEffect:"non-scaling-stroke"})});var ry=a(A(),1),oy=a(y(),1),tB=(0,oy.jsxs)(ry.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,oy.jsx)(ry.Path,{d:"M4 17.5H20M4 12H20M10 6.5H20",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,oy.jsx)(ry.Path,{d:"M4.75 8V5L6.75 6.5L4.75 8Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var k5=a(A(),1),rB=a(y(),1),oB=(0,rB.jsx)(k5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,rB.jsx)(k5.Path,{d:"M12 9L12 14M12 15.5V17M11.1284 5.04947L3.83827 18.0097C3.46331 18.6763 3.94502 19.5 4.70985 19.5H19.2902C20.055 19.5 20.5367 18.6763 20.1617 18.0097L12.8716 5.04947C12.4893 4.36982 11.5107 4.36982 11.1284 5.04947Z",vectorEffect:"non-scaling-stroke"})});var w5=a(A(),1),nB=a(y(),1),ny=(0,nB.jsx)(w5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,nB.jsx)(w5.Path,{d:"M9.5 6.25H6.5C5.80964 6.25 5.25 6.80964 5.25 7.5V17.5C5.25 18.1904 5.80964 18.75 6.5 18.75H16.5C17.1904 18.75 17.75 18.1904 17.75 17.5V14.5M11.5 12.5L18.75 5.25M12.5 5.25H18.75V11.5",vectorEffect:"non-scaling-stroke"})});var C5=a(A(),1),aB=a(y(),1),ay=(0,aB.jsx)(C5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,aB.jsx)(C5.Path,{d:"M3.75 6V17.5C3.75 18.1904 4.30964 18.75 5 18.75H19C19.6904 18.75 20.25 18.1904 20.25 17.5V8.5C20.25 7.80964 19.6904 7.25 19 7.25H13.3463C12.8352 7.25 12.3755 6.93881 12.1857 6.46424L11.8143 5.53576C11.6245 5.06119 11.1648 4.75 10.6537 4.75H5C4.30964 4.75 3.75 5.30964 3.75 6Z",vectorEffect:"non-scaling-stroke"})});var S5=a(A(),1),iB=a(y(),1),sB=(0,iB.jsx)(S5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,iB.jsx)(S5.Path,{d:"M9 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V6C4.75 5.30964 5.30964 4.75 6 4.75H9M15 4.75L16.5 4.75M15 19.25H16.5M12 22V2M19.25 16.5V14.5M19.25 13V11M19.25 9.5V7.5M18 4.75C18.6904 4.75 19.25 5.30964 19.25 6M18 19.25C18.6904 19.25 19.25 18.6904 19.25 18",vectorEffect:"non-scaling-stroke"})});var T5=a(A(),1),lB=a(y(),1),cB=(0,lB.jsx)(T5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,lB.jsx)(T5.Path,{d:"M4.75 9L4.75 6C4.75 5.30964 5.30964 4.75 6 4.75L18 4.75C18.6904 4.75 19.25 5.30964 19.25 6L19.25 9M19.25 15L19.25 16.5M4.75 15L4.75 16.5M2 12L22 12M7.5 19.25L9.5 19.25M11 19.25L13 19.25M14.5 19.25L16.5 19.25M19.25 18C19.25 18.6904 18.6904 19.25 18 19.25M4.75 18C4.75 18.6904 5.30964 19.25 6 19.25",vectorEffect:"non-scaling-stroke"})});var iy=a(A(),1),sy=a(y(),1),uB=(0,sy.jsxs)(iy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,sy.jsx)(iy.Path,{d:"M9.75 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V14.25M9.75 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V14.25M9.75 4.75V14.25M19.25 14.25V18C19.25 18.6904 18.6904 19.25 18 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V14.25M19.25 14.25H9.75M9.75 14.25H4.75",vectorEffect:"non-scaling-stroke"}),(0,sy.jsx)(iy.Path,{d:"M19.25 15.5V18C19.25 18.6904 18.6904 19.25 18 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V15.5C4.75 14.8096 5.30964 14.25 6 14.25H18C18.6904 14.25 19.25 14.8096 19.25 15.5Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var E5=a(A(),1),dB=a(y(),1),pB=(0,dB.jsx)(E5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,dB.jsx)(E5.Path,{d:"M20 8H4M13.5 16H4M20 13L17 16L20 19",vectorEffect:"non-scaling-stroke"})});var P5=a(A(),1),mB=a(y(),1),fB=(0,mB.jsx)(P5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,mB.jsx)(P5.Path,{d:"M4 8H20M10.5 16H20M4 13L7 16L4 19",vectorEffect:"non-scaling-stroke"})});var xd=a(A(),1),kd=a(y(),1),ly=(0,kd.jsxs)(xd.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,kd.jsx)(xd.Path,{d:"M13 8H4M13 16H4",vectorEffect:"non-scaling-stroke"}),(0,kd.jsx)(xd.Path,{d:"M18 9.25C17.3096 9.25 16.75 8.69036 16.75 8C16.75 7.30964 17.3096 6.75 18 6.75C18.6904 6.75 19.25 7.30964 19.25 8C19.25 8.69036 18.6904 9.25 18 9.25Z",fill:"currentColor",stroke:"none"}),(0,kd.jsx)(xd.Path,{d:"M18 17.25C17.3096 17.25 16.75 16.6904 16.75 16C16.75 15.3096 17.3096 14.75 18 14.75C18.6904 14.75 19.25 15.3096 19.25 16C19.25 16.6904 18.6904 17.25 18 17.25Z",fill:"currentColor",stroke:"none"}),(0,kd.jsx)(xd.Path,{d:"M18 9.25C17.3096 9.25 16.75 8.69036 16.75 8C16.75 7.30964 17.3096 6.75 18 6.75C18.6904 6.75 19.25 7.30964 19.25 8C19.25 8.69036 18.6904 9.25 18 9.25Z",vectorEffect:"non-scaling-stroke"}),(0,kd.jsx)(xd.Path,{d:"M18 17.25C17.3096 17.25 16.75 16.6904 16.75 16C16.75 15.3096 17.3096 14.75 18 14.75C18.6904 14.75 19.25 15.3096 19.25 16C19.25 16.6904 18.6904 17.25 18 17.25Z",vectorEffect:"non-scaling-stroke"})]});var wd=a(A(),1),Cd=a(y(),1),cy=(0,Cd.jsxs)(wd.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Cd.jsx)(wd.Path,{d:"M11 8H20M11 16H20",vectorEffect:"non-scaling-stroke"}),(0,Cd.jsx)(wd.Path,{d:"M6 9.25C6.69036 9.25 7.25 8.69036 7.25 8C7.25 7.30964 6.69036 6.75 6 6.75C5.30964 6.75 4.75 7.30964 4.75 8C4.75 8.69036 5.30964 9.25 6 9.25Z",fill:"currentColor",stroke:"none"}),(0,Cd.jsx)(wd.Path,{d:"M6 17.25C6.69036 17.25 7.25 16.6904 7.25 16C7.25 15.3096 6.69036 14.75 6 14.75C5.30964 14.75 4.75 15.3096 4.75 16C4.75 16.6904 5.30964 17.25 6 17.25Z",fill:"currentColor",stroke:"none"}),(0,Cd.jsx)(wd.Path,{d:"M6 9.25C6.69036 9.25 7.25 8.69036 7.25 8C7.25 7.30964 6.69036 6.75 6 6.75C5.30964 6.75 4.75 7.30964 4.75 8C4.75 8.69036 5.30964 9.25 6 9.25Z",vectorEffect:"non-scaling-stroke"}),(0,Cd.jsx)(wd.Path,{d:"M6 17.25C6.69036 17.25 7.25 16.6904 7.25 16C7.25 15.3096 6.69036 14.75 6 14.75C5.30964 14.75 4.75 15.3096 4.75 16C4.75 16.6904 5.30964 17.25 6 17.25Z",vectorEffect:"non-scaling-stroke"})]});var Gg=a(A(),1),$g=a(y(),1),uy=(0,$g.jsxs)(Gg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,$g.jsx)(Gg.Path,{d:"M13 8H4M13 16H4",vectorEffect:"non-scaling-stroke"}),(0,$g.jsx)(Gg.Path,{d:"M20.1241 17.5H18.1241C18.1241 15.4333 20.1241 15.95 20.1241 14.4C20.1241 13.625 19.1241 12.975 18.1241 13.75",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,$g.jsx)(Gg.Path,{d:"M19 10V5.5L17.5 6",vectorEffect:"non-scaling-stroke"})]});var qg=a(A(),1),Zg=a(y(),1),vs=(0,Zg.jsxs)(qg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Zg.jsx)(qg.Path,{d:"M11 8H20M11 16H20",vectorEffect:"non-scaling-stroke"}),(0,Zg.jsx)(qg.Path,{d:"M6.62408 17.5H4.62408C4.62408 15.4333 6.62408 15.95 6.62408 14.4C6.62408 13.625 5.62408 12.975 4.62408 13.75",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,Zg.jsx)(qg.Path,{d:"M5.5 10V5.5L4 6",vectorEffect:"non-scaling-stroke"})]});var dy=a(A(),1),py=a(y(),1),gB=(0,py.jsxs)(dy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,py.jsx)(dy.Path,{d:"M7.75 20V4.75L11.75 4.75M11.75 20V4.75M11.75 4.75H15.5M17.5 8.5L20.5 12L17.5 15.5",vectorEffect:"non-scaling-stroke"}),(0,py.jsx)(dy.Path,{d:"M2.75 9C2.75 11.3472 4.65279 13.25 7 13.25H7.75V4.75H7C4.65279 4.75 2.75 6.65279 2.75 9Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var my=a(A(),1),fy=a(y(),1),gy=(0,fy.jsxs)(my.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,fy.jsx)(my.Path,{d:"M16 13L19 16L16 19",vectorEffect:"non-scaling-stroke"}),(0,fy.jsx)(my.Path,{d:"M4 8H20M4 16H13.5",vectorEffect:"non-scaling-stroke"})]});var hy=a(A(),1),by=a(y(),1),yy=(0,by.jsxs)(hy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,by.jsx)(hy.Path,{d:"M8 13L5 16L8 19",vectorEffect:"non-scaling-stroke"}),(0,by.jsx)(hy.Path,{d:"M20 8H4M20 16H10.5",vectorEffect:"non-scaling-stroke"})]});var B5=a(A(),1),hB=a(y(),1),fm=(0,hB.jsx)(B5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,hB.jsx)(B5.Path,{d:"M4.75 10V4.75H10M4.75 4.75L10 10M14 19.25H19.25V14M19.25 19.25L14 14",vectorEffect:"non-scaling-stroke"})});var vy=a(A(),1),_y=a(y(),1),gm=(0,_y.jsxs)(vy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,_y.jsx)(vy.Path,{d:"M20.25 6.75V19C20.25 19.6904 19.6904 20.25 19 20.25H6.75",vectorEffect:"non-scaling-stroke"}),(0,_y.jsx)(vy.Path,{d:"M17.25 12.596L14.2948 9.6397C14.2558 9.60064 14.1925 9.60063 14.1534 9.63969L10.5584 13.2347C10.5245 13.2686 10.4713 13.2737 10.4316 13.2469L7.39239 11.1909C7.35761 11.1674 7.31184 11.1681 7.27781 11.1927L3.75 13.7408M17.25 12.596V5C17.25 4.30964 16.6904 3.75 16 3.75H5C4.30964 3.75 3.75 4.30964 3.75 5V13.7408M17.25 12.596V16C17.25 16.6904 16.6904 17.25 16 17.25H5C4.30964 17.25 3.75 16.6904 3.75 16V13.7408",vectorEffect:"non-scaling-stroke"})]});var I5=a(A(),1),bB=a(y(),1),Ei=(0,bB.jsx)(I5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,bB.jsx)(I5.Path,{d:"M12 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V12M12 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V12M12 4.75V19.25M12 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V12M12 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V12M19.25 12H4.75",vectorEffect:"non-scaling-stroke"})});var xy=a(A(),1),ky=a(y(),1),wy=(0,ky.jsxs)(xy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,ky.jsx)(xy.Path,{d:"M4.75 11C4.75 10.3096 5.30964 9.75 6 9.75H13C13.6904 9.75 14.25 10.3096 14.25 11V18C14.25 18.6904 13.6904 19.25 13 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V11Z",vectorEffect:"non-scaling-stroke"}),(0,ky.jsx)(xy.Path,{d:"M9.75 6C9.75 5.30964 10.3096 4.75 11 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V13C19.25 13.6904 18.6904 14.25 18 14.25H11C10.3096 14.25 9.75 13.6904 9.75 13V6Z",vectorEffect:"non-scaling-stroke"})]});var Cy=a(A(),1),Sy=a(y(),1),yB=(0,Sy.jsxs)(Cy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Sy.jsx)(Cy.Path,{d:"M9.75 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V9.75M9.75 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V9.75M9.75 19.25V9.75M19.25 9.75V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V9.75M19.25 9.75H9.75M9.75 9.75H4.75",vectorEffect:"non-scaling-stroke"}),(0,Sy.jsx)(Cy.Path,{d:"M19.25 8.5V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V8.5C4.75 9.19036 5.30964 9.75 6 9.75H18C18.6904 9.75 19.25 9.19036 19.25 8.5Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var Ty=a(A(),1),Ey=a(y(),1),vB=(0,Ey.jsxs)(Ty.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Ey.jsx)(Ty.Path,{d:"M5.25 12H11M5.25 12V7.75M5.25 12L5.25 16.25M11 12V7.75M11 12V16.25",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,Ey.jsx)(Ty.Path,{d:"M17 17C17 16.1556 17 10.213 17 7.75L14 8.55556",vectorEffect:"non-scaling-stroke"})]});var Py=a(A(),1),By=a(y(),1),_B=(0,By.jsxs)(Py.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,By.jsx)(Py.Path,{d:"M19.1415 16.25H14.75C14.75 11.7122 19.25 12.9034 19.25 9.5C19.25 7.79832 16.9457 6.29831 14.75 8",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,By.jsx)(Py.Path,{d:"M5.25 12H11M5.25 12V7.75M5.25 12L5.25 16.25M11 12V7.75M11 12V16.25",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"})]});var Iy=a(A(),1),Ny=a(y(),1),xB=(0,Ny.jsxs)(Iy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Ny.jsx)(Iy.Path,{d:"M5.25 12H11M5.25 12V7.75M5.25 12L5.25 16.25M11 12V7.75M11 12V16.25",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,Ny.jsx)(Iy.Path,{d:"M14.5 15.4934C17 17.1638 19.5 15.8275 19.5 13.823C19.5 13.2323 19.2366 12.6658 18.7678 12.2481C18.2989 11.8305 17.663 11.5958 17 11.5958M17 11.5958C17.663 11.5958 18.2989 11.3612 18.7678 10.9435C19.2366 10.5258 19.5 9.95933 19.5 9.36864C19.5 7.69825 17.125 6.58466 15 7.69825M17 11.5958H16.75",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"})]});var My=a(A(),1),Ly=a(y(),1),kB=(0,Ly.jsxs)(My.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Ly.jsx)(My.Path,{d:"M5.25 12H11M5.25 12V7.75M5.25 12L5.25 16.25M11 12V7.75M11 12V16.25",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,Ly.jsx)(My.Path,{d:"M19.25 17V12.75M19.25 9V12.75M15 7V7.5L13.75 12.75H19.25",vectorEffect:"non-scaling-stroke"})]});var Ry=a(A(),1),Dy=a(y(),1),wB=(0,Dy.jsxs)(Ry.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Dy.jsx)(Ry.Path,{d:"M5.25 12H11M5.25 12V7.75M5.25 12L5.25 16.25M11 12V7.75M11 12V16.25",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,Dy.jsx)(Ry.Path,{d:"M14 15.4934C16.5 17.1638 19 15.8275 19 13.823C19 13.2323 18.7366 12.6658 18.2678 12.2482C17.7989 11.8305 17.163 11.5958 16.5 11.5958H14.25L14.75 7.75H18",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"})]});var Ay=a(A(),1),Oy=a(y(),1),CB=(0,Oy.jsxs)(Ay.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Oy.jsx)(Ay.Path,{d:"M5.25 12H11M5.25 12V7.75M5.25 12L5.25 16.25M11 12V7.75M11 12V16.25",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,Oy.jsx)(Ay.Path,{d:"M19.0092 8.10342C17.1095 7.1899 15.4694 8.08711 14.7634 9.38026C14.0574 10.6734 13.8551 12.0834 14.0986 13.62C14.177 14.1146 14.3884 14.8582 14.9041 15.3039C15.4198 15.7496 16.1193 16 16.8486 16C17.578 16 18.2775 15.7496 18.7932 15.3039C19.3089 14.8582 19.5986 14.2537 19.5986 13.6234C19.5986 12.9931 19.3089 12.3918 18.7932 11.9461C18.2775 11.5004 17.578 11.25 16.8486 11.25C16.1193 11.25 15.4198 11.5004 14.9041 11.9461C14.3884 12.3918 14.0986 12.9931 14.0986 13.6234",vectorEffect:"non-scaling-stroke"})]});var N5=a(A(),1),SB=a(y(),1),TB=(0,SB.jsx)(N5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,SB.jsx)(N5.Path,{d:"M6.75 5.25H17.25V16.375L12 12L6.75 16.375V5.25Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})});var M5=a(A(),1),EB=a(y(),1),PB=(0,EB.jsx)(M5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,EB.jsx)(M5.Path,{d:"M13.75 19.25H19.25V8.5L12 5L4.75 8.5V19.25H10.25M13.75 19.25V13.7H10.25V19.25M13.75 19.25H10.25",vectorEffect:"non-scaling-stroke"})});var L5=a(A(),1),BB=a(y(),1),IB=(0,BB.jsx)(L5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,BB.jsx)(L5.Path,{d:"M1.5 15V12M1.5 9V12M1.5 12H5.5M5.5 12V9M5.5 12V15M6.75 9.75H9M11.25 9.75H9M9 9.75V15M19.5 9V14.25H22.5M12.5 15V9.75H12.75L14.5 12H15L16.75 9.75H17V15",vectorEffect:"non-scaling-stroke"})});var R5=a(A(),1),NB=a(y(),1),Sd=(0,NB.jsx)(R5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,NB.jsx)(R5.Path,{d:"M19.25 14.2513L16.0707 11.0707C16.0317 11.0317 15.9683 11.0317 15.9293 11.0707L12.0584 14.9416C12.0245 14.9755 11.9713 14.9806 11.9316 14.9537L8.65791 12.7392C8.62313 12.7156 8.57736 12.7163 8.54332 12.7409L4.75 15.4808M19.25 14.2513V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V15.4808M19.25 14.2513V18C19.25 18.6904 18.6904 19.25 18 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V15.4808",vectorEffect:"non-scaling-stroke"})});var D5=a(A(),1),MB=a(y(),1),LB=(0,MB.jsx)(D5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,MB.jsx)(D5.Path,{d:"M8.25 21L4.75 17L8.25 13M4.75 17H14.125C17.5077 17 20.25 14.2577 20.25 10.875C20.25 7.49226 17.5077 4.75 14.125 4.75H12",vectorEffect:"non-scaling-stroke"})});var A5=a(A(),1),RB=a(y(),1),hm=(0,RB.jsx)(A5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,RB.jsx)(A5.Path,{d:"M9.75 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V9.75M9.75 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V9.75M9.75 19.25V9.75M19.25 9.75V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V9.75M19.25 9.75H9.75M9.75 9.75H4.75",vectorEffect:"non-scaling-stroke"})});var O5=a(A(),1),DB=a(y(),1),Fy=(0,DB.jsx)(O5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,DB.jsx)(O5.Path,{d:"M9.5 12H12.5M10 7.75H8.25C5.90279 7.75 4 9.65279 4 12C4 14.3472 5.90279 16.25 8.25 16.25H10.2333M14 16.25H15.75C18.0972 16.25 20 14.3472 20 12C20 9.65279 18.0972 7.75 15.75 7.75H14.7667M8.5 19.5L16.5 4.5",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})});var F5=a(A(),1),AB=a(y(),1),Pi=(0,AB.jsx)(F5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,AB.jsx)(F5.Path,{d:"M9.5 12L14.5 12M10 7.75H8.25C5.90279 7.75 4 9.65279 4 12C4 14.3472 5.90279 16.25 8.25 16.25H10M14 16.25H15.75C18.0972 16.25 20 14.3472 20 12C20 9.65279 18.0972 7.75 15.75 7.75L14 7.75",vectorEffect:"non-scaling-stroke"})});var Vy=a(A(),1),zy=a(y(),1),OB=(0,zy.jsxs)(Vy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,zy.jsx)(Vy.Path,{d:"M12 12H20",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,zy.jsx)(Vy.Path,{d:"M6 13.25C6.69036 13.25 7.25 12.6904 7.25 12C7.25 11.3096 6.69036 10.75 6 10.75C5.30964 10.75 4.75 11.3096 4.75 12C4.75 12.6904 5.30964 13.25 6 13.25Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var Hy=a(A(),1),jy=a(y(),1),pl=(0,jy.jsxs)(Hy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,jy.jsx)(Hy.Path,{d:"M4 17.5H20M12 12H20M4 6.5H20",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,jy.jsx)(Hy.Path,{d:"M6 13.25C6.69036 13.25 7.25 12.6904 7.25 12C7.25 11.3096 6.69036 10.75 6 10.75C5.30964 10.75 4.75 11.3096 4.75 12C4.75 12.6904 5.30964 13.25 6 13.25Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var V5=a(A(),1),FB=a(y(),1),VB=(0,FB.jsx)(V5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,FB.jsx)(V5.Path,{d:"M7.75 6.5V6C7.75 5.30964 8.30964 4.75 9 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V18C19.25 18.6904 18.6904 19.25 18 19.25H9C8.30964 19.25 7.75 18.6904 7.75 18V17.5M5 12H14.5M11.5 15L14.5 12L11.5 9",vectorEffect:"non-scaling-stroke"})});var z5=a(A(),1),zB=a(y(),1),bm=(0,zB.jsx)(z5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,zB.jsx)(z5.Path,{d:"M9.63852 15.2138C9.21283 15.3979 8.74333 15.5 8.25 15.5C6.317 15.5 4.75 13.933 4.75 12C4.75 10.067 6.317 8.5 8.25 8.5C10.183 8.5 11.5 9.75 12 12C12.5 14.25 13.817 15.5 15.75 15.5C17.683 15.5 19.25 13.933 19.25 12C19.25 10.067 17.683 8.5 15.75 8.5C15.2567 8.5 14.7872 8.60207 14.3615 8.78624",vectorEffect:"non-scaling-stroke"})});var Uy=a(A(),1),Wy=a(y(),1),HB=(0,Wy.jsxs)(Uy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Wy.jsx)(Uy.Path,{d:"M6.75 10.37C6.75 7.4705 9.10051 5.12 12 5.12C14.8995 5.12 17.25 7.4705 17.25 10.37C17.25 13.2695 14 17 12 19.25C10 17 6.75 13.2695 6.75 10.37Z",vectorEffect:"non-scaling-stroke"}),(0,Wy.jsx)(Uy.Path,{d:"M12 12A1.5 1.5 0 1 0 12 9A1.5 1.5 0 0 0 12 12Z",fill:"currentColor",stroke:"none"})]});var H5=a(A(),1),jB=a(y(),1),UB=(0,jB.jsx)(H5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,jB.jsx)(H5.Path,{d:"M3 14H5L6.8916 16.3645C6.93974 16.4247 7.03496 16.4101 7.06289 16.3383L10.2521 8.13755C10.4015 7.75318 10.7717 7.5 11.1841 7.5H19M17 11L14.5 13.5M12 16L14.5 13.5M14.5 13.5L17 16M14.5 13.5L12 11",vectorEffect:"non-scaling-stroke"})});var Kg=a(A(),1),Gy=a(y(),1),WB=(0,Gy.jsxs)(Kg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Gy.jsx)(Kg.Path,{d:"M14 8H21M14 12H21M14 16H21",vectorEffect:"non-scaling-stroke"}),(0,Gy.jsx)(Kg.Rect,{x:"3",y:"6",width:"8",height:"12",fill:"currentColor",stroke:"none"})]});var ac=a(A(),1),mu=a(y(),1),$y=(0,mu.jsxs)(ac.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,mu.jsx)(ac.Path,{d:"M14 12.375V6.51534C14 6.21609 13.7879 5.95882 13.4941 5.9018L11.8239 5.57758C11.5677 5.52784 11.341 5.37988 11.1924 5.1653L10.3985 4.01913C10.2818 3.85057 10.0898 3.75 9.88474 3.75H8.11526C7.91022 3.75 7.71822 3.85057 7.60147 4.01913L6.80758 5.1653C6.65896 5.37988 6.43232 5.52784 6.17608 5.57758L4.5059 5.9018C4.21213 5.95882 4 6.21609 4 6.51534V12.375C4 12.7202 4.27982 13 4.625 13H13.375C13.7202 13 14 12.7202 14 12.375Z",vectorEffect:"non-scaling-stroke"}),(0,mu.jsx)(ac.Circle,{cx:"9",cy:"9",r:"1",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,mu.jsx)(ac.Path,{d:"M20 17.25V9",vectorEffect:"non-scaling-stroke"}),(0,mu.jsx)(ac.Path,{d:"M17 10H20V9H17V10Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,mu.jsx)(ac.Path,{d:"M11.75 18.5C12.4404 18.5 13 17.9404 13 17.25V16H11.75C11.0596 16 10.5 16.5596 10.5 17.25C10.5 17.9404 11.0596 18.5 11.75 18.5Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,mu.jsx)(ac.Path,{d:"M18.75 18.5C19.4404 18.5 20 17.9404 20 17.25V16H18.75C18.0596 16 17.5 16.5596 17.5 17.25C17.5 17.9404 18.0596 18.5 18.75 18.5Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var j5=a(A(),1),GB=a(y(),1),$B=(0,GB.jsx)(j5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,GB.jsx)(j5.Path,{d:"M5 12H19M5 18.25H19M5 5.75H19",vectorEffect:"non-scaling-stroke"})});var fu=a(A(),1),gu=a(y(),1),qy=(0,gu.jsxs)(fu.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,gu.jsx)(fu.Path,{d:"M11.75 18.25L12.25 18.25L12.25 17.75L11.75 17.75L11.75 18.25Z",fill:"currentColor",stroke:"none"}),(0,gu.jsx)(fu.Path,{d:"M11.75 12.25L12.25 12.25L12.25 11.75L11.75 11.75L11.75 12.25Z",fill:"currentColor",stroke:"none"}),(0,gu.jsx)(fu.Path,{d:"M11.75 6.25L12.25 6.25L12.25 5.75L11.75 5.75L11.75 6.25Z",fill:"currentColor",stroke:"none"}),(0,gu.jsx)(fu.Path,{d:"M11.75 18.25L12.25 18.25L12.25 17.75L11.75 17.75L11.75 18.25Z",vectorEffect:"non-scaling-stroke"}),(0,gu.jsx)(fu.Path,{d:"M11.75 12.25L12.25 12.25L12.25 11.75L11.75 11.75L11.75 12.25Z",vectorEffect:"non-scaling-stroke"}),(0,gu.jsx)(fu.Path,{d:"M11.75 6.25L12.25 6.25L12.25 5.75L11.75 5.75L11.75 6.25Z",vectorEffect:"non-scaling-stroke"})]});var U5=a(A(),1),qB=a(y(),1),ZB=(0,qB.jsx)(U5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,qB.jsx)(U5.Path,{d:"M4 10H20M4 14H8M10 14H14M16 14H20",vectorEffect:"non-scaling-stroke"})});var Zy=a(A(),1),Ky=a(y(),1),KB=(0,Ky.jsxs)(Zy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Ky.jsx)(Zy.Path,{d:"M4.75 9.25V16C4.75 16.6904 5.30964 17.25 6 17.25H8M4.75 9.25V6C4.75 5.30964 5.30964 4.75 6 4.75H16C16.6904 4.75 17.25 5.30964 17.25 6V8M4.75 9.25H8",vectorEffect:"non-scaling-stroke"}),(0,Ky.jsx)(Zy.Path,{d:"M10.75 11.25C10.75 10.9739 10.9739 10.75 11.25 10.75H18.75C19.0261 10.75 19.25 10.9739 19.25 11.25V18.75C19.25 19.0261 19.0261 19.25 18.75 19.25H11.25C10.9739 19.25 10.75 19.0261 10.75 18.75V11.25Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var Yy=a(A(),1),Qy=a(y(),1),ym=(0,Qy.jsxs)(Yy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Qy.jsx)(Yy.Path,{d:"M9 16L13.5 12.8421L15 8L10.5 11.1579L9 16Z",fill:"currentColor",stroke:"none"}),(0,Qy.jsx)(Yy.Path,{d:"M4.75 12C4.75 7.99593 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})]});var W5=a(A(),1),YB=a(y(),1),Xy=(0,YB.jsx)(W5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,YB.jsx)(W5.Path,{d:"M7 17.5L12 12L7 6.5M13 17.5L18 12L13 6.5",vectorEffect:"non-scaling-stroke"})});var G5=a(A(),1),QB=a(y(),1),XB=(0,QB.jsx)(G5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,QB.jsx)(G5.Path,{d:"M19.25 18V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V18C4.75 18.6904 5.30964 19.25 6 19.25H8.65766L9.51577 16.6757M9.51577 16.6757L11.8243 9.75H12.3784L14.6869 16.6757L15.6386 19.5305C15.681 19.658 15.7027 19.7915 15.7027 19.9258V20M14.6869 16.6757H9.51577",vectorEffect:"non-scaling-stroke"})});var $5=a(A(),1),JB=a(y(),1),eI=(0,JB.jsx)($5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,JB.jsx)($5.Path,{d:"M7.25 9L7.25 6C7.25 5.30964 7.80964 4.75 8.5 4.75H15.5C16.1904 4.75 16.75 5.30964 16.75 6V9M7.25 15V18C7.25 18.6904 7.80964 19.25 8.5 19.25H15.5C16.1904 19.25 16.75 18.6904 16.75 18V15M4 12H20",vectorEffect:"non-scaling-stroke"})});var q5=a(A(),1),tI=a(y(),1),hu=(0,tI.jsx)(q5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,tI.jsx)(q5.Path,{d:"M8.5 8.25H15.5M8.5 11.75H15.5M8.5 15.25H15.5M18.25 18V6C18.25 5.30964 17.6904 4.75 17 4.75H7C6.30964 4.75 5.75 5.30964 5.75 6L5.75 18C5.75 18.6904 6.30964 19.25 7 19.25H17C17.6904 19.25 18.25 18.6904 18.25 18Z",vectorEffect:"non-scaling-stroke"})});var Jy=a(A(),1),ev=a(y(),1),rI=(0,ev.jsxs)(Jy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,ev.jsx)(Jy.Path,{d:"M7.75 20.25H19C19.6904 20.25 20.25 19.6904 20.25 19V5.75",vectorEffect:"non-scaling-stroke"}),(0,ev.jsx)(Jy.Path,{d:"M7.5 6.25H14.5M7.5 9.75H14.5M7.5 13.25H14.5M17.25 16V4C17.25 3.30964 16.6904 2.75 16 2.75H6C5.30964 2.75 4.75 3.30964 4.75 4L4.75 16C4.75 16.6904 5.30964 17.25 6 17.25H16C16.6904 17.25 17.25 16.6904 17.25 16Z",vectorEffect:"non-scaling-stroke"})]});var tv=a(A(),1),rv=a(y(),1),oI=(0,rv.jsxs)(tv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,rv.jsx)(tv.Path,{d:"M10.75 20V4.75L14.75 4.75M14.75 20V4.75M14.75 4.75H18.5",vectorEffect:"non-scaling-stroke"}),(0,rv.jsx)(tv.Path,{d:"M5.75 9C5.75 11.3472 7.65279 13.25 10 13.25H10.75V4.75H10C7.65279 4.75 5.75 6.65279 5.75 9Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var ov=a(A(),1),nv=a(y(),1),vm=(0,nv.jsxs)(ov.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,nv.jsx)(ov.Path,{d:"M5 19.25H12",vectorEffect:"non-scaling-stroke"}),(0,nv.jsx)(ov.Path,{d:"M10 15L7.5 15.5L8 13L16 5L18 7L10 15Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var Z5=a(A(),1),nI=a(y(),1),av=(0,nI.jsx)(Z5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,nI.jsx)(Z5.Path,{d:"M5 19L10 14M13.5355 17.5355L6.46447 10.4645C7.731 9.19794 9.50794 8.75292 11.1332 9.12941L14.5 4.50002L19.5 9.50002L14.8706 12.8669C15.2471 14.4921 14.8021 16.269 13.5355 17.5355Z",vectorEffect:"non-scaling-stroke"})});var Yg=a(A(),1),Qg=a(y(),1),aI=(0,Qg.jsxs)(Yg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Qg.jsx)(Yg.Path,{d:"M16.25 13.5V10.5L18.25 12L16.25 13.5Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,Qg.jsx)(Yg.Path,{d:"M11.25 16.5C11.25 18.0188 10.0188 19.25 8.5 19.25C6.98122 19.25 5.75 18.0188 5.75 16.5C5.75 14.9812 6.98122 13.75 8.5 13.75C10.0188 13.75 11.25 14.9812 11.25 16.5Z",fill:"currentColor",stroke:"none"}),(0,Qg.jsx)(Yg.Path,{d:"M8.5 19.25C10.0188 19.25 11.25 18.0188 11.25 16.5C11.25 14.9812 10.0188 13.75 8.5 13.75C6.98122 13.75 5.75 14.9812 5.75 16.5C5.75 18.0188 6.98122 19.25 8.5 19.25ZM8.5 19.25C11.4867 19.25 11.75 16.5 11.75 15.1379V7.99998C11.75 4.9108 14.4 5.00254 16 5.00233",vectorEffect:"non-scaling-stroke"})]});var Xg=a(A(),1),Jg=a(y(),1),iv=(0,Jg.jsxs)(Xg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Jg.jsx)(Xg.Path,{d:"M15 10L20 10M15 15L20 15",vectorEffect:"non-scaling-stroke"}),(0,Jg.jsx)(Xg.Path,{d:"M11.25 16.5C11.25 18.0188 10.0188 19.25 8.5 19.25C6.98122 19.25 5.75 18.0188 5.75 16.5C5.75 14.9812 6.98122 13.75 8.5 13.75C10.0188 13.75 11.25 14.9812 11.25 16.5Z",fill:"currentColor",stroke:"none"}),(0,Jg.jsx)(Xg.Path,{d:"M8.5 19.25C10.0188 19.25 11.25 18.0188 11.25 16.5C11.25 14.9812 10.0188 13.75 8.5 13.75C6.98122 13.75 5.75 14.9812 5.75 16.5C5.75 18.0188 6.98122 19.25 8.5 19.25ZM8.5 19.25C11.4867 19.25 11.75 16.5 11.75 15.1379V7.99998C11.75 4.9108 14.4 5.00254 16 5.00233",vectorEffect:"non-scaling-stroke"})]});var K5=a(A(),1),iI=a(y(),1),sI=(0,iI.jsx)(K5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,iI.jsx)(K5.Path,{d:"M15.3995 11.5711L12.2175 8.38909L10.273 6.44454L7.67678 9.04074C7.3017 9.41581 7.09099 9.92452 7.09099 10.455L7.09099 13.455C7.09099 13.7202 6.98563 13.9745 6.7981 14.1621L5.14645 15.8137C4.95118 16.009 4.95118 16.3256 5.14645 16.5208L7.26777 18.6421C7.46303 18.8374 7.77961 18.8374 7.97487 18.6421L9.62652 16.9905C9.81406 16.8029 10.0684 16.6976 10.3336 16.6976H13.3336C13.8641 16.6976 14.3728 16.4869 14.7478 16.1118L17.344 13.5156L15.3995 11.5711ZM12.2175 8.38909L16.1066 4.5M15.3995 11.5711L19.2886 7.68198",vectorEffect:"non-scaling-stroke"})});var Y5=a(A(),1),lI=a(y(),1),eh=(0,lI.jsx)(Y5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,lI.jsx)(Y5.Path,{d:"M12 18V6M18 12H6",vectorEffect:"non-scaling-stroke"})});var th=a(A(),1),sv=a(y(),1),cI=(0,sv.jsxs)(th.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,sv.jsx)(th.Path,{d:"M5 4.75H19M5 19.25H19",vectorEffect:"non-scaling-stroke"}),(0,sv.jsx)(th.Rect,{x:"7",y:"9",width:"10",height:"6",fill:"currentColor",stroke:"none"})]});var rh=a(A(),1),lv=a(y(),1),uI=(0,lv.jsxs)(rh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,lv.jsx)(rh.Path,{d:"M5 4.75H13M5 19.25H13",vectorEffect:"non-scaling-stroke"}),(0,lv.jsx)(rh.Rect,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"})]});var oh=a(A(),1),cv=a(y(),1),dI=(0,cv.jsxs)(oh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,cv.jsx)(oh.Path,{d:"M11 4.75H19M11 19.25H19",vectorEffect:"non-scaling-stroke"}),(0,cv.jsx)(oh.Rect,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"})]});var Q5=a(A(),1),pI=a(y(),1),_m=(0,pI.jsx)(Q5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,pI.jsx)(Q5.Path,{d:"M4 15H20M4 19H13M4.75 12V11C4.75 9.89543 5.64543 9 6.75 9H10.75C11.8546 9 12.75 9.89543 12.75 11V12M10.5 4.5C10.5 5.4665 9.7165 6.25 8.75 6.25C7.7835 6.25 7 5.4665 7 4.5C7 3.5335 7.7835 2.75 8.75 2.75C9.7165 2.75 10.5 3.5335 10.5 4.5Z",vectorEffect:"non-scaling-stroke"})});var X5=a(A(),1),mI=a(y(),1),nh=(0,mI.jsx)(X5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,mI.jsx)(X5.Path,{d:"M4 5H20M4 9H13M6 19.25H9C9.69036 19.25 10.25 18.6904 10.25 18V15C10.25 14.3096 9.69036 13.75 9 13.75H6C5.30964 13.75 4.75 14.3096 4.75 15V18C4.75 18.6904 5.30964 19.25 6 19.25ZM15 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V15C19.25 14.3096 18.6904 13.75 18 13.75H15C14.3096 13.75 13.75 14.3096 13.75 15V18C13.75 18.6904 14.3096 19.25 15 19.25Z",vectorEffect:"non-scaling-stroke"})});var J5=a(A(),1),fI=a(y(),1),uv=(0,fI.jsx)(J5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,fI.jsx)(J5.Path,{d:"M4 5H20M4 9H13M17.5 13L17.3636 14.5M17.3636 14.5L17.1364 17M17.3636 14.5H15.75M17.3636 14.5H19.8636M17.1364 17L17 18.5M17.1364 17H15.5M17.1364 17H19.6364M20 13L19.8636 14.5M19.8636 14.5L19.6364 17M19.8636 14.5H21.25M19.6364 17L19.5 18.5M19.6364 17H21M6 13H12.5C13.1904 13 13.75 13.5596 13.75 14.25V18.291C13.75 18.9813 13.1904 19.541 12.5 19.541H7.76724L5.6268 21.9948C5.32306 22.343 4.75 22.1282 4.75 21.6662V19.541V14.25C4.75 13.5596 5.30964 13 6 13Z",vectorEffect:"non-scaling-stroke"})});var dv=a(A(),1),pv=a(y(),1),gI=(0,pv.jsxs)(dv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,pv.jsx)(dv.Path,{d:"M4 5H20M4 9H13",vectorEffect:"non-scaling-stroke"}),(0,pv.jsx)(dv.Path,{d:"M12.5 13H6C5.30964 13 4.75 13.5596 4.75 14.25V19.541V21.6662C4.75 22.1282 5.32306 22.343 5.6268 21.9948L7.76724 19.541H12.5C13.1904 19.541 13.75 18.9813 13.75 18.291V14.25C13.75 13.5596 13.1904 13 12.5 13Z",vectorEffect:"non-scaling-stroke"})]});var ew=a(A(),1),hI=a(y(),1),bI=(0,hI.jsx)(ew.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,hI.jsx)(ew.Path,{d:"M12 13H18.5C19.1904 13 19.75 13.5596 19.75 14.25V19.541V21.6662C19.75 22.1282 19.1769 22.343 18.8732 21.9948L16.7328 19.541H12C11.3096 19.541 10.75 18.9813 10.75 18.291V14.25C10.75 13.5596 11.3096 13 12 13Z",vectorEffect:"non-scaling-stroke"})});var tw=a(A(),1),yI=a(y(),1),vI=(0,yI.jsx)(tw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,yI.jsx)(tw.Path,{d:"M4 14H20M4 18H20M4 10H20M4 6H13",vectorEffect:"non-scaling-stroke"})});var ah=a(A(),1),ih=a(y(),1),mv=(0,ih.jsxs)(ah.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,ih.jsx)(ah.Path,{d:"M4.75 7.25L4.75 18C4.75 18.6904 5.30964 19.25 6 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V7.25V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V7.25ZM19.25 7.25H4.75",vectorEffect:"non-scaling-stroke"}),(0,ih.jsx)(ah.Path,{d:"M18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V7.25H19.25V6C19.25 5.30964 18.6904 4.75 18 4.75Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,ih.jsx)(ah.Path,{d:"M13 15.0988H11C11 13.0322 13 13.5489 13 11.9989C13 11.2239 12 10.5738 11 11.3488",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"})]});var fv=a(A(),1),gv=a(y(),1),_I=(0,gv.jsxs)(fv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,gv.jsx)(fv.Path,{d:"M4 15H20M4 19H13",vectorEffect:"non-scaling-stroke"}),(0,gv.jsx)(fv.Path,{d:"M7.75 7.25H4.75V6M7.75 7.25V9.5C7.75 10.3921 7.08772 11.25 5 11.25M7.75 7.25V6M4.75 6V4.75H7.75V6M4.75 6H7.75M13 7.25H10V6M13 7.25V9.5C13 10.3921 12.3377 11.25 10.25 11.25M13 7.25V6M10 6V4.75H13V6M10 6H13",vectorEffect:"non-scaling-stroke"})]});var rw=a(A(),1),xI=a(y(),1),kI=(0,xI.jsx)(rw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,xI.jsx)(rw.Path,{d:"M19.25 9.25131L14.0498 7.02135C14.0187 7.00803 13.983 7.01131 13.9549 7.03006L11.0501 8.96658C11.0193 8.98714 10.9796 8.98896 10.947 8.97131L8.65525 7.72992C8.62147 7.71163 8.5802 7.7143 8.54907 7.73679L4.75 10.4808M19.25 9.25131V5C19.25 4.30964 18.6904 3.75 18 3.75H6C5.30964 3.75 4.75 4.30964 4.75 5V10.4808M19.25 9.25131V10C19.25 10.6904 18.6904 11.25 18 11.25H5.51917C5.09437 11.25 4.75 10.9056 4.75 10.4808M4 15H20M4 19H13",vectorEffect:"non-scaling-stroke"})});var ow=a(A(),1),wI=a(y(),1),hv=(0,wI.jsx)(ow.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,wI.jsx)(ow.Path,{d:"M7 10H8.5M10 10H17M7 14H8.5M10 14H17M6 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V18C4.75 18.6904 5.30964 19.25 6 19.25Z",vectorEffect:"non-scaling-stroke"})});var nw=a(A(),1),CI=a(y(),1),SI=(0,CI.jsx)(nw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,CI.jsx)(nw.Path,{d:"M4 15H20M4 19H13M4.75 3.85V8.11432C4.75 8.24693 4.80268 8.37411 4.89645 8.46788L8.82502 12.3964C9.02028 12.5917 9.33686 12.5917 9.53212 12.3964L13.3964 8.53212C13.5917 8.33686 13.5917 8.02028 13.3964 7.82502L9.46788 3.89645C9.37411 3.80268 9.24693 3.75 9.11432 3.75H4.85C4.79477 3.75 4.75 3.79477 4.75 3.85Z",vectorEffect:"non-scaling-stroke"})});var bv=a(A(),1),yv=a(y(),1),TI=(0,yv.jsxs)(bv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,yv.jsx)(bv.Path,{d:"M18 4H6C4.9 4 4 4.9 4 6V18C4 19.1 4.9 20 6 20H18C19.1 20 20 19.1 20 18V6C20 4.9 19.1 4 18 4ZM18.5 18C18.5 18.3 18.3 18.5 18 18.5H6C5.7 18.5 5.5 18.3 5.5 18V6C5.5 5.7 5.7 5.5 6 5.5H18C18.3 5.5 18.5 5.7 18.5 6V18ZM7 16.5H13V15H7V16.5ZM11 12.5H17V11H11V12.5ZM9 11H7V12.5H9V11ZM15 16.5H17V15H15V16.5Z",fill:"currentColor",stroke:"none"}),(0,yv.jsx)(bv.Path,{d:"M7 11.75H9M11 11.75H17M15 15.75H17M7 15.75H13M6 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V18C4.75 18.6904 5.30964 19.25 6 19.25Z",vectorEffect:"non-scaling-stroke"})]});var aw=a(A(),1),EI=a(y(),1),PI=(0,EI.jsx)(aw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,EI.jsx)(aw.Path,{d:"M17 6.5L12 12L17 17.5M11 6.5L6 12L11 17.5",vectorEffect:"non-scaling-stroke"})});var vv=a(A(),1),_v=a(y(),1),BI=(0,_v.jsxs)(vv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,_v.jsx)(vv.Path,{d:"M12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,_v.jsx)(vv.Path,{d:"M9 12L11 14L15 10",vectorEffect:"non-scaling-stroke"})]});var xv=a(A(),1),kv=a(y(),1),II=(0,kv.jsxs)(xv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,kv.jsx)(xv.Path,{d:"M10 18L4 18L4 6L10 6L10 18Z",fill:"currentColor",stroke:"none"}),(0,kv.jsx)(xv.Path,{d:"M13 9.25H20M20 14.75H13",vectorEffect:"non-scaling-stroke"})]});var wv=a(A(),1),Cv=a(y(),1),NI=(0,Cv.jsxs)(wv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Cv.jsx)(wv.Path,{d:"M20 18L14 18L14 6L20 6L20 18Z",fill:"currentColor",stroke:"none"}),(0,Cv.jsx)(wv.Path,{d:"M4 9.25H11M11 14.75H4",vectorEffect:"non-scaling-stroke"})]});var Sv=a(A(),1),Tv=a(y(),1),MI=(0,Tv.jsxs)(Sv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Tv.jsx)(Sv.Path,{d:"M4 4.75H20M4 19.25H20",vectorEffect:"non-scaling-stroke"}),(0,Tv.jsx)(Sv.Path,{d:"M4.75 9.75C4.75 9.19772 5.19772 8.75 5.75 8.75H18.25C18.8023 8.75 19.25 9.19772 19.25 9.75V14.25C19.25 14.8023 18.8023 15.25 18.25 15.25H5.75C5.19771 15.25 4.75 14.8023 4.75 14.25V9.75Z",vectorEffect:"non-scaling-stroke"})]});var iw=a(A(),1),LI=a(y(),1),Ev=(0,LI.jsx)(iw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,LI.jsx)(iw.Path,{d:"M7 12H9M11 12H13M16 9.5L18 12L16 14.5",vectorEffect:"non-scaling-stroke"})});var sh=a(A(),1),lh=a(y(),1),Pv=(0,lh.jsxs)(sh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,lh.jsx)(sh.Path,{d:"M8 14.25C8 13.85 8 10.9167 8 9.75L6.5 10.25",vectorEffect:"non-scaling-stroke"}),(0,lh.jsx)(sh.Path,{d:"M11 12H13",vectorEffect:"non-scaling-stroke"}),(0,lh.jsx)(sh.Path,{d:"M17.5 13.5H15.5C15.5 11.4333 17.5 11.95 17.5 10.4C17.5 9.62503 16.5 8.975 15.5 9.74999",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"})]});var sw=a(A(),1),RI=a(y(),1),Bv=(0,RI.jsx)(sw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,RI.jsx)(sw.Path,{d:"M11 12L13 12M15 12H17M8 14.5L6 12L8 9.5",vectorEffect:"non-scaling-stroke"})});var lw=a(A(),1),DI=a(y(),1),Iv=(0,DI.jsx)(lw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,DI.jsx)(lw.Path,{d:"M9 12L11 12M13 12H15M18 9.5L20 12L18 14.5M6 14.5L4 12L6 9.5",vectorEffect:"non-scaling-stroke"})});var ch=a(A(),1),uh=a(y(),1),AI=(0,uh.jsxs)(ch.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,uh.jsx)(ch.Path,{d:"M10 11.25V6.75H4.75V11.25H10ZM10 11.25V16C10 17.5 9.5 19 6 19M19 11.25V6.75H13.75V11.25H19ZM19 11.25V16C19 17.5 18.5 19 15 19",vectorEffect:"non-scaling-stroke"}),(0,uh.jsx)(ch.Path,{d:"M10 6.75V11.25H4.75V6.75H10Z",fill:"currentColor",stroke:"none"}),(0,uh.jsx)(ch.Path,{d:"M19 6.75V11.25H13.75V6.75H19Z",fill:"currentColor",stroke:"none"})]});var cw=a(A(),1),OI=a(y(),1),FI=(0,OI.jsx)(cw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,OI.jsx)(cw.Path,{d:"M10.5 17H8C5.23858 17 3 14.7614 3 12C3 9.23858 5.23858 7 8 7H11M8.5 19.5L10.5 17L8.5 14.5M13.5 12H17.1143M21.5 12H20M13.5 7H19.4M13.5 17H14.8286M21.5 17H18M13 21L14.8286 17M21 3.5L19.4 7M19.4 7L17.1143 12M17.1143 12L14.8286 17",vectorEffect:"non-scaling-stroke"})});var uw=a(A(),1),VI=a(y(),1),zI=(0,VI.jsx)(uw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,VI.jsx)(uw.Path,{d:"M7 12H17",vectorEffect:"non-scaling-stroke"})});var dw=a(A(),1),HI=a(y(),1),jI=(0,HI.jsx)(dw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,HI.jsx)(dw.Path,{d:"M11.5 18.75H5.25V12.5M5.25 18.75L18.75 5.25M18.75 11.5V5.25H12.5",vectorEffect:"non-scaling-stroke"})});var Nv=a(A(),1),Mv=a(y(),1),UI=(0,Mv.jsxs)(Nv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Mv.jsx)(Nv.Path,{d:"M12 19.25C7.99593 19.25 4.75 16.0041 4.75 12C4.75 7.99594 7.99593 4.75 12 4.75L14 4.75M12 2L14 4.75L12 7.5",vectorEffect:"non-scaling-stroke"}),(0,Mv.jsx)(Nv.Path,{d:"M9.22553 18.6981C12.9248 20.2304 17.1658 18.4737 18.6981 14.7745C19.7261 12.2927 19.2738 9.56712 17.7477 7.57918",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})]});var pw=a(A(),1),WI=a(y(),1),GI=(0,WI.jsx)(pw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,WI.jsx)(pw.Path,{d:"M20 16.75L15 16.75C14.3096 16.75 13.75 16.1904 13.75 15.5L13.75 8.5C13.75 7.80964 14.3096 7.25 15 7.25L20 7.25M4 7.25L9 7.25C9.69036 7.25 10.25 7.80964 10.25 8.5L10.25 15.5C10.25 16.1904 9.69036 16.75 9 16.75L4 16.75",vectorEffect:"non-scaling-stroke"})});var Lv=a(A(),1),Rv=a(y(),1),Dv=(0,Rv.jsxs)(Lv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Rv.jsx)(Lv.Path,{d:"M6.25 17.75L6.25 19.25L4.75 19.25L4.75 17.75L6.25 17.75Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,Rv.jsx)(Lv.Path,{d:"M4.75 11H5C9.41828 11 13 14.5817 13 19V19.25M19 19.25V19C19 11.268 12.732 5 5 5H4.75",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"})]});var mw=a(A(),1),$I=a(y(),1),qI=(0,$I.jsx)(mw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,$I.jsx)(mw.Path,{d:"M5 19L9.28769 14.7123M18.25 11C18.25 13.8995 15.8995 16.25 13 16.25C10.1005 16.25 7.75 13.8995 7.75 11C7.75 8.10051 10.1005 5.75 13 5.75C15.8995 5.75 18.25 8.10051 18.25 11Z",vectorEffect:"non-scaling-stroke"})});var fw=a(A(),1),ZI=a(y(),1),KI=(0,ZI.jsx)(fw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,ZI.jsx)(fw.Path,{d:"M3.75 7V11.75M3.75 16.5V11.75M3.75 11.75H20.25M20.25 11.75V16.5M20.25 11.75V7",vectorEffect:"non-scaling-stroke"})});var gw=a(A(),1),YI=a(y(),1),Av=(0,YI.jsx)(gw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,YI.jsx)(gw.Path,{d:"M15.75 5.69118V7C15.75 7.13807 15.8619 7.25 16 7.25H18C18.1381 7.25 18.25 7.13807 18.25 7V5C18.25 4.86193 18.1381 4.75 18 4.75H16C15.8619 4.75 15.75 4.86193 15.75 5V5.69118ZM15.75 5.69118L8.25 11.4265M15.75 18.3088V19C15.75 19.1381 15.8619 19.25 16 19.25H18C18.1381 19.25 18.25 19.1381 18.25 19V17C18.25 16.8619 18.1381 16.75 18 16.75H16C15.8619 16.75 15.75 16.8619 15.75 17V18.3088ZM15.75 18.3088L8.25 12.5735M8.25 11.4265V11C8.25 10.8619 8.13807 10.75 8 10.75H6C5.86193 10.75 5.75 10.8619 5.75 11V13C5.75 13.1381 5.86193 13.25 6 13.25H8C8.13807 13.25 8.25 13.1381 8.25 13V12.5735M8.25 11.4265V12.5735",vectorEffect:"non-scaling-stroke"})});var hw=a(A(),1),QI=a(y(),1),Ov=(0,QI.jsx)(hw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,QI.jsx)(hw.Path,{d:"M8 4.75H4.75V19.25H8M16 4.75H19.25V19.25H16M10 17L14 7",vectorEffect:"non-scaling-stroke"})});var Fv=a(A(),1),Vv=a(y(),1),XI=(0,Vv.jsxs)(Fv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Vv.jsx)(Fv.Path,{d:"M9.75 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V9.75M9.75 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V9.75M9.75 19.25V9.75M19.25 9.75V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V9.75M19.25 9.75H9.75M9.75 9.75H4.75",vectorEffect:"non-scaling-stroke"}),(0,Vv.jsx)(Fv.Path,{d:"M6 19.25H9.75V9.75H4.75V18C4.75 18.6904 5.30964 19.25 6 19.25Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var bw=a(A(),1),JI=a(y(),1),eN=(0,JI.jsx)(bw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,JI.jsx)(bw.Path,{d:"M5.07325 14.1472L8.71429 12L12.5 13.3333L15.75 11C15.75 11 17.934 11.9169 19.2032 12.8281M19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12C4.75 7.99594 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})});var yw=a(A(),1),tN=a(y(),1),rN=(0,tN.jsx)(yw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,tN.jsx)(yw.Path,{d:"M5.75 12V18.25H12M12 5.75H18.25V12",vectorEffect:"non-scaling-stroke"})});var vw=a(A(),1),oN=a(y(),1),nN=(0,oN.jsx)(vw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,oN.jsx)(vw.Path,{d:"M7.25 20L7.25 15C7.25 14.3096 7.80965 13.75 8.5 13.75L15.5 13.75C16.1904 13.75 16.75 14.3096 16.75 15L16.75 20M16.75 4L16.75 9C16.75 9.69035 16.1904 10.25 15.5 10.25L8.5 10.25C7.80964 10.25 7.25 9.69036 7.25 9L7.25 4",vectorEffect:"non-scaling-stroke"})});var zv=a(A(),1),Hv=a(y(),1),jv=(0,Hv.jsxs)(zv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Hv.jsx)(zv.Path,{d:"M15.2071 6.20711L20.2929 11.2929C20.6834 11.6834 20.6834 12.3166 20.2929 12.7071L15.2071 17.7929C14.8166 18.1834 14.1834 18.1834 13.7929 17.7929L8.70711 12.7071C8.31658 12.3166 8.31658 11.6834 8.70711 11.2929L13.7929 6.20711C14.1834 5.81658 14.8166 5.81658 15.2071 6.20711Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,Hv.jsx)(zv.Path,{d:"M9.5 5.5L3.70711 11.2929C3.31658 11.6834 3.31658 12.3166 3.70711 12.7071L9.5 18.5",vectorEffect:"non-scaling-stroke"})]});var Uv=a(A(),1),Wv=a(y(),1),aN=(0,Wv.jsxs)(Uv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Wv.jsx)(Uv.Path,{d:"M15.2071 6.20711L20.2929 11.2929C20.6834 11.6834 20.6834 12.3166 20.2929 12.7071L15.2071 17.7929C14.8166 18.1834 14.1834 18.1834 13.7929 17.7929L8.70711 12.7071C8.31658 12.3166 8.31658 11.6834 8.70711 11.2929L13.7929 6.20711C14.1834 5.81658 14.8166 5.81658 15.2071 6.20711Z",vectorEffect:"non-scaling-stroke"}),(0,Wv.jsx)(Uv.Path,{d:"M9.5 5.5L3.70711 11.2929C3.31658 11.6834 3.31658 12.3166 3.70711 12.7071L9.5 18.5",vectorEffect:"non-scaling-stroke"})]});var Gv=a(A(),1),$v=a(y(),1),iN=(0,$v.jsxs)(Gv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,$v.jsx)(Gv.Path,{d:"M10.25 13.25H4.75V11.25C4.75 10.6977 5.19772 10.25 5.75 10.25H9.25C9.80228 10.25 10.25 10.6977 10.25 11.25V13.25Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,$v.jsx)(Gv.Path,{d:"M13.75 14L13.75 11.25C13.75 10.6977 14.1977 10.25 14.75 10.25H18.25C18.8023 10.25 19.25 10.6977 19.25 11.25V14",vectorEffect:"non-scaling-stroke"})]});var qv=a(A(),1),Zv=a(y(),1),sN=(0,Zv.jsxs)(qv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Zv.jsx)(qv.Path,{d:"M4.75 10L4.75 7.25C4.75 6.69772 5.19772 6.25 5.75 6.25H9.25C9.80228 6.25 10.25 6.69772 10.25 7.25V10",vectorEffect:"non-scaling-stroke"}),(0,Zv.jsx)(qv.Path,{d:"M4 13H20M4 17H13",vectorEffect:"non-scaling-stroke"})]});var Kv=a(A(),1),Yv=a(y(),1),lN=(0,Yv.jsxs)(Kv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Yv.jsx)(Kv.Path,{d:"M9.75 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V9.5M9.75 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V18C19.25 18.6904 18.6904 19.25 18 19.25H9.75M9.75 4.75V9.5M9.75 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V14.5M9.75 19.25V14.5M9.75 14.5H4.75M9.75 14.5V9.5M4.75 14.5V9.5M9.75 9.5H4.75",vectorEffect:"non-scaling-stroke"}),(0,Yv.jsx)(Kv.Path,{d:"M17.5 12H14.5M11.5 12H14.5M14.5 12V9M14.5 12V15",vectorEffect:"non-scaling-stroke"})]});var Qv=a(A(),1),Xv=a(y(),1),cN=(0,Xv.jsxs)(Qv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Xv.jsx)(Qv.Path,{d:"M14.25 19.25L18 19.25C18.6904 19.25 19.25 18.6904 19.25 18L19.25 14.5M14.25 19.25L6 19.25C5.30964 19.25 4.75 18.6904 4.75 18L4.75 6C4.75 5.30964 5.30965 4.75 6 4.75L14.25 4.75M14.25 19.25L14.25 14.5M14.25 4.75L18 4.75C18.6904 4.75 19.25 5.30964 19.25 6L19.25 9.5M14.25 4.75L14.25 9.5M14.25 9.5L19.25 9.5M14.25 9.5L14.25 14.5M19.25 9.5L19.25 14.5M14.25 14.5L19.25 14.5",vectorEffect:"non-scaling-stroke"}),(0,Xv.jsx)(Qv.Path,{d:"M6.5 12L9.5 12M12.5 12L9.5 12M9.5 12L9.5 15M9.5 12L9.5 9",vectorEffect:"non-scaling-stroke"})]});var Jv=a(A(),1),e_=a(y(),1),uN=(0,e_.jsxs)(Jv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,e_.jsx)(Jv.Path,{d:"M9.75 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V18C4.75 18.6904 5.30964 19.25 6 19.25H9.75M9.75 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V18C19.25 18.6904 18.6904 19.25 18 19.25H9.75M9.75 4.75V19.25",vectorEffect:"non-scaling-stroke"}),(0,e_.jsx)(Jv.Path,{d:"M16.6213 14.1213L14.5 12M12.3787 9.87868L14.5 12M14.5 12L16.6213 9.87868M14.5 12L12.3787 14.1213",vectorEffect:"non-scaling-stroke"})]});var bu=a(A(),1),yu=a(y(),1),t_=(0,yu.jsxs)(bu.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,yu.jsx)(bu.Path,{d:"M11 8H20M15 16H20",vectorEffect:"non-scaling-stroke"}),(0,yu.jsx)(bu.Path,{d:"M6 9.25C6.69036 9.25 7.25 8.69036 7.25 8C7.25 7.30964 6.69036 6.75 6 6.75C5.30964 6.75 4.75 7.30964 4.75 8C4.75 8.69036 5.30964 9.25 6 9.25Z",fill:"currentColor",stroke:"none"}),(0,yu.jsx)(bu.Path,{d:"M6 17.25C6.69036 17.25 7.25 16.6904 7.25 16C7.25 15.3096 6.69036 14.75 6 14.75C5.30964 14.75 4.75 15.3096 4.75 16C4.75 16.6904 5.30964 17.25 6 17.25Z",fill:"currentColor",stroke:"none"}),(0,yu.jsx)(bu.Path,{d:"M6 9.25C6.69036 9.25 7.25 8.69036 7.25 8C7.25 7.30964 6.69036 6.75 6 6.75C5.30964 6.75 4.75 7.30964 4.75 8C4.75 8.69036 5.30964 9.25 6 9.25Z",vectorEffect:"non-scaling-stroke"}),(0,yu.jsx)(bu.Path,{d:"M6 17.25C6.69036 17.25 7.25 16.6904 7.25 16C7.25 15.3096 6.69036 14.75 6 14.75C5.30964 14.75 4.75 15.3096 4.75 16C4.75 16.6904 5.30964 17.25 6 17.25Z",vectorEffect:"non-scaling-stroke"}),(0,yu.jsx)(bu.Path,{d:"M11 17.25C11.6904 17.25 12.25 16.6904 12.25 16C12.25 15.3096 11.6904 14.75 11 14.75C10.3096 14.75 9.75 15.3096 9.75 16C9.75 16.6904 10.3096 17.25 11 17.25Z",vectorEffect:"non-scaling-stroke"})]});var r_=a(A(),1),o_=a(y(),1),dN=(0,o_.jsxs)(r_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,o_.jsx)(r_.Path,{d:"M19.25 9.75L19.25 6C19.25 5.30964 18.6904 4.75 18 4.75L14.5 4.75M19.25 9.75L19.25 18C19.25 18.6904 18.6904 19.25 18 19.25L6 19.25C5.30964 19.25 4.75 18.6904 4.75 18L4.75 9.75M19.25 9.75L14.5 9.75M4.75 9.75L4.75 6C4.75 5.30964 5.30964 4.75 6 4.75L9.5 4.75M4.75 9.75L9.5 9.75M9.5 9.75L9.5 4.75M9.5 9.75L14.5 9.75M9.5 4.75L14.5 4.75M14.5 9.75L14.5 4.75",vectorEffect:"non-scaling-stroke"}),(0,o_.jsx)(r_.Path,{d:"M12 17.5L12 14.5M12 11.5L12 14.5M12 14.5L15 14.5M12 14.5L9 14.5",vectorEffect:"non-scaling-stroke"})]});var n_=a(A(),1),a_=a(y(),1),pN=(0,a_.jsxs)(n_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,a_.jsx)(n_.Path,{d:"M4.75 14.25L4.75 18C4.75 18.6904 5.30964 19.25 6 19.25L9.5 19.25M4.75 14.25L4.75 6C4.75 5.30964 5.30964 4.75 6 4.75L18 4.75C18.6904 4.75 19.25 5.30964 19.25 6L19.25 14.25M4.75 14.25L9.5 14.25M19.25 14.25L19.25 18C19.25 18.6904 18.6904 19.25 18 19.25L14.5 19.25M19.25 14.25L14.5 14.25M14.5 14.25L14.5 19.25M14.5 14.25L9.5 14.25M14.5 19.25L9.5 19.25M9.5 14.25L9.5 19.25",vectorEffect:"non-scaling-stroke"}),(0,a_.jsx)(n_.Path,{d:"M12 6.5L12 9.5M12 12.5L12 9.5M12 9.5L9 9.5M12 9.5L15 9.5",vectorEffect:"non-scaling-stroke"})]});var i_=a(A(),1),s_=a(y(),1),mN=(0,s_.jsxs)(i_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,s_.jsx)(i_.Path,{d:"M19.25 9.75L19.25 6C19.25 5.30964 18.6904 4.75 18 4.75L6 4.75C5.30964 4.75 4.75 5.30964 4.75 6L4.75 9.75M19.25 9.75L19.25 18C19.25 18.6904 18.6904 19.25 18 19.25L6 19.25C5.30964 19.25 4.75 18.6904 4.75 18L4.75 9.75M19.25 9.75L4.75 9.75",vectorEffect:"non-scaling-stroke"}),(0,s_.jsx)(i_.Path,{d:"M9.87868 16.6213L12 14.5M14.1213 12.3787L12 14.5M12 14.5L14.1213 16.6213M12 14.5L9.87868 12.3787",vectorEffect:"non-scaling-stroke"})]});var _w=a(A(),1),fN=a(y(),1),gN=(0,fN.jsx)(_w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,fN.jsx)(_w.Path,{d:"M19.25 12V6C19.25 5.30964 18.6904 4.75 18 4.75H12M19.25 12V18C19.25 18.6904 18.6904 19.25 18 19.25H12M19.25 12H4.75M4.75 12V18C4.75 18.6904 5.30964 19.25 6 19.25H12M4.75 12V6C4.75 5.30964 5.30964 4.75 6 4.75H12M12 4.75V19.25",vectorEffect:"non-scaling-stroke"})});var dh=a(A(),1),ph=a(y(),1),hN=(0,ph.jsxs)(dh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,ph.jsx)(dh.Path,{d:"M4 13H20M4 17H13",vectorEffect:"non-scaling-stroke"}),(0,ph.jsx)(dh.Path,{d:"M10.25 9.25H4.75V7.25C4.75 6.69772 5.19772 6.25 5.75 6.25H9.25C9.80228 6.25 10.25 6.69772 10.25 7.25V9.25Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,ph.jsx)(dh.Path,{d:"M13.75 10L13.75 7.25C13.75 6.69772 14.1977 6.25 14.75 6.25H18.25C18.8023 6.25 19.25 6.69772 19.25 7.25V10",vectorEffect:"non-scaling-stroke"})]});var l_=a(A(),1),c_=a(y(),1),u_=(0,c_.jsxs)(l_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,c_.jsx)(l_.Path,{d:"M4.75 12.5429V4.85C4.75 4.79477 4.79477 4.75 4.85 4.75H12.5429C12.6755 4.75 12.8027 4.80268 12.8964 4.89645L20.1464 12.1464C20.3417 12.3417 20.3417 12.6583 20.1464 12.8536L12.8536 20.1464C12.6583 20.3417 12.3417 20.3417 12.1464 20.1464L4.89645 12.8964C4.80268 12.8027 4.75 12.6755 4.75 12.5429Z",vectorEffect:"non-scaling-stroke"}),(0,c_.jsx)(l_.Path,{d:"M9.75 8.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",fill:"currentColor",stroke:"none"})]});var d_=a(A(),1),p_=a(y(),1),bN=(0,p_.jsxs)(d_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,p_.jsx)(d_.Path,{d:"M4.75 12.5429V4.85C4.75 4.79477 4.79477 4.75 4.85 4.75H12.5429C12.6755 4.75 12.8027 4.80268 12.8964 4.89645L20.1464 12.1464C20.3417 12.3417 20.3417 12.6583 20.1464 12.8536L12.8536 20.1464C12.6583 20.3417 12.3417 20.3417 12.1464 20.1464L4.89645 12.8964C4.80268 12.8027 4.75 12.6755 4.75 12.5429Z",vectorEffect:"non-scaling-stroke"}),(0,p_.jsx)(d_.Path,{d:"M14.1563 12.7915L12.7421 14.2057C11.2807 12.7443 13.0603 11.6955 11.9643 10.5995C11.4163 10.0515 10.2495 10.2989 10.0904 11.554",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"})]});var xw=a(A(),1),yN=a(y(),1),vN=(0,yN.jsx)(xw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,yN.jsx)(xw.Path,{d:"M4 15H11M4 19H8M12 15H20M9 19H15M4.75 12V11.7703L5.59234 9.24324M5.59234 9.24324L7.50676 3.5H7.96622L9.88063 9.24324L10.723 11.7703V12M9.88063 9.24324H5.59234",vectorEffect:"non-scaling-stroke"})});var kw=a(A(),1),_N=a(y(),1),xN=(0,_N.jsx)(kw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,_N.jsx)(kw.Path,{d:"M14.5 14.5L9 9M12.8964 4.89645L20.1464 12.1464C20.3417 12.3417 20.3417 12.6583 20.1464 12.8536L12.8536 20.1464C12.6583 20.3417 12.3417 20.3417 12.1464 20.1464L4.89645 12.8964C4.80268 12.8027 4.75 12.6755 4.75 12.5429V4.85C4.75 4.79477 4.79477 4.75 4.85 4.75H12.5429C12.6755 4.75 12.8027 4.80268 12.8964 4.89645Z",vectorEffect:"non-scaling-stroke"})});var m_=a(A(),1),f_=a(y(),1),g_=(0,f_.jsxs)(m_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,f_.jsx)(m_.Path,{d:"M12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,f_.jsx)(m_.Path,{d:"M15 15L11.75 12.25V8",vectorEffect:"non-scaling-stroke"})]});var ww=a(A(),1),kN=a(y(),1),ml=(0,kN.jsx)(ww.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,kN.jsx)(ww.Path,{d:"M4 15H20M4 19H13M4 4.5H7M7 4.5H10M7 4.5V12",vectorEffect:"non-scaling-stroke"})});var Cw=a(A(),1),wN=a(y(),1),vu=(0,wN.jsx)(Cw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,wN.jsx)(Cw.Path,{d:"M4.75 15V19.25H12M12 19.25V4.5M12 19.25H19.25V15M17.5 10L12 4.5L6.5 10",vectorEffect:"non-scaling-stroke"})});var mh=a(A(),1),fh=a(y(),1),h_=(0,fh.jsxs)(mh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,fh.jsx)(mh.Path,{d:"M8.5 14C9 12 12.5 7.5 17 5.5",vectorEffect:"non-scaling-stroke"}),(0,fh.jsx)(mh.Path,{d:"M8 14C7.66667 11.1667 9 5 17 3C17.1667 4.66667 17.2 8.6 16 11C14.8 13.4 10.1667 14 8 14ZM8 14L7 16",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}),(0,fh.jsx)(mh.Path,{d:"M5 19.25H12",vectorEffect:"non-scaling-stroke"})]});var b_=a(A(),1),y_=a(y(),1),gh=(0,y_.jsxs)(b_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,y_.jsx)(b_.Path,{d:"M10 15L15 12L10 9V15Z",fill:"currentColor",stroke:"none"}),(0,y_.jsx)(b_.Path,{d:"M4.75 6C4.75 5.30964 5.30964 4.75 6 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V18C19.25 18.6904 18.6904 19.25 18 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V6Z",vectorEffect:"non-scaling-stroke"})]});var v_=a(A(),1),__=a(y(),1),CN=(0,__.jsxs)(v_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,__.jsx)(v_.Path,{d:"M6.28261 7.75L6.09288 9.93182M6.09288 9.93182L5.77668 13.5682M6.09288 9.93182H3.84783M6.09288 9.93182H9.57115M5.77668 13.5682L5.58696 15.75M5.77668 13.5682H3.5M5.77668 13.5682H9.25494M9.76087 7.75L9.57115 9.93182M9.57115 9.93182L9.25494 13.5682M9.57115 9.93182H11.5M9.25494 13.5682L9.06522 15.75M9.25494 13.5682H11.1522",vectorEffect:"non-scaling-stroke"}),(0,__.jsx)(v_.Path,{d:"M19 7.75C19 7.75 19 11.8033 19 13.0386C19 14.2739 19.1824 15 20.5 15M19 11.2941C19 9.23529 17.8235 8.41176 16.3824 8.41176C14.7905 8.41176 13.5 9.64706 13.5 11.7059C13.5 13.7647 14.7905 15 16.3824 15C17.5592 15 19 13.7647 19 12.1176",vectorEffect:"non-scaling-stroke"})]});var Dn=a(I(),1),Bi=a(L(),1),Go=a(F(),1),hh=a(H(),1),Ew=a(te(),1);var Sw=a(H(),1),xm=a(W(),1),Td=a(Ur(),1),SN=a(I(),1),Wj=a(ae(),1),Gj=a(_e(),1);function Tw(e,t,r){return(0,Sw.useSelect)(o=>o(Wj.store).canUser("update",{kind:e,name:t,id:r}),[e,t,r])}function ic(e={}){let t=(0,xm.useRef)(e),r=(0,xm.useRef)(!1),{getSettings:o}=(0,Sw.useSelect)(SN.store);(0,xm.useLayoutEffect)(()=>{t.current=e}),(0,xm.useEffect)(()=>{if(r.current||!t.current.url||!(0,Td.isBlobURL)(t.current.url))return;let n=(0,Td.getBlobByURL)(t.current.url);if(!n)return;let{url:i,allowedTypes:s,onChange:l,onError:c}=t.current,{mediaUpload:u}=o();u&&(r.current=!0,u({filesList:[n],allowedTypes:s,onFileChange:([d])=>{(0,Td.isBlobURL)(d?.url)||((0,Td.revokeBlobURL)(i),l(d),r.current=!1)},onError:d=>{(0,Td.revokeBlobURL)(i),c(d),r.current=!1}}))},[o])}function x_(){return(0,Sw.useSelect)(t=>{let{getSettings:r}=t(SN.store),{__experimentalDiscussionSettings:o}=r();return o?.avatarURL??""},[])}function ee(){return(0,Gj.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}var Nr=a(y(),1),$j="core/accordion-item",Q2e="core/accordion-heading",X2e={name:$j};function qj({attributes:{autoclose:e,iconPosition:t,showIcon:r,headingLevel:o,levelOptions:n},clientId:i,setAttributes:s,isSelected:l}){let c=(0,hh.useRegistry)(),{getBlockOrder:u}=(0,hh.useSelect)(Dn.store),d=(0,Dn.useBlockProps)({role:"group"}),p=ee(),{updateBlockAttributes:m,insertBlock:f}=(0,hh.useDispatch)(Dn.store),h=(0,Dn.useBlockEditingMode)()==="contentOnly",b=(0,Dn.useInnerBlocksProps)(d,{defaultBlock:X2e,directInsert:!0});return(0,Nr.jsxs)(Nr.Fragment,{children:[l&&!h&&(0,Nr.jsxs)(Nr.Fragment,{children:[(0,Nr.jsx)(Dn.BlockControls,{children:(0,Nr.jsx)(Go.ToolbarGroup,{children:(0,Nr.jsx)(Dn.HeadingLevelDropdown,{value:o,options:n,onChange:w=>{let x=u(i),k=[];x.forEach(C=>{let S=u(C);k.push(...S)}),c.batch(()=>{s({headingLevel:w}),m(k,{level:w})})}})})}),(0,Nr.jsx)(Dn.BlockControls,{group:"other",children:(0,Nr.jsx)(Go.ToolbarButton,{onClick:()=>{let w=(0,Ew.createBlock)($j,{},[(0,Ew.createBlock)(Q2e,{level:o}),(0,Ew.createBlock)("core/accordion-panel",{})]);f(w,void 0,i)},children:(0,Bi.__)("Add item")})})]}),(0,Nr.jsx)(Dn.InspectorControls,{children:(0,Nr.jsxs)(Go.__experimentalToolsPanel,{label:(0,Bi.__)("Settings"),resetAll:()=>{s({autoclose:!1,showIcon:!0,iconPosition:"right"})},dropdownMenuProps:p,children:[(0,Nr.jsx)(Go.__experimentalToolsPanelItem,{label:(0,Bi.__)("Auto-close"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>s({autoclose:!1}),children:(0,Nr.jsx)(Go.ToggleControl,{label:(0,Bi.__)("Auto-close"),onChange:w=>{s({autoclose:w})},checked:e,help:(0,Bi.__)("Automatically close accordions when a new one is opened.")})}),(0,Nr.jsx)(Go.__experimentalToolsPanelItem,{label:(0,Bi.__)("Show icon"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>s({showIcon:!0}),children:(0,Nr.jsx)(Go.ToggleControl,{label:(0,Bi.__)("Show icon"),onChange:w=>{s({showIcon:w,iconPosition:w?t:"right"})},checked:r,help:(0,Bi.__)("Display a plus icon next to the accordion header.")})}),r&&(0,Nr.jsx)(Go.__experimentalToolsPanelItem,{label:(0,Bi.__)("Icon Position"),isShownByDefault:!0,hasValue:()=>t!=="right",onDeselect:()=>s({iconPosition:"right"}),children:(0,Nr.jsxs)(Go.__experimentalToggleGroupControl,{isBlock:!0,label:(0,Bi.__)("Icon Position"),value:t,onChange:w=>{s({iconPosition:w})},children:[(0,Nr.jsx)(Go.__experimentalToggleGroupControlOption,{label:(0,Bi.__)("Left"),value:"left"}),(0,Nr.jsx)(Go.__experimentalToggleGroupControlOption,{label:(0,Bi.__)("Right"),value:"right"})]})})]})},"setting"),(0,Nr.jsx)("div",{...b})]})}var Pw=a(I(),1),Zj=a(y(),1);function Kj(){let e=Pw.useBlockProps.save({role:"group"});return(0,Zj.jsx)("div",{...Pw.useInnerBlocksProps.save(e)})}var Bw={$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,link:!0,heading:!0,button:!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 Yj=a(te(),1);function D(e){if(!e)return;let{metadata:t,settings:r,name:o}=e;return(0,Yj.registerBlockType)({name:o,...t},r)}var{name:Qj}=Bw,exe=[["core/accordion-item"]],Xj={icon:cP,example:{innerBlocks:[{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,TN.__)("Lorem ipsum dolor sit amet, consectetur.")}}]},{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,TN.__)("Suspendisse commodo lacus, interdum et.")}}]}]},template:exe,templateInsertUpdatesSelection:!0,edit:qj,save:Kj},txe=()=>D({name:Qj,metadata:Bw,settings:Xj});var PN={};J(PN,{init:()=>nxe,metadata:()=>Nw,name:()=>oU,settings:()=>nU});var k_=a(L(),1),Ed=a(I(),1),Jj=a(H(),1),bh=a(F(),1);var sc=a(y(),1);function eU({attributes:e,clientId:t,setAttributes:r,isSelected:o}){let{openByDefault:n}=e,i=ee(),{isSelected:s}=(0,Jj.useSelect)(u=>o||n?{isSelected:!0}:{isSelected:u(Ed.store).hasSelectedInnerBlock(t,!0)},[t,o,n]),l=(0,Ed.useBlockProps)({className:T({"is-open":n||s})}),c=(0,Ed.useInnerBlocksProps)(l,{templateLock:"all",directInsert:!0});return(0,sc.jsxs)(sc.Fragment,{children:[(0,sc.jsx)(Ed.InspectorControls,{children:(0,sc.jsx)(bh.__experimentalToolsPanel,{label:(0,k_.__)("Settings"),resetAll:()=>{r({openByDefault:!1})},dropdownMenuProps:i,children:(0,sc.jsx)(bh.__experimentalToolsPanelItem,{label:(0,k_.__)("Open by default"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{r({openByDefault:!1})},children:(0,sc.jsx)(bh.ToggleControl,{label:(0,k_.__)("Open by default"),onChange:u=>{r({openByDefault:u})},checked:n,help:(0,k_.__)("Accordion content will be displayed by default.")})})})},"setting"),(0,sc.jsx)("div",{...c})]})}var Iw=a(I(),1);var tU=a(y(),1);function rU({attributes:e}){let{openByDefault:t}=e,r=Iw.useBlockProps.save({className:T({"is-open":t})}),o=Iw.useInnerBlocksProps.save(r);return(0,tU.jsx)("div",{...o})}var Nw={$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,background:{gradient:!0},color:{background:!0,gradients:!0,link:!0,heading:!0,button:!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:oU}=Nw,oxe=[["core/accordion-heading"],["core/accordion-panel"]],nU={icon:sP,template:oxe,templateInsertUpdatesSelection:!0,edit:eU,save:rU},nxe=()=>D({name:oU,metadata:Nw,settings:nU});var BN={};J(BN,{init:()=>cxe,metadata:()=>Mw,name:()=>dU,settings:()=>pU});var aU=a(L(),1),iU=a(W(),1),_s=a(I(),1),sU=a(H(),1),km=a(y(),1);function lU({attributes:e,setAttributes:t,context:r}){let{title:o}=e,{"core/accordion-icon-position":n,"core/accordion-show-icon":i,"core/accordion-heading-level":s}=r,l="h"+s,{__unstableMarkNextChangeAsNotPersistent:c}=(0,sU.useDispatch)(_s.store);(0,iU.useEffect)(()=>{n!==void 0&&i!==void 0&&(c(),t({iconPosition:n,showIcon:i}))},[n,i,t,c]);let[u,d]=(0,_s.useSettings)("typography.fluid","layout"),p=(0,_s.getTypographyClassesAndStyles)(e,{typography:{fluid:u},layout:{wideSize:d?.wideSize}}),m=(0,_s.useBlockProps)({className:T({"has-icon":i,"has-icon-left":i&&n==="left","has-icon-right":i&&n==="right"})}),f=(0,_s.__experimentalGetSpacingClassesAndStyles)(e);return(0,km.jsx)(l,{...m,children:(0,km.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:f.style,tabIndex:"-1",children:[i&&n==="left"&&(0,km.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,km.jsx)(_s.RichText,{withoutInteractiveFormatting:!0,disableLineBreaks:!0,tagName:"span",value:o,onChange:g=>t({title:g}),placeholder:(0,aU.__)("Accordion title"),className:"wp-block-accordion-heading__toggle-title",style:{letterSpacing:p.style.letterSpacing,textDecoration:p.style.textDecoration}}),i&&n==="right"&&(0,km.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var Pd=a(I(),1),wm=a(y(),1);function cU({attributes:e}){let{level:t,title:r,iconPosition:o,showIcon:n}=e,i="h"+(t||3),s=(0,Pd.getTypographyClassesAndStyles)(e),l=Pd.useBlockProps.save({className:T({"has-icon":n,"has-icon-left":n&&o==="left","has-icon-right":n&&o==="right"})}),c=(0,Pd.__experimentalGetSpacingClassesAndStyles)(e);return(0,wm.jsx)(i,{...l,children:(0,wm.jsxs)("button",{type:"button",className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&o==="left"&&(0,wm.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,wm.jsx)(Pd.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:s.style.letterSpacing,textDecoration:s.style.textDecoration}}),n&&o==="right"&&(0,wm.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var Mw={$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:{spacing:".wp-block-accordion-heading .wp-block-accordion-heading__toggle",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 ga=a(I(),1),an=a(y(),1),ixe={attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,visibility:!1},save({attributes:e}){let{level:t,title:r,iconPosition:o,showIcon:n}=e,i="h"+(t||3),s=ga.useBlockProps.save(),l=(0,ga.__experimentalGetSpacingClassesAndStyles)(e);return(0,an.jsx)(i,{...s,children:(0,an.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:l.style,children:[n&&o==="left"&&(0,an.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,an.jsx)(ga.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r}),n&&o==="right"&&(0,an.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},sxe={attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{__experimentalSkipSerialization:["textDecoration","letterSpacing"],fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,visibility:!1,lock:!1},save({attributes:e}){let{level:t,title:r,iconPosition:o,showIcon:n}=e,i="h"+(t||3),s=(0,ga.getTypographyClassesAndStyles)(e),l=ga.useBlockProps.save(),c=(0,ga.__experimentalGetSpacingClassesAndStyles)(e);return(0,an.jsx)(i,{...l,children:(0,an.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&o==="left"&&(0,an.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,an.jsx)(ga.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:s.style.letterSpacing,textDecoration:s.style.textDecoration}}),n&&o==="right"&&(0,an.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},lxe={attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{__experimentalSkipSerialization:["textDecoration","letterSpacing"],fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,visibility:!1,lock:!1},save({attributes:e}){let{level:t,title:r,iconPosition:o,showIcon:n}=e,i="h"+(t||3),s=(0,ga.getTypographyClassesAndStyles)(e),l=ga.useBlockProps.save(),c=(0,ga.__experimentalGetSpacingClassesAndStyles)(e);return(0,an.jsx)(i,{...l,children:(0,an.jsxs)("button",{type:"button",className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&o==="left"&&(0,an.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,an.jsx)(ga.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:s.style.letterSpacing,textDecoration:s.style.textDecoration}}),n&&o==="right"&&(0,an.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},uU=[lxe,sxe,ixe];var{name:dU}=Mw,pU={icon:aP,edit:lU,save:cU,deprecated:uU},cxe=()=>D({name:dU,metadata:Mw,settings:pU});var IN={};J(IN,{init:()=>pxe,metadata:()=>Rw,name:()=>yU,settings:()=>vU});var yh=a(I(),1),mU=a(H(),1),fU=a(y(),1);function gU({attributes:e,context:t,clientId:r,isSelected:o}){let{allowedBlocks:n,templateLock:i}=e,s=t["core/accordion-open-by-default"],{hasSelection:l}=(0,mU.useSelect)(d=>{if(o||s)return{hasSelection:!0};let{getBlockRootClientId:p,isBlockSelected:m,hasSelectedInnerBlock:f}=d(yh.store),g=p(r);return{hasSelection:m(g)||f(g,!0)}},[r,o,s]),c=(0,yh.useBlockProps)({hidden:!l,role:"region"}),u=(0,yh.useInnerBlocksProps)(c,{allowedBlocks:n,templateLock:i});return(0,fU.jsx)("div",{...u})}var Lw=a(I(),1),hU=a(y(),1);function bU(){let e=Lw.useBlockProps.save({role:"region"}),t=Lw.useInnerBlocksProps.save(e);return(0,hU.jsx)("div",{...t})}var Rw={$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:{__experimentalOnEnter:!0,html:!1,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},color:{background:!0,gradients:!0,link:!0,heading:!0,button:!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:yU}=Rw,dxe=[["core/paragraph",{}]],vU={icon:Jb,template:dxe,edit:gU,save:bU},pxe=()=>D({name:yU,metadata:Rw,settings:vU});var NN={};J(NN,{init:()=>fxe,metadata:()=>Dw,name:()=>wU,settings:()=>CU});var Dw={$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},background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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 ha=a(F(),1),sn=a(L(),1),Aw=a(I(),1),_U=a(bd(),1),xU=a(_e(),1);var uo=a(y(),1);function kU({attributes:e,setAttributes:t,name:r}){let{showLabel:o,showPostCounts:n,displayAsDropdown:i,type:s}=e,l=ee(),{content:c,status:u,error:d}=(0,_U.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),p=(0,xU.useDisabled)(),m=(0,Aw.useBlockProps)({ref:p});return(0,uo.jsxs)(uo.Fragment,{children:[(0,uo.jsx)(Aw.InspectorControls,{children:(0,uo.jsxs)(ha.__experimentalToolsPanel,{label:(0,sn.__)("Settings"),resetAll:()=>{t({displayAsDropdown:!1,showLabel:!0,showPostCounts:!1,type:"monthly"})},dropdownMenuProps:l,children:[(0,uo.jsx)(ha.__experimentalToolsPanelItem,{label:(0,sn.__)("Display as dropdown"),isShownByDefault:!0,hasValue:()=>i,onDeselect:()=>t({displayAsDropdown:!1}),children:(0,uo.jsx)(ha.ToggleControl,{label:(0,sn.__)("Display as dropdown"),checked:i,onChange:()=>t({displayAsDropdown:!i})})}),i&&(0,uo.jsx)(ha.__experimentalToolsPanelItem,{label:(0,sn.__)("Show label"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({showLabel:!0}),children:(0,uo.jsx)(ha.ToggleControl,{label:(0,sn.__)("Show label"),checked:o,onChange:()=>t({showLabel:!o})})}),(0,uo.jsx)(ha.__experimentalToolsPanelItem,{label:(0,sn.__)("Show post counts"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>t({showPostCounts:!1}),children:(0,uo.jsx)(ha.ToggleControl,{label:(0,sn.__)("Show post counts"),checked:n,onChange:()=>t({showPostCounts:!n})})}),(0,uo.jsx)(ha.__experimentalToolsPanelItem,{label:(0,sn.__)("Group by"),isShownByDefault:!0,hasValue:()=>s!=="monthly",onDeselect:()=>t({type:"monthly"}),children:(0,uo.jsx)(ha.SelectControl,{label:(0,sn.__)("Group by"),options:[{label:(0,sn.__)("Year"),value:"yearly"},{label:(0,sn.__)("Month"),value:"monthly"},{label:(0,sn.__)("Week"),value:"weekly"},{label:(0,sn.__)("Day"),value:"daily"}],value:s,onChange:f=>t({type:f})})})]})}),u==="loading"&&(0,uo.jsx)("div",{...m,children:(0,uo.jsx)(ha.Spinner,{})}),u==="error"&&(0,uo.jsx)("div",{...m,children:(0,uo.jsx)("p",{children:(0,sn.sprintf)((0,sn.__)("Error: %s"),d)})}),u==="success"&&(0,uo.jsx)(Eo,{wrapperProps:m,html:c})]})}var{name:wU}=Dw,CU={icon:vP,example:{},edit:kU},fxe=()=>D({name:wU,metadata:Dw,settings:CU});var LN={};J(LN,{init:()=>_xe,metadata:()=>Ow,name:()=>HU,settings:()=>jU});var Ow={$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 Cm=a(I(),1),qa=a(F(),1),xs=a(L(),1),Vw=a(qt(),1);var w_=a(ae(),1),Bd=a(L(),1),TU=a(H(),1);function EU(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 PU({commentId:e}){let[t]=(0,w_.useEntityProp)("root","comment","author_avatar_urls",e),[r]=(0,w_.useEntityProp)("root","comment","author_name",e),o=t?Object.values(t):null,n=t?Object.keys(t):null,{minSize:i,maxSize:s}=EU(n),l=x_();return{src:o?o[o.length-1]:l,minSize:i,maxSize:s,alt:r?(0,Bd.sprintf)((0,Bd.__)("%s Avatar"),r):(0,Bd.__)("Default Avatar")}}function BU({userId:e,postId:t,postType:r}){let{authorDetails:o}=(0,TU.useSelect)(u=>{let{getEditedEntityRecord:d,getUser:p}=u(w_.store);if(e)return{authorDetails:p(e)};let m=d("postType",r,t)?.author;return{authorDetails:m?p(m):null}},[r,t,e]),n=o?.avatar_urls?Object.values(o.avatar_urls):null,i=o?.avatar_urls?Object.keys(o.avatar_urls):null,{minSize:s,maxSize:l}=EU(i),c=x_();return{src:n?n[n.length-1]:c,minSize:s,maxSize:l,alt:o?(0,Bd.sprintf)((0,Bd.__)("%s Avatar"),o?.name):(0,Bd.__)("Default Avatar")}}var MN=a(L(),1),NU=a(F(),1),MU=a(H(),1),LU=a(ae(),1),Fw=a(W(),1),RU=a(_e(),1),DU=a($o(),1),AU=a(y(),1),hxe={who:"authors",per_page:100,_fields:"id,name",context:"view"};function OU({value:e,onChange:t}){let[r,o]=(0,Fw.useState)(""),{authors:n,isLoading:i}=(0,MU.useSelect)(l=>{let{getUsers:c,isResolving:u}=l(LU.store),d={...hxe};return r&&(d.search=r,d.search_columns=["name"]),{authors:c(d),isLoading:u("getUsers",[d])}},[r]),s=(0,Fw.useMemo)(()=>(n??[]).map(l=>({value:l.id,label:(0,DU.decodeEntities)(l.name)})),[n]);return(0,AU.jsx)(NU.ComboboxControl,{label:(0,MN.__)("User"),help:(0,MN.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:s,onFilterValueChange:(0,RU.debounce)(o,300),isLoading:i})}var Zt=a(y(),1),FU=({setAttributes:e,avatar:t,attributes:r,selectUser:o})=>{let n=ee();return(0,Zt.jsx)(Cm.InspectorControls,{children:(0,Zt.jsxs)(qa.__experimentalToolsPanel,{label:(0,xs.__)("Settings"),resetAll:()=>{e({size:96,isLink:!1,linkTarget:"_self",userId:void 0})},dropdownMenuProps:n,children:[(0,Zt.jsx)(qa.__experimentalToolsPanelItem,{label:(0,xs.__)("Image size"),isShownByDefault:!0,hasValue:()=>r?.size!==96,onDeselect:()=>e({size:96}),children:(0,Zt.jsx)(qa.RangeControl,{label:(0,xs.__)("Image size"),onChange:i=>e({size:i}),min:t.minSize,max:t.maxSize,initialPosition:r?.size,value:r?.size})}),(0,Zt.jsx)(qa.__experimentalToolsPanelItem,{label:(0,xs.__)("Link to user profile"),isShownByDefault:!0,hasValue:()=>r?.isLink,onDeselect:()=>e({isLink:!1}),children:(0,Zt.jsx)(qa.ToggleControl,{label:(0,xs.__)("Link to user profile"),onChange:()=>e({isLink:!r.isLink}),checked:r.isLink})}),r.isLink&&(0,Zt.jsx)(qa.__experimentalToolsPanelItem,{label:(0,xs.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r?.linkTarget!=="_self",onDeselect:()=>e({linkTarget:"_self"}),children:(0,Zt.jsx)(qa.ToggleControl,{label:(0,xs.__)("Open in new tab"),onChange:i=>e({linkTarget:i?"_blank":"_self"}),checked:r.linkTarget==="_blank"})}),o&&(0,Zt.jsx)(qa.__experimentalToolsPanelItem,{label:(0,xs.__)("User"),isShownByDefault:!0,hasValue:()=>!!r?.userId,onDeselect:()=>e({userId:void 0}),children:(0,Zt.jsx)(OU,{value:r?.userId,onChange:i=>{e({userId:i})}})})]})})},bxe=({children:e,isLink:t})=>t?(0,Zt.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:r=>r.preventDefault(),children:e}):e,VU=({setAttributes:e,attributes:t,avatar:r,blockProps:o,isSelected:n})=>{let i=(0,Cm.__experimentalUseBorderProps)(t),s=(0,Vw.addQueryArgs)((0,Vw.removeQueryArgs)(r?.src,["s"]),{s:t?.size*2});return(0,Zt.jsx)("div",{...o,children:(0,Zt.jsx)(bxe,{isLink:t.isLink,children:(0,Zt.jsx)(qa.ResizableBox,{size:{width:t.size,height:t.size},showHandle:n,onResizeStop:(l,c,u,d)=>{e({size:parseInt(t.size+(d.height||d.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,xs.isRTL)(),bottom:!0,left:(0,xs.isRTL)()},minWidth:r.minSize,maxWidth:r.maxSize,children:(0,Zt.jsx)("img",{src:s,alt:r.alt,className:T("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",i.className),style:i.style})})})})},yxe=({attributes:e,context:t,setAttributes:r,isSelected:o})=>{let{commentId:n}=t,i=(0,Cm.useBlockProps)(),s=PU({commentId:n});return(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(FU,{avatar:s,setAttributes:r,attributes:e,selectUser:!1}),(0,Zt.jsx)(VU,{attributes:e,avatar:s,blockProps:i,isSelected:o,setAttributes:r})]})},vxe=({attributes:e,context:t,setAttributes:r,isSelected:o})=>{let{postId:n,postType:i}=t,s=BU({userId:e?.userId,postId:n,postType:i}),l=(0,Cm.useBlockProps)();return(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(FU,{selectUser:!0,attributes:e,avatar:s,setAttributes:r}),(0,Zt.jsx)(VU,{attributes:e,avatar:s,blockProps:l,isSelected:o,setAttributes:r})]})};function zU(e){return e?.context?.commentId||e?.context?.commentId===null?(0,Zt.jsx)(yxe,{...e}):(0,Zt.jsx)(vxe,{...e})}var{name:HU}=Ow,jU={icon:qb,edit:zU,example:{}},_xe=()=>D({name:HU,metadata:Ow,settings:jU});var ML={};J(ML,{init:()=>Kwe,metadata:()=>W4,name:()=>zq,settings:()=>Hq});var RN=a(I(),1),C_=a(y(),1),UU=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save({attributes:e}){let{autoplay:t,caption:r,loop:o,preload:n,src:i}=e;return(0,C_.jsxs)("figure",{children:[(0,C_.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:o,preload:n}),!RN.RichText.isEmpty(r)&&(0,C_.jsx)(RN.RichText.Content,{tagName:"figcaption",value:r})]})}}];var Nq=a(Ur(),1),Ii=a(F(),1);var UG=a(W(),1);var Sm=a(Ne(),1);function zw({controlled:e,default:t,name:r,state:o="value"}){let{current:n}=Sm.useRef(e!==void 0),[i,s]=Sm.useState(t),l=n&&e!==void 0?e:i,c=Sm.useCallback(u=>{n||s(u)},[]);return[l,c]}var xxe=a(Ne(),1),S_={...xxe};var GU=a(Ne(),1),WU={};function po(e,t){let r=GU.useRef(WU);return r.current===WU&&(r.current=e(t)),r}var DN=S_.useInsertionEffect,kxe=DN&&DN!==S_.useLayoutEffect?DN:e=>e();function Ve(e){let t=po(wxe).current;return t.next=e,kxe(t.effect),t.trampoline}function wxe(){let e={next:void 0,callback:Cxe,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Cxe(){}function Mr(){}var _u=Object.freeze([]),Za=Object.freeze({});var xu=a(Ne(),1);var $U=a(Ne(),1),Sxe=()=>{},Ge=typeof document<"u"?$U.useLayoutEffect:Sxe;var Hw=a(Ne(),1),AN=Hw.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function qU(){return Hw.useContext(AN)}var ZU=a(y(),1);function jw(e){let{children:t,elementsRef:r,labelsRef:o,onMapChange:n}=e,i=Ve(n),[,s]=xu.useState(!1),l=po(Exe).current,c=po(Txe).current,u=xu.useRef(0),d=xu.useRef(!0),p=xu.useRef(null),m=xu.useRef(null),f=Ve(()=>{d.current||(d.current=!0,s(k=>!k))}),g=Ve((k,C)=>{c.set(k,C),f()}),h=Ve(k=>{c.delete(k),f()}),b=Ve(k=>{let C=new Map;return r.current.length=0,o&&(o.current.length=0),k.forEach(S=>{C.set(S.element,{...S.registration.metadata??{},index:S.index}),r.current[S.index]=S.element,o&&(o.current[S.index]=S.registration.label!==void 0?S.registration.label:S.registration.textRef?.current?.textContent??S.element.textContent)}),u.current=r.current.length,C});function _(k){if(m.current?.disconnect(),m.current=null,typeof MutationObserver!="function"||k.length<2)return;let C=new MutationObserver(P=>{if(!Ixe(P))return;let B=null;for(let N of k)if(N.isConnected){if(B&&KU(B,N)>0){C.disconnect(),f();return}B=N}});m.current=C;let S=new Set;for(let P=1;P<k.length;P+=1){let B=Bxe(k[P-1],k[P]);B&&S.add(B)}S.forEach(P=>C.observe(P,{childList:!0}))}let v=Ve(()=>{let[k,C]=Pxe(c),S=b(k),P=p.current,B=!P||P.length!==k.length||k.some((N,E)=>{let M=P[E];return N.index!==M.index||N.element!==M.element||N.registration.index!==M.registration.index||N.registration.metadata!==M.registration.metadata});_(C),p.current=k,d.current=!1,B&&(l.forEach(N=>N(S)),i(S))});Ge(()=>(!d.current&&p.current&&b(p.current),()=>{r.current=[],o&&(o.current=[])}),[r,o,b]),Ge(()=>{d.current&&v()}),Ge(()=>()=>{m.current?.disconnect(),d.current=!0},[]);let w=Ve(k=>(l.add(k),()=>{l.delete(k)})),x=xu.useMemo(()=>({register:g,unregister:h,subscribeMapChange:w,nextIndexRef:u}),[g,h,w,u]);return(0,ZU.jsx)(AN.Provider,{value:x,children:t})}function Txe(){return new Map}function Exe(){return new Set}function Pxe(e){let t=new Set,r=[],o=[];e.forEach((i,s)=>{if(!s.isConnected)return;let l=i.index,c={index:l??-1,element:s,registration:i};l===null?o.push(c):l>=0&&(t.add(l),r.push(c))});let n=0;return o.sort((i,s)=>KU(i.element,s.element)),o.forEach(i=>{for(;t.has(n);)n+=1;i.index=n,r.push(i),n+=1}),t.size>0&&r.sort((i,s)=>i.index-s.index),[r,o.map(i=>i.element)]}function Bxe(e,t){let r=e.parentElement;for(;r&&!r.contains(t);)r=r.parentElement;return r}function Ixe(e){for(let t of e)for(let r=0;r<t.removedNodes.length;r+=1)if(t.removedNodes[r].isConnected)return!0;return!1}function KU(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function Nxe(e,t){return function(o,...n){let i=new URL(e);return i.searchParams.set("code",o.toString()),n.forEach(s=>i.searchParams.append("args[]",s)),`${t} error #${o}; visit ${i} for the full message.`}}var Mxe=Nxe("https://base-ui.com/production-error","Base UI"),ks=Mxe;var Id=a(Ne(),1);function Tm(e,t,r,o){let n=po(QU).current;return Lxe(n,e,t,r,o)&&XU(n,[e,t,r,o]),n.callback}function YU(e){let t=po(QU).current;return Rxe(t,e)&&XU(t,e),t.callback}function QU(){return{callback:null,cleanup:null,refs:[]}}function Lxe(e,t,r,o,n){return e.refs[0]!==t||e.refs[1]!==r||e.refs[2]!==o||e.refs[3]!==n}function Rxe(e,t){return e.refs.length!==t.length||e.refs.some((r,o)=>r!==t[o])}function XU(e,t){if(e.refs=t,t.every(r=>r==null)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),r!=null){let o=Array(t.length).fill(null);for(let n=0;n<t.length;n+=1){let i=t[n];if(i!=null)switch(typeof i){case"function":{let s=i(r);typeof s=="function"&&(o[n]=s);break}case"object":{i.current=r;break}default:}}e.cleanup=()=>{for(let n=0;n<t.length;n+=1){let i=t[n];if(i!=null)switch(typeof i){case"function":{let s=o[n];typeof s=="function"?s():i(null);break}case"object":{i.current=null;break}default:}}}}}}var eW=a(Ne(),1);var JU=a(Ne(),1),Dxe=parseInt(JU.version,10);function Uw(e){return Dxe>=e}function ON(e){if(!eW.isValidElement(e))return null;let t=e,r=t.props;return(Uw(19)?r?.ref:t.ref)??null}function T_(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function tW(e,t){let r={};for(let o in e){let n=e[o];if(t?.hasOwnProperty(o)){let i=t[o](n);i!=null&&Object.assign(r,i);continue}n===!0?r[`data-${o.toLowerCase()}`]="":n&&(r[`data-${o.toLowerCase()}`]=n.toString())}return r}function rW(e,t){return typeof e=="function"?e(t):e}function oW(e,t){return typeof e=="function"?e(t):e}var FN={};function Wr(e,t,r,o,n){if(!r&&!o&&!n&&!e)return Ww(t);let i=Ww(e);return t&&(i=E_(i,t)),r&&(i=E_(i,r)),o&&(i=E_(i,o)),n&&(i=E_(i,n)),i}function nW(e){if(e.length===0)return FN;if(e.length===1)return Ww(e[0]);let t=Ww(e[0]);for(let r=1;r<e.length;r+=1)t=E_(t,e[r]);return t}function Ww(e){return VN(e)?{...iW(e,FN)}:Axe(e)}function E_(e,t){return VN(t)?iW(t,e):Oxe(e,t)}function Axe(e){let t={...e};for(let r in t){let o=t[r];aW(r,o)&&(t[r]=sW(o))}return t}function Oxe(e,t){if(!t)return e;for(let r in t){let o=t[r];switch(r){case"style":{e[r]=T_(e.style,o);break}case"className":{e[r]=zN(e.className,o);break}default:aW(r,o)?e[r]=Fxe(e[r],o):e[r]=o}}return e}function aW(e,t){let r=e.charCodeAt(0),o=e.charCodeAt(1),n=e.charCodeAt(2);return r===111&&o===110&&n>=65&&n<=90&&(typeof t=="function"||typeof t>"u")}function VN(e){return typeof e=="function"}function iW(e,t){return VN(e)?e(t):e??FN}function Fxe(e,t){return t?e?(...r)=>{let o=r[0];if(lW(o)){let i=o;P_(i);let s=t(...r);return i.baseUIHandlerPrevented||e?.(...r),s}let n=t(...r);return e?.(...r),n}:sW(t):e}function sW(e){return e&&((...t)=>{let r=t[0];return lW(r)&&P_(r),e(...t)})}function P_(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function zN(e,t){return t?e?t+" "+e:t:e}function lW(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var HN=a(Ne(),1);function xr(e,t,r={}){let o=t.render;r.enabled!==!1&&(o=jxe(o));let n=Vxe(t,r,o);if(r.enabled===!1)return null;let i=r.state??Za;return Uxe(e,o,n,i)}function Vxe(e,t,r){let{className:o,style:n}=e,{state:i=Za,ref:s,props:l,stateAttributesMapping:c,enabled:u=!0}=t,d=u?rW(o,i):void 0,p=u?oW(n,i):void 0,m=u?tW(i,c):Za,f=u&&l?zxe(l):void 0,g=u?T_(m,f)??{}:Za;return typeof document<"u"&&(u?Array.isArray(s)?g.ref=YU([g.ref,ON(r),...s]):g.ref=Tm(g.ref,ON(r),s):Tm(null,null)),u?(d!==void 0&&(g.className=zN(g.className,d)),p!==void 0&&(g.style=T_(g.style,p)),g):Za}function zxe(e){return Array.isArray(e)?nW(e):Wr(void 0,e)}var Hxe=Symbol.for("react.lazy");function jxe(e){if(e?.$$typeof!==Hxe)return e;let t=Id.Children.toArray(e)[0];return Id.isValidElement(t)?t:e}function Uxe(e,t,r,o){if(t){if(typeof t=="function")return t(r,o);let n=Wr(r,t.props);return n.ref=r.ref,Id.cloneElement(t,n)}if(e&&typeof e=="string")return Wxe(e,r);throw new Error(ks(8))}function Wxe(e,t){return e==="button"?(0,HN.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,HN.createElement)("img",{alt:"",...t,key:t.key}):Id.createElement(e,t)}var Gw=a(Ne(),1);var cW=0;function Gxe(e,t="mui"){let[r,o]=Gw.useState(e),n=e||r;return Gw.useEffect(()=>{r==null&&(cW+=1,o(`${t}-${cW}`))},[r,t]),n}var uW=S_.useId;function dW(e,t){if(uW!==void 0){let r=uW();return e??(t?`${t}-${r}`:r)}return Gxe(e,t)}function Ka(e){return dW(e,"base-ui")}var ws={};J(ws,{cancelOpen:()=>vke,chipRemovePress:()=>tke,clearPress:()=>eke,closePress:()=>Xxe,closeWatcher:()=>pke,decrementPress:()=>nke,disabled:()=>xke,drag:()=>hke,escapeKey:()=>dke,focusOut:()=>uke,imperativeAction:()=>Cke,incrementPress:()=>oke,initial:()=>wke,inputBlur:()=>ske,inputChange:()=>ake,inputClear:()=>ike,inputPaste:()=>lke,inputPress:()=>cke,itemPress:()=>Qxe,keyboard:()=>fke,linkPress:()=>Jxe,listNavigation:()=>mke,missing:()=>kke,none:()=>$xe,outsidePress:()=>Yxe,pointer:()=>gke,scrub:()=>yke,siblingOpen:()=>_ke,swipe:()=>Ske,trackPress:()=>rke,triggerFocus:()=>Kxe,triggerHover:()=>Zxe,triggerPress:()=>qxe,wheel:()=>bke,windowResize:()=>Tke});var $xe="none",qxe="trigger-press",Zxe="trigger-hover",Kxe="trigger-focus",Yxe="outside-press",Qxe="item-press",Xxe="close-press",Jxe="link-press",eke="clear-press",tke="chip-remove-press",rke="track-press",oke="increment-press",nke="decrement-press",ake="input-change",ike="input-clear",ske="input-blur",lke="input-paste",cke="input-press",uke="focus-out",dke="escape-key",pke="close-watcher",mke="list-navigation",fke="keyboard",gke="pointer",hke="drag",bke="wheel",yke="scrub",vke="cancel-open",_ke="sibling-open",xke="disabled",kke="missing",wke="initial",Cke="imperative-action",Ske="swipe",Tke="window-resize";function vh(e,t,r,o){let n=!1,i=!1,s=o??Za;return{reason:e,event:t??new Event("base-ui"),cancel(){n=!0},allowPropagation(){i=!0},get isCanceled(){return n},get isPropagationAllowed(){return i},trigger:r,...s}}var UN=a(Ne(),1);var pW=a(Ne(),1);function $w(e){pW.useEffect(e,_u)}var qw=null,IUe=globalThis.requestAnimationFrame,jN=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 n=0;n<r.length;n+=1)r[n]?.(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.callbacks[r]=null,this.callbacksCount-=1)}},Zw=new jN;var lc=class e{static create(){return new e}static request(t){return Zw.request(t)}static cancel(t){return Zw.cancel(t)}currentId=qw;request(t){this.cancel(),this.currentId=Zw.request(()=>{this.currentId=qw,t()})}cancel=()=>{this.currentId!==qw&&(Zw.cancel(this.currentId),this.currentId=qw)};disposeEffect=()=>this.cancel};function mW(){let e=po(lc.create).current;return $w(e.disposeEffect),e}function _h(e,t=!1,r=!1,o=!1){let[n,i]=UN.useState(e&&t?"idle":void 0),[s,l]=UN.useState(e&&!o);return e&&!s&&(l(!0),i("starting")),!e&&s&&n!=="ending"&&!r&&i("ending"),!e&&!s&&n==="ending"&&i(void 0),Ge(()=>{if(!e&&s&&n!=="ending"&&r){let c=lc.request(()=>{i("ending")});return()=>{lc.cancel(c)}}},[e,s,n,r]),Ge(()=>{if(!e||t)return;let c=lc.request(()=>{i(void 0)});return()=>{lc.cancel(c)}},[t,e]),Ge(()=>{if(!e||!t)return;e&&s&&n!=="idle"&&i("starting");let c=lc.request(()=>{i("idle")});return()=>{lc.cancel(c)}},[t,e,s,n]),{mounted:s,setMounted:l,transitionStatus:n}}var Em=a(Ne(),1);function Kw(e={}){let{guess:t,label:r,metadata:o,textRef:n,index:i}=e,{register:s,unregister:l,subscribeMapChange:c,nextIndexRef:u}=qU(),d=Em.useRef(-1),[p,m]=Em.useState(i==null&&t?()=>{if(d.current===-1){let b=u.current;u.current+=1,d.current=b}return d.current}:-1),f=i??p,g=Em.useRef(null),h=Em.useCallback(b=>{let _=g.current;_&&l(_),g.current=b,b&&s(b,{metadata:o??null,index:i??null,label:r,textRef:n})},[i,s,l,o,r,n]);return Ge(()=>{if(i==null)return c(b=>{let _=g.current?b.get(g.current)?.index:null;_!=null&&m(_)})},[i,c]),{ref:h,index:f}}var xh={};J(xh,{endingStyle:()=>WN,startingStyle:()=>B_});var B_="data-starting-style",WN="data-ending-style";var Eke={[B_]:""},Pke={[WN]:""},Yw={transitionStatus(e){return e==="starting"?Eke:e==="ending"?Pke:null}};var wh=a(Ne(),1);function GN(){return typeof window<"u"}function fW(e){return gW(e)?(e.nodeName||"").toLowerCase():"#document"}function fl(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Bke(e){var t;return(t=(gW(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gW(e){return GN()?e instanceof Node||e instanceof fl(e).Node:!1}function Cs(e){return GN()?e instanceof HTMLElement||e instanceof fl(e).HTMLElement:!1}function Qw(e){return!GN()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fl(e).ShadowRoot}function hW(e){return/^(html|body|#document)$/.test(fW(e))}function Xw(e){return fl(e).getComputedStyle(e)}function $N(e){if(fW(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Qw(e)&&e.host||Bke(e);return Qw(t)?t.host:t}var Jw=a(Ne(),1),qN=Jw.createContext(void 0);function kh(e=!1){let t=Jw.useContext(qN);if(t===void 0&&!e)throw new Error(ks(16));return t}var bW=a(Ne(),1);function yW(e){let{focusableWhenDisabled:t,disabled:r,composite:o=!1,tabIndex:n=0,isNativeButton:i}=e,s=o&&t!==!1,l=o&&t===!1;return{props:bW.useMemo(()=>{let u={onKeyDown(d){r&&t&&d.key!=="Tab"&&d.preventDefault()}};return o||(u.tabIndex=n,!i&&r&&(u.tabIndex=t?n:-1)),(i&&(t||s)||!i&&r)&&(u["aria-disabled"]=r),i&&(!t||l)&&(u.disabled=r),u},[o,r,t,s,l,i,n])}}function Pm(e){return e?.ownerDocument||document}function e4(e,t,{detail:r=0}={}){e.dispatchEvent(new(fl(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function KN(e={}){let{disabled:t=!1,focusableWhenDisabled:r,tabIndex:o=0,native:n=!0,composite:i}=e,s=wh.useRef(null),l=kh(!0),c=i??l!==void 0,{props:u}=yW({focusableWhenDisabled:r,disabled:t,composite:c,tabIndex:o,isNativeButton:n}),d=wh.useCallback(()=>{let f=s.current;ZN(f)&&c&&t&&u.disabled===void 0&&f.disabled&&(f.disabled=!1)},[t,u.disabled,c]);Ge(d,[d]);let p=wh.useCallback((f={})=>{let{onClick:g,onMouseDown:h,onKeyUp:b,onKeyDown:_,onPointerDown:v,...w}=f;return Wr({onClick(x){if(t){x.preventDefault();return}g?.(x)},onMouseDown(x){t||h?.(x)},onKeyDown(x){if(t||(P_(x),_?.(x),x.baseUIHandlerPrevented))return;let k=x.target===x.currentTarget,C=x.currentTarget,S=ZN(C),P=!n&&Ike(C),B=k&&(n?S:!P),N=x.key==="Enter",E=x.key===" ",M=C.getAttribute("role"),R=M?.startsWith("menuitem")||M==="option"||M==="gridcell";if(k&&c&&E){if(x.defaultPrevented&&R)return;x.preventDefault(),(!n||S)&&(x.preventBaseUIHandler(),e4(C,x));return}if(!B||n||!E&&!N){k&&P&&E&&x.preventDefault();return}x.defaultPrevented||(x.preventDefault(),N&&(x.preventBaseUIHandler(),e4(C,x)))},onKeyUp(x){if(!t){if(P_(x),b?.(x),x.target===x.currentTarget&&n&&c&&ZN(x.currentTarget)&&x.key===" "){x.preventDefault();return}x.baseUIHandlerPrevented||x.target===x.currentTarget&&!n&&!c&&!x.defaultPrevented&&x.key===" "&&(x.preventBaseUIHandler(),e4(x.currentTarget,x))}},onPointerDown(x){if(t){x.preventDefault();return}v?.(x)}},n?{type:"button"}:{role:"button"},u,w)},[t,u,c,n]),m=Ve(f=>{s.current=f,d()});return{getButtonProps:p,buttonRef:m}}function ZN(e){return Cs(e)&&e.tagName==="BUTTON"}function Ike(e){return Cs(e)&&e.tagName==="A"&&!!e.href}var wW=a(Ne(),1);var YN=a(_W(),1);function xW(e){return e==null?e:"current"in e?e.current:e}var t4=null;function Nke(e){if(!t4){let t=[];t4=t,queueMicrotask(()=>{t4=null,YN.flushSync(()=>{for(let r of t)r()})})}t4.push(e)}function kW(e,t=!1,r=!1){let o=mW();return Ve((n,i=null)=>{o.cancel();let s=xW(e);if(s==null)return;let l=s,c=()=>{if(!r){YN.flushSync(n);return}Nke(()=>{i?.aborted||n()})};if(typeof l.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){n();return}function u(){Promise.all(l.getAnimations().map(d=>d.finished)).then(()=>{i?.aborted||c()},()=>{if(i?.aborted)return;if(l.getAnimations().some(p=>p.pending||p.playState!=="finished")){u();return}c()})}if(t){let d=B_;if(!l.hasAttribute(d)){o.request(u);return}let p=new MutationObserver(()=>{l.hasAttribute(d)||(p.disconnect(),u())});p.observe(l,{attributes:!0,attributeFilter:[d]}),i?.addEventListener("abort",()=>p.disconnect(),{once:!0});return}o.request(u)})}function r4(e){let{enabled:t=!0,open:r,ref:o,batch:n=!1,onComplete:i}=e,s=Ve(i),l=kW(o,r,n);wW.useEffect(()=>{if(!t)return;let c=new AbortController;return l(s,c.signal),()=>{c.abort()}},[t,r,s,l])}var I_=0,QN=class e{static create(){return new e}currentId=I_;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=I_,r()},t)}isStarted(){return this.currentId!==I_}clear=()=>{this.currentId!==I_&&(clearTimeout(this.currentId),this.currentId=I_)};disposeEffect=()=>this.clear};function o4(){let e=po(QN.create).current;return $w(e.disposeEffect),e}function N_(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function XN(e,t){if(!e||!t)return!1;let r=t.getRootNode?.();if(e.contains(t))return!0;if(r&&Qw(r)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function Ch(e){return"composedPath"in e?e.composedPath()[0]??e.target:e.target}var JN=Math.round;function M_(e,t){return t<0||t>=e.length}function eM(e,t){return Bm(e.current,{disabledIndices:t})}function tM(e,t){return Bm(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Bm(e,{startingIndex:t=-1,decrement:r=!1,disabledIndices:o,amount:n=1}={}){let i=t;do i+=r?-n:n;while(i>=0&&i<=e.length-1&&Im(e,i,o));return i}function Im(e,t,r){if(typeof r=="function"?r(t):r?.includes(t)??!1)return!0;let n=e[t];return n?!Lke(n)||n.matches(":disabled")?!0:!r&&(n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"):!1}function Mke(e){return e.visibility==="hidden"||e.visibility==="collapse"}function Lke(e,t=e?Xw(e):null){return!e||!e.isConnected||!t||Mke(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}var n4=a(Ne(),1);function PW(){let[,e]=n4.useState({});return n4.useCallback(()=>{e({})},[])}var i4="ArrowUp",s4="ArrowDown",l4="ArrowLeft",c4="ArrowRight",u4="Home",d4="End";var IW=new Set([i4,s4,l4,c4,u4,d4]),Uke="Shift",NW=[Uke,"Control","Alt","Meta"];function Wke(e){return Cs(e)&&e.tagName==="INPUT"}function oM(e){return!!(Wke(e)&&e.selectionStart!=null||Cs(e)&&e.tagName==="TEXTAREA")}function nM(e,t,r,o){if(!e||!t||!t.scrollTo)return;let n=e.scrollLeft,i=e.scrollTop,s=e.clientWidth<e.scrollWidth,l=e.clientHeight<e.scrollHeight;if(s&&o!=="vertical"){let c=BW(e,t,"left"),u=a4(e),d=a4(t);r==="ltr"&&(c+t.offsetWidth+d.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight?n=c+t.offsetWidth+d.scrollMarginRight-e.clientWidth+u.scrollPaddingRight:c-d.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft&&(n=c-d.scrollMarginLeft-u.scrollPaddingLeft)),r==="rtl"&&(c-d.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft?n=c-d.scrollMarginLeft-u.scrollPaddingLeft:c+t.offsetWidth+d.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight&&(n=c+t.offsetWidth+d.scrollMarginRight-e.clientWidth+u.scrollPaddingRight))}if(l&&o!=="horizontal"){let c=BW(e,t,"top"),u=a4(e),d=a4(t);c-d.scrollMarginTop<e.scrollTop+u.scrollPaddingTop?i=c-d.scrollMarginTop-u.scrollPaddingTop:c+t.offsetHeight+d.scrollMarginBottom>e.scrollTop+e.clientHeight-u.scrollPaddingBottom&&(i=c+t.offsetHeight+d.scrollMarginBottom-e.clientHeight+u.scrollPaddingBottom)}e.scrollTo({left:n,top:i,behavior:"auto"})}function BW(e,t,r){let o=r==="left"?"offsetLeft":"offsetTop",n=0;for(;t.offsetParent&&(n+=t[o],t.offsetParent!==e);)t=t.offsetParent;return n}function a4(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 MW(e){return Uw(19)?e:e?"true":void 0}var LW=a(Ne(),1);function RW(e,t){let r=LW.useRef(e),o=Ve(t);Ge(()=>{r.current!==e&&o(r.current),r.current=e},[e,o])}var p4=a(Ne(),1);var DW="data-valid",AW="data-invalid";var Nm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},$ke={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},OW={disabled:!1,...$ke},Ss={valid(e){return e===null?null:e?{[DW]:""}:{[AW]:""}}};var qke={invalid:void 0,name:void 0,validityData:{state:Nm,errors:[],error:"",value:"",initialValue:null},setValidityData:Mr,disabled:void 0,setTouched:Mr,setDirty:Mr,setFilled:Mr,setFocused:Mr,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:OW,registerFieldControl:Mr,validation:{getValidationProps:(e,t=Za)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:Mr,getInputControl:()=>null,commit:async()=>{},change:Mr}},aM=p4.createContext(qke);function Ya(e=!0){let t=p4.useContext(aM);if(t.setValidityData===Mr&&!e)throw new Error(ks(28));return t}function FW(e,t,r,o,n=!0,i){let{registerFieldControl:s}=Ya(),l=po(()=>Symbol());Ge(()=>{let c=l.current;if(!n){s(c,void 0);return}s(c,{controlRef:e,getValue:o,id:t,name:i,value:r})},[e,n,o,t,i,s,l,r]),Ge(()=>{let c=l.current;return()=>{s(c,void 0)}},[s,l])}var m4=a(Ne(),1);var Zke=m4.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Mr,validationMode:"onSubmit",submitCountRef:{current:0}});function cc(){return m4.useContext(Zke)}var sM=a(Ne(),1);var f4=a(Ne(),1);var iM=f4.createContext({controlId:void 0,registerControlId:Mr,resetControlId:Mr,labelId:void 0,setLabelId:Mr,messageIds:[],setMessageIds:Mr,getDescriptionProps:e=>e});function An(){return f4.useContext(iM)}function VW(e={}){let{id:t,enabled:r=!0}=e,{controlId:o,registerControlId:n,resetControlId:i}=An(),s=Ka(),l=po(()=>Symbol()),c=sM.useRef(!1),u=sM.useRef(!1),d=Ve(()=>{!c.current||n===Mr||(c.current=!1,n(l.current,void 0))});return Ge(()=>{if(!r||n===Mr){d();return}let p;if(t!==void 0)u.current=!0,p=t;else if(u.current)p=s;else{i();return}if(p===void 0){d();return}c.current=!0,n(l.current,p)},[t,r,n,i,s,l,d]),Ge(()=>d,[d]),(r?o:void 0)??t??s}var g4=a(Ne(),1),lM=g4.createContext(void 0);function cM(){return g4.useContext(lM)?.direction??"ltr"}var h4=a(Ne(),1),uM=h4.createContext({disabled:!1});function b4(){return h4.useContext(uM)}var ku=a(Ne(),1);function Mm(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var dM=Object.keys(Nm);function Kke(e,t){return e.matches(":disabled")?!1:!t||e.form===t?!0:e.form===null&&!e.hasAttribute("form")}function zW(e,t){let r=null;for(let o of e.keys())if(Kke(o,t)){if(!o.validity.valid)return o;r??=o}return r}function HW(e){return{...Nm,valid:!e,customError:e}}function pM(e){return e&&e.validationMessage?[e.validationMessage]:[]}function jW(e){let{elementRef:t,formRef:r}=cc(),{setValidityData:o,validate:n,validityData:i,validationDebounceTime:s,invalid:l,markedDirtyRef:c,state:u,shouldValidateOnChange:d,validationMode:p,registeredFieldIdRef:m}=e,{controlId:f,getDescriptionProps:g}=An(),h=o4(),b=ku.useRef(null),_=po(()=>new Map).current,v=ku.useRef(0),w=ku.useRef(null),x=ku.useCallback((B,N)=>(_.set(B,N),()=>{_.delete(B)}),[_]),k=Ve(()=>{let B=zW(_,t.current);return B&&_.get(B)?.controlRef.current||null}),C=Ve(async(B,N=!1)=>{v.current+=1;let E=v.current;function M(Z,U=l){let X=m.current??f;if(X==null)return;let Q=r.current.fields.get(X);if(!Q)return;let ie=Mm(Z,U);r.current.fields.set(X,{...Q,validityData:ie})}function R(Z,U){let X=Z.valid===!1?U:[];return{value:B,state:Z,error:X[0]??"",errors:X,initialValue:i.initialValue}}function O(Z,U){let X=Z.validity.customError?Z.validationMessage:"",Q=U.replace(/\r\n?/g,`
4 `);Z.setCustomValidity(Q),w.current=[Z,Q,X]}function j(){let Z=w.current;w.current=null,Z&&(!Z[0].willValidate||Z[0].validationMessage===Z[1])&&Z[0].setCustomValidity(Z[2])}function V(Z,U,X){let Q=R(Z,U);M(Q,X),o(Q)}function G(Z){let U=dM.reduce((Q,ie)=>(Q[ie]=Z.validity[ie],Q),{}),X=!1;for(let Q of dM)if(Q!=="valid"){if(Q==="valueMissing"&&U[Q])X=!0;else if(U[Q])return U}return X&&!c.current&&(U.valid=!0,U.valueMissing=!1),U}function $(){return _.size>0?zW(_,t.current):b.current}let z=$();function K(){return z=$(),z?.willValidate?G(z):HW(!1)}if(N){if(u.valid!==!1||!z)return;if(!z.validity.valueMissing){j();let Z=$(),U=Z?.validity.customError?pM(Z):[];V(HW(U.length>0),U,!1);return}for(let Z of dM)if(Z!=="valid"&&Z!=="valueMissing"&&Z!=="customError"&&z.validity[Z])return}h.clear(),j();let q=K(),Y=pM(z),oe=d();if(Y.length===0||oe){let Z=Array.from(r.current.fields.values()).reduce((Q,ie)=>(ie.name&&(Q[ie.name]=ie.getValue()),Q),{}),U=n(B,Z),X;if(typeof U=="object"&&U!==null&&"then"in U){if(q.valid===!1?V(q,Y):(p==="onSubmit"||!i.state.customError)&&(q.valid=null,V(q,Y)),X=await U,E!==v.current)return;q=K()}else X=U;Y=X?[].concat(X).filter(Boolean):[],Y.length>0?(q.valid=!1,q.customError=!0,z?.willValidate&&O(z,Y.join(`
5 `))):Y=pM(z)}V(q,Y)}),S=Ve((B,N=!1)=>{if(h.clear(),v.current+=1,N)return;let E=d();E&&B!==""&&s?h.start(s,()=>{C(B)}):C(B,!E)}),P=ku.useCallback((B,N={})=>Wr(g(N),u.valid===!1&&!u.disabled&&!B?{"aria-invalid":!0}:Za),[g,u.disabled,u.valid]);return ku.useMemo(()=>({getValidationProps:P,inputRef:b,registeredInputs:_,registerInput:x,getInputControl:k,commit:C,change:S}),[P,_,x,k,C,S])}function UW(e,t){let r=Ka(e);return Ge(()=>(t(r),()=>{t(o=>o===r?void 0:o)}),[r,t]),r}function WW(e={}){let{id:t,fallbackControlId:r,native:o=!1,setLabelId:n,focusControl:i}=e,{controlId:s,setLabelId:l}=An(),c=Ve(f=>{l(f),n?.(f)}),u=UW(t,c),d=s??r;function p(f){if(i){i(f,d);return}if(!d)return;let g=Pm(f.currentTarget).getElementById(d);Cs(g)&&Yke(g)}function m(f){Ch(f.nativeEvent)?.closest("button,input,select,textarea")||(!f.defaultPrevented&&f.detail>1&&f.preventDefault(),!o&&p(f))}return o?{id:u,htmlFor:d,onMouseDown:m}:{id:u,onClick:m,onPointerDown(f){f.preventDefault()}}}function Yke(e){e.focus({focusVisible:!0})}var GW=a(Ne(),1);function $W(e={}){let{highlightItemOnHover:t,highlightedIndex:r,onHighlightedIndexChange:o}=kh(),{ref:n,index:i}=Kw(e),s=r===i,l=GW.useRef(null),c=Tm(n,l);return{compositeProps:{tabIndex:s?0:-1,onFocus(){o(i)},onMouseMove(){let d=l.current;if(!t||!d)return;let p=d.hasAttribute("disabled")||d.ariaDisabled==="true";!s&&!p&&d.focus()}},compositeRef:c,index:i}}function mM(e){let t=Xw(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=Cs(e),i=n?e.offsetWidth:r,s=n?e.offsetHeight:o;return(JN(r)!==i||JN(o)!==s)&&(r=i,o=s),{width:r,height:o}}var qW=a(Ne(),1);var ZW=a(y(),1),y4=function(t){let{direction:r="ltr"}=t,o=qW.useMemo(()=>({direction:r}),[r]);return(0,ZW.jsx)(lM.Provider,{value:o,children:t.children})};function KW(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}var v4=a(Ne(),1),Qke=v4.createContext(void 0),Xke={disableStyleElements:!1};function YW(){return v4.useContext(Qke)??Xke}function QW(e,t){let r=(t??fl(e).getComputedStyle(e)).transform,o=0,n=0,i=1;if(r&&r!=="none"){let s=r.match(/matrix(?:3d)?\(([^)]+)\)/);if(s){let l=s[1].split(", ").map(parseFloat);l.length===6?(o=l[4],n=l[5],i=Math.sqrt(l[0]*l[0]+l[1]*l[1])):l.length===16&&(o=l[12],n=l[13],i=l[0])}}return{x:o,y:n,scale:i}}var On={};J(On,{Control:()=>iG,Description:()=>aG,Error:()=>oG,Item:()=>cG,Label:()=>rG,Root:()=>tG,Validity:()=>lG});var qo=a(Ne(),1);var _4=a(Ne(),1),Jke=_4.createContext(void 0);function XW(e=!1){let t=_4.useContext(Jke);if(!t&&!e)throw new Error(ks(86));return t}var Nd=a(Ne(),1);var JW=a(y(),1),x4=function(t){let r=Ka(),[o,n]=Nd.useState(r),[i,s]=Nd.useState(),[l,c]=Nd.useState([]),u=o===void 0?r:o,d=po(()=>new Map),{messageIds:p}=An(),m=Ve((b,_)=>{let v=d.current;_===void 0?v.delete(b):v.set(b,_),n(w=>{if(v.size===0)return w;let x;for(let k of v.values()){if(k===w)return w;x===void 0&&(x=k)}return x})}),f=Ve(()=>{d.current.size===0&&n(r)}),g=Nd.useCallback(b=>{let _=b["aria-describedby"]?b["aria-describedby"].split(" "):[];return _.push(...p,...l),{...b,"aria-describedby":Array.from(new Set(_)).join(" ")||void 0}},[p,l]),h=Nd.useMemo(()=>({controlId:u,registerControlId:m,resetControlId:f,labelId:i,setLabelId:s,messageIds:l,setMessageIds:c,getDescriptionProps:g}),[u,m,f,i,s,l,c,g]);return(0,JW.jsx)(iM.Provider,{value:h,children:t.children})};var k4=a(Ne(),1);function eG(e){let{change:t,commit:r,invalid:o,markedDirtyRef:n,name:i,setRegisteredFieldName:s,registeredFieldIdRef:l,setValidityData:c,validityData:u}=e,{formRef:d}=cc(),p=k4.useRef(null),m=k4.useRef(null),f=k4.useRef(!1),g=Ve(()=>{let k=m.current;if(k)return k.getValue?k.getValue():k.value});function h(k){return k.value===void 0?g():k.value}let b=Ve(()=>{let k=m.current;if(n.current=!0,!k){r(u.value);return}r(h(k))});function _(){let k=m.current;!k||!k.id||d.current.fields.set(k.id,{getValue:g,name:i??k.name,controlRef:k.controlRef,validityData:Mm(u,o),validate:b})}function v(k=m.current?.id){k&&d.current.fields.delete(k)}function w(k){if(f.current)return;f.current=!0;let C=h(k);c(S=>S.initialValue===C?S:{...S,initialValue:C})}Ge(()=>{let k=m.current;!k||!k.id||(s(i?void 0:k.name),d.current.fields.set(k.id,{getValue:g,name:i??k.name,controlRef:k.controlRef,validityData:Mm(u,o),validate:b}))},[d,g,o,i,s,b,u]),Ge(()=>{let k=d.current.fields;return()=>{let C=m.current?.id;C&&k.delete(C)}},[d]);let x=Ve((k,C)=>{if(!C){p.current===k&&(p.current=null,t(void 0,!0),v(),m.current=null,s(void 0),l.current=void 0);return}let S=m.current?.id,P=p.current;P&&P!==k&&t(void 0,!0),p.current=k,m.current=C,i||s(C.name),l.current=C.id,S&&S!==C.id&&v(S),w(C),_()});return[b,x]}var w4=a(y(),1),e5e=qo.forwardRef(function(t,r){let{errors:o,validationMode:n,submitCountRef:i}=cc(),{render:s,className:l,validate:c,validationDebounceTime:u=0,validationMode:d=n,name:p,disabled:m=!1,invalid:f,dirty:g,touched:h,actionsRef:b,style:_,...v}=t,w=XW(!0)?.disabled,x=Ve(c||(()=>null)),k=w||m,[C,S]=qo.useState(!1),[P,B]=qo.useState(!1),[N,E]=qo.useState(!1),[M,R]=qo.useState(!1),O=g??P,j=h??C,V=qo.useRef(O),G=qo.useRef(void 0),[$,z]=qo.useState(),K=p??$;Ge(()=>{g!==void 0&&(V.current=g)},[g]);let q=Ve(ce=>{g===void 0&&(ce&&(V.current=!0),B(ce))}),Y=Ve(ce=>{h===void 0&&S(ce)}),oe=Ve(()=>d==="onChange"||d==="onSubmit"&&i.current>0),Z=K&&Object.hasOwn(o,K)?o[K]:null,U=!!(Array.isArray(Z)?Z.length:Z),X=f===!0||U,[Q,ie]=qo.useState({state:Nm,error:"",errors:[],value:null,initialValue:null}),me=!X&&(k?null:Q.state.valid),xe=qo.useMemo(()=>({disabled:k,touched:j,dirty:O,valid:me,filled:N,focused:M}),[k,j,O,me,N,M]),Be=jW({setValidityData:ie,validate:x,validityData:Q,validationDebounceTime:u,invalid:X,markedDirtyRef:V,state:xe,shouldValidateOnChange:oe,validationMode:d,registeredFieldIdRef:G}),[se,he]=eG({change:Be.change,commit:Be.commit,invalid:X,markedDirtyRef:V,name:p,setRegisteredFieldName:z,registeredFieldIdRef:G,setValidityData:ie,validityData:Q});qo.useImperativeHandle(b,()=>({validate:se}),[se]);let ze=qo.useMemo(()=>({invalid:X,name:K,validityData:Q,setValidityData:ie,disabled:k,setTouched:Y,setDirty:q,setFilled:E,setFocused:R,validationMode:d,shouldValidateOnChange:oe,state:xe,registerFieldControl:he,validation:Be}),[X,K,Q,k,Y,q,E,R,d,oe,xe,he,Be]),qe=xr("div",t,{ref:r,state:xe,props:v,stateAttributesMapping:Ss});return(0,w4.jsx)(aM.Provider,{value:ze,children:qe})}),tG=qo.forwardRef(function(t,r){return(0,w4.jsx)(x4,{children:(0,w4.jsx)(e5e,{...t,ref:r})})});var L_=a(Ne(),1);var rG=L_.forwardRef(function(t,r){let{render:o,className:n,style:i,id:s,nativeLabel:l=!0,...c}=t,u=Ya(!1),d=b4(),{labelId:p}=An(),m={...u.state,disabled:u.disabled||d.disabled},f=L_.useRef(null),g=WW({id:p??s,native:l});return xr("label",t,{ref:[r,f],state:m,props:[g,c],stateAttributesMapping:Ss})});var Lm=a(Ne(),1);var fM=a(y(),1),t5e={...Ss,...Yw},oG=Lm.forwardRef(function(t,r){let{render:o,id:n,className:i,match:s,style:l,...c}=t,u=Ka(n),{validityData:d,state:p,name:m}=Ya(!1),{setMessageIds:f}=An(),{errors:g}=cc(),h=m&&Object.hasOwn(g,m)?g[m]:null,b=!!(Array.isArray(h)?h.length:h),_=typeof s=="string",v=!1;s===!0?v=!0:p.disabled?v=!1:_?v=!!d.state[s]:v=b||d.state.valid===!1;let{mounted:w,transitionStatus:x,setMounted:k}=_h(v);Ge(()=>{if(!(!v||!u))return f(V=>V.concat(u)),()=>{f(V=>V.filter(G=>G!==u))}},[v,u,f]);let C=Lm.useRef(null),[S,P]=Lm.useState(null),[B,N]=Lm.useState(null),E=d.error;!_&&b?E=h:d.errors.length>1&&(E=d.errors);let M=E;Array.isArray(E)&&(M=E.length>1?(0,fM.jsx)("ul",{children:E.map(V=>(0,fM.jsx)("li",{children:V},V))}):E[0]);let R=Array.isArray(E)?JSON.stringify(E):E;v&&R!==B&&(N(R),P(M)),r4({open:v,ref:C,onComplete(){v||k(!1)}});let O={...p,transitionStatus:x},j=xr("div",t,{ref:[r,C],state:O,props:[{id:u,children:v?M:S},c],stateAttributesMapping:t5e,enabled:w});return w?j:null});var nG=a(Ne(),1);var aG=nG.forwardRef(function(t,r){let{render:o,id:n,className:i,style:s,...l}=t,c=Ka(n),u=Ya(!1),d=b4(),{setMessageIds:p}=An(),m={...u.state,disabled:u.disabled||d.disabled};return Ge(()=>{if(c)return p(g=>g.concat(c)),()=>{p(g=>g.filter(h=>h!==c))}},[c,p]),xr("p",t,{ref:r,state:m,props:[{id:c},l],stateAttributesMapping:Ss})});var C4=a(Ne(),1);var iG=C4.forwardRef(function(t,r){let{render:o,className:n,id:i,name:s,value:l,disabled:c=!1,onValueChange:u,defaultValue:d,autoFocus:p=!1,style:m,...f}=t,{state:g,name:h,disabled:b,setTouched:_,setDirty:v,validityData:w,setFocused:x,setFilled:k,validationMode:C,validation:S}=Ya(),{clearErrors:P,elementRef:B,submitCountRef:N}=cc(),E=b||c,M=h??s,R={...g,disabled:E},{labelId:O}=An(),j=VW({id:i}),[V]=zw({controlled:l,default:d,name:"FieldControl",state:"value"}),G=l!==void 0,$=G?V:void 0,z=$==null?void 0:String($),K=Ve(()=>S.inputRef.current?.value);FW(S.inputRef,j,z,K,!E,s),Ge(()=>{let Z=z??S.inputRef.current?.value;Z!==void 0&&k(Z!=="")},[z,S.inputRef,k]),RW(z,()=>{z!==void 0&&(P(M),v(z!==(w.initialValue??"")),S.change(z))});let q=C4.useRef(null),Y=o4();return Ge(()=>{p&&q.current===N_(Pm(q.current))&&x(!0)},[p,x]),xr("input",t,{ref:[r,q],state:R,props:[{id:j,disabled:E,name:M,ref:S.inputRef,"aria-labelledby":O,autoFocus:p,...G?{value:$}:{defaultValue:d},onChange(Z){let U=Z.currentTarget.value,X=vh(ws.none,Z.nativeEvent);u?.(U,X),!G&&(v(U!==(w.initialValue??"")),k(U!==""),!Z.nativeEvent.defaultPrevented&&!X.isCanceled&&(P(M),S.change(U)))},onFocus(){x(!0)},onBlur(Z){if(_(!0),x(!1),C==="onBlur"){let U=Z.currentTarget.value;S.commit(U),G&&queueMicrotask(()=>{let X=S.inputRef.current?.value;X!==void 0&&X!==U&&X!==(w.initialValue??"")&&S.commit(X)})}},onKeyDown(Z){if(Z.currentTarget.tagName==="INPUT"&&Z.key==="Enter"){_(!0);let U=Z.currentTarget.value,X=Z.currentTarget.form;if(X&&X===B.current&&!Z.defaultPrevented){let Q=Z.currentTarget,ie=N.current;Y.start(0,()=>{N.current===ie&&S.commit(Q.value)})}else S.commit(U)}}},f,Z=>S.getValidationProps(E,Z)],stateAttributesMapping:Ss})});var R_=a(Ne(),1);var sG=a(y(),1),lG=function(t){let{children:r}=t,{validityData:o,invalid:n}=Ya(!1),i=R_.useMemo(()=>Mm(o,n),[o,n]),s=i.state.valid===!1,{transitionStatus:l}=_h(s),c=R_.useMemo(()=>({...i,validity:i.state,transitionStatus:l}),[i,l]);return(0,sG.jsx)(R_.Fragment,{children:r(c)})};var S4=a(Ne(),1);var gM=a(y(),1),cG=S4.forwardRef(function(t,r){let{render:o,className:n,style:i,disabled:s=!1,...l}=t,{state:c,disabled:u}=Ya(!1),d=u||s,p={...c,disabled:d},m=S4.useMemo(()=>({disabled:d}),[d]),f=xr("div",t,{ref:r,state:p,props:l,stateAttributesMapping:Ss});return(0,gM.jsx)(x4,{children:(0,gM.jsx)(uM.Provider,{value:m,children:f})})});var uG=a(Ne(),1);var dG=a(y(),1),hM=uG.forwardRef(function(t,r){return(0,dG.jsx)(On.Control,{ref:r,...t})});var mG=a(Ne(),1);var Rm=a(Ne(),1);var D_="data-composite-item-active";function pG(e){let{loopFocus:t=!0,orientation:r="both",grid:o,onLoop:n,direction:i,highlightedIndex:s,onHighlightedIndexChange:l,rootRef:c,enableHomeAndEndKeys:u=!1,stopEventPropagation:d,disabledIndices:p,modifierKeys:m=_u}=e,[f,g]=Rm.useState(0),h=o!=null,b=Rm.useRef(null),_=Tm(b,c),v=Rm.useRef([]),w=Rm.useRef(!1),x=Rm.useRef(null),k=s??f,C=Ve((E,M=!1)=>{if(x.current=v.current[E]??null,(l??g)(E),M){let R=v.current[E];nM(b.current,R,i,r)}}),S=Ve(E=>{if(E.size===0)return;if(w.current){let j=v.current,V=j.indexOf(x.current);if(V===-1){let G=j[k];!G||Im(j,k,p)?C(r5e(j,p)):x.current=G}else V!==k&&C(V);return}w.current=!0;let M=Array.from(E.keys()),R=M.find(j=>j?.hasAttribute(D_))??null,O=R?E.get(R)?.index??-1:-1;if(O!==-1)C(O);else if(Im(M,k,p)){let j=Bm(M,{disabledIndices:p});M_(M,j)||C(j)}nM(b.current,R,i,r)});Ge(()=>{if(p==null||s!=null||!w.current)return;let E=v.current;if(Im(E,k,p)){let M=Bm(E,{disabledIndices:p});M_(E,M)||C(M)}},[p,s,k,v,C]);let P=Ve((E,M,R)=>n?n(E,M,R,v):R),B=Ve(E=>{let M=E.key===u4||E.key===d4;if(!IW.has(E.key)||!u&&M||o5e(E,m)||!b.current)return;let O=i==="rtl",j=O?l4:c4,V=O?c4:l4,G=r==="vertical"?s4:j,$=r==="vertical"?i4:V,z=Ch(E.nativeEvent);if(z!=null&&oM(z)&&!KW(z)){let U=z.selectionStart,X=z.selectionEnd,Q=z.value;if(U==null||E.shiftKey||U!==X||E.key!==$&&U<Q.length||E.key!==G&&U>0)return}let K=k,q=eM(v,p),Y=tM(v,p);o!=null&&(K=o({disabledIndices:p,elementsRef:v,event:E,highlightedIndex:k,loopFocus:t,maxIndex:Y,minIndex:q,onLoop:P,orientation:r,rtl:O}));let oe=r!=="vertical"&&E.key===j||r!=="horizontal"&&E.key===s4,Z=r!=="vertical"&&E.key===V||r!=="horizontal"&&E.key===i4;u&&(E.key===u4?K=q:E.key===d4&&(K=Y)),K===k&&(oe||Z)&&(t&&K===Y&&oe?(K=q,n&&(K=n(E,k,K,v))):t&&K===q&&Z?(K=Y,n&&(K=n(E,k,K,v))):K=Bm(v.current,{startingIndex:K,decrement:Z,disabledIndices:p})),K!==k&&!M_(v.current,K)&&(d&&E.stopPropagation(),(h||M||oe||Z)&&E.preventDefault(),C(K,!0),queueMicrotask(()=>{v.current[K]?.focus()}))});return{props:{ref:_,onFocus(E){let M=b.current,R=Ch(E.nativeEvent);!M||R==null||!oM(R)||R.setSelectionRange(0,R.value.length)},onKeyDown:B},highlightedIndex:k,onHighlightedIndexChange:C,elementsRef:v,onMapChange:S,relayKeyboardEvent:B}}function r5e(e,t){let r=-1;for(let o=0;o<e.length;o+=1){let n=e[o];if(!(!n||Im(e,o,t))){if(n.hasAttribute(D_))return o;r===-1&&(r=o)}}return Math.max(r,0)}function o5e(e,t){for(let r of NW)if(!t.includes(r)&&e.getModifierState(r))return!0;return!1}var bM=a(y(),1);function fG(e){let{render:t,className:r,style:o,refs:n=_u,props:i=_u,state:s=Za,stateAttributesMapping:l,highlightedIndex:c,onHighlightedIndexChange:u,orientation:d,grid:p,loopFocus:m,onLoop:f,enableHomeAndEndKeys:g,onMapChange:h,stopEventPropagation:b=!0,rootRef:_,disabledIndices:v,modifierKeys:w,highlightItemOnHover:x=!1,tag:k="div",...C}=e,S=cM(),{props:P,highlightedIndex:B,onHighlightedIndexChange:N,elementsRef:E,onMapChange:M,relayKeyboardEvent:R}=pG({grid:p,loopFocus:m,onLoop:f,orientation:d,highlightedIndex:c,onHighlightedIndexChange:u,rootRef:_,stopEventPropagation:b,enableHomeAndEndKeys:g,direction:S,disabledIndices:v,modifierKeys:w}),O=xr(k,e,{state:s,ref:n,props:[P,...i,C],stateAttributesMapping:l}),j=mG.useMemo(()=>({highlightedIndex:B,onHighlightedIndexChange:N,highlightItemOnHover:x,relayKeyboardEvent:R}),[B,N,x,R]);return(0,bM.jsx)(qN.Provider,{value:j,children:(0,bM.jsx)(jw,{elementsRef:E,onMapChange:V=>{h?.(V),M(V)},children:O})})}var gG=a(EW(),1);function n5e(){return Mr}function a5e(){return!1}function i5e(){return!0}function hG(){return(0,gG.useSyncExternalStore)(n5e,a5e,i5e)}var jqe=a(Ne(),1);var bG=a(y(),1);function yG(e){let{script:t}=e,{nonce:r}=YW();return hG()?(0,bG.jsx)("script",{nonce:r,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var hl={};J(hl,{Indicator:()=>LG,List:()=>AG,Panel:()=>DG,Root:()=>xG,Tab:()=>kG});var eo=a(Ne(),1);var T4=a(Ne(),1),yM=T4.createContext(void 0);function Md(){let e=T4.useContext(yM);if(e===void 0)throw new Error(ks(64));return e}var vG="data-activation-direction";var uc={tabActivationDirection:e=>({[vG]:e})};var vM=a(y(),1),xG=eo.forwardRef(function(t,r){let{className:o,defaultValue:n=0,onValueChange:i,orientation:s="horizontal",render:l,value:c,style:u,...d}=t,p=t.defaultValue!==void 0,m=eo.useRef([]),[f,g]=eo.useState(()=>new Map),[h,b]=zw({controlled:c,default:n,name:"Tabs",state:"value"}),_=c!==void 0,[v,w]=eo.useState(()=>new Map),x=eo.useRef(void 0),k=eo.useCallback(ie=>_M(v,ie),[v]),[C,S]=eo.useState(()=>({previousValue:h,tabActivationDirection:"none"})),{previousValue:P,tabActivationDirection:B}=C,N=B,E=!1;P!==h&&(N=_G(P,h,s,v),E=P!=null&&h!=null&&k(h)==null);let M=E?P:h,R=P!==M||B!==N;Ge(()=>{R&&S({previousValue:M,tabActivationDirection:N})},[M,R,N]);let O=Ve((ie,me)=>{let xe=_G(h,ie,s,v);me.activationDirection=xe,i?.(ie,me),!me.isCanceled&&b(ie)}),j=Ve((ie,me)=>{i?.(ie,vh(me,void 0,void 0,{activationDirection:"none"}))}),V=Ve((ie,me)=>(g(xe=>{let Be=new Map(xe);return Be.set(ie,me),Be}),()=>{g(xe=>{if(xe.get(ie)!==me)return xe;let Be=new Map(xe);return Be.delete(ie),Be})})),G=eo.useCallback(ie=>f.get(ie),[f]),$=eo.useCallback(ie=>{for(let me of v.values())if(ie===me.value)return me.id},[v]),z=eo.useMemo(()=>({getTabElementBySelectedValue:k,getTabIdByPanelValue:$,getTabPanelIdByValue:G,onValueChange:O,orientation:s,registerMountedTabPanel:V,setTabMap:w,tabActivationDirection:N,value:h}),[k,$,G,O,s,V,w,N,h]),K=eo.useMemo(()=>{for(let ie of v.values())if(ie.value===h)return ie},[v,h]),q=eo.useMemo(()=>{for(let ie of v.values())if(!ie.disabled)return ie.value},[v]),Y=eo.useRef(!p),oe=eo.useRef(n),Z=eo.useRef(p),U=eo.useRef(!1);Ge(()=>{if(_)return;function ie(se,he){b(se),S({previousValue:se,tabActivationDirection:"none"}),j(se,he),Y.current=!1}if(v.size===0){U.current&&h!==null&&!x.current?.isConnected&&ie(null,ws.missing);return}U.current=!0,x.current=v.keys().next().value;let me=K?.disabled,xe=K==null&&h!==null;if(!me&&h===oe.current&&(Z.current=!1),Z.current&&me&&h===oe.current)return;let Be=Y.current;if(me||xe){let se=q??null;if(h===se){Y.current=!1;return}let he=ws.missing;Be?he=ws.initial:me&&(he=ws.disabled),ie(se,he);return}Be&&K!=null&&(j(h,ws.initial),Y.current=!1)},[q,_,j,K,b,v,h]);let Q=xr("div",t,{state:{orientation:s,tabActivationDirection:N},ref:r,props:d,stateAttributesMapping:uc});return(0,vM.jsx)(yM.Provider,{value:z,children:(0,vM.jsx)(jw,{elementsRef:m,children:Q})})});function _M(e,t){for(let[r,o]of e.entries())if(t===o.value)return r;return null}function _G(e,t,r,o){if(e==null||t==null)return"none";let[n,i,s]=r==="horizontal"?["left","left","right"]:["top","up","down"],l=_M(o,e),c=_M(o,t);if(l==null||c==null)return l!==c&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?t>e?s:i:"none";let u=l.getBoundingClientRect()[n],d=c.getBoundingClientRect()[n];return d<u?i:d>u?s:"none"}var wu=a(Ne(),1);var E4=a(Ne(),1),xM=E4.createContext(void 0);function P4(){let e=E4.useContext(xM);if(e===void 0)throw new Error(ks(65));return e}var kG=wu.forwardRef(function(t,r){let{className:o,disabled:n=!1,render:i,value:s,id:l,nativeButton:c=!0,style:u,...d}=t,{value:p,getTabPanelIdByValue:m,onValueChange:f,orientation:g,tabActivationDirection:h}=Md(),{activateOnFocus:b,registerTabResizeObserverElement:_,tabsListElement:v}=P4(),{highlightedIndex:w,onHighlightedIndexChange:x}=kh(),k=Ka(l),C=wu.useMemo(()=>({disabled:n,id:k,value:s}),[n,k,s]),{compositeProps:S,compositeRef:P,index:B}=$W({metadata:C}),N=s===p,E=wu.useRef(!1),M=wu.useRef(null),R=Ve(U=>{M.current?.(),M.current=U?_(U):null});Ge(()=>{if(E.current){E.current=!1;return}if(!(N&&B>-1&&w!==B))return;let U=v;if(U!=null){let X=N_(Pm(U));if(X&&XN(U,X))return}n||x(B)},[N,B,w,x,n,v]);let{getButtonProps:O,buttonRef:j}=KN({disabled:n,native:c,focusableWhenDisabled:!0}),V=m(s),G=wu.useRef(!1),$=wu.useRef(!1);function z(U){f(s,vh(ws.none,U.nativeEvent,void 0,{activationDirection:"none"}))}function K(U){N||n||z(U)}function q(U){N||n||b&&(!G.current||$.current)&&z(U)}function Y(U){if(N||n)return;G.current=!0,$.current=U.button===0;let X=Pm(U.currentTarget);function Q(){G.current=!1,$.current=!1,X.removeEventListener("pointerup",Q),X.removeEventListener("pointercancel",Q)}X.addEventListener("pointerup",Q),X.addEventListener("pointercancel",Q)}return xr("button",t,{state:{disabled:n,active:N,orientation:g,tabActivationDirection:h},ref:[r,j,P,R],props:[S,{role:"tab","aria-controls":V,"aria-selected":N,id:k,onClick:K,onFocus:q,onPointerDown:Y,[D_]:N?"":void 0,onKeyDownCapture(){E.current=!0}},d,O],stateAttributesMapping:uc})});var Th=a(Ne(),1);var wG="--active-tab-left",CG="--active-tab-right",SG="--active-tab-top",TG="--active-tab-bottom",EG="--active-tab-width",PG="--active-tab-height";var B4=a(y(),1),BG,c5e={...uc,activeTabPosition:()=>null,activeTabSize:()=>null},IG=2,LG=Th.forwardRef(function(t,r){let{className:o,render:n,renderBeforeHydration:i=!1,style:s,...l}=t,{getTabElementBySelectedValue:c,orientation:u,tabActivationDirection:d,value:p}=Md(),{tabsListElement:m,registerIndicatorUpdateListener:f}=P4(),g=PW();Th.useEffect(()=>f(g),[f,g]);let h=0,b=0,_=0,v=0,w=0,x=0,k=!1;if(p!=null&&m!=null){let M=c(p);if(M!=null){k=!0;let{width:R,height:O}=mM(M),{width:j,height:V}=mM(m),G=M.getBoundingClientRect(),$=m.getBoundingClientRect(),z=j>0?$.width/j:1,K=V>0?$.height/V:1,q=u5e(M,m);h=q.left,_=q.top;let Y=(G.left-$.left)/z+m.scrollLeft-m.clientLeft,oe=(G.top-$.top)/K+m.scrollTop-m.clientTop,Z=d5e(M);Math.abs(Y-Z.x-h)<=IG&&Math.abs(oe-Z.y-_)<=IG&&(h=Y,_=oe),w=R,x=O,b=m.scrollWidth-h-w,v=m.scrollHeight-_-x}}let C=k?{left:h,right:b,top:_,bottom:v}:null,S=k?{width:w,height:x}:null,P=k?{[wG]:`${h}px`,[CG]:`${b}px`,[SG]:`${_}px`,[TG]:`${v}px`,[EG]:`${w}px`,[PG]:`${x}px`}:void 0,B=k&&w>0&&x>0,E=xr("span",t,{state:{orientation:u,activeTabPosition:C,activeTabSize:S,tabActivationDirection:d},ref:r,props:[{role:"presentation",style:P,hidden:!B},l,{suppressHydrationWarning:!0}],stateAttributesMapping:c5e});return p==null?null:(0,B4.jsxs)(Th.Fragment,{children:[E,i&&(BG||(BG=(0,B4.jsx)(yG,{script:""})))]})});function u5e(e,t){let r=NG(e),o=NG(t),n=r.left-o.left-t.clientLeft,i=r.top-o.top-t.clientTop,s=$N(e);for(;Cs(s)&&s!==t&&!hW(s);)n-=s.scrollLeft,i-=s.scrollTop,s=$N(s);return{left:n,top:i}}function NG(e){let t=0,r=0,o=e;for(;o!=null;){t+=o.offsetLeft,r+=o.offsetTop;let n=o.offsetParent;n!=null&&(t+=n.clientLeft,r+=n.clientTop),o=n}return{left:t,top:r}}function d5e(e){let t=fl(e).getComputedStyle(e),{x:r,y:o}=QW(e,t),n=r,i=o,{translate:s}=t;if(s&&s!=="none"){let l=s.split(" ");n+=MG(l[0],e.offsetWidth),i+=MG(l[1],e.offsetHeight)}return{x:n,y:i}}function MG(e,t){if(!e)return 0;let r=parseFloat(e);return Number.isFinite(r)?e.endsWith("%")?r/100*t:r:0}var I4=a(Ne(),1);var RG="data-index";var AZe=xh.startingStyle,OZe=xh.endingStyle;var m5e={...uc,...Yw},DG=I4.forwardRef(function(t,r){let{className:o,value:n,render:i,keepMounted:s=!1,style:l,...c}=t,{value:u,getTabIdByPanelValue:d,orientation:p,tabActivationDirection:m,registerMountedTabPanel:f}=Md(),g=Ka(),{ref:h,index:b}=Kw(),_=n===u,{mounted:v,transitionStatus:w,setMounted:x}=_h(_),k=!v,C=d(n),S={hidden:k,orientation:p,tabActivationDirection:m,transitionStatus:w},P=I4.useRef(null),B=xr("div",t,{state:S,ref:[r,h,P],props:[{"aria-labelledby":C,hidden:k,id:g,role:"tabpanel",tabIndex:_?0:-1,inert:MW(!_),[RG]:b},c],stateAttributesMapping:m5e});return r4({open:_,ref:P,onComplete(){_||x(!1)}}),Ge(()=>{if(!(g==null||k&&!s))return f(n,g)},[k,s,n,g,f]),s||v?B:null});var gl=a(Ne(),1);var kM=a(y(),1),AG=gl.forwardRef(function(t,r){let{activateOnFocus:o=!1,className:n,loopFocus:i=!0,render:s,style:l,...c}=t,{orientation:u,setTabMap:d,tabActivationDirection:p}=Md(),[m,f]=gl.useState(0),[g,h]=gl.useState(null),b=gl.useRef(new Set),_=gl.useRef(new Set),v=gl.useRef(null);Ge(()=>{if(typeof ResizeObserver>"u")return;let P=new ResizeObserver(()=>{b.current.forEach(B=>{B()})});return v.current=P,g&&P.observe(g),_.current.forEach(B=>{P.observe(B)}),()=>{P.disconnect(),v.current=null}},[g]);let w=Ve(P=>(b.current.add(P),()=>{b.current.delete(P)})),x=Ve(P=>(_.current.add(P),v.current?.observe(P),()=>{_.current.delete(P),v.current?.unobserve(P)})),k={orientation:u,tabActivationDirection:p},C={"aria-orientation":u==="vertical"?"vertical":void 0,role:"tablist"},S=gl.useMemo(()=>({activateOnFocus:o,registerIndicatorUpdateListener:w,registerTabResizeObserverElement:x,tabsListElement:g}),[o,w,x,g]);return(0,kM.jsx)(xM.Provider,{value:S,children:(0,kM.jsx)(fG,{render:s,className:n,style:l,state:k,refs:[r,h],props:[C,c],stateAttributesMapping:uc,highlightedIndex:m,enableHomeAndEndKeys:!0,loopFocus:i,orientation:u,onHighlightedIndexChange:f,onMapChange:d,disabledIndices:_u})})});function Ts(e){return xr(e.defaultTagName??"div",e,e)}var VG=a(W(),1),wM="data-wp-hash";function CM(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&g5e(document)),e.__wpStyleRuntime}function f5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${wM}]`))if(r.getAttribute(wM)===t)return!0;return!1}function zG(e,t,r){if(!e.head)return;let o=CM(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(f5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(wM,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function g5e(e){let t=CM();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)zG(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 HG(e,t){let r=CM();r.styles.set(e,t);for(let o of r.documents.keys())zG(o,e,t)}typeof process>"u",HG("3167e7d116",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._83ed8a8da5dd50ea__text{text-wrap:pretty;margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var OG={text:"_83ed8a8da5dd50ea__text","heading-2xl":"_14437cfb77831647__heading-2xl","heading-xl":"_3c78b7fa9b4072dd__heading-xl","heading-lg":"aa58f227716bcde2__heading-lg","heading-md":"fc4da56d8dfe52c4__heading-md","heading-sm":"a9b78c7c82e8dff7__heading-sm","body-xl":"_305ff559e52180d5__body-xl","body-lg":"ca1aa3fc2029e958__body-lg","body-md":"_131101940be12424__body-md","body-sm":"_0e8d87a42c1f75fa__body-sm"};typeof process>"u",HG("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var FG={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"},Dm=(0,VG.forwardRef)(function({variant:t="body-md",render:r,className:o,...n},i){return Ts({render:r,defaultTagName:"span",ref:i,props:Wr(n,{className:T(OG.text,FG.heading,FG.p,OG[t],o)})})});var GG=a(y(),1),SM="data-wp-hash";function TM(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&b5e(document)),e.__wpStyleRuntime}function h5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${SM}]`))if(r.getAttribute(SM)===t)return!0;return!1}function WG(e,t,r){if(!e.head)return;let o=TM(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(h5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(SM,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function b5e(e){let t=TM();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)WG(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 y5e(e,t){let r=TM();r.styles.set(e,t);for(let o of r.documents.keys())WG(o,e,t)}typeof process>"u",y5e("40ea4a6382","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._96e6251aad1a6136__badge{border-radius:var(--wpds-border-radius-lg,8px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wpds-dimension-padding-sm,8px)}._99f7158cb520f750__is-high-intent{background-color:var(--wpds-color-background-surface-error,#fae5e1);color:var(--wpds-color-foreground-content-error,#470000)}.c20ebef2365bc8b7__is-medium-intent{background-color:var(--wpds-color-background-surface-warning,#fde6be);color:var(--wpds-color-foreground-content-warning,#2e1900)}._365e1626c6202e52__is-low-intent{background-color:var(--wpds-color-background-surface-caution,#fee995);color:var(--wpds-color-foreground-content-caution,#281d00)}._33f8198127ddf4ef__is-stable-intent{background-color:var(--wpds-color-background-surface-success,#c2f8ca);color:var(--wpds-color-foreground-content-success,#002900)}._04c1aca8fc449412__is-informational-intent{background-color:var(--wpds-color-background-surface-info,#deebfa);color:var(--wpds-color-foreground-content-info,#001b4f)}._90726e69d495ec19__is-draft-intent{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}._898f4a544993bd39__is-none-intent{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);padding-block:calc(var(--wpds-dimension-padding-xs, 4px) - var(--wpds-border-width-xs, 1px));padding-inline:calc(var(--wpds-dimension-padding-sm, 8px) - var(--wpds-border-width-xs, 1px))}}}");var jG={badge:"_96e6251aad1a6136__badge","is-high-intent":"_99f7158cb520f750__is-high-intent","is-medium-intent":"c20ebef2365bc8b7__is-medium-intent","is-low-intent":"_365e1626c6202e52__is-low-intent","is-stable-intent":"_33f8198127ddf4ef__is-stable-intent","is-informational-intent":"_04c1aca8fc449412__is-informational-intent","is-draft-intent":"_90726e69d495ec19__is-draft-intent","is-none-intent":"_898f4a544993bd39__is-none-intent"},EM=(0,UG.forwardRef)(function({intent:t="none",className:r,...o},n){return(0,GG.jsx)(Dm,{ref:n,className:T(jG.badge,jG[`is-${t}-intent`],r),...o,variant:"body-sm"})});var qG=a(L(),1),ZG=a(y(),1);function KG({children:e}){return(0,ZG.jsx)(y4,{direction:(0,qG.isRTL)()?"rtl":"ltr",children:e})}var YG=a(W(),1),QG=a(L(),1),Eh=a(y(),1),BM="data-wp-hash";function IM(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&_5e(document)),e.__wpStyleRuntime}function v5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${BM}]`))if(r.getAttribute(BM)===t)return!0;return!1}function XG(e,t,r){if(!e.head)return;let o=IM(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(v5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(BM,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function _5e(e){let t=IM();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)XG(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 M4(e,t){let r=IM();r.styles.set(e,t);for(let o of r.documents.keys())XG(o,e,t)}typeof process>"u",M4("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var x5e={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",M4("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,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(--focus-color,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(--focus-color,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))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,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(--focus-color,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(--focus-color,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 k5e={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"};typeof process>"u",M4("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 N4={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",M4("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var w5e={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"},bl=(0,YG.forwardRef)(function({children:t,variant:r="default",tone:o="brand",openInNewTab:n=!1,target:i,render:s,className:l,...c},u){let d=n||/^_blank$/i.test(i??"");return Ts({render:s,defaultTagName:"a",ref:u,props:Wr(c,{className:T(w5e.a,x5e["box-sizing"],k5e["outset-ring--focus-except-active"],r!=="unstyled"&&N4.link,r!=="unstyled"&&N4[`is-${o}`],r==="unstyled"&&N4["is-unstyled"],l),target:i??(n?"_blank":void 0),children:(0,Eh.jsxs)(Eh.Fragment,{children:[t,d&&(0,Eh.jsx)("span",{className:N4["link-icon"],role:"img","aria-label":(0,QG.__)("(opens in a new tab)")})]})})})});var JG=a(W(),1),e$=a(A(),1),t$=a(y(),1),A_=(0,JG.forwardRef)(function({icon:t,size:r=24,style:o,...n},i){let s=t.props.style||o?{...t.props.style,...o}:void 0;return(0,t$.jsx)(e$.SVG,{ref:i,...t.props,...n,...s?{style:s}:{},width:r,height:r})});var r$=a(W(),1),NM="data-wp-hash";function MM(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&S5e(document)),e.__wpStyleRuntime}function C5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${NM}]`))if(r.getAttribute(NM)===t)return!0;return!1}function o$(e,t,r){if(!e.head)return;let o=MM(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(C5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(NM,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function S5e(e){let t=MM();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)o$(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 T5e(e,t){let r=MM();r.styles.set(e,t);for(let o of r.documents.keys())o$(o,e,t)}typeof process>"u",T5e("f4df7461e9","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;overflow-wrap:normal;padding:0;position:absolute;width:1px;word-break:normal}}}");var E5e={"visually-hidden":"f37b9e2e191ebd66__visually-hidden"},ln=(0,r$.forwardRef)(function({render:t,...r},o){return Ts({render:t,ref:o,props:Wr({className:E5e["visually-hidden"]},r,{"data-visually-hidden":""})})});var a$=a(W(),1),LM="data-wp-hash";function RM(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&B5e(document)),e.__wpStyleRuntime}function P5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${LM}]`))if(r.getAttribute(LM)===t)return!0;return!1}function i$(e,t,r){if(!e.head)return;let o=RM(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(P5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(LM,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function B5e(e){let t=RM();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)i$(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 I5e(e,t){let r=RM();r.styles.set(e,t);for(let o of r.documents.keys())i$(o,e,t)}typeof process>"u",I5e("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var N5e={stack:"_19ce0419607e1896__stack"},M5e={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)"},Es=(0,a$.forwardRef)(function({direction:t,gap:r,align:o,justify:n,wrap:i,render:s,...l},c){let u={gap:r&&M5e[r],alignItems:o,justifyContent:n,flexDirection:t,flexWrap:i};return Ts({render:s,ref:c,props:Wr(l,{style:u,className:N5e.stack})})});var s$=a(_e(),1),Am=a(W(),1);function l$(e){let t=(0,s$.useEvent)(e),r=(0,Am.useRef)(null),o=(0,Am.useRef)(!1),n=(0,Am.useCallback)(()=>{o.current||(r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{t(),r.current=null},0))},[t]);return(0,Am.useEffect)(()=>(o.current=!1,()=>{o.current=!0,r.current&&clearTimeout(r.current)}),[]),n}var h$=a(W(),1);var F_=a(W(),1),V_=a(y(),1),DM="data-wp-hash";function AM(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&R5e(document)),e.__wpStyleRuntime}function L5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${DM}]`))if(r.getAttribute(DM)===t)return!0;return!1}function c$(e,t,r){if(!e.head)return;let o=AM(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(L5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(DM,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function R5e(e){let t=AM();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)c$(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 OM(e,t){let r=AM();r.styles.set(e,t);for(let o of r.documents.keys())c$(o,e,t)}typeof process>"u",OM("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var D5e={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",OM("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var A5e={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",OM("e4f4f9600b",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.cb2baafdc08746bb__input-layout{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-md,12px);background-color:var(--wpds-color-background-interactive-neutral,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:var(--wpds-border-width-xs,1px);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:flex;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:max(var(--wpds-typography-font-size-md,13px),16px);height:var(--wpds-dimension-size-lg,40px);line-height:1;@media (min-width:600px){font-size:var(--wpds-typography-font-size-md,13px)}&._0c807a84cbb94e0c__is-size-compact{height:var(--wpds-dimension-size-md,32px)}&._0c807a84cbb94e0c__is-size-compact,&.ed67cda122dc1e7b__is-size-small{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-sm,8px)}&.ed67cda122dc1e7b__is-size-small{height:var(--wpds-dimension-size-sm,24px)}&._6fb7104732387680__is-disabled,&:has([data-can-disable-input-layout][data-disabled]){color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}&:not(._8097270636ca6100__is-borderless){background-color:var(--wpds-color-background-interactive-neutral-disabled,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText}}}&._8097270636ca6100__is-borderless{background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);border-color:transparent}&:has(._0d7afad74a057888__input-layout-slot:focus-within){--_gcd-div-outline:none;outline:none}&:hover:not(._6fb7104732387680__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._8097270636ca6100__is-borderless){background-color:var(--wpds-color-background-interactive-neutral-active,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}&:has(:invalid[data-validity-visible]){--focus-color:var(--wpds-color-stroke-interactive-error,#cc1818);border-color:var(--wpds-color-stroke-interactive-error,#cc1818);&:hover{border-color:var(--wpds-color-stroke-interactive-error-active,#9d0000)}}}.c192b41a12b4387b__slot-wrapper{display:contents}._0d7afad74a057888__input-layout-slot{align-items:center;display:flex;&._0c952682762ca288__is-padding-minimal{--wp-ui-input-layout-prefix-padding-start:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px));--wp-ui-input-layout-suffix-padding-end:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}[data-slot-type=prefix] &{padding-inline-start:var(--wp-ui-input-layout-prefix-padding-start,var(--wp-ui-input-layout-padding-inline))}[data-slot-type=suffix] &{padding-inline-end:var(--wp-ui-input-layout-suffix-padding-end,var(--wp-ui-input-layout-padding-inline))}}}}');var Ph={"input-layout":"cb2baafdc08746bb__input-layout","is-size-compact":"_0c807a84cbb94e0c__is-size-compact","is-size-small":"ed67cda122dc1e7b__is-size-small","is-disabled":"_6fb7104732387680__is-disabled","is-borderless":"_8097270636ca6100__is-borderless","input-layout-slot":"_0d7afad74a057888__input-layout-slot","slot-wrapper":"c192b41a12b4387b__slot-wrapper","is-padding-minimal":"_0c952682762ca288__is-padding-minimal"},u$=(0,F_.forwardRef)(function({className:t,children:r,visuallyDisabled:o,size:n="default",isBorderless:i,prefix:s,suffix:l,...c},u){return(0,V_.jsxs)("div",{ref:u,className:T(D5e.div,A5e["box-sizing"],Ph["input-layout"],Ph[`is-size-${n}`],o&&Ph["is-disabled"],i&&Ph["is-borderless"],t),...c,children:[F_.Children.count(s)>0&&(0,V_.jsx)("div",{className:Ph["slot-wrapper"],"data-slot-type":"prefix",children:s}),r,F_.Children.count(l)>0&&(0,V_.jsx)("div",{className:Ph["slot-wrapper"],"data-slot-type":"suffix",children:l})]})});var p$=a(W(),1),f$=a(y(),1),FM="data-wp-hash";function VM(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&F5e(document)),e.__wpStyleRuntime}function O5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${FM}]`))if(r.getAttribute(FM)===t)return!0;return!1}function m$(e,t,r){if(!e.head)return;let o=VM(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(O5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(FM,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function F5e(e){let t=VM();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)m$(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 V5e(e,t){let r=VM();r.styles.set(e,t);for(let o of r.documents.keys())m$(o,e,t)}typeof process>"u",V5e("e4f4f9600b",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.cb2baafdc08746bb__input-layout{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-md,12px);background-color:var(--wpds-color-background-interactive-neutral,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:var(--wpds-border-width-xs,1px);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:flex;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:max(var(--wpds-typography-font-size-md,13px),16px);height:var(--wpds-dimension-size-lg,40px);line-height:1;@media (min-width:600px){font-size:var(--wpds-typography-font-size-md,13px)}&._0c807a84cbb94e0c__is-size-compact{height:var(--wpds-dimension-size-md,32px)}&._0c807a84cbb94e0c__is-size-compact,&.ed67cda122dc1e7b__is-size-small{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-sm,8px)}&.ed67cda122dc1e7b__is-size-small{height:var(--wpds-dimension-size-sm,24px)}&._6fb7104732387680__is-disabled,&:has([data-can-disable-input-layout][data-disabled]){color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}&:not(._8097270636ca6100__is-borderless){background-color:var(--wpds-color-background-interactive-neutral-disabled,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText}}}&._8097270636ca6100__is-borderless{background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);border-color:transparent}&:has(._0d7afad74a057888__input-layout-slot:focus-within){--_gcd-div-outline:none;outline:none}&:hover:not(._6fb7104732387680__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._8097270636ca6100__is-borderless){background-color:var(--wpds-color-background-interactive-neutral-active,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}&:has(:invalid[data-validity-visible]){--focus-color:var(--wpds-color-stroke-interactive-error,#cc1818);border-color:var(--wpds-color-stroke-interactive-error,#cc1818);&:hover{border-color:var(--wpds-color-stroke-interactive-error-active,#9d0000)}}}.c192b41a12b4387b__slot-wrapper{display:contents}._0d7afad74a057888__input-layout-slot{align-items:center;display:flex;&._0c952682762ca288__is-padding-minimal{--wp-ui-input-layout-prefix-padding-start:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px));--wp-ui-input-layout-suffix-padding-end:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}[data-slot-type=prefix] &{padding-inline-start:var(--wp-ui-input-layout-prefix-padding-start,var(--wp-ui-input-layout-padding-inline))}[data-slot-type=suffix] &{padding-inline-end:var(--wp-ui-input-layout-suffix-padding-end,var(--wp-ui-input-layout-padding-inline))}}}}');var d$={"input-layout":"cb2baafdc08746bb__input-layout","is-size-compact":"_0c807a84cbb94e0c__is-size-compact","is-size-small":"ed67cda122dc1e7b__is-size-small","is-disabled":"_6fb7104732387680__is-disabled","is-borderless":"_8097270636ca6100__is-borderless","input-layout-slot":"_0d7afad74a057888__input-layout-slot","slot-wrapper":"c192b41a12b4387b__slot-wrapper","is-padding-minimal":"_0c952682762ca288__is-padding-minimal"},zM=(0,p$.forwardRef)(function({padding:t="default",className:r,...o},n){return(0,f$.jsx)("div",{ref:n,className:T(d$["input-layout-slot"],d$[`is-padding-${t}`],r),...o})});zM.displayName="InputLayout.Slot";var g$=Object.assign(u$,{Slot:zM});var jM=a(y(),1),HM="data-wp-hash";function UM(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&H5e(document)),e.__wpStyleRuntime}function z5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${HM}]`))if(r.getAttribute(HM)===t)return!0;return!1}function b$(e,t,r){if(!e.head)return;let o=UM(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(z5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(HM,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function H5e(e){let t=UM();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)b$(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 WM(e,t){let r=UM();r.styles.set(e,t);for(let o of r.documents.keys())b$(o,e,t)}typeof process>"u",WM("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var j5e={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",WM("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,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(--focus-color,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(--focus-color,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))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,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(--focus-color,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(--focus-color,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 U5e={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"};typeof process>"u",WM("1a25f6a232","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._2ae7be2fc1bb17a3__input{--_gcd-input-padding:var(--wp-ui-input-padding-block,0px) var(--wp-ui-input-layout-padding-inline,0px);background:transparent;border:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);font-family:inherit;font-size:inherit;line-height:inherit;outline:none;padding-block:var(--wp-ui-input-padding-block,0);padding-inline:var(--wp-ui-input-layout-padding-inline,0);width:100%;&::placeholder{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}&:disabled,&[aria-disabled=true]{--_gcd-input-placeholder-color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);&::placeholder{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}@media (forced-colors:active){color:GrayText}}&[type=email],&[type=url]{direction:ltr}&[type=number]{appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{appearance:none;margin:0}}}}}");var W5e={input:"_2ae7be2fc1bb17a3__input"},GM=(0,h$.forwardRef)(function({className:t,size:r="default",prefix:o,suffix:n,style:i,...s},l){return(0,jM.jsx)(g$,{className:T(U5e["outset-ring--focus-within"],t),style:i,size:r,visuallyDisabled:s.disabled,prefix:o,suffix:n,children:(0,jM.jsx)(hM,{ref:l,className:T(j5e.input,W5e.input),...s})})});var XM=a(L(),1),Po=a(W(),1);var y$=a(W(),1),z_=a(y(),1),qM="data-wp-hash";function ZM(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&$5e(document)),e.__wpStyleRuntime}function G5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${qM}]`))if(r.getAttribute(qM)===t)return!0;return!1}function v$(e,t,r){if(!e.head)return;let o=ZM(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(G5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(qM,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function $5e(e){let t=ZM();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)v$(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 q5e(e,t){let r=ZM();r.styles.set(e,t);for(let o of r.documents.keys())v$(o,e,t)}typeof process>"u",q5e("bbbecfe373","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.ab4d64c07c0ba587__spinner{background-color:transparent;display:inline-block;height:var(--wpds-dimension-size-2xs,16px);opacity:1;overflow:visible;position:relative;width:var(--wpds-dimension-size-2xs,16px)}.a7654e10245bb7d2__indicator,.dc51f80c84b35fe2__track{fill:transparent;stroke-width:1.5px}.dc51f80c84b35fe2__track{stroke:var(--wpds-color-background-track-neutral,#dbdbdb)}.a7654e10245bb7d2__indicator{stroke:var(--wpds-color-background-thumb-brand,var(--wp-admin-theme-color,#3858e9));stroke-linecap:round;animation:_02322d973909703c__spinner-spin 1.4s linear infinite both;transform-origin:50% 50%}@keyframes _02322d973909703c__spinner-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}}}");var $M={spinner:"ab4d64c07c0ba587__spinner",track:"dc51f80c84b35fe2__track",indicator:"a7654e10245bb7d2__indicator","spinner-spin":"_02322d973909703c__spinner-spin"},KM=(0,y$.forwardRef)(function({className:t,...r},o){return(0,z_.jsxs)("svg",{className:T($M.spinner,t),viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...r,ref:o,children:[(0,z_.jsx)("circle",{className:$M.track,cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,z_.jsx)("path",{className:$M.indicator,d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"})]})});var H_=a(y(),1),YM="data-wp-hash";function QM(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&K5e(document)),e.__wpStyleRuntime}function Z5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${YM}]`))if(r.getAttribute(YM)===t)return!0;return!1}function _$(e,t,r){if(!e.head)return;let o=QM(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Z5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(YM,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function K5e(e){let t=QM();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)_$(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 x$(e,t){let r=QM();r.styles.set(e,t);for(let o of r.documents.keys())_$(o,e,t)}typeof process>"u",x$("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var Y5e={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",x$("d11816833c",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7a7ac88e306348e7__indicator{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);align-items:flex-start;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;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-sm,12px);gap:var(--wpds-dimension-gap-xs,4px);line-height:var(--wpds-typography-line-height-xs,16px);@media not (prefers-reduced-motion){animation:_48722cc5dd090ce4__indicator-jump var(--wpds-motion-duration-md,.2s) cubic-bezier(.68,-.55,.27,1.55)}}._57a3bbbfbe38a5c6__is-invalid{color:var(--wpds-color-foreground-content-error-weak,#cc1818)}._9e944dc198aac10b__is-valid{color:var(--wpds-color-foreground-content-success-weak,#008030)}.e482806667437c6a__indicator-icon{flex-shrink:0}._6e46434cc23019d2__indicator-spinner{height:var(--wpds-dimension-size-3xs,12px);margin:2px;width:var(--wpds-dimension-size-3xs,12px)}@keyframes _48722cc5dd090ce4__indicator-jump{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}}}');var L4={indicator:"_7a7ac88e306348e7__indicator","indicator-jump":"_48722cc5dd090ce4__indicator-jump","is-invalid":"_57a3bbbfbe38a5c6__is-invalid","is-valid":"_9e944dc198aac10b__is-valid","indicator-icon":"e482806667437c6a__indicator-icon","indicator-spinner":"_6e46434cc23019d2__indicator-spinner"},Q5e={valid:BI,invalid:oB};function R4({id:e,type:t,message:r}){return(0,H_.jsxs)("p",{id:e,className:T(Y5e.p,L4.indicator,L4[`is-${t}`]),children:[t==="validating"?(0,H_.jsx)(KM,{className:L4["indicator-spinner"]}):(0,H_.jsx)(A_,{className:L4["indicator-icon"],icon:Q5e[t],size:16,fill:"currentColor"}),r]})}var dc=a(y(),1),X5e=e=>(0,dc.jsx)(Es,{...e,direction:"column",gap:"sm"});function J5e(e,t,r){let o;return t&&!r?o=`(${(0,XM.__)("Required")})`:!t&&r&&(o=`(${(0,XM.__)("Optional")})`),o?typeof e=="string"?`${e} ${o}`:(0,dc.jsxs)(dc.Fragment,{children:[e," ",o]}):e}var k$="data-validity-visible",JM=(0,Po.forwardRef)(function({required:t,markWhenOptional:r,customValidity:o,getValidityTarget:n,children:i,render:s=X5e,...l},c){let[u,d]=(0,Po.useState)(),[p,m]=(0,Po.useState)(),[f,g]=(0,Po.useState)(!1),[h,b]=(0,Po.useState)(!1),_=(0,Po.useRef)(null);(0,Po.useEffect)(()=>{let C=n(),S=()=>{o?.type!=="validating"&&d(C?.validationMessage),g(!0),C?.setAttribute(k$,"")};return C?.addEventListener("invalid",S),()=>C?.removeEventListener("invalid",S)},[o?.type,n]),(0,Po.useEffect)(()=>{let C=n(),S=B=>{if(B.preventDefault(),!B.isTrusted)return;let N=B.target,E=Array.from(N.form?.elements??[]).find(M=>!M.validity.valid);(!N.form||E===N)&&N.focus()},P=C?.type==="radio"&&C?.name?Array.from(_.current?.querySelectorAll(`input[type="radio"][name="${C?.name}"]`)??[]).filter(B=>B!==C):[];return C?.addEventListener("invalid",S),P.forEach(B=>B.addEventListener("invalid",S)),()=>{C?.removeEventListener("invalid",S),P.forEach(B=>B.removeEventListener("invalid",S))}},[n]),(0,Po.useEffect)(()=>{let C=n();if(!o?.type){C?.setCustomValidity(""),d(C?.validationMessage),m(void 0);return}switch(o.type){case"validating":{C?.setCustomValidity(""),d(void 0),m({type:"validating",message:o.message});break}case"valid":{C?.setCustomValidity(""),d(C?.validationMessage),m({type:"valid",message:o.message});break}case"invalid":{C?.setCustomValidity(o.message??""),d(C?.validationMessage),m(void 0);break}}},[o,n]),(0,Po.useEffect)(()=>{if(!(!h||f)){if(o?.type==="validating"){let C=setTimeout(()=>{g(!0)},1e3);return()=>clearTimeout(C)}g(!0)}},[h,o?.type,f]);let v=C=>{if(C.relatedTarget&&C.currentTarget.contains(C.relatedTarget))return;h||(b(!0),n()?.setAttribute(k$,""));let S=n(),P=o?.type==="validating";window.queueMicrotask(()=>{P||d(S?.validationMessage)})},w=(0,Po.useId)(),x=u?(0,dc.jsx)(R4,{id:w,type:"invalid",message:u}):p?.type?(0,dc.jsx)(R4,{id:w,type:p.type,message:p.message}):null,k=f?x:null;return(0,Po.useEffect)(()=>{let C=n();if(!C)return;function S(P,B){let N=(P.getAttribute("aria-describedby")??"").split(" ").filter(E=>E&&E!==w);B&&N.push(w),N.length?P.setAttribute("aria-describedby",N.join(" ")):P.removeAttribute("aria-describedby")}return S(C,!!k),()=>S(C,!1)},[k,w,n]),Ts({render:s,ref:[c,_],props:Wr(l,{onBlur:v,children:(0,dc.jsxs)(dc.Fragment,{children:[(0,Po.cloneElement)(i,{label:J5e(i.props.label,t,r),required:t}),k]})})})});var Om={};J(Om,{Control:()=>W$,Description:()=>O$,Details:()=>H$,Item:()=>P$,Label:()=>M$,Root:()=>S$,VisualLabel:()=>pL});var w$=a(W(),1);var rL=a(y(),1),eL="data-wp-hash";function tL(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&twe(document)),e.__wpStyleRuntime}function ewe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${eL}]`))if(r.getAttribute(eL)===t)return!0;return!1}function C$(e,t,r){if(!e.head)return;let o=tL(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(ewe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(eL,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function twe(e){let t=tL();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)C$(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 rwe(e,t){let r=tL();r.styles.set(e,t);for(let o of r.documents.keys())C$(o,e,t)}typeof process>"u",rwe("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var owe={"box-sizing":"_336cd3e4e743482f__box-sizing"},nwe=e=>(0,rL.jsx)(Es,{...e,direction:"column",gap:"sm"}),S$=(0,w$.forwardRef)(function({className:t,render:r=nwe,...o},n){return(0,rL.jsx)(On.Root,{ref:n,className:T(owe["box-sizing"],t),render:r,...o})});var T$=a(W(),1),E$=a(y(),1),P$=(0,T$.forwardRef)(function(t,r){return(0,E$.jsx)(On.Item,{ref:r,...t})});var I$=a(W(),1);var nL=a(y(),1),oL="data-wp-hash";function aL(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&iwe(document)),e.__wpStyleRuntime}function awe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${oL}]`))if(r.getAttribute(oL)===t)return!0;return!1}function N$(e,t,r){if(!e.head)return;let o=aL(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(awe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(oL,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function iwe(e){let t=aL();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)N$(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 swe(e,t){let r=aL();r.styles.set(e,t);for(let o of r.documents.keys())N$(o,e,t)}typeof process>"u",swe("df33c48b2d",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);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-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var B$={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},M$=(0,I$.forwardRef)(function({className:t,hideFromVision:r,variant:o,...n},i){let s=(0,nL.jsx)(On.Label,{ref:i,className:T(B$.label,o&&B$[`is-${o}`],t),...n});return r?(0,nL.jsx)(ln,{render:s}):s});var L$=a(W(),1),A$=a(y(),1),iL="data-wp-hash";function sL(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&cwe(document)),e.__wpStyleRuntime}function lwe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${iL}]`))if(r.getAttribute(iL)===t)return!0;return!1}function R$(e,t,r){if(!e.head)return;let o=sL(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(lwe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(iL,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function cwe(e){let t=sL();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)R$(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 D$(e,t){let r=sL();r.styles.set(e,t);for(let o of r.documents.keys())R$(o,e,t)}typeof process>"u",D$("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var uwe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",D$("df33c48b2d",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);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-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var dwe={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},O$=(0,L$.forwardRef)(function({className:t,...r},o){return(0,A$.jsx)(On.Description,{ref:o,className:T(uwe.p,dwe.description,t),...r})});var F$=a(W(),1),V$=a(L(),1);var Ld=a(y(),1),lL="data-wp-hash";function cL(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&mwe(document)),e.__wpStyleRuntime}function pwe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${lL}]`))if(r.getAttribute(lL)===t)return!0;return!1}function z$(e,t,r){if(!e.head)return;let o=cL(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(pwe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(lL,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function mwe(e){let t=cL();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)z$(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 fwe(e,t){let r=cL();r.styles.set(e,t);for(let o of r.documents.keys())z$(o,e,t)}typeof process>"u",fwe("df33c48b2d",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);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-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var gwe={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},H$=(0,F$.forwardRef)(function({className:t,...r},o){return(0,Ld.jsxs)(Ld.Fragment,{children:[(0,Ld.jsx)(ln,{render:(0,Ld.jsx)(On.Description,{}),children:(0,V$.__)("More details follow the field.")}),(0,Ld.jsx)("div",{ref:o,className:T(gwe.description,t),...r})]})});var j$=a(W(),1),U$=a(y(),1),W$=(0,j$.forwardRef)(function(t,r){return(0,U$.jsx)(On.Control,{ref:r,...t})});var $$=a(W(),1),uL="data-wp-hash";function dL(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&bwe(document)),e.__wpStyleRuntime}function hwe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${uL}]`))if(r.getAttribute(uL)===t)return!0;return!1}function q$(e,t,r){if(!e.head)return;let o=dL(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(hwe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(uL,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function bwe(e){let t=dL();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)q$(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 ywe(e,t){let r=dL();r.styles.set(e,t);for(let o of r.documents.keys())q$(o,e,t)}typeof process>"u",ywe("df33c48b2d",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);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-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var G$={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},pL=(0,$$.forwardRef)(function({className:t,render:r,variant:o,...n},i){return Ts({defaultTagName:"span",render:r,ref:i,props:Wr(n,{className:T(G$.label,o&&G$[`is-${o}`],t)})})});pL.displayName="Field.VisualLabel";var D4=a(W(),1);var fL=a(y(),1),mL="data-wp-hash";function gL(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&_we(document)),e.__wpStyleRuntime}function vwe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${mL}]`))if(r.getAttribute(mL)===t)return!0;return!1}function K$(e,t,r){if(!e.head)return;let o=gL(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(vwe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(mL,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function _we(e){let t=gL();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)K$(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 Y$(e,t){let r=gL();r.styles.set(e,t);for(let o of r.documents.keys())K$(o,e,t)}typeof process>"u",Y$("1540cbc709","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._1e441c22c9dc5d28__wrapper{--wp-ui-textarea-min-height:var(--wpds-dimension-size-lg,40px)}._414844876c32ecee__textarea{min-height:calc(var(--wp-ui-textarea-min-height) - 2px);resize:block}}@layer compositions{._1e441c22c9dc5d28__wrapper{--wp-ui-input-padding-block:9.9px;height:auto;line-height:1.4}}}");var Z$={wrapper:"_1e441c22c9dc5d28__wrapper",textarea:"_414844876c32ecee__textarea"};typeof process>"u",Y$("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var xwe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"},kwe=(e,t)=>function(o){return typeof e=="function"?e(Wr(o,t)):(0,D4.cloneElement)(e,Wr(o,t))},A4=(0,D4.forwardRef)(function({className:t,defaultValue:r,disabled:o,onValueChange:n,render:i,rows:s=4,style:l,value:c,...u},d){return(0,fL.jsx)(GM,{className:T(Z$.wrapper,t),style:l,render:kwe(i||(p=>(0,fL.jsx)("textarea",{...p})),{className:T(xwe.textarea,Z$.textarea),ref:d,rows:s,...u}),value:c,defaultValue:r,onValueChange:n,disabled:o})});var Q$=a(W(),1);var Fm=a(y(),1),hL=(0,Q$.forwardRef)(function({className:t,label:r,description:o,details:n,hideLabelFromVision:i,...s},l){return(0,Fm.jsxs)(Om.Root,{className:t,children:[(0,Fm.jsx)(Om.Label,{hideFromVision:i,children:r}),(0,Fm.jsx)(A4,{ref:l,...s}),o&&(0,Fm.jsx)(Om.Description,{children:o}),n&&(0,Fm.jsx)(Om.Details,{children:n})]})});var O4=a(W(),1),X$=a(_e(),1);var bL=a(y(),1),yL=(0,O4.forwardRef)(function({required:t,markWhenOptional:r,customValidity:o,...n},i){let s=(0,O4.useRef)(null),l=(0,X$.useMergeRefs)([i,s]);return(0,bL.jsx)(JM,{required:t,markWhenOptional:r,customValidity:o,getValidityTarget:()=>s.current,children:(0,bL.jsx)(hL,{ref:l,...n})})});var Rd={};J(Rd,{List:()=>rq,Panel:()=>uq,Root:()=>pq,Tab:()=>gq});var Vm=a(W(),1);var eq=a(_e(),1),F4=a(y(),1),vL="data-wp-hash";function _L(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Cwe(document)),e.__wpStyleRuntime}function wwe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${vL}]`))if(r.getAttribute(vL)===t)return!0;return!1}function tq(e,t,r){if(!e.head)return;let o=_L(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(wwe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(vL,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function Cwe(e){let t=_L();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)tq(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 Swe(e,t){let r=_L();r.styles.set(e,t);for(let o of r.documents.keys())tq(o,e,t)}typeof process>"u",Swe("54ae3f4680",`@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--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)
6 &[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]
7 [role=tab]:is([aria-selected=true])
8 &{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}`);var j_={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"},J$=1,rq=(0,Vm.forwardRef)(function({children:t,variant:r="default",className:o,activateOnFocus:n,...i},s){let[l,c]=(0,Vm.useState)(null),[u,d]=(0,Vm.useState)({first:!1,last:!1,isScrolling:!1});(0,Vm.useEffect)(()=>{if(!l)return;let m=()=>{let{scrollWidth:v,clientWidth:w,scrollLeft:x}=l,k=Math.max(v-w,0),S=(l.dir||(typeof window<"u"?window.getComputedStyle(l).direction:"ltr"))==="rtl"&&x<0?-x:x,P={first:S>J$,last:S<k-J$,isScrolling:v>w};d(B=>B.first===P.first&&B.last===P.last&&B.isScrolling===P.isScrolling?B:P)},f=new ResizeObserver(m),g=()=>{f.disconnect(),f.observe(l),l.querySelectorAll('[role="tab"]').forEach(v=>f.observe(v))},h=new MutationObserver(g);h.observe(l,{childList:!0,subtree:!0});let b=!1,_=()=>{b||(requestAnimationFrame(()=>{m(),b=!1}),b=!0)};return l.addEventListener("scroll",_,{passive:!0}),g(),m(),()=>{l.removeEventListener("scroll",_),f.disconnect(),h.disconnect()}},[l]);let p=(0,eq.useMergeRefs)([s,m=>c(m)]);return(0,F4.jsxs)(hl.List,{ref:p,activateOnFocus:n,"data-select-on-move":n?"true":"false",className:T(j_.tablist,u.first&&j_["is-overflowing-first"],u.last&&j_["is-overflowing-last"],j_[`is-${r}-variant`],o),...i,tabIndex:i.tabIndex??(u.isScrolling?-1:void 0),children:[t,(0,F4.jsx)(hl.Indicator,{className:j_.indicator})]})});var iq=a(W(),1);var Fn=a(W(),1);var U_=a(y(),1),V4=!1,xL=V4?(0,Fn.createContext)(null):null;function Twe(){let e=(0,Fn.useContext)(xL);(0,Fn.useEffect)(()=>{if(e)return e.registerTab()},[e])}function Ewe(){}var oq=V4?Twe:Ewe;function Pwe(){let e=(0,Fn.useContext)(xL);(0,Fn.useEffect)(()=>{if(e)return e.registerPanel()},[e])}function Bwe(){}var nq=V4?Pwe:Bwe;function Iwe({children:e}){let t=(0,Fn.useRef)(0),r=(0,Fn.useRef)(0),o=l$(()=>{let l=t.current,c=r.current;if(l!==c)throw new Error(`Tabs: Tab/Panel count mismatch (${l} 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.`)}),n=(0,Fn.useCallback)(()=>(t.current+=1,o(),()=>{t.current-=1,o()}),[o]),i=(0,Fn.useCallback)(()=>(r.current+=1,o(),()=>{r.current-=1,o()}),[o]),s=(0,Fn.useMemo)(()=>({registerTab:n,registerPanel:i}),[n,i]);return(0,U_.jsx)(xL.Provider,{value:s,children:e})}function Nwe({children:e}){return(0,U_.jsx)(U_.Fragment,{children:e})}var aq=V4?Iwe:Nwe;var cq=a(y(),1),kL="data-wp-hash";function wL(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Lwe(document)),e.__wpStyleRuntime}function Mwe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${kL}]`))if(r.getAttribute(kL)===t)return!0;return!1}function sq(e,t,r){if(!e.head)return;let o=wL(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Mwe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(kL,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function Lwe(e){let t=wL();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)sq(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 lq(e,t){let r=wL();r.styles.set(e,t);for(let o of r.documents.keys())sq(o,e,t)}typeof process>"u",lq("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var Rwe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",lq("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,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(--focus-color,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(--focus-color,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))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,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(--focus-color,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(--focus-color,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 Dwe={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"},uq=(0,iq.forwardRef)(function({className:t,...r},o){return nq(),(0,cq.jsx)(hl.Panel,{ref:o,className:T(Rwe.div,Dwe["outset-ring--focus-visible"],t),...r})});var dq=a(W(),1);var z4=a(y(),1),pq=(0,dq.forwardRef)(function({...t},r){return(0,z4.jsx)(KG,{children:(0,z4.jsx)(aq,{children:(0,z4.jsx)(hl.Root,{ref:r,...t})})})});var mq=a(W(),1);var W_=a(y(),1),SL="data-wp-hash";function TL(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Owe(document)),e.__wpStyleRuntime}function Awe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${SL}]`))if(r.getAttribute(SL)===t)return!0;return!1}function fq(e,t,r){if(!e.head)return;let o=TL(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Awe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(SL,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function Owe(e){let t=TL();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)fq(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 Fwe(e,t){let r=TL();r.styles.set(e,t);for(let o of r.documents.keys())fq(o,e,t)}typeof process>"u",Fwe("54ae3f4680",`@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--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)
9 &[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]
10 [role=tab]:is([aria-selected=true])
11 &{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}`);var CL={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"},gq=(0,mq.forwardRef)(function({className:t,children:r,...o},n){return oq(),(0,W_.jsxs)(hl.Tab,{ref:n,className:T(CL.tab,t),...o,children:[(0,W_.jsx)("span",{className:CL["tab-children"],children:r}),(0,W_.jsx)(A_,{icon:zg,className:CL["tab-chevron"]})]})});var Qa=a(I(),1),ba=a(L(),1),Mq=a(H(),1);var Lq=a(br(),1),Rq=a(W(),1);function Bh(e,t){var r=0,o,n;t=t||{};function i(){var s=o,l=arguments.length,c,u;e:for(;s;){if(s.args.length!==arguments.length){s=s.next;continue}for(u=0;u<l;u++)if(s.args[u]!==arguments[u]){s=s.next;continue e}return s!==o&&(s===n&&(n=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=o,s.prev=null,o.prev=s,o=s),s.val}for(c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return s={args:c,val:e.apply(null,c)},o?(o.prev=s,s.next=o):n=s,r===t.maxSize?(n=n.prev,n.next=null):r++,o=s,s.val}return i.clear=function(){o=null,n=null,r=0},i}var PL=a(W(),1),mc=a(te(),1),wq=a(qt(),1);var Dd=function(){return Dd=Object.assign||function(t){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Dd.apply(this,arguments)};function bq(e){return e.toLowerCase()}var Vwe=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],zwe=/[^A-Z0-9]+/gi;function H4(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,o=r===void 0?Vwe:r,n=t.stripRegexp,i=n===void 0?zwe:n,s=t.transform,l=s===void 0?bq:s,c=t.delimiter,u=c===void 0?" ":c,d=yq(yq(e,o,"$1\0$2"),i,"\0"),p=0,m=d.length;d.charAt(p)==="\0";)p++;for(;d.charAt(m-1)==="\0";)m--;return d.slice(p,m).split("\0").map(l).join(u)}function yq(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(o,n){return o.replace(n,r)},e)}function vq(e){return e.charAt(0).toUpperCase()+e.substr(1)}function Hwe(e){return vq(e.toLowerCase())}function _q(e,t){return t===void 0&&(t={}),H4(e,Dd({delimiter:" ",transform:Hwe},t))}function xq(e,t){return t===void 0&&(t={}),H4(e,Dd({delimiter:"."},t))}function Ih(e,t){return t===void 0&&(t={}),xq(e,Dd({delimiter:"-"},t))}function kq(e){let t=e?.toString?.()??"";return t=t.replace(/['\u2019]/,""),Ih(t,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}var pc={$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 G_=[{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"}],EL="wp-embed";var j4=a(y(),1),{name:Nh}=pc,Cq=e=>(0,mc.getBlockVariations)(Nh)?.find(({name:t})=>t===e),BL=(e,t=[])=>t.some(r=>e.match(r)),Mh=e=>(0,mc.getBlockVariations)(Nh)?.find(({patterns:t})=>BL(e,t));function $_(e){if(!e||(0,wq.getAuthority)(e)!=="x.com")return e;let t=new URL(e);return t.host="twitter.com",t.toString()}var Sq=e=>e&&e.includes('class="wp-embedded-content"'),Tq=e=>{let t=e.url||e.thumbnail_url,r=(0,j4.jsx)("p",{children:(0,j4.jsx)("img",{src:t,alt:e.title,width:"100%"})});return(0,PL.renderToString)(r)},Od=(e,t={})=>{let{preview:r,attributes:o={}}=e,{url:n,providerNameSlug:i,type:s,...l}=o;if(!n||!(0,mc.getBlockType)(Nh))return;let c=Mh(n),u=i==="wordpress"||s===EL;if(!u&&c&&(c.attributes.providerNameSlug!==i||!i))return(0,mc.createBlock)(Nh,{url:n,...l,...c.attributes});let p=(0,mc.getBlockVariations)(Nh)?.find(({name:m})=>m==="wordpress");if(!(!p||!r||!Sq(r.html)||u))return(0,mc.createBlock)(Nh,{url:n,...p.attributes,...t})},Uwe=e=>e?G_.some(({className:t})=>e.includes(t)):!1,Ad=e=>{if(!e)return e;let t=G_.reduce((o,{className:n})=>(o.push(n),o),["wp-has-aspect-ratio"]),r=e;for(let o of t)r=r.replace(o,"");return r.trim()};function Wwe(e){return/padding-(top|bottom)\s*:\s*[\d.]+%/i.test(e)}function IL(e,t,r=!0){if(!r||Wwe(e))return Ad(t);let o=document.implementation.createHTMLDocument("");o.body.innerHTML=e;let n=o.body.querySelector("iframe");if(n&&n.height&&n.width){let i=(n.width/n.height).toFixed(2);for(let s=0;s<G_.length;s++){let l=G_[s];if(i>=l.ratio)return i-l.ratio>.1?Ad(t):T(Ad(t),l.className,"wp-has-aspect-ratio")}}return t}function Eq(e,t){t((0,mc.createBlock)("core/paragraph",{content:(0,PL.renderToString)((0,j4.jsx)("a",{href:e,children:e}))}))}var Gwe=Bh((e,t,r,o,n=!0)=>{if(!e)return{};let i={},{type:s="rich"}=e,{html:l,provider_name:c}=e,u=kq((c||t).toLowerCase());return Sq(l)&&(s=EL),(l||s==="photo")&&(i.type=s,i.providerNameSlug=u),Uwe(r)||(i.className=IL(l,r,o&&n)),i}),Pq=(e,t,r,o)=>{let{allowResponsive:n,className:i}=e;return{...e,...Gwe(t,r,i,o,n)}};var zm=a(W(),1),Bq=a(_e(),1),q_=a(L(),1),Cu=a(I(),1),Iq=a(F(),1);var U4=a(te(),1),Fd=a(y(),1);function Zo({attributeKey:e="caption",attributes:t,setAttributes:r,isSelected:o,insertBlocksAfter:n,placeholder:i=(0,q_.__)("Add caption"),label:s=(0,q_.__)("Caption text"),showToolbarButton:l=!0,excludeElementClassName:c,className:u,readOnly:d,tagName:p="figcaption",addLabel:m=(0,q_.__)("Add caption"),removeLabel:f=(0,q_.__)("Remove caption"),icon:g=PP,...h}){let b=t[e],_=(0,Bq.usePrevious)(b),v=Cu.RichText.isEmpty(b),w=Cu.RichText.isEmpty(_),[x,k]=(0,zm.useState)(!v);(0,zm.useEffect)(()=>{!v&&w&&k(!0)},[v,w]),(0,zm.useEffect)(()=>{!o&&v&&k(!1)},[o,v]);let C=(0,zm.useCallback)(S=>{S&&v&&S.focus()},[v]);return(0,Fd.jsxs)(Fd.Fragment,{children:[l&&(0,Fd.jsx)(Cu.BlockControls,{group:"block",children:(0,Fd.jsx)(Iq.ToolbarButton,{onClick:()=>{k(!x),x&&b&&r({[e]:void 0})},icon:g,isPressed:x,label:x?f:m})}),x&&(!Cu.RichText.isEmpty(b)||o)&&(0,Fd.jsx)(Cu.RichText,{identifier:e,tagName:p,className:T(u,c?"":(0,Cu.__experimentalGetElementClassName)("caption")),ref:C,"aria-label":s,placeholder:i,value:b,onChange:S=>r({[e]:S}),inlineToolbar:!0,__unstableOnSplitAtEnd:n?()=>n((0,U4.createBlock)((0,U4.getDefaultBlockName)())):void 0,readOnly:d,...h})]})}var Lr=a(y(),1),NL=["audio"];function $we({attributes:e,className:t,setAttributes:r,onReplace:o,isSelected:n,insertBlocksAfter:i}){let{id:s,autoplay:l,loop:c,preload:u,src:d}=e,[p,m]=(0,Rq.useState)(e.blob),g=(0,Qa.useBlockEditingMode)()==="default";ic({url:p,allowedTypes:NL,onChange:w,onError:v});function h(S){return P=>{r({[S]:P})}}function b(S){if(S!==d){let P=Od({attributes:{url:S}});if(P!==void 0&&o){o(P);return}r({src:S,id:void 0,blob:void 0}),m()}}let{createErrorNotice:_}=(0,Mq.useDispatch)(Lq.store);function v(S){_(S,{type:"snackbar"})}function w(S){if(!S||!S.url){r({src:void 0,id:void 0,caption:void 0,blob:void 0}),m();return}if((0,Nq.isBlobURL)(S.url)){m(S.url);return}r({blob:void 0,src:S.url,id:S.id,caption:S.caption}),m()}let x=T(t,{"is-transient":!!p}),k=(0,Qa.useBlockProps)({className:x}),C=ee();return!d&&!p?(0,Lr.jsx)("div",{...k,children:(0,Lr.jsx)(Qa.MediaPlaceholder,{icon:(0,Lr.jsx)(Qa.BlockIcon,{icon:sm}),onSelect:w,onSelectURL:b,accept:"audio/*",allowedTypes:NL,value:e,onError:v})}):(0,Lr.jsxs)(Lr.Fragment,{children:[n&&(0,Lr.jsx)(Qa.BlockControls,{group:"other",children:(0,Lr.jsx)(Qa.MediaReplaceFlow,{mediaId:s,mediaURL:d,allowedTypes:NL,accept:"audio/*",onSelect:w,onSelectURL:b,onError:v,onReset:()=>w(void 0),variant:"toolbar"})}),(0,Lr.jsx)(Qa.InspectorControls,{children:(0,Lr.jsxs)(Ii.__experimentalToolsPanel,{label:(0,ba.__)("Settings"),resetAll:()=>{r({autoplay:!1,loop:!1,preload:void 0})},dropdownMenuProps:C,children:[(0,Lr.jsx)(Dm,{className:"wp-block-audio__autoplay-help-text",children:(0,ba.__)("Most browsers block audio until a visitor interacts with the page, so autoplay often won\u2019t work, especially on mobile. Unexpected sound can also be disruptive for screen reader users.")}),(0,Lr.jsx)(Ii.__experimentalToolsPanelItem,{label:(0,ba.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>r({autoplay:!1}),children:(0,Lr.jsx)(Ii.ToggleControl,{label:(0,ba.__)("Autoplay"),onChange:h("autoplay"),checked:!!l})}),(0,Lr.jsx)(Ii.__experimentalToolsPanelItem,{label:(0,ba.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!c,onDeselect:()=>r({loop:!1}),children:(0,Lr.jsx)(Ii.ToggleControl,{label:(0,ba.__)("Loop"),onChange:h("loop"),checked:!!c})}),(0,Lr.jsx)(Ii.__experimentalToolsPanelItem,{label:(0,ba.__)("Preload"),isShownByDefault:!0,hasValue:()=>!!u,onDeselect:()=>r({preload:void 0}),children:(0,Lr.jsx)(Ii.SelectControl,{label:(0,ba._x)("Preload","noun; Audio block parameter"),value:u||"",onChange:S=>r({preload:S||void 0}),options:[{value:"",label:(0,ba.__)("Browser default")},{value:"auto",label:(0,ba.__)("Auto")},{value:"metadata",label:(0,ba.__)("Metadata")},{value:"none",label:(0,ba._x)("None","Preload value")}]})})]})}),(0,Lr.jsxs)("figure",{...k,children:[(0,Lr.jsx)("audio",{controls:"controls",inert:n?void 0:"true",src:d??p}),!!p&&(0,Lr.jsx)(Ii.Spinner,{}),(0,Lr.jsx)(Zo,{attributes:e,setAttributes:r,isSelected:n,insertBlocksAfter:i,label:(0,ba.__)("Audio caption text"),showToolbarButton:n&&g})]})]})}var Dq=$we;var W4={$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,color:{background:!1,link:!0,text:!1,__experimentalDefaultControls:{link:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"};var Hm=a(I(),1),Z_=a(y(),1);function Aq({attributes:e}){let{autoplay:t,caption:r,loop:o,preload:n,src:i}=e;return i&&(0,Z_.jsxs)("figure",{...Hm.useBlockProps.save(),children:[(0,Z_.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:o,preload:n}),!Hm.RichText.isEmpty(r)&&(0,Z_.jsx)(Hm.RichText.Content,{tagName:"figcaption",value:r,className:(0,Hm.__experimentalGetElementClassName)("caption")})]})}var Oq=a(Ur(),1),Fq=a(te(),1),Zwe={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("audio/")===0},transform(e){let t=e[0];return(0,Fq.createBlock)("core/audio",{blob:(0,Oq.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:r,ogg:o,wav:n,wma:i}})=>e||t||r||o||n||i},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]},Vq=Zwe;var{name:zq}=W4,Hq={icon:sm,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:Vq,deprecated:UU,edit:Dq,save:Aq},Kwe=()=>D({name:zq,metadata:W4,settings:Hq});var LL={};J(LL,{init:()=>Qwe,metadata:()=>G4,name:()=>$q,settings:()=>qq});var G4={$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},background:{gradient:!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 to=a(L(),1),K_=a(I(),1),cn=a(F(),1),jq=a(H(),1),q4=a(ae(),1),Su=a(W(),1),Uq=a(bd(),1),Wq=a(_e(),1);var Lt=a(y(),1),$4="/";function Gq({attributes:e,setAttributes:t,name:r,context:{postId:o,postType:n,templateSlug:i}}){let{separator:s,showHomeItem:l,showCurrentItem:c,prefersTaxonomy:u,showOnHomePage:d}=e,{post:p,isPostTypeHierarchical:m,postTypeHasTaxonomies:f,hasTermsAssigned:g,isLoading:h}=(0,jq.useSelect)(O=>{if(!n)return{};let j=O(q4.store).getEntityRecord("postType",n,o),V=O(q4.store).getPostType(n),G=V&&V.taxonomies.length,$;return G&&($=O(q4.store).getTaxonomies({type:n,per_page:-1})),{post:j,isPostTypeHierarchical:V?.hierarchical,postTypeHasTaxonomies:G,hasTermsAssigned:j&&($||[]).filter(({visibility:z})=>z?.publicly_queryable).some(z=>!!j[z.rest_base]?.length),isLoading:o&&!j||!V||G&&!$}},[n,o]),[b,_]=(0,Su.useState)(0);(0,Su.useEffect)(()=>{_(O=>O+1)},[p]);let v=ee(),{content:w,status:x,error:k}=(0,Uq.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r,urlQueryArgs:{post_id:o,invalidationKey:b}}),C=(0,Su.useRef)("");(0,Su.useEffect)(()=>{x==="success"&&(C.current=w)},[w,x]);let[S,P]=(0,Su.useState)(!1);(0,Su.useEffect)(()=>{if(x!=="loading")return;let O=setTimeout(()=>{P(!0)},400);return()=>{clearTimeout(O),P(!1)}},[x]);let B=(0,Wq.useDisabled)(),N=(0,K_.useBlockProps)({ref:B});if(h)return(0,Lt.jsx)("div",{...N,children:(0,Lt.jsx)(cn.Spinner,{})});let E;!m&&!p?.parent?E=!0:f?E=u:E=!1;let M=null,R=!o||!n||i&&!n||!E&&!m||E&&!g;if(R){let O=[];l&&O.push((0,to.__)("Home")),i&&!o?O.push((0,to.__)("Page")):E?O.push((0,to.__)("Category")):O.push((0,to.__)("Ancestor"),(0,to.__)("Parent")),M=(0,Lt.jsx)("nav",{...N,style:{"--separator":`"${s.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,...N.style},children:(0,Lt.jsxs)("ol",{children:[O.map((j,V)=>(0,Lt.jsx)("li",{children:(0,Lt.jsx)("a",{href:`#breadcrumbs-pseudo-link-${V}`,children:j})},V)),c&&(0,Lt.jsx)("li",{children:(0,Lt.jsx)("span",{"aria-current":"page",children:(0,to.__)("Current")})})]})})}return(0,Lt.jsxs)(Lt.Fragment,{children:[(0,Lt.jsx)(K_.InspectorControls,{children:(0,Lt.jsxs)(cn.__experimentalToolsPanel,{label:(0,to.__)("Settings"),resetAll:()=>{t({separator:$4,showHomeItem:!0,showCurrentItem:!0})},dropdownMenuProps:v,children:[(0,Lt.jsx)(cn.__experimentalToolsPanelItem,{label:(0,to.__)("Show home breadcrumb"),isShownByDefault:!0,hasValue:()=>!l,onDeselect:()=>t({showHomeItem:!0}),children:(0,Lt.jsx)(cn.ToggleControl,{label:(0,to.__)("Show home breadcrumb"),onChange:O=>t({showHomeItem:O}),checked:l})}),(0,Lt.jsx)(cn.__experimentalToolsPanelItem,{label:(0,to.__)("Show current breadcrumb"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>t({showCurrentItem:!0}),children:(0,Lt.jsx)(cn.ToggleControl,{label:(0,to.__)("Show current breadcrumb"),onChange:O=>t({showCurrentItem:O}),checked:c})}),(0,Lt.jsx)(cn.__experimentalToolsPanelItem,{label:(0,to.__)("Separator"),isShownByDefault:!0,hasValue:()=>s!==$4,onDeselect:()=>t({separator:$4}),children:(0,Lt.jsx)(cn.TextControl,{autoComplete:"off",label:(0,to.__)("Separator"),value:s,onChange:O=>t({separator:O}),onBlur:()=>{s||t({separator:$4})}})})]})}),(0,Lt.jsxs)(K_.InspectorControls,{group:"advanced",children:[(0,Lt.jsx)(cn.CheckboxControl,{label:(0,to.__)("Show on homepage"),checked:d,onChange:O=>t({showOnHomePage:O}),help:(0,to.__)("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,Lt.jsx)(cn.CheckboxControl,{label:(0,to.__)("Prefer taxonomy terms"),checked:u,onChange:O=>t({prefersTaxonomy:O}),help:(0,to.__)("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"&&!R&&(C.current?(0,Lt.jsx)(Eo,{wrapperProps:{...N,style:{...N.style,opacity:S?.3:1}},html:C.current}):(0,Lt.jsx)("div",{...N,children:(0,Lt.jsx)(cn.Spinner,{})})),x==="error"&&(0,Lt.jsx)("div",{...N,children:(0,Lt.jsx)("p",{children:(0,to.sprintf)((0,to.__)("Error: %s"),k)})}),R&&M,!R&&x==="success"&&(0,Lt.jsx)(Eo,{wrapperProps:N,html:w})]})}var{name:$q}=G4,qq={icon:kP,example:{},edit:Gq},Qwe=()=>D({name:$q,metadata:G4,settings:qq});var FL={};J(FL,{init:()=>p4e,metadata:()=>Q4,name:()=>uZ,settings:()=>dZ});var cZ=a(L(),1);var Ce=a(I(),1),yl=a(_e(),1);var Yq=a(I(),1);var Zq=a(PM(),1),{lock:Kq,unlock:le}=(0,Zq.__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{cleanEmptyObject:Xwe}=le(Yq.privateApis);function or(e){if(!e?.style?.typography?.fontFamily)return e;let{fontFamily:t,...r}=e.style.typography;return{...e,style:Xwe({...e.style,typography:r}),fontFamily:t.split("|").pop()}}function we(e){let{textAlign:t,...r}=e;return t?{...r,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e}var Kt=a(y(),1),Ps=e=>{let{width:t,...r}=e;return t?{...r,style:{...r.style,dimensions:{...r.style?.dimensions,width:`${t}%`}}}:r},Lh=e=>{let{borderRadius:t,...r}=e,o=[t,r.style?.border?.radius].find(n=>typeof n=="number"&&n!==0);return o?{...r,style:{...r.style,border:{...r.style?.border,radius:`${o}px`}}}:r};function Jwe(e){if(!e.align)return e;let{align:t,...r}=e;return{...r,className:T(r.className,`align${e.align}`)}}var DL=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;let t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient);let{customTextColor:r,customBackgroundColor:o,customGradient:n,...i}=e;return{...i,style:t}},RL=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 DL(o)},Tu={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"}},e4e={attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",role:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,splitting:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{__experimentalSkipSerialization:["fontSize","lineHeight","textAlign","fontFamily","fontWeight","fontStyle","textTransform","textDecoration","letterSpacing"],fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},interactivity:{clientNavigation:!0}},selectors:{root:".wp-block-button .wp-block-button__link",typography:{writingMode:".wp-block-button"}},save({attributes:e,className:t}){let{tagName:r,type:o,fontSize:n,linkTarget:i,rel:s,style:l,text:c,title:u,url:d,width:p}=e,m=r||"a",f=m==="button",g=o||"button",h=(0,Ce.__experimentalGetBorderClassesAndStyles)(e),b=(0,Ce.__experimentalGetColorClassesAndStyles)(e),_=(0,Ce.__experimentalGetSpacingClassesAndStyles)(e),v=(0,Ce.__experimentalGetShadowClassesAndStyles)(e),w=(0,Ce.getTypographyClassesAndStyles)(e),x=T("wp-block-button__link",b.className,h.className,w.className,{"no-border-radius":l?.border?.radius===0,"has-custom-font-size":n||l?.typography?.fontSize},(0,Ce.__experimentalGetElementClassName)("button")),k={...h.style,...b.style,..._.style,...v.style,...w.style,writingMode:void 0},C=T(t,{[`has-custom-width wp-block-button__width-${p}`]:p});return(0,Kt.jsx)("div",{...Ce.useBlockProps.save({className:C}),children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:m,type:f?g:null,className:x,href:f?null:d,title:u,style:k,value:c,target:f?null:i,rel:f?null:s})})},isEligible(e){return typeof e.width=="number"},migrate:Ps},t4e={attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",role:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{__experimentalSkipSerialization:["fontSize","lineHeight","fontFamily","fontWeight","fontStyle","textTransform","textDecoration","letterSpacing"],fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},interactivity:{clientNavigation:!0}},selectors:{root:".wp-block-button .wp-block-button__link",typography:{writingMode:".wp-block-button"}},save({attributes:e,className:t}){let{tagName:r,type:o,textAlign:n,fontSize:i,linkTarget:s,rel:l,style:c,text:u,title:d,url:p,width:m}=e,f=r||"a",g=f==="button",h=o||"button",b=(0,Ce.__experimentalGetBorderClassesAndStyles)(e),_=(0,Ce.__experimentalGetColorClassesAndStyles)(e),v=(0,Ce.__experimentalGetSpacingClassesAndStyles)(e),w=(0,Ce.__experimentalGetShadowClassesAndStyles)(e),x=(0,Ce.getTypographyClassesAndStyles)(e),k=T("wp-block-button__link",_.className,b.className,x.className,{[`has-text-align-${n}`]:n,"no-border-radius":c?.border?.radius===0,"has-custom-font-size":i||c?.typography?.fontSize},(0,Ce.__experimentalGetElementClassName)("button")),C={...b.style,..._.style,...v.style,...w.style,...x.style,writingMode:void 0},S=T(t,{[`has-custom-width wp-block-button__width-${m}`]:m});return(0,Kt.jsx)("div",{...Ce.useBlockProps.save({className:S}),children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:f,type:g?h:null,className:k,href:g?null:p,title:d,style:C,value:u,target:g?null:s,rel:g?null:l})})},isEligible(e){return!!e.textAlign||typeof e.width=="number"},migrate:(0,yl.compose)(Ps,we)},r4e={attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-button__link",interactivity:{clientNavigation:!0}},save({attributes:e,className:t}){let{tagName:r,type:o,textAlign:n,fontSize:i,linkTarget:s,rel:l,style:c,text:u,title:d,url:p,width:m}=e,f=r||"a",g=f==="button",h=o||"button",b=(0,Ce.__experimentalGetBorderClassesAndStyles)(e),_=(0,Ce.__experimentalGetColorClassesAndStyles)(e),v=(0,Ce.__experimentalGetSpacingClassesAndStyles)(e),w=(0,Ce.__experimentalGetShadowClassesAndStyles)(e),x=T("wp-block-button__link",_.className,b.className,{[`has-text-align-${n}`]:n,"no-border-radius":c?.border?.radius===0},(0,Ce.__experimentalGetElementClassName)("button")),k={...b.style,..._.style,...v.style,...w.style},C=T(t,{[`has-custom-width wp-block-button__width-${m}`]:m,"has-custom-font-size":i||c?.typography?.fontSize});return(0,Kt.jsx)("div",{...Ce.useBlockProps.save({className:C}),children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:f,type:g?h:null,className:x,href:g?null:p,title:d,style:k,value:u,target:g?null:s,rel:g?null:l})})},isEligible(e){return typeof e.width=="number"},migrate:Ps},o4e={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){let{fontSize:r,linkTarget:o,rel:n,style:i,text:s,title:l,url:c,width:u}=e;if(!s)return null;let d=(0,Ce.__experimentalGetBorderClassesAndStyles)(e),p=(0,Ce.__experimentalGetColorClassesAndStyles)(e),m=(0,Ce.__experimentalGetSpacingClassesAndStyles)(e),f=T("wp-block-button__link",p.className,d.className,{"no-border-radius":i?.border?.radius===0}),g={...d.style,...p.style,...m.style},h=T(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Kt.jsx)("div",{...Ce.useBlockProps.save({className:h}),children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",className:f,href:c,title:l,style:g,value:s,target:o,rel:n})})}},n4e={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){let{fontSize:r,linkTarget:o,rel:n,style:i,text:s,title:l,url:c,width:u}=e;if(!s)return null;let d=(0,Ce.__experimentalGetBorderClassesAndStyles)(e),p=(0,Ce.__experimentalGetColorClassesAndStyles)(e),m=(0,Ce.__experimentalGetSpacingClassesAndStyles)(e),f=T("wp-block-button__link",p.className,d.className,{"no-border-radius":i?.border?.radius===0}),g={...d.style,...p.style,...m.style},h=T(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Kt.jsx)("div",{...Ce.useBlockProps.save({className:h}),children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",className:f,href:c,title:l,style:g,value:s,target:o,rel:n})})},migrate:(0,yl.compose)(Ps,or),isEligible({style:e,width:t}){return e?.typography?.fontFamily||typeof t=="number"}},a4e=[e4e,t4e,r4e,o4e,n4e,{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:{...Tu,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible({style:e}){return typeof e?.border?.radius=="number"},save({attributes:e,className:t}){let{fontSize:r,linkTarget:o,rel:n,style:i,text:s,title:l,url:c,width:u}=e;if(!s)return null;let d=i?.border?.radius,p=(0,Ce.__experimentalGetColorClassesAndStyles)(e),m=T("wp-block-button__link",p.className,{"no-border-radius":i?.border?.radius===0}),f={borderRadius:d||void 0,...p.style},g=T(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Kt.jsx)("div",{...Ce.useBlockProps.save({className:g}),children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",className:m,href:c,title:l,style:f,value:s,target:o,rel:n})})},migrate:(0,yl.compose)(Ps,or,Lh)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...Tu,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){let{borderRadius:r,linkTarget:o,rel:n,text:i,title:s,url:l,width:c}=e,u=(0,Ce.__experimentalGetColorClassesAndStyles)(e),d=T("wp-block-button__link",u.className,{"no-border-radius":r===0}),p={borderRadius:r?r+"px":void 0,...u.style},m=T(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,Kt.jsx)("div",{...Ce.useBlockProps.save({className:m}),children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",className:d,href:l,title:s,style:p,value:i,target:o,rel:n})})},migrate:(0,yl.compose)(Ps,or,Lh)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...Tu,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){let{borderRadius:r,linkTarget:o,rel:n,text:i,title:s,url:l,width:c}=e,u=(0,Ce.__experimentalGetColorClassesAndStyles)(e),d=T("wp-block-button__link",u.className,{"no-border-radius":r===0}),p={borderRadius:r?r+"px":void 0,...u.style},m=T(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,Kt.jsx)("div",{...Ce.useBlockProps.save({className:m}),children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",className:d,href:l,title:s,style:p,value:i,target:o,rel:n})})},migrate:(0,yl.compose)(Ps,or,Lh)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...Tu,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){let{borderRadius:t,linkTarget:r,rel:o,text:n,title:i,url:s}=e,l=T("wp-block-button__link",{"no-border-radius":t===0}),c={borderRadius:t?t+"px":void 0};return(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",className:l,href:s,title:i,style:c,value:n,target:r,rel:o})},migrate:(0,yl.compose)(Ps,Lh)},{supports:{align:!0,alignWide:!1},attributes:{...Tu,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,yl.compose)(Ps,Lh,DL,Jwe),save({attributes:e}){let{backgroundColor:t,borderRadius:r,customBackgroundColor:o,customTextColor:n,customGradient:i,linkTarget:s,gradient:l,rel:c,text:u,textColor:d,title:p,url:m}=e,f=(0,Ce.getColorClassName)("color",d),g=!i&&(0,Ce.getColorClassName)("background-color",t),h=(0,Ce.__experimentalGetGradientClass)(l),b=T("wp-block-button__link",{"has-text-color":d||n,[f]:f,"has-background":t||o||i||l,[g]:g,"no-border-radius":r===0,[h]:h}),_={background:i||void 0,backgroundColor:g||i||l?void 0:o,color:f?void 0:n,borderRadius:r?r+"px":void 0};return(0,Kt.jsx)("div",{children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",className:b,href:m,title:p,style:_,value:u,target:s,rel:c})})}},{attributes:{...Tu,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()),Lh(DL({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,customTextColor:o,linkTarget:n,rel:i,text:s,textColor:l,title:c,url:u}=e,d=(0,Ce.getColorClassName)("color",l),p=(0,Ce.getColorClassName)("background-color",t),m=T("wp-block-button__link",{"has-text-color":l||o,[d]:d,"has-background":t||r,[p]:p}),f={backgroundColor:p?void 0:r,color:d?void 0:o};return(0,Kt.jsx)("div",{children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",className:m,href:u,title:c,style:f,value:s,target:n,rel:i})})}},{attributes:{...Tu,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:(0,yl.compose)(Ps,RL),save({attributes:e}){let{url:t,text:r,title:o,backgroundColor:n,textColor:i,customBackgroundColor:s,customTextColor:l}=e,c=(0,Ce.getColorClassName)("color",i),u=(0,Ce.getColorClassName)("background-color",n),d=T("wp-block-button__link",{"has-text-color":i||l,[c]:c,"has-background":n||s,[u]:u}),p={backgroundColor:u?void 0:s,color:c?void 0:l};return(0,Kt.jsx)("div",{children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",className:d,href:t,title:o,style:p,value:r})})}},{attributes:{...Tu,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){let{url:t,text:r,title:o,align:n,color:i,textColor:s}=e,l={backgroundColor:i,color:s};return(0,Kt.jsx)("div",{className:`align${n}`,children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:o,style:l,value:r})})},migrate:(0,yl.compose)(Ps,RL)},{attributes:{...Tu,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){let{url:t,text:r,title:o,align:n,color:i,textColor:s}=e;return(0,Kt.jsx)("div",{className:`align${n}`,style:{backgroundColor:i},children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",href:t,title:o,style:{color:s},value:r})})},migrate:(0,yl.compose)(Ps,RL)}],Qq=a4e;var Bs=a(L(),1),zn=a(W(),1),Dh=a(F(),1),yt=a(I(),1),Vd=a(fc(),1);var Eu=a(te(),1),Um=a(_e(),1),Q_=a(H(),1);var Z4="noopener",K4="_blank",Rh="nofollow";var Jq=a(qt(),1);function eZ({rel:e="",url:t="",opensInNewTab:r,nofollow:o}){let n,i=e;if(r)n=K4,i=i?.includes(Z4)?i:i+` ${Z4}`;else{let s=new RegExp(`\\b${Z4}\\s*`,"g");i=i?.replace(s,"").trim()}if(o)i=i?.includes(Rh)?i:(i+` ${Rh}`).trim();else{let s=new RegExp(`\\b${Rh}\\s*`,"g");i=i?.replace(s,"").trim()}return{url:(0,Jq.prependHTTPS)(t),linkTarget:n,rel:i||void 0}}function Y_(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}var rZ=a(_e(),1),Y4=a(W(),1),oZ=a(jm(),1),nZ=a(H(),1),aZ=a(I(),1);function Pt(e){let{name:t,attributes:r,setAttributes:o}=e,{textAlign:n}=r,{__unstableMarkNextChangeAsNotPersistent:i}=(0,nZ.useDispatch)(aZ.store),s=(0,rZ.useEvent)(()=>{(0,oZ.default)(`textAlign attribute in ${t}`,{alternative:"style.typography.textAlign",since:"7.0"}),i(),o(c=>({style:{...c.style,typography:{...c.style?.typography,textAlign:n}}}))}),l=(0,Y4.useRef)();(0,Y4.useEffect)(()=>{n!==l.current&&(l.current=n,s())},[n,s])}function AL(e){return typeof e=="string"&&e.endsWith("%")}function iZ(e){if(!e)return{};if(AL(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 Vn=a(y(),1),{HTMLElementControl:i4e}=le(yt.privateApis),{subscribeDelegatedListener:s4e}=le(Um.privateApis),l4e=[...yt.LinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,Bs.__)("Mark as nofollow")}];function c4e(e){let{replaceBlocks:t,selectionChange:r}=(0,Q_.useDispatch)(yt.store),{getBlock:o,getBlockAttributes:n,getBlockRootClientId:i,getBlockIndex:s}=(0,Q_.useSelect)(yt.store);return(0,Um.useRefEffect)(l=>{function c(u){if(u.defaultPrevented||u.keyCode!==Vd.ENTER)return;let{text:d}=n(e)??{};if(d?.length)return;u.preventDefault();let p=o(i(e)),m=s(e),f=(0,Eu.cloneBlock)({...p,innerBlocks:p.innerBlocks.slice(0,m)}),g=(0,Eu.createBlock)((0,Eu.getDefaultBlockName)()),h=p.innerBlocks.slice(m+1),b=h.length?[(0,Eu.cloneBlock)({...p,innerBlocks:h})]:[];t(p.clientId,[f,g,...b],1),r(g.clientId)}return s4e(l,"keydown",c,!0)},[])}function u4e(e){let{attributes:t,setAttributes:r,className:o,isSelected:n,onReplace:i,mergeBlocks:s,clientId:l,context:c}=e,{tagName:u,linkTarget:d,placeholder:p,rel:m,style:f,text:g,url:h,metadata:b}=t,_=f?.dimensions?.width;Pt(e);let v=u||"a";function w(de){Vd.isKeyboardEvent.primary(de,"k")?X(de):Vd.isKeyboardEvent.primaryShift(de,"k")&&(Q(),M.current?.focus())}let[x,k]=(0,zn.useState)(null),C=(0,yt.__experimentalUseBorderProps)(t),S=(0,yt.__experimentalUseColorProps)(t),P=(0,yt.__experimentalGetSpacingClassesAndStyles)(t),B=(0,yt.__experimentalGetShadowClassesAndStyles)(t),N=(0,yt.__experimentalGetDimensionsClassesAndStyles)(t),E=(0,zn.useRef)(),M=(0,zn.useRef)(),R=(0,yt.useBlockProps)({ref:(0,Um.useMergeRefs)([k,E]),onKeyDown:w}),O=(0,yt.useBlockEditingMode)(),[j,V]=(0,zn.useState)(!1),G=!!h,$=d===K4,z=!!m?.includes(Rh),K=v==="a",{createPageEntity:q,userCanCreatePages:Y,lockUrlControls:oe=!1}=(0,Q_.useSelect)(de=>{if(!n)return{};let re=de(yt.store).getSettings(),Pe=(0,Eu.getBlockBindingsSource)(b?.bindings?.url?.source);return{createPageEntity:re.__experimentalCreatePageEntity,userCanCreatePages:re.__experimentalUserCanCreatePages,lockUrlControls:!!b?.bindings?.url&&!Pe?.canUserEditValue?.({select:de,context:c,args:b?.bindings?.url?.args})}},[c,n,b?.bindings?.url]);async function Z(de){let re=await q({title:de,status:"draft"});return{id:re.id,type:re.type,title:re.title.rendered,url:re.link,kind:"post-type"}}function U(de){return(0,zn.createInterpolateElement)((0,Bs.sprintf)((0,Bs.__)("Create page: <mark>%s</mark>"),de),{mark:(0,Vn.jsx)("mark",{})})}function X(de){de.preventDefault(),V(!0)}function Q(){r({url:void 0,linkTarget:void 0,rel:void 0}),V(!1)}(0,zn.useEffect)(()=>{n||V(!1)},[n]);let ie=(0,zn.useMemo)(()=>({url:h,opensInNewTab:$,nofollow:z}),[h,$,z]),me=c4e(l),xe=(0,Um.useMergeRefs)([me,M]),[Be,se,he]=(0,yt.useSettings)("typography.fluid","layout","dimensions.dimensionSizes"),ze=(0,zn.useMemo)(()=>he?[...he?.custom??[],...he?.theme??[],...he?.default??[]]:[],[he]),qe=(0,yt.getTypographyClassesAndStyles)(t,{typography:{fluid:Be},layout:{wideSize:se?.wideSize}}),ce=(0,zn.useMemo)(()=>{if(!_)return;let de="var:preset|dimension|";if(_.startsWith(de)){let re=_.slice(de.length);return ze?.find(Se=>Se.slug===re)?.size??_}return _},[_,ze]),Qe=O==="default"||K&&!oe,ye=T(R.className,iZ(ce)),fe=(0,zn.useMemo)(()=>_?AL(ce)?{"--wp--block-button--width":parseFloat(ce)}:N.style:{},[_,ce,N.style]);return(0,Vn.jsxs)(Vn.Fragment,{children:[(0,Vn.jsx)("div",{...R,className:ye,style:{...R.style,...fe},children:(0,Vn.jsx)(yt.RichText,{ref:xe,"aria-label":(0,Bs.__)("Button text"),placeholder:p||(0,Bs.__)("Add text\u2026"),value:g,onChange:de=>r({text:Y_(de)}),withoutInteractiveFormatting:!0,className:T(o,"wp-block-button__link",S.className,C.className,qe.className,{"no-border-radius":f?.border?.radius===0,"has-custom-font-size":R.style.fontSize},(0,yt.__experimentalGetElementClassName)("button")),style:{...C.style,...S.style,...P.style,...B.style,...qe.style,writingMode:void 0},onReplace:i,onMerge:s,identifier:"text"})}),Qe&&(0,Vn.jsx)(yt.BlockControls,{group:"block",children:K&&!oe&&(0,Vn.jsx)(Dh.ToolbarButton,{name:"link",icon:G?Fy:Pi,title:G?(0,Bs.__)("Unlink"):(0,Bs.__)("Link"),shortcut:G?Vd.displayShortcut.primaryShift("k"):Vd.displayShortcut.primary("k"),onClick:G?Q:X,isActive:G})}),K&&n&&(j||G)&&!oe&&(0,Vn.jsx)(Dh.Popover,{placement:"bottom",onClose:()=>{V(!1),M.current?.focus()},anchor:x,focusOnMount:j?"firstElement":!1,__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:(0,Vn.jsx)(yt.LinkControl,{value:ie,onChange:({url:de,opensInNewTab:re,nofollow:Pe})=>r(eZ({rel:m,url:de,opensInNewTab:re,nofollow:Pe})),onRemove:()=>{Q(),M.current?.focus()},forceIsEditingLink:j,settings:l4e,createSuggestion:q&&Z,withCreateSuggestion:Y,createSuggestionButtonText:U})}),(0,Vn.jsxs)(yt.InspectorControls,{group:"advanced",children:[(0,Vn.jsx)(i4e,{tagName:u,onChange:de=>r({tagName:de}),options:[{label:(0,Bs.__)("Default (<a>)"),value:"a"},{label:"<button>",value:"button"}]}),K&&(0,Vn.jsx)(Dh.TextControl,{label:(0,Bs.__)("Link relation"),help:(0,zn.createInterpolateElement)((0,Bs.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Vn.jsx)(bl,{openInNewTab:!0,href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:m||"",onChange:de=>r({rel:de})})]})]})}var sZ=u4e;var Q4={$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 Hn=a(I(),1),OL=a(y(),1);function lZ({attributes:e}){let{tagName:t,type:r,fontSize:o,linkTarget:n,rel:i,style:s,text:l,title:c,url:u}=e,d=t||"a",p=d==="button",m=r||"button",f=(0,Hn.__experimentalGetBorderClassesAndStyles)(e),g=(0,Hn.__experimentalGetColorClassesAndStyles)(e),h=(0,Hn.__experimentalGetSpacingClassesAndStyles)(e),b=(0,Hn.__experimentalGetShadowClassesAndStyles)(e),_=(0,Hn.getTypographyClassesAndStyles)(e),v=T("wp-block-button__link",g.className,f.className,_.className,{"no-border-radius":s?.border?.radius===0,"has-custom-font-size":o||s?.typography?.fontSize},(0,Hn.__experimentalGetElementClassName)("button")),w={...f.style,...g.style,...h.style,...b.style,..._.style,writingMode:void 0};return(0,OL.jsx)("div",{...Hn.useBlockProps.save(),children:(0,OL.jsx)(Hn.RichText.Content,{tagName:d,type:p?m:null,className:v,href:p?null:u,title:c,style:w,value:l,target:p?null:n,rel:p?null:i})})}var{name:uZ}=Q4,dZ={icon:CP,example:{attributes:{className:"is-style-fill",text:(0,cZ.__)("Call to action")}},edit:sZ,save:lZ,deprecated:Qq,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t}),__experimentalLabel(e,{context:t}){let{text:r}=e,o=e?.metadata?.name,n=r?.trim().length>0;if(t==="list-view"&&(o||n))return o||r;if(t==="breadcrumb"&&o)return o}},p4e=()=>D({name:uZ,metadata:Q4,settings:dZ});var HL={};J(HL,{init:()=>v4e,metadata:()=>J4,name:()=>_Z,settings:()=>xZ});var zL=a(L(),1);var J_=a(I(),1),X_=a(y(),1),pZ=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},m4e=[{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:pZ,save({attributes:{contentJustification:e,orientation:t}}){return(0,X_.jsx)("div",{...J_.useBlockProps.save({className:T({[`is-content-justification-${e}`]:e,"is-vertical":t==="vertical"})}),children:(0,X_.jsx)(J_.InnerBlocks.Content,{})})}},{supports:{align:["center","left","right"],anchor:!0},save(){return(0,X_.jsx)("div",{children:(0,X_.jsx)(J_.InnerBlocks.Content,{})})},isEligible({align:e}){return e&&["center","left","right"].includes(e)},migrate(e){return pZ({...e,align:void 0,contentJustification:e.align})}}],mZ=m4e;var t2=a(te(),1),VL=a(vl(),1);var e2=a(te(),1);function Pu(e,t,r=null){if(!e)return;let o=(0,e2.getBlockType)(t);if(!o)return;let n={};if((0,e2.hasBlockSupport)(o,"anchor")&&e.anchor&&(n.anchor=e.anchor),(0,e2.hasBlockSupport)(o,"ariaLabel")&&e.ariaLabel&&(n.ariaLabel=e.ariaLabel),e.metadata){let i=[];if(r&&i.push("id","bindings"),i.length>0){let s=Object.entries(e.metadata).reduce((l,[c,u])=>(i.includes(c)&&(l[c]=c==="bindings"?r(u):u),l),{});Object.keys(s).length>0&&(n.metadata=s)}}if(Object.keys(n).length!==0)return n}var f4e={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,t2.createBlock)("core/buttons",{},e.map(t=>(0,t2.createBlock)("core/button",t)))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,t2.createBlock)("core/buttons",{},e.map(t=>{let{content:r}=t,o=(0,VL.__unstableCreateElement)(document,r),n=o.innerText||"",s=o.querySelector("a")?.getAttribute("href");return(0,t2.createBlock)("core/button",{...t,...Pu(t,"core/button",({content:l})=>({text:l})),text:n,url:s})})),isMatch:e=>e.every(t=>{let r=(0,VL.__unstableCreateElement)(document,t.content),o=r.innerText||"",n=r.querySelectorAll("a");return o.length<=30&&n.length<=1})}]},gZ=f4e;var X4=a(I(),1),hZ=a(y(),1),g4e={name:"core/button"};function h4e({attributes:e,className:t}){let{fontSize:r,layout:o,style:n}=e,i=(0,X4.useBlockProps)({className:T(t,{"has-custom-font-size":r||n?.typography?.fontSize})}),s=(0,X4.useInnerBlocksProps)(i,{defaultBlock:g4e,orientation:o?.orientation??"horizontal"});return(0,hZ.jsx)("div",{...s})}var bZ=h4e;var J4={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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 eC=a(I(),1),yZ=a(y(),1);function vZ({attributes:e,className:t}){let{fontSize:r,style:o}=e,n=eC.useBlockProps.save({className:T(t,{"has-custom-font-size":r||o?.typography?.fontSize})}),i=eC.useInnerBlocksProps.save(n);return(0,yZ.jsx)("div",{...i})}var{name:_Z}=J4,y4e=[["core/button"]],xZ={icon:TP,example:{attributes:{layout:{type:"flex",justifyContent:"center"}},innerBlocks:[{name:"core/button",attributes:{text:(0,zL.__)("Find out more")}},{name:"core/button",attributes:{text:(0,zL.__)("Contact us")}}]},deprecated:mZ,transforms:gZ,template:y4e,templateInsertUpdatesSelection:!0,edit:bZ,save:vZ},v4e=()=>D({name:_Z,metadata:J4,settings:xZ});var UL={};J(UL,{init:()=>w4e,metadata:()=>tC,name:()=>BZ,settings:()=>IZ});var tC={$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 r2=a(F(),1),kZ=a(H(),1),wZ=a(bd(),1),CZ=a(I(),1),SZ=a(ae(),1),Ah=a(L(),1),TZ=a(_e(),1);var Ni=a(y(),1),x4e=Bh(e=>{if(!e)return{};let t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}});function EZ({attributes:e,name:t}){let{date:r,hasPosts:o,hasPostsResolved:n}=(0,kZ.useSelect)(d=>{let{getEntityRecords:p,hasFinishedResolution:m}=d(SZ.store),f={status:"publish",per_page:1},g=p("postType","post",f),h=m("getEntityRecords",["postType","post",f]),b,_=d("core/editor");return _&&_.getEditedPostAttribute("type")==="post"&&(b=_.getEditedPostAttribute("date")),{date:b,hasPostsResolved:h,hasPosts:h&&g?.length===1}},[]),{content:i,status:s,error:l}=(0,wZ.useServerSideRender)({attributes:{...e,...x4e(r)},block:t}),c=(0,TZ.useDisabled)(),u=(0,CZ.useBlockProps)({ref:c});return o?(0,Ni.jsxs)(Ni.Fragment,{children:[s==="loading"&&(0,Ni.jsx)("div",{...u,children:(0,Ni.jsx)(r2.Spinner,{})}),s==="error"&&(0,Ni.jsx)("div",{...u,children:(0,Ni.jsx)("p",{children:(0,Ah.sprintf)((0,Ah.__)("Error: %s"),l)})}),s==="success"&&(0,Ni.jsx)(Eo,{wrapperProps:u,html:i})]}):(0,Ni.jsx)("div",{...u,children:(0,Ni.jsx)(r2.Placeholder,{icon:Hb,label:(0,Ah.__)("Calendar"),children:n?(0,Ah.__)("No published posts found."):(0,Ni.jsx)(r2.Spinner,{})})})}var jL=a(te(),1),k4e={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,jL.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,jL.createBlock)("core/archives")}]},PZ=k4e;var{name:BZ}=tC,IZ={icon:Hb,example:{},edit:EZ,transforms:PZ},w4e=()=>D({name:BZ,metadata:tC,settings:IZ});var $L={};J($L,{init:()=>T4e,metadata:()=>rC,name:()=>AZ,settings:()=>OZ});var rC={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textColumns:!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}},shadow:!0},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"};var Dr=a(F(),1),NZ=a(_e(),1),Oh=a(I(),1),MZ=a($o(),1),Rr=a(L(),1);var WL=a(ae(),1),LZ=a(H(),1);var RZ=a(br(),1);var Ct=a(y(),1);function GL({attributes:{displayAsDropdown:e,showHierarchy:t,showPostCounts:r,showOnlyTopLevel:o,showEmpty:n,label:i,showLabel:s,taxonomy:l},setAttributes:c,className:u,clientId:d}){let p=(0,NZ.useInstanceId)(GL,"blocks-category-select"),{records:m,isResolvingTaxonomies:f}=(0,WL.useEntityRecords)("root","taxonomy",{per_page:-1}),g=m?.filter(G=>G.visibility.public),h=g?.find(G=>G.slug===l),b=!f&&h?.hierarchical,_={per_page:-1,hide_empty:!n,context:"view"};b&&o&&(_.parent=0);let{records:v,isResolving:w}=(0,WL.useEntityRecords)("taxonomy",l,_),{createWarningNotice:x}=(0,LZ.useDispatch)(RZ.store),k=G=>{G.preventDefault(),x((0,Rr.__)("Links are disabled in the editor."),{id:`block-library/core/categories/redirection-prevented/${d}`,type:"snackbar"})},C=G=>v?.length?G===null?v:v.filter(({parent:$})=>$===G):[],S=G=>$=>c({[G]:$}),P=G=>G?(0,MZ.decodeEntities)(G).trim():(0,Rr.__)("(Untitled)"),B=()=>C(b&&t?0:null).map(z=>N(z)),N=G=>{let $=C(G.id),{id:z,link:K,count:q,name:Y}=G;return(0,Ct.jsxs)("li",{className:`cat-item cat-item-${z}`,children:[(0,Ct.jsx)("a",{href:K,onClick:k,children:P(Y)}),r&&` (${q})`,b&&t&&!!$.length&&(0,Ct.jsx)("ul",{className:"children",children:$.map(oe=>N(oe))})]},z)},E=()=>{let $=C(b&&t?0:null);return(0,Ct.jsxs)(Ct.Fragment,{children:[s?(0,Ct.jsx)(Oh.RichText,{className:"wp-block-categories__label","aria-label":(0,Rr.__)("Label text"),placeholder:h?.name,withoutInteractiveFormatting:!0,value:i,onChange:z=>c({label:z})}):(0,Ct.jsx)(ln,{render:(0,Ct.jsx)("label",{htmlFor:p}),children:i||h?.name}),(0,Ct.jsxs)("select",{id:p,children:[(0,Ct.jsx)("option",{children:(0,Rr.sprintf)((0,Rr.__)("Select %s"),h?.labels?.singular_name)}),$.map(z=>M(z,0))]})]})},M=(G,$)=>{let{id:z,count:K,name:q}=G,Y=C(z);return[(0,Ct.jsxs)("option",{className:`level-${$}`,children:[Array.from({length:$*3}).map(()=>"\xA0"),P(q),r&&` (${K})`]},z),b&&t&&!!Y.length&&Y.map(oe=>M(oe,$+1))]},R=v?.length&&!e&&!w?"ul":"div",O=T(u,`wp-block-categories-taxonomy-${l}`,{"wp-block-categories-list":!!v?.length&&!e&&!w,"wp-block-categories-dropdown":!!v?.length&&e&&!w}),j=(0,Oh.useBlockProps)({className:O}),V=ee();return(0,Ct.jsxs)(R,{...j,children:[(0,Ct.jsx)(Oh.InspectorControls,{children:(0,Ct.jsxs)(Dr.__experimentalToolsPanel,{label:(0,Rr.__)("Settings"),resetAll:()=>{c({taxonomy:"category",displayAsDropdown:!1,showHierarchy:!1,showPostCounts:!1,showOnlyTopLevel:!1,showEmpty:!1,showLabel:!0})},dropdownMenuProps:V,children:[Array.isArray(g)&&(0,Ct.jsx)(Dr.__experimentalToolsPanelItem,{hasValue:()=>l!=="category",label:(0,Rr.__)("Taxonomy"),onDeselect:()=>{c({taxonomy:"category"})},isShownByDefault:!0,children:(0,Ct.jsx)(Dr.SelectControl,{label:(0,Rr.__)("Taxonomy"),options:g.map(G=>({label:G.name,value:G.slug})),value:l,onChange:G=>c({taxonomy:G})})}),(0,Ct.jsx)(Dr.__experimentalToolsPanelItem,{hasValue:()=>!!e,label:(0,Rr.__)("Display as dropdown"),onDeselect:()=>c({displayAsDropdown:!1}),isShownByDefault:!0,children:(0,Ct.jsx)(Dr.ToggleControl,{label:(0,Rr.__)("Display as dropdown"),checked:e,onChange:S("displayAsDropdown")})}),e&&(0,Ct.jsx)(Dr.__experimentalToolsPanelItem,{hasValue:()=>!s,label:(0,Rr.__)("Show label"),onDeselect:()=>c({showLabel:!0}),isShownByDefault:!0,children:(0,Ct.jsx)(Dr.ToggleControl,{className:"wp-block-categories__indentation",label:(0,Rr.__)("Show label"),checked:s,onChange:S("showLabel")})}),(0,Ct.jsx)(Dr.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,Rr.__)("Show post counts"),onDeselect:()=>c({showPostCounts:!1}),isShownByDefault:!0,children:(0,Ct.jsx)(Dr.ToggleControl,{label:(0,Rr.__)("Show post counts"),checked:r,onChange:S("showPostCounts")})}),b&&(0,Ct.jsx)(Dr.__experimentalToolsPanelItem,{hasValue:()=>!!o,label:(0,Rr.__)("Show only top level terms"),onDeselect:()=>c({showOnlyTopLevel:!1}),isShownByDefault:!0,children:(0,Ct.jsx)(Dr.ToggleControl,{label:(0,Rr.__)("Show only top level terms"),checked:o,onChange:S("showOnlyTopLevel")})}),(0,Ct.jsx)(Dr.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,Rr.__)("Show empty terms"),onDeselect:()=>c({showEmpty:!1}),isShownByDefault:!0,children:(0,Ct.jsx)(Dr.ToggleControl,{label:(0,Rr.__)("Show empty terms"),checked:n,onChange:S("showEmpty")})}),b&&!o&&(0,Ct.jsx)(Dr.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Rr.__)("Show hierarchy"),onDeselect:()=>c({showHierarchy:!1}),isShownByDefault:!0,children:(0,Ct.jsx)(Dr.ToggleControl,{label:(0,Rr.__)("Show hierarchy"),checked:t,onChange:S("showHierarchy")})})]})}),w&&(0,Ct.jsx)(Dr.Placeholder,{icon:av,label:(0,Rr.__)("Terms"),children:(0,Ct.jsx)(Dr.Spinner,{})}),!w&&v?.length===0&&(0,Ct.jsx)("p",{children:h.labels.no_terms}),!w&&v?.length>0&&(e?E():B())]})}var oC=a(L(),1);var S4e=[{name:"terms",title:(0,oC.__)("Terms List"),icon:_d,attributes:{taxonomy:"post_tag"},isActive:e=>e.taxonomy!=="category"},{name:"categories",title:(0,oC.__)("Categories List"),description:(0,oC.__)("Display a list of all categories."),icon:_d,attributes:{taxonomy:"category"},isActive:["taxonomy"],isDefault:!0}],DZ=S4e;var{name:AZ}=rC,OZ={icon:_d,example:{},edit:GL,variations:DZ},T4e=()=>D({name:AZ,metadata:rC,settings:OZ});var ZL={};J(ZL,{init:()=>N4e,metadata:()=>sC,name:()=>n2,settings:()=>QZ});var Bu=a(I(),1),$Z=a(H(),1),Iu=a(F(),1),Vh=a(W(),1),o2=a(L(),1);var FZ=a(L(),1),VZ=a(F(),1),nC=a(H(),1),aC=a(te(),1),qL=a(I(),1),zZ=a(y(),1),E4e=({clientId:e})=>{let{replaceBlocks:t}=(0,nC.useDispatch)(qL.store),r=(0,nC.useSelect)(o=>o(qL.store).getBlock(e),[e]);return(0,zZ.jsx)(VZ.ToolbarButton,{onClick:()=>t(r.clientId,(0,aC.rawHandler)({HTML:(0,aC.serialize)(r)})),children:(0,FZ.__)("Convert to blocks")})},HZ=E4e;var jZ=a(I(),1),_l=a(F(),1),iC=a(W(),1),Fh=a(L(),1),UZ=a(H(),1);var WZ=a(_e(),1),Is=a(y(),1);function P4e({onClick:e,isModalFullScreen:t}){return(0,WZ.useViewportMatch)("small","<")?null:(0,Is.jsx)(_l.Button,{size:"compact",onClick:e,icon:fm,isPressed:t,label:t?(0,Fh.__)("Exit fullscreen"):(0,Fh.__)("Enter fullscreen")})}function B4e(e){let t=(0,UZ.useSelect)(r=>r(jZ.store).getSettings().styles);return(0,iC.useEffect)(()=>{let{baseURL:r,suffix:o,settings:n}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:r,suffix:o}),window.wp.oldEditor.initialize(e.id,{tinymce:{...n,setup(i){i.on("init",()=>{let s=i.getDoc();t.forEach(({css:l})=>{let c=s.createElement("style");c.innerHTML=l,s.head.appendChild(c)})})}}}),()=>{window.wp.oldEditor.remove(e.id)}},[]),(0,Is.jsx)("textarea",{...e})}function GZ({clientId:e,content:t,onClose:r,onChange:o}){let[n,i]=(0,iC.useState)(!1),s=`editor-${e}`;return(0,Is.jsxs)(_l.Modal,{title:(0,Fh.__)("Classic Editor"),onRequestClose:r,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:n,className:"block-editor-freeform-modal__content",headerActions:(0,Is.jsx)(P4e,{onClick:()=>i(!n),isModalFullScreen:n}),children:[(0,Is.jsx)(B4e,{id:s,defaultValue:t}),(0,Is.jsxs)(_l.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Is.jsx)(_l.FlexItem,{children:(0,Is.jsx)(_l.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:r,children:(0,Fh.__)("Cancel")})}),(0,Is.jsx)(_l.FlexItem,{children:(0,Is.jsx)(_l.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{o(window.wp.oldEditor.getContent(s)),r()},children:(0,Fh.__)("Save")})})]})]})}var un=a(y(),1);function qZ({attributes:e,setAttributes:t,clientId:r}){let{content:o}=e,[n,i]=(0,Vh.useState)(!1),s=(0,Vh.useRef)(null),l=(0,$Z.useSelect)(c=>c(Bu.store).canRemoveBlock(r),[r]);return(0,un.jsxs)(un.Fragment,{children:[l&&(0,un.jsx)(Bu.BlockControls,{children:(0,un.jsx)(Iu.ToolbarGroup,{children:(0,un.jsx)(HZ,{clientId:r})})}),(0,un.jsx)(Bu.BlockControls,{children:(0,un.jsx)(Iu.ToolbarGroup,{children:(0,un.jsx)(Iu.ToolbarButton,{ref:s,onClick:()=>i(!0),children:(0,o2.__)("Edit")})})}),(0,un.jsxs)("div",{...(0,Bu.useBlockProps)(),children:[o?(0,un.jsx)(Vh.RawHTML,{children:o}):(0,un.jsx)(Iu.Placeholder,{icon:(0,un.jsx)(Bu.BlockIcon,{icon:Ub}),label:(0,o2.__)("Classic"),instructions:(0,o2.__)("Use the classic editor to add content."),children:(0,un.jsx)(Iu.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>i(!0),children:(0,o2.__)("Edit contents")})}),n&&(0,un.jsx)(GZ,{clientId:r,content:o,onClose:()=>{i(!1),s.current&&s.current.focus()},onChange:c=>t({content:c})})]})]})}var sC={$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 ZZ=a(W(),1),KZ=a(y(),1);function YZ({attributes:e}){let{content:t}=e;return(0,KZ.jsx)(ZZ.RawHTML,{children:t})}var{name:n2}=sC,QZ={icon:Ub,edit:qZ,save:YZ},N4e=()=>D({name:n2,metadata:sC,settings:QZ});var XL={};J(XL,{init:()=>A4e,metadata:()=>uC,name:()=>nK,settings:()=>aK});var oK=a(L(),1);var KL=a(L(),1),lC=a(I(),1),cC=a(te(),1),YL=a(y(),1);function XZ({attributes:e,setAttributes:t,onRemove:r,insertBlocksAfter:o,mergeBlocks:n}){let i=(0,lC.useBlockProps)();return(0,YL.jsx)("pre",{...i,children:(0,YL.jsx)(lC.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:s=>t({content:s}),onRemove:r,onMerge:n,placeholder:(0,KL.__)("Write code\u2026"),"aria-label":(0,KL.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:o?()=>o((0,cC.createBlock)((0,cC.getDefaultBlockName)())):void 0,style:{whiteSpace:"break-spaces"}})})}var uC={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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}},shadow:!0,interactivity:{clientNavigation:!0}},style:"wp-block-code"};var dC=a(I(),1);var JZ=a(_e(),1);function eK(e){return(0,JZ.pipe)(L4e,R4e)(e||"")}function L4e(e){return e.replace(/\[/g,"&#91;")}function R4e(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1&#47;&#47;$2")}var QL=a(y(),1);function tK({attributes:e}){return(0,QL.jsx)("pre",{...dC.useBlockProps.save(),children:(0,QL.jsx)(dC.RichText.Content,{tagName:"code",value:eK(typeof e.content=="string"?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}))})})}var Wm=a(te(),1),pC=a(vl(),1);var D4e={from:[{type:"input",regExp:/^```$/,transform:()=>(0,Wm.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,Wm.createBlock)("core/code",{...e,...Pu(e,"core/code"),content:t})}},{type:"block",blocks:["core/html"],__experimentalConvert(e){let{attributes:t}=e;return(0,Wm.createBlock)("core/code",{...t,...Pu(t,"core/code"),content:(0,pC.toHTMLString)({value:(0,pC.create)({text:(0,Wm.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,Wm.createBlock)("core/paragraph",{...Pu(e,"core/paragraph"),content:t})}}]},rK=D4e;var{name:nK}=uC,aK={icon:Wb,example:{attributes:{content:(0,oK.__)(`// A \u201Cblock\u201D is the abstract term used
12 // to describe units of markup that
13 // when composed together, form the
14 // content or layout of a page.
15 registerBlockType( name, settings );`)}},merge(e,t){return{content:e.content+`
16
17 `+t.content}},transforms:rK,edit:XZ,save:tK},A4e=()=>D({name:nK,metadata:uC,settings:aK});var eR={};J(eR,{init:()=>H4e,metadata:()=>fC,name:()=>dK,settings:()=>pK});var iK=a(I(),1),JL=a(y(),1),O4e=[{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=T({[`is-vertically-aligned-${t}`]:t}),n={flexBasis:r+"%"};return(0,JL.jsx)("div",{className:o,style:n,children:(0,JL.jsx)(iK.InnerBlocks.Content,{})})}}],sK=O4e;var dn=a(I(),1),zd=a(F(),1),mC=a(H(),1),Gm=a(L(),1);var Mi=a(y(),1);function F4e({width:e,setAttributes:t}){let[r]=(0,dn.useSettings)("spacing.units"),o=(0,zd.__experimentalUseCustomUnits)({availableUnits:r||["%","px","em","rem","vw"]}),n=ee();return(0,Mi.jsx)(zd.__experimentalToolsPanel,{label:(0,Gm.__)("Settings"),resetAll:()=>{t({width:void 0})},dropdownMenuProps:n,children:(0,Mi.jsx)(zd.__experimentalToolsPanelItem,{hasValue:()=>e!==void 0,label:(0,Gm.__)("Width"),onDeselect:()=>t({width:void 0}),isShownByDefault:!0,children:(0,Mi.jsx)(zd.__experimentalUnitControl,{label:(0,Gm.__)("Width"),__unstableInputWidth:"calc(50% - 8px)",value:e||"",onChange:i=>{i=0>parseFloat(i)?"0":i,t({width:i})},units:o})})})}function V4e({attributes:{verticalAlignment:e,width:t,templateLock:r,allowedBlocks:o},setAttributes:n,clientId:i}){let s=T("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),{columnsIds:l,hasChildBlocks:c,rootClientId:u}=(0,mC.useSelect)(v=>{let{getBlockOrder:w,getBlockRootClientId:x}=v(dn.store),k=x(i);return{hasChildBlocks:w(i).length>0,rootClientId:k,columnsIds:w(k)}},[i]),{updateBlockAttributes:d}=(0,mC.useDispatch)(dn.store),p=v=>{n({verticalAlignment:v}),d(u,{verticalAlignment:null})},m=Number.isFinite(t)?t+"%":t,f=(0,dn.useBlockProps)({className:s,style:m?{flexBasis:m}:void 0}),g=l.length,h=l.indexOf(i)+1,b=(0,Gm.sprintf)((0,Gm.__)("%1$s (%2$d of %3$d)"),f["aria-label"],h,g),_=(0,dn.useInnerBlocksProps)({...f,"aria-label":b},{templateLock:r,allowedBlocks:o,renderAppender:c?!1:dn.InnerBlocks.ButtonBlockAppender});return(0,Mi.jsxs)(Mi.Fragment,{children:[(0,Mi.jsx)(dn.BlockControls,{children:(0,Mi.jsx)(dn.BlockVerticalAlignmentToolbar,{onChange:p,value:e,controls:["top","center","bottom","stretch"]})}),(0,Mi.jsx)(dn.InspectorControls,{children:(0,Mi.jsx)(F4e,{width:t,setAttributes:n})}),(0,Mi.jsx)("div",{..._})]})}var lK=V4e;var fC={$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,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:{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 gC=a(I(),1),cK=a(y(),1);function uK({attributes:e}){let{verticalAlignment:t,width:r}=e,o=T({[`is-vertically-aligned-${t}`]:t}),n;if(r&&/\d/.test(r)){let l=Number.isFinite(r)?r+"%":r;!Number.isFinite(r)&&r?.endsWith("%")&&(l=Math.round(Number.parseFloat(r)*1e12)/1e12+"%"),n={flexBasis:l}}let i=gC.useBlockProps.save({className:o,style:n}),s=gC.useInnerBlocksProps.save(i);return(0,cK.jsx)("div",{...s})}var{name:dK}=fC,pK={icon:HP,edit:lK,save:uK,deprecated:sK},H4e=()=>D({name:dK,metadata:fC,settings:pK});var oR={};J(oR,{init:()=>iCe,metadata:()=>yC,name:()=>TK,settings:()=>EK});var a2=a(L(),1);var mK=a(te(),1),qm=a(I(),1),$m=a(y(),1);function hC(e){let{doc:t}=hC;t||(t=document.implementation.createHTMLDocument(""),hC.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 j4e=e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;let t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);let{customTextColor:r,customBackgroundColor:o,...n}=e;return{...n,style:t,isStackedOnMobile:!0}},fK=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:j4e,save({attributes:e}){let{verticalAlignment:t,backgroundColor:r,customBackgroundColor:o,textColor:n,customTextColor:i}=e,s=(0,qm.getColorClassName)("background-color",r),l=(0,qm.getColorClassName)("color",n),c=T({"has-background":r||o,"has-text-color":n||i,[s]:s,[l]:l,[`are-vertically-aligned-${t}`]:t});return(0,$m.jsx)("div",{className:c||void 0,style:{backgroundColor:s?void 0:o,color:l?void 0:i},children:(0,$m.jsx)(qm.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},isEligible(e,t){return t.some(o=>/layout-column-\d+/.test(o.originalContent))?t.some(o=>hC(o.originalContent)!==void 0):!1},migrate(e,t){let o=t.reduce((s,l)=>{let{originalContent:c}=l,u=hC(c);return u===void 0&&(u=0),s[u]||(s[u]=[]),s[u].push(l),s},[]).map(s=>(0,mK.createBlock)("core/column",{},s)),{columns:n,...i}=e;return[{...i,isStackedOnMobile:!0},o]},save({attributes:e}){let{columns:t}=e;return(0,$m.jsx)("div",{className:`has-${t}-columns`,children:(0,$m.jsx)(qm.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=T(`has-${r}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,$m.jsx)("div",{className:o,children:(0,$m.jsx)(qm.InnerBlocks.Content,{})})}}];var Zm=a(L(),1),Ms=a(F(),1),ro=a(I(),1),Ns=a(H(),1),Km=a(te(),1);var bC=e=>{let t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function gK(e,t){let{width:r=100/t}=e.attributes;return bC(r)}function U4e(e,t=e.length){return e.reduce((r,o)=>r+gK(o,t),0)}function W4e(e,t=e.length){return e.reduce((r,o)=>{let n=gK(o,t);return Object.assign(r,{[o.clientId]:n})},{})}function tR(e,t,r=e.length){let o=U4e(e,r);return Object.fromEntries(Object.entries(W4e(e,r)).map(([n,i])=>{let s=t*i/o;return[n,bC(s)]}))}function hK(e){return e.every(t=>{let r=t.attributes.width;return Number.isFinite(r?.endsWith?.("%")?parseFloat(r):r)})}function rR(e,t){return e.map(r=>({...r,attributes:{...r.attributes,width:`${t[r.clientId]}%`}}))}var Bo=a(y(),1),G4e={name:"core/column"};function $4e({clientId:e,setAttributes:t,isStackedOnMobile:r}){let{count:o,canInsertColumnBlock:n,minCount:i}=(0,Ns.useSelect)(d=>{let{canInsertBlockType:p,canRemoveBlock:m,getBlockOrder:f}=d(ro.store),g=f(e),h=g.reduce((b,_,v)=>(m(_)||b.push(v),b),[]);return{count:g.length,canInsertColumnBlock:p("core/column",e),minCount:Math.max(...h)+1}},[e]),{getBlocks:s}=(0,Ns.useSelect)(ro.store),{replaceInnerBlocks:l}=(0,Ns.useDispatch)(ro.store);function c(d,p){let m=s(e),f=hK(m),g=p>d;if(g&&f){let h=bC(100/p),b=p-d,_=tR(m,100-h*b);m=[...rR(m,_),...Array.from({length:b}).map(()=>(0,Km.createBlock)("core/column",{width:`${h}%`}))]}else if(g)m=[...m,...Array.from({length:p-d}).map(()=>(0,Km.createBlock)("core/column"))];else if(p<d&&(m=m.slice(0,-(d-p)),f)){let h=tR(m,100);m=rR(m,h)}l(e,m)}let u=ee();return(0,Bo.jsxs)(Ms.__experimentalToolsPanel,{label:(0,Zm.__)("Settings"),resetAll:()=>{t({isStackedOnMobile:!0})},dropdownMenuProps:u,children:[n&&(0,Bo.jsxs)(Ms.__experimentalVStack,{spacing:4,style:{gridColumn:"1 / -1"},children:[(0,Bo.jsx)(Ms.RangeControl,{label:(0,Zm.__)("Columns"),value:o,onChange:d=>c(o,Math.max(i,d)),min:Math.max(1,i),max:Math.max(6,o)}),o>6&&(0,Bo.jsx)(Ms.Notice,{status:"warning",isDismissible:!1,children:(0,Zm.__)("This column count exceeds the recommended amount and may cause visual breakage.")})]}),(0,Bo.jsx)(Ms.__experimentalToolsPanelItem,{label:(0,Zm.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>r!==!0,onDeselect:()=>t({isStackedOnMobile:!0}),children:(0,Bo.jsx)(Ms.ToggleControl,{label:(0,Zm.__)("Stack on mobile"),checked:r,onChange:()=>t({isStackedOnMobile:!r})})})]})}function q4e({attributes:e,setAttributes:t,clientId:r}){let{isStackedOnMobile:o,verticalAlignment:n,templateLock:i}=e,s=(0,Ns.useRegistry)(),{getBlockOrder:l}=(0,Ns.useSelect)(ro.store),{updateBlockAttributes:c}=(0,Ns.useDispatch)(ro.store),u=T({[`are-vertically-aligned-${n}`]:n,"is-not-stacked-on-mobile":!o}),d=(0,ro.useBlockProps)({className:u}),p=(0,ro.useInnerBlocksProps)(d,{defaultBlock:G4e,directInsert:!0,orientation:"horizontal",renderAppender:!1,templateLock:i});function m(f){let g=l(r);s.batch(()=>{t({verticalAlignment:f}),c(g,{verticalAlignment:f})})}return(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(ro.BlockControls,{children:(0,Bo.jsx)(ro.BlockVerticalAlignmentToolbar,{onChange:m,value:n})}),(0,Bo.jsx)(ro.InspectorControls,{children:(0,Bo.jsx)($4e,{clientId:r,setAttributes:t,isStackedOnMobile:o})}),(0,Bo.jsx)("div",{...p})]})}function Z4e({clientId:e,name:t,setAttributes:r}){let{blockType:o,variations:n}=(0,Ns.useSelect)(l=>{let{getBlockVariations:c,getBlockType:u}=l(Km.store);return{blockType:u(t),variations:c(t,"block")}},[t]),{replaceInnerBlocks:i}=(0,Ns.useDispatch)(ro.store),s=(0,ro.useBlockProps)();return(0,Bo.jsx)("div",{...s,children:(0,Bo.jsx)(ro.__experimentalBlockVariationPicker,{icon:o?.icon?.src,label:o?.title,variations:n,instructions:(0,Zm.__)("Divide into columns. Select a layout:"),onSelect:l=>{l.attributes&&r(l.attributes),l.innerBlocks&&i(e,(0,Km.createBlocksFromInnerBlocksTemplate)(l.innerBlocks),!0)}})})}var K4e=e=>{let{clientId:t}=e,o=(0,Ns.useSelect)(n=>n(ro.store).getBlocks(t).length>0,[t])?q4e:Z4e;return(0,Bo.jsx)(o,{...e})},bK=K4e;var yC={$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}},background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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 vC=a(I(),1),yK=a(y(),1);function vK({attributes:e}){let{isStackedOnMobile:t,verticalAlignment:r}=e,o=T({[`are-vertically-aligned-${r}`]:r,"is-not-stacked-on-mobile":!t}),n=vC.useBlockProps.save({className:o}),i=vC.useInnerBlocksProps.save(n);return(0,yK.jsx)("div",{...i})}var Xa=a(F(),1),Li=a(L(),1),Ri=a(y(),1),Q4e=[{name:"one-column-full",title:(0,Li.__)("100"),description:(0,Li.__)("One column"),icon:(0,Ri.jsx)(Xa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ri.jsx)(Xa.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,Li.__)("50 / 50"),description:(0,Li.__)("Two columns; equal split"),icon:(0,Ri.jsx)(Xa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ri.jsx)(Xa.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,Li.__)("33 / 66"),description:(0,Li.__)("Two columns; one-third, two-thirds split"),icon:(0,Ri.jsx)(Xa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ri.jsx)(Xa.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,Li.__)("66 / 33"),description:(0,Li.__)("Two columns; two-thirds, one-third split"),icon:(0,Ri.jsx)(Xa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ri.jsx)(Xa.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,Li.__)("33 / 33 / 33"),description:(0,Li.__)("Three columns; equal split"),icon:(0,Ri.jsx)(Xa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ri.jsx)(Xa.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,Li.__)("25 / 50 / 25"),description:(0,Li.__)("Three columns; wide center column"),icon:(0,Ri.jsx)(Xa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ri.jsx)(Xa.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"]}],_K=Q4e;var Io=a(te(),1),X4e=6,xK=["top","center","bottom"],J4e=[...xK,"stretch"],eCe=["fixed","fixedNoShrink"],kK={type:"default"},gc=e=>e&&typeof e=="object"&&!Array.isArray(e)?e:{},wK=e=>{let t=(0,Io.getBlockType)("core/group")?.attributes;if(!t)return{};let r=gc(e);return Object.fromEntries(Object.entries(r).filter(([o])=>Object.hasOwn(t,o)))},CK=e=>{if(Number.isFinite(e))return`${e}%`;if(typeof e=="string"&&/\d/.test(e))return e},tCe=(e,t)=>{let r=+(100/t).toFixed(2),o=Array.from({length:t},(n,i)=>["core/column",{width:`${r}%`},e.filter((s,l)=>l%t===i)]);return(0,Io.createBlocksFromInnerBlocksTemplate)(o)},rCe=e=>e.map(t=>{let r=gc(t?.attributes?.style),{selfStretch:o,flexSize:n,...i}=gc(r.layout),s=eCe.includes(o)?CK(n):void 0,l={...r};Object.keys(i).length?l.layout=i:delete l.layout;let c=(0,Io.cloneSanitizedBlock)(t,{style:Object.keys(l).length?l:void 0});return(0,Io.createBlock)("core/column",s?{width:s}:{},[c])}),oCe=e=>e.flatMap(t=>{let r=t.innerBlocks||[],{layout:o,style:n,...i}=wK(t?.attributes),s=gc(n),l=gc(o),c=Object.keys(i).length>0,u=Object.keys(s).length>0,d=Object.keys(l).length>0;return r.length>1||c||u||d?[(0,Io.createBlock)("core/group",{...i,layout:d?l:kK,...u&&{style:s}},r)]:r}),nCe=e=>{let t=e.map(n=>CK(n?.attributes?.width)),r=t.every(n=>!n),o=e.length?`${+(100/e.length).toFixed(2)}%`:void 0;return e.map((n,i)=>{let s=Array.isArray(n?.innerBlocks)?n.innerBlocks:[],l=t[i]||(r?o:void 0),c=l?{selfStretch:"fixed",flexSize:l}:{selfStretch:"fill"},{layout:u,style:d,...p}=wK(n?.attributes),m=gc(d),f=gc(u),g=Object.keys(p).length>0,h=Object.keys(m).length>0,b=Object.keys(f).length>0;if(s.length===1&&!g&&!h&&!b){let _=s[0],v=gc(_.attributes?.style),x={...gc(v.layout),...c};return l||delete x.flexSize,(0,Io.cloneSanitizedBlock)(_,{style:{...v,layout:x}})}return(0,Io.createBlock)("core/group",{...p,layout:b?f:kK,style:{...m,layout:{...gc(m.layout),...c}}},s)})},aCe={from:[{type:"block",blocks:["core/group"],priority:1,transform:(e,t)=>{let{layout:r,...o}=e,{columnCount:n}=r;return(0,Io.createBlock)("core/columns",o,tCe(t,n))},isMatch:({layout:e})=>e?.type==="grid"&&Number.isInteger(e?.columnCount)&&e.columnCount>0},{type:"block",blocks:["core/group"],priority:1,transform:(e,t)=>{let{layout:r,...o}=e,n=xK.includes(r?.verticalAlignment)?r.verticalAlignment:void 0;return(0,Io.createBlock)("core/columns",{...o,verticalAlignment:n},rCe(t))},isMatch:({layout:e})=>e?.type==="flex"&&e?.orientation!=="vertical"},{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{let t=+(100/e.length).toFixed(2),r=e.map(({name:o,attributes:n,innerBlocks:i,innerContent:s})=>["core/column",{width:`${t}%`},[[o,{...n},i,s]]]);return(0,Io.createBlock)("core/columns",{},(0,Io.createBlocksFromInnerBlocksTemplate)(r))},isMatch:({length:e},t)=>t.length===1&&t[0].name==="core/columns"?!1:e&&e<=X4e},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{let{align:r,backgroundColor:o,textColor:n,style:i,mediaAlt:s,mediaId:l,mediaPosition:c,mediaSizeSlug:u,mediaType:d,mediaUrl:p,mediaWidth:m,verticalAlignment:f}=e,g;if(d==="image"||!d){let b={id:l,alt:s,url:p,sizeSlug:u},_={href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel};g=["core/image",{...b,..._}]}else g=["core/video",{id:l,src:p}];let h=[["core/column",{width:`${m}%`},[g]],["core/column",{width:`${100-m}%`},t]];return c==="right"&&h.reverse(),(0,Io.createBlock)("core/columns",{align:r,backgroundColor:o,textColor:n,style:i,verticalAlignment:f},(0,Io.createBlocksFromInnerBlocksTemplate)(h))}}],to:[{type:"block",blocks:["core/group"],variationName:"group-row",transform:(e,t)=>{let{verticalAlignment:r}=e,o=J4e.includes(r)?r:"stretch";return(0,Io.createBlock)("core/group",{...e,isStackedOnMobile:void 0,verticalAlignment:void 0,layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:o}},nCe(t))}},{type:"block",blocks:["core/group"],variationName:"group-grid",transform:(e,t)=>{let r=t.length;return(0,Io.createBlock)("core/group",{...e,isStackedOnMobile:void 0,verticalAlignment:void 0,layout:{type:"grid",...r&&{columnCount:r}}},oCe(t))}}],ungroup:(e,t)=>t.flatMap(r=>r.innerBlocks)},SK=aCe;var{name:TK}=yC,EK={icon:UP,variations:_K,example:{viewportWidth:782,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,a2.__)("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,a2.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,a2.__)("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,a2.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:fK,edit:bK,save:vK,transforms:SK},iCe=()=>D({name:TK,metadata:yC,settings:EK});var sR={};J(sR,{init:()=>pCe,metadata:()=>_C,name:()=>GK,settings:()=>$K});var _C={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,button:!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 xC=a(I(),1),nR=a(y(),1),lCe={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=xC.useBlockProps.save(),{className:r}=t,n=(r?.split(" ")||[])?.filter(s=>s!=="wp-block-comments"),i={...t,className:n.join(" ")};return(0,nR.jsx)(e,{...i,children:(0,nR.jsx)(xC.InnerBlocks.Content,{})})}},PK=[lCe];var SC=a(I(),1);var BK=a(L(),1),i2=a(I(),1);var kC=a(y(),1),{HTMLElementControl:cCe}=le(i2.privateApis);function IK({attributes:{tagName:e},setAttributes:t}){return(0,kC.jsx)(i2.InspectorControls,{children:(0,kC.jsx)(i2.InspectorControls,{group:"advanced",children:(0,kC.jsx)(cCe,{tagName:e,onChange:r=>t({tagName:r}),options:[{label:(0,BK.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})})}var jd=a(I(),1),iR=a(L(),1),VK=a(F(),1);var RK=a(I(),1),mo=a(L(),1),DK=a(H(),1),AK=a(ae(),1),OK=a(W(),1);var Ls=a(L(),1),Hd=a(I(),1),NK=a(F(),1),MK=a(_e(),1),wC=a(ae(),1),aR=a(H(),1),ya=a(y(),1),LK=()=>{let e=(0,MK.useInstanceId)(LK);return(0,ya.jsxs)("div",{className:"comment-respond",children:[(0,ya.jsx)("h3",{className:"comment-reply-title",children:(0,Ls.__)("Leave a Reply")}),(0,ya.jsxs)("form",{noValidate:!0,className:"comment-form",onSubmit:t=>t.preventDefault(),children:[(0,ya.jsxs)("p",{children:[(0,ya.jsx)("label",{htmlFor:`comment-${e}`,children:(0,Ls.__)("Comment")}),(0,ya.jsx)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8",readOnly:!0})]}),(0,ya.jsx)("p",{className:"form-submit wp-block-button",children:(0,ya.jsx)("input",{name:"submit",type:"submit",className:T("wp-block-button__link",(0,Hd.__experimentalGetElementClassName)("button")),label:(0,Ls.__)("Post Comment"),value:(0,Ls.__)("Post Comment"),"aria-disabled":"true"})})]})]})},uCe=({postId:e,postType:t})=>{let[r,o]=(0,wC.useEntityProp)("postType",t,"comment_status",e),n=t===void 0||e===void 0,i=(0,aR.useSelect)(l=>l(Hd.store).getSettings().__experimentalDiscussionSettings?.defaultCommentStatus,[]),s=(0,aR.useSelect)(l=>t?!!l(wC.store).getPostType(t)?.supports.comments:!1);if(!n&&r!=="open")if(r==="closed"){let l=[(0,ya.jsx)(NK.Button,{__next40pxDefaultSize:!0,onClick:()=>o("open"),variant:"primary",children:(0,Ls._x)("Enable comments","action that affects the current post")},"enableComments")];return(0,ya.jsx)(Hd.Warning,{actions:l,children:(0,Ls.__)("Post Comments Form block: Comments are not enabled for this item.")})}else if(s){if(i!=="open")return(0,ya.jsx)(Hd.Warning,{children:(0,Ls.__)("Post Comments Form block: Comments are not enabled.")})}else return(0,ya.jsx)(Hd.Warning,{children:(0,Ls.sprintf)((0,Ls.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t)});return(0,ya.jsx)(LK,{})},CC=uCe;var pt=a(y(),1);function FK({postType:e,postId:t}){let[r]=(0,AK.useEntityProp)("postType",e,"title",t);r=r||(0,mo.__)("Post Title");let o=(0,DK.useSelect)(n=>n(RK.store).getSettings().__experimentalDiscussionSettings?.avatarURL,[]);return(0,pt.jsxs)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true",children:[(0,pt.jsx)("h3",{children:(0,mo.sprintf)((0,mo.__)("One response to %s"),r)}),(0,pt.jsxs)("div",{className:"navigation",children:[(0,pt.jsx)("div",{className:"alignleft",children:(0,pt.jsxs)("a",{href:"#top",children:["\xAB ",(0,mo.__)("Older Comments")]})}),(0,pt.jsx)("div",{className:"alignright",children:(0,pt.jsxs)("a",{href:"#top",children:[(0,mo.__)("Newer Comments")," \xBB"]})})]}),(0,pt.jsx)("ol",{className:"commentlist",children:(0,pt.jsx)("li",{className:"comment even thread-even depth-1",children:(0,pt.jsxs)("article",{className:"comment-body",children:[(0,pt.jsxs)("footer",{className:"comment-meta",children:[(0,pt.jsxs)("div",{className:"comment-author vcard",children:[(0,pt.jsx)("img",{alt:(0,mo.__)("Commenter Avatar"),src:o,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,pt.jsx)("b",{className:"fn",children:(0,pt.jsx)("a",{href:"#top",className:"url",children:(0,mo.__)("A WordPress Commenter")})})," ",(0,pt.jsxs)("span",{className:"says",children:[(0,mo.__)("says"),":"]})]}),(0,pt.jsxs)("div",{className:"comment-metadata",children:[(0,pt.jsx)("a",{href:"#top",children:(0,pt.jsx)("time",{dateTime:"2000-01-01T00:00:00+00:00",children:(0,mo.__)("January 1, 2000 at 00:00 am")})})," ",(0,pt.jsx)("span",{className:"edit-link",children:(0,pt.jsx)("a",{className:"comment-edit-link",href:"#top",children:(0,mo.__)("Edit")})})]})]}),(0,pt.jsx)("div",{className:"comment-content",children:(0,pt.jsxs)("p",{children:[(0,mo.__)("Hi, this is a comment."),(0,pt.jsx)("br",{}),(0,mo.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,pt.jsx)("br",{}),(0,OK.createInterpolateElement)((0,mo.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,pt.jsx)("a",{href:"https://gravatar.com/"})})]})}),(0,pt.jsx)("div",{className:"reply",children:(0,pt.jsx)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,mo.__)("Reply to A WordPress Commenter"),children:(0,mo._x)("Reply","verb")})})]})})}),(0,pt.jsxs)("div",{className:"navigation",children:[(0,pt.jsx)("div",{className:"alignleft",children:(0,pt.jsxs)("a",{href:"#top",children:["\xAB ",(0,mo.__)("Older Comments")]})}),(0,pt.jsx)("div",{className:"alignright",children:(0,pt.jsxs)("a",{href:"#top",children:[(0,mo.__)("Newer Comments")," \xBB"]})})]}),(0,pt.jsx)(CC,{postId:t,postType:e})]})}var xl=a(y(),1);function zK({attributes:e,setAttributes:t,context:{postType:r,postId:o}}){let{textAlign:n}=e,i=[(0,xl.jsx)(VK.Button,{__next40pxDefaultSize:!0,onClick:()=>{t({legacy:!1})},variant:"primary",children:(0,iR.__)("Switch to editable mode")},"convert")],s=(0,jd.useBlockProps)({className:T({[`has-text-align-${n}`]:n})});return(0,xl.jsxs)(xl.Fragment,{children:[(0,xl.jsx)(jd.BlockControls,{group:"block",children:(0,xl.jsx)(jd.AlignmentControl,{value:n,onChange:l=>{t({textAlign:l})}})}),(0,xl.jsxs)("div",{...s,children:[(0,xl.jsx)(jd.Warning,{actions:i,children:(0,iR.__)("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,xl.jsx)(FK,{postId:o,postType:r})]})]})}var Ud=a(y(),1);function HK(e){let{attributes:t,setAttributes:r,clientId:o}=e,{tagName:n,legacy:i}=t,s=(0,SC.useBlockProps)(),l=(0,SC.useInnerBlocksProps)(s);return i?(0,Ud.jsx)(zK,{...e}):(0,Ud.jsxs)(Ud.Fragment,{children:[(0,Ud.jsx)(IK,{attributes:t,setAttributes:r,clientId:o}),(0,Ud.jsx)(n,{...l})]})}var TC=a(I(),1),jK=a(y(),1);function UK({attributes:{tagName:e,legacy:t}}){let r=TC.useBlockProps.save(),o=TC.useInnerBlocksProps.save(r);return t?null:(0,jK.jsx)(e,{...o})}var dCe=[["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"]],WK=dCe;var{name:GK}=_C,$K={icon:bI,example:{},template:WK,edit:HK,save:UK,deprecated:PK},pCe=()=>D({name:GK,metadata:_C,settings:$K});var cR={};J(cR,{init:()=>fCe,metadata:()=>EC,name:()=>KK,settings:()=>YK});var EC={$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 Wd=a(I(),1),zh=a(F(),1),lR=a(ae(),1),qK=a(H(),1),Ym=a(L(),1),kl=a(y(),1);function ZK({attributes:e,context:{commentId:t},setAttributes:r,isSelected:o}){let{height:n,width:i}=e,[s]=(0,lR.useEntityProp)("root","comment","author_avatar_urls",t),[l]=(0,lR.useEntityProp)("root","comment","author_name",t),c=s?Object.values(s):null,u=s?Object.keys(s):null,d=u?u[0]:24,p=u?u[u.length-1]:96,m=(0,Wd.useBlockProps)(),f=(0,Wd.__experimentalGetSpacingClassesAndStyles)(e),g=Math.floor(p*2.5),h=(0,qK.useSelect)(v=>{let{__experimentalDiscussionSettings:w}=v(Wd.store).getSettings();return w?.avatarURL},[]),b=(0,kl.jsx)(Wd.InspectorControls,{children:(0,kl.jsx)(zh.PanelBody,{title:(0,Ym.__)("Settings"),children:(0,kl.jsx)(zh.RangeControl,{label:(0,Ym.__)("Image size"),onChange:v=>r({width:v,height:v}),min:d,max:g,initialPosition:i,value:i})})}),_=(0,kl.jsx)(zh.ResizableBox,{size:{width:i,height:n},showHandle:o,onResizeStop:(v,w,x,k)=>{r({height:parseInt(n+k.height,10),width:parseInt(i+k.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Ym.isRTL)(),bottom:!0,left:(0,Ym.isRTL)()},minWidth:d,maxWidth:g,children:(0,kl.jsx)("img",{src:c?c[c.length-1]:h,alt:`${l} ${(0,Ym.__)("Avatar")}`,...m})});return(0,kl.jsxs)(kl.Fragment,{children:[b,(0,kl.jsx)("div",{...f,children:_})]})}var{name:KK}=EC,YK={icon:qb,edit:ZK},fCe=()=>D({name:KK,metadata:EC,settings:YK});var uR={};J(uR,{init:()=>yCe,metadata:()=>PC,name:()=>tY,settings:()=>rY});var PC={$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,background:{gradient:!0},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 Nu=a(L(),1),QK=a(H(),1),BC=a(I(),1),XK=a(ae(),1),Gd=a(F(),1);var Di=a(y(),1);function JK(e){let{attributes:{isLink:t,linkTarget:r},context:{commentId:o},setAttributes:n}=e;Pt(e);let i=ee(),s=(0,BC.useBlockProps)(),l=(0,QK.useSelect)(d=>{let{getEntityRecord:p}=d(XK.store),m=p("root","comment",o),f=m?.author_name;return m&&!f?p("root","user",m.author)?.name??(0,Nu.__)("Anonymous"):f??""},[o]),c=(0,Di.jsx)(BC.InspectorControls,{children:(0,Di.jsxs)(Gd.__experimentalToolsPanel,{label:(0,Nu.__)("Settings"),resetAll:()=>{n({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:i,children:[(0,Di.jsx)(Gd.__experimentalToolsPanelItem,{label:(0,Nu.__)("Link to authors URL"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>n({isLink:!0}),children:(0,Di.jsx)(Gd.ToggleControl,{label:(0,Nu.__)("Link to authors URL"),onChange:()=>n({isLink:!t}),checked:t})}),t&&(0,Di.jsx)(Gd.__experimentalToolsPanelItem,{label:(0,Nu.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r!=="_self",onDeselect:()=>n({linkTarget:"_self"}),children:(0,Di.jsx)(Gd.ToggleControl,{label:(0,Nu.__)("Open in new tab"),onChange:d=>n({linkTarget:d?"_blank":"_self"}),checked:r==="_blank"})})]})});return(!o||!l)&&(l=(0,Nu._x)("Comment Author","block title")),(0,Di.jsxs)(Di.Fragment,{children:[c,(0,Di.jsx)("div",{...s,children:t?(0,Di.jsx)("a",{href:"#comment-author-pseudo-link",onClick:d=>d.preventDefault(),children:l}):l})]})}var hCe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},bCe={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:or,isEligible({style:e}){return e?.typography?.fontFamily}},eY=[hCe,bCe];var{name:tY}=PC,rY={icon:WP,edit:JK,deprecated:eY,example:{}},yCe=()=>D({name:tY,metadata:PC,settings:rY});var dR={};J(dR,{init:()=>xCe,metadata:()=>IC,name:()=>uY,settings:()=>dY});var IC={$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,background:{gradient:!0},color:{gradients:!0,heading:!0,button:!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 oY=a(L(),1),nY=a(W(),1),aY=a(F(),1),iY=a(ae(),1),sY=a(I(),1);var wl=a(y(),1);function lY(e){let{context:{commentId:t}}=e;Pt(e);let r=(0,sY.useBlockProps)(),[o]=(0,iY.useEntityProp)("root","comment","content",t);return!t||!o?(0,wl.jsx)(wl.Fragment,{children:(0,wl.jsx)("div",{...r,children:(0,wl.jsx)("p",{children:(0,oY._x)("Comment Content","block title")})})}):(0,wl.jsx)(wl.Fragment,{children:(0,wl.jsx)("div",{...r,children:(0,wl.jsx)(aY.Disabled,{children:(0,wl.jsx)(nY.RawHTML,{children:o.rendered},"html")})})})}var _Ce={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},cY=[_Ce];var{name:uY}=IC,dY={icon:$P,edit:lY,deprecated:cY,example:{}},xCe=()=>D({name:uY,metadata:IC,settings:dY});var mR={};J(mR,{init:()=>CCe,metadata:()=>NC,name:()=>gY,settings:()=>hY});var NC={$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,background:{gradient:!0},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 pR=a(ae(),1),Xm=a(MC(),1),Hh=a(I(),1),Jm=a(F(),1),Qm=a(L(),1);var va=a(y(),1);function mY({attributes:{format:e,isLink:t},context:{commentId:r},setAttributes:o}){let n=(0,Hh.useBlockProps)(),i=ee(),[s]=(0,pR.useEntityProp)("root","comment","date",r),[l=(0,Xm.getSettings)().formats.date]=(0,pR.useEntityProp)("root","site","date_format"),c=(0,va.jsx)(Hh.InspectorControls,{children:(0,va.jsxs)(Jm.__experimentalToolsPanel,{label:(0,Qm.__)("Settings"),resetAll:()=>{o({format:void 0,isLink:!0})},dropdownMenuProps:i,children:[(0,va.jsx)(Jm.__experimentalToolsPanelItem,{label:(0,Qm.__)("Date format"),hasValue:()=>e!==void 0,onDeselect:()=>o({format:void 0}),isShownByDefault:!0,children:(0,va.jsx)(Hh.__experimentalDateFormatPicker,{format:e,defaultFormat:l,onChange:d=>o({format:d})})}),(0,va.jsx)(Jm.__experimentalToolsPanelItem,{label:(0,Qm.__)("Link to comment"),hasValue:()=>!t,onDeselect:()=>o({isLink:!0}),isShownByDefault:!0,children:(0,va.jsx)(Jm.ToggleControl,{label:(0,Qm.__)("Link to comment"),onChange:()=>o({isLink:!t}),checked:t})})]})});(!r||!s)&&(s=(0,Qm._x)("Comment Date","block title"));let u=s instanceof Date?(0,va.jsx)("time",{dateTime:(0,Xm.dateI18n)("c",s),children:e==="human-diff"?(0,Xm.humanTimeDiff)(s):(0,Xm.dateI18n)(e||l,s)}):(0,va.jsx)("time",{children:s});return t&&(u=(0,va.jsx)("a",{href:"#comment-date-pseudo-link",onClick:d=>d.preventDefault(),children:u})),(0,va.jsxs)(va.Fragment,{children:[c,(0,va.jsx)("div",{...n,children:u})]})}var wCe={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:or,isEligible({style:e}){return e?.typography?.fontFamily}},fY=[wCe];var{name:gY}=NC,hY={icon:mv,edit:mY,deprecated:fY,example:{}},CCe=()=>D({name:gY,metadata:NC,settings:hY});var fR={};J(fR,{init:()=>ECe,metadata:()=>LC,name:()=>vY,settings:()=>_Y});var LC={$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,background:{gradient:!0},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 RC=a(I(),1),jh=a(F(),1),s2=a(L(),1);var Cl=a(y(),1);function bY(e){let{attributes:t,setAttributes:r}=e,{linkTarget:o}=t;Pt(e);let n=(0,RC.useBlockProps)(),i=ee(),s=(0,Cl.jsx)(RC.InspectorControls,{children:(0,Cl.jsx)(jh.__experimentalToolsPanel,{label:(0,s2.__)("Settings"),resetAll:()=>{r({linkTarget:"_self"})},dropdownMenuProps:i,children:(0,Cl.jsx)(jh.__experimentalToolsPanelItem,{label:(0,s2.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>o==="_blank",onDeselect:()=>r({linkTarget:"_self"}),children:(0,Cl.jsx)(jh.ToggleControl,{label:(0,s2.__)("Open in new tab"),onChange:l=>r({linkTarget:l?"_blank":"_self"}),checked:o==="_blank"})})})});return(0,Cl.jsxs)(Cl.Fragment,{children:[s,(0,Cl.jsx)("div",{...n,children:(0,Cl.jsx)("a",{href:"#edit-comment-pseudo-link",onClick:l=>l.preventDefault(),children:(0,s2.__)("Edit")})})]})}var TCe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},yY=[TCe];var{name:vY}=LC,_Y={icon:qP,edit:bY,deprecated:yY,example:{}},ECe=()=>D({name:vY,metadata:LC,settings:_Y});var gR={};J(gR,{init:()=>NCe,metadata:()=>DC,name:()=>SY,settings:()=>TY});var DC={$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,background:{gradient:!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 xY=a(L(),1),kY=a(I(),1);var Uh=a(y(),1);function BCe(e){Pt(e);let t=(0,kY.useBlockProps)();return(0,Uh.jsx)(Uh.Fragment,{children:(0,Uh.jsx)("div",{...t,children:(0,Uh.jsx)("a",{href:"#comment-reply-pseudo-link",onClick:r=>r.preventDefault(),children:(0,xY._x)("Reply","verb")})})})}var wY=BCe;var ICe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},CY=[ICe];var{name:SY}=DC,TY={edit:wY,icon:ZP,deprecated:CY,example:{}},NCe=()=>D({name:SY,metadata:DC,settings:TY});var bR={};J(bR,{init:()=>VCe,metadata:()=>AC,name:()=>UY,settings:()=>WY});var AC={$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 OC=a(W(),1),hR=a(H(),1),DY=a(L(),1),Sl=a(I(),1),AY=a(F(),1),OY=a(ae(),1);var ef=a(W(),1),BY=a(H(),1),IY=a(I(),1),NY=a(qt(),1),MY=a(l2(),1),PY=100,LY=({postId:e})=>{let t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:r,commentsPerPage:o,defaultCommentsPage:n}=(0,BY.useSelect)(l=>{let{getSettings:c}=l(IY.store),{__experimentalDiscussionSettings:u}=c();return u??{}},[]),i=r?Math.min(o,PY):PY,s=LCe({defaultPage:n,postId:e,perPage:i,queryArgs:t});return(0,ef.useMemo)(()=>s?{...t,post:e,per_page:i,page:s}:null,[e,i,s])},LCe=({defaultPage:e,postId:t,perPage:r,queryArgs:o})=>{let[n,i]=(0,ef.useState)({}),s=`${t}_${r}`,l=n[s]||0;return(0,ef.useEffect)(()=>{l||e!=="newest"||(0,MY.default)({path:(0,NY.addQueryArgs)("/wp/v2/comments",{...o,post:t,per_page:r,_fields:"id"}),method:"HEAD",parse:!1}).then(c=>{let u=parseInt(c.headers.get("X-WP-TotalPages"));i({...n,[s]:u<=1?1:u})}).catch(()=>{i({...n,[s]:1})})},[e,t,r,i]),e==="newest"?l:1},RY=e=>(0,ef.useMemo)(()=>e?.map(({id:r,_embedded:o})=>{let[n]=o?.children||[[]];return{commentId:r,children:n.map(i=>({commentId:i.id}))}}),[e]);var Ai=a(y(),1),RCe=({perPage:e,pageComments:t,threadComments:r,threadCommentsDepth:o})=>{let n=r?Math.min(o,3):1,i=l=>{if(l<n){let c=l+1;return[{commentId:-(l+3),children:i(c)}]}return[]},s=[{commentId:-1,children:i(1)}];return(!t||e>=2)&&n<3&&s.push({commentId:-2,children:[]}),(!t||e>=3)&&n<2&&s.push({commentId:-3,children:[]}),s};function DCe({comment:e,activeCommentId:t,setActiveCommentId:r,firstCommentId:o,blocks:n}){let{children:i,...s}=(0,Sl.useInnerBlocksProps)({});return(0,Ai.jsxs)("li",{...s,children:[e.commentId===(t||o)?i:null,(0,Ai.jsx)(OCe,{blocks:n,commentId:e.commentId,setActiveCommentId:r,isHidden:e.commentId===(t||o)}),e?.children?.length>0?(0,Ai.jsx)(FY,{comments:e.children,activeCommentId:t,setActiveCommentId:r,blocks:n,firstCommentId:o}):null]})}var ACe=({blocks:e,commentId:t,setActiveCommentId:r,isHidden:o})=>{let n=(0,Sl.__experimentalUseBlockPreview)({blocks:e}),i=()=>{r(t)};return(0,Ai.jsx)("div",{...n,tabIndex:0,role:"button",style:{display:o?"none":void 0},onClick:i,onKeyPress:i})},OCe=(0,OC.memo)(ACe),FY=({comments:e,blockProps:t,activeCommentId:r,setActiveCommentId:o,blocks:n,firstCommentId:i})=>(0,Ai.jsx)("ol",{...t,children:e&&e.map(({commentId:s,...l},c)=>(0,Ai.jsx)(Sl.BlockContextProvider,{value:{commentId:s<0?null:s},children:(0,Ai.jsx)(DCe,{comment:{commentId:s,...l},activeCommentId:r,setActiveCommentId:o,blocks:n,firstCommentId:i})},l.commentId||c))});function VY({clientId:e,context:{postId:t}}){let r=(0,Sl.useBlockProps)(),[o,n]=(0,OC.useState)(),{commentOrder:i,threadCommentsDepth:s,threadComments:l,commentsPerPage:c,pageComments:u}=(0,hR.useSelect)(g=>{let{getSettings:h}=g(Sl.store);return h().__experimentalDiscussionSettings??{}},[]),d=LY({postId:t}),{topLevelComments:p,blocks:m}=(0,hR.useSelect)(g=>{let{getEntityRecords:h}=g(OY.store),{getBlocks:b}=g(Sl.store);return{topLevelComments:d?h("root","comment",d):null,blocks:b(e)}},[e,d]),f=RY(i==="desc"&&p?[...p].reverse():p);return p?(t||(f=RCe({perPage:c,pageComments:u,threadComments:l,threadCommentsDepth:s})),f.length?(0,Ai.jsx)(FY,{comments:f,blockProps:r,blocks:m,activeCommentId:o,setActiveCommentId:n,firstCommentId:f[0]?.commentId}):(0,Ai.jsx)("p",{...r,children:(0,DY.__)("No results found.")})):(0,Ai.jsx)("p",{...r,children:(0,Ai.jsx)(AY.Spinner,{})})}var zY=a(I(),1),HY=a(y(),1);function jY(){return(0,HY.jsx)(zY.InnerBlocks.Content,{})}var{name:UY}=AC,FCe=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]],WY={icon:hm,template:FCe,edit:VY,save:jY},VCe=()=>D({name:UY,metadata:AC,settings:WY});var vR={};J(vR,{init:()=>jCe,metadata:()=>FC,name:()=>qY,settings:()=>ZY});var $Y=a(L(),1);var FC={$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,background:{gradient:!0,__experimentalDefaultControls:{gradient:!0}},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 yR=a(L(),1),VC=a(I(),1),c2=a(y(),1),HCe={none:"",arrow:"\u2190",chevron:"\xAB"};function GY({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":r}}){let o=HCe[r];return(0,c2.jsxs)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:n=>n.preventDefault(),...(0,VC.useBlockProps)(),children:[o&&(0,c2.jsx)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${r}`,children:o}),(0,c2.jsx)(VC.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,yR.__)("Older comments page link"),placeholder:(0,yR.__)("Older Comments"),value:e,onChange:n=>t({label:n})})]})}var{name:qY}=FC,ZY={icon:Bv,edit:GY,example:{attributes:{label:(0,$Y.__)("Older Comments")}}},jCe=()=>D({name:qY,metadata:FC,settings:ZY});var xR={};J(xR,{init:()=>GCe,metadata:()=>zC,name:()=>eQ,settings:()=>tQ});var zC={$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,background:{gradient:!0},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 HC=a(L(),1),El=a(I(),1),_R=a(H(),1),jC=a(F(),1);var tf=a(L(),1),Wh=a(F(),1),Gh=a(y(),1);function KY({value:e,onChange:t}){return(0,Gh.jsxs)(Wh.__experimentalToggleGroupControl,{label:(0,tf.__)("Arrow"),value:e,onChange:t,help:(0,tf.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0,children:[(0,Gh.jsx)(Wh.__experimentalToggleGroupControlOption,{value:"none",label:(0,tf._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Gh.jsx)(Wh.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,tf._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Gh.jsx)(Wh.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,tf._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")})]})}var Tl=a(y(),1);function YY({attributes:{paginationArrow:e},setAttributes:t,clientId:r}){let o=(0,_R.useSelect)(c=>{let{getBlocks:u}=c(El.store);return u(r)?.find(p=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(p.name))},[]),n=(0,El.useBlockProps)(),i=ee(),s=(0,El.useInnerBlocksProps)(n);return(0,_R.useSelect)(c=>{let{getSettings:u}=c(El.store),{__experimentalDiscussionSettings:d}=u();return d?.pageComments},[])?(0,Tl.jsxs)(Tl.Fragment,{children:[o&&(0,Tl.jsx)(El.InspectorControls,{children:(0,Tl.jsx)(jC.__experimentalToolsPanel,{label:(0,HC.__)("Settings"),dropdownMenuProps:i,resetAll:()=>t({paginationArrow:"none"}),children:(0,Tl.jsx)(jC.__experimentalToolsPanelItem,{label:(0,HC.__)("Arrow"),hasValue:()=>e!=="none",onDeselect:()=>t({paginationArrow:"none"}),isShownByDefault:!0,children:(0,Tl.jsx)(KY,{value:e,onChange:c=>{t({paginationArrow:c})}})})})}),(0,Tl.jsx)("div",{...s})]}):(0,Tl.jsx)(El.Warning,{children:(0,HC.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings")})}var QY=a(I(),1),XY=a(y(),1);function JY(){return(0,XY.jsx)(QY.InnerBlocks.Content,{})}var{name:eQ}=zC,WCe=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]],tQ={icon:Iv,template:WCe,edit:YY,save:JY},GCe=()=>D({name:eQ,metadata:zC,settings:tQ});var wR={};J(wR,{init:()=>ZCe,metadata:()=>UC,name:()=>nQ,settings:()=>aQ});var oQ=a(L(),1);var UC={$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,background:{gradient:!0},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 kR=a(L(),1),WC=a(I(),1),u2=a(y(),1),qCe={none:"",arrow:"\u2192",chevron:"\xBB"};function rQ({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":r}}){let o=qCe[r];return(0,u2.jsxs)("a",{href:"#comments-pagination-next-pseudo-link",onClick:n=>n.preventDefault(),...(0,WC.useBlockProps)(),children:[(0,u2.jsx)(WC.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,kR.__)("Newer comments page link"),placeholder:(0,kR.__)("Newer Comments"),value:e,onChange:n=>t({label:n})}),o&&(0,u2.jsx)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${r}`,children:o})]})}var{name:nQ}=UC,aQ={icon:Ev,edit:rQ,example:{attributes:{label:(0,oQ.__)("Newer Comments")}}},ZCe=()=>D({name:nQ,metadata:UC,settings:aQ});var CR={};J(CR,{init:()=>YCe,metadata:()=>GC,name:()=>lQ,settings:()=>cQ});var GC={$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,background:{gradient:!0},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 iQ=a(I(),1),Rs=a(y(),1),rf=({content:e,tag:t="a",extraClass:r=""})=>t==="a"?(0,Rs.jsx)(t,{className:`page-numbers ${r}`,href:"#comments-pagination-numbers-pseudo-link",onClick:o=>o.preventDefault(),children:e}):(0,Rs.jsx)(t,{className:`page-numbers ${r}`,children:e});function sQ(){return(0,Rs.jsxs)("div",{...(0,iQ.useBlockProps)(),children:[(0,Rs.jsx)(rf,{content:"1"}),(0,Rs.jsx)(rf,{content:"2"}),(0,Rs.jsx)(rf,{content:"3",tag:"span",extraClass:"current"}),(0,Rs.jsx)(rf,{content:"4"}),(0,Rs.jsx)(rf,{content:"5"}),(0,Rs.jsx)(rf,{content:"...",tag:"span",extraClass:"dots"}),(0,Rs.jsx)(rf,{content:"8"})]})}var{name:lQ}=GC,cQ={icon:Pv,edit:sQ,example:{}},YCe=()=>D({name:lQ,metadata:GC,settings:cQ});var SR={};J(SR,{init:()=>e3e,metadata:()=>$C,name:()=>hQ,settings:()=>bQ});var $C={$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,background:{gradient:!0},__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 hc=a(I(),1),Gr=a(L(),1),uQ=a(ae(),1),$d=a(F(),1),qC=a(W(),1),dQ=a(H(),1),pQ=a(l2(),1),mQ=a(qt(),1);var Ja=a(y(),1);function fQ(e){Pt(e);let{attributes:t,setAttributes:r,context:o}=e,{showPostTitle:n,showCommentsCount:i,level:s=2,levelOptions:l}=t,{postId:c,postType:u}=o,d="h"+s,[p,m]=(0,qC.useState)(),[f]=(0,uQ.useEntityProp)("postType",u,"title",c),g=typeof c>"u",h=(0,hc.useBlockProps)(),{threadCommentsDepth:b,threadComments:_,commentsPerPage:v,pageComments:w}=(0,dQ.useSelect)(B=>{let{getSettings:N}=B(hc.store);return N().__experimentalDiscussionSettings??{}},[]),x=ee();(0,qC.useEffect)(()=>{if(g){let N=_?Math.min(b,3)-1:0,E=w?v:3,M=parseInt(N)+parseInt(E);m(Math.min(M,3));return}let B=c;(0,pQ.default)({path:(0,mQ.addQueryArgs)("/wp/v2/comments",{post:c,_fields:"id"}),method:"HEAD",parse:!1}).then(N=>{B===c&&m(parseInt(N.headers.get("X-WP-Total")))}).catch(()=>{m(0)})},[c]);let k=(0,Ja.jsx)(hc.BlockControls,{group:"block",children:(0,Ja.jsx)(hc.HeadingLevelDropdown,{value:s,options:l,onChange:B=>r({level:B})})}),C=(0,Ja.jsx)(hc.InspectorControls,{children:(0,Ja.jsxs)($d.__experimentalToolsPanel,{label:(0,Gr.__)("Settings"),resetAll:()=>{r({showPostTitle:!0,showCommentsCount:!0})},dropdownMenuProps:x,children:[(0,Ja.jsx)($d.__experimentalToolsPanelItem,{label:(0,Gr.__)("Show post title"),isShownByDefault:!0,hasValue:()=>!n,onDeselect:()=>r({showPostTitle:!0}),children:(0,Ja.jsx)($d.ToggleControl,{label:(0,Gr.__)("Show post title"),checked:n,onChange:B=>r({showPostTitle:B})})}),(0,Ja.jsx)($d.__experimentalToolsPanelItem,{label:(0,Gr.__)("Show comments count"),isShownByDefault:!0,hasValue:()=>!i,onDeselect:()=>r({showCommentsCount:!0}),children:(0,Ja.jsx)($d.ToggleControl,{label:(0,Gr.__)("Show comments count"),checked:i,onChange:B=>r({showCommentsCount:B})})})]})}),S=g?(0,Gr.__)("Post Title"):f,P;return i&&p!==void 0?n?p===1?P=(0,Gr.sprintf)((0,Gr.__)('One response to "%s"'),S):P=(0,Gr.sprintf)((0,Gr._n)('%1$s response to "%2$s"','%1$s responses to "%2$s"',p),p,S):p===1?P=(0,Gr.__)("One response"):P=(0,Gr.sprintf)((0,Gr._n)("%s response","%s responses",p),p):n?p===1?P=(0,Gr.sprintf)((0,Gr.__)('Response to "%s"'),S):P=(0,Gr.sprintf)((0,Gr.__)('Responses to "%s"'),S):p===1?P=(0,Gr.__)("Response"):P=(0,Gr.__)("Responses"),(0,Ja.jsxs)(Ja.Fragment,{children:[k,C,(0,Ja.jsx)(d,{...h,children:P})]})}var XCe={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 we(o)},isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},JCe={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 we(o)},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null},gQ=[XCe,JCe];var{name:hQ}=$C,bQ={icon:ml,edit:fQ,deprecated:gQ,example:{}},e3e=()=>D({name:hQ,metadata:$C,settings:bQ});var qR={};J(qR,{init:()=>g7e,metadata:()=>m3,name:()=>SX,settings:()=>TX});var CX=a(L(),1);var KC=a(te(),1),Me=a(I(),1),YC=a(L(),1),d2=a(_e(),1);var ZC=a(Ur(),1),t3e={"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"},nr="image",Ar="video",Mu="embed-video",yQ=50;var r3e={x:.5,y:.5},$h=["image","video"];function pn({x:e,y:t}=r3e){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}function Ds(e){return e===50||e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}function vQ(e){if(!e||!e.url&&!e.src)return{url:void 0,id:void 0};(0,ZC.isBlobURL)(e.url)&&(e.type=(0,ZC.getBlobTypeByURL)(e.url));let t;if(e.media_type)e.media_type===nr?t=nr:t=Ar;else if(e.type&&(e.type===nr||e.type===Ar))t=e.type;else return;return{url:e.url||e.src,id:e.id,alt:e?.alt,backgroundType:t,...t===Ar?{hasParallax:void 0}:{}}}function _a(e){return!e||e==="center center"||e==="center"}function ei(e){return _a(e)?"":t3e[e]}var be=a(y(),1);function bc(e){return e?{backgroundImage:`url(${e})`}:{}}function of(e){return e===0||e===50||!e?null:"has-background-dim-"+10*Math.round(e/10)}function QC(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function qd(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}var nf={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"}},p2={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]}},TR={...p2,useFeaturedImage:{type:"boolean",default:!1},tagName:{type:"string",default:"div"}},o3e={...TR,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}},ER={...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}},n3e={...ER,shadow:!0,dimensions:{aspectRatio:!0},interactivity:{clientNavigation:!0}},a3e={attributes:o3e,supports:n3e,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:s,focalPoint:l,useFeaturedImage:c,hasParallax:u,isDark:d,isRepeated:p,overlayColor:m,url:f,alt:g,id:h,minHeight:b,minHeightUnit:_,tagName:v,sizeSlug:w}=e,x=(0,Me.getColorClassName)("background-color",m),k=(0,Me.__experimentalGetGradientClass)(r),C=b&&_?`${b}${_}`:b,S=nr===t,P=Ar===t,B=!(u||p),N={minHeight:C||void 0},E={backgroundColor:x?void 0:i,background:n||void 0},M=l&&B?pn(l):void 0,R=f?`url(${f})`:void 0,O=pn(l),j=T({"is-light":!d,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!_a(o)},ei(o)),V=T("wp-block-cover__image-background",h?`wp-image-${h}`:null,{[`size-${w}`]:w,"has-parallax":u,"is-repeated":p}),G=r||n;return(0,be.jsxs)(v,{...Me.useBlockProps.save({className:j,style:N}),children:[(0,be.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",x,Ds(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":f&&G&&s!==0,"has-background-gradient":G,[k]:k}),style:E}),!c&&S&&f&&(B?(0,be.jsx)("img",{className:V,alt:g,src:f,style:{objectPosition:M},"data-object-fit":"cover","data-object-position":M}):(0,be.jsx)("div",{role:g?"img":void 0,"aria-label":g||void 0,className:V,style:{backgroundPosition:O,backgroundImage:R}})),P&&f&&(0,be.jsx)("video",{className:T("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:M},"data-object-fit":"cover","data-object-position":M}),(0,be.jsx)("div",{...Me.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},i3e={attributes:TR,supports:ER,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:s,focalPoint:l,useFeaturedImage:c,hasParallax:u,isDark:d,isRepeated:p,overlayColor:m,url:f,alt:g,id:h,minHeight:b,minHeightUnit:_,tagName:v}=e,w=(0,Me.getColorClassName)("background-color",m),x=(0,Me.__experimentalGetGradientClass)(r),k=b&&_?`${b}${_}`:b,C=nr===t,S=Ar===t,P=!(u||p),B={minHeight:k||void 0},N={backgroundColor:w?void 0:i,background:n||void 0},E=l&&P?pn(l):void 0,M=f?`url(${f})`:void 0,R=pn(l),O=T({"is-light":!d,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!_a(o)},ei(o)),j=T("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":u,"is-repeated":p}),V=r||n;return(0,be.jsxs)(v,{...Me.useBlockProps.save({className:O,style:B}),children:[(0,be.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",w,Ds(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":f&&V&&s!==0,"has-background-gradient":V,[x]:x}),style:N}),!c&&C&&f&&(P?(0,be.jsx)("img",{className:j,alt:g,src:f,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}):(0,be.jsx)("div",{role:"img",className:j,style:{backgroundPosition:R,backgroundImage:M}})),S&&f&&(0,be.jsx)("video",{className:T("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,be.jsx)("div",{...Me.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},s3e={attributes:TR,supports:ER,isEligible(e){return(e.customOverlayColor!==void 0||e.overlayColor!==void 0)&&e.isUserOverlayColor===void 0},migrate(e){return{...e,isUserOverlayColor:!0}},save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:s,focalPoint:l,useFeaturedImage:c,hasParallax:u,isDark:d,isRepeated:p,overlayColor:m,url:f,alt:g,id:h,minHeight:b,minHeightUnit:_,tagName:v}=e,w=(0,Me.getColorClassName)("background-color",m),x=(0,Me.__experimentalGetGradientClass)(r),k=b&&_?`${b}${_}`:b,C=nr===t,S=Ar===t,P=!(u||p),B={minHeight:k||void 0},N={backgroundColor:w?void 0:i,background:n||void 0},E=l&&P?pn(l):void 0,M=f?`url(${f})`:void 0,R=pn(l),O=T({"is-light":!d,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!_a(o)},ei(o)),j=T("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":u,"is-repeated":p}),V=r||n;return(0,be.jsxs)(v,{...Me.useBlockProps.save({className:O,style:B}),children:[(0,be.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",w,Ds(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":f&&V&&s!==0,"has-background-gradient":V,[x]:x}),style:N}),!c&&C&&f&&(P?(0,be.jsx)("img",{className:j,alt:g,src:f,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}):(0,be.jsx)("div",{role:"img",className:j,style:{backgroundPosition:R,backgroundImage:M}})),S&&f&&(0,be.jsx)("video",{className:T("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,be.jsx)("div",{...Me.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},l3e={attributes:p2,supports:qh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:s,focalPoint:l,useFeaturedImage:c,hasParallax:u,isDark:d,isRepeated:p,overlayColor:m,url:f,alt:g,id:h,minHeight:b,minHeightUnit:_}=e,v=(0,Me.getColorClassName)("background-color",m),w=(0,Me.__experimentalGetGradientClass)(r),x=b&&_?`${b}${_}`:b,k=nr===t,C=Ar===t,S=!(u||p),P={minHeight:x||void 0},B={backgroundColor:v?void 0:i,background:n||void 0},N=l&&S?pn(l):void 0,E=f?`url(${f})`:void 0,M=pn(l),R=T({"is-light":!d,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!_a(o)},ei(o)),O=T("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":u,"is-repeated":p}),j=r||n;return(0,be.jsxs)("div",{...Me.useBlockProps.save({className:R,style:P}),children:[(0,be.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",v,Ds(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":f&&j&&s!==0,"has-background-gradient":j,[w]:w}),style:B}),!c&&k&&f&&(S?(0,be.jsx)("img",{className:O,alt:g,src:f,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}):(0,be.jsx)("div",{role:"img",className:O,style:{backgroundPosition:M,backgroundImage:E}})),C&&f&&(0,be.jsx)("video",{className:T("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}),(0,be.jsx)("div",{...Me.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:qd},c3e={attributes:p2,supports:qh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:s,focalPoint:l,useFeaturedImage:c,hasParallax:u,isDark:d,isRepeated:p,overlayColor:m,url:f,alt:g,id:h,minHeight:b,minHeightUnit:_}=e,v=(0,Me.getColorClassName)("background-color",m),w=(0,Me.__experimentalGetGradientClass)(r),x=b&&_?`${b}${_}`:b,k=nr===t,C=Ar===t,S=!(u||p),P={...k&&!S&&!c?bc(f):{},minHeight:x||void 0},B={backgroundColor:v?void 0:i,background:n||void 0},N=l&&S?`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`:void 0,E=T({"is-light":!d,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!_a(o)},ei(o)),M=r||n;return(0,be.jsxs)("div",{...Me.useBlockProps.save({className:E,style:P}),children:[(0,be.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",v,Ds(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":f&&M&&s!==0,"has-background-gradient":M,[w]:w}),style:B}),!c&&k&&S&&f&&(0,be.jsx)("img",{className:T("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:g,src:f,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}),C&&f&&(0,be.jsx)("video",{className:T("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}),(0,be.jsx)("div",{...Me.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:qd},u3e={attributes:p2,supports:qh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:s,focalPoint:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:f,id:g,minHeight:h,minHeightUnit:b}=e,_=(0,Me.getColorClassName)("background-color",p),v=(0,Me.__experimentalGetGradientClass)(r),w=b?`${h}${b}`:h,x=nr===t,k=Ar===t,C=!(c||d),S={...x&&!C?bc(m):{},minHeight:w||void 0},P={backgroundColor:_?void 0:i,background:n||void 0},B=l&&C?`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`:void 0,N=T({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!_a(o)},ei(o)),E=r||n;return(0,be.jsxs)("div",{...Me.useBlockProps.save({className:N,style:S}),children:[(0,be.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",_,Ds(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":m&&E&&s!==0,"has-background-gradient":E,[v]:v}),style:P}),x&&C&&m&&(0,be.jsx)("img",{className:T("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:f,src:m,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}),k&&m&&(0,be.jsx)("video",{className:T("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}),(0,be.jsx)("div",{...Me.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:qd},d3e={attributes:p2,supports:qh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:s,focalPoint:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:f,id:g,minHeight:h,minHeightUnit:b}=e,_=(0,Me.getColorClassName)("background-color",p),v=(0,Me.__experimentalGetGradientClass)(r),w=b?`${h}${b}`:h,x=nr===t,k=Ar===t,C=!(c||d),S={...x&&!C?bc(m):{},minHeight:w||void 0},P={backgroundColor:_?void 0:i,background:n||void 0},B=l&&C?`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`:void 0,N=T({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!_a(o)},ei(o));return(0,be.jsxs)("div",{...Me.useBlockProps.save({className:N,style:S}),children:[(0,be.jsx)("span",{"aria-hidden":"true",className:T(_,Ds(s),"wp-block-cover__gradient-background",v,{"has-background-dim":s!==void 0,"has-background-gradient":r||n,[v]:!m&&v}),style:P}),x&&C&&m&&(0,be.jsx)("img",{className:T("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:f,src:m,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}),k&&m&&(0,be.jsx)("video",{className:T("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}),(0,be.jsx)("div",{...Me.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:qd},p3e={attributes:{...nf,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:n,customOverlayColor:i,dimRatio:s,focalPoint:l,hasParallax:c,isRepeated:u,overlayColor:d,url:p,alt:m,id:f,minHeight:g,minHeightUnit:h}=e,b=(0,Me.getColorClassName)("background-color",d),_=(0,Me.__experimentalGetGradientClass)(r),v=h?`${g}${h}`:g,w=nr===t,x=Ar===t,k=!(c||u),C={...w&&!k?bc(p):{},backgroundColor:b?void 0:i,background:n&&!p?n:void 0,minHeight:v||void 0},S=l&&k?`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`:void 0,P=T(of(s),b,{"has-background-dim":s!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":r||n,[_]:!p&&_,"has-custom-content-position":!_a(o)},ei(o));return(0,be.jsxs)("div",{...Me.useBlockProps.save({className:P,style:C}),children:[p&&(r||n)&&s!==0&&(0,be.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__gradient-background",_),style:n?{background:n}:void 0}),w&&k&&p&&(0,be.jsx)("img",{className:T("wp-block-cover__image-background",f?`wp-image-${f}`:null),alt:m,src:p,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),x&&p&&(0,be.jsx)("video",{className:T("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,be.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,be.jsx)(Me.InnerBlocks.Content,{})})]})},migrate:(0,d2.compose)(QC,qd)},m3e={attributes:{...nf,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:s,focalPoint:l,hasParallax:c,isRepeated:u,overlayColor:d,url:p,minHeight:m,minHeightUnit:f}=e,g=(0,Me.getColorClassName)("background-color",d),h=(0,Me.__experimentalGetGradientClass)(r),b=f?`${m}${f}`:m,_=nr===t,v=Ar===t,w=_?bc(p):{},x={};g||(w.backgroundColor=i),n&&!p&&(w.background=n),w.minHeight=b||void 0;let k;l&&(k=`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`,_&&!c&&(w.backgroundPosition=k),v&&(x.objectPosition=k));let C=T(of(s),g,{"has-background-dim":s!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":r||n,[h]:!p&&h,"has-custom-content-position":!_a(o)},ei(o));return(0,be.jsxs)("div",{...Me.useBlockProps.save({className:C,style:w}),children:[p&&(r||n)&&s!==0&&(0,be.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__gradient-background",h),style:n?{background:n}:void 0}),v&&p&&(0,be.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:x}),(0,be.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,be.jsx)(Me.InnerBlocks.Content,{})})]})},migrate:(0,d2.compose)(QC,qd)},f3e={attributes:{...nf,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,customGradient:o,customOverlayColor:n,dimRatio:i,focalPoint:s,hasParallax:l,overlayColor:c,url:u,minHeight:d}=e,p=(0,Me.getColorClassName)("background-color",c),m=(0,Me.__experimentalGetGradientClass)(r),f=t===nr?bc(u):{};p||(f.backgroundColor=n),s&&!l&&(f.backgroundPosition=`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`),o&&!u&&(f.background=o),f.minHeight=d||void 0;let g=T(of(i),p,{"has-background-dim":i!==0,"has-parallax":l,"has-background-gradient":o,[m]:!u&&m});return(0,be.jsxs)("div",{className:g,style:f,children:[u&&(r||o)&&i!==0&&(0,be.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__gradient-background",m),style:o?{background:o}:void 0}),Ar===t&&u&&(0,be.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,be.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,be.jsx)(Me.InnerBlocks.Content,{})})]})},migrate:(0,d2.compose)(QC,qd)},g3e={attributes:{...nf,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,customGradient:o,customOverlayColor:n,dimRatio:i,focalPoint:s,hasParallax:l,overlayColor:c,url:u,minHeight:d}=e,p=(0,Me.getColorClassName)("background-color",c),m=(0,Me.__experimentalGetGradientClass)(r),f=t===nr?bc(u):{};p||(f.backgroundColor=n),s&&!l&&(f.backgroundPosition=`${s.x*100}% ${s.y*100}%`),o&&!u&&(f.background=o),f.minHeight=d||void 0;let g=T(of(i),p,{"has-background-dim":i!==0,"has-parallax":l,"has-background-gradient":o,[m]:!u&&m});return(0,be.jsxs)("div",{className:g,style:f,children:[u&&(r||o)&&i!==0&&(0,be.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__gradient-background",m),style:o?{background:o}:void 0}),Ar===t&&u&&(0,be.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,be.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,be.jsx)(Me.InnerBlocks.Content,{})})]})},migrate:(0,d2.compose)(QC,qd)},h3e={attributes:{...nf,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,contentAlign:r,customOverlayColor:o,dimRatio:n,focalPoint:i,hasParallax:s,overlayColor:l,title:c,url:u}=e,d=(0,Me.getColorClassName)("background-color",l),p=t===nr?bc(u):{};d||(p.backgroundColor=o),i&&!s&&(p.backgroundPosition=`${i.x*100}% ${i.y*100}%`);let m=T(of(n),d,{"has-background-dim":n!==0,"has-parallax":s,[`has-${r}-content`]:r!=="center"});return(0,be.jsxs)("div",{className:m,style:p,children:[Ar===t&&u&&(0,be.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!Me.RichText.isEmpty(c)&&(0,be.jsx)(Me.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:c})]})},migrate(e){let t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:r,contentAlign:o,...n}=t;return[n,[(0,KC.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,YC.__)("Write title\u2026")})]]}},b3e={attributes:{...nf,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save({attributes:e}){let{url:t,title:r,hasParallax:o,dimRatio:n,align:i,contentAlign:s,overlayColor:l,customOverlayColor:c}=e,u=(0,Me.getColorClassName)("background-color",l),d=bc(t);u||(d.backgroundColor=c);let p=T("wp-block-cover-image",of(n),u,{"has-background-dim":n!==0,"has-parallax":o,[`has-${s}-content`]:s!=="center"},i?`align${i}`:null);return(0,be.jsx)("div",{className:p,style:d,children:!Me.RichText.isEmpty(r)&&(0,be.jsx)(Me.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:r})})},migrate(e){let t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:r,contentAlign:o,align:n,...i}=t;return[i,[(0,KC.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,YC.__)("Write title\u2026")})]]}},y3e={attributes:{...nf,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save({attributes:e}){let{url:t,title:r,hasParallax:o,dimRatio:n,align:i}=e,s=bc(t),l=T("wp-block-cover-image",of(n),{"has-background-dim":n!==0,"has-parallax":o},i?`align${i}`:null);return(0,be.jsx)("section",{className:l,style:s,children:(0,be.jsx)(Me.RichText.Content,{tagName:"h2",value:r})})},migrate(e){let t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:r,contentAlign:o,align:n,...i}=t;return[i,[(0,KC.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,YC.__)("Write title\u2026")})]]}},_Q=[a3e,i3e,s3e,l3e,c3e,u3e,d3e,p3e,m3e,f3e,g3e,h3e,b3e,y3e];var b2=a(ae(),1),Un=a(W(),1),df=a(F(),1),p3=a(_e(),1),oo=a(I(),1),GR=a(L(),1),Bl=a(H(),1),hX=a(te(),1),bX=a(Ur(),1),yX=a(br(),1);var NQ=a(W(),1),Yt=a(F(),1),MQ=a(_e(),1),Ko=a(I(),1),$r=a(L(),1),NR=a(H(),1),LQ=a(ae(),1),RQ=a(qt(),1);var af=a(I(),1);var{cleanEmptyObject:XC}=le(af.privateApis);function PR(e,t){return(0,af.getStyleForState)(e,t)||{}}function v3e(e,t={}){return Object.fromEntries(Object.entries(e).map(([r,o])=>[t[r]||r,o]))}function _3e(e,t){return t?Object.fromEntries(t.map(r=>[r,e[r]])):e}function Zh(e){return[e?.viewport||"default",e?.pseudo||"default"].join(":")}function x3e(e,t){return PR(e,t)?.dimensions||{}}function Oi(e={}){let{attributes:t={},style:r=t?.style,selectedState:o,hasSelectedStyleState:n,attributeKey:i,styleKey:s=i,rootValue:l}=e;return n?x3e(r,o)?.[s]:Object.hasOwn(e,"rootValue")?l:t?.[i]}function k3e(e,t,r){let o=PR(e,t);return(0,af.setStyleForState)(e,t,XC({...o,dimensions:XC({...o?.dimensions,...r})}))}function Kh({style:e,selectedState:t,hasSelectedStyleState:r,nextDimensions:o,dimensionKeyMap:n,dimensionKeys:i}){let s=_3e(o,i);return r?{style:k3e(e,t,v3e(s,n))}:s}function xQ(e,t){let r=Object.fromEntries(t.map(o=>[o,void 0]));return XC({...e,dimensions:XC({...e?.dimensions,...r})})}function w3e(e,t,r){return(0,af.setStyleForState)(e,t,xQ(PR(e,t),r))}function Yh({attributes:e={},style:t=e?.style,selectedState:r,hasSelectedStyleState:o,keys:n,defaultAttributes:i={}}){return{...o?{}:{...e,...i},style:o?w3e(t,r,n):xQ(t,n)}}var sf="full";var Qh=a(I(),1),wQ=a(br(),1),xa=a(F(),1),CQ=a(Ur(),1),Fi=a(L(),1),JC=a(W(),1),SQ=a(_e(),1),e3=a(H(),1),jn=a(y(),1),kQ=["image"];function TQ({poster:e,onChange:t}){let r=(0,JC.useRef)(),[o,n]=(0,JC.useState)(!1),i=(0,SQ.useInstanceId)(TQ,"block-library-poster-image-description"),{getSettings:s}=(0,e3.useSelect)(Qh.store),{createErrorNotice:l}=(0,e3.useDispatch)(wQ.store),c=d=>{s().mediaUpload({allowedTypes:kQ,filesList:d,onFileChange:([p])=>{if((0,CQ.isBlobURL)(p?.url)){n(!0);return}p&&t(p),n(!1)},onError:p=>{l(p,{id:"poster-image-upload-notice",type:"snackbar"}),n(!1)},multiple:!1})},u=()=>!e&&o?(0,jn.jsx)(xa.Spinner,{}):e?(0,Fi.__)("Replace"):(0,Fi.__)("Set poster image");return(0,jn.jsx)(Qh.MediaUploadCheck,{children:(0,jn.jsxs)(xa.__experimentalToolsPanelItem,{label:(0,Fi.__)("Poster image"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>t(void 0),children:[(0,jn.jsx)(xa.BaseControl.VisualLabel,{children:(0,Fi.__)("Poster image")}),(0,jn.jsx)(Qh.MediaUpload,{title:(0,Fi.__)("Select poster image"),onSelect:t,allowedTypes:kQ,render:({open:d})=>(0,jn.jsxs)("div",{className:"block-library-poster-image__container",children:[e&&(0,jn.jsxs)(xa.Button,{__next40pxDefaultSize:!0,onClick:d,"aria-haspopup":"dialog","aria-label":(0,Fi.__)("Edit or replace the poster image."),className:"block-library-poster-image__preview",disabled:o,accessibleWhenDisabled:!0,children:[(0,jn.jsx)("img",{src:e,alt:(0,Fi.__)("Poster image preview"),className:"block-library-poster-image__preview-image"}),o&&(0,jn.jsx)(xa.Spinner,{})]}),(0,jn.jsxs)(xa.__experimentalHStack,{className:T("block-library-poster-image__actions",{"block-library-poster-image__actions-select":!e}),children:[(0,jn.jsx)(xa.Button,{__next40pxDefaultSize:!0,onClick:d,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,jn.jsx)("p",{id:i,hidden:!0,children:e?(0,Fi.sprintf)((0,Fi.__)("The current poster image url is %s."),e):(0,Fi.__)("There is no poster image currently selected.")}),!!e&&(0,jn.jsx)(xa.Button,{__next40pxDefaultSize:!0,onClick:()=>{t(void 0),r.current.focus()},className:"block-library-poster-image__action",disabled:o,accessibleWhenDisabled:!0,children:(0,Fi.__)("Remove")})]}),(0,jn.jsx)(xa.DropZone,{onFilesDrop:c})]})})]})})}var t3=TQ;var ka=a(F(),1),r3=a(I(),1),EQ=a(ma(),1),PQ=a(W(),1),BR=a(L(),1),BQ=a(H(),1);var IQ=a(qt(),1),ti=a(y(),1),C3e=e=>{window.requestAnimationFrame(()=>{let[t]=EQ.focus.tabbable.find(e?.current);t&&t.focus()})};function IR({url:e,filename:t,itemGroupProps:r,className:o,label:n}){return(0,ti.jsx)(ka.__experimentalItemGroup,{...r,as:"span",children:(0,ti.jsxs)(ka.__experimentalHStack,{justify:"flex-start",children:[(0,ti.jsx)("span",{className:"block-library-utils__media-control__inspector-image-indicator",style:{backgroundImage:e?`url(${e})`:void 0}}),(0,ti.jsx)(ka.FlexBlock,{children:(0,ti.jsx)(ka.__experimentalTruncate,{numberOfLines:1,className:o,children:t??n})})]})})}function Zd({mediaId:e,mediaUrl:t,filename:r,allowedTypes:o,onSelect:n,onSelectURL:i,onError:s,onReset:l,isUploading:c=!1,emptyLabel:u=(0,BR.__)("Media"),useFeaturedImage:d,onToggleFeaturedImage:p}){let{getSettings:m}=(0,BQ.useSelect)(r3.store),f=h=>{let{mediaUpload:b}=m();b&&b({allowedTypes:o,filesList:h,onFileChange([_]){n(_)},onError:s,multiple:!1})},g=(0,PQ.useRef)();return(0,ti.jsxs)("div",{ref:g,className:"block-library-utils__media-control",children:[(0,ti.jsx)(r3.MediaReplaceFlow,{className:"block-library-utils__media-control__replace-flow",mediaId:e,mediaURL:t,allowedTypes:o,onSelect:n,onSelectURL:i,onError:s,useFeaturedImage:d,onToggleFeaturedImage:p,name:(0,ti.jsx)(IR,{url:t,filename:r,className:"block-library-utils__media-control__inspector-media-replace-title",label:t&&(0,IQ.getFilename)(r)||u}),renderToggle:h=>(0,ti.jsx)(ka.Button,{...h,__next40pxDefaultSize:!0,children:c?(0,ti.jsx)(ka.Spinner,{}):h.children}),onReset:l}),t&&l&&(0,ti.jsx)(ka.Button,{label:(0,BR.__)("Reset"),className:"block-library-utils__media-control__reset",size:"small",icon:zI,onClick:()=>{l(),C3e(g)}}),(0,ti.jsx)(ka.DropZone,{onFilesDrop:f})]})}var lt=a(y(),1),{cleanEmptyObject:S3e,ResolutionTool:T3e,HTMLElementControl:E3e}=le(Ko.privateApis);function P3e({onChange:e,onUnitChange:t,unit:r="px",value:o=""}){let i=`block-cover-height-input-${(0,MQ.useInstanceId)(Yt.__experimentalUnitControl)}`,s=r==="px",[l]=(0,Ko.useSettings)("spacing.units"),c=(0,Yt.__experimentalUseCustomUnits)({availableUnits:l||["px","em","rem","vw","vh"],defaultValues:{px:430,"%":20,em:20,rem:20,vw:20,vh:50}}),u=m=>{let f=m!==""?parseFloat(m):void 0;isNaN(f)&&f!==void 0||e(f)},d=(0,NQ.useMemo)(()=>{let[m]=(0,Yt.__experimentalParseQuantityAndUnitFromRawValue)(o);return[m,r].join("")},[r,o]),p=s?yQ:0;return(0,lt.jsx)(Yt.__experimentalUnitControl,{label:(0,$r.__)("Minimum height"),id:i,isResetValueOnUnitChange:!0,min:p,onChange:u,onUnitChange:t,units:c,value:d})}function DQ({attributes:e,setAttributes:t,clientId:r,setOverlayColor:o,coverRef:n,currentSettings:i,onSelectMedia:s,onUploadError:l,toggleUseFeaturedImage:c,updateDimRatio:u,onClearMedia:d,featuredImage:p,isSelected:m}){let{useFeaturedImage:f,id:g,dimRatio:h,focalPoint:b,hasParallax:_,isRepeated:v,minHeight:w,minHeightUnit:x,alt:k,tagName:C,poster:S}=e,{isVideoBackground:P,isImageBackground:B,mediaElement:N,url:E,overlayColor:M}=i,R=e.sizeSlug||sf,{gradientValue:O,setGradient:j}=(0,Ko.__experimentalUseGradient)(),{imageSizes:V,selectedStyleState:G,hasSelectedStyleState:$}=(0,NR.useSelect)(fe=>{let{getSettings:de,getSelectedBlockStyleState:re,hasSelectedBlockStyleState:Pe}=fe(Ko.store);return{imageSizes:de()?.imageSizes,selectedStyleState:re(r),hasSelectedStyleState:Pe(r)}},[r]),z=Zh(G),K=Oi({attributes:e,selectedState:G,hasSelectedStyleState:$,attributeKey:"minHeight",styleKey:"minHeight",rootValue:void 0}),[q,Y]=(0,Yt.__experimentalParseQuantityAndUnitFromRawValue)(K||""),oe=$?q:w,Z=$&&Y||x,U=Oi({attributes:e,selectedState:G,hasSelectedStyleState:$,attributeKey:"aspectRatio",rootValue:e?.style?.dimensions?.aspectRatio}),X=(0,NR.useSelect)(fe=>g&&B?fe(LQ.store).getEntityRecord("postType","attachment",g,{context:"view"}):null,[g,B]),Q=f?p:X;function ie(fe){let de=Q?.media_details?.sizes?.[fe]?.source_url;if(!de)return null;t({url:de,sizeSlug:fe})}let me=V?.filter(({slug:fe})=>Q?.media_details?.sizes?.[fe]?.source_url)?.map(({name:fe,slug:de})=>({value:de,label:fe})),xe=()=>{t({hasParallax:!_,..._?{}:{focalPoint:void 0}})},Be=()=>{t({isRepeated:!v})},se=P||B,he=fe=>{let[de,re]=N.current?[N.current.style,"objectPosition"]:[n.current.style,"backgroundPosition"];de[re]=pn(fe)},ze=(0,Ko.__experimentalUseMultipleOriginColorsAndGradients)(),qe=ze.hasColorsOrGradients&&!$,ce=(fe,de)=>{if($){t(Kh({style:e.style,selectedState:G,hasSelectedStyleState:$,nextDimensions:{minHeight:fe===void 0?void 0:`${fe}${de||Z||"px"}`,aspectRatio:void 0}}));return}t({minHeight:fe,style:S3e({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})})},ge=(fe=e)=>Yh({style:fe.style,selectedState:G,hasSelectedStyleState:$,keys:["minHeight"],defaultAttributes:{minHeight:void 0,minHeightUnit:void 0}}),Qe=ee(),ye=m?(0,lt.jsx)(Ko.InspectorControls,{group:"content",children:(0,lt.jsx)(Yt.__experimentalToolsPanel,{label:(0,$r.__)("Media"),resetAll:d,dropdownMenuProps:Qe,children:(0,lt.jsx)(Yt.__experimentalToolsPanelItem,{label:(0,$r.__)("Media"),hasValue:()=>!!E||!!f,onDeselect:d,isShownByDefault:!0,children:(0,lt.jsx)(Zd,{mediaId:g,mediaUrl:E,filename:X?.media_details?.sizes?.full?.file||X?.slug||(0,RQ.getFilename)(E),allowedTypes:$h,onSelect:s,onError:l,onReset:d,useFeaturedImage:f,onToggleFeaturedImage:c,emptyLabel:(0,$r.__)("Add media")})})})}):null;return(0,lt.jsxs)(lt.Fragment,{children:[ye,(!!E||f)&&(0,lt.jsx)(Ko.InspectorControls,{children:(0,lt.jsxs)(Yt.__experimentalToolsPanel,{label:(0,$r.__)("Settings"),resetAll:()=>{t({hasParallax:!1,focalPoint:void 0,isRepeated:!1,alt:"",poster:void 0}),ie(sf)},dropdownMenuProps:Qe,children:[B&&(0,lt.jsxs)(lt.Fragment,{children:[(0,lt.jsx)(Yt.__experimentalToolsPanelItem,{label:(0,$r.__)("Fixed background"),isShownByDefault:!0,hasValue:()=>!!_,onDeselect:()=>t({hasParallax:!1,focalPoint:void 0}),children:(0,lt.jsx)(Yt.ToggleControl,{label:(0,$r.__)("Fixed background"),checked:!!_,onChange:xe})}),(0,lt.jsx)(Yt.__experimentalToolsPanelItem,{label:(0,$r.__)("Repeated background"),isShownByDefault:!0,hasValue:()=>v,onDeselect:()=>t({isRepeated:!1}),children:(0,lt.jsx)(Yt.ToggleControl,{label:(0,$r.__)("Repeated background"),checked:v,onChange:Be})})]}),se&&(0,lt.jsx)(Yt.__experimentalToolsPanelItem,{label:(0,$r.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!b,onDeselect:()=>t({focalPoint:void 0}),children:(0,lt.jsx)(Yt.FocalPointPicker,{label:(0,$r.__)("Focal point"),url:E,value:b,onDragStart:he,onDrag:he,onChange:fe=>t({focalPoint:fe})})}),P&&(0,lt.jsx)(t3,{poster:S,onChange:fe=>t({poster:fe?.url})}),!f&&E&&!P&&(0,lt.jsx)(Yt.__experimentalToolsPanelItem,{label:(0,$r.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!k,onDeselect:()=>t({alt:""}),children:(0,lt.jsx)(Yt.TextareaControl,{label:(0,$r.__)("Alternative text"),value:k,onChange:fe=>t({alt:fe}),help:(0,lt.jsxs)(lt.Fragment,{children:[(0,lt.jsx)(bl,{openInNewTab:!0,href:(0,$r.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,$r.__)("Describe the purpose of the image.")}),(0,lt.jsx)("br",{}),(0,$r.__)("Leave empty if decorative.")]})})}),!!me?.length&&(0,lt.jsx)(T3e,{value:R,onChange:ie,options:me,defaultValue:sf})]})}),qe&&(0,lt.jsxs)(Ko.InspectorControls,{group:"color",children:[(0,lt.jsx)(Ko.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:M.color,gradientValue:O,label:(0,$r.__)("Overlay"),onColorChange:o,onGradientChange:j,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:r,...ze}),(0,lt.jsx)(Yt.__experimentalToolsPanelItem,{hasValue:()=>h===void 0?!1:h!==(E?50:100),label:(0,$r.__)("Overlay opacity"),onDeselect:()=>u(E?50:100),resetAllFilter:()=>({dimRatio:E?50:100}),isShownByDefault:!0,panelId:r,children:(0,lt.jsx)(Yt.RangeControl,{label:(0,$r.__)("Overlay opacity"),value:h,onChange:fe=>u(fe),min:0,max:100,step:10,required:!0})})]}),(0,lt.jsx)(Ko.InspectorControls,{group:"dimensions",children:(0,lt.jsx)(Yt.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!oe,label:(0,$r.__)("Minimum height"),onDeselect:()=>t(ge()),resetAllFilter:ge,isShownByDefault:!0,panelId:r,children:(0,lt.jsx)(P3e,{value:U?"":oe,unit:Z,onChange:fe=>ce(fe),onUnitChange:fe=>{if($){oe!==void 0&&ce(oe,fe);return}t({minHeightUnit:fe})}})},z)}),(0,lt.jsx)(Ko.InspectorControls,{group:"advanced",children:(0,lt.jsx)(E3e,{tagName:C,onChange:fe=>t({tagName:fe}),clientId:r,options:[{label:(0,$r.__)("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 o3=a(W(),1),Pl=a(I(),1),e1=a(L(),1),n3=a(F(),1);var MR=a(W(),1),Jh=a(F(),1),lf=a(L(),1);var AQ=a(te(),1);var B3e="core/embed",OQ=["youtube","vimeo","videopress","animoto","tiktok","wordpress-tv"];function FQ(e){return Array.isArray(e)?OQ.filter(t=>e.includes(t)):[]}function VQ(e,t){return e?I3e(e,t)!==null:!1}function I3e(e,t=OQ){let r=(0,AQ.getBlockVariations)(B3e);if(!r)return null;let o=r.find(({patterns:n})=>BL(e,n));return!o||!t.includes(o.name)?null:o}function zQ(e){let t=e?.match(/src=["']([^"']+)["']/);if(!t)return null;let r=t[1],o=M3e(r);return e.replace(r,o)}function N3e(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 M3e(e){if(!e)return e;try{let t=new URL(e);switch(N3e(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 Xh=a(y(),1);function HQ({onSubmit:e,onClose:t,initialUrl:r="",allowedVideoProviders:o}){let[n,i]=(0,MR.useState)(r),[s,l]=(0,MR.useState)("");return(0,Xh.jsx)(Jh.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{if(!n){l((0,lf.__)("Please enter a URL."));return}if(!VQ(n,o)){l((0,lf.__)("This URL is not supported. Please enter a valid video link from a supported provider."));return}e(n),t()},onCancel:t,confirmButtonText:(0,lf.__)("Add video"),size:"medium",children:(0,Xh.jsxs)(Es,{direction:"column",gap:"lg",children:[s&&(0,Xh.jsx)(Jh.Notice,{status:"error",isDismissible:!1,children:s}),(0,Xh.jsx)(Jh.TextControl,{type:"url",label:(0,lf.__)("Video URL"),value:n,onChange:u=>{i(u),l("")},placeholder:(0,lf.__)("Enter YouTube, Vimeo, or other video URL"),help:(0,lf.__)("Add a background video to the cover block that will autoplay in a loop.")})]})})}var Vi=a(y(),1),{cleanEmptyObject:L3e}=le(Pl.privateApis);function jQ({attributes:e,setAttributes:t,onSelectMedia:r,currentSettings:o,toggleUseFeaturedImage:n,onClearMedia:i,onSelectEmbedUrl:s,onEditMedia:l,editMediaButtonRef:c,showEditMediaButton:u,isEditMediaDisabled:d,blockEditingMode:p}){let{contentPosition:m,id:f,useFeaturedImage:g,minHeight:h,minHeightUnit:b,backgroundType:_,allowedVideoProviders:v}=e,{hasInnerBlocks:w,url:x}=o,k=FQ(v),C=k.length>0,[S,P]=(0,o3.useState)(h),[B,N]=(0,o3.useState)(b),[E,M]=(0,o3.useState)(!1),R=b==="vh"&&h===100&&!e?.style?.dimensions?.aspectRatio,O=p==="contentOnly",j=()=>R?t(B==="vh"&&S===100?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:S,minHeightUnit:B}):(P(h),N(b),t({minHeight:100,minHeightUnit:"vh",style:L3e({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}));return(0,Vi.jsxs)(Vi.Fragment,{children:[!O&&(0,Vi.jsxs)(Pl.BlockControls,{group:"block",children:[(0,Vi.jsx)(Pl.__experimentalBlockAlignmentMatrixControl,{label:(0,e1.__)("Change content position"),value:m,onChange:V=>t({contentPosition:V}),isDisabled:!w}),(0,Vi.jsx)(Pl.__experimentalBlockFullHeightAligmentControl,{isActive:R,onToggle:j,isDisabled:!w}),u&&(0,Vi.jsx)(n3.ToolbarButton,{ref:c,icon:pm,label:(0,e1.__)("Edit image"),onClick:l,"aria-haspopup":"dialog",disabled:d})]}),(0,Vi.jsx)(Pl.BlockControls,{group:"other",children:(0,Vi.jsx)(Pl.MediaReplaceFlow,{mediaId:f,mediaURL:x,allowedTypes:$h,onSelect:r,onToggleFeaturedImage:n,useFeaturedImage:g,name:x?(0,e1.__)("Replace"):(0,e1.__)("Add media"),onReset:i,variant:"toolbar",children:({onClose:V})=>C?(0,Vi.jsx)(n3.MenuItem,{icon:Pi,onClick:()=>{M(!0),V()},children:(0,e1.__)("Embed video from URL")}):null})}),E&&(0,Vi.jsx)(HQ,{onSubmit:V=>{s(V)},onClose:()=>M(!1),initialUrl:_===Mu?x:"",allowedVideoProviders:k})]})}var a3=a(I(),1),UQ=a(L(),1);var WQ=a(Ur(),1);var LR=a(y(),1);function RR({disableMediaButtons:e=!1,children:t,onSelectMedia:r,onError:o,style:n,toggleUseFeaturedImage:i}){let s=l=>{l.length===1&&r({url:(0,WQ.createBlobURL)(l[0])})};return(0,LR.jsx)(a3.MediaPlaceholder,{icon:(0,LR.jsx)(a3.BlockIcon,{icon:dm}),labels:{title:(0,UQ.__)("Cover")},onSelect:r,allowedTypes:$h,disableMediaButtons:e,onToggleFeaturedImage:i,onFilesPreUpload:s,onError:o,style:n,children:t})}var GQ=a(W(),1),$Q=a(I(),1);var qQ=a(y(),1),R3e={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:D3e}=le($Q.privateApis);function DR({className:e,height:t,minHeight:r,onResize:o,onResizeStart:n,onResizeStop:i,showHandle:s,size:l,width:c,...u}){let[d,p]=(0,GQ.useState)(!1),m={className:T(e,{"is-resizing":d}),enable:R3e,onResizeStart:(f,g,h)=>{n(h.clientHeight),o(h.clientHeight)},onResize:(f,g,h)=>{o(h.clientHeight),d||p(!0)},onResizeStop:(f,g,h)=>{i(h.clientHeight),p(!1)},showHandle:s,size:l,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:d}};return(0,qQ.jsx)(D3e,{className:"block-library-cover__resizable-box-popover",resizableBoxProps:m,...u})}for(eX={grad:.9,turn:360,rad:360/(2*Math.PI)},yc=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},mn=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},ri=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e>t?e:t},jR=function(e){return(e=isFinite(e)?e%360:0)<0?e+360:e},l3=function(e,t){return t===void 0&&(t=0),mn(e,t)%360},FR=function(e){return{r:ri(e.r,0,255),g:ri(e.g,0,255),b:ri(e.b,0,255),a:ri(e.a)}},s3=function(e){return{r:mn(e.r),g:mn(e.g),b:mn(e.b),a:mn(e.a,3)}},tX=/^#([0-9a-f]{3,8})$/i,cf=function(e,t){var r=e.charCodeAt(t);return(15&r)+9*(r>>6)},f2=function(e,t){return cf(e,t)<<4|cf(e,t+1)},VR=[],m2=0;m2<256;m2++)VR.push((m2<16?"0":"")+m2.toString(16));var eX,yc,mn,ri,jR,l3,FR,s3,tX,cf,f2,VR,m2,i3=function(e){return VR[ri(e,0,255)]},rX=function(e){var t=e.r,r=e.g,o=e.b,n=e.a,i=Math.max(t,r,o),s=i-Math.min(t,r,o),l=s?i===t?(r-o)/s:i===r?2+(o-t)/s:4+(t-r)/s:0;return{h:60*(l<0?l+6:l),s:i?s/i*100:0,v:i/255*100,a:n}},oX=function(e){var t=e.h,r=e.s,o=e.v,n=e.a;t=t/360*6,r/=100,o/=100;var i=Math.floor(t),s=o*(1-r),l=o*(1-(t-i)*r),c=o*(1-(1-t+i)*r),u=i%6;return{r:255*[o,l,s,s,c,o][u],g:255*[c,o,o,l,s,s][u],b:255*[s,s,c,o,o,l][u],a:n}},ZQ=function(e){return{h:jR(e.h),s:ri(e.s,0,100),l:ri(e.l,0,100),a:ri(e.a)}},KQ=function(e){return{h:l3(e.h),s:mn(e.s),l:mn(e.l),a:mn(e.a,3)}},YQ=function(e){return oX((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},t1=function(e){return{h:(t=rX(e)).h,s:(n=(200-(r=t.s))*(o=t.v)/100)>0&&n<200?r*o/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,r,o,n},A3e=/^hsla?\(\s*([+-]?(?:\d*\.\d+|\d+))(deg|rad|grad|turn)?\s*,\s*([+-]?(?:\d*\.\d+|\d+))%\s*,\s*([+-]?(?:\d*\.\d+|\d+))%\s*(?:,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i,O3e=/^hsla?\(\s*([+-]?(?:\d*\.\d+|\d+))(deg|rad|grad|turn)?\s+([+-]?(?:\d*\.\d+|\d+))%\s+([+-]?(?:\d*\.\d+|\d+))%\s*(?:\/\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i,F3e=/^rgba?\(\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*(?:,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i,V3e=/^rgba?\(\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s+([+-]?(?:\d*\.\d+|\d+))(%)?\s+([+-]?(?:\d*\.\d+|\d+))(%)?\s*(?:\/\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i,zR={string:[[function(e){if(!tX.test(e))return null;var t=e.length;return t<=5?{r:17*cf(e,1),g:17*cf(e,2),b:17*cf(e,3),a:t===5?mn(17*cf(e,4)/255,2):1}:t===7||t===9?{r:f2(e,1),g:f2(e,3),b:f2(e,5),a:t===9?mn(f2(e,7)/255,2):1}:null},"hex"],[function(e){var t=F3e.exec(e)||V3e.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:FR({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=A3e.exec(e)||O3e.exec(e);if(!t)return null;var r,o,n=ZQ({h:(r=t[1],o=t[2],o===void 0&&(o="deg"),Number(r)*(eX[o]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return YQ(n)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,o=e.b,n=e.a,i=n===void 0?1:n;return yc(t)&&yc(r)&&yc(o)?FR({r:Number(t),g:Number(r),b:Number(o),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,r=e.s,o=e.l,n=e.a,i=n===void 0?1:n;if(!yc(t)||!yc(r)||!yc(o))return null;var s=ZQ({h:Number(t),s:Number(r),l:Number(o),a:Number(i)});return YQ(s)},"hsl"],[function(e){var t=e.h,r=e.s,o=e.v,n=e.a,i=n===void 0?1:n;if(!yc(t)||!yc(r)||!yc(o))return null;var s=(function(l){return{h:jR(l.h),s:ri(l.s,0,100),v:ri(l.v,0,100),a:ri(l.a)}})({h:Number(t),s:Number(r),v:Number(o),a:Number(i)});return oX(s)},"hsv"]]},QQ=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]},z3e=function(e){return typeof e=="string"?QQ(e.trim(),zR.string):typeof e=="object"&&e!==null?QQ(e,zR.object):[null,void 0]};var AR=function(e,t){var r=t1(e);return{h:r.h,s:ri(r.s+100*t,0,100),l:r.l,a:r.a}},OR=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},XQ=function(e,t){var r=t1(e);return{h:r.h,s:r.s,l:ri(r.l+100*t,0,100),a:r.a}},HR=(function(){function e(t){this.parsed=z3e(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 mn(OR(this.rgba),2)},e.prototype.isDark=function(){return OR(this.rgba)<.5},e.prototype.isLight=function(){return OR(this.rgba)>=.5},e.prototype.toHex=function(){return t=s3(this.rgba),r=t.r,o=t.g,n=t.b,s=(i=t.a)<1?i3(mn(255*i)):"","#"+i3(r)+i3(o)+i3(n)+s;var t,r,o,n,i,s},e.prototype.toRgb=function(){return s3(this.rgba)},e.prototype.toRgbString=function(){return t=s3(this.rgba),r=t.r,o=t.g,n=t.b,(i=t.a)<1?"rgba("+r+", "+o+", "+n+", "+i+")":"rgb("+r+", "+o+", "+n+")";var t,r,o,n,i},e.prototype.toHsl=function(){return KQ(t1(this.rgba))},e.prototype.toHslString=function(){return t=KQ(t1(this.rgba)),r=t.h,o=t.s,n=t.l,(i=t.a)<1?"hsla("+r+", "+o+"%, "+n+"%, "+i+")":"hsl("+r+", "+o+"%, "+n+"%)";var t,r,o,n,i},e.prototype.toHsv=function(){return t=rX(this.rgba),{h:l3(t.h),s:mn(t.s),v:mn(t.v),a:mn(t.a,3)};var t},e.prototype.invert=function(){return yr({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),yr(AR(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),yr(AR(this.rgba,-t))},e.prototype.grayscale=function(){return yr(AR(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),yr(XQ(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),yr(XQ(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(t1(this.rgba).h+t)},e.prototype.alpha=function(t){return typeof t=="number"?yr({r:(r=this.rgba).r,g:r.g,b:r.b,a:t}):mn(this.rgba.a,3);var r},e.prototype.hue=function(t){var r=t1(this.rgba);return typeof t=="number"?yr({h:t,s:r.s,l:r.l,a:r.a}):l3(r.h)},e.prototype.isEqual=function(t){return this.toHex()===yr(t).toHex()},e})(),yr=function(e){return e instanceof HR?e:new HR(e)},JQ=[],nX=function(e){e.forEach(function(t){JQ.indexOf(t)<0&&(t(HR,zR),JQ.push(t))})};var aX=function(e,t){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var n in r)o[r[n]]=n;var i={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var l,c,u=o[this.toHex()];if(u)return u;if(s?.closest){var d=this.toRgb(),p=1/0,m="black";if(!i.length)for(var f in r)i[f]=new e(r[f]).toRgb();for(var g in r){var h=(l=d,c=i[g],Math.pow(l.r-c.r,2)+Math.pow(l.g-c.g,2)+Math.pow(l.b-c.b,2));h<p&&(p=h,m=g)}return m}},t.string.push([function(s){var l=s.toLowerCase(),c=l==="transparent"?"#0000":r[l];return c?new e(c).toRgb():null},"name"])};function H3e(e){var t=e.toString(16);return t.length===1?"0"+t:t}function iX(e){return"#"+e.map(H3e).join("")}function j3e(e){var t=(e[0]*299+e[1]*587+e[2]*114)/1e3;return t<128}function U3e(e){return e?W3e(e)?e:[e]:[]}function W3e(e){return Array.isArray(e[0])}function WR(e,t,r){for(var o=0;o<r.length;o++)if(G3e(e,t,r[o]))return!0;return!1}function G3e(e,t,r){switch(r.length){case 3:if($3e(e,t,r))return!0;break;case 4:if(q3e(e,t,r))return!0;break;case 5:if(Z3e(e,t,r))return!0;break;default:return!1}}function $3e(e,t,r){return e[t+3]!==255||e[t]===r[0]&&e[t+1]===r[1]&&e[t+2]===r[2]}function q3e(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 c3(e,t,r){return e>=t-r&&e<=t+r}function Z3e(e,t,r){var o=r[0],n=r[1],i=r[2],s=r[3],l=r[4],c=e[t+3],u=c3(c,s,l);return s?!!(!c&&u||c3(e[t],o,l)&&c3(e[t+1],n,l)&&c3(e[t+2],i,l)&&u):u}function K3e(e,t,r){for(var o={},n=24,i=r.ignoredColor,s=r.step,l=[0,0,0,0,0],c=0;c<t;c+=s){var u=e[c],d=e[c+1],p=e[c+2],m=e[c+3];if(!(i&&WR(e,c,i))){var f=Math.round(u/n)+","+Math.round(d/n)+","+Math.round(p/n);o[f]?o[f]=[o[f][0]+u*m,o[f][1]+d*m,o[f][2]+p*m,o[f][3]+m,o[f][4]+1]:o[f]=[u*m,d*m,p*m,m,1],l[4]<o[f][4]&&(l=o[f])}}var g=l[0],h=l[1],b=l[2],_=l[3],v=l[4];return _?[Math.round(g/_),Math.round(h/_),Math.round(b/_),Math.round(_/v)]:r.defaultColor}function Y3e(e,t,r){for(var o=0,n=0,i=0,s=0,l=0,c=r.ignoredColor,u=r.step,d=0;d<t;d+=u){var p=e[d+3],m=e[d]*p,f=e[d+1]*p,g=e[d+2]*p;c&&WR(e,d,c)||(o+=m,n+=f,i+=g,s+=p,l++)}return s?[Math.round(o/s),Math.round(n/s),Math.round(i/s),Math.round(s/l)]:r.defaultColor}function Q3e(e,t,r){for(var o=0,n=0,i=0,s=0,l=0,c=r.ignoredColor,u=r.step,d=0;d<t;d+=u){var p=e[d],m=e[d+1],f=e[d+2],g=e[d+3];c&&WR(e,d,c)||(o+=p*p*g,n+=m*m*g,i+=f*f*g,s+=g,l++)}return s?[Math.round(Math.sqrt(o/s)),Math.round(Math.sqrt(n/s)),Math.round(Math.sqrt(i/s)),Math.round(s/l)]:r.defaultColor}function sX(e){return h2(e,"defaultColor",[0,0,0,0])}function h2(e,t,r){return e[t]===void 0?r:e[t]}var lX=10,UR=100;function X3e(e){return e.search(/\.svg(\?|$)/i)!==-1}function J3e(e){if(uX(e)){var t=e.naturalWidth,r=e.naturalHeight;return!e.naturalWidth&&X3e(e.src)&&(t=r=UR),{width:t,height:r}}return t7e(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function cX(e){return r7e(e)?"canvas":e7e(e)?"offscreencanvas":o7e(e)?"imagebitmap":e.src}function uX(e){return typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement}function e7e(e){return typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas}function t7e(e){return typeof HTMLVideoElement<"u"&&e instanceof HTMLVideoElement}function r7e(e){return typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement}function o7e(e){return typeof ImageBitmap<"u"&&e instanceof ImageBitmap}function n7e(e,t){var r=h2(t,"left",0),o=h2(t,"top",0),n=h2(t,"width",e.width),i=h2(t,"height",e.height),s=n,l=i;if(t.mode==="precision")return{srcLeft:r,srcTop:o,srcWidth:n,srcHeight:i,destWidth:s,destHeight:l};var c;return n>i?(c=n/i,s=UR,l=Math.round(s/c)):(c=i/n,l=UR,s=Math.round(l/c)),(s>n||l>i||s<lX||l<lX)&&(s=n,l=i),{srcLeft:r,srcTop:o,srcWidth:n,srcHeight:i,destWidth:s,destHeight:l}}var a7e=typeof window>"u";function i7e(){return a7e?new OffscreenCanvas(1,1):document.createElement("canvas")}var dX="FastAverageColor: ";function u3(e,t,r){t||(console.error(dX+e),r&&console.error(r))}function g2(e){return Error(dX+e)}var pX=(function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(t,r){if(!t)return Promise.reject(g2("call .getColorAsync() without resource."));if(typeof t=="string"){if(typeof Image>"u")return Promise.reject(g2("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(uX(t)&&!t.complete)return this.bindImageEvents(t,r);var n=this.getColor(t,r);return n.error?Promise.reject(n.error):Promise.resolve(n)}},e.prototype.getColor=function(t,r){r=r||{};var o=sX(r);if(!t)return u3("call .getColor(null) without resource",r.silent),this.prepareResult(o);var n=J3e(t),i=n7e(n,r);if(!i.srcWidth||!i.srcHeight||!i.destWidth||!i.destHeight)return u3('incorrect sizes for resource "'.concat(cX(t),'"'),r.silent),this.prepareResult(o);if(this.canvas||(this.canvas=i7e()),!this.ctx&&(this.ctx=this.canvas.getContext&&this.canvas.getContext("2d"),!this.ctx))return u3("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 s=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 l=this.ctx.getImageData(0,0,i.destWidth,i.destHeight).data;s=this.getColorFromArray4(l,r)}catch(c){u3("security error (CORS) for resource ".concat(cX(t),`.
18 Details: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image`),r.silent,c)}return this.prepareResult(s)},e.prototype.getColorFromArray4=function(t,r){r=r||{};var o=4,n=t.length,i=sX(r);if(n<o)return i;var s=n-n%o,l=(r.step||1)*o,c;switch(r.algorithm||"sqrt"){case"simple":c=Y3e;break;case"sqrt":c=Q3e;break;case"dominant":c=K3e;break;default:throw g2("".concat(r.algorithm," is unknown algorithm"))}return c(t,s,{defaultColor:i,ignoredColor:U3e(r.ignoredColor),step:l})},e.prototype.prepareResult=function(t){var r=t.slice(0,3),o=[t[0],t[1],t[2],t[3]/255],n=j3e(t);return{value:[t[0],t[1],t[2],t[3]],rgb:"rgb("+r.join(",")+")",rgba:"rgba("+o.join(",")+")",hex:iX(r),hexa:iX(t),isDark:n,isLight:!n}},e.prototype.destroy=function(){this.canvas&&(this.canvas.width=1,this.canvas.height=1,this.canvas=null),this.ctx=null},e.prototype.bindImageEvents=function(t,r){var o=this;return new Promise(function(n,i){var s=function(){u();var d=o.getColor(t,r);d.error?i(d.error):n(d)},l=function(){u(),i(g2('Error loading image "'.concat(t.src,'".')))},c=function(){u(),i(g2('Image "'.concat(t.src,'" loading aborted')))},u=function(){t.removeEventListener("load",s),t.removeEventListener("error",l),t.removeEventListener("abort",c)};t.addEventListener("load",s),t.addEventListener("error",l),t.addEventListener("abort",c)})},e})();var fX=a(Kd(),1);nX([aX]);var r1="#FFF",gX="#000";function s7e(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 d3(){return d3.fastAverageColor||(d3.fastAverageColor=new pX),d3.fastAverageColor}var uf=Bh(async e=>{if(!e)return r1;let{r:t,g:r,b:o,a:n}=yr(r1).toRgb();try{let i=(0,fX.applyFilters)("media.crossOrigin",void 0,e);return(await d3().getColorAsync(e,{defaultColor:[t,r,o,n*255],silent:!0,crossOrigin:i})).hex}catch{return r1}});function Yd(e,t,r){if(t===r||e===100)return yr(t).isDark();let o=yr(t).alpha(e/100).toRgb(),n=yr(r).toRgb(),i=s7e(o,n);return yr(i).isDark()}var ar=a(y(),1),{openMediaEditorModalKey:l7e}=le(oo.privateApis);function c7e(e){return[["core/paragraph",{style:{typography:{textAlign:"center"}},placeholder:(0,GR.__)("Write title\u2026"),...e}]]}var u7e=(e,t)=>!e&&(0,bX.isBlobURL)(t);function d7e({attributes:e,clientId:t,isSelected:r,overlayColor:o,setAttributes:n,setOverlayColor:i,toggleSelection:s,context:{postId:l,postType:c}}){let{contentPosition:u,id:d,url:p,backgroundType:m,useFeaturedImage:f,dimRatio:g,focalPoint:h,hasParallax:b,isDark:_,isRepeated:v,minHeight:w,minHeightUnit:x,alt:k,allowedBlocks:C,templateLock:S,tagName:P="div",isUserOverlayColor:B,sizeSlug:N,poster:E}=e,[M]=(0,b2.useEntityProp)("postType",c,"featured_media",l),{getSettings:R}=(0,Bl.useSelect)(oo.store),O=(0,Bl.useSelect)(pe=>pe(oo.store).getSettings()[l7e],[]),{__unstableMarkNextChangeAsNotPersistent:j,replaceInnerBlocks:V}=(0,Bl.useDispatch)(oo.store),G=(0,Bl.useRegistry)(),$=(0,Un.useRef)({attributes:e,overlayColor:o});(0,Un.useLayoutEffect)(()=>{$.current={attributes:e,overlayColor:o}});let{media:z}=(0,Bl.useSelect)(pe=>({media:M&&f?pe(b2.store).getEntityRecord("postType","attachment",M,{context:"view"}):void 0}),[M,f]),K=z?.media_details?.sizes?.[N]?.source_url??z?.source_url;(0,Un.useEffect)(()=>{(async()=>{if(!f)return;let pe=await uf(K),{attributes:ve,overlayColor:Ye}=$.current,dt=Ye.color;ve.isUserOverlayColor||(dt=pe,j(),i(dt));let $t=Yd(ve.dimRatio,dt,pe);j(),n({isDark:$t,isUserOverlayColor:ve.isUserOverlayColor||!1})})()},[K,j,n,i,f]);let q=f?K:p?.replaceAll("&amp;","&"),Y=f?nr:m,{createErrorNotice:oe}=(0,Bl.useDispatch)(yX.store),{gradientClass:Z,gradientValue:U}=(0,oo.__experimentalUseGradient)(),X=()=>{let{getBlocks:pe,isBlockSelected:ve,getSelectedBlocksInitialCaretPosition:Ye}=G.select(oo.store);if(pe(t).length>0)return;let[dt]=le(G.select(oo.store)).getBlockSettings(t,"typography.fontSizes"),$t=dt?.length>0;V(t,(0,hX.createBlocksFromInnerBlocksTemplate)(c7e({fontSize:$t?"large":void 0})),ve(t),Ye())},Q=async pe=>{let ve=vQ(pe),Ye=[pe?.type,pe?.media_type].includes(nr),dt=await uf(Ye?pe?.url:void 0),{attributes:$t,overlayColor:nt}=$.current,Ir=nt.color;$t.isUserOverlayColor||(Ir=dt,i(Ir),j());let Ua=$t.url===void 0&&$t.dimRatio===100?50:$t.dimRatio,Ci=Yd(Ua,Ir,dt);if(Y===nr&&ve?.id){let{imageDefaultSize:ll}=R();N&&(pe?.sizes?.[N]||pe?.media_details?.sizes?.[N])?(ve.sizeSlug=N,ve.url=pe?.sizes?.[N]?.url||pe?.media_details?.sizes?.[N]?.source_url):pe?.sizes?.[ll]||pe?.media_details?.sizes?.[ll]?(ve.sizeSlug=ll,ve.url=pe?.sizes?.[ll]?.url||pe?.media_details?.sizes?.[ll]?.source_url):ve.sizeSlug=sf}G.batch(()=>{n({...ve,focalPoint:void 0,useFeaturedImage:void 0,dimRatio:Ua,isDark:Ci,isUserOverlayColor:$t.isUserOverlayColor||!1}),X()})},ie=()=>{let pe=o.color;!B&&o.color&&(pe=gX,i(void 0),j());let ve=Yd(g,pe,r1);n({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0,isDark:ve})},me=async pe=>{let ve=await uf(q),{attributes:Ye}=$.current,dt=Yd(Ye.dimRatio,pe,ve);i(pe),j(),G.batch(()=>{n({isUserOverlayColor:!0,isDark:dt}),pe&&X()})},xe=async pe=>{let ve=await uf(q),{overlayColor:Ye}=$.current,dt=Yd(pe,Ye.color,ve);n({dimRatio:pe,isDark:dt})},Be=pe=>{oe(pe,{type:"snackbar"})},se=pe=>{n({url:pe,backgroundType:Mu,dimRatio:p===void 0&&g===100?50:g,id:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0})},{embedPreview:he,isFetchingEmbed:ze}=(0,Bl.useSelect)(pe=>{if(Y!==Mu||!q)return{embedPreview:void 0,isFetchingEmbed:!1};let{getEmbedPreview:ve,isRequestingEmbedPreview:Ye}=pe(b2.store);return{embedPreview:ve(q),isFetchingEmbed:Ye(q)}},[q,Y]),qe=(0,Un.useMemo)(()=>Y!==Mu||!he?.html?null:zQ(he.html),[he,Y]),[ce,ge]=(0,Un.useState)(!1),Qe=u7e(d,q),ye=nr===Y,fe=Ar===Y,de=Mu===Y,re=(0,oo.useBlockEditingMode)(),Pe=re==="default",[Se,{height:rr,width:Ft}]=(0,p3.useResizeObserver)(),gr=(0,Un.useMemo)(()=>({height:x==="px"&&w?w:"auto",width:"auto"}),[w,x]),Wo=w&&x?`${w}${x}`:w,Nn=!(b||v),So={minHeight:Wo||void 0},sa=q?`url(${q})`:void 0,la=pn(h),Mn={backgroundColor:o.color},ca={objectPosition:h&&Nn?pn(h):void 0},md=!!(q||o.color||U),pu=(0,Bl.useSelect)(pe=>pe(oo.store).getBlock(t).innerBlocks.length>0,[t]),za=(0,Un.useRef)(),Ha=(0,oo.useBlockProps)({ref:za}),il=(0,oo.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{allowedBlocks:C,templateLock:S,dropZoneElement:za.current}),ja=(0,Un.useRef)(),sl=(0,Un.useRef)(),bs={isVideoBackground:fe,isImageBackground:ye,mediaElement:ja,hasInnerBlocks:pu,url:q,isImgElement:Nn,overlayColor:o},fd=(0,Un.useCallback)(()=>{!d||!O||O({id:d,onClose:()=>{sl.current?.focus()},onUpdate:async({id:pe,url:ve})=>{if(typeof pe!="number")return;pe!==d&&ve&&ge(!0);let Ye={id:pe,backgroundType:nr,...ve?{url:ve}:{},...pe!==d?{sizeSlug:sf}:{}};if(ve){let nt=await uf(ve),{attributes:Ir,overlayColor:Ua}=$.current,Ci=Ua.color;Ir.isUserOverlayColor||(Ci=nt,i(Ci),j()),Ye.isDark=Yd(Ir.dimRatio,Ci,nt),Ye.isUserOverlayColor=Ir.isUserOverlayColor||!1}n(Ye);let{hasParallax:dt,isRepeated:$t}=$.current.attributes;(dt||$t)&&ge(!1)}})},[d,O,n,i,j]),ua=Pe&&!f&&ye&&!!d&&!!q&&!Qe&&!!O,Ln=async()=>{let pe=!f,ve=pe?await uf(K):r1,{attributes:Ye,overlayColor:dt}=$.current,$t=Ye.isUserOverlayColor?dt.color:ve;Ye.isUserOverlayColor||(i(pe?$t:void 0),j());let nt=Ye.dimRatio===100?50:Ye.dimRatio,Ir=Yd(nt,$t,ve);G.batch(()=>{n({id:void 0,url:void 0,useFeaturedImage:pe,dimRatio:nt,backgroundType:f?nr:void 0,isDark:Ir}),pe&&X()})},wi=(0,ar.jsx)(jQ,{attributes:e,setAttributes:n,onSelectMedia:Q,onSelectEmbedUrl:se,currentSettings:bs,toggleUseFeaturedImage:Ln,onClearMedia:ie,blockEditingMode:re,onEditMedia:fd,editMediaButtonRef:sl,showEditMediaButton:ua,isEditMediaDisabled:ce}),Rn=(0,ar.jsx)(DQ,{attributes:e,setAttributes:n,clientId:t,setOverlayColor:me,coverRef:za,currentSettings:bs,onSelectMedia:Q,onUploadError:Be,toggleUseFeaturedImage:Ln,updateDimRatio:xe,onClearMedia:ie,featuredImage:z,isSelected:r}),ne={className:"block-library-cover__resize-container",clientId:t,height:rr,minHeight:Wo,onResizeStart:()=>{n({minHeightUnit:"px"}),s(!1)},onResize:pe=>{n({minHeight:pe})},onResizeStop:pe=>{s(!0),n({minHeight:pe})},showHandle:!e.style?.dimensions?.aspectRatio,size:gr,width:Ft};if(!f&&!pu&&!md)return(0,ar.jsxs)(ar.Fragment,{children:[wi,Rn,Pe&&r&&(0,ar.jsx)(DR,{...ne}),(0,ar.jsxs)(P,{...Ha,className:T("is-placeholder",Ha.className),style:{...Ha.style,minHeight:Wo||void 0},children:[Se,(0,ar.jsx)(RR,{onSelectMedia:Q,onError:Be,toggleUseFeaturedImage:Ln,children:(0,ar.jsx)("div",{className:"wp-block-cover__placeholder-background-options",children:(0,ar.jsx)(oo.ColorPalette,{disableCustomColors:!0,value:o.color,onChange:me,clearable:!1,presentation:"toggle-buttons","aria-label":(0,GR.__)("Overlay color")})})})]})]});let He=T({"is-dark-theme":_,"is-light":!_,"is-transient":Qe||ce,"has-parallax":b,"is-repeated":v,"has-custom-content-position":!_a(u)},ei(u)),bt=q||!f||f&&!q;return(0,ar.jsxs)(ar.Fragment,{children:[wi,Rn,(0,ar.jsxs)(P,{...Ha,className:T(He,Ha.className),style:{...So,...Ha.style},"data-url":q,children:[Se,!q&&f&&(0,ar.jsx)(df.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),q&&ye&&(Nn?(0,ar.jsx)("img",{ref:ja,className:"wp-block-cover__image-background",alt:k,src:q,style:ca,onLoad:()=>ge(!1),onError:()=>ge(!1)}):(0,ar.jsx)("div",{ref:ja,role:k?"img":void 0,"aria-label":k||void 0,className:T(He,"wp-block-cover__image-background"),style:{backgroundImage:sa,backgroundPosition:la}})),q&&fe&&(0,ar.jsx)("video",{ref:ja,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:q,poster:E,style:ca}),de&&qe&&(0,ar.jsx)("div",{ref:ja,className:"wp-block-cover__video-background wp-block-cover__embed-background",style:ca,children:(0,ar.jsx)(df.SandBox,{allowSameOrigin:!0,html:qe,title:"Background video",styles:["iframe{position:fixed;top:0;left:0;width:100%;height:100%;}"]})}),de&&!qe&&ze&&(0,ar.jsx)(df.Spinner,{}),bt&&(0,ar.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",Ds(g),{[o.class]:o.class,"has-background-dim":g!==void 0,"wp-block-cover__gradient-background":q&&U&&g!==0,"has-background-gradient":U,[Z]:Z}),style:{backgroundImage:U,...Mn}}),(Qe||ce)&&(0,ar.jsx)(df.Spinner,{}),(0,ar.jsx)(RR,{disableMediaButtons:!0,onSelectMedia:Q,onError:Be,toggleUseFeaturedImage:Ln}),(0,ar.jsx)("div",{...il})]}),Pe&&r&&(0,ar.jsx)(DR,{...ne})]})}var vX=(0,p3.compose)([(0,oo.withColors)({overlayColor:"background-color"})])(d7e);var m3={$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:{__experimentalOnEnter:!0,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 Qd=a(I(),1);var vc=a(y(),1);function _X({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:s,focalPoint:l,useFeaturedImage:c,hasParallax:u,isDark:d,isRepeated:p,overlayColor:m,url:f,alt:g,id:h,minHeight:b,minHeightUnit:_,tagName:v,sizeSlug:w,poster:x}=e,k=(0,Qd.getColorClassName)("background-color",m),C=(0,Qd.__experimentalGetGradientClass)(r),S=b&&_?`${b}${_}`:b,P=nr===t,B=Ar===t,N=Mu===t,E=!(u||p),M={minHeight:S||void 0},R={backgroundColor:k?void 0:i,background:n||void 0},O=l&&E?pn(l):void 0,j=f?`url(${f})`:void 0,V=pn(l),G=T({"is-light":!d,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!_a(o)},ei(o)),$=T("wp-block-cover__image-background",h?`wp-image-${h}`:null,{[`size-${w}`]:w,"has-parallax":u,"is-repeated":p}),z=r||n;return(0,vc.jsxs)(v,{...Qd.useBlockProps.save({className:G,style:M}),children:[!c&&P&&f&&(E?(0,vc.jsx)("img",{className:$,alt:g,src:f,style:{objectPosition:O},"data-object-fit":"cover","data-object-position":O}):(0,vc.jsx)("div",{role:g?"img":void 0,"aria-label":g||void 0,className:$,style:{backgroundPosition:V,backgroundImage:j}})),B&&f&&(0,vc.jsx)("video",{className:T("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,poster:x,style:{objectPosition:O},"data-object-fit":"cover","data-object-position":O}),N&&f&&(0,vc.jsx)("figure",{className:T("wp-block-cover__video-background","wp-block-cover__embed-background","wp-block-embed"),children:(0,vc.jsx)("div",{className:"wp-block-embed__wrapper",children:f})}),(0,vc.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",k,Ds(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":f&&z&&s!==0,"has-background-gradient":z,[C]:C}),style:R}),(0,vc.jsx)("div",{...Qd.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}var zi=a(te(),1),xX=a(I(),1);var{cleanEmptyObject:f3}=le(xX.privateApis),m7e={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:r,align:o,id:n,anchor:i,style:s})=>(0,zi.createBlock)("core/cover",{dimRatio:50,url:t,alt:r,align:o,id:n,anchor:i,style:{color:{duotone:s?.color?.duotone}}},[(0,zi.createBlock)("core/paragraph",{content:e,fontSize:"large",style:{typography:{textAlign:"center"}}})])},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:r,id:o,anchor:n})=>(0,zi.createBlock)("core/cover",{dimRatio:50,url:t,align:r,id:o,backgroundType:Ar,anchor:n},[(0,zi.createBlock)("core/paragraph",{content:e,fontSize:"large",style:{typography:{textAlign:"center"}}})])},{type:"block",blocks:["core/group"],transform:(e,t)=>{let{align:r,anchor:o,backgroundColor:n,gradient:i,style:s}=e;if(t?.length===1&&t[0]?.name==="core/cover")return(0,zi.createBlock)("core/cover",t[0].attributes,t[0].innerBlocks);let l=n||i||s?.color?.background||s?.color?.gradient?void 0:50,c={align:r,anchor:o,dimRatio:l,overlayColor:n,customOverlayColor:s?.color?.background,gradient:i,customGradient:s?.color?.gradient},u={...e,backgroundColor:void 0,gradient:void 0,style:f3({...e?.style,color:s?.color?{...s?.color,background:void 0,gradient:void 0}:void 0})};return(0,zi.createBlock)("core/cover",c,[(0,zi.createBlock)("core/group",u,t)])}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:r,customOverlayColor:o,gradient:n,customGradient:i})=>t?e===nr:!r&&!o&&!n&&!i,transform:({title:e,url:t,alt:r,align:o,id:n,anchor:i,style:s})=>(0,zi.createBlock)("core/image",{caption:e,url:t,alt:r,align:o,id:n,anchor:i,style:{color:{duotone:s?.color?.duotone}}})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:r,customOverlayColor:o,gradient:n,customGradient:i})=>t?e===Ar:!r&&!o&&!n&&!i,transform:({title:e,url:t,align:r,id:o,anchor:n})=>(0,zi.createBlock)("core/video",{caption:e,src:t,id:o,align:r,anchor:n})},{type:"block",blocks:["core/group"],isMatch:({url:e,useFeaturedImage:t})=>!(e||t),transform:(e,t)=>{let r={backgroundColor:e?.overlayColor,gradient:e?.gradient,style:f3({...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=f3(t[0].attributes||{});return o?.backgroundColor||o?.gradient||o?.style?.color?.background||o?.style?.color?.gradient?(0,zi.createBlock)("core/group",o,t[0]?.innerBlocks):(0,zi.createBlock)("core/group",{...r,...o,style:f3({...o?.style,color:r?.style?.color||o?.style?.color?{...r?.style?.color,...o?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,zi.createBlock)("core/group",{...e,...r},t)}}]},kX=m7e;var $R=a(L(),1);var f7e=[{name:"cover",title:(0,$R.__)("Cover"),description:(0,$R.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:dm}],wX=f7e;var{name:SX}=m3,TX={icon:dm,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,CX.__)("Snow Patrol")}</strong>`,style:{typography:{textAlign:"center"}}}}]},transforms:kX,save:_X,edit:vX,deprecated:_Q,variations:wX},g7e=()=>D({name:SX,metadata:m3,settings:TX});var ZR={};J(ZR,{init:()=>v7e,metadata:()=>g3,name:()=>LX,settings:()=>RX});var ep=a(L(),1);var g3={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,link:!0,heading:!0,button:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{color:!0,width:!0,style:!0},html:!1,shadow:!0,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 Il=a(I(),1),Jd=a(F(),1),Xd=a(L(),1),EX=a(W(),1),PX=a(H(),1),BX=a(fc(),1);var oi=a(y(),1);function b7e({attributes:e,setAttributes:t,clientId:r}){let{name:o,showContent:n,summary:i,allowedBlocks:s,placeholder:l}=e,c=(0,Il.useBlockProps)(),u=(0,Il.useInnerBlocksProps)(c,{__experimentalCaptureToolbars:!0,allowedBlocks:s}),[d,p]=(0,EX.useState)(n),m=ee(),f=(0,PX.useSelect)(b=>b(Il.store).hasSelectedInnerBlock(r,!0),[r]),g=b=>{b.key==="Enter"&&!b.shiftKey&&(p(_=>!_),b.preventDefault())},h=b=>{b.key===" "&&b.preventDefault()};return(0,oi.jsxs)(oi.Fragment,{children:[(0,oi.jsx)(Il.InspectorControls,{children:(0,oi.jsx)(Jd.__experimentalToolsPanel,{label:(0,Xd.__)("Settings"),resetAll:()=>{t({showContent:!1})},dropdownMenuProps:m,children:(0,oi.jsx)(Jd.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Xd.__)("Open by default"),hasValue:()=>n,onDeselect:()=>{t({showContent:!1})},children:(0,oi.jsx)(Jd.ToggleControl,{label:(0,Xd.__)("Open by default"),checked:n,onChange:()=>t({showContent:!n})})})})}),(0,oi.jsx)(Il.InspectorControls,{group:"advanced",children:(0,oi.jsx)(Jd.TextControl,{label:(0,Xd.__)("Name attribute"),value:o||"",onChange:b=>t({name:b}),help:(0,Xd.__)("Enables multiple Details blocks with the same name attribute to be connected, with only one open at a time.")})}),(0,oi.jsxs)("details",{...u,open:d||f,onToggle:b=>p(b.target.open),name:o||"",children:[(0,oi.jsx)("summary",{onKeyDown:(0,BX.withIgnoreIMEEvents)(g),onKeyUp:h,children:(0,oi.jsx)(Il.RichText,{identifier:"summary","aria-label":(0,Xd.__)("Write summary. Press Enter to expand or collapse the details."),placeholder:l||(0,Xd.__)("Write summary\u2026"),withoutInteractiveFormatting:!0,value:i,onChange:b=>t({summary:b})})}),u.children]})]})}var IX=b7e;var n1=a(I(),1),o1=a(y(),1);function NX({attributes:e}){let{name:t,showContent:r}=e,o=e.summary?e.summary:"Details",n=n1.useBlockProps.save();return(0,o1.jsxs)("details",{...n,name:t||void 0,open:r,children:[(0,o1.jsx)("summary",{children:(0,o1.jsx)(n1.RichText.Content,{value:o})}),(0,o1.jsx)(n1.InnerBlocks.Content,{})]})}var h3=a(te(),1),MX={from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch({},e){return!(e.length===1&&e[0].name==="core/details")},__experimentalConvert(e){return(0,h3.createBlock)("core/details",{},e.map(t=>(0,h3.cloneSanitizedBlock)(t)))}}]};var{name:LX}=g3,y7e=[["core/paragraph",{placeholder:(0,ep.__)("Type / to add a hidden block")}]],RX={icon:tB,template:y7e,example:{attributes:{summary:(0,ep.__)("La Mancha"),showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,ep.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}}]},__experimentalLabel(e,{context:t}){let{summary:r}=e,o=e?.metadata?.name,n=r?.trim().length>0;if(t==="list-view"&&(o||n))return o||r;if(t==="breadcrumb"&&o)return o;if(t==="accessibility")return n?(0,ep.sprintf)((0,ep.__)("Details. %s"),r):(0,ep.__)("Details. Empty.")},save:NX,edit:IX,transforms:MX},v7e=()=>D({name:LX,metadata:g3,settings:RX});var JR={};J(JR,{init:()=>B7e,metadata:()=>pc,name:()=>hJ,settings:()=>bJ});var mf=a(L(),1),l1=a(W(),1),y2=a(H(),1),x3=a(I(),1),XR=a(ae(),1);var pf=a(L(),1),_c=a(F(),1),b3=a(I(),1);var As=a(y(),1);function _7e(e){return e?(0,pf.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,pf.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var x7e=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:r,allowResponsive:o,toggleResponsive:n,switchBackToURLInput:i})=>{let s=ee();return(0,As.jsxs)(As.Fragment,{children:[(0,As.jsx)(b3.BlockControls,{children:(0,As.jsx)(_c.ToolbarGroup,{children:t&&(0,As.jsx)(_c.ToolbarButton,{className:"components-toolbar__control",label:(0,pf.__)("Edit URL"),icon:vm,onClick:i})})}),r&&e&&(0,As.jsx)(b3.InspectorControls,{children:(0,As.jsx)(_c.__experimentalToolsPanel,{label:(0,pf.__)("Media settings"),resetAll:()=>{n(!0)},dropdownMenuProps:s,children:(0,As.jsx)(_c.__experimentalToolsPanelItem,{label:(0,pf.__)("Media settings"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>{n(!o)},children:(0,As.jsx)(_c.ToggleControl,{label:(0,pf.__)("Resize for smaller devices"),checked:o,help:_7e,onChange:n})})})})]})},DX=x7e;var Ie=a(F(),1),Le=a(y(),1),Nl=(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Le.jsx)(Ie.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"})}),y3=(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Le.jsx)(Ie.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"})}),KR=(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Le.jsx)(Ie.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"})}),a1=(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Le.jsx)(Ie.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"})}),AX={foreground:"#000000",src:(0,Le.jsx)(Ie.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.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"})})},OX={foreground:"#ff0000",src:(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.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"})})},FX={foreground:"#3b5998",src:(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.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"})})},VX=(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.G,{children:(0,Le.jsx)(Ie.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"})})}),zX={foreground:"#0073AA",src:(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.G,{children:(0,Le.jsx)(Ie.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"})})})},HX={foreground:"#1db954",src:(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.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"})})},jX=(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.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"})}),UX={foreground:"#1ab7ea",src:(0,Le.jsx)(Ie.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.G,{children:(0,Le.jsx)(Ie.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"})})})},WX=(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.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"})}),GX={foreground:"#35465c",src:(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.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"})})},$X=(0,Le.jsxs)(Ie.SVG,{viewBox:"0 0 24 24",children:[(0,Le.jsx)(Ie.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,Le.jsx)(Ie.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,Le.jsx)(Ie.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"})]}),qX=(0,Le.jsxs)(Ie.SVG,{viewBox:"0 0 24 24",children:[(0,Le.jsx)(Ie.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,Le.jsx)(Ie.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,Le.jsx)(Ie.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,Le.jsx)(Ie.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,Le.jsx)(Ie.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,Le.jsx)(Ie.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})]}),ZX=(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.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"})}),KX=(0,Le.jsx)(Ie.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Le.jsx)(Ie.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"})}),YX=(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 44 44",children:(0,Le.jsx)(Ie.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"})}),QX={foreground:"#f43e37",src:(0,Le.jsxs)(Ie.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Le.jsx)(Ie.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,Le.jsx)(Ie.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"})]})},XX=(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.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 JX=a(F(),1),YR=a(y(),1),k7e=()=>(0,YR.jsx)("div",{className:"wp-block-embed is-loading",children:(0,YR.jsx)(JX.Spinner,{})}),eJ=k7e;var xc=a(L(),1),tp=a(F(),1),tJ=a(I(),1);var ni=a(y(),1);function rJ({icon:e,label:t,value:r,onSubmit:o,onChange:n,cannotEmbed:i,fallback:s,tryAgain:l}){return(0,ni.jsxs)(tp.Placeholder,{icon:(0,ni.jsx)(tJ.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,xc.__)("Paste a link to the content you want to display on your site."),children:[(0,ni.jsxs)("form",{onSubmit:o,children:[(0,ni.jsx)(tp.__experimentalInputControl,{type:"url",value:r||"",className:"wp-block-embed__placeholder-input",label:t,hideLabelFromVision:!0,placeholder:(0,xc.__)("Enter URL to embed here\u2026"),onChange:n}),(0,ni.jsx)(tp.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,xc._x)("Embed","button label")})]}),(0,ni.jsx)("div",{className:"wp-block-embed__learn-more",children:(0,ni.jsx)(bl,{openInNewTab:!0,href:(0,xc.__)("https://wordpress.org/documentation/article/embeds/"),children:(0,xc.__)("Learn more about embeds")})}),i&&(0,ni.jsxs)(Es,{direction:"column",gap:"md",className:"components-placeholder__error",children:[(0,ni.jsx)("div",{className:"components-placeholder__instructions",children:(0,xc.__)("Sorry, this content could not be embedded.")}),(0,ni.jsxs)(Es,{direction:"row",gap:"md",justify:"flex-start",children:[(0,ni.jsx)(tp.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:l,children:(0,xc._x)("Try again","button label")}),s&&(0,ni.jsx)(tp.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:s,children:(0,xc._x)("Convert to link","button label")})]})]})]})}var s1=a(L(),1),_3=a(F(),1),nJ=a(I(),1),aJ=a(W(),1),iJ=a(qt(),1);var v3=a(_e(),1),i1=a(W(),1),QR=a(y(),1),w7e={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function oJ({html:e}){let t=(0,i1.useRef)(),r=(0,i1.useMemo)(()=>{let n=new window.DOMParser().parseFromString(e,"text/html").querySelector("iframe"),i={};return n&&Array.from(n.attributes).forEach(({name:s,value:l})=>{s!=="style"&&(i[w7e[s]||s]=l)}),i},[e]);return(0,i1.useEffect)(()=>{let{ownerDocument:o}=t.current,{defaultView:n}=o;function i({data:{secret:s,message:l,value:c}={}}){l!=="height"||s!==r["data-secret"]||(t.current.height=c)}return n.addEventListener("message",i),()=>{n.removeEventListener("message",i)}},[]),(0,QR.jsx)("div",{className:"wp-block-embed__wrapper",children:(0,QR.jsx)("iframe",{ref:(0,v3.useMergeRefs)([t,(0,v3.useFocusableIframe)()]),title:r.title,...r})})}var ai=a(y(),1);function sJ({preview:e,previewable:t,url:r,type:o,isSelected:n,className:i,icon:s,label:l}){let[c,u]=(0,aJ.useState)(!1);!n&&c&&u(!1);let d=()=>{u(!0)},{scripts:p}=e,m=o==="photo"?Tq(e):e.html,f=(0,iJ.getAuthority)(r),g=(0,s1.sprintf)((0,s1.__)("Embedded content from %s"),f),h=T(o,i,"wp-block-embed__wrapper");return(0,ai.jsx)(ai.Fragment,{children:t?o==="wp-embed"?(0,ai.jsx)(oJ,{html:m}):(0,ai.jsxs)("div",{className:"wp-block-embed__wrapper",children:[(0,ai.jsx)(_3.SandBox,{allowSameOrigin:!0,html:m,scripts:p,title:g,type:h,onFocus:d}),!c&&(0,ai.jsx)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:d})]}):(0,ai.jsxs)(_3.Placeholder,{icon:(0,ai.jsx)(nJ.BlockIcon,{icon:s,showColors:!0}),label:l,children:[(0,ai.jsx)("p",{className:"components-placeholder__error",children:(0,ai.jsx)("a",{href:r,children:r})}),(0,ai.jsx)("p",{className:"components-placeholder__error",children:(0,s1.sprintf)((0,s1.__)("Embedded content from %s can't be previewed in the editor."),f)})]})})}var Hi=a(y(),1),C7e=e=>{let{attributes:{providerNameSlug:t,previewable:r,responsive:o,url:n},attributes:i,isSelected:s,onReplace:l,setAttributes:c,insertBlocksAfter:u,onFocus:d}=e,p={title:(0,mf._x)("Embed","block title"),icon:Nl},{icon:m,title:f}=Cq(t)||p,[g,h]=(0,l1.useState)(n),[b,_]=(0,l1.useState)(!1),{invalidateResolution:v}=(0,y2.useDispatch)(XR.store),{__unstableMarkNextChangeAsNotPersistent:w}=(0,y2.useDispatch)(x3.store),{preview:x,fetching:k,themeSupportsResponsive:C,cannotEmbed:S,hasResolved:P}=(0,y2.useSelect)(z=>{let{getEmbedPreview:K,isPreviewEmbedFallback:q,isRequestingEmbedPreview:Y,getThemeSupports:oe,hasFinishedResolution:Z}=z(XR.store);if(!n)return{fetching:!1,cannotEmbed:!1};let U=K(n),X=q(n),Q=U?.html===!1&&U?.type===void 0,ie=U?.data?.status===404,me=!!U&&!Q&&!ie;return{preview:me?U:void 0,fetching:Y(n),themeSupportsResponsive:oe()["responsive-embeds"],cannotEmbed:!me||X,hasResolved:Z("getEmbedPreview",[n])}},[n]),B=()=>Pq(i,x,f,o);function N(z){let{className:K}=i,{html:q}=x;c({allowResponsive:z,className:IL(q,K,o&&z)})}(0,l1.useEffect)(()=>{if(!S||!P||!n)return;let z=n.replace(/\/$/,"");z!==n&&(h(z),_(!1),w(),c({url:z}))},[n,S,P,c,w]),(0,l1.useEffect)(()=>{if(!x||b)return;let z=B();if(l){let q=Od(e,z);if(q){w(),c(q.attributes);return}}Object.keys(z).some(q=>z[q]!==i[q])&&(w(),c(z))},[x,b]);let E=(0,x3.useBlockProps)();if(k)return(0,Hi.jsx)("div",{...E,children:(0,Hi.jsx)(eJ,{})});let M=(0,mf.sprintf)((0,mf.__)("%s URL"),f);if(!x||S||b)return(0,Hi.jsx)("div",{...E,children:(0,Hi.jsx)(rJ,{icon:m,label:M,onFocus:d,onSubmit:z=>{z&&z.preventDefault();let K=$_(g),q=Ad(i.className);h(K),c({url:K,...Mh(K)?.attributes,className:q}),_(!1)},value:g,cannotEmbed:S,onChange:z=>h(z),fallback:l?()=>Eq(g,l):void 0,tryAgain:()=>{v("getEmbedPreview",[g])}})});let{caption:O,type:j,allowResponsive:V,className:G}=B(),$=T(G,e.className);return(0,Hi.jsxs)(Hi.Fragment,{children:[(0,Hi.jsx)(DX,{showEditButton:x&&!S,themeSupportsResponsive:C,blockSupportsResponsive:o,allowResponsive:V,toggleResponsive:N,switchBackToURLInput:()=>_(!0)}),(0,Hi.jsxs)("figure",{...E,className:T(E.className,$,{[`is-type-${j}`]:j,[`is-provider-${t}`]:t,[`wp-block-embed-${t}`]:t}),children:[(0,Hi.jsx)(sJ,{preview:x,previewable:r,className:$,url:g,type:j,caption:O,onCaptionChange:z=>c({caption:z}),isSelected:s,icon:m,label:M,insertBlocksAfter:u,attributes:i,setAttributes:c}),(0,Hi.jsx)(Zo,{attributes:i,setAttributes:c,isSelected:s,insertBlocksAfter:u,label:(0,mf.__)("Embed caption text"),showToolbarButton:s})]})]})},lJ=C7e;var ff=a(I(),1),v2=a(y(),1);function cJ({attributes:e}){let{url:t,caption:r,type:o,providerNameSlug:n}=e;if(!t)return null;let i=T("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${n}`]:n,[`wp-block-embed-${n}`]:n});return(0,v2.jsxs)("figure",{...ff.useBlockProps.save({className:i}),children:[(0,v2.jsx)("div",{className:"wp-block-embed__wrapper",children:`
19 ${t}
20 `}),!ff.RichText.isEmpty(r)&&(0,v2.jsx)(ff.RichText.Content,{className:(0,ff.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var k3=a(te(),1),w3=a(qt(),1);var{name:uJ}=pc,S7e={from:[{type:"raw",isMatch:e=>{if(e.nodeName!=="P")return!1;let t=e.textContent.trim();return!(0,w3.isURL)(t)||!/^https:\/\//i.test(t)||t.match(/https:\/\//gi)?.length!==1?!1:!/\.(?!(html?|php)$)[a-z0-9]+$/i.test((0,w3.getFilename)(t)||"")},transform:e=>{let t=$_(e.textContent.trim());return(0,k3.createBlock)(uJ,{url:t,...Mh(t)?.attributes})}},{type:"shortcode",tag:"embed",transform:(e,{shortcode:t})=>{let r=$_(t.content?.trim());return(0,k3.createBlock)(uJ,{url:r,...Mh(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,k3.createBlock)("core/paragraph",{content:o,className:Ad(r)})}}]},dJ=S7e;var Ee=a(L(),1);function Tt(e){return(0,Ee.sprintf)((0,Ee.__)("%s Embed"),e)}var pJ=[{name:"twitter",title:Tt("X"),icon:AX,keywords:["x","twitter","tweet",(0,Ee.__)("social")],description:(0,Ee.__)("Embed an X post."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:Tt("YouTube"),icon:OX,keywords:[(0,Ee.__)("music"),(0,Ee.__)("video")],description:(0,Ee.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:Tt("Facebook"),icon:FX,keywords:[(0,Ee.__)("social")],description:(0,Ee.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:Tt("Instagram"),icon:VX,keywords:[(0,Ee.__)("image"),(0,Ee.__)("social")],description:(0,Ee.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:Tt("WordPress"),icon:zX,keywords:[(0,Ee.__)("post"),(0,Ee.__)("blog")],description:(0,Ee.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:Tt("SoundCloud"),icon:y3,keywords:[(0,Ee.__)("music"),(0,Ee.__)("audio")],description:(0,Ee.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:Tt("Spotify"),icon:HX,keywords:[(0,Ee.__)("music"),(0,Ee.__)("audio")],description:(0,Ee.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:Tt("Flickr"),icon:jX,keywords:[(0,Ee.__)("image")],description:(0,Ee.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:Tt("Vimeo"),icon:UX,keywords:[(0,Ee.__)("video")],description:(0,Ee.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:Tt("Animoto"),icon:qX,description:(0,Ee.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:Tt("Cloudup"),icon:Nl,description:(0,Ee.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:Tt("CollegeHumor"),icon:a1,description:(0,Ee.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:Tt("Crowdsignal"),icon:Nl,keywords:["polldaddy",(0,Ee.__)("survey")],description:(0,Ee.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.crowdsignal\.net|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:Tt("Dailymotion"),icon:ZX,keywords:[(0,Ee.__)("video")],description:(0,Ee.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:Tt("Imgur"),icon:KR,description:(0,Ee.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:Tt("Issuu"),icon:Nl,description:(0,Ee.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:Tt("Kickstarter"),icon:Nl,description:(0,Ee.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:Tt("Mixcloud"),icon:y3,keywords:[(0,Ee.__)("music"),(0,Ee.__)("audio")],description:(0,Ee.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:Tt("Pocket Casts"),icon:QX,keywords:[(0,Ee.__)("podcast"),(0,Ee.__)("audio")],description:(0,Ee.__)("Embed a podcast player from Pocket Casts."),patterns:[/^https:\/\/pca.st\/\w+/i],attributes:{providerNameSlug:"pocket-casts",responsive:!0}},{name:"reddit",title:Tt("Reddit"),icon:WX,description:(0,Ee.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:Tt("ReverbNation"),icon:y3,description:(0,Ee.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"scribd",title:Tt("Scribd"),icon:Nl,description:(0,Ee.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"smugmug",title:Tt("SmugMug"),icon:KR,description:(0,Ee.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:Tt("Speaker Deck"),icon:Nl,description:(0,Ee.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:Tt("TikTok"),icon:a1,keywords:[(0,Ee.__)("video")],description:(0,Ee.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:Tt("TED"),icon:a1,description:(0,Ee.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:Tt("Tumblr"),icon:GX,keywords:[(0,Ee.__)("social")],description:(0,Ee.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:Tt("VideoPress"),icon:a1,keywords:[(0,Ee.__)("video")],description:(0,Ee.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:Tt("WordPress.tv"),icon:a1,description:(0,Ee.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:Tt("Amazon Kindle"),icon:$X,keywords:[(0,Ee.__)("ebook")],description:(0,Ee.__)("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:Tt("Pinterest"),icon:KX,keywords:[(0,Ee.__)("social"),(0,Ee.__)("bookmark")],description:(0,Ee.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:Tt("Wolfram"),icon:YX,description:(0,Ee.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}},{name:"bluesky",title:Tt("Bluesky"),icon:XX,description:(0,Ee.__)("Embed a Bluesky post."),patterns:[/^https?:\/\/bsky\.app\/profile\/.+\/post\/.+/i],attributes:{providerNameSlug:"bluesky"}}];pJ.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.providerNameSlug===r.providerNameSlug)});var mJ=pJ;var gf=a(I(),1);var hf=a(y(),1),{attributes:fJ}=pc,T7e={attributes:fJ,save({attributes:e}){let{url:t,caption:r,type:o,providerNameSlug:n}=e;if(!t)return null;let i=T("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${n}`]:n,[`wp-block-embed-${n}`]:n});return(0,hf.jsxs)("figure",{...gf.useBlockProps.save({className:i}),children:[(0,hf.jsx)("div",{className:"wp-block-embed__wrapper",children:`
21 ${t}
22 `}),!gf.RichText.isEmpty(r)&&(0,hf.jsx)(gf.RichText.Content,{tagName:"figcaption",value:r})]})}},E7e={attributes:fJ,save({attributes:{url:e,caption:t,type:r,providerNameSlug:o}}){if(!e)return null;let n=T("wp-block-embed",{[`is-type-${r}`]:r,[`is-provider-${o}`]:o});return(0,hf.jsxs)("figure",{className:n,children:[`
23 ${e}
24 `,!gf.RichText.isEmpty(t)&&(0,hf.jsx)(gf.RichText.Content,{tagName:"figcaption",value:t})]})}},P7e=[T7e,E7e],gJ=P7e;var{name:hJ}=pc,bJ={icon:Nl,edit:lJ,save:cJ,transforms:dJ,variations:mJ,deprecated:gJ},B7e=()=>D({name:hJ,metadata:pc,settings:bJ});var nD={};J(nD,{init:()=>V7e,metadata:()=>S3,name:()=>FJ,settings:()=>VJ});var OJ=a(L(),1);var No=a(I(),1),Ml=a(L(),1),ir=a(y(),1),I7e={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileId:r,fileName:o,textLinkHref:n,textLinkTarget:i,showDownloadButton:s,downloadButtonText:l,displayPreview:c,previewHeight:u}=e,d=No.RichText.isEmpty(o)?(0,Ml.__)("PDF embed"):(0,Ml.sprintf)((0,Ml.__)("Embed of %s."),o),p=!No.RichText.isEmpty(o),m=p?r:void 0;return t&&(0,ir.jsxs)("div",{...No.useBlockProps.save(),children:[c&&(0,ir.jsx)(ir.Fragment,{children:(0,ir.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":d})}),p&&(0,ir.jsx)("a",{id:m,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,ir.jsx)(No.RichText.Content,{value:o})}),s&&(0,ir.jsx)("a",{href:t,className:T("wp-block-file__button",(0,No.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":m,children:(0,ir.jsx)(No.RichText.Content,{value:l})})]})}},N7e={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileId:r,fileName:o,textLinkHref:n,textLinkTarget:i,showDownloadButton:s,downloadButtonText:l,displayPreview:c,previewHeight:u}=e,d=No.RichText.isEmpty(o)?(0,Ml.__)("PDF embed"):(0,Ml.sprintf)((0,Ml.__)("Embed of %s."),o),p=!No.RichText.isEmpty(o),m=p?r:void 0;return t&&(0,ir.jsxs)("div",{...No.useBlockProps.save(),children:[c&&(0,ir.jsx)(ir.Fragment,{children:(0,ir.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":d})}),p&&(0,ir.jsx)("a",{id:m,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,ir.jsx)(No.RichText.Content,{value:o})}),s&&(0,ir.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":m,children:(0,ir.jsx)(No.RichText.Content,{value:l})})]})}},M7e={attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileName:r,textLinkHref:o,textLinkTarget:n,showDownloadButton:i,downloadButtonText:s,displayPreview:l,previewHeight:c}=e,u=No.RichText.isEmpty(r)?(0,Ml.__)("PDF embed"):(0,Ml.sprintf)((0,Ml.__)("Embed of %s."),r);return t&&(0,ir.jsxs)("div",{...No.useBlockProps.save(),children:[l&&(0,ir.jsx)(ir.Fragment,{children:(0,ir.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),!No.RichText.isEmpty(r)&&(0,ir.jsx)("a",{href:o,target:n,rel:n?"noreferrer noopener":void 0,children:(0,ir.jsx)(No.RichText.Content,{value:r})}),i&&(0,ir.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,children:(0,ir.jsx)(No.RichText.Content,{value:s})})]})}},L7e=[I7e,N7e,M7e],yJ=L7e;var tD=a(Ur(),1),u1=a(F(),1),c1=a(H(),1),hn=a(I(),1),wJ=a(W(),1),CJ=a(_e(),1),Lu=a(L(),1);var SJ=a(ae(),1),rD=a(br(),1),TJ=a(qt(),1);var fn=a(L(),1),gn=a(F(),1),vJ=a(I(),1);var Yo=a(y(),1);function _J({hrefs:e,openInNewWindow:t,showDownloadButton:r,changeLinkDestinationOption:o,changeOpenInNewWindow:n,changeShowDownloadButton:i,displayPreview:s,changeDisplayPreview:l,previewHeight:c,changePreviewHeight:u}){let{href:d,textLinkHref:p,attachmentPage:m}=e,f=ee(),g=[{value:d,label:(0,fn.__)("URL")}];return m&&(g=[{value:d,label:(0,fn.__)("Media file")},{value:m,label:(0,fn.__)("Attachment page")}]),(0,Yo.jsx)(Yo.Fragment,{children:(0,Yo.jsxs)(vJ.InspectorControls,{children:[d.endsWith(".pdf")&&(0,Yo.jsxs)(gn.__experimentalToolsPanel,{label:(0,fn.__)("PDF settings"),resetAll:()=>{l(!0),u(600)},dropdownMenuProps:f,children:[(0,Yo.jsx)(gn.__experimentalToolsPanelItem,{label:(0,fn.__)("Show inline embed"),isShownByDefault:!0,hasValue:()=>!s,onDeselect:()=>l(!0),children:(0,Yo.jsx)(gn.ToggleControl,{label:(0,fn.__)("Show inline embed"),help:s?(0,fn.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!s,onChange:l})}),s&&(0,Yo.jsx)(gn.__experimentalToolsPanelItem,{label:(0,fn.__)("Height in pixels"),isShownByDefault:!0,hasValue:()=>c!==600,onDeselect:()=>u(600),children:(0,Yo.jsx)(gn.RangeControl,{label:(0,fn.__)("Height in pixels"),min:C3,max:Math.max(eD,c),value:c,onChange:u})})]}),(0,Yo.jsxs)(gn.__experimentalToolsPanel,{label:(0,fn.__)("Settings"),resetAll:()=>{o(d),n(!1),i(!0)},dropdownMenuProps:f,children:[(0,Yo.jsx)(gn.__experimentalToolsPanelItem,{label:(0,fn.__)("Link to"),isShownByDefault:!0,hasValue:()=>p!==d,onDeselect:()=>o(d),children:(0,Yo.jsx)(gn.SelectControl,{label:(0,fn.__)("Link to"),value:p,options:g,onChange:o})}),(0,Yo.jsx)(gn.__experimentalToolsPanelItem,{label:(0,fn.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>n(!1),children:(0,Yo.jsx)(gn.ToggleControl,{label:(0,fn.__)("Open in new tab"),checked:t,onChange:n})}),(0,Yo.jsx)(gn.__experimentalToolsPanelItem,{label:(0,fn.__)("Show download button"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>i(!0),children:(0,Yo.jsx)(gn.ToggleControl,{label:(0,fn.__)("Show download button"),checked:r,onChange:i})})]})]})})}var kJ=()=>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)&&!(xJ("AcroPDF.PDF")||xJ("PDF.PdfCtrl"))),xJ=e=>{let t;try{t=new window.ActiveXObject(e)}catch{t=void 0}return t};var no=a(y(),1),C3=200,eD=2e3;function R7e({text:e,disabled:t}){let{createNotice:r}=(0,c1.useDispatch)(rD.store),o=(0,CJ.useCopyToClipboard)(e,()=>{r("info",(0,Lu.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})});return(0,no.jsx)(u1.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:o,disabled:t,children:(0,Lu.__)("Copy URL")})}function D7e({attributes:e,isSelected:t,setAttributes:r,clientId:o}){let{id:n,fileName:i,href:s,textLinkHref:l,textLinkTarget:c,showDownloadButton:u,downloadButtonText:d,displayPreview:p,previewHeight:m}=e,[f,g]=(0,wJ.useState)(e.blob),{media:h}=(0,c1.useSelect)(R=>({media:n?R(SJ.store).getEntityRecord("postType","attachment",n,{context:"view"}):void 0}),[n]),{createErrorNotice:b}=(0,c1.useDispatch)(rD.store),{toggleSelection:_}=(0,c1.useDispatch)(hn.store);ic({url:f,onChange:v,onError:w});function v(R){if(!R||!R.url){r({href:void 0,fileName:void 0,textLinkHref:void 0,id:void 0,fileId:void 0,displayPreview:void 0,previewHeight:void 0}),g();return}if((0,tD.isBlobURL)(R.url)){g(R.url);return}let O=(R.mime||R.mime_type)==="application/pdf"||(0,TJ.getFilename)(R.url).toLowerCase().endsWith(".pdf"),j={displayPreview:O?e.displayPreview??!0:void 0,previewHeight:O?e.previewHeight??600:void 0};r({href:R.url,fileName:R.title,textLinkHref:R.url,id:R.id,fileId:`wp-block-file--media-${o}`,blob:void 0,...j}),g()}function w(R){r({href:void 0}),b(R,{type:"snackbar"})}function x(R){r({textLinkHref:R})}function k(R){r({textLinkTarget:R?"_blank":!1})}function C(R){r({showDownloadButton:R})}function S(R){r({displayPreview:R})}function P(R,O,j,V){_(!0);let G=parseInt(m+V.height,10);r({previewHeight:G})}function B(R){let O=Math.max(parseInt(R,10),C3);r({previewHeight:O})}let N=h&&h.link,E=(0,hn.useBlockProps)({className:T(!!f&&(0,u1.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":!!f})}),M=kJ()&&p;return!s&&!f?(0,no.jsx)("div",{...E,children:(0,no.jsx)(hn.MediaPlaceholder,{icon:(0,no.jsx)(hn.BlockIcon,{icon:ay}),labels:{title:(0,Lu.__)("File"),instructions:(0,Lu.__)("Drag and drop a file, upload, or choose from your library.")},onSelect:v,onError:w,accept:"*"})}):(0,no.jsxs)(no.Fragment,{children:[(0,no.jsx)(_J,{hrefs:{href:s||f,textLinkHref:l,attachmentPage:N},openInNewWindow:!!c,showDownloadButton:u,changeLinkDestinationOption:x,changeOpenInNewWindow:k,changeShowDownloadButton:C,displayPreview:p,changeDisplayPreview:S,previewHeight:m,changePreviewHeight:B}),(0,no.jsxs)(hn.BlockControls,{group:"other",children:[(0,no.jsx)(hn.MediaReplaceFlow,{mediaId:n,mediaURL:s,accept:"*",onSelect:v,onError:w,onReset:()=>v(void 0)}),(0,no.jsx)(R7e,{text:s,disabled:(0,tD.isBlobURL)(s)})]}),(0,no.jsxs)("div",{...E,children:[M&&(0,no.jsxs)(u1.ResizableBox,{size:{height:m,width:"100%"},minHeight:C3,maxHeight:eD,grid:[1,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>_(!1),onResizeStop:P,showHandle:t,children:[(0,no.jsx)("object",{className:"wp-block-file__preview",data:s,type:"application/pdf","aria-label":(0,Lu.__)("Embed of the selected PDF file.")}),!t&&(0,no.jsx)("div",{className:"wp-block-file__preview-overlay"})]}),(0,no.jsxs)("div",{className:"wp-block-file__content-wrapper",children:[(0,no.jsx)(hn.RichText,{identifier:"fileName",tagName:"a",value:i,placeholder:(0,Lu.__)("Write file name\u2026"),withoutInteractiveFormatting:!0,onChange:R=>r({fileName:Y_(R)}),href:l}),u&&(0,no.jsx)("div",{className:"wp-block-file__button-richtext-wrapper",children:(0,no.jsx)(hn.RichText,{identifier:"downloadButtonText",tagName:"div","aria-label":(0,Lu.__)("Download button text"),className:T("wp-block-file__button",(0,hn.__experimentalGetElementClassName)("button")),value:d,withoutInteractiveFormatting:!0,placeholder:(0,Lu.__)("Add text\u2026"),onChange:R=>r({downloadButtonText:Y_(R)})})})]})]})]})}var EJ=D7e;var S3={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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 Ru=a(I(),1),Ll=a(y(),1);function PJ({attributes:e}){let{href:t,fileId:r,fileName:o,textLinkHref:n,textLinkTarget:i,showDownloadButton:s,downloadButtonText:l,displayPreview:c,previewHeight:u}=e,d=Ru.RichText.isEmpty(o)?"PDF embed":o.toString(),p=!Ru.RichText.isEmpty(o),m=p?r:void 0;return t&&(0,Ll.jsxs)("div",{...Ru.useBlockProps.save(),children:[c&&(0,Ll.jsx)(Ll.Fragment,{children:(0,Ll.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":d})}),p&&(0,Ll.jsx)("a",{id:m,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Ll.jsx)(Ru.RichText.Content,{value:o})}),s&&(0,Ll.jsx)("a",{href:t,className:T("wp-block-file__button",(0,Ru.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":m,children:(0,Ll.jsx)(Ru.RichText.Content,{value:l})})]})}var _2=a(Ur(),1),bf=a(te(),1),IJ=a(H(),1),NJ=a(ae(),1),MJ=a(L(),1),LJ=a(qt(),1),BJ=(0,MJ._x)("Download","button label"),oD=(e,t,r)=>({type:"block",blocks:[e],isMatch:({id:o})=>{if(!o)return!1;let{getEntityRecord:n}=(0,IJ.select)(NJ.store),i=n("postType","attachment",o,{context:"view"});return!!i&&i.mime_type.includes(t)},transform:o=>(0,bf.createBlock)(e,{[r]:o.href,caption:o.fileName,id:o.id,anchor:o.anchor})}),O7e={from:[{type:"files",isMatch(e){return e.length>0},priority:15,transform:e=>{let t=[];return e.forEach(r=>{let o=(0,_2.createBlobURL)(r);r.type.startsWith("video/")?t.push((0,bf.createBlock)("core/video",{blob:(0,_2.createBlobURL)(r)})):r.type.startsWith("image/")?t.push((0,bf.createBlock)("core/image",{blob:(0,_2.createBlobURL)(r)})):r.type.startsWith("audio/")?t.push((0,bf.createBlock)("core/audio",{blob:(0,_2.createBlobURL)(r)})):t.push((0,bf.createBlock)("core/file",{blob:o,fileName:r.name,downloadButtonText:BJ}))}),t}},{type:"block",blocks:["core/audio","core/video","core/image"],transform:e=>{let t=e.src??e.url;return(0,bf.createBlock)("core/file",{href:t,fileName:e.caption||(0,LJ.getFilename)(t),textLinkHref:t,id:e.id,anchor:e.anchor,downloadButtonText:BJ})}}],to:[oD("core/audio","audio","src"),oD("core/video","video","src"),oD("core/image","image","url")]},RJ=O7e;var DJ=a(L(),1),F7e=[{name:"default",isDefault:!0,attributes:{downloadButtonText:(0,DJ._x)("Download","button label")}}],AJ=F7e;var{name:FJ}=S3,VJ={icon:ay,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,OJ._x)("Armstrong_Small_Step","Name of the file")}},transforms:RJ,deprecated:yJ,edit:EJ,save:PJ,variations:AJ},V7e=()=>D({name:FJ,metadata:S3,settings:VJ});var bD={};J(bD,{init:()=>O9e,metadata:()=>H3,name:()=>tte,settings:()=>rte});var qr=a(I(),1),jJ=a(te(),1);var kc="none",wc="media",d1="lightbox",Cc="attachment",zJ="file",HJ="post",x2="large",T3=8;var Ze=a(y(),1),UJ="file",WJ="post";function p1(e){return Math.min(3,e?.images?.length)}function z7e(e,t){switch(t){case UJ:return{href:e?.source_url||e?.url,linkDestination:wc};case WJ:return{href:e?.link,linkDestination:Cc};case wc:return{href:e?.source_url||e?.url,linkDestination:wc};case Cc:return{href:e?.link,linkDestination:Cc};case kc:return{href:void 0,linkDestination:kc}}return{}}function m1(e){let t=e.linkTo?e.linkTo:"none";t==="post"?t="attachment":t==="file"&&(t="media");let r=e.images.map(s=>H7e(s,e.sizeSlug,t)),{images:o,ids:n,...i}=e;return[{...i,linkTo:t,allowResize:!1},r]}function H7e(e,t,r){return(0,jJ.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...z7e(e,r)})}var j7e={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},shortCodeTransforms:{type:"array",default:[],items:{type:"object"}},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},save({attributes:e}){let{caption:t,columns:r,imageCrop:o}=e,n=T("has-nested-images",{[`columns-${r}`]:r!==void 0,"columns-default":r===void 0,"is-cropped":o}),i=qr.useBlockProps.save({className:n}),s=qr.useInnerBlocksProps.save(i);return(0,Ze.jsxs)("figure",{...s,children:[s.children,!qr.RichText.isEmpty(t)&&(0,Ze.jsx)(qr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t})]})}},U7e={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=p1(e),imageCrop:o,caption:n,linkTo:i}=e,s=`columns-${r} ${o?"is-cropped":""}`;return(0,Ze.jsxs)("figure",{...qr.useBlockProps.save({className:s}),children:[(0,Ze.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(l=>{let c;switch(i){case UJ:c=l.fullUrl||l.url;break;case WJ:c=l.link;break}let u=(0,Ze.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,Ze.jsx)("li",{className:"blocks-gallery-item",children:(0,Ze.jsxs)("figure",{children:[c?(0,Ze.jsx)("a",{href:c,children:u}):u,!qr.RichText.isEmpty(l.caption)&&(0,Ze.jsx)(qr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!qr.RichText.isEmpty(n)&&(0,Ze.jsx)(qr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})},migrate(e){return m1(e)}},W7e={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 m1(e)},save({attributes:e}){let{images:t,columns:r=p1(e),imageCrop:o,caption:n,linkTo:i}=e;return(0,Ze.jsxs)("figure",{className:`columns-${r} ${o?"is-cropped":""}`,children:[(0,Ze.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(s=>{let l;switch(i){case"media":l=s.fullUrl||s.url;break;case"attachment":l=s.link;break}let c=(0,Ze.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,Ze.jsx)("li",{className:"blocks-gallery-item",children:(0,Ze.jsxs)("figure",{children:[l?(0,Ze.jsx)("a",{href:l,children:c}):c,!qr.RichText.isEmpty(s.caption)&&(0,Ze.jsx)(qr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:s.caption})]})},s.id||s.url)})}),!qr.RichText.isEmpty(n)&&(0,Ze.jsx)(qr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})}},G7e={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 m1(e)},save({attributes:e}){let{images:t,columns:r=p1(e),imageCrop:o,caption:n,linkTo:i}=e;return(0,Ze.jsxs)("figure",{className:`columns-${r} ${o?"is-cropped":""}`,children:[(0,Ze.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(s=>{let l;switch(i){case"media":l=s.fullUrl||s.url;break;case"attachment":l=s.link;break}let c=(0,Ze.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,Ze.jsx)("li",{className:"blocks-gallery-item",children:(0,Ze.jsxs)("figure",{children:[l?(0,Ze.jsx)("a",{href:l,children:c}):c,!qr.RichText.isEmpty(s.caption)&&(0,Ze.jsx)(qr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:s.caption})]})},s.id||s.url)})}),!qr.RichText.isEmpty(n)&&(0,Ze.jsx)(qr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})}},$7e={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=p1(e),imageCrop:o,linkTo:n}=e;return(0,Ze.jsx)("ul",{className:`columns-${r} ${o?"is-cropped":""}`,children:t.map(i=>{let s;switch(n){case"media":s=i.fullUrl||i.url;break;case"attachment":s=i.link;break}let l=(0,Ze.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,Ze.jsx)("li",{className:"blocks-gallery-item",children:(0,Ze.jsxs)("figure",{children:[s?(0,Ze.jsx)("a",{href:s,children:l}):l,i.caption&&i.caption.length>0&&(0,Ze.jsx)(qr.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})},migrate(e){return m1(e)}},q7e={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 m1(e)},supports:{align:!0},save({attributes:e}){let{images:t,columns:r=p1(e),imageCrop:o,linkTo:n}=e;return(0,Ze.jsx)("ul",{className:`columns-${r} ${o?"is-cropped":""}`,children:t.map(i=>{let s;switch(n){case"media":s=i.url;break;case"attachment":s=i.link;break}let l=(0,Ze.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,Ze.jsx)("li",{className:"blocks-gallery-item",children:(0,Ze.jsxs)("figure",{children:[s?(0,Ze.jsx)("a",{href:s,children:l}):l,i.caption&&i.caption.length>0&&(0,Ze.jsx)(qr.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})}},Z7e={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=p1(e),align:o,imageCrop:n,linkTo:i}=e,s=T(`columns-${r}`,{alignnone:o==="none","is-cropped":n});return(0,Ze.jsx)("div",{className:s,children:t.map(l=>{let c;switch(i){case"media":c=l.url;break;case"attachment":c=l.link;break}let u=(0,Ze.jsx)("img",{src:l.url,alt:l.alt,"data-id":l.id});return(0,Ze.jsx)("figure",{className:"blocks-gallery-image",children:c?(0,Ze.jsx)("a",{href:c,children:u}):u},l.id||l.url)})})},migrate(e){return m1(e)}},GJ=[j7e,U7e,W7e,G7e,$7e,q7e,Z7e];var Bt=a(F(),1),fo=a(I(),1),dp=a(W(),1),je=a(L(),1),E2=a(H(),1),qee=a(te(),1),gD=a(Ur(),1),Zee=a(br(),1);var $J=a(I(),1);var qJ=a(y(),1),E3=(0,qJ.jsx)($J.BlockIcon,{icon:gm});function P3(e){return e?Math.min(3,e):3}function B3(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Sc(e){let t=B3(e)?e.type:void 0;return typeof t!="string"||t===""||t==="flex"}var I3=(e,t="large")=>{let r=Object.fromEntries(Object.entries(e??{}).filter(([n])=>["alt","id","link"].includes(n)));r.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url||e?.source_url;let o=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return o&&(r.fullUrl=o),r};var Tc=20,yf="none",rp="media",op="attachment",aD="custom",ZJ=["noopener"],np=["image"];var iD=["flex","grid"],ap="full";function k2(e,t,r,o,n){switch(r||t){case zJ:case wc:return{href:e?.source_url||e?.url,linkDestination:rp,lightbox:n?.enabled?{...o?.lightbox,enabled:!1}:void 0};case HJ:case Cc:return{href:e?.link,linkDestination:op,lightbox:n?.enabled?{...o?.lightbox,enabled:!1}:void 0};case d1:return{href:void 0,lightbox:n?.enabled?void 0:{...o?.lightbox,enabled:!0},linkDestination:yf};case kc:return{href:void 0,linkDestination:yf,lightbox:void 0}}return{}}function KJ(e){let[t,r=1]=e.split("/").map(Number),o=t/r;return o===1/0||o===0?NaN:o}function K7e(e){let t=e;return e!==void 0&&t&&(ZJ.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 w2(e,{rel:t}){let r=e?"_blank":void 0,o;return!r&&!t?o=void 0:o=K7e(t),{linkTarget:r,rel:o}}function YJ(e,t){let r=e?.media_details?.sizes?.[t]?.source_url;return r?{url:r,width:void 0,height:void 0,sizeSlug:t}:{}}function sD(e){return np.some(t=>e.type.indexOf(t)===0)}function vf({x:e,y:t}={x:.5,y:.5}){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}var lD=a(L(),1);var N3=a(y(),1);function QJ(e){let{attributes:t,isSelected:r,setAttributes:o,insertBlocksAfter:n,blockProps:i,__unstableLayoutClassNames:s,isContentLocked:l,multiGallerySelection:c}=e,{align:u,columns:d,imageCrop:p,layout:m}=t,f=Sc(m);return(0,N3.jsxs)("figure",{...i,className:T(i.className,s,"blocks-gallery-grid",{[`align${u}`]:u,[`columns-${d}`]:f&&d!==void 0,"columns-default":f&&d===void 0,"is-cropped":f&&p}),children:[i.children,(0,N3.jsx)(Zo,{attributes:t,setAttributes:o,isSelected:r,insertBlocksAfter:n,showToolbarButton:!c&&!l,className:"blocks-gallery-caption",label:(0,lD.__)("Gallery caption text"),placeholder:(0,lD.__)("Add gallery caption")})]})}var XJ=a(W(),1);function JJ(e,t,r){return(0,XJ.useMemo)(()=>o(),[e,t]);function o(){if(!e||e.length===0)return;let{imageSizes:n}=r(),i={};t&&(i=e.reduce((l,c)=>{if(!c.id)return l;let u=n.reduce((d,p)=>{let m=c.sizes?.[p.slug]?.url,f=c.media_details?.sizes?.[p.slug]?.source_url;return{...d,[p.slug]:m||f}},{});return{...l,[parseInt(c.id,10)]:u}},{}));let s=Object.values(i);return n.filter(({slug:l})=>s.some(c=>c[l])).map(({name:l,slug:c})=>({value:c,label:l}))}}var M3=a(W(),1);function eee(e,t){let[r,o]=(0,M3.useState)([]);return(0,M3.useMemo)(()=>n(),[e,t]);function n(){let i=!1,s=r.filter(c=>e.find(u=>c.clientId===u.clientId));s.length<r.length&&(i=!0),e.forEach(c=>{c.fromSavedContent&&!s.find(u=>u.id===c.id)&&(i=!0,s.push(c))});let l=e.filter(c=>!s.find(u=>c.clientId&&u.clientId===c.clientId)&&t?.find(u=>u.id===c.id)&&!c.fromSavedContent);return(i||l?.length>0)&&o([...s,...l]),l.length>0?l:null}}var ree=a(H(),1),oee=a(ae(),1),tee=[];function nee(e){return(0,ree.useSelect)(t=>{let r=e.map(o=>o.attributes.id).filter(o=>o!==void 0);return r.length===0?tee:t(oee.store).getEntityRecords("postType","attachment",{include:r.join(","),per_page:-1,orderby:"include"})??tee},[e])}var Rl=a(I(),1),Ree=a(H(),1);var _f=(e,t,r)=>{let o=Array.isArray(t)?t:t.split("."),n=e;return o.forEach(i=>{n=n?.[i]}),n??r};var see=a(iee(),1);function Y7e(e,t){if(!e||!t)return e;if(typeof e=="object"&&"ref"in e&&e?.ref){let r=(0,see.getCSSValueFromRawStyle)(_f(t,e.ref));return typeof r=="object"&&r!==null&&"ref"in r&&r?.ref?void 0:r===void 0?e:r}return e}function Q7e(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 lee(e,t){if(!e||!t)return e;let r=Y7e(e,t);return typeof r=="object"&&r!==null&&"url"in r&&r?.url?{...r,url:Q7e(r.url,t?._links?.["wp:theme-file"])}:r}function X7e(e=[]){let t={r:[],g:[],b:[],a:[]};return e.forEach(r=>{let o=yr(r).toRgb();t.r.push(o.r/255),t.g.push(o.g/255),t.b.push(o.b/255),t.a.push(o.a)}),t}function dee(e){return`${e}{filter:none}`}function pee(e,t){return`${e}{filter:url(#${t})}`}function mee(e,t){let r=X7e(t);return`
25 <svg
26 xmlns:xlink="http://www.w3.org/1999/xlink"
27 viewBox="0 0 0 0"
28 width="0"
29 height="0"
30 focusable="false"
31 role="none"
32 aria-hidden="true"
33 style="visibility: hidden; position: absolute; left: -9999px; overflow: hidden;"
34 >
35 <defs>
36 <filter id="${e}">
37 <!--
38 Use sRGB instead of linearRGB so transparency looks correct.
39 Use perceptual brightness to convert to grayscale.
40 -->
41 <feColorMatrix color-interpolation-filters="sRGB" type="matrix" values=" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "></feColorMatrix>
42 <!-- Use sRGB instead of linearRGB to be consistent with how CSS gradients work. -->
43 <feComponentTransfer color-interpolation-filters="sRGB">
44 <feFuncR type="table" tableValues="${r.r.join(" ")}"></feFuncR>
45 <feFuncG type="table" tableValues="${r.g.join(" ")}"></feFuncG>
46 <feFuncB type="table" tableValues="${r.b.join(" ")}"></feFuncB>
47 <feFuncA type="table" tableValues="${r.a.join(" ")}"></feFuncA>
48 </feComponentTransfer>
49 <!-- Re-mask the image with the original transparency since the feColorMatrix above loses that information. -->
50 <feComposite in2="SourceGraphic" operator="in"></feComposite>
51 </filter>
52 </defs>
53 </svg>`}var fee={mobile:"480px",tablet:"782px"},gee=/^(\d+|\d*\.\d+)(px|em|rem)$/,J7e=16;function e9e(e){return"mobile"in e||"tablet"in e}function t9e(e){return!e||typeof e!="object"?{}:e9e(e)?e:e.settings?.viewport??{}}function r9e(e){return typeof e=="string"&&gee.test(e.trim())}function cD(e){if(typeof e=="number")return e;if(typeof e!="string")return;let t=e.trim().match(gee);if(!t)return;let r=Number.parseFloat(t[1]);return t[2]==="px"?r:r*J7e}function uD(e){let t=t9e(e),r={},o={};Object.keys(fee).forEach(l=>{let c=l,u=t[c],d=cD(u);d!==void 0&&r9e(u)&&(r[c]=u.trim(),o[c]=d)});let n=Object.keys(r);if(!n.length)return{...fee};if(n.length===1)return r;let i=r.mobile,s=r.tablet;return o.mobile>=o.tablet?{mobile:i}:{mobile:i,tablet:s}}function hee(e){let t=uD(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 L3(e,t,r,{resolveRefs:o=!0}={}){if(!e?.styles?.blocks?.[t]?.variations?.[r])return;let n=s=>{Object.keys(s).forEach(l=>{let c=s[l];if(typeof c=="object"&&c!==null)if(c.ref!==void 0)if(typeof c.ref!="string"||c.ref.trim()==="")delete s[l];else{let u=_f(e,c.ref);u!=null?s[l]=u:delete s[l]}else n(c),Object.keys(c).length===0&&delete s[l]})},i=JSON.parse(JSON.stringify(e.styles.blocks[t].variations[r]));return o&&n(i),i}var mD="default";function _ee(e){let t=e?.viewport,r=e?.pseudoState;return(!t||t===mD)&&(!r||r===mD)}function o9e(e){return _ee(e)?[]:[e.viewport,e.pseudoState].filter(t=>!!t&&t!==mD)}function n9e(e,t){let r=o9e(t);return r.length?_f(e,r):e}var a9e=new Set(["blocks","variations","css"]),dD=Object.freeze({value:{},sources:{}}),i9e={root:{layer:"root"},element:{layer:"element"},block:{layer:"block"},blockVariation:{layer:"blockVariation"}};function ip(e){let t=i9e[e];return t?{...t}:null}function sp(e,t){return!e||!t?null:{styles:e,source:t}}function s9e(e){return e.join(".")}function l9e(e){return{...e}}function xee(e){return e===""||e===null||typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0}function pD(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e.ref=="string"}function lp(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let r of Object.keys(e))if(!a9e.has(r)){if(r==="elements"){e.elements&&typeof e.elements=="object"&&(t.elements=e.elements);continue}xee(e[r])||(t[r]=e[r])}return Object.keys(t).length===0?null:t}var bee=new Set(["backgroundImage"]);function kee(e,t,r,o,n,i=[]){if(!t||typeof t!="object"||Array.isArray(t))return e;for(let s of Object.keys(t)){let l=t[s];if(xee(l))continue;if(pD(l)){if(l.ref.trim()==="")continue;let u=_f(r,l.ref);if(u==null||pD(u))continue;l=u}let c=[...i,s];if(!bee.has(s)&&l!==null&&typeof l=="object"&&!Array.isArray(l)&&!pD(l)){let u=e[s]&&typeof e[s]=="object"&&!Array.isArray(e[s])?e[s]:{};e[s]=kee({...u},l,r,o,n,c)}else e[s]=bee.has(s)&&l!==null&&typeof l=="object"&&!Array.isArray(l)?{...l}:l,o&&n&&(n[s9e(c)]=l9e(o))}return e}function R3(e,t){if(!e)return null;let r=n9e(e,t);return r&&typeof r=="object"&&!Array.isArray(r)?r:null}var c9e=["color.background","color.gradient","background","spacing","dimensions","border","shadow","filter"];function u9e(e){return e.startsWith("elements.")?!1:c9e.some(t=>e===t||e.startsWith(`${t}.`))}function wee(e,t){if(!e||typeof e!="object")return;let[r,...o]=t;if(o.length===0){delete e[r];return}let n=e[r];n&&typeof n=="object"&&(wee(n,o),Object.keys(n).length===0&&delete e[r])}function d9e(e,t){for(let r of Object.keys(t))t[r].layer==="root"&&u9e(r)&&(wee(e,r.split(".")),delete t[r])}function p9e(e,t,r){let o=e?.background?.backgroundImage;if(!o)return;let n=lee(o,{...t,_links:r??void 0});n!==void 0&&(e.background.backgroundImage=n)}function yee(e,{blockName:t,variationName:r=null,elements:o=null,viewport:n=null,pseudoState:i=null}={}){if(!e||!e.styles||!t)return dD;let s=e.styles,l={viewport:n,pseudoState:i},c=s,u=s.blocks?.[t]??null,d=(o??[]).map(b=>s.elements?.[b]??null).filter(b=>!!b),p=r?L3(e,t,r)??null:null,m=[sp(lp(c),ip("root")),...d.map(b=>sp(lp(b),ip("element"))),u?sp(lp(u),ip("block")):null,p?sp(lp(p),ip("blockVariation")):null];_ee(l)||m.push(sp(lp(R3(c,l)),ip("root")),...d.map(b=>sp(lp(R3(b,l)),ip("element"))),u?sp(lp(R3(u,l)),ip("block")):null,p?sp(lp(R3(p,l)),ip("blockVariation")):null);let f=m.filter(Boolean);if(f.length===0)return dD;let g={},h=f.reduce((b,_)=>kee(b,_.styles,e,_.source,g),{});return d9e(h,g),p9e(h,e,e._links??null),{value:h,sources:g}}var m9e={},vee=new WeakMap;function Cee(e,t={}){let r=e?.styles;if(!r||typeof r!="object")return yee(e,t);let o=vee.get(r);o||(o=new WeakMap,vee.set(r,o));let n=e?._links??m9e,i=o.get(n);i||(i=new Map,o.set(n,i));let s=`${t.elements?.join(",")??""}:${t.viewport??""}:${t.pseudoState??""}`,l=(t.blockName||"")+""+(t.variationName||"")+""+s;if(i.has(l))return i.get(l);let c=yee(e,t);return i.set(l,c),c}var See=a(PM(),1),{lock:Tee,unlock:_st}=(0,See.__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 f1={};Tee(f1,{getResponsiveMediaQueries:hee,getViewportBreakpoints:uD,getViewportBreakpointValueInPixels:cD,getDuotoneFilter:mee,getDuotoneStylesheet:pee,getDuotoneUnsetStylesheet:dee,resolveStyle:Cee,getVariationStyle:L3});function C2(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function D3(e){return Number.isInteger(e)&&e>=1&&e<=T3}var f9e=/^(auto|\d+(\.\d+)?(\s*\/\s*\d+(\.\d+)?)?)$/;function g9e(e){return typeof e=="string"&&f9e.test(e.trim())}function A3(e,t){return!C2(e)||!C2(e[t])?{}:e[t]}function Eee(e){if(!C2(e))return e;let t=Object.entries(e).filter(([,r])=>r!==void 0);return t.length?Object.fromEntries(t):void 0}function Pee({style:e,viewport:t,baseSettings:r,settings:o}){let n=C2(e)?e:{},i={...A3(n,t)};Object.entries(o).forEach(([c,u])=>{u===void 0||u===r[c]?delete i[c]:i[c]=u});let s=Eee(i),l={...n};return s?l[t]=s:delete l[t],Eee(l)}function Bee(e){return`${e}.wp-block-gallery.has-nested-images`}function h9e(e){return`${Bee(e)}:where(.is-layout-flex)`}function Iee(e){return`${h9e(e)} figure.wp-block-image:not(#individual-image)`}function b9e(e,t){let r=t===1?"100%":`calc((100% - (var(--wp--style--unstable-gallery-gap, 16px) * ${t-1})) / ${t})`;return`${Iee(e)}{width:${r} !important;}`}function y9e(e,t){let r=Iee(e),o=`${r} > div:not(.components-drop-zone)`,n=`${r} > a`,i=`${r} a,${r} img`;return t?`${r}{align-self:inherit !important;margin-bottom:0 !important;}${o},${n}{display:flex !important;}${i}{width:100% !important;flex:1 0 0% !important;height:100% !important;object-fit:cover !important;}`:`${r}{align-self:auto !important;margin-top:0 !important;margin-bottom:auto !important;}${o}{display:block !important;}${n}{display:inline-block !important;}${i}{width:auto !important;flex:0 1 auto !important;height:auto !important;object-fit:fill !important;}`}function v9e(e,t){let r=`${Bee(e)} figure.wp-block-image:not(#individual-image) img`,o=t.trim();return o==="auto"?`${r}{aspect-ratio:revert-layer !important;}`:`${r}{aspect-ratio:${o} !important;object-fit:cover !important;}`}function Nee(e,t,r){return C2(r)?Object.entries(r).map(([o,n])=>{if(typeof n!="string")return"";let i=A3(t,o),s="";return D3(i.columns)&&(s+=b9e(e,i.columns)),typeof i.imageCrop=="boolean"&&(s+=y9e(e,i.imageCrop)),g9e(i.aspectRatio)&&(s+=v9e(e,i.aspectRatio)),s?`${n}{${s}}`:""}).join(""):""}var{getResponsiveMediaQueries:_9e}=le(f1),{globalStylesDataKey:x9e}=le(Rl.privateApis),k9e="core/gallery",O3="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )";function Mee(e,t){let r=O3;return t&&(r=typeof t=="string"?(0,Rl.__experimentalGetGapCSSValue)(t)||O3:(0,Rl.__experimentalGetGapCSSValue)(t?.left)||O3),`${e} {
54 --wp--style--unstable-gallery-gap: ${r==="0"?"0px":r}
55 }`}function Lee(e){if(Object.hasOwn(e?.spacing||{},"blockGap"))return e.spacing.blockGap}function Dee({style:e,clientId:t,isFlexLayout:r}){let o=`.wp-block-gallery-${t}`,[n]=(0,Rl.useSettings)("viewport"),i=(0,Ree.useSelect)(c=>c(Rl.store).getSettings()?.[x9e],[]),s=_9e(n),l="";if(r){let c=i?.blocks?.[k9e]||{},u=Lee(e),d=c?.spacing?.blockGap??O3;l+=Mee(o,u===void 0?d:u),Object.entries(s).forEach(([m,f])=>{let g=Lee(e?.[m]),h=u===void 0?c?.[m]?.spacing?.blockGap:void 0,b=g===void 0?h:g;b!=null&&(l+=`${f}{${Mee(o,b)}}`)})}return l+=Nee(o,e,s),(0,Rl.useStyleOverride)({css:l}),null}var T2=a(W(),1),b1=a(H(),1),Vee=a(I(),1),z3=a(ae(),1),zee=a(te(),1);var F3=a(L(),1),cp="core/attached-media",g1="date",h1="desc",w9e={[cp]:{title:(0,F3.__)("Use attached images"),description:(0,F3.__)("Images attached to the post."),emptyMessage:(0,F3.__)("Images attached to the post will appear here.")}};function V3(e){return w9e[e]}var S2=100;function Aee(e,{postId:t}){let{source:r,args:o={}}=e??{};return r===cp&&t?{parent:t,per_page:S2,media_type:"image",orderby:o.orderBy==="date"||o.orderBy==="title"?o.orderBy:g1,order:o.order==="asc"||o.order==="desc"?o.order:h1}:null}var Oee=[];function C9e(e,t){let{sizeSlug:r,linkTo:o,linkTarget:n,aspectRatio:i}=t,s=!!i&&i!=="auto";return{id:e.id,...I3(e,r),...k2(e,o),...w2(n,t),sizeSlug:r,caption:e.caption?.raw||"",alt:e.alt_text||"",aspectRatio:s?i:void 0,scale:s?"cover":void 0}}function Fee(e,t){return e.map(r=>(0,zee.createBlock)("core/image",C9e(r,t)))}function Hee({attributes:e,setAttributes:t,clientId:r,postId:o,postType:n}){let{dynamicContent:i}=e,s=!!n,l=V3(i?.source),c=i?.args?.orderBy??g1,u=i?.args?.order??h1,d=(0,b1.useRegistry)(),{replaceInnerBlocks:p,__unstableMarkNextChangeAsNotPersistent:m}=(0,b1.useDispatch)(Vee.store),f=(0,T2.useMemo)(()=>i?Aee(i,{postId:o}):null,[i,o]),{dynamicMedia:g,dynamicMediaTotal:h,isResolvingDynamic:b}=(0,b1.useSelect)(R=>{if(!f)return{dynamicMedia:Oee,dynamicMediaTotal:0,isResolvingDynamic:!1};let O=["postType","attachment",f];return{dynamicMedia:R(z3.store).getEntityRecords(...O)??Oee,dynamicMediaTotal:R(z3.store).getEntityRecordsTotalItems(...O)??0,isResolvingDynamic:!R(z3.store).hasFinishedResolution("getEntityRecords",O)}},[f]),_=h>S2,{sizeSlug:v,linkTo:w,linkTarget:x,aspectRatio:k}=e,C=(0,T2.useMemo)(()=>({sizeSlug:v,linkTo:w,linkTarget:x,aspectRatio:k}),[v,w,x,k]),S=(0,T2.useMemo)(()=>Fee(g,C),[g,C]),P=(0,T2.useMemo)(()=>({allowResize:e.allowResize??!1,imageCrop:e.imageCrop,fixedHeight:e.fixedHeight,navigationButtonType:e.navigationButtonType}),[e.allowResize,e.imageCrop,e.fixedHeight,e.navigationButtonType]);function B(){d.batch(()=>{t({dynamicContent:{source:cp}}),m(),p(r,[])})}function N(){d.batch(()=>{p(r,Fee(g,C)),m(),t({dynamicContent:void 0})})}function E(R,O){let j={...i?.args};delete j.orderBy,delete j.order,R!==void 0&&(R!==g1||O!==h1)&&(j.orderBy=R,j.order=O);let V={...i};Object.keys(j).length?V.args=j:delete V.args,t({dynamicContent:V})}function M(){t({dynamicContent:{source:i.source}})}return{dynamicContent:i,canUseDynamicSource:s,sourceDescriptor:l,hasMoreImagesThanCap:_,dynamicMediaTotal:h,sourceOrderby:c,sourceOrder:u,dynamicMedia:g,dynamicImageBlocks:S,isResolvingDynamic:b,galleryContext:P,enableDynamicMode:B,convertToStatic:N,setSourceOrder:E,resetSource:M}}var Qt=a(L(),1),y1=a(W(),1),Zr=a(F(),1),up=a(I(),1);var mt=a(y(),1),S9e=[{label:(0,Qt.__)("Newest to oldest"),value:"date/desc"},{label:(0,Qt.__)("Oldest to newest"),value:"date/asc"},{label:(0,Qt.__)("A \u2192 Z"),value:"title/asc"},{label:(0,Qt.__)("Z \u2192 A"),value:"title/desc"}];function T9e({orderby:e,order:t,onChange:r}){return(0,mt.jsx)(Zr.SelectControl,{label:(0,Qt.__)("Order by"),value:`${e}/${t}`,options:S9e,onChange:o=>{let[n,i]=o.split("/");r({orderby:n,order:i})}})}function jee({onConfirm:e,onCancel:t}){return(0,mt.jsx)(Zr.__experimentalConfirmDialog,{isOpen:!0,title:(0,Qt.__)("Detach Gallery"),__experimentalHideHeader:!1,confirmButtonText:(0,Qt.__)("Detach"),onConfirm:e,onCancel:t,size:"medium",children:(0,Qt.__)("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 Uee({dynamic:e,dropdownMenuProps:t,hasImages:r}){let{dynamicContent:o,canUseDynamicSource:n,sourceDescriptor:i,sourceOrderby:s,sourceOrder:l,setSourceOrder:c,convertToStatic:u,enableDynamicMode:d,resetSource:p,isResolvingDynamic:m,hasMoreImagesThanCap:f,dynamicMediaTotal:g}=e,h=!!o,[b,_]=(0,y1.useState)(!1),[v,w]=(0,y1.useState)(!1);function x(){r?_(!0):d()}return h?(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsxs)(Zr.__experimentalToolsPanel,{label:(0,Qt.__)("Source"),resetAll:p,dropdownMenuProps:t,children:[(0,mt.jsxs)("div",{className:"wp-block-gallery__source-settings",children:[(0,mt.jsx)("p",{className:"wp-block-gallery__source-description",children:i?.description??(0,Qt.__)("Dynamic images.")}),(0,mt.jsx)(Zr.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>w(!0),disabled:m,accessibleWhenDisabled:!0,children:(0,Qt.__)("Detach Gallery")})]}),f&&(0,mt.jsx)(Zr.Notice,{className:"wp-block-gallery__source-notice",status:"warning",isDismissible:!1,children:(0,Qt.sprintf)((0,Qt.__)("Only the first %1$d of %2$d images will be displayed."),S2,g)}),(0,mt.jsx)(Zr.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Qt.__)("Order by"),hasValue:()=>s!==g1||l!==h1,onDeselect:()=>c(void 0,void 0),children:(0,mt.jsx)(T9e,{orderby:s,order:l,onChange:({orderby:k,order:C})=>c(k,C)})})]}),v&&(0,mt.jsx)(jee,{onConfirm:()=>{u(),w(!1)},onCancel:()=>w(!1)})]}):n?(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsx)(Zr.PanelBody,{title:(0,Qt.__)("Source"),children:(0,mt.jsxs)("div",{className:"wp-block-gallery__source-settings",children:[(0,mt.jsx)("p",{className:"wp-block-gallery__source-description",children:(0,Qt.__)("Images added to the gallery.")}),(0,mt.jsx)(Zr.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:x,children:(0,Qt.__)("Use attached images")})]})}),b&&(0,mt.jsx)(Zr.__experimentalConfirmDialog,{isOpen:!0,title:(0,Qt.__)("Use images attached to the post?"),__experimentalHideHeader:!1,confirmButtonText:(0,Qt.__)("Use attached images"),onConfirm:()=>{d(),_(!1)},onCancel:()=>_(!1),size:"medium",children:(0,Qt.__)("The images in this gallery will be replaced, but will remain in the media library.")})]}):null}function E9e({imageBlocks:e,layout:t}){let{children:r,ref:o,className:n}=(0,up.__experimentalUseBlockPreview)({blocks:e,layout:t});return(0,mt.jsx)("div",{ref:o,className:n,style:{display:"contents"},children:r})}function Wee({dynamic:e,blockProps:t,innerBlocksProps:r,attributes:o,setAttributes:n,isSelected:i,insertBlocksAfter:s,isContentLocked:l,multiGallerySelection:c}){let{sourceDescriptor:u,dynamicImageBlocks:d,galleryContext:p,isResolvingDynamic:m,convertToStatic:f}=e,g=(0,up.useBlockEditingMode)(),[h,b]=(0,y1.useState)(!1),_=(0,y1.useMemo)(()=>Sc(o.layout)?{...o.layout,type:"flex"}:o.layout,[o.layout]),v=m?(0,Qt.__)("Loading images\u2026"):u?.emptyMessage??(0,Qt.__)("Dynamic images will appear here.");return(0,mt.jsxs)(mt.Fragment,{children:[g==="default"&&(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsx)(up.BlockControls,{group:"other",children:(0,mt.jsx)(Zr.ToolbarButton,{onClick:()=>b(!0),disabled:m,children:(0,Qt.__)("Detach")})}),h&&(0,mt.jsx)(jee,{onConfirm:()=>{f(),b(!1)},onCancel:()=>b(!1)})]}),(0,mt.jsxs)("figure",{...t,children:[d.length?(0,mt.jsx)(up.BlockContextProvider,{value:p,children:(0,mt.jsx)(E9e,{imageBlocks:d,layout:_})}):(0,mt.jsx)(Zr.Placeholder,{icon:E3,label:(0,Qt.__)("Gallery"),instructions:v,children:m&&(0,mt.jsx)(Zr.Spinner,{})}),(0,mt.jsx)(Zo,{attributes:o,setAttributes:n,isSelected:i,insertBlocksAfter:s,showToolbarButton:!c&&!l,className:"blocks-gallery-caption",label:(0,Qt.__)("Gallery caption text"),placeholder:(0,Qt.__)("Add gallery caption")})]}),r.children]})}var ct=a(y(),1),Gee=[{icon:mm,label:(0,je.__)("Link images to attachment pages"),value:Cc,noticeText:(0,je.__)("Attachment Pages")},{icon:Sd,label:(0,je.__)("Link images to media files"),value:wc,noticeText:(0,je.__)("Media Files")},{icon:fm,label:(0,je.__)("Enlarge on click"),value:d1,noticeText:(0,je.__)("Lightbox effect"),infoText:(0,je.__)("Scale images with a lightbox effect")},{icon:Fy,label:(0,je._x)("None","Media item link option"),value:kc,noticeText:(0,je.__)("None")}],P9e=[{label:(0,je.__)("Icon"),value:"icon"},{label:(0,je.__)("Text"),value:"text"},{label:(0,je.__)("Both"),value:"both"}],fD=["image"],B9e=(0,je.__)("Drag and drop images, upload, or choose from your library."),I9e={name:"core/image"},$ee=[];function Kee(e){let{setAttributes:t,attributes:r,className:o,clientId:n,isSelected:i,insertBlocksAfter:s,isContentLocked:l,context:c,__unstableLayoutClassNames:u}=e,d=c?.postId,p=c?.postType,m=(0,fo.useBlockEditingMode)(),[f,g,h,b]=(0,fo.useSettings)("blocks.core/image.lightbox","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),_=f?.allowEditing?Gee:Gee.filter(ne=>ne.value!==d1),{align:v,navigationButtonType:w,columns:x,imageCrop:k,randomOrder:C,linkTarget:S,linkTo:P,sizeSlug:B,aspectRatio:N,layout:E}=r,M=Sc(E),R=(0,dp.useRef)(E),{__unstableMarkNextChangeAsNotPersistent:O,replaceInnerBlocks:j,updateBlockAttributes:V,selectBlock:G}=(0,E2.useDispatch)(fo.store),{createSuccessNotice:$,createErrorNotice:z}=(0,E2.useDispatch)(Zee.store);(0,dp.useEffect)(()=>{let ne=R.current;if(R.current=E,!B3(ne)||!B3(E)||ne.type===E.type)return;let He={...E},bt=!1;!Object.hasOwn(E,"columnCount")&&Number.isInteger(ne.columnCount)&&ne.columnCount>0&&(He.columnCount=ne.columnCount,bt=!0),!Object.hasOwn(E,"minimumColumnWidth")&&typeof ne.minimumColumnWidth=="string"&&(He.minimumColumnWidth=ne.minimumColumnWidth,bt=!0),bt&&(R.current=He,O(),t({layout:He}))},[E,t,O]);let{getBlock:K,getSettings:q,innerBlockImages:Y,multiGallerySelection:oe,selectedStyleState:Z}=(0,E2.useSelect)(ne=>{let{getBlockName:He,getMultiSelectedBlockClientIds:bt,getSettings:pe,getBlock:ve,getSelectedBlockStyleState:Ye}=ne(fo.store),dt=bt();return{getBlock:ve,getSettings:pe,innerBlockImages:ve(n)?.innerBlocks??$ee,multiGallerySelection:dt.length&&dt.every($t=>He($t)==="core/gallery"),selectedStyleState:Ye(n)}},[n]),U=Z?.viewport&&Z.viewport!=="default",X=U?A3(r.style,Z.viewport):{},Q=D3(x)?x:void 0,ie=typeof k=="boolean"?k:!0,me=N||"auto",xe=U&&Object.hasOwn(X,"columns")&&D3(X.columns),Be=U&&Object.hasOwn(X,"imageCrop")&&typeof X.imageCrop=="boolean",se=U&&Object.hasOwn(X,"aspectRatio")&&typeof X.aspectRatio=="string"&&!!X.aspectRatio,he=xe?X.columns:Q,ze=Be?X.imageCrop:ie,qe=se?X.aspectRatio:me,ce=(0,dp.useMemo)(()=>Y?.map(ne=>({clientId:ne.clientId,id:ne.attributes.id,url:ne.attributes.url,attributes:ne.attributes,fromSavedContent:!!ne.originalContent})),[Y]),ge=nee(Y),Qe=eee(ce,ge),ye=!!ce.length,fe=!!r.dynamicContent,de=Hee({attributes:r,setAttributes:t,clientId:n,postId:d,postType:p}),re=fe?de.dynamicMedia.length:ce.length,Pe;fe?Pe=P===d1:f?.enabled?Pe=ce.filter(ne=>ne.attributes?.lightbox?.enabled===void 0||ne.attributes?.lightbox?.enabled===!0).length>0:Pe=ce.filter(ne=>ne.attributes.lightbox?.enabled).length>0;let Se=h?.map(({name:ne,ratio:He})=>({label:ne,value:He})),rr=g?.map(({name:ne,ratio:He})=>({label:ne,value:He})),Ft=[{label:(0,je._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...b?rr||[]:[],...Se||[]];(0,dp.useEffect)(()=>{Qe?.forEach(ne=>{O(),V(ne.clientId,{...Wo(ne.attributes),id:ne.id,align:void 0})})},[Qe]);let gr=JJ(fe?de.dynamicMedia:ge,i,q);function Wo(ne){let He=ne.id?ge.find(({id:ve})=>ve===ne.id):null,bt;ne.className&&ne.className!==""&&(bt=ne.className);let pe;return ne.linkTarget||ne.rel?pe={linkTarget:ne.linkTarget,rel:ne.rel}:pe=w2(S,r),{...I3(He,B),...k2(He,P,ne?.linkDestination),...pe,className:bt,sizeSlug:B,caption:ne.caption.length>0?ne.caption:He.caption?.raw,alt:ne.alt||He.alt_text,aspectRatio:N==="auto"?void 0:N,scale:N&&N!=="auto"?"cover":void 0}}function Nn(ne){let He=ne.type;return fD.some(bt=>He?.indexOf(bt)===0)||ne.blob}function So(ne){let He=Object.prototype.toString.call(ne)==="[object FileList]",bt=He?Array.from(ne).map(nt=>nt.url?nt:{blob:(0,gD.createBlobURL)(nt)}):ne;bt.every(Nn)||z((0,je.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let pe=bt.filter(nt=>nt.url||Nn(nt)).map(nt=>nt.url?nt:{blob:nt.blob||(0,gD.createBlobURL)(nt)}),ve=pe.reduce((nt,Ir,Ua)=>(nt[Ir.id]=Ua,nt),{}),Ye=He?Y:Y.filter(nt=>pe.find(Ir=>Ir.id===nt.attributes.id)),$t=pe.filter(nt=>!Ye.find(Ir=>nt.id===Ir.attributes.id)).map(nt=>(0,qee.createBlock)("core/image",{id:nt.id,blob:nt.blob,url:nt.url,caption:nt.caption,alt:nt.alt}));j(n,Ye.concat($t).sort((nt,Ir)=>ve[nt.attributes.id]-ve[Ir.attributes.id])),$t?.length>0&&G($t[0].clientId)}function sa(ne){z(ne,{type:"snackbar"})}function la(ne){t({linkTo:ne});let He={},bt=[];K(n).innerBlocks.forEach(ve=>{bt.push(ve.clientId);let Ye=ve.attributes.id?ge.find(({id:dt})=>dt===ve.attributes.id):null;He[ve.clientId]=k2(Ye,ne,!1,ve.attributes,f)}),V(bt,He,{uniqueByBlock:!0});let pe=[..._].find(ve=>ve.value===ne);$((0,je.sprintf)((0,je.__)("All gallery image links updated to: %s"),pe.noticeText),{id:"gallery-attributes-linkTo",type:"snackbar"})}function Mn(ne){if(!U){t(ne);return}t({style:Pee({style:r.style,viewport:Z.viewport,baseSettings:{columns:Q,imageCrop:ie,aspectRatio:me},settings:ne})})}function ca(ne){Mn({columns:ne})}function md(){Mn({imageCrop:!ze})}function pu(){t({randomOrder:!C})}function za(ne){let He=ne?"_blank":void 0;t({linkTarget:He});let bt={},pe=[];K(n).innerBlocks.forEach(Ye=>{pe.push(Ye.clientId),bt[Ye.clientId]=w2(He,Ye.attributes)}),V(pe,bt,{uniqueByBlock:!0});let ve=ne?(0,je.__)("All gallery images updated to open in new tab"):(0,je.__)("All gallery images updated to not open in new tab");$(ve,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}function Ha(ne){t({sizeSlug:ne});let He={},bt=[];K(n).innerBlocks.forEach(ve=>{bt.push(ve.clientId);let Ye=ve.attributes.id?ge.find(({id:dt})=>dt===ve.attributes.id):null;He[ve.clientId]=YJ(Ye,ne)}),V(bt,He,{uniqueByBlock:!0});let pe=gr.find(ve=>ve.value===ne);$((0,je.sprintf)((0,je.__)("All gallery image sizes updated to: %s"),pe?.label??ne),{id:"gallery-attributes-sizeSlug",type:"snackbar"})}function il(ne){if(U)Mn({aspectRatio:ne});else{let ve=!ne||ne==="auto"?void 0:ne;t({aspectRatio:ne??"auto"});let Ye={},dt=[];K(n).innerBlocks.forEach($t=>{dt.push($t.clientId),Ye[$t.clientId]={aspectRatio:ve,scale:ve?"cover":void 0}}),V(dt,Ye,!0)}let He=ne??me,bt=Ft.find(ve=>ve.value===He),pe=U?(0,je.sprintf)((0,je.__)("Gallery images in the %1$s viewport updated to aspect ratio: %2$s"),Z.viewport.replace("@",""),bt?.label||He):(0,je.sprintf)((0,je.__)("All gallery images updated to aspect ratio: %s"),bt?.label||He);$(pe,{id:"gallery-attributes-aspectRatio",type:"snackbar"})}(0,dp.useEffect)(()=>{P||(O(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||kc}))},[P]);let ja=ye&&ce.some(ne=>!!ne.id),bs={addToGallery:!1,disableMediaButtons:ce.some(ne=>!ne.id&&ne.url?.indexOf("blob:")===0),value:{}},fd=(0,fo.useBlockProps)({className:T(o,"has-nested-images",`wp-block-gallery-${n}`,fe&&[u,"blocks-gallery-grid",{[`align${v}`]:v,[`columns-${x}`]:M&&x!==void 0,"columns-default":M&&x===void 0,"is-cropped":M&&k}])}),ua=(0,fo.useInnerBlocksProps)(fd,{defaultBlock:I9e,directInsert:!0,orientation:"horizontal",renderAppender:!1,allowedBlocks:fe?$ee:void 0}),Ln=ee();if(!ye&&!fe)return(0,ct.jsxs)("div",{...ua,children:[ua.children,(0,ct.jsx)(fo.MediaPlaceholder,{handleUpload:!1,icon:E3,labels:{title:(0,je.__)("Gallery"),instructions:B9e},onSelect:So,allowedTypes:fD,multiple:!0,onError:sa,...bs,children:m==="default"&&(0,ct.jsx)(Bt.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:de.enableDynamicMode,children:V3(cp).title})})]});let wi=P&&P!=="none",Rn=M||Ft.length>1;return(0,ct.jsxs)(ct.Fragment,{children:[(0,ct.jsxs)(fo.InspectorControls,{group:U&&Rn?"viewport":"default",children:[!U&&(0,ct.jsx)(Uee,{dynamic:de,dropdownMenuProps:Ln,hasImages:ye}),(0,ct.jsxs)(Bt.__experimentalToolsPanel,{label:(0,je.__)("Settings"),resetAll:()=>{if(U){Mn({columns:void 0,imageCrop:void 0,aspectRatio:void 0});return}t({navigationButtonType:"icon",randomOrder:!1,...M&&{columns:void 0,imageCrop:!0}}),il("auto"),B!==x2&&Ha(x2),S&&za(!1)},dropdownMenuProps:Ln,children:[M&&re>1&&(0,ct.jsx)(Bt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,je.__)("Columns"),hasValue:()=>U?xe:!!he&&he!==re,onDeselect:()=>ca(void 0),children:(0,ct.jsx)(Bt.RangeControl,{label:(0,je.__)("Columns"),value:he||P3(re),onChange:ca,min:1,max:Math.min(T3,re),required:!0})}),!U&&gr?.length>0&&(0,ct.jsx)(Bt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,je.__)("Resolution"),hasValue:()=>B!==x2,onDeselect:()=>Ha(x2),children:(0,ct.jsx)(Bt.SelectControl,{label:(0,je.__)("Resolution"),help:(0,je.__)("Select the size of the source images."),value:B,options:gr,onChange:Ha,hideCancelButton:!0})}),M&&(0,ct.jsx)(Bt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,je.__)("Crop images to fit"),hasValue:()=>U?Be:!ze,onDeselect:()=>Mn({imageCrop:U?void 0:!0}),children:(0,ct.jsx)(Bt.ToggleControl,{label:(0,je.__)("Crop images to fit"),checked:ze,onChange:md})}),!U&&(0,ct.jsx)(Bt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,je.__)("Randomize order"),hasValue:()=>!!C,onDeselect:()=>t({randomOrder:!1}),children:(0,ct.jsx)(Bt.ToggleControl,{label:(0,je.__)("Randomize order"),checked:!!C,onChange:pu})}),!U&&wi&&(0,ct.jsx)(Bt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,je.__)("Open images in new tab"),hasValue:()=>!!S,onDeselect:()=>za(!1),children:(0,ct.jsx)(Bt.ToggleControl,{label:(0,je.__)("Open images in new tab"),checked:S==="_blank",onChange:za})}),Ft.length>1&&(0,ct.jsx)(Bt.__experimentalToolsPanelItem,{hasValue:()=>U?se:qe!=="auto",label:(0,je.__)("Aspect ratio"),onDeselect:()=>il(U?void 0:"auto"),isShownByDefault:!0,children:(0,ct.jsx)(Bt.SelectControl,{label:(0,je.__)("Aspect ratio"),help:(0,je.__)("Set a consistent aspect ratio for all images in the gallery."),value:qe,options:Ft,onChange:il})}),!U&&f?.allowEditing&&Pe&&(0,ct.jsx)(Bt.__experimentalToolsPanelItem,{label:(0,je.__)("Navigation button type"),isShownByDefault:!0,hasValue:()=>w!=="icon",onDeselect:()=>t({navigationButtonType:"icon"}),children:(0,ct.jsx)(Bt.__experimentalToggleGroupControl,{label:(0,je.__)("Navigation button type"),value:w,onChange:ne=>t({navigationButtonType:ne}),isBlock:!0,help:(0,je.__)("Adjust the appearance of buttons in the lightbox."),children:P9e.map(ne=>(0,ct.jsx)(Bt.__experimentalToggleGroupControlOption,{value:ne.value,label:ne.label},ne.value))})})]})]}),(0,ct.jsx)(fo.BlockControls,{group:"block",children:(0,ct.jsx)(Bt.ToolbarDropdownMenu,{icon:Pi,label:(0,je.__)("Link"),children:({onClose:ne})=>(0,ct.jsx)(Bt.MenuGroup,{children:_.map(He=>{let bt=P===He.value;return(0,ct.jsx)(Bt.MenuItem,{isSelected:bt,className:T("components-dropdown-menu__menu-item",{"is-active":bt}),iconPosition:"left",icon:He.icon,onClick:()=>{la(He.value),ne()},role:"menuitemradio",info:He.infoText,children:He.label},He.value)})})})}),(0,ct.jsxs)(ct.Fragment,{children:[!oe&&!fe&&(0,ct.jsx)(fo.BlockControls,{group:"other",children:(0,ct.jsx)(fo.MediaReplaceFlow,{allowedTypes:fD,handleUpload:!1,onSelect:So,name:(0,je.__)("Add"),multiple:!0,mediaIds:ce.filter(ne=>ne.id).map(ne=>ne.id),addToGallery:ja,variant:"toolbar"})}),(0,ct.jsx)(Dee,{style:r.style,clientId:n,isFlexLayout:M})]}),fe?(0,ct.jsx)(Wee,{...e,dynamic:de,blockProps:fd,innerBlocksProps:ua,multiGallerySelection:oe}):(0,ct.jsx)(QJ,{...e,isContentLocked:l,images:ce,blockProps:ua,insertBlocksAfter:s,multiGallerySelection:oe})]})}var H3={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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:!0,allowOrientation:!1,allowJustification:!1,allowVerticalAlignment:!1,allowWrap:!1,allowSizingOnChildren:!0,default:{type:"flex"}},interactivity:{clientNavigation:!0},listView:!0},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"};var Du=a(I(),1);var j3=a(y(),1);function Yee({attributes:e}){let{caption:t,columns:r,imageCrop:o,dynamicContent:n,layout:i}=e,s=Sc(i),l=!Du.RichText.isEmpty(t)&&(0,j3.jsx)(Du.RichText.Content,{tagName:"figcaption",className:T("blocks-gallery-caption",(0,Du.__experimentalGetElementClassName)("caption")),value:t});if(n)return l||null;let c=T("has-nested-images",{[`columns-${r}`]:s&&r!==void 0,"columns-default":s&&r===void 0,"is-cropped":s&&o}),u=Du.useBlockProps.save({className:c}),d=Du.useInnerBlocksProps.save(u);return(0,j3.jsxs)("figure",{...d,children:[d.children,l]})}var Os=a(te(),1),Qee=a(Ur(),1),hD=a(Kd(),1);var M9e=e=>e?e.split(",").map(t=>parseInt(t,10)):[],Xee=e=>e.map(t=>(0,Os.createBlock)(t.name,t.attributes,Xee(t.innerBlocks||[])));function L9e(e){if(e.name==="core/gallery"&&e.attributes?.images.length>0){let t=e.attributes.images.map(({url:r,id:o,alt:n})=>(0,Os.createBlock)("core/image",{url:r,id:o?parseInt(o,10):null,alt:n,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination}));delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e}(0,hD.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",L9e);function R9e(e,t){let o=(Array.isArray(t)?t:[t]).find(n=>n.name==="core/gallery"&&n.innerBlocks.length>0&&!n.attributes.images?.length>0&&!e.name.includes("core/"));if(o){let n=o.innerBlocks.map(({attributes:{url:s,id:l,alt:c}})=>({url:s,id:l?parseInt(l,10):null,alt:c})),i=n.map(({id:s})=>s);o.attributes.images=n,o.attributes.ids=i}return e}(0,hD.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",R9e);var D9e={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:r}=e[0];t=e.every(i=>i.align===t)?t:void 0,r=e.every(i=>i.sizeSlug===r)?r:void 0;let n=e.filter(({url:i})=>i).map(i=>(i.width=void 0,i.height=void 0,(0,Os.createBlock)("core/image",i)));return(0,Os.createBlock)("core/gallery",{align:t,sizeSlug:r},n)}},{type:"shortcode",tag:"gallery",transform({named:{ids:e,columns:t=3,link:r,orderby:o,size:n}}){let i=M9e(e).map(c=>parseInt(c,10)),s=kc;return r==="post"?s=Cc:r==="file"&&(s=wc),(0,Os.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:s,randomOrder:o==="rand",...n&&{sizeSlug:n}},i.map(c=>(0,Os.createBlock)("core/image",{id:c,...n&&{sizeSlug:n}})))},isMatch({named:e}){return e.ids!==void 0}},{type:"files",priority:1,isMatch(e){return e.length!==1&&e.every(t=>t.type.indexOf("image/")===0)},transform(e){let t=e.map(r=>(0,Os.createBlock)("core/image",{blob:(0,Qee.createBlobURL)(r)}));return(0,Os.createBlock)("core/gallery",{},t)}}],to:[{type:"block",blocks:["core/image"],isMatch:({dynamicContent:e})=>!e,transform:({align:e},t)=>t.length>0?t.map(({attributes:{url:r,alt:o,caption:n,title:i,href:s,rel:l,linkClass:c,id:u,sizeSlug:d,linkDestination:p,linkTarget:m,anchor:f,className:g}})=>(0,Os.createBlock)("core/image",{align:e,url:r,alt:o,caption:n,title:i,href:s,rel:l,linkClass:c,id:u,sizeSlug:d,linkDestination:p,linkTarget:m,anchor:f,className:g})):(0,Os.createBlock)("core/image",{align:e})},{type:"block",blocks:["core/group"],variationName:"group-grid",isMatch:({dynamicContent:e})=>!e,transform:(e,t)=>{let{allowResize:r,aspectRatio:o,caption:n,columns:i,dynamicContent:s,fixedHeight:l,ids:c,imageCrop:u,images:d,linkTarget:p,linkTo:m,navigationButtonType:f,randomOrder:g,shortCodeTransforms:h,sizeSlug:b,..._}=e;return(0,Os.createBlock)("core/group",{..._,layout:{type:"grid",columnCount:i??P3(t.length)}},Xee(t))}}]},Jee=D9e;var xf=a(L(),1);var A9e=[{name:"dynamic-gallery",title:(0,xf.__)("Dynamic Gallery"),description:(0,xf.__)("Display images from a source, such as those attached to the current post."),attributes:{dynamicContent:{source:cp}},isActive:e=>!!e.dynamicContent,scope:[]},{name:"gallery-flex",title:(0,xf.__)("Gallery"),description:(0,xf.__)("Arrange images in flexible rows."),icon:gm,attributes:{layout:{type:"flex"}},isActive:e=>Sc(e.layout),scope:["transform"]},{name:"gallery-grid",title:(0,xf.__)("Gallery Grid"),description:(0,xf.__)("Arrange images in a grid."),icon:Ei,attributes:{layout:{type:"grid"}},isActive:e=>e.layout?.type==="grid",scope:["transform"]}],ete=A9e;var{name:tte}=H3,rte={icon:gm,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:Jee,variations:ete,edit:Kee,save:Yee,deprecated:GJ},O9e=()=>D({name:tte,metadata:H3,settings:rte});var xD={};J(xD,{init:()=>q9e,metadata:()=>W3,name:()=>Z3,settings:()=>hte});var q3=a(L(),1);var Wn=a(I(),1),ji=a(y(),1),yD=e=>{if(e.tagName||(e={...e,tagName:"div"}),!e.customTextColor&&!e.customBackgroundColor)return e;let t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);let{customTextColor:r,customBackgroundColor:o,...n}=e;return{...n,style:t}},F9e=[{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,ji.jsx)(e,{...Wn.useInnerBlocksProps.save(Wn.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,ji.jsx)(t,{...Wn.useBlockProps.save(),children:(0,ji.jsx)("div",{className:"wp-block-group__inner-container",children:(0,ji.jsx)(Wn.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:yD,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,textColor:o,customTextColor:n}=e,i=(0,Wn.getColorClassName)("background-color",t),s=(0,Wn.getColorClassName)("color",o),l=T(i,s,{"has-text-color":o||n,"has-background":t||r});return(0,ji.jsx)("div",{className:l,style:{backgroundColor:i?void 0:r,color:s?void 0:n},children:(0,ji.jsx)("div",{className:"wp-block-group__inner-container",children:(0,ji.jsx)(Wn.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:yD,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,textColor:o,customTextColor:n}=e,i=(0,Wn.getColorClassName)("background-color",t),s=(0,Wn.getColorClassName)("color",o),l=T(i,{"has-text-color":o||n,"has-background":t||r});return(0,ji.jsx)("div",{className:l,style:{backgroundColor:i?void 0:r,color:s?void 0:n},children:(0,ji.jsx)("div",{className:"wp-block-group__inner-container",children:(0,ji.jsx)(Wn.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:yD,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r}=e,o=(0,Wn.getColorClassName)("background-color",t),n=T(o,{"has-background":t||r});return(0,ji.jsx)("div",{className:n,style:{backgroundColor:o?void 0:r},children:(0,ji.jsx)(Wn.InnerBlocks.Content,{})})}}],ote=F9e;var U3=a(H(),1),Wi=a(I(),1),cte=a(W(),1),ute=a(L(),1);var nte=a(H(),1),ate=a(I(),1),vD=a(L(),1),ite=a(te(),1),si=a(F(),1),P2=a(W(),1),ii=a(y(),1),V9e=(e="group")=>({group:(0,ii.jsx)(si.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,ii.jsx)(si.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,ii.jsx)(si.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,ii.jsx)(si.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,ii.jsx)(si.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,ii.jsx)(si.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,ii.jsx)(si.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,ii.jsx)(si.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 ste({attributes:e={style:void 0,backgroundColor:void 0,textColor:void 0,fontSize:void 0},usedLayoutType:t="",hasInnerBlocks:r=!1}){let{style:o,backgroundColor:n,textColor:i,fontSize:s}=e,[l,c]=(0,P2.useState)(!r&&!n&&!s&&!i&&!o&&t!=="flex"&&t!=="grid");return(0,P2.useEffect)(()=>{(r||n||s||i||o||t==="flex")&&c(!1)},[n,s,i,o,t,r]),[l,c]}function z9e({name:e,onSelect:t}){let r=(0,nte.useSelect)(n=>n(ite.store).getBlockVariations(e,"block"),[e]),o=(0,ate.useBlockProps)({className:"wp-block-group__placeholder"});return(0,P2.useEffect)(()=>{r&&r.length===1&&t(r[0])},[t,r]),(0,ii.jsx)("div",{...o,children:(0,ii.jsx)(si.Placeholder,{instructions:(0,vD.__)("Group blocks together. Select a layout:"),children:(0,ii.jsx)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,vD.__)("Block variations"),children:r.map(n=>(0,ii.jsx)("li",{children:(0,ii.jsx)(si.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:V9e(n.name),iconSize:48,onClick:()=>t(n),className:"wp-block-group-placeholder__variation-button",label:`${n.title}: ${n.description}`})},n.name))})})})}var lte=z9e;var Ui=a(y(),1),{HTMLElementControl:H9e}=le(Wi.privateApis);function j9e({tagName:e,onSelectTagName:t,clientId:r}){return(0,Ui.jsx)(Wi.InspectorControls,{group:"advanced",children:(0,Ui.jsx)(H9e,{tagName:e,onChange:t,clientId:r,options:[{label:(0,ute.__)("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 U9e({attributes:e,name:t,setAttributes:r,clientId:o}){let{hasInnerBlocks:n,themeSupportsLayout:i}=(0,U3.useSelect)(x=>{let{getBlock:k,getSettings:C}=x(Wi.store),S=k(o);return{hasInnerBlocks:!!(S&&S.innerBlocks.length),themeSupportsLayout:C()?.supportsLayout}},[o]),{tagName:s="div",templateLock:l,allowedBlocks:c,layout:u={}}=e,{type:d="default"}=u,p=i||d==="flex"||d==="grid",m=(0,cte.useRef)(),f=(0,Wi.useBlockProps)({ref:m}),[g,h]=ste({attributes:e,usedLayoutType:d,hasInnerBlocks:n}),b;g?b=!1:n||(b=Wi.InnerBlocks.ButtonBlockAppender);let _=(0,Wi.useInnerBlocksProps)(p?f:{className:"wp-block-group__inner-container"},{dropZoneElement:m.current,templateLock:l,allowedBlocks:c,renderAppender:b}),{selectBlock:v}=(0,U3.useDispatch)(Wi.store),w=x=>{r(x.attributes),v(o,-1),h(!1)};return(0,Ui.jsxs)(Ui.Fragment,{children:[(0,Ui.jsx)(j9e,{tagName:s,onSelectTagName:x=>r({tagName:x}),clientId:o}),g&&(0,Ui.jsxs)("div",{children:[_.children,(0,Ui.jsx)(lte,{name:t,onSelect:w})]}),p&&!g&&(0,Ui.jsx)(s,{..._}),!p&&!g&&(0,Ui.jsx)(s,{...f,children:(0,Ui.jsx)("div",{..._})})]})}var dte=U9e;var W3={$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,__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:["horizontal","vertical"],__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,textColumns:!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 G3=a(I(),1),pte=a(y(),1);function mte({attributes:{tagName:e}}){return(0,pte.jsx)(e,{...G3.useInnerBlocksProps.save(G3.useBlockProps.save())})}var $3=a(te(),1),G9e={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){let t=["wide","full"],r=e.reduce((n,i)=>{let{align:s}=i.attributes;return t.indexOf(s)>t.indexOf(n)?s:n},void 0),o=e.map(n=>(0,$3.cloneSanitizedBlock)(n));return(0,$3.createBlock)("core/group",{align:r,layout:{type:"constrained"}},o)}}]},fte=G9e;var Gn=a(L(),1);var _D={innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Gn.__)("One.")}},{name:"core/paragraph",attributes:{content:(0,Gn.__)("Two.")}},{name:"core/paragraph",attributes:{content:(0,Gn.__)("Three.")}},{name:"core/paragraph",attributes:{content:(0,Gn.__)("Four.")}},{name:"core/paragraph",attributes:{content:(0,Gn.__)("Five.")}},{name:"core/paragraph",attributes:{content:(0,Gn.__)("Six.")}}]},$9e=[{name:"group",title:(0,Gn.__)("Group"),description:(0,Gn.__)("Gather blocks in a container."),attributes:{layout:{type:"constrained"}},isDefault:!0,scope:["block","inserter","transform"],icon:wy},{name:"group-row",title:(0,Gn._x)("Row","single horizontal line"),description:(0,Gn.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:GI,example:_D},{name:"group-stack",title:(0,Gn.__)("Stack"),description:(0,Gn.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["block","inserter","transform"],isActive:["layout.type","layout.orientation"],icon:nN,example:_D},{name:"group-grid",title:(0,Gn.__)("Grid"),description:(0,Gn.__)("Arrange blocks in a grid."),attributes:{layout:{type:"grid"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:Ei,example:_D}],gte=$9e;var{name:Z3}=W3,hte={icon:wy,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,q3.__)("La Mancha"),style:{typography:{textAlign:"center"}}}},{name:"core/paragraph",attributes:{style:{typography:{textAlign:"center"}},content:(0,q3.__)("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,q3.__)("Read more")}}],viewportWidth:600},transforms:fte,edit:dte,save:mte,deprecated:ote,variations:gte},q9e=()=>D({name:Z3,metadata:W3,settings:hte});var TD={};J(TD,{init:()=>p6e,metadata:()=>J3,name:()=>t7,settings:()=>Mte});var Cf=a(L(),1),r7=a(te(),1);var wa=a(I(),1);var Ec=a(y(),1),kD={className:!1,anchor:!0},K3={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},v1=e=>{if(!e.customTextColor)return e;let t={color:{text:e.customTextColor}},{customTextColor:r,...o}=e;return{...o,style:t}},bte=["left","right","center"],_1=e=>{let{align:t,...r}=e;return bte.includes(t)?{...r,textAlign:t}:e},Z9e={supports:kD,attributes:{...K3,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>we(v1(_1(e))),save({attributes:e}){let{align:t,level:r,content:o,textColor:n,customTextColor:i}=e,s="h"+r,l=(0,wa.getColorClassName)("color",n),c=T({[l]:l});return(0,Ec.jsx)(wa.RichText.Content,{className:c||void 0,tagName:s,style:{textAlign:t,color:l?void 0:i},value:o})}},K9e={attributes:{...K3,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>we(v1(_1(e))),save({attributes:e}){let{align:t,content:r,customTextColor:o,level:n,textColor:i}=e,s="h"+n,l=(0,wa.getColorClassName)("color",i),c=T({[l]:l,[`has-text-align-${t}`]:t});return(0,Ec.jsx)(wa.RichText.Content,{className:c||void 0,tagName:s,style:{color:l?void 0:o},value:r})},supports:kD},Y9e={supports:kD,attributes:{...K3,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>we(v1(_1(e))),save({attributes:e}){let{align:t,content:r,customTextColor:o,level:n,textColor:i}=e,s="h"+n,l=(0,wa.getColorClassName)("color",i),c=T({[l]:l,"has-text-color":i||o,[`has-text-align-${t}`]:t});return(0,Ec.jsx)(wa.RichText.Content,{className:c||void 0,tagName:s,style:{color:l?void 0:o},value:r})}},Q9e={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:K3,isEligible:({align:e})=>bte.includes(e),migrate:e=>we(v1(_1(e))),save({attributes:e}){let{align:t,content:r,level:o}=e,n="h"+o,i=T({[`has-text-align-${t}`]:t});return(0,Ec.jsx)(n,{...wa.useBlockProps.save({className:i}),children:(0,Ec.jsx)(wa.RichText.Content,{value:r})})}},X9e={supports:{align:["wide","full"],anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",role:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},save({attributes:e}){let{textAlign:t,content:r,level:o}=e,n="h"+o,i=T({[`has-text-align-${t}`]:t});return(0,Ec.jsx)(n,{...wa.useBlockProps.save({className:i}),children:(0,Ec.jsx)(wa.RichText.Content,{value:r})})},migrate:e=>we(v1(_1(e)))},J9e={supports:{align:["wide","full"],anchor:!0,className:!0,splitting:!0,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0,fitText:!0,__experimentalDefaultControls:{fontSize:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0}},attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",role:"content"},level:{type:"number",default:2},levelOptions:{type:"array"},placeholder:{type:"string"}},save({attributes:e}){let{textAlign:t,content:r,level:o}=e,n="h"+o,i=T({[`has-text-align-${t}`]:t});return(0,Ec.jsx)(n,{...wa.useBlockProps.save({className:i}),children:(0,Ec.jsx)(wa.RichText.Content,{value:r})})},migrate:e=>we(v1(_1(e))),isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},e6e=[J9e,X9e,Q9e,Y9e,K9e,Z9e],yte=e6e;var Cte=a(L(),1),Ste=a(W(),1),X3=a(H(),1),kf=a(I(),1);var wte=a(kte(),1),wD={},a6e=e=>{let t=document.createElement("div");return t.innerHTML=e,t.innerText},i6e=e=>(0,wte.default)(a6e(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),Q3=(e,t)=>{let r=i6e(t);if(r==="")return null;delete wD[e];let o=r,n=0;for(;Object.values(wD).includes(o);)n+=1,o=r+"-"+n;return o},CD=(e,t)=>{wD[e]=t};var Tte=a(y(),1);function s6e(e){let{attributes:t,setAttributes:r,mergeBlocks:o,onReplace:n,style:i,clientId:s}=e;Pt(e);let{content:l,level:c,placeholder:u,anchor:d}=t,p="h"+c,m=(0,kf.useBlockProps)({style:i}),{canGenerateAnchors:f}=(0,X3.useSelect)(b=>{let{getGlobalBlockCount:_,getSettings:v}=b(kf.store);return{canGenerateAnchors:!!v().generateAnchors||_("core/table-of-contents")>0}},[]),{__unstableMarkNextChangeAsNotPersistent:g}=(0,X3.useDispatch)(kf.store);return(0,Ste.useEffect)(()=>{if(f)return!d&&l&&(g(),r({anchor:Q3(s,l)})),CD(s,d),()=>CD(s,null)},[d,l,s,f,r,g]),(0,Tte.jsx)(kf.RichText,{identifier:"content",tagName:p,value:l,onChange:b=>{let _={content:b};f&&(!d||!b||Q3(s,l)===d)&&(_.anchor=Q3(s,b)),r(_)},onMerge:o,onReplace:n,onRemove:n?()=>n([]):void 0,placeholder:u||(0,Cte.__)("Heading"),...m})}var Ete=s6e;var J3={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!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,textShadow:!0,fitText:!0,__experimentalDefaultControls:{fontSize:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"};var e7=a(I(),1),SD=a(y(),1);function Pte({attributes:e}){let{content:t,level:r}=e,o="h"+r;return(0,SD.jsx)(o,{...e7.useBlockProps.save(),children:(0,SD.jsx)(e7.RichText.Content,{value:t})})}var pp=a(te(),1),B2=a(L(),1);function Bte(e){return Number(e.substr(1))}var c6e={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],shortcuts:[1,2,3,4,5,6].map(e=>({name:`core/block-editor/transform-to-heading-${e}`,description:(0,B2.sprintf)((0,B2.__)("Transform the selected block into a heading %d."),e),keyCombination:{modifier:"access",character:`${e}`},variationName:`h${e}`})),transform:e=>e.map(t=>{let{content:r,anchor:o,style:n}=t,i=n?.typography?.textAlign;return(0,pp.createBlock)("core/heading",{...Pu(t,"core/heading",({content:s})=>({content:s})),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,pp.getBlockAttributes)("core/heading",e.outerHTML),{textAlign:r}=e.style||{};return t.level=Bte(e.nodeName),(r==="left"||r==="center"||r==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:r}}),(0,pp.createBlock)("core/heading",t)}},...[1,2,3,4,5,6].map(e=>({type:"prefix",prefix:Array(e+1).join("#"),transform(t){return(0,pp.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,pp.createBlock)("core/heading",{level:e})}))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],shortcuts:[{name:"core/block-editor/transform-heading-to-paragraph",description:(0,B2.__)("Transform the selected heading into a paragraph."),keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}]}],transform:e=>e.map(t=>{let{content:r,style:o}=t,n=o?.typography?.textAlign;return(0,pp.createBlock)("core/paragraph",{...Pu(t,"core/paragraph",({content:i})=>({content:i})),content:r,...n&&{style:{typography:{textAlign:n}}}})})}]},Ite=c6e;var wf=a(L(),1);var u6e=[vB,_B,xB,kB,wB,CB],d6e=[...[1,2,3,4,5,6].map(e=>({name:`h${e}`,title:(0,wf.sprintf)((0,wf.__)("Heading %d"),e),description:(0,wf.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:u6e[e-1],attributes:{level:e},scope:["block","transform"],keywords:[`h${e}`],isActive:t=>t.level===e,shortcut:{name:`core/block-editor/transform-to-heading-${e}`,description:(0,wf.sprintf)((0,wf.__)("Transform the selected block into a heading %d."),e),keyCombination:{modifier:"access",character:`${e}`}}}))],Nte=d6e;var{name:t7}=J3,Mte={icon:TB,example:{attributes:{content:(0,Cf.__)("Code is Poetry"),level:2,style:{typography:{textAlign:"center"}}}},__experimentalLabel(e,{context:t}){let{content:r,level:o}=e,n=e?.metadata?.name,i=r?.trim().length>0;if(t==="list-view"&&(n||i))return n||r;if(t==="breadcrumb"&&n)return n;if(t==="accessibility")return i?(0,Cf.sprintf)((0,Cf.__)("Level %1$s. %2$s"),o,r):(0,Cf.sprintf)((0,Cf.__)("Level %s. Empty."),o)},transforms:Ite,deprecated:yte,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:Ete,save:Pte,variations:Nte},p6e=()=>{let e=D({name:t7,metadata:J3,settings:Mte}),t=(0,r7.getBlockType)(t7)?.attributes?.levelOptions?.default;return t&&[1,2,3,4,5,6].forEach(r=>{t.includes(r)||(0,r7.unregisterBlockVariation)(t7,`h${r}`)}),e};var ED={};J(ED,{init:()=>g6e,metadata:()=>o7,name:()=>Hte,settings:()=>jte});var zte=a(L(),1);var o7={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},shadow:!0,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!1,radius:!1,style:!1,width:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-home-link-editor",style:"wp-block-home-link"};var mp=a(I(),1),Ca=a(F(),1),li=a(L(),1),Lte=a(H(),1),Rte=a(ae(),1);var Dte=a(ma(),1);var Mo=a(y(),1),f6e=e=>e.preventDefault();function Ate({attributes:e,setAttributes:t,context:r}){let{homeUrl:o,onNavigateToEntityRecord:n,frontPageId:i,frontPageTemplateId:s}=(0,Lte.useSelect)(h=>{let{getEntityRecord:b,getDefaultTemplateId:_,canUser:v}=h(Rte.store),w=b("root","__unstableBase")?.home,k=v("read",{kind:"root",name:"site"})?b("root","site"):null,C=k?.show_on_front==="page"?k?.page_on_front:null,S=C?null:_({slug:"front-page"});return{homeUrl:w,onNavigateToEntityRecord:h(mp.store).getSettings().onNavigateToEntityRecord,frontPageId:C,frontPageTemplateId:S}},[]),{textColor:l,backgroundColor:c,style:u}=r,{label:d,opensInNewTab:p,description:m}=e,f=ee(),g=(0,mp.useBlockProps)({className:T("wp-block-navigation-item",{"has-text-color":!!l||!!u?.color?.text,[`has-${l}-color`]:!!l,"has-background":!!c||!!u?.color?.background,[`has-${c}-background-color`]:!!c}),style:{color:u?.color?.text,backgroundColor:u?.color?.background}});return(0,Mo.jsxs)(Mo.Fragment,{children:[(0,Mo.jsx)(mp.InspectorControls,{group:"content",children:(0,Mo.jsxs)(Ca.__experimentalToolsPanel,{label:(0,li.__)("Settings"),resetAll:()=>{t({label:"",opensInNewTab:!1,description:""})},dropdownMenuProps:f,children:[(0,Mo.jsx)(Ca.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,li.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,Mo.jsx)(Ca.TextControl,{label:(0,li.__)("Text"),value:d?(0,Dte.__unstableStripHTML)(d):"",onChange:h=>{t({label:h})},autoComplete:"off"})}),(0,Mo.jsx)(Ca.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,li.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,Mo.jsx)(Ca.CheckboxControl,{label:(0,li.__)("Open in new tab"),checked:p,onChange:h=>t({opensInNewTab:h})})}),n&&(i||s)&&(0,Mo.jsx)(Ca.Button,{variant:"secondary",onClick:()=>{n(i?{postId:i,postType:"page"}:{postId:s,postType:"wp_template"})},__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,li.__)("Edit")}),o&&(0,Mo.jsx)(Ca.Button,{variant:"secondary",href:o,target:"_blank",icon:ny,iconPosition:"right",__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,li.__)("View")}),(0,Mo.jsx)(Ca.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,li.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!0,children:(0,Mo.jsx)(Ca.TextareaControl,{label:(0,li.__)("Description"),value:m||"",onChange:h=>{t({description:h})},help:(0,li.__)("The description will be displayed in the menu if the current theme supports it.")})})]})}),(0,Mo.jsx)("div",{...g,children:(0,Mo.jsxs)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:o,onClick:f6e,children:[(0,Mo.jsx)(mp.RichText,{identifier:"label",className:"wp-block-home-link__label",value:d??(0,li.__)("Home"),onChange:h=>{t({label:h})},"aria-label":(0,li.__)("Home link text"),placeholder:(0,li.__)("Add label\u2026"),withoutInteractiveFormatting:!0}),m&&(0,Mo.jsx)("span",{className:"wp-block-navigation-item__description",children:m})]})})]})}var Ote=a(I(),1),Fte=a(y(),1);function Vte(){return(0,Fte.jsx)(Ote.InnerBlocks.Content,{})}var{name:Hte}=o7,jte={icon:PB,edit:Ate,save:Vte,example:{attributes:{label:(0,zte._x)("Home Link","block example")}}},g6e=()=>D({name:Hte,metadata:o7,settings:jte});var ID={};J(ID,{init:()=>x6e,metadata:()=>i7,name:()=>ore,settings:()=>nre});var rre=a(L(),1);var x1=a(L(),1),a7=a(W(),1),ci=a(I(),1),Tf=a(te(),1),k1=a(H(),1),Qte=a(jm(),1),Dl=a(F(),1);var Gi=a(L(),1),I2=a(W(),1),Kte=a(H(),1),bn=a(F(),1),gp=a(I(),1);var Yte=a(_e(),1);var Ute=a(W(),1),n7=a(I(),1),Wte=a(F(),1),Gte=a(H(),1),$te=a(L(),1),Sf=a(y(),1),h6e=`
56 html,body,:root {
57 margin: 0 !important;
58 padding: 0 !important;
59 overflow: visible !important;
60 min-height: auto !important;
61 }
62 `;function qte({content:e,isSelected:t}){let r=(0,Gte.useSelect)(n=>n(n7.store).getSettings().styles,[]),o=(0,Ute.useMemo)(()=>[h6e,...(0,n7.transformStyles)((r??[]).filter(n=>n.css))],[r]);return(0,Sf.jsxs)(Sf.Fragment,{children:[(0,Sf.jsx)(Wte.SandBox,{html:e,styles:o,title:(0,$te.__)("Custom HTML Preview"),tabIndex:-1}),!t&&(0,Sf.jsx)("div",{className:"block-library-html__preview-overlay"})]})}function Zte(e=""){if(!e||!e.trim())return{html:"",css:"",js:""};let t=document.implementation.createHTMLDocument("");t.body.innerHTML=e;let r=t.body.querySelector('style[data-wp-block-html="css"]'),o=r?r.textContent.trim():"";r&&r.remove();let n=t.body.querySelector('script[data-wp-block-html="js"]'),i=n?n.textContent.trim():"";return n&&n.remove(),{html:t.body.innerHTML.trim(),css:o,js:i}}function PD({html:e="",css:t="",js:r=""}){let o=[];return t.trim()&&o.push(`<style data-wp-block-html="css">
63 ${t}
64 </style>`),r.trim()&&o.push(`<script data-wp-block-html="js">
65 ${r}
66 <\/script>`),e.trim()&&o.push(e),o.join(`
67
68 `)}var Rt=a(y(),1),{Tabs:fp}=le(bn.privateApis),{useNativeUndo:b6e}=le(gp.privateApis);function BD({onRequestClose:e,content:t,onUpdate:r}){let{html:o,css:n,js:i}=Zte(t),[s,l]=(0,I2.useState)(o),[c,u]=(0,I2.useState)(n),[d,p]=(0,I2.useState)(i),[m,f]=(0,I2.useState)(!1),g=b6e(),h=(0,Yte.useViewportMatch)("small","<"),{canUserUseUnfilteredHTML:b}=(0,Kte.useSelect)(k=>({canUserUseUnfilteredHTML:k(gp.store).getSettings().__experimentalCanUserUseUnfilteredHTML}),[]),_=!b&&(n.trim()||i.trim()),v=()=>{r(PD({html:s,css:b?c:"",js:b?d:""}))},w=()=>{v(),e()},x=()=>{f(k=>!k)};return(0,Rt.jsx)(Rt.Fragment,{children:(0,Rt.jsx)(bn.Modal,{title:(0,Gi.__)("Edit HTML"),onRequestClose:e,className:"block-library-html__modal",size:"large",isDismissible:!1,shouldCloseOnClickOutside:!1,isFullScreen:m,__experimentalHideHeader:!0,children:(0,Rt.jsx)(fp,{orientation:"horizontal",defaultTabId:"html",children:(0,Rt.jsxs)(bn.__experimentalVStack,{expanded:!0,children:[(0,Rt.jsxs)(bn.__experimentalHStack,{justify:"space-between",className:"block-library-html__modal-header",children:[(0,Rt.jsx)("div",{children:(0,Rt.jsxs)(fp.TabList,{children:[(0,Rt.jsx)(fp.Tab,{tabId:"html",children:"HTML"}),b&&(0,Rt.jsx)(fp.Tab,{tabId:"css",children:"CSS"}),b&&(0,Rt.jsx)(fp.Tab,{tabId:"js",children:(0,Gi.__)("JavaScript")})]})}),!h&&(0,Rt.jsx)("div",{children:(0,Rt.jsx)(bn.Button,{__next40pxDefaultSize:!0,icon:m?rN:fm,label:(0,Gi.__)("Enable/disable fullscreen"),onClick:x,variant:"tertiary"})})]}),_&&(0,Rt.jsx)(bn.Notice,{status:"warning",isDismissible:!1,className:"block-library-html__modal-notice",children:(0,Gi.__)("This block contains CSS or JavaScript that will be removed when you save because you do not have permission to use unfiltered HTML.")}),(0,Rt.jsxs)(bn.Flex,{direction:h?"column":"row",className:"block-library-html__modal-tabs",align:"stretch",gap:8,children:[(0,Rt.jsxs)("div",{ref:g,className:"block-library-html__modal-content",children:[(0,Rt.jsx)(fp.TabPanel,{tabId:"html",focusable:!1,className:"block-library-html__modal-tab",children:(0,Rt.jsx)(gp.PlainText,{value:s,onChange:l,placeholder:(0,Gi.__)("Write HTML\u2026"),"aria-label":(0,Gi.__)("HTML"),className:"block-library-html__modal-editor"})}),b&&(0,Rt.jsx)(fp.TabPanel,{tabId:"css",focusable:!1,className:"block-library-html__modal-tab",children:(0,Rt.jsx)(gp.PlainText,{value:c,onChange:u,placeholder:(0,Gi.__)("Write CSS\u2026"),"aria-label":(0,Gi.__)("CSS"),className:"block-library-html__modal-editor"})}),b&&(0,Rt.jsx)(fp.TabPanel,{tabId:"js",focusable:!1,className:"block-library-html__modal-tab",children:(0,Rt.jsx)(gp.PlainText,{value:d,onChange:p,placeholder:(0,Gi.__)("Write JavaScript\u2026"),"aria-label":(0,Gi.__)("JavaScript"),className:"block-library-html__modal-editor"})})]}),(0,Rt.jsx)("div",{className:"block-library-html__preview",children:(0,Rt.jsx)(qte,{content:PD({html:s,css:c,js:d})})})]}),(0,Rt.jsxs)(bn.__experimentalHStack,{alignment:"center",justify:"flex-end",spacing:4,className:"block-library-html__modal-footer",children:[(0,Rt.jsx)(bn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e,children:(0,Gi.__)("Cancel")}),(0,Rt.jsx)(bn.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:w,children:(0,Gi.__)("Update")})]})]})})})})}var $n=a(y(),1),{InnerContent:y6e}=le(ci.privateApis);function Xte({clientId:e,attributes:t}){let[r,o]=(0,a7.useState)(!1),n=(0,k1.useRegistry)(),{updateBlock:i,replaceInnerBlocks:s}=(0,k1.useDispatch)(ci.store),l=(0,k1.useSelect)(d=>{let p=d(ci.store).getBlock(e);return p?(0,Tf.getBlockContent)(p):""},[e]),c=(0,ci.useBlockProps)({className:"block-library-html__edit"}),u=d=>{if(d===l)return;let[p]=(0,Tf.parse)(`<!-- wp:html -->
69 ${d}
70 <!-- /wp:html -->`),m=p?.innerBlocks??[],f=n.select(ci.store).getBlocks(e),g=f.length===m.length&&f.every((h,b)=>(0,Tf.serialize)(h)===(0,Tf.serialize)(m[b]));n.batch(()=>{i(e,{innerContent:p?.innerContent??(d?[d]:[])}),g||s(e,m,!1)})};return(0,a7.useEffect)(()=>{t.content&&((0,Qte.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]),l?.trim()?(0,$n.jsxs)("div",{...c,children:[(0,$n.jsx)(ci.BlockControls,{children:(0,$n.jsx)(Dl.ToolbarGroup,{children:(0,$n.jsx)(Dl.ToolbarButton,{onClick:()=>o(!0),children:(0,x1.__)("Edit code")})})}),(0,$n.jsx)(ci.InspectorControls,{children:(0,$n.jsx)(Dl.__experimentalVStack,{className:"block-library-html__edit-code",expanded:!0,children:(0,$n.jsx)(Dl.Button,{className:"block-library-html__edit-code-button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>o(!0),children:(0,x1.__)("Edit code")})})}),(0,$n.jsx)(y6e,{clientId:e}),r&&(0,$n.jsx)(BD,{onRequestClose:()=>o(!1),content:l,onUpdate:u})]}):(0,$n.jsxs)("div",{...c,children:[(0,$n.jsx)(Dl.Placeholder,{icon:(0,$n.jsx)(ci.BlockIcon,{icon:Wb}),label:(0,x1.__)("Custom HTML"),instructions:(0,x1.__)("Add custom HTML code and preview how it looks."),children:(0,$n.jsx)(Dl.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>o(!0),children:(0,x1.__)("Edit HTML")})}),r&&(0,$n.jsx)(BD,{onRequestClose:()=>o(!1),content:l,onUpdate:u})]})}var i7={$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 Jte(){return null}var s7=a(te(),1),ere=a(vl(),1),_6e={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>{let t=(0,ere.create)({html:e}).text,[r]=(0,s7.parse)(`<!-- wp:html -->
71 ${t}
72 <!-- /wp:html -->`);return r??(0,s7.createBlock)("core/html",{},[],[t])}}]},tre=_6e;var{name:ore}=i7,nre={icon:IB,example:{innerContent:["<marquee>"+(0,rre.__)("Welcome to the wonderful world of blocks\u2026")+"</marquee>"]},edit:Xte,save:Jte,transforms:tre},x6e=()=>D({name:ore,metadata:i7,settings:nre});var AD={};J(AD,{init:()=>B6e,metadata:()=>d7,name:()=>yre,settings:()=>vre});var qi=a(L(),1),Sa=a(F(),1);var yn=a(I(),1),pre=a(W(),1),C1=a(A(),1),mre=a(H(),1),fre=a(ae(),1);var u7=a(L(),1),w1=a(F(),1);var M2=a(W(),1),dre=a(_e(),1),MD=a(H(),1),LD=a(ae(),1);var ND=a(L(),1),ire=a(F(),1),sre=a(_e(),1),l7=a(W(),1),lre=a(ma(),1);var Pc=a(y(),1),are=20;function cre({icons:e,onChange:t,value:r}){let o=(0,sre.useAsyncList)(e,{step:are}),n=(0,l7.useRef)(),i=e?.findIndex(l=>l.name===r)??-1,s=i>=0&&(o.length>=i+are||o.length===e.length);return(0,l7.useLayoutEffect)(()=>{let l=n.current;!s||!l||(0,lre.getScrollContainer)(l)?.scrollTop||l.scrollIntoView({block:"center"})},[s]),(0,Pc.jsx)("div",{className:"wp-block-icon__inserter-grid",children:e?.length?(0,Pc.jsx)("div",{className:"wp-block-icon__inserter-grid-icons-list","aria-label":(0,ND.__)("Icon library"),children:o.map(l=>(0,Pc.jsxs)(ire.Button,{ref:l.name===r?n:void 0,className:"wp-block-icon__inserter-grid-icons-list-item",onClick:()=>t(l.name),variant:l.name===r?"primary":void 0,__next40pxDefaultSize:!0,children:[(0,Pc.jsx)("span",{className:"wp-block-icon__inserter-grid-icons-list-item-icon",children:(0,Pc.jsx)(Eo,{html:l.content})}),(0,Pc.jsx)("span",{className:"wp-block-icon__inserter-grid-icons-list-item-title",children:l.label})]},l.name))}):(0,Pc.jsx)("div",{className:"wp-block-icon__inserter-grid-no-results",children:(0,Pc.jsx)("p",{children:(0,ND.__)("No results found.")})})})}var ure=a(I(),1);var{normalizeString:k6e,searchItems:w6e}=le(ure.privateApis);function c7(e=""){return k6e(e).trim()}function N2(e=[],t=""){return w6e(e,t,{fields:[{get:r=>r.title}]})}var $i=a(y(),1);function RD({onClose:e,value:t,onChange:r}){let[o,n]=(0,M2.useState)(""),[i,s]=(0,M2.useState)(null),l=(0,dre.useDebounce)(n,300),c=(0,MD.useSelect)(g=>g(LD.store).getEntityRecords("root","iconCollection"),[]),u=t?.split("/")[0],d=i??(c?.some(({slug:g})=>g===u)?u:c?.[0]?.slug)??null,{icons:p,hasResolvedIcons:m}=(0,MD.useSelect)(g=>{if(d===null)return{icons:null,hasResolvedIcons:!1};let h=d===""?{}:{collection:d},{getEntityRecords:b,hasFinishedResolution:_}=g(LD.store);return{icons:b("root","icon",h),hasResolvedIcons:_("getEntityRecords",["root","icon",h])}},[d]),f=(0,M2.useMemo)(()=>{if(!p)return[];if(o){let g=c7(o);return p.filter(h=>{let b=c7(h.name),_=c7(h.label);return b.includes(g)||_.includes(g)})}return p},[o,p]);return(0,$i.jsx)(w1.Modal,{className:"wp-block-icon__inserter-modal",title:(0,u7.__)("Icon library"),onRequestClose:e,isFullScreen:!0,children:(0,$i.jsxs)(Rd.Root,{className:"wp-block-icon__inserter",orientation:"vertical",value:d,onValueChange:s,children:[(0,$i.jsxs)(Es,{direction:"column",gap:"lg",className:"wp-block-icon__inserter-sidebar",children:[(0,$i.jsx)(w1.SearchControl,{value:o,onChange:l}),(0,$i.jsxs)(Rd.List,{children:[(0,$i.jsx)(Rd.Tab,{value:"",children:(0,u7.__)("All")}),c?.map(g=>(0,$i.jsx)(Rd.Tab,{value:g.slug,children:g.label},g.slug))]})]}),[{slug:""},...c??[]].map(g=>(0,$i.jsx)(Rd.Panel,{tabIndex:-1,value:g.slug,className:"wp-block-icon__inserter-panel",children:m?(0,$i.jsx)(cre,{icons:f,onChange:r,value:t}):(0,$i.jsx)("div",{className:"wp-block-icon__inserter-loading",role:"status","aria-label":(0,u7.__)("Loading\u2026"),children:(0,$i.jsx)(w1.Spinner,{})})},g.slug))]})})}var Xt=a(y(),1),C6e=({className:e,style:t})=>(0,Xt.jsxs)(C1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none",fill:"none","aria-hidden":"true",className:T("wp-block-icon__placeholder",e),style:t,children:[(0,Xt.jsx)(C1.Rect,{width:"60",height:"60",fill:"currentColor",fillOpacity:.1}),(0,Xt.jsx)(C1.Path,{vectorEffect:"non-scaling-stroke",stroke:"currentColor",strokeOpacity:.25,d:"M60 60 0 0"})]});function S6e({attributes:e,setAttributes:t}){let{icon:r,ariaLabel:o,flipHorizontal:n,flipVertical:i,rotation:s}=e,[l,c]=(0,pre.useState)(!1),u=(0,yn.useBlockEditingMode)()==="contentOnly",d=(0,yn.__experimentalUseColorProps)(e),p=(0,yn.__experimentalGetSpacingClassesAndStyles)({style:{spacing:{padding:e.style?.spacing?.padding}}}),m=(0,yn.__experimentalUseBorderProps)(e),f=(0,yn.getDimensionsClassesAndStyles)(e),h=(0,mre.useSelect)(k=>{let{getEntityRecord:C}=k(fre.store);return r?C("root","icon",r):null},[r])?.content||"",b={"is-flip-horizontal":n,"is-flip-vertical":i},_=s?{rotate:`${s}deg`}:{},v=(0,Xt.jsxs)(Xt.Fragment,{children:[r&&(0,Xt.jsxs)(yn.BlockControls,{group:"block",children:[(0,Xt.jsx)(Sa.ToolbarButton,{icon:sB,label:(0,qi.__)("Flip horizontal"),isPressed:n,onClick:()=>t({flipHorizontal:!n})}),(0,Xt.jsx)(Sa.ToolbarButton,{icon:cB,label:(0,qi.__)("Flip vertical"),isPressed:i,onClick:()=>t({flipVertical:!i})}),(0,Xt.jsx)(Sa.ToolbarButton,{icon:UI,label:(0,qi.__)("Rotate"),onClick:()=>t({rotation:((s||0)+90)%360})})]}),(0,Xt.jsxs)(yn.BlockControls,{group:"other",children:[(0,Xt.jsx)(Sa.ToolbarButton,{onClick:()=>{c(!0)},children:r?(0,qi.__)("Replace"):(0,qi.__)("Choose icon")}),u&&r&&(0,Xt.jsx)(Sa.DropdownMenu,{icon:"",toggleProps:{as:Sa.ToolbarButton},popoverProps:{className:"is-alternate"},text:(0,qi.__)("Label"),children:()=>(0,Xt.jsx)(Sa.TextControl,{className:"wp-block-icon__toolbar-content",label:(0,qi.__)("Label"),value:o||"",onChange:k=>t({ariaLabel:k}),help:(0,qi.__)("Briefly describe the icon to help screen reader users. Leave blank for decorative icons.")})})]})]}),w=ee(),x=r&&(0,Xt.jsx)(Xt.Fragment,{children:(0,Xt.jsx)(yn.InspectorControls,{group:"settings",children:(0,Xt.jsx)(Sa.__experimentalToolsPanel,{label:(0,qi.__)("Settings"),resetAll:()=>t({ariaLabel:void 0}),dropdownMenuProps:w,children:(0,Xt.jsx)(Sa.__experimentalToolsPanelItem,{label:(0,qi.__)("Label"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>t({ariaLabel:void 0}),children:(0,Xt.jsx)(Sa.TextControl,{label:(0,qi.__)("Label"),help:(0,qi.__)("Briefly describe the icon to help screen reader users. Leave blank for decorative icons."),value:o||"",onChange:k=>t({ariaLabel:k})})})})})});return(0,Xt.jsxs)(Xt.Fragment,{children:[v,x,(0,Xt.jsx)("div",{...(0,yn.useBlockProps)(),children:h?(0,Xt.jsx)(Eo,{html:h,wrapperProps:{className:T(d.className,m.className,p.className,f.className,b),style:{...d.style,...m.style,...p.style,...f.style,..._}}}):(0,Xt.jsx)(C6e,{className:T(m.className,p.className,f.className,b),style:{...m.style,...p.style,...f.style,..._,height:"auto"}})}),l&&(0,Xt.jsx)(RD,{onClose:()=>c(!1),value:e.icon,onChange:k=>{t({icon:k}),c(!1)}})]})}var gre=S6e;var d7={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 p7=a(F(),1),DD=a(y(),1),E6e=(0,DD.jsx)(p7.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:(0,DD.jsx)(p7.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"})}),hre=E6e;var P6e=[{name:"default",isDefault:!0,attributes:{icon:"core/info"}}],bre=P6e;var{name:yre}=d7,vre={icon:hre,example:{attributes:{icon:"core/info",style:{dimensions:{width:"48px"}}}},variations:bre,edit:gre},B6e=()=>D({name:yre,metadata:d7,settings:vre});var jD={};J(jD,{init:()=>aSe,metadata:()=>y7,name:()=>Kre,settings:()=>Yre});var HD=a(L(),1);var tt=a(I(),1);var Fe=a(y(),1),I6e={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,width:s,height:l}=e,u=(0,Fe.jsx)("img",{src:t,alt:r,...s||l?{width:s,height:l}:{}}),d={};return s?d={width:s}:(n==="left"||n==="right")&&(d={maxWidth:"50%"}),(0,Fe.jsxs)("figure",{className:n?`align${n}`:null,style:d,children:[i?(0,Fe.jsx)("a",{href:i,children:u}):u,!tt.RichText.isEmpty(o)&&(0,Fe.jsx)(tt.RichText.Content,{tagName:"figcaption",value:o})]})}},N6e={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,width:s,height:l,id:c}=e,u=(0,Fe.jsx)("img",{src:t,alt:r,className:c?`wp-image-${c}`:null,width:s,height:l});return(0,Fe.jsxs)("figure",{className:n?`align${n}`:null,children:[i?(0,Fe.jsx)("a",{href:i,children:u}):u,!tt.RichText.isEmpty(o)&&(0,Fe.jsx)(tt.RichText.Content,{tagName:"figcaption",value:o})]})}},M6e={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"}},save({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,width:s,height:l,id:c}=e,u=T({[`align${n}`]:n,"is-resized":s||l}),d=(0,Fe.jsx)("img",{src:t,alt:r,className:c?`wp-image-${c}`:null,width:s,height:l});return(0,Fe.jsxs)("figure",{className:u,children:[i?(0,Fe.jsx)("a",{href:i,children:d}):d,!tt.RichText.isEmpty(o)&&(0,Fe.jsx)(tt.RichText.Content,{tagName:"figcaption",value:o})]})}},L6e={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0},save({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,rel:s,linkClass:l,width:c,height:u,id:d,linkTarget:p,sizeSlug:m,title:f}=e,g=s||void 0,h=T({[`align${n}`]:n,[`size-${m}`]:m,"is-resized":c||u}),b=(0,Fe.jsx)("img",{src:t,alt:r,className:d?`wp-image-${d}`:null,width:c,height:u,title:f}),_=(0,Fe.jsxs)(Fe.Fragment,{children:[i?(0,Fe.jsx)("a",{className:l,href:i,target:p,rel:g,children:b}):b,!tt.RichText.isEmpty(o)&&(0,Fe.jsx)(tt.RichText.Content,{tagName:"figcaption",value:o})]});return n==="left"||n==="right"||n==="center"?(0,Fe.jsx)("div",{...tt.useBlockProps.save(),children:(0,Fe.jsx)("figure",{className:h,children:_})}):(0,Fe.jsx)("figure",{...tt.useBlockProps.save({className:h}),children:_})}},R6e={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{__experimentalDuotone:"img",text:!1,background:!1},__experimentalBorder:{radius:!0,__experimentalDefaultControls:{radius:!0}},__experimentalStyle:{spacing:{margin:"0 0 1em 0"}}},save({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,rel:s,linkClass:l,width:c,height:u,id:d,linkTarget:p,sizeSlug:m,title:f}=e,g=s||void 0,h=T({[`align${n}`]:n,[`size-${m}`]:m,"is-resized":c||u}),b=(0,Fe.jsx)("img",{src:t,alt:r,className:d?`wp-image-${d}`:null,width:c,height:u,title:f}),_=(0,Fe.jsxs)(Fe.Fragment,{children:[i?(0,Fe.jsx)("a",{className:l,href:i,target:p,rel:g,children:b}):b,!tt.RichText.isEmpty(o)&&(0,Fe.jsx)(tt.RichText.Content,{tagName:"figcaption",value:o})]});return(0,Fe.jsx)("figure",{...tt.useBlockProps.save({className:h}),children:_})}},D6e={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate(e){let{height:t,width:r}=e;return{...e,width:typeof r=="number"?`${r}px`:r,height:typeof t=="number"?`${t}px`:t}},save({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,rel:s,linkClass:l,width:c,height:u,aspectRatio:d,scale:p,id:m,linkTarget:f,sizeSlug:g,title:h}=e,b=s||void 0,_=(0,tt.__experimentalGetBorderClassesAndStyles)(e),v=T({[`align${n}`]:n,[`size-${g}`]:g,"is-resized":c||u,"has-custom-border":!!_.className||_.style&&Object.keys(_.style).length>0}),w=T(_.className,{[`wp-image-${m}`]:!!m}),x=(0,Fe.jsx)("img",{src:t,alt:r,className:w||void 0,style:{..._.style,aspectRatio:d,objectFit:p},width:c,height:u,title:h}),k=(0,Fe.jsxs)(Fe.Fragment,{children:[i?(0,Fe.jsx)("a",{className:l,href:i,target:f,rel:b,children:x}):x,!tt.RichText.isEmpty(o)&&(0,Fe.jsx)(tt.RichText.Content,{className:(0,tt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Fe.jsx)("figure",{...tt.useBlockProps.save({className:v}),children:k})}},A6e={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:n,href:i,rel:s,linkClass:l,width:c,height:u,aspectRatio:d,scale:p,id:m,linkTarget:f,sizeSlug:g,title:h}=e,b=s||void 0,_=(0,tt.__experimentalGetBorderClassesAndStyles)(e),v=T({[`align${n}`]:n,[`size-${g}`]:g,"is-resized":c||u,"has-custom-border":!!_.className||_.style&&Object.keys(_.style).length>0}),w=T(_.className,{[`wp-image-${m}`]:!!m}),x=(0,Fe.jsx)("img",{src:t,alt:r,className:w||void 0,style:{..._.style,aspectRatio:d,objectFit:p,width:c,height:u},width:c,height:u,title:h}),k=(0,Fe.jsxs)(Fe.Fragment,{children:[i?(0,Fe.jsx)("a",{className:l,href:i,target:f,rel:b,children:x}):x,!tt.RichText.isEmpty(o)&&(0,Fe.jsx)(tt.RichText.Content,{className:(0,tt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Fe.jsx)("figure",{...tt.useBlockProps.save({className:v}),children:k})}},O6e={attributes:{align:{type:"string"},behaviors:{type:"object"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate({width:e,height:t,...r}){if(!r.behaviors?.lightbox)return r;let{behaviors:{lightbox:{enabled:o}}}=r,n={...r,lightbox:{enabled:o}};return delete n.behaviors,n},isEligible(e){return!!e.behaviors},save({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,rel:s,linkClass:l,width:c,height:u,aspectRatio:d,scale:p,id:m,linkTarget:f,sizeSlug:g,title:h}=e,b=s||void 0,_=(0,tt.__experimentalGetBorderClassesAndStyles)(e),v=T({[`align${n}`]:n,[`size-${g}`]:g,"is-resized":c||u,"has-custom-border":!!_.className||_.style&&Object.keys(_.style).length>0}),w=T(_.className,{[`wp-image-${m}`]:!!m}),x=(0,Fe.jsx)("img",{src:t,alt:r,className:w||void 0,style:{..._.style,aspectRatio:d,objectFit:p,width:c,height:u},title:h}),k=(0,Fe.jsxs)(Fe.Fragment,{children:[i?(0,Fe.jsx)("a",{className:l,href:i,target:f,rel:b,children:x}):x,!tt.RichText.isEmpty(o)&&(0,Fe.jsx)(tt.RichText.Content,{className:(0,tt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Fe.jsx)("figure",{...tt.useBlockProps.save({className:v}),children:k})}},F6e={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:n,href:i,rel:s,linkClass:l,width:c,height:u,aspectRatio:d,scale:p,focalPoint:m,id:f,linkTarget:g,sizeSlug:h,title:b,metadata:{bindings:_={}}={}}=e,v=s||void 0,w=(0,tt.__experimentalGetBorderClassesAndStyles)(e),x=(0,tt.__experimentalGetShadowClassesAndStyles)(e),k=T({alignnone:n==="none",[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!w.className||w.style&&Object.keys(w.style).length>0}),C=T(w.className,{[`wp-image-${f}`]:!!f}),S=(0,Fe.jsx)("img",{src:t,alt:r,className:C||void 0,style:{...w.style,...x.style,aspectRatio:d,objectFit:p,objectPosition:m&&p?vf(m):void 0,width:c,height:u},title:b}),P=!tt.RichText.isEmpty(o)||_.caption||_?.__default?.source==="core/pattern-overrides",B=(0,Fe.jsxs)(Fe.Fragment,{children:[i?(0,Fe.jsx)("a",{className:l,href:i,target:g,rel:v,children:S}):S,P&&(0,Fe.jsx)(tt.RichText.Content,{className:(0,tt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Fe.jsx)("figure",{...tt.useBlockProps.save({className:k}),children:B})}},_re=[F6e,O6e,A6e,D6e,R6e,L6e,M6e,N6e,I6e];var E1=a(Ur(),1),L2=a(te(),1),Ore=a(F(),1),Ef=a(H(),1),Ta=a(I(),1),hp=a(W(),1),Ic=a(L(),1);var Fre=a(br(),1),Vre=a(_e(),1),b7=a(qt(),1),zre=a(kre(),1);var Ue=a(F(),1),T1=a(_e(),1),Bc=a(H(),1),zt=a(I(),1),kr=a(W(),1),Re=a(L(),1),FD=a(qt(),1),S1=a(te(),1);var Ire=a(br(),1),h7=a(ae(),1);var m7=a(ae(),1),f7=a(I(),1),Tre=a(ma(),1),g7=a(H(),1),Zi=a(W(),1);function wre(e){return typeof e!="string"||!(0,Tre.__unstableStripHTML)(e).trim()?"":e.replace(/\n/g,"<br>")}function V6e(e){let t=e?.caption;if(typeof t=="string")return wre(t);if(t&&typeof t=="object"&&Object.hasOwn(t,"raw"))return wre(t.raw)}function OD(e){return{alt:typeof e?.alt_text=="string"?e.alt_text:e?.alt||"",caption:V6e(e)}}function Cre(e){return e||""}function z6e(e,t,r){if(!t||!r)return{};let o=OD(t),n=OD(r),i={},s=Cre(e.alt);o.alt!==n.alt&&(s===o.alt||!s)&&(i.alt=n.alt);let l=Cre(e.caption);return o.caption!==void 0&&n.caption!==void 0&&o.caption!==n.caption&&(l===o.caption||!l)&&(i.caption=n.caption||void 0),i}function H6e(e,t){let r=t.media_details?.sizes;if(!e||e===ap||!r)return;let o=r[e]?.source_url;if(o)return{url:o};let n=t.source_url??r.full?.source_url;return n?{url:n,sizeSlug:ap}:void 0}function j6e(e,t){if(e===rp)return t.source_url?{href:t.source_url}:void 0;if(e===op)return t.link?{href:t.link}:void 0}function U6e(e,t){if(t)return{...H6e(e.sizeSlug,t),...j6e(e.linkDestination,t)}}var{openMediaEditorModalKey:W6e}=le(f7.privateApis);function G6e({alt:e,caption:t}){let r={};return e||(r.alt_text=""),t?.toString()||(r.caption=""),Object.keys(r).length?r:void 0}function Sre(e){if(!e)return!1;let t=typeof e.alt_text=="string"||typeof e.alt=="string",r=OD(e).caption!==void 0;return t&&r}function Ere({attributes:e,setAttributes:t,onClose:r,onUrlChange:o}){let{id:n,url:i,alt:s,caption:l,sizeSlug:c,linkDestination:u}=e,d=(0,g7.useRegistry)(),p=(0,g7.useSelect)(k=>k(f7.store).getSettings()[W6e],[]),m=(0,Zi.useRef)({id:n,url:i,alt:s,caption:l?.toString(),sizeSlug:c,linkDestination:u}),f=(0,Zi.useRef)(),g=(0,Zi.useRef)(0),h=(0,Zi.useRef)();(0,Zi.useEffect)(()=>{m.current={id:n,url:i,alt:s,caption:l?.toString(),sizeSlug:c,linkDestination:u}},[s,l,n,u,c,i]);let b=(0,Zi.useCallback)(k=>d.select(m7.store).getEditedEntityRecord("postType","attachment",k),[d]),_=(0,Zi.useCallback)(async k=>{let C=d.resolveSelect(m7.store);try{return await C.getEntityRecord("postType","attachment",k)}catch{return}},[d]),v=(0,Zi.useCallback)(async k=>{let{invalidateResolution:C}=d.dispatch(m7.store);return C("getEntityRecord",["postType","attachment",k]),_(k)},[d,_]),w=(0,Zi.useCallback)(async({id:k,url:C})=>{if(typeof k!="number")return;let S=f.current;f.current=void 0;let P=h.current;h.current=void 0;let B=++g.current,N={},E=m.current,M=k!==E.id;if(M&&(N.id=k,N.url=C??E.url,N.url!==E.url&&o?.(N.url),m.current={...m.current,id:N.id,url:N.url}),S||M){let R=await v(k);if(B!==g.current)return;let O=R??b(k),j=m.current;if(S){let V=z6e(j,S,O);Object.keys(V).length&&(Object.assign(N,V),M&&(h.current={id:E.id,attributes:Object.fromEntries(Object.keys(V).map(G=>[G,j[G]]))}))}if(M){let V=U6e(j,O);V&&(Object.assign(N,V),V.url&&V.url!==j.url&&o?.(V.url))}}P?.id===k&&Object.assign(N,P.attributes),Object.keys(N).length&&(m.current={...m.current,...N},t(N))},[b,o,v,t]),x=(0,Zi.useCallback)(async()=>{if(!n||!p)return;h.current=void 0;let k=b(n),C=G6e(m.current),S=Sre(k)?void 0:await _(n);f.current=S||(Sre(k)?k:C)||k,p({id:n,onUpdate:w,onClose:r})},[b,w,n,r,p,_]);return n&&p?x:void 0}var ue=a(y(),1),{DimensionsTool:Pre,ResolutionTool:$6e,mediaEditKey:q6e,mediaSideloadFromUrlKey:Bre}=le(zt.privateApis),Z6e=[{value:"cover",label:(0,Re._x)("Cover","Scale option for dimensions control"),help:(0,Re.__)("Image covers the space evenly.")},{value:"contain",label:(0,Re._x)("Contain","Scale option for dimensions control"),help:(0,Re.__)("Image is contained without distortion.")}],K6e={placement:"bottom-start"},Y6e=({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 Q6e({attributes:e,setAttributes:t,lockAltControls:r,lockAltControlsMessage:o,lockTitleControls:n,lockTitleControlsMessage:i}){let[s,l]=(0,kr.useState)(null),[c,u]=(0,kr.useState)(!1),[d,p]=(0,kr.useState)(!1);return(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(Ue.ToolbarItem,{ref:l,children:m=>(0,ue.jsx)(Ue.DropdownMenu,{icon:jb,label:(0,Re.__)("More"),toggleProps:{...m,description:(0,Re.__)("Displays more controls.")},popoverProps:K6e,children:({onClose:f})=>(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(Ue.MenuItem,{onClick:()=>{u(!0),f()},"aria-haspopup":"dialog",children:(0,Re._x)("Alternative text","Alternative text for an image. Block toolbar label, a low character count is preferred.")}),(0,ue.jsx)(Ue.MenuItem,{onClick:()=>{p(!0),f()},"aria-haspopup":"dialog",children:(0,Re.__)("Title text")})]})})}),c&&(0,ue.jsx)(Ue.Popover,{placement:"bottom-start",anchor:s,onClose:()=>u(!1),offset:13,variant:"toolbar",children:(0,ue.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,ue.jsx)(Ue.TextareaControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,Re.__)("Alternative text"),value:e.alt||"",onChange:m=>t({alt:m}),disabled:r,help:r?(0,ue.jsx)(ue.Fragment,{children:o}):(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(Ue.ExternalLink,{href:(0,Re.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Re.__)("Describe the purpose of the image.")}),(0,ue.jsx)("br",{}),(0,Re.__)("Leave empty if decorative.")]})})})}),d&&(0,ue.jsx)(Ue.Popover,{placement:"bottom-start",anchor:s,onClose:()=>p(!1),offset:13,variant:"toolbar",children:(0,ue.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,ue.jsx)(Ue.TextControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,Re.__)("Title attribute"),value:e.title||"",onChange:m=>t({title:m}),disabled:n,help:n?(0,ue.jsx)(ue.Fragment,{children:i}):(0,kr.createInterpolateElement)((0,Re.__)("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)(Ue.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"})})})})})]})}function Nre({temporaryURL:e,isSideloading:t,attributes:r,setAttributes:o,isSingleSelected:n,insertBlocksAfter:i,onReplace:s,onSelectImage:l,onSelectURL:c,onUploadError:u,context:d,clientId:p,blockEditingMode:m,parentLayoutType:f,maxContentWidth:g}){let{url:h="",alt:b,align:_,id:v,href:w,rel:x,linkClass:k,linkDestination:C,title:S,width:P,height:B,aspectRatio:N,scale:E,focalPoint:M,linkTarget:R,sizeSlug:O,lightbox:j,metadata:V,isDecorative:G}=r,[$,z]=(0,kr.useState)(),[K,q]=(0,kr.useState)(null),[Y,oe]=(0,kr.useState)({}),[Z,U]=(0,kr.useState)(0),X=(0,T1.useResizeObserver)(([ke])=>{if(!K){let[Vt]=ke.borderBoxSize;oe({width:Vt.inlineSize,height:Vt.blockSize})}U(ke.target.offsetTop)}),Q=(0,kr.useCallback)(()=>{U($?.offsetTop??0)},[$]),ie=(0,T1.useMergeRefs)([z,X]),{allowResize:me=!0,imageCrop:xe=!1}=d,Be=xe&&f==="flex",{image:se,attachmentResolutionError:he}=(0,Bc.useSelect)(ke=>{let Vt=v&&n?ke(h7.store).getEntityRecord("postType","attachment",v,{context:"view"}):null,Wa=v&&n?ke(h7.store).getResolutionError("getEntityRecord",["postType","attachment",v,{context:"view"}]):null;return{image:Vt,attachmentResolutionError:Wa}},[v,n]),{canInsertCover:ze,imageEditing:qe,imageSizes:ce,maxWidth:ge,editMediaEntity:Qe}=(0,Bc.useSelect)(ke=>{let{getBlockRootClientId:Vt,canInsertBlockType:Wa,getSettings:Ga}=ke(zt.store),Cb=Vt(p),gd=Ga();return{imageEditing:gd.imageEditing,imageSizes:gd.imageSizes,maxWidth:gd.maxWidth,editMediaEntity:gd?.[q6e],canInsertCover:Wa("core/cover",Cb)}},[p]),{getBlock:ye,getSettings:fe}=(0,Bc.useSelect)(zt.store),de=(0,kr.useRef)(),[re,Pe]=(0,kr.useState)(),Se=!!re,rr=(0,kr.useCallback)(()=>de.current?.focus(),[]),Ft=Ere({attributes:r,setAttributes:o,onClose:rr,onUrlChange:Pe}),{replaceBlocks:gr,toggleSelection:Wo,__unstableMarkNextChangeAsNotPersistent:Nn}=(0,Bc.useDispatch)(zt.store),{createErrorNotice:So,createSuccessNotice:sa}=(0,Bc.useDispatch)(Ire.store),{editEntityRecord:la}=(0,Bc.useDispatch)(h7.store),Mn=(0,T1.useViewportMatch)("medium"),ca=["wide","full"].includes(_),[{loadedNaturalWidth:md,loadedNaturalHeight:pu},za]=(0,kr.useState)({}),[Ha,il]=(0,kr.useState)(!1),ja=m==="default",sl=m==="contentOnly",bs=me&&ja,fd=me&&ja&&!ca&&Mn,ua=!!e||t,Ln=ce.filter(({slug:ke})=>se?.media_details?.sizes?.[ke]?.source_url).map(({name:ke,slug:Vt})=>({value:Vt,label:ke}));(0,kr.useEffect)(()=>{!v||!n||he?.status===404&&(Nn(),o({id:void 0}))},[v,n,he,o,Nn]);let wi=n&&VD(v,h)&&!!fe()[Bre],{naturalWidth:Rn,naturalHeight:ne}=(0,kr.useMemo)(()=>({naturalWidth:$?.naturalWidth||md||void 0,naturalHeight:$?.naturalHeight||pu||void 0}),[md,pu,$?.complete]);(0,kr.useEffect)(()=>{re&&re===h&&$?.complete&&Pe(void 0)},[re,h,$]);function He(){Pe(void 0),il(!0);let ke=Od({attributes:{url:h}});ke!==void 0&&s&&s(ke)}function bt(ke){Pe(void 0),il(!1),za({loadedNaturalWidth:ke.target?.naturalWidth,loadedNaturalHeight:ke.target?.naturalHeight})}function pe(ke){o(ke)}function ve(ke){ke&&!Si?.enabled?o({lightbox:{enabled:!0},isDecorative:!1}):!ke&&Si?.enabled?o({lightbox:{enabled:!1}}):o({lightbox:void 0})}function Ye(){Si?.enabled&&Si?.allowEditing?o({lightbox:{enabled:!1}}):o({lightbox:void 0})}function dt(ke){o({title:ke})}function $t(ke){o({alt:ke})}function nt(ke){o({isDecorative:ke||void 0,...ke&&{alt:"",caption:void 0,href:void 0,linkDestination:void 0,linkTarget:void 0,rel:void 0}})}let Ir=ke=>{$&&$.style.setProperty("object-position",vf(ke))};function Ua(ke){let Vt=se?.media_details?.sizes?.[ke]?.source_url;if(!Vt)return null;o({url:Vt,sizeSlug:ke})}function Ci(){let ke=fe()[Bre];ke&&ke({url:h,onSuccess(Vt){l(Vt),sa((0,Re.__)("Image uploaded."),{type:"snackbar"})},onError(Vt){So(Vt,{type:"snackbar"})}})}let rm=n&&(v&&Rn&&ne&&qe&&!!Qe)&&!!Ft&&!sl&&!ua;function BE(){gr(p,(0,S1.switchToBlockType)(ye(p),"core/cover"))}let IE=(0,Ue.__experimentalUseCustomUnits)({availableUnits:["px"]}),[Si]=(0,zt.useSettings)("lightbox"),Bk=!!j&&j?.enabled!==Si?.enabled||Si?.allowEditing,Ik=!!j?.enabled||!j&&!!Si?.enabled,Nk=ee(),{selectedStyleState:rc,hasSelectedStyleState:ys}=(0,Bc.useSelect)(ke=>{if(!n)return{selectedStyleState:void 0,hasSelectedStyleState:!1};let{getSelectedBlockStyleState:Vt,hasSelectedBlockStyleState:Wa}=ke(zt.store);return{selectedStyleState:Vt(p),hasSelectedStyleState:Wa(p)}},[p,n]),om=Zh(rc),Lg=Oi({attributes:r,selectedState:rc,hasSelectedStyleState:ys,attributeKey:"width"}),NE=Oi({attributes:r,selectedState:rc,hasSelectedStyleState:ys,attributeKey:"height"}),pr=Oi({attributes:r,selectedState:rc,hasSelectedStyleState:ys,attributeKey:"aspectRatio"}),cl=Oi({attributes:r,selectedState:rc,hasSelectedStyleState:ys,attributeKey:"scale",styleKey:"objectFit"}),oc=ke=>{o(Kh({style:r.style,selectedState:rc,hasSelectedStyleState:ys,nextDimensions:ke,dimensionKeyMap:{scale:"objectFit"}}))},nm=bs&&(iD.includes(f)?(0,ue.jsx)(Pre,{panelId:p,value:{aspectRatio:pr,scale:cl},onChange:({aspectRatio:ke})=>{oc({aspectRatio:ke,scale:"cover"})},defaultAspectRatio:"auto",tools:["aspectRatio"]},om):(0,ue.jsx)(Pre,{panelId:p,value:{width:Lg,height:NE,scale:cl,aspectRatio:pr},onChange:({width:ke,height:Vt,scale:Wa,aspectRatio:Ga})=>{oc({width:!ke&&Vt?"auto":ke,height:Vt,aspectRatio:Ga,scale:Wa})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:Z6e,unitsOptions:IE,tools:ca?["aspectRatio","scale"]:["aspectRatio","widthHeight","scale"]},om)),xH=()=>{o({lightbox:void 0}),Ua(ap)},Rg=V?.bindings?.__default?.source==="core/pattern-overrides",{lockUrlControls:ME=!1,lockHrefControls:f_e=!1,lockAltControls:Mk=!1,lockAltControlsMessage:kH,lockTitleControls:LE=!1,lockTitleControlsMessage:wH,hideCaptionControls:g_e=!1}=(0,Bc.useSelect)(ke=>{if(!n)return{};let{url:Vt,alt:Wa,title:Ga,caption:Cb}=V?.bindings||{},gd=!!d["pattern/overrides"],RE=(0,S1.getBlockBindingsSource)(Vt?.source),Dg=(0,S1.getBlockBindingsSource)(Wa?.source),hd=(0,S1.getBlockBindingsSource)(Ga?.source);return{lockUrlControls:!!Vt&&!RE?.canUserEditValue?.({select:ke,context:d,args:Vt?.args}),lockHrefControls:gd||Rg,hideCaptionControls:!!Cb,lockAltControls:!!Wa&&!Dg?.canUserEditValue?.({select:ke,context:d,args:Wa?.args}),lockAltControlsMessage:Dg?.label?(0,Re.sprintf)((0,Re.__)("Connected to %s"),Dg.label):(0,Re.__)("Connected to dynamic data"),lockTitleControls:!!Ga&&!hd?.canUserEditValue?.({select:ke,context:d,args:Ga?.args}),lockTitleControlsMessage:hd?.label?(0,Re.sprintf)((0,Re.__)("Connected to %s"),hd.label):(0,Re.__)("Connected to dynamic data")}},[Rg,d,n,V?.bindings]),CH=n&&!f_e&&!ME&&!G,SH=n&&ze&&!sl,h_e=CH||rm||SH,TH=n&&!ME&&(0,ue.jsx)(ue.Fragment,{children:(0,ue.jsx)(zt.BlockControls,{group:sl?"inline":"other",children:(0,ue.jsx)(zt.MediaReplaceFlow,{mediaId:v,mediaURL:h,allowedTypes:np,onSelect:l,onSelectURL:c,onError:u,name:h?(0,Re.__)("Replace"):(0,Re.__)("Add image"),onReset:()=>l(void 0),variant:"toolbar"})})}),EH=(0,ue.jsxs)(ue.Fragment,{children:[h_e&&(0,ue.jsxs)(zt.BlockControls,{group:"block",children:[CH&&(0,ue.jsx)(zt.__experimentalImageURLInputUI,{url:w||"",onChangeUrl:pe,linkDestination:C,mediaUrl:se&&se.source_url||h,mediaLink:se&&se.link,linkTarget:R,linkClass:k,rel:x,showLightboxSetting:Bk,lightboxEnabled:Ik,onSetLightbox:ve,resetLightbox:Ye}),rm&&(0,ue.jsx)(Ue.ToolbarButton,{ref:de,onClick:Ft,"aria-haspopup":"dialog",icon:pm,label:(0,Re.__)("Edit image"),disabled:Se}),SH&&(0,ue.jsx)(Ue.ToolbarButton,{icon:XB,label:(0,Re.__)("Add text over image"),onClick:BE})]}),wi&&(0,ue.jsx)(zt.BlockControls,{children:(0,ue.jsx)(Ue.ToolbarGroup,{children:(0,ue.jsx)(Ue.ToolbarButton,{onClick:Ci,icon:vu,label:(0,Re.__)("Upload to Media Library")})})}),sl&&(0,ue.jsx)(zt.BlockControls,{group:"block",children:(0,ue.jsx)(Q6e,{attributes:r,setAttributes:o,lockAltControls:Mk,lockAltControlsMessage:kH,lockTitleControls:LE,lockTitleControlsMessage:wH})}),n&&(0,ue.jsx)(zt.InspectorControls,{group:"content",children:(0,ue.jsxs)(Ue.__experimentalToolsPanel,{label:(0,Re.__)("Media"),resetAll:()=>{l(void 0),o({isDecorative:!1})},dropdownMenuProps:Nk,children:[!ME&&(0,ue.jsx)(Ue.__experimentalToolsPanelItem,{label:(0,Re.__)("Image"),hasValue:()=>!!h,onDeselect:()=>l(void 0),isShownByDefault:!0,children:(0,ue.jsx)(Zd,{mediaId:v,mediaUrl:h,alt:b,filename:se?.media_details?.sizes?.full?.file||se?.slug||(0,FD.getFilename)(h),allowedTypes:np,onSelect:l,onSelectURL:c,onError:u,onReset:()=>l(void 0),isUploading:ua,emptyLabel:(0,Re.__)("Add image")})}),!G&&(0,ue.jsx)(Ue.__experimentalToolsPanelItem,{label:(0,Re.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!b,onDeselect:()=>o({alt:void 0}),children:(0,ue.jsx)(Ue.TextareaControl,{label:(0,Re.__)("Alternative text"),value:b||"",onChange:$t,readOnly:Mk,help:Mk?(0,ue.jsx)(ue.Fragment,{children:kH}):(0,ue.jsx)(Ue.ExternalLink,{href:(0,Re.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Re.__)("Describe the purpose of the image.")})})}),!Mk&&!Ik&&(0,ue.jsx)(Ue.__experimentalToolsPanelItem,{label:(0,Re.__)("Mark as decorative"),isShownByDefault:!0,hasValue:()=>!!G,onDeselect:()=>o({isDecorative:!1}),children:(0,ue.jsx)(Ue.CheckboxControl,{label:(0,Re.__)("Mark as decorative"),checked:!!G,onChange:nt,help:(0,Re.__)("Hidden from assistive technologies.")})})]})}),(0,ue.jsxs)(zt.InspectorControls,{group:"dimensions",resetAllFilter:ke=>Yh({attributes:ke,selectedState:rc,hasSelectedStyleState:ys,keys:["aspectRatio","height","objectFit","width"],defaultAttributes:{aspectRatio:void 0,width:void 0,height:void 0,scale:void 0,focalPoint:void 0}}),children:[nm,!ys&&h&&E&&(0,ue.jsx)(Ue.__experimentalToolsPanelItem,{label:(0,Re.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!M,onDeselect:()=>o({focalPoint:void 0}),panelId:p,children:(0,ue.jsx)(Ue.FocalPointPicker,{label:(0,Re.__)("Focal point"),url:h,value:M,onDragStart:Ir,onDrag:Ir,onChange:ke=>o({focalPoint:ke})})})]}),!!Ln.length&&(0,ue.jsx)(zt.InspectorControls,{children:(0,ue.jsx)(Ue.__experimentalToolsPanel,{label:(0,Re.__)("Settings"),resetAll:xH,dropdownMenuProps:Nk,children:(0,ue.jsx)($6e,{value:O,defaultValue:ap,onChange:Ua,options:Ln})})}),(0,ue.jsx)(zt.InspectorControls,{group:"advanced",children:(0,ue.jsx)(Ue.TextControl,{label:(0,Re.__)("Title attribute"),value:S||"",onChange:dt,readOnly:LE,help:LE?(0,ue.jsx)(ue.Fragment,{children:wH}):(0,kr.createInterpolateElement)((0,Re.__)("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)(Ue.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"})})})})]}),Lk=(0,FD.getFilename)(h),wb;G?wb=Lk?(0,Re.sprintf)((0,Re.__)("This image has been marked as decorative; its file name is %s"),Lk):(0,Re.__)("This image has been marked as decorative."):b?wb=b:Lk?wb=(0,Re.sprintf)((0,Re.__)("This image has an empty alt attribute; its file name is %s"),Lk):wb=(0,Re.__)("This image has an empty alt attribute");let PH=(0,zt.__experimentalUseBorderProps)(r),b_e=(0,zt.__experimentalGetShadowClassesAndStyles)(r),{postType:y_e,postId:BH,queryId:v_e}=d,__e=Number.isFinite(v_e),x_e=(0,ue.jsx)(Y6e,{href:w,children:e&&Ha?(0,ue.jsx)(Ue.Placeholder,{className:"wp-block-image__placeholder",withIllustration:!0,children:(0,ue.jsx)(Ue.Spinner,{})}):(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)("img",{src:e||h,alt:wb,onError:He,onLoad:bt,ref:ie,className:T(PH.className,{"is-swapping-media":Se}),width:Rn,height:ne,style:{aspectRatio:N,...K?{width:Y.width+K.width,height:Y.height+K.height}:(()=>{let ke={};return P==="auto"?ke.width="auto":P!=null&&(ke.width=typeof P=="number"?`${P}px`:P),B==="auto"?ke.height="auto":B!=null?ke.height=typeof B=="number"?`${B}px`:B:Be||(ke.height="auto"),ke})(),objectFit:E,objectPosition:M&&E?vf(M):void 0,...PH.style,...b_e.style}}),(ua||Se)&&(0,ue.jsx)(Ue.Spinner,{})]})}),IH;if(fd&&n&&!ua&&!iD.includes(f)){let ke=N&&KJ(N),Vt=Y.width/Y.height,Wa=Rn/ne,Ga=ke||Vt||Wa||1,Cb=Rn<ne?Tc:Tc*Ga,gd=ne<Rn?Tc:Tc/Ga,RE=ge*2.5,Dg=g||RE,hd=!1,Rk=!1;_==="center"?(hd=!0,Rk=!0):(0,Re.isRTL)()?_==="left"?hd=!0:Rk=!0:_==="right"?Rk=!0:hd=!0,IH=(0,ue.jsx)(Ue.ResizableBox,{ref:Q,style:{position:"absolute",inset:`${Z}px 0 0 0`},size:Y,minWidth:Cb,maxWidth:Dg,minHeight:gd,maxHeight:Dg/Ga,lockAspectRatio:Ga,enable:{top:!1,right:hd,bottom:!0,left:Rk},onResizeStart:()=>{Wo(!1)},onResize:(w_e,C_e,DE,Dk)=>{q(Dk)},onResizeStop:(w_e,C_e,DE,Dk)=>{if(Wo(!0),q(null),oe(NH=>({width:NH.width+Dk.width,height:NH.height+Dk.height})),g&&Rn>=g&&Math.abs(DE.offsetWidth-g)<10){o({width:void 0,height:void 0});return}o({width:`${DE.offsetWidth}px`,height:"auto",aspectRatio:Ga===Wa?void 0:String(Ga)})},resizeRatio:_==="center"?2:1})}if(!h&&!e)return(0,ue.jsxs)(ue.Fragment,{children:[TH,EH]});let k_e=()=>{la("postType",y_e,BH,{featured_media:v}),sa((0,Re.__)("Post featured image updated."),{type:"snackbar"})};return(0,ue.jsxs)(ue.Fragment,{children:[TH,EH,!__e&&BH&&v?(0,ue.jsx)(zt.BlockSettingsMenuControls,{children:({canEdit:ke,selectedClientIds:Vt})=>ke&&Vt.length===1&&p===Vt[0]&&(0,ue.jsx)(Ue.MenuItem,{onClick:k_e,children:(0,Re.__)("Set as featured image")})}):null,x_e,IH,!G&&(0,ue.jsx)(Zo,{attributes:r,setAttributes:o,isSelected:n,insertBlocksAfter:i,label:(0,Re.__)("Image caption text"),showToolbarButton:n&&(ja||sl)&&!g_e})]})}var Mre=a(W(),1),Lre=a(_e(),1),Rre=a(y(),1);function Dre(){let[e,{width:t}]=(0,Lre.useResizeObserver)(),r=(0,Mre.useRef)();return[(0,Rre.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 Al=a(y(),1),X6e=(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},VD=(e,t)=>t&&!e&&!(0,E1.isBlobURL)(t);function Are(e,t){return"url"in(e?.sizes?.[t]??{})||"source_url"in(e?.media_details?.sizes?.[t]??{})}function J6e({attributes:e,setAttributes:t,isSelected:r,className:o,insertBlocksAfter:n,onReplace:i,context:s,clientId:l,__unstableParentLayout:c}){let{url:u="",caption:d,id:p,width:m,height:f,sizeSlug:g,aspectRatio:h,scale:b,align:_,metadata:v}=e,[w,x]=(0,hp.useState)(e.blob),k=(0,hp.useRef)(),C=c?.type||c?.default?.type,S=!C||C!=="flex"&&C!=="grid",[P,B]=Dre(),[N,{width:E}]=(0,Vre.useResizeObserver)(),M=E&&E<160,R=(0,hp.useRef)();(0,hp.useEffect)(()=>{R.current=d},[d]);let{__unstableMarkNextChangeAsNotPersistent:O,replaceBlock:j}=(0,Ef.useDispatch)(Ta.store);(0,hp.useEffect)(()=>{["wide","full"].includes(_)&&(O(),t({width:void 0,height:void 0}))},[O,_,t]);let{getSettings:V,getBlockRootClientId:G,getBlockName:$,canInsertBlockType:z}=(0,Ef.useSelect)(Ta.store),K=(0,Ta.useBlockEditingMode)(),{createErrorNotice:q}=(0,Ef.useDispatch)(Fre.store);function Y(ye){q(ye,{type:"snackbar",explicitDismiss:!0}),x(),t({src:void 0,id:void 0,url:void 0,blob:void 0})}function oe(ye){ye.length===1&&x((0,E1.createBlobURL)(ye[0]))}function Z(ye){let fe=k.current?.ownerDocument.defaultView;if(ye.every(de=>de instanceof fe.File)){let de=ye,re=G(l);de.some(Se=>!sD(Se))&&q((0,Ic.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let Pe=de.filter(Se=>sD(Se)).map(Se=>(0,L2.createBlock)("core/image",{blob:(0,E1.createBlobURL)(Se)}));if($(re)==="core/gallery")j(l,Pe);else if(z("core/gallery",re)){let Se=(0,L2.createBlock)("core/gallery",{},Pe);j(l,Se)}}}function U(ye){if(Array.isArray(ye)){Z(ye);return}if(!ye||!ye.url){t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0,blob:void 0}),x();return}if((0,E1.isBlobURL)(ye.url)){x(ye.url);return}let{imageDefaultSize:fe}=V(),de=ap;g&&Are(ye,g)?de=g:Are(ye,fe)&&(de=fe);let re=X6e(ye,de);if(typeof re.caption=="string"&&re.caption.includes(`
73 `)&&(re.caption=re.caption.replace(/\n/g,"<br>")),R.current&&!re.caption){let{caption:Ft,...gr}=re;re=gr}let Pe;(!ye.id||ye.id!==p)&&(Pe={sizeSlug:de});let Se=e.linkDestination;if(!Se)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||yf){case"file":case rp:Se=rp;break;case"post":case op:Se=op;break;case aD:Se=aD;break;case yf:Se=yf;break}let rr;switch(Se){case rp:rr=ye.url;break;case op:rr=ye.link;break}re.href=rr,t({blob:void 0,...re,...Pe,linkDestination:Se}),x()}function X(ye){let fe=(0,b7.getProtocol)(ye)?ye:(0,b7.prependHTTPS)(ye);fe!==u&&(t({blob:void 0,url:fe,id:void 0,sizeSlug:V().imageDefaultSize}),x())}ic({url:w,allowedTypes:np,onChange:U,onError:Y});let ie=VD(p,u)?u:void 0,me=(0,Ef.useSelect)(ye=>!window.__clientSideMediaProcessing||!p?!1:ye(zre.store).isUploadingById(p),[p]),xe=!!u&&(0,Al.jsx)("img",{alt:(0,Ic.__)("Edit image"),title:(0,Ic.__)("Edit image"),className:"edit-image-preview",src:u}),Be=(0,Ta.__experimentalUseBorderProps)(e),se=(0,Ta.__experimentalGetShadowClassesAndStyles)(e),he=T(o,{"is-transient":!!w||me,"is-resized":!!m||!!f,[`size-${g}`]:g,"has-custom-border":!!Be.className||Be.style&&Object.keys(Be.style).length>0}),ze=(0,Ta.useBlockProps)({ref:k,className:he}),{lockUrlControls:qe=!1,lockUrlControlsMessage:ce}=(0,Ef.useSelect)(ye=>{if(!r)return{};let fe=(0,L2.getBlockBindingsSource)(v?.bindings?.url?.source);return{lockUrlControls:!!v?.bindings?.url&&!fe?.canUserEditValue?.({select:ye,context:s,args:v?.bindings?.url?.args}),lockUrlControlsMessage:fe?.label?(0,Ic.sprintf)((0,Ic.__)("Connected to %s"),fe.label):(0,Ic.__)("Connected to dynamic data")}},[s,r,v?.bindings?.url]),ge=f==="auto"?void 0:f;return(0,Al.jsxs)(Al.Fragment,{children:[(0,Al.jsxs)("figure",{...ze,children:[(0,Al.jsx)(Nre,{temporaryURL:w,isSideloading:me,attributes:e,setAttributes:t,isSingleSelected:r,insertBlocksAfter:n,onReplace:i,onSelectImage:U,onSelectURL:X,onUploadError:Y,context:s,clientId:l,blockEditingMode:K,parentLayoutType:C,maxContentWidth:B}),(0,Al.jsx)(Ta.MediaPlaceholder,{icon:(0,Al.jsx)(Ta.BlockIcon,{icon:Sd}),onSelect:U,onSelectURL:X,onFilesPreUpload:oe,onError:Y,placeholder:ye=>(0,Al.jsxs)(Ore.Placeholder,{className:T("block-editor-media-placeholder",{[Be.className]:!!Be.className&&!r}),icon:!M&&(qe?sI:Sd),withIllustration:!r||M,label:!M&&(0,Ic.__)("Image"),instructions:!qe&&!M&&(0,Ic.__)("Drag and drop an image, upload, or choose from your library."),style:{aspectRatio:!(m&&ge)&&h?h:void 0,width:ge&&h?"100%":m,height:m&&h?"100%":ge,objectFit:b,...Be.style,...se.style},children:[qe&&!M&&ce,!qe&&!M&&ye,N]}),allowedTypes:np,handleUpload:ye=>ye.length===1,value:{id:p,src:ie},mediaPreview:xe,disableMediaButtons:w||u})]}),r&&S&&P]})}var Hre=J6e;var y7={$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 Ol=a(I(),1);var Au=a(y(),1);function jre({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,rel:s,linkClass:l,width:c,height:u,aspectRatio:d,scale:p,focalPoint:m,id:f,linkTarget:g,sizeSlug:h,title:b,isDecorative:_,metadata:{bindings:v={}}={}}=e,w=s||void 0,x=(0,Ol.__experimentalGetBorderClassesAndStyles)(e),k=(0,Ol.__experimentalGetShadowClassesAndStyles)(e),C=T({alignnone:n==="none",[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!x.className||x.style&&Object.keys(x.style).length>0}),S=T(x.className,{[`wp-image-${f}`]:!!f}),P=(0,Au.jsx)("img",{src:t,alt:r,className:S||void 0,style:(()=>{let E={...x.style,...k.style,aspectRatio:d,objectFit:p,objectPosition:m&&p?vf(m):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:b,role:_?"none":void 0}),B=!Ol.RichText.isEmpty(o)||v.caption||v?.__default?.source==="core/pattern-overrides",N=(0,Au.jsxs)(Au.Fragment,{children:[i?(0,Au.jsx)("a",{className:l,href:i,target:g,rel:w,children:P}):P,B&&(0,Au.jsx)(Ol.RichText.Content,{className:(0,Ol.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Au.jsx)("figure",{...Ol.useBlockProps.save({className:C}),children:N})}var v7=a(Ur(),1),P1=a(te(),1),$re=a(H(),1),qre=a(ae(),1);function tSe(e){let{align:t,anchor:r,className:o,style:n}=e,i=n?.spacing?.margin;return{...t&&{align:t},...r&&{anchor:r},...o&&{className:o},...i&&{style:{spacing:{margin:i}}}}}function Ure(e,t){if(!e||!t?.split(/[?#]/)[0]?.toLowerCase().endsWith(".gif"))return null;let o=(0,$re.select)(qre.store).getEntityRecord("postType","attachment",e,{context:"view"}),n=o?.media_details;if(!n?.animated_video||!o?.source_url)return null;let i=o.source_url.slice(0,o.source_url.lastIndexOf("/")+1);return{src:i+n.animated_video,poster:n.animated_video_poster?i+n.animated_video_poster:void 0,width:n.width,height:n.height}}function rSe(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 zD(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 Wre={img:{attributes:["src","alt","title","width","height"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}};function Gre(e){return e&&/^\d+$/.test(e)?`${e}px`:void 0}var oSe=({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...Wre,a:{attributes:["href","rel","target"],classes:["*"],children:Wre},figcaption:{children:e}}}}),nSe={from:[{type:"raw",isMatch:e=>e.nodeName==="FIGURE"&&!!e.querySelector("img"),schema:oSe,transform:e=>{let t=e.querySelector("img"),r=e.className+" "+t.className,o=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(r),n=e.id===""?void 0:e.id,i=o?o[1]:void 0,s=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(r),l=s?Number(s[1]):void 0,c=e.querySelector("a"),u=c&&c.href?"custom":void 0,d=c&&c.href?c.href:void 0,p=c&&c.rel?c.rel:void 0,m=c&&c.className?c.className:void 0,f=Gre(t.getAttribute("width")),g=Gre(t.getAttribute("height")),h=parseInt(f,10),b=parseInt(g,10),_=h&&b?String(h/b):void 0,v=f||(g?"auto":void 0),w=f?"auto":g,x=(0,P1.getBlockAttributes)("core/image",e.outerHTML,{align:i,id:l,linkDestination:u,href:d,rel:p,linkClass:m,anchor:n,width:v,height:w,aspectRatio:_});return(0,v7.isBlobURL)(x.url)&&(x.blob=x.url,delete x.url),(0,P1.createBlock)("core/image",x)}},{type:"files",isMatch(e){return e.every(t=>t.type.indexOf("image/")===0)},transform(e){return e.map(r=>(0,P1.createBlock)("core/image",{blob:(0,v7.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:rSe},href:{shortcode:(e,{shortcode:t})=>zD(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>zD(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>zD(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})=>!!Ure(e,t),transform(e){let{id:t,url:r,caption:o}=e,n=Ure(t,r);return(0,P1.createBlock)("core/video",{...tSe(e),id:t,src:n.src,poster:n.poster,caption:o,controls:!1,loop:!0,autoplay:!0,muted:!0,playsInline:!0,width:n.width,height:n.height})}}]},Zre=nSe;var{name:Kre}=y7,Yre={icon:Sd,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,HD.__)("Mont Blanc appears\u2014still, snowy, and serene.")}},__experimentalLabel(e,{context:t}){let r=e?.metadata?.name;if((t==="list-view"||t==="breadcrumb")&&r)return r;if(t==="accessibility"){let{caption:o,alt:n,url:i}=e;return i?n?n+(o?". "+o:""):o||"":(0,HD.__)("Empty")}},getEditWrapperProps(e){return{"data-align":e.align}},transforms:Zre,edit:Hre,save:jre,deprecated:_re},aSe=()=>D({name:Kre,metadata:y7,settings:Yre});var UD={};J(UD,{init:()=>uSe,metadata:()=>_7,name:()=>toe,settings:()=>roe});var _7={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},html:!1,spacing:{margin:!0,padding:!0},shadow:!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 x7=a(I(),1),Zn=a(F(),1),qn=a(L(),1),Qre=a(bd(),1),Xre=a(_e(),1);var go=a(y(),1),sSe=1,lSe=100;function Jre({attributes:e,setAttributes:t,name:r}){let{commentsToShow:o,displayAvatar:n,displayDate:i,displayContent:s}=e,l=ee(),{content:c,status:u,error:d}=(0,Qre.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r,urlQueryArgs:{_locale:"site"}}),p=(0,Xre.useDisabled)(),m=(0,x7.useBlockProps)({ref:p});return(0,go.jsxs)(go.Fragment,{children:[(0,go.jsx)(x7.InspectorControls,{children:(0,go.jsxs)(Zn.__experimentalToolsPanel,{label:(0,qn.__)("Settings"),resetAll:()=>{t({commentsToShow:5,displayAvatar:!0,displayDate:!0,displayContent:"excerpt"})},dropdownMenuProps:l,children:[(0,go.jsx)(Zn.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,qn.__)("Display avatar"),onDeselect:()=>t({displayAvatar:!0}),isShownByDefault:!0,children:(0,go.jsx)(Zn.ToggleControl,{label:(0,qn.__)("Display avatar"),checked:n,onChange:()=>t({displayAvatar:!n})})}),(0,go.jsx)(Zn.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,qn.__)("Display date"),onDeselect:()=>t({displayDate:!0}),isShownByDefault:!0,children:(0,go.jsx)(Zn.ToggleControl,{label:(0,qn.__)("Display date"),checked:i,onChange:()=>t({displayDate:!i})})}),(0,go.jsx)(Zn.__experimentalToolsPanelItem,{hasValue:()=>s!=="excerpt",label:(0,qn.__)("Display content"),onDeselect:()=>t({displayContent:"excerpt"}),isShownByDefault:!0,children:(0,go.jsx)(Zn.SelectControl,{label:(0,qn.__)("Display content"),value:s,options:[{label:(0,qn.__)("No content"),value:"none"},{label:(0,qn.__)("Excerpt"),value:"excerpt"},{label:(0,qn.__)("Full content"),value:"full"}],onChange:f=>t({displayContent:f})})}),(0,go.jsx)(Zn.__experimentalToolsPanelItem,{hasValue:()=>o!==5,label:(0,qn.__)("Number of comments"),onDeselect:()=>t({commentsToShow:5}),isShownByDefault:!0,children:(0,go.jsx)(Zn.RangeControl,{label:(0,qn.__)("Number of comments"),value:o,onChange:f=>t({commentsToShow:f}),min:sSe,max:lSe,required:!0})})]})}),u==="loading"&&(0,go.jsx)("div",{...m,children:(0,go.jsx)(Zn.Spinner,{})}),u==="error"&&(0,go.jsx)("div",{...m,children:(0,go.jsx)("p",{children:(0,qn.sprintf)((0,qn.__)("Error: %s"),d)})}),u==="success"&&(0,go.jsx)(Eo,{wrapperProps:m,html:c})]})}var cSe={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"}}},eoe=[cSe];var{name:toe}=_7,roe={icon:Xb,example:{},edit:Jre,deprecated:eoe},uSe=()=>D({name:toe,metadata:_7,settings:roe});var $D={};J($D,{init:()=>xSe,metadata:()=>Pf,name:()=>uoe,settings:()=>doe});var Pf={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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}},shadow:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"};var pSe={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}},mSe={postLayout:{type:"string",default:"list"},columns:{type:"number",default:3}},ooe=e=>!e.categories||typeof e.categories!="string"?e:{...e,categories:[{id:Number(e.categories)}]},fSe=e=>{let{postLayout:t,columns:r,...o}=e;return t?{...o,layout:{type:t==="grid"?"grid":"default",...t==="grid"&&r&&{columnCount:r}}}:e},noe=[{attributes:{...Pf.attributes,...mSe,categories:{type:["array","string"]}},supports:pSe,migrate:e=>fSe(ooe(e)),isEligible:({postLayout:e})=>e,save:()=>null},{attributes:{...Pf.attributes,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:ooe,isEligible:({categories:e})=>e&&typeof e=="string",save:()=>null}];var at=a(F(),1),Ke=a(L(),1),B1=a(MC(),1),Nc=a(I(),1),R2=a(H(),1);var WD=a(ae(),1),soe=a(br(),1),loe=a(_e(),1),coe=a(W(),1);var aoe=10,ioe=100,k7=55;var De=a(y(),1),gSe={per_page:-1,_fields:"id,name",context:"view"},hSe={per_page:-1,has_published_posts:["post"],context:"view"},bSe=[{value:"none",icon:gP,label:(0,Ke.__)("None")},{value:"left",icon:uI,label:(0,Ke.__)("Left")},{value:"center",icon:cI,label:(0,Ke.__)("Center")},{value:"right",icon:dI,label:(0,Ke.__)("Right")}];function ySe(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 vSe(e){return e._embedded?.author?.[0]}function _Se({attributes:e,setAttributes:t}){let{postsToShow:r,order:o,orderBy:n,categories:i,selectedAuthor:s,displayFeaturedImage:l,displayPostContentRadio:c,displayPostContent:u,displayPostDate:d,displayAuthor:p,excerptLength:m,featuredImageAlign:f,featuredImageSizeSlug:g,featuredImageSizeWidth:h,featuredImageSizeHeight:b,addLinkToFeaturedImage:_}=e,{imageSizes:v,defaultImageWidth:w,defaultImageHeight:x,categoriesList:k,authorList:C}=(0,R2.useSelect)(E=>{let{getEntityRecords:M,getUsers:R}=E(WD.store),O=E(Nc.store).getSettings();return{defaultImageWidth:O.imageDimensions?.[g]?.width??0,defaultImageHeight:O.imageDimensions?.[g]?.height??0,imageSizes:O.imageSizes,categoriesList:M("taxonomy","category",gSe),authorList:R(hSe)}},[g]),S=ee(),P=v.filter(({slug:E})=>E!=="full").map(({name:E,slug:M})=>({value:M,label:E})),B=k?.reduce((E,M)=>(E[M.name]=M,E),{})??{},N=E=>{if(E.some(O=>typeof O=="string"&&!B[O]))return;let R=E.map(O=>typeof O=="string"?B[O]:O);if(R.includes(null))return!1;t({categories:R})};return(0,De.jsxs)(De.Fragment,{children:[(0,De.jsxs)(at.__experimentalToolsPanel,{label:(0,Ke.__)("Post content"),resetAll:()=>t({displayPostContent:!1,displayPostContentRadio:"excerpt",excerptLength:k7}),dropdownMenuProps:S,children:[(0,De.jsx)(at.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,Ke.__)("Display post content"),onDeselect:()=>t({displayPostContent:!1}),isShownByDefault:!0,children:(0,De.jsx)(at.ToggleControl,{label:(0,Ke.__)("Display post content"),checked:u,onChange:E=>t({displayPostContent:E})})}),u&&(0,De.jsx)(at.__experimentalToolsPanelItem,{hasValue:()=>c!=="excerpt",label:(0,Ke.__)("Content length"),onDeselect:()=>t({displayPostContentRadio:"excerpt"}),isShownByDefault:!0,children:(0,De.jsx)(at.RadioControl,{label:(0,Ke.__)("Content length"),selected:c,options:[{label:(0,Ke.__)("Excerpt"),value:"excerpt"},{label:(0,Ke.__)("Full post"),value:"full_post"}],onChange:E=>t({displayPostContentRadio:E})})}),u&&c==="excerpt"&&(0,De.jsx)(at.__experimentalToolsPanelItem,{hasValue:()=>m!==k7,label:(0,Ke.__)("Max number of words"),onDeselect:()=>t({excerptLength:k7}),isShownByDefault:!0,children:(0,De.jsx)(at.RangeControl,{label:(0,Ke.__)("Max number of words"),value:m,onChange:E=>t({excerptLength:E}),min:aoe,max:ioe})})]}),(0,De.jsxs)(at.__experimentalToolsPanel,{label:(0,Ke.__)("Post meta"),resetAll:()=>t({displayAuthor:!1,displayPostDate:!1}),dropdownMenuProps:S,children:[(0,De.jsx)(at.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,Ke.__)("Display author name"),onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,De.jsx)(at.ToggleControl,{label:(0,Ke.__)("Display author name"),checked:p,onChange:E=>t({displayAuthor:E})})}),(0,De.jsx)(at.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,Ke.__)("Display post date"),onDeselect:()=>t({displayPostDate:!1}),isShownByDefault:!0,children:(0,De.jsx)(at.ToggleControl,{label:(0,Ke.__)("Display post date"),checked:d,onChange:E=>t({displayPostDate:E})})})]}),(0,De.jsxs)(at.__experimentalToolsPanel,{label:(0,Ke.__)("Featured image"),resetAll:()=>t({displayFeaturedImage:!1,featuredImageAlign:void 0,featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null,addLinkToFeaturedImage:!1}),dropdownMenuProps:S,children:[(0,De.jsx)(at.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,Ke.__)("Display featured image"),onDeselect:()=>t({displayFeaturedImage:!1}),isShownByDefault:!0,children:(0,De.jsx)(at.ToggleControl,{label:(0,Ke.__)("Display featured image"),checked:l,onChange:E=>t({displayFeaturedImage:E})})}),l&&(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)(at.__experimentalToolsPanelItem,{hasValue:()=>g!=="thumbnail"||h!==null||b!==null,label:(0,Ke.__)("Image size"),onDeselect:()=>t({featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null}),isShownByDefault:!0,children:(0,De.jsx)(Nc.__experimentalImageSizeControl,{onChange:E=>{let M={};E.hasOwnProperty("width")&&(M.featuredImageSizeWidth=E.width),E.hasOwnProperty("height")&&(M.featuredImageSizeHeight=E.height),t(M)},slug:g,width:h,height:b,imageWidth:w,imageHeight:x,imageSizeOptions:P,imageSizeHelp:(0,Ke.__)("Select the size of the source image."),onChangeImage:E=>t({featuredImageSizeSlug:E,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})})}),(0,De.jsx)(at.__experimentalToolsPanelItem,{hasValue:()=>!!f,label:(0,Ke.__)("Image alignment"),onDeselect:()=>t({featuredImageAlign:void 0}),isShownByDefault:!0,children:(0,De.jsx)(at.__experimentalToggleGroupControl,{className:"editor-latest-posts-image-alignment-control",label:(0,Ke.__)("Image alignment"),value:f||"none",onChange:E=>t({featuredImageAlign:E!=="none"?E:void 0}),children:bSe.map(({value:E,icon:M,label:R})=>(0,De.jsx)(at.__experimentalToggleGroupControlOptionIcon,{value:E,icon:M,label:R},E))})}),(0,De.jsx)(at.__experimentalToolsPanelItem,{hasValue:()=>!!_,label:(0,Ke.__)("Add link to featured image"),onDeselect:()=>t({addLinkToFeaturedImage:!1}),isShownByDefault:!0,children:(0,De.jsx)(at.ToggleControl,{label:(0,Ke.__)("Add link to featured image"),checked:_,onChange:E=>t({addLinkToFeaturedImage:E})})})]})]}),(0,De.jsx)(at.__experimentalToolsPanel,{label:(0,Ke.__)("Sorting and filtering"),resetAll:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),dropdownMenuProps:S,children:(0,De.jsx)(at.__experimentalToolsPanelItem,{hasValue:()=>o!=="desc"||n!=="date"||r!==5||i?.length>0||!!s,label:(0,Ke.__)("Sort and filter"),onDeselect:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),isShownByDefault:!0,children:(0,De.jsx)(at.QueryControls,{order:o,orderBy:n,numberOfItems:r,onOrderChange:E=>t({order:E}),onOrderByChange:E=>t({orderBy:E}),onNumberOfItemsChange:E=>t({postsToShow:E}),categorySuggestions:B,onCategoryChange:N,selectedCategories:i,onAuthorChange:E=>t({selectedAuthor:E!==""?Number(E):void 0}),authorList:C??[],selectedAuthorId:s})})})]})}function GD({attributes:e,setAttributes:t,__unstableLayoutClassNames:r}){let o=(0,loe.useInstanceId)(GD),{postsToShow:n,order:i,orderBy:s,categories:l,selectedAuthor:c,displayFeaturedImage:u,displayPostContentRadio:d,displayPostContent:p,displayPostDate:m,displayAuthor:f,layout:g,postLayout:h,columns:b,excerptLength:_,featuredImageAlign:v,featuredImageSizeSlug:w,featuredImageSizeWidth:x,featuredImageSizeHeight:k,addLinkToFeaturedImage:C}=e,{type:S,minimumColumnWidth:P}=g||{},B=S||(h==="grid"?"grid":"default"),N=g?.columnCount??(S?void 0:b)??3,{latestPosts:E}=(0,R2.useSelect)(q=>{let{getEntityRecords:Y}=q(WD.store),oe=l&&l.length>0?l.map(U=>U.id):[],Z=Object.fromEntries(Object.entries({categories:oe,author:c,order:i,orderby:s,per_page:n,_embed:"author,wp:featuredmedia",ignore_sticky:!0}).filter(([,U])=>typeof U<"u"));return{latestPosts:Y("postType","post",Z)}},[n,i,s,l,c]),{createWarningNotice:M}=(0,R2.useDispatch)(soe.store),R=q=>{q.preventDefault(),M((0,Ke.__)("Links are disabled in the editor."),{id:`block-library/core/latest-posts/redirection-prevented/${o}`,type:"snackbar"})},O=!!E?.length,j=(0,De.jsx)(Nc.InspectorControls,{children:(0,De.jsx)(_Se,{attributes:e,setAttributes:t})}),V=(0,Nc.useBlockProps)({className:T(r,{"wp-block-latest-posts__list":!0,"is-grid":B==="grid","has-dates":m,"has-author":f,[`columns-${N}`]:B==="grid"&&N,"has-native-responsive-grid":B==="grid"&&N&&P})});if(!O)return(0,De.jsxs)("div",{...V,children:[j,(0,De.jsx)(at.Placeholder,{icon:av,label:(0,Ke.__)("Latest Posts"),children:Array.isArray(E)?(0,Ke.__)("No posts found."):(0,De.jsx)(at.Spinner,{})})]});let G=E.length>n?E.slice(0,n):E,$=q=>t({layout:{...g,...q},postLayout:void 0,columns:void 0}),z=[{icon:pl,title:(0,Ke._x)("List view","Latest posts block display setting"),onClick:()=>$({type:"default"}),isActive:B==="default"||B==="constrained"},{icon:Ei,title:(0,Ke._x)("Grid view","Latest posts block display setting"),onClick:()=>$({type:"grid",columnCount:N}),isActive:B==="grid"}],K=(0,B1.getSettings)().formats.date;return(0,De.jsxs)(De.Fragment,{children:[j,(0,De.jsx)(Nc.BlockControls,{children:(0,De.jsx)(at.ToolbarGroup,{controls:z})}),(0,De.jsx)("ul",{...V,children:G.map(q=>{let Y=q.title.rendered.trim(),oe=q.excerpt.rendered,Z=vSe(q),U=document.createElement("div");U.innerHTML=oe,oe=U.textContent||U.innerText||"";let{url:X,alt:Q}=ySe(q,w),ie=T({"wp-block-latest-posts__featured-image":!0,[`align${v}`]:!!v}),me=u&&X,xe=me&&(0,De.jsx)("img",{src:X,alt:Q,style:{maxWidth:x,maxHeight:k}}),se=_<oe.trim().split(" ").length&&q.excerpt.raw===""?(0,De.jsxs)(De.Fragment,{children:[oe.trim().split(" ",_).join(" "),(0,coe.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("\u2026 <a>Read more<span>: %1$s</span></a>"),Y||(0,Ke.__)("(no title)")),{a:(0,De.jsx)("a",{className:"wp-block-latest-posts__read-more",href:q.link,rel:"noopener",onClick:R}),span:(0,De.jsx)("span",{className:"screen-reader-text"})})]}):oe;return(0,De.jsxs)("li",{children:[me&&(0,De.jsx)("div",{className:ie,children:C?(0,De.jsx)("a",{href:q.link,onClick:R,children:xe}):xe}),(0,De.jsx)("a",{className:"wp-block-latest-posts__post-title",href:q.link,dangerouslySetInnerHTML:Y?{__html:Y}:void 0,onClick:R,children:Y?null:(0,Ke.__)("(no title)")}),f&&Z&&(0,De.jsx)("div",{className:"wp-block-latest-posts__post-author",children:(0,Ke.sprintf)((0,Ke.__)("by %s"),Z.name)}),m&&q.date_gmt&&(0,De.jsx)("time",{dateTime:(0,B1.format)("c",q.date_gmt),className:"wp-block-latest-posts__post-date",children:(0,B1.dateI18n)(K,q.date_gmt)}),p&&d==="excerpt"&&(0,De.jsx)("div",{className:"wp-block-latest-posts__post-excerpt",children:se}),p&&d==="full_post"&&(0,De.jsx)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:q.content.rendered.trim()}})]},q.id)})})]})}var{name:uoe}=Pf,doe={icon:hv,example:{},edit:GD,deprecated:noe},xSe=()=>D({name:uoe,metadata:Pf,settings:doe});var YD={};J(YD,{init:()=>ASe,metadata:()=>E7,name:()=>Soe,settings:()=>Toe});var M1=a(L(),1);var Fl=a(I(),1);var I1=a(te(),1),w7={A:"upper-alpha",a:"lower-alpha",I:"upper-roman",i:"lower-roman"};function qD(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&&w7[t]?w7[t]:void 0},o=Array.from(e.children).map(n=>{let i=Array.from(n.childNodes).filter(m=>m.nodeType!==m.TEXT_NODE||m.textContent.trim().length!==0);i.reverse();let[s,...l]=i;if(!(s?.tagName==="UL"||s?.tagName==="OL"))return(0,I1.createBlock)("core/list-item",{content:n.innerHTML});let u=l.map(m=>m.nodeType===m.TEXT_NODE?m.textContent:m.outerHTML);u.reverse();let d={content:u.join("").trim()},p=[qD(s)];return(0,I1.createBlock)("core/list-item",d,p)});return(0,I1.createBlock)("core/list",r,o)}function C7(e){let{values:t,start:r,reversed:o,ordered:n,type:i,...s}=e,l=document.createElement(n?"ol":"ul");l.innerHTML=t,r&&l.setAttribute("start",r),o&&l.setAttribute("reversed",!0),i&&l.setAttribute("type",i);let[c]=(0,I1.rawHandler)({HTML:l.outerHTML});return[{...s,...c.attributes},c.innerBlocks]}function poe(e){let{type:t}=e;return t&&w7[t]?{...e,type:w7[t]}:e}var Ou=a(y(),1),kSe={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0},color:{gradients:!0,link:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){let{ordered:t,values:r,type:o,reversed:n,start:i}=e;return(0,Ou.jsx)(t?"ol":"ul",{...Fl.useBlockProps.save({type:o,reversed:n,start:i}),children:(0,Ou.jsx)(Fl.RichText.Content,{value:r,multiline:"li"})})},migrate:or,isEligible({style:e}){return e?.typography?.fontFamily}},wSe={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){let{ordered:t,values:r,type:o,reversed:n,start:i}=e;return(0,Ou.jsx)(t?"ol":"ul",{...Fl.useBlockProps.save({type:o,reversed:n,start:i}),children:(0,Ou.jsx)(Fl.RichText.Content,{value:r,multiline:"li"})})},migrate:C7},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",__experimentalSlashInserter:!0},isEligible({type:e}){return!!e},save({attributes:e}){let{ordered:t,type:r,reversed:o,start:n}=e;return(0,Ou.jsx)(t?"ol":"ul",{...Fl.useBlockProps.save({type:r,reversed:o,start:n}),children:(0,Ou.jsx)(Fl.InnerBlocks.Content,{})})},migrate:poe},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",__experimentalOnMerge:"true",__experimentalSlashInserter:!0},save({attributes:e}){let{ordered:t,type:r,reversed:o,start:n}=e;return(0,Ou.jsx)(t?"ol":"ul",{...Fl.useBlockProps.save({reversed:o,start:n,style:{listStyleType:t&&r!=="decimal"?r:void 0}}),children:(0,Ou.jsx)(Fl.InnerBlocks.Content,{})})}},moe=[SSe,CSe,wSe,kSe];var Vs=a(I(),1),S7=a(F(),1),bp=a(H(),1),Vl=a(L(),1);var voe=a(te(),1),T7=a(W(),1),_oe=a(jm(),1);var Ki=a(L(),1),foe=a(I(),1),Fs=a(F(),1);var Mc=a(y(),1),TSe=[{label:(0,Ki.__)("Numbers"),value:"decimal"},{label:(0,Ki.__)("Uppercase letters"),value:"upper-alpha"},{label:(0,Ki.__)("Lowercase letters"),value:"lower-alpha"},{label:(0,Ki.__)("Uppercase Roman numerals"),value:"upper-roman"},{label:(0,Ki.__)("Lowercase Roman numerals"),value:"lower-roman"}],ESe=({setAttributes:e,reversed:t,start:r,type:o})=>{let n=ee();return(0,Mc.jsx)(foe.InspectorControls,{children:(0,Mc.jsxs)(Fs.__experimentalToolsPanel,{label:(0,Ki.__)("Settings"),resetAll:()=>{e({type:void 0,start:void 0,reversed:void 0})},dropdownMenuProps:n,children:[(0,Mc.jsx)(Fs.__experimentalToolsPanelItem,{label:(0,Ki.__)("List style"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>e({type:void 0}),children:(0,Mc.jsx)(Fs.SelectControl,{label:(0,Ki.__)("List style"),options:TSe,value:o||"decimal",onChange:i=>e({type:i})})}),(0,Mc.jsx)(Fs.__experimentalToolsPanelItem,{label:(0,Ki.__)("Start value"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>e({start:void 0}),children:(0,Mc.jsx)(Fs.TextControl,{label:(0,Ki.__)("Start value"),type:"number",onChange:i=>{let s=parseInt(i,10);e({start:isNaN(s)?void 0:s})},value:Number.isInteger(r)?r.toString(10):"",step:"1"})}),(0,Mc.jsx)(Fs.__experimentalToolsPanelItem,{label:(0,Ki.__)("Reverse order"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>e({reversed:void 0}),children:(0,Mc.jsx)(Fs.ToggleControl,{label:(0,Ki.__)("Reverse order"),checked:t||!1,onChange:i=>{e({reversed:i||void 0})}})})]})})},goe=ESe;var hoe=a(W(),1),boe=a(y(),1);function PSe(e,t){let{ordered:r,...o}=e;return(0,boe.jsx)(r?"ol":"ul",{ref:t,...o})}var yoe=(0,hoe.forwardRef)(PSe);var ui=a(y(),1),BSe={name:"core/list-item"};function ISe(e,t){let r=(0,bp.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:n,selectBlock:i}=(0,bp.useDispatch)(Vs.store);(0,T7.useEffect)(()=>{if(!e.values)return;let[s,l]=C7(e);(0,_oe.default)("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"});let c=r.select(Vs.store).hasSelectedInnerBlock(t,!0);r.batch(()=>{o(t,s),n(t,l),c&&i(t)})},[e.values])}function NSe(e){let{replaceBlocks:t,selectionChange:r}=(0,bp.useDispatch)(Vs.store),{getBlockRootClientId:o,getBlockAttributes:n,getBlock:i}=(0,bp.useSelect)(Vs.store);return(0,T7.useCallback)(()=>{let s=o(e),l=n(s),c=(0,voe.createBlock)("core/list-item",l),{innerBlocks:u}=i(e);t([s],[c,...u]),r(u[u.length-1].clientId)},[e])}function MSe({clientId:e}){let t=NSe(e),r=(0,bp.useSelect)(o=>{let{getBlockRootClientId:n,getBlockName:i}=o(Vs.store);return i(n(e))==="core/list-item"},[e]);return(0,ui.jsx)(ui.Fragment,{children:(0,ui.jsx)(S7.ToolbarButton,{icon:(0,Vl.isRTL)()?gy:yy,title:(0,Vl.__)("Outdent"),description:(0,Vl.__)("Outdent list item"),disabled:!r,onClick:t})})}function xoe({attributes:e,setAttributes:t,clientId:r}){let{ordered:o,type:n,reversed:i,start:s}=e,l=(0,Vs.useBlockProps)({style:{listStyleType:o&&n!=="decimal"?n:void 0}}),c=(0,Vs.useInnerBlocksProps)(l,{defaultBlock:BSe,directInsert:!0,templateLock:!1,__experimentalCaptureToolbars:!0});ISe(e,r);let u=(0,ui.jsxs)(Vs.BlockControls,{group:"block",children:[(0,ui.jsx)(S7.ToolbarButton,{icon:(0,Vl.isRTL)()?ly:cy,title:(0,Vl.__)("Unordered"),description:(0,Vl.__)("Convert to unordered list"),isActive:o===!1,onClick:()=>{t({ordered:!1})}}),(0,ui.jsx)(S7.ToolbarButton,{icon:(0,Vl.isRTL)()?uy:vs,title:(0,Vl.__)("Ordered"),description:(0,Vl.__)("Convert to ordered list"),isActive:o===!0,onClick:()=>{t({ordered:!0})}}),(0,ui.jsx)(MSe,{clientId:r})]});return(0,ui.jsxs)(ui.Fragment,{children:[(0,ui.jsx)(yoe,{ordered:o,reversed:i,start:s,...c}),u,o&&(0,ui.jsx)(goe,{setAttributes:t,reversed:i,start:s,type:n})]})}var E7={$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,align:["wide","full"],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 P7=a(I(),1),ZD=a(y(),1);function koe({attributes:e}){let{ordered:t,type:r,reversed:o,start:n}=e;return(0,ZD.jsx)(t?"ol":"ul",{...P7.useBlockProps.save({reversed:o,start:n,style:{listStyleType:t&&r!=="decimal"?r:void 0}}),children:(0,ZD.jsx)(P7.InnerBlocks.Content,{})})}var Fu=a(te(),1),N1=a(vl(),1);function woe({phrasingContentSchema:e}){let t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach(r=>{t[r].children={li:{children:t}}}),t}function KD(e){return e.flatMap(({name:t,attributes:r,innerBlocks:o=[]})=>t==="core/list-item"?[r.content,...KD(o)]:KD(o))}var RSe={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map(({content:r})=>(0,Fu.createBlock)("core/list-item",{content:r}));else if(e.length===1){let r=(0,N1.create)({html:e[0].content});t=(0,N1.split)(r,`
74 `).map(o=>(0,Fu.createBlock)("core/list-item",{content:(0,N1.toHTMLString)({value:o})}))}return(0,Fu.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:woe(e).ol,ul:woe(e).ul}),transform:qD},...["*","-"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,Fu.createBlock)("core/list",{},[(0,Fu.createBlock)("core/list-item",{content:t})])}})),...["1.","1)"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,Fu.createBlock)("core/list",{ordered:!0},[(0,Fu.createBlock)("core/list-item",{content:t})])}}))],to:[...["core/paragraph","core/heading"].map(e=>({type:"block",blocks:[e],transform:(t,r)=>KD(r).map(o=>(0,Fu.createBlock)(e,{content:o}))}))]},Coe=RSe;var{name:Soe}=E7,DSe=[["core/list-item"]],Toe={icon:pl,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,M1.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,M1.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,M1.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,M1.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,M1.__)("The Queen of Hearts.")}}]},transforms:Coe,template:DSe,templateInsertUpdatesSelection:!0,edit:xoe,save:koe,deprecated:moe},ASe=()=>D({name:Soe,metadata:E7,settings:Toe});var XD={};J(XD,{init:()=>zSe,metadata:()=>I7,name:()=>Doe,settings:()=>Aoe});var D2=a(L(),1),B7=a(I(),1),Eoe=a(F(),1);var yp=a(W(),1),Poe=a(H(),1),Boe=a(_e(),1),zl=a(y(),1);function Ioe({attributes:e,setAttributes:t,isSelected:r}){let{latex:o,mathML:n}=e,[i,s]=(0,yp.useState)(),[l,c]=(0,yp.useState)(null),[u,d]=(0,yp.useState)(),p=(0,yp.useRef)(),{__unstableMarkNextChangeAsNotPersistent:m}=(0,Poe.useDispatch)(B7.store),f=(0,Boe.useEvent)(h=>{if(o)try{let b=h(o,{displayMode:!0});m(),t({mathML:b})}catch(b){c(b.message)}});(0,yp.useEffect)(()=>{import("@wordpress/latex-to-mathml").then(h=>{d(()=>h.default),f(h.default)})},[f]);let g=(0,B7.useBlockProps)({ref:s,position:"relative"});return(0,zl.jsxs)("div",{...g,children:[n?(0,zl.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:n}}):(0,zl.jsx)("math",{display:"block",children:(0,zl.jsx)("semantics",{children:(0,zl.jsx)("annotation",{encoding:"application/x-tex",children:o||"\u200B"})})}),r&&(0,zl.jsx)(Eoe.Popover,{placement:"bottom-start",offset:8,anchor:i,focusOnMount:!1,onFocusOutside:()=>p.current?.reportValidity(),__unstableSlotName:"__unstable-block-tools-after",children:(0,zl.jsxs)("form",{ref:p,style:{padding:"16px",minWidth:"300px"},onSubmit:h=>h.preventDefault(),children:[(0,zl.jsx)(yL,{label:(0,D2.__)("LaTeX math syntax"),value:o??"",className:"wp-block-math__textarea-control",customValidity:l?{type:"invalid",message:l}:void 0,onValueChange:h=>{if(!u){t({latex:h,mathML:""});return}let b="";try{b=u(h,{displayMode:!0}),c(null)}catch(_){c(_.message)}t({mathML:b,latex:h})},placeholder:(0,D2.__)("e.g., x^2, \\frac{a}{b}, \\sqrt{x}")}),(0,zl.jsx)(bl,{openInNewTab:!0,className:"wp-block-math__learn-more",href:(0,D2.__)("https://wordpress.org/documentation/article/math-block/"),children:(0,D2.__)("Learn more about LaTeX syntax")})]})})]})}var I7={$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},background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},attributes:{latex:{type:"string",source:"text",selector:'math annotation[encoding="application/x-tex"]',role:"content"},mathML:{type:"string",source:"html",selector:"math"}}};var Noe=a(I(),1),L1=a(y(),1);function Moe({attributes:e}){let{latex:t,mathML:r}=e;return t?(0,L1.jsx)("div",{...Noe.useBlockProps.save(),children:r?(0,L1.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:r}}):(0,L1.jsx)("math",{display:"block",children:(0,L1.jsx)("semantics",{children:(0,L1.jsx)("annotation",{encoding:"application/x-tex",children:t})})})}):null}var QD=a(I(),1),N7=a(y(),1),Loe={latex:{type:"string",role:"content"},mathML:{type:"string",source:"html",selector:"math"}},FSe={attributes:Loe,save({attributes:e}){let{latex:t,mathML:r}=e;return t?(0,N7.jsx)("div",{...QD.useBlockProps.save(),children:(0,N7.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:r}})}):null}},VSe={attributes:Loe,save({attributes:e}){let{latex:t,mathML:r}=e;return t?(0,N7.jsx)("math",{...QD.useBlockProps.save(),display:"block",dangerouslySetInnerHTML:{__html:r}}):null}},Roe=[FSe,VSe];var{name:Doe}=I7,Aoe={icon:UB,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:Ioe,save:Moe,deprecated:Roe},zSe=()=>D({name:Doe,metadata:I7,settings:Aoe});var sA={};J(sA,{init:()=>$Se,metadata:()=>M7,name:()=>one,settings:()=>nne});var rne=a(I(),1);var M7={$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 Dc=a(I(),1),Rc=a(L(),1),iA=a(F(),1);var Qoe=a(_e(),1),D7=a(H(),1),Xoe=a(fc(),1);var If=a(te(),1),Voe=a(_e(),1),zoe=a(vl(),1),Hoe=a(H(),1),eA=a(I(),1);var Bf=a(I(),1),Ooe=a(te(),1);function JD(e,t){return e.getPreviousBlockClientId(t)}function Vu(e,t){let r=e.getBlockRootClientId(t),o=e.getBlockRootClientId(r);if(!(!o||e.getBlockName(o)!=="core/list-item"))return o}function Foe(e,t,r,o){let{getBlockOrder:n,getBlock:i}=e.select(Bf.store),{moveBlocksToPosition:s,removeBlocks:l,insertBlock:c}=e.dispatch(Bf.store),u=n(o),d=u[u.length-1];if(d){s(t,r,d);return}let p=(0,Ooe.cloneBlock)(i(r),{},t.map(m=>i(m)));e.batch(()=>{l(t,!1),c(p,0,o,!1)})}function R1(e,t){let r=e.select(Bf.store),{getBlockRootClientId:o,getSelectedBlockClientIds:n,getSelectionStart:i,getSelectionEnd:s,hasMultiSelection:l,getMultiSelectedBlockClientIds:c}=r,{selectionChange:u,multiSelect:d}=e.dispatch(Bf.store),p=l(),m=p?c():n();t===void 0&&(t=m[0]);let f=JD(r,t);if(!f)return!1;let g=o(t),h=i(),b=s();return e.batch(()=>{Foe(e,m,g,f),p?d(m[0],m[m.length-1]):u(m[0],b.attributeKey,b.clientId===h.clientId?h.offset:b.offset,b.offset)}),!0}function Lc(e,t){let r=e.select(Bf.store),{getBlockRootClientId:o,getBlockName:n,getBlockOrder:i,getBlockIndex:s,getSelectedBlockClientIds:l}=r,{moveBlocksToPosition:c,removeBlock:u,multiSelect:d}=e.dispatch(Bf.store);if(t===void 0&&(t=l()),Array.isArray(t)||(t=[t]),!t.length)return!1;let p=t[0];if(n(p)!=="core/list-item")return!1;let m=Vu(r,p);if(!m)return!1;let f=o(p),g=t[t.length-1],b=i(f).slice(s(g)+1);return e.batch(()=>{b.length&&Foe(e,b,f,p),c(t,f,o(m),s(m)+1),i(f).length||u(f,!1),t.length>1&&d(p,g)}),!0}var{subscribeOwnedListener:jSe}=le(zoe.privateApis);function tA(e){let t=(0,Hoe.useRegistry)();return(0,Voe.useRefEffect)(r=>{function o(n){if(n.defaultPrevented||n.inputType!=="insertParagraph")return;let i=t.select(eA.store),{getBlock:s,getBlockAttributes:l,getBlockRootClientId:c,getBlockIndex:u}=i,{replaceBlocks:d,selectionChange:p}=t.dispatch(eA.store),{content:m}=l(e)??{};if(m?.length)return;if(n.preventDefault(),!!Vu(i,e)){Lc(t);return}let g=s(c(e)),h=u(e),b=(0,If.cloneBlock)({...g,innerBlocks:g.innerBlocks.slice(0,h)}),_=(0,If.createBlock)((0,If.getDefaultBlockName)()),v=[...g.innerBlocks[h].innerBlocks[0]?.innerBlocks||[],...g.innerBlocks.slice(h+1)],w=v.length?[(0,If.cloneBlock)({...g,innerBlocks:v})]:[];d(g.clientId,[b,_,...w],1),p(_.clientId)}return jSe(r,"beforeinput",o,!0)},[e,t])}var joe=a(_e(),1),Uoe=a(vl(),1),A2=a(fc(),1),Woe=a(I(),1),Goe=a(H(),1),$oe=a(ma(),1);var{subscribeOwnedListener:USe}=le(Uoe.privateApis);function rA(){let e=(0,Goe.useRegistry)();return(0,joe.useRefEffect)(t=>{function r(o){let{keyCode:n,shiftKey:i,altKey:s,metaKey:l,ctrlKey:c}=o;if(o.defaultPrevented||n!==A2.SPACE&&n!==A2.TAB||s||l||c)return;let{getSelectionStart:u,getSelectionEnd:d}=e.select(Woe.store);if(!(u().offset===0&&d().offset===0)&&!(n===A2.TAB&&(0,$oe.isEntirelySelected)(t)))return;(i?Lc:R1)(e)&&o.preventDefault()}return USe(t,"keydown",r,!0)},[e])}var qoe=a(_e(),1),Zoe=a(fc(),1),Koe=a(I(),1),L7=a(H(),1);function oA(e){let t=(0,L7.useRegistry)(),r=(0,L7.useSelect)(o=>{let{hasMultiSelection:n,getMultiSelectedBlockClientIds:i,getBlockName:s}=o(Koe.store);if(!n())return!1;let l=i();return l[0]===e&&l.every(c=>s(c)==="core/list-item")},[e]);return(0,qoe.useRefEffect)(o=>{if(!r)return;function n(s){let{keyCode:l,shiftKey:c,altKey:u,metaKey:d,ctrlKey:p}=s;l!==Zoe.TAB||s.defaultPrevented||u||d||p||s.target.contains(o)&&(c?Lc(t)&&s.preventDefault():R1(t)&&s.preventDefault())}let{ownerDocument:i}=o;return i.addEventListener("keydown",n,!0),()=>{i.removeEventListener("keydown",n,!0)}},[r,t])}var Yoe=a(H(),1),nA=a(I(),1),R7=a(te(),1);function aA(e,t){let r=(0,Yoe.useRegistry)();return o=>{let n=r.select(nA.store),{getPreviousBlockClientId:i,getNextBlockClientId:s,getBlockOrder:l,getBlockIndex:c,getBlockRootClientId:u,getBlockName:d,getBlock:p}=n,{mergeBlocks:m,moveBlocksToPosition:f,removeBlock:g,insertBlocks:h}=r.dispatch(nA.store);function b(v){let w=l(v);return w.length?b(w[w.length-1]):v}function _(v,w){r.batch(()=>{let[x]=l(w);x&&(i(w)===v&&!l(v).length?f([x],w,v):Vu(n,w)===v?f(l(x),x,u(w),c(w)+1):f(l(x),x,u(v)));let k=u(w);m(v,w),l(k).length||g(k,!1)})}if(o){let v=l(e)[0],w,x=e;if(v)w=l(v)[0];else for(;!(w=s(x));){let k=Vu(n,x);if(!k)break;x=k}if(w)_(e,w);else{let k=u(x),C=s(k);if(C)if(d(C)==="core/list")r.batch(()=>{f(l(C),C,k),g(C,!1)});else{let P=(0,R7.switchToBlockType)(p(C),"core/list")?.[0]?.innerBlocks;P?.length&&r.batch(()=>{h(P,void 0,k,!1),g(C,!1)})}}}else{let v=i(e);if(v){let k=b(v);_(k,e);return}let w=Vu(n,e);if(w){_(w,e);return}let x=l(e);(0,R7.isUnmodifiedBlock)(p(e),"content")&&x.length>0?r.batch(()=>{Lc(r,l(x[0])),g(e,!0)}):t(o)}}}var Yi=a(y(),1);function WSe({clientId:e}){let t=(0,D7.useRegistry)(),{canIndent:r,canOutdent:o}=(0,D7.useSelect)(n=>{let i=n(Dc.store);return{canIndent:!!JD(i,e),canOutdent:!!Vu(i,e)}},[e]);return(0,Yi.jsxs)(Yi.Fragment,{children:[(0,Yi.jsx)(iA.ToolbarButton,{icon:(0,Rc.isRTL)()?gy:yy,title:(0,Rc.__)("Outdent"),shortcut:Xoe.displayShortcut.shift("Tab"),description:(0,Rc.__)("Outdent list item"),disabled:!o,onClick:()=>Lc(t)}),(0,Yi.jsx)(iA.ToolbarButton,{icon:(0,Rc.isRTL)()?pB:fB,title:(0,Rc.__)("Indent"),shortcut:"Tab",description:(0,Rc.__)("Indent list item"),disabled:!r,onClick:()=>R1(t,e)})]})}function Joe({attributes:e,setAttributes:t,clientId:r,mergeBlocks:o}){let{placeholder:n,content:i}=e,s=(0,Dc.useBlockProps)(),l=(0,Dc.useInnerBlocksProps)(s,{renderAppender:!1,__unstableDisableDropZone:!0}),c=tA(r),u=rA(),d=oA(r),p=aA(r,o);return(0,Yi.jsxs)(Yi.Fragment,{children:[(0,Yi.jsxs)("li",{...l,children:[(0,Yi.jsx)(Dc.RichText,{ref:(0,Qoe.useMergeRefs)([c,u,d]),identifier:"content",tagName:"div",onChange:m=>t({content:m}),value:i,"aria-label":(0,Rc.__)("List text"),placeholder:n||(0,Rc.__)("List"),onMerge:p}),l.children]}),(0,Yi.jsx)(Dc.BlockControls,{group:"block",children:(0,Yi.jsx)(WSe,{clientId:r})})]})}var D1=a(I(),1),O2=a(y(),1);function ene({attributes:e}){return(0,O2.jsxs)("li",{...D1.useBlockProps.save(),children:[(0,O2.jsx)(D1.RichText.Content,{value:e.content}),(0,O2.jsx)(D1.InnerBlocks.Content,{})]})}var A7=a(te(),1),GSe={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,A7.createBlock)("core/paragraph",e),...t.map(r=>(0,A7.cloneBlock)(r))]}]},tne=GSe;var{name:one}=M7,nne={icon:OB,edit:Joe,save:ene,merge(e,t){return{...e,content:e.content+t.content}},transforms:tne,[le(rne.privateApis).requiresWrapperOnCopy]:!0,__experimentalLabel(e,{context:t}){let{content:r}=e,o=e?.metadata?.name,n=r?.trim().length>0;if(t==="list-view"&&(o||n))return o||r;if(t==="breadcrumb"&&o)return o}},$Se=()=>D({name:one,metadata:M7,settings:nne});var lA={};J(lA,{init:()=>ZSe,metadata:()=>F7,name:()=>ine,settings:()=>sne});var O7=a(I(),1),vp=a(F(),1),Nf=a(L(),1);var Qi=a(y(),1);function ane({attributes:e,setAttributes:t}){let{displayLoginAsForm:r,redirectToCurrent:o}=e,n=ee();return(0,Qi.jsxs)(Qi.Fragment,{children:[(0,Qi.jsx)(O7.InspectorControls,{children:(0,Qi.jsxs)(vp.__experimentalToolsPanel,{label:(0,Nf.__)("Settings"),resetAll:()=>{t({displayLoginAsForm:!1,redirectToCurrent:!0})},dropdownMenuProps:n,children:[(0,Qi.jsx)(vp.__experimentalToolsPanelItem,{label:(0,Nf.__)("Display login as form"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>t({displayLoginAsForm:!1}),children:(0,Qi.jsx)(vp.ToggleControl,{label:(0,Nf.__)("Display login as form"),checked:r,onChange:()=>t({displayLoginAsForm:!r})})}),(0,Qi.jsx)(vp.__experimentalToolsPanelItem,{label:(0,Nf.__)("Redirect to current URL"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({redirectToCurrent:!0}),children:(0,Qi.jsx)(vp.ToggleControl,{label:(0,Nf.__)("Redirect to current URL"),checked:o,onChange:()=>t({redirectToCurrent:!o})})})]})}),(0,Qi.jsx)("div",{...(0,O7.useBlockProps)({className:"logged-in"}),children:(0,Qi.jsx)("a",{href:"#login-pseudo-link",children:(0,Nf.__)("Log out")})})]})}var F7={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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},shadow:!0,interactivity:{clientNavigation:!0}},style:"wp-block-loginout"};var{name:ine}=F7,sne={icon:VB,edit:ane},ZSe=()=>D({name:ine,metadata:F7,settings:sne});var gA={};J(gA,{init:()=>g8e,metadata:()=>K7,name:()=>Ene,settings:()=>Pne});var fA=a(L(),1);var lne=a(L(),1),F2=["image","video"],Ac="full",V2=15,V7="none",z7="media",H7="attachment",cne=[["core/paragraph",{placeholder:(0,lne._x)("Content\u2026","content placeholder")}]];var wr=a(I(),1),cA=a(_e(),1);var Oe=a(y(),1),j7=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${t.x*100}% ${t.y*100}%`:"50% 50%"}:{},une=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(t.x*100)}% ${Math.round(t.y*100)}%`:"50% 50%"}:{},Mf=50,Oc=()=>{},dne=e=>{if(!e.customBackgroundColor)return e;let t={color:{background:e.customBackgroundColor}},{customBackgroundColor:r,...o}=e;return{...o,style:t}},A1=e=>e.align?e:{...e,align:"wide"},U7={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}},uA={...U7,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"}},pne={...uA,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"}},KSe={...pne,align:{type:"string",default:"none"},useFeaturedImage:{type:"boolean",default:!1}},dA={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},mne={...dA,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}}},YSe={...mne,__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}},QSe={attributes:KSe,supports:YSe,usesContext:["postId","postType"],save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:s,mediaId:l,verticalAlignment:c,imageFill:u,focalPoint:d,linkClass:p,href:m,linkTarget:f,rel:g}=e,h=e.mediaSizeSlug||Ac,b=g||void 0,_=T({[`wp-image-${l}`]:l&&n==="image",[`size-${h}`]:l&&n==="image"}),v=i?(0,Oe.jsx)("img",{src:i,alt:r,className:_||null}):null;m&&(v=(0,Oe.jsx)("a",{className:p,href:m,target:f,rel:b,children:v}));let w={image:()=>v,video:()=>(0,Oe.jsx)("video",{controls:!0,src:i})},x=T({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),k=u?une(i,d):{},C;s!==Mf&&(C=o==="right"?`auto ${s}%`:`${s}% auto`);let S={gridTemplateColumns:C};return o==="right"?(0,Oe.jsxs)("div",{...wr.useBlockProps.save({className:x,style:S}),children:[(0,Oe.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Oe.jsx)("figure",{className:"wp-block-media-text__media",style:k,children:(w[n]||Oc)()})]}):(0,Oe.jsxs)("div",{...wr.useBlockProps.save({className:x,style:S}),children:[(0,Oe.jsx)("figure",{className:"wp-block-media-text__media",style:k,children:(w[n]||Oc)()}),(0,Oe.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}},XSe={attributes:pne,supports:mne,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:s,mediaId:l,verticalAlignment:c,imageFill:u,focalPoint:d,linkClass:p,href:m,linkTarget:f,rel:g}=e,h=e.mediaSizeSlug||Ac,b=g||void 0,_=T({[`wp-image-${l}`]:l&&n==="image",[`size-${h}`]:l&&n==="image"}),v=(0,Oe.jsx)("img",{src:i,alt:r,className:_||null});m&&(v=(0,Oe.jsx)("a",{className:p,href:m,target:f,rel:b,children:v}));let w={image:()=>v,video:()=>(0,Oe.jsx)("video",{controls:!0,src:i})},x=T({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),k=u?une(i,d):{},C;s!==Mf&&(C=o==="right"?`auto ${s}%`:`${s}% auto`);let S={gridTemplateColumns:C};return o==="right"?(0,Oe.jsxs)("div",{...wr.useBlockProps.save({className:x,style:S}),children:[(0,Oe.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Oe.jsx)("figure",{className:"wp-block-media-text__media",style:k,children:(w[n]||Oc)()})]}):(0,Oe.jsxs)("div",{...wr.useBlockProps.save({className:x,style:S}),children:[(0,Oe.jsx)("figure",{className:"wp-block-media-text__media",style:k,children:(w[n]||Oc)()}),(0,Oe.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:A1,isEligible(e,t,{block:r}){let{attributes:o}=r;return e.align===void 0&&!!o.className?.includes("alignwide")}},JSe={attributes:uA,supports:dA,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:s,mediaId:l,verticalAlignment:c,imageFill:u,focalPoint:d,linkClass:p,href:m,linkTarget:f,rel:g}=e,h=e.mediaSizeSlug||Ac,b=g||void 0,_=T({[`wp-image-${l}`]:l&&n==="image",[`size-${h}`]:l&&n==="image"}),v=(0,Oe.jsx)("img",{src:i,alt:r,className:_||null});m&&(v=(0,Oe.jsx)("a",{className:p,href:m,target:f,rel:b,children:v}));let w={image:()=>v,video:()=>(0,Oe.jsx)("video",{controls:!0,src:i})},x=T({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),k=u?j7(i,d):{},C;s!==Mf&&(C=o==="right"?`auto ${s}%`:`${s}% auto`);let S={gridTemplateColumns:C};return o==="right"?(0,Oe.jsxs)("div",{...wr.useBlockProps.save({className:x,style:S}),children:[(0,Oe.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Oe.jsx)("figure",{className:"wp-block-media-text__media",style:k,children:(w[n]||Oc)()})]}):(0,Oe.jsxs)("div",{...wr.useBlockProps.save({className:x,style:S}),children:[(0,Oe.jsx)("figure",{className:"wp-block-media-text__media",style:k,children:(w[n]||Oc)()}),(0,Oe.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:A1},e8e={attributes:uA,supports:dA,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:s,mediaId:l,verticalAlignment:c,imageFill:u,focalPoint:d,linkClass:p,href:m,linkTarget:f,rel:g}=e,h=e.mediaSizeSlug||Ac,b=g||void 0,_=T({[`wp-image-${l}`]:l&&n==="image",[`size-${h}`]:l&&n==="image"}),v=(0,Oe.jsx)("img",{src:i,alt:r,className:_||null});m&&(v=(0,Oe.jsx)("a",{className:p,href:m,target:f,rel:b,children:v}));let w={image:()=>v,video:()=>(0,Oe.jsx)("video",{controls:!0,src:i})},x=T({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),k=u?j7(i,d):{},C;s!==Mf&&(C=o==="right"?`auto ${s}%`:`${s}% auto`);let S={gridTemplateColumns:C};return(0,Oe.jsxs)("div",{...wr.useBlockProps.save({className:x,style:S}),children:[(0,Oe.jsx)("figure",{className:"wp-block-media-text__media",style:k,children:(w[n]||Oc)()}),(0,Oe.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:A1},t8e={attributes:{...U7,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,cA.compose)(dne,A1),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:n,mediaPosition:i,mediaType:s,mediaUrl:l,mediaWidth:c,mediaId:u,verticalAlignment:d,imageFill:p,focalPoint:m,linkClass:f,href:g,linkTarget:h,rel:b}=e,_=b||void 0,v=(0,Oe.jsx)("img",{src:l,alt:n,className:u&&s==="image"?`wp-image-${u}`:null});g&&(v=(0,Oe.jsx)("a",{className:f,href:g,target:h,rel:_,children:v}));let w={image:()=>v,video:()=>(0,Oe.jsx)("video",{controls:!0,src:l})},x=(0,wr.getColorClassName)("background-color",t),k=T({"has-media-on-the-right":i==="right","has-background":x||r,[x]:x,"is-stacked-on-mobile":o,[`is-vertically-aligned-${d}`]:d,"is-image-fill":p}),C=p?j7(l,m):{},S;return c!==Mf&&(S=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Oe.jsxs)("div",{className:k,style:{backgroundColor:x?void 0:r,gridTemplateColumns:S},children:[(0,Oe.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(w[s]||Oc)()}),(0,Oe.jsx)("div",{className:"wp-block-media-text__content",children:(0,Oe.jsx)(wr.InnerBlocks.Content,{})})]})}},r8e={attributes:{...U7,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,cA.compose)(dne,A1),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:n,mediaPosition:i,mediaType:s,mediaUrl:l,mediaWidth:c,mediaId:u,verticalAlignment:d,imageFill:p,focalPoint:m}=e,f={image:()=>(0,Oe.jsx)("img",{src:l,alt:n,className:u&&s==="image"?`wp-image-${u}`:null}),video:()=>(0,Oe.jsx)("video",{controls:!0,src:l})},g=(0,wr.getColorClassName)("background-color",t),h=T({"has-media-on-the-right":i==="right",[g]:g,"is-stacked-on-mobile":o,[`is-vertically-aligned-${d}`]:d,"is-image-fill":p}),b=p?j7(l,m):{},_;return c!==Mf&&(_=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Oe.jsxs)("div",{className:h,style:{backgroundColor:g?void 0:r,gridTemplateColumns:_},children:[(0,Oe.jsx)("figure",{className:"wp-block-media-text__media",style:b,children:(f[s]||Oc)()}),(0,Oe.jsx)("div",{className:"wp-block-media-text__content",children:(0,Oe.jsx)(wr.InnerBlocks.Content,{})})]})}},o8e={attributes:{...U7,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:A1,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:n,mediaPosition:i,mediaType:s,mediaUrl:l,mediaWidth:c}=e,u={image:()=>(0,Oe.jsx)("img",{src:l,alt:n}),video:()=>(0,Oe.jsx)("video",{controls:!0,src:l})},d=(0,wr.getColorClassName)("background-color",t),p=T({"has-media-on-the-right":i==="right",[d]:d,"is-stacked-on-mobile":o}),m;return c!==Mf&&(m=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Oe.jsxs)("div",{className:p,style:{backgroundColor:d?void 0:r,gridTemplateColumns:m},children:[(0,Oe.jsx)("figure",{className:"wp-block-media-text__media",children:(u[s]||Oc)()}),(0,Oe.jsx)("div",{className:"wp-block-media-text__content",children:(0,Oe.jsx)(wr.InnerBlocks.Content,{})})]})}},fne=[QSe,XSe,JSe,e8e,t8e,r8e,o8e];var ao=a(L(),1),F1=a(H(),1),q7=a(W(),1),Ro=a(I(),1),Cr=a(F(),1),Z7=a(Ur(),1);var z2=a(ae(),1),_ne=a(br(),1),xne=a(qt(),1);var O1=a(F(),1),Fc=a(I(),1),G7=a(L(),1),hne=a(_e(),1),pA=a(H(),1),mA=a(W(),1),$7=a(Ur(),1),bne=a(br(),1);function W7(e,t){return e?{objectPosition:t?`${Math.round(t.x*100)}% ${Math.round(t.y*100)}%`:"50% 50%"}:{}}var Lo=a(y(),1),n8e=()=>{},a8e=(0,mA.forwardRef)(({isSelected:e,isStackedOnMobile:t,...r},o)=>{let n=(0,hne.useViewportMatch)("small","<");return(0,Lo.jsx)(O1.ResizableBox,{ref:o,showHandle:e&&(!n||!t),...r})});function i8e({mediaId:e,mediaUrl:t,onSelectMedia:r,toggleUseFeaturedImage:o,useFeaturedImage:n}){return(0,Lo.jsx)(Fc.BlockControls,{group:"other",children:(0,Lo.jsx)(Fc.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:F2,onSelect:r,onToggleFeaturedImage:o,useFeaturedImage:n,name:t?(0,G7.__)("Replace"):(0,G7.__)("Add media"),onReset:()=>r(void 0)})})}function gne({className:e,mediaUrl:t,onSelectMedia:r,toggleUseFeaturedImage:o}){let{createErrorNotice:n}=(0,pA.useDispatch)(bne.store),i=l=>{n(l,{type:"snackbar"})},s=l=>{l.length===1&&r({url:(0,$7.createBlobURL)(l[0])})};return(0,Lo.jsx)(Fc.MediaPlaceholder,{icon:(0,Lo.jsx)(Fc.BlockIcon,{icon:$y}),labels:{title:(0,G7.__)("Media area")},className:e,onSelect:r,onToggleFeaturedImage:o,allowedTypes:F2,onFilesPreUpload:s,onError:i,disableMediaButtons:t})}function s8e(e,t){let{className:r,commitWidthChange:o,focalPoint:n,imageFill:i,isSelected:s,isStackedOnMobile:l,mediaAlt:c,mediaId:u,mediaPosition:d,mediaType:p,mediaUrl:m,mediaWidth:f,onSelectMedia:g,onWidthChange:h,enableResize:b,toggleUseFeaturedImage:_,useFeaturedImage:v,featuredImageURL:w,featuredImageAlt:x,refMedia:k}=e,C=!u&&(0,$7.isBlobURL)(m),{toggleSelection:S}=(0,pA.useDispatch)(Fc.store),P=(0,Lo.jsx)(i8e,{onSelectMedia:g,mediaUrl:v&&w?w:m,mediaId:u,toggleUseFeaturedImage:_,useFeaturedImage:v});if(m||w||v){let B=()=>{S(!1)},N=(j,V,G)=>{h(parseInt(G.style.width))},E=(j,V,G)=>{S(!0),o(parseInt(G.style.width))},M={right:b&&d==="left",left:b&&d==="right"},R=p==="image"&&i?W7(m||w,n):{},O={image:()=>v&&w?(0,Lo.jsx)("img",{ref:k,src:w,alt:x,style:R}):m&&(0,Lo.jsx)("img",{ref:k,src:m,alt:c,style:R}),video:()=>(0,Lo.jsx)("video",{controls:!0,ref:k,src:m})};return(0,Lo.jsxs)(a8e,{as:"figure",className:T(r,"editor-media-container__resizer",{"is-transient":C}),size:{width:f+"%"},minWidth:"10%",maxWidth:"100%",enable:M,onResizeStart:B,onResize:N,onResizeStop:E,axis:"x",isSelected:s,isStackedOnMobile:l,ref:t,children:[P,(O[p]||n8e)(),C&&(0,Lo.jsx)(O1.Spinner,{}),!v&&(0,Lo.jsx)(gne,{...e}),!w&&v&&(0,Lo.jsx)(O1.Placeholder,{className:"wp-block-media-text--placeholder-image",style:R,withIllustration:!0})]})}return(0,Lo.jsxs)(Lo.Fragment,{children:[P,(0,Lo.jsx)(gne,{...e})]})}var yne=(0,mA.forwardRef)(s8e);var it=a(y(),1),{ResolutionTool:l8e}=le(Ro.privateApis),vne=e=>Math.max(V2,Math.min(e,100-V2));function kne(e,t){return e?.media_details?.sizes?.[t]?.source_url}function c8e({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,Z7.isBlobURL)(o.url)&&(o.type=(0,Z7.getBlobTypeByURL)(o.url));let n,i;o.media_type?o.media_type==="image"?n="image":n="video":n=o.type,n==="image"&&(i=o.sizes?.large?.url||o.media_details?.sizes?.large?.source_url);let s=e,l=t;if(n==="image"){if(!s)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||V7){case"file":case z7:s=z7;break;case"post":case H7:s=H7;break;case V7:default:s=V7;break}switch(s){case z7:l=o.url;break;case H7:l=o.link;break}}r({mediaAlt:o.alt,mediaId:o.id,mediaType:n,mediaUrl:i||o.url,mediaLink:o.link||void 0,href:l,linkDestination:s,focalPoint:void 0,useFeaturedImage:!1})}}function u8e({image:e,value:t,onChange:r}){let{imageSizes:o}=(0,F1.useSelect)(i=>{let{getSettings:s}=i(Ro.store);return{imageSizes:s().imageSizes}},[]);if(!o?.length)return null;let n=o.filter(({slug:i})=>kne(e,i)).map(({name:i,slug:s})=>({value:s,label:i}));return(0,it.jsx)(l8e,{value:t,defaultValue:Ac,options:n,onChange:r})}function d8e({attributes:e,isSelected:t,setAttributes:r,context:{postId:o,postType:n}}){let{focalPoint:i,href:s,imageFill:l,isStackedOnMobile:c,linkClass:u,linkDestination:d,linkTarget:p,mediaAlt:m,mediaId:f,mediaPosition:g,mediaType:h,mediaUrl:b,mediaWidth:_,mediaSizeSlug:v,rel:w,verticalAlignment:x,allowedBlocks:k,useFeaturedImage:C}=e,[S]=(0,z2.useEntityProp)("postType",n,"featured_media",o),{featuredImageMedia:P}=(0,F1.useSelect)(ce=>({featuredImageMedia:S&&C?ce(z2.store).getEntityRecord("postType","attachment",S,{context:"view"}):void 0}),[S,C]),{image:B}=(0,F1.useSelect)(ce=>({image:f&&t?ce(z2.store).getEntityRecord("postType","attachment",f,{context:"view"}):null}),[t,f]),N=C?P?.source_url:"",E=C?P?.alt_text:"",M=()=>{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})},R=(0,q7.useRef)(),O=ce=>{let{style:ge}=R.current,{x:Qe,y:ye}=ce;ge.objectPosition=`${Qe*100}% ${ye*100}%`},[j,V]=(0,q7.useState)(null),G=c8e({attributes:e,setAttributes:r}),$=ce=>{r(ce)},z=ce=>{V(vne(ce))},K=ce=>{r({mediaWidth:vne(ce)}),V(null)},q=T({"has-media-on-the-right":g==="right","is-selected":t,"is-stacked-on-mobile":c,[`is-vertically-aligned-${x}`]:x,"is-image-fill-element":l}),Y=`${j||_}%`,oe=g==="right"?`1fr ${Y}`:`${Y} 1fr`,Z={gridTemplateColumns:oe,msGridColumns:oe},U=ce=>{r({mediaAlt:ce})},X=ce=>{r({verticalAlignment:ce})},Q=ce=>{let ge=kne(B,ce);if(!ge)return null;r({mediaUrl:ge,mediaSizeSlug:ce})},ie=ee(),{createErrorNotice:me}=(0,F1.useDispatch)(_ne.store),xe=ce=>{me(ce,{type:"snackbar"})},Be=t?(0,it.jsx)(Ro.InspectorControls,{group:"content",children:(0,it.jsx)(Cr.__experimentalToolsPanel,{label:(0,ao.__)("Media"),resetAll:()=>G(void 0),dropdownMenuProps:ie,children:(0,it.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,ao.__)("Media"),hasValue:()=>!!b||!!C,onDeselect:()=>G(void 0),isShownByDefault:!0,children:(0,it.jsx)(Zd,{mediaId:f,mediaUrl:b||N,filename:B?.media_details?.sizes?.full?.file||B?.slug||(0,xne.getFilename)(b),allowedTypes:F2,onSelect:G,onError:xe,onReset:()=>G(void 0),useFeaturedImage:C,onToggleFeaturedImage:M,emptyLabel:(0,ao.__)("Add media")})})})}):null,se=(0,it.jsxs)(Cr.__experimentalToolsPanel,{label:(0,ao.__)("Settings"),resetAll:()=>{r({isStackedOnMobile:!0,imageFill:!1,mediaAlt:"",focalPoint:void 0,mediaWidth:50}),Q(Ac)},dropdownMenuProps:ie,children:[(0,it.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,ao.__)("Media width"),isShownByDefault:!0,hasValue:()=>_!==50,onDeselect:()=>r({mediaWidth:50}),children:(0,it.jsx)(Cr.RangeControl,{label:(0,ao.__)("Media width"),value:j||_,onChange:K,min:V2,max:100-V2})}),(0,it.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,ao.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>r({isStackedOnMobile:!0}),children:(0,it.jsx)(Cr.ToggleControl,{label:(0,ao.__)("Stack on mobile"),checked:c,onChange:()=>r({isStackedOnMobile:!c})})}),h==="image"&&(0,it.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,ao.__)("Crop image to fill"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>r({imageFill:!1}),children:(0,it.jsx)(Cr.ToggleControl,{label:(0,ao.__)("Crop image to fill"),checked:!!l,onChange:()=>r({imageFill:!l})})}),l&&(b||N)&&h==="image"&&(0,it.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,ao.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>r({focalPoint:void 0}),children:(0,it.jsx)(Cr.FocalPointPicker,{label:(0,ao.__)("Focal point"),url:C&&N?N:b,value:i,onChange:ce=>r({focalPoint:ce}),onDragStart:O,onDrag:O})}),h==="image"&&b&&!C&&(0,it.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,ao.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!m,onDeselect:()=>r({mediaAlt:""}),children:(0,it.jsx)(Cr.TextareaControl,{label:(0,ao.__)("Alternative text"),value:m,onChange:U,help:(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Cr.ExternalLink,{href:(0,ao.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,ao.__)("Describe the purpose of the image.")}),(0,it.jsx)("br",{}),(0,ao.__)("Leave empty if decorative.")]})})}),h==="image"&&!C&&(0,it.jsx)(u8e,{image:B,value:v,onChange:Q})]}),he=(0,Ro.useBlockProps)({className:q,style:Z}),ze=(0,Ro.useInnerBlocksProps)({className:"wp-block-media-text__content"},{allowedBlocks:k}),qe=(0,Ro.useBlockEditingMode)();return(0,it.jsxs)(it.Fragment,{children:[Be,(0,it.jsx)(Ro.InspectorControls,{children:se}),(0,it.jsxs)(Ro.BlockControls,{group:"block",children:[qe==="default"&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Ro.BlockVerticalAlignmentControl,{onChange:X,value:x,label:(0,ao.__)("Align media and text vertically")}),(0,it.jsx)(Cr.ToolbarButton,{icon:II,title:(0,ao.__)("Show media on left"),isActive:g==="left",onClick:()=>r({mediaPosition:"left"})}),(0,it.jsx)(Cr.ToolbarButton,{icon:NI,title:(0,ao.__)("Show media on right"),isActive:g==="right",onClick:()=>r({mediaPosition:"right"})})]}),h==="image"&&!C&&(0,it.jsx)(Ro.__experimentalImageURLInputUI,{url:s||"",onChangeUrl:$,linkDestination:d,mediaType:h,mediaUrl:B&&B.source_url,mediaLink:B&&B.link,linkTarget:p,linkClass:u,rel:w})]}),(0,it.jsxs)("div",{...he,children:[g==="right"&&(0,it.jsx)("div",{...ze}),(0,it.jsx)(yne,{className:"wp-block-media-text__media",onSelectMedia:G,onWidthChange:z,commitWidthChange:K,refMedia:R,enableResize:qe==="default",toggleUseFeaturedImage:M,focalPoint:i,imageFill:l,isSelected:t,isStackedOnMobile:c,mediaAlt:m,mediaId:f,mediaPosition:g,mediaType:h,mediaUrl:b,mediaWidth:_,useFeaturedImage:C,featuredImageURL:N,featuredImageAlt:E}),g!=="right"&&(0,it.jsx)("div",{...ze})]})]})}var wne=d8e;var K7={$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,button:!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 V1=a(I(),1);var Hl=a(y(),1),m8e=50,Cne=()=>{};function Sne({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:s,mediaId:l,verticalAlignment:c,imageFill:u,focalPoint:d,linkClass:p,href:m,linkTarget:f,rel:g}=e,h=e.mediaSizeSlug||Ac,b=g||void 0,_=T({[`wp-image-${l}`]:l&&n==="image",[`size-${h}`]:l&&n==="image"}),v=u?W7(i,d):{},w=i?(0,Hl.jsx)("img",{src:i,alt:r,className:_||null,style:v}):null;m&&(w=(0,Hl.jsx)("a",{className:p,href:m,target:f,rel:b,children:w}));let x={image:()=>w,video:()=>(0,Hl.jsx)("video",{controls:!0,src:i})},k=T({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill-element":u}),C;s!==m8e&&(C=o==="right"?`auto ${s}%`:`${s}% auto`);let S={gridTemplateColumns:C};return o==="right"?(0,Hl.jsxs)("div",{...V1.useBlockProps.save({className:k,style:S}),children:[(0,Hl.jsx)("div",{...V1.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Hl.jsx)("figure",{className:"wp-block-media-text__media",children:(x[n]||Cne)()})]}):(0,Hl.jsxs)("div",{...V1.useBlockProps.save({className:k,style:S}),children:[(0,Hl.jsx)("figure",{className:"wp-block-media-text__media",children:(x[n]||Cne)()}),(0,Hl.jsx)("div",{...V1.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}var Lf=a(te(),1),f8e={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:n,customOverlayColor:i,gradient:s,id:l,overlayColor:c,style:u,textColor:d,url:p,useFeaturedImage:m},f)=>{let g={};return n?g={style:{color:{gradient:n}}}:i&&(g={style:{color:{background:i}}}),u?.color?.text&&(g.style={color:{...g.style?.color,text:u.color.text}}),(0,Lf.createBlock)("core/media-text",{align:e,anchor:r,backgroundColor:c,gradient:s,mediaAlt:t,mediaId:l,mediaType:o,mediaUrl:p,textColor:d,useFeaturedImage:m,...g},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:n,mediaAlt:i,mediaId:s,mediaType:l,mediaUrl:c,style:u,textColor:d,useFeaturedImage:p},m)=>{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 g={align:e,alt:i,anchor:t,backgroundType:l,dimRatio:c||p?50:100,focalPoint:o,gradient:n,id:s,overlayColor:r,textColor:d,url:c,useFeaturedImage:p,...f};return(0,Lf.createBlock)("core/cover",g,m)}}]},Tne=f8e;var{name:Ene}=K7,Pne={icon:WB,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,fA.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,fA.__)("\u2014 Kobayashi Issa (\u4E00\u8336)")}}]},transforms:Tne,template:cne,edit:wne,save:Sne,deprecated:fne},g8e=()=>D({name:Ene,metadata:K7,settings:Pne});var hA={};J(hA,{init:()=>b8e,metadata:()=>Q7,name:()=>H2,settings:()=>Fne});var One=a(te(),1);var zu=a(L(),1),Bne=a(W(),1),Ine=a(F(),1),Nne=a(te(),1),Y7=a(H(),1),Rf=a(I(),1),Mne=a(ma(),1),z1=a(y(),1);function Lne({attributes:e,clientId:t}){let{originalName:r,originalUndelimitedContent:o}=e,n=!!o,{hasFreeformBlock:i,hasHTMLBlock:s}=(0,Y7.useSelect)(m=>{let{canInsertBlockType:f,getBlockRootClientId:g}=m(Rf.store);return{hasFreeformBlock:f("core/freeform",g(t)),hasHTMLBlock:f("core/html",g(t))}},[t]),{replaceBlock:l}=(0,Y7.useDispatch)(Rf.store);function c(){l(t,(0,Nne.createBlock)("core/html",{},[],[o]))}let u=[],d,p=(0,z1.jsx)(Ine.Button,{__next40pxDefaultSize:!0,onClick:c,variant:"primary",children:(0,zu.__)("Keep as HTML")},"convert");return n&&!i&&(!r||r==="core/freeform")?s?(d=(0,zu.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely. Alternatively, if you have unsaved changes, you can save them and refresh to use the Classic block."),u.push(p)):d=(0,zu.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, or remove it entirely. Alternatively, if you have unsaved changes, you can save them and refresh to use the Classic block."):n&&s?(d=(0,zu.sprintf)((0,zu.__)('Your site doesn\u2019t include support for the "%s" block. You can leave it as-is, convert it to custom HTML, or remove it.'),r),u.push(p)):d=(0,zu.sprintf)((0,zu.__)('Your site doesn\u2019t include support for the "%s" block. You can leave it as-is or remove it.'),r),(0,z1.jsxs)("div",{...(0,Rf.useBlockProps)({className:"has-warning"}),children:[(0,z1.jsx)(Rf.Warning,{actions:u,children:d}),(0,z1.jsx)(Bne.RawHTML,{children:(0,Mne.safeHTML)(o)})]})}var Q7={$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 Rne=a(W(),1),Dne=a(y(),1);function Ane({attributes:e}){return(0,Dne.jsx)(Rne.RawHTML,{children:e.originalContent})}var{name:H2}=Q7,Fne={name:H2,__experimentalLabel(e,{context:t}){if(t==="accessibility"){let{originalName:r}=e,o=r?(0,One.getBlockType)(r):void 0;return o?o.settings.title||r:""}},edit:Lne,save:Ane},b8e=()=>D({name:H2,metadata:Q7,settings:Fne});var bA={};J(bA,{init:()=>x8e,metadata:()=>J7,name:()=>Gne,settings:()=>$ne});var _p=a(L(),1),H1=a(F(),1),j1=a(I(),1),X7=a(te(),1);var jl=a(y(),1),y8e=(0,_p.__)("Read more");function Vne({attributes:{customText:e,noTeaser:t},insertBlocksAfter:r,setAttributes:o}){let n=ee();return(0,jl.jsxs)(jl.Fragment,{children:[(0,jl.jsx)(j1.InspectorControls,{children:(0,jl.jsx)(H1.__experimentalToolsPanel,{label:(0,_p.__)("Settings"),resetAll:()=>{o({noTeaser:!1})},dropdownMenuProps:n,children:(0,jl.jsx)(H1.__experimentalToolsPanelItem,{label:(0,_p.__)("Hide excerpt"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>o({noTeaser:!1}),children:(0,jl.jsx)(H1.ToggleControl,{label:(0,_p.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>o({noTeaser:!t}),help:i=>i?(0,_p.__)("The excerpt is hidden."):(0,_p.__)("The excerpt is visible.")})})})}),(0,jl.jsx)("div",{...(0,j1.useBlockProps)(),children:(0,jl.jsx)(j1.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,_p.__)('"Read more" text'),value:e,placeholder:y8e,onChange:i=>o({customText:i}),disableLineBreaks:!0,__unstableOnSplitAtEnd:r?()=>r((0,X7.createBlock)((0,X7.getDefaultBlockName)())):void 0})})]})}var J7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/more",title:"More",category:"design",description:"Content before this block is shown in the excerpt on blog and archive pages. Where a theme shows the full content instead, visitors get a \u201CRead more\u201D link to the rest of the post.",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 zne=a(W(),1),Hne=a(y(),1);function jne({attributes:{customText:e,noTeaser:t}}){let r=e?`<!--more ${e}-->`:"<!--more-->";return(0,Hne.jsx)(zne.RawHTML,{children:[r,t?"<!--noteaser-->":""].filter(Boolean).join(`
75 `)})}var Une=a(te(),1),_8e={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,Une.createBlock)("core/more",o)}}]},Wne=_8e;var{name:Gne}=J7,$ne={icon:ZB,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:Wne,edit:Vne,save:jne},x8e=()=>D({name:Gne,metadata:J7,settings:$ne});var QA={};J(QA,{init:()=>ETe,metadata:()=>e9,name:()=>hse,settings:()=>bse});var K9=a(L(),1);var mse=a(H(),1),fse=a(ae(),1),gse=a($o(),1);var e9={$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 vr=a(W(),1),st=a(I(),1),Tp=a(ae(),1),Gl=a(H(),1),io=a(F(),1),Ht=a(L(),1),$9=a(O_(),1);var ise=a(te(),1),sse=a(_e(),1);var U1=a(ae(),1),Kne=a(H(),1);var Xi={name:"core/navigation-link",attributes:{kind:"post-type",type:"page"}},qne=["core/navigation-link/page","core/navigation-link/custom-link"],yA={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},Zne=["postType","wp_navigation",yA],Vc="navigation-overlay";function W1(e){let t=(0,U1.useResourcePermissions)({kind:"postType",name:"wp_navigation",id:e}),{navigationMenu:r,isNavigationMenuResolved:o,isNavigationMenuMissing:n}=(0,Kne.useSelect)(g=>w8e(g,e),[e]),{canCreate:i,canUpdate:s,canDelete:l,isResolving:c,hasResolved:u}=t,{records:d,isResolving:p,hasResolved:m}=(0,U1.useEntityRecords)("postType","wp_navigation",yA),f=e?d?.length>1:d?.length>0;return{navigationMenu:r,isNavigationMenuResolved:o,isNavigationMenuMissing:n,navigationMenus:d,isResolvingNavigationMenus:p,hasResolvedNavigationMenus:m,canSwitchNavigationMenu:f,canUserCreateNavigationMenus:i,isResolvingCanUserCreateNavigationMenus:c,hasResolvedCanUserCreateNavigationMenus:u,canUserUpdateNavigationMenu:s,hasResolvedCanUserUpdateNavigationMenu:e?u:void 0,canUserDeleteNavigationMenu:l,hasResolvedCanUserDeleteNavigationMenu:e?u:void 0}}function w8e(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};let{getEntityRecord:r,getEditedEntityRecord:o,hasFinishedResolution:n}=e(U1.store),i=["postType","wp_navigation",t],s=r(...i),l=o(...i),c=n("getEditedEntityRecord",i),u=l.status==="publish"||l.status==="draft";return{isNavigationMenuResolved:c,isNavigationMenuMissing:c&&(!s||!u),navigationMenu:u?l:null}}var q1=a(F(),1),U2=a(L(),1);var vA=a(O_(),1),Qne=a(W(),1),Xne=a(ae(),1);var Yne=a(L(),1),j2=a(y(),1),C8e=({isVisible:e=!0})=>(0,j2.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__preview",children:(0,j2.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,j2.jsx)(fa,{icon:ym}),(0,Yne.__)("Navigation")]})}),t9=C8e;var Ul=a(F(),1);var Ea=a(L(),1),r9=a($o(),1),G1=a(W(),1),o9=a(ae(),1);var zs=a(y(),1);function S8e(e,t,r){return e?r==="publish"?(0,r9.decodeEntities)(e):(0,Ea.sprintf)((0,Ea.__)("%1$s (%2$s)"),(0,r9.decodeEntities)(e),r):(0,Ea.sprintf)((0,Ea.__)("(no title %s)"),t)}function T8e({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:r,onCreateNew:o,actionLabel:n,createNavigationMenuIsSuccess:i,createNavigationMenuIsError:s}){let l=(0,Ea.__)("Create from '%s'"),[c,u]=(0,G1.useState)(!1);n=n||l;let{records:d}=(0,o9.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{navigationMenus:p,isResolvingNavigationMenus:m,hasResolvedNavigationMenus:f,canUserCreateNavigationMenus:g,canSwitchNavigationMenu:h,isNavigationMenuMissing:b}=W1(e),[_]=(0,o9.useEntityProp)("postType","wp_navigation","title",e),v=(0,G1.useMemo)(()=>p?.map(({id:R,title:O,status:j},V)=>{let G=S8e(O?.rendered,V+1,j);return{value:R,label:G,ariaLabel:(0,Ea.sprintf)(n,G),disabled:c||m||!f}})||[],[p,n,m,f,c]),w=!!p?.length,x=!!d?.length,k=!!h,C=!!g,S=w&&!e,P=!w&&f,B=f&&e===null,N=e&&b,E="";return m?E=(0,Ea.__)("Loading\u2026"):S||P||B||N?E=(0,Ea.__)("Choose or create a Navigation Menu"):E=_,(0,G1.useEffect)(()=>{c&&(i||s)&&u(!1)},[f,i,g,s,c,B,P,S]),(0,zs.jsx)(Ul.DropdownMenu,{label:E,icon:qy,toggleProps:{size:"small"},children:({onClose:R})=>(0,zs.jsxs)(zs.Fragment,{children:[k&&w&&(0,zs.jsx)(Ul.MenuGroup,{label:(0,Ea.__)("Menus"),children:(0,zs.jsx)(Ul.MenuItemsChoice,{value:e,onSelect:O=>{t(O),R()},choices:v})}),C&&x&&(0,zs.jsx)(Ul.MenuGroup,{label:(0,Ea.__)("Import Classic Menus"),children:d?.map(O=>{let j=(0,r9.decodeEntities)(O.name);return(0,zs.jsx)(Ul.MenuItem,{onClick:async()=>{u(!0),await r(O),u(!1),R()},"aria-label":(0,Ea.sprintf)(l,j),disabled:c||m||!f,children:j},O.id)})}),g&&(0,zs.jsx)(Ul.MenuGroup,{label:(0,Ea.__)("Tools"),children:(0,zs.jsx)(Ul.MenuItem,{onClick:async()=>{u(!0),await o(),u(!1),R()},disabled:c||m||!f,children:(0,Ea.__)("Create new Menu")})})]})})}var $1=T8e;var Kn=a(y(),1);function Jne({isSelected:e,currentMenuId:t,clientId:r,canUserCreateNavigationMenus:o=!1,isResolvingCanUserCreateNavigationMenus:n,onSelectNavigationMenu:i,onSelectClassicMenu:s,onCreateEmpty:l}){let{isResolving:c,hasResolved:u}=(0,Xne.useEntityRecords)("root","menu",{per_page:-1,context:"view"});(0,Qne.useEffect)(()=>{e&&(c&&(0,vA.speak)((0,U2.__)("Loading navigation block setup options\u2026")),u&&(0,vA.speak)((0,U2.__)("Navigation block setup options ready.")))},[u,c,e]);let d=c&&n;return(0,Kn.jsx)(Kn.Fragment,{children:(0,Kn.jsxs)(q1.Placeholder,{className:"wp-block-navigation-placeholder",children:[(0,Kn.jsx)(t9,{isVisible:!e}),(0,Kn.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__controls",children:(0,Kn.jsxs)("div",{className:"wp-block-navigation-placeholder__actions",children:[(0,Kn.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,Kn.jsx)(fa,{icon:ym})," ",(0,U2.__)("Navigation")]}),(0,Kn.jsx)("hr",{}),d&&(0,Kn.jsx)(q1.Spinner,{}),(0,Kn.jsx)($1,{currentMenuId:t,clientId:r,onSelectNavigationMenu:i,onSelectClassicMenu:s}),(0,Kn.jsx)("hr",{}),o&&(0,Kn.jsx)(q1.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:l,children:(0,U2.__)("Start empty")})]})})]})})}var _A=a(F(),1),K1=a(L(),1),xA=a(I(),1),eae=a(H(),1),tae=a(ae(),1);var W2=a(A(),1);var Z1=a(y(),1);function zc({icon:e}){return e==="menu"?(0,Z1.jsx)(fa,{icon:$B}):(0,Z1.jsxs)(W2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,Z1.jsx)(W2.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,Z1.jsx)(W2.Rect,{x:"4",y:"15",width:"16",height:"1.5"})]})}function Pa(e,t){return e&&t?e+"//"+t:null}var Ji=a(y(),1);function kA({children:e,id:t,isOpen:r,isResponsive:o,onToggle:n,isHiddenByDefault:i,overlayBackgroundColor:s,overlayTextColor:l,hasIcon:c,icon:u,overlay:d,onNavigateToEntityRecord:p}){let m=(0,eae.useSelect)(x=>x(tae.store).getCurrentTheme()?.stylesheet,[]);if(!o)return e;let f=!!d,g=T("wp-block-navigation__responsive-container",!f&&{"has-text-color":!!l.color||!!l?.class,[(0,xA.getColorClassName)("color",l?.slug)]:!!l?.slug,"has-background":!!s.color||s?.class,[(0,xA.getColorClassName)("background-color",s?.slug)]:!!s?.slug},{"is-menu-open":r,"hidden-by-default":i}),h=f?{}:{color:!l?.slug&&l?.color,backgroundColor:!s?.slug&&s?.color&&s.color},b=T("wp-block-navigation__responsive-container-open",{"always-shown":i}),_=`${t}-modal`,v={className:"wp-block-navigation__responsive-dialog",...r&&{role:"dialog","aria-modal":!0,"aria-label":(0,K1.__)("Menu")}},w=()=>{if(d&&p){let x=Pa(m,d);p({postId:x,postType:"wp_template_part"});return}n(!0)};return(0,Ji.jsxs)(Ji.Fragment,{children:[!r&&(0,Ji.jsxs)(_A.Button,{__next40pxDefaultSize:!0,"aria-haspopup":"true","aria-label":c&&(0,K1.__)("Open menu"),className:b,onClick:w,children:[c&&(0,Ji.jsx)(zc,{icon:u}),!c&&(0,K1.__)("Menu")]}),(0,Ji.jsx)("div",{className:g,style:h,id:_,children:(0,Ji.jsx)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1",children:(0,Ji.jsxs)("div",{...v,children:[(0,Ji.jsxs)(_A.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation__responsive-container-close","aria-label":c&&(0,K1.__)("Close menu"),onClick:()=>n(!1),children:[c&&(0,Ji.jsx)(fa,{icon:um}),!c&&(0,K1.__)("Close")]}),(0,Ji.jsx)("div",{className:"wp-block-navigation__responsive-container-content",id:`${_}-content`,children:e})]})})})]})}var rae=a(ae(),1),Y1=a(I(),1),oae=a(H(),1),nae=a(W(),1);var wA=a(y(),1);function aae({clientId:e,hasCustomPlaceholder:t,orientation:r,templateLock:o}){let{isImmediateParentOfSelectedBlock:n,selectedBlockHasChildren:i,isSelected:s,hasSelectedDescendant:l}=(0,oae.useSelect)(b=>{let{getBlockCount:_,hasSelectedInnerBlock:v,getSelectedBlockClientId:w}=b(Y1.store),x=w();return{isImmediateParentOfSelectedBlock:v(e,!1),selectedBlockHasChildren:!!_(x),hasSelectedDescendant:v(e,!0),isSelected:x===e}},[e]),[c,u,d]=(0,rae.useEntityBlockEditor)("postType","wp_navigation"),p=s||n&&!i,m=(0,nae.useMemo)(()=>(0,wA.jsx)(t9,{}),[]),f=!!c?.length,g=!t&&!f&&!s,h=(0,Y1.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:c,onInput:u,onChange:d,prioritizedInserterBlocks:qne,defaultBlock:Xi,directInsert:!0,orientation:r,templateLock:o,renderAppender:s||n&&!i||l||p?Y1.InnerBlocks.ButtonBlockAppender:!1,placeholder:g?m:void 0,__experimentalCaptureToolbars:!0,__unstableDisableLayoutClassNames:!0});return(0,wA.jsx)("div",{...h})}var iae=a(F(),1),sae=a(ae(),1),lae=a(L(),1),cae=a(y(),1);function uae(){let[e,t]=(0,sae.useEntityProp)("postType","wp_navigation","title");return(0,cae.jsx)(iae.TextControl,{label:(0,lae.__)("Menu name"),value:e,onChange:t})}var mae=a(I(),1),CA=a(F(),1),fae=a(ae(),1),gae=a(H(),1),Df=a(W(),1);function dae(e,t){return!pae(e,t,(r,o)=>{if(o?.name==="core/page-list"&&r==="innerBlocks")return!0})}var pae=(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(!pae(e[o],t[o],r))return!1}else return!1;return!0}return!1};var hae=a(y(),1),E8e={};function bae({blocks:e,createNavigationMenu:t,hasSelection:r}){let o=(0,Df.useRef)();(0,Df.useEffect)(()=>{o?.current||(o.current=e)},[e]);let n=dae(o?.current,e),i=(0,Df.useContext)(CA.Disabled.Context),s=(0,mae.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:r?void 0:!1,defaultBlock:Xi,directInsert:!0}),{isSaving:l,hasResolvedAllNavigationMenus:c}=(0,gae.useSelect)(d=>{if(i)return E8e;let{hasFinishedResolution:p,isSavingEntityRecord:m}=d(fae.store);return{isSaving:m("postType","wp_navigation"),hasResolvedAllNavigationMenus:p("getEntityRecords",Zne)}},[i]);return(0,Df.useEffect)(()=>{i||l||!c||!r||!n||t(null,e)},[e,t,i,l,c,n,r]),(0,hae.jsx)(l?CA.Disabled:"div",{...s})}var a9=a(F(),1),i9=a(ae(),1),yae=a(H(),1),vae=a(W(),1),n9=a(L(),1),Af=a(y(),1);function _ae({onDelete:e}){let[t,r]=(0,vae.useState)(!1),o=(0,i9.useEntityId)("postType","wp_navigation"),{deleteEntityRecord:n}=(0,yae.useDispatch)(i9.store);return(0,Af.jsxs)(Af.Fragment,{children:[(0,Af.jsx)(a9.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{r(!0)},children:(0,n9.__)("Delete menu")}),t&&(0,Af.jsx)(a9.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{n("postType","wp_navigation",o,{force:!0}),e()},onCancel:()=>{r(!1)},confirmButtonText:(0,n9.__)("Delete"),size:"medium",children:(0,n9.__)("Are you sure you want to delete this Navigation Menu?")})]})}var G2=a(W(),1),xae=a(H(),1),kae=a(br(),1);function P8e({name:e,message:t=""}={}){let r=(0,G2.useRef)(),{createWarningNotice:o,removeNotice:n}=(0,xae.useDispatch)(kae.store),i=(0,G2.useCallback)(l=>{r.current||(r.current=e,o(l||t,{id:r.current,type:"snackbar"}))},[r,o,t,e]),s=(0,G2.useCallback)(()=>{r.current&&(n(r.current),r.current=null)},[r,n]);return[i,s]}var s9=P8e;var Hc=a(F(),1),xp=a(L(),1);var es=a(y(),1);function wae({setAttributes:e,hasIcon:t,icon:r}){return(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(Hc.__experimentalToolsPanelItem,{label:(0,xp.__)("Show icon button"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>e({hasIcon:!0}),children:(0,es.jsx)(Hc.ToggleControl,{label:(0,xp.__)("Show icon button"),help:(0,xp.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:o=>e({hasIcon:o}),checked:t})}),(0,es.jsx)(Hc.__experimentalToolsPanelItem,{label:(0,xp.__)("Icon"),isShownByDefault:!0,hasValue:()=>r!=="handle",onDeselect:()=>e({icon:"handle"}),children:(0,es.jsxs)(Hc.__experimentalToggleGroupControl,{className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,xp.__)("Icon"),value:r,onChange:o=>e({icon:o}),isBlock:!0,children:[(0,es.jsx)(Hc.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,xp.__)("handle"),label:(0,es.jsx)(zc,{icon:"handle"})}),(0,es.jsx)(Hc.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,xp.__)("menu"),label:(0,es.jsx)(zc,{icon:"menu"})})]})})]})}var g9=a(F(),1),Gae=a(L(),1),$ae=a(W(),1);var Hs=a(W(),1),Rae=a(_e(),1),d9=a(ae(),1),p9=a(H(),1),ts=a(F(),1),vn=a(L(),1),EA=a($o(),1),Dae=a(br(),1);var Tae=a(W(),1),c9=a(H(),1),Eae=a(ae(),1),Pae=a(I(),1),Bae=a(L(),1),Ff=a(te(),1);function SA(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function TA(e,t,r){if(!e)return;t(SA(e).color);let o=e,n=SA(o).backgroundColor;for(;n==="rgba(0, 0, 0, 0)"&&o.parentNode&&o.parentNode.nodeType===o.parentNode.ELEMENT_NODE;)o=o.parentNode,n=SA(o).backgroundColor;r(n)}function Of(e,t){let{textColor:r,customTextColor:o,backgroundColor:n,customBackgroundColor:i,overlayTextColor:s,customOverlayTextColor:l,overlayBackgroundColor:c,customOverlayBackgroundColor:u,style:d}=e,p={};return t&&l?p.customTextColor=l:t&&s?p.textColor=s:o?p.customTextColor=o:r?p.textColor=r:d?.color?.text&&(p.customTextColor=d.color.text),t&&u?p.customBackgroundColor=u:t&&c?p.backgroundColor=c:i?p.customBackgroundColor=i:n?p.backgroundColor=n:d?.color?.background&&(p.customTextColor=d.color.background),p}function l9(e){return{className:T("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 Cae=(e,t)=>{let r=e.toLowerCase(),o=t.map(i=>i.title.rendered.toLowerCase());if(!o.includes(r))return e;let n=2;for(;o.includes(`${r} ${n}`);)n++;return`${e} ${n}`},Sae=e=>Ih(e).replace(/[^\w-]+/g,"")||"wp-custom-part";function Iae(e){let{saveEntityRecord:t}=(0,c9.useDispatch)(Eae.store),r=(0,c9.useSelect)(n=>le(n(Pae.store)).getPatternBySlug("core/navigation-overlay"),[]);return(0,Tae.useCallback)(async()=>{let n=e.filter(u=>u.title?.rendered),i=Cae((0,Bae.__)("Navigation Overlay"),n),s=Sae(i),l="";if(r?.content){let u=(0,Ff.parse)(r.content,{__unstableSkipMigrationLogs:!0});l=(0,Ff.serialize)(u)}else l=(0,Ff.serialize)([(0,Ff.createBlock)("core/paragraph")]);return await t("postType","wp_template_part",{slug:s,title:i,content:l,area:Vc},{throwOnError:!0})},[e,t,r])}var $2=a(F(),1),Nae=a(L(),1),Mae=a(W(),1),u9=a(y(),1);function B8e({onClear:e,onCreate:t,isCreating:r=!1}){let o=(0,Mae.createInterpolateElement)((0,Nae.__)("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,u9.jsx)($2.Button,{__next40pxDefaultSize:!0,onClick:e,variant:"link",disabled:r,accessibleWhenDisabled:!0}),createButton:(0,u9.jsx)($2.Button,{__next40pxDefaultSize:!0,onClick:t,variant:"link",disabled:r,accessibleWhenDisabled:!0,isBusy:r})});return(0,u9.jsx)($2.Notice,{status:"warning",isDismissible:!1,className:"wp-block-navigation__deleted-overlay-warning",children:o})}var Lae=B8e;var Do=a(y(),1);function PA({overlay:e,overlayMenu:t,setAttributes:r,onNavigateToEntityRecord:o,isCreatingOverlay:n,setIsCreatingOverlay:i}){let s=(0,Rae.useInstanceId)(PA,"wp-block-navigation__overlay-selector-heading"),{records:l,isResolving:c,hasResolved:u}=(0,d9.useEntityRecords)("postType","wp_template_part",{per_page:-1}),{createErrorNotice:d}=(0,p9.useDispatch)(Dae.store),p=(0,p9.useSelect)(M=>M(d9.store).getCurrentTheme()?.stylesheet,[]),[m,f]=(0,Hs.useState)(!1),g=n!==void 0?n:m,h=i!==void 0?i:f,b=(0,Hs.useMemo)(()=>l?l.filter(M=>M.area===Vc):[],[l]),_=Iae(b),v=(0,Hs.useMemo)(()=>!e||!b?null:b.find(M=>M.slug===e),[e,b]),w=(0,Hs.useMemo)(()=>{let M=[{label:(0,vn.__)("Default"),value:""}];if(!u||c)return M;let R=b.map(O=>({label:O.title?.rendered?(0,EA.decodeEntities)(O.title.rendered):O.slug,value:O.slug}));return e&&!v&&R.unshift({label:(0,vn.sprintf)((0,vn.__)("%s (missing)"),e),value:e}),[...M,...R]},[b,u,c,e,v]),x=M=>{r({overlay:M||void 0})},k=()=>{if(!e||!v||!o)return;let M=v.theme||p,O={postId:Pa(M,e),postType:"wp_template_part"};t==="mobile"&&(O.viewport="mobile"),o(O)},C=(0,Hs.useCallback)(async()=>{try{h(!0);let M=await _();if(r({overlay:M.slug}),o){let R=M.theme||p,j={postId:Pa(R,M.slug),postType:"wp_template_part"};t==="mobile"&&(j.viewport="mobile"),o(j)}else h(!1)}catch(M){let R=M instanceof Error&&"code"in M&&M.message&&M.code!=="unknown_error"?M.message:(0,vn.__)("An error occurred while creating the overlay.");d(R,{type:"snackbar"}),h(!1)}},[_,r,o,d,p,h,t]),S=(0,Hs.useCallback)(()=>{r({overlay:void 0})},[r]),P=c||g,B=(0,Hs.useMemo)(()=>e&&u&&!c&&!v,[e,u,c,v]),N=(0,Hs.useMemo)(()=>b.length===0&&u?(0,vn.__)("No overlays found."):(0,vn.__)("Select an overlay for navigation."),[b.length,u]),E=(0,Hs.useMemo)(()=>v?(0,vn.sprintf)((0,vn.__)("Edit overlay: %s"),v.title?.rendered?(0,EA.decodeEntities)(v.title.rendered):v.slug):(0,vn.__)("Edit overlay"),[v]);return(0,Do.jsxs)("div",{className:"wp-block-navigation__overlay-selector",children:[(0,Do.jsx)("h3",{id:s,className:"wp-block-navigation__overlay-selector-header",children:(0,vn.__)("Overlay template")}),u&&(b.length===0||g&&b.length===1)?(0,Do.jsx)(Do.Fragment,{children:(0,Do.jsx)(ts.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:C,disabled:P,accessibleWhenDisabled:!0,isBusy:g,className:"wp-block-navigation__overlay-create-button-prominent",children:(0,vn.__)("Create overlay")})}):(0,Do.jsxs)(Do.Fragment,{children:[(0,Do.jsx)(ts.Button,{size:"small",icon:eh,onClick:C,disabled:P,accessibleWhenDisabled:!0,isBusy:g,label:(0,vn.__)("Create new overlay template"),showTooltip:!0,className:"wp-block-navigation__overlay-create-button"}),(0,Do.jsxs)(ts.__experimentalHStack,{alignment:"flex-start",className:"wp-block-navigation__overlay-selector-controls",children:[(0,Do.jsx)(ts.FlexBlock,{children:(0,Do.jsx)(ts.SelectControl,{label:(0,vn.__)("Overlay template"),hideLabelFromVision:!0,"aria-labelledby":s,value:e||"",options:w,onChange:x,disabled:c,accessibleWhenDisabled:!0,help:N})}),e&&u&&v&&(0,Do.jsx)(ts.FlexItem,{children:(0,Do.jsx)(ts.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:k,disabled:!o,accessibleWhenDisabled:!0,label:E,showTooltip:!0,className:"wp-block-navigation__overlay-edit-button",children:(0,vn.__)("Edit")})})]}),B&&(0,Do.jsx)(Lae,{onClear:S,onCreate:C,isCreating:g})]}),(0,Do.jsx)(ts.__experimentalHStack,{alignment:"flex-start",className:"wp-block-navigation__overlay-help-text-wrapper",children:(0,Do.jsx)(Dm,{children:(0,vn.__)("An overlay template allows you to customize the appearance of the dialog that opens when the menu button is pressed.")})})]})}var Q1=a(F(),1),Vf=a(L(),1),X1=a(y(),1);function Aae({overlayMenu:e,setAttributes:t}){return(0,X1.jsxs)(Q1.__experimentalToggleGroupControl,{label:(0,Vf.__)("Overlay Visibility"),"aria-label":(0,Vf.__)("Configure overlay visibility"),value:e,help:(0,Vf.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:r=>t({overlayMenu:r}),isBlock:!0,children:[(0,X1.jsx)(Q1.__experimentalToggleGroupControlOption,{value:"never",label:(0,Vf.__)("Off")}),(0,X1.jsx)(Q1.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,Vf.__)("Mobile")}),(0,X1.jsx)(Q1.__experimentalToggleGroupControlOption,{value:"always",label:(0,Vf.__)("Always")})]})}var f9=a(F(),1),m9=a(L(),1);var ju=a(F(),1),J1=a(L(),1);var Hu=a(y(),1);function Oae({hasIcon:e,icon:t,setAttributes:r}){return(0,Hu.jsxs)(ju.__experimentalVStack,{spacing:4,children:[(0,Hu.jsx)(ju.ToggleControl,{label:(0,J1.__)("Show icon button"),help:(0,J1.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:o=>r({hasIcon:o}),checked:e}),(0,Hu.jsxs)(ju.__experimentalToggleGroupControl,{className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,J1.__)("Icon"),value:t,onChange:o=>r({icon:o}),isBlock:!0,children:[(0,Hu.jsx)(ju.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,J1.__)("handle"),label:(0,Hu.jsx)(zc,{icon:"handle"})}),(0,Hu.jsx)(ju.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,J1.__)("menu"),label:(0,Hu.jsx)(zc,{icon:"menu"})})]})]})}var Yn=a(y(),1);function Fae({isResponsive:e,overlayMenuPreview:t,setOverlayMenuPreview:r,hasIcon:o,icon:n,setAttributes:i,overlayMenuPreviewClasses:s,overlayMenuPreviewId:l,containerStyle:c}){return e?(0,Yn.jsxs)(Yn.Fragment,{children:[(0,Yn.jsxs)(f9.Button,{__next40pxDefaultSize:!0,className:s,onClick:()=>r(!t),"aria-label":(0,m9.__)("Overlay menu controls"),"aria-controls":l,"aria-expanded":t,children:[o&&(0,Yn.jsxs)(Yn.Fragment,{children:[(0,Yn.jsx)(zc,{icon:n}),(0,Yn.jsx)(fa,{icon:um})]}),!o&&(0,Yn.jsxs)(Yn.Fragment,{children:[(0,Yn.jsx)("span",{children:(0,m9.__)("Menu")}),(0,Yn.jsx)("span",{children:(0,m9.__)("Close")})]})]}),t&&(0,Yn.jsx)(f9.__experimentalVStack,{id:l,spacing:4,style:c,children:(0,Yn.jsx)(Oae,{hasIcon:o,icon:n,setAttributes:i})})]}):null}var Vae=a(H(),1),zae=a(ae(),1),BA=a(W(),1),Hae=a(te(),1),jae=a(F(),1),Uae=a(L(),1),IA=a(I(),1);var zf=a(y(),1);function Wae({overlay:e,currentTheme:t}){let r=(0,BA.useMemo)(()=>!e||!t?null:Pa(t,e),[t,e]),{content:o,editedBlocks:n,hasResolved:i}=(0,Vae.useSelect)(l=>{if(!r)return{content:null,editedBlocks:null,hasResolved:!0};let{getEditedEntityRecord:c,hasFinishedResolution:u}=l(zae.store),d=c("postType","wp_template_part",r,{context:"view"});return{content:d?.content,editedBlocks:d?.blocks,hasResolved:u("getEditedEntityRecord",["postType","wp_template_part",r,{context:"view"}])}},[r]),s=(0,BA.useMemo)(()=>r?n&&n.length>0?n:o&&typeof o=="string"?(0,Hae.parse)(o):[]:null,[r,n,o]);return e?i?(0,zf.jsx)("div",{className:"wp-block-navigation__overlay-preview","aria-label":(0,Uae.__)("Navigation Overlay template part preview"),role:"region",children:(0,zf.jsx)(IA.BlockPreview.Async,{placeholder:(0,zf.jsx)("div",{className:"wp-block-navigation__overlay-preview-placeholder"}),children:(0,zf.jsx)(IA.BlockPreview,{blocks:s,viewportWidth:400,minHeight:200})})}):(0,zf.jsx)("div",{className:"wp-block-navigation__overlay-preview-loading",children:(0,zf.jsx)(jae.Spinner,{})}):null}var kp=a(y(),1);function qae({overlayMenu:e,overlay:t,setAttributes:r,onNavigateToEntityRecord:o,overlayMenuPreview:n,setOverlayMenuPreview:i,hasIcon:s,icon:l,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u,isResponsive:d,currentTheme:p,hasOverlays:m}){let[f,g]=(0,$ae.useState)(!1);return(0,kp.jsx)(g9.PanelBody,{title:(0,Gae.__)("Overlay"),initialOpen:!0,children:(0,kp.jsxs)(g9.__experimentalVStack,{spacing:4,children:[(0,kp.jsx)(Aae,{overlayMenu:e,setAttributes:r}),e!=="never"&&(0,kp.jsx)(Fae,{isResponsive:d,overlayMenuPreview:n,setOverlayMenuPreview:i,hasIcon:s,icon:l,setAttributes:r,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u}),e!=="never"&&(0,kp.jsx)(PA,{overlay:t,overlayMenu:e,setAttributes:r,onNavigateToEntityRecord:o,isCreatingOverlay:f,setIsCreatingOverlay:g}),e!=="never"&&t&&m&&!f&&(0,kp.jsx)(Wae,{overlay:t,currentTheme:p})]})})}var v9=a(H(),1),MA=a(ae(),1),t0=a(W(),1),jc=a(L(),1);var q2=a(te(),1),Yae=a(Kd(),1);var NA=a(W(),1),h9=a(I(),1),Zae=a(H(),1),Kae=a(ae(),1);function e0(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 rs({clientId:e,attributes:t}){let{updateBlockBindings:r}=(0,h9.useBlockBindingsUtils)(e),{metadata:o,id:n,kind:i,type:s}=t,l=(0,h9.useBlockEditingMode)(),c=!!o?.bindings?.url&&!!n,u=i==="post-type"?"core/post-data":"core/term-data",d=c&&o?.bindings?.url?.source===u,{isBoundEntityAvailable:p,entityRecord:m}=(0,Zae.useSelect)(h=>{if(!d||!n)return{isBoundEntityAvailable:!1,entityRecord:null};let b=i==="post-type",_=i==="taxonomy";if(!b&&!_)return{isBoundEntityAvailable:!1,entityRecord:null};if(l==="disabled")return{isBoundEntityAvailable:!0,entityRecord:null};let{getEntityRecord:v,hasFinishedResolution:w}=h(Kae.store),x=_?"taxonomy":"postType",k=s==="tag"?"post_tag":s,C=v(x,k,n);return{isBoundEntityAvailable:w("getEntityRecord",[x,k,n])?C!==void 0:!0,entityRecord:C||null}},[i,s,n,d,l]),f=(0,NA.useCallback)(()=>{c&&r({url:void 0})},[r,c]),g=(0,NA.useCallback)(h=>{let b=h?.kind??i;if(b)try{let _=e0(b);r(_)}catch(_){console.warn("Failed to create entity binding:",_.message)}},[r,i]);return{hasUrlBinding:d,isBoundEntityAvailable:p,entityRecord:m,clearBinding:f,createBinding:g}}function Qae(e){if(!e)return null;let t=N8e(e),r=Xae(t);return(0,Yae.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",r,e)}function Xae(e,t=0){let r={};return{innerBlocks:[...e].sort((i,s)=>i.menu_order-s.menu_order).map(i=>{if(i.type==="block"){let[p]=(0,q2.parse)(i.content.raw);return p||(0,q2.createBlock)("core/freeform",{content:i.content})}let s=i.children?.length?"core/navigation-submenu":"core/navigation-link",l=I8e(i,s,t),{innerBlocks:c=[],mapping:u={}}=i.children?.length?Xae(i.children,t+1):{};r={...r,...u};let d=(0,q2.createBlock)(s,l,c);return r[i.id]=d.clientId,d}),mapping:r}}function I8e({title:e,xfn:t,classes:r,attr_title:o,object:n,object_id:i,description:s,url:l,type:c,target:u},d,p){n&&n==="post_tag"&&(n="tag");let m=c?.replace("_","-")||"custom";return{label:e?.rendered||"",...n?.length&&{type:n},kind:m,url:l||"",...t?.length&&t.join(" ").trim()&&{rel:t.join(" ").trim()},...r?.length&&r.join(" ").trim()&&{className:r.join(" ").trim()},...o?.length&&{title:o},...i&&(m==="post-type"||m==="taxonomy")&&{id:i,metadata:{bindings:e0(m)}},...s?.length&&{description:s},...u==="_blank"&&{opensInNewTab:!0},...d==="core/navigation-submenu"&&{isTopLevelItem:p===0},...d==="core/navigation-link"&&{isTopLevelLink:p===0}}}function N8e(e,t="id",r="parent"){let o=Object.create(null),n=[];for(let i of e)o[i[t]]={...i,children:[]},i[r]?(o[i[r]]=o[i[r]]||{},o[i[r]].children=o[i[r]].children||[],o[i[r]].children.push(o[i[t]])):n.push(o[i[t]]);return n}var LA="success",y9="error",_9="pending",M8e="idle",b9=null;function L8e(e,{throwOnError:t=!1}={}){let r=(0,v9.useRegistry)(),{editEntityRecord:o}=(0,v9.useDispatch)(MA.store),[n,i]=(0,t0.useState)(M8e),[s,l]=(0,t0.useState)(null),c=(0,t0.useCallback)(async(d,p,m="publish")=>{let f,g;try{g=await r.resolveSelect(MA.store).getMenuItems({menus:d,per_page:-1,context:"view"})}catch(b){throw new Error((0,jc.sprintf)((0,jc.__)('Unable to fetch classic menu "%s" from API.'),p),{cause:b})}if(g===null)throw new Error((0,jc.sprintf)((0,jc.__)('Unable to fetch classic menu "%s" from API.'),p));let{innerBlocks:h}=Qae(g);try{f=await e(p,h,m),await o("postType","wp_navigation",f.id,{status:"publish"},{throwOnError:!0})}catch(b){throw new Error((0,jc.sprintf)((0,jc.__)('Unable to create Navigation Menu "%s".'),p),{cause:b})}return f},[e,o,r]);return{convert:(0,t0.useCallback)(async(d,p,m)=>{if(b9!==d){if(b9=d,!d||!p){l("Unable to convert menu. Missing menu details."),i(y9);return}return i(_9),l(null),await c(d,p,m).then(f=>(i(LA),b9=null,f)).catch(f=>{if(l(f?.message),i(y9),b9=null,t)throw new Error((0,jc.sprintf)((0,jc.__)('Unable to create Navigation Menu "%s".'),p),{cause:f})})}},[c,t]),status:n,error:s}}var Jae=L8e;var die=a(te(),1),pie=a(ae(),1),mie=a(H(),1),o0=a(W(),1);var nie=a(F(),1),aie=a(ae(),1),iie=a(H(),1),x9=a(W(),1),Z2=a(L(),1);var eie=a(I(),1),tie=a(ae(),1),rie=a(H(),1);var r0=e=>e==="header"?yB:e==="footer"?uB:e==="sidebar"?XI:e==="navigation-overlay"?KB:jv;function oie(e){return(0,rie.useSelect)(t=>{if(!e)return;let{getBlock:r,getBlockParentsByBlockName:o}=t(eie.store),i=o(e,"core/template-part",!0);if(!i?.length)return;let{getCurrentTheme:s,getEditedEntityRecord:l}=t(tie.store),c=s(),d=(c?.default_template_part_areas||[]).map(p=>({...p,icon:r0(p.icon)}));for(let p of i){let m=r(p),{theme:f=c?.stylesheet,slug:g}=m.attributes,h=Pa(f,g),b=l("postType","wp_template_part",h);if(b?.area)return d.find(_=>_.area!=="uncategorized"&&_.area===b.area)?.label}},[e])}var R8e=["postType","wp_navigation",{status:"draft",per_page:-1}],D8e=["postType","wp_navigation",{per_page:-1,status:"publish"}];function sie(e){let t=(0,x9.useContext)(nie.Disabled.Context),r=oie(t?void 0:e),o=(0,iie.useRegistry)();return(0,x9.useCallback)(async()=>{if(t)return"";let{getEntityRecords:n}=o.resolveSelect(aie.store),[i,s]=await Promise.all([n(...R8e),n(...D8e)]),l=r?(0,Z2.sprintf)((0,Z2.__)("%s menu"),r):(0,Z2.__)("Menu"),c=[...i,...s].reduce((d,p)=>p?.title?.raw?.startsWith(l)?d+1:d,0);return(c>0?`${l} ${c+1}`:l)||""},[t,r,o])}var lie="success",k9="error",cie="pending",uie="idle";function fie(e){let[t,r]=(0,o0.useState)(uie),[o,n]=(0,o0.useState)(null),[i,s]=(0,o0.useState)(null),{saveEntityRecord:l,editEntityRecord:c}=(0,mie.useDispatch)(pie.store),u=sie(e);return{create:(0,o0.useCallback)(async(p=null,m=[],f)=>{if(p&&typeof p!="string")throw s("Invalid title supplied when creating Navigation Menu."),r(k9),new Error("Value of supplied title argument was not a string.");r(cie),n(null),s(null),p||(p=await u().catch(h=>{throw s(h?.message),r(k9),new Error("Failed to create title when saving new Navigation Menu.",{cause:h})}));let g={title:p,content:(0,die.serialize)(m),status:f};return l("postType","wp_navigation",g).then(h=>(n(h),r(lie),f!=="publish"&&c("postType","wp_navigation",h.id,{status:"publish"}),h)).catch(h=>{throw s(h?.message),r(k9),new Error("Unable to save new Navigation Menu",{cause:h})})},[l,c,u]),status:t,value:o,error:i,isIdle:t===uie,isPending:t===cie,isSuccess:t===lie,isError:t===k9}}var gie=a(H(),1),hie=a(I(),1),A8e=[];function bie(e){return(0,gie.useSelect)(t=>{let{getBlock:r,getBlocks:o,hasSelectedInnerBlock:n}=t(hie.store),i=r(e).innerBlocks,s=!!i?.length,l=s?A8e:o(e);return{innerBlocks:s?i:l,hasUncontrolledInnerBlocks:s,uncontrolledInnerBlocks:i,controlledInnerBlocks:l,isInnerBlockSelected:n(e,!0)}},[e])}var yie=a(qt(),1),w9=a(F(),1),vie=a(L(),1),_ie=a(y(),1),O8e=({className:e="",disabled:t,isMenuItem:r=!1})=>{let o=w9.Button;return r&&(o=w9.MenuItem),(0,_ie.jsx)(o,{variant:"link",disabled:t,className:e,href:(0,yie.addQueryArgs)("edit.php",{post_type:"wp_navigation"}),children:(0,vie.__)("Manage menus")})},xie=O8e;var Sp=a(I(),1),lx=a(F(),1),H9=a(H(),1),Cp=a(L(),1),Jie=a(W(),1);var kie=a(I(),1),S9=a(F(),1),wie=a(L(),1),T9=a(W(),1),C9=a(y(),1);function F8e({onCreateNew:e,isNotice:t=!1}){let[r,o]=(0,T9.useState)(!1),n=()=>{o(!0),e()},i=(0,T9.createInterpolateElement)((0,wie.__)("Navigation Menu has been deleted or is unavailable. <button>Create a new Menu?</button>"),{button:(0,C9.jsx)(S9.Button,{__next40pxDefaultSize:!0,onClick:n,variant:"link",disabled:r,accessibleWhenDisabled:!0})});return t?(0,C9.jsx)(S9.Notice,{status:"warning",isDismissible:!1,children:i}):(0,C9.jsx)(kie.Warning,{children:i})}var E9=F8e;var Hf=a(te(),1);var os=a(F(),1),n0=a(H(),1),Wl=a(L(),1),jf=a(I(),1);var Qo=a(y(),1),V8e={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},z8e=["core/navigation-link","core/navigation-submenu"];function H8e({clientId:e,onClose:t,isDisabled:r,updateExpansion:o,setInsertedBlockClientId:n}){let{insertBlock:i,replaceBlock:s,replaceInnerBlocks:l}=(0,n0.useDispatch)(jf.store),{getBlock:c}=(0,n0.useSelect)(jf.store);return(0,Qo.jsx)(os.MenuItem,{icon:im,disabled:r,onClick:()=>{let d=(0,Hf.createBlock)(Xi.name,Xi.attributes),p=c(e);if(p.name==="core/navigation-submenu")i(d,p.innerBlocks.length,e,!1);else{let m=(0,Hf.createBlock)("core/navigation-submenu",p.attributes,p.innerBlocks);s(e,m),l(m.clientId,[d],!1)}n(d.clientId),o({type:"expand",clientIds:[e]}),t()},children:(0,Wl.__)("Add submenu link")})}function Cie({clientId:e,updateExpansion:t,setInsertedBlockClientId:r,...o}){let{moveBlocksDown:n,moveBlocksUp:i,removeBlocks:s,duplicateBlocks:l,insertBeforeBlock:c,insertAfterBlock:u}=(0,n0.useDispatch)(jf.store),d=(0,Wl.sprintf)((0,Wl.__)("Remove %s"),(0,jf.BlockTitle)({clientId:e,maximumLength:25})),{blockName:p,rootClientId:m,canDuplicate:f,canInsertBlock:g,isFirst:h,isLast:b}=(0,n0.useSelect)(v=>{let{getBlockRootClientId:w,getBlockName:x,canInsertBlockType:k,getDirectInsertBlock:C,getBlockIndex:S,getBlockCount:P}=v(jf.store),{getDefaultBlockName:B}=v(Hf.store),N=w(e),E=x(e),M=k(B(),N),R=N?C(N):null;return{blockName:E,rootClientId:N,canDuplicate:!!E&&(0,Hf.hasBlockSupport)(E,"multiple",!0)&&k(E,N),canInsertBlock:(M||!!R)&&!!E&&k(E,N),isFirst:S(e)===0,isLast:S(e)===P(N)-1}},[e]),_=!z8e.includes(p);return(0,Qo.jsx)(os.DropdownMenu,{icon:qy,label:(0,Wl.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:V8e,noIcons:!0,...o,children:({onClose:v})=>(0,Qo.jsxs)(Qo.Fragment,{children:[(0,Qo.jsxs)(os.MenuGroup,{children:[(0,Qo.jsx)(os.MenuItem,{icon:OP,disabled:h,accessibleWhenDisabled:!0,onClick:()=>{i([e],m),v()},children:(0,Wl.__)("Move up")}),(0,Qo.jsx)(os.MenuItem,{icon:jb,disabled:b,accessibleWhenDisabled:!0,onClick:()=>{n([e],m),v()},children:(0,Wl.__)("Move down")}),(0,Qo.jsx)(H8e,{clientId:e,onClose:v,isDisabled:_,updateExpansion:t,setInsertedBlockClientId:r}),f&&(0,Qo.jsx)(os.MenuItem,{onClick:()=>{l([e]),v()},children:(0,Wl.__)("Duplicate")}),g&&(0,Qo.jsxs)(Qo.Fragment,{children:[(0,Qo.jsx)(os.MenuItem,{onClick:()=>{c(e),v()},children:(0,Wl.__)("Add before")}),(0,Qo.jsx)(os.MenuItem,{onClick:()=>{u(e),v()},children:(0,Wl.__)("Add after")})]})]}),(0,Qo.jsx)(os.MenuGroup,{children:(0,Qo.jsx)(os.MenuItem,{onClick:()=>{s([e],!1),v()},children:d})})]})})}var qA=a(I(),1),F9=a(H(),1);var Jo=a(F(),1),sr=a(L(),1),Uie=a(ma(),1),tx=a(I(),1),D9=a(H(),1),Wie=a(ae(),1);var Tie=a(W(),1),Eie=a(H(),1),Pie=a(I(),1),Bie=a(ma(),1),Iie=a(P9(),1);var RA=a(P9(),1),K2=a(qt(),1),j8e=(e,t)=>{if(!e||!t)return!1;let r=g=>g?g.replace(/\/+$/,""):"",o=(g,h=null)=>{try{let b=h||(typeof window<"u"?window.location.origin:"https://wordpress.org");return new URL(g,b)}catch{return null}},n=o(e);if(!n)return!0;let i=o(t,e);if(!i)return!0;let s=n.hostname,l=i.hostname,c=r((0,K2.getPath)(n.toString())),u=r((0,K2.getPath)(i.toString()));if(s!==l||c!==u)return!0;let d=n.searchParams.get("p"),p=i.searchParams.get("p");if(d&&p&&d!==p)return!0;let m=n.searchParams.get("page_id"),f=i.searchParams.get("page_id");return!!(m&&f&&m!==f||d&&f||m&&p)},Y2=(e={},t,r={})=>{let{label:o="",kind:n="",type:i=""}=r,{title:s="",label:l="",url:c,opensInNewTab:u,id:d,kind:p=n,type:m=i}=e,f=s||l,g=f.replace(/http(s?):\/\//gi,""),h=c?.replace(/http(s?):\/\//gi,"")??"",_=f&&f!==o&&g!==h?(0,RA.escapeHTML)(f):o||(0,RA.escapeHTML)(h),v=m==="post_tag"?"tag":m.replace("-","_"),w=["post","page","tag","category"].indexOf(v)>-1,k=!p&&!w||p==="custom"?"custom":p,C={...c!==void 0?{url:c&&encodeURI((0,K2.safeDecodeURI)(c))}:{},..._&&{label:_},...u!==void 0&&{opensInNewTab:u},...k&&{kind:k},...v&&v!=="URL"&&{type:v}};c&&!d&&r.id?j8e(r.url,c)&&(C.id=void 0,C.kind="custom",C.type="custom"):d&&Number.isInteger(d)?C.id=d:r.id&&(C.kind=k,C.type=v),t(C);let S="id"in C?C.id:r.id,P="kind"in C?C.kind:r.kind;return{isEntityLink:!!S&&P!=="custom",attributes:C}};function Uf({clientId:e,attributes:t,setAttributes:r,allowTextUpdate:o=!1}){let{updateBlockAttributes:n}=(0,Eie.useDispatch)(Pie.store),{hasUrlBinding:i,createBinding:s,clearBinding:l}=rs({clientId:e,attributes:t});return(0,Tie.useCallback)(c=>{if(!c)return;let u={url:c.url,kind:c.kind,type:c.type,id:c.id},d=t.label?(0,Bie.__unstableStripHTML)(t.label):"",p=c.title??"",m=o&&c.title!==void 0&&p!==d,f=m?{label:(0,Iie.escapeHTML)(p)}:{};if((!t.label||t.label===""||m)&&(u.title=c.title),!c.id&&i)l(),n(e,{url:c.url,kind:"custom",type:"custom",id:void 0,...f});else{let{isEntityLink:h,attributes:b}=Y2(u,r,t);h?s(b):l(),Object.keys(f).length&&n(e,f)}},[t,o,e,i,s,l,r,n])}var L9=a(ma(),1),Wf=a(F(),1),J2=a(L(),1),R9=a(I(),1),Qn=a(W(),1),Aie=a(ae(),1);var zA=a(_e(),1);var Oie=a(qt(),1);var di=a(F(),1),ns=a(L(),1),X2=a(H(),1),N9=a(ae(),1),Mie=a(br(),1),AA=a($o(),1),OA=a(W(),1);var Nie=a(F(),1),B9=a(L(),1);var Q2=a(_e(),1);var wp=a(y(),1);function U8e({className:e,onBack:t}){return(0,wp.jsx)(Nie.Button,{className:e,icon:(0,B9.isRTL)()?RP:NP,onClick:r=>{r.preventDefault(),t()},size:"small",children:(0,B9.__)("Back")})}function DA({className:e,title:t,description:r,onBack:o,children:n}){let i=(0,Q2.useInstanceId)(DA,"link-ui-dialog-title"),s=(0,Q2.useInstanceId)(DA,"link-ui-dialog-description"),l=(0,Q2.useFocusOnMount)("firstElement"),c=`${e}__back`;return(0,wp.jsxs)("div",{className:e,role:"dialog","aria-labelledby":i,"aria-describedby":s,ref:l,children:[(0,wp.jsxs)(ln,{children:[(0,wp.jsx)("h2",{id:i,children:t}),(0,wp.jsx)("p",{id:s,children:r})]}),(0,wp.jsx)(U8e,{className:c,onBack:o}),n]})}var I9=DA;var js=a(y(),1);function Lie({postType:e,onBack:t,onPageCreated:r,initialTitle:o=""}){let[n,i]=(0,OA.useState)(o),[s,l]=(0,OA.useState)(!0),c=n.trim().length>0,{lastError:u,isSaving:d}=(0,X2.useSelect)(b=>({lastError:b(N9.store).getLastEntitySaveError("postType",e),isSaving:b(N9.store).isSavingEntityRecord("postType",e)}),[e]),{saveEntityRecord:p}=(0,X2.useDispatch)(N9.store),{createSuccessNotice:m,createErrorNotice:f}=(0,X2.useDispatch)(Mie.store);async function g(b){if(b.preventDefault(),!(d||!c))try{let _=await p("postType",e,{title:n,status:s?"publish":"draft"},{throwOnError:!0});if(_){let v={id:_.id,type:e,title:(0,AA.decodeEntities)(_.title.rendered),url:_.link,kind:"post-type"};m((0,ns.sprintf)((0,ns.__)("%s page created successfully."),(0,AA.decodeEntities)(_.title.rendered)),{type:"snackbar",id:"page-created-success"}),r(v)}}catch{f((0,ns.__)("Failed to create page. Please try again."),{type:"snackbar",id:"page-created-error"})}}let h=d||!c;return(0,js.jsx)(I9,{className:"link-ui-page-creator",title:(0,ns.__)("Create page"),description:(0,ns.__)("Create a new page to add to your Navigation."),onBack:t,children:(0,js.jsx)(di.__experimentalVStack,{className:"link-ui-page-creator__inner",spacing:4,children:(0,js.jsx)("form",{onSubmit:g,children:(0,js.jsxs)(di.__experimentalVStack,{spacing:4,children:[(0,js.jsx)(di.TextControl,{label:(0,ns.__)("Title"),onChange:i,placeholder:(0,ns.__)("No title"),value:n}),(0,js.jsx)(di.CheckboxControl,{label:(0,ns.__)("Publish"),help:(0,ns.__)("Turn off to save as a draft. Drafts won't appear on your site until published."),checked:s,onChange:l}),u&&(0,js.jsx)(di.Notice,{status:"error",isDismissible:!1,children:u.message}),(0,js.jsxs)(di.__experimentalHStack,{spacing:2,justify:"flex-end",children:[(0,js.jsx)(di.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,disabled:d,accessibleWhenDisabled:!0,children:(0,ns.__)("Cancel")}),(0,js.jsx)(di.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:d,"aria-disabled":h,children:(0,ns.__)("Create page")})]})]})})})})}var FA=a(L(),1),Rie=a(H(),1),M9=a(I(),1);var VA=a(y(),1),{PrivateQuickInserter:W8e}=le(M9.privateApis);function G8e({clientId:e,onBack:t,onBlockInsert:r}){let{rootBlockClientId:o}=(0,Rie.useSelect)(n=>{let{getBlockRootClientId:i}=n(M9.store);return{rootBlockClientId:i(e)}},[e]);return e?(0,VA.jsx)(I9,{className:"link-ui-block-inserter",title:(0,FA.__)("Add block"),description:(0,FA.__)("Choose a block to add to your Navigation."),onBack:t,children:(0,VA.jsx)(W8e,{rootClientId:o,clientId:e,isAppender:!1,prioritizePatterns:!1,selectBlockOnInsert:!r,onSelect:r||void 0,hasSearch:!1})}):null}var Die=G8e;var pi=a(y(),1);function HA(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 $8e(e,t){let{label:r,url:o,opensInNewTab:n,type:i,kind:s,id:l}=e.link,{entityRecord:c,hasBinding:u,isEntityAvailable:d}=e.entity||{},{image:p,badges:m}=ex({url:o,entityRecord:c,type:i,hasBinding:u,isEntityAvailable:d}),{clientId:f}=e,g=i||"page",[h,b]=(0,Qn.useState)(!1),[_,v]=(0,Qn.useState)(!1),[w,x]=(0,Qn.useState)(null),[k,C]=(0,Qn.useState)(""),S=(0,Qn.useRef)(""),P=z=>{S.current=z,C(z)},B=(0,Qn.useRef)(),N=(0,Qn.useRef)(),E=(0,Qn.useRef)(),M=(0,Aie.useResourcePermissions)({kind:"postType",name:g}),{isBoundEntityAvailable:R}=rs({clientId:f,attributes:e.link}),O=(0,Qn.useMemo)(()=>({url:o,opensInNewTab:n,title:r&&(0,L9.__unstableStripHTML)(r),entityTitle:c?.title?.rendered||c?.name,kind:s,type:i,id:l,image:p,badges:m}),[r,n,o,s,i,l,p,m,c]),j=z=>{e.onChange(z),v(!1),x(!0),P("")},V=(0,zA.useInstanceId)(Uu,"link-ui-link-control__title"),G=(0,zA.useInstanceId)(Uu,"link-ui-link-control__description");(0,Qn.useEffect)(()=>{w&&B.current&&(w?.current?w.current.focus():(L9.focus.tabbable.find(B.current)[0]||B.current).focus(),x(!1))},[w]);let $=(0,R9.useBlockEditingMode)();return(0,pi.jsxs)(Wf.Popover,{ref:t,placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0,children:[!h&&!_&&(0,pi.jsxs)("div",{ref:B,role:"dialog","aria-labelledby":V,"aria-describedby":G,children:[(0,pi.jsxs)(ln,{children:[(0,pi.jsx)("h2",{id:V,children:(0,J2.__)("Add link")}),(0,pi.jsx)("p",{id:G,children:(0,J2.__)("Search for and add a link to your Navigation.")})]}),(0,pi.jsx)(R9.LinkControl,{hasTextControl:!0,hasRichPreviews:!0,value:O,showInitialSuggestions:!0,withCreateSuggestion:!1,noDirectEntry:!!i,noURLSuggestion:!!i,suggestionsQuery:HA(i,s),onChange:e.onChange,onInputChange:z=>{S.current=z},inputValue:k,onRemove:e.onRemove,onCancel:e.onCancel,handleEntities:R,forceIsEditingLink:O?.url?!1:void 0,renderControlBottom:()=>O?.url?.length?null:(0,pi.jsx)(q8e,{addPageButtonRef:N,addBlockButtonRef:E,setAddingBlock:()=>{b(!0)},setAddingPage:()=>{v(!0)},canAddPage:$!=="disabled"&&M?.canCreate&&i==="page",canAddBlock:$!=="disabled"})})]}),h&&(0,pi.jsx)(Die,{clientId:e.clientId,onBack:()=>{b(!1),x(E),P(S.current)},onBlockInsert:e?.onBlockInsert}),_&&(0,pi.jsx)(Lie,{postType:g,onBack:()=>{v(!1),x(N),P(S.current)},onPageCreated:j,initialTitle:S.current&&!(0,Oie.isURL)(S.current)?S.current:""})]})}var Uu=(0,Qn.forwardRef)($8e),q8e=({addPageButtonRef:e,addBlockButtonRef:t,setAddingBlock:r,setAddingPage:o,canAddPage:n,canAddBlock:i})=>{let s="listbox";return!n&&!i?null:(0,pi.jsxs)(Wf.__experimentalVStack,{spacing:0,className:"link-ui-tools",children:[n&&(0,pi.jsx)(Wf.Button,{__next40pxDefaultSize:!0,ref:e,icon:eh,onClick:l=>{l.preventDefault(),o(!0)},"aria-haspopup":s,children:(0,J2.__)("Create page")}),i&&(0,pi.jsx)(Wf.Button,{__next40pxDefaultSize:!0,ref:t,icon:eh,onClick:l=>{l.preventDefault(),r(!0)},"aria-haspopup":s,children:(0,J2.__)("Add block")})]})};var _n=a(L(),1),WA=a(qt(),1),Fie=a(I(),1),jA=a(H(),1),UA=a(ae(),1);var{useRemoteUrlData:Z8e,isHashLink:Vie,isRelativePath:K8e}=le(Fie.privateApis);function Y8e(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Q8e(e,t){if(e==="/")return!0;if(!e||!t)return!1;try{let r=new URL(e,t),o=new URL(t);if(r.hostname!==o.hostname)return!1;let n=r.pathname.replace(/\/$/,""),i=o.pathname.replace(/\/$/,"");return n===i}catch{return!1}}function X8e({linkUrl:e,homeUrl:t}={}){if(!e)return{displayUrl:"",isExternal:!1};let r=(0,WA.safeDecodeURI)(e),o=!1;if(K8e(e)||Vie(e))return{displayUrl:r,isExternal:!1};try{let n=new URL(e),i=new URL(t).host;if(n.host===i){let s=n.pathname+n.search+n.hash;s.endsWith("/")&&s.length>1&&(s=s.slice(0,-1)),r=s}else o=!0}catch{o=!0}return{displayUrl:r,isExternal:o}}function J8e({url:e,homeUrl:t,type:r,isExternal:o,entityStatus:n,hasBinding:i,isEntityAvailable:s}){let l=[];if(e&&(o?l.push({label:(0,_n.__)("External link"),intent:"none"}):Vie(e)?l.push({label:(0,_n.__)("Internal link"),intent:"none"}):Q8e(e,t)?l.push({label:(0,_n.__)("Homepage"),intent:"none"}):r&&r!=="custom"?l.push({label:Y8e(r),intent:"none"}):l.push({label:(0,_n.__)("Page"),intent:"none"})),i&&!s)l.push({label:(0,_n.sprintf)((0,_n.__)("Missing %s"),r),intent:"high"});else if(!e)l.push({label:(0,_n.__)("No link selected"),intent:"high"});else if(n){let u={publish:{label:(0,_n.__)("Published"),intent:"stable"},future:{label:(0,_n.__)("Scheduled"),intent:"informational"},draft:{label:(0,_n.__)("Draft"),intent:"low"},pending:{label:(0,_n.__)("Pending"),intent:"low"},private:{label:(0,_n.__)("Private"),intent:"informational"},trash:{label:(0,_n.__)("Trashed"),intent:"high"}}[n];u&&l.push(u)}return l}function eTe(e){let t=e?.title;return typeof t=="string"?t:t&&"rendered"in t?t.rendered||(0,_n.__)("(no title)"):e?.name}function ex({url:e,entityRecord:t,type:r,hasBinding:o,isEntityAvailable:n}){let i=(0,jA.useSelect)(f=>f(UA.store).getEntityRecord("root","__unstableBase")?.home,[]),s=eTe(t),{richData:l}=Z8e(s?null:e),{displayUrl:c,isExternal:u}=X8e({linkUrl:e,homeUrl:i}),d=(0,jA.useSelect)(f=>{if(!t?.featured_media)return null;let{getEntityRecord:g}=f(UA.store),h=g("postType","attachment",t.featured_media);return h?.media_details?.sizes?.thumbnail?.source_url||h?.media_details?.sizes?.medium?.source_url||h?.source_url||null},[t?.featured_media]),p=J8e({url:e,homeUrl:i,type:r,isExternal:u,entityStatus:t?.status,hasBinding:o,isEntityAvailable:n});return{title:e?s||l?.title||(0,WA.safeDecodeURI)(e):(0,_n.__)("Add link"),url:c,image:d,badges:p}}var zie=a(H(),1),Hie=a(ae(),1),jie=a(I(),1),Gf=(e,t,r,o)=>{let n=e==="post-type"||t==="post"||t==="page",i=Number.isInteger(r),s=(0,jie.useBlockEditingMode)(),{postStatus:l,isDeleted:c}=(0,zie.useSelect)(p=>{if(!n)return{postStatus:null,isDeleted:!1};if(s==="disabled"||!o)return{postStatus:null,isDeleted:!1};let{getEntityRecord:m,hasFinishedResolution:f}=p(Hie.store),g=m("postType",t,r),b=f("getEntityRecord",["postType",t,r])&&g===void 0;return{postStatus:g?.status,isDeleted:b}},[n,s,o,t,r]);return[n&&i&&(c||l&&l==="trash"),l==="draft"]};var Xo=a(y(),1),{LinkPicker:tTe,isHashLink:rTe,isRelativePath:oTe}=le(tx.privateApis);function nTe(e,t){if(t==="post-type")switch(e){case"post":return(0,sr.__)("post");case"page":return(0,sr.__)("page");default:return e||(0,sr.__)("post")}if(t==="taxonomy")switch(e){case"category":return(0,sr.__)("category");case"tag":return(0,sr.__)("tag");default:return e||(0,sr.__)("term")}return e||(0,sr.__)("item")}function rx({attributes:e,setAttributes:t,clientId:r,isLinkEditable:o=!0}){let{label:n,url:i,description:s,rel:l,opensInNewTab:c}=e,u=ee(),{hasUrlBinding:d,isBoundEntityAvailable:p,entityRecord:m}=rs({clientId:r,attributes:e}),[f,g]=Gf(e.kind,e.type,m?.id,d),h="";f||d&&!p?h=A9():g&&(h=aTe({type:e.type,kind:e.kind}));let b=Uf({clientId:r,attributes:e,setAttributes:t}),_=(0,D9.useSelect)(P=>P(tx.store).getSettings().onNavigateToEntityRecord,[]),v=(0,D9.useSelect)(P=>P(Wie.store).getEntityRecord("root","__unstableBase")?.home,[]),x=(0,D9.useSelect)(P=>P(tx.store).getBlockEditingMode(r),[r])==="contentOnly",k=ex({url:i,entityRecord:m,type:e.type,hasBinding:d,isEntityAvailable:p}),C=!!i&&(!rTe(i)||oTe(i)&&!i.startsWith("/")),S=C&&i.startsWith("/")&&v?v+i:i;return(0,Xo.jsxs)(Jo.__experimentalToolsPanel,{label:(0,sr.__)("Settings"),resetAll:()=>{t({label:"",url:"",description:"",rel:"",opensInNewTab:!1})},dropdownMenuProps:u,children:[(0,Xo.jsx)(Jo.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,sr.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,Xo.jsx)(Jo.TextControl,{label:(0,sr.__)("Text"),value:n?(0,Uie.__unstableStripHTML)(n):"",onChange:P=>{t({label:P})},autoComplete:"off"})}),o&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)(Jo.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,sr.__)("Link to"),onDeselect:()=>t({url:void 0,id:void 0,kind:void 0,type:void 0}),isShownByDefault:!0,children:(0,Xo.jsx)(tTe,{preview:k,onSelect:b,suggestionsQuery:HA(e.type,e.kind),label:(0,sr.__)("Link to"),help:h||void 0})}),(0,Xo.jsx)(Jo.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,sr.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,Xo.jsx)(Jo.CheckboxControl,{label:(0,sr.__)("Open in new tab"),checked:c,onChange:P=>t({opensInNewTab:P})})}),!!i&&d&&p&&m?.id&&e.kind==="post-type"&&_&&(0,Xo.jsx)(Jo.Button,{variant:"secondary",onClick:()=>{_({postId:m.id,postType:e.type})},__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,sr.__)("Edit")}),C&&(0,Xo.jsx)(Jo.Button,{variant:"secondary",href:S,target:"_blank",icon:ny,iconPosition:"right",__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,sr.__)("View")})]}),(0,Xo.jsx)(Jo.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,sr.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!x,children:(0,Xo.jsx)(Jo.TextareaControl,{label:(0,sr.__)("Description"),value:s||"",onChange:P=>{t({description:P})},help:(0,sr.__)("The description will be displayed in the menu if the current theme supports it.")})}),(0,Xo.jsx)(Jo.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,sr.__)("Rel attribute"),onDeselect:()=>t({rel:""}),isShownByDefault:!x,children:(0,Xo.jsx)(Jo.TextControl,{label:(0,sr.__)("Rel attribute"),value:l||"",onChange:P=>{t({rel:P})},autoComplete:"off",help:(0,sr.__)("The relationship of the linked URL as space-separated link types.")})})]})}function A9(){return(0,sr.__)("This link is invalid and will not appear on your site. Please update the link.")}function aTe({type:e,kind:t}){let r=nTe(e,t);return(0,sr.sprintf)((0,sr.__)("This link is to a draft %1$s and will not appear on your site until the %1$s is published."),r)}var GA=a(L(),1),Gie=a($o(),1),$A=a(y(),1);function ox({label:e,isInvalid:t,isDraft:r,className:o="wp-block-navigation-link__label"}){if(!t&&!r)return null;let n=t?(0,GA.__)("Invalid"):(0,GA.__)("Draft");return(0,$A.jsx)("div",{className:T("wp-block-navigation-link__placeholder-text",o,{"is-invalid":t,"is-draft":r}),children:(0,$A.jsx)("span",{children:`${(0,Gie.decodeEntities)(e)} (${n})`.trim()})})}var $ie=a(H(),1),qie=a(I(),1);function nx(e){return(0,$ie.useSelect)(t=>{let{getSelectedBlockClientId:r,hasSelectedInnerBlock:o,getBlockParentsByBlockName:n}=t(qie.store),i=r(),s=n(e,"core/navigation")[0];return i===s||o(s,!0)},[e])}var O9=a(W(),1),ax=e=>{let[t,r]=(0,O9.useState)(!1);return(0,O9.useEffect)(()=>{let{ownerDocument:o}=e.current;function n(l){s(l)}function i(){r(!1)}function s(l){e.current.contains(l.target)?r(!0):r(!1)}return o.addEventListener("dragstart",n),o.addEventListener("dragend",i),o.addEventListener("dragenter",s),()=>{o.removeEventListener("dragstart",n),o.removeEventListener("dragend",i),o.removeEventListener("dragenter",s)}},[e]),t};function ix(e){e.current.focus();let{ownerDocument:t}=e.current,{defaultView:r}=t,o=r.getSelection(),n=t.createRange();n.selectNodeContents(e.current),o.removeAllRanges(),o.addRange(n)}var Zie=a(y(),1),iTe=["core/navigation-link","core/navigation-submenu"];function V9({insertedBlockClientId:e,setInsertedBlockClientId:t}){let{updateBlockAttributes:r,removeBlock:o}=(0,F9.useDispatch)(qA.store),{insertedBlockName:n,insertedBlockAttributes:i}=(0,F9.useSelect)(m=>{let{getBlockName:f,getBlockAttributes:g}=m(qA.store);return{insertedBlockName:f(e),insertedBlockAttributes:g(e)}},[e]),s=iTe?.includes(n),{createBinding:l,clearBinding:c}=rs({clientId:e,attributes:i||{}});if(!s)return null;let u=()=>{!i?.url&&e&&o(e,!1),t(null)},d=m=>f=>{m&&r(m,f)};return(0,Zie.jsx)(Uu,{clientId:e,link:i,onBlockInsert:m=>{e&&m&&o(e,!1),t(m?.clientId??null)},onClose:()=>{u()},onChange:m=>{let{isEntityLink:f,attributes:g}=Y2(m,d(e),i);f?l(g):c(),t(null)}})}var z9=a(F(),1),Kie=a(L(),1),Yie=a(I(),1);var sx=a(y(),1),{useBlockDisplayTitle:sTe}=le(Yie.privateApis),lTe=(0,Kie.__)("Switch to '%s'");function Qie({clientId:e,blockEditingMode:t,currentMenuId:r,onSelectClassicMenu:o,onSelectNavigationMenu:n,onCreateNew:i,createNavigationMenuIsSuccess:s,createNavigationMenuIsError:l,isManageMenusButtonDisabled:c}){let u=sTe({clientId:e,context:"list-view"});return(0,sx.jsxs)(z9.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header",children:[(0,sx.jsx)(z9.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2,children:u}),t==="default"&&(0,sx.jsx)($1,{currentMenuId:r,onSelectClassicMenu:o,onSelectNavigationMenu:n,onCreateNew:i,createNavigationMenuIsSuccess:s,createNavigationMenuIsError:l,actionLabel:lTe,isManageMenusButtonDisabled:c})]})}var Ba=a(y(),1),cTe=(0,Cp.__)("Switch to '%s'"),{PrivateListView:uTe,PrivateBlockContext:dTe,useListViewPanelState:pTe,useBlockDisplayTitle:mTe}=le(Sp.privateApis),Xie=({clientId:e,currentMenuId:t,isLoading:r,isNavigationMenuMissing:o,onCreateNew:n,expandRevision:i})=>{let s=(0,H9.useSelect)(d=>!!d(Sp.store).getBlockCount(e),[e]),{openListViewContentPanel:l}=le((0,H9.useDispatch)(Sp.store)),{navigationMenu:c}=W1(t);if(t&&o)return(0,Ba.jsx)(E9,{onCreateNew:n,isNotice:!0});if(r)return(0,Ba.jsx)(lx.Spinner,{});let u=c?(0,Cp.sprintf)((0,Cp.__)("Structure for Navigation Menu: %s"),c?.title||(0,Cp.__)("Untitled menu")):(0,Cp.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,Ba.jsxs)("div",{className:"wp-block-navigation__menu-inspector-controls",children:[!s&&(0,Ba.jsx)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message",children:(0,Cp.__)("This Navigation Menu is empty.")}),(0,Ba.jsx)(uTe,{rootClientId:e,isExpanded:!0,description:u,showAppender:!0,blockSettingsMenu:Cie,additionalBlockContent:V9,onSelect:l},`${e}-${i}`)]})},fTe=e=>{let{clientId:t,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,currentMenuId:n=null,onCreateNew:i,onSelectClassicMenu:s,onSelectNavigationMenu:l,isManageMenusButtonDisabled:c,blockEditingMode:u}=e,{isSelectionWithinCurrentSection:d}=(0,Jie.useContext)(dTe),p=mTe({clientId:t,context:"list-view"}),m=d,{isOpened:f,expandRevision:g,handleToggle:h}=pTe(t);return m?(0,Ba.jsx)(Sp.InspectorControls,{group:"list",children:(0,Ba.jsxs)(lx.PanelBody,{title:p,opened:f,onToggle:h,children:[u==="default"&&(0,Ba.jsx)($1,{currentMenuId:n,onSelectClassicMenu:s,onSelectNavigationMenu:l,onCreateNew:i,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,actionLabel:cTe,isManageMenusButtonDisabled:c}),(0,Ba.jsx)(Xie,{...e,expandRevision:g})]})}):(0,Ba.jsx)(Sp.InspectorControls,{group:"list",children:(0,Ba.jsxs)(lx.PanelBody,{title:null,children:[(0,Ba.jsx)(Qie,{clientId:t,blockEditingMode:u,currentMenuId:n,onSelectClassicMenu:s,onSelectNavigationMenu:l,onCreateNew:i,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,isManageMenusButtonDisabled:c}),(0,Ba.jsx)(Xie,{...e,expandRevision:g})]})})},j9=fTe;var ZA=a(y(),1);function U9({id:e,children:t}){return(0,ZA.jsx)(ln,{children:(0,ZA.jsx)("div",{id:e,className:"wp-block-navigation__description",children:t})})}var ese=a(ae(),1),W9=a(L(),1);var tse=a(y(),1);function rse({id:e}){let[t]=(0,ese.useEntityProp)("postType","wp_navigation","title"),r=(0,W9.sprintf)((0,W9.__)('Navigation Menu: "%s"'),t);return(0,tse.jsx)(U9,{id:e,children:r})}var KA=a(H(),1),ose=a(ae(),1);function cx(){let e=(0,KA.select)("core/editor");if(!e)return!1;let{getCurrentPostType:t,getCurrentPostId:r}=e,{getEditedEntityRecord:o}=(0,KA.select)(ose.store),n=t?.(),i=r?.();return n==="wp_template_part"&&i?o("postType","wp_template_part",i)?.area===Vc:!1}var G9=a(I(),1);var{getResponsiveMediaQueries:gTe}=le(f1),nse={left:"flex-start",center:"center",right:"flex-end","space-between":"space-between"};function ase({clientId:e,layout:t,style:r}){let[o]=(0,G9.useSettings)("viewport"),n=`#block-${e}`,i=Object.entries(gTe(o)).map(([s,l])=>{let c=r?.[s]?.layout;if(!c||typeof c!="object"||Array.isArray(c)||!Object.keys(c).length)return"";let u={...t,...c},d=Object.hasOwn(nse,u.justifyContent)?u.justifyContent:"left",p=nse[d],m=u.orientation==="vertical",f="center";m&&(f=["center","right"].includes(d)?p:"flex-start");let g=m&&d==="left"?"initial":p,h={"--navigation-layout-justification-setting":p,"--navigation-layout-direction":m?"column":"row","--navigation-layout-wrap":u.flexWrap==="nowrap"?"nowrap":"wrap","--navigation-layout-justify":g,"--navigation-layout-align":f},b=Object.entries(h).map(([_,v])=>`${_}: ${v};`).join("");return`${l}{${n} {${b}}}`}).join("");(0,G9.useStyleOverride)({css:i})}var Te=a(y(),1),{isNavigationPostEditorKey:hTe}=le(st.privateApis);function bTe({clientId:e}){let{insertBlock:t}=(0,Gl.useDispatch)(st.store),{getBlockCount:r}=(0,Gl.useSelect)(st.store),o=(0,vr.useCallback)(()=>{let n=r(e),i=(0,ise.createBlock)(Xi.name,{kind:Xi.attributes.kind,type:Xi.attributes.type});t(i,n,e)},[e,t,r]);return(0,Te.jsx)(st.BlockControls,{children:(0,Te.jsx)(io.ToolbarGroup,{children:(0,Te.jsx)(io.ToolbarButton,{name:"add-page",icon:hu,onClick:o,children:(0,Ht.__)("Add page")})})})}function yTe({textColor:e,setTextColor:t,backgroundColor:r,setBackgroundColor:o,overlayTextColor:n,setOverlayTextColor:i,overlayBackgroundColor:s,setOverlayBackgroundColor:l,clientId:c,navRef:u,hasCustomOverlay:d}){let[p,m]=(0,vr.useState)(),[f,g]=(0,vr.useState)(),[h,b]=(0,vr.useState)(),[_,v]=(0,vr.useState)(),w=(0,Gl.useSelect)(()=>cx(),[]);(0,vr.useEffect)(()=>{TA(u.current,g,m);let C=u.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');C&&(n.color||s.color)&&TA(C,v,b)},[n.color,s.color,u]);let x=(0,st.__experimentalUseMultipleOriginColorsAndGradients)();if(!x.hasColorsOrGradients)return null;let k=[{colorValue:e.color,label:(0,Ht.__)("Text"),onColorChange:t,resetAllFilter:()=>t(),clearable:!0,enableAlpha:!0},{colorValue:r.color,label:(0,Ht.__)("Background"),onColorChange:o,resetAllFilter:()=>o(),clearable:!0,enableAlpha:!0}];return k.push({colorValue:n.color,label:d||w?(0,Ht.__)("Submenu text"):(0,Ht.__)("Submenu & overlay text"),onColorChange:i,resetAllFilter:()=>i(),clearable:!0,enableAlpha:!0},{colorValue:s.color,label:d||w?(0,Ht.__)("Submenu background"):(0,Ht.__)("Submenu & overlay background"),onColorChange:l,resetAllFilter:()=>l(),clearable:!0,enableAlpha:!0}),(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(st.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:k,panelId:c,...x,gradients:[],disableCustomGradients:!0}),(0,Te.jsx)(st.ContrastChecker,{backgroundColor:p,textColor:f}),(0,Te.jsx)(st.ContrastChecker,{backgroundColor:h,textColor:_})]})}function vTe({attributes:e,setAttributes:t,clientId:r,isSelected:o,className:n,backgroundColor:i,setBackgroundColor:s,textColor:l,setTextColor:c,overlayBackgroundColor:u,setOverlayBackgroundColor:d,overlayTextColor:p,setOverlayTextColor:m,customPlaceholder:f=null,__unstableLayoutClassNames:g}){let{submenuVisibility:h,overlayMenu:b,overlay:_,showSubmenuIcon:v,templateLock:w,layout:{justifyContent:x,orientation:k="horizontal",flexWrap:C="wrap"}={},hasIcon:S,icon:P="handle"}=e,B=e.ref;ase({clientId:r,layout:e.layout,style:e.style});let N=(0,vr.useCallback)(pr=>{t({ref:pr})},[t]),E=`navigationMenu/${B}`,M=(0,st.useHasRecursion)(E),{isPreviewMode:R,onNavigateToEntityRecord:O,currentTheme:j,editorDisabledResponsive:V,hasSelectedStyleState:G}=(0,Gl.useSelect)(pr=>{let{getSettings:cl,hasSelectedBlockStyleState:oc}=pr(st.store),nm=cl();return{isPreviewMode:nm.isPreviewMode,onNavigateToEntityRecord:nm?.onNavigateToEntityRecord,currentTheme:pr(Tp.store).getCurrentTheme()?.stylesheet,editorDisabledResponsive:!!nm?.[hTe],hasSelectedStyleState:oc(r)}},[r]),$=R?!1:M,z=(0,st.useBlockEditingMode)(),{records:K}=(0,Tp.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),[q,Y]=s9({name:"block-library/core/navigation/status"}),[oe,Z]=s9({name:"block-library/core/navigation/classic-menu-conversion"}),[U,X]=s9({name:"block-library/core/navigation/permissions/update"}),{create:Q,status:ie,error:me,value:xe,isPending:Be,isSuccess:se,isError:he}=fie(r),ze=async()=>{await Q("")},{hasUncontrolledInnerBlocks:qe,uncontrolledInnerBlocks:ce,isInnerBlockSelected:ge,innerBlocks:Qe}=bie(r),{replaceInnerBlocks:ye,selectBlock:fe,__unstableMarkNextChangeAsNotPersistent:de}=(0,Gl.useDispatch)(st.store);(0,vr.useEffect)(()=>{k==="horizontal"&&h==="always"&&(de(),t({submenuVisibility:"hover",showSubmenuIcon:!0}))},[k,h,t,de]);let re=(0,vr.useRef)(!1),Pe=(0,Gl.useSelect)(pr=>{if(Qe.some(Rg=>Rg.name==="core/navigation-submenu"))return!0;let oc=Qe.find(Rg=>Rg.name==="core/page-list");if(!oc)return re.current=!1,!1;if(re.current)return!0;let{getBlocks:nm}=pr(st.store);return nm(oc.clientId).length>0?(re.current=!0,!0):!1},[Qe]),{records:Se}=(0,Tp.useEntityRecords)("postType","wp_template_part",{per_page:-1}),rr=Se?.some(pr=>pr.area===Vc)??!1,[Ft,gr]=(0,vr.useState)(!1),[Wo,Nn]=(0,vr.useState)(!1),{hasResolvedNavigationMenus:So,isNavigationMenuResolved:sa,isNavigationMenuMissing:la,canUserUpdateNavigationMenu:Mn,hasResolvedCanUserUpdateNavigationMenu:ca,canUserDeleteNavigationMenu:md,hasResolvedCanUserDeleteNavigationMenu:pu,canUserCreateNavigationMenus:za,isResolvingCanUserCreateNavigationMenus:Ha,hasResolvedCanUserCreateNavigationMenus:il}=W1(B),ja=So&&la,{convert:sl,status:bs,error:fd}=Jae(Q),ua=bs===_9,Ln=(0,vr.useCallback)((pr,cl={focusNavigationBlock:!1})=>{let{focusNavigationBlock:oc}=cl;N(pr),oc&&fe(r)},[fe,r,N]),wi=!la&&sa,Rn=qe&&!wi,{getNavigationFallbackId:ne}=le((0,Gl.useSelect)(Tp.store)),He=B||Rn?null:ne();(0,vr.useEffect)(()=>{B||Rn||!He||(de(),N(He))},[B,N,Rn,He,de]);let bt=(0,vr.useRef)(),pe=(0,Gl.useSelect)(()=>cx(),[]),ve=pe?"div":"nav",Ye=!B&&!Be&&!ua&&So&&K?.length===0&&!qe,dt=!So||Be||ua||!!(B&&!wi&&!ua),$t=e.style?.typography?.textDecoration,nt=(0,Gl.useSelect)(pr=>pr(st.store).__unstableHasActiveBlockOverlayActive(r),[r]),Ir=(0,vr.useRef)(!1);(0,vr.useEffect)(()=>{pe&&(b!=="never"&&t({overlayMenu:"never"}),!Ir.current&&!B&&(Ir.current=!0,t({submenuVisibility:"always",layout:{...e.layout,orientation:"vertical"},showSubmenuIcon:!1})))},[e.layout,pe,b,B,t]);let Ua=b!=="never"&&!V,Ci=(0,st.useBlockProps)({ref:bt,className:T(n,{"items-justified-right":x==="right","items-justified-space-between":x==="space-between","items-justified-left":x==="left","items-justified-center":x==="center","is-vertical":k==="vertical","no-wrap":C==="nowrap","is-responsive":Ua,"has-text-color":!!l.color||!!l?.class,[(0,st.getColorClassName)("color",l?.slug)]:!!l?.slug,"has-background":!!i.color||i.class,[(0,st.getColorClassName)("background-color",i?.slug)]:!!i?.slug,[`has-text-decoration-${$t}`]:$t,"block-editor-block-content-overlay":nt},g),style:{color:!l?.slug&&l?.color,backgroundColor:!i?.slug&&i?.color}}),ll=async pr=>sl(pr.id,pr.name,"draft"),rm=pr=>{Ln(pr)};(0,vr.useEffect)(()=>{Y(),Be&&(0,$9.speak)((0,Ht.__)("Creating Navigation Menu.")),se&&(Ln(xe?.id,{focusNavigationBlock:!0}),q((0,Ht.__)("Navigation Menu successfully created."))),he&&q((0,Ht.__)("Failed to create Navigation Menu."))},[ie,me,xe?.id,he,se,Be,Ln,Y,q]),(0,vr.useEffect)(()=>{Z(),bs===_9&&(0,$9.speak)((0,Ht.__)("Classic menu importing.")),bs===LA&&(oe((0,Ht.__)("Classic menu imported successfully.")),Ln(xe?.id,{focusNavigationBlock:!0})),bs===y9&&oe((0,Ht.__)("Classic menu import failed."))},[bs,fd,Z,oe,xe?.id,Ln]),(0,vr.useEffect)(()=>{!o&&!ge&&X(),(o||ge)&&(B&&!ja&&ca&&!Mn&&U((0,Ht.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),!B&&il&&!za&&U((0,Ht.__)("You do not have permission to create Navigation Menus.")))},[o,ge,Mn,ca,za,il,B,X,U,ja]);let BE=za||Mn,IE=T("wp-block-navigation__overlay-menu-preview",{open:Wo}),Si=!v&&h!=="click"&&h!=="always"?(0,Ht.__)('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.'):"",Bk=(0,vr.useRef)(!0);(0,vr.useEffect)(()=>{!Bk.current&&Si&&(0,$9.speak)(Si),Bk.current=!1},[Si]);let Ik=(0,sse.useInstanceId)(wae,"overlay-menu-preview"),Nk=ee(),rc=(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(st.InspectorControls,{children:Pe&&(0,Te.jsx)(io.__experimentalToolsPanel,{label:(0,Ht.__)("Display"),resetAll:()=>{t({showSubmenuIcon:!0,submenuVisibility:"hover",overlayMenu:"mobile",hasIcon:!0,icon:"handle"})},dropdownMenuProps:Nk,children:Pe&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("h3",{className:"wp-block-navigation__submenu-header",children:(0,Ht.__)("Submenus")}),(0,Te.jsx)(io.__experimentalToolsPanelItem,{hasValue:()=>h!=="hover",label:(0,Ht.__)("Submenu Visibility"),onDeselect:()=>t({submenuVisibility:"hover"}),isShownByDefault:!0,children:(0,Te.jsxs)(io.__experimentalToggleGroupControl,{label:(0,Ht.__)("Submenu Visibility"),value:h,onChange:pr=>{let cl={submenuVisibility:pr};pr==="always"?cl.showSubmenuIcon=!1:(pr==="click"||h==="always")&&(cl.showSubmenuIcon=!0),t(cl)},isBlock:!0,children:[(0,Te.jsx)(io.__experimentalToggleGroupControlOption,{value:"hover",label:(0,Ht.__)("Hover")}),(0,Te.jsx)(io.__experimentalToggleGroupControlOption,{value:"click",label:(0,Ht.__)("Click")}),k==="vertical"&&(0,Te.jsx)(io.__experimentalToggleGroupControlOption,{value:"always",label:(0,Ht.__)("Always")})]})}),(0,Te.jsx)(io.__experimentalToolsPanelItem,{hasValue:()=>!v,label:(0,Ht.__)("Show arrow"),onDeselect:()=>t({showSubmenuIcon:!0}),isDisabled:h==="click"||h==="always",isShownByDefault:!0,children:(0,Te.jsx)(io.ToggleControl,{checked:v,onChange:pr=>{t({showSubmenuIcon:pr})},disabled:h==="click"||h==="always",label:(0,Ht.__)("Show arrow")})}),Si&&(0,Te.jsx)(io.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,className:"wp-block-navigation__submenu-accessibility-notice",children:Si})]})})}),!pe&&(0,Te.jsx)(st.InspectorControls,{children:(0,Te.jsx)(qae,{overlayMenu:b,overlay:_,setAttributes:t,onNavigateToEntityRecord:O,overlayMenuPreview:Wo,setOverlayMenuPreview:Nn,hasIcon:S,icon:P,overlayMenuPreviewClasses:IE,overlayMenuPreviewId:Ik,isResponsive:Ua,currentTheme:j,hasOverlays:rr})}),!G&&(0,Te.jsx)(st.InspectorControls,{group:"color",children:(0,Te.jsx)(yTe,{textColor:l,setTextColor:c,backgroundColor:i,setBackgroundColor:s,overlayTextColor:p,setOverlayTextColor:m,overlayBackgroundColor:u,setOverlayBackgroundColor:d,clientId:r,navRef:bt,hasCustomOverlay:!!_})})]}),ys=`${r}-desc`,om=b==="always",Lg=!BE||!So;if(Rn&&!Be)return(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(j9,{clientId:r,createNavigationMenuIsSuccess:se,createNavigationMenuIsError:he,currentMenuId:B,isNavigationMenuMissing:la,isManageMenusButtonDisabled:Lg,onCreateNew:ze,onSelectClassicMenu:ll,onSelectNavigationMenu:rm,isLoading:dt,blockEditingMode:z}),z==="default"&&rc,(0,Te.jsxs)(ve,{...Ci,"aria-describedby":Ye?void 0:ys,children:[(0,Te.jsx)(U9,{id:ys,children:(0,Ht.__)("Unsaved Navigation Menu.")}),(0,Te.jsx)(kA,{id:r,onToggle:gr,isOpen:Ft,hasIcon:S,icon:P,isResponsive:Ua,isHiddenByDefault:om,overlayBackgroundColor:u,overlayTextColor:p,overlay:_,onNavigateToEntityRecord:O,children:(0,Te.jsx)(bae,{createNavigationMenu:Q,blocks:ce,hasSelection:o||ge})})]})]});if(B&&la)return(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(j9,{clientId:r,createNavigationMenuIsSuccess:se,createNavigationMenuIsError:he,currentMenuId:B,isNavigationMenuMissing:la,isManageMenusButtonDisabled:Lg,onCreateNew:ze,onSelectClassicMenu:ll,onSelectNavigationMenu:rm,isLoading:dt,blockEditingMode:z}),(0,Te.jsx)(ve,{...Ci,children:(0,Te.jsx)(E9,{onCreateNew:ze})})]});if(wi&&$)return(0,Te.jsx)("div",{...Ci,children:(0,Te.jsx)(st.Warning,{children:(0,Ht.__)("Block cannot be rendered inside itself.")})});let NE=f||Jne;return Ye&&f?(0,Te.jsx)(ve,{...Ci,children:(0,Te.jsx)(NE,{isSelected:o,currentMenuId:B,clientId:r,canUserCreateNavigationMenus:za,isResolvingCanUserCreateNavigationMenus:Ha,onSelectNavigationMenu:rm,onSelectClassicMenu:ll,onCreateEmpty:ze})}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(j9,{clientId:r,createNavigationMenuIsSuccess:se,createNavigationMenuIsError:he,currentMenuId:B,isNavigationMenuMissing:la,isManageMenusButtonDisabled:Lg,onCreateNew:ze,onSelectClassicMenu:ll,onSelectNavigationMenu:rm,isLoading:dt,blockEditingMode:z}),z==="default"&&rc,(0,Te.jsx)(Tp.EntityProvider,{kind:"postType",type:"wp_navigation",id:B,children:(0,Te.jsxs)(st.RecursionProvider,{uniqueId:E,children:[z==="contentOnly"&&wi&&(0,Te.jsx)(bTe,{clientId:r}),z==="default"&&wi&&(0,Te.jsxs)(st.InspectorControls,{group:"advanced",children:[ca&&Mn&&(0,Te.jsx)(uae,{}),pu&&md&&(0,Te.jsx)(_ae,{onDelete:()=>{ye(r,[]),q((0,Ht.__)("Navigation Menu successfully deleted."))}}),(0,Te.jsx)(xie,{disabled:Lg,className:"wp-block-navigation-manage-menus-button"})]}),(0,Te.jsxs)(ve,{...Ci,"aria-describedby":!Ye&&!dt?ys:void 0,children:[dt&&!om&&(0,Te.jsx)("div",{className:"wp-block-navigation__loading-indicator-container",children:(0,Te.jsx)(io.Spinner,{className:"wp-block-navigation__loading-indicator"})}),(!dt||om)&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(rse,{id:ys}),(0,Te.jsx)(kA,{id:r,onToggle:gr,hasIcon:S,icon:P,isOpen:Ft,isResponsive:Ua,isHiddenByDefault:om,overlayBackgroundColor:u,overlayTextColor:p,overlay:_,onNavigateToEntityRecord:O,children:wi&&(0,Te.jsx)(aae,{clientId:r,hasCustomPlaceholder:!!f,templateLock:w,orientation:k})})]})]})]})})]})}var lse=(0,st.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})(vTe);var cse=a(I(),1),use=a(y(),1);function dse({attributes:e}){if(!e.ref)return(0,use.jsx)(cse.InnerBlocks.Content,{})}var Ep=a(I(),1),a0=a(_e(),1);var Pp=a(y(),1),YA={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},i0=({navigationMenuId:e,...t})=>({...t,ref:e}),q9=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},Z9=e=>{let{openSubmenusOnClick:t,...r}=e;return t==null?e:{...r,submenuVisibility:r.submenuVisibility??(t?"click":"hover")}},_Te={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,Pp.jsx)(Ep.InnerBlocks.Content,{})},isEligible:({openSubmenusOnClick:e})=>e!=null,migrate:Z9},xTe={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,Pp.jsx)(Ep.InnerBlocks.Content,{})},isEligible:({navigationMenuId:e})=>!!e,migrate:i0},kTe={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,Pp.jsx)(Ep.InnerBlocks.Content,{})},isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,a0.compose)(i0,q9,Z9)},wTe={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,Pp.jsx)(Ep.InnerBlocks.Content,{})},migrate:(0,a0.compose)(i0,q9,or,Z9),isEligible({style:e}){return e?.typography?.fontFamily}},CTe=function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}},STe=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 n=r.slice(o.length);return t==="textDecoration"&&n==="strikethrough"?[t,"line-through"]:[t,n]}return[t,r]}))}}},TTe=[_Te,xTe,kTe,wTe,{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,a0.compose)(i0,q9,or,CTe,Z9),save(){return(0,Pp.jsx)(Ep.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,Pp.jsx)(Ep.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,a0.compose)(i0,q9,or,STe)},{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,a0.compose)(i0,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,Pp.jsx)(Ep.InnerBlocks.Content,{})}}],pse=TTe;var{name:hse}=e9,bse={icon:ym,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,K9.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,K9.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,K9.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:lse,save:dse,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,mse.select)(fse.store).getEditedEntityRecord("postType","wp_navigation",e);if(t?.title)return(0,gse.decodeEntities)(t.title)},deprecated:pse},ETe=()=>D({name:hse,metadata:e9,settings:bse});var eO={};J(eO,{init:()=>ATe,metadata:()=>Y9,name:()=>Pse,settings:()=>Bse});var px=a(L(),1);var Ese=a(Kd(),1);var yse=a(I(),1),vse=a(y(),1),PTe=[{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,vse.jsx)(yse.InnerBlocks.Content,{})}}],_se=PTe;var Y9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-link",title:"Navigation 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 Q9=a(te(),1),ux=a(H(),1),dx=a(F(),1),X9=a(fc(),1),Us=a(L(),1),xn=a(I(),1),J9=a(qt(),1),Ia=a(W(),1);var e6=a(_e(),1);var _r=a(y(),1),ITe={name:"core/navigation-link"},NTe=["core/navigation-link","core/navigation-submenu"];function MTe(e){let t="";switch(e){case"post":t=(0,Us.__)("Select post");break;case"page":t=(0,Us.__)("Select page");break;case"category":t=(0,Us.__)("Select category");break;case"tag":t=(0,Us.__)("Select tag");break;default:t=(0,Us.__)("Add link")}return t}function XA({attributes:e,isSelected:t,setAttributes:r,insertBlocksAfter:o,mergeBlocks:n,onReplace:i,context:s,clientId:l}){let{id:c,label:u,type:d,url:p,description:m,kind:f,metadata:g}=e,{maxNestingLevel:h}=s,{replaceBlock:b,__unstableMarkNextChangeAsNotPersistent:_,selectBlock:v}=(0,ux.useDispatch)(xn.store),[w,x]=(0,Ia.useState)(t&&!p),[k,C]=(0,Ia.useState)(null),S=(0,Ia.useRef)(null),P=ax(S),B=(0,Us.__)("Add label\u2026"),N=(0,Ia.useRef)(),E=(0,Ia.useRef)(),M=(0,Ia.useRef)(u===void 0),R=(0,Ia.useRef)(!1),{isAtMaxNesting:O,isTopLevelLink:j,isParentOfSelectedBlock:V,hasChildren:G,parentBlockClientId:$,isSubmenu:z}=(0,ux.useSelect)(Se=>{let{getBlockCount:rr,getBlockName:Ft,getBlockRootClientId:gr,hasSelectedInnerBlock:Wo,getBlockParentsByBlockName:Nn}=Se(xn.store),So=gr(l),sa=Ft(So),la=sa==="core/navigation",Mn=la?So:Nn(l,"core/navigation")[0],ca=sa==="core/navigation-submenu"?So:Mn;return{isAtMaxNesting:Nn(l,NTe).length>=h,isTopLevelLink:la,isParentOfSelectedBlock:Wo(l,!0),hasChildren:!!rr(l),parentBlockClientId:ca,isSubmenu:sa==="core/navigation-submenu"}},[l,h]),K=nx(l),{getBlocks:q}=(0,ux.useSelect)(xn.store),{hasUrlBinding:Y,isBoundEntityAvailable:oe,entityRecord:Z}=rs({clientId:l,attributes:e}),U=Uf({clientId:l,attributes:e,setAttributes:r,allowTextUpdate:!0}),[X,Q]=Gf(f,d,c,K),ie=(0,Ia.useCallback)(()=>{let Se=q(l);Se.length===0&&(Se=[(0,Q9.createBlock)("core/navigation-link")],v(Se[0].clientId));let rr=(0,Q9.createBlock)("core/navigation-submenu",e,Se);b(l,rr)},[q,l,v,b,e]);(0,Ia.useEffect)(()=>{M.current&&t&&v($)},[]),(0,Ia.useEffect)(()=>{G&&(_(),ie())},[G,_,ie]),(0,Ia.useEffect)(()=>{if(!(!M.current||!p||!w)){if(M.current=!1,(0,J9.isURL)((0,J9.prependHTTP)(u))&&/^.+\.[a-z]+/.test(u))ix(N);else if(v(l,null),z){let Se=q($);Se.length===1&&Se[0].clientId===l&&(R.current=!0)}}},[p,w,M,u]);function me(){r({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),x(!1)}let{textColor:xe,customTextColor:Be,backgroundColor:se,customBackgroundColor:he}=Of(s,!j);function ze(Se){X9.isKeyboardEvent.primary(Se,"k")&&(Se.preventDefault(),Se.stopPropagation(),x(!0))}let qe=(0,e6.useInstanceId)(XA),ce=Y&&!oe,ge=ce?(0,Us.sprintf)("navigation-link-edit-%d-desc",qe):void 0,Qe=(0,xn.useBlockProps)({ref:(0,e6.useMergeRefs)([C,S]),className:T("wp-block-navigation-item",{"is-editing":t||V,"is-dragging-within":P,"has-link":!!p,"has-child":G,"has-text-color":!!xe||!!Be,[(0,xn.getColorClassName)("color",xe)]:!!xe,"has-background":!!se||he,[(0,xn.getColorClassName)("background-color",se)]:!!se}),"aria-describedby":ge,"aria-invalid":ce,style:{color:!xe&&Be,backgroundColor:!se&&he},onKeyDown:ze}),ye=(0,xn.useInnerBlocksProps)({className:"remove-outline"},{defaultBlock:ITe,directInsert:!0,renderAppender:!1}),fe=!p&&!(Y&&oe)||X||Q||Y&&!oe;fe&&(Qe.onClick=()=>{x(!0)});let de=T("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":fe}),re=MTe(d),Pe=A9();return(0,_r.jsxs)(_r.Fragment,{children:[(0,_r.jsx)(xn.BlockControls,{children:(0,_r.jsxs)(dx.ToolbarGroup,{children:[(0,_r.jsx)(dx.ToolbarButton,{name:"link",icon:Pi,title:(0,Us.__)("Link"),shortcut:X9.displayShortcut.primary("k"),onClick:()=>{x(!0)}}),!O&&(0,_r.jsx)(dx.ToolbarButton,{name:"submenu",icon:im,title:(0,Us.__)("Add submenu"),onClick:ie})]})}),(0,_r.jsx)(xn.InspectorControls,{group:"content",children:(0,_r.jsx)(rx,{attributes:e,setAttributes:r,clientId:l})}),(0,_r.jsxs)("div",{...Qe,children:[ce&&(0,_r.jsx)(ln,{id:ge,children:Pe}),(0,_r.jsxs)("a",{className:de,children:[!p&&!g?.bindings?.url?(0,_r.jsx)("div",{className:"wp-block-navigation-link__placeholder-text",children:(0,_r.jsx)("span",{children:re})}):(0,_r.jsxs)(_r.Fragment,{children:[!X&&!Q&&(0,_r.jsxs)(_r.Fragment,{children:[(0,_r.jsx)(xn.RichText,{ref:N,identifier:"label",className:"wp-block-navigation-item__label",value:u,onChange:Se=>r({label:Se}),onMerge:n,onReplace:i,__unstableOnSplitAtEnd:o?()=>o((0,Q9.createBlock)("core/navigation-link")):void 0,"aria-label":(0,Us.__)("Navigation link text"),placeholder:B,withoutInteractiveFormatting:!0}),m&&(0,_r.jsx)("span",{className:"wp-block-navigation-item__description",children:m})]}),(X||Q)&&(0,_r.jsx)(ox,{label:u,isInvalid:X,isDraft:Q,className:"wp-block-navigation-link__label"})]}),w&&(0,_r.jsx)(Uu,{ref:E,clientId:l,link:e,entity:{entityRecord:Z,hasBinding:Y,isEntityAvailable:oe},onClose:()=>{if(x(!1),!p&&!Y&&i){i([]);return}if(R.current&&(R.current=!1,S.current?.nextElementSibling)){let Se=S.current.nextElementSibling.querySelector(".block-editor-button-block-appender");Se&&Se.focus()}},anchor:k,onRemove:me,onChange:U})]}),(0,_r.jsx)("div",{...ye})]})]})}var xse=a(I(),1),kse=a(y(),1);function wse(){return(0,kse.jsx)(xse.InnerBlocks.Content,{})}function LTe(e){switch(e){case"post":return hv;case"page":return hu;case"tag":return u_;case"category":return _d;default:return eB}}function Cse(e,t){if(t!=="core/navigation-link")return e;if(e.variations){let r=(n,i)=>n.type===i.type,o=e.variations.map(n=>({...n,...!n.icon&&{icon:LTe(n.name)},...!n.isActive&&{isActive:r}}));return{...e,variations:o}}return e}var kn=a(te(),1),RTe={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,kn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,kn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,kn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,kn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,kn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,kn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/buttons"],transform:()=>(0,kn.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,kn.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,kn.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,kn.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,kn.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,kn.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,kn.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,kn.createBlock)("core/page-list")},{type:"block",blocks:["core/buttons"],transform:({label:e,url:t,rel:r,title:o,opensInNewTab:n})=>(0,kn.createBlock)("core/buttons",{},[(0,kn.createBlock)("core/button",{text:e,url:t,rel:r,title:o,linkTarget:n?"_blank":void 0})])}]},Sse=RTe;var JA=a(L(),1);var DTe=[{name:"custom-link",title:(0,JA.__)("Custom Link"),description:(0,JA.__)("Add a custom link to your navigation."),icon:mm,attributes:{kind:"custom"},isActive:e=>e.kind==="custom",isDefault:!0,scope:["inserter"]}],Tse=DTe;var{name:Pse}=Y9,Bse={icon:mm,__experimentalLabel(e,{context:t}){if(t==="list-view")return e?.label;if(t==="appender"){let r=e?.type||"link";return(0,px.sprintf)((0,px._x)("Add %s","add default block type"),r)}return e?.label},merge(e,{label:t=""}){return{...e,label:e.label+t}},edit:XA,save:wse,example:{attributes:{label:(0,px._x)("Example Link","navigation link preview example"),url:"https://example.com"}},deprecated:_se,transforms:Sse,variations:Tse},ATe=()=>((0,Ese.addFilter)("blocks.registerBlockType","core/navigation-link",Cse),D({name:Pse,metadata:Y9,settings:Bse}));var rO={};J(rO,{init:()=>VTe,metadata:()=>t6,name:()=>zse,settings:()=>Hse});var Vse=a(L(),1);var t6={$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}},shadow:{__experimentalSkipSerialization:!0},interactivity:{clientNavigation:!0}},selectors:{shadow:".wp-block-navigation-submenu > .wp-block-navigation__submenu-container"},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"};var o6=a(H(),1),mx=a(F(),1),n6=a(fc(),1),s0=a(L(),1),Yr=a(I(),1),a6=a(qt(),1),$l=a(W(),1);var Mse=a(O_(),1),Lse=a(te(),1),i6=a(_e(),1);var r6=a(F(),1),tO=a(y(),1),Ise=()=>(0,tO.jsx)(r6.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,tO.jsx)(r6.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var Kr=a(y(),1),Nse=["core/navigation-link","core/navigation-submenu","core/page-list","core/loginout"];function Rse({attributes:e,isSelected:t,setAttributes:r,mergeBlocks:o,onReplace:n,context:i,clientId:s}){let{label:l,url:c,description:u,kind:d,type:p,id:m}=e,{showSubmenuIcon:f,maxNestingLevel:g,submenuVisibility:h}=i,_=(0,Yr.useBlockEditingMode)()!=="default"?!0:h==="click",{hasUrlBinding:v,isBoundEntityAvailable:w,entityRecord:x}=rs({clientId:s,attributes:e}),k=Uf({clientId:s,attributes:e,setAttributes:r,allowTextUpdate:!0}),{__unstableMarkNextChangeAsNotPersistent:C,replaceBlock:S}=(0,o6.useDispatch)(Yr.store),[P,B]=(0,$l.useState)(!1),[N,E]=(0,$l.useState)(null),M=(0,$l.useRef)(null),R=ax(M),O=(0,s0.__)("Add text\u2026"),j=(0,$l.useRef)(),{parentCount:V,isParentOfSelectedBlock:G,isImmediateParentOfSelectedBlock:$,hasChildren:z,selectedBlockHasChildren:K,onlyDescendantIsEmptyLink:q}=(0,o6.useSelect)(de=>{let{hasSelectedInnerBlock:re,getSelectedBlockClientId:Pe,getBlockParentsByBlockName:Se,getBlock:rr,getBlockCount:Ft,getBlockOrder:gr}=de(Yr.store),Wo,Nn=Pe(),So=gr(Nn);if(So?.length===1){let sa=rr(So[0]);Wo=sa?.name==="core/navigation-link"&&!sa?.attributes?.label}return{parentCount:Se(s,"core/navigation-submenu").length,isParentOfSelectedBlock:re(s,!0),isImmediateParentOfSelectedBlock:re(s,!1),hasChildren:!!Ft(s),selectedBlockHasChildren:!!So?.length,onlyDescendantIsEmptyLink:Wo}},[s]),Y=nx(s),oe=(0,i6.usePrevious)(z),[Z,U]=Gf(d,p,m,Y);(0,$l.useEffect)(()=>{!_&&!c&&B(!0)},[]),(0,$l.useEffect)(()=>{t||B(!1)},[t]),(0,$l.useEffect)(()=>{P&&c&&(0,a6.isURL)((0,a6.prependHTTP)(l))&&/^.+\.[a-z]+/.test(l)&&ix(j)},[c]);let{textColor:X,customTextColor:Q,backgroundColor:ie,customBackgroundColor:me}=Of(i,V>0);function xe(de){n6.isKeyboardEvent.primary(de,"k")&&(de.preventDefault(),de.stopPropagation(),B(!0))}let Be=(0,Yr.useBlockProps)({ref:(0,i6.useMergeRefs)([E,M]),className:T("wp-block-navigation-item",{"is-editing":t||G,"is-dragging-within":R,"has-link":!!c,"has-child":z,"has-text-color":!!X||!!Q,[(0,Yr.getColorClassName)("color",X)]:!!X,"has-background":!!ie||me,[(0,Yr.getColorClassName)("background-color",ie)]:!!ie,"open-on-click":_,"open-always":h==="always"}),style:{color:!X&&Q,backgroundColor:!ie&&me},onKeyDown:xe}),se=Of(i,!0),he=V>=g?Nse.filter(de=>de!=="core/navigation-submenu"):Nse,ze=(0,Yr.__experimentalGetShadowClassesAndStyles)(e),qe=l9(se),ce={...qe,style:{...qe.style,...ze.style}},ge=(0,Yr.useInnerBlocksProps)(ce,{allowedBlocks:he,defaultBlock:Xi,directInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:t||$&&!K||z?Yr.InnerBlocks.ButtonBlockAppender:!1}),Qe=_?"button":"a";function ye(){let de=(0,Lse.createBlock)("core/navigation-link",e);S(s,de)}(0,$l.useEffect)(()=>{!z&&oe&&(C(),ye())},[z,oe]);let fe=!K||q;return(0,Kr.jsxs)(Kr.Fragment,{children:[(0,Kr.jsx)(Yr.BlockControls,{children:(0,Kr.jsxs)(mx.ToolbarGroup,{children:[!_&&(0,Kr.jsx)(mx.ToolbarButton,{name:"link",icon:Pi,title:(0,s0.__)("Link"),shortcut:n6.displayShortcut.primary("k"),onClick:()=>{B(!0)}}),(0,Kr.jsx)(mx.ToolbarButton,{name:"revert",icon:FI,title:(0,s0.__)("Convert to Link"),onClick:ye,className:"wp-block-navigation__submenu__revert",disabled:!fe})]})}),(0,Kr.jsx)(Yr.InspectorControls,{group:"content",children:(0,Kr.jsx)(rx,{attributes:e,setAttributes:r,clientId:s,isLinkEditable:!_})}),(0,Kr.jsxs)("div",{...Be,children:[(0,Kr.jsxs)(Qe,{className:"wp-block-navigation-item__content",children:[!Z&&!U&&(0,Kr.jsxs)(Kr.Fragment,{children:[(0,Kr.jsx)(Yr.RichText,{ref:j,identifier:"label",className:"wp-block-navigation-item__label",value:l,onChange:de=>r({label:de}),onMerge:o,onReplace:n,"aria-label":(0,s0.__)("Navigation link text"),placeholder:O,withoutInteractiveFormatting:!0,onClick:()=>{!_&&!c&&B(!0)}}),u&&(0,Kr.jsx)("span",{className:"wp-block-navigation-item__description",children:u})]}),(Z||U)&&(0,Kr.jsx)(ox,{label:l,isInvalid:Z,isDraft:U,className:"wp-block-navigation-item__label"}),!_&&P&&(0,Kr.jsx)(Uu,{clientId:s,link:e,entity:{entityRecord:x,hasBinding:v,isEntityAvailable:w},onClose:()=>{B(!1)},anchor:N,onRemove:()=>{r({url:""}),(0,Mse.speak)((0,s0.__)("Link removed."),"assertive")},onChange:k})]}),(f||_)&&(0,Kr.jsx)("span",{className:"wp-block-navigation__submenu-icon",children:(0,Kr.jsx)(Ise,{})}),(0,Kr.jsx)("div",{...ge})]})]})}var Dse=a(I(),1),Ase=a(y(),1);function Ose(){return(0,Ase.jsx)(Dse.InnerBlocks.Content,{})}var $f=a(te(),1),FTe={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:e=>(0,$f.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,$f.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,$f.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,$f.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,$f.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,$f.createBlock)("core/search")}]},Fse=FTe;var{name:zse}=t6,Hse={icon:({context:e})=>e==="list-view"?hu:im,__experimentalLabel(e,{context:t}){let{label:r}=e,o=e?.metadata?.name;return(t==="list-view"||t==="breadcrumb")&&o?o:r},edit:Rse,example:{attributes:{label:(0,Vse._x)("About","Example link text for Navigation Submenu"),type:"page"}},save:Ose,transforms:Fse},VTe=()=>D({name:zse,metadata:t6,settings:Hse});var nO={};J(nO,{init:()=>jTe,metadata:()=>s6,name:()=>Yse,settings:()=>Qse});var jse=a(L(),1),Use=a(I(),1),oO=a(y(),1);function Wse(){return(0,oO.jsx)("div",{...(0,Use.useBlockProps)(),children:(0,oO.jsx)("span",{children:(0,jse.__)("Page break")})})}var s6={$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 Gse=a(W(),1),$se=a(y(),1);function qse(){return(0,$se.jsx)(Gse.RawHTML,{children:"<!--nextpage-->"})}var Zse=a(te(),1),HTe={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&e.dataset.block==="core/nextpage",transform(){return(0,Zse.createBlock)("core/nextpage",{})}}]},Kse=HTe;var{name:Yse}=s6,Qse={icon:eI,example:{},transforms:Kse,edit:Wse,save:qse},jTe=()=>D({name:Yse,metadata:s6,settings:Qse});var iO={};J(iO,{init:()=>WTe,metadata:()=>l6,name:()=>tle,settings:()=>rle});var ele=a(Kd(),1);var l0=a(I(),1),Uc=a(F(),1),Wu=a(L(),1);var Na=a(y(),1);function Xse({attributes:e,setAttributes:t}){let{displayMode:r,text:o}=e,n=r==="icon"||r==="both",i=r==="text"||r==="both",s=o||(0,Wu.__)("Close"),l=(0,l0.useBlockProps)({className:"wp-block-navigation-overlay-close"}),c=ee();return(0,Na.jsxs)(Na.Fragment,{children:[(0,Na.jsx)(l0.InspectorControls,{children:(0,Na.jsx)(Uc.__experimentalToolsPanel,{label:(0,Wu.__)("Settings"),resetAll:()=>t({displayMode:"icon"}),dropdownMenuProps:c,children:(0,Na.jsx)(Uc.__experimentalToolsPanelItem,{label:(0,Wu.__)("Display Mode"),isShownByDefault:!0,hasValue:()=>r!=="icon",onDeselect:()=>t({displayMode:"icon"}),children:(0,Na.jsxs)(Uc.__experimentalToggleGroupControl,{label:(0,Wu.__)("Display Mode"),value:r,onChange:u=>t({displayMode:u}),isBlock:!0,children:[(0,Na.jsx)(Uc.__experimentalToggleGroupControlOption,{value:"icon",label:(0,Wu.__)("Icon")}),(0,Na.jsx)(Uc.__experimentalToggleGroupControlOption,{value:"text",label:(0,Wu.__)("Text")}),(0,Na.jsx)(Uc.__experimentalToggleGroupControlOption,{value:"both",label:(0,Wu.__)("Both")})]})})})}),(0,Na.jsxs)("button",{...l,type:"button","aria-label":i?void 0:(0,Wu.__)("Close"),children:[n&&(0,Na.jsx)(fa,{icon:um}),i&&(0,Na.jsx)(l0.RichText,{identifier:"text",value:s,onChange:u=>t({text:u}),tagName:"span",className:"wp-block-navigation-overlay-close__text",allowedFormats:["core/bold","core/italic"]})]})]})}var l6={$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}},shadow:!0,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!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 c6=a(A(),1),aO=a(y(),1),Jse=(0,aO.jsx)(c6.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,aO.jsx)(c6.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:tle}=l6,rle={icon:Jse,edit:Xse},WTe=()=>((0,ele.addFilter)("blockEditor.__unstableCanInsertBlockType","core/navigation-overlay-close/restrict-to-overlay-template-parts",(e,t)=>t.name!=="core/navigation-overlay-close"||!e?e:cx()),D({name:tle,metadata:l6,settings:rle}));var lO={};J(lO,{init:()=>KTe,metadata:()=>u6,name:()=>cle,settings:()=>ule});var u6={$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 ile=a(te(),1),Bp=a(H(),1),p6=a(W(),1),Ip=a(I(),1),sle=a(ae(),1),m6=a(L(),1);var ole=a(H(),1),sO=new WeakMap;function nle(){let e=(0,ole.useRegistry)();if(!sO.has(e)){let t=new Map;sO.set(e,$Te.bind(null,t))}return sO.get(e)}function $Te(e,{name:t,blocks:r}){let o=[...r];for(;o.length;){let n=o.shift();for(let i of n.innerBlocks??[])o.unshift(i);n.name==="core/pattern"&&qTe(e,t,n.attributes.slug)}}function qTe(e,t,r){if(e.has(t)||e.set(t,new Set),e.get(t).add(r),ale(e,t))throw new TypeError(`Pattern ${t} has a circular dependency and cannot be rendered.`)}function ale(e,t,r=new Set,o=new Set){r.add(t),o.add(t);let n=e.get(t)??new Set;for(let i of n)if(r.has(i)){if(o.has(i))return!0}else if(ale(e,i,r,o))return!0;return o.delete(t),!1}var d6=a(y(),1),ZTe=({attributes:e,clientId:t})=>{let r=(0,Bp.useRegistry)(),o=(0,Bp.useSelect)(h=>h(Ip.store).__experimentalGetParsedPattern(e.slug),[e.slug]),n=(0,Bp.useSelect)(h=>h(sle.store).getCurrentTheme()?.stylesheet,[]),{replaceBlocks:i,setBlockEditingMode:s,__unstableMarkNextChangeAsNotPersistent:l}=(0,Bp.useDispatch)(Ip.store),{getBlockRootClientId:c,getBlockEditingMode:u}=(0,Bp.useSelect)(Ip.store),[d,p]=(0,p6.useState)(!1),m=nle();function f(h){return h.innerBlocks.find(b=>b.name==="core/template-part")&&(h.innerBlocks=h.innerBlocks.map(b=>(b.name==="core/template-part"&&b.attributes.theme===void 0&&(b.attributes.theme=n),b))),h.name==="core/template-part"&&h.attributes.theme===void 0&&(h.attributes.theme=n),h}(0,p6.useEffect)(()=>{if(!d&&o?.blocks){try{m(o)}catch{p(!0);return}window.queueMicrotask(()=>{let h=c(t),b=o.blocks.map(v=>(0,ile.cloneBlock)(f(v)));b.length===1&&o.categories?.length>0&&(b[0].attributes={...b[0].attributes,metadata:{...b[0].attributes.metadata,categories:o.categories,patternName:o.name,name:b[0].attributes.metadata.name||o.title}});let _=u(h);r.batch(()=>{l(),s(h,"default"),l(),i(t,b),l(),s(h,_)})})}},[t,d,o,l,i,u,s,c]);let g=(0,Ip.useBlockProps)();return d?(0,d6.jsx)("div",{...g,children:(0,d6.jsx)(Ip.Warning,{children:(0,m6.sprintf)((0,m6.__)('Pattern "%s" cannot be rendered inside itself.'),o?.name)})}):(0,d6.jsx)("div",{...g})},lle=ZTe;var{name:cle}=u6,ule={edit:lle},KTe=()=>D({name:cle,metadata:u6,settings:ule});var uO={};J(uO,{init:()=>tEe,metadata:()=>f6,name:()=>_le,settings:()=>xle});var f6={$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},background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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}},shadow:!0,contentRole:!0},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"};var ble=a(te(),1),Xn=a(I(),1),en=a(F(),1),Ao=a(L(),1),Np=a(W(),1),yle=a(ae(),1),g6=a(H(),1);var cO=a(te(),1),dle=a(H(),1),ple=a(I(),1);function QTe(e=[]){let t="post-type",r={},o=[];return e.forEach(({id:n,title:i,link:s,type:l,parent:c})=>{let u=r[n]?.innerBlocks??[];r[n]=(0,cO.createBlock)("core/navigation-link",{id:n,label:i.rendered,url:s,type:l,kind:t,metadata:{bindings:e0(t)}},u),c?(r[c]||(r[c]={innerBlocks:[]}),r[c].innerBlocks.push(r[n])):o.push(r[n])}),o}function mle(e,t){for(let r of e){if(r.attributes.id===t)return r;if(r.innerBlocks&&r.innerBlocks.length){let o=mle(r.innerBlocks,t);if(o)return o}}return null}function XTe(e=[],t=null){let r=QTe(e);if(t){let n=mle(r,t);n&&n.innerBlocks&&(r=n.innerBlocks)}let o=n=>{n.forEach((i,s,l)=>{let{attributes:c,innerBlocks:u}=i;if(u.length!==0){o(u);let d=(0,cO.createBlock)("core/navigation-submenu",c,u);l[s]=d}})};return o(r),r}function fle({clientId:e,pages:t,parentClientId:r,parentPageID:o}){let{replaceBlock:n,selectBlock:i}=(0,dle.useDispatch)(ple.store);return()=>{let s=XTe(t,o);n(e,s),i(r)}}var jt=a(y(),1),gle=100,hle=()=>{};function JTe({isBusy:e,onConfirm:t,onCancel:r}){return(0,jt.jsx)(en.__experimentalConfirmDialog,{isOpen:!0,title:(0,Ao.__)("Detach Page List"),__experimentalHideHeader:!1,confirmButtonText:(0,Ao.__)("Detach"),onConfirm:t,onCancel:r,isBusy:e,size:"medium",children:(0,Ao.__)("This Navigation Menu displays your website's pages. Detaching will enable you to add, delete, or reorder pages. However, new pages will no longer be added automatically.")})}function eEe({blockProps:e,innerBlocksProps:t,hasResolvedPages:r,blockList:o,pages:n,parentPageID:i}){if(!r)return(0,jt.jsx)("div",{...e,children:(0,jt.jsx)("div",{className:"wp-block-page-list__loading-indicator-container",children:(0,jt.jsx)(en.Spinner,{className:"wp-block-page-list__loading-indicator"})})});if(n===null)return(0,jt.jsx)("div",{...e,children:(0,jt.jsx)(en.Notice,{status:"warning",isDismissible:!1,children:(0,Ao.__)("Page List: Cannot retrieve Pages.")})});if(n.length===0)return(0,jt.jsx)("div",{...e,children:(0,jt.jsx)(en.Notice,{status:"info",isDismissible:!1,children:(0,Ao.__)("Page List: Cannot retrieve Pages.")})});if(o.length===0){let s=n.find(l=>l.id===i);return s?.title?.rendered?(0,jt.jsx)("div",{...e,children:(0,jt.jsx)(Xn.Warning,{children:(0,Ao.sprintf)((0,Ao.__)('Page List: "%s" page has no children.'),s.title.rendered)})}):(0,jt.jsx)("div",{...e,children:(0,jt.jsx)(en.Notice,{status:"warning",isDismissible:!1,children:(0,Ao.__)("Page List: Cannot retrieve Pages.")})})}if(n.length>0)return(0,jt.jsx)("ul",{...t})}function vle({context:e,clientId:t,attributes:r,setAttributes:o}){let{parentPageID:n}=r,[i,s]=(0,Np.useState)(!1),l=ee(),{records:c,hasResolved:u}=(0,yle.useEntityRecords)("postType","page",{per_page:gle,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),d="showSubmenuIcon"in e&&c?.length>0&&c?.length<=gle,p=(0,Np.useMemo)(()=>c===null?new Map:c.sort((S,P)=>S.menu_order===P.menu_order?S.title.rendered.localeCompare(P.title.rendered):S.menu_order-P.menu_order).reduce((S,P)=>{let{parent:B}=P;return S.has(B)?S.get(B).push(P):S.set(B,[P]),S},new Map),[c]),m=(0,Xn.useBlockProps)({className:T("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,Xn.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,Xn.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor,"open-on-click":e.submenuVisibility==="click","open-always":e.submenuVisibility==="always"}),style:{...e.style?.color}}),f=(0,Np.useMemo)(function C(S=0,P=0){let B=p.get(S);return B?.length?B.reduce((N,E)=>{let M=p.has(E.id),R={value:E.id,label:"\u2014 ".repeat(P)+E.title.rendered,rawName:E.title.rendered};return N.push(R),M&&N.push(...C(E.id,P+1)),N},[]):[]},[p]),g=(0,Np.useMemo)(function C(S=n){let P=p.get(S);return P?.length?P.reduce((B,N)=>{let E=p.has(N.id),M={id:N.id,label:N.title?.rendered?.trim()!==""?N.title?.rendered:(0,Ao.__)("(no title)"),title:N.title?.rendered?.trim()!==""?N.title?.rendered:(0,Ao.__)("(no title)"),link:N.url,hasChildren:E},R=null,O=C(N.id);return R=(0,ble.createBlock)("core/page-list-item",M,O),B.push(R),B},[]):[]},[p,n]),{hasSelectedChild:h,parentClientId:b,hasDraggedChild:_,isChildOfNavigation:v}=(0,g6.useSelect)(C=>{let{getBlockParentsByBlockName:S,hasSelectedInnerBlock:P,hasDraggedInnerBlock:B}=C(Xn.store),N=S(t,"core/navigation",!0);return{isChildOfNavigation:N.length>0,hasSelectedChild:P(t,!0),hasDraggedChild:B(t,!0),parentClientId:N[0]}},[t]),w=fle({clientId:t,pages:c,parentClientId:b,parentPageID:n}),x=(0,Xn.useInnerBlocksProps)(m,{renderAppender:!1,__unstableDisableDropZone:!0,templateLock:v?!1:"all",onInput:hle,onChange:hle,value:g}),{selectBlock:k}=(0,g6.useDispatch)(Xn.store);return(0,Np.useEffect)(()=>{(h||_)&&(s(!0),k(b))},[h,_,b,k]),(0,jt.jsxs)(jt.Fragment,{children:[(f.length>0||d)&&(0,jt.jsx)(Xn.InspectorControls,{children:(0,jt.jsxs)(en.__experimentalToolsPanel,{label:(0,Ao.__)("Settings"),resetAll:()=>{o({parentPageID:0})},dropdownMenuProps:l,children:[f.length>0&&(0,jt.jsx)(en.__experimentalToolsPanelItem,{label:(0,Ao.__)("Parent Page"),hasValue:()=>n!==0,onDeselect:()=>o({parentPageID:0}),isShownByDefault:!0,children:(0,jt.jsx)(en.ComboboxControl,{className:"editor-page-attributes__parent",label:(0,Ao.__)("Parent"),value:n,options:f,onChange:C=>o({parentPageID:C??0}),help:(0,Ao.__)("Choose a page to show only its subpages.")})}),d&&(0,jt.jsx)(en.Button,{__next40pxDefaultSize:!0,variant:"secondary",accessibleWhenDisabled:!0,disabled:!u,onClick:()=>s(!0),style:{gridColumn:"1 / -1",justifyContent:"center"},children:(0,Ao.__)("Detach Page List")})]})}),d&&(0,jt.jsxs)(jt.Fragment,{children:[(0,jt.jsx)(Xn.BlockControls,{group:"other",children:(0,jt.jsx)(en.ToolbarButton,{title:(0,Ao.__)("Detach"),disabled:!u,onClick:()=>s(!0),children:(0,Ao.__)("Detach")})}),i&&(0,jt.jsx)(JTe,{isBusy:!u,onConfirm:()=>{w(),s(!1)},onCancel:()=>s(!1)})]}),(0,jt.jsx)(eEe,{blockProps:m,innerBlocksProps:x,hasResolvedPages:u,blockList:g,pages:c,parentPageID:n})]})}var{name:_le}=f6,xle={icon:rI,example:{},edit:vle},tEe=()=>D({name:_le,metadata:f6,settings:xle});var gO={};J(gO,{init:()=>nEe,metadata:()=>h6,name:()=>Cle,settings:()=>Sle});var h6={$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 y6=a(I(),1),kle=a(H(),1),mO=a(ae(),1),fO=a(ma(),1);var b6=a(F(),1),dO=a(y(),1),pO=()=>(0,dO.jsx)(b6.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,dO.jsx)(b6.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var Ma=a(y(),1);function oEe(){return(0,kle.useSelect)(e=>{if(!e(mO.store).canUser("read",{kind:"root",name:"site"}))return;let r=e(mO.store).getEntityRecord("root","site");return r?.show_on_front==="page"&&r?.page_on_front},[])}function wle({context:e,attributes:t}){let{id:r,label:o,link:n,hasChildren:i,title:s}=t,l="showSubmenuIcon"in e,c=oEe(),u=e.submenuVisibility,d=u==="click",p=Of(e,!0),m=l9(p),f=(0,y6.useBlockProps)(m,{className:"wp-block-pages-list__item"}),g=(0,y6.useInnerBlocksProps)(f);return(0,Ma.jsxs)("li",{className:T("wp-block-pages-list__item",{"has-child":i,"wp-block-navigation-item":l,"open-on-click":d,"open-always":u==="always","open-on-hover-click":u==="hover"&&e.showSubmenuIcon,"menu-item-home":r===c}),children:[i&&d?(0,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsx)("button",{type:"button",className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false",dangerouslySetInnerHTML:{__html:(0,fO.safeHTML)(o)}}),(0,Ma.jsx)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon",children:(0,Ma.jsx)(pO,{})})]}):(0,Ma.jsx)("a",{className:T("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":l}),href:n,dangerouslySetInnerHTML:{__html:(0,fO.safeHTML)(s)}}),i&&(0,Ma.jsxs)(Ma.Fragment,{children:[!d&&e.showSubmenuIcon&&(0,Ma.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,Ma.jsx)(pO,{})}),(0,Ma.jsx)("ul",{...g})]})]},r)}var{name:Cle}=h6,Sle={__experimentalLabel:({label:e})=>e,icon:hu,example:{},edit:wle},nEe=()=>D({name:Cle,metadata:h6,settings:Sle});var kO={};J(kO,{init:()=>mEe,metadata:()=>m0,name:()=>w6,settings:()=>Gle});var xO=a(L(),1);var Wle=a(te(),1);var Tle=a(W(),1),Oo=a(I(),1),hO=a(L(),1),Wc=a(y(),1),c0={className:!1},bO={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"}},v6=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;let t={};(e.customTextColor||e.customBackgroundColor)&&(t.color={}),e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customFontSize&&(t.typography={fontSize:e.customFontSize});let{customTextColor:r,customBackgroundColor:o,customFontSize:n,...i}=e;return{...i,style:t}},u0=e=>{let{align:t,...r}=e;return t?{...r,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e},{style:Q0t,...fx}=bO,aEe=[{supports:{className:!1,color:!0,typography:{fontSize:!0}},attributes:bO,isEligible(e){return!!e.align||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save({attributes:e}){let{align:t,content:r,dropCap:o,direction:n}=e,i=T({"has-drop-cap":t===((0,hO.isRTL)()?"left":"right")||t==="center"?!1:o,[`has-text-align-${t}`]:t});return(0,Wc.jsx)("p",{...Oo.useBlockProps.save({className:i,dir:n}),children:(0,Wc.jsx)(Oo.RichText.Content,{value:r})})},migrate:u0},{supports:c0,attributes:{...fx,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:u0,save({attributes:e}){let{align:t,content:r,dropCap:o,direction:n}=e,i=T({"has-drop-cap":t===((0,hO.isRTL)()?"left":"right")||t==="center"?!1:o,[`has-text-align-${t}`]:t});return(0,Wc.jsx)("p",{...Oo.useBlockProps.save({className:i,dir:n}),children:(0,Wc.jsx)(Oo.RichText.Content,{value:r})})}},{supports:c0,attributes:{...fx,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return v6(u0(e))},save({attributes:e}){let{align:t,content:r,dropCap:o,backgroundColor:n,textColor:i,customBackgroundColor:s,customTextColor:l,fontSize:c,customFontSize:u,direction:d}=e,p=(0,Oo.getColorClassName)("color",i),m=(0,Oo.getColorClassName)("background-color",n),f=(0,Oo.getFontSizeClass)(c),g=T({"has-text-color":i||l,"has-background":n||s,"has-drop-cap":o,[`has-text-align-${t}`]:t,[f]:f,[p]:p,[m]:m}),h={backgroundColor:m?void 0:s,color:p?void 0:l,fontSize:f?void 0:u};return(0,Wc.jsx)(Oo.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:r,dir:d})}},{supports:c0,attributes:{...fx,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return v6(u0(e))},save({attributes:e}){let{align:t,content:r,dropCap:o,backgroundColor:n,textColor:i,customBackgroundColor:s,customTextColor:l,fontSize:c,customFontSize:u,direction:d}=e,p=(0,Oo.getColorClassName)("color",i),m=(0,Oo.getColorClassName)("background-color",n),f=(0,Oo.getFontSizeClass)(c),g=T({"has-text-color":i||l,"has-background":n||s,"has-drop-cap":o,[f]:f,[p]:p,[m]:m}),h={backgroundColor:m?void 0:s,color:p?void 0:l,fontSize:f?void 0:u,textAlign:t};return(0,Wc.jsx)(Oo.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:r,dir:d})}},{supports:c0,attributes:{...fx,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate(e){return v6(u0(e))},save({attributes:e}){let{width:t,align:r,content:o,dropCap:n,backgroundColor:i,textColor:s,customBackgroundColor:l,customTextColor:c,fontSize:u,customFontSize:d}=e,p=(0,Oo.getColorClassName)("color",s),m=(0,Oo.getColorClassName)("background-color",i),f=u&&`is-${u}-text`,g=T({[`align${t}`]:t,"has-background":i||l,"has-drop-cap":n,[f]:f,[p]:p,[m]:m}),h={backgroundColor:m?void 0:l,color:p?void 0:c,fontSize:f?void 0:d,textAlign:r};return(0,Wc.jsx)(Oo.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:o})}},{supports:c0,attributes:{...fx,fontSize:{type:"number"}},save({attributes:e}){let{width:t,align:r,content:o,dropCap:n,backgroundColor:i,textColor:s,fontSize:l}=e,c=T({[`align${t}`]:t,"has-background":i,"has-drop-cap":n});return(0,Wc.jsx)("p",{style:{backgroundColor:i,color:s,fontSize:l,textAlign:r},className:c||void 0,children:o})},migrate(e){return v6(u0({...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:c0,attributes:{...bO,content:{type:"string",source:"html",default:""}},save({attributes:e}){return(0,Wc.jsx)(Tle.RawHTML,{children:e.content})},migrate:e=>e}],Ele=aEe;var mi=a(L(),1),p0=a(F(),1),Jn=a(I(),1),Ole=a(H(),1),Fle=a(te(),1);var Ple=a(W(),1),Ble=a(_e(),1),Ile=a(vl(),1),d0=a(H(),1),yO=a(I(),1),Gu=a(te(),1);var{subscribeOwnedListener:iEe}=le(Ile.privateApis);function Nle(e){let{batch:t}=(0,d0.useRegistry)(),{moveBlocksToPosition:r,replaceBlocks:o,selectionChange:n}=(0,d0.useDispatch)(yO.store),{getBlockRootClientId:i,getBlockIndex:s,getBlockOrder:l,getBlockName:c,getBlock:u,canInsertBlockType:d}=(0,d0.useSelect)(yO.store),p=(0,Ple.useRef)(e);return p.current=e,(0,Ble.useRefEffect)(m=>{function f(g){if(g.defaultPrevented||g.inputType!=="insertParagraph")return;let{content:h,clientId:b}=p.current;if(h.length)return;let _=i(b);if(!(0,Gu.hasBlockSupport)(c(_),"__experimentalOnEnter",!1))return;let v=l(_),w=v.indexOf(b);if(w===v.length-1){let E=_;for(;!d(c(b),i(E));)E=i(E);typeof E=="string"&&(g.preventDefault(),r([b],_,i(E),s(E)+1));return}let x=(0,Gu.getDefaultBlockName)(),k=c(_),C=i(_);if(!d(x,C)||!d(k,C))return;g.preventDefault();let S=u(_),P=(0,Gu.cloneBlock)({...S,innerBlocks:S.innerBlocks.slice(0,w)}),B=(0,Gu.createBlock)(x),N=(0,Gu.cloneBlock)({...S,innerBlocks:S.innerBlocks.slice(w+1)});t(()=>{o(_,[P,B,N]),n(B.clientId)})}return iEe(m,"beforeinput",f,!0)},[])}var Mle=a(_e(),1),_6=a(W(),1),Lle=a(jm(),1),Rle=a(H(),1),Dle=a(I(),1);function Ale(e,t,r){let{__unstableMarkNextChangeAsNotPersistent:o}=(0,Rle.useDispatch)(Dle.store),n=(0,Mle.useEvent)(()=>{(0,Lle.default)("align attribute in paragraph block",{alternative:"style.typography.textAlign",since:"7.0"}),o(),r({style:{...t,typography:{...t?.typography,textAlign:e}}})}),i=(0,_6.useRef)();(0,_6.useEffect)(()=>{e==="full"||e==="wide"||e===i.current||(i.current=e,n())},[e,n])}var as=a(y(),1);function sEe({direction:e,setDirection:t}){return(0,mi.isRTL)()&&(0,as.jsx)(p0.ToolbarButton,{icon:gB,title:(0,mi._x)("Left to right","editor button"),isActive:e==="ltr",onClick:()=>{t(e==="ltr"?void 0:"ltr")}})}function vO(e){return e===((0,mi.isRTL)()?"left":"right")||e==="center"}function lEe({clientId:e,attributes:t,setAttributes:r,name:o}){let[n]=(0,Jn.useSettings)("typography.dropCap"),i=(0,Ole.useSelect)(p=>{let{hasSelectedBlockStyleState:m}=p(Jn.store);return m(e)},[e]);if(!n||i)return null;let{style:s,dropCap:l}=t,c=s?.typography?.textAlign,u;vO(c)?u=(0,mi.__)("Not available for aligned text."):l?u=(0,mi.__)("Showing large initial letter."):u=(0,mi.__)("Show a large initial letter.");let d=(0,Fle.getBlockSupport)(o,"typography.defaultControls.dropCap",!1);return(0,as.jsx)(Jn.InspectorControls,{group:"typography",children:(0,as.jsx)(p0.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,mi.__)("Drop cap"),isShownByDefault:d,onDeselect:()=>r({dropCap:!1}),resetAllFilter:()=>({dropCap:!1}),panelId:e,children:(0,as.jsx)(p0.ToggleControl,{label:(0,mi.__)("Drop cap"),checked:!!l,onChange:()=>r({dropCap:!l}),help:u,disabled:vO(c)})})})}function cEe({attributes:e,mergeBlocks:t,onReplace:r,onRemove:o,setAttributes:n,clientId:i,isSelected:s,name:l}){let{content:c,direction:u,dropCap:d,placeholder:p,style:m}=e,f=m?.typography?.textAlign;Ale(e.align,m,n);let g=(0,Jn.useBlockProps)({ref:Nle({clientId:i,content:c}),className:T({"has-drop-cap":vO(f)?!1:d}),style:{direction:u},"aria-label":Jn.RichText.isEmpty(c)?(0,mi.__)("Empty block; start writing or type forward slash to choose a block"):(0,mi.__)("Block: Paragraph")}),h=(0,Jn.useBlockEditingMode)();return(0,as.jsxs)(as.Fragment,{children:[h==="default"&&(0,as.jsx)(Jn.BlockControls,{group:"block",children:(0,as.jsx)(sEe,{direction:u,setDirection:b=>n({direction:b})})}),s&&(0,as.jsx)(lEe,{name:l,clientId:i,attributes:e,setAttributes:n}),(0,as.jsx)(Jn.RichText,{identifier:"content",tagName:"p",...g,value:c,onChange:b=>n({content:b}),onMerge:t,onReplace:r,onRemove:o,"data-empty":Jn.RichText.isEmpty(c),placeholder:p||(0,mi.__)("Type / to choose a block"),"data-custom-placeholder":p?!0:void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})]})}var Vle=cEe;var m0={$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,textShadow:!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 x6=a(I(),1),zle=a(L(),1),_O=a(y(),1);function Hle({attributes:e}){let{content:t,dropCap:r,direction:o,style:n}=e,i=n?.typography?.textAlign,s=T({"has-drop-cap":i===((0,zle.isRTL)()?"left":"right")||i==="center"?!1:r});return(0,_O.jsx)("p",{...x6.useBlockProps.save({className:s,dir:o}),children:(0,_O.jsx)(x6.RichText.Content,{value:t})})}var k6=a(te(),1);var{name:jle}=m0,dEe={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){let t=(0,k6.getBlockAttributes)(jle,e.outerHTML),{textAlign:r}=e.style||{};return(r==="left"||r==="center"||r==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:r}}),(0,k6.createBlock)(jle,t)}}]},Ule=dEe;var{editableRootKey:pEe}=le(Wle.privateApis),{name:w6}=m0,Gle={icon:oI,[pEe]:!0,example:{attributes:{content:(0,xO.__)("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,xO.__)("Empty"):o}},transforms:Ule,deprecated:Ele,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:Vle,save:Hle},mEe=()=>D({name:w6,metadata:m0,settings:Gle});var zO={};J(zO,{init:()=>pPe,metadata:()=>C6,name:()=>Lce,settings:()=>Rce});var C6={$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,shadow:!0,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-playlist-editor",style:"wp-block-playlist"};var ho=a(W(),1),Or=a(I(),1),Sr=a(F(),1),hx=a(H(),1),Ece=a(br(),1),vt=a(L(),1);var VO=a(te(),1),Pce=a(Ur(),1);var $c=a(W(),1),B6=a(_e(),1),gx=a(L(),1);function ace(e){let t=-1/0;for(let r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return t}function Gc(e){return String(e??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function $le(e){return Gc(typeof e=="number"?`${e}px`:e)}function gEe(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 Fo(e,t=0,r=1){return Math.max(t,Math.min(e,r))}function T6(e,t=null,r={}){let{min:o=-1/0,max:n=1/0,integer:i=!1}=r,s=typeof e=="number"?e:typeof e=="string"&&e.trim()!==""?Number(e):NaN;if(!Number.isFinite(s))return t;let l=Fo(s,o,n);return i?Math.round(l):l}function BO(e,t=null){if(Array.isArray(e))return e;if(typeof e=="string"&&e.trim().startsWith("["))try{let r=JSON.parse(e);if(Array.isArray(r))return r}catch{}return t}function IO(e,t={}){let{min:r=-1/0,max:o=1/0,fallback:n=null}=t,i=BO(e);if(!i&&typeof e=="string"&&e.trim()!==""&&(i=e.split(/[,\s]+/)),!i)return n;let s=i.map(l=>T6(l)).filter(l=>l!==null&&l>=r&&l<=o);return s.length?s:n}function hEe(e,t,r=null){return t.includes(e)?e:r}function bEe(e){if(typeof e=="string"){let t=e.trim().toLowerCase();return t!==""&&t!=="false"&&t!=="0"}return!!e}function yEe(e){return e===void 0?void 0:e==="true"}function qle(e){if(typeof e=="string"&&e.trim().startsWith("["))try{return JSON.parse(e)}catch{}return e}function ice(e){let t={},r=(s,l=s)=>{let c=yEe(e.dataset[l]);c!==void 0&&(t[s]=c)},o=(s,l=s,c=!1)=>{let u=e.dataset[l];u&&(t[s]=c?parseFloat(u):parseInt(u,10))},n=(s,l=s)=>{let c=e.dataset[l];c&&(t[s]=/^\d+(\.\d+)?$/.test(c.trim())?parseFloat(c):c)},i=(s,l=s)=>{let c=e.dataset[l];if(!c)return;let u=BO(c);u?t[s]=u:console.warn(`[WaveformPlayer] Invalid ${l} attribute, expected a JSON array:`,c)};if(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),n("buttonSize"),n("buttonRadius"),e.dataset.colorPreset&&(t.colorPreset=e.dataset.colorPreset),e.dataset.waveformColor&&(t.waveformColor=qle(e.dataset.waveformColor)),e.dataset.progressColor&&(t.progressColor=qle(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"),e.dataset.playbackRates){let s=IO(e.dataset.playbackRates);s?t.playbackRates=s:console.warn("[WaveformPlayer] Invalid playbackRates attribute:",e.dataset.playbackRates)}return 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),t}function vEe(e,...t){let r=0;return e.replace(/%(?:(\d+)\$)?s/g,(o,n)=>{let i=n?Number(n)-1:r++;return t[i]??o})}function $u(e){let t=Number(e);if(!t||!Number.isFinite(t)||t<0)return"0:00";let r=Math.floor(t/3600),o=Math.floor(t%3600/60),n=Math.floor(t%60);return r>0?`${r}:${o.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`:`${o}:${n.toString().padStart(2,"0")}`}var _Ee=0;function xEe(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)}_${(_Ee++).toString(36)}`}function sce(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 lce(e){if(typeof e!="string")return null;let t=e.match(/rgba?\(\s*([\d.]+)\s*[,\s]\s*([\d.]+)\s*[,\s]\s*([\d.]+)\s*(?:[,/]\s*([\d.]+)(%?))?/i);if(!t)return null;let r=Number(t[1]),o=Number(t[2]),n=Number(t[3]);if(!Number.isFinite(r)||!Number.isFinite(o)||!Number.isFinite(n))return null;let i=t[4]===void 0?1:Number(t[4]);return Number.isFinite(i)?(t[5]==="%"&&(i/=100),{r,g:o,b:n,a:Fo(i,0,1)}):null}function kEe(e){let t=lce(e);return!t||t.a<=0?null:(t.r*299+t.g*587+t.b*114)/1e3}function Zle(...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 wEe(e,t){let r;return function(...o){let n=()=>{clearTimeout(r),e(...o)};clearTimeout(r),r=setTimeout(n,t)}}function E6(e,t){if(e.length===t)return e;if(e.length===0||t===0)return[];let r=[];if(t>e.length){let o=(e.length-1)/(t-1);for(let n=0;n<t;n++){let i=n*o,s=Math.floor(i),l=Math.ceil(i),c=i-s;if(l>=e.length)r.push(e[e.length-1]);else if(s===l)r.push(e[s]);else{let u=e[s]*(1-c)+e[l]*c;r.push(u)}}}else{let o=e.length/t;for(let n=0;n<t;n++){let i=Math.floor(n*o),s=Math.floor((n+1)*o),l=0,c=0;for(let u=i;u<=s&&u<e.length;u++)e[u]>l&&(l=e[u]),c++;if(c===0){let u=Math.min(Math.round(n*o),e.length-1);l=e[u]}r.push(l)}}return r}function ql(e,t,r,o){if(!Array.isArray(t))return t;if(t.length<2)return t[0];let n=r.width,i=r.height,s=o&&o.waveformGradient,[l,c,u,d]=s==="horizontal"?[0,0,n,0]:s==="diagonal"?[0,0,n,i]:[0,0,0,i];try{let p=e.createLinearGradient(l,c,u,d);return t.forEach((m,f)=>p.addColorStop(f/(t.length-1),m)),p}catch{return t[0]}}function f0(e,t,r,o,n,i){if((Array.isArray(i)?i.some(s=>s>0):i>0)&&typeof e.roundRect=="function"){let s=Math.min(o/2,Math.abs(n)/2),l=c=>Fo(c,0,s);e.beginPath(),e.roundRect(t,r,o,n,Array.isArray(i)?i.map(l):l(i)),e.fill()}else e.fillRect(t,r,o,n)}function cce(e,t){return(e.barRadius||0)*t}function CEe(e,t){let r=cce(e,t);return[r,r,0,0]}function Kle(e,t,r,o,n){let i=n/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 wO(e,t,r,o,n){let i=window.devicePixelRatio||1,s=n.barWidth*i,l=n.barSpacing*i,c=Math.floor(t.width/(s+l)),u=E6(r,c),d=t.height,p=o*t.width,m=CEe(n,i),f=ql(e,n.color,t,n),g=ql(e,n.progressColor,t,n);e.clearRect(0,0,t.width,t.height),e.fillStyle=f;for(let h=0;h<u.length;h++){let b=h*(s+l);if(b+s>t.width)break;let _=u[h]*d*.9,v=d-_;f0(e,b,v,s,_,m)}e.save(),e.beginPath(),e.rect(0,0,p,d),e.clip(),e.fillStyle=g;for(let h=0;h<u.length;h++){let b=h*(s+l);if(b>p)break;let _=u[h]*d*.9,v=d-_;f0(e,b,v,s,_,m)}e.restore()}function SEe(e,t,r,o,n){let i=window.devicePixelRatio||1,s=n.barWidth*i,l=n.barSpacing*i,c=Math.floor(t.width/(s+l)),u=E6(r,c),d=t.height,p=d/2,m=o*t.width,f=cce(n,i),g=[f,f,0,0],h=[0,0,f,f],b=ql(e,n.color,t,n),_=ql(e,n.progressColor,t,n);e.clearRect(0,0,t.width,t.height),e.fillStyle=b;for(let v=0;v<u.length;v++){let w=v*(s+l);if(w+s>t.width)break;let x=u[v]*d*.45;f0(e,w,p-x,s,x,g),f0(e,w,p,s,x,h)}e.save(),e.beginPath(),e.rect(0,0,m,d),e.clip(),e.fillStyle=_;for(let v=0;v<u.length;v++){let w=v*(s+l);if(w>m)break;let x=u[v]*d*.45;f0(e,w,p-x,s,x,g),f0(e,w,p,s,x,h)}e.restore()}function TEe(e,t,r,o,n){let i=t.width,s=t.height,l=s/2,c=s*.35;e.clearRect(0,0,i,s);let u=(d,p,m=1,f=!1)=>{let g=ql(e,d,t,n),h=Array.isArray(d)?d[d.length-1]:d;f&&(e.shadowBlur=12,e.shadowColor=h),e.strokeStyle=g,e.lineWidth=p,e.lineCap="round",e.lineJoin="round",e.beginPath(),e.moveTo(0,l);let b=[],_=Math.floor(r.length*m);for(let v=0;v<_;v++){let w=v/(r.length-1)*i,x=r[v],k=Math.sin(v*.1)*x,C=l+k*c;b.push({x:w,y:C})}for(let v=0;v<b.length-1;v++){let w=b[v].x+(b[v+1].x-b[v].x)*.5,x=b[v].y,k=b[v+1].x-(b[v+1].x-b[v].x)*.5,C=b[v+1].y;e.bezierCurveTo(w,x,k,C,b[v+1].x,b[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,l),e.lineTo(i,l),e.stroke();for(let d=0;d<=10;d++){let p=i/10*d;e.beginPath(),e.moveTo(p,0),e.lineTo(p,s),e.stroke()}u(n.color,2,1,!1),o>0&&u(n.progressColor,3,o,!0)}function Yle(e,t,r,o,n){let i=window.devicePixelRatio||1,s=(n.barWidth||3)*i,l=(n.barSpacing||1)*i,c=Math.floor(t.width/(s+l)),u=E6(r,c),d=t.height,p=4*i,m=2*i,f=o*t.width,g=d/2,h=ql(e,n.color,t,n),b=ql(e,n.progressColor,t,n);e.clearRect(0,0,t.width,t.height);for(let _=0;_<u.length;_++){let v=_*(s+l);if(v+s>t.width)break;let w=u[_]*d*.9,x=Math.floor(w/(p+m));e.fillStyle=v<f?b:h;for(let k=0;k<x;k++){let C=k*(p+m);e.fillRect(v,g-C-p,s,p),k>0&&e.fillRect(v,g+C,s,p)}}}function Qle(e,t,r,o,n){let i=window.devicePixelRatio||1,s=(n.barWidth||2)*i,l=(n.barSpacing||3)*i,c=Math.floor(t.width/(s+l)),u=E6(r,c),d=t.height,p=Math.max(1.5*i,s/2),m=o*t.width,f=d/2,g=ql(e,n.color,t,n),h=ql(e,n.progressColor,t,n);e.clearRect(0,0,t.width,t.height);for(let b=0;b<u.length;b++){let _=b*(s+l)+s/2;if(_>t.width)break;let v=u[b]*d*.9;e.fillStyle=_<m?h:g,e.beginPath(),e.arc(_,f-v/2,p,0,Math.PI*2),e.fill(),e.beginPath(),e.arc(_,f+v/2,p,0,Math.PI*2),e.fill()}}function EEe(e,t,r,o,n){let i=t.width,s=t.height,l=s/2,c=4,u=c/2,d=!!n.seekActive;if(e.clearRect(0,0,i,s),e.fillStyle=ql(e,n.color,t,n)||"rgba(255, 255, 255, 0.2)",Kle(e,u,i,l,c),e.fill(),o>0){let p=Math.max(u*2,o*i);e.save(),e.globalAlpha=n.seekHandle&&!d?.7:1,e.fillStyle=ql(e,n.progressColor,t,n)||"rgba(255, 255, 255, 0.9)",Kle(e,u,p,l,c),e.fill(),e.restore()}}var PEe={bars:wO,bar:wO,mirror:SEe,line:TEe,blocks:Yle,block:Yle,dots:Qle,dot:Qle,seekbar:EEe};function BEe(e,t,r,o,n){(PEe[n.waveformStyle]||wO)(e,t,r,o,n)}function IEe(e){try{let t=e.getChannelData(0),r=e.sampleRate,o=NEe(t,r);if(o.length<2)return 120;let n=[];for(let c=1;c<o.length;c++)n.push((o[c]-o[c-1])/r);let i={};n.forEach(c=>{let u=60/c,d=Math.round(u/3)*3;d>60&&d<200&&(i[d]=(i[d]||0)+1)});let s=0,l=120;for(let[c,u]of Object.entries(i))u>s&&(s=u,l=parseInt(c));return l<70&&i[l*2]?l*=2:l>160&&i[Math.round(l/2)]&&(l=Math.round(l/2)),l-1}catch(t){return console.warn("[WaveformPlayer] BPM detection failed:",t),null}}function NEe(e,t){let r=[],o=0;for(let n=0;n<e.length-2048;n+=1024){let i=0;for(let c=n;c<n+2048;c++)i+=e[c]*e[c];i=i/2048;let s=i-o,l=o*1.8+.01;if(s>l&&i>.01){let c=r[r.length-1]||0,u=t*.15;n-c>u&&r.push(n)}o=i*.8+o*.2}return r}function MEe(e,t=1800){let r=e.length/t,o=e.numberOfChannels,n=[];for(let s=0;s<o;s++){let l=e.getChannelData(s);for(let c=0;c<t;c++){let u=~~(c*r),d=~~(u+r),p=0,m=0;for(let g=u;g<d;g++){let h=l[g];h>m&&(m=h),h<p&&(p=h)}let f=Math.max(Math.abs(m),Math.abs(p));(s===0||f>n[c])&&(n[c]=f)}}let i=ace(n);return i>0?n.map(s=>s/i):n}async function Xle(e,t=1800,r=!1){let o;try{let n=window.AudioContext||window.webkitAudioContext;o=new n;let i=await(await fetch(e)).arrayBuffer(),s=await o.decodeAudioData(i),l=MEe(s,t);l=REe(l);let c=null;return r&&(c=IEe(s)),{peaks:l,bpm:c}}finally{o&&o.close()}}function LEe(e=1800){let t=[];for(let r=0;r<e;r++){let o=Math.random()*.5+.3,n=Math.sin(r/e*Math.PI*4)*.2;t.push(Fo(o+n,.1,1))}return t}function REe(e,t=.95){let r=ace(e);if(r===0||r>t)return e;let o=t/r;return e.map(n=>n*o)}var CO=128;function Jle(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 DEe(e){let t=0,r=0;for(let o=e;o&&o.nodeType===1&&r<.995;o=o.parentElement){let n=lce(getComputedStyle(o).backgroundColor);if(!n||n.a<=0)continue;let i=n.a*(1-r);t+=(n.r*299+n.g*587+n.b*114)/1e3*i,r+=i}return{sum:t,alpha:r}}function AEe(){let e=kEe(getComputedStyle(document.body).color);if(e!==null)return e>CO?"dark":"light";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"}function S6(e){if(Jle("dark"))return"dark";if(Jle("light"))return"light";try{let t=e&&e.nodeType===1?e:document.body,{sum:r,alpha:o}=DEe(t),n=AEe(),i=r+(n==="dark"?0:255)*(1-o);return i>CO?"light":i<CO?"dark":n}catch{return"dark"}}var g0={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 ece(e,t){if(e&&g0[e])return g0[e];let r=S6(t);return g0[r]}var SO={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},uce={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}},dce=["auto","top","center","bottom"],NO=.25,MO=4,OEe={buttonAlign:dce,layout:["default","preview"],buttonStyle:["circle","minimal"],artworkPosition:["info","button"],waveformStyle:Object.keys(uce),waveformGradient:["vertical","horizontal","diagonal"],audioMode:["self","external"],preload:["none","metadata","auto"],colorPreset:Object.keys(g0),crossOrigin:["anonymous","use-credentials"]},FEe={height:{min:1,integer:!0},samples:{min:1,integer:!0},barWidth:{min:0},barSpacing:{min:0},barRadius:{min:0},bpm:{min:1},playbackRate:{min:NO,max:MO}},VEe=["autoplay","showControls","showInfo","showTime","showHoverTime","seekHandle","showBPM","singlePlay","playOnSeek","enableMediaSession","showMarkers","accessibleSeek","showPlaybackSpeed"],zEe=["onLoad","onPlay","onPause","onEnd","onError","onTimeUpdate","onNextTrack","onPreviousTrack"];function TO(e,t){console.warn(`[WaveformPlayer] Invalid ${e} option, using default:`,t)}function EO(e){let t=BO(e);return t?t.reduce((r,o)=>{let n=o&&typeof o=="object"?T6(o.time,null,{min:0}):null;return n===null?(TO("marker",o),r):(r.push({...o,time:n,label:o.label==null?"":o.label}),r)},[]):(e!=null&&TO("markers",e),[])}function tce(e){let t=o=>e[o]!=null,r=o=>{TO(o,e[o]),e[o]=SO[o]};for(let[o,n]of Object.entries(FEe)){if(!t(o))continue;let i=T6(e[o],null,n);i===null?r(o):e[o]=i}for(let[o,n]of Object.entries(OEe))t(o)&&hEe(e[o],n)===null&&r(o);for(let o of VEe)e[o]=bEe(e[o]);for(let o of zEe)t(o)&&typeof e[o]!="function"&&r(o);if(t("playbackRates")){let o=IO(e.playbackRates,{min:NO,max:MO,fallback:null});o===null?r("playbackRates"):e.playbackRates=o}e.markers=EO(e.markers);for(let o of["buttonSize","buttonRadius"]){if(!t(o))continue;let n=e[o];(typeof n=="number"?Number.isFinite(n):typeof n=="string"&&n.trim()!=="")||r(o)}for(let o of["waveformColor","progressColor"]){if(!t(o))continue;let n=e[o];!(typeof n=="string"&&n.trim()!=="")&&!Array.isArray(n)&&r(o)}return e}var HEe="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>'),rce=5,oce=10,jEe='button, a[href], input, [role="slider"]',h0=class tn{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=ice(this.container),n={...r};n.style&&!n.waveformStyle&&(n.waveformStyle=n.style),n.src&&!n.url&&(n.url=n.src),this.options=tce(Zle(SO,o,n));let i=ece(this.options.colorPreset,this.container);this._autoTheme=this.options.colorPreset==null||!g0[this.options.colorPreset],this._presetKeys=[],this._scheme=this.options.colorPreset&&g0[this.options.colorPreset]?this.options.colorPreset:S6(this.container);for(let[l,c]of Object.entries(i))(this.options[l]===null||this.options[l]===void 0)&&(this.options[l]=c,this._presetKeys.push(l));let s=uce[this.options.waveformStyle];s&&(o.barWidth===void 0&&r.barWidth===void 0&&(this.options.barWidth=s.barWidth),o.barSpacing===void 0&&r.barSpacing===void 0&&(this.options.barSpacing=s.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||xEe(this.options.url),tn.instances.set(this.id,this),tn._watchTheme();try{this.init()}catch(l){throw tn.instances.delete(this.id),this._ac.abort(),l}setTimeout(()=>{this._emit("waveformplayer:ready",{player:this,url:this.options.url})},100)}_emit(t,r,o=!1){let n=new CustomEvent(t,{bubbles:!0,cancelable:o,detail:r});return this.container.dispatchEvent(n),n}_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=dce.includes(this.options.buttonAlign)?this.options.buttonAlign:"auto";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: ${$le(this.options.buttonSize)}`),this.options.buttonRadius!=null&&r.push(`--wfp-btn-radius: ${$le(this.options.buttonRadius)}`);let o=r.length?` style="${r.join("; ")};"`:"",n=this.options.artworkPosition==="button"&&this.options.artwork,i=n?`<img class="waveform-btn-artwork" src="${Gc(this.options.artwork)}" alt="" aria-hidden="true">`:"",s=this.options.showControls?`
76 <button class="waveform-btn${this.options.buttonStyle==="minimal"?" waveform-btn-minimal":""}${n?" waveform-btn-has-artwork":""}" aria-label="${Gc(this.options.playPauseLabel)}"${o}>
77 ${i}
78 <span class="waveform-icon-play">${this.options.playIcon}</span>
79 <span class="waveform-icon-pause" style="display:none;">${this.options.pauseIcon}</span>
80 </button>
81 `:"",l=this.options.showInfo?`
82 <div class="waveform-info">
83 ${this.options.artworkPosition!=="button"&&this.options.artwork?`
84 <img class="waveform-artwork" src="${Gc(this.options.artwork)}" alt="${Gc(this.options.artworkAlt)}" style="
85 width: 40px;
86 height: 40px;
87 border-radius: 4px;
88 object-fit: cover;
89 flex-shrink: 0;
90 ">
91 `:""}
92 <div class="waveform-text">
93 <span class="waveform-title"></span>
94 ${this.options.artist?`<span class="waveform-artist">${Gc(this.options.artist)}</span>`:""}
95 </div>
96 <div class="waveform-meta" style="display: flex; align-items: center; gap: 1rem;">
97 ${this.options.showBPM?`
98 <span class="waveform-bpm" style="display: none;">
99 <span class="bpm-value">--</span> BPM
100 </span>
101 `:""}
102 ${this.options.showPlaybackSpeed?`
103 <div class="waveform-speed">
104 <button class="speed-btn" aria-label="${Gc(this.options.speedLabel)}" aria-haspopup="menu" aria-expanded="false">
105 <span class="speed-value">1x</span>
106 </button>
107 <div class="speed-menu" role="menu" aria-label="${Gc(this.options.speedLabel)}" style="display: none;">
108 ${this.options.playbackRates.map(c=>`<button class="speed-option" role="menuitemradio" tabindex="-1" aria-checked="false" data-rate="${c}">${c}x</button>`).join("")}
109 </div>
110 </div>
111 `:""}
112 ${this.options.showTime?`
113 <span class="waveform-time">
114 <span class="time-current">0:00</span> / <span class="time-total">0:00</span>
115 </span>
116 `:""}
117 </div>
118 </div>
119 `:"";this.container.innerHTML=`
120 <div class="waveform-player-inner">
121 <div class="waveform-body">
122 <div class="waveform-track waveform-align-${t}">
123 ${s}
124
125 <div class="waveform-container">
126 <canvas></canvas>
127 <div class="waveform-markers"></div>
128 <div class="waveform-loading" style="display:none;"></div>
129 <div class="waveform-error" style="display:none;" role="alert">
130 <span class="waveform-error-text">${Gc(this.options.errorText)}</span>
131 </div>
132 </div>
133 </div>
134
135 ${l}
136 </div>
137 </div>
138 `,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=HEe)},{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")),n=()=>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(d=>d.getAttribute("aria-checked")==="true")||u[0])?.focus()}},s=c=>{let u=o();u.length&&u[(c+u.length)%u.length].focus()},l=c=>{this.setPlaybackRate(parseFloat(c.dataset.rate)),i(!1),t.focus()};t.addEventListener("click",c=>{c.stopPropagation(),i(!n())},{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&&l(u)},{signal:this._ac.signal}),t.closest(".waveform-speed")?.addEventListener("keydown",c=>{let u=o(),d=u.indexOf(document.activeElement);if(!n()){(c.key==="ArrowDown"||c.key==="ArrowUp")&&document.activeElement===t&&(c.preventDefault(),i(!0));return}switch(c.key){case"ArrowDown":c.preventDefault(),s(d<0?0:d+1);break;case"ArrowUp":c.preventDefault(),s(d<0?u.length-1:d-1);break;case"Home":c.preventDefault(),s(0);break;case"End":c.preventDefault(),s(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(jEe)||(tn.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,n=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(Fo(n-5,0,this.audio.duration)),i.ArrowRight=()=>this.seekTo(Fo(n+5,0,this.audio.duration)),i.ArrowUp=()=>this.setVolume(Fo(this.audio.volume+.1)),i.ArrowDown=()=>this.setVolume(Fo(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(),n;switch(t.key){case"ArrowLeft":case"ArrowDown":n=o-rce;break;case"ArrowRight":case"ArrowUp":n=o+rce;break;case"PageDown":n=o-oce;break;case"PageUp":n=o+oce;break;case"Home":n=0;break;case"End":n=r;break;default:return}t.preventDefault(),t.stopPropagation(),this.seekToSeconds(n)},{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=Fo(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",vEe(this.options.seekValueText||"%1$s of %2$s",$u(r),$u(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(Fo(this.audio.currentTime-10,0,this.audio.duration))}),navigator.mediaSession.setActionHandler("seekforward",()=>{this.seekTo(Fo(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:Fo(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=wEe(()=>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.container.classList.remove("waveform-is-placeholder");let r=!!this.options.waveform;r&&this.setWaveformData(this.options.waveform);let o=this.options.title||sce(t);if(this.titleEl&&(this.titleEl.textContent=o),this.applySeekLabel(o),this.audio&&(this.audio.src=t,this.audio.preload!=="none"&&await new Promise((n,i)=>{let s=()=>{this.audio.removeEventListener("loadedmetadata",s),this.audio.removeEventListener("error",l),n()},l=c=>{this.audio.removeEventListener("loadedmetadata",s),this.audio.removeEventListener("error",l),i(c)};this.audio.addEventListener("loadedmetadata",s),this.audio.addEventListener("error",l)})),!r)try{let n=await Xle(t,this.options.samples,this.options.showBPM);this.waveformData=n.peaks,n.bpm&&(this.detectedBPM=n.bpm,this.updateBPMDisplay())}catch(n){console.warn("[WaveformPlayer] Using placeholder waveform:",n),this.waveformData=LEe(this.options.samples),this.container.classList.add("waveform-is-placeholder")}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,n={}){let i=Object.prototype.hasOwnProperty.call(n,"artwork"),s=Object.prototype.hasOwnProperty.call(n,"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=tce(Zle(this.options,{url:t,title:r===null?this.options.title:r,artist:o===null?this.options.artist:o,...n})),i&&(this.options.artwork=n.artwork||null),s?this.options.artworkAlt=n.artworkAlt||"":i&&(this.options.artworkAlt=this.options.artwork?SO.artworkAlt:""),n.preload&&this.audio&&(this.audio.preload=this.options.preload),n.crossOrigin&&this.audio&&(this.audio.crossOrigin=this.options.crossOrigin),o!==null&&this.syncArtist(o),(i||s)&&this.syncArtwork(i?n.artwork:this.options.artwork,s?n.artworkAlt:this.options.artworkAlt),this.options.markers=n.markers?EO(n.markers):[],this.options.waveform=n.waveform||null,await this.load(t),n.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=EO(r.markers),this.renderMarkers()),this.drawWaveform()}).catch(()=>{});return}this.waveformData=IO(t,{fallback:[]}),this.drawWaveform()}drawWaveform(){!this.ctx||this.waveformData.length===0||BEe(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 n=r.time/t*100,i=document.createElement("button");i.className="waveform-marker",i.style.left=`${n}%`,i.style.backgroundColor=r.color||"rgba(255, 255, 255, 0.5)",i.setAttribute("aria-label",r.label),i.setAttribute("data-time",r.time);let s=document.createElement("span");s.className="waveform-marker-tooltip",s.textContent=r.label,i.appendChild(s),i.addEventListener("click",l=>{l.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,n=-1,i=-1/0;t.forEach((s,l)=>{let c=parseFloat(s.getAttribute("data-time"));Number.isFinite(c)&&c<=o+.05&&c>i&&(i=c,n=l)}),n!==this._activeMarkerIndex&&(this._activeMarkerIndex=n,this.setActiveMarker(n),clearTimeout(this._markerLabelTimer),t.forEach((s,l)=>s.classList.toggle("show-label",l===n)),n>=0&&(this._markerLabelTimer=setTimeout(()=>{this.markersContainer?.querySelectorAll(".waveform-marker").forEach(s=>s.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 n=this.canvas.getBoundingClientRect(),i=Fo((t-n.left)/n.width);r.textContent=$u(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=Fo((t-r.left)/r.width),this.drawWaveform(),this._updateSeekHandle();let o=this.getSeekDuration();o&&this.currentTimeEl?(this.currentTimeEl.textContent=$u(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=Fo((t-r.left)/r.width);if(this.options.audioMode==="external"){this._requestSeek(o);return}!this.audio||!this.audio.duration||this.seekToPercent(o)}setLoading(t){if(this.isLoading=t,this.loadingEl){let r=t&&this.waveformData.length===0;this.loadingEl.style.display=r?"block":"none"}this.seekEl&&this.seekEl.setAttribute("aria-busy",t?"true":"false")}onMetadataLoaded(){this.isDestroying||(this.totalTimeEl&&(this.totalTimeEl.textContent=$u(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=$u(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=S6(this.container);let t=ece(this.options.colorPreset,this.container);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(tn._themeWatch||typeof document>"u")return;let t=()=>requestAnimationFrame(()=>{tn.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 n=null;try{n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",t)}catch{}tn._themeWatch={obs:o,mq:n,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&&tn.currentlyPlaying&&tn.currentlyPlaying!==this&&tn.currentlyPlaying.pause(),this.options.audioMode==="external"){this._emit("waveformplayer:request-play",this._buildTrackDetail(),!0).defaultPrevented||(tn.currentlyPlaying=this);return}return tn.currentlyPlaying=this,this.audio.play()}pause(){if(tn.currentlyPlaying===this&&(tn.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=Fo(t/r),this.currentTimeEl&&(this.currentTimeEl.textContent=$u(t)),this._extDuration=r,this.totalTimeEl&&(!this.totalTimeEl.dataset._extSet||this.totalTimeEl.dataset._extDur!==String(r))&&(this.totalTimeEl.textContent=$u(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=Fo(t,0,this.audio.duration),this.updateProgress())}seekToPercent(t){this.audio&&this.audio.duration&&(this.audio.currentTime=this.audio.duration*Fo(t),this.updateProgress())}setVolume(t){let r=Number(t);this.audio&&Number.isFinite(r)&&(this.audio.volume=Fo(r))}setPlaybackRate(t){if(!this.audio)return;let r=T6(t,null,{min:NO,max:MO});r!==null&&(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),tn.instances.delete(this.id),tn.currentlyPlaying===this&&(tn.currentlyPlaying=null),this.audio&&(this.audio.pause(),this.audio.src="",this.audio.load(),this.audio=null),this.container.innerHTML="",delete this.container.dataset.waveformInitialized,this.canvas=null,this.ctx=null,this.playBtn=null,this.waveformData=[]}static getInstance(t){if(typeof t=="string"){let r=this.instances.get(t);if(r)return r;let o=document.getElementById(t);if(o)return Array.from(this.instances.values()).find(n=>n.container===o)}if(t instanceof HTMLElement)return Array.from(this.instances.values()).find(r=>r.container===t)}static getAllInstances(){return Array.from(this.instances.values())}static destroyAll(){this.instances.forEach(t=>t.destroy()),this.instances.clear()}static async generateWaveformData(t,r=1800){try{return(await Xle(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}};h0.utils={formatTime:$u,extractTitleFromUrl:sce,escapeHtml:Gc,isSafeHref:gEe,parseDataAttributes:ice,detectColorScheme:S6};var LO=()=>typeof window<"u"&&typeof document<"u",UEe=()=>!0;function nce(e){if(!(e.dataset.waveformInitialized==="true"||h0.getInstance(e)))try{new h0(e),e.dataset.waveformInitialized="true"}catch(t){console.error("[WaveformPlayer] Failed to initialize:",t,e)}}function PO(e=document){if(!LO())return;let t=e||document;t.matches?.("[data-waveform-player]")&&nce(t),t.querySelectorAll("[data-waveform-player]").forEach(nce)}LO()&&!UEe()&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>PO()):PO());h0.init=PO;LO()&&(window.WaveformPlayer=h0);var pce=h0;var WEe=100,GEe="Seek";function gce(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function hce(e){let t=e?.trim().match(/^[\w-]+-gradient\((.*)\)$/i);if(!t)return[];let r=[],o=0,n="";for(let i of t[1]){if(i==="("?++o:i===")"&&--o,i===","&&o===0){r.push(n.trim()),n="";continue}n+=i}return n.trim()&&r.push(n.trim()),r}function $Ee(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,n=!1;for(let i=0;i<e.length;i++){let s=e[i];if(s==="("?(n=!0,++o):s===")"&&--o,n&&o===0)return e.slice(0,i+1)}}function qEe(e){let t=$Ee(e);if(t)return t;let[r]=e.split(/\s+/);if(yr(r).isValid())return r}function ZEe(e){let r=hce(e)[0],o=r?.match(/^(-?\d+(?:\.\d+)?)deg$/i);if(o){let l=(Number(o[1])%360+360)%360;return l===90||l===270?"horizontal":l===0||l===180?"vertical":"diagonal"}if(!r?.startsWith("to "))return;let n=r.toLowerCase().replace(/^to\s+/,""),i=n.includes("left")||n.includes("right"),s=n.includes("top")||n.includes("bottom");if(i&&s)return"diagonal";if(i)return"horizontal";if(s)return"vertical"}function KEe(e,t){if(!t||yr(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=gce(r).color;return r.remove(),o&&yr(o).isValid()?o:t}function RO(e,t){let r=YEe(t)?.map(o=>KEe(e,o)).filter(o=>yr(o).isValid());return r?.length>1?r:void 0}function mce(e,t){return Array.isArray(e)?e.map(r=>yr(r).alpha(t).toRgbString()):yr(e).alpha(t).toRgbString()}function bce(e){return Array.isArray(e)?e[e.length-1]:e}function YEe(e){let t=hce(e).map(qEe).filter(Boolean);return t.length>1?t:void 0}function fce(e){return Array.isArray(e)?JSON.stringify(e):e}function QEe(e,t,r,o){let n=r||gce(e).color,i=RO(e,o),s=i||t||n,l=mce(s,.3),c=mce(s,.6),u=i?ZEe(o):void 0;return{textColor:n,waveformColor:l,progressColor:c,...u&&{waveformGradient:u}}}function XEe({url:e,title:t,artist:r,artwork:o,waveformColor:n,progressColor:i,waveformGradient:s,buttonColor:l,seekLabel:c,seekValueText:u,height:d=WEe,waveformStyle:p="bars"}){let m=document.createElement("div");return m.setAttribute("data-waveform-player",""),m.setAttribute("data-url",e),m.setAttribute("data-height",String(d)),m.setAttribute("data-waveform-style",p),m.setAttribute("data-waveform-color",fce(n)),m.setAttribute("data-progress-color",fce(i)),s&&m.setAttribute("data-waveform-gradient",s),m.setAttribute("data-button-color",l),m.setAttribute("data-seek-label",yce(c)),u&&m.setAttribute("data-seek-value-text",u),m.setAttribute("data-text-color",l),m.setAttribute("data-text-secondary-color",l),t&&m.setAttribute("data-title",t),r&&m.setAttribute("data-artist",r),o&&m.setAttribute("data-artwork",o),m}function DO(e,{backgroundColor:t,backgroundGradient:r,textColor:o,playButtonColor:n,playButtonGradient:i}={}){let s=e.querySelector(".waveform-container"),l=e.querySelector(".waveform-btn"),c=bce(RO(e,i)||n);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")),l&&(i?l.style.background=i:l.style.removeProperty("background")),s&&(r?s.style.background=r:t?(s.style.removeProperty("background"),s.style.backgroundColor=t):(s.style.removeProperty("background"),s.style.removeProperty("background-color")))}function JEe(e,t){let o=yr(t).isDark()?"#ffffff":"#000000";e.querySelectorAll("svg path").forEach(i=>{i.style.fill=o})}function ePe(e,{play:t="Play",pause:r="Pause"}={}){let o=e.querySelector(".waveform-btn");if(!o)return;o.setAttribute("aria-label",t);let n=()=>o.setAttribute("aria-label",r),i=()=>o.setAttribute("aria-label",t);return e.addEventListener("waveformplayer:play",n),e.addEventListener("waveformplayer:pause",i),e.addEventListener("waveformplayer:ended",i),()=>{e.removeEventListener("waveformplayer:play",n),e.removeEventListener("waveformplayer:pause",i),e.removeEventListener("waveformplayer:ended",i)}}function yce(e){return e||GEe}function vce(e,t){let r=yce(t);e.options.seekLabel=r,e.applySeekLabel?.(r);let o=e?.container?.querySelector(".waveform-container");o&&o.setAttribute("aria-label",r)}function P6(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 tPe(e){e.name!=="AbortError"&&console.error("Playlist play error:",e)}function _ce(e,{src:t,title:r,artist:o,image:n,imageAlt:i,waveformColor:s,waveformGradient:l,textColor:c,backgroundColor:u,backgroundGradient:d,autoPlay:p,onEnded:m,labels:f,waveformStyle:g,showPlayButtonArtwork:h=!1}){let b=h?void 0:n,{textColor:_,waveformColor:v,progressColor:w,waveformGradient:x}=QEe(e,s,c,l),k=RO(e,l),C=bce(k||s),S=XEe({url:t,title:r,artist:o,artwork:b,waveformColor:v,progressColor:w,waveformGradient:x,buttonColor:_,seekLabel:r||f?.seek,seekValueText:f?.seekValueText,waveformStyle:g});e.appendChild(S);let P=new pce(S);P.artworkEl&&(P.artworkEl.alt=i||""),DO(S,{backgroundColor:u,backgroundGradient:d,textColor:_,playButtonColor:h?void 0:C,playButtonGradient:h?void 0:l});let B,N={ready:()=>{JEe(S,C||_),h&&P6(S,n),B=ePe(S,f),p&&P.play()?.catch(tPe)},ended:()=>m?.()};return S.addEventListener("waveformplayer:ready",N.ready),S.addEventListener("waveformplayer:ended",N.ended),{instance:P,container:S,destroy:()=>{B?.(),S.removeEventListener("waveformplayer:ready",N.ready),S.removeEventListener("waveformplayer:ended",N.ended),P.destroy(),S.remove()}}}var xce=a(y(),1);function rPe(e,{title:t,artist:r,image:o,imageAlt:n},i){let{instance:s,container:l}=e,c=i?void 0:o;s.titleEl&&(s.titleEl.textContent=t??""),vce(s,t||(0,gx.__)("Seek")),typeof s.syncArtist=="function"?s.syncArtist(r||""):s.artistEl&&(s.artistEl.textContent=r??"",s.artistEl.style.display=r?"":"none"),typeof s.syncArtwork=="function"?s.syncArtwork(c||null,c&&n||""):s.artworkEl&&c&&(s.artworkEl.src=c,s.artworkEl.alt=n||""),i&&P6(l,o)}function kce({src:e,title:t,artist:r,image:o,imageAlt:n,color:i,gradient:s,backgroundColor:l,backgroundGradient:c,textColor:u,waveformStyle:d,onEnded:p,showPlayButtonArtwork:m=!1}){let f=(0,B6.useEvent)(p),g=(0,$c.useRef)(),h=!!e,b=(0,$c.useRef)({src:e,title:t,artist:r,image:o,imageAlt:n}),_=(0,$c.useRef)({color:i,gradient:s,backgroundColor:l,backgroundGradient:c,textColor:u});(0,$c.useEffect)(()=>{b.current={src:e,title:t,artist:r,image:o,imageAlt:n}},[e,t,r,o,n]),(0,$c.useEffect)(()=>{_.current={color:i,gradient:s,backgroundColor:l,backgroundGradient:c,textColor:u}},[i,s,l,c,u]),(0,$c.useEffect)(()=>{g.current?.container&&DO(g.current.container,{backgroundColor:l,backgroundGradient:c,textColor:u,playButtonColor:m?void 0:i,playButtonGradient:m?void 0:s})},[l,c,i,s,m,u]);let v=(0,B6.useRefEffect)(w=>{if(!h)return;let x=!1,k;function C(){if(x)return;let P=_ce(w,{src:b.current.src,title:b.current.title,artist:b.current.artist,image:b.current.image,imageAlt:b.current.imageAlt,waveformColor:_.current.color,waveformGradient:_.current.gradient,backgroundColor:_.current.backgroundColor,backgroundGradient:_.current.backgroundGradient,textColor:_.current.textColor,waveformStyle:d,labels:{seek:(0,gx.__)("Seek"),seekValueText:(0,gx._x)("%1$s of %2$s","audio current time of total duration")},onEnded:()=>f?.(),showPlayButtonArtwork:m});g.current=P;let{destroy:B}=P;k=B}let S=setTimeout(C,100);return()=>{x=!0,clearTimeout(S),g.current=void 0,k?.()}},[f,h,d,i,s,u,m]);return(0,$c.useEffect)(()=>{if(g.current?.instance){let w=g.current;w&&rPe(w,{title:t,artist:r,image:o,imageAlt:n},m)}},[t,r,o,n,m]),(0,$c.useEffect)(()=>{if(e&&g.current?.instance){let w=g.current.instance.isPlaying;g.current.instance.loadTrack(e,b.current.title,b.current.artist,{artwork:m?void 0:b.current.image,artworkAlt:m?"":b.current.imageAlt}).then(()=>{m&&g.current?.container&&P6(g.current.container,b.current.image),w||g.current?.instance.pause()})}},[e,m]),(0,xce.jsx)("div",{ref:v,className:"wp-block-playlist__waveform-player"})}var wce=a(W(),1),I6=(0,wce.createContext)({currentTrackClientId:null,setCurrentTrackClientId:()=>{}});var AO=a(L(),1),Cce=a($o(),1);function Sce(e){return e?.url??e?.source_url}function oPe(e){let t=e?.title;if(t!==void 0)return typeof t=="string"?t:(0,Cce.decodeEntities)(t?.raw||t?.rendered||"")}function OO(e){let t=e?.src??Sce(e);return t?.endsWith("/images/media/audio.svg")?{image:"",imageAlt:""}:{image:t,imageAlt:t?e?.alt||e?.alt_text||"":void 0}}function N6(e){let t=Sce(e);return{id:e.id||t,src:t,title:oPe(e),artist:e.artist||e?.meta?.artist||e?.media_details?.artist||(0,AO.__)("Unknown artist"),album:e.album||e?.meta?.album||e?.media_details?.album||(0,AO.__)("Unknown album"),length:e?.fileLength||e?.media_details?.length_formatted,...OO(e?.image)}}var Xe=a(y(),1),FO=["audio"],nPe=[],aPe=/\.(aac|aif|aiff|flac|m4a|m4b|mp3|oga|ogg|opus|wav|weba)$/i,M6="bars",iPe="[object FileList]",sPe=[{label:(0,vt._x)("Bars","waveform style option"),value:"bars"},{label:(0,vt._x)("Mirror","waveform style option"),value:"mirror"},{label:(0,vt._x)("Line","waveform style option"),value:"line"},{label:(0,vt._x)("Blocks","waveform style option"),value:"blocks"},{label:(0,vt._x)("Dots","waveform style option"),value:"dots"},{label:(0,vt._x)("Seekbar","waveform style option"),value:"seekbar"}];function lPe(e){return Object.prototype.toString.call(e)==="[object File]"||typeof File<"u"&&e instanceof File}function cPe(e){return e.type?e.type.startsWith("audio/"):aPe.test(e.name)}function Tce(e){return e.id??e.src??e.blob}var uPe=({attributes:e,setAttributes:t,isSelected:r,insertBlocksAfter:o,clientId:n})=>{let{order:i,showTracklist:s,showNumbers:l,showImages:c,showPlayButtonArtwork:u,showArtists:d,showTrackLength:p,waveformStyle:m=M6,waveformColor:f,waveformGradient:g,waveformBackgroundColor:h,waveformBackgroundGradient:b}=e,_=(0,Or.useBlockProps)(),v=`${n}-waveform`,{replaceInnerBlocks:w,replaceBlocks:x,insertBlocks:k,selectBlock:C,__unstableMarkNextChangeAsNotPersistent:S}=(0,hx.useDispatch)(Or.store),{createErrorNotice:P}=(0,hx.useDispatch)(Ece.store),B=ee(),N=(0,Or.__experimentalUseMultipleOriginColorsAndGradients)(),E=(0,ho.useMemo)(()=>N.colors.flatMap(re=>re?.colors??[]),[N.colors]),M=(0,ho.useMemo)(()=>N.gradients.flatMap(re=>re?.gradients??[]),[N.gradients]),R=E.length>0||!N.disableCustomColors,O=M.length>0||!N.disableCustomGradients,j=g,V=b,G,$,z=(0,ho.useCallback)(re=>{P(re,{type:"snackbar"})},[P]),[K,q]=(0,ho.useState)(null),{innerBlockTracks:Y}=(0,hx.useSelect)(re=>{let{getBlock:Pe}=re(Or.store);return{innerBlockTracks:Pe(n)?.innerBlocks??nPe}},[n]),oe=(0,ho.useMemo)(()=>Y.filter(re=>!!re.attributes.src||!!re.attributes.blob),[Y]),Z=(0,ho.useMemo)(()=>oe.map(re=>({...re.attributes,clientId:re.clientId})),[oe]);(0,ho.useEffect)(()=>{if(oe.length===0){K!==null&&q(null);return}oe.some(Pe=>Pe.clientId===K)||q(oe[0].clientId)},[K,q,oe]),(0,ho.useEffect)(()=>{oe.length>0||Y.length===0||(S(),w(n,[]))},[n,Y,w,oe,S]);let U=(0,ho.useCallback)(re=>{if(!re)return[];let Pe=[re];Object.prototype.toString.call(re)===iPe?Pe=Array.from(re):Array.isArray(re)&&(Pe=re);let Se=!1,rr=Pe.map(Ft=>{if(lPe(Ft))return cPe(Ft)?(0,VO.createBlock)("core/playlist-track",{blob:(0,Pce.createBlobURL)(Ft),title:Ft.name}):(Se=!0,null);let gr=N6(Ft);return gr.src?(0,VO.createBlock)("core/playlist-track",gr):null}).filter(Boolean);return Se&&z((0,vt.__)("Only audio files can be added to a playlist.")),rr},[z]),X=(0,ho.useCallback)(re=>{let Pe=U(re);Pe.length!==0&&(q(Pe[0]?.clientId??null),w(n,Pe))},[n,U,w,q]),Q=(0,ho.useCallback)(re=>{let Pe=new Set(oe.map(rr=>Tce(rr.attributes)).filter(Boolean)),Se=U(re).filter(rr=>!Pe.has(Tce(rr.attributes)));Se.length!==0&&(q(Se[0].clientId),k(Se,void 0,n,!1),C(Se[0].clientId))},[n,U,k,C,q,oe]),ie=(0,ho.useCallback)(re=>{x(re,[])},[x]),me=(0,ho.useMemo)(()=>({currentTrackClientId:K,setCurrentTrackClientId:q,removeTrack:ie}),[K,q,ie]),xe=Z.find(re=>re.clientId===K)??Z[0],Be=(0,ho.useCallback)(()=>{let re=Z.findIndex(Se=>Se.clientId===K),Pe=Z[re+1]||Z[0];Pe?.clientId&&q(Pe.clientId)},[K,q,Z]),se=(0,ho.useCallback)(re=>{let Pe=[...Y].sort((Se,rr)=>{let Ft=Se.attributes.title||"",gr=rr.attributes.title||"";return re==="asc"?Ft.localeCompare(gr):gr.localeCompare(Ft)});w(n,Pe),q(Pe[0]?.clientId??null),t({order:re})},[n,Y,w,t,q]);function he(re){return Pe=>{t({[re]:Pe})}}let ze=(0,ho.useCallback)(re=>{t({waveformStyle:re===M6?void 0:re})},[t]);function qe(re){if(!(re!==void 0)&&G==="gradient"){G=void 0;return}G="color",t({waveformColor:re,waveformGradient:void 0})}function ce(re){if(!(re!==void 0)&&G==="color"){G=void 0;return}G="gradient",t({waveformGradient:re,waveformColor:void 0})}function ge(re){if(!(re!==void 0)&&$==="gradient"){$=void 0;return}$="color",t({waveformBackgroundColor:re,waveformBackgroundGradient:void 0})}function Qe(re){if(!(re!==void 0)&&$==="color"){$=void 0;return}$="gradient",t({waveformBackgroundGradient:re,waveformBackgroundColor:void 0})}let ye=[];(R||O)&&ye.push({colorValue:R?f:void 0,gradientValue:O?j:void 0,label:(0,vt.__)("Waveform & Play button"),onColorChange:R?qe:void 0,onGradientChange:O?ce:void 0,isShownByDefault:!0,clearable:!0,enableAlpha:!0,resetAllFilter:()=>({waveformColor:void 0,waveformGradient:void 0})},{colorValue:R?h:void 0,gradientValue:O?V:void 0,label:(0,vt.__)("Waveform background"),onColorChange:R?ge:void 0,onGradientChange:O?Qe:void 0,isShownByDefault:!0,clearable:!0,enableAlpha:!0,resetAllFilter:()=>({waveformBackgroundColor:void 0,waveformBackgroundGradient:void 0})});let{children:fe,...de}=(0,Or.useInnerBlocksProps)({className:T("wp-block-playlist__tracklist",{"wp-block-playlist__tracklist-is-hidden":!s,"wp-block-playlist__tracklist-show-numbers":l,"wp-block-playlist__tracklist-length-is-hidden":!p})},{__experimentalAppenderTagName:"li",renderAppender:!1});return Z.length===0?(0,Xe.jsx)("div",{..._,className:T("is-placeholder",_.className),children:(0,Xe.jsx)(Or.MediaPlaceholder,{icon:(0,Xe.jsx)(Or.BlockIcon,{icon:iv}),labels:{title:(0,vt.__)("Playlist"),instructions:(0,vt.__)("Upload an audio file or pick one from your media library.")},onSelect:X,accept:"audio/*",multiple:"add",handleUpload:!1,allowedTypes:FO,onError:z})}):(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)(Or.BlockControls,{group:"other",children:(0,Xe.jsx)(Or.MediaReplaceFlow,{name:(0,vt.__)("Add track"),onSelect:Q,accept:"audio/*",multiple:"add",handleUpload:!1,allowedTypes:FO,onError:z})}),(0,Xe.jsx)(Or.InspectorControls,{children:(0,Xe.jsxs)(Sr.__experimentalToolsPanel,{label:(0,vt.__)("Settings"),resetAll:()=>{t({showTracklist:!0,showArtists:!0,showNumbers:!0,showTrackLength:!0,showImages:!0,showPlayButtonArtwork:!1,order:"asc"})},dropdownMenuProps:B,children:[(0,Xe.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,vt.__)("Show tracklist"),isShownByDefault:!0,hasValue:()=>s!==!0,onDeselect:()=>t({showTracklist:!0}),children:(0,Xe.jsx)(Sr.ToggleControl,{label:(0,vt.__)("Show tracklist"),onChange:he("showTracklist"),checked:s})}),s&&(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,vt.__)("Show artist name in tracklist"),isShownByDefault:!0,hasValue:()=>d!==!0,onDeselect:()=>t({showArtists:!0}),children:(0,Xe.jsx)(Sr.ToggleControl,{label:(0,vt.__)("Show artist name in tracklist"),onChange:he("showArtists"),checked:d})}),(0,Xe.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,vt.__)("Show track numbers in tracklist"),isShownByDefault:!0,hasValue:()=>l!==!0,onDeselect:()=>t({showNumbers:!0}),children:(0,Xe.jsx)(Sr.ToggleControl,{label:(0,vt.__)("Show track numbers in tracklist"),onChange:he("showNumbers"),checked:l})}),(0,Xe.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,vt.__)("Show track duration in tracklist"),isShownByDefault:!0,hasValue:()=>p!==!0,onDeselect:()=>t({showTrackLength:!0}),children:(0,Xe.jsx)(Sr.ToggleControl,{label:(0,vt.__)("Show track duration in tracklist"),onChange:he("showTrackLength"),checked:p})})]}),(0,Xe.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,vt.__)("Show tracklist images"),isShownByDefault:!0,hasValue:()=>c!==!0,onDeselect:()=>t({showImages:!0}),children:(0,Xe.jsx)(Sr.ToggleControl,{label:(0,vt.__)("Show tracklist images"),onChange:he("showImages"),checked:c})}),(0,Xe.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,vt.__)("Show track image on play button"),isShownByDefault:!0,hasValue:()=>u===!0,onDeselect:()=>t({showPlayButtonArtwork:!1}),children:(0,Xe.jsx)(Sr.ToggleControl,{label:(0,vt.__)("Show track image on play button"),onChange:he("showPlayButtonArtwork"),checked:u===!0})}),(0,Xe.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,vt.__)("Order"),isShownByDefault:!0,hasValue:()=>i!=="asc",onDeselect:()=>t({order:"asc"}),children:(0,Xe.jsx)(Sr.SelectControl,{label:(0,vt.__)("Order"),value:i,options:[{label:(0,vt.__)("Descending"),value:"desc"},{label:(0,vt.__)("Ascending"),value:"asc"}],onChange:re=>se(re)})})]})}),(0,Xe.jsx)(Or.InspectorControls,{group:"styles",children:(0,Xe.jsxs)(Sr.__experimentalToolsPanel,{label:(0,vt.__)("Waveform"),resetAll:()=>{t({waveformStyle:void 0,waveformColor:void 0,waveformGradient:void 0,waveformBackgroundColor:void 0,waveformBackgroundGradient:void 0})},panelId:v,dropdownMenuProps:B,children:[ye.length>0&&(0,Xe.jsx)("div",{className:"wp-block-playlist__waveform-color-controls",children:(0,Xe.jsx)(Or.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:ye,panelId:v,...N})}),(0,Xe.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,vt.__)("Shape"),isShownByDefault:!0,hasValue:()=>m!==M6,onDeselect:()=>ze(M6),panelId:v,children:(0,Xe.jsx)(Sr.SelectControl,{label:(0,vt.__)("Shape"),value:m,options:sPe,onChange:ze})})]})}),(0,Xe.jsxs)("figure",{..._,children:[(0,Xe.jsx)(Or.MediaPlaceholder,{onSelect:Q,accept:"audio/*",multiple:"add",handleUpload:!1,disableMediaButtons:!0,allowedTypes:FO,onError:z}),(0,Xe.jsx)(Sr.Disabled,{isDisabled:!r,children:(0,Xe.jsx)(kce,{src:xe?.src,title:xe?.title,artist:xe?.artist,image:xe?.image,imageAlt:xe?.imageAlt,waveformStyle:m,color:f,gradient:j,backgroundColor:h,backgroundGradient:V,onEnded:Be,showPlayButtonArtwork:u===!0})}),(0,Xe.jsx)("ol",{...de,children:(0,Xe.jsx)(I6.Provider,{value:me,children:fe})}),(0,Xe.jsx)(Zo,{attributes:e,setAttributes:t,isSelected:r,insertBlocksAfter:o,label:(0,vt.__)("Playlist caption text"),showToolbarButton:r,style:{marginTop:16}})]})]})},Bce=uPe;var qu=a(I(),1),bx=a(y(),1);function Ice({attributes:e}){let{caption:t,showNumbers:r,showTracklist:o,showArtists:n,showTrackLength:i}=e,s=qu.useBlockProps.save(),l=qu.useInnerBlocksProps.save(s);return(0,bx.jsxs)("figure",{...l,children:[(0,bx.jsx)("ol",{className:T("wp-block-playlist__tracklist",{"wp-block-playlist__tracklist-is-hidden":!o,"wp-block-playlist__tracklist-artist-is-hidden":!n,"wp-block-playlist__tracklist-length-is-hidden":!i,"wp-block-playlist__tracklist-show-numbers":r}),children:l.children}),!qu.RichText.isEmpty(t)&&(0,bx.jsx)(qu.RichText.Content,{tagName:"figcaption",className:(0,qu.__experimentalGetElementClassName)("caption"),value:t})]})}var L6=a(te(),1),Nce=a(qt(),1),dPe={from:[{type:"block",isMultiBlock:!0,blocks:["core/audio"],transform:e=>(0,L6.createBlock)("core/playlist",{...e[0]},e.map(({blob:t,id:r,src:o})=>(0,L6.createBlock)("core/playlist-track",{blob:t,id:r,src:o,title:(0,Nce.getFilename)(o)})))}],to:[{type:"block",blocks:["core/audio"],isMatch:({},e)=>e.innerBlocks.length===1&&e.innerBlocks[0].name==="core/playlist-track",transform:({style:e,...t},[r])=>(0,L6.createBlock)("core/audio",{...t,...e?.spacing&&{style:{spacing:e.spacing}},blob:r.attributes.blob,id:r.attributes.id,src:r.attributes.src})}]},Mce=dPe;var{name:Lce}=C6,Rce={icon:iv,edit:Bce,save:Ice,transforms:Mce},pPe=()=>D({name:Lce,metadata:C6,settings:Rce});var jO={};J(jO,{init:()=>hPe,metadata:()=>R6,name:()=>Vce,settings:()=>zce});var R6={$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",role:"content"},src:{type:"string",role:"content"},type:{type:"string",default:"audio"},album:{type:"string",role:"content"},artist:{type:"string",role:"content"},image:{type:"string",role:"content"},imageAlt:{type:"string",role:"content"},length:{type:"string",role:"content"},title:{type:"string",role:"content"}},supports:{html:!1,interactivity:{clientNavigation:!0},reusable:!1},style:"wp-block-playlist-track"};var Dce=a(Ur(),1),Mp=a(W(),1),Vo=a(I(),1),ea=a(F(),1);var Ace=a(H(),1),Oce=a(br(),1),Fr=a(L(),1);var D6=a(ma(),1);var _t=a(y(),1),HO=["audio"],fPe=["image"],gPe=({attributes:e,setAttributes:t,context:r,clientId:o,isSelected:n})=>{let{id:i,src:s,album:l,artist:c,image:u,imageAlt:d,length:p,title:m}=e,[f,g]=(0,Mp.useState)(e.blob),h=r?.showArtists,b=r?.showImages??!0,_=(0,Mp.useRef)(),v=(0,Vo.useBlockProps)(),{currentTrackClientId:w,setCurrentTrackClientId:x,removeTrack:k}=(0,Mp.useContext)(I6),{createErrorNotice:C}=(0,Ace.useDispatch)(Oce.store);function S(M,{removeTrackOnError:R=!1}={}){if(C(M,{type:"snackbar"}),R){k(o);return}g()}let P=!!s||!!f;(0,Mp.useEffect)(()=>{n&&P&&w!==o&&x(o)},[n,P,o,w,x]),ic({url:f,allowedTypes:HO,onChange:B,onError:M=>{S(M,{removeTrackOnError:!0})}});function B(M){let R=M?.url??M?.source_url;if(!M||!R){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}),g();return}if((0,Dce.isBlobURL)(R)){g(R);return}t({blob:void 0,...N6(M)}),g()}function N(M){t(OO(M))}function E(){t({image:void 0,imageAlt:void 0}),_.current.focus()}return P?(0,_t.jsxs)(_t.Fragment,{children:[n&&(0,_t.jsx)(Vo.BlockControls,{group:"other",children:(0,_t.jsx)(Vo.MediaReplaceFlow,{name:(0,Fr.__)("Replace"),onSelect:B,accept:"audio/*",mediaId:i,mediaURL:s,allowedTypes:HO,onError:S,variant:"toolbar"})}),(0,_t.jsx)(Vo.InspectorControls,{children:(0,_t.jsxs)(ea.PanelBody,{title:(0,Fr.__)("Settings"),children:[n&&(0,_t.jsx)(ea.TextControl,{label:(0,Fr.__)("Title"),value:m?(0,D6.__unstableStripHTML)(m):"",onChange:M=>{t({title:M})}}),(0,_t.jsx)(ea.TextControl,{label:(0,Fr.__)("Artist"),value:c?(0,D6.__unstableStripHTML)(c):"",onChange:M=>{t({artist:M})}}),(0,_t.jsx)(ea.TextControl,{label:(0,Fr.__)("Album"),value:l?(0,D6.__unstableStripHTML)(l):"",onChange:M=>{t({album:M})}}),(0,_t.jsx)(Vo.MediaUploadCheck,{children:(0,_t.jsxs)(ea.BaseControl,{children:[(0,_t.jsx)(ea.BaseControl.VisualLabel,{children:(0,Fr.__)("Track image")}),(0,_t.jsxs)("div",{className:"editor-video-poster-control",children:[!!u&&(0,_t.jsx)("img",{src:u,alt:(0,Fr.__)("Preview of the track image")}),(0,_t.jsx)(Vo.MediaUpload,{title:(0,Fr.__)("Select image"),onSelect:N,allowedTypes:fPe,render:({open:M})=>(0,_t.jsx)(ea.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:M,ref:_,children:u?(0,Fr.__)("Replace"):(0,Fr.__)("Select")})}),!!u&&(0,_t.jsx)(ea.Button,{__next40pxDefaultSize:!0,onClick:E,variant:"tertiary",children:(0,Fr.__)("Remove")})]})]})}),!!u&&(0,_t.jsx)(ea.TextareaControl,{label:(0,Fr.__)("Alternative text"),value:d||"",onChange:M=>t({imageAlt:M}),help:(0,_t.jsx)(bl,{openInNewTab:!0,href:(0,Fr.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Fr.__)("Describe the purpose of the image.")})})]})}),(0,_t.jsx)("li",{...v,children:(0,_t.jsxs)("button",{className:"wp-block-playlist-track__button",onClick:()=>x(o),"aria-current":w===o?"true":"false",children:[b&&!!u&&(0,_t.jsx)("img",{className:"wp-block-playlist-track__image",src:u,alt:d||""}),(0,_t.jsxs)("span",{className:"wp-block-playlist-track__content",children:[(0,_t.jsx)(Vo.PlainText,{tagName:"span",className:"wp-block-playlist-track__title",value:m,"aria-label":(0,Fr.__)("Track title"),placeholder:(0,Fr.__)("Track title"),onChange:M=>{t({title:M})},__experimentalVersion:2}),h&&(0,_t.jsx)(Vo.PlainText,{tagName:"span",className:"wp-block-playlist-track__artist",value:c,"aria-label":(0,Fr.__)("Track artist"),placeholder:(0,Fr.__)("Track artist"),onChange:M=>t({artist:M}),__experimentalVersion:2})]}),(0,_t.jsxs)("span",{className:"wp-block-playlist-track__length",children:[p&&(0,_t.jsx)("span",{className:"screen-reader-text",children:(0,Fr.__)("Duration:")}),p,!!f&&(0,_t.jsx)(ea.Spinner,{className:"wp-block-playlist-track__spinner"})]}),(0,_t.jsx)("span",{className:"screen-reader-text",children:(0,Fr.__)("Play")})]})})]}):(0,_t.jsx)("div",{...v,children:(0,_t.jsx)(Vo.MediaPlaceholder,{icon:(0,_t.jsx)(Vo.BlockIcon,{icon:sm}),labels:{title:(0,Fr.__)("Track"),instructions:(0,Fr.__)("Upload an audio file or pick one from your media library.")},onSelect:B,accept:"audio/*",allowedTypes:HO,value:e,onError:S})})},Fce=gPe;var{name:Vce}=R6,zce={icon:aI,edit:Fce},hPe=()=>D({name:Vce,metadata:R6,settings:zce});var WO={};J(WO,{init:()=>kPe,metadata:()=>A6,name:()=>Kce,settings:()=>Yce});var Zce=a(L(),1);var A6={$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 La=a(I(),1),zr=a(F(),1),Gce=a(_e(),1),O6=a(ae(),1),Zf=a(H(),1),F6=a(W(),1),UO=a($o(),1),Vr=a(L(),1),$ce=a(te(),1);var qf=a(te(),1),jce=a(L(),1),Uce=a(I(),1);var{cleanEmptyObject:Hce}=le(Uce.privateApis);function Wce(e,t){let{avatarSize:r,byline:o,showAvatar:n,showBio:i,isLink:s,linkTarget:l,textAlign:c,style:u,...d}=e,p=n&&t.some(h=>h.name==="core/avatar"),m=o&&t.some(h=>h.name==="core/paragraph"),f=t.some(h=>h.name==="core/post-author-name"),g=i&&t.some(h=>h.name==="core/post-author-biography");return(0,qf.createBlock)("core/group",{...d,style:Hce({...u,spacing:{...u?.spacing,blockGap:"1em"},color:{...u?.color,duotone:void 0}}),layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"top"}},[p&&(0,qf.createBlock)("core/avatar",{size:r,style:Hce({border:{radius:"0px"},color:{duotone:u?.color?.duotone}})}),(0,qf.createBlock)("core/group",{style:{layout:{selfStretch:"fill",flexSize:null},spacing:{blockGap:"0"}},layout:{type:"flex",orientation:"vertical",justifyContent:"stretch"}},[m&&(0,qf.createBlock)("core/paragraph",{content:o,placeholder:(0,jce.__)("Write byline\u2026"),style:{typography:{fontSize:"0.5em",textAlign:c}}}),f&&(0,qf.createBlock)("core/post-author-name",{isLink:s,linkTarget:l,style:{typography:{fontSize:"1em",textAlign:c}}}),g&&(0,qf.createBlock)("core/post-author-biography",{style:{typography:{fontSize:"0.7em",textAlign:c}}})].filter(Boolean))].filter(Boolean))}var xt=a(y(),1),{InspectorControlsLastItem:yPe}=le(La.privateApis),vPe={who:"authors",per_page:100,_fields:"id,name",context:"view"};function _Pe({value:e,onChange:t}){let[r,o]=(0,F6.useState)(""),{authors:n,isLoading:i}=(0,Zf.useSelect)(l=>{let{getUsers:c,isResolving:u}=l(O6.store),d={...vPe};return r&&(d.search=r,d.search_columns=["name"]),{authors:c(d),isLoading:u("getUsers",[d])}},[r]),s=(0,F6.useMemo)(()=>{let l=(n??[]).map(d=>({value:d.id,label:(0,UO.decodeEntities)(d.name)})),c=l.findIndex(d=>e?.id===d.value),u=[];return c<0&&e?u=[{value:e.id,label:(0,UO.decodeEntities)(e.name)}]:c<0&&!e&&(u=[{value:0,label:(0,Vr.__)("(No author)")}]),[...u,...l]},[n,e]);return(0,xt.jsx)(zr.ComboboxControl,{label:(0,Vr.__)("Author"),options:s,value:e?.id,onFilterValueChange:(0,Gce.debounce)(o,300),onChange:t,allowReset:!1,isLoading:i})}function xPe({isSelected:e,context:{postType:t,postId:r,queryId:o},attributes:n,setAttributes:i,clientId:s}){let l=Number.isFinite(o),c=ee(),u=x_(),{authorDetails:d,canAssignAuthor:p,supportsAuthor:m}=(0,Zf.useSelect)(R=>{let{getEditedEntityRecord:O,getUser:j,getPostType:V}=R(O6.store),G=O("postType",t,r),$=G?.author;return{authorDetails:$?j($,{context:"view"}):null,supportsAuthor:V(t)?.supports?.author??!1,canAssignAuthor:!!G?._links?.["wp:action-assign-author"]}},[t,r]),f=(0,Zf.useSelect)(R=>R($ce.store).getBlockTypes(),[]),{editEntityRecord:g}=(0,Zf.useDispatch)(O6.store),{replaceBlock:h}=(0,Zf.useDispatch)(La.store),{textAlign:b,showAvatar:_,showBio:v,byline:w,isLink:x,linkTarget:k,avatarSize:C}=n,S=[],P=d?.name||(0,Vr.__)("Post Author");d?.avatar_urls&&Object.keys(d.avatar_urls).forEach(R=>{S.push({value:R,label:`${R} x ${R}`})});let B=(0,La.useBlockProps)({className:T({[`has-text-align-${b}`]:b})}),N=R=>{g("postType",t,r,{author:R})},E=!!r&&!l&&p;if(!m&&t!==void 0)return(0,xt.jsx)("div",{...B,children:(0,Vr.sprintf)((0,Vr.__)("This post type (%s) does not support the author."),t)});function M(){h(s,Wce(n,f))}return(0,xt.jsxs)(xt.Fragment,{children:[(0,xt.jsx)(La.InspectorControls,{children:(0,xt.jsxs)(zr.__experimentalToolsPanel,{label:(0,Vr.__)("Settings"),resetAll:()=>{i({avatarSize:48,showAvatar:!0,isLink:!1,linkTarget:"_self"})},dropdownMenuProps:c,children:[E&&(0,xt.jsx)("div",{style:{gridColumn:"1 / -1"},children:(0,xt.jsx)(_Pe,{value:d,onChange:N})}),(0,xt.jsx)(zr.__experimentalToolsPanelItem,{label:(0,Vr.__)("Show avatar"),isShownByDefault:!0,hasValue:()=>!_,onDeselect:()=>i({showAvatar:!0}),children:(0,xt.jsx)(zr.ToggleControl,{label:(0,Vr.__)("Show avatar"),checked:_,onChange:()=>i({showAvatar:!_})})}),_&&(0,xt.jsx)(zr.__experimentalToolsPanelItem,{label:(0,Vr.__)("Avatar size"),isShownByDefault:!0,hasValue:()=>C!==48,onDeselect:()=>i({avatarSize:48}),children:(0,xt.jsx)(zr.SelectControl,{label:(0,Vr.__)("Avatar size"),value:C,options:S,onChange:R=>{i({avatarSize:Number(R)})}})}),(0,xt.jsx)(zr.__experimentalToolsPanelItem,{label:(0,Vr.__)("Show bio"),isShownByDefault:!0,hasValue:()=>!!v,onDeselect:()=>i({showBio:void 0}),children:(0,xt.jsx)(zr.ToggleControl,{label:(0,Vr.__)("Show bio"),checked:!!v,onChange:()=>i({showBio:!v})})}),(0,xt.jsx)(zr.__experimentalToolsPanelItem,{label:(0,Vr.__)("Link author name to author page"),isShownByDefault:!0,hasValue:()=>!!x,onDeselect:()=>i({isLink:!1}),children:(0,xt.jsx)(zr.ToggleControl,{label:(0,Vr.__)("Link author name to author page"),checked:x,onChange:()=>i({isLink:!x})})}),x&&(0,xt.jsx)(zr.__experimentalToolsPanelItem,{label:(0,Vr.__)("Link target"),isShownByDefault:!0,hasValue:()=>k!=="_self",onDeselect:()=>i({linkTarget:"_self"}),children:(0,xt.jsx)(zr.ToggleControl,{label:(0,Vr.__)("Open in new tab"),onChange:R=>i({linkTarget:R?"_blank":"_self"}),checked:k==="_blank"})})]})}),f.some(R=>R.name==="core/group")&&(0,xt.jsx)(yPe,{children:(0,xt.jsxs)(zr.__experimentalVStack,{className:"wp-block-post-author__transform",alignment:"left",spacing:4,children:[(0,xt.jsx)(zr.__experimentalText,{as:"p",children:(0,Vr.__)("This block is no longer supported. Recreate its design with the Avatar, Author Name and Author Biography blocks.")}),(0,xt.jsx)(zr.Button,{variant:"primary",onClick:M,__next40pxDefaultSize:!0,children:(0,Vr.__)("Recreate")})]})}),(0,xt.jsx)(La.BlockControls,{group:"block",children:(0,xt.jsx)(La.AlignmentControl,{value:b,onChange:R=>{i({textAlign:R})}})}),(0,xt.jsxs)("div",{...B,children:[_&&(0,xt.jsx)("div",{className:"wp-block-post-author__avatar",children:(0,xt.jsx)("img",{width:C,src:d?.avatar_urls?.[C]||u,alt:d?.name||(0,Vr.__)("Default Avatar")})}),(0,xt.jsxs)("div",{className:"wp-block-post-author__content",children:[(!La.RichText.isEmpty(w)||e)&&(0,xt.jsx)(La.RichText,{identifier:"byline",className:"wp-block-post-author__byline","aria-label":(0,Vr.__)("Post author byline text"),placeholder:(0,Vr.__)("Write byline\u2026"),value:w,onChange:R=>i({byline:R})}),(0,xt.jsx)("p",{className:"wp-block-post-author__name",children:x?(0,xt.jsx)("a",{href:"#post-author-pseudo-link",onClick:R=>R.preventDefault(),children:P}):P}),v&&(0,xt.jsx)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:d?.description}})]})]})]})}var qce=xPe;var{name:Kce}=A6,Yce={icon:_m,example:{viewportWidth:350,attributes:{showBio:!0,byline:(0,Zce.__)("Posted by")}},edit:qce},kPe=()=>D({name:Kce,metadata:A6,settings:Yce});var GO={};J(GO,{init:()=>EPe,metadata:()=>V6,name:()=>oue,settings:()=>nue});var V6={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},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 z6=a(I(),1),Qce=a(H(),1),qc=a(L(),1),Xce=a(ae(),1),Lp=a(F(),1);var is=a(y(),1);function CPe(e){Pt(e);let{attributes:{isLink:t,linkTarget:r},setAttributes:o,context:{postType:n,postId:i}}=e,{authorName:s,supportsAuthor:l}=(0,Qce.useSelect)(m=>{let{getEditedEntityRecord:f,getUser:g,getPostType:h}=m(Xce.store),b=f("postType",n,i)?.author;return{authorName:b?g(b):null,supportsAuthor:h(n)?.supports?.author??!1}},[n,i]),c=(0,z6.useBlockProps)(),u=s?.name||(0,qc.__)("Author Name"),d=t?(0,is.jsx)("a",{href:"#author-pseudo-link",onClick:m=>m.preventDefault(),className:"wp-block-post-author-name__link",children:u}):u,p=ee();return(0,is.jsxs)(is.Fragment,{children:[(0,is.jsx)(z6.InspectorControls,{children:(0,is.jsxs)(Lp.__experimentalToolsPanel,{label:(0,qc.__)("Settings"),resetAll:()=>{o({isLink:!1,linkTarget:"_self"})},dropdownMenuProps:p,children:[(0,is.jsx)(Lp.__experimentalToolsPanelItem,{label:(0,qc.__)("Link to author archive"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>o({isLink:!1}),children:(0,is.jsx)(Lp.ToggleControl,{label:(0,qc.__)("Link to author archive"),onChange:()=>o({isLink:!t}),checked:t})}),t&&(0,is.jsx)(Lp.__experimentalToolsPanelItem,{label:(0,qc.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r!=="_self",onDeselect:()=>o({linkTarget:"_self"}),children:(0,is.jsx)(Lp.ToggleControl,{label:(0,qc.__)("Open in new tab"),onChange:m=>o({linkTarget:m?"_blank":"_self"}),checked:r==="_blank"})})]})}),(0,is.jsx)("div",{...c,children:!l&&n!==void 0?(0,qc.sprintf)((0,qc.__)("This post type (%s) does not support the author."),n):d})]})}var Jce=CPe;var SPe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},eue=[SPe];var tue=a(te(),1),TPe={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,tue.createBlock)("core/post-author-name",{style:{typography:{textAlign:e}}})}]},rue=TPe;var{name:oue}=V6,nue={icon:_m,transforms:rue,edit:Jce,deprecated:eue},EPe=()=>D({name:oue,metadata:V6,settings:nue});var $O={};J($O,{init:()=>NPe,metadata:()=>H6,name:()=>due,settings:()=>pue});var H6={$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},background:{gradient:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!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}}},style:"wp-block-post-author-biography"};var aue=a(I(),1),iue=a(H(),1),sue=a(L(),1),lue=a(ae(),1);var yx=a(y(),1);function BPe(e){Pt(e);let{context:{postType:t,postId:r}}=e,{authorDetails:o}=(0,iue.useSelect)(s=>{let{getEditedEntityRecord:l,getUser:c}=s(lue.store),u=l("postType",t,r)?.author;return{authorDetails:u?c(u):null}},[t,r]),n=(0,aue.useBlockProps)(),i=o?.description||(0,sue.__)("Author Biography");return(0,yx.jsx)(yx.Fragment,{children:(0,yx.jsx)("div",{...n,dangerouslySetInnerHTML:{__html:i}})})}var cue=BPe;var IPe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},uue=[IPe];var{name:due}=H6,pue={icon:_m,edit:cue,deprecated:uue},NPe=()=>D({name:due,metadata:H6,settings:pue});var qO={};J(qO,{init:()=>RPe,metadata:()=>j6,name:()=>bue,settings:()=>yue});var j6={$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 vx=a(L(),1),b0=a(F(),1),mue=a(W(),1);var U6=a(I(),1),Kf=a(y(),1);function fue({attributes:{commentId:e},setAttributes:t}){let[r,o]=(0,mue.useState)(e),n=(0,U6.useBlockProps)(),i=(0,U6.useInnerBlocksProps)(n);return e?(0,Kf.jsx)("div",{...i}):(0,Kf.jsx)("div",{...n,children:(0,Kf.jsxs)(b0.Placeholder,{icon:_P,label:(0,vx._x)("Post Comment","block title"),instructions:(0,vx.__)("To show a comment, input the comment ID."),children:[(0,Kf.jsx)(b0.TextControl,{value:e,onChange:s=>o(parseInt(s))}),(0,Kf.jsx)(b0.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t({commentId:r})},children:(0,vx.__)("Save")})]})})}var W6=a(I(),1),gue=a(y(),1);function hue(){let e=W6.useBlockProps.save(),t=W6.useInnerBlocksProps.save(e);return(0,gue.jsx)("div",{...t})}var{name:bue}=j6,LPe=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]],yue={icon:Xb,template:LPe,edit:fue,save:hue},RPe=()=>D({name:bue,metadata:j6,settings:yue});var ZO={};J(ZO,{init:()=>FPe,metadata:()=>G6,name:()=>Eue,settings:()=>Pue});var G6={$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,background:{gradient:!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}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},interactivity:{clientNavigation:!0}},style:"wp-block-post-comments-count"};var vue=a(I(),1),$6=a(W(),1),_ue=a(l2(),1),xue=a(qt(),1),kue=a(y(),1);function wue({context:e}){let{postId:t}=e,[r,o]=(0,$6.useState)(),n=(0,vue.useBlockProps)();(0,$6.useEffect)(()=>{if(!t)return;let l=t;(0,_ue.default)({path:(0,xue.addQueryArgs)("/wp/v2/comments",{post:t}),parse:!1}).then(c=>{l===t&&o(c.headers.get("X-WP-Total"))})},[t]);let i=t&&r!==void 0,s={...n.style,textDecoration:i?n.style?.textDecoration:void 0};return(0,kue.jsx)("div",{...n,style:s,children:i?r:"0"})}var Cue=a(te(),1),APe={to:[{type:"block",blocks:["core/post-comments-link"],transform:({style:e})=>{let t=e?.typography?.textAlign;return(0,Cue.createBlock)("core/post-comments-link",{...t&&{style:{typography:{textAlign:t}}}})}}]},Sue=APe;var OPe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Tue=[OPe];var{name:Eue}=G6,Pue={icon:uv,edit:wue,transforms:Sue,deprecated:Tue},FPe=()=>D({name:Eue,metadata:G6,settings:Pue});var YO={};J(YO,{init:()=>HPe,metadata:()=>q6,name:()=>Mue,settings:()=>Lue});var q6={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{button:!0,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 Bue=a(I(),1),Iue=a(_e(),1),Z6=a(L(),1);var _x=a(y(),1);function KO({context:e}){let{postId:t,postType:r}=e,o=(0,Iue.useInstanceId)(KO),n=(0,Z6.sprintf)("comments-form-edit-%d-desc",o),i=(0,Bue.useBlockProps)({"aria-describedby":n});return(0,_x.jsxs)("div",{...i,children:[(0,_x.jsx)(CC,{postId:t,postType:r}),(0,_x.jsx)(ln,{id:n,children:(0,Z6.__)("Comments form disabled in editor.")})]})}var zPe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Nue=[zPe];var{name:Mue}=q6,Lue={icon:gI,edit:KO,deprecated:Nue},HPe=()=>D({name:Mue,metadata:q6,settings:Lue});var QO={};J(QO,{init:()=>$Pe,metadata:()=>K6,name:()=>Uue,settings:()=>Wue});var K6={$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 Rue=a(I(),1),Q6=a(W(),1),Due=a(H(),1),Aue=a(l2(),1),Oue=a(qt(),1),Yf=a(L(),1),Fue=a(ae(),1),Y6=a(y(),1);function UPe({context:e}){let{postType:t,postId:r}=e,[o,n]=(0,Q6.useState)(),i=(0,Rue.useBlockProps)();(0,Q6.useEffect)(()=>{if(!r)return;let c=r;(0,Aue.default)({path:(0,Oue.addQueryArgs)("/wp/v2/comments",{post:r}),parse:!1}).then(u=>{c===r&&n(u.headers.get("X-WP-Total"))})},[r]);let s=(0,Due.useSelect)(c=>c(Fue.store).getEditedEntityRecord("postType",t,r),[t,r]),l;if(o!==void 0){let c=parseInt(o);c===0?l=(0,Yf.__)("No comments"):l=(0,Yf.sprintf)((0,Yf._n)("%s comment","%s comments",c),c.toLocaleString())}return(0,Y6.jsx)("div",{...i,children:s?.link&&l!==void 0?(0,Y6.jsx)("a",{href:s?.link+"#comments",onClick:c=>c.preventDefault(),children:l}):(0,Y6.jsx)("a",{href:"#post-comments-link-pseudo-link",onClick:c=>c.preventDefault(),children:(0,Yf.__)("No comments")})})}var Vue=UPe;var zue=a(te(),1),WPe={to:[{type:"block",blocks:["core/post-comments-count"],transform:({style:e})=>{let t=e?.typography?.textAlign;return(0,zue.createBlock)("core/post-comments-count",{...t&&{style:{typography:{textAlign:t}}}})}}]},Hue=WPe;var GPe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},jue=[GPe];var{name:Uue}=K6,Wue={edit:Vue,icon:uv,transforms:Hue,deprecated:jue},$Pe=()=>D({name:Uue,metadata:K6,settings:Wue});var XO={};J(XO,{init:()=>rBe,metadata:()=>X6,name:()=>Kue,settings:()=>Yue});var X6={$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},shadow:!0,spacing:{blockGap:!0,padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},color:{gradients:!0,button:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!1,text:!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,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-content",editorStyle:"wp-block-post-content-editor"};var Qf=a(L(),1),bo=a(I(),1),Gue=a(te(),1),Xf=a(ae(),1),$ue=a(H(),1),que=a(W(),1);var lr=a(y(),1),{HTMLElementControl:ZPe}=le(bo.privateApis);function KPe({parentLayout:e,layoutClassNames:t,userCanEdit:r,postType:o,postId:n,tagName:i="div"}){let[,,s]=(0,Xf.useEntityProp)("postType",o,"content",n),l=(0,bo.useBlockProps)({className:t}),c=(0,que.useMemo)(()=>s?.raw?(0,Gue.parse)(s.raw):[],[s?.raw]),u=(0,bo.__experimentalUseBlockPreview)({blocks:c,props:l,layout:e});return r?(0,lr.jsx)("div",{...u}):s?.protected?(0,lr.jsx)(i,{...l,children:(0,lr.jsx)(bo.Warning,{children:(0,Qf.__)("This content is password protected.")})}):(0,lr.jsx)(i,{...l,dangerouslySetInnerHTML:{__html:s?.rendered}})}function YPe({blockProps:e,blocks:t,onInput:r,onChange:o,tagName:n="div"}){let i=(0,bo.useInnerBlocksProps)(e,{value:t,onInput:r,onChange:o});return(0,lr.jsx)(n,{...i})}function QPe({context:e={},tagName:t="div"}){let{postType:r,postId:o}=e,[n,i,s]=(0,Xf.useEntityBlockEditor)("postType",r,{id:o}),l=(0,$ue.useSelect)(u=>u(Xf.store).getEntityRecord("postType",r,o)!==void 0||u(Xf.store).hasFinishedResolution("getEntityRecord",["postType",r,o]),[r,o]),c=(0,bo.useBlockProps)({className:"entry-content"});return l?(0,lr.jsx)(YPe,{blockProps:c,blocks:n,onInput:i,onChange:s,tagName:t}):(0,lr.jsx)(t,{...c})}function XPe(e){let{context:{queryId:t,postType:r,postId:o}={},layoutClassNames:n,tagName:i}=e,s=Tw("postType",r,o);if(s===void 0)return null;let l=Number.isFinite(t);return s&&!l?(0,lr.jsx)(QPe,{...e}):(0,lr.jsx)(KPe,{parentLayout:e.parentLayout,layoutClassNames:n,userCanEdit:s,postType:r,postId:o,tagName:i})}function JPe({layoutClassNames:e}){let t=(0,bo.useBlockProps)({className:e});return(0,lr.jsxs)("div",{...t,children:[(0,lr.jsx)("p",{children:(0,Qf.__)("This is the Content block, it will display all the blocks in any single post or page.")}),(0,lr.jsx)("p",{children:(0,Qf.__)("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,lr.jsx)("p",{children:(0,Qf.__)("If there are any Custom Post Types registered at your site, the Content block can display the contents of those entries as well.")})]})}function eBe(){let e=(0,bo.useBlockProps)();return(0,lr.jsx)("div",{...e,children:(0,lr.jsx)(bo.Warning,{children:(0,Qf.__)("Block cannot be rendered inside itself.")})})}function tBe({tagName:e,onSelectTagName:t,clientId:r}){return(0,lr.jsx)(bo.InspectorControls,{group:"advanced",children:(0,lr.jsx)(ZPe,{tagName:e,onChange:t,clientId:r,options:[{label:(0,Qf.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"}]})})}function Zue({context:e,attributes:{tagName:t="div"},setAttributes:r,clientId:o,__unstableLayoutClassNames:n,__unstableParentLayout:i}){let{postId:s,postType:l}=e,c=(0,bo.useHasRecursion)(s);return s&&l&&c?(0,lr.jsx)(eBe,{}):(0,lr.jsxs)(lr.Fragment,{children:[(0,lr.jsx)(tBe,{tagName:t,onSelectTagName:d=>{r({tagName:d})},clientId:o}),(0,lr.jsx)(bo.RecursionProvider,{uniqueId:s,children:s&&l?(0,lr.jsx)(XPe,{context:e,parentLayout:i,layoutClassNames:n}):(0,lr.jsx)(JPe,{layoutClassNames:n})})]})}var{name:Kue}=X6,Yue={icon:vI,edit:Zue},rBe=()=>D({name:Kue,metadata:X6,settings:Yue});var JO={};J(JO,{init:()=>uBe,metadata:()=>J6,name:()=>ode,settings:()=>nde});var J6={$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,background:{gradient:!0},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 Que=a(ae(),1),y0=a(W(),1),Jf=a(MC(),1),fi=a(I(),1),ss=a(F(),1),Ra=a(L(),1);var Xue=a(fc(),1),xx=a(H(),1),Jue=a(te(),1);var zo=a(y(),1);function ede(e){let{attributes:t,context:{postType:r,queryId:o},setAttributes:n,name:i}=e;Pt(e);let{datetime:s,format:l,isLink:c}=t,u=(0,fi.useBlockProps)(),d=ee(),[p,m]=(0,y0.useState)(null),f=(0,y0.useMemo)(()=>({anchor:p}),[p]),{__unstableMarkNextChangeAsNotPersistent:g}=(0,xx.useDispatch)(fi.store);(0,y0.useEffect)(()=>{s===void 0&&(g(),n({datetime:new Date}))},[s]);let h=Number.isFinite(o),b=(0,Jf.getSettings)(),{postType:_,siteFormat:v=b.formats.date,siteTimeFormat:w=b.formats.time}=(0,xx.useSelect)(P=>{let{getPostType:B,getEntityRecord:N}=P(Que.store),E=N("root","site");return{siteFormat:E?.date_format,siteTimeFormat:E?.time_format,postType:r?B(r):null}},[r]),x=(0,xx.useSelect)(P=>P(Jue.store).getActiveBlockVariation(i,t)?.name,[i,t]),k=(0,fi.useBlockEditingMode)(),C=s||new Date,S=(0,zo.jsx)("time",{dateTime:(0,Jf.dateI18n)("c",C),ref:m,children:l==="human-diff"?(0,Jf.humanTimeDiff)(C):(0,Jf.dateI18n)(l||v,C)});return c&&s&&(S=(0,zo.jsx)("a",{href:"#post-date-pseudo-link",onClick:P=>P.preventDefault(),children:S})),(0,zo.jsxs)(zo.Fragment,{children:[(k==="default"||!h)&&x!=="post-date-modified"&&(!h||!x)&&(0,zo.jsx)(fi.BlockControls,{group:"block",children:(0,zo.jsx)(ss.ToolbarGroup,{children:(0,zo.jsx)(ss.Dropdown,{popoverProps:f,renderContent:({onClose:P})=>(0,zo.jsx)(fi.__experimentalPublishDateTimePicker,{title:x==="post-date"?(0,Ra.__)("Publish Date"):(0,Ra.__)("Date"),currentDate:s,onChange:B=>n({datetime:B}),is12Hour:nBe(w),onClose:P,dateOrder:(0,Ra._x)("dmy","date order")}),renderToggle:({isOpen:P,onToggle:B})=>{let N=E=>{!P&&E.keyCode===Xue.DOWN&&(E.preventDefault(),B())};return(0,zo.jsx)(ss.ToolbarButton,{"aria-expanded":P,icon:vm,title:(0,Ra.__)("Change Date"),onClick:B,onKeyDown:N})}})})}),(0,zo.jsx)(fi.InspectorControls,{children:(0,zo.jsxs)(ss.__experimentalToolsPanel,{label:(0,Ra.__)("Settings"),resetAll:()=>{n({datetime:void 0,format:void 0,isLink:!1})},dropdownMenuProps:d,children:[(0,zo.jsx)(ss.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,Ra.__)("Date Format"),onDeselect:()=>n({format:void 0}),isShownByDefault:!0,children:(0,zo.jsx)(fi.__experimentalDateFormatPicker,{format:l,defaultFormat:v,onChange:P=>n({format:P})})}),(0,zo.jsx)(ss.__experimentalToolsPanelItem,{hasValue:()=>c!==!1,label:_?.labels?.singular_name?(0,Ra.sprintf)((0,Ra.__)("Link to %s"),_.labels.singular_name.toLowerCase()):(0,Ra.__)("Link to post"),onDeselect:()=>n({isLink:!1}),isShownByDefault:!0,children:(0,zo.jsx)(ss.ToggleControl,{label:_?.labels?.singular_name?(0,Ra.sprintf)((0,Ra.__)("Link to %s"),_.labels.singular_name.toLowerCase()):(0,Ra.__)("Link to post"),onChange:()=>n({isLink:!c}),checked:c})})]})}),(0,zo.jsx)("div",{...u,children:S})]})}function nBe(e){return/(?:^|[^\\])[aAgh]/.test(e)}var aBe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},iBe={attributes:{datetime:{type:"string",role:"content"},textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"}},supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save(){return null},migrate({metadata:{bindings:{datetime:{source:e,args:{key:t,...r}},...o},...n},...i}){return we({metadata:{bindings:{datetime:{source:e,args:{field:t,...r}},...o},...n},...i})},isEligible(e){return e?.metadata?.bindings?.datetime?.source==="core/post-data"&&!!e?.metadata?.bindings?.datetime?.args?.key}},sBe={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=T(e,"wp-block-post-date__modified-date")),we({...o,className:e,metadata:{...r,bindings:{datetime:{source:"core/post-data",args:{field:t}}}}})},isEligible(e){return!e.datetime&&!e?.metadata?.bindings?.datetime}},lBe={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 we(or(e))},isEligible({style:e}){return e?.typography?.fontFamily}},tde=[aBe,iBe,sBe,lBe];var kx=a(L(),1),cBe=[{name:"post-date",title:(0,kx.__)("Post Date"),description:(0,kx.__)("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,kx.__)("Modified Date"),description:(0,kx.__)("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"}],rde=cBe;var{name:ode}=J6,nde={icon:mv,edit:ede,deprecated:tde,variations:rde},uBe=()=>D({name:ode,metadata:J6,settings:nde});var tF={};J(tF,{init:()=>fBe,metadata:()=>eS,name:()=>dde,settings:()=>pde});var eS={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},shadow:!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 tS=a(ae(),1),ide=a(W(),1),Zu=a(I(),1),Ku=a(F(),1),Da=a(L(),1),sde=a(H(),1);var yo=a(y(),1),ade="\u2026";function lde(e){let{attributes:{moreText:t,showMoreOnNewLine:r,excerptLength:o},setAttributes:n,isSelected:i,context:{postId:s,postType:l,queryId:c}}=e;Pt(e);let u=Number.isFinite(c),d=Tw("postType",l,s),[p,m,{rendered:f,protected:g}={}]=(0,tS.useEntityProp)("postType",l,"excerpt",s),h=ee(),b=(0,sde.useSelect)(E=>l==="page"?!0:!!E(tS.store).getPostType(l)?.supports?.excerpt,[l]),_=d&&!u&&b,v=(0,Zu.useBlockProps)(),w=(0,Da._x)("words","Word count type. Do not translate!"),x=(0,ide.useMemo)(()=>{if(!f)return"";let E=new window.DOMParser().parseFromString(f,"text/html");return E.body.textContent||E.body.innerText||""},[f]);if(!l||!s)return(0,yo.jsx)("div",{...v,children:(0,yo.jsx)("p",{children:(0,Da.__)("This block will display the excerpt.")})});if(g&&!d)return(0,yo.jsx)("div",{...v,children:(0,yo.jsx)(Zu.Warning,{children:(0,Da.__)("The content is currently protected and does not have the available excerpt.")})});let k=(0,yo.jsx)(Zu.RichText,{identifier:"moreText",className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,Da.__)("\u201CRead more\u201D link text"),placeholder:(0,Da.__)('Add "read more" link text'),value:t,onChange:E=>n({moreText:E}),withoutInteractiveFormatting:!0}),C=T("wp-block-post-excerpt__excerpt",{"is-inline":!r}),S=(p||x).trim(),P="";if(w==="words")P=S.split(/\s+/,o).join(" ");else if(w==="characters_excluding_spaces"){let E=S.split("",o).join(""),M=E.length-E.replaceAll(" ","").length;P=S.split("",o+M).join("")}else w==="characters_including_spaces"&&(P=S.split("",o).join(""));let B=P!==S,N=_?(0,yo.jsx)(Zu.RichText,{className:C,"aria-label":(0,Da.__)("Excerpt text"),value:i?S:(B?P+ade:S)||(0,Da.__)("No excerpt found"),onChange:m,tagName:"p",allowedFormats:[],preserveWhiteSpace:!0}):(0,yo.jsx)("p",{className:C,children:B?P+ade:S||(0,Da.__)("No excerpt found")});return(0,yo.jsxs)(yo.Fragment,{children:[(0,yo.jsx)(Zu.InspectorControls,{children:(0,yo.jsxs)(Ku.__experimentalToolsPanel,{label:(0,Da.__)("Settings"),resetAll:()=>{n({showMoreOnNewLine:!0,excerptLength:55})},dropdownMenuProps:h,children:[(0,yo.jsx)(Ku.__experimentalToolsPanelItem,{hasValue:()=>r!==!0,label:(0,Da.__)("Show link on new line"),onDeselect:()=>n({showMoreOnNewLine:!0}),isShownByDefault:!0,children:(0,yo.jsx)(Ku.ToggleControl,{label:(0,Da.__)("Show link on new line"),checked:r,onChange:E=>n({showMoreOnNewLine:E})})}),(0,yo.jsx)(Ku.__experimentalToolsPanelItem,{hasValue:()=>o!==55,label:(0,Da.__)("Max number of words"),onDeselect:()=>n({excerptLength:55}),isShownByDefault:!0,children:(0,yo.jsx)(Ku.RangeControl,{label:(0,Da.__)("Max number of words"),value:o,onChange:E=>{n({excerptLength:E})},min:"10",max:"100"})})]})}),(0,yo.jsxs)("div",{...v,children:[N,!r&&" ",r?(0,yo.jsx)("p",{className:"wp-block-post-excerpt__more-text",children:k}):k]})]})}var eF=a(te(),1),pBe={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,eF.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,eF.createBlock)("core/post-content")}]},cde=pBe;var mBe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},ude=[mBe];var{name:dde}=eS,pde={icon:_I,transforms:cde,edit:lde,deprecated:ude},fBe=()=>D({name:dde,metadata:eS,settings:pde});var oF={};J(oF,{init:()=>SBe,metadata:()=>rS,name:()=>Tde,settings:()=>Ede});var rS={$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 kde=a(Ur(),1),wx=a(ae(),1),Cx=a(H(),1),Ho=a(F(),1),Hr=a(I(),1),Fp=a(W(),1),ta=a(L(),1);var wde=a(br(),1);var Rp=a(L(),1),mde=a(F(),1),oS=a(I(),1);var fde=a(y(),1),{DimensionsTool:hBe}=le(oS.privateApis),bBe="cover",yBe=["aspectRatio","width","height","scale"],vBe=[{value:"cover",label:(0,Rp._x)("Cover","Scale option for Image dimension control"),help:(0,Rp.__)("Image is scaled and cropped to fill the entire space without being distorted.")},{value:"contain",label:(0,Rp._x)("Contain","Scale option for Image dimension control"),help:(0,Rp.__)("Image is scaled to fill the space without clipping nor distorting.")},{value:"fill",label:(0,Rp._x)("Fill","Scale option for Image dimension control"),help:(0,Rp.__)("Image will be stretched and distorted to completely fill the space.")}],_Be=({clientId:e,attributes:t,setAttributes:r,selectedStyleState:o,hasSelectedStyleState:n=!1})=>{let{style:i}=t,s=Zh(o),l=Oi({attributes:t,selectedState:o,hasSelectedStyleState:n,attributeKey:"aspectRatio"}),c=Oi({attributes:t,selectedState:o,hasSelectedStyleState:n,attributeKey:"width"}),u=Oi({attributes:t,selectedState:o,hasSelectedStyleState:n,attributeKey:"height"}),d=Oi({attributes:t,selectedState:o,hasSelectedStyleState:n,attributeKey:"scale",styleKey:"objectFit"}),[p]=(0,oS.useSettings)("spacing.units"),m=(0,mde.__experimentalUseCustomUnits)({availableUnits:p||["px","%","vw","em","rem"]});return(0,fde.jsx)(hBe,{panelId:e,value:{aspectRatio:l,width:c,height:u,scale:d},onChange:g=>{let h={...g,width:!g.width&&g.height?"auto":g.width};r(Kh({style:i,selectedState:o,hasSelectedStyleState:n,nextDimensions:h,dimensionKeyMap:{scale:"objectFit"},dimensionKeys:yBe}))},defaultScale:bBe,defaultAspectRatio:"auto",scaleOptions:vBe,unitsOptions:m},s)},gde=_Be;var aS=a(F(),1),Ap=a(I(),1),hde=a(_e(),1),nS=a(L(),1),Dp=a(y(),1),xBe=({clientId:e,attributes:t,setAttributes:r,overlayColor:o,setOverlayColor:n})=>{let{dimRatio:i}=t,{gradientValue:s,setGradient:l}=(0,Ap.__experimentalUseGradient)(),c=(0,Ap.__experimentalUseMultipleOriginColorsAndGradients)();return c.hasColorsOrGradients?(0,Dp.jsxs)(Dp.Fragment,{children:[(0,Dp.jsx)(Ap.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:o.color,gradientValue:s,label:(0,nS.__)("Overlay"),onColorChange:n,onGradientChange:l,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:e,...c}),(0,Dp.jsx)(aS.__experimentalToolsPanelItem,{hasValue:()=>i!==void 0,label:(0,nS.__)("Overlay opacity"),onDeselect:()=>r({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e,children:(0,Dp.jsx)(aS.RangeControl,{label:(0,nS.__)("Overlay opacity"),value:i,onChange:u=>r({dimRatio:u}),min:0,max:100,step:10,required:!0})})]}):null},bde=(0,hde.compose)([(0,Ap.withColors)({overlayColor:"background-color"})])(xBe);var Op=a(I(),1),vde=a(_e(),1);function yde(e){return e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}var _de=a(y(),1),kBe=({attributes:e,overlayColor:t})=>{let{dimRatio:r}=e,{gradientClass:o,gradientValue:n}=(0,Op.__experimentalUseGradient)(),i=(0,Op.__experimentalUseMultipleOriginColorsAndGradients)(),s=(0,Op.__experimentalUseBorderProps)(e),l={backgroundColor:t.color,backgroundImage:n,...s.style};return!i.hasColorsOrGradients||!r?null:(0,_de.jsx)("span",{"aria-hidden":"true",className:T("wp-block-post-featured-image__overlay",yde(r),{[t.class]:t.class,"has-background-dim":r!==void 0,"has-background-gradient":n,[o]:o},s.className),style:l})},rF=(0,vde.compose)([(0,Op.withColors)({overlayColor:"background-color"})])(kBe);var rt=a(y(),1),xde=["image"],{ResolutionTool:wBe}=le(Hr.privateApis),v0=e=>e!=null&&e!=="",Cde="full";function CBe({image:e,value:t,onChange:r}){let{imageSizes:o}=(0,Cx.useSelect)(i=>{let{getSettings:s}=i(Hr.store);return{imageSizes:s().imageSizes}},[]);if(!o?.length)return null;let n=o.filter(({slug:i})=>e?.media_details?.sizes?.[i]?.source_url).map(({name:i,slug:s})=>({value:s,label:i}));return(0,rt.jsx)(wBe,{value:t,defaultValue:Cde,options:n,onChange:r})}function Sde({clientId:e,attributes:t,setAttributes:r,context:{postId:o,postType:n,queryId:i}}){let s=Number.isFinite(i),{isLink:l,aspectRatio:c,height:u,width:d,scale:p,sizeSlug:m,rel:f,linkTarget:g,useFirstImageFromPost:h}=t,[b,_]=(0,Fp.useState)(),[v,w]=(0,wx.useEntityProp)("postType",n,"featured_media",o),[x]=(0,wx.useEntityProp)("postType",n,"content",o),k=(0,Fp.useMemo)(()=>{if(v)return v;if(!h)return;let Q=/<!--\s+wp:(?:core\/)?image\s+(?<attrs>{(?:(?:[^}]+|}+(?=})|(?!}\s+\/?-->).)*)?}\s+)?-->/.exec(x);return Q?.groups?.attrs&&JSON.parse(Q.groups.attrs)?.id},[v,h,x]),{media:C,postType:S,postPermalink:P,selectedStyleState:B,hasSelectedStyleState:N}=(0,Cx.useSelect)(Q=>{let{getEntityRecord:ie,getPostType:me,getEditedEntityRecord:xe}=Q(wx.store),{getSelectedBlockStyleState:Be,hasSelectedBlockStyleState:se}=Q(Hr.store);return{media:k&&ie("postType","attachment",k,{context:"view"}),postType:n&&me(n),postPermalink:xe("postType",n,o)?.link,selectedStyleState:Be(e),hasSelectedStyleState:se(e)}},[e,k,n,o]),E=C?.media_details?.sizes?.[m]?.source_url||C?.source_url,M=(0,Hr.useBlockProps)({className:T({"is-transient":b})}),R=(0,Hr.__experimentalUseBorderProps)(t),O=(0,Hr.__experimentalGetShadowClassesAndStyles)(t),j=(0,Hr.useBlockEditingMode)(),V=c==="auto"?void 0:c,G=Q=>(0,rt.jsx)(Ho.Placeholder,{className:T("block-editor-media-placeholder",R.className),withIllustration:!0,style:{aspectRatio:V,height:v0(u)?u:v0(d)&&"auto",width:v0(d)?d:!!c&&"100%",...R.style,...O.style},children:Q}),$=Q=>{Q?.id&&w(Q.id),Q?.url&&(0,kde.isBlobURL)(Q.url)&&_(Q.url)},z=()=>{r({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:void 0}),w(0)};(0,Fp.useEffect)(()=>{E&&b&&_()},[E,b]);let{createErrorNotice:K}=(0,Cx.useDispatch)(wde.store),q=Q=>{K(Q,{type:"snackbar"}),_()},Y=ee(),oe=j==="default"&&(0,rt.jsxs)(rt.Fragment,{children:[(0,rt.jsx)(Hr.InspectorControls,{group:"color",children:(0,rt.jsx)(bde,{attributes:t,setAttributes:r,clientId:e})}),(0,rt.jsx)(Hr.InspectorControls,{group:"dimensions",resetAllFilter:Q=>Yh({attributes:Q,selectedState:B,hasSelectedStyleState:N,keys:["aspectRatio","height","objectFit","width"],defaultAttributes:{aspectRatio:void 0,height:void 0,scale:void 0,width:void 0}}),children:(0,rt.jsx)(gde,{clientId:e,attributes:t,setAttributes:r,media:C,selectedStyleState:B,hasSelectedStyleState:N})}),(k||s||!o)&&(0,rt.jsx)(Hr.InspectorControls,{children:(0,rt.jsxs)(Ho.__experimentalToolsPanel,{label:(0,ta.__)("Settings"),resetAll:()=>{r({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:Cde})},dropdownMenuProps:Y,children:[(0,rt.jsx)(Ho.__experimentalToolsPanelItem,{label:S?.labels?.singular_name?(0,ta.sprintf)((0,ta.__)("Link to %s"),S.labels.singular_name):(0,ta.__)("Link to post"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>r({isLink:!1}),children:(0,rt.jsx)(Ho.ToggleControl,{label:(0,ta.__)("Make image a link"),onChange:()=>r({isLink:!l}),checked:l})}),l&&(0,rt.jsx)(Ho.__experimentalToolsPanelItem,{label:(0,ta.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>g!=="_self",onDeselect:()=>r({linkTarget:"_self"}),children:(0,rt.jsx)(Ho.ToggleControl,{label:(0,ta.__)("Open in new tab"),onChange:Q=>r({linkTarget:Q?"_blank":"_self"}),checked:g==="_blank"})}),l&&(0,rt.jsx)(Ho.__experimentalToolsPanelItem,{label:(0,ta.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!f,onDeselect:()=>r({rel:""}),children:(0,rt.jsx)(Ho.TextControl,{label:(0,ta.__)("Link relation"),help:(0,Fp.createInterpolateElement)((0,ta.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,rt.jsx)(Ho.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:f,onChange:Q=>r({rel:Q})})}),!!C&&(0,rt.jsx)(CBe,{image:C,value:m,onChange:Q=>r({sizeSlug:Q})})]})})]}),Z;if(!k&&(s||!o))return(0,rt.jsxs)(rt.Fragment,{children:[oe,(0,rt.jsxs)("div",{...M,children:[l?(0,rt.jsx)("a",{href:P,target:g,children:G()}):G(),(0,rt.jsx)(rF,{attributes:t,setAttributes:r,clientId:e})]})]});let U=(0,ta.__)("Add a featured image"),X={...R.style,...O.style,aspectRatio:V,height:v0(u)?u:v0(d)&&"auto",width:v0(d)?d:!!c&&"100%",objectFit:!!(u||c)&&p};return!k&&!b?Z=(0,rt.jsx)(Hr.MediaPlaceholder,{onSelect:$,accept:"image/*",allowedTypes:xde,onError:q,placeholder:G,mediaLibraryButton:({open:Q})=>(0,rt.jsx)(Ho.Button,{__next40pxDefaultSize:!0,icon:vu,variant:"primary",label:U,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{Q()}})}):Z=!C&&!b?G():(0,rt.jsxs)(rt.Fragment,{children:[(0,rt.jsx)("img",{className:R.className,src:b||E,alt:C&&C?.alt_text?(0,ta.sprintf)((0,ta.__)("Featured image: %s"),C.alt_text):(0,ta.__)("Featured image"),style:X}),b&&(0,rt.jsx)(Ho.Spinner,{})]}),(0,rt.jsxs)(rt.Fragment,{children:[!b&&oe,!!C&&!s&&(0,rt.jsx)(Hr.BlockControls,{group:"other",children:(0,rt.jsx)(Hr.MediaReplaceFlow,{mediaId:k,mediaURL:E,allowedTypes:xde,accept:"image/*",onSelect:$,onError:q,onReset:z})}),(0,rt.jsxs)("figure",{...M,children:[l?(0,rt.jsx)("a",{href:P,target:g,children:Z}):Z,(0,rt.jsx)(rF,{attributes:t,setAttributes:r,clientId:e})]})]})}var{name:Tde}=rS,Ede={icon:kI,edit:Sde},SBe=()=>D({name:Tde,metadata:rS,settings:Ede});var nF={};J(nF,{init:()=>PBe,metadata:()=>iS,name:()=>Dde,settings:()=>Ade});var Rde=a(L(),1);var iS={$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}},shadow:{__experimentalSkipSerialization:!0},interactivity:{clientNavigation:!0},spacing:{__experimentalSkipSerialization:!0,margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!1,radius:!1,style:!1,width:!1}}},selectors:{border:".wp-block-post-navigation-link:not(:empty)",shadow:".wp-block-post-navigation-link:not(:empty)",spacing:".wp-block-post-navigation-link:not(:empty)"},style:"wp-block-post-navigation-link"};var wn=a(F(),1),ls=a(I(),1),Tr=a(L(),1),Pde=a(H(),1),Bde=a(ae(),1);var jr=a(y(),1);function Ide({context:{postType:e},attributes:t,setAttributes:r}){let{type:o,label:n,showTitle:i,linkLabel:s,arrow:l,taxonomy:c}=t,u=o==="next",d=u?(0,Tr.__)("Next"):(0,Tr.__)("Previous"),m={none:"",arrow:u?"\u2192":"\u2190",chevron:u?"\xBB":"\xAB"}[l];i&&(d=u?(0,Tr.__)("Next: "):(0,Tr.__)("Previous: "));let f=u?(0,Tr.__)("Next post"):(0,Tr.__)("Previous post"),g=(0,ls.__experimentalUseBorderProps)(t),h=(0,ls.__experimentalGetShadowClassesAndStyles)(t),b=(0,ls.__experimentalGetSpacingClassesAndStyles)(t),_=(0,ls.useBlockProps)({className:g.className,style:{...g.style,...h.style,...b.style}}),v=(0,Pde.useSelect)(k=>{let{getTaxonomies:C}=k(Bde.store);return C({type:e,per_page:-1})},[e]),w=()=>{let k={label:(0,Tr.__)("Unfiltered"),value:""},C=(v??[]).filter(({visibility:S})=>!!S?.publicly_queryable).map(S=>({value:S.slug,label:S.name}));return[k,...C]},x=ee();return(0,jr.jsxs)(jr.Fragment,{children:[(0,jr.jsx)(ls.InspectorControls,{children:(0,jr.jsxs)(wn.__experimentalToolsPanel,{label:(0,Tr.__)("Settings"),resetAll:()=>{r({showTitle:!1,linkLabel:!1,arrow:"none"})},dropdownMenuProps:x,children:[(0,jr.jsx)(wn.__experimentalToolsPanelItem,{label:(0,Tr.__)("Display the title as a link"),isShownByDefault:!0,hasValue:()=>i,onDeselect:()=>r({showTitle:!1}),children:(0,jr.jsx)(wn.ToggleControl,{label:(0,Tr.__)("Display the title as a link"),help:(0,Tr.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!i,onChange:()=>r({showTitle:!i})})}),i&&(0,jr.jsx)(wn.__experimentalToolsPanelItem,{label:(0,Tr.__)("Include the label as part of the link"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({linkLabel:!1}),children:(0,jr.jsx)(wn.ToggleControl,{label:(0,Tr.__)("Include the label as part of the link"),checked:!!s,onChange:()=>r({linkLabel:!s})})}),(0,jr.jsx)(wn.__experimentalToolsPanelItem,{label:(0,Tr.__)("Arrow"),isShownByDefault:!0,hasValue:()=>l!=="none",onDeselect:()=>r({arrow:"none"}),children:(0,jr.jsxs)(wn.__experimentalToggleGroupControl,{label:(0,Tr.__)("Arrow"),value:l,onChange:k=>{r({arrow:k})},help:(0,Tr.__)("A decorative arrow for the next and previous link."),isBlock:!0,children:[(0,jr.jsx)(wn.__experimentalToggleGroupControlOption,{value:"none",label:(0,Tr._x)("None","Arrow option for Next/Previous link")}),(0,jr.jsx)(wn.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Tr._x)("Arrow","Arrow option for Next/Previous link")}),(0,jr.jsx)(wn.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Tr._x)("Chevron","Arrow option for Next/Previous link")})]})})]})}),(0,jr.jsx)(ls.InspectorControls,{group:"advanced",children:(0,jr.jsx)(wn.SelectControl,{label:(0,Tr.__)("Filter by taxonomy"),value:c,options:w(),onChange:k=>r({taxonomy:k}),help:(0,Tr.__)("Only link to posts that have the same taxonomy terms as the current post. For example the same tags or categories.")})}),(0,jr.jsxs)("div",{..._,children:[!u&&m&&(0,jr.jsx)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${l}`,children:m}),(0,jr.jsx)(ls.RichText,{tagName:"a",identifier:"label","aria-label":f,placeholder:d,value:n,withoutInteractiveFormatting:!0,onChange:k=>r({label:k})}),i&&(0,jr.jsx)("a",{href:"#post-navigation-pseudo-link",onClick:k=>k.preventDefault(),children:(0,Tr.__)("An example title")}),u&&m&&(0,jr.jsx)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${l}`,"aria-hidden":!0,children:m})]})]})}var eg=a(L(),1);var Nde=[{name:"post-previous",title:(0,eg.__)("Previous Post"),description:(0,eg.__)("Displays the post link that precedes the current post."),icon:PI,attributes:{type:"previous"},scope:["inserter","transform"],example:{attributes:{label:(0,eg.__)("Previous post"),arrow:"arrow"}}},{isDefault:!0,name:"post-next",title:(0,eg.__)("Next Post"),description:(0,eg.__)("Displays the post link that follows the current post."),icon:Xy,attributes:{type:"next"},scope:["inserter","transform"],example:{attributes:{label:(0,eg.__)("Next post"),arrow:"arrow"}}}];Nde.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.type===r.type)});var Mde=Nde;var EBe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Lde=[EBe];var{name:Dde}=iS,Ade={icon:Xy,edit:Ide,variations:Mde,deprecated:Lde,example:{attributes:{label:(0,Rde.__)("Next post"),arrow:"arrow"}}},PBe=()=>D({name:Dde,metadata:iS,settings:Ade});var aF={};J(aF,{init:()=>DBe,metadata:()=>sS,name:()=>Ude,settings:()=>Wde});var sS={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,link:!0,heading:!0,button:!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},shadow:!0},style:"wp-block-post-template",editorStyle:"wp-block-post-template-editor"};var _0=a(W(),1),Ode=a(H(),1),Sx=a(L(),1),Ws=a(I(),1),lS=a(F(),1),Fde=a(ae(),1);var ra=a(y(),1),IBe={type:"default"};function NBe({classList:e}){let t=(0,Ws.useInnerBlocksProps)({className:T("wp-block-post",e)},{__unstableDisableLayoutClassNames:!0,layout:IBe});return(0,ra.jsx)("li",{...t})}function MBe({blocks:e,blockContextId:t,classList:r,isHidden:o,setActiveBlockContextId:n}){let i=(0,Ws.__experimentalUseBlockPreview)({blocks:e,props:{className:T("wp-block-post",r)}}),s=()=>{n(t)};return(0,ra.jsx)("li",{...i,tabIndex:0,role:"button",onClick:s,onKeyPress:s,style:{display:o?"none":void 0}})}var LBe=(0,_0.memo)(MBe);function Vde({setAttributes:e,clientId:t,context:{query:{perPage:r,offset:o=0,postType:n="post",order:i,orderBy:s,author:l,search:c,exclude:u,sticky:d,inherit:p,taxQuery:m,parents:f,pages:g,format:h,excludeCurrent:b,..._}={},templateSlug:v,previewPostType:w,postId:x},attributes:{layout:k},__unstableLayoutClassNames:C}){let{type:S,columnCount:P=3,minimumColumnWidth:B}=k||{},[N,E]=(0,_0.useState)(),{posts:M,blocks:R}=(0,Ode.useSelect)($=>{let{getEntityRecords:z,getTaxonomies:K}=$(Fde.store),{getBlocks:q}=$(Ws.store),Y=p&&v?.startsWith("category-")&&z("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:v.replace("category-","")}),oe=p&&v?.startsWith("tag-")&&z("taxonomy","post_tag",{context:"view",per_page:1,_fields:["id"],slug:v.replace("tag-","")}),Z={offset:o||0,order:i,orderby:s};if(m&&!p){let Q=K({type:n,per_page:-1,context:"view"}),ie=(xe,Be="")=>Object.entries(xe||{}).reduce((se,[he,ze])=>{let qe=Q?.find(({slug:ce})=>ce===he);return qe?.rest_base&&ze?.length&&(se[qe.rest_base+Be]=ze),se},{}),me=ie(m.include);m.exclude&&Object.assign(me,ie(m.exclude,"_exclude")),Object.keys(me).length&&Object.assign(Z,me)}r&&(Z.per_page=r),l&&(Z.author=l),c&&(Z.search=c),u?.length&&(Z.exclude=u),f?.length&&(Z.parent=f),h?.length&&(Z.format=h),b&&x&&(Z.exclude?Z.exclude=[...Z.exclude,x]:Z.exclude=[x]),["exclude","only"].includes(d)&&(Z.sticky=d==="only"),["","ignore"].includes(d)&&(delete Z.sticky,Z.ignore_sticky=d==="ignore");let U=n;return p&&(v?.startsWith("archive-")?(Z.postType=v.replace("archive-",""),U=Z.postType):Y?Z.categories=Y[0]?.id:oe?Z.tags=oe[0]?.id:v?.startsWith("taxonomy-post_format")&&(Z.format=v.replace("taxonomy-post_format-post-format-",""))),{posts:z("postType",w||U,{...Z,..._}),blocks:q(t)}},[r,o,i,s,t,l,c,n,u,d,p,v,m,f,h,_,w]),O=(0,_0.useMemo)(()=>M?.map($=>({postType:$.type,postId:$.id,classList:$.class_list??""})),[M]),j=(0,Ws.useBlockProps)({className:T(C,{[`columns-${P}`]:S==="grid"&&P,"has-native-responsive-grid":S==="grid"&&P&&B})});if(!M)return(0,ra.jsx)("p",{...j,children:(0,ra.jsx)(lS.Spinner,{})});if(!M.length)return(0,ra.jsxs)("p",{...j,children:[" ",(0,Sx.__)("No results found.")]});let V=$=>e({layout:{...k,...$}}),G=[{icon:pl,title:(0,Sx._x)("List view","Post template block display setting"),onClick:()=>V({type:"default"}),isActive:S==="default"||S==="constrained"},{icon:Ei,title:(0,Sx._x)("Grid view","Post template block display setting"),onClick:()=>V({type:"grid",columnCount:P}),isActive:S==="grid"}];return(0,ra.jsxs)(ra.Fragment,{children:[(0,ra.jsx)(Ws.BlockControls,{children:(0,ra.jsx)(lS.ToolbarGroup,{controls:G})}),(0,ra.jsx)("ul",{...j,children:O&&O.map($=>(0,ra.jsxs)(Ws.BlockContextProvider,{value:$,children:[$.postId===(N||O[0]?.postId)?(0,ra.jsx)(NBe,{classList:$.classList}):null,(0,ra.jsx)(LBe,{blocks:R,blockContextId:$.postId,classList:$.classList,setActiveBlockContextId:E,isHidden:$.postId===(N||O[0]?.postId)})]},$.postId))})]})}var zde=a(I(),1),Hde=a(y(),1);function jde(){return(0,Hde.jsx)(zde.InnerBlocks.Content,{})}var{name:Ude}=sS,RBe=[["core/post-title"],["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],["core/post-excerpt"]],Wde={icon:hm,template:RBe,edit:Vde,save:jde},DBe=()=>D({name:Ude,metadata:sS,settings:Wde});var iF={};J(iF,{init:()=>zBe,metadata:()=>cS,name:()=>rpe,settings:()=>ope});var tpe=a(Kd(),1);var cS={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},shadow:!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 Yu=a(I(),1),uS=a(te(),1),dS=a(F(),1),Kde=a(H(),1),Yde=a($o(),1),Vp=a(L(),1),Qde=a(ae(),1);var Gde=a(ae(),1),$de=a(H(),1),OBe=[];function qde({postId:e,term:t}){let{slug:r}=t;return(0,$de.useSelect)(o=>{if(!t?.visibility?.publicly_queryable||!e)return{postTerms:OBe,isLoading:!1,hasPostTerms:!1};let{getEntityRecords:i,isResolving:s}=o(Gde.store),l=["taxonomy",r,{post:e,per_page:-1,context:"view"}],c=i(...l);return{postTerms:c,isLoading:s("getEntityRecords",l),hasPostTerms:!!c?.length}},[e,t?.visibility?.publicly_queryable,r])}var oa=a(y(),1),Zde=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];function Xde({attributes:e,clientId:t,context:r,isSelected:o,setAttributes:n,insertBlocksAfter:i}){let{term:s,separator:l,prefix:c,suffix:u}=e,{postId:d,postType:p}=r,m=(0,Kde.useSelect)(w=>{if(!s)return{};let{getTaxonomy:x}=w(Qde.store),k=x(s);return k?.visibility?.publicly_queryable?k:{}},[s]),{postTerms:f,hasPostTerms:g,isLoading:h}=qde({postId:d,term:m}),b=d&&p,_=(0,Yu.useBlockDisplayInformation)(t),v=(0,Yu.useBlockProps)({className:s&&`taxonomy-${s}`});return(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.jsx)(Yu.InspectorControls,{group:"advanced",children:(0,oa.jsx)(dS.TextControl,{autoComplete:"off",label:(0,Vp.__)("Separator"),value:l||"",onChange:w=>{n({separator:w})},help:(0,Vp.__)("Enter character(s) used to separate terms.")})}),(0,oa.jsxs)("div",{...v,children:[h&&b&&(0,oa.jsx)(dS.Spinner,{}),!h&&(o||c)&&(0,oa.jsx)(Yu.RichText,{identifier:"prefix",allowedFormats:Zde,className:"wp-block-post-terms__prefix","aria-label":(0,Vp.__)("Prefix"),placeholder:(0,Vp.__)("Prefix")+" ",value:c,onChange:w=>n({prefix:w}),tagName:"span"}),(!b||!s)&&(0,oa.jsx)("span",{children:_.title}),b&&!h&&g&&f.map(w=>(0,oa.jsx)("a",{href:w.link,onClick:x=>x.preventDefault(),rel:"tag",children:(0,Yde.decodeEntities)(w.name)},w.id)).reduce((w,x)=>(0,oa.jsxs)(oa.Fragment,{children:[w,(0,oa.jsx)("span",{className:"wp-block-post-terms__separator",children:l||" "}),x]})),b&&!h&&!g&&(m?.labels?.no_terms||(0,Vp.__)("Term items not found.")),!h&&(o||u)&&(0,oa.jsx)(Yu.RichText,{identifier:"suffix",allowedFormats:Zde,className:"wp-block-post-terms__suffix","aria-label":(0,Vp.__)("Suffix"),placeholder:" "+(0,Vp.__)("Suffix"),value:u,onChange:w=>n({suffix:w}),tagName:"span",__unstableOnSplitAtEnd:i?()=>i((0,uS.createBlock)((0,uS.getDefaultBlockName)())):void 0})]})]})}var FBe={category:nh,post_tag:SI};function Jde(e,t){if(t!=="core/post-terms")return e;let r=e.variations.map(o=>({...o,icon:FBe[o.name]??nh}));return{...e,variations:r}}var VBe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},epe=[VBe];var{name:rpe}=cS,ope={icon:nh,edit:Xde,deprecated:epe},zBe=()=>((0,tpe.addFilter)("blocks.registerBlockType","core/template-part",Jde),D({name:rpe,metadata:cS,settings:ope}));var sF={};J(sF,{init:()=>GBe,metadata:()=>pS,name:()=>ppe,settings:()=>mpe});var pS={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},html:!1,shadow:!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}}};var na=a(L(),1),ipe=a(W(),1),mS=a(I(),1),x0=a(F(),1),spe=a(te(),1),fS=a(ae(),1),lpe=a(ape(),1);var Zc=a(y(),1);function jBe({attributes:e,setAttributes:t,context:r}){let{displayAsRange:o,displayMode:n,averageReadingSpeed:i}=e,{postId:s,postType:l}=r,c=ee(),[u]=(0,fS.useEntityProp)("postType",l,"content",s),[d]=(0,fS.useEntityBlockEditor)("postType",l,{id:s}),p=(0,ipe.useMemo)(()=>{let f;u instanceof Function?f=u({blocks:d}):d?f=(0,spe.__unstableSerializeAndClean)(d):f=u;let g=(0,na._x)("words","Word count type. Do not translate!"),h=(0,lpe.count)(f||"",g);if(n==="time"){if(o){let _=Math.max(1,Math.round(h/i*1.2)),v=Math.max(1,Math.round(h/i*.8));v===_&&(_=_+1);let w=(0,na._x)("%1$s\u2013%2$s minutes","Range of minutes to read");return(0,na.sprintf)(w,v,_)}let b=Math.max(1,Math.round(h/i));return(0,na.sprintf)((0,na._n)("%s minute","%s minutes",b),b)}if(n==="words")return g==="words"?(0,na.sprintf)((0,na._n)("%s word","%s words",h),h.toLocaleString()):(0,na.sprintf)((0,na._n)("%s character","%s characters",h),h.toLocaleString())},[u,d,o,n,i]),m=(0,mS.useBlockProps)();return(0,Zc.jsxs)(Zc.Fragment,{children:[n==="time"&&(0,Zc.jsx)(mS.InspectorControls,{children:(0,Zc.jsx)(x0.__experimentalToolsPanel,{label:(0,na.__)("Settings"),resetAll:()=>{t({displayAsRange:!0})},dropdownMenuProps:c,children:(0,Zc.jsx)(x0.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,na._x)("Display as range","Turns reading time range display on or off"),hasValue:()=>!o,onDeselect:()=>{t({displayAsRange:!0})},children:(0,Zc.jsx)(x0.ToggleControl,{label:(0,na.__)("Display as range"),checked:!!o,onChange:()=>t({displayAsRange:!o})})})})}),(0,Zc.jsx)("div",{...m,children:p})]})}var cpe=jBe;var Tx=a(L(),1);var UBe=[{name:"time-to-read",title:(0,Tx.__)("Time to Read"),description:(0,Tx.__)("Show minutes required to finish reading the post."),attributes:{displayMode:"time"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="time",icon:g_,isDefault:!0},{name:"word-count",title:(0,Tx.__)("Word Count"),description:(0,Tx.__)("Show the number of words in the post."),attributes:{displayMode:"words"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="words",icon:CN}],upe=UBe;var WBe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},dpe=[WBe];var{name:ppe}=pS,mpe={icon:g_,edit:cpe,variations:upe,example:{},deprecated:dpe},GBe=()=>D({name:ppe,metadata:pS,settings:mpe});var lF={};J(lF,{init:()=>KBe,metadata:()=>gS,name:()=>ype,settings:()=>vpe});var gS={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},shadow:!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 us=a(I(),1),cs=a(F(),1),gi=a(L(),1),Ex=a(ae(),1),fpe=a(H(),1),gpe=a(W(),1);var cr=a(y(),1);function hpe({attributes:{level:e,levelOptions:t,isLink:r,rel:o,linkTarget:n,placeholder:i},setAttributes:s,context:{postType:l,postId:c,queryId:u}}){let d=e===0?"p":`h${e}`,p=Number.isFinite(u),m=(0,fpe.useSelect)(k=>p?!1:k(Ex.store).canUser("update",{kind:"postType",name:l,id:c}),[p,l,c]),[f="",g,h]=(0,Ex.useEntityProp)("postType",l,"title",c),[b]=(0,Ex.useEntityProp)("postType",l,"link",c),_=(0,us.useBlockProps)(),v=(0,us.useBlockEditingMode)(),w=ee(),x=(0,cr.jsx)(d,{..._,children:i||(0,gi.__)("Title")});return l&&c&&(x=m?(0,cr.jsx)(us.PlainText,{tagName:d,placeholder:(0,gi.__)("(no title)"),value:f,onChange:g,__experimentalVersion:2,disableLineBreaks:!0,..._}):(0,cr.jsx)(d,{..._,dangerouslySetInnerHTML:{__html:h?.rendered||(0,gi.__)("(no title)")}})),r&&l&&c&&(x=m?(0,cr.jsx)(d,{..._,children:(0,cr.jsx)(us.PlainText,{tagName:"a",href:b,target:n,rel:o,placeholder:f.length?null:(0,gi.__)("(no title)"),value:f,onChange:g,__experimentalVersion:2,disableLineBreaks:!0})}):(0,cr.jsx)(d,{..._,children:(0,cr.jsx)("a",{href:b,target:n,rel:o,onClick:k=>k.preventDefault(),dangerouslySetInnerHTML:{__html:h?.rendered||(0,gi.__)("(no title)")}})})),(0,cr.jsxs)(cr.Fragment,{children:[v==="default"&&(0,cr.jsxs)(cr.Fragment,{children:[(0,cr.jsx)(us.BlockControls,{group:"block",children:(0,cr.jsx)(us.HeadingLevelDropdown,{value:e,options:t,onChange:k=>s({level:k})})}),(0,cr.jsx)(us.InspectorControls,{children:(0,cr.jsxs)(cs.__experimentalToolsPanel,{label:(0,gi.__)("Settings"),resetAll:()=>{s({rel:"",linkTarget:"_self",isLink:!1})},dropdownMenuProps:w,children:[(0,cr.jsx)(cs.__experimentalToolsPanelItem,{label:(0,gi.__)("Make title a link"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>s({isLink:!1}),children:(0,cr.jsx)(cs.ToggleControl,{label:(0,gi.__)("Make title a link"),onChange:()=>s({isLink:!r}),checked:r})}),r&&(0,cr.jsxs)(cr.Fragment,{children:[(0,cr.jsx)(cs.__experimentalToolsPanelItem,{label:(0,gi.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>n==="_blank",onDeselect:()=>s({linkTarget:"_self"}),children:(0,cr.jsx)(cs.ToggleControl,{label:(0,gi.__)("Open in new tab"),onChange:k=>s({linkTarget:k?"_blank":"_self"}),checked:n==="_blank"})}),(0,cr.jsx)(cs.__experimentalToolsPanelItem,{label:(0,gi.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>s({rel:""}),children:(0,cr.jsx)(cs.TextControl,{label:(0,gi.__)("Link relation"),help:(0,gpe.createInterpolateElement)((0,gi.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,cr.jsx)(cs.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:o,onChange:k=>s({rel:k})})})]})]})})]}),x]})}var qBe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},ZBe={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:or,isEligible({style:e}){return e?.typography?.fontFamily}},bpe=[qBe,ZBe];var{name:ype}=gS,vpe={icon:ml,edit:hpe,deprecated:bpe},KBe=()=>D({name:ype,metadata:gS,settings:vpe});var dF={};J(dF,{init:()=>XBe,metadata:()=>yS,name:()=>Spe,settings:()=>Tpe});var Cpe=a(L(),1);var cF=a(L(),1),hS=a(I(),1),bS=a(te(),1),_pe=a(y(),1);function xpe({attributes:e,mergeBlocks:t,setAttributes:r,onRemove:o,insertBlocksAfter:n,style:i}){let{content:s}=e,l=(0,hS.useBlockProps)({style:i});return(0,_pe.jsx)(hS.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:s,onChange:c=>{r({content:c})},onRemove:o,"aria-label":(0,cF.__)("Preformatted text"),placeholder:(0,cF.__)("Write preformatted text\u2026"),onMerge:t,...l,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:n?()=>n((0,bS.createBlock)((0,bS.getDefaultBlockName)())):void 0})}var yS={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!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 vS=a(I(),1),uF=a(y(),1);function kpe({attributes:e}){let{content:t}=e;return(0,uF.jsx)("pre",{...vS.useBlockProps.save(),children:(0,uF.jsx)(vS.RichText.Content,{value:t})})}var Px=a(te(),1),QBe={from:[{type:"block",blocks:["core/code","core/paragraph","core/verse"],transform:({content:e,anchor:t})=>(0,Px.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,Px.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>(0,Px.createBlock)("core/code",e)},{type:"block",blocks:["core/verse"],transform:e=>(0,Px.createBlock)("core/verse",e)}]},wpe=QBe;var{name:Spe}=yS,Tpe={icon:TI,example:{attributes:{content:(0,Cpe.__)(`EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)
139 Window, very small in the distance, illuminated.
140 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:wpe,edit:xpe,save:kpe,merge(e,t){return{content:e.content+`
141
142 `+t.content}}},XBe=()=>D({name:Spe,metadata:yS,settings:Tpe});var mF={};J(mF,{init:()=>cIe,metadata:()=>xS,name:()=>Dpe,settings:()=>Ape});var pF=a(L(),1);var ut=a(I(),1),Ppe=a(H(),1);var tg="is-style-solid-color";var Jt=a(y(),1),Bx={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 Epe(e){if(!e)return;let t=e.match(/border-color:([^;]+)[;]?/);if(t&&t[1])return t[1]}function rg(e){e=e||"<p></p>";let r=`</p>${e}<p>`.split("</p><p>");return r.shift(),r.pop(),r.join("<br>")}var JBe={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,n=!ut.RichText.isEmpty(r);return(0,Jt.jsx)("figure",{...ut.useBlockProps.save({className:T({[`has-text-align-${t}`]:t})}),children:(0,Jt.jsxs)("blockquote",{children:[(0,Jt.jsx)(ut.RichText.Content,{tagName:"p",value:o}),n&&(0,Jt.jsx)(ut.RichText.Content,{tagName:"cite",value:r})]})})},isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},migrate:we},eIe={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],color:{gradients:!0,background:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalStyle:{typography:{fontSize:"1.5em",lineHeight:"1.6"}}},save({attributes:e}){let{textAlign:t,citation:r,value:o}=e,n=!ut.RichText.isEmpty(r);return(0,Jt.jsx)("figure",{...ut.useBlockProps.save({className:T({[`has-text-align-${t}`]:t})}),children:(0,Jt.jsxs)("blockquote",{children:[(0,Jt.jsx)(ut.RichText.Content,{value:o,multiline:!0}),n&&(0,Jt.jsx)(ut.RichText.Content,{tagName:"cite",value:r})]})})},migrate({value:e,...t}){return we({value:rg(e),...t})}},tIe={attributes:{...Bx},supports:{anchor:!0,align:["left","right","wide","full"],color:{gradients:!0,background:!0,link:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0}},save({attributes:e}){let{mainColor:t,customMainColor:r,customTextColor:o,textColor:n,value:i,citation:s,className:l}=e,c=l?.includes(tg),u,d;if(c){let g=(0,ut.getColorClassName)("background-color",t);u=T({"has-background":g||r,[g]:g}),d={backgroundColor:g?void 0:r}}else r&&(d={borderColor:r});let p=(0,ut.getColorClassName)("color",n),m=T({"has-text-color":n||o,[p]:p}),f=p?void 0:{color:o};return(0,Jt.jsx)("figure",{...ut.useBlockProps.save({className:u,style:d}),children:(0,Jt.jsxs)("blockquote",{className:m,style:f,children:[(0,Jt.jsx)(ut.RichText.Content,{value:i,multiline:!0}),!ut.RichText.isEmpty(s)&&(0,Jt.jsx)(ut.RichText.Content,{tagName:"cite",value:s})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:o,customTextColor:n,...i}){let s=t?.includes(tg),l;return o&&(s?l={color:{background:o}}:l={border:{color:o}}),n&&l&&(l.color={...l.color,text:n}),we({value:rg(e),className:t,backgroundColor:s?r:void 0,borderColor:s?void 0:r,textAlign:s?"left":void 0,...i,style:l})}},rIe={attributes:{...Bx,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){let{mainColor:t,customMainColor:r,textColor:o,customTextColor:n,value:i,citation:s,className:l,figureStyle:c}=e,u=l?.includes(tg),d,p;if(u){let h=(0,ut.getColorClassName)("background-color",t);d=T({"has-background":h||r,[h]:h}),p={backgroundColor:h?void 0:r}}else r?p={borderColor:r}:t&&(p={borderColor:Epe(c)});let m=(0,ut.getColorClassName)("color",o),f=(o||n)&&T("has-text-color",{[m]:m});return(0,Jt.jsx)("figure",{className:d,style:p,children:(0,Jt.jsxs)("blockquote",{className:f,style:m?void 0:{color:n},children:[(0,Jt.jsx)(ut.RichText.Content,{value:i,multiline:!0}),!ut.RichText.isEmpty(s)&&(0,Jt.jsx)(ut.RichText.Content,{tagName:"cite",value:s})]})})},migrate({value:e,className:t,figureStyle:r,mainColor:o,customMainColor:n,customTextColor:i,...s}){let l=t?.includes(tg),c;if(n&&(l?c={color:{background:n}}:c={border:{color:n}}),i&&c&&(c.color={...c.color,text:i}),!l&&o&&r){let u=Epe(r);if(u)return{value:rg(e),...s,className:t,style:{border:{color:u}}}}return we({value:rg(e),className:t,backgroundColor:l?o:void 0,borderColor:l?void 0:o,textAlign:l?"left":void 0,...s,style:c})}},oIe={attributes:Bx,save({attributes:e}){let{mainColor:t,customMainColor:r,textColor:o,customTextColor:n,value:i,citation:s,className:l}=e,c=l?.includes(tg),u,d;if(c)u=(0,ut.getColorClassName)("background-color",t),u||(d={backgroundColor:r});else if(r)d={borderColor:r};else if(t){let g=(0,Ppe.select)(ut.store).getSettings().colors??[];d={borderColor:(0,ut.getColorObjectByAttributeValues)(g,t).color}}let p=(0,ut.getColorClassName)("color",o),m=o||n?T("has-text-color",{[p]:p}):void 0;return(0,Jt.jsx)("figure",{className:u,style:d,children:(0,Jt.jsxs)("blockquote",{className:m,style:p?void 0:{color:n},children:[(0,Jt.jsx)(ut.RichText.Content,{value:i,multiline:!0}),!ut.RichText.isEmpty(s)&&(0,Jt.jsx)(ut.RichText.Content,{tagName:"cite",value:s})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:o,customTextColor:n,...i}){let s=t?.includes(tg),l={};return o&&(s?l={color:{background:o}}:l={border:{color:o}}),n&&l&&(l.color={...l.color,text:n}),we({value:rg(e),className:t,backgroundColor:s?r:void 0,borderColor:s?void 0:r,textAlign:s?"left":void 0,...i,style:l})}},nIe={attributes:{...Bx},save({attributes:e}){let{value:t,citation:r}=e;return(0,Jt.jsxs)("blockquote",{children:[(0,Jt.jsx)(ut.RichText.Content,{value:t,multiline:!0}),!ut.RichText.isEmpty(r)&&(0,Jt.jsx)(ut.RichText.Content,{tagName:"cite",value:r})]})},migrate({value:e,...t}){return{value:rg(e),...t}}},aIe={attributes:{...Bx,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,Jt.jsxs)("blockquote",{className:`align${o}`,children:[(0,Jt.jsx)(ut.RichText.Content,{value:t,multiline:!0}),!ut.RichText.isEmpty(r)&&(0,Jt.jsx)(ut.RichText.Content,{tagName:"footer",value:r})]})},migrate({value:e,...t}){return{value:rg(e),...t}}},Bpe=[JBe,eIe,tIe,rIe,oIe,nIe,aIe];var Ix=a(L(),1),k0=a(I(),1),_S=a(te(),1);var Ipe="figure";var Npe="blockquote";var Qu=a(y(),1);function iIe(e){let{attributes:t,setAttributes:r,isSelected:o,insertBlocksAfter:n}=e;Pt(e);let{citation:i,value:s}=t,l=(0,k0.useBlockProps)(),c=!k0.RichText.isEmpty(i)||o;return(0,Qu.jsx)(Qu.Fragment,{children:(0,Qu.jsx)(Ipe,{...l,children:(0,Qu.jsxs)(Npe,{children:[(0,Qu.jsx)(k0.RichText,{identifier:"value",tagName:"p",value:s,onChange:u=>r({value:u}),"aria-label":(0,Ix.__)("Pullquote text"),placeholder:(0,Ix.__)("Add quote")}),c&&(0,Qu.jsx)(k0.RichText,{identifier:"citation",tagName:"cite",style:{display:"block"},value:i,"aria-label":(0,Ix.__)("Pullquote citation text"),placeholder:(0,Ix.__)("Add citation"),onChange:u=>r({citation:u}),className:"wp-block-pullquote__citation",__unstableOnSplitAtEnd:n?()=>n((0,_S.createBlock)((0,_S.getDefaultBlockName)())):void 0})]})})})}var Mpe=iIe;var xS={$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},shadow:!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 w0=a(I(),1),C0=a(y(),1);function Lpe({attributes:e}){let{citation:t,value:r}=e,o=!w0.RichText.isEmpty(t);return(0,C0.jsx)("figure",{...w0.useBlockProps.save(),children:(0,C0.jsxs)("blockquote",{children:[(0,C0.jsx)(w0.RichText.Content,{tagName:"p",value:r}),o&&(0,C0.jsx)(w0.RichText.Content,{tagName:"cite",value:t})]})})}var Xu=a(te(),1),S0=a(vl(),1),lIe={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,Xu.createBlock)("core/pullquote",{value:(0,S0.toHTMLString)({value:(0,S0.join)(e.map(({content:t})=>(0,S0.create)({html:t})),`
143 `)}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>(0,Xu.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,Xu.createBlock)("core/paragraph",{content:e})),t&&r.push((0,Xu.createBlock)("core/paragraph",{content:t})),r.length===0?(0,Xu.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,Xu.createBlock)("core/heading",{content:t});let r=(0,Xu.createBlock)("core/heading",{content:e});return t?[r,(0,Xu.createBlock)("core/heading",{content:t})]:r}}]},Rpe=lIe;var{name:Dpe}=xS,Ape={icon:MI,example:{attributes:{value:(0,pF.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,pF.__)("Matt Mullenweg")}},transforms:Rpe,edit:Mpe,save:Lpe,deprecated:Bpe},cIe=()=>D({name:Dpe,metadata:xS,settings:Ape});var IF={};J(IF,{init:()=>VIe,metadata:()=>kS,name:()=>lfe,settings:()=>cfe});var kS={$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,spacing:{blockGap:!0},interactivity:!0},editorStyle:"wp-block-query-editor"};var qme=a(H(),1),Zme=a(W(),1),Kme=a(I(),1);var Dx=a(H(),1),jme=a(_e(),1),N0=a(W(),1),qs=a(I(),1),M0=a(L(),1),Ume=a(ae(),1),Wme=a(br(),1);var qpe=a(F(),1),ig=a(L(),1);var Kc=a(H(),1),ng=a(W(),1),Nx=a(ae(),1),wS=a(I(),1),Ope=a($o(),1),og=a(L(),1),ag=a(te(),1),Mx=e=>{let t=e?.reduce((r,o)=>{let{mapById:n,mapByName:i,names:s}=r;return n[o.id]=o,i[o.name]=o,s.push(o.name),r},{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},dIe=(e,t)=>{let r=t.split("."),o=e;return r.forEach(n=>{o=o?.[n]}),o},fF=(e,t)=>(e||[]).map(r=>({...r,name:(0,Ope.decodeEntities)(dIe(r,t))})),Fpe=()=>{let e=(0,Kc.useSelect)(n=>{let{getPostTypes:i}=n(Nx.store),s=["attachment"];return i({per_page:-1})?.filter(({viewable:c,slug:u})=>c&&!s.includes(u))},[]),t=(0,ng.useMemo)(()=>{if(e?.length)return e.reduce((n,i)=>(n[i.slug]=i.taxonomies,n),{})},[e]),r=(0,ng.useMemo)(()=>(e||[]).map(({labels:n,slug:i})=>({label:n.singular_name,value:i})),[e]),o=(0,ng.useMemo)(()=>e?.length?e.reduce((n,i)=>(n[i.slug]=i.supports?.["post-formats"]||!1,n),{}):{},[e]);return{postTypesTaxonomiesMap:t,postTypesSelectOptions:r,postTypeFormatSupportMap:o}},CS=e=>{let t=(0,Kc.useSelect)(r=>{let{getTaxonomies:o,getPostType:n}=r(Nx.store);return n(e)?.taxonomies?.length>0?o({type:e,per_page:-1}):[]},[e]);return(0,ng.useMemo)(()=>t?.filter(({visibility:r})=>!!r?.publicly_queryable),[t])};function Vpe(e){return(0,Kc.useSelect)(t=>{let r=t(Nx.store).getPostType(e);return r?.viewable&&r?.hierarchical},[e])}function zpe(e){let t=(0,Kc.useSelect)(r=>!!r(Nx.store).getPostType(e)?.supports?.["page-attributes"],[e]);return(0,ng.useMemo)(()=>{let r=[{label:(0,og.__)("Newest to oldest"),value:"date/desc"},{label:(0,og.__)("Oldest to newest"),value:"date/asc"},{label:(0,og.__)("A \u2192 Z"),value:"title/asc"},{label:(0,og.__)("Z \u2192 A"),value:"title/desc"}];return t&&r.push({label:(0,og.__)("Ascending by order"),value:"menu_order/asc"},{label:(0,og.__)("Descending by order"),value:"menu_order/desc"}),r},[t])}function Hpe(e){return(0,Kc.useSelect)(t=>t(ag.store).getActiveBlockVariation("core/query",e)?.allowedControls,[e])}function hi(e,t){return e?e.includes(t):!0}var jpe=(e,t)=>{let{query:{postType:r,inherit:o},namespace:n}=t,i=e.map(c=>(0,ag.cloneBlock)(c)),s=[],l=[...i];for(;l.length>0;){let c=l.shift();c.name==="core/query"&&(c.attributes.query={...c.attributes.query,postType:r,inherit:o},n&&(c.attributes.namespace=n),s.push(c.clientId)),c.innerBlocks?.forEach(u=>{l.push(u)})}return{newBlocks:i,queryClientIds:s}};function Upe(e,t){return(0,Kc.useSelect)(r=>{let o=r(ag.store).getActiveBlockVariation("core/query",t)?.name;if(!o)return"core/query";let{getBlockRootClientId:n,getPatternsByBlockTypes:i}=r(wS.store),s=n(e);return i(`core/query/${o}`,s).length>0?`core/query/${o}`:"core/query"},[e,t])}function Wpe(e){let{activeVariationName:t,blockVariations:r}=(0,Kc.useSelect)(n=>{let{getActiveBlockVariation:i,getBlockVariations:s}=n(ag.store);return{activeVariationName:i("core/query",e)?.name,blockVariations:s("core/query","block")}},[e]);return(0,ng.useMemo)(()=>{let n=s=>!s.attributes?.namespace;if(!t)return r.filter(n);let i=r.filter(s=>s.attributes?.namespace?.includes(t));return i.length?i:r.filter(n)},[t,r])}var Gpe=(e,t)=>(0,Kc.useSelect)(r=>{let{getBlockRootClientId:o,getPatternsByBlockTypes:n}=r(wS.store),i=o(e);return n(t,i)},[t,e]),SS=e=>(0,Kc.useSelect)(t=>{let{getClientIdsOfDescendants:r,getBlockName:o}=t(wS.store),{getBlockSupport:n,getBlockType:i}=t(ag.store),s=new Set;return r(e).forEach(l=>{let c=o(l),u=Object.is(n(c,"interactivity"),!0),d=n(c,"interactivity.clientNavigation");!u&&!d&&s.add(i(c)?.title||c)}),[...s]},[e]);function $pe(e){if(!e)return{isSingular:!0};let t=!1,r=e==="wp"?"custom":e,o=["404","blank","single","page","custom"],n=e.includes("-")?e.split("-",1)[0]:e;return e.includes("-")&&e.split("-").slice(1).join("-")&&(r=n),t=o.includes(r),{isSingular:t,templateType:r}}var Lx=a(y(),1);function Zpe({enhancedPagination:e,setAttributes:t,clientId:r}){let o=SS(r),n=(0,ig.__)("Reload the full page\u2014instead of just the posts list\u2014when visitors navigate between pages.");return o.length&&(n=(0,ig.sprintf)((0,ig.__)("Some blocks aren't supported: %s. Remove them to change this setting."),o.join((0,ig.__)(", ")))),(0,Lx.jsx)(Lx.Fragment,{children:(0,Lx.jsx)(qpe.ToggleControl,{label:(0,ig.__)("Reload full page"),help:n,checked:!e,disabled:!!o.length,onChange:i=>{t({enhancedPagination:!i})}})})}var kt=a(F(),1),_F=a(H(),1),xF=a(ae(),1),It=a(L(),1),Ome=a(_e(),1),PS=a(W(),1);var Kpe=a(F(),1),T0=a(L(),1),Ype=a(y(),1),pIe=[{label:(0,T0.__)("Newest to oldest"),value:"date/desc"},{label:(0,T0.__)("Oldest to newest"),value:"date/asc"},{label:(0,T0.__)("A \u2192 Z"),value:"title/asc"},{label:(0,T0.__)("Z \u2192 A"),value:"title/desc"}];function mIe({order:e,orderBy:t,orderByOptions:r=pIe,onChange:o}){return(0,Ype.jsx)(Kpe.SelectControl,{label:(0,T0.__)("Order by"),value:`${t}/${e}`,options:r,onChange:n=>{let[i,s]=n.split("/");o({order:s,orderBy:i})}})}var Qpe=mIe;var Xpe=a(L(),1),Jpe=a(F(),1),eme=a(H(),1),tme=a(ae(),1);var rme=a(y(),1),fIe={who:"authors",per_page:-1,_fields:"id,name",context:"view"};function gIe({value:e,onChange:t}){let r=(0,eme.useSelect)(c=>{let{getUsers:u}=c(tme.store);return u(fIe)},[]);if(!r)return null;let o=Mx(r),i=(e?e.toString().split(","):[]).reduce((c,u)=>{let d=o.mapById[u];return d&&c.push({id:u,value:d.name}),c},[]),s=(c,u)=>{let d=u?.id||c[u]?.id;if(d)return d},l=c=>{let u=Array.from(c.reduce((d,p)=>{let m=s(o.mapByName,p);return m&&d.add(m),d},new Set));t({author:u.join(",")})};return(0,rme.jsx)(Jpe.FormTokenField,{label:(0,Xpe.__)("Authors"),value:i,suggestions:o.names,onChange:l,help:""})}var ome=gIe;var ame=a(L(),1),ime=a(F(),1),gF=a(H(),1),hF=a(ae(),1),Ju=a(W(),1),sme=a(_e(),1);var lme=a(y(),1),sg=[],nme={order:"asc",_fields:"id,title",context:"view"};function hIe({parents:e,postType:t,onChange:r}){let[o,n]=(0,Ju.useState)(""),[i,s]=(0,Ju.useState)(sg),[l,c]=(0,Ju.useState)(sg),u=(0,sme.useDebounce)(n,250),{searchResults:d,searchHasResolved:p}=(0,gF.useSelect)(b=>{if(!o)return{searchResults:sg,searchHasResolved:!0};let{getEntityRecords:_,hasFinishedResolution:v}=b(hF.store),w=["postType",t,{...nme,search:o,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:_(...w),searchHasResolved:v("getEntityRecords",w)}},[o,t,e]),m=(0,gF.useSelect)(b=>{if(!e?.length)return sg;let{getEntityRecords:_}=b(hF.store);return _("postType",t,{...nme,include:e,per_page:e.length})},[e,t]);(0,Ju.useEffect)(()=>{if(e?.length||s(sg),!m?.length)return;let b=Mx(fF(m,"title.rendered")),_=e.reduce((v,w)=>{let x=b.mapById[w];return x&&v.push({id:w,value:x.name}),v},[]);s(_)},[e,m]);let f=(0,Ju.useMemo)(()=>d?.length?Mx(fF(d,"title.rendered")):sg,[d]);(0,Ju.useEffect)(()=>{p&&c(f.names)},[f.names,p]);let g=(b,_)=>{let v=_?.id||b?.[_]?.id;if(v)return v},h=b=>{let _=Array.from(b.reduce((v,w)=>{let x=g(f.mapByName,w);return x&&v.add(x),v},new Set));c(sg),r({parents:_})};return(0,lme.jsx)(ime.FormTokenField,{label:(0,ame.__)("Parents"),value:i,onInputChange:u,suggestions:l,onChange:h,help:""})}var cme=hIe;var TS=a(F(),1),bF=a(H(),1),yF=a(ae(),1),ed=a(W(),1),pme=a(_e(),1),mme=a($o(),1),ES=a(L(),1);var zp=a(y(),1),E0=[],ume={order:"asc",_fields:"id,name",context:"view"},bIe=(e,t)=>{let r=t?.id||e?.find(n=>n.name===t)?.id;if(r)return r;let o=t.toLocaleLowerCase();return e?.find(n=>n.name.toLocaleLowerCase()===o)?.id};function fme({onChange:e,query:t}){let{postType:r,taxQuery:o}=t,n=CS(r);return n?.length?(0,zp.jsx)(TS.__experimentalVStack,{spacing:4,children:n.map(i=>{let s=o?.include?.[i.slug]||[],l=o?.exclude?.[i.slug]||[],c=(u,d)=>{let p={...o?.[d],[i.slug]:u};u.length||delete p[i.slug];let m={...o,[d]:Object.keys(p).length?p:void 0};e({taxQuery:Object.values(m).every(f=>!f)?void 0:m})};return(0,zp.jsxs)(ed.Fragment,{children:[(0,zp.jsx)(dme,{taxonomy:i,termIds:s,oppositeTermIds:l,onChange:u=>c(u,"include"),label:i.name}),(0,zp.jsx)(dme,{taxonomy:i,termIds:l,oppositeTermIds:s,onChange:u=>c(u,"exclude"),label:(0,ES.sprintf)((0,ES.__)("Exclude: %s"),i.name)})]},i.slug)})}):null}function dme({taxonomy:e,termIds:t,oppositeTermIds:r,onChange:o,label:n}){let[i,s]=(0,ed.useState)(""),[l,c]=(0,ed.useState)(E0),[u,d]=(0,ed.useState)(E0),p=(0,pme.useDebounce)(s,250),{searchResults:m,searchHasResolved:f}=(0,bF.useSelect)(b=>{if(!i)return{searchResults:E0,searchHasResolved:!0};let{getEntityRecords:_,hasFinishedResolution:v}=b(yF.store),w=[...t,...r],x=["taxonomy",e.slug,{...ume,search:i,orderby:"name",exclude:w,per_page:20}];return{searchResults:_(...x),searchHasResolved:v("getEntityRecords",x)}},[i,e.slug,t,r]),g=(0,bF.useSelect)(b=>{if(!t?.length)return E0;let{getEntityRecords:_}=b(yF.store);return _("taxonomy",e.slug,{...ume,include:t,per_page:t.length})},[e.slug,t]);return(0,ed.useEffect)(()=>{if(t?.length||c(E0),!g?.length)return;let b=t.reduce((_,v)=>{let w=g.find(x=>x.id===v);return w&&_.push({id:v,value:w.name}),_},[]);c(b)},[t,g]),(0,ed.useEffect)(()=>{f&&d(m.map(b=>b.name))},[m,f]),(0,zp.jsx)("div",{className:"block-library-query-inspector__taxonomy-control",children:(0,zp.jsx)(TS.FormTokenField,{label:n,value:l,onInputChange:p,suggestions:u,displayTransform:mme.decodeEntities,onChange:b=>{let _=new Set;for(let v of b){let w=bIe(m,v);w&&_.add(w)}d(E0),o(Array.from(_))},help:""})})}var gme=a(F(),1),hme=a(H(),1),bme=a(ae(),1),Gs=a(L(),1),yme=a(y(),1),yIe=[{value:"aside",label:(0,Gs.__)("Aside")},{value:"audio",label:(0,Gs.__)("Audio")},{value:"chat",label:(0,Gs.__)("Chat")},{value:"gallery",label:(0,Gs.__)("Gallery")},{value:"image",label:(0,Gs.__)("Image")},{value:"link",label:(0,Gs.__)("Link")},{value:"quote",label:(0,Gs.__)("Quote")},{value:"standard",label:(0,Gs.__)("Standard")},{value:"status",label:(0,Gs.__)("Status")},{value:"video",label:(0,Gs.__)("Video")}].sort((e,t)=>{let r=e.label.toUpperCase(),o=t.label.toUpperCase();return r<o?-1:r>o?1:0});function vIe(e,t){return e.map(r=>t.find(o=>o.label.toLocaleLowerCase()===r.toLocaleLowerCase())?.value).filter(Boolean)}function vme({onChange:e,query:{format:t}}){let r=Array.isArray(t)?t:[t],{supportedFormats:o}=(0,hme.useSelect)(l=>({supportedFormats:l(bme.store).getThemeSupports().formats}),[]),n=yIe.filter(l=>o.includes(l.value)),i=r.map(l=>n.find(c=>c.value===l)?.label).filter(Boolean),s=n.filter(l=>!r.includes(l.value)).map(l=>l.label);return(0,yme.jsx)(gme.FormTokenField,{label:(0,Gs.__)("Formats"),value:i,suggestions:s,onChange:l=>{e({format:vIe(l,n)})},help:"",__experimentalExpandOnFocus:!0})}var _me=a(F(),1),lg=a(L(),1),xme=a(y(),1),_Ie=[{label:(0,lg.__)("Include"),value:""},{label:(0,lg.__)("Ignore"),value:"ignore"},{label:(0,lg.__)("Exclude"),value:"exclude"},{label:(0,lg.__)("Only"),value:"only"}];function kme({value:e,onChange:t}){return(0,xme.jsx)(_me.SelectControl,{label:(0,lg.__)("Sticky posts"),options:_Ie,value:e,onChange:t,help:(0,lg.__)("Sticky posts always appear first, regardless of their publish date.")})}var Sme=a(F(),1),Tme=a(L(),1),Eme=a(y(),1),wme=1,Cme=100,xIe=({perPage:e,offset:t=0,onChange:r})=>(0,Eme.jsx)(Sme.RangeControl,{label:(0,Tme.__)("Items per page"),min:wme,max:Cme,onChange:o=>{isNaN(o)||o<wme||o>Cme||r({perPage:o,offset:t})},value:parseInt(e,10)}),Pme=xIe;var Ime=a(F(),1),Nme=a(L(),1),Mme=a(y(),1),Bme=0,kIe=100,wIe=({offset:e=0,onChange:t})=>(0,Mme.jsx)(Ime.__experimentalNumberControl,{label:(0,Nme._x)("Offset","Number of posts to skip in a query"),value:e,min:Bme,onChange:r=>{isNaN(r)||r<Bme||r>kIe||t({offset:r})}}),Lme=wIe;var Rme=a(F(),1),vF=a(L(),1),Dme=a(y(),1),CIe=({pages:e,onChange:t})=>(0,Dme.jsx)(Rme.__experimentalNumberControl,{label:(0,vF.__)("Max pages to show"),value:e,min:0,onChange:r=>{isNaN(r)||r<0||t({pages:r})},help:(0,vF.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")}),Ame=CIe;var et=a(y(),1);function Fme(e){let{attributes:t,setQuery:r,isSingular:o,shouldExcludeCurrentPost:n}=e,{query:i}=t,{order:s,orderBy:l,author:c,pages:u,postType:d="post",perPage:p,offset:m,sticky:f,inherit:g,taxQuery:h,parents:b,format:_,excludeCurrent:v}=i,w=Hpe(t),x=d==="post",{postTypesTaxonomiesMap:k,postTypesSelectOptions:C,postTypeFormatSupportMap:S}=Fpe(),P=CS(d),B=Vpe(d),N=ge=>{let Qe={postType:ge},ye=k[ge];if(ye?.length&&h){let de=rr=>Object.entries(rr||{}).reduce((Ft,[gr,Wo])=>(ye.includes(gr)&&(Ft[gr]=Wo),Ft),{}),re={},Pe=de(h.include);Object.keys(Pe).length&&(re.include=Pe);let Se=de(h.exclude);Object.keys(Se).length&&(re.exclude=Se),Qe.taxQuery=Object.keys(re).length?re:void 0}ge!=="post"&&(Qe.sticky=""),Qe.parents=[],S[ge]||(Qe.format=[]),r(Qe)},[E,M]=(0,PS.useState)(i.search),R=(0,PS.useMemo)(()=>(0,Ome.debounce)(ge=>{r({search:ge})},250),[r]),O=zpe(d),j=hi(w,"inherit"),V=!g&&hi(w,"postType"),G=(0,It.__)("Post type"),$=(0,It.__)("Select the type of content to display: posts, pages, or custom post types."),z=!g&&hi(w,"order"),K=!g&&x&&hi(w,"sticky"),q=j||V||z||K,Y=!!P?.length&&hi(w,"taxQuery"),oe=hi(w,"author"),Z=hi(w,"search"),U=hi(w,"parents")&&B,X=S[d],Q=(0,_F.useSelect)(ge=>{if(!X||!hi(w,"format"))return!1;let Qe=ge(xF.store).getThemeSupports();return Qe.formats&&Qe.formats.length>0&&Qe.formats.some(ye=>ye!=="standard")},[w,X]),ie=n&&hi(w,"excludeCurrent"),me=(0,_F.useSelect)(ge=>ge(xF.store).getPostType(d)?.labels?.singular_name,[d]),xe=Y||oe||Z||U||Q||ie,Be=ee(),se=hi(w,"postCount"),he=hi(w,"offset"),ze=hi(w,"pages"),qe=se||he||ze,ce=o&&g;return(0,et.jsxs)(et.Fragment,{children:[q&&(0,et.jsxs)(kt.__experimentalToolsPanel,{label:(0,It.__)("Settings"),resetAll:()=>{r({postType:"post",order:"desc",orderBy:"date",sticky:"",inherit:!0})},dropdownMenuProps:Be,children:[j&&(0,et.jsx)(kt.__experimentalToolsPanelItem,{hasValue:()=>!g,label:(0,It.__)("Query type"),onDeselect:()=>r({inherit:!0}),isShownByDefault:!0,children:(0,et.jsxs)(kt.__experimentalVStack,{spacing:4,children:[(0,et.jsxs)(kt.__experimentalToggleGroupControl,{label:(0,It.__)("Query type"),isBlock:!0,onChange:ge=>{r({inherit:ge==="default"})},help:g?(0,It.__)("Display a list of posts or custom post types based on the current template."):(0,It.__)("Display a list of posts or custom post types based on specific criteria."),value:g?"default":"custom",children:[(0,et.jsx)(kt.__experimentalToggleGroupControlOption,{value:"default",label:(0,It.__)("Default")}),(0,et.jsx)(kt.__experimentalToggleGroupControlOption,{value:"custom",label:(0,It.__)("Custom")})]}),ce&&(0,et.jsx)(kt.Notice,{status:"warning",isDismissible:!1,children:(0,It.__)("Cannot inherit the current template query when placed inside the singular content (e.g., post, page, 404, blank).")})]})}),V&&(0,et.jsx)(kt.__experimentalToolsPanelItem,{hasValue:()=>d!=="post",label:G,onDeselect:()=>N("post"),isShownByDefault:!0,children:C.length>2?(0,et.jsx)(kt.SelectControl,{options:C,value:d,label:G,onChange:N,help:$}):(0,et.jsx)(kt.__experimentalToggleGroupControl,{isBlock:!0,value:d,label:G,onChange:N,help:$,children:C.map(ge=>(0,et.jsx)(kt.__experimentalToggleGroupControlOption,{value:ge.value,label:ge.label},ge.value))})}),z&&(0,et.jsx)(kt.__experimentalToolsPanelItem,{hasValue:()=>s!=="desc"||l!=="date",label:(0,It.__)("Order by"),onDeselect:()=>r({order:"desc",orderBy:"date"}),isShownByDefault:!0,children:(0,et.jsx)(Qpe,{order:s,orderBy:l,orderByOptions:O,onChange:r})}),K&&(0,et.jsx)(kt.__experimentalToolsPanelItem,{hasValue:()=>!!f,label:(0,It.__)("Sticky posts"),onDeselect:()=>r({sticky:""}),isShownByDefault:!0,children:(0,et.jsx)(kme,{value:f,onChange:ge=>r({sticky:ge})})})]}),!g&&qe&&(0,et.jsxs)(kt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__display",label:(0,It.__)("Display"),resetAll:()=>{r({offset:0,pages:0})},dropdownMenuProps:Be,children:[(0,et.jsx)(kt.__experimentalToolsPanelItem,{label:(0,It.__)("Items per page"),hasValue:()=>p>0,children:(0,et.jsx)(Pme,{perPage:p,offset:m,onChange:r})}),(0,et.jsx)(kt.__experimentalToolsPanelItem,{label:(0,It._x)("Offset","Number of posts to skip in a query"),hasValue:()=>m>0,onDeselect:()=>r({offset:0}),children:(0,et.jsx)(Lme,{offset:m,onChange:r})}),(0,et.jsx)(kt.__experimentalToolsPanelItem,{label:(0,It.__)("Max pages to show"),hasValue:()=>u>0,onDeselect:()=>r({pages:0}),children:(0,et.jsx)(Ame,{pages:u,onChange:r})})]}),!g&&xe&&(0,et.jsxs)(kt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,It.__)("Filters"),resetAll:()=>{r({author:"",parents:[],search:"",taxQuery:null,format:[],excludeCurrent:null}),M("")},dropdownMenuProps:Be,children:[Y&&(0,et.jsx)(kt.__experimentalToolsPanelItem,{label:(0,It.__)("Taxonomies"),hasValue:()=>Object.values(h||{}).some(ge=>Object.values(ge||{}).some(Qe=>!!Qe?.length)),onDeselect:()=>r({taxQuery:null}),children:(0,et.jsx)(fme,{onChange:r,query:i})}),oe&&(0,et.jsx)(kt.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,It.__)("Authors"),onDeselect:()=>r({author:""}),children:(0,et.jsx)(ome,{value:c,onChange:r})}),Z&&(0,et.jsx)(kt.__experimentalToolsPanelItem,{hasValue:()=>!!E,label:(0,It.__)("Search terms"),onDeselect:()=>{r({search:""}),M("")},children:(0,et.jsx)(kt.TextControl,{label:(0,It.__)("Search terms"),help:(0,It.__)("Filter the query by keywords that appear in the content, title, or excerpt."),value:E,onChange:ge=>{R(ge),M(ge)}})}),U&&(0,et.jsx)(kt.__experimentalToolsPanelItem,{hasValue:()=>!!b?.length,label:(0,It.__)("Parents"),onDeselect:()=>r({parents:[]}),children:(0,et.jsx)(cme,{parents:b,postType:d,onChange:r})}),Q&&(0,et.jsx)(kt.__experimentalToolsPanelItem,{hasValue:()=>!!_?.length,label:(0,It.__)("Formats"),onDeselect:()=>r({format:[]}),children:(0,et.jsx)(vme,{onChange:r,query:i})}),ie&&(0,et.jsx)(kt.__experimentalToolsPanelItem,{label:(0,It.__)("Exclude"),hasValue:()=>v!=null,onDeselect:()=>r({excludeCurrent:null}),children:(0,et.jsx)(kt.ToggleControl,{label:(0,It.__)("Exclude current"),help:(0,It.sprintf)((0,It.__)("Exclude the current %s from the query."),me),checked:!!v,onChange:ge=>{r({excludeCurrent:!!ge})}})})]})]})}var I0=a(F(),1),wF=a(L(),1),Hme=a(H(),1),NS=a(I(),1);var P0=a(W(),1),Vme=a(H(),1),IS=a(F(),1),B0=a(I(),1),BS=a(L(),1);var td=a(y(),1);function zme({clientId:e,attributes:t,setIsPatternSelectionModalOpen:r}){return(0,td.jsx)(IS.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,BS.__)("Choose a pattern"),onRequestClose:()=>r(!1),isFullScreen:!0,children:(0,td.jsx)(kF,{clientId:e,attributes:t})})}function Rx(e,t){let r=Upe(e,t),o=Gpe(e,r);return(0,P0.useMemo)(()=>o.filter(i=>i.blocks?.[0]?.name==="core/query"),[o])}function kF({clientId:e,attributes:t,showTitlesAsTooltip:r=!1,showSearch:o=!0}){let[n,i]=(0,P0.useState)(""),{replaceBlock:s,selectBlock:l}=(0,Vme.useDispatch)(B0.store),c=Rx(e,t),u=(0,P0.useMemo)(()=>({previewPostType:t.query.postType}),[t.query.postType]),d=(0,P0.useMemo)(()=>N2(c,n),[c,n]),p=(m,f)=>{let{newBlocks:g,queryClientIds:h}=jpe(f,t);s(e,g),h[0]&&l(h[0])};return(0,td.jsxs)("div",{className:"block-library-query-pattern__selection-content",children:[o&&(0,td.jsx)("div",{className:"block-library-query-pattern__selection-search",children:(0,td.jsx)(IS.SearchControl,{onChange:i,value:n,label:(0,BS.__)("Search"),placeholder:(0,BS.__)("Search")})}),(0,td.jsx)(B0.BlockContextProvider,{value:u,children:(0,td.jsx)(B0.__experimentalBlockPatternsList,{blockPatterns:d,onClickPattern:p,showTitlesAsTooltip:r})})]})}var cg=a(y(),1);function SIe({clientId:e,attributes:t,hasInnerBlocks:r}){if(!Rx(e,t).length)return null;let n=r?(0,wF.__)("Change design"):(0,wF.__)("Choose pattern");return(0,cg.jsx)(NS.BlockControls,{group:"other",children:(0,cg.jsx)(I0.__experimentalDropdownContentWrapper,{children:(0,cg.jsx)(I0.Dropdown,{contentClassName:"block-editor-block-settings-menu__popover",focusOnMount:"firstElement",expandOnMobile:!0,renderToggle:({isOpen:i,onToggle:s})=>(0,cg.jsx)(I0.ToolbarButton,{"aria-haspopup":"true","aria-expanded":i,onClick:s,children:n}),renderContent:()=>(0,cg.jsx)(kF,{clientId:e,attributes:t,showSearch:!1,showTitlesAsTooltip:!0})})})})}function MS(e){return(0,Hme.useSelect)(r=>{let{isLockedBlock:o}=le(r(NS.store));return o(e.clientId)},[e.clientId])?null:(0,cg.jsx)(SIe,{...e})}var $s=a(y(),1),{HTMLElementControl:TIe}=le(qs.privateApis),EIe=3;function CF({attributes:e,setAttributes:t,clientId:r,context:o,name:n,isSelected:i}){let{queryId:s,query:l,enhancedPagination:c,tagName:u="div",query:{inherit:d}={}}=e,{templateSlug:p,postType:m}=o,{isSingular:f,templateType:g}=$pe(p),{__unstableMarkNextChangeAsNotPersistent:h}=(0,Dx.useDispatch)(qs.store),{createNotice:b}=(0,Dx.useDispatch)(Wme.store),_=SS(r),v=(0,jme.useInstanceId)(CF),w=(0,qs.useBlockProps)(),x=(0,qs.useInnerBlocksProps)(w),{postsPerPage:k}=(0,Dx.useSelect)(P=>{let{getSettings:B}=P(qs.store),{getEntityRecord:N,getEntityRecordEdits:E,canUser:M}=P(Ume.store),R=M("read",{kind:"root",name:"site"})?+N("root","site")?.posts_per_page:+B().postsPerPage;return{postsPerPage:+E("root","site")?.posts_per_page||R||EIe}},[]),C=f&&!d&&(l.postType===m||l.postType===g),S=(0,N0.useCallback)(P=>t(B=>({query:{...B.query,...P}})),[t]);return(0,N0.useEffect)(()=>{let P={};(d&&l.perPage!==k||!l.perPage&&k)&&(P.perPage=k),!C&&l.excludeCurrent!==void 0&&l.excludeCurrent!==null&&(P.excludeCurrent=null),Object.keys(P).length&&(h(),S(P))},[l.perPage,l.excludeCurrent,d,k,C,h,S]),(0,N0.useEffect)(()=>{Number.isFinite(s)||(h(),t({queryId:v}))},[s,v,h,t]),(0,N0.useEffect)(()=>{if(c&&_.length){h(),t({enhancedPagination:!1});let P=(0,M0.sprintf)((0,M0.__)(`"Reload full page" was enabled because some blocks inside the Query block aren't supported: %s.`),_.join((0,M0.__)(", ")));b("info",P,{type:"snackbar",id:"query-enhanced-pagination-disabled"})}},[c,_,h,t,b]),(0,$s.jsxs)($s.Fragment,{children:[i&&(0,$s.jsx)(MS,{clientId:r,attributes:e,hasInnerBlocks:!0}),(0,$s.jsx)(qs.InspectorControls,{children:(0,$s.jsx)(Fme,{name:n,attributes:e,setQuery:S,setAttributes:t,clientId:r,isSingular:f,shouldExcludeCurrentPost:C})}),(0,$s.jsxs)(qs.InspectorControls,{group:"advanced",children:[(0,$s.jsx)(TIe,{tagName:u,onChange:P=>t({tagName:P}),clientId:r,options:[{label:(0,M0.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]}),(0,$s.jsx)(Zpe,{enhancedPagination:c,setAttributes:t,clientId:r})]}),(0,$s.jsx)(u,{...x})]})}var RS=a(H(),1),DS=a(te(),1),SF=a(W(),1),ug=a(I(),1),Ax=a(F(),1),LS=a(L(),1),Gme=a(_e(),1);var Yc=a(y(),1);function $me({attributes:e,clientId:t,name:r,openPatternSelectionModal:o,isSelected:n}){let[i,s]=(0,SF.useState)(!1),[l,c]=(0,SF.useState)(0),u=(0,Gme.useResizeObserver)(([v])=>{c(v.contentRect.width)}),p=l>0&&l<160,{blockType:m,activeBlockVariation:f}=(0,RS.useSelect)(v=>{let{getActiveBlockVariation:w,getBlockType:x}=v(DS.store);return{blockType:x(r),activeBlockVariation:w(r,e)}},[r,e]),g=!!Rx(t,e).length,h=f?.icon?.src||f?.icon||m?.icon?.src,b=f?.title||m?.title,_=(0,ug.useBlockProps)({ref:u});return i?(0,Yc.jsx)(PIe,{clientId:t,attributes:e,icon:h,label:b}):(0,Yc.jsxs)("div",{..._,children:[n&&(0,Yc.jsx)(MS,{clientId:t,attributes:e,hasInnerBlocks:!1}),(0,Yc.jsxs)(Ax.Placeholder,{className:"block-editor-media-placeholder",icon:!p&&h,label:!p&&b,instructions:!p&&(0,LS.__)("Choose a pattern for the query loop or start blank."),withIllustration:p,children:[!!g&&!p&&(0,Yc.jsx)(Ax.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:o,children:(0,LS.__)("Choose")}),!p&&(0,Yc.jsx)(Ax.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{s(!0)},children:(0,LS.__)("Start blank")})]})]})}function PIe({clientId:e,attributes:t,icon:r,label:o}){let n=Wpe(t),{replaceInnerBlocks:i}=(0,RS.useDispatch)(ug.store),s=(0,ug.useBlockProps)();return(0,Yc.jsx)("div",{...s,children:(0,Yc.jsx)(ug.__experimentalBlockVariationPicker,{icon:r,label:o,variations:n,onSelect:l=>{l.innerBlocks&&i(e,(0,DS.createBlocksFromInnerBlocksTemplate)(l.innerBlocks),!1)}})})}var dg=a(y(),1),BIe=e=>{let{clientId:t,attributes:r}=e,[o,n]=(0,Zme.useState)(!1),s=(0,qme.useSelect)(l=>!!l(Kme.store).getBlocks(t).length,[t])?CF:$me;return(0,dg.jsxs)(dg.Fragment,{children:[(0,dg.jsx)(s,{...e,openPatternSelectionModal:()=>n(!0)}),o&&(0,dg.jsx)(zme,{clientId:t,attributes:r,setIsPatternSelectionModalOpen:n})]})},Yme=BIe;var AS=a(I(),1),Qme=a(y(),1);function Xme({attributes:{tagName:e="div"}}){let t=AS.useBlockProps.save(),r=AS.useInnerBlocksProps.save(t);return(0,Qme.jsx)(e,{...r})}var Ox=a(L(),1);var Qc=a(F(),1),rd=a(y(),1),Jme=(0,rd.jsx)(Qc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,rd.jsx)(Qc.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})}),efe=(0,rd.jsx)(Qc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,rd.jsx)(Qc.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})}),tfe=(0,rd.jsx)(Qc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,rd.jsx)(Qc.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})}),rfe=(0,rd.jsx)(Qc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,rd.jsx)(Qc.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})});var TF=["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],IIe=[{name:"title-date",title:(0,Ox.__)("Title & Date"),icon:Jme,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],TF]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,Ox.__)("Title & Excerpt"),icon:efe,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,Ox.__)("Title, Date, & Excerpt"),icon:tfe,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],TF,["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,Ox.__)("Image, Date, & Title"),icon:rfe,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],TF,["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}],ofe=IIe;var OS=a(te(),1),aa=a(I(),1);var pg=a(y(),1),{cleanEmptyObject:EF}=le(aa.privateApis),PF=e=>{let{query:t}=e,{categoryIds:r,tagIds:o,taxQuery:n,...i}=t;return(r?.length||o?.length)&&(i.taxQuery={include:{category:r?.length?r:void 0,post_tag:o?.length?o:void 0}}),Object.keys(n||{}).length&&(i.taxQuery={include:n}),{...e,query:i}},nfe=(e,t)=>{let{style:r,backgroundColor:o,gradient:n,textColor:i,...s}=e;if(!(o||n||i||r?.color||r?.elements?.link))return[e,t];if(r&&(s.style=EF({...r,color:void 0,elements:{...r.elements,link:void 0}})),NIe(t)){let u=t[0],p=r?.color||r?.elements?.link||u.attributes.style?EF({...u.attributes.style,color:r?.color,elements:r?.elements?.link?{link:r?.elements?.link}:void 0}):void 0,m=(0,OS.createBlock)("core/group",{...u.attributes,backgroundColor:o,gradient:n,textColor:i,style:p},u.innerBlocks);return[s,[m]]}let c=(0,OS.createBlock)("core/group",{backgroundColor:o,gradient:n,textColor:i,style:EF({color:r?.color,elements:r?.elements?.link?{link:r?.elements?.link}:void 0})},t);return[s,[c]]},NIe=(e=[])=>e.length===1&&e[0].name==="core/group",BF=e=>{let{layout:t=null}=e;if(!t)return e;let{inherit:r=null,contentSize:o=null,...n}=t;return r||o?{...e,layout:{...n,contentSize:o,type:"constrained"}}:e},afe=(e=[])=>{let t=null;for(let r of e)if(r.name==="core/post-template"){t=r;break}else r.innerBlocks.length&&(t=afe(r.innerBlocks));return t},ife=(e=[],t)=>(e.forEach((r,o)=>{r.name==="core/post-template"?e.splice(o,1,t):r.innerBlocks.length&&(r.innerBlocks=ife(r.innerBlocks,t))}),e),L0=(e,t)=>{let{displayLayout:r=null,...o}=e;if(!r)return[e,t];let n=afe(t);if(!n)return[e,t];let{type:i,columns:s}=r,l=i==="flex"?"grid":"default",c=(0,OS.createBlock)("core/post-template",{...n.attributes,layout:{type:l,...s&&{columnCount:s}}},n.innerBlocks);return[o,ife(t,c)]},MIe={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=PF(e),{layout:o,...n}=r,i={...n,displayLayout:r.layout};return L0(i,t)},save(){return(0,pg.jsx)(aa.InnerBlocks.Content,{})}},LIe={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=PF(e),[o,n]=nfe(r,t),i=BF(o);return L0(i,n)},save({attributes:{tagName:e="div"}}){let t=aa.useBlockProps.save(),r=aa.useInnerBlocksProps.save(t);return(0,pg.jsx)(e,{...r})}},RIe={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},isEligible(e){let{style:t,backgroundColor:r,gradient:o,textColor:n}=e;return r||o||n||t?.color||t?.elements?.link},migrate(e,t){let[r,o]=nfe(e,t),n=BF(r);return L0(n,o)},save({attributes:{tagName:e="div"}}){let t=aa.useBlockProps.save(),r=aa.useInnerBlocksProps.save(t);return(0,pg.jsx)(e,{...r})}},DIe={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=aa.useBlockProps.save(),r=aa.useInnerBlocksProps.save(t);return(0,pg.jsx)(e,{...r})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&e?.type!=="constrained",migrate(e,t){let r=BF(e);return L0(r,t)}},AIe={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=aa.useBlockProps.save(),r=aa.useInnerBlocksProps.save(t);return(0,pg.jsx)(e,{...r})},isEligible:({displayLayout:e})=>!!e,migrate:L0},OIe={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=aa.useBlockProps.save(),r=aa.useInnerBlocksProps.save(t);return(0,pg.jsx)(e,{...r})},isEligible:({query:{taxQuery:e}={}})=>!!e&&Object.keys(e).some(t=>!["include","exclude"].includes(t)),migrate(e,t){let r=PF(e);return L0(r,t)}},FIe=[OIe,AIe,DIe,RIe,LIe,MIe],sfe=FIe;var{name:lfe}=kS,cfe={icon:bm,edit:Yme,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:Xme,variations:ofe,deprecated:sfe},VIe=()=>D({name:lfe,metadata:kS,settings:cfe});var MF={};J(MF,{init:()=>jIe,metadata:()=>FS,name:()=>gfe,settings:()=>hfe});var NF=a(L(),1);var FS={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},color:{gradients:!0,link:!0,heading:!0,button:!0},spacing:{padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},shadow:!0},style:"wp-block-query-no-results"};var VS=a(I(),1),ufe=a(y(),1);function dfe(){let e=(0,VS.useBlockProps)(),t=(0,VS.useInnerBlocksProps)(e);return(0,ufe.jsx)("div",{...t})}var pfe=a(I(),1),mfe=a(y(),1);function ffe(){return(0,mfe.jsx)(pfe.InnerBlocks.Content,{})}var HIe=[["core/paragraph",{placeholder:(0,NF.__)("Add text or blocks that will display when a query returns no results.")}]],{name:gfe}=FS,hfe={icon:bm,template:HIe,edit:dfe,save:ffe,example:{innerBlocks:[{name:"core/paragraph",attributes:{content:(0,NF.__)("No posts were found.")}}]}},jIe=()=>D({name:gfe,metadata:FS,settings:hfe});var DF={};J(DF,{init:()=>$Ie,metadata:()=>zS,name:()=>Efe,settings:()=>Pfe});var zS={$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,background:{gradient:!0},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 HS=a(L(),1),od=a(I(),1),jS=a(H(),1),Fx=a(F(),1),xfe=a(W(),1);var mg=a(L(),1),R0=a(F(),1),D0=a(y(),1);function bfe({value:e,onChange:t}){return(0,D0.jsxs)(R0.__experimentalToggleGroupControl,{label:(0,mg.__)("Arrow"),value:e,onChange:t,help:(0,mg.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0,children:[(0,D0.jsx)(R0.__experimentalToggleGroupControlOption,{value:"none",label:(0,mg._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,D0.jsx)(R0.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,mg._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,D0.jsx)(R0.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,mg._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")})]})}var LF=a(L(),1),yfe=a(F(),1),vfe=a(y(),1);function _fe({value:e,onChange:t}){return(0,vfe.jsx)(yfe.ToggleControl,{label:(0,LF.__)("Show label text"),help:(0,LF.__)('Make label text visible, e.g. "Next Page".'),onChange:t,checked:e===!0})}var Zs=a(y(),1);function kfe({attributes:{paginationArrow:e,showLabel:t},setAttributes:r,clientId:o}){let n=(0,jS.useSelect)(u=>{let{getBlocks:d}=u(od.store);return d(o)?.find(m=>["core/query-pagination-next","core/query-pagination-previous"].includes(m.name))},[o]),{__unstableMarkNextChangeAsNotPersistent:i}=(0,jS.useDispatch)(od.store),s=ee(),l=(0,od.useBlockProps)(),c=(0,od.useInnerBlocksProps)(l);return(0,xfe.useEffect)(()=>{e==="none"&&!t&&(i(),r({showLabel:!0}))},[e,r,t,i]),(0,Zs.jsxs)(Zs.Fragment,{children:[n&&(0,Zs.jsx)(od.InspectorControls,{children:(0,Zs.jsxs)(Fx.__experimentalToolsPanel,{label:(0,HS.__)("Settings"),resetAll:()=>{r({paginationArrow:"none",showLabel:!0})},dropdownMenuProps:s,children:[(0,Zs.jsx)(Fx.__experimentalToolsPanelItem,{hasValue:()=>e!=="none",label:(0,HS.__)("Pagination arrow"),onDeselect:()=>r({paginationArrow:"none"}),isShownByDefault:!0,children:(0,Zs.jsx)(bfe,{value:e,onChange:u=>{r({paginationArrow:u})}})}),e!=="none"&&(0,Zs.jsx)(Fx.__experimentalToolsPanelItem,{hasValue:()=>!t,label:(0,HS.__)("Show text"),onDeselect:()=>r({showLabel:!0}),isShownByDefault:!0,children:(0,Zs.jsx)(_fe,{value:t,onChange:u=>{r({showLabel:u})}})})]})}),(0,Zs.jsx)("nav",{...c})]})}var wfe=a(I(),1),Cfe=a(y(),1);function Sfe(){return(0,Cfe.jsx)(wfe.InnerBlocks.Content,{})}var US=a(I(),1),RF=a(y(),1),WIe=[{save(){return(0,RF.jsx)("div",{...US.useBlockProps.save(),children:(0,RF.jsx)(US.InnerBlocks.Content,{})})}}],Tfe=WIe;var{name:Efe}=zS,GIe=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]],Pfe={icon:Iv,template:GIe,edit:kfe,save:Sfe,deprecated:Tfe},$Ie=()=>D({name:Efe,metadata:zS,settings:Pfe});var OF={};J(OF,{init:()=>KIe,metadata:()=>WS,name:()=>Ife,settings:()=>Nfe});var WS={$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,background:{gradient:!0},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 AF=a(L(),1),GS=a(I(),1),Vx=a(y(),1),ZIe={none:"",arrow:"\u2192",chevron:"\xBB"};function Bfe({attributes:{label:e},setAttributes:t,context:{paginationArrow:r,showLabel:o}}){let n=ZIe[r];return(0,Vx.jsxs)("a",{href:"#pagination-next-pseudo-link",onClick:i=>i.preventDefault(),...(0,GS.useBlockProps)(),children:[o&&(0,Vx.jsx)(GS.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,AF.__)("Next page link"),placeholder:(0,AF.__)("Next Page"),value:e,onChange:i=>t({label:i})}),n&&(0,Vx.jsx)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${r}`,"aria-hidden":!0,children:n})]})}var{name:Ife}=WS,Nfe={icon:Ev,edit:Bfe},KIe=()=>D({name:Ife,metadata:WS,settings:Nfe});var FF={};J(FF,{init:()=>XIe,metadata:()=>$S,name:()=>Lfe,settings:()=>Rfe});var $S={$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,background:{gradient:!0},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 Hx=a(L(),1),qS=a(I(),1),A0=a(F(),1);var ds=a(y(),1),zx=(e,t="a",r="")=>(0,ds.jsx)(t,{className:`page-numbers ${r}`,children:e},e),QIe=e=>{let t=[];for(let r=1;r<=e;r++)t.push(zx(r));t.push(zx(e+1,"span","current"));for(let r=1;r<=e;r++)t.push(zx(e+1+r));return t.push(zx("...","span","dots")),t.push(zx(e*2+3)),(0,ds.jsx)(ds.Fragment,{children:t})};function Mfe({attributes:e,setAttributes:t}){let{midSize:r}=e,o=QIe(parseInt(r,10)),n=ee();return(0,ds.jsxs)(ds.Fragment,{children:[(0,ds.jsx)(qS.InspectorControls,{children:(0,ds.jsx)(A0.__experimentalToolsPanel,{label:(0,Hx.__)("Settings"),resetAll:()=>t({midSize:2}),dropdownMenuProps:n,children:(0,ds.jsx)(A0.__experimentalToolsPanelItem,{label:(0,Hx.__)("Number of links"),hasValue:()=>r!==2,onDeselect:()=>t({midSize:2}),isShownByDefault:!0,children:(0,ds.jsx)(A0.RangeControl,{label:(0,Hx.__)("Number of links"),help:(0,Hx.__)("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,ds.jsx)("div",{...(0,qS.useBlockProps)(),children:o})]})}var{name:Lfe}=$S,Rfe={icon:Pv,edit:Mfe,example:{}},XIe=()=>D({name:Lfe,metadata:$S,settings:Rfe});var zF={};J(zF,{init:()=>tNe,metadata:()=>ZS,name:()=>Afe,settings:()=>Ofe});var ZS={$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,background:{gradient:!0},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 VF=a(L(),1),KS=a(I(),1),jx=a(y(),1),eNe={none:"",arrow:"\u2190",chevron:"\xAB"};function Dfe({attributes:{label:e},setAttributes:t,context:{paginationArrow:r,showLabel:o}}){let n=eNe[r];return(0,jx.jsxs)("a",{href:"#pagination-previous-pseudo-link",onClick:i=>i.preventDefault(),...(0,KS.useBlockProps)(),children:[n&&(0,jx.jsx)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${r}`,"aria-hidden":!0,children:n}),o&&(0,jx.jsx)(KS.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,VF.__)("Previous page link"),placeholder:(0,VF.__)("Previous Page"),value:e,onChange:i=>t({label:i})})]})}var{name:Afe}=ZS,Ofe={icon:Bv,edit:Dfe},tNe=()=>D({name:Afe,metadata:ZS,settings:Ofe});var WF={};J(WF,{init:()=>iNe,metadata:()=>YS,name:()=>Gfe,settings:()=>$fe});var YS={$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,background:{gradient:!0},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 Ks=a(I(),1),Ys=a(F(),1),ur=a(L(),1);var HF=a(ae(),1),jF=a(H(),1);function Ffe(){let e=(0,jF.useSelect)(s=>{let{getCurrentPostId:l,getCurrentPostType:c,getCurrentTemplateId:u}=s("core/editor"),d=c(),p=u()||(d==="wp_template"?l():null);return p?s(HF.store).getEditedEntityRecord("postType","wp_template",p)?.slug:null},[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,o,n=!1,i;if(t)t[1]?r=t[2]?t[2]:t[1]:t[3]&&(r=t[6]?t[6]:t[4],o=t[7]),r=r==="tag"?"post_tag":r;else{let s=e?.match(/^(author)$|^author-(.+)$/);s&&(n=!0,s[2]&&(i=s[2]))}return(0,jF.useSelect)(s=>{let{getEntityRecords:l,getTaxonomy:c,getAuthors:u}=s(HF.store),d,p;if(r&&(d=c(r)?.labels?.singular_name),o){let m=l("taxonomy",r,{slug:o,per_page:1});m&&m[0]&&(p=m[0].name)}if(n&&(d="Author",i)){let m=u({slug:i});m&&m[0]&&(p=m[0].name)}return{archiveTypeLabel:d,archiveNameLabel:p}},[i,n,r,o])}var Vfe=a(ae(),1),UF=a(H(),1);function zfe(e){let t=(0,UF.useSelect)(r=>{let{getCurrentPostType:o}=r("core/editor");return o()},[]);return(0,UF.useSelect)(r=>{let{getPostType:o}=r(Vfe.store),i=o(e||t);return{postTypeLabel:i?i.labels.singular_name:""}},[e,t])}var Dt=a(y(),1),oNe=["archive","search","post-type"];function Hfe(e){Pt(e);let{attributes:{type:t,level:r,levelOptions:o,showPrefix:n,showSearchTerm:i},setAttributes:s,context:{query:l}}=e,{archiveTypeLabel:c,archiveNameLabel:u}=Ffe(),{postTypeLabel:d}=zfe(l?.postType),p=ee(),m=r===0?"p":`h${r}`,f=(0,Ks.useBlockProps)({className:"wp-block-query-title__placeholder"});if(!oNe.includes(t))return(0,Dt.jsx)("div",{...f,children:(0,Dt.jsx)(Ks.Warning,{children:(0,ur.__)("Provided type is not supported.")})});let g;if(t==="archive"){let h;c?n?u?h=(0,ur.sprintf)((0,ur._x)("%1$s: %2$s","archive label"),c,u):h=(0,ur.sprintf)((0,ur.__)("%s: Name"),c):u?h=u:h=(0,ur.sprintf)((0,ur.__)("%s name"),c):h=n?(0,ur.__)("Archive type: Name"):(0,ur.__)("Archive title"),g=(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsx)(Ks.InspectorControls,{children:(0,Dt.jsx)(Ys.__experimentalToolsPanel,{label:(0,ur.__)("Settings"),resetAll:()=>s({showPrefix:!0}),dropdownMenuProps:p,children:(0,Dt.jsx)(Ys.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,ur.__)("Show archive type in title"),onDeselect:()=>s({showPrefix:!0}),isShownByDefault:!0,children:(0,Dt.jsx)(Ys.ToggleControl,{label:(0,ur.__)("Show archive type in title"),onChange:()=>s({showPrefix:!n}),checked:n})})})}),(0,Dt.jsx)(m,{...f,children:h})]})}if(t==="search"&&(g=(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsx)(Ks.InspectorControls,{children:(0,Dt.jsx)(Ys.__experimentalToolsPanel,{label:(0,ur.__)("Settings"),resetAll:()=>s({showSearchTerm:!0}),dropdownMenuProps:p,children:(0,Dt.jsx)(Ys.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,ur.__)("Show search term in title"),onDeselect:()=>s({showSearchTerm:!0}),isShownByDefault:!0,children:(0,Dt.jsx)(Ys.ToggleControl,{label:(0,ur.__)("Show search term in title"),onChange:()=>s({showSearchTerm:!i}),checked:i})})})}),(0,Dt.jsx)(m,{...f,children:i?(0,ur.__)("Search results for: \u201Csearch term\u201D"):(0,ur.__)("Search results")})]})),t==="post-type"){let h;d?n?h=(0,ur.sprintf)((0,ur.__)('Post Type: "%s"'),d):h=d:h=n?(0,ur.__)("Post Type: Name"):(0,ur.__)("Name"),g=(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsx)(Ks.InspectorControls,{children:(0,Dt.jsx)(Ys.__experimentalToolsPanel,{label:(0,ur.__)("Settings"),resetAll:()=>s({showPrefix:!0}),dropdownMenuProps:p,children:(0,Dt.jsx)(Ys.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,ur.__)("Show post type label"),onDeselect:()=>s({showPrefix:!0}),isShownByDefault:!0,children:(0,Dt.jsx)(Ys.ToggleControl,{label:(0,ur.__)("Show post type label"),onChange:()=>s({showPrefix:!n}),checked:n})})})}),(0,Dt.jsx)(m,{...f,children:h})]})}return(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsx)(Ks.BlockControls,{group:"block",children:(0,Dt.jsx)(Ks.HeadingLevelDropdown,{value:r,options:o,onChange:h=>s({level:h})})}),g]})}var fg=a(L(),1);var jfe=[{isDefault:!0,name:"archive-title",title:(0,fg.__)("Archive Title"),description:(0,fg.__)("Display the archive title based on the queried object."),icon:ml,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,fg.__)("Search Results Title"),description:(0,fg.__)("Display the search results title based on the queried object."),icon:ml,attributes:{type:"search"},scope:["inserter"]},{isDefault:!1,name:"post-type-label",title:(0,fg.__)("Post Type Label"),description:(0,fg.__)("Display the post type label based on the queried object."),icon:ml,attributes:{type:"post-type"},scope:["inserter"]}];jfe.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.type===r.type)});var Ufe=jfe;var nNe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},aNe={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:or,isEligible({style:e}){return e?.typography?.fontFamily}},Wfe=[nNe,aNe];var{name:Gfe}=YS,$fe={icon:ml,edit:Hfe,variations:Ufe,deprecated:Wfe},iNe=()=>D({name:Gfe,metadata:YS,settings:$fe});var qF={};J(qF,{init:()=>lNe,metadata:()=>QS,name:()=>Kfe,settings:()=>Yfe});var QS={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},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}},shadow:!0,interactivity:{clientNavigation:!0}},style:"wp-block-query-total"};var XS=a(I(),1),JS=a(F(),1),O0=a(L(),1);var Hp=a(F(),1),gg=a(y(),1),GF=(0,gg.jsx)(Hp.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,gg.jsx)(Hp.Path,{d:"M4 11h4v2H4v-2zm6 0h6v2h-6v-2zm8 0h2v2h-2v-2z"})}),$F=(0,gg.jsx)(Hp.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,gg.jsx)(Hp.Path,{d:"M4 13h2v-2H4v2zm4 0h10v-2H8v2zm12 0h2v-2h-2v2z"})}),qfe=(0,gg.jsx)(Hp.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,gg.jsx)(Hp.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 Zl=a(y(),1);function Zfe({attributes:e,setAttributes:t}){let{displayType:r}=e,o=(0,XS.useBlockProps)(),n=()=>{switch(r){case"total-results":return GF;case"range-display":return $F}},i=[{role:"menuitemradio",title:(0,O0.__)("Total results"),isActive:r==="total-results",icon:GF,onClick:()=>{t({displayType:"total-results"})}},{role:"menuitemradio",title:(0,O0.__)("Range display"),isActive:r==="range-display",icon:$F,onClick:()=>{t({displayType:"range-display"})}}],s=(0,Zl.jsx)(XS.BlockControls,{children:(0,Zl.jsx)(JS.ToolbarGroup,{children:(0,Zl.jsx)(JS.ToolbarDropdownMenu,{icon:n(),label:(0,O0.__)("Change display type"),controls:i})})});return(0,Zl.jsxs)("div",{...o,children:[s,r==="total-results"?(0,Zl.jsx)(Zl.Fragment,{children:(0,O0.__)("12 results found")}):r==="range-display"?(0,Zl.jsx)(Zl.Fragment,{children:(0,O0.__)("Displaying 1 \u2013 10 of 12")}):null]})}var{name:Kfe}=QS,Yfe={icon:qfe,edit:Zfe},lNe=()=>D({name:Kfe,metadata:QS,settings:Yfe});var KF={};J(KF,{init:()=>vNe,metadata:()=>e8,name:()=>age,settings:()=>ige});var ZF=a(L(),1);var Ux=a(te(),1),vo=a(I(),1),Cn=a(y(),1),jp=e=>{let{value:t,...r}=e;return[{...r},t?(0,Ux.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map(({content:o})=>(0,Ux.createBlock)("core/paragraph",{content:o})):(0,Ux.createBlock)("core/paragraph")]},Qfe=["left","right","center"],hg=(e,t)=>{let{align:r,...o}=e;return[Qfe.includes(r)?{...o,textAlign:r}:e,t]},cNe=(e,t)=>[{...e,className:e.className?e.className+" is-style-large":"is-style-large"},t],uNe={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})=>Qfe.includes(e),save({attributes:e}){let{align:t,citation:r}=e,o=T({[`has-text-align-${t}`]:t});return(0,Cn.jsxs)("blockquote",{...vo.useBlockProps.save({className:o}),children:[(0,Cn.jsx)(vo.InnerBlocks.Content,{}),!vo.RichText.isEmpty(r)&&(0,Cn.jsx)(vo.RichText.Content,{tagName:"cite",value:r})]})},migrate:hg},dNe={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},align:{type:"string"}},supports:{anchor:!0,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}}},save({attributes:e}){let{align:t,value:r,citation:o}=e,n=T({[`has-text-align-${t}`]:t});return(0,Cn.jsxs)("blockquote",{...vo.useBlockProps.save({className:n}),children:[(0,Cn.jsx)(vo.RichText.Content,{multiline:!0,value:r}),!vo.RichText.isEmpty(o)&&(0,Cn.jsx)(vo.RichText.Content,{tagName:"cite",value:o})]})},migrate(e){return hg(...jp(e))}},pNe={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 hg(...jp(e))},save({attributes:e}){let{align:t,value:r,citation:o}=e;return(0,Cn.jsxs)("blockquote",{style:{textAlign:t||null},children:[(0,Cn.jsx)(vo.RichText.Content,{multiline:!0,value:r}),!vo.RichText.isEmpty(o)&&(0,Cn.jsx)(vo.RichText.Content,{tagName:"cite",value:o})]})}},mNe={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 hg(...cNe(...jp(r)))}return hg(...jp(e))},save({attributes:e}){let{align:t,value:r,citation:o,style:n}=e;return(0,Cn.jsxs)("blockquote",{className:n===2?"is-large":"",style:{textAlign:t||null},children:[(0,Cn.jsx)(vo.RichText.Content,{multiline:!0,value:r}),!vo.RichText.isEmpty(o)&&(0,Cn.jsx)(vo.RichText.Content,{tagName:"cite",value:o})]})}},fNe={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 hg(...jp(r))}return hg(...jp(e))},save({attributes:e}){let{align:t,value:r,citation:o,style:n}=e;return(0,Cn.jsxs)("blockquote",{className:`blocks-quote-style-${n}`,style:{textAlign:t||null},children:[(0,Cn.jsx)(vo.RichText.Content,{multiline:!0,value:r}),!vo.RichText.isEmpty(o)&&(0,Cn.jsx)(vo.RichText.Content,{tagName:"footer",value:o})]})}},Xfe=[uNe,dNe,pNe,mNe,fNe];var Wx=a(L(),1),Qs=a(I(),1),Jfe=a(F(),1),F0=a(H(),1),ege=a(W(),1),tge=a(jm(),1);var nd=a(y(),1),gNe=(e,t)=>{let r=(0,F0.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:n,selectBlock:i}=(0,F0.useDispatch)(Qs.store);(0,ege.useEffect)(()=>{if(!e.value)return;let[s,l]=jp(e);(0,tge.default)("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"});let c=r.select(Qs.store).hasSelectedInnerBlock(t,!0);r.batch(()=>{o(t,s),n(t,l),c&&i(t)})},[e.value])};function rge({attributes:e,setAttributes:t,insertBlocksAfter:r,clientId:o,className:n,isSelected:i}){let{textAlign:s,allowedBlocks:l}=e,{hasInnerBlocks:c}=(0,F0.useSelect)(p=>{let{getBlockCount:m}=p(Qs.store);return{hasInnerBlocks:m(o)>0}},[o]);gNe(e,o);let u=(0,Qs.useBlockProps)({className:T(n,{[`has-text-align-${s}`]:s})}),d=(0,Qs.useInnerBlocksProps)(u,{__experimentalCaptureToolbars:!0,renderAppender:c?!1:void 0,allowedBlocks:l});return(0,nd.jsxs)(nd.Fragment,{children:[(0,nd.jsx)(Qs.BlockControls,{group:"block",children:(0,nd.jsx)(Qs.AlignmentControl,{value:s,onChange:p=>{t({textAlign:p})}})}),(0,nd.jsxs)(Jfe.BlockQuotation,{...d,children:[d.children,(0,nd.jsx)(Zo,{attributeKey:"citation",tagName:"cite",style:{display:"block"},isSelected:i,attributes:e,setAttributes:t,icon:h_,label:(0,Wx.__)("Quote citation"),placeholder:(0,Wx.__)("Add citation"),addLabel:(0,Wx.__)("Add citation"),removeLabel:(0,Wx.__)("Remove citation"),excludeElementClassName:!0,className:"wp-block-quote__citation",insertBlocksAfter:r})]})]})}var e8={$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}},shadow:!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 bg=a(I(),1),Gx=a(y(),1);function oge({attributes:e}){let{textAlign:t,citation:r}=e,o=T({[`has-text-align-${t}`]:t});return(0,Gx.jsxs)("blockquote",{...bg.useBlockProps.save({className:o}),children:[(0,Gx.jsx)(bg.InnerBlocks.Content,{}),!bg.RichText.isEmpty(r)&&(0,Gx.jsx)(bg.RichText.Content,{tagName:"cite",value:r})]})}var $x=a(I(),1),Qr=a(te(),1),bNe={from:[{type:"block",blocks:["core/verse"],transform:({content:e})=>(0,Qr.createBlock)("core/quote",{},[(0,Qr.createBlock)("core/paragraph",{content:e})])},{type:"block",blocks:["core/pullquote"],transform:({value:e,align:t,citation:r,anchor:o,fontSize:n,style:i})=>(0,Qr.createBlock)("core/quote",{align:t,citation:r,anchor:o,fontSize:n,style:i},[(0,Qr.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,Qr.createBlock)("core/quote",{},[(0,Qr.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,Qr.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,Qr.createBlock)("core/quote",{},e.map(t=>(0,Qr.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:n},i)=>{let s=i.map(({attributes:l})=>`${l.content}`).join("<br>");return(0,Qr.createBlock)("core/pullquote",{value:s,align:e,citation:t,anchor:r,fontSize:o,style:n})}},{type:"block",blocks:["core/verse"],isMatch:({},e)=>e.innerBlocks.every(t=>t.name==="core/paragraph"?!0:(0,Qr.switchToBlockType)(t,"core/paragraph")!==null),transform:({},e)=>{let r=e.flatMap(o=>o.name==="core/paragraph"?o:(0,Qr.switchToBlockType)(o,"core/paragraph")||[]).map(({attributes:o})=>o.content||"").filter(Boolean).join("<br>");return(0,Qr.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,Qr.switchToBlockType)(o,"core/paragraph")!==null):!$x.RichText.isEmpty(e)},transform:({citation:e},t)=>{let r=t.flatMap(o=>o.name==="core/paragraph"?o:(0,Qr.switchToBlockType)(o,"core/paragraph")||[]);return $x.RichText.isEmpty(e)?r:[...r,(0,Qr.createBlock)("core/paragraph",{content:e})]}},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},r)=>(0,Qr.createBlock)("core/group",{anchor:t},$x.RichText.isEmpty(e)?r:[...r,(0,Qr.createBlock)("core/paragraph",{content:e})])}],ungroup:({citation:e},t)=>$x.RichText.isEmpty(e)?t:[...t,(0,Qr.createBlock)("core/paragraph",{content:e})]},nge=bNe;var{name:age}=e8,yNe=[["core/paragraph",{}]],ige={icon:AI,example:{attributes:{citation:(0,ZF.__)("Julio Cort\xE1zar")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,ZF.__)("In quoting others, we cite ourselves.")}}]},transforms:nge,template:yNe,templateInsertUpdatesSelection:!0,edit:rge,save:oge,deprecated:Xfe},vNe=()=>D({name:age,metadata:e8,settings:ige});var YF={};J(YF,{init:()=>MNe,metadata:()=>t8,name:()=>bge,settings:()=>yge});var fge=a(ae(),1),gge=a(H(),1),hge=a($o(),1);var t8={$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,visibility:!1}};var Zx=a(H(),1),Kx=a(W(),1),V0=a(ae(),1),Xc=a(F(),1),qx=a(L(),1),Xr=a(I(),1),uge=a(lge(),1),dge=a(te(),1);var Er=a(y(),1),{useLayoutClasses:xNe}=le(Xr.privateApis),{isOverridableBlock:kNe}=le(uge.privateApis),wNe=["full","wide","left","right"],CNe=(e,t)=>{let r=(0,Kx.useRef)();return(0,Kx.useMemo)(()=>{if(!e?.length)return{};let o=r.current;if(o===void 0){let i=t?.type==="constrained",s=e.some(l=>wNe.includes(l.attributes.align));o=i&&s?"full":null,r.current=o}return{alignment:o,layout:o?t:void 0}},[e,t])};function SNe(){let e=(0,Xr.useBlockProps)();return(0,Er.jsx)("div",{...e,children:(0,Er.jsx)(Xr.Warning,{children:(0,qx.__)("Block cannot be rendered inside itself.")})})}var cge=()=>{};function pge(e){let{ref:t}=e.attributes;return(0,Xr.useHasRecursion)(t)?(0,Er.jsx)(SNe,{}):(0,Er.jsx)(Xr.RecursionProvider,{uniqueId:t,children:(0,Er.jsx)(PNe,{...e})})}function TNe({recordId:e,canOverrideBlocks:t,hasContent:r,handleEditOriginal:o,resetContent:n}){let i=(0,Zx.useSelect)(s=>!!s(V0.store).canUser("update",{kind:"postType",name:"wp_block",id:e}),[e]);return(0,Er.jsxs)(Er.Fragment,{children:[i&&!!o&&(0,Er.jsx)(Xr.BlockControls,{group:"other",children:(0,Er.jsx)(Xc.ToolbarGroup,{children:(0,Er.jsx)(Xc.ToolbarButton,{onClick:o,children:(0,qx.__)("Edit original")})})}),t&&(0,Er.jsx)(Xr.BlockControls,{group:"other",children:(0,Er.jsx)(Xc.ToolbarGroup,{children:(0,Er.jsx)(Xc.ToolbarButton,{onClick:n,disabled:!r,children:(0,qx.__)("Reset")})})})]})}var ENe={};function PNe({name:e,attributes:{ref:t,content:r},__unstableParentLayout:o,setAttributes:n}){let{record:i,hasResolved:s}=(0,V0.useEntityRecord)("postType","wp_block",t),[l]=(0,V0.useEntityBlockEditor)("postType","wp_block",{id:t}),c=s&&!i,{__unstableMarkLastChangeAsPersistent:u}=(0,Zx.useDispatch)(Xr.store),{onNavigateToEntityRecord:d,hasPatternOverridesSource:p,supportedBlockTypesRaw:m}=(0,Zx.useSelect)(C=>{let{getSettings:S}=C(Xr.store);return{onNavigateToEntityRecord:S().onNavigateToEntityRecord,hasPatternOverridesSource:!!(0,dge.getBlockBindingsSource)("core/pattern-overrides"),supportedBlockTypesRaw:S().__experimentalBlockBindingsSupportedAttributes||ENe}},[]),f=(0,Kx.useMemo)(()=>{let C=Object.keys(m),S=P=>P?.some(B=>C.includes(B.name)&&kNe(B)?!0:S(B.innerBlocks));return p&&S(l)},[p,l,m]),{alignment:g,layout:h}=CNe(l,o),b=xNe({layout:h},e),_=(0,Xr.useBlockProps)({className:T("block-library-block__reusable-block-container",h&&b,{[`align${g}`]:g})}),v=(0,Xr.useInnerBlocksProps)(_,{layout:h,value:l,onInput:cge,onChange:cge,renderAppender:l?.length?void 0:Xr.InnerBlocks.ButtonBlockAppender}),w=()=>{d({postId:t,postType:"wp_block"})},x=()=>{r&&(u(),n({content:void 0}))},k=null;return c&&(k=(0,Er.jsx)(Xr.Warning,{children:(0,qx.__)("Block has been deleted or is unavailable.")})),s||(k=(0,Er.jsx)(Xc.Placeholder,{children:(0,Er.jsx)(Xc.Spinner,{})})),(0,Er.jsxs)(Er.Fragment,{children:[s&&!c&&(0,Er.jsx)(TNe,{recordId:t,canOverrideBlocks:f,hasContent:!!r,handleEditOriginal:d?w:void 0,resetContent:x}),k===null?(0,Er.jsx)("div",{...v}):(0,Er.jsx)("div",{..._,children:k})]})}var BNe=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,INe={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&&BNe(e[t].values))},migrate(e){let{content:t,...r}=e;if(t&&Object.keys(t).length){let o={...t};for(let n in t)o[n]=t[n].values;return{...r,content:o}}return e}},NNe={attributes:{ref:{type:"number"},overrides:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible({overrides:e}){return!!e},migrate(e){let{overrides:t,...r}=e,o={};return Object.keys(t).forEach(n=>{o[n]=t[n]}),{...r,content:o}}},mge=[INe,NNe];var{name:bge}=t8,yge={deprecated:mge,edit:pge,icon:aN,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,gge.select)(fge.store).getEditedEntityRecord("postType","wp_block",e);if(t?.title)return(0,hge.decodeEntities)(t.title)}},MNe=()=>D({name:bge,metadata:t8,settings:yge});var QF={};J(QF,{init:()=>RNe,metadata:()=>r8,name:()=>xge,settings:()=>kge});var _ge=a(L(),1);var r8={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},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}},shadow:!0,interactivity:{clientNavigation:!0}},style:"wp-block-read-more"};var H0=a(I(),1),j0=a(F(),1),o8=a(te(),1),z0=a(L(),1);var Jc=a(y(),1);function vge({attributes:{content:e,linkTarget:t},setAttributes:r,insertBlocksAfter:o}){let n=(0,H0.useBlockProps)(),i=ee();return(0,Jc.jsxs)(Jc.Fragment,{children:[(0,Jc.jsx)(H0.InspectorControls,{children:(0,Jc.jsx)(j0.__experimentalToolsPanel,{label:(0,z0.__)("Settings"),resetAll:()=>r({linkTarget:"_self"}),dropdownMenuProps:i,children:(0,Jc.jsx)(j0.__experimentalToolsPanelItem,{label:(0,z0.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>t!=="_self",onDeselect:()=>r({linkTarget:"_self"}),children:(0,Jc.jsx)(j0.ToggleControl,{label:(0,z0.__)("Open in new tab"),onChange:s=>r({linkTarget:s?"_blank":"_self"}),checked:t==="_blank"})})})}),(0,Jc.jsx)(H0.RichText,{identifier:"content",tagName:"a","aria-label":(0,z0.__)("\u201CRead more\u201D link text"),placeholder:(0,z0.__)("Read more"),value:e,onChange:s=>r({content:s}),__unstableOnSplitAtEnd:o?()=>o((0,o8.createBlock)((0,o8.getDefaultBlockName)())):void 0,withoutInteractiveFormatting:!0,...n})]})}var{name:xge}=r8,kge={icon:Pi,edit:vge,example:{attributes:{content:(0,_ge.__)("Read more")}}},RNe=()=>D({name:xge,metadata:r8,settings:kge});var XF={};J(XF,{init:()=>FNe,metadata:()=>n8,name:()=>Ege,settings:()=>Pge});var n8={$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}},shadow:!0,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},color:{background:!0,text:!0,gradients:!0,link:!0}},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"};var yg=a(I(),1),Et=a(F(),1),a8=a(W(),1);var Ut=a(L(),1),wge=a(qt(),1),Cge=a(bd(),1),Sge=a(_e(),1);var ft=a(y(),1),ANe=1,ONe=20;function Tge({attributes:e,setAttributes:t,name:r}){let[o,n]=(0,a8.useState)(!e.feedURL),{blockLayout:i,columns:s,displayAuthor:l,displayDate:c,displayExcerpt:u,excerptLength:d,feedURL:p,itemsToShow:m,openInNewTab:f,rel:g}=e,h=ee();function b(B){return()=>{let N=e[B];t({[B]:!N})}}function _(B){B.preventDefault(),p&&(t({feedURL:(0,wge.prependHTTPS)(p)}),n(!1))}let{content:v,status:w,error:x}=(0,Cge.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),k=(0,Sge.useDisabled)(),C=(0,yg.useBlockProps)({ref:o?null:k}),S=(0,Ut.__)("RSS URL");if(o)return(0,ft.jsx)("div",{...C,children:(0,ft.jsx)(Et.Placeholder,{icon:Dv,label:S,instructions:(0,Ut.__)("Display entries from any RSS or Atom feed."),children:(0,ft.jsxs)("form",{onSubmit:_,className:"wp-block-rss__placeholder-form",children:[(0,ft.jsx)(Et.__experimentalInputControl,{label:S,type:"url",hideLabelFromVision:!0,placeholder:(0,Ut.__)("Enter URL here\u2026"),value:p,onChange:B=>t({feedURL:B}),className:"wp-block-rss__placeholder-input"}),(0,ft.jsx)(Et.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,Ut.__)("Apply")})]})})});let P=[{icon:vm,title:(0,Ut.__)("Edit RSS URL"),onClick:()=>n(!0)},{icon:pl,title:(0,Ut._x)("List view","RSS block display setting"),onClick:()=>t({blockLayout:"list"}),isActive:i==="list"},{icon:Ei,title:(0,Ut._x)("Grid view","RSS block display setting"),onClick:()=>t({blockLayout:"grid"}),isActive:i==="grid"}];return(0,ft.jsxs)(ft.Fragment,{children:[(0,ft.jsx)(yg.BlockControls,{children:(0,ft.jsx)(Et.ToolbarGroup,{controls:P})}),(0,ft.jsx)(yg.InspectorControls,{children:(0,ft.jsxs)(Et.__experimentalToolsPanel,{label:(0,Ut.__)("Settings"),resetAll:()=>{t({itemsToShow:5,displayAuthor:!1,displayDate:!1,displayExcerpt:!1,excerptLength:55,columns:2,openInNewTab:!1})},dropdownMenuProps:h,children:[(0,ft.jsx)(Et.__experimentalToolsPanelItem,{label:(0,Ut.__)("Number of items"),hasValue:()=>m!==5,onDeselect:()=>t({itemsToShow:5}),isShownByDefault:!0,children:(0,ft.jsx)(Et.RangeControl,{label:(0,Ut.__)("Number of items"),value:m,onChange:B=>t({itemsToShow:B}),min:ANe,max:ONe,required:!0})}),(0,ft.jsx)(Et.__experimentalToolsPanelItem,{label:(0,Ut.__)("Display author"),hasValue:()=>!!l,onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,ft.jsx)(Et.ToggleControl,{label:(0,Ut.__)("Display author"),checked:l,onChange:b("displayAuthor")})}),(0,ft.jsx)(Et.__experimentalToolsPanelItem,{label:(0,Ut.__)("Display date"),hasValue:()=>!!c,onDeselect:()=>t({displayDate:!1}),isShownByDefault:!0,children:(0,ft.jsx)(Et.ToggleControl,{label:(0,Ut.__)("Display date"),checked:c,onChange:b("displayDate")})}),(0,ft.jsx)(Et.__experimentalToolsPanelItem,{label:(0,Ut.__)("Display excerpt"),hasValue:()=>!!u,onDeselect:()=>t({displayExcerpt:!1}),isShownByDefault:!0,children:(0,ft.jsx)(Et.ToggleControl,{label:(0,Ut.__)("Display excerpt"),checked:u,onChange:b("displayExcerpt")})}),u&&(0,ft.jsx)(Et.__experimentalToolsPanelItem,{label:(0,Ut.__)("Max number of words in excerpt"),hasValue:()=>d!==55,onDeselect:()=>t({excerptLength:55}),isShownByDefault:!0,children:(0,ft.jsx)(Et.RangeControl,{label:(0,Ut.__)("Max number of words in excerpt"),value:d,onChange:B=>t({excerptLength:B}),min:10,max:100,required:!0})}),i==="grid"&&(0,ft.jsx)(Et.__experimentalToolsPanelItem,{label:(0,Ut.__)("Columns"),hasValue:()=>s!==2,onDeselect:()=>t({columns:2}),isShownByDefault:!0,children:(0,ft.jsx)(Et.RangeControl,{label:(0,Ut.__)("Columns"),value:s,onChange:B=>t({columns:B}),min:2,max:6,required:!0})}),(0,ft.jsx)(Et.__experimentalToolsPanelItem,{label:(0,Ut.__)("Open links in new tab"),hasValue:()=>!!f,onDeselect:()=>t({openInNewTab:!1}),isShownByDefault:!0,children:(0,ft.jsx)(Et.ToggleControl,{label:(0,Ut.__)("Open links in new tab"),checked:f,onChange:B=>t({openInNewTab:B})})})]})}),(0,ft.jsx)(yg.InspectorControls,{group:"advanced",children:(0,ft.jsx)(Et.TextControl,{label:(0,Ut.__)("Link relation"),help:(0,a8.createInterpolateElement)((0,Ut.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,ft.jsx)(Et.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:g||"",onChange:B=>t({rel:B})})}),w==="loading"&&(0,ft.jsx)("div",{...C,children:(0,ft.jsx)(Et.Spinner,{})}),w==="error"&&(0,ft.jsx)("div",{...C,children:(0,ft.jsx)("p",{children:(0,Ut.sprintf)((0,Ut.__)("Error: %s"),x)})}),w==="success"&&(0,ft.jsx)(Eo,{wrapperProps:C,html:v})]})}var{name:Ege}=n8,Pge={icon:Dv,example:{attributes:{feedURL:"https://wordpress.org"}},edit:Tge},FNe=()=>D({name:Ege,metadata:n8,settings:Pge});var aV={};J(aV,{init:()=>jNe,metadata:()=>i8,name:()=>Oge,settings:()=>Fge});var nV=a(L(),1);var i8={$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 so=a(I(),1),s8=a(H(),1),Yx=a(W(),1),mr=a(F(),1),Mge=a(_e(),1);var At=a(L(),1),Lge=a(ma(),1),Rge=a(O_(),1),l8=a(A(),1);var JF=50,eV=350,tV=220;function rV(e){return e==="%"}var wt=a(y(),1),Bge={"":(0,At.__)("Lets the theme decide. Uses the <search> landmark element if the theme opts in, otherwise a <form>."),search:(0,At.__)("Wraps the block in a <search> landmark, announced as a search region by assistive technologies."),form:(0,At.__)('Uses a <form role="search"> wrapper for backward compatibility with existing theme styles.')},Ige="4px",Nge=[25,50,75,100],zNe=(0,wt.jsx)(l8.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(l8.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"})});function Dge({className:e,attributes:t,setAttributes:r,toggleSelection:o,isSelected:n,clientId:i}){let{label:s,showLabel:l,placeholder:c,width:u,widthUnit:d,align:p,buttonText:m,buttonPosition:f,buttonUseIcon:g,tagName:h,style:b}=t,_=(0,s8.useSelect)(se=>{let{getBlockParentsByBlockName:he,wasBlockJustInserted:ze}=se(so.store);return!!he(i,"core/navigation")?.length&&ze(i)},[i]),{__unstableMarkNextChangeAsNotPersistent:v}=(0,s8.useDispatch)(so.store);(0,Yx.useEffect)(()=>{_&&(v(),r({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))},[v,_,r]);let w=b?.border?.radius,x=(0,so.__experimentalUseBorderProps)(t);typeof w=="number"&&(x={...x,style:{...x.style,borderRadius:`${w}px`}});let k=(0,so.__experimentalUseColorProps)(t),[C,S]=(0,so.useSettings)("typography.fluid","layout"),P=(0,so.getTypographyClassesAndStyles)(t,{typography:{fluid:C},layout:{wideSize:S?.wideSize}}),N=`wp-block-search__width-${(0,Mge.useInstanceId)(mr.__experimentalUnitControl)}`,E=f==="button-inside",M=f==="button-outside",R=f==="no-button",O=f==="button-only",j=O&&!n,V=(0,Yx.useRef)(),G=(0,Yx.useRef)(),$=(0,mr.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":JF,px:eV}}),z=()=>T(e,E?"wp-block-search__button-inside":void 0,M?"wp-block-search__button-outside":void 0,R?"wp-block-search__no-button":void 0,O?"wp-block-search__button-only":void 0,!g&&!R?"wp-block-search__text-button":void 0,g&&!R?"wp-block-search__icon-button":void 0,j?"wp-block-search__searchfield-hidden":void 0),K=[{label:(0,At.__)("Button outside"),value:"button-outside"},{label:(0,At.__)("Button inside"),value:"button-inside"},{label:(0,At.__)("No button"),value:"no-button"},{label:(0,At.__)("Button only"),value:"button-only"}],q=()=>O?{}:{right:p!=="right",left:p==="right"},Y=()=>{let se=T("wp-block-search__input",R?k.className:void 0,E?void 0:x.className,P.className),he={...R?k.style:{},...E?{borderRadius:x.style?.borderRadius,borderTopLeftRadius:x.style?.borderTopLeftRadius,borderTopRightRadius:x.style?.borderTopRightRadius,borderBottomLeftRadius:x.style?.borderBottomLeftRadius,borderBottomRightRadius:x.style?.borderBottomRightRadius}:x.style,...P.style,textDecoration:void 0};return(0,wt.jsx)("input",{type:"search",className:se,style:he,"aria-label":(0,At.__)("Optional placeholder text"),placeholder:c?void 0:(0,At.__)("Optional placeholder\u2026"),value:c,onChange:ze=>r({placeholder:ze.target.value}),ref:V})},oe=()=>{let se=T("wp-block-search__button",k.className,P.className,E?void 0:x.className,g?"has-icon":void 0,(0,so.__experimentalGetElementClassName)("button")),he={...k.style,...P.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:[g&&(0,wt.jsx)("button",{type:"button",className:se,style:he,"aria-label":m?(0,Lge.__unstableStripHTML)(m):(0,At.__)("Search"),ref:G,children:(0,wt.jsx)(fa,{icon:zNe})}),!g&&(0,wt.jsx)(so.RichText,{identifier:"buttonText",className:se,style:he,"aria-label":(0,At.__)("Button text"),placeholder:(0,At.__)("Add button text\u2026"),withoutInteractiveFormatting:!0,value:m,onChange:ze=>r({buttonText:ze})})]})},Z=ee(),U=(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(so.InspectorControls,{children:(0,wt.jsxs)(mr.__experimentalToolsPanel,{label:(0,At.__)("Settings"),resetAll:()=>{r({width:void 0,widthUnit:void 0,showLabel:!0,buttonUseIcon:!1,buttonPosition:"button-outside"})},dropdownMenuProps:Z,children:[(0,wt.jsx)(mr.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,At.__)("Show label"),onDeselect:()=>{r({showLabel:!0})},isShownByDefault:!0,children:(0,wt.jsx)(mr.ToggleControl,{checked:l,label:(0,At.__)("Show label"),onChange:se=>r({showLabel:se})})}),(0,wt.jsx)(mr.__experimentalToolsPanelItem,{hasValue:()=>f!=="button-outside",label:(0,At.__)("Button position"),onDeselect:()=>{r({buttonPosition:"button-outside"})},isShownByDefault:!0,children:(0,wt.jsx)(mr.SelectControl,{value:f,label:(0,At.__)("Button position"),onChange:se=>{r({buttonPosition:se})},options:K})}),f!=="no-button"&&(0,wt.jsx)(mr.__experimentalToolsPanelItem,{hasValue:()=>!!g,label:(0,At.__)("Use button with icon"),onDeselect:()=>{r({buttonUseIcon:!1})},isShownByDefault:!0,children:(0,wt.jsx)(mr.ToggleControl,{checked:g,label:(0,At.__)("Use button with icon"),onChange:se=>r({buttonUseIcon:se})})}),(0,wt.jsx)(mr.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,At.__)("Width"),onDeselect:()=>{r({width:void 0,widthUnit:void 0})},isShownByDefault:!0,children:(0,wt.jsxs)(mr.__experimentalVStack,{children:[(0,wt.jsx)(mr.__experimentalUnitControl,{label:(0,At.__)("Width"),id:N,min:rV(d)?0:tV,max:rV(d)?100:void 0,step:1,onChange:se=>{let he=se===""?void 0:parseInt(se,10);r({width:he})},onUnitChange:se=>{r({width:se==="%"?JF:eV,widthUnit:se})},__unstableInputWidth:"80px",value:`${u}${d}`,units:$}),(0,wt.jsx)(mr.__experimentalToggleGroupControl,{label:(0,At.__)("Percentage Width"),value:Nge.includes(u)&&d==="%"?u:void 0,hideLabelFromVision:!0,onChange:se=>{r({width:se,widthUnit:"%"})},isBlock:!0,children:Nge.map(se=>(0,wt.jsx)(mr.__experimentalToggleGroupControlOption,{value:se,label:(0,At.sprintf)((0,At.__)("%d%%"),se)},se))})]})})]})}),(0,wt.jsx)(so.InspectorControls,{group:"advanced",children:(0,wt.jsx)(mr.SelectControl,{label:(0,At.__)("HTML element"),value:h??"",options:[{label:(0,At.__)("Default"),value:""},{label:"<search>",value:"search"},{label:"<form>",value:"form"}],onChange:se=>{r({tagName:se}),(0,Rge.speak)(Bge[se].replace(/[<>]/g,""))},help:Bge[h??""]})})]}),X=se=>se!==void 0&&parseInt(se,10)!==0,Q=se=>X(se)?`calc(${se} + ${Ige})`:void 0,ie=()=>{let se=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 w=="object"){let{borderTopLeftRadius:ze,borderTopRightRadius:qe,borderBottomLeftRadius:ce,borderBottomRightRadius:ge}=x.style;return{...se,borderTopLeftRadius:Q(ze),borderTopRightRadius:Q(qe),borderBottomLeftRadius:Q(ce),borderBottomRightRadius:Q(ge)}}let he=Number.isInteger(w)?`${w}px`:w;se.borderRadius=`calc(${he} + ${Ige})`}return se},me=(0,so.useBlockProps)({className:z(),style:{...P.style,textDecoration:void 0}}),xe=T("wp-block-search__label",P.className);return(0,wt.jsxs)(wt.Fragment,{children:[U,(0,wt.jsxs)(h==="search"?"search":"div",{...me,children:[l&&(0,wt.jsx)(so.RichText,{identifier:"label",className:xe,"aria-label":(0,At.__)("Label text"),placeholder:(0,At.__)("Add label\u2026"),withoutInteractiveFormatting:!0,value:s,onChange:se=>r({label:se}),style:P.style}),(0,wt.jsxs)(mr.ResizableBox,{size:{width:u===void 0?"auto":`${u}${d}`,height:"auto"},className:T("wp-block-search__inside-wrapper",E?x.className:void 0),style:ie(),minWidth:tV,enable:q(),onResizeStart:(se,he,ze)=>{r({width:parseInt(ze.offsetWidth,10),widthUnit:"px"}),o(!1)},onResizeStop:(se,he,ze,qe)=>{r({width:parseInt(u+qe.width,10)}),o(!0)},showHandle:n,children:[(E||M||O)&&(0,wt.jsxs)(wt.Fragment,{children:[Y(),oe()]}),R&&Y()]})]})]})}var oV=a(L(),1),HNe=[{name:"default",isDefault:!0,attributes:{buttonText:(0,oV.__)("Search"),label:(0,oV.__)("Search")}}],Age=HNe;var{name:Oge}=i8,Fge={icon:qI,example:{attributes:{buttonText:(0,nV.__)("Search"),label:(0,nV.__)("Search")},viewportWidth:400},variations:Age,edit:Dge},jNe=()=>D({name:Oge,metadata:i8,settings:Fge});var iV={};J(iV,{init:()=>qNe,metadata:()=>u8,name:()=>qge,settings:()=>Zge});var Up=a(I(),1),c8=a(F(),1),Xx=a(L(),1);var Qx=a(W(),1),Vge=a(_e(),1);function zge(e,t,r){let[o,n]=(0,Qx.useState)(!1),i=(0,Vge.usePrevious)(t);(0,Qx.useEffect)(()=>{e==="css"&&!t&&!i&&n(!0)},[t,i,e]),(0,Qx.useEffect)(()=>{e==="css"&&(o&&t||i&&t!==i)&&(r({opacity:"alpha-channel"}),n(!1))},[o,t,i])}var ad=a(y(),1),UNe=({tagName:e,setAttributes:t})=>(0,ad.jsx)(c8.SelectControl,{label:(0,Xx.__)("HTML element"),value:e,onChange:r=>t({tagName:r}),options:[{label:(0,Xx.__)("Default (<hr>)"),value:"hr"},{label:"<div>",value:"div"}],help:e==="hr"?(0,Xx.__)("Only select <hr> if the separator conveys important information and should be announced by screen readers."):(0,Xx.__)("The <div> element should only be used if the block is a design element with no semantic meaning.")});function Hge({attributes:e,setAttributes:t}){let{backgroundColor:r,opacity:o,style:n,tagName:i}=e,s=(0,Up.__experimentalUseColorProps)(e),l=s?.style?.backgroundColor,c=!!n?.color?.background;zge(o,l,t);let u=(0,Up.getColorClassName)("color",r),d=T({"has-text-color":r||l,[u]:u,"has-css-opacity":o==="css","has-alpha-channel-opacity":o==="alpha-channel"},s.className);return(0,ad.jsxs)(ad.Fragment,{children:[(0,ad.jsx)(Up.InspectorControls,{group:"advanced",children:(0,ad.jsx)(UNe,{tagName:i,setAttributes:t})}),(0,ad.jsx)(i==="hr"?c8.HorizontalRule:i,{...(0,Up.useBlockProps)({className:d,style:c?{color:l,backgroundColor:l}:void 0})})]})}var u8={$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 U0=a(I(),1),jge=a(y(),1);function Uge({attributes:e}){let{backgroundColor:t,style:r,opacity:o,tagName:n}=e,i=r?.color?.background,s=(0,U0.__experimentalGetColorClassesAndStyles)(e),l=(0,U0.getColorClassName)("color",t),c=T({"has-text-color":t||i,[l]:l,"has-css-opacity":o==="css","has-alpha-channel-opacity":o==="alpha-channel"},s.className),u={backgroundColor:s?.style?.backgroundColor,color:l?void 0:i};return(0,jge.jsx)(n,{...U0.useBlockProps.save({className:c,style:u})})}var Wp=a(te(),1),GNe={from:[{type:"input",regExp:/^-{3,}$/,transform:()=>{let e=(0,Wp.getBlockVariations)("core/separator")?.find(t=>t.isDefault);return[(0,Wp.createBlock)("core/separator",e?.attributes??{}),(0,Wp.createBlock)((0,Wp.getDefaultBlockName)())]}},{type:"raw",selector:"hr",schema:{hr:{}}}],to:[{type:"block",blocks:["core/spacer"],transform:({anchor:e})=>(0,Wp.createBlock)("core/spacer",{anchor:e||void 0})}]},Wge=GNe;var Jx=a(I(),1),Gge=a(y(),1),$Ne={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){let{color:t,customColor:r}=e,o=(0,Jx.getColorClassName)("background-color",t),n=(0,Jx.getColorClassName)("color",t),i=T({"has-text-color has-background":t||r,[o]:o,[n]:n}),s={backgroundColor:o?void 0:r,color:n?void 0:r};return(0,Gge.jsx)("hr",{...Jx.useBlockProps.save({className:i,style:s})})},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"}}},$ge=[$Ne];var{name:qge}=u8,Zge={icon:KI,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:Wge,edit:Hge,save:Uge,deprecated:$ge},qNe=()=>D({name:qge,metadata:u8,settings:Zge});var lV={};J(lV,{init:()=>XNe,metadata:()=>h8,name:()=>ihe,settings:()=>she});var d8=a(L(),1),m8=a(I(),1),Kge=a(_e(),1),Yge=a(F(),1);var p8=a(y(),1);function sV({attributes:e,setAttributes:t}){let o=`blocks-shortcode-input-${(0,Kge.useInstanceId)(sV)}`;return(0,p8.jsx)("div",{...(0,m8.useBlockProps)(),children:(0,p8.jsx)(Yge.Placeholder,{icon:Ov,label:(0,d8.__)("Shortcode"),children:(0,p8.jsx)(m8.PlainText,{className:"blocks-shortcode__textarea",id:o,value:e.text,"aria-label":(0,d8.__)("Shortcode text"),placeholder:(0,d8.__)("Write shortcode here\u2026"),onChange:n=>t({text:n})})})})}var Qge=a(W(),1),Xge=a(y(),1);function Jge({attributes:e}){return(0,Xge.jsx)(Qge.RawHTML,{children:e.text})}var f8=a(the(),1),g8=a(te(),1),nhe=a(ohe(),1),ZNe=()=>(0,g8.getBlockTransforms)("from").filter(e=>e.type==="shortcode"&&e.blockName!=="core/shortcode"),KNe=(e,t)=>{let r=e.trim(),o=(0,nhe.next)(t,r);return!!o&&o.index===0&&o.content.length===r.length},YNe={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,f8.removep)((0,f8.autop)(t))}},priority:20}],get to(){return ZNe().map(e=>({type:"block",blocks:[e.blockName],isMatch:({text:t=""})=>[].concat(e.tag).some(r=>KNe(t,r)),transform:({text:t=""})=>(0,g8.rawHandler)({HTML:`<p>${t.trim()}</p>`})}))}},ahe=YNe;var h8={$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:ihe}=h8,she={icon:Ov,transforms:ahe,edit:sV,save:Jge},XNe=()=>D({name:ihe,metadata:h8,settings:she});var uV={};J(uV,{init:()=>nMe,metadata:()=>b8,name:()=>mhe,settings:()=>fhe});var b8={$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 cV=a(Ur(),1),eu=a(W(),1),_o=a(L(),1),Ot=a(F(),1),lhe=a(_e(),1),xo=a(I(),1),Gp=a(H(),1),W0=a(ae(),1);var che=a(br(),1);var $e=a(y(),1),y8=["image"],{mediaEditKey:eMe,openMediaEditorModalKey:tMe}=le(xo.privateApis),rMe=({alt:e,attributes:{align:t,width:r,height:o,isLink:n,linkTarget:i,shouldSyncIcon:s},isSelected:l,setAttributes:c,setLogo:u,logoUrl:d,siteUrl:p,logoId:m,iconId:f,setIcon:g,canUserEdit:h})=>{let b=(0,lhe.useViewportMatch)("medium"),v=!["wide","full"].includes(t)&&b,[{naturalWidth:w,naturalHeight:x},k]=(0,eu.useState)({}),C=(0,eu.useRef)(),{toggleSelection:S,__unstableMarkNextChangeAsNotPersistent:P}=(0,Gp.useDispatch)(xo.store),B=ee(),E=(0,xo.useBlockEditingMode)()==="contentOnly",{imageEditing:M,maxWidth:R,title:O,editMediaEntity:j,openMediaEditorModal:V}=(0,Gp.useSelect)(ce=>{let ge=ce(xo.store).getSettings();return{title:ce(W0.store).getEntityRecord("root","__unstableBase")?.name,imageEditing:ge.imageEditing,maxWidth:ge.maxWidth,editMediaEntity:ge?.[eMe],openMediaEditorModal:ge?.[tMe]}},[]);(0,eu.useEffect)(()=>{s&&m!==f&&(P(),c({shouldSyncIcon:!1}))},[]);let G=({id:ce})=>{typeof ce=="number"&&u(ce)};function $(){S(!1)}function z(){S(!0)}let K=(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)("img",{className:"custom-logo",src:d,alt:e,onLoad:ce=>{k({naturalWidth:ce.target.naturalWidth,naturalHeight:ce.target.naturalHeight})}}),(0,cV.isBlobURL)(d)&&(0,$e.jsx)(Ot.Spinner,{})]}),q=K;if(n&&(q=(0,$e.jsx)("a",{href:p,className:"custom-logo-link",rel:"home",title:O,onClick:ce=>ce.preventDefault(),children:K})),!v||!w||!x)return(0,$e.jsx)("div",{style:{width:r,height:o},children:q});let Y=120,oe=r||Y,Z=w/x,U=oe/Z,X=w<x?Tc:Math.ceil(Tc*Z),Q=x<w?Tc:Math.ceil(Tc/Z),ie=R*2.5,me=!1,xe=!1;t==="center"?(me=!0,xe=!0):(0,_o.isRTL)()?t==="left"?me=!0:xe=!0:t==="right"?xe=!0:me=!0;let Be=m&&w&&x&&M&&!!j,se=!E,ze=!window?.__experimentalUseCustomizerSiteLogoUrl?p+"/wp-admin/options-general.php":p+"/wp-admin/customize.php?autofocus[section]=title_tagline",qe=(0,eu.createInterpolateElement)((0,_o.__)("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,$e.jsx)("a",{href:ze,target:"_blank",rel:"noopener"})});return(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)(xo.InspectorControls,{children:(0,$e.jsxs)(Ot.__experimentalToolsPanel,{label:(0,_o.__)("Settings"),dropdownMenuProps:B,children:[(0,$e.jsx)(Ot.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!r,label:(0,_o.__)("Image width"),onDeselect:()=>c({width:void 0}),children:(0,$e.jsx)(Ot.RangeControl,{label:(0,_o.__)("Image width"),onChange:ce=>c({width:ce}),min:X,max:ie,initialPosition:Math.min(Y,ie),value:r||"",disabled:!v})}),(0,$e.jsx)(Ot.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!n,label:(0,_o.__)("Link image to home"),onDeselect:()=>c({isLink:!0}),children:(0,$e.jsx)(Ot.ToggleControl,{label:(0,_o.__)("Link image to home"),onChange:()=>c({isLink:!n}),checked:n})}),n&&(0,$e.jsx)(Ot.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>i==="_blank",label:(0,_o.__)("Open in new tab"),onDeselect:()=>c({linkTarget:"_self"}),children:(0,$e.jsx)(Ot.ToggleControl,{label:(0,_o.__)("Open in new tab"),onChange:ce=>c({linkTarget:ce?"_blank":"_self"}),checked:i==="_blank"})}),h&&(0,$e.jsx)(Ot.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!s,label:(0,_o.__)("Use as Site Icon"),onDeselect:()=>{c({shouldSyncIcon:!1}),g(void 0)},children:(0,$e.jsx)(Ot.ToggleControl,{label:(0,_o.__)("Use as Site Icon"),onChange:ce=>{c({shouldSyncIcon:ce}),g(ce?m:void 0)},checked:!!s,help:qe})})]})}),Be&&V&&se&&(0,$e.jsx)(xo.BlockControls,{group:"block",children:(0,$e.jsx)(Ot.ToolbarButton,{ref:C,onClick:()=>V({id:m,onUpdate:G,onClose:()=>C.current?.focus()}),"aria-haspopup":"dialog",icon:pm,label:(0,_o.__)("Edit image")})}),(0,$e.jsx)(Ot.ResizableBox,{size:{width:oe,height:U},showHandle:l&&se,minWidth:X,maxWidth:ie,minHeight:Q,maxHeight:ie/Z,lockAspectRatio:!0,enable:{top:!1,right:me,bottom:!0,left:xe},onResizeStart:$,onResizeStop:(ce,ge,Qe,ye)=>{z(),c({width:parseInt(oe+ye.width,10),height:parseInt(U+ye.height,10)})},children:q})]})};function uhe({attributes:e,className:t,setAttributes:r,isSelected:o}){let{width:n,shouldSyncIcon:i}=e,{siteLogoId:s,canUserEdit:l,url:c,siteIconId:u,mediaItemData:d,isRequestingMediaItem:p}=(0,Gp.useSelect)(z=>{let{canUser:K,getEntityRecord:q,getEditedEntityRecord:Y}=z(W0.store),oe=K("update",{kind:"root",name:"site"}),Z=oe?Y("root","site"):void 0,U=q("root","__unstableBase"),X=oe?Z?.site_logo:U?.site_logo,Q=Z?.site_icon,ie=X&&z(W0.store).getEntityRecord("postType","attachment",X,{context:"view"}),me=!!X&&!z(W0.store).hasFinishedResolution("getEntityRecord",["postType","attachment",X,{context:"view"}]);return{siteLogoId:X,canUserEdit:oe,url:U?.home,mediaItemData:ie,isRequestingMediaItem:me,siteIconId:Q}},[]),{getSettings:m}=(0,Gp.useSelect)(xo.store),[f,g]=(0,eu.useState)(),h=ee(),{editEntityRecord:b}=(0,Gp.useDispatch)(W0.store),_=(z,K=!1)=>{(i||K)&&v(z),b("root","site",void 0,{site_logo:z})},v=z=>b("root","site",void 0,{site_icon:z??null}),{alt_text:w,source_url:x}=d??{},k=z=>{if(i===void 0){let K=!u;r({shouldSyncIcon:K}),C(z,K);return}C(z)},C=(z,K=!1)=>{if(z){if(!z.id&&z.url){g(z.url),_(void 0);return}_(z.id,K)}},S=()=>{_(null),r({width:void 0})},{createErrorNotice:P}=(0,Gp.useDispatch)(che.store),B=z=>{P(z,{type:"snackbar"}),g()},N=z=>{m().mediaUpload({allowedTypes:y8,filesList:z,onFileChange([K]){if((0,cV.isBlobURL)(K?.url)){g(K.url);return}k(K)},onError:B,multiple:!1})},E={mediaURL:x,name:x?(0,_o.__)("Replace"):(0,_o.__)("Choose logo"),onSelect:C,onError:B,onReset:S},M=l&&(0,$e.jsx)(xo.BlockControls,{group:"other",children:(0,$e.jsx)(xo.MediaReplaceFlow,{...E,allowedTypes:y8,variant:"toolbar"})}),R,O=s===void 0||p;O&&(R=(0,$e.jsx)(Ot.Spinner,{})),(0,eu.useEffect)(()=>{x&&f&&g()},[x,f]),(x||f)&&(R=(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)(rMe,{alt:w,attributes:e,className:t,isSelected:o,setAttributes:r,logoUrl:f||x,setLogo:_,logoId:d?.id||s,siteUrl:c,setIcon:v,iconId:u,canUserEdit:l}),l&&(0,$e.jsx)(Ot.DropZone,{onFilesDrop:N})]}));let j=z=>{let K=T("block-editor-media-placeholder",t);return(0,$e.jsx)(Ot.Placeholder,{className:K,preview:R,withIllustration:!0,style:{width:n},children:z})},V=T(t,{"is-default-size":!n,"is-transient":f}),G=(0,xo.useBlockProps)({className:V}),$=(l||x)&&(0,$e.jsx)(xo.InspectorControls,{children:(0,$e.jsx)(Ot.__experimentalToolsPanel,{label:(0,_o.__)("Media"),dropdownMenuProps:h,children:l?(0,$e.jsx)(Ot.__experimentalToolsPanelItem,{hasValue:()=>!!x,label:(0,_o.__)("Logo"),isShownByDefault:!0,children:(0,$e.jsx)(Zd,{mediaId:s,mediaUrl:x,filename:d?.media_details?.sizes?.full?.file||d?.slug,allowedTypes:y8,onSelect:C,onError:B,onReset:S,isUploading:!!f,emptyLabel:(0,_o.__)("Logo")})}):(0,$e.jsx)("div",{className:"block-library-site-logo__inspector-media-replace-container",style:{gridColumn:"1 / -1"},children:(0,$e.jsx)(IR,{url:d?.source_url,filename:d?.media_details?.sizes?.full?.file||d?.slug,itemGroupProps:{isBordered:!0,className:"block-library-site-logo__inspector-readonly-logo-preview"},className:"block-library-site-logo__inspector-media-replace-title"})})})});return(0,$e.jsxs)("div",{...G,children:[M,$,(!!x||!!f)&&R,(O||!f&&!x&&!l)&&(0,$e.jsx)(Ot.Placeholder,{className:"site-logo_placeholder",withIllustration:!0,children:O&&(0,$e.jsx)("span",{className:"components-placeholder__preview",children:(0,$e.jsx)(Ot.Spinner,{})})}),!O&&!f&&!x&&l&&(0,$e.jsx)(xo.MediaPlaceholder,{onSelect:k,allowedTypes:y8,onError:B,placeholder:j,mediaLibraryButton:({open:z})=>(0,$e.jsx)(Ot.Button,{__next40pxDefaultSize:!0,icon:vu,variant:"primary",label:(0,_o.__)("Choose logo"),showTooltip:!0,tooltipPosition:"middle right",onClick:()=>{z()}})})]})}var dhe=a(te(),1),oMe={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,dhe.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]},phe=oMe;var{name:mhe}=b8,fhe={icon:eN,example:{},edit:uhe,transforms:phe},nMe=()=>D({name:mhe,metadata:b8,settings:fhe});var pV={};J(pV,{init:()=>lMe,metadata:()=>v8,name:()=>vhe,settings:()=>_he});var v8={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},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,fitText:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},shadow:!0},editorStyle:"wp-block-site-tagline-editor",style:"wp-block-site-tagline"};var ghe=a(H(),1),x8=a(ae(),1),$p=a(I(),1),_8=a(L(),1),k8=a(te(),1);var id=a(y(),1);function hhe(e){Pt(e);let{attributes:t,setAttributes:r,insertBlocksAfter:o}=e,{level:n,levelOptions:i}=t,s=(0,ghe.useSelect)(m=>m(x8.store).canUser("update",{kind:"root",name:"site"}),[]),[l,c]=(0,x8.useEntityProp)("root",s?"site":"__unstableBase","description",void 0),u=n===0?"p":`h${n}`,d=(0,$p.useBlockProps)({className:!s&&!l&&"wp-block-site-tagline__placeholder"}),p=s?(0,id.jsx)($p.RichText,{allowedFormats:[],onChange:c,"aria-label":(0,_8.__)("Site tagline text"),placeholder:(0,_8.__)("Write site tagline\u2026"),tagName:u,value:l,disableLineBreaks:!0,__unstableOnSplitAtEnd:o?()=>o((0,k8.createBlock)((0,k8.getDefaultBlockName)())):void 0,...d}):(0,id.jsx)(u,{...d,children:l||(0,_8.__)("Site Tagline placeholder")});return(0,id.jsxs)(id.Fragment,{children:[(0,id.jsx)($p.BlockControls,{group:"block",children:(0,id.jsx)($p.HeadingLevelDropdown,{value:n,options:i,onChange:m=>r({level:m})})}),p]})}var w8=a(F(),1),dV=a(y(),1),bhe=(0,dV.jsx)(w8.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",children:(0,dV.jsx)(w8.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"})});var iMe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},sMe={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:or,isEligible({style:e}){return e?.typography?.fontFamily}},yhe=[iMe,sMe];var{name:vhe}=v8,_he={icon:bhe,edit:hhe,deprecated:yhe},lMe=()=>D({name:vhe,metadata:v8,settings:_he});var fV={};J(fV,{init:()=>mMe,metadata:()=>C8,name:()=>The,settings:()=>Ehe});var C8={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},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,fitText:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},shadow:!0},editorStyle:"wp-block-site-title-editor",style:"wp-block-site-title"};var xhe=a(H(),1),S8=a(ae(),1),tu=a(L(),1),Xs=a(I(),1),qp=a(F(),1),mV=a($o(),1);var rn=a(y(),1);function khe(e){Pt(e);let{attributes:t,setAttributes:r}=e,{level:o,levelOptions:n,isLink:i,linkTarget:s}=t,l=(0,xhe.useSelect)(h=>h(S8.store).canUser("update",{kind:"root",name:"site"}),[]),[c,u]=(0,S8.useEntityProp)("root",l?"site":"__unstableBase",l?"title":"name",void 0),d=ee(),p=(0,Xs.useBlockEditingMode)(),m=o===0?"p":`h${o}`,f=(0,Xs.useBlockProps)({className:!l&&!c&&"wp-block-site-title__placeholder"}),g=l?(0,rn.jsx)(m,{...f,children:(0,rn.jsx)(Xs.RichText,{tagName:i?"a":"span",href:i?"#site-title-pseudo-link":void 0,"aria-label":(0,tu.__)("Site title text"),placeholder:(0,tu.__)("Write site title\u2026"),value:c,onChange:h=>u(h.trim()),allowedFormats:[],disableLineBreaks:!0})}):(0,rn.jsx)(m,{...f,children:i?(0,rn.jsx)("a",{href:"#site-title-pseudo-link",onClick:h=>h.preventDefault(),children:(0,mV.decodeEntities)(c)||(0,tu.__)("Site Title placeholder")}):(0,rn.jsx)("span",{children:(0,mV.decodeEntities)(c)||(0,tu.__)("Site Title placeholder")})});return(0,rn.jsxs)(rn.Fragment,{children:[p==="default"&&(0,rn.jsx)(Xs.BlockControls,{group:"block",children:(0,rn.jsx)(Xs.HeadingLevelDropdown,{value:o,options:n,onChange:h=>r({level:h})})}),(0,rn.jsx)(Xs.InspectorControls,{children:(0,rn.jsxs)(qp.__experimentalToolsPanel,{label:(0,tu.__)("Settings"),resetAll:()=>{r({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:d,children:[(0,rn.jsx)(qp.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,tu.__)("Make title link to home"),onDeselect:()=>r({isLink:!0}),isShownByDefault:!0,children:(0,rn.jsx)(qp.ToggleControl,{label:(0,tu.__)("Make title link to home"),onChange:()=>r({isLink:!i}),checked:i})}),i&&(0,rn.jsx)(qp.__experimentalToolsPanelItem,{hasValue:()=>s!=="_self",label:(0,tu.__)("Open in new tab"),onDeselect:()=>r({linkTarget:"_self"}),isShownByDefault:!0,children:(0,rn.jsx)(qp.ToggleControl,{label:(0,tu.__)("Open in new tab"),onChange:h=>r({linkTarget:h?"_blank":"_self"}),checked:s==="_blank"})})]})}),g]})}var uMe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},dMe={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:or,isEligible({style:e}){return e?.typography?.fontFamily}},whe=[uMe,dMe];var Che=a(te(),1),pMe={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,Che.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]},She=pMe;var{name:The}=C8,Ehe={icon:HB,example:{viewportWidth:350,attributes:{style:{typography:{textAlign:"center"}}}},edit:khe,transforms:She,deprecated:whe},mMe=()=>D({name:The,metadata:C8,settings:Ehe});var uz={};J(uz,{init:()=>bMe,metadata:()=>xT,name:()=>E1e,settings:()=>P1e});var G0=a(fc(),1),_T=a(H(),1),Aa=a(I(),1),vg=a(W(),1),ko=a(F(),1),k1e=a(_e(),1),bi=a(L(),1);var w1e=a(te(),1);var cz=a(L(),1);var T8=a(A(),1),gV=a(y(),1),Phe=()=>(0,gV.jsx)(T8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,gV.jsx)(T8.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 E8=a(A(),1),hV=a(y(),1),Bhe=()=>(0,hV.jsx)(E8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,hV.jsx)(E8.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"})});var P8=a(A(),1),bV=a(y(),1),Ihe=()=>(0,bV.jsx)(P8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,bV.jsx)(P8.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 B8=a(A(),1),yV=a(y(),1),Nhe=()=>(0,yV.jsx)(B8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,yV.jsx)(B8.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 I8=a(A(),1),vV=a(y(),1),ek=()=>(0,vV.jsx)(I8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,vV.jsx)(I8.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 N8=a(A(),1),_V=a(y(),1),Mhe=()=>(0,_V.jsx)(N8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,_V.jsx)(N8.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 M8=a(A(),1),xV=a(y(),1),Lhe=()=>(0,xV.jsx)(M8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,xV.jsx)(M8.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 L8=a(A(),1),kV=a(y(),1),Rhe=()=>(0,kV.jsx)(L8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,kV.jsx)(L8.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 R8=a(A(),1),wV=a(y(),1),Dhe=()=>(0,wV.jsx)(R8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,wV.jsx)(R8.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=a(A(),1),CV=a(y(),1),Ahe=()=>(0,CV.jsx)(D8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,CV.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 A8=a(A(),1),SV=a(y(),1),Ohe=()=>(0,SV.jsx)(A8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,SV.jsx)(A8.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 O8=a(A(),1),TV=a(y(),1),Fhe=()=>(0,TV.jsx)(O8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,TV.jsx)(O8.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 F8=a(A(),1),EV=a(y(),1),Vhe=()=>(0,EV.jsx)(F8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,EV.jsx)(F8.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=a(A(),1),PV=a(y(),1),zhe=()=>(0,PV.jsx)(V8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,PV.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 z8=a(A(),1),BV=a(y(),1),Hhe=()=>(0,BV.jsx)(z8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,BV.jsx)(z8.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 H8=a(A(),1),IV=a(y(),1),jhe=()=>(0,IV.jsx)(H8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,IV.jsx)(H8.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 j8=a(A(),1),NV=a(y(),1),Uhe=()=>(0,NV.jsx)(j8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,NV.jsx)(j8.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 U8=a(A(),1),MV=a(y(),1),Whe=()=>(0,MV.jsx)(U8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,MV.jsx)(U8.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 W8=a(A(),1),LV=a(y(),1),Ghe=()=>(0,LV.jsx)(W8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,LV.jsx)(W8.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 G8=a(A(),1),RV=a(y(),1),$he=()=>(0,RV.jsx)(G8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,RV.jsx)(G8.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 $8=a(A(),1),DV=a(y(),1),qhe=()=>(0,DV.jsx)($8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,DV.jsx)($8.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 q8=a(A(),1),AV=a(y(),1),Zhe=()=>(0,AV.jsx)(q8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,AV.jsx)(q8.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 Z8=a(A(),1),OV=a(y(),1),Khe=()=>(0,OV.jsx)(Z8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,OV.jsx)(Z8.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 K8=a(A(),1),FV=a(y(),1),Yhe=()=>(0,FV.jsx)(K8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,FV.jsx)(K8.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 Y8=a(A(),1),VV=a(y(),1),Qhe=()=>(0,VV.jsx)(Y8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,VV.jsx)(Y8.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 Q8=a(A(),1),zV=a(y(),1),Xhe=()=>(0,zV.jsx)(Q8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,zV.jsx)(Q8.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 X8=a(A(),1),HV=a(y(),1),Jhe=()=>(0,HV.jsx)(X8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,HV.jsx)(X8.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 J8=a(A(),1),jV=a(y(),1),e1e=()=>(0,jV.jsx)(J8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,jV.jsx)(J8.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 eT=a(A(),1),UV=a(y(),1),t1e=()=>(0,UV.jsx)(eT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,UV.jsx)(eT.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 tT=a(A(),1),WV=a(y(),1),r1e=()=>(0,WV.jsx)(tT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,WV.jsx)(tT.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 rT=a(A(),1),GV=a(y(),1),o1e=()=>(0,GV.jsx)(rT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,GV.jsx)(rT.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 oT=a(A(),1),$V=a(y(),1),n1e=()=>(0,$V.jsx)(oT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,$V.jsx)(oT.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 nT=a(A(),1),qV=a(y(),1),a1e=()=>(0,qV.jsx)(nT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,qV.jsx)(nT.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 aT=a(A(),1),ZV=a(y(),1),i1e=()=>(0,ZV.jsx)(aT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,ZV.jsx)(aT.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 iT=a(A(),1),KV=a(y(),1),s1e=()=>(0,KV.jsx)(iT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,KV.jsx)(iT.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 sT=a(A(),1),YV=a(y(),1),l1e=()=>(0,YV.jsx)(sT.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1",children:(0,YV.jsx)(sT.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 lT=a(A(),1),QV=a(y(),1),c1e=()=>(0,QV.jsx)(lT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,QV.jsx)(lT.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 cT=a(A(),1),XV=a(y(),1),u1e=()=>(0,XV.jsx)(cT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,XV.jsx)(cT.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 uT=a(A(),1),JV=a(y(),1),d1e=()=>(0,JV.jsx)(uT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,JV.jsx)(uT.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 dT=a(A(),1),ez=a(y(),1),p1e=()=>(0,ez.jsx)(dT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,ez.jsx)(dT.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 pT=a(A(),1),tz=a(y(),1),m1e=()=>(0,tz.jsx)(pT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,tz.jsx)(pT.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 mT=a(A(),1),rz=a(y(),1),f1e=()=>(0,rz.jsx)(mT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,rz.jsx)(mT.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 fT=a(A(),1),oz=a(y(),1),g1e=()=>(0,oz.jsx)(fT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,oz.jsx)(fT.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 gT=a(A(),1),nz=a(y(),1),h1e=()=>(0,nz.jsx)(gT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,nz.jsx)(gT.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 hT=a(A(),1),az=a(y(),1),b1e=()=>(0,az.jsx)(hT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,az.jsx)(hT.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 bT=a(A(),1),iz=a(y(),1),y1e=()=>(0,iz.jsx)(bT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,iz.jsx)(bT.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 yT=a(A(),1),sz=a(y(),1),v1e=()=>(0,sz.jsx)(yT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,sz.jsx)(yT.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 vT=a(A(),1),lz=a(y(),1),_1e=()=>(0,lz.jsx)(vT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,lz.jsx)(vT.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 x1e(e){return e?.name?{icon:e?.icon??ek,label:e?.title??(0,cz.__)("Social Icon")}:{icon:ek,label:(0,cz.__)("Social Icon")}}var dr=a(y(),1),fMe=({url:e,setAttributes:t,setPopover:r,popoverAnchor:o,clientId:n})=>{let{removeBlock:i}=(0,_T.useDispatch)(Aa.store);return(0,dr.jsx)(Aa.URLPopover,{anchor:o,"aria-label":(0,bi.__)("Edit social link"),onClose:()=>{r(!1),o?.focus()},children:(0,dr.jsx)("form",{className:"block-editor-url-popover__link-editor",onSubmit:s=>{s.preventDefault(),r(!1),o?.focus()},children:(0,dr.jsx)("div",{className:"block-editor-url-input",children:(0,dr.jsx)(Aa.URLInput,{value:e,onChange:s=>t({url:s}),placeholder:(0,bi.__)("Enter social link"),label:(0,bi.__)("Enter social link"),hideLabelFromVision:!0,disableSuggestions:!0,onKeyDown:s=>{e||s.defaultPrevented||![G0.BACKSPACE,G0.DELETE].includes(s.keyCode)||i(n)},suffix:(0,dr.jsx)(ko.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,dr.jsx)(ko.Button,{icon:LB,label:(0,bi.__)("Apply"),type:"submit",size:"small"})})})})})})},gMe=({attributes:e,context:t,isSelected:r,setAttributes:o,clientId:n,name:i})=>{let{url:s,service:l,label:c="",rel:u}=e,d=ee(),{showLabels:p,iconColor:m,iconColorValue:f,iconBackgroundColor:g,iconBackgroundColorValue:h}=t,[b,_]=(0,vg.useState)(!1),v=T("wp-social-link","wp-block-social-link","wp-social-link-"+l,{"wp-social-link__is-incomplete":!s,[`has-${m}-color`]:m,[`has-${g}-background-color`]:g}),[w,x]=(0,vg.useState)(null),k=(0,Aa.useBlockEditingMode)()==="contentOnly",{activeVariation:C}=(0,_T.useSelect)(M=>{let{getActiveBlockVariation:R}=M(w1e.store);return{activeVariation:R(i,e)}},[i,e]),{icon:S,label:P}=x1e(C),B=c.trim()===""?P:c,N=(0,vg.useRef)(),E=(0,Aa.useBlockProps)({className:"wp-block-social-link-anchor",ref:(0,k1e.useMergeRefs)([x,N]),onClick:()=>_(!0),onKeyDown:M=>{M.keyCode===G0.ENTER&&(M.preventDefault(),_(!0))}});return(0,dr.jsxs)(dr.Fragment,{children:[k&&p&&(0,dr.jsx)(Aa.BlockControls,{group:"other",children:(0,dr.jsx)(ko.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:M,onToggle:R})=>(0,dr.jsx)(ko.ToolbarButton,{onClick:R,"aria-haspopup":"true","aria-expanded":M,children:(0,bi.__)("Text")}),renderContent:()=>(0,dr.jsx)(ko.TextControl,{className:"wp-block-social-link__toolbar_content_text",label:(0,bi.__)("Text"),help:(0,bi.__)("Provide a text label or use the default."),value:c,onChange:M=>o({label:M}),placeholder:P})})}),(0,dr.jsx)(Aa.InspectorControls,{children:(0,dr.jsx)(ko.__experimentalToolsPanel,{label:(0,bi.__)("Settings"),resetAll:()=>{o({label:void 0})},dropdownMenuProps:d,children:(0,dr.jsx)(ko.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,bi.__)("Text"),hasValue:()=>!!c,onDeselect:()=>{o({label:void 0})},children:(0,dr.jsx)(ko.TextControl,{label:(0,bi.__)("Text"),help:(0,bi.__)("The text is visible when enabled from the parent Social Icons block."),value:c,onChange:M=>o({label:M}),placeholder:P})})})}),(0,dr.jsx)(Aa.InspectorControls,{group:"advanced",children:(0,dr.jsx)(ko.TextControl,{label:(0,bi.__)("Link relation"),help:(0,vg.createInterpolateElement)((0,bi.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,dr.jsx)(ko.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:u||"",onChange:M=>o({rel:M})})}),(0,dr.jsxs)("li",{role:"presentation",className:v,style:{color:f,backgroundColor:h},children:[(0,dr.jsxs)("button",{"aria-haspopup":"dialog",...E,role:"button",children:[(0,dr.jsx)(ko.Icon,{icon:S}),(0,dr.jsx)("span",{className:T("wp-block-social-link-label",{"screen-reader-text":!p}),children:B})]}),r&&b&&(0,dr.jsx)(fMe,{url:s,setAttributes:o,setPopover:_,popoverAnchor:w,clientId:n})]})]})},C1e=gMe;var xT={$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 We=a(L(),1);var S1e=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:(0,We._x)("WordPress","social link block variation name"),icon:b1e},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:(0,We._x)("500px","social link block variation name"),icon:zhe},{name:"amazon",attributes:{service:"amazon"},title:(0,We._x)("Amazon","social link block variation name"),icon:Phe},{name:"bandcamp",attributes:{service:"bandcamp"},title:(0,We._x)("Bandcamp","social link block variation name"),icon:Bhe},{name:"behance",attributes:{service:"behance"},title:(0,We._x)("Behance","social link block variation name"),icon:Ihe},{name:"bluesky",attributes:{service:"bluesky"},title:(0,We._x)("Bluesky","social link block variation name"),icon:Nhe},{name:"chain",attributes:{service:"chain"},title:(0,We._x)("Link","social link block variation name"),icon:ek},{name:"codepen",attributes:{service:"codepen"},title:(0,We._x)("CodePen","social link block variation name"),icon:Mhe},{name:"deviantart",attributes:{service:"deviantart"},title:(0,We._x)("DeviantArt","social link block variation name"),icon:Lhe},{name:"discord",attributes:{service:"discord"},title:(0,We._x)("Discord","social link block variation name"),icon:Rhe},{name:"dribbble",attributes:{service:"dribbble"},title:(0,We._x)("Dribbble","social link block variation name"),icon:Dhe},{name:"dropbox",attributes:{service:"dropbox"},title:(0,We._x)("Dropbox","social link block variation name"),icon:Ahe},{name:"etsy",attributes:{service:"etsy"},title:(0,We._x)("Etsy","social link block variation name"),icon:Ohe},{name:"facebook",attributes:{service:"facebook"},title:(0,We._x)("Facebook","social link block variation name"),icon:Fhe},{name:"feed",attributes:{service:"feed"},title:(0,We._x)("RSS Feed","social link block variation name"),icon:Vhe},{name:"flickr",attributes:{service:"flickr"},title:(0,We._x)("Flickr","social link block variation name"),icon:Hhe},{name:"foursquare",attributes:{service:"foursquare"},title:(0,We._x)("Foursquare","social link block variation name"),icon:jhe},{name:"goodreads",attributes:{service:"goodreads"},title:(0,We._x)("Goodreads","social link block variation name"),icon:Uhe},{name:"google",attributes:{service:"google"},title:(0,We._x)("Google","social link block variation name"),icon:Whe},{name:"github",attributes:{service:"github"},title:(0,We._x)("GitHub","social link block variation name"),icon:Ghe},{name:"gravatar",attributes:{service:"gravatar"},title:(0,We._x)("Gravatar","social link block variation name"),icon:$he},{name:"instagram",attributes:{service:"instagram"},title:(0,We._x)("Instagram","social link block variation name"),icon:qhe},{name:"lastfm",attributes:{service:"lastfm"},title:(0,We._x)("Last.fm","social link block variation name"),icon:Zhe},{name:"linkedin",attributes:{service:"linkedin"},title:(0,We._x)("LinkedIn","social link block variation name"),icon:Khe},{name:"mail",attributes:{service:"mail"},title:(0,We._x)("Mail","social link block variation name"),keywords:["email","e-mail"],icon:Yhe},{name:"mastodon",attributes:{service:"mastodon"},title:(0,We._x)("Mastodon","social link block variation name"),icon:Qhe},{name:"meetup",attributes:{service:"meetup"},title:(0,We._x)("Meetup","social link block variation name"),icon:Xhe},{name:"medium",attributes:{service:"medium"},title:(0,We._x)("Medium","social link block variation name"),icon:Jhe},{name:"patreon",attributes:{service:"patreon"},title:(0,We._x)("Patreon","social link block variation name"),icon:e1e},{name:"pinterest",attributes:{service:"pinterest"},title:(0,We._x)("Pinterest","social link block variation name"),icon:t1e},{name:"pocket",attributes:{service:"pocket"},title:(0,We._x)("Pocket","social link block variation name"),icon:r1e},{name:"reddit",attributes:{service:"reddit"},title:(0,We._x)("Reddit","social link block variation name"),icon:o1e},{name:"skype",attributes:{service:"skype"},title:(0,We._x)("Skype","social link block variation name"),icon:n1e,scope:[]},{name:"snapchat",attributes:{service:"snapchat"},title:(0,We._x)("Snapchat","social link block variation name"),icon:a1e},{name:"soundcloud",attributes:{service:"soundcloud"},title:(0,We._x)("SoundCloud","social link block variation name"),icon:i1e},{name:"spotify",attributes:{service:"spotify"},title:(0,We._x)("Spotify","social link block variation name"),icon:s1e},{name:"telegram",attributes:{service:"telegram"},title:(0,We._x)("Telegram","social link block variation name"),icon:l1e},{name:"threads",attributes:{service:"threads"},title:(0,We._x)("Threads","social link block variation name"),icon:c1e},{name:"tiktok",attributes:{service:"tiktok"},title:(0,We._x)("TikTok","social link block variation name"),icon:u1e},{name:"tumblr",attributes:{service:"tumblr"},title:(0,We._x)("Tumblr","social link block variation name"),icon:d1e},{name:"twitch",attributes:{service:"twitch"},title:(0,We._x)("Twitch","social link block variation name"),icon:p1e},{name:"twitter",attributes:{service:"twitter"},title:(0,We._x)("Twitter","social link block variation name"),icon:m1e},{name:"vimeo",attributes:{service:"vimeo"},title:(0,We._x)("Vimeo","social link block variation name"),icon:f1e},{name:"vk",attributes:{service:"vk"},title:(0,We._x)("VK","social link block variation name"),icon:g1e},{name:"whatsapp",attributes:{service:"whatsapp"},title:(0,We._x)("WhatsApp","social link block variation name"),icon:h1e},{name:"x",attributes:{service:"x"},keywords:["twitter"],title:(0,We._x)("X","social link block variation name"),icon:y1e},{name:"yelp",attributes:{service:"yelp"},title:(0,We._x)("Yelp","social link block variation name"),icon:v1e},{name:"youtube",attributes:{service:"youtube"},title:(0,We._x)("YouTube","social link block variation name"),icon:_1e}];S1e.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.service===r.service)});var T1e=S1e;var{name:E1e}=xT,P1e={icon:Av,edit:C1e,variations:T1e},bMe=()=>D({name:E1e,metadata:xT,settings:P1e});var pz={};J(pz,{init:()=>CMe,metadata:()=>wT,name:()=>D1e,settings:()=>A1e});var kT=a(I(),1),dz=a(y(),1),yMe=e=>{if(e.layout)return e;let{className:t}=e,r="items-justified-",o=new RegExp(`\\b${r}[^ ]*[ ]?\\b`,"g"),n={...e,className:t?.replace(o,"").trim()},i=t?.match(o)?.[0]?.trim();return i&&Object.assign(n,{layout:{type:"flex",justifyContent:i.slice(r.length)}}),n},vMe=[{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:yMe,save:e=>{let{attributes:{iconBackgroundColorValue:t,iconColorValue:r,itemsJustification:o,size:n}}=e,i=T(n,{"has-icon-color":r,"has-icon-background-color":t,[`items-justified-${o}`]:o}),s={"--wp--social-links--icon-color":r,"--wp--social-links--icon-background-color":t};return(0,dz.jsx)("ul",{...kT.useBlockProps.save({className:i,style:s}),children:(0,dz.jsx)(kT.InnerBlocks.Content,{})})}}],B1e=vMe;var I1e=a(W(),1),jo=a(I(),1),Kl=a(F(),1),Oa=a(L(),1),N1e=a(H(),1);var Sn=a(y(),1),_Me=[{label:(0,Oa.__)("Default"),value:""},{label:(0,Oa.__)("Small"),value:"has-small-icon-size"},{label:(0,Oa.__)("Normal"),value:"has-normal-icon-size"},{label:(0,Oa.__)("Large"),value:"has-large-icon-size"},{label:(0,Oa.__)("Huge"),value:"has-huge-icon-size"}];function xMe(e){let{clientId:t,attributes:r,iconBackgroundColor:o,iconColor:n,isSelected:i,setAttributes:s,setIconBackgroundColor:l,setIconColor:c}=e,{iconBackgroundColorValue:u,iconColorValue:d,openInNewTab:p,showLabels:m,size:f}=r,{hasSocialIcons:g,hasSelectedChild:h,hasSelectedStyleState:b}=(0,N1e.useSelect)(N=>{let{getBlockCount:E,hasSelectedInnerBlock:M,hasSelectedBlockStyleState:R}=N(jo.store);return{hasSocialIcons:E(t)>0,hasSelectedChild:M(t),hasSelectedStyleState:R(t)}},[t]),_=i||h,v=r.className?.includes("is-style-logos-only"),w=ee();(0,I1e.useEffect)(()=>{if(v){let N;return s(E=>(N={iconBackgroundColor:E.iconBackgroundColor,iconBackgroundColorValue:E.iconBackgroundColorValue,customIconBackgroundColor:E.customIconBackgroundColor},{iconBackgroundColor:void 0,iconBackgroundColorValue:void 0,customIconBackgroundColor:void 0})),()=>s({...N})}},[v,s]);let x=T(f,{"has-visible-labels":m,"has-icon-color":n.color||d,"has-icon-background-color":o.color||u}),k=(0,jo.useBlockProps)({className:x}),C=(0,jo.useInnerBlocksProps)(k,{templateLock:!1,orientation:r.layout?.orientation??"horizontal",__experimentalAppenderTagName:"li",renderAppender:!g||_?jo.InnerBlocks.ButtonBlockAppender:void 0}),S=[{value:n.color||d,onChange:N=>{c(N),s({iconColorValue:N})},label:(0,Oa.__)("Icon color"),resetAllFilter:()=>{c(void 0),s({iconColorValue:void 0})}}];v||S.push({value:o.color||u,onChange:N=>{l(N),s({iconBackgroundColorValue:N})},label:(0,Oa.__)("Icon background"),resetAllFilter:()=>{l(void 0),s({iconBackgroundColorValue:void 0})}});let P=(0,jo.__experimentalUseMultipleOriginColorsAndGradients)(),B=P.hasColorsOrGradients&&!b;return(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsx)(jo.InspectorControls,{children:(0,Sn.jsxs)(Kl.__experimentalToolsPanel,{label:(0,Oa.__)("Settings"),resetAll:()=>{s({openInNewTab:!1,showLabels:!1,size:void 0})},dropdownMenuProps:w,children:[(0,Sn.jsx)(Kl.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!f,label:(0,Oa.__)("Icon size"),onDeselect:()=>s({size:void 0}),children:(0,Sn.jsx)(Kl.SelectControl,{label:(0,Oa.__)("Icon size"),onChange:N=>{s({size:N===""?void 0:N})},value:f??"",options:_Me})}),(0,Sn.jsx)(Kl.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Oa.__)("Show text"),hasValue:()=>!!m,onDeselect:()=>s({showLabels:!1}),children:(0,Sn.jsx)(Kl.ToggleControl,{label:(0,Oa.__)("Show text"),checked:m,onChange:()=>s({showLabels:!m})})}),(0,Sn.jsx)(Kl.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Oa.__)("Open links in new tab"),hasValue:()=>!!p,onDeselect:()=>s({openInNewTab:!1}),children:(0,Sn.jsx)(Kl.ToggleControl,{label:(0,Oa.__)("Open links in new tab"),checked:p,onChange:()=>s({openInNewTab:!p})})})]})}),B&&(0,Sn.jsxs)(jo.InspectorControls,{group:"color",children:[S.map(({onChange:N,label:E,value:M,resetAllFilter:R})=>(0,Sn.jsx)(jo.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:M,label:E,onColorChange:N,isShownByDefault:!0,resetAllFilter:R,enableAlpha:!0,clearable:!0}],panelId:t,...P},`social-links-color-${E}`)),!v&&(0,Sn.jsx)(jo.ContrastChecker,{textColor:d,backgroundColor:u,isLargeText:!1})]}),(0,Sn.jsx)("ul",{...C})]})}var kMe={iconColor:"icon-color",iconBackgroundColor:"icon-background-color"},M1e=(0,jo.withColors)(kMe)(xMe);var wT={$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"}},background:{gradient:!0},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 CT=a(I(),1),L1e=a(y(),1);function R1e(e){let{attributes:{iconBackgroundColorValue:t,iconColorValue:r,showLabels:o,size:n}}=e,i=T(n,{"has-visible-labels":o,"has-icon-color":r,"has-icon-background-color":t}),s=CT.useBlockProps.save({className:i}),l=CT.useInnerBlocksProps.save(s);return(0,L1e.jsx)("ul",{...l})}var{name:D1e}=wT,A1e={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:Av,edit:M1e,save:R1e,deprecated:B1e},CMe=()=>D({name:D1e,metadata:wT,settings:A1e});var mz={};J(mz,{init:()=>NMe,metadata:()=>TT,name:()=>Y1e,settings:()=>Q1e});var O1e=a(I(),1),F1e=a(y(),1),SMe=[{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,F1e.jsx)("div",{...O1e.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}}],V1e=SMe;var Tn=a(I(),1),W1e=a(F(),1),q0=a(W(),1),ST=a(H(),1);var $0=a(L(),1),ru=a(I(),1),Js=a(F(),1),H1e=a(_e(),1);var tk=0;var yi=a(y(),1),{useSpacingSizes:TMe}=le(ru.privateApis);function z1e({label:e,onChange:t,isResizing:r,value:o=""}){let n=(0,H1e.useInstanceId)(Js.__experimentalUnitControl,"block-spacer-height-input"),i=TMe(),[s]=(0,ru.useSettings)("spacing.units"),l=s?s.filter(m=>m!=="%"):["px","em","rem","vw","vh"],c=(0,Js.__experimentalUseCustomUnits)({availableUnits:l,defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),[u,d]=(0,Js.__experimentalParseQuantityAndUnitFromRawValue)(o),p=(0,ru.isValueSpacingPreset)(o)?o:[u,r?"px":d].join("");return(0,yi.jsx)(yi.Fragment,{children:i?.length<2?(0,yi.jsx)(Js.__experimentalUnitControl,{id:n,isResetValueOnUnitChange:!0,min:tk,onChange:t,value:p,units:c,label:e}):(0,yi.jsx)("div",{className:"tools-panel-item-spacing",children:(0,yi.jsx)(ru.__experimentalSpacingSizesControl,{values:{all:p},onChange:({all:m})=>{t(m)},label:e,sides:["all"],units:c,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})})})}function j1e({setAttributes:e,orientation:t,height:r,width:o,isResizing:n}){let i=ee();return(0,yi.jsx)(ru.InspectorControls,{children:(0,yi.jsxs)(Js.__experimentalToolsPanel,{label:(0,$0.__)("Settings"),resetAll:()=>{e({width:void 0,height:"100px"})},dropdownMenuProps:i,children:[t==="horizontal"&&(0,yi.jsx)(Js.__experimentalToolsPanelItem,{label:(0,$0.__)("Width"),isShownByDefault:!0,hasValue:()=>o!==void 0,onDeselect:()=>e({width:void 0}),children:(0,yi.jsx)(z1e,{label:(0,$0.__)("Width"),value:o,onChange:s=>e({width:s}),isResizing:n})}),t!=="horizontal"&&(0,yi.jsx)(Js.__experimentalToolsPanelItem,{label:(0,$0.__)("Height"),isShownByDefault:!0,hasValue:()=>r!=="100px",onDeselect:()=>e({height:"100px"}),children:(0,yi.jsx)(z1e,{label:(0,$0.__)("Height"),value:r,onChange:s=>e({height:s}),isResizing:n})})]})})}var el=a(y(),1),{useSpacingSizes:EMe}=le(Tn.privateApis),U1e=({orientation:e,onResizeStart:t,onResize:r,onResizeStop:o,isSelected:n,isResizing:i,setIsResizing:s,...l})=>{let c=d=>e==="horizontal"?d.clientWidth:d.clientHeight,u=d=>`${c(d)}px`;return(0,el.jsx)(W1e.ResizableBox,{className:T("block-library-spacer__resize-container",{"resize-horizontal":e==="horizontal","is-resizing":i,"is-selected":n}),onResizeStart:(d,p,m)=>{let f=u(m);t(f),r(f)},onResize:(d,p,m)=>{r(u(m)),i||s(!0)},onResizeStop:(d,p,m)=>{let f=c(m);o(`${f}px`),s(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:e==="horizontal"?"x":"y",position:"corner",isVisible:i},showHandle:n,...l})},PMe=({attributes:e,isSelected:t,setAttributes:r,toggleSelection:o,context:n,__unstableParentLayout:i,className:s})=>{let l=(0,ST.useSelect)(Y=>Y(Tn.store).getSettings()?.disableCustomSpacingSizes),{orientation:c}=n,{orientation:u,type:d,default:{type:p}={}}=i||{},m=d==="flex"||!d&&p==="flex",f=!u&&m?"horizontal":u||c,{height:g,width:h,style:b={}}=e,{layout:_={}}=b,{selfStretch:v,flexSize:w}=_,x=EMe(),[k,C]=(0,q0.useState)(!1),[S,P]=(0,q0.useState)(null),[B,N]=(0,q0.useState)(null),E=()=>o(!1),M=()=>o(!0),{__unstableMarkNextChangeAsNotPersistent:R}=(0,ST.useDispatch)(Tn.store),O=Y=>{M(),m&&r({style:{...b,layout:{..._,flexSize:Y,selfStretch:"fixed"}}}),r({height:Y}),P(null)},j=Y=>{M(),m&&r({style:{...b,layout:{..._,flexSize:Y,selfStretch:"fixed"}}}),r({width:Y}),N(null)},V=()=>{if(!m)return S||(0,Tn.getSpacingPresetCssVar)(g)||void 0},G=()=>{if(!m)return B||(0,Tn.getSpacingPresetCssVar)(h)||void 0},$=f==="horizontal"?B||w:S||w,z={height:f==="horizontal"?24:V(),width:f==="horizontal"?G():void 0,minWidth:f==="vertical"&&m?48:void 0,flexBasis:m?$:void 0,flexGrow:m&&k?0:void 0},K=Y=>Y==="horizontal"?(0,el.jsx)(U1e,{minWidth:tk,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:Y,onResizeStart:E,onResize:N,onResizeStop:j,isSelected:t,isResizing:k,setIsResizing:C}):(0,el.jsx)(el.Fragment,{children:(0,el.jsx)(U1e,{minHeight:tk,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:Y,onResizeStart:E,onResize:P,onResizeStop:O,isSelected:t,isResizing:k,setIsResizing:C})});(0,q0.useEffect)(()=>{let Y=oe=>{R(),r(oe)};if(m&&v!=="fill"&&v!=="fit"&&w===void 0)if(f==="horizontal"){let oe=(0,Tn.getCustomValueFromPreset)(h,x)||(0,Tn.getCustomValueFromPreset)(g,x)||"100px";Y({width:"0px",style:{...b,layout:{..._,flexSize:oe,selfStretch:"fixed"}}})}else{let oe=(0,Tn.getCustomValueFromPreset)(g,x)||(0,Tn.getCustomValueFromPreset)(h,x)||"100px";Y({height:"0px",style:{...b,layout:{..._,flexSize:oe,selfStretch:"fixed"}}})}else m&&(v==="fill"||v==="fit")?Y(f==="horizontal"?{width:void 0}:{height:void 0}):!m&&(v||w)&&Y({...f==="horizontal"?{width:w}:{height:w},style:{...b,layout:{..._,flexSize:void 0,selfStretch:void 0}}})},[b,w,g,f,m,_,v,r,x,h,R]);let q=(0,Tn.useBlockEditingMode)();return(0,el.jsxs)(el.Fragment,{children:[(0,el.jsx)("div",{...(0,Tn.useBlockProps)({style:z,className:T(s,{"custom-sizes-disabled":l})}),children:q==="default"&&K(f)}),!m&&(0,el.jsx)(j1e,{setAttributes:r,height:S||g,width:B||h,orientation:f,isResizing:k})]})},G1e=PMe;var TT={$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 $1e=a(te(),1),IMe={to:[{type:"block",blocks:["core/separator"],transform:({anchor:e})=>(0,$1e.createBlock)("core/separator",{anchor:e||void 0})}]},q1e=IMe;var rk=a(I(),1),Z1e=a(y(),1);function K1e({attributes:e}){let{height:t,width:r,style:o}=e,{layout:{selfStretch:n}={}}=o||{},i=n==="fill"||n==="fit"?void 0:t;return(0,Z1e.jsx)("div",{...rk.useBlockProps.save({style:{height:(0,rk.getSpacingPresetCssVar)(i),width:(0,rk.getSpacingPresetCssVar)(r)},"aria-hidden":!0})})}var{name:Y1e}=TT,Q1e={icon:jI,transforms:q1e,edit:G1e,save:K1e,deprecated:V1e},NMe=()=>D({name:Y1e,metadata:TT,settings:Q1e});var hz={};J(hz,{init:()=>RMe,metadata:()=>RT,name:()=>s0e,settings:()=>l0e});var i0e=a(L(),1);var _g=a(I(),1),NT=a(H(),1),r0e=a(W(),1);var IT=a(I(),1),Y0=a(F(),1),BT=a(L(),1),e0e=a(H(),1);var gz=a(L(),1),PT=a(I(),1),ok=a(F(),1),J1e=a(H(),1);var X1e=a(te(),1),fz=a(I(),1),ET=a(H(),1);function Z0(e){let t=(0,ET.useRegistry)(),{insertBlock:r,removeBlock:o,moveBlocksToPosition:n,updateBlockAttributes:i,__unstableMarkNextChangeAsNotPersistent:s}=(0,ET.useDispatch)(fz.store),l=()=>{let{getBlocks:p,getBlockAttributes:m}=t.select(fz.store),f=e?m(e):void 0,g=e?p(e).find(h=>h.name==="core/tab-panels"):void 0;return{tabPanelsClientId:g?.clientId??null,tabPanelBlocks:g?.innerBlocks??[],activeIndex:f?.editorActiveTabIndex??f?.activeTabIndex??0}};return{insertTab:p=>{let{tabPanelsClientId:m,tabPanelBlocks:f}=l();if(!m)return;let g=p??f.length;r((0,X1e.createBlock)("core/tab-panel"),g,m,!1),s(),i(e,{editorActiveTabIndex:g})},removeTab:p=>{let{tabPanelBlocks:m,activeIndex:f}=l(),g=m.length;if(g<=1)return;let h=p??f,b=m[h];if(!b)return;let _=h>=g-1?g-2:h;s(),i(e,{editorActiveTabIndex:_}),o(b.clientId,!1)},moveTab:p=>{let{tabPanelsClientId:m,tabPanelBlocks:f,activeIndex:g}=l();if(!m)return;let h=g+p,b=f[g];!b||h<0||h>=f.length||(s(),i(e,{editorActiveTabIndex:h}),n([b.clientId],m,m,h))}}}var K0=a(y(),1);function Zp({tabsClientId:e}){let{insertTab:t,removeTab:r}=Z0(e),o=(0,J1e.useSelect)(n=>e?(n(PT.store).getBlocks(e).find(s=>s.name==="core/tab-panels")?.innerBlocks.length??0)<=1:!0,[e]);return(0,K0.jsx)(PT.BlockControls,{group:"other",children:(0,K0.jsxs)(ok.ToolbarGroup,{children:[(0,K0.jsx)(ok.ToolbarButton,{className:"components-toolbar__control",onClick:()=>t(),text:(0,gz.__)("Add tab")}),(0,K0.jsx)(ok.ToolbarButton,{className:"components-toolbar__control",onClick:()=>r(),text:(0,gz.__)("Remove tab"),disabled:o})]})})}var ou=a(y(),1);function t0e({tabsClientId:e,blockIndex:t,isDefaultTab:r}){let{updateBlockAttributes:o}=(0,e0e.useDispatch)(IT.store),n=ee();return(0,ou.jsxs)(ou.Fragment,{children:[(0,ou.jsx)(Zp,{tabsClientId:e}),(0,ou.jsx)(IT.InspectorControls,{children:(0,ou.jsx)(Y0.__experimentalToolsPanel,{label:(0,BT.__)("Settings"),resetAll:()=>{o(e,{activeTabIndex:0})},dropdownMenuProps:n,children:(0,ou.jsx)(Y0.__experimentalToolsPanelItem,{label:(0,BT.__)("Default tab"),hasValue:()=>r&&t!==0,onDeselect:()=>{o(e,{activeTabIndex:0})},isShownByDefault:!0,children:(0,ou.jsx)(Y0.CheckboxControl,{label:(0,BT.__)("Default tab"),checked:r,onChange:i=>{o(e,{activeTabIndex:i?t:0})}})})})})]})}var MT=a(y(),1);function o0e({clientId:e,isSelected:t}){let{activeTabIndex:r,editorActiveTabIndex:o,blockIndex:n,hasInnerBlocksSelected:i,tabsClientId:s}=(0,NT.useSelect)(h=>{let{getBlockRootClientId:b,getBlockIndex:_,hasSelectedInnerBlock:v,getBlockAttributes:w}=h(_g.store),x=b(e),k=b(x),C=w(k)??{},S=_(e),P=v(e,!0);return{activeTabIndex:C.activeTabIndex,editorActiveTabIndex:C.editorActiveTabIndex,blockIndex:S,hasInnerBlocksSelected:P,tabsClientId:k}},[e]),l=o??r,{updateBlockAttributes:c,__unstableMarkNextChangeAsNotPersistent:u}=(0,NT.useDispatch)(_g.store);(0,r0e.useEffect)(()=>{(t||i)&&s&&l!==n&&(u(),c(s,{editorActiveTabIndex:n}))},[t,i,s,l,n,c,u]);let d=l===n,p=r===n,m=t||i||d,f=(0,_g.useBlockProps)({hidden:!m,tabIndex:m?0:-1}),g=(0,_g.useInnerBlocksProps)(f,{});return(0,MT.jsxs)("section",{...g,children:[(0,MT.jsx)(t0e,{tabsClientId:s,blockIndex:n,isDefaultTab:p}),m&&g.children]})}var LT=a(I(),1),n0e=a(y(),1);function a0e(){let e=LT.useBlockProps.save({role:"tabpanel",tabIndex:0}),t=LT.useInnerBlocksProps.save(e);return(0,n0e.jsx)("section",{...t})}var RT={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},html:!1,color:{background:!0,button:!0,heading:!0,link:!0,text:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0,shadow:!0,spacing:{blockGap:!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}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},visibility:!1},providesContext:{"core/tab-label":"label"},style:"wp-block-tab-panel"};var LMe=[["core/paragraph",{placeholder:(0,i0e.__)("Type / to choose a block")}]],{name:s0e}=RT,l0e={icon:sN,template:LMe,__experimentalLabel(e,{context:t}){let{label:r}=e,o=e?.metadata?.name,n=r?.trim().length>0;if(t==="list-view"&&(o||n))return o||r;if(t==="breadcrumb"&&o)return o},edit:o0e,save:a0e},RMe=()=>D({name:s0e,metadata:RT,settings:l0e});var bz={};J(bz,{init:()=>OMe,metadata:()=>AT,name:()=>m0e,settings:()=>f0e});var Q0=a(I(),1),c0e=a(H(),1);var xg=a(y(),1);function u0e({clientId:e}){let t=(0,Q0.useBlockProps)(),r=(0,Q0.useInnerBlocksProps)(t,{templateLock:!1,renderAppender:!1}),o=(0,c0e.useSelect)(n=>n(Q0.store).getBlockRootClientId(e),[e]);return(0,xg.jsxs)(xg.Fragment,{children:[(0,xg.jsx)(Zp,{tabsClientId:o}),(0,xg.jsx)("div",{...r})]})}var DT=a(I(),1),d0e=a(y(),1);function p0e(){let e=DT.useBlockProps.save(),t=DT.useInnerBlocksProps.save(e);return(0,d0e.jsx)("div",{...t})}var AT={$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,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},shadow:!0,spacing:{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}}};var AMe=[["core/tab-panel"],["core/tab-panel"]],{name:m0e}=AT,f0e={icon:Jb,template:AMe,edit:u0e,save:p0e},OMe=()=>D({name:m0e,metadata:AT,settings:f0e});var Ez={};J(Ez,{init:()=>eLe,metadata:()=>OT,name:()=>E0e,settings:()=>P0e});var nu=a(L(),1);var fr=a(I(),1),gt=a(y(),1),g0e={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},yz={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"}},FMe={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:yz}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:yz}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:yz}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table",interactivity:{clientNavigation:!0}},save({attributes:e}){let{hasFixedLayout:t,head:r,body:o,foot:n,caption:i}=e;if(!r.length&&!o.length&&!n.length)return null;let l=(0,fr.__experimentalGetColorClassesAndStyles)(e),c=(0,fr.__experimentalGetBorderClassesAndStyles)(e),u=T(l.className,c.className,{"has-fixed-layout":t}),d=!fr.RichText.isEmpty(i),p=({type:m,rows:f})=>{if(!f.length)return null;let g=`t${m}`;return(0,gt.jsx)(g,{children:f.map(({cells:h},b)=>(0,gt.jsx)("tr",{children:h.map(({content:_,tag:v,scope:w,align:x,colspan:k,rowspan:C},S)=>{let P=T({[`has-text-align-${x}`]:x});return(0,gt.jsx)(fr.RichText.Content,{className:P||void 0,"data-align":x,tagName:v,value:_,scope:v==="th"?w:void 0,colSpan:k,rowSpan:C},S)})},b))})};return(0,gt.jsxs)("figure",{...fr.useBlockProps.save(),children:[(0,gt.jsxs)("table",{className:u===""?void 0:u,style:{...l.style,...c.style},children:[(0,gt.jsx)(p,{type:"head",rows:r}),(0,gt.jsx)(p,{type:"body",rows:o}),(0,gt.jsx)(p,{type:"foot",rows:n})]}),d&&(0,gt.jsx)(fr.RichText.Content,{tagName:"figcaption",value:i,className:(0,fr.__experimentalGetElementClassName)("caption")})]})}},vz={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"}},VMe={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:vz}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:vz}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:vz}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table"},save({attributes:e}){let{hasFixedLayout:t,head:r,body:o,foot:n,caption:i}=e;if(!r.length&&!o.length&&!n.length)return null;let l=(0,fr.__experimentalGetColorClassesAndStyles)(e),c=(0,fr.__experimentalGetBorderClassesAndStyles)(e),u=T(l.className,c.className,{"has-fixed-layout":t}),d=!fr.RichText.isEmpty(i),p=({type:m,rows:f})=>{if(!f.length)return null;let g=`t${m}`;return(0,gt.jsx)(g,{children:f.map(({cells:h},b)=>(0,gt.jsx)("tr",{children:h.map(({content:_,tag:v,scope:w,align:x},k)=>{let C=T({[`has-text-align-${x}`]:x});return(0,gt.jsx)(fr.RichText.Content,{className:C||void 0,"data-align":x,tagName:v,value:_,scope:v==="th"?w:void 0},k)})},b))})};return(0,gt.jsxs)("figure",{...fr.useBlockProps.save(),children:[(0,gt.jsxs)("table",{className:u===""?void 0:u,style:{...l.style,...c.style},children:[(0,gt.jsx)(p,{type:"head",rows:r}),(0,gt.jsx)(p,{type:"body",rows:o}),(0,gt.jsx)(p,{type:"foot",rows:n})]}),d&&(0,gt.jsx)(fr.RichText.Content,{tagName:"figcaption",value:i})]})}},_z={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"}},zMe={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:_z}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:_z}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:_z}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{let{hasFixedLayout:t,head:r,body:o,foot:n,backgroundColor:i,caption:s}=e;if(!r.length&&!o.length&&!n.length)return null;let c=(0,fr.getColorClassName)("background-color",i),u=T(c,{"has-fixed-layout":t,"has-background":!!c}),d=!fr.RichText.isEmpty(s),p=({type:m,rows:f})=>{if(!f.length)return null;let g=`t${m}`;return(0,gt.jsx)(g,{children:f.map(({cells:h},b)=>(0,gt.jsx)("tr",{children:h.map(({content:_,tag:v,scope:w,align:x},k)=>{let C=T({[`has-text-align-${x}`]:x});return(0,gt.jsx)(fr.RichText.Content,{className:C||void 0,"data-align":x,tagName:v,value:_,scope:v==="th"?w:void 0},k)})},b))})};return(0,gt.jsxs)("figure",{...fr.useBlockProps.save(),children:[(0,gt.jsxs)("table",{className:u===""?void 0:u,children:[(0,gt.jsx)(p,{type:"head",rows:r}),(0,gt.jsx)(p,{type:"body",rows:o}),(0,gt.jsx)(p,{type:"foot",rows:n})]}),d&&(0,gt.jsx)(fr.RichText.Content,{tagName:"figcaption",value:s})]})},isEligible:e=>e.backgroundColor&&e.backgroundColor in g0e&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:g0e[e.backgroundColor]}}})},xz={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}},HMe={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:xz}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:xz}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:xz}}}},supports:{align:!0},save({attributes:e}){let{hasFixedLayout:t,head:r,body:o,foot:n,backgroundColor:i}=e;if(!r.length&&!o.length&&!n.length)return null;let l=(0,fr.getColorClassName)("background-color",i),c=T(l,{"has-fixed-layout":t,"has-background":!!l}),u=({type:d,rows:p})=>{if(!p.length)return null;let m=`t${d}`;return(0,gt.jsx)(m,{children:p.map(({cells:f},g)=>(0,gt.jsx)("tr",{children:f.map(({content:h,tag:b,scope:_},v)=>(0,gt.jsx)(fr.RichText.Content,{tagName:b,value:h,scope:b==="th"?_:void 0},v))},g))})};return(0,gt.jsxs)("table",{className:c,children:[(0,gt.jsx)(u,{type:"head",rows:r}),(0,gt.jsx)(u,{type:"body",rows:o}),(0,gt.jsx)(u,{type:"foot",rows:n})]})}},h0e=[FMe,VMe,zMe,HMe];var vi=a(W(),1),Uo=a(I(),1),Nt=a(L(),1),lo=a(F(),1);var jMe=["align"];function b0e({rowCount:e,columnCount:t}){return{body:Array.from({length:e}).map(()=>({cells:Array.from({length:t}).map(()=>({content:"",tag:"td"}))}))}}function UMe(e){if(!Kp(e.head))return e.head[0];if(!Kp(e.body))return e.body[0];if(!Kp(e.foot))return e.foot[0]}function y0e(e,t,r){let{sectionName:o,rowIndex:n,columnIndex:i}=t;return e[o]?.[n]?.cells?.[i]?.[r]}function kz(e,t,r){if(!t)return e;let o=Object.fromEntries(Object.entries(e).filter(([s])=>["head","body","foot"].includes(s))),{sectionName:n,rowIndex:i}=t;return Object.fromEntries(Object.entries(o).map(([s,l])=>n&&n!==s?[s,l]:[s,l.map((c,u)=>i&&i!==u?c:{cells:c.cells.map((d,p)=>WMe({sectionName:s,columnIndex:p,rowIndex:u},t)?r(d):d)})]))}function WMe(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 wz(e,{sectionName:t,rowIndex:r,columnCount:o}){let n=UMe(e),i=o===void 0?n?.cells?.length:o;return i?{[t]:[...e[t].slice(0,r),{cells:Array.from({length:i}).map((s,l)=>{let c=n?.cells?.[l]??{};return{...Object.fromEntries(Object.entries(c).filter(([d])=>jMe.includes(d))),content:"",tag:t==="head"?"th":"td"}})},...e[t].slice(r)]}:e}function v0e(e,{sectionName:t,rowIndex:r}){return{[t]:e[t].filter((o,n)=>n!==r)}}function _0e(e,{columnIndex:t}){let r=Object.fromEntries(Object.entries(e).filter(([o])=>["head","body","foot"].includes(o)));return Object.fromEntries(Object.entries(r).map(([o,n])=>Kp(n)?[o,n]:[o,n.map(i=>k0e(i)||i.cells.length<t?i:{cells:[...i.cells.slice(0,t),{content:"",tag:o==="head"?"th":"td"},...i.cells.slice(t)]})]))}function x0e(e,{columnIndex:t}){let r=Object.fromEntries(Object.entries(e).filter(([o])=>["head","body","foot"].includes(o)));return Object.fromEntries(Object.entries(r).map(([o,n])=>Kp(n)?[o,n]:[o,n.map(i=>({cells:i.cells.length>=t?i.cells.filter((s,l)=>l!==t):i.cells})).filter(i=>i.cells.length)]))}function Cz(e,t){if(!Kp(e[t]))return{[t]:[]};let r=e.body?.[0]?.cells?.length??1;return wz(e,{sectionName:t,rowIndex:0,columnCount:r})}function Kp(e){return!e||!e.length||e.every(k0e)}function k0e(e){return!(e.cells&&e.cells.length)}var St=a(y(),1),GMe=[{icon:fP,title:(0,Nt.__)("Align column left"),align:"left"},{icon:pP,title:(0,Nt.__)("Align column center"),align:"center"},{icon:bP,title:(0,Nt.__)("Align column right"),align:"right"}],$Me={head:(0,Nt.__)("Header cell text"),body:(0,Nt.__)("Body cell text"),foot:(0,Nt.__)("Footer cell text")},qMe={head:(0,Nt._x)("Header label","table header"),foot:(0,Nt._x)("Footer label","table footer")};function ZMe({name:e,...t}){let r=`t${e}`;return(0,St.jsx)(r,{...t})}function KMe({attributes:e,setAttributes:t,insertBlocksAfter:r,isSelected:o}){let{hasFixedLayout:n,head:i,foot:s}=e,[l,c]=(0,vi.useState)(2),[u,d]=(0,vi.useState)(2),[p,m]=(0,vi.useState)(),f=(0,Uo.__experimentalUseColorProps)(e),g=(0,Uo.__experimentalUseBorderProps)(e),h=(0,Uo.useBlockEditingMode)(),b=(0,vi.useRef)(),[_,v]=(0,vi.useState)(!1),w=ee();function x(U){d(U)}function k(U){c(U)}function C(U){U.preventDefault(),t(b0e({rowCount:parseInt(l,10)||2,columnCount:parseInt(u,10)||2})),v(!0)}function S(){t({hasFixedLayout:!n})}let P=(0,vi.useCallback)(function(U){p&&t(X=>kz(X,p,Q=>({...Q,content:U})))},[p,t]);function B(U){if(!p)return;let X={type:"column",columnIndex:p.columnIndex},Q=kz(e,X,ie=>({...ie,align:U}));t(Q)}function N(){if(p)return y0e(e,p,"align")}function E(){t(Cz(e,"head"))}function M(){t(Cz(e,"foot"))}function R(U){if(!p)return;let{sectionName:X,rowIndex:Q}=p,ie=Q+U;t(wz(e,{sectionName:X,rowIndex:ie})),m({sectionName:X,rowIndex:ie,columnIndex:0,type:"cell"})}function O(){R(0)}function j(){R(1)}function V(){if(!p)return;let{sectionName:U,rowIndex:X}=p;m(),t(v0e(e,{sectionName:U,rowIndex:X}))}function G(U=0){if(!p)return;let{columnIndex:X}=p,Q=X+U;t(_0e(e,{columnIndex:Q})),m({rowIndex:0,columnIndex:Q,type:"cell"})}function $(){G(0)}function z(){G(1)}function K(){if(!p)return;let{sectionName:U,columnIndex:X}=p;m(),t(x0e(e,{sectionName:U,columnIndex:X}))}(0,vi.useEffect)(()=>{o||m()},[o]),(0,vi.useEffect)(()=>{_&&(b?.current?.querySelector('td div[contentEditable="true"]')?.focus(),v(!1))},[_]);let q=["head","body","foot"].filter(U=>!Kp(e[U])),Y=[{icon:pN,title:(0,Nt.__)("Insert row before"),isDisabled:!p,onClick:O},{icon:dN,title:(0,Nt.__)("Insert row after"),isDisabled:!p,onClick:j},{icon:mN,title:(0,Nt.__)("Delete row"),isDisabled:!p,onClick:V},{icon:cN,title:(0,Nt.__)("Insert column before"),isDisabled:!p,onClick:$},{icon:lN,title:(0,Nt.__)("Insert column after"),isDisabled:!p,onClick:z},{icon:uN,title:(0,Nt.__)("Delete column"),isDisabled:!p,onClick:K}],oe=q.map(U=>(0,St.jsx)(ZMe,{name:U,children:e[U].map(({cells:X},Q)=>(0,St.jsx)("tr",{children:X.map((ie,me)=>{let xe=p?.sectionName===U&&p?.rowIndex===Q&&p?.columnIndex===me;return(0,St.jsx)(YMe,{name:U,rowIndex:Q,columnIndex:me,onChange:xe?P:void 0,setSelectedCell:m,...ie},me)})},Q))},U)),Z=!q.length;return(0,St.jsxs)("figure",{...(0,Uo.useBlockProps)({ref:b}),children:[!Z&&h==="default"&&(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)(Uo.BlockControls,{group:"block",children:(0,St.jsx)(Uo.AlignmentControl,{label:(0,Nt.__)("Align column content"),alignmentControls:GMe,value:N(),onChange:U=>B(U)})}),(0,St.jsx)(Uo.BlockControls,{group:"other",children:(0,St.jsx)(lo.ToolbarDropdownMenu,{icon:gN,label:(0,Nt.__)("Edit table"),controls:Y})})]}),(0,St.jsx)(Uo.InspectorControls,{children:(0,St.jsxs)(lo.__experimentalToolsPanel,{label:(0,Nt.__)("Settings"),resetAll:()=>{t({hasFixedLayout:!0,head:[],foot:[]})},dropdownMenuProps:w,children:[(0,St.jsx)(lo.__experimentalToolsPanelItem,{hasValue:()=>n!==!0,label:(0,Nt.__)("Fixed width table cells"),onDeselect:()=>t({hasFixedLayout:!0}),isShownByDefault:!0,children:(0,St.jsx)(lo.ToggleControl,{label:(0,Nt.__)("Fixed width table cells"),checked:!!n,onChange:S})}),!Z&&(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)(lo.__experimentalToolsPanelItem,{hasValue:()=>i&&i.length,label:(0,Nt.__)("Header section"),onDeselect:()=>t({head:[]}),isShownByDefault:!0,children:(0,St.jsx)(lo.ToggleControl,{label:(0,Nt.__)("Header section"),checked:!!(i&&i.length),onChange:E})}),(0,St.jsx)(lo.__experimentalToolsPanelItem,{hasValue:()=>s&&s.length,label:(0,Nt.__)("Footer section"),onDeselect:()=>t({foot:[]}),isShownByDefault:!0,children:(0,St.jsx)(lo.ToggleControl,{label:(0,Nt.__)("Footer section"),checked:!!(s&&s.length),onChange:M})})]})]})}),!Z&&(0,St.jsx)("table",{className:T(f.className,g.className,{"has-fixed-layout":n,"has-individual-borders":(0,lo.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...f.style,...g.style},children:oe}),Z?(0,St.jsx)(lo.Placeholder,{label:(0,Nt.__)("Table"),icon:(0,St.jsx)(Uo.BlockIcon,{icon:Fb,showColors:!0}),instructions:(0,Nt.__)("Insert a table for sharing data."),children:(0,St.jsxs)("form",{className:"blocks-table__placeholder-form",onSubmit:C,children:[(0,St.jsx)(lo.TextControl,{type:"number",label:(0,Nt.__)("Column count"),value:u,onChange:x,min:"1",className:"blocks-table__placeholder-input"}),(0,St.jsx)(lo.TextControl,{type:"number",label:(0,Nt.__)("Row count"),value:l,onChange:k,min:"1",className:"blocks-table__placeholder-input"}),(0,St.jsx)(lo.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,Nt.__)("Create Table")})]})}):(0,St.jsx)(Zo,{attributes:e,setAttributes:t,isSelected:o,insertBlocksAfter:r,label:(0,Nt.__)("Table caption text"),showToolbarButton:o&&h==="default"})]})}var YMe=(0,vi.memo)(function({tag:e,name:t,scope:r,colspan:o,rowspan:n,rowIndex:i,columnIndex:s,align:l,content:c,onChange:u,setSelectedCell:d}){return(0,St.jsx)(e,{scope:e==="th"?r:void 0,colSpan:o,rowSpan:n,className:T({[`has-text-align-${l}`]:l},"wp-block-table__cell-content"),children:(0,St.jsx)(Uo.RichText,{identifier:`${t}.${i}.cells.${s}.content`,value:c,onChange:u,onFocus:()=>{d({sectionName:t,rowIndex:i,columnIndex:s,type:"cell"})},"aria-label":$Me[t],placeholder:qMe[t]})})}),w0e=KMe;var OT={$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 tl=a(I(),1),Yl=a(y(),1);function C0e({attributes:e}){let{hasFixedLayout:t,head:r,body:o,foot:n,caption:i}=e;if(!r.length&&!o.length&&!n.length)return null;let l=(0,tl.__experimentalGetColorClassesAndStyles)(e),c=(0,tl.__experimentalGetBorderClassesAndStyles)(e),u=T(l.className,c.className,{"has-fixed-layout":t}),d=!tl.RichText.isEmpty(i),p=({type:m,rows:f})=>{if(!f.length)return null;let g=`t${m}`;return(0,Yl.jsx)(g,{children:f.map(({cells:h},b)=>(0,Yl.jsx)("tr",{children:h.map(({content:_,tag:v,scope:w,align:x,colspan:k,rowspan:C},S)=>{let P=T({[`has-text-align-${x}`]:x});return(0,Yl.jsx)(tl.RichText.Content,{className:P||void 0,"data-align":x,tagName:v,value:_,scope:v==="th"?w:void 0,colSpan:k,rowSpan:C},S)})},b))})};return(0,Yl.jsxs)("figure",{...tl.useBlockProps.save(),children:[(0,Yl.jsxs)("table",{className:u===""?void 0:u,style:{...l.style,...c.style},children:[(0,Yl.jsx)(p,{type:"head",rows:r}),(0,Yl.jsx)(p,{type:"body",rows:o}),(0,Yl.jsx)(p,{type:"foot",rows:n})]}),d&&(0,Yl.jsx)(tl.RichText.Content,{tagName:"figcaption",value:i,className:(0,tl.__experimentalGetElementClassName)("caption")})]})}var S0e=a(te(),1);function Sz(e){let t=parseInt(e,10);if(Number.isInteger(t))return t<0||t===1?void 0:t.toString()}var Tz=({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"]}}}}),XMe=e=>({table:{children:{thead:{allowEmpty:!0,children:Tz(e)},tfoot:{allowEmpty:!0,children:Tz(e)},tbody:{allowEmpty:!0,children:Tz(e)}}}}),JMe={from:[{type:"raw",selector:"table",schema:XMe,transform:e=>{let t=Array.from(e.children).reduce((r,o)=>{if(!o.children.length)return r;let n=o.nodeName.toLowerCase().slice(1),i=Array.from(o.children).reduce((s,l)=>{if(!l.children.length)return s;let c=Array.from(l.children).reduce((u,d)=>{let p=Sz(d.getAttribute("rowspan")),m=Sz(d.getAttribute("colspan")),{textAlign:f}=d.style||{},g;return(f==="left"||f==="center"||f==="right")&&(g=f),u.push({tag:d.nodeName.toLowerCase(),content:d.innerHTML,rowspan:p,colspan:m,align:g}),u},[]);return s.push({cells:c}),s},[]);return r[n]=i,r},{});return(0,S0e.createBlock)("core/table",t)}}]},T0e=JMe;var{name:E0e}=OT,P0e={icon:Fb,example:{attributes:{head:[{cells:[{content:(0,nu.__)("Version"),tag:"th"},{content:(0,nu.__)("Jazz Musician"),tag:"th"},{content:(0,nu.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:(0,nu.__)("Jaco Pastorius"),tag:"td"},{content:(0,nu.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:(0,nu.__)("Betty Carter"),tag:"td"},{content:(0,nu.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:(0,nu.__)("Bebo Vald\xE9s"),tag:"td"},{content:(0,nu.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:T0e,edit:w0e,save:C0e,deprecated:h0e},eLe=()=>D({name:E0e,metadata:OT,settings:P0e});var Lz={};J(Lz,{init:()=>cLe,metadata:()=>FT,name:()=>W0e,settings:()=>G0e});var sd=a(L(),1);var I0e=a(I(),1),ps=a(y(),1),B0e="wp-block-table-of-contents__entry",tLe={headings:{type:"array",items:{type:"object"},default:[]},onlyIncludeCurrentPage:{type:"boolean",default:!1},maxLevel:{type:"number"},ordered:{type:"boolean",default:!0}},rLe={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}}};function N0e(e){let t=[];return e.forEach((r,o)=>{if(r.content!==""&&r.level===e[0].level)if(e[o+1]?.level>r.level){let n=e.length;for(let i=o+1;i<e.length;i++)if(e[i].level===r.level){n=i;break}t.push({heading:r,children:N0e(e.slice(o+1,n))})}else t.push({heading:r,children:null})}),t}function M0e({nestedHeadingList:e,ordered:t=!0}){return(0,ps.jsx)(ps.Fragment,{children:e.map((r,o)=>{let{content:n,link:i}=r.heading,s=i?(0,ps.jsx)("a",{className:B0e,href:i,children:n}):(0,ps.jsx)("span",{className:B0e,children:n}),l=t?"ol":"ul";return(0,ps.jsxs)("li",{children:[s,r.children?(0,ps.jsx)(l,{children:(0,ps.jsx)(M0e,{nestedHeadingList:r.children,ordered:t})}):null]},o)})})}var oLe=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),nLe={attributes:tLe,supports:rLe,isEligible:(e,t,{blockNode:r}={})=>oLe(e,"headings")||r?.innerHTML?.includes("wp-block-table-of-contents"),migrate:({headings:e,...t})=>t,save({attributes:{headings:e=[],ordered:t=!0}}){if(e.length===0)return null;let r=t?"ol":"ul";return(0,ps.jsx)("nav",{...I0e.useBlockProps.save(),children:(0,ps.jsx)(r,{children:(0,ps.jsx)(M0e,{nestedHeadingList:N0e(e),ordered:t})})})}},L0e=[nLe];var FT={$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:[],role:"local"},onlyIncludeCurrentPage:{type:"boolean",default:!1},maxLevel:{type:"number"},ordered:{type:"boolean",default:!0}},supports:{anchor:!0,ariaLabel:!0,html:!1,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},color:{text:!0,background:!0,gradients:!0,link:!0},shadow:!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-table-of-contents"};var Ql=a(I(),1),z0e=a(te(),1),wo=a(F(),1),ik=a(H(),1),H0e=a(W(),1),Mt=a(L(),1),j0e=a(_e(),1),U0e=a(br(),1);var au=a(y(),1),R0e="wp-block-table-of-contents__entry";function Pz({nestedHeadingList:e,disableLinkActivation:t,onClick:r,ordered:o=!0}){return(0,au.jsx)(au.Fragment,{children:e.map((n,i)=>{let{content:s,link:l}=n.heading,c=l?(0,au.jsx)("a",{className:R0e,href:l,"aria-disabled":t||void 0,onClick:t&&typeof r=="function"?r:void 0,children:s}):(0,au.jsx)("span",{className:R0e,children:s}),u=o?"ol":"ul";return(0,au.jsxs)("li",{children:[c,n.children?(0,au.jsx)(u,{children:(0,au.jsx)(Pz,{nestedHeadingList:n.children,disableLinkActivation:t,onClick:t&&typeof r=="function"?r:void 0,ordered:o})}):null]},i)})})}var Bz=a(te(),1),nk=a(P9(),1);function Iz(e){let t=[];return e.forEach((r,o)=>{if(r.content!==""&&r.level===e[0].level)if(e[o+1]?.level>r.level){let n=e.length;for(let i=o+1;i<e.length;i++)if(e[i].level===r.level){n=i;break}t.push({heading:r,children:Iz(e.slice(o+1,n))})}else t.push({heading:r,children:null})}),t}function Nz(e,t){return e.map(({heading:{content:r,link:o},children:n})=>(0,Bz.createBlock)("core/list-item",{content:o?`<a href="${(0,nk.escapeAttribute)(o)}">${(0,nk.escapeEditableHTML)(r)}</a>`:(0,nk.escapeEditableHTML)(r)},n?.length?[(0,Bz.createBlock)("core/list",{ordered:t},Nz(n,t))]:[]))}var D0e=a(uee(),1),A0e=a(H(),1),O0e=a(ma(),1),F0e=a(W(),1),ak=a(qt(),1),VT=a(I(),1);function iLe(e,t){let{getBlockAttributes:r,getBlockName:o,getBlocksByName:n,getClientIdsOfDescendants:i}=e(VT.store),s=e("core/editor").getPermalink()??null,l=n("core/nextpage").length!==0,{onlyIncludeCurrentPage:c,maxLevel:u}=r(t)??{},[d=""]=n("core/post-content"),p=i(d),m=1;if(l&&c){let b=p.indexOf(t);for(let[_,v]of p.entries()){if(_>=b)break;o(v)==="core/nextpage"&&m++}}let f=[],g=1,h=null;typeof s=="string"&&(h=l?(0,ak.addQueryArgs)(s,{page:g}):s);for(let b of p){let _=o(b);if(_==="core/nextpage"){if(g++,c&&g>m)break;typeof s=="string"&&(h=(0,ak.addQueryArgs)((0,ak.removeQueryArgs)(s,["page"]),{page:g}))}else if((!c||g===m)&&_==="core/heading"){let v=r(b);if(u&&v.level>u)continue;let w=typeof h=="string"&&typeof v.anchor=="string"&&v.anchor!=="";f.push({content:(0,O0e.__unstableStripHTML)(v.content.replace(/(<br *\/?>)+/g," ")),level:v.level,link:w?`${h}#${v.anchor}`:null})}}return f}function sLe(e,t,r){let{getBlockAttributes:o}=e(VT.store),{updateBlockAttributes:n,__unstableMarkNextChangeAsNotPersistent:i}=t(VT.store),s=o(r);if(s===null)return;let l=iLe(e,r);(0,D0e.default)(l,s.headings)||window.queueMicrotask(()=>{i(),n(r,{headings:l})})}function V0e(e){let t=(0,A0e.useRegistry)();(0,F0e.useEffect)(()=>t.subscribe(()=>sLe(t.select,t.dispatch,e)),[t,e])}var Wt=a(y(),1);function lLe({clientId:e,headingTree:t,ordered:r,setAttributes:o}){let n=(0,ik.useSelect)(c=>{let{getBlockRootClientId:u,canInsertBlockType:d}=c(Ql.store),p=u(e);return d("core/list",p)},[e]),{replaceBlocks:i}=(0,ik.useDispatch)(Ql.store),[s,l]=(0,H0e.useState)(!1);return(0,Wt.jsxs)(Wt.Fragment,{children:[(0,Wt.jsxs)(Ql.BlockControls,{children:[(0,Wt.jsxs)(wo.ToolbarGroup,{children:[(0,Wt.jsx)(wo.ToolbarButton,{icon:(0,Mt.isRTL)()?ly:cy,title:(0,Mt.__)("Unordered"),description:(0,Mt.__)("Convert to unordered list"),onClick:()=>o({ordered:!1}),isActive:r===!1}),(0,Wt.jsx)(wo.ToolbarButton,{icon:(0,Mt.isRTL)()?uy:vs,title:(0,Mt.__)("Ordered"),description:(0,Mt.__)("Convert to ordered list"),onClick:()=>o({ordered:!0}),isActive:r===!0})]}),n&&(0,Wt.jsx)(wo.ToolbarGroup,{children:(0,Wt.jsx)(wo.ToolbarButton,{onClick:()=>l(!0),children:(0,Mt.__)("Detach")})})]}),s&&(0,Wt.jsx)(wo.__experimentalConfirmDialog,{isOpen:!0,title:(0,Mt.__)("Detach Table of Contents"),__experimentalHideHeader:!1,confirmButtonText:(0,Mt.__)("Detach"),onConfirm:()=>{l(!1),i(e,(0,z0e.createBlock)("core/list",{ordered:r},Nz(t,r)))},onCancel:()=>l(!1),size:"medium",children:(0,Mt.__)("The Table of Contents block lists the headings in the post. Detaching will enable you to edit, reorder, or remove entries. However, new headings will no longer be added automatically.")})]})}function Mz({attributes:{headings:e=[],onlyIncludeCurrentPage:t,maxLevel:r,ordered:o=!0},clientId:n,setAttributes:i}){V0e(n);let s=(0,Ql.useBlockProps)(),l=(0,j0e.useInstanceId)(Mz,"table-of-contents"),{createWarningNotice:c}=(0,ik.useDispatch)(U0e.store),u=h=>{h.preventDefault(),c((0,Mt.__)("Links are disabled in the editor."),{id:`block-library/core/table-of-contents/redirection-prevented/${l}`,type:"snackbar"})},d=ee(),p=Iz(e),m=(0,Wt.jsx)(lLe,{clientId:n,headingTree:p,ordered:o,setAttributes:i}),f=(0,Wt.jsx)(Ql.InspectorControls,{children:(0,Wt.jsxs)(wo.__experimentalToolsPanel,{label:(0,Mt.__)("Settings"),resetAll:()=>{i({onlyIncludeCurrentPage:!1,maxLevel:void 0,ordered:!0})},dropdownMenuProps:d,children:[(0,Wt.jsx)(wo.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Mt.__)("Only include current page"),onDeselect:()=>i({onlyIncludeCurrentPage:!1}),isShownByDefault:!0,children:(0,Wt.jsx)(wo.ToggleControl,{label:(0,Mt.__)("Only include current page"),checked:t,onChange:h=>i({onlyIncludeCurrentPage:h}),help:t?(0,Mt.__)("Only including headings from the current page (if the post is paginated)."):(0,Mt.__)("Include headings from all pages (if the post is paginated).")})}),(0,Wt.jsx)(wo.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,Mt.__)("Limit heading levels"),onDeselect:()=>i({maxLevel:void 0}),isShownByDefault:!0,children:(0,Wt.jsx)(wo.SelectControl,{label:(0,Mt.__)("Include headings down to level"),value:r||"",options:[{value:"",label:(0,Mt.__)("All levels")},{value:"1",label:(0,Mt.__)("Heading 1")},{value:"2",label:(0,Mt.__)("Heading 2")},{value:"3",label:(0,Mt.__)("Heading 3")},{value:"4",label:(0,Mt.__)("Heading 4")},{value:"5",label:(0,Mt.__)("Heading 5")},{value:"6",label:(0,Mt.__)("Heading 6")}],onChange:h=>i({maxLevel:h?parseInt(h):void 0}),help:r?(0,Mt.__)("Only include headings up to and including this level."):(0,Mt.__)("Including all heading levels in the table of contents.")})})]})});return e.length===0?(0,Wt.jsxs)(Wt.Fragment,{children:[(0,Wt.jsx)("div",{...s,children:(0,Wt.jsx)(wo.Placeholder,{icon:(0,Wt.jsx)(Ql.BlockIcon,{icon:t_}),label:(0,Mt.__)("Table of Contents"),instructions:(0,Mt.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})}),f]}):(0,Wt.jsxs)(Wt.Fragment,{children:[(0,Wt.jsx)("nav",{...s,children:(0,Wt.jsx)(o?"ol":"ul",{children:(0,Wt.jsx)(Pz,{nestedHeadingList:p,disableLinkActivation:!0,onClick:u,ordered:o})})}),m,f]})}var{name:W0e}=FT,G0e={icon:t_,deprecated:L0e,edit:Mz,example:{innerBlocks:[{name:"core/heading",attributes:{level:2,content:(0,sd.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,sd.__)("Subheading")}},{name:"core/heading",attributes:{level:2,content:(0,sd.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,sd.__)("Subheading")}}],attributes:{headings:[{content:(0,sd.__)("Heading"),level:2},{content:(0,sd.__)("Subheading"),level:3},{content:(0,sd.__)("Heading"),level:2},{content:(0,sd.__)("Subheading"),level:3}]}}},cLe=()=>D({name:W0e,metadata:FT,settings:G0e});var Az={};J(Az,{init:()=>mLe,metadata:()=>HT,name:()=>Y0e,settings:()=>Q0e});var J0=a(L(),1),ia=a(I(),1),eb=a(F(),1),kg=a(H(),1),wg=a(W(),1);var X0=a(L(),1),zT=a(I(),1),Rz=a(F(),1);var $0e=a(H(),1);var sk=a(y(),1);function q0e({tabsClientId:e}){let{moveTab:t}=Z0(e),{tabCount:r,activeIndex:o}=(0,$0e.useSelect)(n=>{if(!e)return{tabCount:0,activeIndex:0};let{getBlocks:i,getBlockAttributes:s}=n(zT.store),l=s(e);return{tabCount:i(e).find(u=>u.name==="core/tab-panels")?.innerBlocks.length??0,activeIndex:l?.editorActiveTabIndex??l?.activeTabIndex??0}},[e]);return(0,sk.jsxs)(zT.BlockControls,{group:"parent",children:[(0,sk.jsx)(Rz.ToolbarButton,{className:"wp-block-tab-list__mover-button",icon:(0,X0.isRTL)()?zg:l5,label:(0,X0.__)("Move tab before"),onClick:()=>t(-1),disabled:o<=0,accessibleWhenDisabled:!0}),(0,sk.jsx)(Rz.ToolbarButton,{className:"wp-block-tab-list__mover-button",icon:(0,X0.isRTL)()?l5:zg,label:(0,X0.__)("Move tab after"),onClick:()=>t(1),disabled:o>=r-1,accessibleWhenDisabled:!0})]})}var _i=a(y(),1),uLe=[];function dLe({attributes:e,clientId:t,setAttributes:r,__unstableLayoutClassNames:o}){let{ariaLabel:n}=e,i=(0,ia.__experimentalUseColorProps)(e),s=(0,ia.__experimentalUseBorderProps)(e),l=(0,ia.__experimentalGetSpacingClassesAndStyles)(e),c=ee(),{tabsClientId:u,tabPanels:d,editorActiveTabIndex:p,activeTabIndex:m}=(0,kg.useSelect)(O=>{let{getBlockRootClientId:j,getBlockAttributes:V,getBlocks:G}=O(ia.store),$=j(t),z=V($),K=G($)?.find(q=>q.name==="core/tab-panels");return{tabsClientId:$,tabPanels:K?.innerBlocks??uLe,editorActiveTabIndex:z?.editorActiveTabIndex,activeTabIndex:z?.activeTabIndex??0}},[t]),f=(0,kg.useRegistry)(),{isBlockSelected:g,hasSelectedInnerBlock:h}=(0,kg.useSelect)(ia.store),{updateBlockAttributes:b,selectBlock:_,__unstableMarkNextChangeAsNotPersistent:v}=(0,kg.useDispatch)(ia.store),{insertTab:w,removeTab:x}=Z0(u),k=p??m,C=(0,wg.useMemo)(()=>d.map(O=>({label:O.attributes.label||"",clientId:O.clientId})),[d]);function S(O){u&&O!==k&&f.batch(()=>{_(t),v(),b(u,{editorActiveTabIndex:O})})}function P(O,j){let V=C[O];V?.clientId&&b(V.clientId,{label:j})}let B=(0,wg.useRef)(),N=(0,wg.useRef)(C.length);(0,wg.useEffect)(()=>{let O=N.current;if(N.current=C.length,!B.current||C.length===O||!g(u)&&!h(u,!0))return;(V=>{window.requestAnimationFrame(()=>{let G=B.current?.querySelectorAll("button")?.[V];(G?.querySelector("[contenteditable]")??G)?.focus()})})(k)},[k,h,g,u,C.length]);let E=(0,ia.useBlockProps)({role:"tablist",ref:B,className:o}),M=T(i.className,s.className),R={...i.style,...s.style,...l.style};return(0,_i.jsxs)(_i.Fragment,{children:[(0,_i.jsx)(ia.InspectorControls,{group:"settings",children:(0,_i.jsx)(eb.__experimentalToolsPanel,{label:(0,J0.__)("Settings"),resetAll:()=>r({ariaLabel:void 0}),dropdownMenuProps:c,children:(0,_i.jsx)(eb.__experimentalToolsPanelItem,{label:(0,J0.__)("Label"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>r({ariaLabel:void 0}),children:(0,_i.jsx)(eb.TextControl,{label:(0,J0.__)("Label"),help:(0,J0.__)("Briefly describe this tab section for screen reader users. Examples: Event information, Product details, and Account settings."),value:n||"",onChange:O=>r({ariaLabel:O||void 0})})})})}),(0,_i.jsx)(q0e,{tabsClientId:u}),(0,_i.jsx)(Zp,{tabsClientId:u}),(0,_i.jsx)("div",{...E,children:C.map((O,j)=>(0,_i.jsx)("button",{type:"button",role:"tab","aria-selected":j===k,className:M||void 0,style:R,tabIndex:-1,onFocus:()=>{S(j)},children:(0,_i.jsx)(ia.RichText,{tagName:"span",withoutInteractiveFormatting:!0,placeholder:(0,J0.__)("Tab title"),value:O.label,onChange:G=>P(j,G),__unstableOnSplitAtEnd:()=>w(j+1),onRemove:()=>x(j)})},O.clientId||j))})]})}var Z0e=dLe;var iu=a(I(),1),Dz=a(y(),1);function K0e({attributes:e}){let{tabs:t}=e,r=iu.useBlockProps.save({role:"tablist"}),o=(0,iu.__experimentalGetColorClassesAndStyles)(e),n=(0,iu.__experimentalGetBorderClassesAndStyles)(e),i=(0,iu.__experimentalGetSpacingClassesAndStyles)(e),s=T(o.className,n.className),l={...o.style,...n.style,...i.style};return(0,Dz.jsx)("div",{...r,children:t.map((c,u)=>(0,Dz.jsx)(iu.RichText.Content,{className:s||void 0,style:l,tagName:"button",value:c.label,type:"button",role:"tab"},u))})}var HT={$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:Y0e}=HT,Q0e={icon:iN,edit:Z0e,save:K0e},mLe=()=>D({name:Y0e,metadata:HT,settings:Q0e});var Oz={};J(Oz,{init:()=>yLe,metadata:()=>$T,name:()=>obe,settings:()=>nbe});var Cg=a(L(),1);var UT=a(I(),1);var jT=a(I(),1),lk=a(H(),1),X0e=a(W(),1),fLe=[];function J0e(e){let{tabPanels:t,tabListClientId:r}=(0,lk.useSelect)(s=>{let{getBlocks:l}=s(jT.store),c=l(e),u=c.find(p=>p.name==="core/tab-panels"),d=c.find(p=>p.name==="core/tab-list");return{tabPanels:u?.innerBlocks??fLe,tabListClientId:d?.clientId??null}},[e]),{updateBlockAttributes:o,__unstableMarkNextChangeAsNotPersistent:n}=(0,lk.useDispatch)(jT.store),{getBlockAttributes:i}=(0,lk.useSelect)(jT.store);(0,X0e.useEffect)(()=>{if(!r)return;let s=t.map(c=>({label:c.attributes.label||""})),l=i(r)?.tabs??[];JSON.stringify(s)!==JSON.stringify(l)&&(n(),o(r,{tabs:s}))},[t,r,i,o,n])}var WT=a(y(),1);function gLe({clientId:e}){J0e(e);let t=(0,UT.useBlockProps)(),r=(0,UT.useInnerBlocksProps)(t,{__experimentalCaptureToolbars:!0,templateLock:"all",renderAppender:!1});return(0,WT.jsxs)("div",{...r,children:[(0,WT.jsx)(Zp,{tabsClientId:e}),r.children]})}var ebe=gLe;var GT=a(I(),1),tbe=a(y(),1);function rbe(){let e=GT.useBlockProps.save(),t=GT.useInnerBlocksProps.save(e);return(0,tbe.jsx)("div",{...t})}var $T={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{text:!0,background:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{text:!0,background:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},layout:{allowEditing:!1},html:!1,interactivity:!0,spacing:{blockGap:!0,margin:!0,padding:!0},shadow:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},usesContext:["core/tabs-list","core/tabs-id"],style:"wp-block-tabs",viewScriptModule:"@wordpress/block-library/tabs/view"};var{name:obe}=$T,bLe=[["core/tab-list"],["core/tab-panels"]],nbe={icon:hN,example:{innerBlocks:[{name:"core/tab-list",attributes:{tabs:[{label:(0,Cg.__)("Tab 1")},{label:(0,Cg.__)("Tab 2")}]}},{name:"core/tab-panels",innerBlocks:[1,2].map(e=>({name:"core/tab-panel",attributes:{anchor:`tab-${e}`,label:(0,Cg.sprintf)((0,Cg.__)("Tab %s"),e)},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Cg.__)("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.")}}]}))}]},template:bLe,edit:ebe,save:rbe},yLe=()=>D({name:obe,metadata:$T,settings:nbe});var Vz={};J(Vz,{init:()=>CLe,metadata:()=>qT,name:()=>mbe,settings:()=>fbe});var Fz=a(te(),1),vLe={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,Fz.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,Fz.createBlock)("core/categories")}]},abe=vLe;var qT={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},html:!1,align:!0,color:{background:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},shadow:!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 er=a(F(),1),lbe=a(H(),1),Fa=a(L(),1),tb=a(I(),1),cbe=a(ae(),1),ube=a(bd(),1),dbe=a(_e(),1);var Pr=a(y(),1),xLe=1,kLe=100,ibe=.1,sbe=100;function wLe({attributes:e,setAttributes:t,name:r}){let{taxonomy:o,showTagCounts:n,numberOfTags:i,smallestFontSize:s,largestFontSize:l}=e,[c]=(0,tb.useSettings)("spacing.units"),u=ee(),d=(0,er.__experimentalUseCustomUnits)({availableUnits:c?[...c,"pt"]:["%","px","em","rem","pt"]}),p=(0,lbe.useSelect)(x=>x(cbe.store).getTaxonomies({per_page:-1}),[]),m=()=>{let x={label:(0,Fa.__)("- Select -"),value:"",disabled:!0},k=(p??[]).filter(C=>!!C.show_cloud).map(C=>({value:C.slug,label:C.name}));return[x,...k]},f=(x,k)=>{let[C,S]=(0,er.__experimentalParseQuantityAndUnitFromRawValue)(k);if(!Number.isFinite(C))return;let P={[x]:k};Object.entries({smallestFontSize:s,largestFontSize:l}).forEach(([B,N])=>{let[E,M]=(0,er.__experimentalParseQuantityAndUnitFromRawValue)(N);B!==x&&M!==S&&(P[B]=`${E}${S}`)}),t(P)},g=(0,Pr.jsx)(tb.InspectorControls,{children:(0,Pr.jsxs)(er.__experimentalToolsPanel,{label:(0,Fa.__)("Settings"),resetAll:()=>{t({taxonomy:"post_tag",showTagCounts:!1,numberOfTags:45,smallestFontSize:"8pt",largestFontSize:"22pt"})},dropdownMenuProps:u,children:[(0,Pr.jsx)(er.__experimentalToolsPanelItem,{hasValue:()=>o!=="post_tag",label:(0,Fa.__)("Taxonomy"),onDeselect:()=>t({taxonomy:"post_tag"}),isShownByDefault:!0,children:(0,Pr.jsx)(er.SelectControl,{label:(0,Fa.__)("Taxonomy"),options:m(),value:o,onChange:x=>t({taxonomy:x})})}),(0,Pr.jsx)(er.__experimentalToolsPanelItem,{hasValue:()=>s!=="8pt"||l!=="22pt",label:(0,Fa.__)("Font size"),onDeselect:()=>t({smallestFontSize:"8pt",largestFontSize:"22pt"}),isShownByDefault:!0,children:(0,Pr.jsxs)(er.Flex,{gap:4,children:[(0,Pr.jsx)(er.FlexItem,{isBlock:!0,children:(0,Pr.jsx)(er.__experimentalUnitControl,{label:(0,Fa.__)("Smallest size"),value:s,onChange:x=>{f("smallestFontSize",x)},units:d,min:ibe,max:sbe})}),(0,Pr.jsx)(er.FlexItem,{isBlock:!0,children:(0,Pr.jsx)(er.__experimentalUnitControl,{label:(0,Fa.__)("Largest size"),value:l,onChange:x=>{f("largestFontSize",x)},units:d,min:ibe,max:sbe})})]})}),(0,Pr.jsx)(er.__experimentalToolsPanelItem,{hasValue:()=>i!==45,label:(0,Fa.__)("Number of tags"),onDeselect:()=>t({numberOfTags:45}),isShownByDefault:!0,children:(0,Pr.jsx)(er.RangeControl,{label:(0,Fa.__)("Number of tags"),value:i,onChange:x=>t({numberOfTags:x}),min:xLe,max:kLe,required:!0})}),(0,Pr.jsx)(er.__experimentalToolsPanelItem,{hasValue:()=>n!==!1,label:(0,Fa.__)("Show tag counts"),onDeselect:()=>t({showTagCounts:!1}),isShownByDefault:!0,children:(0,Pr.jsx)(er.ToggleControl,{label:(0,Fa.__)("Show tag counts"),checked:n,onChange:()=>t({showTagCounts:!n})})})]})}),{content:h,status:b,error:_}=(0,ube.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),v=(0,dbe.useDisabled)(),w=(0,tb.useBlockProps)({ref:v});return(0,Pr.jsxs)(Pr.Fragment,{children:[g,b==="loading"&&(0,Pr.jsx)("div",{...w,children:(0,Pr.jsx)(er.Spinner,{})}),b==="error"&&(0,Pr.jsx)("div",{...w,children:(0,Pr.jsx)("p",{children:(0,Fa.sprintf)((0,Fa.__)("Error: %s"),_)})}),b==="success"&&(0,Pr.jsx)(Eo,{wrapperProps:w,html:h})]})}var pbe=wLe;var{name:mbe}=qT,fbe={icon:u_,example:{},edit:pbe,transforms:abe},CLe=()=>D({name:mbe,metadata:qT,settings:fbe});var Wz={};J(Wz,{init:()=>MLe,metadata:()=>ZT,name:()=>Jbe,settings:()=>eye});var Ybe=a(ae(),1),Qbe=a(H(),1);var Uz=a(Kd(),1),Xbe=a($o(),1);var ZT={$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 jbe=a(te(),1),lb=a(H(),1),Co=a(I(),1),cu=a(F(),1),fs=a(L(),1),mk=a(ae(),1),Ube=a(W(),1),Wbe=a(br(),1);var Qp=a(L(),1),Tg=a(F(),1),_be=a(W(),1),xbe=a(H(),1),kbe=a(ae(),1);var rb=a(H(),1),KT=a(ae(),1),gbe=a(I(),1),hbe=a(W(),1),bbe=a(te(),1),zz=a(L(),1);function ob(e,t){let{templateParts:r,isResolving:o}=(0,rb.useSelect)(i=>{let{getEntityRecords:s,isResolving:l}=i(KT.store),c={per_page:-1};return{templateParts:s("postType","wp_template_part",c),isResolving:l("getEntityRecords",["postType","wp_template_part",c])}},[]);return{templateParts:(0,hbe.useMemo)(()=>r?r.filter(i=>Pa(i.theme,i.slug)!==t&&(!e||e==="uncategorized"||i.area===e))||[]:[],[r,e,t]),isResolving:o}}function nb(e,t){return(0,rb.useSelect)(r=>{let o=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:n,getPatternsByBlockTypes:i}=r(gbe.store),s=n(t);return i(o,s)},[e,t])}function YT(e,t){let{saveEntityRecord:r}=(0,rb.useDispatch)(KT.store);return async(o=[],n=(0,zz.__)("Untitled Template Part"))=>{let i=Ih(n).replace(/[^\w-]+/g,"")||"wp-custom-part",s={title:n,slug:i,content:(0,bbe.serialize)(o),area:e},l=await r("postType","wp_template_part",s);t({slug:l.slug,theme:l.theme,area:void 0})}}function QT(e){return(0,rb.useSelect)(t=>{let r=t(KT.store).getCurrentTheme()?.default_template_part_areas||[],o=r.find(i=>i.area===e),n=r.find(i=>i.area==="uncategorized");return{icon:o?.icon||n?.icon,label:o?.label||(0,zz.__)("Template Part"),tagName:o?.area_tag??"div"}},[e])}var ybe=a(W(),1),Yp=a(L(),1),Xl=a(F(),1),ld=a(y(),1);function vbe({areaLabel:e,onClose:t,onSubmit:r}){let[o,n]=(0,ybe.useState)(""),i=s=>{s.preventDefault(),r(o)};return(0,ld.jsx)(Xl.Modal,{title:(0,Yp.sprintf)((0,Yp.__)("Create new %s"),e.toLowerCase()),onRequestClose:t,focusOnMount:"firstContentElement",size:"small",children:(0,ld.jsx)("form",{onSubmit:i,children:(0,ld.jsxs)(Xl.__experimentalVStack,{spacing:"5",children:[(0,ld.jsx)(Xl.TextControl,{label:(0,Yp.__)("Name"),value:o,onChange:n,placeholder:(0,Yp.__)("Custom Template Part")}),(0,ld.jsxs)(Xl.__experimentalHStack,{justify:"right",children:[(0,ld.jsx)(Xl.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t(),n("")},children:(0,Yp.__)("Cancel")}),(0,ld.jsx)(Xl.Button,{variant:"primary",type:"submit",accessibleWhenDisabled:!0,disabled:!o.length,__next40pxDefaultSize:!0,children:(0,Yp.__)("Create")})]})]})})})}var Sg=a(y(),1);function wbe({area:e,clientId:t,templatePartId:r,onOpenSelectionModal:o,setAttributes:n}){let{templateParts:i,isResolving:s}=ob(e,r),l=nb(e,t),{isBlockBasedTheme:c,canCreateTemplatePart:u}=(0,xbe.useSelect)(g=>{let{getCurrentTheme:h,canUser:b}=g(kbe.store);return{isBlockBasedTheme:h()?.is_block_theme,canCreateTemplatePart:b("create",{kind:"postType",name:"wp_template_part"})}},[]),[d,p]=(0,_be.useState)(!1),m=QT(e),f=YT(e,n);return(0,Sg.jsxs)(Tg.Placeholder,{icon:r0(m.icon),label:m.label,instructions:c?(0,Qp.sprintf)((0,Qp.__)("Choose an existing %s or create a new one."),m.label.toLowerCase()):(0,Qp.sprintf)((0,Qp.__)("Choose an existing %s."),m.label.toLowerCase()),children:[s&&(0,Sg.jsx)(Tg.Spinner,{}),!s&&!!(i.length||l.length)&&(0,Sg.jsx)(Tg.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:o,children:(0,Qp.__)("Choose")}),!s&&c&&u&&(0,Sg.jsx)(Tg.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{p(!0)},children:(0,Qp.__)("Start blank")}),d&&(0,Sg.jsx)(vbe,{areaLabel:m.label,onClose:()=>p(!1),onSubmit:g=>{f([],g)}})]})}var ck=a(W(),1),Xp=a(L(),1),Tbe=a(br(),1),Ebe=a(H(),1),Pbe=a(I(),1),XT=a(F(),1);var Cbe=a(te(),1);function Sbe(e){return{name:Pa(e.theme,e.slug),title:e.title.rendered,blocks:(0,Cbe.parse)(e.content.raw),templatePart:e}}var su=a(y(),1);function Bbe({setAttributes:e,onClose:t,templatePartId:r=null,area:o,clientId:n}){let[i,s]=(0,ck.useState)(""),{templateParts:l}=ob(o,r),c=(0,ck.useMemo)(()=>{let h=l.map(b=>Sbe(b));return N2(h,i)},[l,i]),u=nb(o,n),d=(0,ck.useMemo)(()=>N2(u,i),[u,i]),{createSuccessNotice:p}=(0,Ebe.useDispatch)(Tbe.store),m=h=>{e({slug:h.slug,theme:h.theme,area:void 0}),p((0,Xp.sprintf)((0,Xp.__)('Template Part "%s" inserted.'),h.title?.rendered||h.slug),{type:"snackbar"}),t()},f=!!c.length,g=!!d.length;return(0,su.jsxs)("div",{className:"block-library-template-part__selection-content",children:[(0,su.jsx)("div",{className:"block-library-template-part__selection-search",children:(0,su.jsx)(XT.SearchControl,{onChange:s,value:i,label:(0,Xp.__)("Search"),placeholder:(0,Xp.__)("Search")})}),f&&(0,su.jsxs)("div",{children:[(0,su.jsx)("h2",{children:(0,Xp.__)("Existing template parts")}),(0,su.jsx)(Pbe.__experimentalBlockPatternsList,{blockPatterns:c,onClickPattern:h=>{m(h.templatePart)}})]}),!f&&!g&&(0,su.jsx)(XT.__experimentalHStack,{alignment:"center",children:(0,su.jsx)("p",{children:(0,Xp.__)("No results found.")})})]})}var dk=a(ae(),1),JT=a(F(),1),ib=a(L(),1),Dbe=a(H(),1),Abe=a(I(),1);var lu=a(L(),1),uk=a(W(),1),ab=a(H(),1),ms=a(F(),1),jz=a(ae(),1),Lbe=a(br(),1);var xi=a(te(),1);function Ibe(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},Nbe((0,xi.createBlock)("core/legacy-widget",o))}let t=(0,xi.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;let r=t[0];return r.name==="core/widget-group"?(0,xi.createBlock)((0,xi.getGroupingBlockName)(),void 0,Hz(r.innerBlocks)):r.innerBlocks.length>0?(0,xi.cloneBlock)(r,void 0,Hz(r.innerBlocks)):r}function Nbe(e){let t=(0,xi.getPossibleBlockTransformations)([e]).filter(r=>{if(!r.transforms)return!0;let o=r.transforms?.from?.find(i=>i.blocks&&i.blocks.includes("*")),n=r.transforms?.to?.find(i=>i.blocks&&i.blocks.includes("*"));return!o&&!n});if(t.length)return(0,xi.switchToBlockType)(e,t[0].name)}function Hz(e=[]){return e.flatMap(t=>t.name==="core/legacy-widget"?Nbe(t):(0,xi.createBlock)(t.name,t.attributes,Hz(t.innerBlocks))).filter(t=>!!t)}var cd=a(y(),1),Mbe={per_page:-1,_fields:"id,name,description,status,widgets"};function Rbe({area:e,setAttributes:t}){let[r,o]=(0,uk.useState)(""),[n,i]=(0,uk.useState)(!1),s=(0,ab.useRegistry)(),{sidebars:l,hasResolved:c}=(0,ab.useSelect)(f=>{let{getSidebars:g,hasFinishedResolution:h}=f(jz.store);return{sidebars:g(Mbe),hasResolved:h("getSidebars",[Mbe])}},[]),{createErrorNotice:u}=(0,ab.useDispatch)(Lbe.store),d=YT(e,t),p=(0,uk.useMemo)(()=>{let f=(l??[]).filter(g=>g.id!=="wp_inactive_widgets"&&g.widgets.length>0).map(g=>({value:g.id,label:g.name}));return f.length?[{value:"",label:(0,lu.__)("Select widget area")},...f]:[]},[l]);if(!c)return(0,cd.jsx)(ms.__experimentalSpacer,{marginBottom:"0"});if(c&&!p.length)return null;async function m(f){if(f.preventDefault(),n||!r)return;i(!0);let g=p.find(({value:w})=>w===r),{getWidgets:h}=s.resolveSelect(jz.store),b=await h({sidebar:g.value,_embed:"about"}),_=new Set,v=b.flatMap(w=>{let x=Ibe(w);return x||(_.add(w.id_base),[])});await d(v,(0,lu.sprintf)((0,lu.__)("Widget area: %s"),g.label)),_.size&&u((0,lu.sprintf)((0,lu.__)("Unable to import the following widgets: %s."),Array.from(_).join(", ")),{type:"snackbar"}),i(!1)}return(0,cd.jsx)(ms.__experimentalSpacer,{marginBottom:"4",children:(0,cd.jsxs)(ms.__experimentalHStack,{as:"form",onSubmit:m,children:[(0,cd.jsx)(ms.FlexBlock,{children:(0,cd.jsx)(ms.SelectControl,{label:(0,lu.__)("Import widget area"),value:r,options:p,onChange:f=>o(f),disabled:!p.length})}),(0,cd.jsx)(ms.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"},children:(0,cd.jsx)(ms.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:n,"aria-disabled":n||!r,children:(0,lu._x)("Import","button label")})})]})})}var Jl=a(y(),1),{HTMLElementControl:TLe}=le(Abe.privateApis);function Obe({tagName:e,setAttributes:t,isEntityAvailable:r,templatePartId:o,defaultWrapper:n,hasInnerBlocks:i,clientId:s}){let[l,c]=(0,dk.useEntityProp)("postType","wp_template_part","area",o),[u,d]=(0,dk.useEntityProp)("postType","wp_template_part","title",o),m=(0,Dbe.useSelect)(f=>f(dk.store).getCurrentTheme()?.default_template_part_areas||[],[]).map(({label:f,area:g})=>({label:f,value:g}));return(0,Jl.jsxs)(Jl.Fragment,{children:[r&&(0,Jl.jsxs)(Jl.Fragment,{children:[(0,Jl.jsx)(JT.TextControl,{label:(0,ib.__)("Title"),value:u,onChange:f=>{d(f)},onFocus:f=>f.target.select()}),(0,Jl.jsx)(JT.SelectControl,{label:(0,ib.__)("Area"),labelPosition:"top",options:m,value:l,onChange:c})]}),(0,Jl.jsx)(TLe,{tagName:e||"",onChange:f=>t({tagName:f}),clientId:s,options:[{label:(0,ib.sprintf)((0,ib.__)("Default based on area (%s)"),`<${n}>`),value:""},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"},{label:"<div>",value:"div"}]}),!i&&(0,Jl.jsx)(Rbe,{area:l,setAttributes:t})]})}var sb=a(ae(),1),ki=a(I(),1),pk=a(H(),1),Fbe=a(W(),1),Vbe=a(te(),1),eE=a(y(),1);function ELe(e){if((0,ki.useBlockEditingMode)()==="contentOnly")return!1;if(!e)return ki.InnerBlocks.ButtonBlockAppender}function zbe(e){let t=(0,pk.useSelect)(o=>{let{getSettings:n}=o(ki.store);return n()?.supportsLayout},[]),[r]=(0,ki.useSettings)("layout");if(t)return e?.inherit?r||{}:e}function PLe({postId:e,layout:t,tagName:r,blockProps:o}){(0,ki.useBlockEditingMode)("disabled");let{content:n,editedBlocks:i}=(0,pk.useSelect)(c=>{if(!e)return{};let{getEditedEntityRecord:u}=c(sb.store),d=u("postType","wp_template_part",e,{context:"view"});return{editedBlocks:d.blocks,content:d.content}},[e]),s=(0,Fbe.useMemo)(()=>{if(e)return i||(!n||typeof n!="string"?[]:(0,Vbe.parse)(n))},[e,i,n]),l=(0,ki.useInnerBlocksProps)(o,{value:s,onInput:()=>{},onChange:()=>{},renderAppender:!1,layout:zbe(t)});return(0,eE.jsx)(r,{...l})}function BLe({postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:n}){let i=(0,pk.useSelect)(m=>m(ki.store).getSettings().onNavigateToEntityRecord,[]),[s,l,c]=(0,sb.useEntityBlockEditor)("postType","wp_template_part",{id:e}),u=(0,ki.useInnerBlocksProps)(n,{value:s,onInput:l,onChange:c,renderAppender:ELe(t),layout:zbe(r)}),p=(0,ki.useBlockEditingMode)()==="contentOnly"&&i?{onDoubleClick:()=>i({postId:e,postType:"wp_template_part"})}:{};return(0,eE.jsx)(o,{...u,...p})}function Hbe({postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:n}){let{canViewTemplatePart:i,canEditTemplatePart:s}=(0,pk.useSelect)(c=>({canViewTemplatePart:!!c(sb.store).canUser("read",{kind:"postType",name:"wp_template_part",id:e}),canEditTemplatePart:!!c(sb.store).canUser("update",{kind:"postType",name:"wp_template_part",id:e})}),[e]);return i?(0,eE.jsx)(s?BLe:PLe,{postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:n}):null}var tr=a(y(),1),Gbe=["header","footer","navigation-overlay"];function ILe({isEntityAvailable:e,area:t,templatePartId:r,isTemplatePartSelectionOpen:o,setIsTemplatePartSelectionOpen:n}){let{templateParts:i}=ob(t,r),s=!!i.length;return e&&s&&Gbe.includes(t)?(0,tr.jsx)(cu.MenuItem,{onClick:()=>{n(!0)},"aria-expanded":o,"aria-haspopup":"dialog",children:(0,fs.__)("Replace")}):null}function NLe({area:e,clientId:t,isEntityAvailable:r,onSelect:o}){let n=nb(e,t);return r&&!!n.length&&Gbe.includes(e)?(0,tr.jsx)(cu.PanelBody,{title:(0,fs.__)("Design"),children:(0,tr.jsx)(Co.__experimentalBlockPatternsList,{label:(0,fs.__)("Templates"),blockPatterns:n,onClickPattern:o,showTitlesAsTooltip:!0})}):null}function $be({attributes:e,setAttributes:t,clientId:r}){let{createSuccessNotice:o}=(0,lb.useDispatch)(Wbe.store),{editEntityRecord:n}=(0,lb.useDispatch)(mk.store),i=(0,lb.useSelect)(M=>M(mk.store).getCurrentTheme()?.stylesheet,[]),{slug:s,theme:l=i,tagName:c,layout:u={}}=e,d=Pa(l,s),p=(0,Co.useHasRecursion)(d),[m,f]=(0,Ube.useState)(!1),{isResolved:g,hasInnerBlocks:h,isMissing:b,area:_,onNavigateToEntityRecord:v,title:w,canUserEdit:x,canUserEditBlock:k}=(0,lb.useSelect)(M=>{let{getEditedEntityRecord:R,hasFinishedResolution:O}=M(mk.store),{getBlockCount:j,getSettings:V,canEditBlock:G}=M(Co.store),$=["postType","wp_template_part",d],z=d?R(...$):null,K=z?.area||e.area,q=d?O("getEditedEntityRecord",$):!1,Y=q?M(mk.store).canUser("update",{kind:"postType",name:"wp_template_part",id:d}):!1;return{hasInnerBlocks:j(r)>0,isResolved:q,isMissing:q&&(!z||Object.keys(z).length===0),area:K,onNavigateToEntityRecord:V().onNavigateToEntityRecord,title:z?.title,canUserEdit:!!Y,canUserEditBlock:G(r)}},[d,e.area,r]),C=QT(_),S=(0,Co.useBlockProps)(),P=!s,B=!P&&!b&&g,N=c||C.tagName,E=async M=>{await n("postType","wp_template_part",d,{blocks:M.blocks,content:(0,jbe.serialize)(M.blocks)}),o((0,fs.sprintf)((0,fs.__)('Template Part "%s" updated.'),w||s),{type:"snackbar"})};return!h&&(s&&!l||s&&b)?(0,tr.jsx)(N,{...S,children:(0,tr.jsx)(Co.Warning,{children:(0,fs.sprintf)((0,fs.__)("Template part has been deleted or is unavailable: %s"),s)})}):B&&p?(0,tr.jsx)(N,{...S,children:(0,tr.jsx)(Co.Warning,{children:(0,fs.__)("Block cannot be rendered inside itself.")})}):(0,tr.jsxs)(tr.Fragment,{children:[(0,tr.jsxs)(Co.RecursionProvider,{uniqueId:d,children:[B&&v&&x&&(0,tr.jsx)(Co.BlockControls,{group:"other",children:(0,tr.jsx)(cu.ToolbarButton,{onClick:()=>{v({postId:d,postType:"wp_template_part"})},children:(0,fs.__)("Edit original")})}),x&&(0,tr.jsx)(Co.InspectorControls,{group:"advanced",children:(0,tr.jsx)(Obe,{tagName:c,setAttributes:t,isEntityAvailable:B,templatePartId:d,defaultWrapper:C.tagName,hasInnerBlocks:h,clientId:r})}),P&&(0,tr.jsx)(N,{...S,children:(0,tr.jsx)(wbe,{area:e.area,templatePartId:d,clientId:r,setAttributes:t,onOpenSelectionModal:()=>f(!0)})}),(0,tr.jsx)(Co.BlockSettingsMenuControls,{children:({selectedClientIds:M})=>!k||!(M.length===1&&r===M[0])?null:(0,tr.jsx)(ILe,{isEntityAvailable:B,area:_,clientId:r,templatePartId:d,isTemplatePartSelectionOpen:m,setIsTemplatePartSelectionOpen:f})}),(0,tr.jsx)(Co.InspectorControls,{group:"settings",children:(0,tr.jsx)(NLe,{area:_,clientId:r,isEntityAvailable:B,onSelect:M=>E(M)})}),B&&(0,tr.jsx)(Hbe,{tagName:N,blockProps:S,postId:d,hasInnerBlocks:h,layout:u}),!P&&!g&&(0,tr.jsx)(N,{...S,children:(0,tr.jsx)(cu.Spinner,{})})]}),m&&(0,tr.jsx)(cu.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,fs.sprintf)((0,fs.__)("Choose a %s"),C.label.toLowerCase()),onRequestClose:()=>f(!1),isFullScreen:!0,children:(0,tr.jsx)(Bbe,{templatePartId:d,clientId:r,area:_,setAttributes:t,onClose:()=>f(!1)})})]})}var qbe=a(ae(),1),Zbe=a(H(),1);function Kbe(e,t){if(t!=="core/template-part")return e;if(e.variations){let r=(n,i)=>{let{area:s,theme:l,slug:c}=n;if(s)return s===i.area;if(!c)return!1;let{getCurrentTheme:u,getEntityRecord:d}=(0,Zbe.select)(qbe.store),p=d("postType","wp_template_part",`${l||u()?.stylesheet}//${c}`);return p?.slug?p.slug===i.slug:p?.area===i.area},o=e.variations.map(n=>({...n,...!n.isActive&&{isActive:r},...typeof n.icon=="string"&&{icon:r0(n.icon)}}));return{...e,variations:o}}return e}var{name:Jbe}=ZT,eye={icon:jv,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;let{getCurrentTheme:r,getEditedEntityRecord:o}=(0,Qbe.select)(Ybe.store),n=o("postType","wp_template_part",(t||r()?.stylesheet)+"//"+e);if(n)return(0,Xbe.decodeEntities)(n.title)||_q(n.slug||"")},edit:$be},MLe=()=>{(0,Uz.addFilter)("blocks.registerBlockType","core/template-part",Kbe);let e=["core/post-template","core/post-content"];return(0,Uz.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/removeTemplatePartsFromPostTemplates",(t,r,o,{getBlock:n,getBlockParentsByBlockName:i})=>{if(r.name!=="core/template-part")return t;for(let s of e)if(n(o)?.name===s||i(o,s).length)return!1;return!0}),D({name:Jbe,metadata:ZT,settings:eye})};var Zz={};J(Zz,{init:()=>DLe,metadata:()=>tE,name:()=>lye,settings:()=>cye});var tE={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!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-count"};var Eg=a(L(),1),rE=a(I(),1),iye=a(F(),1);var rl=a(F(),1),ec=a(y(),1),Gz=(0,ec.jsx)(rl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ec.jsx)(rl.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"})}),tye=(0,ec.jsx)(rl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ec.jsx)(rl.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"})}),rye=(0,ec.jsx)(rl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ec.jsx)(rl.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"})}),oye=(0,ec.jsx)(rl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ec.jsx)(rl.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"})}),nye=(0,ec.jsx)(rl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ec.jsx)(rl.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 fk=a(ae(),1),$z=a(H(),1);function aye(e,t){let[r]=(0,fk.useEntityProp)("taxonomy",t,"count",e),o=RLe(),n=!!(e&&t);return{hasContext:n,termCount:n?r||"":o}}function RLe(){let t=(0,$z.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:s,getCurrentTemplateId:l}=n("core/editor"),c=s(),u=l()||(c==="wp_template"?i():null);return u?n(fk.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,$z.useSelect)(n=>{if(!r||!o)return"";let{getEntityRecords:i}=n(fk.store),s=i("taxonomy",r,{slug:o,per_page:1});return s&&s[0]&&s[0].count||""},[r,o])}var Jp=a(y(),1),qz={none:{label:(0,Eg.__)("No brackets"),icon:Gz},round:{label:(0,Eg.__)("Round brackets"),icon:tye,before:"(",after:")"},square:{label:(0,Eg.__)("Square brackets"),icon:rye,before:"[",after:"]"},curly:{label:(0,Eg.__)("Curly brackets"),icon:oye,before:"{",after:"}"},angle:{label:(0,Eg.__)("Angle brackets"),icon:nye,before:"<",after:">"}};function sye({attributes:e,setAttributes:t,context:{termId:r,taxonomy:o}}){let{bracketType:n}=e,s=aye(r,o)?.termCount||0,l=(0,rE.useBlockProps)(),c=Object.entries(qz).map(([d,{label:p,icon:m}])=>({role:"menuitemradio",title:p,isActive:n===d,icon:m,onClick:()=>{t({bracketType:d})}})),u=(d,p)=>{let{before:m="",after:f=""}=qz[p]||{};return`${m}${d}${f}`};return(0,Jp.jsxs)(Jp.Fragment,{children:[(0,Jp.jsx)(rE.BlockControls,{group:"block",children:(0,Jp.jsx)(iye.ToolbarDropdownMenu,{icon:qz[n]?.icon??Gz,label:(0,Eg.__)("Change bracket type"),controls:c})}),(0,Jp.jsx)("div",{...l,children:u(s,n)})]})}var{name:lye}=tE,cye={icon:bN,example:{},edit:sye},DLe=()=>D({name:lye,metadata:tE,settings:cye});var Yz={};J(Yz,{init:()=>VLe,metadata:()=>oE,name:()=>gye,settings:()=>hye});var oE={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0}},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},shadow:!0,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}}};var dye=a(L(),1),pye=a(I(),1);var gk=a(ae(),1),Kz=a(H(),1);function uye(e,t){let[r,o,n]=(0,gk.useEntityProp)("taxonomy",t,"description",e),i=OLe(),s=!!(e&&t);return{hasContext:s,setDescription:o,termDescription:s?n?.rendered||r||"":i}}function OLe(){let t=(0,Kz.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:s,getCurrentTemplateId:l}=n("core/editor"),c=s(),u=l()||(c==="wp_template"?i():null);return u?n(gk.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,Kz.useSelect)(n=>{if(!r||!o)return"";let{getEntityRecords:i}=n(gk.store),s=i("taxonomy",r,{slug:o,per_page:1});return s&&s[0]&&s[0].description||""},[r,o])}var em=a(y(),1);function mye({context:{termId:e,taxonomy:t}}){let{termDescription:r}=uye(e,t),o=(0,pye.useBlockProps)();return(0,em.jsx)(em.Fragment,{children:(0,em.jsx)("div",{...o,children:r?(0,em.jsx)("div",{dangerouslySetInnerHTML:{__html:r}}):(0,em.jsx)("div",{className:"wp-block-term-description__placeholder",children:(0,em.jsx)("span",{children:(0,dye.__)("Term Description")})})})})}var FLe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},fye=[FLe];var{name:gye}=oE,hye={icon:vN,edit:mye,example:{},deprecated:fye},VLe=()=>D({name:gye,metadata:oE,settings:hye});var Qz={};J(Qz,{init:()=>ULe,metadata:()=>nE,name:()=>xye,settings:()=>kye});var nE={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},shadow:!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 hk=a(L(),1),tm=a(I(),1),cb=a(F(),1),yye=a($o(),1);var aE=a(ae(),1),iE=a(H(),1);function bye(e,t){let r=(0,iE.useSelect)(i=>!e||!t?null:i(aE.store).getEntityRecord("taxonomy",t,e),[e,t]),o=HLe(),n=!!(e&&t);return{hasContext:n,term:n?r:o}}function HLe(){let t=(0,iE.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:s,getCurrentTemplateId:l}=n("core/editor"),c=s(),u=l()||(c==="wp_template"?i():null);return u?n(aE.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,iE.useSelect)(n=>{if(!r||!o)return null;let{getEntityRecords:i}=n(aE.store),s=i("taxonomy",r,{slug:o,per_page:1});return s&&s[0]?s[0]:null},[r,o])}var gs=a(y(),1);function vye({attributes:e,setAttributes:t,context:{termId:r,taxonomy:o}}){let{level:n=0,isLink:i,levelOptions:s}=e,{term:l}=bye(r,o),c=l?.name?(0,yye.decodeEntities)(l.name):(0,hk.__)("Term Name"),u=(0,tm.useBlockProps)(),d=ee(),p=n===0?"p":`h${n}`,m=c;return i&&(m=(0,gs.jsx)("a",{href:"#term-name-pseudo-link",onClick:f=>f.preventDefault(),children:c})),(0,gs.jsxs)(gs.Fragment,{children:[(0,gs.jsx)(tm.BlockControls,{group:"block",children:(0,gs.jsx)(tm.HeadingLevelDropdown,{value:n,options:s,onChange:f=>{t({level:f})}})}),(0,gs.jsx)(tm.InspectorControls,{children:(0,gs.jsx)(cb.__experimentalToolsPanel,{label:(0,hk.__)("Settings"),resetAll:()=>{t({isLink:!1})},dropdownMenuProps:d,children:(0,gs.jsx)(cb.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,hk.__)("Make term name a link"),onDeselect:()=>t({isLink:!1}),isShownByDefault:!0,children:(0,gs.jsx)(cb.ToggleControl,{label:(0,hk.__)("Make term name a link"),onChange:()=>t({isLink:!i}),checked:i})})})}),(0,gs.jsx)(p,{...u,children:m})]})}var jLe={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:we,isEligible(e){return!!e.textAlign},save:()=>null},_ye=[jLe];var{name:xye}=nE,kye={icon:xN,example:{},edit:vye,deprecated:_ye},ULe=()=>D({name:xye,metadata:nE,settings:kye});var oH={};J(oH,{init:()=>QLe,metadata:()=>sE,name:()=>cve,settings:()=>uve});var sE={$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 tve=a(H(),1),rve=a(I(),1);var Xye=a(W(),1),uE=a(I(),1);var tc=a(L(),1),uu=a(F(),1),Yye=a(I(),1);var wye=a(ae(),1),Cye=a(H(),1),Sye=a(W(),1);function lE(){let e=(0,Cye.useSelect)(t=>t(wye.store).getTaxonomies({per_page:-1}),[]);return(0,Sye.useMemo)(()=>e?.filter(({visibility:t})=>t?.publicly_queryable)||[],[e])}var Tye=a(F(),1);var Eye=a(y(),1);function Pye({value:e,onChange:t,...r}){let n=lE().map(i=>({label:i.name,value:i.slug}));return(0,Eye.jsx)(Tye.SelectControl,{options:n,value:e,onChange:t,...r})}var bk=a(L(),1),Bye=a(F(),1),Iye=a(y(),1);function Nye({orderBy:e,order:t,onChange:r,...o}){return(0,Iye.jsx)(Bye.SelectControl,{options:[{label:(0,bk.__)("Name: A \u2192 Z"),value:"name/asc"},{label:(0,bk.__)("Name: Z \u2192 A"),value:"name/desc"},{label:(0,bk.__)("Count, high to low"),value:"count/desc"},{label:(0,bk.__)("Count, low to high"),value:"count/asc"}],value:e+"/"+t,onChange:n=>{let[i,s]=n.split("/");r(i,s)},...o})}var Mye=a(F(),1),Lye=a(y(),1);function Rye({value:e,onChange:t,...r}){return(0,Lye.jsx)(Mye.ToggleControl,{checked:!e,onChange:o=>t(!o),...r})}var Dye=a(F(),1),Aye=a(y(),1);function Oye({value:e,onChange:t,...r}){return(0,Aye.jsx)(Dye.ToggleControl,{checked:e,onChange:t,...r})}var vk=a(F(),1),yk=a(L(),1),_k=a(y(),1);function Fye({value:e,onChange:t,label:r}){return(0,_k.jsxs)(vk.__experimentalToggleGroupControl,{label:r,isBlock:!0,onChange:o=>{t({inherit:o==="default"})},help:e?(0,yk.__)("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,yk.__)("Display terms based on specific criteria."),value:e?"default":"custom",children:[(0,_k.jsx)(vk.__experimentalToggleGroupControlOption,{value:"default",label:(0,yk.__)("Default")}),(0,_k.jsx)(vk.__experimentalToggleGroupControlOption,{value:"custom",label:(0,yk.__)("Custom")})]})}var Vye=a(L(),1),zye=a(F(),1),Hye=a(y(),1);function jye({value:e,onChange:t,...r}){return(0,Hye.jsx)(zye.RangeControl,{value:e,min:0,max:100,onChange:t,help:(0,Vye.__)("Limit the number of terms you want to show. To show all terms, use 0 (zero)."),...r})}var Uye=a(L(),1),cE=a(I(),1);var Xz=a(y(),1),{HTMLElementControl:GLe}=le(cE.privateApis);function Wye({TagName:e,setAttributes:t,clientId:r}){return(0,Xz.jsx)(cE.InspectorControls,{group:"advanced",children:(0,Xz.jsx)(GLe,{tagName:e,onChange:o=>t({tagName:o}),clientId:r,options:[{label:(0,Uye.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})}var $ye=a(F(),1),Jz=a(H(),1),eH=a(ae(),1),ud=a(W(),1),qye=a(_e(),1),tH=a($o(),1),Zye=a(y(),1),Pg=[],Gye={order:"asc",_fields:"id,name",context:"view"};function Kye({value:e,taxonomy:t,onChange:r,...o}){let[n,i]=(0,ud.useState)(""),[s,l]=(0,ud.useState)(Pg),[c,u]=(0,ud.useState)(Pg),d=(0,qye.useDebounce)(i,250),{searchResults:p,searchHasResolved:m}=(0,Jz.useSelect)(_=>{if(!n)return{searchResults:Pg,searchHasResolved:!0};let{getEntityRecords:v,hasFinishedResolution:w}=_(eH.store),x=["taxonomy",t,{...Gye,search:n,orderby:"name",exclude:e,per_page:20}];return{searchResults:v(...x),searchHasResolved:w("getEntityRecords",x)}},[n,t,e]),f=(0,Jz.useSelect)(_=>{if(!e?.length)return Pg;let{getEntityRecords:v}=_(eH.store);return v("taxonomy",t,{...Gye,include:e,per_page:e.length})},[e,t]);(0,ud.useEffect)(()=>{if(e?.length||l(Pg),!f?.length)return;let _=e.reduce((v,w)=>{let x=f.find(k=>k.id===w);return x&&v.push({id:w,value:(0,tH.decodeEntities)(x.name)}),v},[]);l(_)},[e,f]);let g=(0,ud.useMemo)(()=>{if(!p?.length)return{names:Pg,mapByName:{}};let _=[],v={};return p.forEach(w=>{let x=(0,tH.decodeEntities)(w.name);_.push(x),v[x]=w}),{names:_,mapByName:v}},[p]);(0,ud.useEffect)(()=>{m&&u(g.names)},[g.names,m]);let h=(_,v)=>v?.id||_?.[v]?.id;return(0,Zye.jsx)($ye.FormTokenField,{value:s,onInputChange:d,suggestions:c,onChange:_=>{let v=Array.from(_.reduce((w,x)=>{let k=h(g.mapByName,x);return k&&w.add(k),w},new Set));u(Pg),r(v)},help:"",...o})}var Jr=a(y(),1);function Qye({attributes:e,setQuery:t,setAttributes:r,clientId:o,templateSlug:n}){let{termQuery:i,tagName:s}=e,{taxonomy:l,orderBy:c,order:u,hideEmpty:d,inherit:p,showNested:m,perPage:f,include:g}=i,h=ee(),_=lE().find(R=>R.slug===l)?.hierarchical,v=!!p,w=["taxonomy","category","tag","archive"].includes(n)||n?.startsWith("taxonomy-")||n?.startsWith("category-")||n?.startsWith("tag-"),x=_,k=!!g?.length,C=(0,tc.__)("Query type"),S=(0,tc.__)("Taxonomy"),P=(0,tc.__)("Order by"),B=(0,tc.__)("Show empty terms"),N=(0,tc.__)("Show nested terms"),E=(0,tc.__)("Max terms"),M=(0,tc.__)("Selected terms");return(0,Jr.jsxs)(Jr.Fragment,{children:[(0,Jr.jsx)(Yye.InspectorControls,{children:(0,Jr.jsxs)(uu.__experimentalToolsPanel,{label:(0,tc.__)("Settings"),resetAll:()=>{r({termQuery:{taxonomy:"category",order:"asc",orderBy:"name",include:[],hideEmpty:!0,showNested:!1,inherit:!1,perPage:10}})},dropdownMenuProps:h,children:[w&&(0,Jr.jsx)(uu.__experimentalToolsPanelItem,{hasValue:()=>p!==!1,label:C,onDeselect:()=>t({inherit:!1}),isShownByDefault:!0,children:(0,Jr.jsx)(Fye,{label:C,value:p,onChange:t})}),!v&&(0,Jr.jsx)(uu.__experimentalToolsPanelItem,{hasValue:()=>l!=="category",label:S,onDeselect:()=>{t({taxonomy:"category"})},isShownByDefault:!0,children:(0,Jr.jsx)(Pye,{label:S,value:l,onChange:R=>t({taxonomy:R,include:[]})})}),(0,Jr.jsx)(uu.__experimentalToolsPanelItem,{hasValue:()=>c!=="name"||u!=="asc",label:P,onDeselect:()=>t({orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,Jr.jsx)(Nye,{label:P,orderBy:c,order:u,onChange:(R,O)=>{t({orderBy:R,order:O})},disabled:k,help:k?(0,tc.__)("When specific terms are selected, the order is based on their selection order."):void 0})}),!v&&(0,Jr.jsx)(uu.__experimentalToolsPanelItem,{hasValue:()=>!!g?.length,label:M,onDeselect:()=>t({include:[],orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,Jr.jsx)(Kye,{label:M,taxonomy:l,value:g,onChange:R=>t({include:R})})}),(0,Jr.jsx)(uu.__experimentalToolsPanelItem,{hasValue:()=>d!==!0,label:B,onDeselect:()=>t({hideEmpty:!0}),isShownByDefault:!0,children:(0,Jr.jsx)(Rye,{label:B,value:d,onChange:R=>t({hideEmpty:R})})}),x&&(0,Jr.jsx)(uu.__experimentalToolsPanelItem,{hasValue:()=>m!==!1,label:N,onDeselect:()=>t({showNested:!1}),isShownByDefault:!0,children:(0,Jr.jsx)(Oye,{label:N,value:m,onChange:R=>t({showNested:R}),disabled:k,help:k?(0,tc.__)("When specific terms are selected, only those are displayed."):void 0})}),(0,Jr.jsx)(uu.__experimentalToolsPanelItem,{hasValue:()=>f!==10,label:E,onDeselect:()=>t({perPage:10}),isShownByDefault:!0,children:(0,Jr.jsx)(jye,{label:E,value:f,onChange:R=>t({perPage:R})})})]})}),(0,Jr.jsx)(Wye,{TagName:s,setAttributes:r,clientId:o})]})}var Bg=a(y(),1);function Jye({attributes:e,setAttributes:t,clientId:r,context:o}){let{tagName:n}=e,i=(0,uE.useBlockProps)(),s=(0,uE.useInnerBlocksProps)(i,{}),l=(0,Xye.useCallback)(c=>t(u=>({termQuery:{...u.termQuery,...c}})),[t]);return(0,Bg.jsxs)(Bg.Fragment,{children:[(0,Bg.jsx)(Qye,{attributes:e,setQuery:l,setAttributes:t,clientId:r,templateSlug:o?.templateSlug}),(0,Bg.jsx)(n,{...s})]})}var dE=a(H(),1),pE=a(te(),1),ub=a(I(),1),rH=a(y(),1);function eve({attributes:e,clientId:t,name:r}){let{blockType:o,activeBlockVariation:n,scopeVariations:i}=(0,dE.useSelect)(d=>{let{getActiveBlockVariation:p,getBlockType:m,getBlockVariations:f}=d(pE.store);return{blockType:m(r),activeBlockVariation:p(r,e),scopeVariations:f(r,"block")}},[r,e]),s=n?.icon?.src||n?.icon||o?.icon?.src,l=n?.title||o?.title,{replaceInnerBlocks:c}=(0,dE.useDispatch)(ub.store),u=(0,ub.useBlockProps)();return(0,rH.jsx)("div",{...u,children:(0,rH.jsx)(ub.__experimentalBlockVariationPicker,{icon:s,label:l,variations:i,onSelect:d=>{d.innerBlocks&&c(t,(0,pE.createBlocksFromInnerBlocksTemplate)(d.innerBlocks),!1)}})})}var ove=a(y(),1),$Le=e=>{let r=(0,tve.useSelect)(o=>!!o(rve.store).getBlocks(e.clientId).length,[e.clientId])?Jye:eve;return(0,ove.jsx)(r,{...e})},nve=$Le;var mE=a(I(),1),ave=a(y(),1);function ive({attributes:{tagName:e="div"}}){let t=mE.useBlockProps.save(),r=mE.useInnerBlocksProps.save(t);return(0,ave.jsx)(e,{...r})}var xk=a(L(),1),db=a(F(),1),kk=a(y(),1),qLe=(0,kk.jsx)(db.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,kk.jsx)(db.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"})}),ZLe=(0,kk.jsx)(db.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,kk.jsx)(db.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"})}),sve=["core/term-name",{isLink:!0}],KLe=[{name:"name",title:(0,xk.__)("Name"),description:(0,xk.__)("Display the terms' names."),attributes:{},icon:qLe,scope:["block"],innerBlocks:[["core/term-template",{},[sve]]]},{name:"name-count",title:(0,xk.__)("Name & Count"),description:(0,xk.__)("Display the terms' names and number of posts assigned to each term."),attributes:{},icon:ZLe,scope:["block"],innerBlocks:[["core/term-template",{},[["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[sve,["core/term-count"]]]]]]}],lve=KLe;var{name:cve}=sE,YLe=[["core/term-template"]],uve={icon:bm,template:YLe,edit:nve,save:ive,example:{},variations:lve},QLe=()=>D({name:cve,metadata:sE,settings:uve});var nH={};J(nH,{init:()=>nRe,metadata:()=>fE,name:()=>yve,settings:()=>vve});var fE={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!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},shadow:!0},style:"wp-block-term-template",editorStyle:"wp-block-term-template-editor"};var dve=a(F(),1);var pb=a(W(),1),pve=a(H(),1),wk=a(L(),1),ol=a(I(),1),mve=a(ae(),1),En=a(y(),1),JLe={type:"default"};function eRe({classList:e}){let t=(0,ol.useInnerBlocksProps)({className:T("wp-block-term",e)},{__unstableDisableLayoutClassNames:!0,layout:JLe});return(0,En.jsx)("li",{...t})}function tRe({blocks:e,blockContextId:t,classList:r,isHidden:o,setActiveBlockContextId:n}){let i=(0,ol.__experimentalUseBlockPreview)({blocks:e,props:{className:T("wp-block-term",r)}}),s=()=>{n(t)};return(0,En.jsx)("li",{...i,tabIndex:0,role:"button",onClick:s,onKeyPress:s,style:{display:o?"none":void 0}})}var rRe=(0,pb.memo)(tRe);function fve({clientId:e,attributes:{layout:t},setAttributes:r,context:{termQuery:{taxonomy:o,order:n,orderBy:i,hideEmpty:s,showNested:l=!1,perPage:c,include:u}={}},__unstableLayoutClassNames:d}){let{type:p,columnCount:m=3}=t||{},[f,g]=(0,pb.useState)(),h={hide_empty:s,order:n,orderby:i,per_page:c||-1};!l&&!u?.length&&(h.parent=0),u?.length&&(h.include=u,h.orderby="include",h.order="asc");let{records:b}=(0,mve.useEntityRecords)("taxonomy",o,h),_=(0,pve.useSelect)(k=>k(ol.store).getBlocks(e),[e]),v=(0,ol.useBlockProps)({className:d}),w=(0,pb.useMemo)(()=>b?.map(k=>({taxonomy:o,termId:k.id,classList:`term-${k.id}`,termData:k})),[b,o]);if(!b)return(0,En.jsx)("ul",{...v,children:(0,En.jsx)("li",{className:"wp-block-term term-loading",children:(0,En.jsx)("div",{className:"term-loading-placeholder"})})});if(!b.length)return(0,En.jsxs)("p",{...v,children:[" ",(0,wk.__)("No terms found.")]});let x=k=>r(C=>({layout:{...C.layout,...k}}));return(0,En.jsxs)(En.Fragment,{children:[(0,En.jsx)(ol.BlockControls,{children:(0,En.jsx)(dve.ToolbarGroup,{controls:[{icon:pl,title:(0,wk._x)("List view","Term template block display setting"),onClick:()=>x({type:"default"}),isActive:p==="default"||p==="constrained"},{icon:Ei,title:(0,wk._x)("Grid view","Term template block display setting"),onClick:()=>x({type:"grid",columnCount:m}),isActive:p==="grid"}]})}),(0,En.jsx)("ul",{...v,children:w?.map(k=>(0,En.jsxs)(ol.BlockContextProvider,{value:k,children:[k.termId===(f||w[0]?.termId)?(0,En.jsx)(eRe,{classList:k.classList}):null,(0,En.jsx)(rRe,{blocks:_,blockContextId:k.termId,classList:k.classList,setActiveBlockContextId:g,isHidden:k.termId===(f||w[0]?.termId)})]},k.termId))})]})}var gve=a(I(),1),hve=a(y(),1);function bve(){return(0,hve.jsx)(gve.InnerBlocks.Content,{})}var{name:yve}=fE,oRe=[["core/term-name"]],vve={icon:hm,template:oRe,edit:fve,save:bve,example:{}},nRe=()=>D({name:yve,metadata:fE,settings:vve});var aH={};J(aH,{init:()=>sRe,metadata:()=>hE,name:()=>Cve,settings:()=>Sve});var mb=a(L(),1),gE=a(F(),1),du=a(I(),1),_ve=a(jm(),1),hs=a(y(),1);function xve({attributes:e,setAttributes:t}){let{width:r,content:o,columns:n}=e;return(0,_ve.default)("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,hs.jsxs)(hs.Fragment,{children:[(0,hs.jsx)(du.BlockControls,{children:(0,hs.jsx)(du.BlockAlignmentToolbar,{value:r,onChange:i=>t({width:i}),controls:["center","wide","full"]})}),(0,hs.jsx)(du.InspectorControls,{children:(0,hs.jsx)(gE.PanelBody,{children:(0,hs.jsx)(gE.RangeControl,{label:(0,mb.__)("Columns"),value:n,onChange:i=>t({columns:i}),min:2,max:4,required:!0})})}),(0,hs.jsx)("div",{...(0,du.useBlockProps)({className:`align${r} columns-${n}`}),children:Array.from({length:n}).map((i,s)=>(0,hs.jsx)("div",{className:"wp-block-column",children:(0,hs.jsx)(du.RichText,{tagName:"p",value:o?.[s]?.children,onChange:l=>{t({content:[...o.slice(0,s),{children:l},...o.slice(s+1)]})},"aria-label":(0,mb.sprintf)((0,mb.__)("Column %d text"),s+1),placeholder:(0,mb.__)("New Column")})},`column-${s}`))})]})}var hE={$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 yE=a(I(),1),bE=a(y(),1);function kve({attributes:e}){let{width:t,content:r,columns:o}=e;return(0,bE.jsx)("div",{...yE.useBlockProps.save({className:`align${t} columns-${o}`}),children:Array.from({length:o}).map((n,i)=>(0,bE.jsx)("div",{className:"wp-block-column",children:(0,bE.jsx)(yE.RichText.Content,{tagName:"p",value:r?.[i]?.children})},`column-${i}`))})}var vE=a(te(),1),iRe={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:r,width:o})=>(0,vE.createBlock)("core/columns",{align:o==="wide"||o==="full"?o:void 0,className:e,columns:t},r.map(({children:n})=>(0,vE.createBlock)("core/column",{},[(0,vE.createBlock)("core/paragraph",{content:n})])))}]},wve=iRe;var{name:Cve}=hE,Sve={transforms:wve,getEditWrapperProps(e){let{width:t}=e;if(t==="wide"||t==="full")return{"data-align":t}},edit:xve,save:kve},sRe=()=>D({name:Cve,metadata:hE,settings:Sve});var cH={};J(cH,{init:()=>mRe,metadata:()=>kE,name:()=>Mve,settings:()=>Lve});var Nve=a(L(),1);var Ig=a(I(),1);var fb=a(y(),1),lRe={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){let{textAlign:t,content:r}=e;return(0,fb.jsx)(Ig.RichText.Content,{tagName:"pre",style:{textAlign:t},value:r})},migrate:we},cRe={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=T({[`has-text-align-${t}`]:t});return(0,fb.jsx)("pre",{...Ig.useBlockProps.save({className:o}),children:(0,fb.jsx)(Ig.RichText.Content,{value:r})})},migrate(e){return we(or(e))},isEligible({style:e,textAlign:t}){return e?.typography?.fontFamily||!!t}},uRe={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=T({[`has-text-align-${t}`]:t});return(0,fb.jsx)("pre",{...Ig.useBlockProps.save({className:o}),children:(0,fb.jsx)(Ig.RichText.Content,{value:r})})},migrate:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},Tve=[uRe,cRe,lRe];var iH=a(L(),1),_E=a(I(),1),xE=a(te(),1);var Eve=a(y(),1);function Pve(e){let{attributes:t,setAttributes:r,mergeBlocks:o,onRemove:n,insertBlocksAfter:i,style:s}=e,{content:l}=t;Pt(e);let c=(0,_E.useBlockProps)({style:s});return(0,Eve.jsx)(_E.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:u=>{r({content:u})},"aria-label":(0,iH.__)("Poetry text"),placeholder:(0,iH.__)("Write poetry\u2026"),onRemove:n,onMerge:o,...c,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:i?()=>i((0,xE.createBlock)((0,xE.getDefaultBlockName)())):void 0})}var kE={$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}},shadow:!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 wE=a(I(),1),sH=a(y(),1);function Bve({attributes:e}){let{content:t}=e;return(0,sH.jsx)("pre",{...wE.useBlockProps.save(),children:(0,sH.jsx)(wE.RichText.Content,{value:t})})}var lH=a(te(),1),pRe={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,lH.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,lH.createBlock)("core/paragraph",e)}]},Ive=pRe;var{name:Mve}=kE,Lve={icon:h_,example:{attributes:{content:(0,Nve.__)(`WHAT was he doing, the great god Pan,
144 Down in the reeds by the river?
145 Spreading ruin and scattering ban,
146 Splashing and paddling with hoofs of a goat,
147 And breaking the golden lilies afloat
148 With the dragon-fly on the river.`)}},transforms:Ive,deprecated:Tve,merge(e,t){return{content:e.content+`
149
150 `+t.content}},edit:Pve,save:Bve},mRe=()=>D({name:Mve,metadata:kE,settings:Lve});var pH={};J(pH,{init:()=>TRe,metadata:()=>gb,name:()=>Yve,settings:()=>Qve});var Kve=a(L(),1);var Ck=a(I(),1);var gb={$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},shadow:{__experimentalSkipSerialization:!0}},selectors:{shadow:".wp-block-video video"},editorStyle:"wp-block-video-editor",style:"wp-block-video"};var Rve=a(y(),1);function hb({tracks:e=[]}){return e.map(t=>{let{id:r,...o}=t;return(0,Rve.jsx)("track",{...o},r??o.src)})}var bb=a(y(),1),{attributes:gRe}=gb,hRe={attributes:gRe,save({attributes:e}){let{autoplay:t,caption:r,controls:o,loop:n,muted:i,poster:s,preload:l,src:c,playsInline:u,tracks:d}=e;return(0,bb.jsxs)("figure",{...Ck.useBlockProps.save(),children:[c&&(0,bb.jsx)("video",{autoPlay:t,controls:o,loop:n,muted:i,poster:s,preload:l!=="metadata"?l:void 0,src:c,playsInline:u,children:(0,bb.jsx)(hb,{tracks:d})}),!Ck.RichText.isEmpty(r)&&(0,bb.jsx)(Ck.RichText.Content,{tagName:"figcaption",value:r})]})}},bRe=[hRe],Dve=bRe;var jve=a(Ur(),1),vb=a(F(),1),Bn=a(I(),1),_b=a(W(),1),Tk=a(L(),1),Uve=a(H(),1);var Wve=a(br(),1),Gve=a(qt(),1);var co=a(L(),1),Va=a(F(),1),Sk=a(W(),1),Pn=a(y(),1),yRe=[{value:"auto",label:(0,co.__)("Auto")},{value:"metadata",label:(0,co.__)("Metadata")},{value:"none",label:(0,co._x)("None","Preload value")}],vRe=({setAttributes:e,attributes:t})=>{let{autoplay:r,controls:o,loop:n,muted:i,playsInline:s,preload:l}=t,c=(0,co.__)("Autoplay may cause usability issues for some users."),u=(0,Sk.useCallback)(m=>m?c:null,[]),d=(0,Sk.useMemo)(()=>{let m=f=>g=>{e({[f]:g,...f==="autoplay"&&{muted:g,playsInline:g}})};return{autoplay:m("autoplay"),loop:m("loop"),muted:m("muted"),controls:m("controls"),playsInline:m("playsInline")}},[]),p=(0,Sk.useCallback)(m=>{e({preload:m})},[]);return(0,Pn.jsxs)(Pn.Fragment,{children:[(0,Pn.jsx)(Va.__experimentalToolsPanelItem,{label:(0,co.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>{e({autoplay:!1,muted:!1})},children:(0,Pn.jsx)(Va.ToggleControl,{label:(0,co.__)("Autoplay"),onChange:d.autoplay,checked:!!r,help:u})}),(0,Pn.jsx)(Va.__experimentalToolsPanelItem,{label:(0,co.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{e({loop:!1})},children:(0,Pn.jsx)(Va.ToggleControl,{label:(0,co.__)("Loop"),onChange:d.loop,checked:!!n})}),(0,Pn.jsx)(Va.__experimentalToolsPanelItem,{label:(0,co.__)("Muted"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>{e({muted:!1})},children:(0,Pn.jsx)(Va.ToggleControl,{label:(0,co.__)("Muted"),onChange:d.muted,checked:!!i,disabled:r,help:r?(0,co.__)("Muted because of Autoplay."):null})}),(0,Pn.jsx)(Va.__experimentalToolsPanelItem,{label:(0,co.__)("Playback controls"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>{e({controls:!0})},children:(0,Pn.jsx)(Va.ToggleControl,{label:(0,co.__)("Playback controls"),onChange:d.controls,checked:!!o})}),(0,Pn.jsx)(Va.__experimentalToolsPanelItem,{label:(0,co.__)("Play inline"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>{e({playsInline:!1})},children:(0,Pn.jsx)(Va.ToggleControl,{label:(0,co.__)("Play inline"),onChange:d.playsInline,checked:!!s,disabled:r,help:r?(0,co.__)("Play inline enabled because of Autoplay."):(0,co.__)("When enabled, videos will play directly within the webpage on mobile browsers, instead of opening in a fullscreen player.")})}),(0,Pn.jsx)(Va.__experimentalToolsPanelItem,{label:(0,co.__)("Preload"),isShownByDefault:!0,hasValue:()=>l!=="metadata",onDeselect:()=>{e({preload:"metadata"})},children:(0,Pn.jsx)(Va.SelectControl,{label:(0,co.__)("Preload"),value:l,onChange:p,options:yRe,hideCancelButton:!0})})]})},Ave=vRe;var Gt=a(L(),1),ht=a(F(),1);var yb=a(I(),1);var Fve=a(H(),1),Ng=a(W(),1),Vve=a(qt(),1),ot=a(y(),1),Ove=["text/vtt"],_Re="subtitles",xRe=[{label:(0,Gt.__)("Subtitles"),value:"subtitles"},{label:(0,Gt.__)("Captions"),value:"captions"},{label:(0,Gt.__)("Descriptions"),value:"descriptions"},{label:(0,Gt.__)("Chapters"),value:"chapters"},{label:(0,Gt.__)("Metadata"),value:"metadata"}],zve={src:"",label:"",srcLang:"en",kind:_Re,default:!1};function kRe({tracks:e,onEditPress:t}){let r=e.map((o,n)=>(0,ot.jsxs)(ht.__experimentalHStack,{className:"block-library-video-tracks-editor__track-list-track",children:[(0,ot.jsx)("span",{children:o.label}),(0,ot.jsxs)(ht.__experimentalHStack,{justify:"flex-end",children:[o.default&&(0,ot.jsx)(EM,{intent:"none",children:(0,Gt.__)("Default")}),(0,ot.jsx)(ht.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(n),"aria-label":(0,Gt.sprintf)((0,Gt._x)("Edit %s","text tracks"),o.label),children:(0,Gt.__)("Edit")})]})]},o.id??o.src));return(0,ot.jsx)(ht.MenuGroup,{label:(0,Gt.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list",children:r})}function wRe({track:e,onChange:t,onClose:r,onRemove:o,allowSettingDefault:n}){let[i,s]=(0,Ng.useState)({...zve,...e}),{src:l,label:c,srcLang:u,kind:d,default:p}=i,m=l.startsWith("blob:")?"":(0,Vve.getFilename)(l)||"";return(0,ot.jsxs)(ht.__experimentalVStack,{className:"block-library-video-tracks-editor__single-track-editor",spacing:"4",children:[(0,ot.jsx)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label",children:(0,Gt.__)("Edit track")}),(0,ot.jsxs)("span",{children:[(0,Gt.__)("File"),": ",(0,ot.jsx)("b",{children:m})]}),(0,ot.jsxs)(ht.__experimentalGrid,{columns:2,gap:4,children:[(0,ot.jsx)(ht.TextControl,{onChange:f=>s(g=>({...g,label:f})),label:(0,Gt.__)("Label"),value:c,help:(0,Gt.__)("Title of track")}),(0,ot.jsx)(ht.TextControl,{onChange:f=>s(g=>({...g,srcLang:f})),label:(0,Gt.__)("Source language"),value:u,help:(0,Gt.__)("Language tag (en, fr, etc.)")})]}),(0,ot.jsxs)(ht.__experimentalVStack,{spacing:"4",children:[(0,ot.jsx)(ht.SelectControl,{className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:xRe,value:d,label:(0,Gt.__)("Kind"),onChange:f=>s(g=>({...g,kind:f}))}),(0,ot.jsx)(ht.ToggleControl,{label:(0,Gt.__)("Set as default track"),checked:p,disabled:!n,onChange:f=>s(g=>({...g,default:f}))}),(0,ot.jsxs)(ht.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container",children:[(0,ot.jsx)(ht.Button,{__next40pxDefaultSize:!0,isDestructive:!0,variant:"link",onClick:o,children:(0,Gt.__)("Remove track")}),(0,ot.jsx)(ht.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t(i),r()},children:(0,Gt.__)("Apply")})]})]})]})}function Hve({tracks:e=[],onChange:t}){let r=(0,Fve.useSelect)(c=>c(yb.store).getSettings().mediaUpload,[]),[o,n]=(0,Ng.useState)(null),i=(0,Ng.useRef)(),s=(c=[],u=!1)=>{let d=new Map(e.map(m=>[m.id,m])),p=c.map(({id:m,title:f,url:g})=>d.has(m)?d.get(m):{...zve,id:m,label:f||"",src:g});p.length!==0&&t([...u?e:[],...p])};function l(c){let u=c.target.files;r({allowedTypes:Ove,filesList:u,onFileChange:d=>{if(!Array.isArray(d))return;let p=d.filter(m=>!!m?.id);p.length&&s(p,!0)}})}return(0,Ng.useEffect)(()=>{i.current?.focus()},[o]),r?(0,ot.jsx)(ht.Dropdown,{contentClassName:"block-library-video-tracks-editor",focusOnMount:!0,popoverProps:{ref:i},renderToggle:({isOpen:c,onToggle:u})=>(0,ot.jsx)(ht.ToolbarGroup,{children:(0,ot.jsx)(ht.ToolbarButton,{"aria-expanded":c,"aria-haspopup":"true",onClick:()=>{c||n(null),u()},children:(0,Gt.__)("Text tracks")})}),renderContent:()=>o!==null?(0,ot.jsx)(wRe,{track:e[o],onChange:c=>{let u=[...e];u[o]=c,t(u)},onClose:()=>n(null),onRemove:()=>{t(e.filter((c,u)=>u!==o)),n(null)},allowSettingDefault:!e.some(c=>c.default)||e[o].default}):(0,ot.jsxs)(ot.Fragment,{children:[e.length===0&&(0,ot.jsxs)("div",{className:"block-library-video-tracks-editor__tracks-informative-message",children:[(0,ot.jsx)("h2",{className:"block-library-video-tracks-editor__tracks-informative-message-title",children:(0,Gt.__)("Text tracks")}),(0,ot.jsx)("p",{className:"block-library-video-tracks-editor__tracks-informative-message-description",children:(0,Gt.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")})]}),(0,ot.jsxs)(ht.NavigableMenu,{children:[(0,ot.jsx)(kRe,{tracks:e,onEditPress:n}),(0,ot.jsx)(ht.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,Gt.__)("Add tracks"),children:(0,ot.jsxs)(yb.MediaUploadCheck,{children:[(0,ot.jsx)(yb.MediaUpload,{onSelect:s,allowedTypes:Ove,value:e.map(({id:c})=>c),multiple:!0,render:({open:c})=>(0,ot.jsx)(ht.MenuItem,{icon:$y,onClick:c,children:(0,Gt.__)("Open Media Library")})}),(0,ot.jsx)(ht.FormFileUpload,{onChange:l,accept:".vtt,text/vtt",multiple:!0,render:({openFileDialog:c})=>(0,ot.jsx)(ht.MenuItem,{icon:vu,onClick:c,children:(0,Gt._x)("Upload","verb")})})]})})]})]})}):null}var Br=a(y(),1),uH=["video"];function CRe({isSelected:e,attributes:t,className:r,setAttributes:o,insertBlocksAfter:n,onReplace:i}){let s=(0,_b.useRef)(),{id:l,controls:c,poster:u,src:d,tracks:p,width:m,height:f,autoplay:g,loop:h,muted:b,playsInline:_}=t,v=m&&f?`${m} / ${f}`:void 0,w={...v&&{aspectRatio:v},...(0,Bn.__experimentalGetShadowClassesAndStyles)(t).style},[x,k]=(0,_b.useState)(t.blob),C=ee(),P=(0,Bn.useBlockEditingMode)()==="default";ic({url:x,allowedTypes:uH,onChange:B,onError:M}),(0,_b.useEffect)(()=>{s.current&&s.current.load()},[u]);function B(V){if(!V||!V.url){o({src:void 0,id:void 0,poster:void 0,caption:void 0,blob:void 0}),k();return}if((0,jve.isBlobURL)(V.url)){k(V.url);return}o({blob:void 0,src:V.url,id:V.id,poster:V.image?.src!==V.icon?V.image?.src:void 0,caption:V.caption}),k()}function N(V){if(V!==d){let G=(0,Gve.prependHTTPS)(V),$=Od({attributes:{url:G}});if($!==void 0&&i){i($);return}o({blob:void 0,src:G,id:void 0,poster:void 0}),k()}}let{createErrorNotice:E}=(0,Uve.useDispatch)(Wve.store);function M(V){E(V,{type:"snackbar"})}let R=V=>(0,Br.jsx)(vb.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!e,icon:gh,label:(0,Tk.__)("Video"),instructions:(0,Tk.__)("Drag and drop a video, upload, or choose from your library."),children:V}),O=T(r,{"is-transient":!!x}),j=(0,Bn.useBlockProps)({className:O});return!d&&!x?(0,Br.jsx)("div",{...j,children:(0,Br.jsx)(Bn.MediaPlaceholder,{icon:(0,Br.jsx)(Bn.BlockIcon,{icon:gh}),onSelect:B,onSelectURL:N,accept:"video/*",allowedTypes:uH,value:t,onError:M,placeholder:R})}):(0,Br.jsxs)(Br.Fragment,{children:[e&&(0,Br.jsxs)(Br.Fragment,{children:[(0,Br.jsx)(Bn.BlockControls,{children:(0,Br.jsx)(Hve,{tracks:p,onChange:V=>{o({tracks:V})}})}),(0,Br.jsx)(Bn.BlockControls,{group:"other",children:(0,Br.jsx)(Bn.MediaReplaceFlow,{mediaId:l,mediaURL:d,allowedTypes:uH,accept:"video/*",onSelect:B,onSelectURL:N,onError:M,onReset:()=>B(void 0),variant:"toolbar"})})]}),(0,Br.jsx)(Bn.InspectorControls,{children:(0,Br.jsxs)(vb.__experimentalToolsPanel,{label:(0,Tk.__)("Settings"),resetAll:()=>{o({autoplay:!1,controls:!0,loop:!1,muted:!1,playsInline:!1,preload:"metadata",poster:void 0})},dropdownMenuProps:C,children:[(0,Br.jsx)(Ave,{setAttributes:o,attributes:t}),(0,Br.jsx)(t3,{poster:u,onChange:V=>o({poster:V?.url})})]})}),(0,Br.jsxs)("figure",{...j,children:[(0,Br.jsx)("video",{controls:c,inert:e?void 0:"true",poster:u,src:d||x,ref:s,autoPlay:g,loop:h,muted:b,playsInline:_,width:m,height:f,style:Object.keys(w).length?w:void 0,children:(0,Br.jsx)(hb,{tracks:p})}),!!x&&(0,Br.jsx)(vb.Spinner,{}),(0,Br.jsx)(Zo,{attributes:t,setAttributes:o,isSelected:e,insertBlocksAfter:n,label:(0,Tk.__)("Video caption text"),showToolbarButton:e&&P})]})]})}var $ve=CRe;var dd=a(I(),1);var xb=a(y(),1);function qve({attributes:e}){let{autoplay:t,caption:r,controls:o,loop:n,muted:i,poster:s,preload:l,src:c,playsInline:u,tracks:d,width:p,height:m}=e,f=p&&m?`${p} / ${m}`:void 0,g={...f&&{aspectRatio:f},...(0,dd.__experimentalGetShadowClassesAndStyles)(e).style};return(0,xb.jsxs)("figure",{...dd.useBlockProps.save(),children:[c&&(0,xb.jsx)("video",{autoPlay:t,controls:o,loop:n,muted:i,poster:s,preload:l!=="metadata"?l:void 0,src:c,playsInline:u,width:p,height:m,style:Object.keys(g).length?g:void 0,children:(0,xb.jsx)(hb,{tracks:d})}),!dd.RichText.isEmpty(r)&&(0,xb.jsx)(dd.RichText.Content,{className:(0,dd.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var CE=a(Ur(),1),dH=a(te(),1),SRe={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("video/")===0},transform(e){let t=e[0];return(0,dH.createBlock)("core/video",{blob:(0,CE.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:r,webm:o,ogv:n,flv:i}})=>e||t||r||o||n||i},poster:{type:"string",shortcode:({named:{poster:e}})=>e},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}},{type:"raw",isMatch:e=>e.nodeName==="P"&&e.children.length===1&&e.firstChild.nodeName==="VIDEO",transform:e=>{let t=e.firstChild,r={autoplay:t.hasAttribute("autoplay")?!0:void 0,controls:t.hasAttribute("controls")?void 0:!1,loop:t.hasAttribute("loop")?!0:void 0,muted:t.hasAttribute("muted")?!0:void 0,preload:t.getAttribute("preload")||void 0,playsInline:t.hasAttribute("playsinline")?!0:void 0,poster:t.getAttribute("poster")||void 0,src:t.getAttribute("src")||void 0};return(0,CE.isBlobURL)(r.src)&&(r.blob=r.src,delete r.src),(0,dH.createBlock)("core/video",r)}}]},Zve=SRe;var{name:Yve}=gb,Qve={icon:gh,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,Kve.__)("Wood thrush singing in Central Park, NYC.")}},transforms:Zve,deprecated:Dve,edit:$ve,save:qve},TRe=()=>D({name:Yve,metadata:gb,settings:Qve});var yH={};J(yH,{init:()=>LRe,metadata:()=>SE,name:()=>EE,settings:()=>s_e});var i_e=a(vl(),1);var Mg=a(I(),1),Xve=a(ae(),1),Ek=a(L(),1),mH=a(F(),1);var nl=a(y(),1);function Jve({context:{postType:e,postId:t}}){let[r,o]=(0,Xve.useEntityProp)("postType",e,"meta",t),n=typeof r?.footnotes=="string",i;try{i=JSON.parse(r?.footnotes||"[]")}catch{}let s=Array.isArray(i)?i:[],l=(0,Mg.useBlockProps)();return n?s.length?(0,nl.jsx)("ol",{...l,children:s.map(({id:c,content:u})=>(0,nl.jsxs)("li",{onMouseDown:d=>{d.target===d.currentTarget&&(d.target.firstElementChild.focus(),d.preventDefault())},children:[(0,nl.jsx)(Mg.RichText,{id:c,tagName:"span",value:u,identifier:c,onFocus:d=>{d.target.textContent.trim()||d.target.scrollIntoView()},onChange:d=>{o({...r,footnotes:JSON.stringify(s.map(p=>p.id===c?{content:d,id:c}:p))})}})," ",(0,nl.jsx)("a",{href:`#${c}-link`,children:"\u21A9\uFE0E"})]},c))}):(0,nl.jsx)("div",{...l,children:(0,nl.jsx)(mH.Placeholder,{icon:(0,nl.jsx)(Mg.BlockIcon,{icon:vs}),label:(0,Ek.__)("Footnotes"),instructions:(0,Ek.__)("Footnotes found in blocks within this document will be displayed here.")})}):(0,nl.jsx)("div",{...l,children:(0,nl.jsx)(mH.Placeholder,{icon:(0,nl.jsx)(Mg.BlockIcon,{icon:vs}),label:(0,Ek.__)("Footnotes"),instructions:(0,Ek.__)("Footnotes are not supported here. Add this block to post or page content.")})})}var SE={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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,shadow:!0,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 In=[];for(let e=0;e<256;++e)In.push((e+256).toString(16).slice(1));function e_e(e,t=0){return(In[e[t+0]]+In[e[t+1]]+In[e[t+2]]+In[e[t+3]]+"-"+In[e[t+4]]+In[e[t+5]]+"-"+In[e[t+6]]+In[e[t+7]]+"-"+In[e[t+8]]+In[e[t+9]]+"-"+In[e[t+10]]+In[e[t+11]]+In[e[t+12]]+In[e[t+13]]+In[e[t+14]]+In[e[t+15]]).toLowerCase()}var PRe=new Uint8Array(16);function fH(){return crypto.getRandomValues(PRe)}function BRe(e,t,r){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():IRe(e,t,r)}function IRe(e,t,r){e=e||{};let o=e.random??e.rng?.()??fH();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t){if(r=r||0,r<0||r+16>t.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let n=0;n<16;++n)t[r+n]=o[n];return t}return e_e(o)}var gH=BRe;var hH=a(L(),1);var r_e=a(vl(),1),pd=a(I(),1),kb=a(H(),1),o_e=a(ae(),1),TE=a(te(),1);var n_e=a(y(),1),bH="core/footnote",{usesContextKey:NRe}=le(pd.privateApis),t_e="core/post-content",MRe="core/block",a_e={title:(0,hH.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},interactive:!0,contentEditable:!1,[NRe]:["postType","postId"],edit:function({value:t,onChange:r,isObjectActive:o,context:{postType:n,postId:i}}){let s=(0,kb.useRegistry)(),{getSelectedBlockClientId:l,getBlocks:c,getBlockRootClientId:u,getBlockName:d,getBlockParentsByBlockName:p}=s.select(pd.store),m=(0,kb.useSelect)(b=>{if(!b(TE.store).getBlockType("core/footnotes"))return!1;let _=b(pd.store).getSettings().allowedBlockTypes;if(_===!1||Array.isArray(_)&&!_.includes("core/footnotes")||typeof b(o_e.store).getEntityRecord("postType",n,i)?.meta?.footnotes!="string")return!1;let{getBlockParentsByBlockName:w,getSelectedBlockClientId:x,getBlockName:k}=b(pd.store),C=x();if(!C||k(C)===EE)return!1;let S=w(C,MRe);return!S||S.length===0},[n,i]),{selectionChange:f,insertBlock:g}=(0,kb.useDispatch)(pd.store);if(!m)return null;function h(){s.batch(()=>{let b;if(o)b=t.replacements[t.start]?.attributes?.["data-fn"];else{b=`fn-${gH()}`;let k=(0,r_e.insertObject)(t,{type:bH,attributes:{"data-fn":b},innerHTML:`<a href="#${b}" id="${b}-link">*</a>`},t.end,t.end);k.start=k.end-1,r(k)}let _=l(),v=p(_,t_e),w=v.length?c(v[0]):c(),x=null;{let k=[...w];for(;k.length;){let C=k.shift();if(C.name==="core/footnotes"){x=C;break}k.push(...C.innerBlocks)}}if(!x){let k=u(_);for(;k&&d(k)!==t_e;)k=u(k);x=(0,TE.createBlock)("core/footnotes"),g(x,void 0,k)}f(x.clientId,b,0,0)})}return(0,n_e.jsx)(pd.RichTextToolbarButton,{icon:vs,title:(0,hH.__)("Footnote"),onClick:h,isActive:o})}};var{name:EE}=SE,s_e={icon:vs,edit:Jve},LRe=()=>{(0,i_e.registerFormatType)(bH,a_e),D({name:EE,metadata:SE,settings:s_e})};function vH(e){return e&&"__experimental"in e&&e.__experimental!==!1}var _H={};Kq(_H,{NAVIGATION_OVERLAY_TEMPLATE_PART_AREA:Vc,NavigationLinkUI:V9});var PE=a(y(),1),p_e=()=>{let e=[kO,jD,TD,bD,YD,sA,KF,EN,PN,BN,IN,NN,ML,FL,HL,UL,$L,XL,eR,oR,cR,qR,ZR,JR,nD,xD,ID,XD,UD,$D,gA,hA,bA,nO,uO,gO,lO,zO,jO,dF,mF,YF,XF,aV,iV,lV,uz,pz,mz,Ez,Oz,Az,bz,hz,Vz,aH,cH,pH,yH,QA,eO,rO,uV,fV,pV,IF,Wz,LN,lF,tF,oF,XO,WO,GO,qO,ZO,QO,JO,iF,nF,aF,sF,DF,OF,FF,zF,MF,qF,QF,sR,uR,dR,mR,fR,gR,bR,SR,xR,wR,CR,vR,YO,Lz,ED,AD,lA,iO,Zz,Yz,Qz,oH,nH,WF,$O,LL];return window?.__experimentalEnableBlockExperiments,e.push(ZL),e.filter(Boolean)},m_e=()=>p_e().filter(({metadata:e})=>!vH(e)),RRe=(e=m_e())=>{e.forEach(({init:t})=>t()),window.__unstableAutoRegisterBlocks&&window.__unstableAutoRegisterBlocks.forEach(t=>{let r=le((0,c_e.select)(al.store)).getBootstrappedBlockType(t);(0,al.registerBlockType)(t,{...r,title:r?.title||t,...(r?.apiVersion??0)<3&&{apiVersion:3},usesContext:Array.from(new Set([...r?.usesContext??[],"postId"])),edit:function({attributes:n,context:i}){let s=(0,l_e.useDisabled)(),l=(0,u_e.useBlockProps)({ref:s}),{content:c,status:u,error:d}=(0,d_e.useServerSideRender)({block:t,attributes:n,urlQueryArgs:{post_id:i?.postId}});return u==="loading"?(0,PE.jsx)("div",{...l,children:(0,Pk.__)("Loading\u2026")}):u==="error"?(0,PE.jsx)("div",{...l,children:(0,Pk.sprintf)((0,Pk.__)("Error loading block: %s"),d)}):(0,PE.jsx)(Eo,{wrapperProps:l,html:c})},save:()=>null})}),(0,al.setDefaultBlockName)(w6),window.wp&&window.wp.oldEditor&&e.some(({name:t})=>t===n2)&&(0,al.setFreeformContentHandlerName)(n2),(0,al.setUnregisteredTypeHandlerName)(H2),(0,al.setGroupingBlockName)(Z3)},DRe=({enableFSEBlocks:e}={})=>{let t=[e?"fse":null];p_e().filter(({metadata:r})=>vH(r)).filter(({metadata:{__experimental:r}})=>r===!0||t.includes(r)).forEach(({init:r})=>r())};return N_e(ARe);})();
151 /*! Bundled license information:
152
153 use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
154 (**
155 * @license React
156 * use-sync-external-store-shim.production.js
157 *
158 * Copyright (c) Meta Platforms, Inc. and affiliates.
159 *
160 * This source code is licensed under the MIT license found in the
161 * LICENSE file in the root directory of this source tree.
162 *)
163
164 fast-average-color/dist/index.esm.js:
165 (*! Fast Average Color | © 2022 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color *)
166 */
167 (window.wp ||= {}).blockLibrary = wp.blockLibrary;
168 })();
169 //# sourceMappingURL=index.min.js.map
170